/* ToGoPick — warm bakery storefront + simple seller station.
   Palette (design v3, locked): ivory #FFF9F2, deep green #244D3E,
   terracotta #D96C4A, honey #F4B942, charcoal #252525, sand #E9DED2. */

:root {
  --ivory: #FFF9F2;
  --green: #244D3E;
  --green-dark: #1B3A2F;
  --terra: #D96C4A;
  --terra-dark: #C05A39;
  --honey: #F4B942;
  --ink: #252525;
  --muted: #7A6F63;
  --sand: #E9DED2;
  --card: #FFFFFF;
  --red-bg: #FDECEA;
  --red-ink: #9C2B21;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--ivory);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
h1 { font-size: 28px; line-height: 1.25; margin: 0 0 10px; color: var(--green); }
h2 { font-size: 22px; margin: 18px 0 12px; color: var(--green); }
h3 { font-size: 16px; margin: 0 0 10px; color: var(--green); }
.stack { margin-top: 18px; }
.note { font-size: 14px; color: var(--muted); margin: 6px 0 12px; line-height: 1.5; }
.error { font-size: 14px; color: var(--red-ink); margin: 0 0 12px; }
a { color: var(--green); }

/* ---------- chrome ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  max-width: 720px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 6px;
}
.brand { font-size: 20px; font-weight: 800; color: var(--green); display: flex; align-items: center; gap: 8px; }
.brand.big { font-size: 30px; text-align: center; justify-content: center; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand.big .brand-logo { height: 46px; }
@media (max-width: 420px) {
  .brand-logo { height: 32px; }
  .brand.big .brand-logo { height: 40px; }
}
.topbar-actions { display: flex; gap: 6px; align-items: center; }
.wrap { max-width: 720px; margin: 0 auto; padding: 8px 16px 48px; }
.wrap.has-bottomnav { padding-bottom: 110px; }
.foot { margin-top: 28px; text-align: center; }

.hero-card {
  background: var(--card); border: 1px solid var(--sand); border-radius: var(--radius);
  padding: 24px 20px; margin: 12px 0 8px; text-align: center;
}
.hero-card .tagline { font-size: 18px; font-weight: 600; color: var(--terra-dark); margin: 0 0 10px; }
.checks { list-style: none; margin: 14px auto 18px; padding: 0; max-width: 340px; text-align: left; }
.checks li { font-size: 16px; padding: 5px 0 5px 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 800; }

/* ---------- cards, lists, rows ---------- */
.card {
  background: var(--card); border: 1px solid var(--sand);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
}
.list { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--sand); border-radius: var(--radius);
  padding: 12px 14px; min-height: 60px; font: inherit; color: inherit; text-decoration: none;
}
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-name { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { font-size: 13px; color: var(--muted); }
.pill {
  flex: none; font-size: 12px; font-weight: 700; border-radius: 999px;
  padding: 3px 9px; background: #FDF0D5; color: #7A5C00; white-space: nowrap;
}
.pill.green { background: #E3EFE8; color: var(--green); }
.pill.featured { background: #FDF0D5; color: #7A5C00; font-weight: 700; }
.pill.closed { background: var(--red-bg); color: var(--red-ink); }

/* ---------- forms & buttons ---------- */
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 14px; font-weight: 600; color: var(--green); margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="number"], .field select, .field textarea,
.inline-form input, .inline-form select {
  width: 100%; font: inherit; font-size: 16px; padding: 12px;
  border: 1px solid var(--sand); border-radius: 10px; background: var(--card);
  color: var(--ink); min-height: 52px;
}
.field input[type="file"] { font: inherit; font-size: 15px; margin: 4px 0 8px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 46px !important; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-58%); background: none; border: none; padding: 9px; cursor: pointer; color: #5a6b64; display: flex; align-items: center; }
.pw-toggle:active { color: var(--pine); }
.field textarea { resize: vertical; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 6px 0 10px; }
.checkline input { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.inline-form { display: flex; gap: 8px; align-items: stretch; }
.inline-form input, .inline-form select { flex: 1; min-height: 48px; }

.btn {
  font: inherit; font-size: 16px; border-radius: 10px; border: 1px solid var(--sand);
  background: var(--card); color: var(--ink); padding: 12px 18px; min-height: 52px;
  cursor: pointer; width: 100%; margin-bottom: 10px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.btn-accent { background: var(--terra); border-color: var(--terra); color: #fff; font-weight: 700; min-height: 56px; }
.btn-secondary { background: #F4EAD9; }
.btn-quiet { background: transparent; border-color: transparent; color: var(--green); }
.btn-danger { background: transparent; border-color: #F3C6C0; color: var(--red-ink); }
.btn-small { width: auto; min-height: 48px; padding: 9px 14px; margin-bottom: 0; white-space: nowrap; }
.btn.back { width: auto; padding-left: 0; margin-bottom: 4px; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }

.chips { display: flex; gap: 8px; margin: 6px 0 16px; justify-content: center; }
.chip {
  border: 1px solid var(--sand); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 9px 16px; font-size: 15px; min-height: 40px; cursor: pointer; flex: none;
}
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }

/* switches (seller) */
.switchline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 16px; font-size: 15px; cursor: pointer; }
.switch-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.switch { position: relative; flex: none; width: 52px; height: 30px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: #D8CBB8; transition: background 0.15s ease; pointer-events: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: left 0.15s ease; }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { left: 25px; }

/* ---------- auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: calc(32px + env(safe-area-inset-top, 0px)) 16px 32px; }
.auth-card { max-width: 420px; width: 100%; }
.auth-card .tagline { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 8px 0 20px; text-align: center; }
.auth-card h1 { text-align: center; }

/* ---------- seller ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; background: var(--card); border-top: 1px solid var(--sand);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottomnav button {
  flex: 1; font: inherit; font-size: 15px; font-weight: 600; background: none; border: none;
  color: var(--muted); min-height: 58px; cursor: pointer;
}
.bottomnav button.active { color: var(--green); box-shadow: inset 0 3px 0 var(--terra); }
.link-line { font-size: 16px; word-break: break-all; margin: 4px 0 12px; }
.qr-box { display: flex; justify-content: center; padding: 10px 0; }
.qr-box svg { width: 220px; height: 220px; }
.photo-tips {
  background: #FDF0D5; border: 1px solid var(--honey); border-radius: 10px;
  font-size: 13px; line-height: 1.5; padding: 10px 12px; margin-bottom: 10px; color: #5C4A12;
}
.photo-preview { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--sand); margin-top: 8px; }
.empty-state { text-align: center; padding: 34px 16px; }
.empty-big { font-size: 19px; font-weight: 700; color: var(--green); margin: 0 0 6px; }
.hours-row { display: grid; grid-template-columns: 52px 1fr 1fr 74px; gap: 8px; align-items: center; margin-bottom: 8px; }
.hours-row .day { font-weight: 700; color: var(--green); font-size: 14px; }
.hours-row input[type="time"] { font: inherit; font-size: 15px; padding: 9px; border: 1px solid var(--sand); border-radius: 8px; min-height: 44px; width: 100%; }
.hours-row .closed-lbl { font-size: 13px; display: flex; gap: 5px; align-items: center; }
.menu-item-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--sand); }
.menu-item-row img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; background: var(--ivory); }
.menu-item-row .grow { flex: 1; min-width: 0; }
.cat-head { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.cat-head h3 { flex: 1; margin: 0; }
.mini { font: inherit; font-size: 13px; border: 1px solid var(--sand); background: var(--card); border-radius: 8px; padding: 7px 10px; min-height: 36px; cursor: pointer; }
.mini.danger { color: var(--red-ink); border-color: #F3C6C0; }
.opt-row { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--sand); font-size: 15px; }
.opt-row .grow { flex: 1; }

/* ---------- storefront ---------- */
.sf-hero { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; background: var(--sand); }
.sf-head { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.sf-id { display: flex; gap: 14px; align-items: center; margin-top: -34px; position: relative; }
.sf-logo {
  width: 72px; height: 72px; border-radius: 50%; flex: none; object-fit: cover;
  background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; border: 3px solid var(--ivory);
}
.sf-head h1 { margin: 10px 0 2px; }
.sf-status { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.sf-cats {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; max-width: 720px; margin: 0 auto;
  scrollbar-width: none;
}
.sf-cats::-webkit-scrollbar { display: none; }
.sf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 720px; margin: 0 auto; padding: 4px 16px 40px; }
@media (max-width: 420px) { .sf-grid { grid-template-columns: 1fr; } }
.sf-card { background: var(--card); border: 1px solid var(--sand); border-radius: var(--radius); overflow: hidden; text-align: left; font: inherit; color: inherit; padding: 0; cursor: pointer; display: flex; flex-direction: column; }
.sf-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--ivory); }
.sf-card .pad { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sf-card .nm { font-size: 16px; font-weight: 700; }
.sf-card .ds { font-size: 13px; color: var(--muted); line-height: 1.45; flex: 1; }
.sf-card .pr { font-size: 16px; font-weight: 700; color: var(--green); }
.sf-card.soldout { opacity: 0.55; }
.add-btn {
  font: inherit; font-size: 16px; font-weight: 700; border: none; border-radius: 10px;
  background: var(--terra); color: #fff; min-height: 48px; padding: 10px 18px; cursor: pointer; width: 100%;
}
.soldout-btn {
  font: inherit; font-size: 15px; font-weight: 700; border: 1px solid var(--sand); border-radius: 10px;
  background: #EFE7DA; color: var(--muted); min-height: 48px; padding: 10px 18px; width: 100%;
}
.sf-cat-title { max-width: 720px; margin: 14px auto 0; padding: 0 16px; }

/* Customization Studio (Nov 17, 2026): shop themes. renderStorefront
 * sets --sf-accent / --sf-deep inline on #storefrontView from the
 * shop's theme (classic = the palette defaults, so unthemed shops
 * look exactly as before). Scoped to the storefront ONLY — platform
 * chrome (seller station, checkout chrome, landing) never reads
 * these variables. Dark text on the ivory background is unchanged
 * in every theme; accents are deep enough for white button text. */
#storefrontView .add-btn { background: var(--sf-accent, var(--terra)); }
#storefrontView .sf-card .pr { color: var(--sf-deep, var(--green)); }
#storefrontView .sf-head h1 { color: var(--sf-deep, var(--green)); }
#storefrontView .sf-logo { background: var(--sf-deep, var(--green)); }
#storefrontView .sf-cat-title { color: var(--sf-deep, var(--green)); }
#storefrontView .chip.active { background: var(--sf-deep, var(--green)); border-color: var(--sf-deep, var(--green)); }

/* Cover photo banner: the shop's cover fills the top of the page
 * with the logo + name overlaid on a soft shade for readability. */
.sf-cover { position: relative; width: 100%; aspect-ratio: 16 / 6; min-height: 168px; overflow: hidden; background: var(--sand); }
.sf-cover > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-cover-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(22, 17, 12, 0.74), rgba(22, 17, 12, 0.04) 58%); }
.sf-cover-id { position: absolute; left: 0; right: 0; bottom: 12px; max-width: 720px; margin: 0 auto; padding: 0 16px; display: flex; gap: 14px; align-items: center; }
.sf-cover-id h1 { color: #fff; margin: 0 0 2px; }
.sf-cover-id .note { color: #F5EBDD; margin: 0; }

/* Menu layout: list (compact rows with small thumbs). */
.sf-list { display: flex; flex-direction: column; gap: 10px; max-width: 720px; margin: 0 auto; padding: 4px 16px 40px; }
.sf-list .sf-card { flex-direction: row; }
.sf-list .sf-card img { width: 92px; aspect-ratio: 1; flex: none; }
.sf-list .sf-card .pad { padding: 10px 12px; }
.sf-list .sf-card .nm { font-size: 15px; }
.sf-list .add-btn { width: auto; min-height: 40px; padding: 6px 18px; align-self: flex-start; }

/* Studio (seller Settings) controls. */
.studio-logo-preview { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid var(--sand); }
.studio-cover-preview { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--sand); display: block; }
.studio-swatches { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.studio-swatch { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--sand); cursor: pointer; padding: 0; flex: none; }
.studio-swatch.active { border-color: var(--ink); }
.studio-swatch:disabled { opacity: 0.45; cursor: default; }

/* Guided setup wizard (Nov 17, 2026): progress bar, stage nav,
 * and the Review & Publish checklist. Locked palette only. */
.wz-progress { height: 8px; background: var(--sand); border-radius: 999px; overflow: hidden; margin: 12px 0 2px; }
.wz-progress-fill { height: 100%; width: 25%; background: var(--terra); border-radius: 999px; transition: width 0.25s ease; }
.wz-nav { display: flex; gap: 8px; margin-top: 14px; }
.wz-nav .btn { margin-bottom: 0; }
.wz-nav .btn-primary { flex: 1; }
.wz-nav .btn-quiet { width: auto; flex: none; }
.wz-links { display: flex; gap: 8px; justify-content: space-between; margin-top: 10px; }
.wz-links .btn { margin-bottom: 0; }
.wz-check { list-style: none; margin: 6px 0 14px; padding: 0; }
.wz-check li { position: relative; padding: 8px 0 8px 30px; font-size: 15px; border-bottom: 1px dashed var(--sand); }
.wz-check li:last-child { border-bottom: none; }
.wz-check li::before { position: absolute; left: 4px; font-weight: 800; }
.wz-check li.done::before { content: "✓"; color: var(--green); }
.wz-check li.todo { color: var(--muted); }
.wz-check li.todo::before { content: "○"; }
.wz-check .sub { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.wz-frame { border: 1px solid var(--sand); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.wz-frame iframe { width: 100%; height: 420px; border: 0; display: block; }
.studio-preview { border: 1px solid var(--sand); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.studio-preview .pv-band { padding: 14px; display: flex; gap: 12px; align-items: center; }
.studio-preview .pv-logo { width: 46px; height: 46px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; flex: none; }
.studio-preview .pv-name { font-size: 18px; font-weight: 800; margin: 0; }
.studio-preview .pv-item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--sand); }
.studio-preview .pv-item img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; }
.studio-preview .pv-add { margin-left: auto; border: none; border-radius: 10px; color: #fff; font-weight: 700; padding: 8px 16px; font-size: 14px; }
.item-hero { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; background: var(--ivory); }
.opt-group { margin: 14px 0; }
.opt-line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--sand); font-size: 15px; }
.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 80;
  background: var(--green); color: #fff; font-size: 15px; padding: 12px 18px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(27, 58, 47, 0.3); max-width: 92vw; text-align: center;
}

/* ---------- ordering (Phase 2) ---------- */
.basket-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: min(680px, calc(100vw - 24px)); min-height: 56px;
  font: inherit; font-size: 17px; font-weight: 700; color: #fff;
  background: var(--green); border: none; border-radius: 14px; cursor: pointer;
  box-shadow: 0 10px 28px rgba(27, 58, 47, 0.35); padding: 12px 18px;
}
.qty-stepper { display: inline-flex; align-items: center; gap: 4px; }
.qty-stepper button {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--sand);
  background: var(--card); font-size: 20px; font-weight: 700; cursor: pointer; color: var(--green);
}
.qty-stepper .qty-num { min-width: 34px; text-align: center; font-size: 17px; font-weight: 700; }
.opt-choice {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  border: 1px solid var(--sand); border-radius: 10px; margin-bottom: 8px;
  font-size: 16px; cursor: pointer; background: var(--card); min-height: 52px;
}
.opt-choice input { width: 22px; height: 22px; flex: none; }
.opt-choice .grow { flex: 1; }
.basket-line, .order-line {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--sand);
}
.basket-line .grow, .order-line .grow { flex: 1; min-width: 0; }
.line-opts { font-size: 13px; color: var(--muted); display: block; margin-top: 2px; }
.total-row { display: flex; justify-content: space-between; font-size: 16px; padding: 6px 0; }
.total-row.grand { font-size: 19px; font-weight: 800; color: var(--green); border-top: 2px solid var(--sand); margin-top: 6px; padding-top: 10px; }
.pill.status-new { background: #FDF0D5; color: #7A5C00; }
.pill.status-accepted { background: #DCE9F7; color: #1D4E79; }
.pill.status-ready { background: #E3EFE8; color: var(--green); }
.pill.status-done { background: #EFE7DA; color: var(--muted); }
.pill.status-pending_payment { background: var(--red-bg); color: var(--red-ink); }
.pill.delivery-open { background: #FDF0D5; color: #7A5C00; }
.pill.delivery-accepted { background: #DCE9F7; color: #1D4E79; }
.pill.delivery-picked_up { background: #FBE3D5; color: #8A3B12; }
.pill.delivery-delivered { background: #E3EFE8; color: var(--green); }
.pill.delivery-canceled { background: #EFE7DA; color: var(--muted); }
.delivery-block {
  margin-top: 10px; padding: 10px 12px;
  background: #FBF4E8; border: 1px solid var(--sand); border-radius: 12px;
}
.delivery-block .btn { margin-top: 8px; }
.order-card { background: var(--card); border: 1px solid var(--sand); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.order-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-card-head .num { font-size: 19px; font-weight: 800; color: var(--green); }
.order-card-head .spacer { flex: 1; }
.summary-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.summary-stat { background: var(--card); border: 1px solid var(--sand); border-radius: var(--radius); padding: 12px; text-align: center; }
.summary-stat .big { font-size: 22px; font-weight: 800; color: var(--green); display: block; }
.summary-stat .lbl { font-size: 12px; color: var(--muted); }
.new-order-alert {
  background: var(--honey); color: #4A3600; border-radius: var(--radius);
  padding: 16px; font-size: 19px; font-weight: 800; text-align: center; margin-bottom: 12px;
  animation: alertflash 0.7s ease-in-out infinite alternate;
}
@keyframes alertflash { from { box-shadow: 0 0 0 0 rgba(244, 185, 66, 0.0); } to { box-shadow: 0 0 0 6px rgba(244, 185, 66, 0.55); } }
.nav-badge {
  display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 999px;
  background: var(--terra); color: #fff; font-size: 12px; font-weight: 800; vertical-align: 2px;
}
.ready-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.test-mode-note {
  background: #FDF0D5; border: 1px solid var(--honey); border-radius: 10px;
  padding: 14px; font-size: 16px; line-height: 1.5; margin-bottom: 14px; color: #5C4A12;
}
.big-status { font-size: 20px; font-weight: 800; margin: 10px 0; }
.field input[type="datetime-local"] {
  width: 100%; font: inherit; font-size: 16px; padding: 12px;
  border: 1px solid var(--sand); border-radius: 10px; background: var(--card); min-height: 52px;
}
.radio-line { display: flex; gap: 10px; align-items: center; font-size: 16px; padding: 10px 0; cursor: pointer; }
.radio-line input { width: 22px; height: 22px; flex: none; }

/* ---------- admin (Phase 3) ---------- */
.admin-table-wrap { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin-table th, table.admin-table td {
  text-align: left; padding: 8px; border-bottom: 1px solid var(--sand); vertical-align: top;
}
.counts-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 15px; margin: 10px 0 16px; }

/* ---------- landing (homepage polish, approved mockup look) ---------- */
html { scroll-behavior: smooth; }
.lp-hero { text-align: center; padding: 18px 2px 2px; }
.lp-h1 {
  font-size: clamp(27px, 7vw, 36px); line-height: 1.16; font-weight: 800;
  letter-spacing: -0.5px; margin: 4px 0 10px;
}
.lp-sub { font-size: 16.5px; line-height: 1.45; color: var(--muted); margin: 0 auto 18px; max-width: 520px; }
.lp-cta { min-height: 50px; border-radius: 14px; font-size: 16.5px; box-shadow: 0 6px 18px rgba(217, 108, 74, 0.28); }
.lp-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 8px; }
.lp-cats a {
  background: var(--card); border: 1.5px solid var(--sand); color: var(--green);
  font-weight: 600; font-size: 14px; border-radius: 999px; padding: 8px 14px; text-decoration: none;
}
.lp-card-meta { font-size: 13.5px; font-weight: 600; color: var(--terra); }
.lp-search { display: flex; gap: 8px; margin: 14px 0 2px; }
.lp-search input[type="search"] {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; min-height: 50px;
  border-radius: 12px; border: 1px solid var(--sand); background: var(--card);
  color: var(--ink); padding: 10px 14px;
}
.lp-search .btn { white-space: nowrap; }
@media (max-width: 640px) {
  .lp-search { flex-wrap: wrap; }
  .lp-search input[type="search"] { flex: 1 1 100%; }
}
.apps-compact { font-size: 14px; line-height: 1.5; color: var(--muted); }
.apps-compact li { margin: 3px 0; }
.lp-explore {
  background: var(--card); border: 1.5px solid var(--sand); color: var(--green);
  font-weight: 700; border-radius: 14px; min-height: 58px; font-size: 17px;
}
.lp-hero-photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: 20px; border: 1px solid var(--sand); background: var(--sand);
  box-shadow: 0 12px 32px rgba(36, 77, 62, 0.14); margin: 10px 0 16px;
}
.lp-checks { display: flex; gap: 8px; margin: 2px 0 6px; }
.lp-check { flex: 1; text-align: center; font-size: 14.5px; font-weight: 600; color: var(--green); line-height: 1.35; }
.lp-check svg { width: 26px; height: 26px; display: block; margin: 0 auto 6px; }
.lp-h2 { margin-top: 20px; scroll-margin-top: 16px; }
.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lp-card {
  background: var(--card); border: 1px solid var(--sand); border-radius: 16px;
  overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; box-shadow: 0 4px 14px rgba(36, 77, 62, 0.06);
}
.lp-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--ivory); }
/* Homepage cards sit shorter than directory cards (review trim). */
#landingView .lp-card img { aspect-ratio: 21 / 10; }
.lp-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.lp-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lp-card-name { font-size: 16.5px; font-weight: 700; }
.lp-card-cat { font-size: 13.5px; color: var(--muted); }
@media (max-width: 640px) {
  .lp-cards { grid-template-columns: 1fr; }
  .lp-card img { aspect-ratio: 16 / 9; }
  #landingView .lp-card img { aspect-ratio: 12 / 5; }
}
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lp-step { background: var(--card); border: 1px solid var(--sand); border-radius: 16px; padding: 16px; box-shadow: 0 4px 14px rgba(36, 77, 62, 0.05); }
.lp-num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff;
  font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.lp-step p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 640px) { .lp-steps { grid-template-columns: 1fr; } }
.lp-price-card { padding: 16px; }
.lp-pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .lp-pricing { grid-template-columns: 1fr; } }
.lp-tier { margin: 0 0 4px; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--terra); }
.lp-tier-list { list-style: none; margin: 10px 0 0; padding: 0; }
.lp-tier-list li { position: relative; padding: 5px 0 5px 24px; font-size: 15px; }
.lp-tier-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.lp-tier-list li.lp-no { color: var(--muted); }
.lp-tier-list li.lp-no::before { content: "✕"; color: var(--muted); }
.sf-contact { margin-top: 14px; text-align: left; }
.lp-price { margin: 0 0 8px; font-size: 19px; color: var(--muted); }
.lp-price strong { font-size: 38px; font-weight: 800; color: var(--green); letter-spacing: -1px; }
.lp-price-line { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: var(--ink); }
.lp-body { margin: 0; font-size: 15.5px; line-height: 1.55; }
.lp-qa { padding: 12px 0; border-bottom: 1px solid var(--sand); }
.lp-qa:first-child { padding-top: 2px; }
.lp-qa:last-child { border-bottom: none; padding-bottom: 2px; }
.lp-qa h3 { font-size: 15.5px; color: var(--ink); margin-bottom: 4px; }
.lp-qa p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.lp-driver { text-align: center; margin: 30px 0 4px; font-size: 15px; color: var(--muted); }
.lp-demo-link {
  display: block; text-align: center; margin: 2px 0 6px;
  color: var(--green); font-weight: 600; font-size: 15.5px; text-decoration: none;
}
.lp-demo-link:hover { text-decoration: underline; }

/* ---------- find homemade food (directory) ---------- */
.find-controls { display: flex; gap: 10px; margin: 18px 0 16px; }
.find-controls input[type="search"], .find-controls select {
  font: inherit; font-size: 16px; min-height: 52px; border-radius: 12px;
  border: 1px solid var(--sand); background: var(--card); color: var(--ink);
  padding: 10px 14px;
}
.find-controls input[type="search"] { flex: 1; min-width: 0; }
.find-controls select { max-width: 45%; }
.lp-card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.lp-card-badges .pill { font-size: 12px; }

/* ---------- print (QR card) ---------- */
.print-only { display: none; }
@media print {
  body * { visibility: hidden; }
  #printCard, #printCard * { visibility: visible; }
  #printCard {
    display: block !important; position: absolute; inset: 0; text-align: center; padding: 48px 24px;
  }
  #printCard h1 { font-size: 34px; }
  #printQr svg { width: 340px; height: 340px; }
  .no-print { display: none !important; }
}
