:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #171d19;
  --muted: #526059;
  --green: #16543e;
  --lime: #e6edaa;
  --mist: #f3f6f3;
  --line: #e2e7e2;
  --white: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #9a5217; outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
p { line-height: 1.55; }
h1, h2 { letter-spacing: -.04em; font-weight: 750; line-height: 1.13; }
h1 { font-size: clamp(1.95rem, 3.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.45vw, 2.2rem); }
h3 { font-size: 1.19rem; line-height: 1.18; letter-spacing: -.02em; }
form { margin: 0; }
.wrap { width: 100%; padding-inline: clamp(14px, 2.7vw, 44px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; transform: translateY(-200%); background: white; z-index: 3; padding: 1rem; }
.skip:focus { transform: none; }
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav, .nav-actions, .footer-inner { display: flex; align-items: center; gap: 1.4rem; }
.nav { min-height: 76px; gap: clamp(16px, 2.4vw, 38px); }
.nav a, .footer-inner a { text-decoration: none; font-weight: 650; }
.nav-market { margin-left: 1.3rem; }
.nav-actions { margin-left: auto; gap: 1.1rem; flex-shrink: 0; }
.brand { display: inline-flex; gap: .55rem; align-items: center; color: var(--ink); font-size: 1.5rem; font-weight: 800 !important; letter-spacing: -.055em; white-space: nowrap; text-decoration: none; }
.mark { background: var(--green); color: var(--lime); width: 35px; height: 35px; display: grid; place-items: center; border-radius: 12px 12px 12px 5px; font: bold italic 1.46rem Georgia, serif; }
.button { display: inline-flex; gap: .55rem; align-items: center; justify-content: center; min-height: 49px; padding: .7rem 1.15rem; background: var(--green); color: var(--white); border: 1px solid var(--green); border-radius: 10px; text-decoration: none; font: inherit; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer; }
.button:hover { background: #103c2d; border-color: #103c2d; }
.button.small { min-height: 40px; padding: .5rem .85rem; font-size: .9rem; }
.button.outline { background: transparent; color: var(--green); border-color: #a7baab; }
.button.outline:hover { background: var(--mist); }
.storefront { padding-top: 22px; }
.market { padding-block: 24px 58px; scroll-margin-top: 1rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.2rem; }
.section-head p { color: var(--muted); margin-top: .5rem; }
.filters { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(138px, 175px) minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.filters label { position: relative; }
.filters input, .filters select { min-height: 44px; padding-left: 2.45rem; border: 1px solid transparent; border-radius: 50px; background: var(--mist); }
.filters input:focus, .filters select:focus { border-color: var(--green); }
.filters select { cursor: pointer; }
.filters .button { min-height: 44px; border-radius: 50px; }
.filter-icon { pointer-events: none; position: absolute; left: 16px; top: 50%; width: 13px; height: 13px; border: 1.7px solid currentColor; }
.pin { transform: translateY(-57%) rotate(-45deg); border-radius: 55% 55% 55% 0; }
.pin::after { content: ""; position: absolute; inset: 3px; border: 1px solid currentColor; border-radius: 50%; }
.magnifier { transform: translateY(-57%); border-radius: 50%; }
.magnifier::after { content: ""; position: absolute; right: -4px; bottom: -3px; width: 6px; height: 1.7px; background: currentColor; transform: rotate(45deg); }
label { display: grid; gap: .42rem; font-size: .88rem; font-weight: 700; min-width: 0; }
input, select, textarea { width: 100%; min-width: 0; padding: .7rem .75rem; min-height: 47px; font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); background: white; border: 1px solid #aebfb2; border-radius: 9px; }
textarea { resize: vertical; }
small { font-weight: 400; color: var(--muted); }
.category-list { display: flex; gap: clamp(8px, 1.7vw, 26px); overflow-x: auto; padding: 4px 4px 13px; border-bottom: 1px solid var(--line); }
.category { flex: 0 0 max-content; min-width: 84px; display: grid; justify-items: center; gap: .38rem; padding: .35rem .5rem; border-radius: 11px; font-size: .86rem; font-weight: 650; color: var(--ink); text-decoration: none; }
.category-icon { display: grid; place-items: center; width: 60px; height: 56px; border-radius: 17px; background: var(--mist); font-size: 1.85rem; }
.category:hover .category-icon, .category.selected .category-icon { background: var(--lime); }
.category.selected { color: var(--green); }
.category:focus-visible { outline-offset: -2px; }
.empty { display: flex; align-items: center; gap: 1.1rem; background: var(--mist); padding: 1.25rem 1.45rem; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }
.empty h3 { color: var(--ink); }
.empty h3 + p { margin-top: .3rem; }
.steps summary { cursor: pointer; font-weight: 650; color: var(--green); }
.steps ol { margin-bottom: 0; padding-left: 1.5em; line-height: 1.6; }
footer { border-top: 1px solid var(--line); }
.footer-inner { flex-wrap: wrap; align-items: baseline; justify-content: space-between; min-height: 75px; padding-block: 1rem; font-size: .9rem; color: var(--muted); }
.frame { padding-block: 38px 65px; }
.frame > * + * { margin-top: 17px; }
.auth { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); align-content: start; gap: clamp(24px, 5vw, 90px); background: var(--mist); min-height: 100%; }
.auth > * + * { margin-top: 0; }
.auth h1 { margin-top: .5rem; }
.auth .panel { max-width: 720px; }
.role-options { padding: .6rem 0 0; border: 0; }
.role-options legend { padding: 0; }
.role-options label { min-height: 48px; display: flex; align-items: center; gap: .55rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.role-options label:has(input:checked) { background: var(--mist); border-color: var(--green); }
.role-options input { min-height: 0; width: auto; margin: 0; accent-color: var(--green); }
.back { display: inline-block; font-size: .9rem; font-weight: 700; margin-bottom: .25rem; }
.panel { background: white; border: 1px solid var(--line); border-radius: 17px; padding: clamp(16px, 3vw, 28px); }
.stack { display: grid; gap: 1rem; }
.stack > .button { justify-self: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
fieldset { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 1rem; }
legend { padding: 0 .45rem; font-weight: 700; }
.thumb { width: 135px; border-radius: 9px; }
.notices { padding-top: 16px; }
.notice { padding: .8rem 1rem; background: var(--mist); border: 1px solid #beceb9; border-radius: 10px; }
.notice.error { background: #fff1e8; border-color: #daa98f; color: #752c13; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr)); gap: 26px 19px; }
.card { position: relative; background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.card:focus-within { outline: 3px solid #9a5217; outline-offset: 3px; }
.card:hover { border-color: #789481; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card-media { position: relative; }
.discount { position: absolute; inset: 12px auto auto 12px; border-radius: 30px; padding: .32rem .62rem; background: var(--green); color: white; font-size: .78rem; font-weight: 750; }
.card-content { padding: .8rem .9rem 1rem; display: grid; gap: .3rem; }
.card-heading { display: flex; justify-content: space-between; align-items: start; gap: .7rem; }
.card-heading .price { flex-shrink: 0; display: grid; justify-items: end; line-height: 1.2; }
.card-heading .price strong { margin-right: 0; }
.card-heading .price del { font-size: .82rem; }
.card-content p { color: var(--muted); }
.offer-photo { width: 100%; aspect-ratio: 1.75; object-fit: cover; background: #eddfb7; }
.placeholder { display: flex; align-items: end; padding: 1rem; gap: .6rem; background: #e4edbc; color: #2b4826; font-weight: 750; }
.placeholder span:first-child { margin-right: auto; font: italic 700 clamp(2rem, 6vw, 4.8rem)/1 Georgia, serif; align-self: start; opacity: .7; }
.placeholder.bread { background: #eee0be; }
.placeholder.meals, .placeholder.sweet { background: #f3d9bb; }
.placeholder.grocery, .placeholder.other { background: #d9eae4; }
.kicker { font-size: .76rem; font-weight: 750; letter-spacing: .06em; color: var(--green) !important; text-transform: uppercase; }
.pickup { font-size: .87rem; }
.price strong { font-size: 1.3rem; color: var(--ink); margin-right: .25rem; }
.price del { color: var(--muted); }
.detail-heading > p { margin-top: .45rem; color: var(--muted); }
.detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 48px); align-items: start; }
.detail .offer-photo { border-radius: 14px; aspect-ratio: 2; max-height: 445px; }
.detail-description { gap: 1.4rem; }
.detail-description h2, .purchase h2 { font-size: 1.18rem; margin-bottom: .35rem; letter-spacing: -.025em; }
.purchase { background: var(--mist); }
.purchase .price strong { font-size: 1.85rem; }
.purchase .info { border-top: 1px solid var(--line); background: transparent; padding: .8rem 0 0; border-radius: 0; }
.purchase .inline { align-items: flex-end; justify-content: space-between; }
.purchase .inline input { width: 5.2rem; }
.purchase .inline .button { flex: 1 1 135px; }
.shop-heading { background: var(--mist); border-radius: 14px; padding: clamp(20px, 4vw, 45px); gap: .55rem; }
.shop-heading p { max-width: 75ch; }
.store-offers > h2 { margin: 1.6rem 0 .85rem; }
.preserve { white-space: pre-line; }
.info { background: var(--mist); padding: .95rem 1rem; border-radius: 10px; }
.section-links { display: flex; flex-wrap: wrap; gap: 1.25rem; padding-bottom: .85rem; border-bottom: 1px solid var(--line); font-weight: 650; }
.section-links a { text-decoration: none; }
.dashboard-grid, .editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 35px); align-items: start; }
.dashboard-grid > section { background: var(--mist); padding: clamp(13px, 1.5vw, 21px); border-radius: 13px; }
.dashboard-grid > section .section-head { align-items: center; }
.dashboard-grid h2, .editor-grid h2 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
.dashboard-grid .empty { background: white; }
.editor-grid > section { height: 100%; align-content: start; }
.schedule-fields { display: grid; gap: .65rem; }
.schedule-fields label { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.dashboard > section { margin-top: 28px; }
.dashboard > section > h2 { margin-bottom: 14px; }
.rows { display: grid; gap: 10px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: white; border: 1px solid var(--line); border-radius: 13px; padding: 1rem; }
.row h3 { margin: .25rem 0; }
.row p { color: var(--muted); }
.inline { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; }
.booking-actions { display: grid; gap: .75rem; justify-items: end; }
.booking-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.status-tag { background: var(--mist); color: var(--ink); padding: .22rem .55rem; border-radius: 50px; font-size: .79rem; font-weight: 700; }
.status-tag.is-pending { background: #e3f0e2; color: var(--green); }
.ticket { min-width: 155px; padding: .55rem .85rem; display: grid; justify-items: start; border: 1px dashed #91ae97; border-radius: 9px; background: var(--mist); font-size: .83rem; }
.code { font-family: ui-monospace, monospace; color: var(--green); font-size: 1.08rem; letter-spacing: .07em; }
@media (max-width: 1000px) {
  .nav, .nav-actions { gap: .85rem; }
  .nav { flex-wrap: wrap; padding-block: .8rem; }
  .filters { flex-basis: 100%; order: 1; }
  .nav-market { display: none; }
}
@media (max-width: 780px) {
  .editor-grid, .dashboard-grid, .detail, .auth { grid-template-columns: minmax(0, 1fr); }
  .auth .panel { max-width: none; }
}
@media (max-width: 590px) {
  .nav { min-height: 68px; gap: .65rem; }
  .nav-actions { gap: .45rem; font-size: .79rem; flex-shrink: 1; }
  .nav-actions .button { padding-inline: .55rem; font-size: .79rem; }
  .brand { font-size: 1.28rem; }
  .mark { width: 31px; height: 31px; }
  .form-grid, .form-grid.three, .schedule-fields label { grid-template-columns: minmax(0, 1fr); }
  .role-options .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .storefront { padding-top: 12px; }
  .market, .frame { padding-block: 22px 35px; }
  .filters { grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
  .filters input, .filters select { font-size: .89rem; }
  .filters .filter-place { grid-column: 1 / -1; }
  .filters .button { padding-inline: .75rem; font-size: .87rem; }
  .filters .search input { padding-left: 2.05rem; }
  .filters .search .filter-icon { left: 12px; }
  .category { min-width: 74px; }
  .category-icon { width: 52px; height: 49px; }
  .section-head, .row { align-items: flex-start; flex-direction: column; }
  .dashboard-grid > section .section-head { align-items: flex-start; }
  .booking-actions { justify-items: start; }
  .footer-inner { gap: 1rem; }
}
