:root {
  color-scheme: light;
  --ink: #15191a;
  --muted: #565f61;
  --paper: #f7f7f3;
  --white: #fff;
  --line: #dfe2dc;
  --teal: #006d62;
  --pale: #e1f3ed;
  --error: #9a2b21;
  font-family: Inter, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; }
:focus-visible { outline: 3px solid #007d77; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
p { line-height: 1.5; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topinner { max-width: 1280px; margin: auto; padding: 15px 30px; display: flex; align-items: center; gap: 34px; }
.brand { font-size: 22px; font-weight: 950; letter-spacing: -.09em; white-space: nowrap; text-decoration: none; }
.brand span { margin-left: .18em; color: var(--teal); }
nav { display: flex; gap: 6px; align-items: center; }
nav a, .segmented a { padding: 9px 13px; text-decoration: none; border-radius: 8px; font-size: .875rem; font-weight: 650; white-space: nowrap; }
nav a[aria-current], .segmented a[aria-current] { background: var(--pale); color: #00594f; }
nav a:hover, .segmented a:hover { background: var(--pale); }
.demo-tag { margin-left: auto; color: var(--muted); letter-spacing: .12em; font: 650 .65rem ui-monospace, monospace; white-space: nowrap; }
.container { max-width: 1280px; margin: auto; padding: 24px 30px 115px; }
.shop-context, .shop-tools, .catalog-meta, .card-header, .order-total, .dialog-heading, .dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop-context { margin-bottom: 17px; flex-wrap: wrap; }
.booth-info { font-size: .88rem; }
.actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.segmented { display: flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: white; }
.segmented a { padding: 6px 10px; }
.button, .icon, .add, .tabs button, .stepper button { min-height: 40px; border: 1px solid transparent; border-radius: 9px; padding: 8px 13px; font-size: .875rem; font-weight: 700; }
.button.primary { background: #142424; color: white; }
.button.primary:hover { background: var(--teal); }
.button.outline, .icon { background: white; border-color: #c8cfca; color: var(--ink); }
.button.outline:hover, .icon:hover, .button.plain:hover { background: var(--pale); }
.button.plain { background: transparent; color: var(--muted); }
.hero { background: var(--collection-color); min-height: 264px; border-radius: 17px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.hero-copy { padding: clamp(22px, 5vw, 65px); align-self: center; }
.eyebrow { color: #365753; font: 700 .72rem ui-monospace, monospace; letter-spacing: .12em; }
.hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.8rem); font-weight: 900; letter-spacing: -.074em; line-height: .96; margin: 12px 0 16px; }
.hero p { color: #2b4946; }
.tile { background-color: var(--tile-color); background-image: url("/merch.webp"); background-repeat: no-repeat; background-size: 300% 200%; }
.tile-0 { background-position: 0 0; }
.tile-1 { background-position: 50% 0; }
.tile-2 { background-position: 100% 0; }
.tile-3 { background-position: 0 100%; }
.tile-4 { background-position: 50% 100%; }
.tile-5 { background-position: 100% 100%; }
.hero-art { width: min(100%, 380px); align-self: center; justify-self: center; aspect-ratio: 1.2; border-radius: 16px; }
.hero-text { grid-template-columns: 1fr; }
.shop-tools { margin: 21px 0 15px; }
.tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tabs button { background: white; border-color: var(--line); }
.tabs button[aria-pressed="true"] { background: #142424; color: white; }
.search input, .field input { width: 100%; border: 1px solid #bec8c1; border-radius: 9px; padding: 10px 12px; min-height: 42px; background: white; color: var(--ink); }
.search { width: min(100%, 280px); }
.catalog-meta { font-size: .85rem; margin-bottom: 11px; }
.check { display: flex; align-items: center; gap: 6px; color: var(--muted); }
input[type="checkbox"] { accent-color: var(--teal); width: 17px; height: 17px; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product { position: relative; background: white; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.product-art { aspect-ratio: 1.2; }
img.product-art { display: block; width: 100%; object-fit: contain; background: #f7f7f3; }
img.hero-art { object-fit: contain; }
.product-text .product-status { position: static; display: inline-block; margin: 9px 9px 0; background: #f1f4ef; }
.product-copy { padding: 13px; }
.product h3 { font-size: 1rem; letter-spacing: -.025em; }
.product p, .product small, .muted, small { color: var(--muted); }
.product p { font-size: .85rem; margin-top: 3px; }
.product-price { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 9px; }
.add { background: #eaf4f0; color: #005b50; padding: 2px 10px; min-width: 42px; font-size: 1.35rem; }
.add:not(:disabled):hover { background: #c9ede2; }
.product-status { position: absolute; top: 10px; left: 10px; padding: 4px 7px; border-radius: 7px; font-size: .7rem; font-weight: 750; background: #fff; }
.product .last-unit { color: #8a4d0c; font-size: .76rem; }
.cart-dock { position: fixed; z-index: 1; bottom: max(14px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(calc(100% - 24px), 450px); display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #bccac2; border-radius: 13px; background: white; padding: 10px 12px 10px 17px; box-shadow: 0 10px 36px #1a30232b; }
.cart-dock small, .lines small, .cart-line small, .pick small { display: block; margin-top: 3px; }
.count { background: var(--pale); color: var(--teal); border-radius: 99px; font: 750 .72rem ui-monospace, monospace; padding: 3px 6px; margin-left: 4px; }
.panel { padding: 21px; background: white; border: 1px solid var(--line); border-radius: 13px; min-width: 0; }
.panel h2 { font-size: 1.2rem; letter-spacing: -.03em; }
.panel > p { margin-top: 12px; }
.station-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin: 16px 0 24px; }
.station-heading h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.04; letter-spacing: -.065em; margin: 6px 0; }
.station-heading p { color: var(--muted); }
.station-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.queue-lists { margin-top: 15px; }
.empty { text-align: center; color: var(--muted); padding: 24px 12px; }
.products > .empty { grid-column: 1 / -1; }
.queue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; align-items: start; }
.lane { background: #edeee9; border-radius: 12px; padding: 12px; }
.lane h2 { font-size: .97rem; margin: 2px 0 12px; display: flex; align-items: center; gap: 8px; }
.lane h2 span { background: #fff; padding: 3px 7px; border-radius: 6px; font-size: .75rem; }
.lane-empty { padding: 20px 0; color: var(--muted); text-align: center; }
.ticket { padding: 13px; margin-top: 9px; }
.ticket h3 { font-size: 1.25rem; letter-spacing: -.04em; }
.status { display: inline-block; font-size: .75rem; font-weight: 720; background: #edf1ee; border-radius: 99px; padding: 5px 9px; text-align: center; }
.status.ready, .status.paid { background: #d7f0e5; color: #005d4b; }
.status.unpaid { background: #fff0cc; color: #714509; }
.status.expired, .status.cancelled { background: #fbe7e0; color: var(--error); }
.lines { list-style: none; padding: 0; margin: 11px 0; text-align: left; }
.lines li { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.lines li:last-child { border: 0; }
.field { font-size: .88rem; font-weight: 650; display: block; margin: 13px 0; }
.field input { display: block; margin-top: 6px; }
.field span { color: var(--muted); font-size: .72rem; margin-left: 6px; }
.order-total { padding: 10px 0; border-top: 1px solid var(--line); }
.error { color: var(--error); background: #fff1eb; border-radius: 7px; padding: 9px; margin: 10px 0; }
.pick { display: flex; gap: 8px; align-items: start; padding: 8px 0; }
.pick input { flex: none; margin-top: 3px; }
.bags input { width: 80px; }
.text-button { border: 0; background: transparent; color: var(--teal); text-decoration: underline; font-weight: 700; padding: 0; }
.order-page { max-width: 520px; margin: auto; }
.back { display: inline-block; margin-bottom: 12px; font-size: .9rem; color: var(--teal); }
.order-panel { text-align: center; padding: 24px; }
.order-panel h1 { font-size: 3.5rem; letter-spacing: -.06em; line-height: 1.1; margin: 7px 0; }
.order-main { display: grid; justify-items: center; gap: 8px; margin: 19px 0; }
.order-summary { text-align: left; }
.hold { color: #714509; }
.qr { display: block; width: min(100%, 180px); height: auto; aspect-ratio: 1; margin: 4px auto; }
.qr-dialog { text-align: center; }
.qr-dialog p { margin-top: 10px; }
dialog { width: min(calc(100% - 24px), 510px); max-height: 90vh; overflow: auto; border: 1px solid var(--line); padding: 20px; border-radius: 15px; color: var(--ink); }
dialog::backdrop { background: #1026248c; }
.dialog-heading { margin-bottom: 13px; }
.dialog-heading h2 { font-size: 1.3rem; }
.dialog-footer { margin-top: 17px; }
.icon { font-size: 1.3rem; padding: 0 11px; }
.cart-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.stepper { display: flex; align-items: center; gap: 7px; }
.stepper button { background: var(--pale); color: var(--teal); min-width: 35px; padding: 4px; }
.scan-tools video { width: 100%; border-radius: 8px; background: #142424; }
.label-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.bag-label { width: 55mm; min-height: 29mm; display: grid; align-content: center; justify-items: center; gap: 3px; border: 1px solid #bbb; background: #fff; color: #000; }
.bag-label strong { font-size: 1.75rem; }
#print-labels { display: none; }
#toast { position: fixed; z-index: 3; bottom: 89px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); padding: 9px 15px; border-radius: 8px; background: #142424; color: white; font-size: .875rem; }
.customer-entry nav, .customer-entry .shop-context .actions { display: none; }
.setup-grid { display: grid; gap: 16px; }
.setup-grid .panel { overflow: auto; }
.setup-grid textarea { width: 100%; min-height: 180px; margin-top: 6px; padding: 10px; resize: vertical; border: 1px solid #bec8c1; border-radius: 9px; }
.setup-grid select { display: block; margin-top: 6px; min-height: 40px; padding: 6px; }
.setup-grid table { border-collapse: collapse; width: 100%; margin: 12px 0; text-align: left; }
.setup-grid td, .setup-grid th { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.setup-grid .button { min-height: 36px; }
@media (max-width: 780px) {
  .topinner, .container { padding-left: 16px; padding-right: 16px; }
  .topinner { gap: 10px; flex-wrap: wrap; }
  nav { order: 3; width: 100%; flex-wrap: wrap; gap: 2px; }
  nav a { padding: 7px 9px; }
  .hero { min-height: 190px; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 3.6rem); }
  .hero-art { aspect-ratio: 1; }
  .shop-tools { align-items: start; flex-direction: column; }
  .search { width: 100%; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-copy { padding: 9px; }
  .queue, .station-grid { grid-template-columns: 1fr; }
}
@media print {
  @page { size: 55mm 29mm; margin: 0; }
  body > :not(#print-labels) { display: none !important; }
  #print-labels { display: block; }
  .bag-label { border: 0; break-after: page; }
  .bag-label:last-child { break-after: auto; }
}
