/* Fonts are served from this site (v2.3): Plus Jakarta Sans, SIL Open Font License (fonts/LICENSE.txt). */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* NE Pantry v1.0.0 */
:root {
  --bg: #F6F5F0;
  --card: #FFFFFF;
  --ink: #1C1B18;
  --muted: #5E5B53;
  --line: #ECE9E1;
  --line-2: #D9D6CC;
  --green: #1F6B4A;
  --green-dark: #174F37;
  --green-tint: #E4EFE8;
  --warn: #9A3F12;
  --warn-tint: #FDF3E7;
  --radius: 14px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.45; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
img { max-width: 100%; display: block; }
h1 { font-size: 24px; line-height: 1.2; margin: 6px 0 8px; letter-spacing: -0.01em; }
h2, .h3 { font-size: 16px; margin: 0 0 10px; }
.h3.mt { margin-top: 18px; }
p { margin: 0 0 10px; }
.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 110px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.block { display: block; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.break { word-break: break-all; }
.warn { color: var(--warn); }
.stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline input { flex: 1; min-width: 140px; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cols > div { display: flex; flex-direction: column; }
@media (max-width: 420px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.version { margin-top: 24px; }
.footnote { margin: 18px 0; }

/* Cards and notices */
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--line-2); color: inherit; }
.center-card { text-align: center; padding: 28px 18px; }
.narrow { max-width: 380px; margin: 40px auto; }
.highlight { border: 2px solid var(--green); background: var(--green-tint); }
.notice { background: var(--warn-tint); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; font-size: 14px; color: #3D3A33; }
.notice-warn { color: var(--warn); }
.flash { border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; font-size: 14px; font-weight: 500; }
.flash-ok { background: var(--green-tint); color: var(--green-dark); }
.flash-error { background: #FBE7E1; color: #8A2E0E; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; background: #EFEDE6; color: var(--muted); margin-left: 4px; }
.tag-warn { background: var(--warn-tint); color: var(--warn); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 12px; background: #EFEDE6; color: var(--ink); }
.badge-to_confirm { background: #FDF3E7; color: var(--warn); }
.badge-to_pay { background: #E8EEF9; color: #1F4B8F; }
.badge-paid, .badge-packed, .badge-sent { background: var(--green-tint); color: var(--green-dark); }
.badge-cancelled, .badge-declined { background: #EFEDE6; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; background: none; color: var(--ink); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-outline { border-color: var(--green); color: var(--green); background: #fff; }
.btn-ghost { border-color: var(--line-2); background: #fff; }
.btn-danger { color: #8A2E0E; }
.btn-block { display: flex; width: 100%; margin: 8px 0; }
.btn-sm { min-height: 40px; font-size: 14px; padding: 0 14px; }
.link-btn { background: none; border: none; color: var(--green); font: inherit; font-weight: 600; cursor: pointer; padding: 8px 4px; min-height: 40px; }
.link-btn.light { color: #fff; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line-2); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions form { margin: 0; }

/* Forms */
.form label, .form legend { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
.form fieldset { border: none; padding: 0; margin: 0; min-width: 0; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #C9C5BA; border-radius: 10px; padding: 10px 12px; min-height: 44px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #9CC9B0; outline-offset: 1px; }
.form .choice { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14px; margin: 8px 0; min-height: 32px; }
.choice input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--green); }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 10px 0 4px; }
.seg label { margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; border: 1px solid var(--line-2); border-radius: 10px; font-weight: 600; cursor: pointer; }
.seg input { width: 16px; height: 16px; min-height: 0; accent-color: var(--green); }
.seg label:has(input:checked) { border: 2px solid var(--green); background: var(--green-tint); }
.seg label:has(input[value="out"]:checked) { border-color: var(--warn); background: var(--warn-tint); color: var(--warn); }
.confirm-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.confirm-item.is-out .qty-input { opacity: .4; }
details summary { cursor: pointer; font-weight: 600; min-height: 32px; }

/* Shop page */
.shop-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }
.shop-name { font-size: 18px; margin: 0; }
.avatar { width: 44px; height: 44px; border-radius: 22px; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.shop-link { display: flex; align-items: center; gap: 12px; }
.batch { margin-bottom: 18px; }
.batch-title { font-size: 22px; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
@media (min-width: 520px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.item-photo { aspect-ratio: 4 / 3; background: #E7EBDF; display: flex; align-items: center; justify-content: center; color: #8A887F; }
.item-photo img { width: 100%; height: 100%; object-fit: cover; }
.item-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item-body .btn, .item-body .stepper, .item-body .sold { margin-top: auto; }
.item-name { font-size: 14px; margin: 0; line-height: 1.25; }
.item-out { opacity: .7; }
.hint { font-size: 12px; color: var(--warn); font-weight: 600; }
.sold { min-height: 40px; border-radius: 10px; background: var(--bg); color: var(--warn); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.stepper { display: flex; align-items: center; justify-content: space-between; background: var(--green-tint); border-radius: 10px; min-height: 40px; }
.stepper[hidden] { display: none; }
.stepper button { width: 44px; height: 40px; border: none; background: transparent; font: inherit; font-size: 20px; color: var(--green); cursor: pointer; }
.stepper span { font-weight: 700; color: var(--green); font-size: 14px; }
.cartbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom)); width: calc(100% - 32px); max-width: 528px; min-height: 56px; border-radius: 16px; background: var(--green); color: #fff; text-decoration: none; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.cartbar[hidden] { display: none; }
.cartbar:hover { color: #fff; background: var(--green-dark); }

/* Lines, totals, timeline */
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F0EEE7; }
.lines li:last-child { border-bottom: none; }
.line-out .grow { text-decoration: line-through; color: var(--muted); }
.line-out .tag { text-decoration: none; }
.cart-line .stepper { min-width: 120px; }
.totals { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.total { font-weight: 700; font-size: 17px; padding-top: 6px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; align-items: center; gap: 12px; padding: 7px 0; color: var(--muted); }
.timeline .dot { width: 14px; height: 14px; border-radius: 7px; border: 2px solid #C9C5BA; flex: none; }
.timeline li.done { color: var(--ink); font-weight: 600; }
.timeline li.done .dot { background: var(--green); border-color: var(--green); }
.pay-card .btn-primary { min-height: 56px; font-size: 16px; }
.events { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.events li { padding: 6px 0; border-bottom: 1px solid #F0EEE7; }

/* Admin */
.admin-bar { background: var(--ink); color: #fff; }
.admin-bar-inner { max-width: 560px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.admin-brand { color: #fff; font-weight: 700; text-decoration: none; margin-right: auto; }
.admin-bar nav { display: flex; gap: 2px; flex-wrap: wrap; }
.admin-bar nav a { color: #E8E6DF; text-decoration: none; padding: 10px 8px; font-size: 14px; font-weight: 500; }
.admin-bar nav a:hover { color: #fff; }
.admin-bar form { margin: 0; }
.tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); text-decoration: none; }
.tab.active { border: 2px solid var(--green); background: var(--green-tint); }
.tab-n { font-size: 18px; font-weight: 700; }
.tab-l { font-size: 11.5px; text-align: center; }
.order-card { display: flex; flex-direction: column; gap: 6px; }
.item-edit-top { display: flex; gap: 12px; align-items: flex-start; }
.thumb { width: 88px; height: 88px; border-radius: 10px; background: #E7EBDF; overflow: hidden; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-edit.draft { border: 2px dashed var(--warn); }
.item-edit.has-error { border: 2px solid #8A2E0E; }
.savebar { position: sticky; bottom: 0; padding: 8px 0 max(8px, env(safe-area-inset-bottom)); background: linear-gradient(to bottom, rgba(246,245,240,0), var(--bg) 30%); z-index: 5; }
.savebar .btn { box-shadow: 0 6px 20px rgba(0,0,0,.15); }

/* Platform admin (v1.0.2) */
.wrap.wide { max-width: 860px; }
.platform .admin-bar-inner { max-width: 860px; }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.table .num { text-align: right; white-space: nowrap; }
pre.log { background: #1C1B18; color: #E8E6DF; border-radius: 10px; padding: 12px; font-size: 12px; line-height: 1.5; overflow: auto; max-height: 480px; white-space: pre-wrap; word-break: break-word; }
.bullets { margin: 4px 0 14px; padding-left: 20px; }
.bullets li { margin: 3px 0; }
.lines details summary { font-size: 13px; color: var(--green); min-height: 0; }
.lines details .inline { margin-top: 8px; }
.backups li { flex-wrap: wrap; }
.backups .grow { flex-basis: 100%; }
.link-btn.btn-danger { color: #8A2E0E; }

/* Reports (v1.0.3) */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.custom-period { padding: 10px 16px; }
.custom-period .cols > div:last-child { justify-content: flex-end; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
@media (min-width: 560px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.kpi-v { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.kpi-l { font-size: 13px; color: var(--muted); }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 10.5px; font-family: var(--font); }
.chart .bar { fill: var(--green); }
.chart .hit { fill: transparent; }
.chart g:hover .bar { fill: var(--green-dark); }
.batch-report { border-top: 1px solid var(--line); padding: 10px 0; }
.batch-report summary { list-style: none; }
.batch-report summary::-webkit-details-marker { display: none; }
.batch-report summary .row { display: flex; }
.downloads .btn { flex: none; }

/* Catalogue (v1.1) */
.arrived { font-size: 12px; font-weight: 600; color: var(--green); }
.tag-ok { background: var(--green-tint); color: var(--green-dark); }
.thumb.sm { width: 56px; height: 56px; border-radius: 8px; display: inline-block; }
.arr-row { padding: 12px 14px; margin-bottom: 0; }
.arr-row.picked { border: 2px solid var(--green); background: #FBFDFB; }
.arr-pick { display: flex; align-items: center; gap: 12px; cursor: pointer; margin: 0 !important; font-size: 14px !important; font-weight: 500 !important; }
.arr-pick input[type=checkbox] { width: 22px; height: 22px; min-height: 0; flex: none; accent-color: var(--green); }
.arr-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.arr-fields label { font-size: 12px !important; }
.span2 { grid-column: span 2; }
.file-sm { font-size: 13px; padding: 8px; }
.form .arr-pick, .arr-pick { display: flex; }

/* Platform stats (v1.2) */
.funnel { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 12px; }
.funnel-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 84px; align-items: center; gap: 10px; font-size: 14px; }
.funnel-bar { width: 100%; height: 14px; display: block; }
.funnel-bar .track { fill: #EFEDE6; }
.funnel-bar .fill { fill: var(--green); }
.funnel-n { text-align: right; font-weight: 600; white-space: nowrap; }
@media (max-width: 420px) { .funnel-row { grid-template-columns: 96px minmax(0, 1fr) 72px; font-size: 13px; } }
textarea.pitch { font-size: 14px; line-height: 1.5; margin-bottom: 8px; }
.platform .kpis { margin-bottom: 14px; }
.table-wide { min-width: 700px; }
.table-wide td:first-child { min-width: 150px; }

/* ===== v1.3 storefront ===== */
.wa-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 22px; background: #1F8F4E; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; flex: none; }
.wa-btn:hover { background: #18733E; color: #fff; }
.item-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.item-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-btn { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; height: 100%; }
.zoom-hint { position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 13px; background: rgba(28,27,24,.6); color: #fff; display: flex; align-items: center; justify-content: center; }
.item-desc { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wrap.wide-shop { max-width: 1120px; }
@media (min-width: 760px) {
  .wide-shop .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .wide-shop .footnote { max-width: 640px; }
}

/* Photo viewer */
.viewer { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; background: #0E0E0C; color: #fff; }
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: rgba(0,0,0,.85); }
.viewer-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 0 16px; }
.viewer-top .muted { color: #B9B6AD; }
.viewer-close { width: 48px; height: 48px; border: 0; background: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.viewer-stage { flex: 1; min-height: 0; overflow: auto; display: flex; align-items: center; justify-content: center; touch-action: pan-x pan-y pinch-zoom; }
.viewer-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; }
.viewer-stage.zoomed { display: block; }
.viewer-stage.zoomed img { max-width: none; max-height: none; width: 200%; cursor: zoom-out; }
.viewer-info { display: flex; align-items: center; gap: 8px; padding: 12px 8px max(16px, env(safe-area-inset-bottom)); max-width: 820px; margin: 0 auto; width: 100%; }
.viewer-info .muted, .viewer-tip { color: #B9B6AD; }
.viewer-info p { margin: 4px 0 0; }
.viewer-nav { flex: none; width: 48px; height: 48px; border-radius: 24px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.viewer-nav:disabled { opacity: .3; cursor: default; }

/* ===== v1.3 products list and arrivals ===== */
.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 10px; margin-top: 4px; }
.status-on { background: var(--green-tint); color: var(--green-dark); }
.status-off { background: var(--warn-tint); color: var(--warn); }
.list-tools { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.list-tools .chips { margin: 0; }
button.chip { font: inherit; font-size: 14px; cursor: pointer; }
.chip .muted { margin-left: 4px; }
.chip.active .muted { color: #D9D6CC; }
.plist { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prow { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "img name name" "price price stock" "sold sold edit"; gap: 8px 12px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: center; }
.prow:first-child { border-top: 0; }
.prow[hidden] { display: none; }
.prow > .thumb { grid-area: img; }
.prow-name { grid-area: name; min-width: 0; }
.prow-name a { color: var(--ink); text-decoration: none; }
.prow-name a:hover { text-decoration: underline; }
.prow-f { display: flex; flex-direction: column; }
.prow-price { grid-area: price; }
.prow-f label { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.prow-f input { min-height: 40px; padding: 8px 10px; }
.prow-stock { grid-area: stock; }
.prow-sold { grid-area: sold; display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 40px; cursor: pointer; }
.prow-sold input { width: 20px; height: 20px; min-height: 0; accent-color: var(--green); }
.prow-edit { grid-area: edit; justify-self: end; }
.prow-head { display: none; }
.split-top { display: grid; gap: 0; }
.draft-grid { display: grid; gap: 12px; }
.two-col { display: grid; gap: 0; }
.product-photo { width: 100%; height: auto; border-radius: 10px; }
.arr-row:has(input[data-pick]:not(:checked)) .arr-fields { display: none; }
.arr-row:not(.picked) .arr-fields { display: none; }
.arr-list { display: grid; gap: 8px; margin-bottom: 14px; }
.arr-row { margin: 0; }

/* ===== v1.3 laptop layouts (960px and wider) ===== */
.orders-empty { display: none; }
.has-order .orders-side { display: none; }
.order-card.active { border: 2px solid var(--green); }
.alerts { display: flex; gap: 6px; flex-wrap: wrap; }
.alert-btn { font: inherit; font-size: 13px; color: #E8E6DF; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; min-height: 34px; padding: 0 12px; cursor: pointer; }
.alert-btn[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.new-banner { position: fixed; left: 50%; transform: translateX(-50%); top: 12px; z-index: 50; background: var(--green); color: #fff; border-radius: 24px; padding: 10px 18px; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.2); text-decoration: none; }
.new-banner:hover { color: #fff; background: var(--green-dark); }

@media (min-width: 960px) {
  body.admin { padding-left: 232px; }
  body.admin .admin-bar { position: fixed; left: 0; top: 0; bottom: 0; width: 232px; overflow-y: auto; z-index: 20; }
  body.admin .admin-bar-inner { max-width: none; flex-direction: column; align-items: stretch; padding: 20px 14px; gap: 18px; min-height: 100%; }
  body.admin .admin-brand { margin: 0 0 4px 8px; font-size: 17px; }
  body.admin .admin-bar nav { flex-direction: column; gap: 2px; }
  body.admin .admin-bar nav a { padding: 10px 12px; border-radius: 8px; font-size: 15px; }
  body.admin .admin-bar nav a:hover, body.admin .admin-bar nav a[aria-current="page"] { background: rgba(255,255,255,.1); }
  body.admin .admin-bar form { margin-top: auto; }
  body.admin .alerts { flex-direction: column; }
  body.admin main.wrap { max-width: 1120px; padding: 28px 32px 80px; margin: 0; }
  .platform main.wrap.wide { max-width: 1120px; }

  .orders-split { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 24px; align-items: start; }
  .orders-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding-right: 4px; }
  .has-order .orders-side { display: block; }
  .orders-empty { display: block; }
  .orders-main .back { display: none; }
  .orders-side .tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
  .orders-side .tab-l { font-size: 10.5px; line-height: 1.15; }
  .orders-side .tab { min-height: 52px; }

  .split-top { grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .draft-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
  .list-tools { flex-direction: row; align-items: center; }
  .list-tools input { max-width: 320px; }

  .prow { grid-template-columns: 56px minmax(0, 1fr) 120px 120px 104px 72px; grid-template-areas: "img name price stock sold edit"; padding: 10px 16px; }
  .prow-head { display: grid; padding: 10px 16px; font-size: 12px; font-weight: 600; color: var(--muted); background: #FAF9F5; }
  .prow-head span:nth-child(3) { grid-area: price; } .prow-head span:nth-child(4) { grid-area: stock; } .prow-head span:nth-child(5) { grid-area: sold; }
  .prow:not(.prow-head) .prow-f label { position: absolute; left: -9999px; }
  .prow-sold span { font-size: 13px; }

  .arr-list { grid-template-columns: 1fr 1fr; }
  .savebar { max-width: 480px; margin-left: auto; }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 420px) { .wa-btn { padding: 0 11px; font-size: 13px; gap: 5px; } .shop-name { font-size: 17px; } }

/* ===== v1.5 UPI apps and QR ===== */
.pay-with { margin: 14px 0 8px; }
.pay-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pay-app { min-height: 52px; border: 1px solid var(--line-2); background: #fff; font-size: 15px; }
.pay-app:hover { border-color: var(--green); color: var(--green-dark); }
.pay-other { background: var(--green); border-color: var(--green); color: #fff; }
.pay-other:hover { background: var(--green-dark); color: #fff; }
.pay-miss { margin: 8px 0 0; color: var(--warn); }
.qr-box { margin: 12px 0 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #FAF9F5; }
.qr-box summary { font-size: 14px; }
.qr-box img { width: 232px; height: 232px; margin: 10px auto; image-rendering: pixelated; border-radius: 8px; background: #fff; }
.qr-box p { text-align: center; }
.qr-box .btn { display: flex; margin: 0 auto 4px; max-width: 220px; }

/* ===== v1.5 logos, home page, your orders ===== */
.logo { flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo-initials { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.logo-xs { width: 28px; height: 28px; font-size: 11px; }
.logo-sm { width: 44px; height: 44px; font-size: 14px; }
.logo-md { width: 52px; height: 52px; font-size: 17px; }
.logo-lg { width: 72px; height: 72px; font-size: 22px; }
.logo-field { display: flex; align-items: center; gap: 14px; }
.logo-field form { margin: 0 0 4px; }
.shop-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shop-head .logo-md { width: 52px; height: 52px; }
.my-orders-link { display: inline-block; margin-top: 2px; font-weight: 600; }

.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 12px; background: #EFEDE6; color: var(--muted); }
.pill-fresh { background: var(--green-tint); color: var(--green-dark); }
.pill-off { background: var(--warn-tint); color: var(--warn); }
.join-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #FAF9F5; border-style: dashed; }
.join-card .h3 { margin-bottom: 4px; }
.join-card p { margin: 0; }

.my-orders { margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.my-orders-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0; }
.my-order { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: inherit; text-decoration: none; }
.my-order:hover { color: inherit; border-color: var(--line-2); }
.my-order.needs-you { border: 2px solid var(--green); background: var(--green-tint); }
.my-order.is-closed { opacity: .7; }
.order-go { font-weight: 600; color: var(--green); white-space: nowrap; font-size: 14px; }
.stack .my-order.card { margin: 0; }

/* ===== v1.5 orders dashboard ===== */
.dash-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 4px 0 10px; }
.dash-head h2 { font-size: 22px; margin: 0; }
.kpi-link { color: inherit; text-decoration: none; }
.kpi-link:hover { border-color: var(--line-2); color: inherit; }
.up { color: var(--green); font-weight: 700; }
.down { color: var(--warn); font-weight: 700; }
.dash .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-week-grid { display: grid; gap: 16px; }
.toplist { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toplist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F0EEE7; font-size: 14px; counter-increment: t; }
.toplist li::before { content: counter(t); width: 20px; color: var(--muted); font-weight: 600; font-size: 13px; flex: none; }
.toplist li:last-child { border-bottom: 0; }
.dash-stock { display: grid; gap: 0; }
.dash-stock .lines li { padding: 7px 0; font-size: 14px; }
.dash-stock .lines a { color: var(--ink); text-decoration: none; }
.dash-stock .lines a:hover { text-decoration: underline; }
.dash-stock .tag { margin-left: 6px; vertical-align: 1px; }
.dash-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.dash-strip .chip { flex: none; min-height: 36px; font-size: 13px; padding: 0 12px; }
.chip-warn { border-color: #EBC9A8; background: var(--warn-tint); color: var(--warn); }
.show-today .orders-side { display: none; }
.show-today .orders-empty { display: block; }
@media (min-width: 960px) {
  .dash-strip { display: none; }
  .show-today .orders-side { display: block; }
  .dash .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dash-week-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; }
  .dash-stock { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .dash-stock .card { margin-bottom: 0; }
}

/* ===== v1.5 device settings ===== */
.alert-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #E8E6DF; text-decoration: none; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; min-height: 34px; padding: 0 12px; background: rgba(255,255,255,.06); }
.alert-status:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.alert-status.on { background: var(--green); border-color: var(--green); color: #fff; }
.alert-status:not(.on) svg { opacity: .7; }
.device-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.device-row .muted.block { margin-top: 2px; }
.switch-btn { flex: none; min-width: 172px; }
.switch-btn[aria-pressed="true"] { background: var(--green); color: #fff; }
@media (max-width: 480px) { .device-row { flex-direction: column; align-items: stretch; } .switch-btn { width: 100%; } }
@media (min-width: 960px) { body.admin .alert-status { align-self: stretch; justify-content: flex-start; padding: 0 12px; min-height: 40px; border-radius: 10px; } }

/* ===== v1.6 paying, sending ===== */
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 11px; background: var(--green-tint); color: var(--green-dark); font-size: 12px; margin-right: 6px; vertical-align: 1px; }
.paid-form { margin-top: 4px; }
.paid-btn { min-height: 56px; font-size: 16px; }
.pay-extra { margin-top: 6px; }
.pay-extra summary { font-size: 14px; font-weight: 600; color: var(--green); }
.pay-extra summary .muted { font-weight: 400; }
.claimed { background: var(--green-tint); border-radius: 12px; padding: 12px 14px; margin: 12px 0 8px; }
.claimed p { margin: 0 0 4px; }
.proof-thumb { display: inline-flex; flex-direction: column; gap: 4px; margin: 4px 0 10px; text-decoration: none; }
.proof-thumb img { width: 140px; max-height: 240px; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line-2); }
.bulk-bar { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px dashed var(--line-2); border-radius: 12px; padding: 8px 10px 8px 14px; margin-bottom: 10px; }
.pick-row { display: flex; align-items: stretch; gap: 8px; }
.pick-row .order-card { flex: 1; min-width: 0; margin: 0; }
.pick { display: flex; align-items: center; padding: 0 4px; cursor: pointer; }
.pick input { width: 22px; height: 22px; min-height: 0; accent-color: var(--green); }
.pick-row.picked .order-card { border-color: var(--green); }

/* ===== v1.6 home page ===== */
.hero { border-radius: 20px; background: #17432F; color: #fff; margin: 4px 0 18px; position: relative; z-index: 5; }
.hero-in { border-radius: 20px 20px 0 0; padding: 24px 20px 20px; background-image: radial-gradient(circle at 92% 8%, rgba(227,178,60,.22), transparent 42%), radial-gradient(circle at 0% 100%, rgba(255,255,255,.07), transparent 50%); }
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero h1 { font-size: 30px; margin: 0 0 6px; color: #fff; }
.hero-lead { font-size: 17px; color: #DCE9E0; margin: 0 0 16px; max-width: 520px; }
.hero-orders { flex: none; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; border: 1px solid rgba(255,255,255,.4); border-radius: 18px; padding: 7px 14px; }
.hero-orders:hover { color: #fff; background: rgba(255,255,255,.12); }
.hero-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.hero-steps li { counter-increment: s; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border-radius: 20px; padding: 6px 12px 6px 6px; color: #DCE9E0; }
.hero-steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 11px; background: #E3B23C; color: #17432F; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.hero-steps strong { color: #fff; font-weight: 600; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 20px 0 10px; }
.sec-head h2 { font-size: 20px; margin: 0; }
.fresh-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin: 0 -2px; }
.fresh-tile { scroll-snap-align: start; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
.fresh-tile:hover { color: inherit; }
.fresh-img { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #E7EBDF; margin-bottom: 6px; }
.fresh-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.fresh-tile:hover .fresh-img img { transform: scale(1.04); }
.fresh-name { font-size: 14px; font-weight: 600; line-height: 1.25; }
.fresh-shop { color: var(--green); font-weight: 600; }

.shop-grid { display: grid; gap: 14px; margin-bottom: 18px; align-items: start; }
@media (min-width: 720px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1060px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shop-card { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.shop-card:hover { border-color: var(--line-2); box-shadow: 0 8px 24px rgba(28,27,24,.08); transform: translateY(-1px); color: inherit; }
.shop-card.is-closed, .shop-card.is-empty { background: #FBFAF6; }
.shop-card.is-closed .logo, .shop-card.is-closed .shop-strip { opacity: .65; }
.shop-card-top { display: flex; align-items: flex-start; gap: 14px; }
.shop-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.shop-card-name { font-size: 18px; font-weight: 700; line-height: 1.25; }
.shop-card-tag { font-size: 14px; color: var(--ink); }
.shop-card-pills { margin-top: 6px; }
.shop-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.shop-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #E7EBDF; }
.shop-card-names { color: var(--muted); line-height: 1.4; }
.shop-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; color: var(--muted); }
.shop-card-go { color: var(--green); font-weight: 700; white-space: nowrap; }
@media (min-width: 760px) { .hero-in { padding: 34px 32px 28px; } .hero h1 { font-size: 38px; } .fresh-scroll { grid-auto-columns: 168px; } }

/* ===== v1.7 install the app ===== */
.install-ok { margin: 6px 0 0; color: var(--green-dark); font-weight: 600; }
.install-nudge { margin: 0 0 14px; }
.install-nudge-in { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid var(--green); border-radius: var(--radius); padding: 12px 14px; }
.install-nudge-in img { border-radius: 10px; flex: none; }
.nudge-actions { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
@media (max-width: 520px) { .install-nudge-in { flex-wrap: wrap; } .nudge-actions { flex-direction: row; width: 100%; justify-content: space-between; } .nudge-actions .btn { flex: 1; } }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.hero-app { background: #E3B23C; border-color: #E3B23C; color: #17432F; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.hero-app:hover { background: #F0C55A; color: #17432F; }
.hero-help { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; font-size: 14px; max-width: 560px; }
.app-ico { border-radius: 12px; flex: none; }
.offline-card { margin-top: 40px; }

/* ===== v1.8 NortheastMart marketplace ===== */
.mkt-bar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.mkt-in { max-width: 560px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 10px; min-height: 56px; }
.mkt-in.wide { max-width: 1120px; }
.mkt-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.mkt-logo img { border-radius: 8px; }
.mkt-logo:hover { color: var(--ink); }
.mkt-logo.big { font-size: 24px; margin-bottom: 18px; }
.mkt-city { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--green-dark); background: var(--green-tint); border-radius: 14px; padding: 4px 10px; text-decoration: none; white-space: nowrap; }
.mkt-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; min-width: 40px; justify-content: center; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; border-radius: 20px; padding: 0 8px; }
.mkt-link:hover { background: var(--bg); color: var(--ink); }
@media (max-width: 420px) { .mkt-logo span { font-size: 15px; } .mkt-link-t { display: none; } .mkt-in { gap: 6px; } }

.hero-city { color: #E3B23C; white-space: nowrap; }
.hero h1 { max-width: 640px; }
.hero-search { position: relative; display: flex; gap: 8px; margin: 4px 0 16px; max-width: 640px; }
.hero-search input[type=search] { flex: 1; min-height: 50px; border-radius: 12px; border: 0; font-size: 16px; padding: 0 14px; }
.hero-search .btn { min-height: 50px; background: #E3B23C; color: #17432F; }
.hero-search .btn:hover { background: #F0C55A; color: #17432F; }
.live-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.18); z-index: 40; max-height: 70vh; overflow-y: auto; padding: 6px; }
.live-results a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.live-results a:hover, .live-results a:focus { background: var(--bg); }
.live-results img, .live-results .lr-ph { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #E7EBDF; flex: none; }
.live-results .lr-h { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 8px 8px 4px; }
.live-results .lr-all { justify-content: center; color: var(--green); font-weight: 700; }
.live-results .lr-none { padding: 12px; color: var(--muted); font-size: 14px; }

.cat-grid { display: grid; gap: 12px; margin: 0 0 8px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat-tile { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.cat-tile:hover { border-color: var(--line-2); box-shadow: 0 6px 18px rgba(28,27,24,.07); color: inherit; }
.cat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-body strong { font-size: 17px; }
.cat-n { color: var(--green-dark); font-weight: 700; white-space: nowrap; }
.cat-ico { width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.cat-ico img { width: 100%; height: 100%; object-fit: cover; }
.cat-ico svg { width: 40px; height: 40px; }
.cat-ico-fresh { background: var(--green-tint); color: var(--green); }
.cat-ico-goods { background: #F5EBDD; color: #7A4A25; }
.cat-ico-lg { width: 72px; height: 72px; }
.cat-ico-lg svg { width: 52px; height: 52px; }
.cat-head { display: flex; align-items: center; gap: 16px; margin: 6px 0 12px; }
.cat-head h1 { margin: 0 0 4px; }
.cat-head p { margin: 0; }
.cat-chips { margin-bottom: 16px; }
.pill-cat { background: #F5EBDD; color: #7A4A25; }
.shop-card-pills { display: flex; flex-wrap: wrap; gap: 4px; }

.prod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
@media (min-width: 640px) { .prod-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
.prod-tile { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
.prod-tile:hover { color: inherit; }
.prod-tile:hover .fresh-img img { transform: scale(1.04); }

.search-page-form { display: flex; gap: 8px; margin: 8px 0 16px; }
.search-page-form input { flex: 1; min-height: 50px; }
.search-page-form .btn { min-height: 50px; }

.cities-page { max-width: 720px; margin: 24px auto; text-align: center; }
.cities-page h1 { font-size: 26px; }
.city-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
@media (min-width: 640px) { .city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.city-tile { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; background: #17432F; color: #fff; border-radius: 16px; padding: 18px; text-decoration: none; }
.city-tile strong { font-size: 19px; }
.city-tile span { color: #E3B23C; font-weight: 700; }
.city-tile:hover { color: #fff; background: #1F5A3F; }
.city-tile.soon { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.city-tile.soon span { color: var(--muted); font-weight: 600; }
.city-tile.soon:hover { border-color: var(--line-2); }
.soon-hero .hero-in { padding-bottom: 26px; }
.hero-kicker { display: inline-block; background: #E3B23C; color: #17432F; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 12px; margin: 0 0 10px; }
.soon-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .soon-grid { grid-template-columns: 1fr 1fr; } }

.shop-head { flex-wrap: wrap; }
.shop-actions { display: flex; gap: 8px; align-items: center; }
.icon-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.icon-pill:hover { border-color: var(--green); color: var(--green-dark); }
.shop-state { margin-top: 6px; }
.notice-hours { background: #FFF6E0; color: #6B4B00; }
.shop-search { margin: 0 0 12px; }
.shop-search input { min-height: 46px; }
.shop-search p { margin: 8px 0 0; }
.share-menu { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: #fff; border-radius: 16px; box-shadow: 0 12px 32px rgba(0,0,0,.22); padding: 10px; display: flex; gap: 8px; z-index: 60; }
.share-menu .btn { min-height: 44px; }
.viewer-share { border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; border-radius: 20px; min-height: 40px; padding: 0 14px; font: inherit; font-weight: 600; cursor: pointer; margin-right: 6px; }
.viewer-top-r { display: flex; align-items: center; }
@media (max-width: 480px) { .shop-actions { width: 100%; } .shop-actions > * { flex: 1; justify-content: center; } }
.hours-grid { display: grid; grid-template-columns: minmax(120px, 1.3fr) 1fr auto 1fr; gap: 8px 10px; align-items: center; margin: 8px 0 12px; }
.hours-grid .choice { margin: 0; }
.hours-grid input[type=time] { min-height: 40px; padding: 6px 8px; }
.hours-to { text-align: center; }
.cat-ico-sm { width: 30px; height: 30px; border-radius: 8px; vertical-align: middle; }
.cat-ico-sm svg { width: 22px; height: 22px; }
.cat-admin { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.cat-admin summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-app { white-space: nowrap; }
.hero-top { flex-wrap: wrap; }
.hero-top h1 { flex: 1 1 260px; }
@media (max-width: 520px) {
  .hero-actions { width: 100%; justify-content: flex-start; margin: -2px 0 12px; }
  .cat-tile { padding: 12px 14px; gap: 12px; }
  .cat-ico { width: 46px; height: 46px; border-radius: 13px; }
  .cat-ico svg { width: 32px; height: 32px; }
  .cat-body .muted { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .cat-grid { gap: 8px; }
}

/* ===== v1.9 ===== */
.confirm-note { background: var(--warn-tint); color: var(--warn); border-radius: 10px; padding: 8px 12px; margin: 10px 0 0; }
.btn-decline { background: #8A2E0E; }
.btn-decline:hover { background: #6E240B; }
.notice-change { background: #FFF6E0; color: #4A3500; }
.notice-change p { margin: 0 0 6px; }
.notice-change p:last-child { margin: 0; }
.confirm-dlg { border: 0; border-radius: 18px; padding: 22px 20px 18px; width: min(92vw, 400px); box-shadow: 0 20px 50px rgba(0,0,0,.25); color: var(--ink); }
.confirm-dlg::backdrop { background: rgba(28,27,24,.5); }
.confirm-msg { font-size: 17px; font-weight: 600; line-height: 1.4; margin: 0 0 18px; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.confirm-actions .btn { min-height: 50px; }

/* v1.9 search results are no longer clipped by the header */
.hero-search { flex-wrap: wrap; }
.hero-search input[type=search] { min-width: 0; }
.live-results { max-height: min(70vh, 560px); }
@media (max-width: 640px) {
  .live-results { position: static; flex-basis: 100%; max-height: none; box-shadow: 0 6px 18px rgba(0,0,0,.15); margin-top: 2px; }
}
/* v1.9 categories: two columns on phones */
@media (max-width: 639px) {
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-tile { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .cat-body .muted { display: none; }
  .cat-body strong { font-size: 16px; }
  .cat-n { font-size: 13px; }
  .cat-ico { width: 44px; height: 44px; }
}
/* v1.9 product page and product links */
.item-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.item-link:hover .item-name { text-decoration: underline; }
.item-more { font-size: 12.5px; font-weight: 700; color: var(--green); }
.product-main { display: grid; gap: 18px; border-radius: 18px; padding: 0; overflow: hidden; margin: 6px 0 22px; }
.product-photo-box { position: relative; aspect-ratio: 1; background: #E7EBDF; }
.product-photo-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-nophoto { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8A887F; }
.product-info { padding: 0 18px 20px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.product-name { font-size: 26px; margin: 4px 0 0; }
.product-price { font-size: 20px; font-weight: 700; margin: 0; }
.product-dh { margin: 12px 0 2px; }
.product-desc { font-size: 15px; line-height: 1.55; white-space: normal; overflow-wrap: anywhere; }
.product-buy { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.product-buy .stepper { min-height: 52px; }
.product-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.product-shopline { margin-top: 10px; }
@media (min-width: 760px) {
  .product-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 0; }
  .product-info { padding: 24px 24px 24px 0; }
  .product-buy { max-width: 360px; }
}

/* v2.0 fees and promotions */
.h4 { font-size: 15px; margin: 0 0 6px; }
.mt { margin-top: 18px; }
.pill-featured { background: #FFF1C9; color: #7A5300; font-weight: 600; }
.shop-card.is-featured { border-color: #E9C46A; box-shadow: 0 0 0 1px #F3DFA6; }
.fresh-tile, .prod-tile { position: relative; }
.tile-featured { position: absolute; top: 8px; left: 8px; z-index: 1; background: #FFF1C9; color: #7A5300; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.st-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.st-row p { margin: 4px 0; }
.st-row .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.st-row .actions form { margin: 0; }
.st-row details { margin-top: 8px; }
.ref-in { width: 160px; padding: 6px 10px; font-size: 14px; }
.st-due { border-color: #E9C46A; }
.big-total { font-size: 28px; font-weight: 700; margin: 4px 0 12px; }
.lines li.total { border-top: 2px solid var(--line-2); }
.promo-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.promo-offer { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.promo-offer p { margin: 4px 0 8px; }
@media (max-width: 560px) { .promo-offers { grid-template-columns: 1fr; } }
.month-pick input { flex: 0 1 200px; }

/* v2.1 */
.tab-hist { background: #FAF9F5; border-style: dashed; }
.tab-hist .tab-n { font-size: 15px; color: var(--muted); }
.tab-hist.active .tab-n { color: inherit; }
.tab-note { margin: -6px 0 10px; }
@media (max-width: 420px) { .tabs { gap: 4px; } .tab-l { font-size: 10.5px; } }
.shop-tabs { position: sticky; top: var(--head-h, 57px); z-index: 20; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; background: var(--bg); padding: 10px 0; margin: 0 0 8px; border-bottom: 1px solid var(--line); }
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tab { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border-radius: 20px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.shop-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.shop-tab-just:not(.active) { color: var(--green-dark); border-color: #BBD7C6; background: var(--green-tint); }
.shop-tabs.is-off .shop-tab.active { background: #fff; color: var(--ink); border-color: var(--line-2); }
.arrived-today { color: #fff; background: var(--green); display: inline-block; width: fit-content; align-self: flex-start; padding: 1px 8px; border-radius: 999px; }
p.arrived-today { margin-right: auto; }
.hero-note { margin: 12px 0 0; font-size: 13px; color: #CFE3D6; max-width: 720px; }
.hero-note a { color: #F3D27A; font-weight: 600; }
.pay-who { margin-top: 4px; }
.pay-who-box { background: var(--green-tint); color: var(--green-dark); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 12px 0; }
.site-foot { border-top: 1px solid var(--line); margin-top: 28px; padding: 14px 0 90px; color: var(--muted); text-align: center; }
.site-foot p { margin: 4px 0; }
.site-foot a { color: var(--muted); }
.about h1 { font-size: 24px; margin: 0 0 8px; }
.about h2 { font-size: 17px; margin: 20px 0 6px; }
.about p { margin: 0 0 8px; }
.about .lead { font-size: 16px; }
.nav-badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: #E3B23C; color: #1C1B18; font-size: 12px; font-weight: 700; text-align: center; margin-left: 4px; }
.notice-inline { color: var(--warn); }
.reply-in { width: 260px; }
.plan-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.plan-choice { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; }
.plan-choice.is-current { border-color: var(--green); background: #F4F9F6; }
.plan-choice.is-next { border-color: #E9C46A; }
.promo-form { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 4px; }
.lines li form { margin: 0; }
.price-now { font-weight: 700; color: var(--ink); }
.price-was { color: var(--muted); font-weight: 400; margin-left: 2px; }
.sale-tag { display: inline-block; background: #FCE4DC; color: #9A3412; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; vertical-align: 1px; }
.product-price .price-was { font-size: .8em; }
.sale-box { border: 1px dashed var(--line-2); border-radius: 12px; padding: 8px 12px; margin: 6px 0 12px; }
.sale-box summary { font-weight: 600; font-size: 14px; cursor: pointer; }

/* v2.2 */
.change-card { border: 2px solid #E9C46A; background: #FFFBF0; }
.change-card h2 { margin-bottom: 8px; }
.change-card p { margin: 6px 0; }
.change-amount { font-size: 17px; }
.change-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 8px; }
.change-actions form { margin: 0; }
.btn-danger-outline { color: var(--warn); border-color: #E7B9A3; }
.notice-adding { background: #EAF2FF; color: #1D3F73; }
.tag-new { background: #EAF2FF; color: #1D3F73; }
.kept-lines li { padding: 6px 0; }
.same-addr { color: #1D3F73; background: #EAF2FF; border-radius: 8px; padding: 3px 8px; margin: 4px 0; font-weight: 600; }
.notice-same { background: #EAF2FF; color: #1D3F73; }
.notice-same a { color: inherit; font-weight: 700; }
.tabbar { display: none; }
.tabbar-n { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #E3B23C; color: #1C1B18; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.more-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 16px; }
.more-list a { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.more-list a strong { font-size: 16px; }
@media (max-width: 959px) {
  body.admin { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body.admin .admin-nav, body.admin .admin-logout { display: none; }
  body.admin .admin-bar-inner { flex-wrap: nowrap; }
  body.admin .admin-brand { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line-2); padding: 4px 4px env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; border-radius: 12px; }
  .tabbar a[aria-current="page"] { color: var(--green-dark); background: var(--green-tint); }
  body.admin .savebar { bottom: calc(64px + env(safe-area-inset-bottom)); }
}
.fee-line { border-top: 1px dashed var(--line-2); margin: 12px 0 0; padding-top: 10px; }
.fee-table td { vertical-align: top; }
.bill-make { border: 1px solid #E9C46A; background: #FFFBF0; border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.bill-make p { margin: 0; }
.bill-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 14px; }
.bill-stats > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.bill-stats strong { font-size: 20px; }
.warn-text { color: var(--warn); }
.st-claimed { border-color: #E9C46A; background: #FFFBF0; }
@media (max-width: 560px) { .bill-stats { grid-template-columns: 1fr; } }
.claim-form { margin-top: 12px; border-top: 1px dashed var(--line-2); padding-top: 10px; }

/* =====================================================================
   v2.3 customer pages
   Palette: sage paper, ink, forest green for actions, madder red for "today"
   and urgent, turmeric for featured. One typeface: Plus Jakarta Sans.
   ===================================================================== */
:root {
  --bg: #F3F4F0;
  --ink: #1B1D1A;
  --muted: #5B6058;
  --line: #E2E5DF;
  --line-2: #CDD2CA;
  --green: #1E5B3F;
  --green-dark: #154430;
  --green-tint: #E3EEE6;
  --madder: #A82B2B;
  --turmeric: #D9A21B;
}
body.cust h1, body.cust .sec-head h2, body.cust .shop-card-name, body.cust .product-name, body.cust .shop-name, body.cust .about h2 { font-weight: 700; letter-spacing: -0.01em; }
body.cust h1 { font-size: 28px; line-height: 1.15; }
body.cust .sec-head h2 { font-size: 21px; }
.wrap.wide-shop, body.cust .wrap { max-width: 1120px; }
body.cust .wrap.narrow-page { max-width: 600px; }

.mkt-bar { box-shadow: none; border-bottom: 1px solid var(--line); }
.mkt-orders { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 20px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.mkt-orders:hover { border-color: var(--green); color: var(--green-dark); }
.mkt-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.mkt-count.is-action { background: var(--madder); }

/* An order that needs the customer, and carts left in a shop */
.needs-you { margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; max-width: 620px; }
.needs-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; }
.needs-bar:hover { color: #fff; background: #2A2D29; }
.needs-bar strong { display: block; font-size: 15px; }
.needs-bar .sub { display: block; font-size: 13px; color: #C9CEC6; }
.needs-bar .go { margin-left: auto; white-space: nowrap; font-weight: 700; color: #F2C14E; }
.cart-links { margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; max-width: 620px; }
.cart-link { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; }
.cart-link .go { margin-left: auto; font-weight: 700; color: var(--green); white-space: nowrap; }

/* Just arrived: tall photos */
.fresh-scroll { grid-auto-columns: 152px; gap: 14px; }
.fresh-tile .fresh-img { aspect-ratio: 4 / 5; border-radius: 10px; }
.fresh-tile .price-now { font-weight: 700; }
.fresh-shop { color: var(--muted); font-weight: 500; }
.fresh-when { color: var(--green); font-weight: 600; }
.fresh-when.is-today { color: var(--madder); }
@media (min-width: 760px) { .fresh-scroll { grid-auto-columns: 176px; } }

/* Join */
.join-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 0; border-top: 1px solid var(--line-2); padding: 18px 0; margin: 10px 0 0; background: none; border-radius: 0; }
.join-card h2 { font-size: 18px; margin: 0 0 2px; }
.join-card p { margin: 0; }
.site-foot { text-align: left; border-top: 1px solid var(--line-2); padding: 18px 0 100px; }
.site-foot a { margin-right: 14px; }
@media (max-width: 420px) { .mkt-orders { padding: 0 10px; } body.cust h1 { font-size: 25px; } }
.orders-group { font-size: 18px; margin: 14px 0 2px; }
.orders-group:first-child { margin-top: 0; }
.my-order.is-action { border: 2px solid var(--ink); background: #fff; }
.my-order.is-action .order-go { color: var(--madder); }

/* v2.3 order page: what to do now on the left, the order on the right (laptops) */
.crumbs { font-size: 14px; color: var(--muted); margin: 4px 0 2px; }
.crumbs a { color: var(--muted); font-weight: 600; text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.lead { font-size: 16px; color: var(--ink); max-width: 60ch; }
.order-layout { display: grid; gap: 0 32px; }
@media (min-width: 960px) {
  .order-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .order-main { max-width: 620px; }
  .order-side { position: sticky; top: 80px; }
}
.next-card { border: 2px solid var(--ink); }
.pay-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pay-label { font-weight: 700; font-size: 16px; }
.pay-amount { font-weight: 700; font-size: 30px; letter-spacing: -0.01em; }
.pay-by { background: #FFF6E0; color: #5C4200; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.on-desk, .on-desk-block { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .pay-card .pay-apps, .pay-card .on-phone, .pay-card .on-phone-block { display: none; }
  .pay-card .on-desk { display: inline; }
  .pay-card .qr-box summary { display: none; }
  .pay-card .qr-box img { width: 260px; height: 260px; }
}
.order-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 6px 0 18px; font-size: 14px; }
.order-links a, .order-links .link-btn { font-weight: 600; padding: 8px 0; min-height: 0; }
.order-links form { margin: 0; }
.link-danger { color: #8A2E0E; }
.done-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.done-actions form { margin: 0; }
.line-edit { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.line-edit form { margin: 0; }
.line-edit .btn-sm { min-width: 40px; padding: 0 10px; }

/* v2.3 checkout: form on the left, the cart on the right (laptops) */
.checkout-layout { display: grid; gap: 0 32px; }
@media (min-width: 960px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .checkout-cart { grid-column: 2; grid-row: 1; position: sticky; top: 80px; }
  .checkout-main { grid-column: 1; grid-row: 1; max-width: 620px; }
}
.checkout-main fieldset { margin-top: 14px; }
#checkout-form fieldset legend { margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.checkout-note { font-size: 13.5px; }

.next-step { border: 2px solid var(--green); background: var(--green-tint); }
.install-steps { margin: 6px 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.install-dlg h2 { margin: 0 0 6px; }
.install-dlg .confirm-actions { flex-wrap: wrap; }
@media (max-width: 959px) {
  body.admin .alert-status { min-height: 32px; padding: 0 10px; font-size: 12px; }
}

/* Header on small phones: brand, city, search and Orders must fit 360px */
.mkt-logo { min-width: 0; }
.mkt-logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) {
  .mkt-in { gap: 4px; padding: 8px 12px; }
  .mkt-logo { gap: 6px; }
  .mkt-logo span { font-size: 15px; }
  .mkt-city { padding: 4px 8px; font-size: 12.5px; }
  .mkt-orders svg { display: none; }
  .mkt-orders { padding: 0 2px 0 6px; gap: 5px; border: 0; }
  .mkt-link { min-width: 34px; padding: 0 2px; }
}
@media (max-width: 370px) { .mkt-logo span { display: none; } }

/* Labels as text, not pills (v2.3) */
.arrived, .arrived-today { background: none; padding: 0; border-radius: 0; font-size: 12.5px; font-weight: 700; }
.arrived { color: var(--green); }
.arrived-today { color: var(--madder); }
.product-cat { display: inline-block; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; margin-bottom: 2px; }
.product-cat:hover { color: var(--green); }
a.icon-pill { text-decoration: none; }

/* =====================================================================
   v2.3.1 home: the green hero with the three steps, category cards,
   shop cards with four photos. No pattern borders.
   ===================================================================== */
.hero { background: #17432F; color: #fff; border-radius: 20px; margin: 6px 0 16px; position: relative; z-index: 5; }
.hero-in { position: relative; border-radius: 20px; padding: 22px 20px 20px; background-image: none; }
.hero-top { display: block; }
.hero h1, body.cust .hero h1 { color: #fff; font-size: 28px; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; max-width: 18ch; }
.hero-city { color: #E3B23C; white-space: nowrap; }
.hero-actions { display: block; margin-top: 16px; }
.hero-actions[hidden] { display: none; }
.hero-app { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 20px; border: 0; background: #E3B23C; color: #17432F; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.hero-app:hover { background: #F0C55A; color: #17432F; }
.hero-search { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; max-width: 640px; }
.hero-search input[type=search] { flex: 1; min-width: 0; min-height: 50px; border-radius: 12px; border: 0; font-size: 16px; padding: 0 14px; background: #fff; }
.hero-search input[type=search]:focus { outline: 3px solid #E3B23C; outline-offset: 0; }
.hero-search .btn { min-height: 50px; padding: 0 18px; border-radius: 12px; background: #E3B23C; color: #17432F; font-weight: 700; }
.hero-search .btn:hover { background: #F0C55A; color: #17432F; }
.hero-steps { list-style: none; counter-reset: s; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.hero-steps li { counter-increment: s; display: flex; align-items: baseline; gap: 10px; background: none; border-radius: 0; padding: 0; color: #CFE0D5; line-height: 1.4; }
.hero-steps li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 11px; background: #E3B23C; color: #17432F; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; transform: translateY(1px); }
.hero-steps strong { color: #fff; font-weight: 700; }
.hero-note { margin: 0; font-size: 13.5px; line-height: 1.5; color: #B9CEC0; max-width: 70ch; }
.hero-note a { color: #F2C14E; font-weight: 600; white-space: nowrap; }
.hero-note a:hover { color: #FFD772; }
@media (min-width: 760px) {
  .hero-in { padding: 32px 36px 28px; }
  .hero h1, body.cust .hero h1 { font-size: 42px; max-width: 20ch; margin-bottom: 18px; }
  .hero-actions { position: absolute; top: 30px; right: 32px; margin: 0; }
  .hero-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
  .hero-steps li { border-top: 1px solid rgba(255,255,255,.18); padding-top: 12px; }
}
.hero-kicker { text-transform: none; letter-spacing: 0; font-size: 13px; }
.needs-you, .cart-links { max-width: 640px; }

/* Categories: what each one is, with an icon */
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 8px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; } }
.cat-tile { display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: visible; color: inherit; text-decoration: none; }
.cat-tile:hover { border-color: var(--line-2); box-shadow: none; color: inherit; }
.cat-tile .cat-ico { width: 52px; height: 52px; border-radius: 14px; }
.cat-tile .cat-ico svg { width: 34px; height: 34px; }
.cat-tile .cat-body { flex: 1; min-width: 0; padding: 0; gap: 2px; }
.cat-tile .cat-body strong { font-size: 17px; }
.cat-blurb { font-size: 13.5px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-tile .cat-n { font-size: 13.5px; color: var(--green-dark); font-weight: 700; white-space: nowrap; }
@media (max-width: 639px) {
  .cat-grid { grid-template-columns: 1fr; gap: 10px; }
  .cat-tile { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
  .cat-tile .cat-ico { width: 46px; height: 46px; border-radius: 12px; }
  .cat-tile .cat-ico svg { width: 30px; height: 30px; }
}

/* Shop cards: who and when, then four photos of what is in now */
.shop-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; overflow: visible; background: #fff; border: 1px solid var(--line); }
.shop-card:hover { border-color: var(--line-2); box-shadow: none; transform: none; }
.shop-card.is-featured { border-color: #E3B23C; box-shadow: 0 0 0 1px #E3B23C; }
.shop-card-top { display: flex; align-items: center; gap: 12px; }
.shop-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
body.cust .shop-card-name { font-size: 18px; line-height: 1.2; }
.sc-area { font-size: 13px; color: var(--muted); }
.sc-status { font-size: 13px; margin-top: 2px; }
.sc-status:empty { display: none; }
.sc-fresh { font-weight: 700; color: var(--green); }
.sc-fresh.is-today { color: var(--madder); }
.sc-off { font-weight: 600; color: var(--warn); }
.shop-card-top .pill-featured { align-self: flex-start; flex: none; background: #E3B23C; color: #17432F; border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.shop-card-tag { font-size: 14px; color: var(--ink); margin-top: -4px; }
.shop-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.strip-cell { position: relative; display: block; }
.strip-cell img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #E7EBDF; }
.strip-more { position: absolute; inset: 0; border-radius: 10px; background: rgba(27,29,26,.55); color: #fff; font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.shop-card-names { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.shop-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; font-size: 13.5px; color: var(--muted); }
.shop-card-go { color: var(--green); font-weight: 700; white-space: nowrap; }
.shop-card.is-closed .shop-strip, .shop-card.is-closed .logo { opacity: .65; }
@media (max-width: 420px) { .hero-search .btn { padding: 0 14px; } .hero-search input[type=search] { padding: 0 12px; } }

/* v2.4: phone notifications for an order (customers) */
.notify-card { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px dashed var(--line-2); }
.notify-card[hidden] { display: none; }
.notify-card.is-on { border-style: solid; border-color: var(--green-tint); background: var(--green-tint); }
.notify-text { margin: 0; flex: 1 1 220px; font-size: 14px; }
.notify-actions { display: flex; align-items: center; gap: 12px; }
.notify-actions [hidden] { display: none; }

/* v2.4: two-step sign-in (platform admin) */
.codes { columns: 2; list-style: none; padding: 0; margin: 8px 0 0; font-size: 15px; }
.codes li { padding: 2px 0; }
.totp-qr { display: block; margin: 6px 0 4px; border: 1px solid var(--line); border-radius: 8px; image-rendering: pixelated; }
.key-text { word-break: break-all; }
.setup-steps { padding-left: 20px; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.legal ul { padding-left: 20px; margin: 0 0 10px; }
.legal li { margin: 0 0 6px; line-height: 1.5; }
.agree { margin: 8px 0 0; }

/* v2.4.1: Search page */
.search-page-form input[type=search] { font-size: 16px; }
.try-head { margin: 16px 0 8px; font-size: 15px; }
.try-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-results { min-height: 40vh; }

/* v2.4.1: platform admin menu (side menu on laptops, bottom bar on phones, tabs inside Billing) */
.admin-brand-sub { font-weight: 500; opacity: .7; }
.nav-gap { display: none; }
@media (min-width: 960px) {
  body.admin .admin-bar nav .nav-gap { display: block; height: 1px; margin: 10px 12px; background: rgba(255,255,255,.14); }
}
.subtabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 14px; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.subtabs a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.subtabs a:hover { color: var(--ink); }
.subtabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.subtabs a[aria-current="page"] .nav-badge { background: #E3B23C; }

/* v2.4.1: a shop paying NortheastMart (statements, promotions): same buttons and QR as customers */
.fee-pay { margin: 4px 0 6px; }
.fee-pay-head { font-weight: 600; margin: 0 0 8px; }
.fee-pay .qr-box img { display: block; width: 220px; height: 220px; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .fee-pay .pay-apps, .fee-pay .on-phone { display: none; }
  .fee-pay .on-desk { display: inline; }
  .fee-pay .qr-box summary { display: none; }
}

/* v2.4.2: arrival labels are both green; "Arrived today" is bold with a small live dot */
.arrived, .fresh-when, .sc-fresh { color: var(--green); font-weight: 600; }
.arrived-today, .fresh-when.is-today, .sc-fresh.is-today { color: var(--green); font-weight: 700; }
.arrived-today::before, .fresh-when.is-today::before, .sc-fresh.is-today::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 5px 1px 0; border-radius: 50%; background: currentColor; vertical-align: middle; }

/* v2.4.2: telling customers about an arrival */
.share-preview { background: #fff; border: 1px solid var(--line); border-left: 4px solid #25D366; border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.55; margin: 8px 0 12px; white-space: normal; overflow-wrap: anywhere; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-actions [hidden] { display: none; }
.share-pic-head { margin: 18px 0 2px; }
.share-pic { display: block; width: 100%; max-width: 360px; height: auto; border-radius: 12px; margin: 8px 0 10px; border: 1px solid var(--line); }

/* v2.5: follow a shop (arrival notifications) */
.follow-pill[hidden], .follow-note[hidden] { display: none; }
.follow-pill.is-on { background: var(--green-tint); border-color: var(--green-tint); color: var(--green-dark); }
.follow-pill.is-on svg path:first-child { fill: currentColor; }
.follow-pill:disabled { opacity: .6; cursor: progress; }
.follow-note { margin: -8px 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--green-tint); color: var(--green-dark); }
.follow-send { margin: 18px 0 4px; padding-top: 14px; border-top: 1px solid rgba(31,107,74,.18); }
.follow-send form { margin: 0; }
.follow-sent { margin: 6px 0 0; color: var(--green-dark); font-weight: 600; }
.follow-why { margin: 6px 0 0; }
.push-preview { display: flex; gap: 10px; align-items: flex-start; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 8px 0 12px; font-size: 13px; line-height: 1.4; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.push-preview strong { font-size: 14px; }

/* v2.5: platform product moderation */
.search-row { display: flex; gap: 8px; margin: 0 0 12px; }
.search-row input { flex: 1; min-width: 0; }
.search-row .btn { min-height: 44px; }
.mod-list { padding: 4px 16px; }
.mod-item { align-items: flex-start !important; flex-wrap: wrap; }
.mod-item .thumb.sm { margin-top: 2px; }
.mod-item .grow { flex: 1 1 200px; min-width: 0; }
.mod-item.is-blocked strong { text-decoration: line-through; text-decoration-color: rgba(138,46,14,.5); }
.mod-why { color: #8A2E0E; margin-top: 4px; }
.mod-desc { margin-top: 2px; }
.mod-hide { flex: 1 1 100%; margin-left: 68px; }
.mod-hide[open] { padding: 6px 0 4px; }
.mod-reasons { margin: 4px 0 8px; }
.mod-reasons .choice { margin: 4px 0; }
.btn-hide, .mod-hide .btn-danger { background: #8A2E0E; color: #fff; border-color: #8A2E0E; }
.btn-hide:hover, .mod-hide .btn-danger:hover { background: #6E2409; color: #fff; }
.blocked-note a { color: inherit; font-weight: 600; }
@media (min-width: 700px) { .mod-hide { flex: 0 0 auto; margin-left: 0; } .mod-hide[open] { flex: 1 1 100%; margin-left: 68px; } }

/* v2.5: Get listed */
.join-grid { display: grid; gap: 18px; margin-top: 4px; }
@media (min-width: 860px) { .join-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; } .join-intro { position: sticky; top: 16px; } }
.join-intro h1 { font-size: 26px; line-height: 1.2; margin: 0 0 8px; }
.join-intro .lead { font-size: 16px; margin: 0 0 14px; }
.join-steps { list-style: none; counter-reset: js; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.join-steps li { counter-increment: js; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.45; }
.join-steps li::before { content: counter(js); width: 28px; height: 28px; border-radius: 50%; background: var(--green-tint); color: var(--green-dark); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.join-steps strong { display: inline; }
.join-help { margin-top: 6px; border-color: #1F8F4E; color: #18733E; }
.join-help svg { color: #1F8F4E; }
.join-form fieldset { margin-top: 4px; }
.check-row { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.join-done { max-width: 560px; }
.join-done h1 { font-size: 24px; margin: 0 0 6px; }
.join-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* v2.5: platform requests */
.req-card .row { align-items: baseline; }
.req-card h2 { margin: 0; }
.req-lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; margin: 10px 0; }
.req-lines div { min-width: 0; }
.req-lines dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.req-lines dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.req-note { background: #FAF9F5; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0 0 10px; }
.req-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.req-actions form { margin: 0; }

/* v2.5: visits */
.search-stats { gap: 18px; }
.search-stats .lines li { padding: 8px 0; }
.shop-visits .h4 { margin-top: 16px; }
.shop-visits .chart { margin-top: 10px; }
.chart-count { max-width: 640px; }

/* v2.5.1: shop header: tagline and where the shop is on their own lines */
.shop-tagline { margin: 3px 0 0; font-size: 15px; line-height: 1.35; color: var(--ink); }
.shop-place { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.shop-place svg { flex: none; color: var(--green); }
.shop-place .shop-state { margin: 0 0 0 4px; }

/* v2.5.1: staying logged in */
.stay-choice { margin-top: 14px !important; }
.stay-note { margin: -4px 0 8px 30px; }
.pin-check h1 { margin: 0 0 8px; }

/* v2.5.3: the shop app on iPhone: the dark bar runs up behind the status bar; the bottom buttons sit right on the tab bar */
body.admin::before { content: ''; position: fixed; left: 0; right: 0; top: 0; height: env(safe-area-inset-top); background: var(--ink); z-index: 60; pointer-events: none; }
body.admin .admin-bar { padding-top: env(safe-area-inset-top); }
@media (min-width: 960px) { body.admin .admin-bar { padding-top: 0; } body.admin::before { display: none; } }
@media (max-width: 959px) {
  body.admin .savebar { bottom: calc(63px + env(safe-area-inset-bottom)); padding: 14px 0 8px; background: linear-gradient(to bottom, rgba(242,241,236,0), var(--bg) 14px); margin-bottom: -8px; }
  body.admin .savebar { transition: opacity .15s, visibility .15s; }
  body.admin .savebar.savebar-tucked { opacity: 0; visibility: hidden; }
}

/* v2.5.3: sending forms and photos */
.form-fail { margin: 10px 0 0; }
.is-sending { opacity: .8; cursor: progress; }
.keep-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 8px 0 12px; }
.keep-note .link-btn { min-height: 0; padding: 0 4px; }

/* v2.5.3: What shops see (fees and promotions) */
.mode-set { margin: 6px 0 4px; }
.mode-set legend { font-weight: 700; font-size: 14px; margin: 8px 0 6px; }
.mode-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mode-pick-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form .mode-pick label { margin: 0; display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; cursor: pointer; font-weight: 500; background: #fff; }
.mode-pick label:has(input:checked) { border: 2px solid var(--green); background: var(--green-tint); padding: 9px 11px; }
.mode-pick input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.mode-pick span { display: flex; flex-direction: column; gap: 2px; }
.mode-pick small { color: var(--muted); font-size: 12.5px; line-height: 1.35; font-weight: 400; }
@media (max-width: 560px) { .mode-pick { grid-template-columns: 1fr; } }
.plan-delete { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }

/* v2.5.4: demo shops, the platform looking at a shop's screens, going live */
.view-as-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.view-as-bar form { margin: 0; }
.demo-note { margin-bottom: 12px; }
.shop-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.shop-actions form { margin: 0; }
.demo-link { word-break: break-all; }
.golive-cols h3 { margin: 12px 0 4px; }
.golive-form { margin-top: 12px; }
.badge-demo { background: #FFF1D6; color: #6B4B00; }
.badges { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.alert-status[hidden] { display: none; }
