:root {
  --accent-ink: #a4532a;
  --bg: #faf6ef;
  --surface: #ffffff;
  --surface-2: #f3ece0;
  --text: #2b2118;
  --muted: #7a6b5d;
  --border: #e6dccb;
  --accent: #a4532a;
  --accent-hover: #8a4422;
  --accent-text: #ffffff;
  --ok-bg: #e8f3e6;   --ok-text: #2c5a26;
  --err-bg: #fbe7e3;  --err-text: #8f2d1c;
  --danger: #b23a26;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(60 40 20 / 6%), 0 4px 16px rgb(60 40 20 / 6%);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1713;
    --surface: #26201a;
    --surface-2: #2f2720;
    --text: #f1e8dc;
    --muted: #a8998a;
    --border: #3d332a;
    --accent: #e08a5a;
    --accent-hover: #ec9c6e;
    --accent-text: #1c1713;
    --ok-bg: #1f3320;   --ok-text: #b4dcaa;
    --err-bg: #3d1f19;  --err-text: #f4b3a5;
    --danger: #f08a73;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: 1.6rem; margin-top: 1.5em; }
h3 { font-size: 1.2rem; }
a { color: var(--accent-ink); }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; min-height: 60px; }
.brand { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--text); text-decoration: none; }
.site-footer { margin-top: 64px; padding: 24px 0; color: var(--muted); font-size: .875rem; border-top: 1px solid var(--border); }
main { padding-top: 24px; padding-bottom: 24px; }

.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.flash-ok { background: var(--ok-bg); color: var(--ok-text); }
.flash-error { background: var(--err-bg); color: var(--err-text); }

.hero { text-align: center; padding: 32px 0 8px; }
.tagline { font-size: 1.2rem; margin: 0 0 .25em; }
.notice, .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.notice { text-align: center; margin: 24px 0; }
.notice h2 { margin-top: 0; }

