/*
 * Customer page (Phase 6). Builds on ui/css/components.css (body.nv-mobile).
 * Mobile first: everything is designed at 360 px wide and grows from there.
 */

/* 2026-10-26 refresh: white cards with soft depth, solid accent icon chips (no olive "ink" tints), bigger radius. */
:root {
  --cu-radius: 14px;
  --cu-line: rgba(0, 0, 0, .07);
  --cu-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 14px rgba(0, 0, 0, .05);
  --cu-shadow-up: 0 -4px 18px rgba(0, 0, 0, .08);
}
body.cu-page, body.nv-mobile { background: linear-gradient(180deg, rgba(var(--app-accent-rgb), .22) 0, rgba(var(--app-accent-rgb), .06) 240px, #f6f6f4 420px) no-repeat, #f6f6f4; }
body.cu-noscroll { overflow: hidden; }
body.cu-has-bar .nv-mobile-page { padding-bottom: 140px; }

.cu-h1 { font: 600 22px/28px var(--nv-font-display); margin: 4px 0 12px; }
.cu-h2 { font: 600 16px/22px var(--nv-font-display); margin: 20px 0 8px; }
.cu-h3 { font: 600 14px/20px var(--nv-font); margin: 16px 0 8px; }
.cu-hint { font-size: 13px; color: var(--nv-text-2); }
.cu-hero-icon { font-size: 48px; color: var(--app-accent-ink); }
.cu-avail { margin-bottom: 12px; }

.cu-icon-btn {
  flex: 0 0 auto; width: 40px; height: 40px; display: inline-grid; place-items: center;
  border: 0; border-radius: var(--nv-radius); background: transparent; color: var(--nv-text-2); font-size: 16px;
}
.cu-icon-btn:hover { background: var(--st-muted-bg); color: var(--nv-text); }
.cu-icon-btn:focus-visible { outline: 2px solid var(--nv-text); outline-offset: 1px; }

/* ---------------------------------------------------------------- start screen */
.cu-intro h1 { font: 600 26px/32px var(--nv-font-display); margin: 8px 0 6px; }
.cu-intro p { color: var(--nv-text-2); margin-bottom: 16px; }

.cu-add { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.cu-add-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center;
  height: 124px; padding: 12px 6px; border: 1px solid var(--cu-line); border-radius: var(--cu-radius);
  background: var(--nv-card); color: var(--nv-text); box-shadow: var(--cu-shadow);
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
}
.cu-add-icon {
  position: relative; width: 46px; height: 46px; margin-bottom: 8px; display: grid; place-items: center; border-radius: 14px;
  background: var(--app-accent); color: var(--app-on-accent); box-shadow: 0 3px 8px rgba(var(--app-accent-rgb), .45);
}
.cu-add-icon .bi { font-size: 22px; line-height: 1; }
.cu-add-plus {
  position: absolute; right: -5px; top: -5px; width: 18px; height: 18px; display: grid; place-items: center;
  border-radius: 50%; background: var(--nv-text); color: #fff; font: 700 13px/1 var(--nv-font); border: 2px solid var(--nv-card);
}
.cu-add-tile strong, .cu-add-tile > span:last-child { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cu-add-tile strong { font-size: 15px; font-weight: 600; line-height: 20px; }
.cu-add-tile > span:last-child { font-size: 12px; color: var(--nv-text-2); line-height: 16px; }
.cu-add-tile:active { transform: scale(.96); }
.cu-add-tile:focus-visible { outline: 2px solid var(--nv-text); outline-offset: 2px; }
.cu-add-tile:disabled { opacity: .5; box-shadow: none; }
.cu-add-tile:disabled .cu-add-icon { background: var(--st-muted-bg); color: var(--nv-text-3); box-shadow: none; }
.cu-add.is-compact .cu-add-tile { height: 84px; padding: 8px 4px; }
.cu-add.is-compact .cu-add-icon { width: 36px; height: 36px; border-radius: 11px; margin-bottom: 6px; }
.cu-add.is-compact .cu-add-icon .bi { font-size: 18px; }
.cu-add.is-compact .cu-add-tile strong { font-size: 13px; line-height: 18px; }

.cu-steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 2px; }
.cu-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; color: var(--nv-text-2); counter-increment: step; }
.cu-steps .bi { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--app-accent-soft); color: var(--app-accent-ink); flex: 0 0 32px; }

