:root {
  --ink: #1c1914;
  --muted: #5e584e;
  --paper: #f4efe4;
  --card: #fffdf8;
  --line: #e4dccb;
  --leaf: #143d32;
  --leaf-2: #1f6b4a;
  --mango: #e07a1f;
  --gold: #c6a15b;
  --danger: #9d2c2c;
  --sans: "Segoe UI", "Noto Sans", "Helvetica Neue", sans-serif;
  --serif: "Iowan Old Style", Palatino, Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.45; font-size: 1.125rem; }
img { max-width: 100%; display: block; }
a { color: var(--leaf); }
button, input, select, textarea { font: inherit; color: inherit; }
@media (max-width: 480px) {
  input, select, textarea { font-size: 16px; }
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .4rem; }
p { margin: 0 0 .8rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); font-size: .92rem; }
.kicker { letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; font-weight: 700; color: var(--leaf-2); }
.lede { font-size: 1.05rem; }
.topbar, .backbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--leaf); color: #f7f3ea; }
.topbar a, .backbar { color: #f7f3ea; text-decoration: none; }
.brand { font-family: var(--serif); font-size: 1.35rem; display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { width: 28px; height: 28px; border-radius: 6px; }
.brand span { color: #f2c14e; }
.topbar nav { display: flex; gap: 12px; align-items: center; }
.topbar nav a:not(.btn) { color: #f7f3ea; font-size: .92rem; }
.home, .admin, .narrow, .editor { padding: 16px; max-width: 1100px; margin: 0 auto; }
.narrow { max-width: 560px; }
.hero-dir { padding: 12px 0 8px; }
.hero-dir h1 { font-size: clamp(2rem, 8vw, 3.4rem); max-width: 14ch; }
.search { display: flex; gap: 8px; margin: 12px 0; }
.search input, .stack input, .stack select, .stack textarea, .listing input, .hour-row input { width: 100%; border: 1px solid var(--line); background: white; border-radius: 10px; padding: 12px; min-height: 44px; }
.stack textarea { min-height: 90px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--mango); color: #1c1914; font-weight: 700; font-size: 1.125rem; text-decoration: none; cursor: pointer; }
.ico { font-size: 1.35rem; line-height: 1; }
.langs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; background: #102e26; }
.langs a { color: #f7f3ea; text-decoration: none; font-weight: 700; padding: 8px 10px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.langs a.on { background: #f2c14e; color: #1c1914; }
.help-dock { position: fixed; right: 12px; bottom: 12px; z-index: 40; }
.has-admin .help-dock { display: none; }
.help-dock summary { list-style: none; background: var(--leaf); color: white; min-height: 56px; padding: 0 16px; border-radius: 999px; display: flex; align-items: center; font-weight: 800; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.help-dock summary::-webkit-details-marker { display: none; }
.help-sheet { display: grid; gap: 8px; margin-top: 8px; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.wizard { padding-bottom: 120px; }
.wizard h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
.dots { display: flex; gap: 8px; margin: 0 0 8px; }
.dots i { width: 18px; height: 18px; border-radius: 50%; background: #e4dccb; display: block; }
.dots i.on { background: var(--mango); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { min-height: 88px; border: 1px solid var(--line); background: white; border-radius: 16px; font-size: 1.05rem; font-weight: 800; display: grid; place-items: center; gap: 4px; cursor: pointer; }
.file-btn input, .photo-real { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.file-btn, .photo-pick { position: relative; }
.photo-pick { display: grid; gap: 8px; }
.photo-pick .btn { width: 100%; }
.photo-preview { width: 160px; height: auto; border-radius: 12px; }
.wizard-photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: 16px; }
.pin-show { font-size: 2rem; letter-spacing: .35em; text-align: center; min-height: 72px; }
.pad-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pad-keys button { min-height: 72px; font-size: 1.8rem; font-weight: 800; border-radius: 16px; border: 1px solid var(--line); background: white; color: var(--ink); }
.big-check { font-size: 4rem; margin: 12px 0; }
.topbar .top-ghost { color: #f7f3ea; border-color: rgba(255,255,255,.45); background: transparent; }
.btn-small { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-call { background: var(--leaf); color: white; }
.btn-msg { background: #0084ff; color: white; }
.btn-viber { background: #7360f2; color: white; }
.btn-wa { background: #128c7e; color: white; }
.danger { background: var(--danger); color: white; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.chips-wrap { flex-wrap: wrap; overflow: visible; }
.admin-phone { display: none; }
.filters-form { display: grid; gap: 8px; }
.filters-form select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: white; }
.featured-block { margin: 8px 0 16px; }
.featured { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.featured .card { min-width: 240px; max-width: 280px; flex: 0 0 auto; }
.chip, .filters a { flex: 0 0 auto; border: 1px solid var(--line); background: white; border-radius: 999px; padding: 8px 12px; text-decoration: none; color: var(--ink); }
.chip.on, .filters a.on { background: var(--leaf); color: white; border-color: var(--leaf); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.mapbar { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.map-panel { margin: 8px 0 16px; }
.mapframe, .map-panel iframe { width: 100%; height: 220px; border: 0; border-radius: 16px; background: #d9e4df; }
.cards { display: grid; gap: 12px; }
.card { background: var(--card); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.card-link { color: inherit; text-decoration: none; display: block; }
.card-photo, .card-fallback { width: 100%; height: 150px; object-fit: cover; background: #d7c7a4; }
.card-body { padding: 12px; }
.card h3 { font-size: 1.25rem; }
.ribbon { position: absolute; margin: 10px; background: var(--mango); color: #1c1914; font-size: .75rem; font-weight: 800; padding: 4px 8px; border-radius: 999px; }
.card { position: relative; }
.chip-open, .chip-closed, .pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 8px; font-size: .75rem; font-weight: 700; }
.chip-open, .pill.ok { background: #e5f6ea; color: #146c36; }
.chip-closed, .pill.bad { background: #fde8e4; color: #9d2c2c; }
.pill.due { background: #fff1d6; color: #8a5a00; }
.pill.free { background: #eeeae2; color: #4d463c; }
.textlink { background: none; border: 0; color: var(--leaf); padding: 8px 12px; cursor: pointer; text-decoration: none; }
.pitch, .empty, .upgrade { background: white; border-radius: 18px; padding: 16px; margin: 18px 0; border: 1px solid var(--line); }
.dirfoot, .sitefoot { padding: 24px 16px 40px; color: var(--muted); font-size: .85rem; }
.flash { padding: 10px 12px; border-radius: 12px; margin: 8px 0; }
.flash.ok { background: #e5f6ea; }
.flash.err { background: #fde8e4; }
.stack, .listing { display: grid; gap: 10px; }
.stack section, .editor section { margin: 18px 0; }
label { display: grid; gap: 4px; font-size: .92rem; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: .25rem; }
.hour-row { display: grid; grid-template-columns: 42px 1fr 1fr auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.code { font-size: 2rem; letter-spacing: .2em; font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats article, .biz-row { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.stats strong { display: block; font-size: 1.3rem; }
.biz-list { display: grid; gap: 8px; }
.biz-row { display: grid; gap: 6px; }
.split { display: grid; gap: 16px; }
.preview-wrap iframe { width: 100%; height: 720px; border: 1px solid var(--line); border-radius: 24px; background: white; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; }
.thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.listing { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.report { margin: 20px 16px; }
.report form { display: grid; gap: 8px; }
.preview-banner { margin: 0; padding: 8px 16px; background: #fff1d6; }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; }
.receipt { white-space: pre-wrap; background: white; padding: 12px; border-radius: 12px; }
.pay { display: inline-flex; border-radius: 999px; padding: 4px 8px; font-weight: 800; font-size: .8rem; }
.pay.gcash { background: #0033a0; color: white; }
.pay.maya { background: #00d67a; color: #073; }
.contact-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.logo { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; }
.tpl { background: var(--card); color: var(--ink); }
.tpl h1 { font-size: clamp(2.2rem, 9vw, 4.2rem); }
.hero-photo, .hero-fallback { width: 100%; max-height: 460px; object-fit: cover; background: #ddd2bc; min-height: 180px; }
.sheet { padding: 16px; }
.hours ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.hours li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 4px 0; }
.item { margin-bottom: 12px; }
.item-thumb { width: 72px; height: 72px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 6px 12px rgba(40, 20, 0, .16); }
.item-thumb img { width: 72px; height: 72px; object-fit: cover; display: block; }
.item[data-gallery] { cursor: pointer; }
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; }
.lightbox[hidden] { display: none !important; }
.lightbox-backdrop { position: absolute; inset: 0; border: 0; background: rgba(12, 10, 8, .82); }
.lightbox-frame { position: relative; z-index: 1; width: min(100% - 16px, 480px); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: 8px; padding: 12px; color: white; touch-action: none; }
.lightbox-x { grid-column: 1 / -1; justify-self: end; min-height: 56px; padding: 0 16px; border: 0; border-radius: 999px; background: white; color: #1c1914; font-weight: 800; font-size: 1.05rem; }
.lightbox-nav { min-height: 64px; min-width: 56px; border: 0; border-radius: 16px; background: white; color: #1c1914; font-size: 2rem; font-weight: 800; }
.lightbox-frame img { grid-column: 2; width: 100%; max-height: 62vh; object-fit: contain; background: transparent; }
#lightbox-name, #lightbox-price, #lightbox-pos { grid-column: 1 / -1; margin: 0; text-align: center; }
#lightbox-name { font-size: 1.5rem; font-weight: 800; }
#lightbox-price { font-size: 1.8rem; font-weight: 800; }
#lightbox-pos { color: #f2c14e; font-weight: 800; }
body.lightbox-open { overflow: hidden; }
.listing-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin: 0 0 12px; display: grid; gap: 8px; }
.plate { display: grid; place-items: center; background: radial-gradient(circle at 50% 62%, #fff 0 42%, #f3e2c4 72%); border-radius: 50%; box-shadow: 0 12px 18px rgba(40, 20, 0, .18); padding: 8px; }
.t-carinderia .plate { background: radial-gradient(circle at 50% 62%, #fff 0 42%, #f6d7a8 74%); }
.t-grill .plate { background: radial-gradient(circle at 50% 62%, #3a2418 0 42%, #1a120e 74%); }
.t-bakery .plate { background: radial-gradient(circle at 50% 62%, #fff 0 42%, #f7d7e2 74%); }
.t-milktea .plate { background: radial-gradient(circle at 50% 62%, #fff 0 42%, #f7c6e0 74%); }
.t-seafood .plate { background: radial-gradient(circle at 50% 62%, #fff 0 42%, #c9e7f5 74%); }
.t-ukay .plate { background: radial-gradient(circle at 50% 62%, #fff 0 42%, #ffe14a 74%); }
.t-sari-sari .plate { background: radial-gradient(circle at 50% 62%, #fff 0 42%, #d7f0c8 74%); }
.t-salon .plate { background: radial-gradient(circle at 50% 62%, #fff 0 42%, #e7d7f5 74%); }
.gcash-note { background: #e8f0ff; color: #04225f; border-radius: 12px; padding: 8px 10px; font-weight: 700; }
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpl-card { display: grid; gap: 4px; background: white; border: 2px solid var(--line); border-radius: 16px; padding: 8px; min-height: 180px; }
.tpl-card.on, .tpl-card:has(input:checked) { border-color: var(--leaf); }
.tpl-card input { width: 22px; height: 22px; }
.tpl-card img { width: 100%; height: 88px; object-fit: cover; border-radius: 12px; }
.cut-box { display: grid; gap: 8px; }
.cut-box img { width: min(100%, 280px); max-height: 280px; object-fit: contain; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 24px 24px; border-radius: 16px; }
.plate-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.plate-picks button { min-height: 48px; min-width: 72px; border-radius: 999px; border: 1px solid var(--line); font-weight: 800; }
.price { font-weight: 800; }
.desc { display: block; color: var(--muted); font-size: .92rem; }
.items-cards { display: grid; gap: 12px; }
.item-card { background: white; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); padding-bottom: 10px; }
.item-card strong, .item-card .desc, .item-card .price { display: block; padding: 0 10px; }
.item-dot { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; }
.item-dot .item-photo { width: 54px; height: 54px; grid-row: span 2; }
.leader { border-bottom: 1px dotted #b7aa96; }
.item-circle { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; background: #fff8ea; border-radius: 16px; padding: 8px; }
.item-circle .item-photo { width: 72px; height: 72px; }
.priceball { background: #c0392b; color: white; border-radius: 999px; min-width: 72px; text-align: center; padding: 10px 8px; }
.item-sticker { background: #fff36b; border: 3px solid #111; border-radius: 18px; padding: 8px; transform: rotate(-1deg); }
.item-sticker .price { display: inline-block; background: #ff3b30; color: white; padding: 4px 8px; border-radius: 8px; }
.item-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 10px; align-items: center; }
.item-row .item-photo { width: 84px; height: 64px; }
.t-free { background: var(--paper); }
.t-free .sheet { margin-top: -28px; position: relative; background: white; border-radius: 24px 24px 0 0; }
.t-modern-cafe { background: #f7f3ea; }
.cafe-hero { position: relative; }
.cafe-title { position: absolute; left: 16px; bottom: 16px; color: white; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.cafe-title h1 { color: white; }
.cafe-card { margin: -28px 12px 0; background: white; border-radius: 24px; padding: 16px; position: relative; }
.t-carinderia { background: #fff6e8; }
.cari-banner { background: repeating-linear-gradient(135deg, #c0392b 0 12px, #f2c14e 12px 24px); color: #1c1914; padding: 18px 16px 28px; }
.cari-banner h1 { background: #fff6e8; display: inline-block; padding: 4px 10px; }
.hero-cari { margin-top: -12px; }
.t-bakery { background: #fff8f3; }
.bake-top { padding: 28px 16px 8px; text-align: center; }
.t-milktea { background: linear-gradient(#fff5fb, #fff); }
.tea-split { display: grid; gap: 12px; padding: 12px; }
.t-grill { background: #1a120e; color: #f3e6d8; }
.t-grill a { color: #ffb088; }
.t-grill .hours li { border-color: #3a2a22; }
.grill-copy { padding: 16px; }
.t-fine-dining { background: #0e0e0e; color: #f7f1e5; }
.t-fine-dining a { color: var(--gold); }
.fine-head { padding: 48px 20px 12px; text-align: center; }
.t-fine-dining .item-dot { color: #f7f1e5; }
.t-street { background: #111; color: white; }
.street-head { background: #ff3b30; color: #111; padding: 16px; }
.street-head h1 { font-family: "Arial Black", var(--sans); text-transform: uppercase; }
.t-seafood { background: #e7f6f7; }
.sea-hero { position: relative; }
.wave { background: #e7f6f7; margin-top: -30px; border-radius: 40px 40px 0 0; padding: 20px 16px 0; position: relative; }
.t-sari-sari { background: #fffdf6; }
.sari-head, .shop-head, .pharm-head, .salon-head, .resort-head { padding: 16px; }
.ledger { margin: 12px; background: repeating-linear-gradient(#fff, #fff 27px, #f3c7c7 28px); border: 1px solid #1d4e89; padding: 12px; }
.t-salon { background: #fdeff4; }
.salon-head { display: flex; gap: 12px; align-items: center; }
.t-workshop { background: #f2f4f6; }
.shop-head { background: #111; color: #ffd000; }
.shop-head h1 { font-family: var(--sans); }
.t-resort { background: #f3efe4; }
.hero-resort { min-height: 280px; object-fit: cover; }
.resort-head { padding: 16px; }
.t-pharmacy { background: #f4fbf8; }
.t-boutique { background: #f6f1ea; }
.boutique-head { padding: 32px 18px 8px; text-align: center; }
.t-boutique h1 { font-weight: 500; letter-spacing: .03em; }
.t-ukay { background: #141414; color: #fff8e8; }
.t-ukay a { color: #ffe14a; }
.t-ukay .muted { color: #f0e6d2; }
.ukay-head { background: #ffe14a; color: #141414; padding: 16px; }
.ukay-head h1 { font-family: "Arial Black", var(--sans); text-transform: uppercase; }
.pharm-head { display: flex; gap: 12px; align-items: center; }
.cross { width: 48px; height: 48px; border-radius: 12px; background: #0f6b4c; color: white; display: grid; place-items: center; font-size: 2rem; }
.tent { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; background: white; }
.tent h1 { font-size: 2.4rem; }
.qr svg { width: min(80vw, 360px); height: auto; }
.url { word-break: break-all; color: var(--muted); }
@media (min-width: 800px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: minmax(0, 1fr) 390px; align-items: start; }
  .preview-wrap { position: sticky; top: 12px; }
  .tea-split { grid-template-columns: 280px 1fr; align-items: center; }
  .biz-row { grid-template-columns: 1fr auto auto auto; align-items: center; }
  .items-cards { grid-template-columns: 1fr 1fr; }
}
.admin { padding: 16px 16px 128px; max-width: 720px; margin: 0 auto; }
.admin-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 2px; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow-x: auto; overscroll-behavior-x: contain; background: var(--leaf); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); }
.admin-nav a { color: #f7f3ea; text-decoration: none; text-align: center; font-weight: 700; font-size: .68rem; line-height: 1.15; min-height: 48px; min-width: 4.4rem; flex: 1 0 auto; display: grid; place-items: center; border-radius: 12px; padding: 0 4px; }
@media (max-width: 480px) {
  .admin-nav a, .admin-nav .nav-count { font-size: 12px; }
}
.admin-pass { margin-top: 14px; }
.admin-pass summary { cursor: pointer; font-weight: 700; }
.code-input, input[name="code"] { font-size: 1.6rem; letter-spacing: .3em; text-align: center; }
.admin-nav a.on { background: #f2c14e; color: #1c1914; }
.nav-count { display: inline-grid; place-items: center; min-width: 1.15rem; height: 1.15rem; margin-left: 3px; padding: 0 4px; border-radius: 999px; background: #9d2c2c; color: white; font-size: .68rem; }
.admin-nav a.on .nav-count { background: #143d32; }
.howto { background: #fff8e8; border: 1px solid #e7c56a; border-radius: 16px; padding: 12px 14px; margin: 0 0 14px; }
.howto ol { margin: 6px 0 0; padding-left: 1.2rem; }
.howto li { margin: 4px 0; }
.meter, .remind, .biz-card, .qr-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin: 0 0 12px; }
.meter-bar { height: 16px; background: #eeeae2; border-radius: 999px; overflow: hidden; }
.meter-bar span { display: block; height: 100%; background: #1f6b4a; }
.meter-bar.warn span { background: var(--mango); }
.meter-bar.bad span { background: var(--danger); }
.meter-bar span.w0 { width: 0%; }
.meter-bar span.w5 { width: 5%; }
.meter-bar span.w10 { width: 10%; }
.meter-bar span.w15 { width: 15%; }
.meter-bar span.w20 { width: 20%; }
.meter-bar span.w25 { width: 25%; }
.meter-bar span.w30 { width: 30%; }
.meter-bar span.w35 { width: 35%; }
.meter-bar span.w40 { width: 40%; }
.meter-bar span.w45 { width: 45%; }
.meter-bar span.w50 { width: 50%; }
.meter-bar span.w55 { width: 55%; }
.meter-bar span.w60 { width: 60%; }
.meter-bar span.w65 { width: 65%; }
.meter-bar span.w70 { width: 70%; }
.meter-bar span.w75 { width: 75%; }
.meter-bar span.w80 { width: 80%; }
.meter-bar span.w85 { width: 85%; }
.meter-bar span.w90 { width: 90%; }
.meter-bar span.w95 { width: 95%; }
.meter-bar span.w100 { width: 100%; }
.remind { background: #fff1d6; }
.remind ul { margin: 8px 0; padding-left: 1.1rem; }
.big { width: 100%; min-height: 52px; font-size: 1.05rem; margin: 8px 0; }
.biz-card h2 { font-size: 1.35rem; }
.biz-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stack-actions { grid-template-columns: 1fr; }
.biz-actions .btn, .biz-actions button { width: 100%; }
.qr-card svg { width: min(100%, 280px); height: auto; margin: 8px auto; }
.home-counts { margin-top: 12px; }
.phone-only { display: none; }
@media (max-width: 700px) {
  .hour-row { grid-template-columns: 1fr 1fr; }
  .hour-row span { grid-column: 1 / -1; font-weight: 700; }
  .topbar nav a:not(.btn), .top-ghost { display: none; }
  .admin-phone { display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: var(--leaf); }
  .admin-phone .btn { flex: 1; min-height: 48px; }
  .admin-phone .btn.on { background: #f2c14e; color: #1c1914; }
  .admin-phone .admin-out { color: #f7f3ea; font-weight: 700; min-height: 48px; display: grid; place-items: center; padding: 0 8px; }
  .preview-wrap { display: none; }
  .phone-only { display: inline-flex; }
  .stats { grid-template-columns: 1fr; }
}
.home-login { margin: 4px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.sales { display: grid; gap: 16px; }
.sales-actions { display: grid; gap: 10px; margin: 12px 0 20px; }
.sales-actions .btn { width: 100%; }
.agent-off { display: inline-block; margin: 0 0 8px; padding: 4px 12px; border-radius: 999px; background: #7a1f1f; color: #fff; font-weight: 800; letter-spacing: .08em; }
.agent-tools .btn { width: 100%; }
.sales-login, .sales-pitch { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
.badges li { background: #e7f3ec; color: #143d32; border-radius: 999px; padding: 6px 10px; font-size: .82rem; font-weight: 700; }
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.show-card { display: grid; color: inherit; text-decoration: none; background: var(--paper); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.show-card img { height: 110px; width: 100%; object-fit: cover; }
.show-copy { display: grid; gap: 2px; padding: 8px 10px 12px; }
.show-copy span { color: var(--muted); font-size: .82rem; }
.price { font-family: var(--serif); font-size: 2.6rem; line-height: 1; margin: 0 0 8px; }
.price small { font-family: var(--sans); font-size: 1rem; color: var(--muted); }
.pay-box { background: #eef8f2; border-radius: 16px; padding: 14px; }
.sales fieldset { border: 0; margin: 0 0 8px; padding: 0; }
.sales legend { font-weight: 700; margin: 0 0 8px; }
.pick { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin: 0 0 8px; background: white; }
.pick small { display: block; color: var(--muted); font-weight: 500; }
.pick input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.upgrade-ping { display: grid; gap: 4px; text-decoration: none; color: inherit; }
.packages { display: grid; gap: 10px; }
.package, .package-edit { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: grid; gap: 6px; align-content: start; }
.package h3, .package .price { margin: 0; }
.package .setup { font-weight: 700; color: var(--leaf-2); margin: 0; }
.package ul { margin: 0; padding-left: 1.1rem; }
.package .btn { width: 100%; }
.inquire { width: min(520px, calc(100vw - 24px)); max-height: min(92vh, 760px); overflow: auto; border: 0; border-radius: 18px; padding: 16px; background: var(--card); }
.inquire-actions { position: sticky; bottom: 0; display: grid; gap: 8px; padding-top: 8px; background: var(--card); }
.inquire::backdrop { background: rgba(20, 30, 24, .55); }
.package-edit { margin: 0 0 12px; }
.package-edit legend { font-weight: 700; padding: 0 6px; }
.admin-top a.on { background: #f2c14e; color: #1c1914; border-radius: 12px; padding: 6px 10px; font-weight: 700; }
.topbar { flex-wrap: wrap; }
.topbar .btn { white-space: nowrap; }
@media (min-width: 800px) {
  .sales:has(.sales-login) { grid-template-columns: minmax(280px, 360px) 1fr; align-items: start; }
  .sales-login { position: sticky; top: 12px; }
  .show-card img { height: 150px; }
  .packages { grid-template-columns: 1fr 1fr; }
}
:focus-visible { outline: 3px solid var(--mango); outline-offset: 2px; }
.device-screen .help-dock, .device-screen .langs, .device-screen .topbar, .kitchen-screen .help-dock { display: none; }
.floor-badge { display: inline-block; background: var(--leaf); color: #f7f3ea; font-weight: 800; letter-spacing: .04em; border-radius: 999px; padding: 8px 14px; font-size: 1.35rem; }
.device-mail { font-weight: 700; word-break: break-all; }
.kiosk-grid { display: grid; gap: 12px; }
.kiosk-card { background: white; border-radius: 18px; padding: 12px; display: grid; gap: 8px; }
.kiosk-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.kiosk-card .btn, .device-cart .btn, .sent-banner .btn { width: 100%; }
.sent-banner, .order-card, .k-card { background: white; border-radius: 18px; padding: 14px; margin: 0 0 12px; }
.sent-banner h1, .k-num { font-size: clamp(2rem, 8vw, 3rem); }
.device-cart { position: sticky; bottom: 0; background: var(--paper); padding: 12px 0 24px; display: grid; gap: 8px; }
.gcash-pay { display: grid; gap: 8px; background: white; border-radius: 16px; padding: 12px; }
.qr-save img { width: min(100%, 320px); margin: 0 auto; }
.tap-save { text-align: center; font-size: .95rem; color: var(--muted); }
.pay-amount strong, .receipt-total { font-size: 2rem; font-weight: 800; }
.receipt-sheet { max-width: 520px; margin: 0 auto; padding: 20px 16px 48px; }
.receipt-logo { width: 88px; height: 88px; object-fit: cover; border-radius: 16px; }
.receipt-lines { width: 100%; border-collapse: collapse; }
.receipt-lines td, .receipt-lines th { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.receipt-lines td:nth-child(n+2), .receipt-lines th:nth-child(n+2) { text-align: right; }
.bir { font-size: .95rem; color: var(--muted); }
.order-items { margin: 0; padding-left: 1.1rem; }
.print-actions { display: grid; gap: 8px; }
.pay-flag { font-weight: 800; }
.pay-flag.is-paid { color: var(--leaf-2); }
.k-screen { padding: 12px; }
.k-board { display: grid; gap: 12px; }
.k-col { display: grid; gap: 10px; align-content: start; }
.k-tabs { display: flex; gap: 8px; overflow: auto; margin: 8px 0; }
.k-tabs a { background: white; border-radius: 999px; padding: 8px 12px; text-decoration: none; font-weight: 700; }
.k-receipt { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; }
.k-card form { display: grid; gap: 8px; }
.k-card .k-done { width: 100%; }
.k-print-row { margin: 10px 0 0; }
.k-print { min-height: 40px; padding: 0 16px; font-size: 1rem; }
.tray-dest { font-family: ui-monospace, "Courier New", monospace; font-weight: 800; font-size: 1.7rem; line-height: 1.05; text-align: center; margin: 0; letter-spacing: 0.02em; }
.tray-num { font-family: ui-monospace, "Courier New", monospace; font-weight: 800; font-size: 1.35rem; text-align: center; margin: 4px 0 8px; }
.thermal { margin: 0 auto; padding: 8px; }
.thermal-58 { width: 58mm; }
.thermal-80 { width: 80mm; }
.tape { font-family: ui-monospace, "Courier New", monospace; white-space: pre-wrap; font-size: 12px; line-height: 1.25; margin: 0; }
.ticket .tape { font-size: 16px; font-weight: 700; }
.sold { font-weight: 800; color: var(--danger); }
@media (min-width: 900px) {
  .k-tabs { display: none; }
  .k-board { grid-template-columns: repeat(4, 1fr); align-items: start; }
  .kiosk-grid { grid-template-columns: repeat(3, 1fr); }
}
@media print {
  .no-print, .langs, .help-dock, .topbar, .admin-nav { display: none !important; }
  body { background: white; }
  .thermal { width: auto; padding: 0; }
  .tray-dest { font-size: 22pt; }
  .tray-num { font-size: 16pt; }
}
.thermal-58 .tape { font-size: 7pt; }
.thermal-80 .tape { font-size: 7pt; }
.thermal.ticket .tape { font-size: 16px; }
.gcash-steps { list-style: none; padding-left: 0; }
[hidden] { display: none !important; }
.item .add-cart { min-height: 44px; font-size: 1rem; padding: 0 14px; white-space: nowrap; }
.item-circle .add-cart, .item-dot .add-cart { grid-column: 1 / -1; width: 100%; }
.cart-dock { position: fixed; left: 12px; bottom: 76px; z-index: 39; margin: 0; align-items: center; gap: 8px; min-height: 56px; padding: 0 22px; border-radius: 999px; background: var(--leaf); color: white; font-weight: 800; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.cart-dock [data-cart-count] { background: var(--mango); color: var(--ink); border-radius: 999px; min-width: 28px; text-align: center; padding: 2px 8px; }
.cart-dock[hidden] { display: none !important; }
#dmap { height: 240px; border-radius: 12px; }
.crop-sheet { position: fixed; inset: 0; z-index: 80; background: rgba(20, 16, 10, .45); display: flex; align-items: flex-end; justify-content: center; }
.crop-panel { width: min(100%, 520px); max-height: 92vh; overflow: auto; background: #fffaf3; color: #1c1914; border-radius: 18px 18px 0 0; padding: 12px 12px 24px; display: grid; gap: 10px; justify-items: center; box-shadow: 0 -8px 24px rgba(0,0,0,.25); }
.crop-panel canvas { width: min(92vw, 360px); max-height: 42vh; height: auto; background: #111; }
.crop-panel .row-gap, .crop-panel progress, .crop-panel p { width: 100%; }
.crop-panel .row-gap { flex-wrap: wrap; justify-content: center; }
.crop-panel .btn { min-height: 48px; }
.stack textarea::placeholder, .stack input::placeholder { color: #8a8175; opacity: 1; }
.deal-strip { padding: 8px 12px; }
.deal-row { display: flex; gap: 8px; overflow-x: auto; }
.deal-card { flex: 0 0 148px; border: 0; background: white; border-radius: 12px; padding: 0 0 8px; text-align: left; color: inherit; }
.deal-card img { width: 148px; height: 96px; object-fit: cover; border-radius: 12px 12px 0 0; display: block; }
.home-deals { margin: 8px 0 10px; }
.deal-banner { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; width: 100%; min-height: 64px; padding: 12px 14px; border-radius: 16px; background: var(--mango); color: #1c1914; text-decoration: none; }
.deal-banner strong { font-family: var(--serif); font-size: 1.45rem; line-height: 1.05; }
.deal-banner span { font-weight: 700; font-size: .95rem; }
.home-deals .deal-row { margin-top: 8px; padding-bottom: 2px; }
.home-deals .home-deal { flex-basis: 8.5rem; min-height: 7.2rem; text-decoration: none; }
.home-deals .home-deal img { width: 8.5rem; height: 4.6rem; }
.home-deals .home-deal strong, .home-deals .home-deal span { display: block; padding: 0 8px; }
.home-deals .home-deal span { color: var(--muted); font-size: .95rem; }
.deal-badge { display: inline-block; background: #143d32; color: white; border-radius: 999px; padding: 2px 8px; font-size: .85rem; }
.was { text-decoration: line-through; color: #8a8175; margin-right: 4px; }
.shop-back { position: fixed; top: 8px; left: 8px; z-index: 40; min-width: 44px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 22px; background: rgba(20, 16, 10, .55); color: #fff; font: inherit; font-weight: 700; }
.station-legend, .color-row, .station-board { display: flex; flex-wrap: wrap; gap: 8px; }
.station-key { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; color: #fff; font-weight: 700; }
.station-col { flex: 1 1 160px; min-width: 0; }
.color-pick { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.color-pick input { width: 22px; height: 22px; }
.book-block { border-left: 10px solid #8a8175; }
.book-cancelled { opacity: .55; }
.st-c0 { background: #c0392b; color: #fff; }
.st-c1 { background: #1a5276; color: #fff; }
.st-c2 { background: #0e6655; color: #fff; }
.st-c3 { background: #b9770e; color: #fff; }
.st-c4 { background: #6c3483; color: #fff; }
.st-c5 { background: #196f3d; color: #fff; }
.st-c6 { background: #1a365d; color: #fff; }
.st-c7 { background: #a04000; color: #fff; }
.st-c8 { background: #7b241c; color: #fff; }
.st-c9 { background: #1c2833; color: #fff; }
.book-block.st-c0 { background: #fffdf8; color: inherit; border-left-color: #c0392b; }
.book-block.st-c1 { background: #fffdf8; color: inherit; border-left-color: #1a5276; }
.book-block.st-c2 { background: #fffdf8; color: inherit; border-left-color: #0e6655; }
.book-block.st-c3 { background: #fffdf8; color: inherit; border-left-color: #b9770e; }
.book-block.st-c4 { background: #fffdf8; color: inherit; border-left-color: #6c3483; }
.book-block.st-c5 { background: #fffdf8; color: inherit; border-left-color: #196f3d; }
.book-block.st-c6 { background: #fffdf8; color: inherit; border-left-color: #1a365d; }
.book-block.st-c7 { background: #fffdf8; color: inherit; border-left-color: #a04000; }
.book-block.st-c8 { background: #fffdf8; color: inherit; border-left-color: #7b241c; }
.book-block.st-c9 { background: #fffdf8; color: inherit; border-left-color: #1c2833; }
.sold-wrap { position: relative; display: inline-block; }
.sold-stamp { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); width: 100%; height: auto; pointer-events: none; }
.btn.sold-off, .btn:disabled { opacity: .45; }
#lightbox-when, #lightbox-body, #lightbox-rules, #lightbox-was, #lightbox-actions { grid-column: 1 / -1; margin: 0; text-align: center; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #ddd; display: block; }
.dots i.on { background: var(--leaf); }
.flow { width: 100%; height: 72px; }
.flow rect, .flow text { fill: var(--leaf); }
.f-dot, .f-card, .f-paper, .f-box { fill: var(--mango); }
.f-dot.d2 { animation: hop 1.6s infinite .2s; }
.f-dot.d3 { animation: hop 1.6s infinite .4s; }
.f-card.a1 { animation: hop 1.8s infinite; }
.f-card.a2 { animation: hop 1.8s infinite .3s; }
.f-card.a3 { animation: hop 1.8s infinite .6s; }
.f-paper { animation: slip 2s infinite; }
.f-box.b2 { animation: tick 1.6s infinite; }
@keyframes hop { 50% { transform: translateY(-6px); } }
@keyframes slip { 50% { transform: translateY(8px); } }
@keyframes tick { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .flow * { animation: none !important; }
}
.pick-lines { display: grid; gap: 8px; margin: 8px 0; }
.pick-line { width: 100%; min-height: 52px; text-align: left; font: inherit; font-size: 1.15rem; padding: 8px 14px; border-radius: 12px; border: 2px solid var(--line); background: white; color: var(--ink); }
.pick-line.on { background: #e6f4ea; border-color: var(--leaf); text-decoration: line-through; }
.byline { font-weight: 700; color: var(--leaf); }
body.has-admin { padding-bottom: 96px; }
.pagefoot { padding: 28px 16px 40px; text-align: center; }
.warn { background: #fff4d6; border: 2px solid #e07a1f; border-radius: 12px; padding: 12px; font-weight: 700; }
.help-tip { min-height: 44px; margin: 4px 6px 4px 0; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--leaf); font-size: .95rem; }
.help-pop { position: fixed; inset: 0; z-index: 40; overflow: auto; background: rgba(28, 25, 20, .45); padding: 12px; }
.help-card { max-width: 420px; margin: 12px auto 24px; background: var(--card); border-radius: 16px; padding: 16px; }
.help-card img, .help-card video { width: 100%; height: auto; border-radius: 12px; }
.help-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.help-card ol { padding-left: 1.2rem; }
