:root {
  --bg: #121214;
  --surface: #1e1e24;
  --surface-2: #2a2a32;
  --accent: #ff9900;
  --accent-ink: #1a1203;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --border: #32323a;
  --ok: #3ddc97;
  --warn: #f5c451;
  --danger: #f07178;
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; appearance: none; background: none; border: 0; }
img { max-width: 100%; display: block; }
iconify-icon { vertical-align: -0.18em; }

.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; gap: 10px; align-items: center; padding: 0 8px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
}
.brand strong { display: block; font-size: 14px; }
.brand span { color: var(--muted); font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--muted);
  padding: 8px 10px; border-radius: 8px;
}
.nav a.active, .nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { box-shadow: inset 3px 0 0 var(--accent); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 0 8px; }
.who { font-size: 13px; }
.who small { display: block; color: var(--muted); }

.main { padding: 22px 24px 76px; min-width: 0; }
.main.fit { height: 100vh; overflow: hidden; display: flex; flex-direction: column; padding-bottom: 70px; }
.main.fit .pdv { flex: 1; min-height: 0; }
.cash-gate { max-width: 480px; margin: 48px auto; }
.cash-gate h1 { margin: 0; }
.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 16px; }
.page-head h1 { margin: 0; font-size: 24px; font-weight: 650; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-actions[hidden],
.stock-pane[hidden] { display: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.card, .panel, .table-wrap, .login-card, .menu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.card { padding: 14px 16px; }
.card span { display: block; color: var(--muted); font-size: 13px; }
.card strong { display: block; margin-top: 6px; font-size: 22px; font-variant-numeric: tabular-nums; }
.panel { padding: 14px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 12px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.grow { flex: 1; }

.btn, .btn-ghost, .btn-danger {
  border-radius: 8px; border: 1px solid transparent;
  padding: 8px 12px; background: var(--accent); color: var(--accent-ink); font-weight: 650;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:disabled, .btn-danger:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); font-weight: 550; }
.btn-danger { background: transparent; color: var(--danger); border-color: #5a3034; }
.btn-sm { padding: 5px 8px; font-size: 13px; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
input, select, textarea {
  background: #16161a; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; outline: none; width: 100%;
}
input[type="checkbox"], input[type="radio"] {
  width: 16px; height: 16px; min-width: 16px; padding: 0; margin: 0;
  accent-color: var(--accent); flex: 0 0 auto;
}
.check {
  display: flex; flex-direction: row; align-items: center; gap: 8px;
  width: fit-content; color: var(--text); font-size: 14px;
}
.check input:disabled { accent-color: var(--accent); opacity: 1; cursor: default; }
textarea { min-height: 72px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input[data-money] { text-align: right; font-variant-numeric: tabular-nums; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.invoice-block {
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: #18181d;
}
.invoice-block.is-open { border-color: #5a4a22; }
.invoice-block .line-unit:empty { display: none; }
.invoice-block .line-unit { margin: 0; font-size: 13px; }
.invoice-origin { margin: 0; color: var(--text); font-weight: 600; }
.invoice-line {
  display: grid; gap: 10px; align-items: end;
  grid-template-columns: minmax(240px, 2.2fr) minmax(120px, 1fr) minmax(150px, 1fr) minmax(140px, 1fr) auto auto;
}
.invoice-line > button {
  height: 38px; min-width: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.invoice-line [data-new].on { border-color: var(--accent); color: var(--accent); }
.invoice-block.is-done { border-color: var(--ok); }
.invoice-block.is-done .invoice-origin::after { content: ' · pronto'; color: var(--ok); font-weight: 600; }
.invoice-new {
  display: grid; gap: 10px; align-items: end;
  grid-template-columns: minmax(240px, 2.2fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(110px, 0.8fr) auto auto;
  border: 1px dashed var(--accent); border-radius: 10px; padding: 10px; background: #1d1b16;
}
.invoice-new[hidden] { display: none; }
.invoice-new p { grid-column: 1 / -1; margin: 0; font-size: 13px; }
.invoice-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.invoice-tools label { min-width: 220px; }
.invoice-tools #line-count { margin-left: auto; }
.invoice-drop {
  display: flex; flex-direction: row; align-items: center; gap: 12px; cursor: pointer;
  border: 1px dashed #4a4a55; border-radius: 12px; padding: 14px 16px; color: var(--text);
}
.invoice-drop:hover, .invoice-drop.is-over { border-color: var(--accent); background: #22221f; }
.invoice-drop input[type=file] { display: none; }
.read-status { display: flex; flex-direction: column; gap: 4px; }
.read-status:empty { display: none; }
.read-status p { margin: 0; font-size: 13px; display: flex; gap: 6px; align-items: flex-start; }
.read-ok { color: var(--ok); }
.read-warn { color: var(--warn); }
@media (max-width: 900px) {
  .invoice-line, .invoice-new { grid-template-columns: 1fr 1fr; }
}
label.is-hidden { display: none; }
.cost-read {
  display: flex; align-items: center; min-height: 38px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 8px; background: #16161a; color: var(--text);
}
.product-card .price .muted { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 6px; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 550; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
tr:hover td { background: rgba(255, 255, 255, 0.02); }
.low td { background: rgba(240, 113, 120, 0.08); }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px; padding: 2px 8px; font-size: 12px;
  background: var(--surface-2); color: var(--text);
}
.badge.ok { color: var(--ok); }
.badge.warn { color: var(--warn); }
.badge.danger { color: var(--danger); }
.badge.accent { color: var(--accent); }

.pdv { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: stretch; }
.pdv-catalog, .pdv-ticket { min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.pdv-catalog { overflow: auto; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.product-card {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  text-align: left; width: 100%; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px; padding: 10px;
}
.product-card strong { display: block; }
.product-card .price { color: var(--accent); font-weight: 700; }
.product-card.active, .product-card:hover:not(:disabled) { border-color: var(--accent); }
.product-card:active:not(:disabled) { background: #26262e; }
.product-card:disabled { opacity: 0.45; cursor: not-allowed; }
.product-card { position: relative; }
.product-card .key-hint { position: absolute; top: 8px; right: 8px; }
.accordion { margin-bottom: 8px; }
.accordion-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; font-weight: 650;
}
.accordion.open .accordion-head { border-color: var(--accent); color: var(--accent); }
.accordion .product-grid { margin-top: 8px; }
.line-actions { display: flex; align-items: center; gap: 4px; }
#desk-action.is-hidden { display: none; }
.handoff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.handoff-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 210px; padding: 20px 14px; text-align: center; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.handoff-card strong { font-size: 20px; font-weight: 700; }
.handoff-card .muted { font-size: 13px; }
.handoff-icon {
  display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%;
  background: rgba(255, 153, 0, 0.12); color: var(--accent); transition: transform 0.2s;
}
.handoff-card:hover, .handoff-card:focus-visible { border-color: var(--accent); background: #2f2b24; transform: translateY(-3px); outline: none; }
.handoff-card:hover .handoff-icon { transform: scale(1.08) rotate(-4deg); }
.handoff-card:active { transform: translateY(0) scale(0.98); }
@media (max-width: 560px) {
  .handoff-grid { grid-template-columns: 1fr; }
  .handoff-card { min-height: 150px; }
}
.icon-btn.confirm-pulse {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700;
  animation: confirm-pulse 1.4s ease-out infinite;
}
.icon-btn.confirm-pulse iconify-icon { animation: confirm-nudge 1.4s ease-in-out infinite; }
.icon-btn.confirm-pulse:hover { filter: brightness(1.1); animation-play-state: paused; }
@keyframes confirm-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.75); transform: scale(1); }
  20% { transform: scale(1.12); }
  40% { transform: scale(1); }
  70% { box-shadow: 0 0 0 12px rgba(255, 153, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 153, 0, 0); transform: scale(1); }
}
@keyframes confirm-nudge { 0%, 40%, 100% { transform: rotate(0); } 15% { transform: rotate(-14deg); } 28% { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) {
  .icon-btn.confirm-pulse, .icon-btn.confirm-pulse iconify-icon { animation: none; }
}
.pay-list { display: flex; flex-direction: column; gap: 6px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-grid .wide-choice { grid-column: 1 / -1; }
.pay-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 14px; align-items: start; }
.pay-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-card { align-items: center; text-align: center; }
.pay-card.on { border-color: var(--accent); background: #26262e; }
.modal-wide .pay-layout .panel { background: #16161a; }
.step-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.step-head h2 { margin: 0; font-size: 20px; }
.step-head p { margin: 2px 0 0; }
.step-badge {
  display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 auto;
  border-radius: 14px; background: rgba(255, 153, 0, 0.14); color: var(--accent);
}
.step-foot {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
}
.step-foot > :last-child { margin-left: auto; }
.step-hint { font-size: 13px; }
.btn-lg { padding: 12px 18px; font-size: 15px; border-radius: 10px; }
.chip-tag {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 650;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.chip-tag iconify-icon { color: var(--accent); }

.pay-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.pay-head h2 { margin: 2px 0 0; font-size: 22px; }
.pay-kicker, .pay-title {
  display: flex; align-items: center; gap: 6px; color: var(--muted);
  font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em;
}
.pay-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 16px; align-items: stretch; }
.receipt {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
  background: #16161a; border: 1px solid var(--border); border-radius: 14px; padding: 16px;
}
.receipt-items { display: flex; flex-direction: column; max-height: 280px; overflow: auto; }
.receipt-line {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline;
  padding: 8px 0; border-bottom: 1px dashed #2c2c34;
}
.receipt-qty { min-width: 26px; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.receipt-totals { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 10px; }
.receipt-totals div { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.receipt-totals .receipt-grand {
  color: var(--text); font-size: 22px; font-weight: 750;
  margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--border);
}
.pay-progress { height: 8px; border-radius: 999px; background: #26262e; overflow: hidden; margin-top: 6px; }
.pay-progress span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #ffc04d); transition: width 0.35s ease;
}
.pay-progress.full span { background: var(--ok); }
.pay-progress-text { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.pay-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pay-due {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.2), rgba(255, 153, 0, 0.04));
  border: 1px solid rgba(255, 153, 0, 0.35);
}
.pay-due span { color: var(--muted); font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.05em; }
.pay-due strong { display: flex; color: var(--accent); font-size: 30px; font-weight: 800; line-height: 1.1; }
.pay-due.done { background: linear-gradient(135deg, rgba(61, 220, 151, 0.2), rgba(61, 220, 151, 0.04)); border-color: rgba(61, 220, 151, 0.4); }
.pay-due.done strong { color: var(--ok); }
.pay-methods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pay-method {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px;
  border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--muted); font-size: 13px; font-weight: 650;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s;
}
.pay-method-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: #1a1a20; color: var(--text); transition: background 0.15s, color 0.15s;
}
.pay-method:hover { border-color: #5a4a22; color: var(--text); transform: translateY(-2px); }
.pay-method.on { border-color: var(--accent); background: #2f2b24; color: var(--text); box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15); }
.pay-method.on .pay-method-icon { background: var(--accent); color: var(--accent-ink); }
.pay-entry {
  display: flex; flex-direction: column; gap: 10px; padding: 14px;
  border-radius: 14px; background: #16161a; border: 1px solid var(--border);
}
.pay-amount-field {
  display: flex; align-items: center; gap: 8px; padding: 2px 14px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pay-amount-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15); }
.pay-amount-field > span { color: var(--muted); font-size: 18px; font-weight: 700; }
.pay-amount-field input { border: 0; background: transparent; padding: 8px 0; color: var(--text); font-size: 28px; font-weight: 750; }
.pay-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-chip {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums;
}
.pay-chip.exact { border-color: rgba(255, 153, 0, 0.5); }
.pay-chip:hover { border-color: var(--accent); color: var(--accent); }
.pay-note { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 13px; }
.pay-change {
  display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 12px; border-radius: 10px;
  background: rgba(61, 220, 151, 0.12); color: var(--ok); font-weight: 650;
}
.pay-change.warn { background: rgba(245, 196, 81, 0.12); color: var(--warn); }
.pay-change:empty { display: none; }
.pay-add { justify-content: center; padding: 11px 14px; font-size: 15px; }
.pay-lines { display: flex; flex-direction: column; gap: 6px; }
.pay-line {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center;
  padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border);
  animation: pay-in 0.25s ease;
}
.pay-line-icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(61, 220, 151, 0.12); color: var(--ok);
}
.pay-line-text { display: flex; flex-direction: column; min-width: 0; }
.pay-line-text small { color: var(--muted); font-size: 12px; }
.pay-line-drop { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); }
.pay-line-drop:hover { color: var(--danger); background: rgba(240, 113, 120, 0.12); }
.pay-empty { margin: 0; padding: 12px; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); font-size: 13px; text-align: center; }
.pay-method { position: relative; }
.pay-method-fee {
  position: absolute; top: 6px; right: 6px; padding: 1px 6px; border-radius: 999px;
  background: rgba(240, 113, 120, 0.14); color: var(--danger); font-size: 11px; font-weight: 700;
}
.pay-method-fee.passed { background: rgba(126, 182, 255, 0.14); color: #7eb6ff; }
.pay-fee {
  display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px;
  background: rgba(240, 113, 120, 0.08); border: 1px solid rgba(240, 113, 120, 0.3);
}
.pay-fee.passed { background: rgba(126, 182, 255, 0.08); border-color: rgba(126, 182, 255, 0.35); }
.pay-fee[hidden] { display: none; }
.pay-fee-main { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pay-fee-main span { display: flex; align-items: center; gap: 6px; font-weight: 650; }
.pay-fee-main strong { font-size: 20px; }
.pay-fee small { color: var(--muted); font-size: 12px; }
.receipt-totals .receipt-extra { color: #7eb6ff; }
.receipt-totals .receipt-extra span:first-child { display: flex; align-items: center; gap: 6px; }
.receipt-totals .receipt-charged { color: var(--text); font-weight: 700; font-size: 16px; }
.receipt-totals .receipt-store-fee { color: var(--danger); font-size: 13px; }
.pay-done.ready { animation: pay-ready 1.6s ease-out infinite; }
@keyframes pay-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes pay-ready {
  0% { box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(255, 153, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 153, 0, 0); }
}

.fee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.fee-card {
  display: flex; flex-direction: column; gap: 14px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
}
.fee-head { display: flex; align-items: center; gap: 12px; }
.fee-card .switch { width: fit-content; }
.fee-head strong { display: block; font-size: 16px; }
.fee-head .muted { font-size: 13px; }
.fee-input {
  display: flex; align-items: center; gap: 6px; padding: 2px 14px;
  background: #16161a; border: 1px solid var(--border); border-radius: 12px;
}
.fee-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15); }
.fee-input input { border: 0; background: transparent; padding: 8px 0; font-size: 24px; font-weight: 750; color: var(--text); }
.fee-input > span { color: var(--muted); font-size: 20px; font-weight: 700; }
.fee-example {
  display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px;
  background: #16161a; border: 1px dashed #3a3a44; font-size: 13px; color: var(--muted);
}
.fee-example > span { display: flex; align-items: center; gap: 6px; }
.fee-example div { display: flex; justify-content: space-between; gap: 8px; }
.fee-example div strong { color: var(--text); }
.fee-example .ok strong { color: #7eb6ff; }
.fee-example .warn strong { color: var(--danger); }
.fee-example-title { font-weight: 650; color: var(--text); text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; }
.fee-example-net { padding-top: 6px; border-top: 1px solid var(--border); }
.fee-example-net strong { color: var(--ok) !important; font-size: 15px; }

.breakdown { display: flex; flex-direction: column; gap: 12px; }
.breakdown-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: #26262e; }
.breakdown-bar span { display: block; height: 100%; }
.breakdown-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.breakdown-item {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px;
  border-radius: 12px; background: #16161a; border: 1px solid var(--border);
}
.breakdown-item > span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.breakdown-item strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.breakdown-item small { color: var(--muted); font-size: 12px; }
.breakdown-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.breakdown-item.total { border-color: rgba(255, 153, 0, 0.4); background: #2f2b24; }
.breakdown-item.total strong { color: var(--accent); }

.loc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; }
.loc-form { display: flex; flex-direction: column; gap: 12px; }
.loc-input {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
  background: #16161a; border: 1px solid var(--border); border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.loc-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15); }
.loc-input-icon {
  display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto;
  border-radius: 10px; background: rgba(37, 211, 102, 0.12); color: #25d366;
}
.loc-input textarea { border: 0; background: transparent; padding: 6px 0; min-height: 110px; color: var(--text); font-size: 14px; }
.loc-preview { display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.loc-map { width: 100%; flex: 1; min-height: 220px; border: 0; border-radius: 14px; background: #16161a; }
.loc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.loc-stats div {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px;
  border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border);
}
.loc-stats span { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.loc-stats strong { font-size: 18px; }
.loc-stats .accent { border-color: rgba(255, 153, 0, 0.45); background: #2f2b24; }
.loc-stats .accent strong { color: var(--accent); }
.loc-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 24px; text-align: center; color: var(--muted);
  background: #16161a; border: 1px dashed #3a3a44; border-radius: 14px;
}
.loc-empty iconify-icon { color: var(--accent); }
.loc-empty strong { color: var(--text); font-size: 16px; }
.loc-empty span { max-width: 300px; font-size: 13px; }
.loc-empty.is-error iconify-icon { color: var(--danger); }
.spin { display: inline-flex; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .pay-grid, .loc-layout { grid-template-columns: 1fr; }
  .pay-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loc-preview { min-height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .pay-done.ready, .pay-line, .spin { animation: none; }
}
.product-visual {
  width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden;
  background: #16161a; display: grid; place-items: center; color: var(--accent);
}
.product-visual img { width: 100%; height: 100%; object-fit: cover; }
.product-visual.sm { width: 72px; height: 72px; aspect-ratio: auto; flex: 0 0 auto; }
.product-visual.compact { width: 88px; height: 66px; aspect-ratio: auto; flex: 0 0 auto; }
.modal-product { display: flex; gap: 12px; align-items: center; }
.modal-product h2 { margin: 0; }
.open-list { display: flex; flex-direction: column; gap: 6px; overflow: auto; max-height: 18vh; }
.open-chip {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  width: 100%; text-align: left; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px;
}
.open-chip.on { border-color: var(--accent); }
.open-chip.done { border-color: #245c45; }
.desk-check { color: var(--ok); display: inline-flex; margin-right: 6px; vertical-align: middle; }
.desk-note { display: flex; align-items: center; gap: 8px; margin: 0; }
.pdv { grid-template-columns: minmax(0, 1fr) 390px; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; align-items: end; }
.filters[hidden] { display: none; }
.order-hit { cursor: pointer; }
.order-main, .order-sub { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: nowrap; }
.order-sub { margin-top: 2px; font-size: 13px; }
.order-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slim { width: 92px; white-space: nowrap; }
.pager { justify-content: space-between; margin-top: 12px; }
.icon-bar { display: flex; flex-wrap: wrap; gap: 6px; }
#ticket-detail { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
#ticket-detail[hidden] { display: none; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 10px; font-size: 13px;
}
.icon-btn.on { border-color: var(--accent); color: var(--accent); }
.icon-btn:disabled { opacity: 0.45; cursor: default; }
.icon-btn.danger { color: var(--danger); }
.map-frame { width: 100%; height: 380px; border: 0; border-radius: 12px; background: #16161a; }
.ticket-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.ticket-bar { display: flex; align-items: center; gap: 8px; }
.ticket-bar input { flex: 1; min-width: 0; }
.ticket-bar .icon-btn { flex: 0 0 auto; padding: 9px 12px; }
.ticket-bar .icon-btn.is-hidden { display: none; }
.ticket-stage { flex: 1; min-height: 0; overflow: hidden; }
.ticket-track { display: flex; width: 200%; height: 100%; will-change: transform; }
.ticket-track.on-detail { transform: translateX(-50%); }
.ticket-pane {
  flex: 0 0 50%; width: 50%; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px; padding-right: 4px;
}
.ticket-pane .open-list { max-height: none; overflow: visible; }
#ticket-detail { min-height: 0; }
.open-chip .chip-key { margin-right: 8px; }
.open-chip { transition: transform 0.12s ease, border-color 0.15s ease; }
.open-chip:active { transform: scale(0.97); }
#pdv-cart { overflow: auto; max-height: 38vh; }
.locked-line { opacity: 0.85; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.totals { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 20px; font-weight: 700; }
.pdv-ticket { gap: 8px; padding: 12px; }
.pdv-ticket p { margin: 0; }
.pdv-ticket .ticket-bar input { padding: 6px 9px; }
.pdv-ticket .ticket-bar .icon-btn { padding: 6px 10px; }
.pdv-ticket .ticket-pane, .pdv-ticket #ticket-detail { gap: 6px; }
.pdv-ticket .open-list { gap: 4px; }
.pdv-ticket .open-chip { padding: 6px 9px; font-size: 14px; }
.pdv-ticket .ticket-title { font-size: 13px; font-weight: 650; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdv-ticket #pdv-context:empty { display: none; }
.pdv-ticket #pdv-context .muted { font-size: 12px; }
.pdv-ticket .icon-bar { gap: 4px; flex-wrap: nowrap; }
.pdv-ticket .icon-bar .icon-btn { flex: 1 1 0; justify-content: center; padding: 4px 6px; font-size: 12px; gap: 4px; }
.pdv-ticket #pdv-cart { flex: 1 1 auto; min-height: 60px; max-height: none; overflow: auto; }
.pdv-ticket #pdv-cart > .muted { font-size: 13px; }
.pdv-ticket .cart-line { gap: 6px; padding: 5px 0; font-size: 14px; }
.pdv-ticket .cart-line .muted { font-size: 12px; line-height: 1.3; }
.pdv-ticket .cart-line .row { gap: 6px; }
.pdv-ticket .cart-line .badge { font-size: 11px; padding: 1px 7px; }
.pdv-ticket .line-actions { gap: 3px; }
.pdv-ticket .line-actions .icon-btn, .pdv-ticket .line-actions .btn-sm { padding: 3px 6px; font-size: 12px; }
.pdv-ticket .ticket-foot { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--border); padding-top: 6px; }
.pdv-ticket .totals { margin: 0; gap: 1px; font-size: 13px; }
.pdv-ticket .totals .grand { font-size: 17px; margin-top: 2px; }
.pdv-ticket .desk-actions { display: flex; gap: 6px; }
.pdv-ticket .desk-actions > button { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
.pdv-ticket #desk-pack.on { border-color: var(--accent); color: var(--accent); background: #2f2b24; }
#desk-pack.is-hidden { display: none; }
.chip-mode { display: inline-flex; color: var(--accent); margin-right: 6px; vertical-align: middle; }
kbd {
  font-family: inherit; font-size: 11px; border: 1px solid var(--border);
  border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--muted);
}

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); padding: 28px; box-shadow: var(--shadow); }
.login-card h1 { margin: 8px 0 4px; }
.checks { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

.modal-back {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.62);
  display: grid; place-items: center; padding: 18px; z-index: 20;
}
.modal {
  width: min(560px, 100%); max-height: min(86vh, 820px); overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 16px;
}
.modal h2 { margin: 0 0 12px; font-size: 18px; }
.modal-wide { width: min(760px, 100%); }
.modal-roomy { width: min(980px, 100%); }
.modal-xl { width: min(1240px, 100%); max-height: 92vh; }
.cash-story { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.cash-story p { margin: 0; }
@media (max-width: 800px) {
  .modal .report-charts { grid-template-columns: 1fr; }
}
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 30; }
.toast { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 10px 12px; min-width: 220px; box-shadow: var(--shadow); }
.toast.err { border-left-color: var(--danger); }
.bug-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 18;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  transition: color 0.15s, border-color 0.15s;
}
.bug-fab:hover, .bug-fab:focus-visible { color: var(--text); border-color: var(--accent); }
.bug-fab.busy { cursor: progress; }
.bug-fab.busy iconify-icon { animation: bug-pulse 0.7s ease-in-out infinite alternate; }
@keyframes bug-pulse { from { opacity: 1; } to { opacity: 0.3; } }
.bug-shot { margin: 0 0 12px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg); }
.bug-shot img { width: 100%; max-height: 46vh; object-fit: contain; }
.bug-shot-empty { margin: 0 0 12px; padding: 14px; border: 1px dashed var(--border); border-radius: 10px; }
.bug-shot .bug-shot-empty { margin: 0; border: 0; }
.bug-tech summary, .bug-section summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.bug-tech ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.bug-tech li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.bug-tech li strong { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.bug-detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 12px; }
.bug-detail .bug-shot { margin: 0; }
.bug-detail .bug-shot img { max-height: 60vh; }
.bug-text p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bug-section { border-top: 1px solid var(--border); padding: 10px 0; }
.bug-section[open] summary { margin-bottom: 10px; }
.bug-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 16px; margin: 0; }
.bug-info div { min-width: 0; }
.bug-info dt { color: var(--muted); font-size: 12px; }
.bug-info dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.bug-section .detail-table { max-height: 46vh; }
.bug-section .detail-table td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.bug-section code { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.bug-stack { margin: 6px 0 0; max-height: 180px; overflow: auto; font-size: 12px; white-space: pre-wrap; color: var(--muted); }
.qr { width: 220px; height: 220px; background: white; padding: 8px; border-radius: 8px; }
.cancel-note {
  display: flex; flex-direction: column; gap: 4px; margin: 10px 0;
  border: 1px solid #5a2a2a; border-left: 3px solid var(--danger); border-radius: 10px; padding: 10px 12px; background: #1f1618;
}
.cancel-note strong { display: flex; align-items: center; gap: 6px; color: var(--danger); }
.cancel-reason { color: var(--danger); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switch {
  flex-direction: row; align-items: center; gap: 10px; cursor: pointer;
  color: var(--text); font-size: 14px; user-select: none; white-space: nowrap;
}
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.switch-track {
  position: relative; width: 42px; height: 24px; flex: 0 0 42px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); transition: background 0.15s, border-color 0.15s;
}
.switch-thumb {
  position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--muted); transition: transform 0.15s, background 0.15s;
}
.switch input:checked + .switch-track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(18px); background: var(--accent-ink); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.page-actions .switch { align-self: center; }
.print-frame { position: fixed; right: 0; bottom: 0; width: 0; height: 0; border: 0; visibility: hidden; }
.station-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: start; }
.station-card { display: flex; flex-direction: column; gap: 10px; }
.station-card h3 { margin: 0; }
.kitchen-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kitchen-mode { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 3px 9px; }
.station-item {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  width: 100%; text-align: left; color: var(--text);
  background: #16161a; border: 1px solid var(--border); border-radius: 12px; padding: 8px;
}
button.station-item:hover { border-color: var(--accent); }
.station-item strong { display: block; }
.station-item .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.station-item.done { opacity: 0.55; }
.station-go {
  min-width: 84px; min-height: 64px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 750; padding: 8px;
}
.station-go.wide { width: 100%; min-height: 72px; flex-direction: row; gap: 8px; font-size: 18px; }
.station-go:hover { filter: brightness(1.05); }
.station-board { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.station-board .station-card { gap: 6px; padding: 10px; }
.station-board .station-card h3 { font-size: 16px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.station-board .station-card p { margin: 0; font-size: 13px; }
.station-board .station-card p.muted { font-size: 12px; }
.station-board .order-main { gap: 6px; }
.station-board .icon-bar { gap: 4px; flex-wrap: nowrap; }
.station-board .icon-bar .icon-btn { padding: 4px 7px; font-size: 13px; }
.station-board .row { gap: 4px; }
.station-board .badge { font-size: 11px; padding: 1px 7px; }
.station-board .station-item { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; padding: 5px; border-radius: 10px; }
.station-board .station-item .product-visual.sm { width: 48px; height: 48px; border-radius: 7px; }
.station-board .station-item strong { font-size: 14px; line-height: 1.25; }
.station-board .station-item .muted { font-size: 12px; }
.station-board .station-go { min-width: 66px; min-height: 46px; padding: 5px 8px; font-size: 13px; border-radius: 8px; }
.station-board .station-go.wide { min-height: 44px; font-size: 16px; }
.pm-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.pm-visual .product-visual.compact { width: 96px; height: 96px; border-radius: 14px; }
.pm-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pm-title h2 { margin: 0; font-size: 22px; }
.pm-title p { margin: 0; font-size: 13px; }
.pm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pm-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); background: #16161a; font-size: 12px; font-weight: 650; }
.pm-chip.accent { color: var(--accent); border-color: rgba(255, 153, 0, 0.45); }
.pm-chip.ok { color: var(--ok); }
.pm-chip.off { color: var(--muted); }
.pm-chip.danger { color: var(--danger); border-color: rgba(239, 68, 68, 0.45); }
.pm-tabs { margin-bottom: 12px; }
.pm-pane { min-height: 220px; }
.pm-form { display: flex; flex-direction: column; gap: 14px; }
.pm-section { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: #16161a; }
.pm-section h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.pm-hint { margin: 0; display: flex; align-items: flex-start; gap: 6px; font-size: 12px; }
.pm-costs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.pm-cost {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  width: 100%; padding: 12px 14px; text-align: left; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
}
button.pm-cost { cursor: pointer; transition: border-color 0.15s, background 0.15s; }
button.pm-cost:hover { border-color: var(--accent); background: #2f2b24; }
.pm-cost-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 153, 0, 0.12); color: var(--accent); }
.pm-cost.packaging .pm-cost-icon { background: rgba(245, 196, 81, 0.12); color: #F5C451; }
.pm-cost.suggest .pm-cost-icon { background: rgba(61, 220, 151, 0.12); color: var(--ok); }
.pm-cost.suggest .pm-cost-body strong.pm-good { font-size: inherit; color: var(--ok); }
.pm-cost.suggest .pm-cost-body strong.pm-low { font-size: inherit; color: var(--danger); }
.pm-cost-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pm-cost-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.pm-cost-body strong { font-size: 22px; line-height: 1.2; }
.pm-cost-body small { font-size: 12px; }
.pm-cost-go { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--accent); }
.pm-margin { margin: 0; font-size: 13px; color: var(--muted); }
.pm-section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pm-section-head .switch { font-size: 13px; }
.pm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 10px; }
.pm-grid .pm-wide { grid-column: span 2; }
.pm-compact { gap: 10px; }
.pm-compact .pm-section { padding: 10px 12px; gap: 8px; }
.pm-compact .pm-costs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pm-compact .pm-cost { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px; border-radius: 12px; align-items: start; }
.pm-compact .pm-cost-go { align-self: center; }
.pm-compact .pm-cost-icon { width: 38px; height: 38px; border-radius: 10px; }
.pm-compact .pm-cost-body strong { font-size: 18px; }
.pm-compact .pm-cost-title { font-size: 11px; }
@media (max-width: 720px) {
  .pm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pm-compact .pm-costs { grid-template-columns: 1fr; }
}
.pm-margin strong { color: var(--text); }
.pm-list-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pm-list-head h3 { margin: 0; font-size: 15px; }
.pm-lines { display: flex; flex-direction: column; gap: 8px; }
.pm-lines:empty::before { content: attr(data-empty); display: block; padding: 18px; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); text-align: center; font-size: 13px; }
.recipe-line.pm-line {
  display: grid; grid-template-columns: minmax(0, 1fr) 150px 96px 40px; gap: 10px; align-items: end;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #16161a;
}
.recipe-line.pm-line.pm-extra { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px 110px 40px; }
.recipe-line.pm-line label { font-size: 12px; }
.pm-qty { display: flex; align-items: stretch; }
.pm-qty input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
.pm-qty span { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--border); border-left: 0; border-radius: 0 8px 8px 0; background: #222228; color: var(--muted); font-size: 12px; font-weight: 700; }
.pm-line-cost { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding-bottom: 8px; }
.pm-line-cost small { font-size: 11px; color: var(--muted); }
.pm-remove { width: 40px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; }
.pm-remove:hover { color: var(--danger); border-color: rgba(240, 113, 120, 0.45); background: rgba(240, 113, 120, 0.08); }
.pm-readlist { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.pm-readlist > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: #16161a; }
.pm-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.pm-foot .btn { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 720px) {
  .recipe-line.pm-line, .recipe-line.pm-line.pm-extra { grid-template-columns: minmax(0, 1fr) 40px; }
  .recipe-line.pm-line > label, .pm-line-cost { grid-column: 1; }
  .pm-remove { grid-column: 2; grid-row: 1; }
  .pm-line-cost { flex-direction: row; justify-content: space-between; padding: 0; }
}
.recipe-line { display: flex; gap: 8px; align-items: flex-end; }
.recipe-line label { flex: 1; min-width: 0; }
.recipe-line .qty { flex: 0 0 110px; }
.ingredient-card { min-height: 210px; }
.ingredient-card.low { border-color: var(--danger); }
.card-tags {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px; pointer-events: none;
}
.card-tag {
  padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  background: #2f2b24; color: var(--accent); border: 1px solid rgba(255, 153, 0, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.card-tag.danger { background: #3a1f23; color: var(--danger); border-color: rgba(240, 113, 120, 0.55); }
.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow: auto; }
.icon-opt {
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border); border-radius: 10px; color: var(--text); position: relative;
}
.icon-opt input { position: absolute; opacity: 0; pointer-events: none; }
.icon-opt:has(input:checked) { border-color: var(--accent); color: var(--accent); background: #26262e; }
.chart-box { position: relative; height: 260px; }
.chart-box.tall { height: 340px; }
.report-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 10px; }
.report-bar[hidden] { display: none; }
.report-bar label { min-width: 150px; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 14px 0; }
.card .metric-top span { display: flex; align-items: center; gap: 6px; }
.metric-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.metric small { display: block; margin-top: 6px; }
.help { border: 0; background: transparent; color: var(--muted); padding: 0; cursor: pointer; display: inline-flex; }
.th-help { display: inline-flex; align-items: center; gap: 4px; }
.delta { margin: 8px 0 0; font-size: 12px; }
.delta.up { color: var(--ok); }
.delta.down { color: var(--danger); }
.report-charts { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 12px; margin-bottom: 12px; }
.panel h2 { margin: 0 0 8px; font-size: 16px; }
.panel .muted { margin: 0 0 10px; font-size: 13px; }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px;
}
.rank-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rank-name > span { display: flex; flex-direction: column; min-width: 0; }
.rank-name small.muted { margin: 0; font-size: 11px; }
.rank-name iconify-icon { color: var(--accent); flex: none; }
.rank-list .num { font-weight: 600; white-space: nowrap; }
.inline-select { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.inline-select select { width: auto; }
.muted-row td { opacity: 0.55; }
.panel td small.delta { margin: 0; }
.card[data-detail-key] { cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.card[data-detail-key]:hover,
.card[data-detail-key]:focus-visible { border-color: var(--accent); background: #24242b; outline: none; }
.detail-table { max-height: 62vh; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.detail-table table { margin: 0; }
.detail-table thead th { position: sticky; top: 0; background: #1E1E24; z-index: 1; }
.detail-table tfoot td { position: sticky; bottom: 0; background: #26262e; font-weight: 700; border-top: 1px solid var(--border); }
.detail-table td.neg { color: var(--danger); }
.detail-table td, .detail-table th { white-space: nowrap; }

html:has(body.storefront),
body.storefront {
  --land-ink: #2a140c;
  --land-red: #e23b2b;
  --land-yellow: #ffc20e;
  --land-green: #2f9e57;
  --land-cream: #fff8ef;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(255, 194, 14, 0.45), transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgba(226, 59, 43, 0.18), transparent 55%),
    #fff8ef;
  color: #2a140c;
}
.menu-intro .land-kicker { color: #ffc20e; }
.menu-page {
  padding: 22px 6vw 120px;
  font-family: Fredoka, "Segoe UI", sans-serif; color: #2a140c;
}
.menu-page h1, .menu-page h2, body.storefront .modal h2 { font-family: "Lilita One", Fredoka, sans-serif; font-weight: 400; }
.menu-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.storefront .brand-mark { background: #e23b2b; color: #fff; }
.storefront .brand strong { font-family: "Lilita One", Fredoka, sans-serif; font-size: 22px; font-weight: 400; }
.storefront .brand span { color: #8a5a3a; }
.menu-intro {
  margin-top: 18px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; align-items: center;
  background: #e23b2b; color: #fff; border-radius: 32px; overflow: hidden; min-height: 240px;
}
.menu-intro div { padding: 28px; }
.menu-intro h1 { margin: 6px 0 8px; font-size: clamp(40px, 5vw, 64px); line-height: .92; }
.menu-intro p { margin: 0; }
.menu-intro img { width: 100%; height: 280px; object-fit: cover; animation: land-float 4.8s ease-in-out infinite; }
.menu-jump {
  position: sticky; top: 0; z-index: 4; display: flex; gap: 8px; flex-wrap: wrap;
  padding: 12px 0; background: rgba(255, 248, 239, .94); backdrop-filter: blur(8px);
}
.menu-jump button { border-radius: 999px; padding: 8px 14px; font-weight: 700; background: #fff; color: #2a140c; box-shadow: 0 4px 0 rgba(42,20,12,.08); }
.menu-group { margin-top: 8px; }
.menu-group h2 { margin: 18px 0 10px; font-size: 32px; }
.menu-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.menu-tile {
  display: flex; flex-direction: column; text-align: left; color: #2a140c; background: #fff;
  border-radius: 24px; overflow: hidden; padding: 0; box-shadow: 0 10px 0 rgba(42,20,12,.06);
  animation: land-rise .55s ease both;
}
.menu-tile:hover { translate: 0 -6px; }
.menu-tile:disabled { opacity: .5; }
.menu-tile img, .menu-fallback { height: 160px; width: 100%; object-fit: cover; }
.menu-fallback { display: grid; place-items: center; color: #fff; }
.menu-fallback.tone-red, .menu-jump .tone-red { background: #e23b2b; }
.menu-fallback.tone-yellow { background: #ffc20e; color: #2a140c; }
.menu-fallback.tone-green { background: #2f9e57; }
.menu-tile div { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.menu-tile strong { font-size: 18px; }
.menu-price { font-family: "Lilita One", Fredoka, sans-serif; color: #e23b2b; font-size: 22px; }
.menu-tile small { color: #8a5a3a; }
.menu-bag {
  position: fixed; z-index: 15; left: 50%; bottom: 18px; translate: -50% 0;
  display: inline-flex; align-items: center; gap: 10px;
  background: #e23b2b; color: #fff; border-radius: 999px; padding: 14px 22px;
  font-weight: 700; box-shadow: 0 10px 0 #9d1d14;
}
.menu-bag.bump { animation: land-pop .45s ease; }
.menu-bag[hidden] { display: none; }
body.storefront .modal .stack > img,
body.storefront .modal .menu-fallback { width: 100%; height: 180px; object-fit: cover; border-radius: 18px; }
.menu-qty { display: flex; align-items: center; gap: 10px; }
.menu-qty button, .extra-chip, .choice {
  border-radius: 999px; background: #fff; color: #2a140c; border: 2px solid #ead8c4; padding: 8px 12px; font-weight: 700;
}
.extra-chip, .choice { border-radius: 16px; }
.extra-chip.on, .choice.on { border-color: #e23b2b; background: #fff1ea; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-line { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #ead8c4; }
.menu-done { text-align: center; background: #fff; border-radius: 28px; padding: 36px 20px; margin-top: 24px; }
.menu-done h2 { font-size: 42px; margin-bottom: 8px; }
body.storefront .modal { background: #fff8ef; color: #2a140c; border: 0; border-radius: 28px; }
body.storefront .modal .land-cta {
  width: 100%; justify-content: center; margin-bottom: 14px;
  background: #e23b2b; color: #fff;
}
#delivery-box[hidden] { display: none; }
body.storefront .modal input, body.storefront .modal textarea, body.storefront .modal select {
  background: #fff; color: #2a140c; border-color: #ead8c4;
}
body.storefront .modal label { color: #8a5a3a; }
body.storefront .toast { background: #fff8ef; color: #2a140c; }
body.on-landing .modal-back {
  --land-red: #e23b2b; --land-yellow: #ffc20e; --land-green: #2f9e57;
  background: rgba(42, 20, 12, 0.55); backdrop-filter: blur(4px);
}
body.on-landing .modal {
  width: min(420px, 100%); padding: 26px; border: 0; border-radius: 28px; color-scheme: light;
  background: #fff8ef; color: #2a140c; font-family: Fredoka, "Segoe UI", sans-serif;
  box-shadow: 0 16px 0 rgba(226, 59, 43, 0.22), 0 30px 60px rgba(0, 0, 0, 0.3);
  animation: land-rise 0.35s ease both;
}
body.on-landing .modal h2 { margin: 2px 0 0; font-family: "Lilita One", Fredoka, sans-serif; font-weight: 400; font-size: 30px; line-height: 1; }
.login-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.login-head .land-ico { margin: 0; flex: none; }
body.on-landing .modal label { color: #8a5a3a; font-size: 14px; font-weight: 600; }
body.on-landing .modal input {
  background: #fff; color: #2a140c; border: 2px solid #ead8c4; border-radius: 14px; padding: 11px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
body.on-landing .modal input:focus { border-color: var(--land-red); box-shadow: 0 0 0 4px rgba(226, 59, 43, 0.12); }
body.on-landing .modal .land-cta { width: 100%; justify-content: center; margin-top: 8px; font-size: 16px; animation: none; }
body.on-landing .modal .land-cta:active { translate: 0 4px; box-shadow: 0 6px 0 #9d1d14; }
body.on-landing .toast { background: #fff8ef; color: #2a140c; border-color: #ead8c4; border-left-color: #e23b2b; font-family: Fredoka, "Segoe UI", sans-serif; }
.menu-hero { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 18px; }
.showcase { margin-top: 28px; display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 22px; align-items: center; }
.showcase img, .shot img, .menu-banner img { width: 100%; object-fit: cover; display: block; }
.showcase img { height: 480px; border-radius: 18px; }
.showcase h1 { font-size: clamp(40px, 5vw, 64px); line-height: 0.95; margin: 8px 0 14px; letter-spacing: -0.03em; }
.shot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.shot { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.shot img { height: 220px; }
.shot div { padding: 12px 14px 16px; }
.menu-banner { position: relative; border-radius: 18px; overflow: hidden; margin-bottom: 18px; }
.menu-banner img { height: 320px; }
.menu-banner div {
  position: absolute; inset: auto 0 0 0; padding: 28px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}
.menu-banner h1 { margin: 0 0 6px; font-size: clamp(36px, 5vw, 56px); }
.menu-card {
  display: grid; grid-template-columns: 112px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.menu-card .product-visual { width: 112px; height: 84px; aspect-ratio: auto; }
.menu-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 14px; }
.menu-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.landing {
  --land-ink: #2a140c;
  --land-red: #e23b2b;
  --land-yellow: #ffc20e;
  --land-green: #2f9e57;
  --land-cream: #fff8ef;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  padding: 22px 6vw 72px;
  color: var(--land-ink);
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(255, 194, 14, 0.45), transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgba(226, 59, 43, 0.18), transparent 55%),
    var(--land-cream);
  font-family: Fredoka, "Segoe UI", sans-serif;
}
.landing h1, .landing h2 { font-family: "Lilita One", Fredoka, sans-serif; letter-spacing: 0.01em; }
.landing-top, .hero-actions { display: flex; justify-content: space-between; gap: 16px; align-items: center; position: relative; z-index: 2; }
.landing .brand strong { font-family: "Lilita One", Fredoka, sans-serif; font-size: 22px; font-weight: 400; }
.landing .brand span { color: #8a5a3a; }
.landing .brand-mark { background: var(--land-red); color: #fff; }
.land-glow { position: absolute; width: 280px; height: 280px; border-radius: 50%; filter: blur(8px); z-index: 0; animation: land-drift 9s ease-in-out infinite; }
.land-glow-a { right: 8%; top: 180px; background: rgba(255, 194, 14, 0.35); }
.land-glow-b { left: -40px; bottom: 40px; background: rgba(226, 59, 43, 0.16); animation-delay: -3s; }
.land-marquee { position: relative; z-index: 2; margin: 18px -6vw 8px; background: var(--land-red); color: #fff; overflow: hidden; transform: rotate(-1.2deg); }
.land-track { display: flex; width: max-content; min-height: 42px; padding: 10px 0; animation: land-marquee 22s linear infinite; will-change: transform; }
.land-track span { padding-right: 36px; white-space: nowrap; font-family: "Lilita One", Fredoka, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }
.land-track span::before { content: "★"; color: var(--land-yellow); margin-right: 36px; }
.land-hero { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: center; padding: 28px 0 10px; }
.land-copy h1 { font-size: clamp(46px, 6vw, 78px); line-height: 0.92; margin: 8px 0 14px; }
.land-copy p { font-size: 18px; max-width: 520px; }
.land-kicker { color: var(--land-red); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; margin: 0; }
.land-note { margin-top: 16px; color: #8a5a3a; min-height: 1.2em; }
.land-cta, .land-quiet {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 12px 18px; font-weight: 700; text-decoration: none;
}
.land-cta { background: var(--land-red); color: #fff; box-shadow: 0 10px 0 #9d1d14; animation: land-pop 2.8s ease-in-out infinite; }
.land-cta:hover { translate: 0 -2px; }
.land-cta-yellow { background: var(--land-yellow); color: #2a140c; box-shadow: 0 8px 0 #d39a00; animation: none; }
.land-quiet { background: transparent; color: var(--land-ink); border: 2px solid #2a140c; }
.land-stage { position: relative; min-height: 460px; border-radius: 36px; overflow: hidden; background: var(--land-red); box-shadow: 0 24px 0 rgba(226, 59, 43, 0.18); }
.land-stage.tone-yellow { background: var(--land-yellow); box-shadow: 0 24px 0 rgba(211, 154, 0, 0.25); }
.land-stage.tone-green { background: var(--land-green); box-shadow: 0 24px 0 rgba(47, 158, 87, 0.22); }
.land-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.04); transition: opacity .55s ease, transform .55s ease; }
.land-slide.on { opacity: 1; transform: none; }
.land-slide img { width: 100%; height: 100%; object-fit: cover; animation: land-float 4.8s ease-in-out infinite; }
.land-slide figcaption { position: absolute; left: 18px; right: 18px; bottom: 64px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.land-slide small { display: block; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; }
.land-slide strong { font-family: "Lilita One", Fredoka, sans-serif; font-size: 28px; }
.land-sticker {
  position: absolute; z-index: 2; top: 18px; right: 18px;
  background: var(--land-yellow); color: #2a140c; border-radius: 999px;
  padding: 8px 12px; font-family: "Lilita One", Fredoka, sans-serif;
  transform: rotate(8deg); animation: land-wiggle 2.4s ease-in-out infinite;
}
.land-dots { position: absolute; z-index: 2; left: 18px; bottom: 16px; display: flex; gap: 8px; }
.land-dots button { width: 12px; height: 12px; border-radius: 999px; background: rgba(255,255,255,.55); padding: 0; }
.land-dots button.on { width: 28px; background: #fff; }
.land-cats, .land-points { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.land-cat { display: block; text-decoration: none; color: #fff; border-radius: 28px; overflow: hidden; background: var(--land-red); transform: translateY(0); transition: transform .25s ease; }
.land-cat.tone-yellow { background: var(--land-yellow); color: #2a140c; }
.land-cat.tone-green { background: var(--land-green); }
.land-cat img { height: 190px; width: 100%; object-fit: cover; transition: transform .45s ease; }
.land-cat:hover { transform: translateY(-8px) rotate(-0.6deg); }
.land-cat:hover img { transform: scale(1.06); }
.land-cat div, .land-points article { padding: 16px 16px 18px; }
.land-cat h2, .land-points h2 { margin: 0 0 4px; font-size: 28px; }
.land-cat p, .land-points p { margin: 0; }
.land-points article { background: #fff; border-radius: 24px; box-shadow: 0 10px 0 rgba(42, 20, 12, 0.06); }
.land-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 10px; color: #fff; }
.land-ico.tone-red { background: var(--land-red); }
.land-ico.tone-yellow { background: var(--land-yellow); color: #2a140c; }
.land-ico.tone-green { background: var(--land-green); }
.land-copy { animation: land-rise .7s ease both; }
.land-stage { animation: land-rise .7s .1s ease both; }
.land-cats a { animation: land-rise .6s ease both; }
.land-cats a:nth-child(2) { animation-delay: .12s; }
.land-cats a:nth-child(3) { animation-delay: .22s; }
@keyframes land-marquee { to { transform: translateX(-50%); } }
@keyframes land-float { 50% { transform: translateY(-12px) scale(1.04); } }
@keyframes land-wiggle { 50% { transform: rotate(12deg) scale(1.05); } }
@keyframes land-pop { 50% { translate: 0 -3px; } }
@keyframes land-drift { 50% { transform: translateY(-18px) scale(1.08); } }
@keyframes land-rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .land-slide img, .land-sticker, .land-cta, .land-glow, .land-copy, .land-stage, .land-cats a { animation: none; }
}
.success-box { text-align: center; padding: 12px; }

.site-foot {
  position: relative; z-index: 2; margin: 64px -6vw -72px; padding: 46px 6vw 26px;
  background: #2a140c; color: #f3e3d3; border-radius: 36px 36px 0 0; overflow: hidden;
  font-family: Fredoka, "Segoe UI", sans-serif;
}
.menu-page .site-foot { margin-bottom: -120px; padding-bottom: 110px; }
.site-foot::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 8px;
  background: linear-gradient(90deg, #e23b2b 0 33.4%, #ffc20e 33.4% 66.7%, #2f9e57 66.7%);
}
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 0.8fr; gap: 28px 36px; }
.site-foot h3 { margin: 0 0 12px; font-family: "Lilita One", Fredoka, sans-serif; font-weight: 400; font-size: 20px; color: #ffc20e; letter-spacing: 0.02em; }
.site-foot p { margin: 0 0 10px; }
.foot-brand .brand { padding: 0; margin-bottom: 12px; }
.foot-brand .brand-mark { background: #e23b2b; color: #fff; }
.foot-brand .brand strong { font-family: "Lilita One", Fredoka, sans-serif; font-size: 22px; font-weight: 400; color: #fff; }
.foot-brand .brand span { color: #c9a88a; }
.foot-brand p { max-width: 340px; color: #c9a88a; }
.foot-line { display: flex; align-items: flex-start; gap: 6px; }
.foot-line iconify-icon, .foot-link iconify-icon { color: #ffc20e; flex: none; }
.foot-link { display: flex; align-items: center; gap: 6px; width: fit-content; color: #f3e3d3; text-decoration: none; padding: 3px 0; transition: color 0.15s, translate 0.15s; }
.foot-link:hover { color: #ffc20e; translate: 3px 0; }
.foot-link[hidden] { display: none; }
.foot-nav { display: flex; flex-direction: column; }
.foot-whats {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: #2f9e57; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 6px 0 #1f6b3a;
  transition: translate 0.15s, box-shadow 0.15s;
}
.foot-whats:hover { translate: 0 -2px; box-shadow: 0 8px 0 #1f6b3a; }
.foot-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(243, 227, 211, 0.14); color: #c9a88a; font-size: 13px; }
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-foot { border-radius: 28px 28px 0 0; padding-top: 38px; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
}

.topbar, .nav-scrim { display: none; }
@media (max-width: 980px) {
  .shell { display: block; }
  .topbar {
    display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 12;
    padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border);
  }
  .topbar .brand { padding: 0; min-width: 0; }
  .menu-btn {
    width: 40px; height: 40px; flex: none; display: grid; place-items: center;
    border-radius: 10px; border: 1px solid var(--border); color: var(--text);
  }
  .sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 25; width: min(280px, 84vw); height: auto;
    overflow-y: auto; transform: translateX(-100%); transition: transform 0.22s ease; box-shadow: var(--shadow);
  }
  .shell.nav-open .sidebar { transform: none; }
  .nav-scrim {
    display: block; position: fixed; inset: 0; z-index: 24; background: rgba(0, 0, 0, 0.55);
    opacity: 0; pointer-events: none; transition: opacity 0.2s;
  }
  .shell.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
  .main.fit { height: auto; overflow: visible; display: block; padding-bottom: 76px; }
  .pdv-catalog { overflow: visible; }
  .bug-detail { grid-template-columns: minmax(0, 1fr); }
  .pdv, .grid-2, .menu-grid, .landing-points, .showcase, .shot-grid, .pay-layout, .report-charts { grid-template-columns: minmax(0, 1fr); }
  .showcase img, .menu-banner img { height: 240px; }
  .hero h1, .showcase h1, .land-copy h1 { font-size: 40px; }
  .land-hero, .land-cats, .land-points, .menu-intro { grid-template-columns: 1fr; }
  .menu-intro img { height: 200px; }
  .land-stage { min-height: 320px; }
  .landing-top { align-items: flex-start; }
  .main { padding: 16px; }
}

.dl-tabs { margin: 16px 0 4px; flex-wrap: wrap; }
.dl-tab-count:not(:empty) { margin-left: 6px; min-width: 22px; padding: 0 7px; border-radius: 999px; background: #2f2b24; color: var(--accent); font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }
.dl-pane[hidden] { display: none; }
.dl-group { margin-top: 18px; }
.dl-group[hidden] { display: none; }
.dl-group > h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; }
.dl-icon {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02);
  color: #d4d4d8; cursor: pointer; text-decoration: none; transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.dl-icon[data-tip]::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px);
  padding: 5px 9px; border-radius: 8px; background: #2a2a31; border: 1px solid var(--border); color: var(--text);
  font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  opacity: 0; pointer-events: none; transition: opacity 0.12s, transform 0.12s; z-index: 20;
}
.dl-icon[data-tip]:hover::after, .dl-icon[data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: 0.15s; }
:is(.dl-card-actions, .stop-actions, .dl-modal-foot, .dl-modal-head) .dl-icon:last-child[data-tip]::after { left: auto; right: 0; transform: translate(0, 4px); }
:is(.dl-card-actions, .stop-actions, .dl-modal-foot, .dl-modal-head) .dl-icon:last-child[data-tip]:hover::after,
:is(.dl-card-actions, .stop-actions, .dl-modal-foot, .dl-modal-head) .dl-icon:last-child[data-tip]:focus-visible::after { transform: translate(0, 0); }
.dl-icon:hover, .dl-icon:focus-visible { color: var(--accent); background: rgba(255, 153, 0, 0.1); border-color: rgba(255, 153, 0, 0.35); }
.dl-icon.danger:hover, .dl-icon.danger:focus-visible { color: var(--danger); background: rgba(240, 113, 120, 0.1); border-color: rgba(240, 113, 120, 0.35); }
.dl-card-foot .btn, .dl-modal-foot .btn { display: inline-flex; align-items: center; gap: 6px; }
.dl-pane-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.dl-pane-head p { margin: 0; font-size: 13px; max-width: 640px; }
.dl-plain { cursor: default; }
.dl-plain:hover { border-color: var(--border); }
.dl-address { margin: 0; display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--muted); }
.dl-items summary { cursor: pointer; color: var(--accent); font-weight: 700; margin: 4px 0 8px; }
.dl-items .station-item { margin-bottom: 6px; }
.dl-pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 52vh; overflow: auto; padding-right: 2px; }
.dl-pick { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: #16161a; cursor: pointer; }
.dl-pick:has(input:checked) { border-color: var(--accent); background: #2f2b24; }
.dl-pick input { width: 18px; height: 18px; accent-color: var(--accent); }
.dl-pick.is-taken { opacity: 0.5; cursor: not-allowed; }
.dl-pick-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dl-pick-body .muted { font-size: 12px; }
.dl-pick-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dl-period { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; margin: 6px 0 14px; }
.dl-period-quick, .dl-period-dates { gap: 6px; flex-wrap: wrap; align-items: flex-end; }
.dl-period-dates label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.dl-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-bottom: 14px; }
.dl-metric { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #16161a; }
.dl-metric span { font-size: 12px; color: var(--muted); }
.dl-metric strong { font-size: 20px; }
.dl-metric small { font-size: 11px; }
.dl-cell-sub { display: block; font-size: 11px; }
.dl-card-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dl-seq { width: 32px; height: 32px; font-size: 16px; }
.dl-route-place, .dl-note { margin: 0; display: flex; align-items: flex-start; gap: 6px; font-size: 13px; }
.dl-route-place { color: var(--accent); font-weight: 600; }
.dl-kitchen-items { display: flex; flex-direction: column; gap: 6px; }
:is(.dl-kitchen-items, .stop-fold-items, .dl-items) .station-item { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; padding: 5px; border-radius: 10px; }
:is(.dl-kitchen-items, .stop-fold-items, .dl-items) .station-item .product-visual.sm { width: 48px; height: 48px; border-radius: 7px; }
:is(.dl-kitchen-items, .stop-fold-items, .dl-items) .station-item strong { font-size: 14px; line-height: 1.25; }
:is(.dl-kitchen-items, .stop-fold-items, .dl-items) .station-item .muted { font-size: 12px; }
.dl-empty { margin-top: 28px; text-align: center; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; align-items: start; }
.dl-card { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; cursor: pointer; transition: border-color 0.15s; }
.dl-card:hover { border-color: rgba(255, 153, 0, 0.45); }
.dl-courier, .dl-trip { cursor: default; }
.dl-courier:hover, .dl-trip:hover { border-color: var(--border); }
.dl-courier.is-off { opacity: 0.72; }
.dl-trip.out, .dl-trip.out:hover { border-color: rgba(245, 196, 81, 0.4); }
.dl-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dl-card-top .badge { flex: none; max-width: 55%; white-space: normal; text-align: right; }
.dl-card-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl-card-title strong { font-size: 16px; }
.dl-card-title .muted { font-size: 12px; }
.dl-when { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.dl-when strong { color: var(--accent); }
.dl-card-foot { justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.dl-tags { gap: 6px; flex-wrap: wrap; align-items: center; }
.dl-card-actions { gap: 4px; flex-wrap: wrap; align-items: center; }
.dl-card .station-go { min-height: 40px; min-width: 0; flex-direction: row; gap: 6px; padding: 6px 14px; font-size: 14px; }
.dl-stops { margin: 0; padding-left: 20px; display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 14px; }
.dl-stops li::marker { color: var(--accent); font-weight: 800; }
.dl-modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.dl-modal-head h2 { margin: 0; }
.dl-modal-head p { margin: 4px 0 0; }
.dl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 12px 0; }
.dl-facts div { background: #16161a; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.dl-facts dt { font-size: 12px; color: var(--muted); }
.dl-facts dd { margin: 2px 0 0; }
.dl-modal-foot { justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dl-modal-foot .station-go { min-height: 44px; flex-direction: row; gap: 6px; padding: 6px 16px; }
.danger-text { color: var(--danger); }
.warn-text { color: var(--warn); }
.route-stack { display: flex; flex-direction: column; gap: 12px; }
.courier-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.courier-head > div { display: flex; flex-direction: column; min-width: 0; }
.courier-head .muted { font-size: 12px; }
.courier-avatar { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #2f2b24; color: var(--accent); }
.shift-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; margin-top: 12px; }
.shift-card.on { border-color: rgba(61, 220, 151, 0.45); }
.shift-switch span:last-child { font-weight: 700; }
.route-card { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.route-card.out { border-color: rgba(245, 196, 81, 0.4); }
.trip-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.trip-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trip-head .muted { font-size: 12px; }
.stop-n { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; }
.stop-list { display: flex; flex-direction: column; gap: 8px; }
.stop-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: #16161a; border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; }
.stop-row.done { opacity: 0.55; }
.stop-row.done .stop-n { background: var(--ok); }
.stop-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.stop-body .muted { font-size: 12px; }
.stop-items { font-size: 13px; margin-top: 2px; }
.stop-items summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.stop-items span { display: block; padding-left: 4px; }
.stop-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.stop-row.stop-fold { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.stop-fold details { min-width: 0; }
.stop-fold summary { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; cursor: pointer; list-style: none; }
.stop-fold summary::-webkit-details-marker { display: none; }
.stop-chevron { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.stop-chevron iconify-icon { transition: transform 0.15s; }
.stop-fold details[open] .stop-chevron iconify-icon { transform: rotate(180deg); }
.stop-fold-items { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.stop-fold .stop-actions { padding-top: 2px; }
.stop-actions .station-go { min-height: 48px; min-width: 96px; flex-direction: row; gap: 6px; }
.route-actions { flex-wrap: wrap; justify-content: flex-end; }
.route-actions .btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.route-map { position: relative; z-index: 0; isolation: isolate; width: 100%; height: 360px; overflow: hidden; border-radius: 12px; background: #1b1f24; border: 1px solid var(--border); margin-bottom: 12px; }
.route-map[hidden] { display: none; }
.route-map.tall { height: 460px; margin-bottom: 0; }
.route-map.leaflet-container { font: inherit; background: #1b1f24; }
.route-map .leaflet-tile-pane { filter: brightness(0.86) saturate(0.9); }
.route-map .tile-missing { background: #22262c; }
.route-map .leaflet-bar { border: 1px solid var(--border); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
.route-map .leaflet-bar a { display: grid; place-items: center; width: 40px; height: 40px; line-height: 40px; background: #1e1e24; color: var(--text); border-bottom: 1px solid var(--border); font-size: 20px; }
.route-map .leaflet-bar a:last-child { border-bottom: 0; }
.route-map .leaflet-bar a:hover { background: #2a2a32; color: var(--accent); }
.route-map .leaflet-control-attribution { background: rgba(18, 18, 20, 0.78); color: var(--muted); font-size: 10px; }
.route-map .leaflet-control-attribution a { color: var(--accent); }
.route-map .leaflet-popup-content-wrapper, .route-map .leaflet-popup-tip { background: #1e1e24; color: var(--text); border: 1px solid var(--border); }
.route-map .leaflet-popup-content { margin: 10px 14px; font-size: 13px; }
.route-map .leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.map-pin { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; border: 3px solid #121214; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55); }
.map-pin.store { background: #f4f4f5; color: #121214; }
.map-pin.done { background: var(--ok); }
.map-pin.focus { border-color: #f4f4f5; transform: scale(1.25); box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.55); }
.route-map.pick-map { height: 280px; margin-bottom: 0; }
.route-map.loc-map { height: 260px; min-height: 0; flex: none; margin-bottom: 0; }
.pick-hint { margin: -4px 0 0; font-size: 13px; }
.route-map-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); }
.net-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; margin: 12px 0 0; font-size: 14px; border: 1px solid var(--border); background: var(--surface); }
.net-banner.off { border-color: rgba(245, 196, 81, 0.5); background: #2c2718; color: var(--warn); }
.net-banner.on { border-color: rgba(61, 220, 151, 0.45); color: var(--ok); }
.eta-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; }
.eta-line strong { color: var(--accent); }
.eta-row { margin: 4px 0 0; }
.loc-stats div small { display: block; font-size: 12px; }
.loc-eta-note { margin: 0; font-size: 12px; }
.handoff-card.on { border-color: var(--accent); background: #2f2b24; }
.zone-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 4px 0; }
.zone-grid .handoff-card { padding: 12px 8px; }
.zone-grid .handoff-card strong { font-size: 15px; }
@media (max-width: 640px) {
  .dl-grid { grid-template-columns: 1fr; }
  .stop-row { grid-template-columns: 26px minmax(0, 1fr); }
  .stop-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .stop-actions .station-go { flex: 1; }
  .zone-grid { grid-template-columns: 1fr; }
  .route-map { height: 300px; }
}

@media (max-width: 980px) {
  input, select, textarea { font-size: 16px; }
}
@media (hover: none) and (pointer: coarse) {
  kbd, .page-head p:has(> kbd) { display: none; }
}
@media (max-width: 720px) {
  .main { padding: 14px 12px 32px; }
  .page-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .page-head h1 { font-size: 22px; }
  .cards, .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric-grid { margin: 10px 0; }
  .card { padding: 12px; }
  .card strong { font-size: 19px; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs > * { flex: none; }
  th, td { padding: 9px 10px; }
  .table-wrap table:has(.order-main) { table-layout: fixed; }
  .table-wrap table:not(:has(.order-main)) :is(th, td) { white-space: nowrap; }
  .order-main:has(> .order-name) { flex-wrap: wrap; row-gap: 4px; }
  .order-main > .order-name { flex: 1 1 100%; }
  .order-main > .row { flex-wrap: nowrap; }
  .order-sub { flex-wrap: wrap; }
  .pager { flex-wrap: nowrap; }
  .pager > span { flex: 1; min-width: 0; text-align: center; font-size: 13px; }
  .page-head > .btn, .page-head > .btn-ghost { align-self: flex-start; }
  .slim { width: 52px; white-space: normal; }
  .slim .icon-btn + .icon-btn { margin-top: 6px; }
  .fee-grid, .station-board, .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .breakdown-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-bar label, .invoice-tools label { min-width: 0; flex: 1 1 140px; }
  .pay-head, .step-foot { flex-wrap: wrap; }
  .pay-head .chip-tag { white-space: normal; }
  .modal-back { padding: 10px; }
  .modal, .modal-xl { padding: 14px; max-height: calc(100dvh - 20px); }
  .toasts { left: 12px; right: 12px; bottom: 12px; }
  .toast { min-width: 0; }
  .menu-page { overflow-x: clip; }
}
@media (max-width: 560px) {
  .menu-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .menu-tile { border-radius: 18px; }
  .menu-tile img, .menu-fallback { height: 120px; }
  .menu-tile div { padding: 10px 12px 12px; }
  .menu-tile strong { font-size: 16px; }
  .menu-price { font-size: 19px; }
}