/* ---------------------------------------------------------------- cart items */
.cu-item { padding: 12px; margin-bottom: 10px; border: 1px solid var(--nv-stroke-strong); border-radius: var(--nv-radius-lg); }
.cu-item-top { display: flex; align-items: flex-start; gap: 12px; }
.cu-thumb {
  flex: 0 0 48px; width: 48px; height: 64px; border: 1px solid var(--nv-stroke-strong); border-radius: 3px; overflow: hidden;
  background: #fff; display: grid; place-items: center; color: var(--nv-text-3); font-size: 22px;
}
.cu-thumb.is-card { height: 32px; margin-top: 12px; border-radius: 3px; }
.cu-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cu-item-info { flex: 1 1 auto; min-width: 0; padding-top: 2px; }
.cu-item-name { font-weight: 600; overflow-wrap: anywhere; line-height: 20px; }
.cu-item-meta { font-size: 13px; color: var(--nv-text-2); margin-top: 2px; }
.cu-item-status { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--nv-text-2); }
.cu-item-status .nv-ring { width: 16px; height: 16px; }
.cu-item-error { margin-top: 10px; }
/* A PDF with pages that are not A4 (customer.js paperNote): they print on A4, scaled to fit. */
.cu-item-paper { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 6px;
  background: var(--st-info-bg); color: var(--nv-text); font-size: 13px; line-height: 1.4; }
.cu-item-paper .bi { color: var(--st-info); margin-top: 1px; }

.cu-progress { margin-top: 10px; }
.cu-bar { height: 6px; border-radius: 3px; background: var(--st-muted-bg); overflow: hidden; }
.cu-bar-fill { height: 100%; width: 0; background: var(--app-accent-strong); border-radius: 3px; transition: width .3s ease; }
.cu-progress-text { font-size: 12px; color: var(--nv-text-2); margin-top: 4px; font-variant-numeric: tabular-nums; }

.cu-settings { margin-top: 8px; border-top: 1px solid var(--nv-stroke); padding-top: 4px; }
.cu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.cu-row-top { align-items: flex-start; padding: 8px 0; }
.cu-label { color: var(--nv-text-2); font-size: 14px; flex: 0 0 auto; }
.cu-value { font-size: 13px; color: var(--nv-text-2); text-align: right; }
.cu-pages-btn .bi { font-size: 12px; margin-left: 2px; }

