:root {
  --ink: #1c1914;
  --paper: #f4efe4;
  --paper-2: #fffdf8;
  --line: #d9cfc0;
  --green: #0b5f45;
  --green-2: #147a58;
  --terra: #c45c26;
  --muted: #6b6458;
  --ok: #1f7a4d;
  --warn: #b45309;
  --shadow: 0 10px 30px rgba(28, 25, 20, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
}
h1, h2, h3, .serif { font-family: "Fraunces", Georgia, serif; }
a { color: var(--green); text-decoration: none; }
button, input, select, textarea { font: inherit; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: white; border: 0; border-radius: 12px;
  padding: 12px 18px; font-weight: 600; cursor: pointer;
}
.btn.secondary { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }
.btn.terra { background: var(--terra); }
.btn.big { padding: 18px 22px; font-size: 1.15rem; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--paper-2);
}
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow);
}
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.muted { color: var(--muted); }
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.nav {
  background: #13241d; color: #e8efe9; padding: 24px 16px; display: flex; flex-direction: column; gap: 8px;
}
.nav .brand { font-family: Fraunces, serif; font-size: 1.4rem; margin-bottom: 8px; color: #f4efe4; }
.nav a { color: #cfe0d6; padding: 10px 12px; border-radius: 10px; display: block; cursor: pointer; }
.nav a.active, .nav a:hover { background: #1d3b30; color: white; }
.main { padding: 28px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #e7f3ec; color: var(--green); font-size: 0.75rem; font-weight: 700; }
.pill.warn { background: #fde7d6; color: var(--terra); }
.pill.pending { background: #fef3c7; color: #92400e; }
.pill.paid { background: #e7f3ec; color: var(--green); }
.hero { max-width: 980px; margin: 0 auto; padding: 64px 20px; }
.hero-card { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: start; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .nav { flex-direction: row; overflow-x: auto; flex-wrap: nowrap; gap: 4px; padding: 12px 8px; -webkit-overflow-scrolling: touch; }
  .nav a { white-space: nowrap; padding: 8px 10px; font-size: 0.9rem; }
  .nav .brand { font-size: 1.15rem; margin: 0 8px 0 4px; align-self: center; }
  .main { padding: 16px 12px 96px; }
  .hero { padding: 28px 16px; }
  .hero-card { grid-template-columns: 1fr; }
  .till { grid-template-columns: 1fr; height: auto; gap: 12px; min-height: 0; }
  .till .cart { position: sticky; bottom: 0; z-index: 6; max-height: 52vh; overflow: auto; }
  .pay-grid { grid-template-columns: 1fr 1fr; }
  .line { grid-template-columns: 1fr; }
  .qty-row { justify-content: flex-start; }
  .product-tile { min-height: 72px; padding: 12px; }
  .pin { font-size: 2.4rem; }
  .pin-xl { font-size: 2.8rem; }
  .main .grid { grid-template-columns: 1fr !important; }
  .fields-2, .fields-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
.till { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 16px; min-height: calc(100vh - 80px); }
.cart { display: flex; flex-direction: column; }
.total { font-size: 2.2rem; font-family: Fraunces, serif; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-tile {
  border: 1px solid var(--line); background: var(--paper-2); border-radius: 14px; padding: 16px; text-align: left; cursor: pointer;
}
.pay-tile h3 { margin: 0 0 4px; }
.overlay {
  position: fixed; inset: 0; background: rgba(28,25,20,0.45); display: grid; place-items: center; padding: 20px; z-index: 20;
}
.modal { background: var(--paper-2); border-radius: 18px; padding: 24px; max-width: 520px; width: 100%; }
.pin { font-size: 3rem; letter-spacing: 0.2em; font-family: Fraunces, serif; text-align: center; }
.pin-xl { font-size: 3.6rem; font-weight: 700; }
.shop-logo-line { text-align: center; margin-bottom: 8px; }
.shop-logo { max-height: 72px; max-width: 220px; object-fit: contain; }
.nav .brand-logo { max-height: 40px; max-width: 160px; object-fit: contain; display: block; margin-bottom: 6px; }
.logo-preview { max-height: 80px; max-width: 220px; object-fit: contain; display: block; margin: 8px 0; }
.offline-banner {
  background: #92400e; color: #fff7ed; padding: 10px 14px; border-radius: 10px; font-weight: 600; margin-bottom: 12px;
}
.till-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.till-head .shop-logo { max-height: 48px; }
.lot-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.lot-pick .product-tile { min-height: 96px; font-size: 1.05rem; }
.tax-break { margin: 12px 0; }
.till-chips { margin: 8px 0 4px; }
.till-chips .chip { padding: 4px 10px; min-height: 28px; font-size: 0.75rem; cursor: default; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.check-row { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-weight: 600; }
.check-row input { width: 22px; height: 22px; }
.qty-cell { font-size: 1.3rem; font-weight: 700; font-family: Fraunces, serif; }
.table .btn { min-height: 44px; }
.product-tile {
  border: 1px solid var(--line); background: var(--paper-2); border-radius: 12px; padding: 16px; cursor: pointer; text-align: left; min-height: 88px;
}
.product-tile:active, .pay-tile:active, .btn:active { transform: translateY(1px); }
.err { color: #9f1239; background: #ffe4e6; padding: 10px 12px; border-radius: 10px; }
code { font-size: 0.85em; background: var(--paper); padding: 2px 6px; border-radius: 6px; }
.line {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.qty-row { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); font-size: 1.3rem; cursor: pointer;
}
.qty-btn.ghost { background: transparent; color: var(--muted); }
.qty { min-width: 1.5rem; text-align: center; font-weight: 700; }
.line-total { font-weight: 700; }
.qr-box { text-align: center; margin: 12px 0; }
.send-row .btn { min-height: 48px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.opt-card .total { font-size: 1.6rem; margin: 8px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.stat-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.stat-card .num { font-size: 1.85rem; font-family: Fraunces, serif; margin: 4px 0 0; }
.modal.wide { max-width: 760px; max-height: 92vh; overflow: auto; }
.variant-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 12px 0; background: var(--paper);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.chip {
  border: 1px solid var(--line); background: var(--paper-2); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; min-height: 40px; font-weight: 600;
}
.chip.on { background: var(--green); color: white; border-color: var(--green); }
.fields-2, .fields-3 { display: grid; gap: 10px; }
.fields-2 { grid-template-columns: 1fr 1fr; }
.fields-3 { grid-template-columns: 1fr 1fr 1fr; }
.variant-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.variant-pick .product-tile { min-height: 84px; font-size: 1.1rem; }
@media (max-width: 860px) {
  .fields-2, .fields-3 { grid-template-columns: 1fr; }
  .till { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .till .cart { position: sticky; bottom: 0; z-index: 6; max-height: 52vh; overflow: auto; }
  .shell { grid-template-columns: 1fr; }
}
/* Owner dashboard */
.dash.loading .kpi-grid, .dash.loading .dash-grid { opacity: 0.55; transition: opacity 0.2s; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.dash-head h1 { margin: 0 0 4px; font-size: 2.1rem; }
.dash-head p { margin: 0; }
.chip-row.seg { margin: 0; gap: 6px; }
.chip-row.seg .chip { min-height: 36px; padding: 6px 14px; }
.qa-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi .kpi-label { margin: 0; font-size: 0.85rem; font-weight: 600; }
.kpi .num { font-size: 1.6rem; overflow-wrap: anywhere; }
.kpi.hero-kpi { background: var(--green); color: #f4efe4; border-color: var(--green); }
.kpi.hero-kpi .muted, .kpi.hero-kpi .kpi-sub { color: #cfe0d6; }
.kpi.hero-kpi .delta.up, .kpi.hero-kpi .delta.down, .kpi.hero-kpi .delta.flat { color: #f4efe4; }
.kpi.warn-kpi { border-color: #e9b48f; }
.kpi-sub { margin: 2px 0 0; font-size: 0.85rem; color: var(--muted); }
.kpi-note { margin: 6px 0 0; font-size: 0.78rem; color: var(--warn); line-height: 1.35; }
.delta { margin: 4px 0 0; font-size: 0.82rem; color: var(--muted); }
.delta.up b { color: var(--ok); }
.delta.down b { color: var(--terra); }
.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.panel { background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.panel-head h3 { margin: 0 0 2px; font-size: 1.15rem; }
.panel-head p { margin: 0; font-size: 0.85rem; }
.chart { width: 100%; height: auto; display: block; }
.chart .gl { stroke: #e6dccb; stroke-width: 1; }
.chart .ax { fill: var(--muted); font-size: 11px; font-family: Outfit, system-ui, sans-serif; }
.chart .bar { fill: #7fb59f; }
.chart .bar.now, .chart .bar.peak { fill: var(--green); }
.chart .bar:hover { fill: var(--terra); }
.chart .prev-line { fill: none; stroke: var(--terra); stroke-width: 2; stroke-dasharray: 5 4; opacity: 0.75; }
.chart-key { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.chart-key i { display: inline-block; vertical-align: middle; margin-right: 6px; }
.key-bar { width: 12px; height: 12px; border-radius: 3px; background: #7fb59f; }
.key-line { width: 18px; border-top: 2px dashed var(--terra); }
.donut-wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.donut { width: 140px; height: 140px; flex: none; }
.donut-k { font-family: Fraunces, serif; font-size: 18px; fill: var(--ink); }
.legend { list-style: none; padding: 0; margin: 0; flex: 1; min-width: 160px; display: grid; gap: 8px; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 4px 8px; align-items: center; font-size: 0.9rem; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; }
.legend .lg-val { font-weight: 600; text-align: right; }
.legend .lg-note { grid-column: 2 / -1; font-size: 0.78rem; color: var(--warn); }
.dash-list { list-style: none; padding: 0; margin: 0; }
.dash-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #ece4d6; }
.dash-list li:last-child { border-bottom: 0; }
.dash-list li[data-dinv], .dash-list li[data-dquote], .dash-list li[data-dgo] { cursor: pointer; border-radius: 8px; }
.dash-list li[data-dinv]:hover, .dash-list li[data-dquote]:hover, .dash-list li[data-dgo]:hover { background: var(--paper); }
.dash-list .grow { flex: 1; min-width: 0; }
.dash-list .row-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.dash-list .row-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.dash-list .row-top span { white-space: nowrap; font-weight: 600; }
.dash-list .small { font-size: 0.8rem; margin: 3px 0 0; }
.dash-list .neg { color: var(--terra); }
.rank { width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; flex: none; }
.meter { height: 6px; background: #ece4d6; border-radius: 99px; margin-top: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--green-2); border-radius: 99px; }
.dash-empty { padding: 18px 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--paper); color: var(--muted); text-align: center; }
.dash-empty p { margin: 0 0 10px; line-height: 1.4; }
.dash-empty p:last-child { margin: 0; }
@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-8, .span-6 { grid-column: span 12; }
  .span-4 { grid-column: span 6; }
}
@media (max-width: 860px) {
  .dash-head h1 { font-size: 1.7rem; }
  .span-4 { grid-column: span 12; }
  .dash-grid { gap: 12px; }
  .panel { padding: 14px; }
  .kpi .num { font-size: 1.3rem; }
  .qa-row .btn { flex: 1 1 calc(50% - 10px); padding: 12px 10px; }
}
@media (max-width: 420px) {
  .kpi-grid { gap: 8px; }
  .stat-card.kpi { padding: 12px; }
  .kpi .num { font-size: 1.15rem; }
  .chip-row.seg .chip { padding: 6px 10px; font-size: 0.85rem; }
}
@media print {
  .nav, .till, .send-row, .btn, #newsale, #logout { display: none !important; }
  .overlay { position: static; background: none; padding: 0; }
  .modal { box-shadow: none; max-width: none; }
}
.discount-box { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; }

.btn.danger{background:#b42318;border-color:#b42318;color:#fff}
.pill.cancelled{background:#fde8e8;color:#b42318;border-color:#f5c2c0}
.qq-quick .qq-search{width:100%;padding:16px;font-size:1.15rem;border-radius:12px;border:2px solid var(--line)}
.qq-quick .qq-hits{display:flex;flex-direction:column;gap:4px;margin-top:6px}
.qq-quick .qq-hit{text-align:left;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer}
.qq-quick .qq-hit.active{border-color:var(--accent,#0b6);background:#f2fbf6}
.qq-quick .kbd{font-size:.75rem;opacity:.7}

/* App shell: safe areas, touch targets, install banner */
html { -webkit-tap-highlight-color: transparent; }
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); overscroll-behavior-y: none; }
.nav { padding-top: max(24px, env(safe-area-inset-top)); }
@media (max-width: 860px) {
  .nav { padding-top: max(12px, env(safe-area-inset-top)); }
  .main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .till .cart { padding-bottom: env(safe-area-inset-bottom); }
}
@media (pointer: coarse) {
  .btn, .nav a, .qty-btn, .qq-quick .qq-hit { min-height: 44px; }
  .qty-btn { min-width: 44px; }
  .field input, .field select, .field textarea, .qq-quick .qq-search { min-height: 48px; font-size: 16px; }
  .product-tile { min-height: 72px; touch-action: manipulation; }
  .btn, .qty-btn, .product-tile { touch-action: manipulation; }
}
@media (display-mode: standalone) { body { user-select: none; } input, textarea, [contenteditable] { user-select: text; } }
.install-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  background: #13241d; color: #f4efe4; border-radius: 16px; padding: 12px 14px; box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.install-banner img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.install-banner .ib-text { flex: 1; font-size: .95rem; line-height: 1.35; }
.install-banner .ib-text strong { font-family: Fraunces, serif; font-size: 1.05rem; display: block; }
.install-banner .btn { min-height: 44px; padding: 10px 16px; }
.install-banner .ib-close { background: transparent; border: 0; color: #cfe0d6; font-size: 1.5rem; min-width: 44px; min-height: 44px; cursor: pointer; }
.install-chip { cursor: pointer; }
@media print { .install-banner { display: none !important; } }

.tabbar { display: none; }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar svg circle { fill: currentColor; stroke: none; }
.more-sheet { display: none; }
.notify-ask {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  background: #13241d; color: #f4efe4; border-radius: 16px; padding: 14px 16px; margin-bottom: 14px;
}
.notify-ask p { margin: 0; flex: 1 1 200px; font-weight: 600; }
.notify-ask .btn.secondary { background: transparent; color: #f4efe4; border-color: #3d5c50; }
.update-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--green); color: #f4efe4; padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.update-banner p { margin: 0; font-weight: 600; }
.update-banner .btn { min-height: 44px; }
.inv-toasts {
  position: fixed; left: 12px; right: 12px; z-index: 65; max-width: 420px; margin-left: auto;
  bottom: 16px; display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.inv-toast {
  pointer-events: auto; text-align: left; width: 100%; cursor: pointer;
  background: #13241d; color: #f4efe4; border: 0; border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.inv-toast strong { display: block; font-family: Fraunces, serif; font-size: 1.05rem; }
.inv-toast p { margin: 4px 0 0; color: #d7e4dc; }
.inv-toast .row { margin-top: 10px; }
.inv-toast .btn { background: #f4efe4; color: #13241d; border-color: #f4efe4; min-height: 40px; }
.inv-toast .btn.secondary { background: transparent; color: #f4efe4; border-color: #8aa898; }
.officer-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.officer-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--paper); }
.officer-card.best { border-color: var(--terra); background: #fff7f2; }
.officer-card .row-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.officer-card .small { margin: 2px 0 8px; }
.officer-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 8px; }
.officer-stats span { display: block; color: var(--muted); font-size: 0.78rem; }
.officer-stats strong { font-family: Fraunces, serif; font-size: 1.05rem; }
@media (max-width: 860px) {
  .nav { position: sticky; top: 0; z-index: 30; overflow: visible; flex-wrap: wrap; align-items: center; }
  .nav a { display: none !important; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: #13241d; color: #cfe0d6;
    padding: 4px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(0,0,0,.18);
  }
  .tabbar a, .tabbar button {
    flex: 1 1 0; min-width: 0; min-height: 64px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: #cfe0d6; background: transparent; border: 0; border-radius: 12px;
    padding: 6px 2px; cursor: pointer; text-decoration: none;
  }
  .tabbar span { font-size: 0.68rem; font-weight: 600; line-height: 1.15; text-align: center; }
  .tabbar a.active, .tabbar button.active { background: #1d3b30; color: #f4efe4; }
  .tabbar a.active::after, .tabbar button.active::after {
    content: ''; width: 16px; height: 3px; border-radius: 99px; background: var(--terra);
  }
  .more-sheet.open { display: flex; }
  .more-sheet {
    position: fixed; inset: 0; z-index: 70; align-items: flex-end; justify-content: center;
  }
  .more-backdrop { position: absolute; inset: 0; background: rgba(28,25,20,.45); border: 0; }
  .more-card {
    position: relative; background: var(--paper-2); width: 100%; max-width: 520px;
    border-radius: 20px 20px 0 0; padding: 8px 8px calc(16px + env(safe-area-inset-bottom));
    max-height: 75vh; overflow: auto;
  }
  .more-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; }
  .more-head h2 { margin: 0; }
  .more-card a {
    display: flex; align-items: center; min-height: 48px; padding: 12px 14px;
    border-top: 1px solid var(--line); font-weight: 600; color: var(--ink);
  }
  .main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .till .cart { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .install-banner { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .inv-toasts { bottom: calc(88px + env(safe-area-inset-bottom)); }
}
@media (min-width: 861px) {
  .tabbar, .more-sheet { display: none !important; }
}
@media print {
  .tabbar, .more-sheet, .inv-toasts, .update-banner, .notify-ask, .promise { display: none !important; }
}
.promise {
  position: fixed; inset: 0; z-index: 80; background: #f4efe4;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.promise-card, .promise-customer { text-align: center; max-width: 720px; }
.promise-pin {
  font-family: Fraunces, serif; font-size: clamp(4rem, 14vw, 8rem);
  letter-spacing: 0.12em; line-height: 1; color: #1d3b30; margin: 8px 0;
}
.promise-name { font-size: clamp(1.4rem, 4vw, 2.2rem); margin: 8px 0; }
.promise-amt, .change-huge {
  font-family: Fraunces, serif; font-size: clamp(2.4rem, 8vw, 4.5rem);
  color: #9a3412; margin: 8px 0 16px;
}
.price-check { text-align: center; padding: 24px 8px 8px; }
.serve-list { display: flex; flex-direction: column; gap: 8px; }
.serve-row {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  text-align: left; width: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; cursor: pointer;
}
.serve-amt { font-family: Fraunces, serif; font-size: 1.3rem; }
.summary-text { white-space: pre-wrap; font-family: Outfit, system-ui, sans-serif; }
