:root {
  --green: #1B7F3B;
  --green-dark: #145F2C;
  --green-soft: #DDF1E3;
  --green-tint: #F1FAF3;
  --yellow: #F6B800;
  --yellow-soft: #FFF4D6;
  --red: #E63B2E;
  --red-dark: #A3241A;
  --red-soft: #FBE0DC;
  --brown: #3A2416;
  --muted: #6B5444;
  --faint: #8A735F;
  --line: #E8DCC6;
  --sand: #F3E6D6;
  --photo: #EFE3D0;
  --bg: #FFF8EC;
  --white: #FFFFFF;
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--brown);
  font-family: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--green); }
a:hover { color: var(--green-dark); }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 900; }
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Boot */
.boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--bg); color: var(--brown); }
.boot-word { font-size: 46px; font-weight: 900; color: var(--green); line-height: 1; letter-spacing: -1px; }
.boot-sub { font-weight: 800; font-size: 17px; color: var(--brown); }

/* Shell */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--green); color: #fff; display: flex; align-items: center; gap: 6px; padding: 8px 8px; padding-top: max(8px, env(safe-area-inset-top)); }
.topbar .word { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; line-height: 1; }
.topbar .place { font-size: 12px; font-weight: 700; color: #E3F4E8; }
.topbar .grow { flex: 1; min-width: 0; }
.icon-btn { width: 44px; height: 44px; border: none; background: transparent; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; position: relative; color: inherit; flex-shrink: 0; }
.icon-btn:hover { background: rgba(255,255,255,0.12); }
.badge { position: absolute; right: 2px; top: 2px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }
.main.wide { max-width: 1180px; }

/* Drawer */
.drawer-wrap { position: fixed; inset: 0; z-index: 50; display: flex; }
.drawer { width: 290px; max-width: 86vw; height: 100%; background: #fff; padding: 16px 14px; display: flex; flex-direction: column; gap: 4px; box-shadow: 4px 0 24px rgba(0,0,0,0.2); overflow-y: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 12px; border-bottom: 1.5px solid var(--line); margin-bottom: 8px; }
.drawer-head .word { font-size: 28px; font-weight: 900; color: var(--green); }
.drawer a.nav, .drawer button.nav { display: flex; align-items: center; height: 50px; padding: 0 14px; border-radius: 12px; border: none; background: transparent; color: var(--brown); font-size: 16px; font-weight: 700; text-decoration: none; text-align: left; width: 100%; }
.drawer .nav.active { background: var(--green-soft); color: var(--green-dark); font-weight: 900; }
.drawer .who { padding: 12px 6px 4px; font-size: 13px; color: var(--muted); font-weight: 700; word-break: break-all; }
.drawer .ver { padding: 8px 6px; font-size: 12px; color: var(--faint); font-weight: 700; }
.drawer-scrim { flex: 1; border: none; background: rgba(40,24,12,0.4); }

/* Generic */
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.bold { font-weight: 800; }
.green { color: var(--green); }
.red { color: var(--red-dark); }
.center { text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 900; background: var(--sand); color: var(--brown); }
.pill.green { background: var(--green-soft); color: var(--green-dark); }
.pill.yellow { background: var(--yellow-soft); color: #7A4A00; }
.pill.red { background: var(--red-soft); color: var(--red-dark); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 14px; border: none; background: var(--green); color: #fff; font-weight: 900; font-size: 15px; text-decoration: none; }
.btn:hover { background: var(--green-dark); color: #fff; }
.btn.block { width: 100%; }
.btn.red { background: var(--red); color: #fff; }
.btn.red:hover { background: #C4291D; }
.btn.yellow { background: var(--yellow); color: var(--brown); }
.btn.ghost { background: #fff; color: var(--brown); border: 1.5px solid var(--line); font-weight: 800; }
.btn.ghost:hover { background: var(--bg); color: var(--brown); }
.btn.outline { background: #fff; color: var(--green); border: 2px solid var(--green); }
.btn.outline-red { background: #fff; color: var(--red-dark); border: 1.5px solid var(--red); font-weight: 800; }
.btn.sm { min-height: 40px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.seg button { min-height: 48px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-weight: 800; }
.seg button.on { border-color: var(--green); background: var(--green); color: #fff; font-weight: 900; }

label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 800; }
.input, select.input, textarea.input { width: 100%; min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; padding: 0 12px; font-size: 15px; font-weight: 600; }
textarea.input { padding: 10px 12px; min-height: 80px; resize: vertical; }
.input:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.hint { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Home */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.cats button { height: 36px; padding: 0 6px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cats button.on { background: var(--green); border-color: var(--green); color: #fff; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; height: 48px; }
.search input { border: none; outline: none; background: transparent; font-size: 15px; flex: 1; min-width: 0; }
.store-card { display: flex; gap: 12px; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px; text-decoration: none; color: var(--brown); }
.store-card:hover { color: var(--brown); border-color: #D6C7AE; }
.store-card.closed { opacity: 0.6; }
.logo { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); flex-shrink: 0; background: #fff; }
.logo-ph { width: 64px; height: 64px; border-radius: 12px; background: #FDEBC2; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; color: #7A4A00; flex-shrink: 0; }
.store-name { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 900; }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); font-weight: 700; }

/* Store / menu */
.banner { width: 100%; height: 150px; object-fit: contain; background: #fff; border-radius: var(--radius); border: 1.5px solid var(--line); }
.tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; }
.tabs button { flex-shrink: 0; height: 42px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; }
.tabs button.on { background: var(--green-soft); border-color: var(--green-soft); color: var(--green-dark); font-weight: 900; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.item { position: relative; border-radius: 14px; overflow: hidden; background: var(--photo); min-height: 236px; display: flex; flex-direction: column; justify-content: flex-end; }
.item.big { grid-column: span 2; min-height: 290px; }
.item img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #9A8670; }
.item .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(to top, rgba(40,24,12,0.82), rgba(40,24,12,0)); }
.item .info { position: relative; padding: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; color: #fff; }
.item .nm { font-weight: 900; font-size: 14px; line-height: 1.2; }
.item.big .nm { font-size: 18px; }
.item .pr { font-weight: 900; color: #FFD34D; }
.item .tag { position: absolute; left: 8px; top: 8px; z-index: 1; }
.add { width: 40px; height: 40px; border-radius: 12px; border: none; background: var(--green); color: #fff; font-size: 22px; font-weight: 900; line-height: 1; flex-shrink: 0; }
.item.soldout { filter: grayscale(0.6); }

/* Cart */
.line { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #F1E7D6; }
.line:last-child { border-bottom: none; }
.thumb { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; background: var(--photo); flex-shrink: 0; }
.thumb-ph { width: 60px; height: 60px; border-radius: 12px; background: var(--photo); flex-shrink: 0; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--green); background: #fff; color: var(--green); font-size: 18px; font-weight: 900; line-height: 1; }
.qty button.plus { background: var(--green); color: #fff; border: none; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .grand { font-size: 18px; font-weight: 900; border-top: 1.5px dashed var(--line); padding-top: 8px; margin-top: 4px; }

/* Order status */
.status-hero { background: var(--green); color: #fff; border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: center; }
.status-hero img { width: 56px; height: 56px; border-radius: 14px; }
.status-hero .t { font-size: 20px; font-weight: 900; }
.status-hero .h { font-size: 13px; font-weight: 700; color: #E3F4E8; }
.status-hero.warn { background: var(--yellow); color: var(--brown); }
.status-hero.warn .h { color: #4A3010; }
.status-hero.bad { background: var(--red-dark); }
.steps { display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--faint); }
.step.done { color: var(--brown); font-weight: 800; }
.dot { width: 24px; height: 24px; border-radius: 50%; border: 2.4px solid #D6C7AE; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.step.done .dot { background: var(--green); border-color: var(--green); }
.paybox { border: 2px solid var(--green); }
.qr { width: 200px; height: 200px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #fff; margin: 0 auto; }
.countdown { font-weight: 900; color: var(--red-dark); }
.stars { display: flex; gap: 4px; }
.stars button { width: 40px; height: 40px; border: none; background: transparent; padding: 0; }

/* Seller / admin */
.seller-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.seller-head img { width: 110px; height: 56px; object-fit: contain; background: #fff; border-radius: 12px; border: 1.5px solid var(--line); }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.col { background: #F7EEDF; border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.col-head { display: flex; justify-content: space-between; align-items: center; font-weight: 900; padding: 2px 4px; }
.count { min-width: 28px; height: 28px; border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; }
.ocard { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ocard .code { font-size: 18px; font-weight: 900; }
.proof { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat .v { font-size: 26px; font-weight: 900; }
.stat .k { font-size: 13px; font-weight: 800; color: var(--muted); }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.mrow { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-top: 1px solid #F1E7D6; }
.mrow:first-child { border-top: none; }
.switch { min-width: 110px; height: 38px; border-radius: 999px; border: none; font-weight: 900; font-size: 13px; padding: 0 12px; }
.switch.on { background: var(--green); color: #fff; }
.switch.off { background: #fff; color: var(--red-dark); border: 1.5px solid var(--red); }
.toggle-open { display: flex; background: var(--sand); border-radius: 14px; padding: 4px; gap: 4px; }
.toggle-open button { height: 40px; padding: 0 16px; border-radius: 10px; border: none; background: transparent; font-weight: 700; color: var(--muted); }
.toggle-open button.on { background: #fff; color: var(--brown); font-weight: 900; box-shadow: 0 1px 3px rgba(58,36,22,0.15); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.imgpick { display: flex; align-items: center; gap: 12px; }
.imgpick img, .imgpick .ph { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--photo); border: 1px solid var(--line); flex-shrink: 0; }

/* Modal + toast */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(20,12,6,0.8); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal img { max-width: 100%; max-height: 85vh; border-radius: 12px; background: #fff; }
.modal .close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 12px; border: none; background: rgba(255,255,255,0.15); color: #fff; font-size: 22px; font-weight: 900; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--brown); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 800; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 70; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 380px) {
  .cats button { font-size: 11px; }
}

/* v1.1: maps, push banner, rider photos */
.mapbox { width: 100%; height: 260px; border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--line); background: var(--photo); position: relative; z-index: 0; }
.mapbox.tall { height: 340px; }
.mapbox > div { width: 100%; height: 100%; }
.pin { display: flex; flex-direction: column; align-items: center; transform: translateY(-6px); }
.pin .b { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 13px; font-family: Nunito, sans-serif; }
.pin .l { margin-top: 2px; background: #fff; color: var(--brown); font-weight: 900; font-size: 11px; padding: 1px 6px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.25); white-space: nowrap; font-family: Nunito, sans-serif; }
.push-banner { background: var(--yellow-soft); border: 2px solid var(--yellow); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.rider-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--green); flex-shrink: 0; background: var(--photo); }
.gallery { display: flex; flex-direction: column; gap: 12px; align-items: center; max-height: 90vh; overflow-y: auto; padding: 50px 0 20px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-weight: 800; }
.gallery img { max-width: min(560px, 90vw); max-height: 70vh; border-radius: 12px; background: #fff; }
.leaflet-container { font-family: Nunito, sans-serif; }

/* v1.3 */
.icon-btn .dot { position: absolute; right: 9px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--green); }
.tick { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; font-weight: 700; cursor: pointer; }
.tick input { width: 20px; height: 20px; accent-color: var(--green); }
.nav svg { vertical-align: -5px; margin-right: 6px; }
.btn svg { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }
textarea.input { height: auto; padding-top: 10px; resize: vertical; }

/* v1.5 */
.pill.promo { background: var(--red); color: #fff; }
.item .pr .old { color: #fff; opacity: 0.75; font-weight: 700; font-size: 12px; }
.item .heart { position: absolute; right: 8px; top: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; min-height: 34px; min-width: 34px; padding: 0 9px; border: none; border-radius: 17px; background: rgba(40,24,12,0.55); color: #fff; font-weight: 900; font-size: 13px; }
.item .heart.on { background: #fff; color: var(--red); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 800; padding: 6px 4px; border-bottom: 1.5px solid var(--line); }
.tbl td { padding: 8px 4px; border-bottom: 1px solid var(--line); font-weight: 700; }
.tbl td:not(:first-child), .tbl th:not(:first-child) { text-align: right; white-space: nowrap; }
.qrbox { width: 220px; max-width: 100%; margin: 0 auto; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.qrbox svg { display: block; width: 100%; height: auto; }
.feat-panel { display: flex; flex-direction: column; gap: 8px; background: var(--green-tint); border: 1.5px solid var(--green-soft); border-radius: 12px; padding: 12px; }
.seg button:disabled { opacity: 0.45; }

/* Store QR poster (printable A4) */
body.poster-body { background: #eee; }
.poster-tools { display: flex; gap: 10px; justify-content: center; padding: 14px; }
.poster { width: 190mm; max-width: calc(100vw - 32px); margin: 0 auto 24px; background: #fff; border: 6px solid var(--green); border-radius: 24px; padding: 28px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--brown); }
.poster-top { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 28px; color: var(--green); }
.poster-top img { width: 48px; height: 48px; border-radius: 12px; }
.poster-logo { width: 110px; height: 110px; object-fit: cover; border-radius: 20px; border: 2px solid var(--line); }
.poster h1 { font-size: 40px; line-height: 1.1; }
.poster-sub { font-size: 22px; font-weight: 800; color: var(--red); }
.poster-qr { width: 112mm; max-width: 100%; }
.poster-qr svg { display: block; width: 100%; height: auto; }
.poster-steps { text-align: left; font-size: 17px; font-weight: 700; margin: 4px 0; }
.poster-foot { font-size: 14px; color: var(--muted); font-weight: 700; }
@media print {
  body.poster-body { background: #fff; }
  .noprint { display: none !important; }
  .poster { border-width: 4px; margin: 0 auto; max-width: none; }
  @page { size: A4; margin: 10mm; }
}

/* TV menu board */
body.tv-body { background: #1E1209; overflow: hidden; }
.tv { height: 100vh; display: flex; flex-direction: column; color: #fff; font-family: Nunito, system-ui, sans-serif; }
.tv-head { display: flex; align-items: center; gap: 2vw; padding: 1.4vh 2vw; background: var(--green); }
.tv-head img { height: 7vh; width: 7vh; object-fit: cover; border-radius: 1.2vh; background: #fff; }
.tv-name { font-size: 4.4vh; font-weight: 900; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-name span { color: #FFD34D; }
.tv-open { font-weight: 900; font-size: 2.6vh; padding: 0.6vh 1.4vw; border-radius: 99px; background: var(--red); }
.tv-open.on { background: #FFD34D; color: var(--brown); }
.tv-clock { font-size: 3.4vh; font-weight: 900; min-width: 10vw; text-align: right; }
.tv-main { flex: 1; display: grid; grid-template-columns: 62fr 38fr; min-height: 0; }
.tv-stage { position: relative; overflow: hidden; background: #000; }
.tv-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.9s; }
.tv-slide.on { opacity: 1; }
.tv-slide img { width: 100%; height: 100%; object-fit: cover; }
.tv-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 6vh 2.4vw 3vh; background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0)); display: flex; justify-content: space-between; align-items: flex-end; gap: 2vw; }
.tv-slide figcaption span { font-size: 6vh; font-weight: 900; line-height: 1.05; }
.tv-slide figcaption b { font-size: 7vh; font-weight: 900; color: #FFD34D; white-space: nowrap; }
.tv-slide figcaption b s, .tv-row b s { font-size: 0.55em; color: #fff; opacity: 0.7; }
.tv-off { position: absolute; top: 3vh; left: 2vw; background: var(--red); font-size: 4.6vh; font-weight: 900; padding: 1vh 1.6vw; border-radius: 1.4vh; }
.tv-list { overflow: hidden; padding: 2vh 2vw; background: #2A1A0F; }
.tv-list h2 { font-size: 3.4vh; color: #FFD34D; margin: 1.6vh 0 0.6vh; text-transform: uppercase; letter-spacing: 0.06em; }
.tv-row { display: flex; justify-content: space-between; gap: 1.4vw; font-size: 3.1vh; font-weight: 800; padding: 0.9vh 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.tv-row em { font-style: normal; color: #fff; background: var(--red); font-size: 0.7em; padding: 0.2vh 0.6vw; border-radius: 0.8vh; vertical-align: middle; }
.tv-row b { color: #FFD34D; white-space: nowrap; }
.tv-foot { display: flex; align-items: center; justify-content: space-between; gap: 2vw; padding: 1.2vh 2vw; background: var(--green); font-size: 3vh; font-weight: 900; }
.tv-qr { display: flex; align-items: center; gap: 1vw; font-size: 2.2vh; line-height: 1.1; }
.tv-qr svg { width: 11vh; height: 11vh; border-radius: 0.8vh; }
.tv-msg { color: #fff; font-size: 3.4vh; font-weight: 800; padding: 6vh; text-align: center; }
@media (orientation: portrait) {
  .tv-main { grid-template-columns: 1fr; grid-template-rows: 55fr 45fr; }
}

/* v1.6 */
.lang-btn { height: 34px; min-width: 40px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,0.6); background: transparent; color: #fff; font-weight: 900; font-size: 13px; }
.banner.wide { object-fit: cover; height: 170px; }
.promo-banner { background: var(--red-soft); border: 2px solid var(--red); color: var(--red-dark); border-radius: 12px; padding: 10px 12px; font-weight: 800; font-size: 14px; }
.promo-banner b { background: var(--red); color: #fff; border-radius: 6px; padding: 1px 6px; margin-right: 4px; font-size: 12px; }
.reply { background: var(--green-tint); border-left: 3px solid var(--green); padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.review-photo { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; }
.stars-txt { color: var(--yellow); letter-spacing: 1px; font-size: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.chip.on { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); font-weight: 900; }
.seg.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg.three button, .seg.four button { padding: 0 6px; font-size: 13px; }
.toggle-open.three button.on.busy { background: var(--yellow); color: var(--brown); }
.toggle-open.three button.on.closed { background: var(--red); color: #fff; }
.powered { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--faint); }
.powered img { width: 26px; height: 26px; border-radius: 7px; }
.sheet-wrap { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet-wrap .drawer-scrim { position: absolute; inset: 0; }
.sheet { position: relative; background: #fff; border-radius: 22px 22px 0 0; padding: 16px 16px max(16px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; max-height: 88vh; overflow-y: auto; max-width: 560px; width: 100%; margin: 0 auto; }
.sheet-photo { width: 100%; height: 180px; object-fit: cover; border-radius: 14px; }
.opt { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; text-align: left; }
.opt.on { border: 2px solid var(--green); background: var(--green-tint); font-weight: 900; }
.chat-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.msg { align-self: flex-start; max-width: 80%; background: var(--sand); border-radius: 12px 12px 12px 4px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-weight: 600; }
.msg.me { align-self: flex-end; background: var(--green); color: #fff; border-radius: 12px 12px 4px 12px; }
.msg small { font-size: 11px; opacity: 0.75; }
.stories { display: flex; gap: 12px; overflow-x: auto; padding: 2px 0 4px; }
.story-dot { display: flex; flex-direction: column; align-items: center; gap: 4px; border: none; background: none; width: 70px; flex-shrink: 0; padding: 0; }
.story-dot .ring { width: 64px; height: 64px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--yellow), var(--red)); display: flex; }
.story-dot .ring img, .story-dot .ring .logo-ph { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; background: #fff; }
.story-dot .nm { font-size: 11px; font-weight: 800; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.story-view { position: fixed; inset: 0; z-index: 70; background: #000; color: #fff; display: flex; flex-direction: column; }
.story-view > img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.story-view .bars { display: flex; gap: 4px; padding: 10px 12px 0; }
.story-view .bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.35); }
.story-view .bars span.on { background: #fff; }
.story-view .top { padding: 8px 12px; gap: 10px; align-items: center; }
.story-view .cap { padding: 10px 16px; font-weight: 800; font-size: 16px; }
.story-view .acts { padding: 10px 16px max(16px, env(safe-area-inset-bottom)); gap: 10px; }
.wallet { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--yellow-soft); border: 2px solid var(--yellow); border-radius: 14px; padding: 10px 14px; }
.wallet .v { font-size: 30px; font-weight: 900; line-height: 1; }
.addon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.req-form { border-top: 1.5px dashed var(--line); padding-top: 10px; }
.req-amount { font-size: 16px; font-weight: 800; }
.promo-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.promo-row.off { opacity: 0.5; }
.tv-card { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; background: var(--bg); }
.feat-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.input.sm { width: 70px; min-height: 40px; }
.tbl.edit .input { min-height: 38px; width: 92px; padding: 0 8px; }
.tbl.edit td:first-child { min-width: 120px; }
.tbl.week td { border: none; padding: 4px 4px; }
.tbl.week .input { min-height: 40px; padding: 0 6px; }
.chart { width: 100%; height: auto; }
.edit-item { width: 100%; grid-column: 1 / -1; }
.mrow:has(.edit-item) { display: block; }
details.card summary { cursor: pointer; }
.print-only { display: none; }
@media print {
  body.printing-sales .topbar, body.printing-sales .seller-head, body.printing-sales .tabs, body.printing-sales .noprint, body.printing-sales .toast { display: none !important; }
  body.printing-sales .print-only { display: block; }
  body.printing-sales .main { max-width: none; padding: 0; }
}

/* TV v1.6 */
.tv-main { grid-template-columns: 1fr; }
.tv.with-side .tv-main { grid-template-columns: 1fr 24vw; }
.tv-stage { position: relative; overflow: hidden; background: #1E1209; }
.tv-rot { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s; }
.tv-rot.on { opacity: 1; }
.tv-rot .tv-slide { opacity: 1; }
.tv-slide.sold img, .tv-cell.sold img { filter: grayscale(1); opacity: 0.5; }
.tv-off.low { top: auto; bottom: 18vh; background: var(--yellow); color: var(--brown); }
.tv-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 1.4vh; padding: 1.4vh; }
.tv-cell { position: relative; border-radius: 1.4vh; overflow: hidden; background: #2A1A0F; }
.tv-cell img, .tv-cell .noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv-cell .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 4vh 1.2vw 1.4vh; background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0)); display: flex; justify-content: space-between; align-items: flex-end; gap: 1vw; }
.tv-cell .cap span { font-size: 3vh; font-weight: 900; line-height: 1.1; }
.tv-cell .cap b { font-size: 3.6vh; font-weight: 900; color: #FFD34D; white-space: nowrap; }
.tv-cell.sold .cap span { text-decoration: line-through; }
.tv-pl { position: absolute; inset: 0; padding: 2vh 3vw; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: min-content; column-gap: 4vw; }
.tv-pl .tv-row { font-size: 3.6vh; padding: 1.6vh 0; }
.tv-row.sold span, .tv-row.sold b { text-decoration: line-through; opacity: 0.55; }
.tv em { font-style: normal; color: #fff; background: var(--red); font-size: 0.6em; padding: 0.3vh 0.6vw; border-radius: 0.8vh; vertical-align: middle; white-space: nowrap; }
.tv em.low { background: var(--yellow); color: var(--brown); }
.tv em.so { background: #555; }
.tv-promos { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2vw; padding: 3vh 2vw; }
.tv-promo { position: relative; overflow: hidden; border-radius: 2vh; background: var(--red); padding: 4vh 2.4vw; display: flex; flex-direction: column; justify-content: flex-end; gap: 1vh; }
.tv-promo.batch { background: var(--green); }
.tv-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.tv-promo > * { position: relative; }
.tv-promo .lbl { align-self: flex-start; background: #FFD34D; color: var(--brown); font-weight: 900; font-size: 3vh; padding: 0.6vh 1vw; border-radius: 1vh; }
.tv-promo b { font-size: 6vh; line-height: 1.05; font-weight: 900; }
.tv-promo span:not(.lbl) { font-size: 3.6vh; font-weight: 800; }
.tv-promo small { font-size: 2.6vh; font-weight: 700; opacity: 0.9; }
.tv-status { display: grid; grid-template-columns: 1fr 1fr; height: 100%; }
.tv-status > div { padding: 4vh 3vw; }
.tv-status > div.ready { background: var(--green); }
.tv-status h2 { font-size: 4.4vh; letter-spacing: 0.05em; margin-bottom: 3vh; color: #FFD34D; }
.tv-status .ready h2 { color: #fff; }
.tv-status .codes, .tv-side .codes { display: flex; flex-wrap: wrap; gap: 2vh; }
.tv-status .codes span { font-size: 9vh; font-weight: 900; background: rgba(255,255,255,0.1); border-radius: 2vh; padding: 1vh 2.4vw; }
.tv-status .ready .codes span { background: #fff; color: var(--green-dark); }
.tv-status i, .tv-side i { font-size: 5vh; opacity: 0.5; }
.tv-side { background: #2A1A0F; padding: 2.4vh 1.6vw; display: flex; flex-direction: column; gap: 1.2vh; overflow: hidden; }
.tv-side h3 { font-size: 3vh; color: #FFD34D; letter-spacing: 0.05em; }
.tv-side h3.ready { color: #7BE39A; margin-top: 2vh; }
.tv-side .codes span { font-size: 4.6vh; font-weight: 900; background: rgba(255,255,255,0.1); border-radius: 1.2vh; padding: 0.6vh 1vw; }
.tv-side .codes.ready span { background: var(--green); }
@media (orientation: portrait) {
  .tv.with-side .tv-main { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .tv-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
  .tv-pl, .tv-promos, .tv-status { grid-template-columns: 1fr; }
}
.tbl.week { table-layout: fixed; width: 100%; }
.tbl.week td:first-child { width: 64px; }
.tbl.week .input { width: 100%; min-width: 0; font-size: 13px; padding: 0 4px; }

/* v1.7 */
.store-adm { padding: 10px 12px; }
.store-line { display: flex; align-items: center; gap: 10px; width: 100%; border: none; background: none; padding: 4px 0; text-align: left; cursor: pointer; }
.store-line .logo, .store-line .logo-ph { width: 44px; height: 44px; flex-shrink: 0; }
.store-line .caret { width: 18px; font-size: 16px; color: var(--muted); flex-shrink: 0; }
.tbl.sub td, .tbl.sub th { vertical-align: middle; }
.tbl.sub tr.off td { opacity: 0.55; }
.tbl.sub tfoot td { border-top: 2px solid var(--line); border-bottom: none; }
.tbl.sub .input.sm { width: 60px; min-height: 34px; display: inline-block; margin-left: 6px; }
.meter { height: 14px; border-radius: 7px; background: var(--sand); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 7px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.04em; }
.code-input { text-align: center; font-size: 28px; letter-spacing: 10px; font-weight: 900; min-height: 60px; }
.or-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 800; font-size: 12px; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1.5px; background: var(--line); }
.card-sheet { display: grid; grid-template-columns: repeat(auto-fill, 85mm); gap: 6mm; justify-content: center; padding: 10mm; background: #fff; }
.tcard { width: 85mm; height: 54mm; border-radius: 4mm; background: linear-gradient(135deg, #1B7F3B, #145F2C); color: #fff; padding: 4mm 5mm; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tc-top { display: flex; align-items: center; gap: 2mm; font-size: 11pt; }
.tc-top img { width: 8mm; height: 8mm; border-radius: 2mm; background: #fff; }
.tc-top span { margin-left: auto; font-size: 8pt; opacity: 0.85; font-weight: 700; }
.tc-val { font-size: 22pt; font-weight: 900; color: #FFD34D; line-height: 1; }
.tc-val small { font-size: 9pt; color: #fff; margin-left: 2mm; font-weight: 700; }
.tc-code { background: #fff; color: #3A2416; border-radius: 2mm; padding: 1.5mm 3mm; display: flex; justify-content: space-between; align-items: center; font-size: 11pt; font-weight: 900; }
.tc-scratch { font-size: 6pt; color: #8A735F; font-weight: 800; }
.tc-how { font-size: 6.5pt; opacity: 0.9; font-weight: 700; }
@media print { .card-sheet { padding: 0; } }

/* v1.8 */
.give-box { border: 1.5px dashed var(--line); border-radius: 12px; padding: 10px 12px; background: var(--yellow-soft); }

/* v1.9 */
.demo-banner { background: var(--green-soft); border: 2px solid var(--green); color: var(--green-dark); border-radius: var(--radius); padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.rules-box { border: 2px solid var(--yellow); background: var(--yellow-soft); }
.rules-box a, .tick a { color: var(--green-dark); text-decoration: underline; font-weight: 800; }
.tick.small { font-size: 13px; align-items: flex-start; }
.tick.small input { margin-top: 1px; flex-shrink: 0; }
.admin-row { border-top: 1px solid var(--line); padding-top: 8px; }
.input.sm { min-height: 36px; padding: 0 8px; font-size: 13px; width: auto; }
.item img.photo { cursor: zoom-in; }

/* My Day photo cards */
.story-cards { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.story-card { position: relative; flex: 0 0 112px; height: 188px; border-radius: 14px; overflow: hidden; border: none; padding: 0; background: var(--photo); scroll-snap-align: start; box-shadow: 0 2px 8px rgba(58,36,22,0.18); cursor: pointer; }
.story-card .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.story-card:hover .bg { transform: scale(1.05); }
.story-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0) 48%, rgba(0,0,0,0.25)); }
.story-card .ring { position: absolute; top: 8px; left: 8px; z-index: 1; width: 42px; height: 42px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--yellow), var(--red)); display: flex; }
.story-card.seen .ring { background: #CDBFA9; }
.story-card .ring img, .story-card .ring .logo-ph { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: #fff; font-size: 15px; }
.story-card .nm { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 1; color: #fff; font-weight: 900; font-size: 13px; line-height: 1.15; text-align: left; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-card .cnt { position: absolute; top: 10px; right: 8px; z-index: 1; background: rgba(0,0,0,0.55); color: #fff; font-size: 11px; font-weight: 900; border-radius: 10px; padding: 1px 7px; }

/* order chat */
.chat-wrap { z-index: 58; }
.chat-sheet .chat-list { max-height: 50vh; min-height: 160px; background: var(--bg); border-radius: 12px; padding: 8px; }
.msg .who { font-weight: 900; opacity: 0.9; }
.chat-photo { max-width: 200px; max-height: 200px; border-radius: 10px; object-fit: cover; cursor: zoom-in; }
.chat-btn { position: relative; align-self: flex-start; }
.cdot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); display: inline-block; margin-left: 4px; box-shadow: 0 0 0 2px #fff; }
.photo-pick { cursor: pointer; font-size: 20px; }

/* full screen button, offline note (TV and kiosk) */
.fs-btn { background: rgba(0,0,0,0.22); color: #fff; border: none; border-radius: 1vh; font-size: 3vh; min-width: 48px; min-height: 48px; width: 6vh; height: 6vh; opacity: 0.55; cursor: pointer; flex-shrink: 0; }
.fs-btn:hover { opacity: 1; }
:fullscreen .fs-btn { display: none; }
@media (display-mode: fullscreen) { .fs-btn { display: none; } }
.fs-ask { position: fixed; inset: 0; z-index: 80; border: none; background: rgba(20,12,6,0.72); color: #fff; font-size: 4vh; font-weight: 900; cursor: pointer; }
.tv-offline { position: fixed; top: 2vh; left: 50%; transform: translateX(-50%); z-index: 81; background: var(--red); color: #fff; font-weight: 900; font-size: 2.6vh; padding: 1vh 2vw; border-radius: 99px; }

/* TV slide effects */
.tv-stage { perspective: 1800px; }
.tv-rot { transition: opacity 0.9s ease, transform 0.9s ease; backface-visibility: hidden; }
.tv-rot:not(.on):not(.out) { visibility: hidden; transition: none !important; }
.tv.fx-slideL .tv-rot, .tv.fx-slideR .tv-rot, .tv.fx-slideUp .tv-rot, .tv.fx-flip .tv-rot, .tv.fx-cube .tv-rot { opacity: 1; }
.tv.fx-slideL .tv-rot { transform: translateX(100%); }
.tv.fx-slideL .tv-rot.out { transform: translateX(-100%); }
.tv.fx-slideR .tv-rot { transform: translateX(-100%); }
.tv.fx-slideR .tv-rot.out { transform: translateX(100%); }
.tv.fx-slideUp .tv-rot { transform: translateY(100%); }
.tv.fx-slideUp .tv-rot.out { transform: translateY(-100%); }
.tv.fx-zoom .tv-rot { transform: scale(1.25); }
.tv.fx-zoom .tv-rot.out { transform: scale(0.9); opacity: 0; }
.tv.fx-flip .tv-rot { transform: rotateY(90deg); }
.tv.fx-flip .tv-rot.out { transform: rotateY(-90deg); }
.tv.fx-cube .tv-rot { transform-origin: 50% 50% -40vw; transform: rotateY(90deg); }
.tv.fx-cube .tv-rot.out { transform: rotateY(-90deg); }
.tv .tv-rot.on { transform: none; opacity: 1; }
.tv.fx-flip .tv-rot.on, .tv.fx-cube .tv-rot.on { transition-delay: 0.05s; }
.tv.fx-kenburns .tv-rot.on img { animation: kenburns 12s ease-out both; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.16) translate(-2%, -1.5%); } }
.tv.pop .tv-rot.on figcaption b, .tv.pop .tv-rot.on .cap b, .tv.pop .tv-rot.on .tv-row b { display: inline-block; animation: pricepop 0.9s 0.6s both; }
@keyframes pricepop { 0% { transform: scale(0.3); opacity: 0; } 60% { transform: scale(1.25); opacity: 1; } 100% { transform: scale(1); } }
.tv.shine .tv-off, .tv.shine .tv-promo .lbl, .tv.shine em { overflow: hidden; }
.tv.shine .tv-promo .lbl, .tv.shine em { position: relative; display: inline-block; }
.tv.shine .tv-off::after, .tv.shine .tv-promo .lbl::after, .tv.shine em::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.75), transparent); transform: skewX(-20deg); animation: shine 2.6s ease-in-out infinite; }
@keyframes shine { 0% { left: -60%; } 55%, 100% { left: 130%; } }
.tv-ticker { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.tv-ticker span { display: inline-block; padding-left: 100%; animation: ticker 28s linear infinite; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .tv-ticker span, .tv.shine *::after, .tv.fx-kenburns .tv-rot.on img { animation: none !important; } }

/* self-order kiosk */
body.kiosk-body { background: var(--bg); }
.kiosk { min-height: 100vh; display: flex; flex-direction: column; font-family: Nunito, system-ui, sans-serif; }
.k-head { display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: var(--green); color: #fff; position: sticky; top: 0; z-index: 5; }
.k-head img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; background: #fff; }
.k-name { flex: 1; min-width: 0; font-size: 26px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-head .tv-open { font-size: 15px; padding: 6px 14px; }
.k-head .fs-btn { font-size: 22px; }
.k-exit { border: none; background: transparent; color: rgba(255,255,255,0.55); font-size: 26px; min-width: 48px; min-height: 48px; cursor: pointer; }
.k-main { flex: 1; padding: 16px 18px 120px; display: flex; flex-direction: column; gap: 14px; max-width: 1400px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.k-hello { font-size: 26px; font-weight: 900; color: var(--brown); }
.k-cats { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.k-cats button { min-height: 56px; padding: 0 22px; border-radius: 28px; border: 2px solid var(--line); background: #fff; font-size: 18px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.k-cats button.on { background: var(--green); border-color: var(--green); color: #fff; }
.k-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.k-item { position: relative; display: flex; flex-direction: column; text-align: left; border: 2px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; padding: 0 0 12px; cursor: pointer; font-family: inherit; color: var(--brown); }
.k-item:active { transform: scale(0.98); }
.k-item img, .k-item .noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--photo); display: block; }
.k-item .k-nm { font-size: 19px; font-weight: 900; padding: 10px 12px 2px; line-height: 1.15; }
.k-item b { font-size: 21px; font-weight: 900; color: var(--green); padding: 0 12px; }
.k-item b s { font-size: 0.7em; color: var(--muted); }
.k-item.sold { opacity: 0.5; cursor: not-allowed; }
.k-item.sold img { filter: grayscale(1); }
.k-q { position: absolute; top: 10px; right: 10px; min-width: 38px; height: 38px; border-radius: 19px; background: var(--red); color: #fff; font-size: 20px; font-weight: 900; display: flex; align-items: center; justify-content: center; padding: 0 8px; }
.k-off { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-weight: 900; font-size: 15px; border-radius: 8px; padding: 3px 8px; }
.k-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 22px; background: #fff; border-top: 2px solid var(--line); font-size: 22px; font-weight: 800; box-shadow: 0 -4px 16px rgba(58,36,22,0.12); }
.btn.k-big { min-height: 64px; font-size: 20px; padding: 0 28px; border-radius: 16px; }
.k-cart h2 { font-size: 28px; }
.k-lines .line { font-size: 18px; gap: 12px; align-items: center; }
.k-lines .qty button { width: 46px; height: 46px; font-size: 24px; }
.k-amt { width: 100px; text-align: right; }
.k-total { font-size: 24px; font-weight: 900; border-top: 2px solid var(--line); }
.k-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.k-opt h3 { font-size: 22px; }
.k-input { min-height: 60px; font-size: 22px; }
.k-opt .seg button { min-height: 60px; font-size: 18px; }
.k-center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 30px 10px; flex: 1; }
.k-center h2 { font-size: 30px; }
.k-thanks { font-size: 34px; font-weight: 900; color: var(--green-dark); }
.k-num { font-size: 120px; line-height: 1; font-weight: 900; color: var(--red); letter-spacing: 0.02em; }
.k-pay { font-size: 24px; font-weight: 800; }
.k-qr { width: 340px; max-width: 80vw; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 10px; }
.k-qr svg { display: block; width: 100%; height: auto; }
.k-pin { font-size: 44px; letter-spacing: 14px; color: var(--brown); }
.k-pad { display: grid; grid-template-columns: repeat(3, 84px); gap: 12px; }
.k-pad button { height: 84px; border-radius: 18px; border: 2px solid var(--line); background: #fff; font-size: 32px; font-weight: 900; cursor: pointer; color: var(--brown); }
.k-sheet { z-index: 60; }
.k-sheet .sheet { max-width: 640px; }
.k-sheet .sheet-photo { height: 260px; }
.k-sheet .opt { min-height: 60px; font-size: 18px; }
.kiosk .tv-msg, .kiosk ~ .tv-msg { color: var(--brown); }
body.kiosk-body .tv-msg { color: var(--brown); font-size: 22px; }
@media (max-width: 700px) {
  .k-two { grid-template-columns: 1fr; }
  .k-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .k-num { font-size: 84px; }
  .k-hello { font-size: 20px; }
}

/* v1.11: messages in the middle of the screen */
.toast { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%) scale(0.92); padding: 18px 24px; border-radius: 18px; font-size: 18px; font-weight: 900; line-height: 1.3; max-width: min(86vw, 420px); box-shadow: 0 12px 40px rgba(20,12,6,0.35); }
.toast.show { transform: translate(-50%, -50%) scale(1); }
.big-alert { display: none; }
.big-alert.show { display: flex; position: fixed; inset: 0; z-index: 90; background: rgba(20,12,6,0.55); align-items: center; justify-content: center; padding: 20px; }
.ba-card { background: #fff; border-radius: 22px; padding: 22px 20px 18px; width: min(92vw, 420px); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; box-shadow: 0 16px 50px rgba(20,12,6,0.4); animation: baIn 0.25s ease-out; }
.ba-card img { width: 64px; height: 64px; border-radius: 16px; }
.ba-t { font-size: 22px; font-weight: 900; color: var(--brown); line-height: 1.2; }
.ba-b { font-size: 17px; font-weight: 700; color: var(--brown); line-height: 1.4; }
.ba-card .btn { min-height: 54px; font-size: 18px; }
@keyframes baIn { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* v1.11: live order bar (buyer) */
.order-bar { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--brown); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; border: 2px solid var(--green); background: var(--green-soft); animation: obGlow 2.4s ease-in-out infinite; }
.order-bar.act { border-color: var(--yellow); background: var(--yellow-soft); animation: obPulse 1.6s ease-in-out infinite; }
.order-bar.done { border-color: var(--green); background: #fff; animation: none; }
.order-bar.flash { animation: obFlash 0.9s ease-out 2, obGlow 2.4s 1.8s ease-in-out infinite; }
.order-bar.act.flash { animation: obFlash 0.9s ease-out 2, obPulse 1.6s 1.8s ease-in-out infinite; }
.ob-top { font-size: 13px; font-weight: 800; color: var(--muted); }
.ob-top b { color: var(--brown); }
.ob-more { background: var(--brown); color: #fff; border-radius: 10px; padding: 1px 8px; font-size: 11px; margin-left: 4px; }
.ob-t { font-size: 17px; font-weight: 900; line-height: 1.25; }
.ob-cd { color: var(--red-dark); white-space: nowrap; }
.ob-dots { display: flex; gap: 5px; margin-top: 2px; }
.ob-dots i { flex: 1; height: 5px; border-radius: 3px; background: rgba(58,36,22,0.15); }
.ob-dots i.on { background: var(--green); }
.order-bar.act .ob-dots i.on { background: #B57F00; }
@keyframes obGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(27,127,59,0.0); } 50% { box-shadow: 0 0 0 6px rgba(27,127,59,0.18); } }
@keyframes obPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(246,184,0,0.0); background: var(--yellow-soft); } 50% { box-shadow: 0 0 0 8px rgba(246,184,0,0.30); background: #FFE7A0; } }
@keyframes obFlash { 0% { transform: scale(1); filter: brightness(1); } 30% { transform: scale(1.03); filter: brightness(1.15); } 100% { transform: scale(1); filter: brightness(1); } }
@media (prefers-reduced-motion: reduce) { .order-bar, .order-bar.act, .order-bar.flash { animation: none; } }

/* v1.12 */
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 6px solid var(--green-soft); border-top-color: var(--green); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal-note { position: absolute; top: 14px; left: 14px; right: 74px; color: #fff; font-weight: 800; font-size: 14px; line-height: 1.35; }
.modal .gallery { margin-top: 40px; }
.install-banner { border-color: var(--green); background: var(--green-soft); }
.fs-seller { min-width: 44px; padding: 0 10px; }
:fullscreen .fs-seller { display: none; }
@media (display-mode: fullscreen), (display-mode: standalone) { .install-banner { display: none; } }

/* ---------- v1.14: store grid, search, store hero, footer, loader ---------- */
.store-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.store-tile { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--brown); min-width: 0; }
.store-tile:hover { color: var(--brown); border-color: #D6C7AE; }
.store-tile.closed .st-photo img, .store-tile.closed .st-ph { filter: grayscale(.55); opacity: .75; }
.st-photo { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--photo); }
.st-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 54px; font-weight: 900; color: #7A4A00; background: linear-gradient(135deg, #FDEBC2, #F6D58A); }
.st-closed, .st-busy { position: absolute; left: 8px; top: 8px; font-size: 12px; font-weight: 900; padding: 4px 9px; border-radius: 999px; background: rgba(58,36,22,.85); color: #fff; }
.st-busy { background: #B57F00; }
.st-fav { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.st-body { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px 11px; min-width: 0; }
.st-name { font-weight: 900; font-size: 15px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.st-name svg { vertical-align: -3px; }
.st-meta { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 800; flex-wrap: wrap; }
.st-rate { color: #B57F00; }
.st-heart { color: var(--red); }
.st-dist { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.new-pill { font-size: 11px; font-weight: 900; color: var(--green); background: var(--green-soft); padding: 2px 8px; border-radius: 999px; }
.sort-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.sort-row::-webkit-scrollbar { display: none; }
.sort-row .chip { white-space: nowrap; }
.item-hit { display: flex; gap: 12px; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 8px; text-decoration: none; color: var(--brown); }
.item-hit img, .item-hit .ih-ph { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--photo); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.item-hit.closed { opacity: .65; }
.ih-name { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-hero { position: relative; margin: 0 -16px 38px; }
.store-hero .hero-img { display: block; width: 100%; height: min(62vw, 340px); object-fit: cover; background: var(--photo); cursor: zoom-in; }
.store-hero .hero-img.blur { filter: blur(18px) saturate(1.2); transform: scale(1.1); cursor: default; }
.store-hero.no-banner { overflow: hidden; padding-bottom: 38px; margin-bottom: 0; }
.store-hero .hero-ph { background: linear-gradient(135deg, #FDEBC2, #F6D58A); cursor: default; height: 110px; }
.store-hero .hero-logo { position: absolute; left: 16px; bottom: -34px; width: 84px; height: 84px; border-radius: 50%; border: 4px solid #fff; background: #FDEBC2; overflow: hidden; box-shadow: 0 2px 10px rgba(58,36,22,.18); display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 900; color: #7A4A00; }
.store-hero.no-banner .hero-logo { bottom: 4px; }
.store-hero .hero-logo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) { .store-hero { margin-left: 0; margin-right: 0; } .store-hero .hero-img { border-radius: 16px; } }
.item.flash { outline: 4px solid var(--yellow); outline-offset: -4px; animation: itemFlash 1.4s ease-in-out 2; }
@keyframes itemFlash { 50% { outline-color: transparent; } }
.privacy-note { font-size: 12.5px; font-weight: 700; color: var(--green-dark); background: var(--green-tint); border: 1px solid var(--green-soft); border-radius: 10px; padding: 8px 10px; line-height: 1.4; text-align: left; }
.site-foot { margin-top: 28px; padding: 18px 8px 26px; border-top: 1.5px solid var(--line); text-align: center; font-size: 12.5px; font-weight: 700; color: var(--faint); display: flex; flex-direction: column; gap: 5px; line-height: 1.45; }
.site-foot .bold { color: var(--muted); }
.site-foot a { color: var(--green); }
/* loading screen: the Anok mascot walks and waves */
.boot-stage { position: relative; width: 200px; height: 270px; }
.boot-walker { position: absolute; left: 50%; bottom: 24px; width: 172px; height: 245px; transform: translateX(-50%); animation: bootBob .6s ease-in-out infinite; }
.boot-walker img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.boot-walker .hand { transform-origin: 84% 40%; animation: bootWave .6s ease-in-out infinite alternate; }
.boot-shadow { position: absolute; left: 50%; bottom: 14px; width: 110px; height: 15px; margin-left: -55px; border-radius: 50%; background: rgba(58,36,22,.18); animation: bootShadow .6s ease-in-out infinite; }
.boot-road { position: absolute; left: -40px; right: -40px; bottom: 8px; height: 4px; background: repeating-linear-gradient(90deg, #E8D7B8 0 22px, transparent 22px 40px); animation: bootRoad .6s linear infinite; }
.boot-dots { display: flex; gap: 8px; margin-top: 6px; }
.boot-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: bootDot 1.2s ease-in-out infinite; }
.boot-dots span:nth-child(2) { background: var(--yellow); animation-delay: .2s; }
.boot-dots span:nth-child(3) { background: #E85D1F; animation-delay: .4s; }
@keyframes bootBob { 0%, 100% { transform: translateX(-50%) translateY(0) rotate(-2deg); } 50% { transform: translateX(-50%) translateY(-10px) rotate(2deg); } }
@keyframes bootWave { from { transform: rotate(-12deg); } to { transform: rotate(10deg); } }
@keyframes bootShadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.8); opacity: .6; } }
@keyframes bootRoad { from { background-position: 0 0; } to { background-position: -40px 0; } }
@keyframes bootDot { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .boot-walker, .boot-walker .hand, .boot-shadow, .boot-road, .boot-dots span { animation: none; } }
.seo-intro { max-width: 560px; margin: 26px auto 0; padding: 0 20px 30px; color: var(--muted); font-size: 14px; line-height: 1.55; text-align: center; }
.seo-intro h1 { font-size: 18px; color: var(--brown); margin: 0 0 6px; }
.seo-intro h2 { font-size: 15px; color: var(--brown); margin: 14px 0 4px; }
.seo-intro p { margin: 0 0 8px; }

/* ---------- v1.15: prohibited warning, item check, signed agreements ---------- */
.warn-box { background: #FDECEA; border: 2px solid var(--red); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; color: #7A1A12; display: flex; flex-direction: column; gap: 6px; }
.warn-box b:first-child { font-size: 15px; color: var(--red); }
.chk-card { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.chk-photo { width: 150px; height: 150px; object-fit: cover; border-radius: 12px; background: var(--photo); cursor: zoom-in; flex-shrink: 0; }
.chk-photo.wide { width: 220px; height: 110px; }
.chk-nophoto { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--faint); cursor: default; }
.agree-modal { align-items: flex-start; overflow-y: auto; }
.agree-paper { background: #fff; color: var(--brown); width: min(760px, 100%); margin: 20px auto; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.agree-rec { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.agree-rec ul { margin: 4px 0; padding-left: 20px; font-size: 13.5px; line-height: 1.45; }
.agree-paper .gallery figure img { max-height: 260px; }
@media print {
  body.print-agree .shell, body.print-agree .drawer, body.print-agree .toast, body.print-agree .modal:not(.agree-modal) { display: none !important; }
  body.print-agree .agree-modal { position: static !important; background: #fff !important; padding: 0 !important; overflow: visible !important; }
  body.print-agree .agree-paper { margin: 0; width: 100%; box-shadow: none; }
  body.print-agree .no-print { display: none !important; }
  body.print-agree .agree-rec { break-inside: avoid; }
}