/* Segmented control (two options, Windows "toggle button" pair) */
.cu-seg { display: inline-flex; padding: 2px; border-radius: 6px; background: var(--st-muted-bg); gap: 2px; }
.cu-seg button {
  min-width: 72px; height: 36px; padding: 0 12px; border: 0; border-radius: 4px; background: transparent;
  color: var(--nv-text); font-size: 14px; font-weight: 500;
}
.cu-seg button[aria-pressed="true"] { background: var(--app-accent); color: var(--app-on-accent); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.cu-seg button:disabled { color: var(--nv-text-3); text-decoration: line-through; }
.cu-seg button:focus-visible { outline: 2px solid var(--nv-text); outline-offset: -2px; }

.cu-stepper { display: inline-flex; align-items: center; border: 1px solid var(--nv-stroke-strong); border-radius: 6px; background: var(--nv-card); }
.cu-stepper button { width: 44px; height: 40px; border: 0; background: transparent; color: var(--nv-text); font-size: 16px; }
.cu-stepper button:disabled { color: var(--nv-text-3); }
.cu-stepper output { min-width: 36px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.cu-plan { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; }
.cu-plan-seg { font-size: 13px; padding: 2px 8px; border-radius: 10px; background: var(--st-muted-bg); text-align: right; }
.cu-plan-seg.is-color { background: var(--st-purple-bg); color: var(--st-purple); }
.cu-plan-btns { display: flex; gap: 6px; margin-top: 4px; }

.cu-item-price { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px solid var(--nv-stroke); margin-top: 4px; }
.cu-item-price span { font-size: 13px; color: var(--nv-text-2); }
.cu-item-price strong { font: 600 17px/22px var(--nv-font-display); }

.cu-prices { padding: 0 12px; margin: 8px 0 16px; border: 1px solid var(--nv-stroke-strong); border-radius: var(--nv-radius-lg); }
.cu-prices summary { min-height: 48px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; list-style: none; }
.cu-prices summary::-webkit-details-marker { display: none; }
.cu-prices summary::after { content: "\F282"; font-family: bootstrap-icons; margin-left: auto; font-size: 12px; transition: transform .15s; }
.cu-prices[open] summary::after { transform: rotate(180deg); }
.cu-prices table { --bs-table-bg: transparent; }
.cu-prices[open] { padding-bottom: 12px; }

/* ---------------------------------------------------------------- sheets */
.cu-sheet-backdrop {
  position: fixed; inset: 0; z-index: 1080; display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, .35); animation: nv-fade .15s ease-out;
}
.cu-sheet {
  width: min(520px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--nv-card); border-radius: var(--nv-radius-lg); box-shadow: var(--nv-shadow-dialog);
  animation: nv-dialog-in .2s cubic-bezier(.1, .9, .2, 1);
}
.cu-sheet.is-full { width: min(640px, 100%); height: calc(100vh - 32px); height: calc(100dvh - 32px); }
.cu-sheet-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 4px 20px; }
.cu-sheet-head h2 { flex: 1 1 auto; margin: 0; font: 600 18px/24px var(--nv-font-display); }
.cu-sheet-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 20px 16px; overscroll-behavior: contain; }
.cu-sheet-foot {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--nv-stroke); background: var(--nv-layer);
}
.cu-sheet-foot > .btn { flex: 1 1 0; }
.cu-sheet-foot-btns { display: flex; gap: 8px; flex: 1 1 100%; }
.cu-sheet-foot-btns .btn { flex: 1 1 0; }
@media (max-width: 575.98px) {
  .cu-sheet-backdrop { place-items: end stretch; padding: 0; }
  .cu-sheet { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: var(--nv-radius-lg) var(--nv-radius-lg) 0 0; animation: nv-sheet-in .24s cubic-bezier(.1, .9, .2, 1); }
  .cu-sheet.is-full { height: 96vh; height: 96dvh; max-height: none; }
  .cu-sheet-head { padding-top: 4px; }
}

/* Photo layouts */
.cu-layouts { display: grid; gap: 8px; }
.cu-layout {
  display: flex; align-items: center; gap: 14px; padding: 12px; text-align: left;
  border: 1px solid var(--nv-stroke-strong); border-radius: var(--nv-radius-lg); background: var(--nv-card); color: var(--nv-text);
}
.cu-layout[aria-checked="true"] { border-color: var(--app-accent-strong); box-shadow: inset 0 0 0 1px var(--app-accent-strong); background: var(--app-accent-soft); }
.cu-layout-text { display: flex; flex-direction: column; }
.cu-layout-text span { font-size: 13px; color: var(--nv-text-2); }
.cu-layout-pic { flex: 0 0 38px; width: 38px; height: 52px; padding: 4px; display: grid; gap: 3px; background: #fff; border: 1px solid var(--nv-stroke-strong); border-radius: 2px; }
.cu-layout-pic span { background: var(--nv-text-3); border-radius: 1px; }
.cu-layout-pic.is-2 { grid-template-rows: 1fr 1fr; }
.cu-layout-pic.is-4 { grid-template: 1fr 1fr / 1fr 1fr; }

/* ID card */
.cu-card-slots { display: grid; gap: 12px; margin-top: 12px; }
.cu-card-slot {
  position: relative; aspect-ratio: 85.6 / 54; width: 100%; padding: 0; overflow: hidden;
  border: 2px dashed var(--nv-stroke-strong); border-radius: 12px; background: var(--nv-layer); color: var(--nv-text-2);
}
.cu-card-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cu-card-slot-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 600; }
.cu-card-slot-empty .bi { font-size: 28px; color: var(--app-accent-ink); }
.cu-card-slot-label { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 10px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; }
.cu-card-slot:has(img) { border-style: solid; }

