:root {
  --np-ink: #202124;
  --np-canvas: #f8f9fa;
  --np-card: #fff;
  --np-line: #e8eaed;
  --np-blue: #1a73e8;
  --np-blue-deep: #1967d2;
  --np-blue-soft: #e8f0fe;
  --np-green: #188038;
  --np-green-soft: #e6f4ea;
  --np-green-glow: rgba(24, 128, 56, 0.22);
  --np-backdrop: rgba(32, 33, 36, 0.45);
  --np-orange: #e8710a;
  --np-red: #d93025;
  --np-muted: #5f6368;
  --np-chart-1: #1a73e8;
  --np-chart-2: #12b5cb;
  --np-chart-3: #188038;
  --np-chart-4: #f9ab00;
  --np-chart-5: #e8710a;
  --np-chart-6: #d93025;
  --np-chart-7: #e52592;
  --np-chart-8: #9334e6;
  --np-chart-9: #7baaf7;
  --np-chart-10: #5bb974;
  --np-shadow: 0 1px 2px rgba(60, 64, 67, 0.15), 0 1px 3px rgba(60, 64, 67, 0.08);
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: var(--np-ink);
  background: var(--np-canvas);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
[hidden] { display: none !important; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--np-blue);
  outline-offset: 2px;
}
.app { max-width: 480px; min-height: 100dvh; margin: auto; background: #fff; padding-bottom: 88px; }
.app.mode-screen { display: flex; flex-direction: column; height: 100dvh; min-height: 100dvh; padding-bottom: 88px; overflow: hidden; }
.app.mode-screen main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.top {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--np-line);
}
.top-actions { display: flex; align-items: center; gap: 8px; }
#bell { position: relative; }
.bell-panel {
  position: absolute; top: 64px; right: 12px; z-index: 4; width: min(360px, calc(100% - 24px));
  max-height: 70vh; overflow: auto; padding: 8px; border-radius: 16px; background: #fff; box-shadow: var(--np-shadow);
}
.bell-panel h2 { margin: 8px 8px 4px; font-size: 12px; font-weight: 500; color: var(--np-muted); }
.bell-item {
  display: block; width: 100%; margin: 0; padding: 10px 12px; border: 0; border-radius: 12px;
  background: transparent; text-align: left; color: var(--np-ink);
}
.bell-item:hover { background: var(--np-canvas); }
.bell-item b, .bell-item span { display: block; }
.bell-empty { margin: 8px; color: var(--np-muted); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand strong { display: block; font-size: 16px; }
.brand small, .muted { color: var(--np-muted); }
.brand select { max-width: 168px; border: 0; background: transparent; color: var(--np-muted); font-size: 12px; }
.brand-icon, .icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 20px; background: var(--np-blue-soft); color: var(--np-blue);
}
.icon-btn, .brand-icon { border: 0; padding: 0; }
.brand-icon:disabled { cursor: default; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
main { padding: 16px; }
h1 { margin: 0 0 8px; font-size: 24px; font-weight: 400; }
h2 { margin: 0 0 12px; font-size: 18px; font-weight: 500; }
.panel, .row {
  background: var(--np-card); border-radius: 28px; box-shadow: var(--np-shadow); padding: 12px 14px; margin-bottom: 12px;
}
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; border: 0; text-align: left; }
.row b { display: block; }
.price { color: var(--np-blue-deep); font-weight: 500; }
.badge { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 8px; background: var(--np-blue-soft); color: var(--np-blue); font-size: 12px; }
.badge.off { background: var(--np-canvas); color: var(--np-muted); }
.field { display: block; margin-bottom: 12px; color: var(--np-muted); }
.field[hidden] { display: none; }
.with-add { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.with-add select { flex: 1 1 auto; width: 1%; min-width: 0; margin-top: 0; }
.add-btn {
  flex: 0 0 48px; display: grid; place-items: center; width: 48px; height: 48px; margin: 0; padding: 0;
  border: 0; border-radius: 24px; background: var(--np-blue); color: #fff; font-size: 18px;
}
.field input, .field textarea, .field select, .search {
  width: 100%; margin-top: 4px; border: 0; border-radius: 24px; background: var(--np-canvas); padding: 14px 16px; color: var(--np-ink);
}
.field input[type="file"] { padding: 10px 16px; }
.photo-slot { display: block; margin: 8px 0 4px; }
.photo-slot:empty { display: none; }
.photo-slot .photo { width: 100%; max-height: 240px; }
.field textarea { min-height: 88px; border-radius: 16px; }
.search-wrap { position: relative; display: block; margin: 0 0 12px; }
.search-wrap i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--np-muted); }
.search-wrap .search { margin: 0; padding-left: 42px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 12px; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.chip {
  flex: 0 0 auto; min-height: 36px; padding: 0 14px; border: 0; border-radius: 18px;
  background: var(--np-canvas); color: var(--np-ink); transition: background 0.2s ease, color 0.2s ease;
}
.chip.on { background: var(--np-blue); color: #fff; }
.sales-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.sales-filters .field { margin-bottom: 8px; }
.tile.wide.has-orders { grid-template-columns: 64px 1fr auto; }
.count-badge { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 16px; background: var(--np-orange); color: var(--np-card); font-weight: 600; }
.order-row, .order-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; border: 0; text-align: left; }
.order-state { display: inline-block; padding: 2px 8px; border-radius: 8px; background: var(--np-blue-soft); color: var(--np-blue-deep); font-size: 12px; }
.order-state.ready, .order-state.paid { background: var(--np-green-soft); color: var(--np-green); }
.order-cam { display: block; width: 100%; max-height: 280px; margin: 0 0 10px; border-radius: 18px; background: #111; object-fit: cover; }
.scan-actions { display: grid; gap: 8px; margin: 0 0 18px; }
.scan-open {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin: 0; padding: 0 18px;
  border: 0; border-radius: 26px; font-size: 16px; font-weight: 600; cursor: pointer;
}
button.scan-open { background: var(--np-blue); color: #fff; }
label.scan-open { background: var(--np-blue-soft); color: var(--np-blue-deep); }
.scan-open input { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.scan-queue { margin: 0 4px 10px; font-size: 15px; font-weight: 700; color: var(--np-ink); }
.scan-live { margin: 0 0 12px; padding: 12px; border-radius: 28px; background: #111; }
.scan-live .secondary { background: #fff; color: var(--np-ink); }
.order-cancel summary { cursor: pointer; color: var(--np-red); font-weight: 500; }
.order-cancel .field { margin-top: 12px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.grid .empty { grid-column: 1 / -1; }
.card { position: relative; width: 100%; border-radius: 16px; background: #fff; box-shadow: var(--np-shadow); }
.card.picked { box-shadow: 0 0 0 2px var(--np-orange), var(--np-shadow); }
.card-open { display: grid; gap: 8px; width: 100%; padding: 8px; border: 0; border-radius: 16px; background: transparent; color: inherit; text-align: left; }
.card-open .card-copy b { overflow-wrap: anywhere; }
.card-open .price { display: flex; align-items: center; min-height: 40px; padding-right: 48px; }
.card-qty {
  position: absolute; top: 4px; right: 4px; display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px;
  border-radius: 14px; background: var(--np-orange); color: #fff; font-size: 13px; font-weight: 600; box-shadow: var(--np-shadow); pointer-events: none;
}
.card-add {
  position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 20px; background: #aeb3b8; color: #fff; font-size: 16px; box-shadow: var(--np-shadow);
}
.card-add:hover { background: var(--np-blue); color: #fff; }
.card-copy { display: grid; gap: 2px; min-width: 0; }
.card b { font-size: 14px; font-weight: 500; }
.photo { display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--np-canvas); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.fallback, form + .photo, h1 + .photo { display: grid; place-items: center; color: var(--np-blue); font-size: 28px; }
h1 + .photo { width: 100%; max-height: 220px; margin-bottom: 12px; aspect-ratio: 16 / 10; }
h1 + .photo img { object-fit: cover; }
.search { margin: 0 0 12px; }
.primary, .secondary {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border: 0; border-radius: 24px; font-weight: 500;
}
.primary { background: var(--np-blue); color: #fff; }
a.primary { text-decoration: none; }
.secondary { margin-top: 8px; background: var(--np-blue-soft); color: var(--np-blue-deep); }
label.secondary { cursor: pointer; }
label.file-btn input { display: none; }
.whatsapp { background: #128C7E; color: #fff; }
.paid-strip {
  display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 12px; padding: 12px 14px;
  border: 0; border-radius: 16px; background: var(--np-green-soft); color: var(--np-green); text-align: left;
  animation: np-paid-shake 0.62s ease;
}
.paid-check {
  display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 21px;
  background: var(--np-green); color: #fff; font-size: 20px;
}
.paid-copy { display: grid; gap: 2px; min-width: 0; }
.paid-strip b { font-weight: 700; color: var(--np-green); }
.paid-link { color: var(--np-green); font-weight: 600; }
.more { width: 100%; margin: 4px 0 16px; }
.bottom {
  position: fixed; left: 50%; bottom: 0; z-index: 5; transform: translateX(-50%); width: min(480px, 100%);
  display: flex; gap: 4px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--np-line);
  box-shadow: 0 -1px 2px rgba(60, 64, 67, 0.08);
}
.bottom button {
  flex: 1; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 56px; min-width: 0;
  border: 0; border-radius: 16px; background: transparent; color: var(--np-muted); font-size: 10px; line-height: 1.05;
}
.bottom button.active { background: var(--np-blue); color: #fff; }
.app.has-checkout { padding-bottom: 160px; }
.checkout {
  position: fixed; left: 0; right: 0; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 4;
  display: flex; align-items: center; gap: 12px; width: min(448px, calc(100% - 32px)); min-height: 56px; margin: 0 auto; padding: 8px 20px 8px 10px;
  border: 0; border-radius: 28px; background: var(--np-orange); color: #fff; font-size: 16px; font-weight: 500;
  box-shadow: 0 2px 6px rgba(60, 64, 67, 0.3);
}
.checkout b { margin-left: auto; font-weight: 600; }
.checkout * { pointer-events: none; }
.checkout-icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 20px; background: rgba(255, 255, 255, 0.2); font-size: 18px; }
.checkout-count {
  position: absolute; top: -4px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: #fff; color: var(--np-orange); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
}
.bottom button span { max-width: 100%; overflow: hidden; text-align: center; }
#toast {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%) translateY(12px); max-width: 90%;
  padding: 10px 16px; border-radius: 20px; background: var(--np-ink); color: #fff; opacity: 0; pointer-events: none;
}
#toast.show { opacity: 1; transform: translateX(-50%); }
.empty { text-align: center; color: var(--np-muted); padding: 24px 8px; }
.hero { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 12px 0 18px; }
.hero .logo { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--np-blue-soft); color: var(--np-blue); font-size: 28px; }
.hero .logo.has-mark {
  box-sizing: border-box; width: 220px; height: 220px; border-radius: 50%; overflow: hidden;
  background: #fff; border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--np-line), 0 10px 24px rgba(32, 33, 36, 0.22);
}
.hero .logo.has-mark img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; object-position: center; border-radius: 0; }
.hero h1 { margin: 8px 0 0; font-weight: 500; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.tile, .mode-card, .pay-row, .set-row, .sale-row, .mesa {
  width: 100%; border: 0; background: #fff; box-shadow: var(--np-shadow); text-align: left;
}
.tile { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 124px; padding: 16px 10px; border: 1px solid var(--np-line); border-radius: 22px; text-align: center; }
.tile.wide { grid-template-columns: 64px 1fr; justify-items: start; align-items: center; column-gap: 14px; min-height: 92px; margin-bottom: 12px; padding: 14px 16px; text-align: left; }
.tile i {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px;
  background: var(--np-blue-soft); color: var(--np-blue); font-size: 28px;
}
.tile b { font-size: 15px; font-weight: 600; }
.bottom button i { font-size: 22px; }
.cash-pill { display: flex; gap: 12px; align-items: center; }
.cash-pill b, .cash-pill .muted { display: block; }
.cash-pill .dot { flex: 0 0 12px; width: 12px; height: 12px; border-radius: 6px; background: var(--np-red); }
.cash-pill.on .dot { background: var(--np-green); }
.cash-pill > div { flex: 1; min-width: 0; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; min-height: 40px; padding: 0 14px;
  border: 0; border-radius: 20px; background: var(--np-blue-soft); color: var(--np-blue-deep); font-weight: 500;
}
.subscription-qr { text-align: center; }
.subscription-due-alert {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px;
  padding: 14px 16px; border: 1px solid #f9ab00; border-left: 6px solid #e8710a; border-radius: 16px;
  background: #fff4ce; color: #6b3f00; box-shadow: var(--np-shadow);
}
.subscription-due-copy { display: flex; align-items: center; gap: 10px; min-width: 0; }
.subscription-due-copy i { flex: 0 0 auto; color: #d56b00; font-size: 21px; }
.subscription-due-copy b { font-size: 14px; line-height: 1.4; }
.subscription-due-action {
  flex: 0 0 auto; min-height: 40px; padding: 0 14px; border: 0; border-radius: 20px;
  background: #9a4e00; color: #fff; font-weight: 600;
}
@media (max-width: 420px) {
  .subscription-due-alert { align-items: flex-start; flex-direction: column; }
}
.demo-qr {
  position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  width: min(224px, 75vw); aspect-ratio: 1; margin: 14px auto; padding: 16px;
  border: 1px solid var(--np-line); border-radius: 12px; background: #fff; overflow: hidden;
}
.demo-qr i { display: block; border-radius: 2px; background: #202124; }
.demo-qr b {
  position: absolute; inset: 42% 8% auto; padding: 8px 2px; transform: rotate(-12deg);
  background: #fff; color: var(--np-red); border: 2px solid var(--np-red); font-size: 20px; letter-spacing: 2px;
}
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.kv.strong { font-size: 16px; }
.kv.short b, .cash-diff.short { color: var(--np-red); }
.cash-diff { min-height: 20px; margin: 0 0 8px; font-weight: 500; }
.cash-diff.ok { color: var(--np-green); }
.cash-ask { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--np-line); }
.close-ticket .kv { padding: 1px 0; }
.close-ticket .kv.strong { font-size: 13px; }
.set-row, .pay-row { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; margin-bottom: 12px; }
.pay-row i, .set-row i { color: var(--np-blue); }
.set-row b, .pay-row b { display: block; }
.mode-pick { flex: 1; display: grid; grid-template-rows: 1fr 1fr; gap: 16px; min-height: 0; }
.mode-card {
  display: grid; justify-items: center; align-content: center; gap: 12px;
  min-height: 0; margin: 0; padding: 16px; border-radius: 28px; text-align: center;
}
.mode-card i {
  display: grid; place-items: center; width: 96px; height: 96px; border-radius: 28px;
  background: var(--np-blue-soft); color: var(--np-blue); font-size: 44px;
}
.mode-card b { display: block; font-size: 22px; font-weight: 500; }
.mode-card .muted { display: block; margin-top: 4px; }
.mesa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mesa { display: grid; gap: 4px; min-height: 108px; padding: 14px; border-radius: 18px; border-top: 4px solid var(--np-green); }
.mesa.busy { border-top-color: #f9ab00; }
.mesa .state { font-size: 12px; font-weight: 500; color: var(--np-green); }
.mesa.busy .state { color: #e37400; }
.head-row { display: flex; align-items: center; gap: 8px; }
.head-row h1 { flex: 1; }
.cart-count { position: absolute; top: 4px; right: 4px; min-width: 16px; padding: 0 4px; border-radius: 8px; background: #d93025; color: #fff; font-size: 11px; }
#cartBtn { position: relative; }
.detail-copy { margin: 0; color: var(--np-ink); line-height: 1.5; overflow-wrap: anywhere; }
.detail-copy p { margin: 0 0 8px; }
.detail-copy p:last-child, .detail-copy ul:last-child, .detail-copy ol:last-child { margin-bottom: 0; }
.detail-copy ul, .detail-copy ol { margin: 0 0 8px; padding-left: 1.25em; }
.detail-copy li + li { margin-top: 4px; }
.detail-copy a { color: var(--np-blue); }
.field .hint { display: block; margin-top: 6px; color: var(--np-muted); font-size: 13px; }
.rich { margin-top: 4px; }
.rich-bar { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; }
.rich-btn {
  display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 12px;
  background: var(--np-canvas); color: var(--np-muted);
}
.rich-btn:hover { background: var(--np-blue-soft); color: var(--np-blue); }
.rich-editor {
  min-height: 96px; max-height: 220px; overflow: auto; padding: 12px 14px; border-radius: 16px;
  background: var(--np-canvas); line-height: 1.5; outline: none;
}
.rich-editor:focus { box-shadow: 0 0 0 2px var(--np-blue-soft); }
.rich-editor:empty:before { content: attr(data-placeholder); color: var(--np-muted); }
.rich-editor p { margin: 0 0 8px; }
.rich-editor p:last-child { margin-bottom: 0; }
.rich-editor ul, .rich-editor ol { margin: 0 0 8px; padding-left: 1.25em; }
.rich-editor a { color: var(--np-blue); }
.stepper { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 8px 0 16px; }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 22px; background: var(--np-blue-soft); color: var(--np-blue); }
.stepper b { min-width: 24px; text-align: center; font-size: 20px; }
.go { background: var(--np-green); }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; }
.pay-total {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label action" "amount action";
  align-items: center; gap: 0 12px; margin: 0 0 12px; padding: 16px 14px 16px 18px;
  border-radius: 28px; background: var(--np-blue); color: #fff;
}
.pay-total span { grid-area: label; font-size: 13px; }
.pay-total b { grid-area: amount; font-size: 32px; font-weight: 700; line-height: 1.1; }
.pay-total button {
  grid-area: action; min-height: 48px; padding: 0 16px; border: 0; border-radius: 24px;
  background: #fff; color: var(--np-blue); font-weight: 700;
}
.pay-line {
  display: grid; grid-template-columns: 48px 1fr auto; grid-template-areas: "photo name trash" "photo price trash" "step step step";
  column-gap: 10px; row-gap: 2px; align-items: center;
}
.pay-line > .photo { grid-area: photo; width: 48px; height: 48px; aspect-ratio: 1; align-self: start; font-size: 16px; }
.pay-line > b { grid-area: name; }
.pay-line > .muted { grid-area: price; }
.pay-line > .icon-btn { grid-area: trash; align-self: start; }
.pay-line > .stepper { grid-area: step; margin: 8px 0 0; justify-content: flex-start; gap: 12px; }
#payDesk { scroll-margin-top: 72px; }
.line .photo { width: 72px; aspect-ratio: 16 / 10; }
.totals { display: grid; gap: 6px; margin: 8px 0 16px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 18px; font-weight: 500; }
.pay-row.on { outline: 2px solid var(--np-blue); }
.mix-status { display: flex; justify-content: space-between; padding: 4px 0; }
.qr-wrap { display: grid; justify-items: center; gap: 8px; margin: 12px 0; }
.qr { display: grid; grid-template-columns: repeat(21, 1fr); width: min(240px, 70vw); aspect-ratio: 1; padding: 8px; background: #fff; border-radius: 12px; box-shadow: var(--np-shadow); }
.qr i { background: #fff; }
.qr i.on { background: var(--np-ink); }
.np-alert {
  border: 0; border-radius: 20px; padding: 24px; max-width: 400px; margin: auto;
  background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); text-align: center;
}
.np-alert::backdrop { background: rgba(0, 0, 0, 0.5); }
.np-alert-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 32px; background: var(--np-blue-soft); color: var(--np-blue); font-size: 28px;
}
.np-alert h2 { margin: 0 0 8px; font-size: 18px; font-weight: 500; }
.np-alert p { margin: 0 0 20px; color: var(--np-muted); }
.np-alert-actions { display: flex; gap: 8px; justify-content: center; }
.np-alert-actions button { flex: 1; min-width: 120px; }
.ok-mark { display: grid; place-items: center; width: 88px; height: 88px; margin: 12px auto; border-radius: 44px; background: #e6f4ea; color: var(--np-green); font-size: 42px; }
.center { text-align: center; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.stat { padding: 14px; border-radius: 18px; background: #fff; box-shadow: var(--np-shadow); }
.stat b { display: block; font-size: 20px; }
.stat .stat-count { color: var(--np-blue); font-size: 18px; }
.margin { color: var(--np-green); font-weight: 500; }
.sold-row .prod { min-width: 0; }
.sold-row .prod .photo { width: 64px; flex: 0 0 64px; }
.sold-row .muted, .sold-row .margin { font-size: 13px; white-space: nowrap; }
.sold-row .stack.end { flex: 0 0 auto; }
.sale-mode {
  display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 20px;
  background: var(--np-blue-soft); color: var(--np-blue); font-size: 18px;
}
.close-hero {
  display: grid; justify-items: center; gap: 2px; margin: 0 0 12px; padding: 18px 16px 16px;
  border-radius: 28px; background: var(--np-blue); color: #fff; text-align: center;
}
.close-hero i { font-size: 22px; }
.close-hero span { font-size: 13px; }
.close-hero b { font-size: 34px; font-weight: 700; line-height: 1.1; }
.close-hero small { color: rgba(255, 255, 255, 0.84); }
.close-card { margin: 0 0 12px; padding: 14px 14px 6px; border-radius: 22px; background: #fff; box-shadow: var(--np-shadow); }
.close-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.close-card h2 i { color: var(--np-blue); }
.close-card p { margin: 0 0 4px; color: var(--np-muted); font-size: 13px; }
.close-card.digital { background: #f6f0fc; }
.close-card.digital h2 i { color: #9334e6; }
.close-line { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; }
.close-line + .close-line { border-top: 1px solid var(--np-line); }
.close-card.digital .close-line + .close-line { border-top-color: #eadcf6; }
.close-line i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; font-size: 16px; }
.close-line.bill-cash i { background: var(--np-green-soft); color: var(--np-green); }
.close-line.bill-spend i { background: #fef3e6; color: var(--np-orange); }
.close-line.bill-mute i { background: var(--np-canvas); color: var(--np-muted); }
.close-line.bill-bank i { background: var(--np-blue-soft); color: var(--np-blue); }
.close-line.digi-sold i { background: #efe4fb; color: #7b1fa2; }
.close-line.digi-qr i { background: #e3f7fa; color: #0e8a9a; }
.close-line.digi-transfer i { background: var(--np-blue-soft); color: var(--np-blue); }
.close-line.digi-card i { background: #fef3e6; color: var(--np-orange); }
.close-line b { font-size: 15px; }
.summary { border-radius: 18px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.summary div + div { border-top: 1px solid var(--np-line); }
.sale-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 12px 14px; border-radius: 16px; margin-bottom: 8px; }
.stack { display: grid; gap: 2px; min-width: 0; }
.stack.end { justify-items: end; text-align: right; }
.line .stepper { margin: 0; justify-content: flex-start; }
.chart { padding: 12px; border-radius: 18px; background: #fff; box-shadow: var(--np-shadow); }
.chart-cols { display: flex; align-items: stretch; gap: 4px; height: 180px; overflow-x: auto; }
.chart-col {
  flex: 1 0 14px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 14px; padding: 0; border: 0; border-radius: 6px; background: none;
}
.chart-slot { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; width: 100%; }
.chart-bar {
  display: block; flex: 1; max-width: 32px; height: var(--v); border-radius: 6px 6px 0 0;
  transform-origin: bottom; animation: np-grow-y 0.5s ease-out both;
}
.chart-tick { font-size: 11px; color: var(--np-muted); white-space: nowrap; }
.chart-col.on .chart-bar, .rank-row.on .rank-bar { box-shadow: 0 0 0 2px var(--np-ink); }
.chart-col.on .chart-tick { color: var(--np-ink); font-weight: 600; }
.chart-legend { display: flex; gap: 16px; margin-bottom: 8px; font-size: 13px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 5px; }
.chart-pick { min-height: 20px; margin: 8px 4px 12px; font-size: 13px; }
.rank-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; width: 100%;
  padding: 6px 0; border: 0; background: none; text-align: left;
}
.rank-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-note { font-size: 13px; white-space: nowrap; }
.rank-track { grid-column: 1 / -1; height: 12px; border-radius: 6px; background: var(--np-canvas); overflow: hidden; }
.rank-bar { display: block; width: var(--v); height: 100%; border-radius: 6px; transform-origin: left; animation: np-grow-x 0.5s ease-out both; }
.c1 { background: var(--np-chart-1); }
.c2 { background: var(--np-chart-2); }
.c3 { background: var(--np-chart-3); }
.c4 { background: var(--np-chart-4); }
.c5 { background: var(--np-chart-5); }
.c6 { background: var(--np-chart-6); }
.c7 { background: var(--np-chart-7); }
.c8 { background: var(--np-chart-8); }
.c9 { background: var(--np-chart-9); }
.c10 { background: var(--np-chart-10); }
@keyframes np-grow-y { from { transform: scaleY(0); } }
@keyframes np-grow-x { from { transform: scaleX(0); } }
.prod { display: flex; gap: 10px; align-items: center; }
.app-shortcuts { margin: 18px 0 88px; }
.app-shortcuts h2 { margin: 0 0 10px; color: var(--np-muted); font-size: 13px; font-weight: 600; }
.app-shortcut-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.app-shortcut { display: grid; justify-items: center; gap: 8px; min-height: 82px; padding: 14px 8px; border: 1px solid var(--np-line); border-radius: 18px; background: var(--np-card); color: var(--np-ink); font-size: 12px; text-align: center; text-decoration: none; }
.app-shortcut i { color: var(--np-blue); font-size: 21px; }
.prod .photo { width: 84px; flex: 0 0 84px; }
.fab { position: fixed; right: max(16px, calc(50% - 224px)); bottom: 96px; width: 56px; height: 56px; border: 0; border-radius: 28px; background: var(--np-blue); color: #fff; font-size: 22px; box-shadow: var(--np-shadow); }
.ticket {
  width: 72mm; max-width: 100%; margin: 0 auto 12px; padding: 8px 4px;
  background: #fff; color: #111; font-size: 12px; line-height: 1.25;
}
.ticket-rule { border-top: 1px dashed #111; margin: 6px 0; }
.ticket-total { display: flex; justify-content: space-between; margin: 0; font-size: 14px; }
.ticket-words { margin: 4px 0 8px; text-align: center; font-size: 11px; }
.receipt-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.receipt-table th, .receipt-table td { padding: 2px 0; text-align: left; vertical-align: top; }
.receipt-table td:nth-child(n+2), .receipt-table th:nth-child(n+2) { text-align: right; padding-left: 4px; }
@media print {
  @page { size: 80mm auto; margin: 2mm; }
  body, .app { background: #fff; }
  .app { max-width: none; min-height: 0; padding: 0; }
  .top, .bottom, .checkout, #toast, .no-print { display: none !important; }
  main { padding: 0; }
  .ticket { width: 76mm; margin: 0; }
}
.np-alert {
  width: min(340px, calc(100% - 32px)); padding: 24px 20px 20px; border: 0; border-radius: 22px;
  background: var(--np-card); color: var(--np-ink); text-align: center; box-shadow: var(--np-shadow);
}
.np-alert[open] { animation: np-pop 0.22s ease-out; }
.np-alert::backdrop { background: var(--np-backdrop); }
.np-alert-icon {
  display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 12px; border: 3px solid currentColor;
  border-radius: 36px; color: var(--np-orange); font-size: 30px;
}
.np-alert h2 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.np-alert p { margin: 0 0 18px; color: var(--np-muted); white-space: pre-wrap; }
.np-alert .primary { width: 100%; }
.pill-btn.pulse { animation: np-pulse-green 1.6s ease-in-out 4; }
@keyframes np-pop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes np-paid-shake {
  0% { transform: scale(0.94); }
  18% { transform: translateX(-7px) rotate(-1.2deg); }
  36% { transform: translateX(7px) rotate(1.2deg); }
  52% { transform: translateX(-4px) rotate(-0.6deg); }
  68% { transform: translateX(4px) rotate(0.6deg); }
  84% { transform: translateX(-2px); }
  100% { transform: none; }
}
@keyframes np-pulse-green {
  0%, 100% { background: var(--np-blue-soft); box-shadow: 0 0 0 0 var(--np-green-glow); }
  50% { background: var(--np-green-soft); color: var(--np-green); box-shadow: 0 0 0 6px var(--np-green-glow); }
}
button:active { transform: scale(0.98); }
.voice-screen { padding: 0 0 8px; }
.voice-screen h1 { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
.voice-screen h2 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.voice-screen h3 { margin: 12px 0 4px; font-size: 13px; font-weight: 600; color: var(--np-muted); }
.voice-label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--np-muted); }
.voice-text {
  width: 100%; min-height: 110px; margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--np-line);
  border-radius: 16px; resize: vertical; background: var(--np-canvas);
}
.voice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.voice-actions .primary, .voice-actions .secondary { flex: 1 1 120px; }
.voice-rec { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--np-red); font-weight: 600; }
.voice-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--np-red);
  animation: voice-blink 1s ease-in-out infinite;
}
.voice-status { margin: 0 0 10px; color: var(--np-muted); }
.voice-status.error { color: var(--np-red); }
.voice-pending { display: grid; gap: 4px; margin: 0 0 12px; }
.voice-pending.panel { padding: 12px 14px; }
.voice-guide ul { margin: 0; padding-left: 18px; }
.voice-guide li { margin: 2px 0; }
.voice-example { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--np-blue-soft); color: var(--np-ink); }
.voice-mvp { margin: 0 0 8px; }
.voice-cards { display: grid; gap: 10px; margin: 0 0 12px; }
.voice-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.voice-choice { flex: 1 1 120px; }
.voice-product-picks { display: grid; gap: 10px; margin-top: 10px; }
.voice-product-pick {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--np-ink, #222) 12%, transparent);
}
.voice-product-pick:first-child { border-top: 0; padding-top: 0; }
.voice-product-pick-body { display: grid; gap: 2px; flex: 1 1 160px; }
.voice-product-pick .voice-choice { flex: 0 0 auto; }
.voice-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.voice-table th, .voice-table td { padding: 6px 4px; border-bottom: 1px solid var(--np-line); text-align: left; }
.voice-table th:nth-child(2), .voice-table td:nth-child(2),
.voice-table th:nth-child(3), .voice-table td:nth-child(3) { text-align: right; }
.voice-steps {
  display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0;
}
.voice-steps li {
  flex: 1 1 auto; min-width: 72px; padding: 6px 8px; border-radius: 12px; background: var(--np-canvas);
  color: var(--np-muted); font-size: 11px; text-align: center;
}
.voice-steps li.on { background: var(--np-blue-soft); color: var(--np-blue-deep); font-weight: 600; }
.voice-steps li.done { background: var(--np-green-soft); color: var(--np-green); }
.voice-correct { display: grid; gap: 8px; margin-top: 8px; }
.voice-correct-input {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--np-line); border-radius: 12px;
}
.voice-confirm { width: 100%; margin-top: 10px; }
.voice-confirm:disabled { opacity: 0.65; cursor: wait; }
.voice-assistant {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 12px;
}
.voice-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #f8d7e4;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}
.voice-avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--np-blue);
  background: var(--np-blue-soft);
  font-size: 18px;
}
.voice-avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}
.voice-bubble {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px 16px 16px 6px;
  background: #fff;
  border: 1px solid var(--np-line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.voice-assistant-think .voice-bubble {
  border-color: var(--np-blue-soft);
  background: linear-gradient(180deg, var(--np-blue-soft), #fff);
}
.voice-bubble > b { display: block; margin: 0 0 4px; font-size: 14px; }
.voice-bubble > p { margin: 0 0 6px; }
.voice-bubble > p:last-child { margin-bottom: 0; }
.voice-card-body.voice-card-choice_card,
.voice-card-body.voice-card-correction_card { border-left: 3px solid var(--np-orange); padding-left: 10px; }
.voice-card-body.voice-card-summary_card,
.voice-card-body.voice-card-confirmation_card { border-left: 3px solid var(--np-blue); padding-left: 10px; }
.voice-card-body.voice-card-report_card,
.voice-card-body.voice-card-result_card { border-left: 3px solid var(--np-green); padding-left: 10px; }
.voice-status-msg { margin: 0; color: var(--np-ink); font-size: 14px; line-height: 1.35; }
.voice-think-copy { display: grid; gap: 4px; min-width: 0; }
.voice-think-copy b { font-size: 14px; color: var(--np-blue-deep); }
.voice-think-copy p { margin: 0; color: var(--np-ink); font-size: 14px; line-height: 1.35; }
.voice-think-dots { display: inline-flex; gap: 5px; padding-top: 2px; flex: 0 0 auto; }
.voice-think-dots i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--np-blue);
  animation: voice-think-bounce 1.2s ease-in-out infinite;
}
.voice-think-dots i:nth-child(2) { animation-delay: 0.15s; }
.voice-think-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes voice-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@keyframes voice-think-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  button:active, #toast { transform: none; }
  .chart-bar, .rank-bar, .np-alert[open], .paid-strip { animation: none; }
  .pill-btn.pulse { animation: none; background: var(--np-green-soft); color: var(--np-green); box-shadow: 0 0 0 3px var(--np-green-glow); }
  .voice-dot, .voice-think-dots i { animation: none; opacity: 1; }
}
@media (min-width: 720px) {
  .app { max-width: 840px; }
  .bottom { width: min(840px, 100%); }
  .checkout { width: min(808px, calc(100% - 32px)); }
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .app { max-width: 1120px; }
  .bottom { width: min(1120px, 100%); }
  .checkout { width: min(1088px, calc(100% - 32px)); }
  .grid { grid-template-columns: repeat(4, 1fr); }
}