/* menu */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: border-color .15s; }
.item.is-picked { border-color: var(--accent-ink); }
.item img, .img-placeholder { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.img-placeholder { background: var(--surface-2); display: grid; place-items: center; font-size: 3rem; }
.item-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.item-body p { margin: 0; color: var(--muted); flex: 1; }
.item-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.item-head h3 { margin: 0; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.is-sold-out { opacity: .6; }
.badge { align-self: flex-start; background: var(--surface-2); color: var(--muted); padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }

.qty { display: flex; align-items: center; gap: 0; align-self: flex-start; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.qty input { width: 48px; text-align: center; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 600; padding: 6px 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty-btn { width: 40px; height: 38px; border: 0; background: var(--surface-2); color: var(--text); font-size: 1.2rem; cursor: pointer; }
.qty-btn:hover { background: var(--border); }

/* checkout */
.checkout { margin-top: 8px; }
.days { border: 0; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.days legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.day { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.day:has(input:checked) { border-color: var(--accent-ink); outline: 1px solid var(--accent); }
.day input { margin-top: 4px; accent-color: var(--accent-ink); }
.day small { display: block; color: var(--muted); }
.day.is-full { opacity: .5; cursor: not-allowed; }

.choices { border: 0; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.choices legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.choice { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; font-weight: 400; }
.choice:has(input:checked) { border-color: var(--accent-ink); outline: 1px solid var(--accent); }
.choice input { margin-top: 4px; }
.choice small { display: block; color: var(--muted); }
.checkout fieldset.choices:last-of-type { margin-top: 20px; }
.address { margin: -8px 0 20px; }
.checkout:has([name=fulfillment][value=pickup]:checked) .address { display: none; }

.pay-venmo { display: flex; gap: 20px; align-items: center; margin: 20px 0; padding: 16px; background: var(--surface-2); border-radius: 12px; }
.pay-venmo h2 { margin: 0 0 6px; font-size: 1.3rem; }
.pay-venmo p { margin: 0 0 10px; }
.qr { flex-shrink: 0; width: 180px; background: #fff; border-radius: 10px; padding: 6px; line-height: 0; }
.qr svg { width: 100%; height: auto; }
.btn-venmo { background: #008cff; color: #fff; }
.btn-venmo:hover { background: #0074d4; }
.paid-badge { background: var(--ok-bg); color: var(--ok-text); padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.pay-cash { background: var(--surface-2); padding: 12px 16px; border-radius: 10px; }
.tags { display: flex; gap: 6px; margin: 6px 0 2px; }
.tag { font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tag-dropoff { background: #f6e3c7; color: #7a4a12; }
.tag-venmo { background: #dcecff; color: #0b5cad; }
.tag-sub { background: #e9e2f7; color: #553c8f; text-decoration: none; }
.status-tag-active { background: var(--ok-bg); color: var(--ok-text); }
.status-tag-paused { background: #f6e3c7; color: #7a4a12; }
.sub-paused { opacity: .75; }
.sub-cancelled { opacity: .5; border-left-color: var(--muted); }
:root { --prep-a: #f3e1c9; --prep-b: #faf0e2; --prep-text: #8a5a1c; }
@media (prefers-color-scheme: dark) {
  :root { --prep-a: #4a3720; --prep-b: #3a2b1a; --prep-text: #f3cf9c; }
  .tag-dropoff { background: #4a3720; color: #f3cf9c; }
  .tag-venmo { background: #183552; color: #9fcbff; }
  .tag-sub { background: #33284a; color: #cdb9f5; }
  .status-tag-paused { background: #4a3720; color: #f3cf9c; }
}

/* admin calendar */
.acal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.acal-dow { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; text-align: center; }
.acal-day { display: flex; flex-direction: column; gap: 3px; padding: 8px; min-height: 76px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: .85rem; min-width: 0; }
.acal-day:hover { border-color: var(--accent-ink); }
.acal-n { font-weight: 600; }
.acal-t { color: var(--muted); font-variant-numeric: tabular-nums; }
.acal-note { font-size: .7rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acal-day .meter { width: 100%; }
.acal-day.is-past { opacity: .45; }
.acal-day.is-today { outline: 2px solid var(--accent); outline-offset: -2px; }
.acal-day.is-locked { background: repeating-linear-gradient(-45deg, var(--prep-a), var(--prep-a) 5px, var(--prep-b) 5px, var(--prep-b) 10px); }
.acal-day.is-closed { background: var(--surface-2); color: var(--muted); }
.acal-day.is-some .acal-t { color: var(--text); }
.acal-day.is-full .acal-t { color: var(--accent-ink); font-weight: 600; }
.acal-day.is-over { border-color: var(--danger); }
.acal-day.is-over .acal-t { color: var(--danger); font-weight: 700; }
.weekday-picks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.weekday-picks legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.w-field { width: 190px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* customer calendar */
.cal-wrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; align-items: start; }
.cal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head h3 { margin: 0; font-size: 1.15rem; }
.cal-nav { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 1.3rem; line-height: 1; }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow span { text-align: center; font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 4px 0; }
.cal-day { aspect-ratio: 1 / 1.05; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--text); padding: 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; }
.cal-day .n { font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-day .t { font-size: .6rem; line-height: 1.1; min-height: 1.1em; white-space: nowrap; overflow: hidden; max-width: 100%; text-overflow: ellipsis; }
.cal-day.is-open { background: var(--surface-2); cursor: pointer; }
.cal-day.is-open:hover { border-color: var(--accent-ink); }
.cal-day.is-open .t { color: var(--accent-ink); font-weight: 600; }
.cal-day:disabled { cursor: default; }
.cal-day.is-na, .cal-day.is-past, .cal-day.is-closed, .cal-day.is-full { color: var(--muted); opacity: .55; }
.cal-day.is-closed .n, .cal-day.is-full .n { text-decoration: line-through; }
.cal-day.is-today { border-color: var(--border); }
.cal-day.is-prep { opacity: 1; color: var(--text); background: repeating-linear-gradient(-45deg, var(--prep-a), var(--prep-a) 5px, var(--prep-b) 5px, var(--prep-b) 10px); }
.cal-day.is-prep .n { text-decoration: none; }
.cal-day.is-prep .t { color: var(--prep-text); font-weight: 600; }
.cal-day.is-sel { opacity: 1; background: var(--accent); color: var(--accent-text); border-color: var(--accent-ink); }
.cal-day.is-sel .t { color: var(--accent-text); font-weight: 600; }
.cal-day.is-repeat { box-shadow: inset 0 0 0 2px var(--accent); opacity: 1; }
.cal-day.is-repeat .t { color: var(--accent-ink); font-weight: 600; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: .78rem; color: var(--muted); }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.lg-sel { background: var(--accent); }
.lg-prep { background: repeating-linear-gradient(-45deg, var(--prep-a), var(--prep-a) 3px, var(--prep-b) 3px, var(--prep-b) 6px); }
.lg-open { background: var(--surface-2); border: 1px solid var(--border); }
.lg-na { background: transparent; border: 1px dashed var(--border); }
.cal-side { display: flex; flex-direction: column; gap: 16px; }
.cal-summary { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.cal-summary p { margin: 0 0 4px; }
.cal-picked { font-family: var(--serif); font-size: 1.2rem; }
.cal-error { color: var(--err-text); font-weight: 600; }
.repeat { border: 0; padding: 0; margin: 0; }
.repeat legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.pills label { font-weight: 500; }
.pills input { position: absolute; opacity: 0; width: 1px; }
.pills span { display: inline-block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); cursor: pointer; }
.pills input:checked + span { background: var(--accent); color: var(--accent-text); border-color: var(--accent-ink); }
.pills input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.sub-box { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.sub-box p { margin: 0 0 8px; }
.upcoming { list-style: none; padding: 0; margin: 0 0 12px; }
.upcoming li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.upcoming li > div { display: flex; flex-direction: column; }
.upcoming .up-skipped strong, .upcoming .up-closed strong, .upcoming .up-cancelled strong { text-decoration: line-through; color: var(--muted); }
.upcoming .btn { padding: 6px 14px; }
.prep-note { margin: -4px 0 16px; color: var(--muted); }
.prep-note.is-started strong { color: var(--accent-ink); }

.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 16px; }
.fields .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; font-size: .95rem; }
input, textarea, select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; width: 100%; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.summary { position: sticky; bottom: 0; margin-top: 24px; padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 -4px 20px rgb(0 0 0 / 8%); }
.total-label { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.total { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }

button { font: inherit; cursor: pointer; }
.btn-primary, .btn, .btn-danger { border-radius: 10px; padding: 10px 18px; font-weight: 600; border: 1px solid transparent; text-decoration: none; display: inline-block; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); }
.summary .btn-primary { padding: 14px 26px; font-size: 1.05rem; }
.btn { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--border); }
button.link { background: none; border: 0; padding: 0; color: var(--accent-ink); text-decoration: underline; }
button.link.danger { color: var(--danger); }

/* confirmation */
.confirm { max-width: 560px; margin: 24px auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--muted); font-weight: 600; margin: 0 0 4px; }
.lines { width: 100%; border-collapse: collapse; margin: 16px 0; }
.lines td { padding: 8px 0; border-bottom: 1px solid var(--border); }
.total-row td { font-weight: 700; border-bottom: 0; }

/* admin */
.narrow { max-width: 380px; margin: 48px auto; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.admin-nav { justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.admin-nav nav { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; }
.admin-nav nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.admin-nav nav a[aria-current] { color: var(--text); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent-ink); }
.admin h1 { font-size: 2rem; }
.toolbar { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
label.inline select { width: auto; min-width: 220px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; color: var(--muted); font-size: .9rem; }
.stat span { display: block; color: var(--text); font-family: var(--serif); font-size: 1.6rem; font-weight: 700; }
.totals { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 16px; }
.totals strong { display: inline-block; min-width: 2ch; color: var(--accent-ink); }
.orders { display: flex; flex-direction: column; gap: 10px; }
.order { display: flex; justify-content: space-between; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; padding: 14px 16px; }
.order.status-paid { border-left-color: #3b82c4; }
.order.status-picked_up { border-left-color: #4a8a3f; opacity: .75; }
.order.status-cancelled { border-left-color: var(--muted); opacity: .5; }
.order.status-cancelled .order-lines { text-decoration: line-through; }
.order-main { display: flex; flex-wrap: wrap; gap: 8px 32px; flex: 1; min-width: 0; }
.order-who { min-width: 220px; overflow-wrap: anywhere; }
.order-lines { margin: 0; padding-left: 18px; }
.order-notes { flex-basis: 100%; margin: 0; color: var(--muted); font-style: italic; }
.order-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.order-side select { width: auto; }
.code { font-family: ui-monospace, monospace; font-size: .8rem; color: var(--muted); }

.admin-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.admin-item { display: flex; gap: 16px; }
.admin-item.is-hidden { opacity: .6; }
.admin-item-img { width: 140px; flex-shrink: 0; }
.admin-item-img img, .admin-item-img .img-placeholder { border-radius: 10px; aspect-ratio: 1; width: 100%; object-fit: cover; }
.admin-item-fields { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.row { display: flex; gap: 12px; align-items: end; }
.wrap-row { flex-wrap: wrap; align-items: center; }
.row.tight { gap: 8px; align-items: center; }
.grow { flex: 1; }
.w-price { width: 110px; }
.w-sort, .w-num { width: 90px; }
.w-wide { max-width: 360px; }
label.check { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
label.file input { border: 0; padding: 4px 0; background: none; }
.actions { justify-content: space-between; }
.add-day { flex-wrap: wrap; margin-bottom: 16px; }
.add-day label:first-child { width: 200px; }

.days-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.days-table th, .days-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.days-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); }
.days-table tr.past { opacity: .55; }
.meter { width: 100px; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.meter span { display: block; height: 100%; background: var(--accent); }

@media (max-width: 760px) {
  .cal-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .acal { gap: 3px; }
  .acal-day { padding: 4px; min-height: 58px; font-size: .7rem; }
  .acal-note, .acal-day .meter { display: none; }
  .pay-venmo { flex-direction: column; text-align: center; }
  .order { flex-direction: column; }
  .order-side { flex-direction: row; justify-content: space-between; align-items: center; }
  .admin-item { flex-direction: column; }
  .admin-item-img { width: 100%; max-width: 200px; }
  .row:not(.wrap-row):not(.tight) { flex-wrap: wrap; }
  .days-table thead { display: none; }
  .days-table tr { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 0; border-bottom: 1px solid var(--border); }
  .days-table td { border: 0; padding: 4px 12px; }
  .days-table td:first-child, .days-table td[colspan] { grid-column: 1 / -1; }
}

/* printable bake sheet */
.print-sheet { background: #fff; color: #000; padding: 24px; max-width: 900px; margin: 0 auto; }
.print-sheet h1 { font-size: 1.8rem; }
.sheet { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.sheet th, .sheet td { border-bottom: 1px solid #ccc; padding: 6px 8px; text-align: left; vertical-align: top; }
.sheet .big { font-size: 1.4rem; font-weight: 700; width: 60px; }
.sheet .box { font-size: 1.3rem; width: 30px; }
@media print { .print-sheet { padding: 0; } }

/* per-unit item options */
.unit-opts { display: flex; flex-direction: column; gap: 6px; }
.unit-opts:empty { display: none; }
.unit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-top: 6px; border-top: 1px dashed var(--border); }
.unit-n { font-size: .8rem; font-weight: 600; color: var(--muted); min-width: 1.8em; }
.unit select { flex: 1 1 calc(100% - 3em); min-width: 0; padding: 7px 10px; font-size: .92rem; }
.unit select ~ label.check { margin-left: calc(1.8em + 8px); }
.unit input[name^=other_] { flex-basis: 100%; padding: 7px 10px; font-size: .92rem; }
.unit label.check { font-size: .92rem; }
.item-body p.small { flex: 0; color: var(--accent-ink); font-weight: 500; }
.opt { color: var(--muted); }
.opt-edit { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.opt-edit summary { cursor: pointer; font-weight: 500; }
.opt-edit[open] { display: flex; flex-direction: column; gap: 10px; }
.opt-edit[open] summary { margin-bottom: 2px; }

/* admin theme page */
.theme-layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 24px; align-items: start; }
.presets { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.presets legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.preset { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; font-size: .9rem; }
.preset input { position: absolute; opacity: 0; width: 1px; }
.preset:has(input:checked) { border-color: var(--accent); outline: 2px solid var(--accent); }
.preset:has(input:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.swatches { display: flex; width: 100%; height: 28px; border-radius: 7px; overflow: hidden; border: 1px solid var(--border); }
.swatches i { flex: 1; }
.colors legend { font-weight: 600; padding: 0 4px; }
.color-row { display: grid; grid-template-columns: 44px 1fr 96px; gap: 10px; align-items: center; }
.color-row label { gap: 0; }
.color-row input[type=color] { width: 44px; height: 40px; padding: 2px; border-radius: 10px; cursor: pointer; }
.hex { font-family: ui-monospace, monospace; font-size: .9rem; padding: 8px; text-transform: lowercase; }
.preview { position: sticky; top: 16px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.preview-bar { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.preview iframe { display: block; width: 100%; height: 720px; border: 0; background: #fff; }
@media (max-width: 900px) {
  .theme-layout { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; }
  .preview iframe { height: 560px; }
}

/* cottage foods */
.cottage-notice { font-size: .82rem; margin: 0 0 6px; }
.site-footer p { margin: 0 0 6px; }
.cottage-box { margin-top: 20px; padding: 14px 16px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; background: var(--surface); font-size: .9rem; }
.cottage-box p { margin: 0 0 10px; color: var(--muted); }
.cottage-box label.check { align-items: flex-start; font-weight: 500; font-size: .95rem; }
.cottage-box label.check input { margin-top: 4px; }
.ingredients { font-size: .85rem; color: var(--muted); flex: 0; }
.ingredients summary { cursor: pointer; color: var(--accent-ink); font-weight: 500; }
.ingredients p { margin: 4px 0 0; }
.checklist { list-style: none; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.checklist li { padding-left: 1.4em; position: relative; }
.checklist li::before { content: "☐"; position: absolute; left: 0; color: var(--accent-ink); }
.checklist blockquote { margin: 6px 0 0; padding: 8px 12px; background: var(--surface-2); border-radius: 8px; font-style: italic; }
.warn { color: var(--danger); }
.meter.wide { width: 100%; height: 10px; margin: 8px 0 14px; }

/* printable labels */
.labels-head { margin-bottom: 16px; }
.labels-head .flash a { color: inherit; }
.labels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.label { border: 1px dashed #999; border-radius: 6px; padding: 10px 12px; font-size: 9.5pt; line-height: 1.3; break-inside: avoid; color: #000; background: #fff; }
.label h2 { font-size: 12pt; margin: 0 0 2px; font-family: inherit; }
.label h2 span { font-weight: 500; }
.label p { margin: 0 0 4px; }
.label-for { font-size: 8pt; color: #555; }
.label-legal { font-size: 7.5pt; color: #222; }
@media print {
  .no-print { display: none !important; }
  .labels-page { padding: 0; }
  @page { margin: 0.4in; }
}
@media (max-width: 640px) { .labels { grid-template-columns: 1fr; } }

/* drop-off address + ZIP */
.address { display: flex; flex-direction: column; gap: 6px; margin: -8px 0 20px; }
.address p { margin: 0; }
.address-fields { display: flex; gap: 12px; align-items: flex-start; }
.address-fields .zip { width: 120px; flex-shrink: 0; }
.zip-msg { color: var(--err-text); font-weight: 600; font-size: .9rem; }
.zip-msg:empty { display: none; }
textarea.hex { text-transform: none; }
.zip-route { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.zip-route .zip { width: 160px; }
.zip-route p { margin: 0; }
.route-box { padding: 12px 16px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; background: var(--surface); margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.route-box p { margin: 0; }
.back-link { max-width: 560px; margin: 12px auto 10px; font-size: .9rem; }
.back-link a { text-decoration: none; }
.back-link a:hover { text-decoration: underline; }
.back-link + .confirm { margin-top: 0; }

/* banner photo behind the name + tagline */
.hero.has-banner { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius);
  padding: clamp(44px, 8vw, 92px) 24px; margin-top: 8px; min-height: clamp(200px, 30vw, 340px);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  background: var(--surface-2) var(--banner) center / cover no-repeat; color: #fff; }
.hero.has-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(0 0 0 / var(--overlay, .45)); }
.hero.has-banner h1 { text-shadow: 0 2px 14px rgb(0 0 0 / 45%); }
.hero.has-banner .tagline, .hero.has-banner .muted, .hero.has-banner p { color: rgb(255 255 255 / 92%); text-shadow: 0 1px 8px rgb(0 0 0 / 45%); }
.banner-editor { display: flex; flex-direction: column; gap: 16px; }
.banner-preview { margin: 0; min-height: 0; aspect-ratio: 3 / 1; padding: 16px; text-align: center; }
.banner-preview h1 { font-size: clamp(1.4rem, 4vw, 2.4rem); margin-bottom: .2em; }
.banner-preview .tagline { font-size: 1rem; }
.file-btn { cursor: pointer; }
.crop-area { display: flex; flex-direction: column; gap: 6px; }
.crop-area img { display: block; max-width: 100%; max-height: 60vh; }
.crop-area .cropper-container { max-height: 60vh; }
input[type=range] { padding: 0; accent-color: var(--accent); }
.spam-note { background: var(--surface-2); border-radius: 10px; padding: 10px 14px; font-size: .92rem; }
.pw-form { max-width: 520px; }