.cu-crop-wrap { padding: 12px; background: #3a3a3a; border-radius: var(--nv-radius-lg); }
.cu-crop { display: block; width: 100%; aspect-ratio: 85.6 / 54; border-radius: 12px; touch-action: none; box-shadow: 0 0 0 2px var(--app-accent); cursor: grab; }
.cu-crop:active { cursor: grabbing; }
.cu-hint + .cu-slider, .cu-crop-wrap + .cu-hint { margin-top: 8px; }
.cu-slider { display: block; margin: 12px 0 0; }
.cu-slider > span { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--nv-text-2); }
.cu-slider output { margin-left: auto; font-variant-numeric: tabular-nums; }
.cu-slider input { width: 100%; height: 32px; accent-color: var(--app-accent-strong); }
.cu-crop-tools { display: flex; gap: 8px; margin-top: 12px; }
.cu-crop-tools .btn { flex: 1 1 0; }

/* Page ranges */
.cu-range { padding: 10px 0; border-bottom: 1px solid var(--nv-stroke); }
.cu-range-pages { display: flex; align-items: center; gap: 8px; }
.cu-range-pages label { display: flex; align-items: center; gap: 8px; color: var(--nv-text-2); }
.cu-range-pages input {
  width: 68px; height: 40px; padding: 0 8px; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums;
  border: 1px solid var(--nv-stroke-strong); border-bottom-color: rgba(0, 0, 0, .45); border-radius: var(--nv-radius); background: var(--nv-card);
}
.cu-range-pages input:focus { outline: 0; border-bottom: 2px solid var(--app-accent-strong); }
.cu-range-pages .cu-icon-btn { margin-left: auto; }
.cu-range-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cu-range-opts .cu-seg button { min-width: 64px; }
.cu-range-actions { display: flex; gap: 8px; margin-top: 12px; }
.cu-range-actions .btn { flex: 1 1 0; }
.cu-range-error { margin-top: 10px; padding: 8px 12px; border-radius: var(--nv-radius); background: var(--st-danger-bg); color: var(--st-danger); font-size: 14px; }
.cu-range-sum { flex: 1 1 100%; font-size: 14px; color: var(--nv-text-2); min-height: 20px; }
.cu-range-sum strong { color: var(--nv-text); }

.cu-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.cu-page { position: relative; }
.cu-page-img {
  aspect-ratio: 210 / 297; background: #fff; border: 1px solid var(--nv-stroke-strong); border-radius: 2px; overflow: hidden;
  outline: 3px solid transparent; outline-offset: -1px;
}
.cu-page-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cu-page.is-color .cu-page-img { outline-color: var(--st-purple); }
.cu-page:not(.is-skip):not(.is-color) .cu-page-img { outline-color: var(--nv-text-2); }
.cu-page.is-skip .cu-page-img { opacity: .35; }
.cu-page-num { position: absolute; top: 4px; left: 4px; min-width: 20px; padding: 0 5px; border-radius: 10px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px; text-align: center; }
.cu-page-badge { display: block; margin-top: 4px; font-size: 11px; line-height: 14px; text-align: center; color: var(--nv-text-2); }
.cu-page.is-color .cu-page-badge { color: var(--st-purple); font-weight: 600; }
.cu-page.is-skip .cu-page-badge { color: var(--nv-text-3); text-decoration: line-through; }

/* Checkout */
.cu-summary { list-style: none; padding: 0; margin: 0; }
.cu-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--nv-stroke); }
.cu-summary li div { min-width: 0; display: flex; flex-direction: column; }
.cu-summary li strong { overflow-wrap: anywhere; }
.cu-summary li span { font-size: 13px; color: var(--nv-text-2); }
.cu-summary li b { white-space: nowrap; font-weight: 600; }
.cu-summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 0; font-size: 16px; }
.cu-summary-total strong { font: 600 22px/28px var(--nv-font-display); }

/* ---------------------------------------------------------------- receipt */
.cu-hero {
  display: flex; align-items: center; gap: 14px; padding: 18px 16px; margin-bottom: 12px; border-radius: var(--nv-radius-lg);
  background: var(--st-info-bg); color: var(--nv-text);
}
.cu-hero > .bi { font-size: 34px; line-height: 1; color: var(--st-info); }
.cu-hero h1 { font: 600 20px/26px var(--nv-font-display); margin: 0 0 2px; }
.cu-hero p { margin: 0; color: var(--nv-text-2); }
.cu-hero.is-accent { background: var(--app-accent); color: var(--app-on-accent); }
.cu-hero.is-accent > .bi, .cu-hero.is-accent p { color: inherit; }
.cu-hero.is-accent > .bi { animation: cu-pulse 1.4s ease-in-out infinite; }
.cu-hero.is-success { background: var(--brand-green); color: #fff; }
.cu-hero.is-success > .bi, .cu-hero.is-success p { color: #fff; }
.cu-hero.is-danger { background: var(--st-danger-bg); }
.cu-hero.is-danger > .bi { color: var(--st-danger); }
.cu-hero.is-warning { background: var(--st-warning-bg); }
.cu-hero.is-warning > .bi { color: var(--st-warning); }
@keyframes cu-pulse { 50% { opacity: .45; } }

.cu-code-card { padding: 16px; text-align: center; border: 1px solid var(--nv-stroke-strong); border-radius: var(--nv-radius-lg); }
.cu-code-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--nv-text-2); }
.cu-code { font: 700 56px/64px var(--nv-font-mono); letter-spacing: .18em; padding-left: .18em; margin: 2px 0 4px; color: var(--nv-text); }
.cu-code-sub { font-size: 14px; color: var(--nv-text-2); margin: 0 0 12px; }
.cu-facts { display: grid; gap: 4px; margin: 0; padding-top: 12px; border-top: 1px solid var(--nv-stroke); text-align: left; }
.cu-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.cu-facts dt { font-weight: 400; color: var(--nv-text-2); }
.cu-facts dd { margin: 0; font-family: var(--nv-font-mono); font-size: 13px; overflow-wrap: anywhere; text-align: right; }

.cu-jobs { list-style: none; padding: 0 12px; margin: 0 0 12px; border: 1px solid var(--nv-stroke-strong); border-radius: var(--nv-radius-lg); }
.cu-jobs li { padding: 12px 0; border-bottom: 1px solid var(--nv-stroke); }
.cu-jobs li:last-child { border-bottom: 0; }
.cu-job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cu-job-head strong { overflow-wrap: anywhere; font-weight: 600; }
.cu-job-head .nv-chip { flex: 0 0 auto; }
.cu-job-meta { font-size: 13px; color: var(--nv-text-2); margin: 2px 0 6px; }
.cu-job-error { font-size: 13px; color: var(--st-danger); margin-top: 6px; }

.cu-support { padding: 16px; margin-bottom: 12px; border: 1px solid var(--nv-stroke-strong); border-radius: var(--nv-radius-lg); }
.cu-support p { color: var(--nv-text-2); }
.cu-support-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.cu-support-list li { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.cu-support-list .bi { color: var(--nv-text-2); }

.cu-receipt-actions { display: flex; gap: 8px; margin: 16px 0; }
.cu-receipt-actions .btn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ---------------------------------------------------------------- footer */
.cu-footer { margin-top: 24px; text-align: center; font-size: 12px; color: var(--nv-text-3); }
.cu-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-bottom: 6px; }
.cu-footer a { color: var(--nv-text-2); }

@media (prefers-reduced-motion: reduce) {
  .cu-sheet, .cu-sheet-backdrop, .cu-hero.is-accent > .bi { animation: none; }
  .cu-bar-fill { transition: none; }
}

/* ---------------------------------------------------------------- 2026-10-26 refresh */
/* App bar: shop name, ATM line, status pill, sound switch. */
body.nv-mobile .nv-appbar { background: rgba(255, 255, 255, .86); border-bottom-color: var(--cu-line); }
body.nv-mobile .nv-appbar img { width: 36px; height: 36px; border-radius: 10px; }
body.nv-mobile .nv-appbar-text { flex: 1 1 auto; }
body.nv-mobile .nv-appbar-atm { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cu-status {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 13px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.cu-status.is-on { background: var(--st-success-bg); color: var(--st-success); }
.cu-status.is-off { background: var(--st-danger-bg); color: var(--st-danger); }
.cu-status.is-on .nv-dot { box-shadow: 0 0 0 3px rgba(15, 123, 15, .18); }
.cu-sound { width: 36px; height: 36px; margin-right: -8px; font-size: 18px; border-radius: 50%; }

/* Cards: white, rounded, soft shadow. */
body.nv-mobile .card, .cu-item, .cu-prices, .cu-jobs, .cu-support, .cu-code-card {
  background: var(--nv-card); border: 1px solid var(--cu-line); border-radius: var(--cu-radius); box-shadow: var(--cu-shadow);
}
.cu-item { padding: 14px; margin-bottom: 12px; }
.cu-intro h1 { font-size: 28px; line-height: 34px; letter-spacing: -.01em; }
.cu-steps .bi { background: var(--app-accent); color: var(--app-on-accent); }
.cu-seg { border-radius: 10px; padding: 3px; }
.cu-seg button { border-radius: 8px; }
.cu-seg button[aria-pressed="true"] { box-shadow: 0 2px 6px rgba(var(--app-accent-rgb), .5); }
.cu-stepper { border-radius: 10px; border-color: var(--cu-line); }
body.nv-mobile .btn { border-radius: 10px; }
.cu-layout { border-radius: var(--cu-radius); border-color: var(--cu-line); box-shadow: var(--cu-shadow); }
.cu-card-slot { border-radius: var(--cu-radius); }

/* Info bars: icon lined up with the first line, title on its own line. */
body.nv-mobile .nv-infobar { align-items: flex-start; gap: 10px; padding: 12px 14px; border: 0; border-radius: 12px; line-height: 20px; }
body.nv-mobile .nv-infobar > .bi { font-size: 18px; line-height: 20px; height: 20px; flex: 0 0 18px; display: flex; align-items: center; }
body.nv-mobile .nv-infobar-title { display: block; margin: 0 0 2px; }
body.nv-mobile .nv-infobar-body { font-size: 14px; }

/* Pay bar: white, lifted. */
body.nv-mobile .nv-bottom-bar { background: rgba(255, 255, 255, .92); border-top-color: var(--cu-line); box-shadow: var(--cu-shadow-up); }
body.nv-mobile .nv-bottom-bar .btn-green { border-radius: 12px; min-width: 150px; }

/* Toasts on the customer page: bottom of the screen, above the pay bar; newest nearest the thumb. */
body.nv-mobile .nv-toasts { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); flex-direction: column-reverse; }
body.nv-mobile.cu-has-bar .nv-toasts { bottom: calc(88px + env(safe-area-inset-bottom)); }
body.nv-mobile .nv-toast {
  border: 0; border-radius: 14px; background: var(--nv-card); padding: 14px 10px 14px 16px; touch-action: pan-y;
  box-shadow: inset 4px 0 0 var(--cu-toast, var(--st-info)), 0 8px 28px rgba(0, 0, 0, .16), 0 1px 3px rgba(0, 0, 0, .08);
  transition: transform .15s ease, opacity .15s ease;
}
body.nv-mobile .nv-toast.is-success { --cu-toast: var(--st-success); }
body.nv-mobile .nv-toast.is-danger { --cu-toast: var(--st-danger); }
body.nv-mobile .nv-toast.is-warning { --cu-toast: var(--st-warning); }
body.nv-mobile .nv-toast > .bi { font-size: 18px; }
@media (max-width: 575.98px) {
  body.nv-mobile .nv-toasts { left: 12px; right: 12px; }
  body.nv-mobile .nv-toast { animation-name: cu-toast-up; }
  body.nv-mobile .nv-toast.is-leaving { animation-name: cu-toast-down; }
}
@keyframes cu-toast-up { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes cu-toast-down { to { opacity: 0; transform: translateY(16px); } }

/* Receipt: both buttons the same size. */
body.nv-mobile .cu-receipt-actions .btn { height: var(--touch-h-primary); font-weight: 600; }

/* ---------------------------------------------------------------- photo layouts (pass 2) */
.cu-layout-pic.is-6 { grid-template: 1fr 1fr 1fr / 1fr 1fr; }
.cu-layout-pic.is-9 { grid-template: 1fr 1fr 1fr / 1fr 1fr 1fr; gap: 2px; }
.cu-ph-preview { display: grid; place-items: center; padding: 14px 0 6px; }
.cu-ph-preview canvas { display: block; border-radius: 3px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 8px 24px rgba(0, 0, 0, .12); touch-action: none; }
.cu-ph-nav { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--nv-text-2); font-variant-numeric: tabular-nums; }
.cu-ph-nav .cu-icon-btn:disabled { opacity: .3; }
.cu-ph-layouts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 10px 0 6px; }
.cu-ph-chip {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 6px;
  border: 1px solid var(--cu-line); border-radius: 12px; background: var(--nv-card); color: var(--nv-text); box-shadow: var(--cu-shadow);
}
.cu-ph-chip .cu-layout-pic { width: 24px; height: 34px; flex: 0 0 auto; padding: 3px; gap: 2px; }
.cu-ph-chip strong { font-size: 14px; line-height: 18px; }
.cu-ph-chip[aria-checked="true"] { border-color: var(--app-accent-strong); background: var(--app-accent-soft); box-shadow: inset 0 0 0 1px var(--app-accent-strong); }
.cu-ph-chip[aria-checked="true"] .cu-layout-pic span { background: var(--app-accent-strong); }
.cu-ph-chip:focus-visible { outline: 2px solid var(--nv-text); outline-offset: 2px; }
.cu-ph-sum { text-align: center; font-size: 13px; color: var(--nv-text-2); margin: 4px 0 0; }
.cu-ph-tools { padding: 4px 0 8px; border-bottom: 1px solid var(--nv-stroke); }
.cu-ph-tools .cu-crop-tools { align-items: center; }
.cu-ph-fit { flex: 1 1 0; }
.cu-ph-fit button { flex: 1 1 0; min-width: 0; padding: 0 8px; }
.cu-ph-more { margin-top: 12px; }
.cu-ph-more summary { min-height: 40px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--nv-text); list-style: none; }
.cu-ph-more summary::-webkit-details-marker { display: none; }
.cu-ph-more summary::after { content: "\F282"; font-family: bootstrap-icons; margin-left: auto; font-size: 12px; transition: transform .15s; }
.cu-ph-more[open] summary::after { transform: rotate(180deg); }
.cu-switch { min-height: 44px; display: flex; align-items: center; gap: 10px; padding-left: 0; margin: 0; }
.cu-switch .form-check-input { float: none; margin: 0; width: 40px; height: 22px; flex: 0 0 auto; }
.cu-ph-fit button { white-space: nowrap; }
/* Label above a full-width segmented control (narrow phones). */
.cu-row-stack { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 0; }
.cu-row-stack[hidden] { display: none; }
.cu-row-stack .cu-seg { display: flex; }
.cu-row-stack .cu-seg button { flex: 1 1 0; min-width: 0; }
