/* RestoPOS — preto, carvão e laranja-brasa. O talão de papel é o elemento de destaque. */
:root {
  --bg: #000;
  --coal: #15120e;
  --coal-2: #1e1a15;
  --coal-3: #29241d;
  --line: #312b23;
  --line-2: #433b30;
  --text: #f4eee4;
  --muted: #a89e90;
  --faint: #6f675c;
  --accent: #ff7a1a;
  --accent-ink: #140f0a;
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --ok: #46b57e;
  --warn: #f2b33d;
  --danger: #f0574b;
  --paper: #f7f1e6;
  --paper-2: #efe7d8;
  --paper-ink: #1b1712;
  --paper-muted: #72685b;
  --f-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --f-ui: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-ticket: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --tap: 52px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { font-family: var(--f-ui); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; overscroll-behavior: none; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
input, textarea, select { user-select: text; -webkit-user-select: text; }
#app { height: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 26px; line-height: 1.15; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0; }
small { font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grow { flex: 1; }
.ic { flex: none; }
img, video { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }

input[type=text], input[type=search], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=url], textarea, select {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--coal); color: var(--text); font: inherit; font-size: 16px;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=color] { width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--coal); padding: 4px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: var(--r); font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .12s, border-color .12s, transform .06s; border: 1px solid transparent; }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: .4; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn-ghost { background: var(--coal-2); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { background: var(--coal-3); }
.btn-quiet { color: var(--muted); }
.btn-quiet:hover:not(:disabled) { color: var(--text); background: var(--coal-2); }
.btn-danger { background: color-mix(in srgb, var(--danger) 16%, var(--coal-2)); color: #ffd9d5; border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: var(--r-sm); }
.btn-lg { min-height: 58px; padding: 0 22px; font-size: 17px; }
.btn-xl { min-height: 68px; font-size: 19px; width: 100%; border-radius: var(--r-lg); }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--text) transparent var(--text) transparent; animation: spin .8s linear infinite; }
.btn-primary.is-busy::after { border-color: var(--accent-ink) transparent var(--accent-ink) transparent; }
.icon-btn { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); color: var(--muted); }
.icon-btn:hover { background: var(--coal-3); color: var(--text); }
.icon-btn.fav { color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--coal-2); border: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--text); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip.on.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.chip.sm { min-height: 32px; font-size: 13px; padding: 0 10px; }
.chip-lg { min-height: 50px; padding: 0 18px; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.pill.sm { height: 24px; padding: 0 9px; font-size: 12px; }
.pill-quiet { background: var(--coal-2); color: var(--muted); }
.pill-ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: #9fe3bf; }
.pill-warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: #ffd98c; }
.pill-danger { background: color-mix(in srgb, var(--danger) 20%, transparent); color: #ffbdb6; }
.pill-test { background: #2a1f50; color: #cdbdff; }
.row-gap { display: flex; align-items: center; gap: 10px; }
.row-gap.wrap { flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Estrutura ---------- */
.shell { height: 100%; display: grid; grid-template-rows: calc(64px + var(--sat)) 1fr; }
.topbar { display: flex; align-items: center; gap: 16px; padding: var(--sat) 14px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; min-width: 0; max-width: 200px; }
.brand img { height: 40px; width: auto; max-width: 200px; object-fit: contain; object-position: left; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 4px; height: 100%; }
.nav-btn { display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--muted); font-weight: 600; position: relative; }
.nav-btn.on { color: var(--text); }
.nav-btn.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.user-menu { position: relative; }
.user-chip { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 4px; border-radius: 999px; background: var(--coal-2); border: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--f-display); flex: none; }
.avatar.lg { width: 44px; height: 44px; font-size: 18px; }
.user-name { font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-pop { position: absolute; right: 0; top: 52px; width: 260px; background: var(--coal-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px; z-index: 40; box-shadow: 0 20px 50px -10px rgba(0,0,0,.7); }
.menu-head { padding: 8px 10px 10px; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.menu-head small { color: var(--muted); }
.menu-langs { display: flex; gap: 6px; padding: 4px 6px 8px; flex-wrap: wrap; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 10px; border-radius: var(--r-sm); font-weight: 600; }
.menu-item:hover { background: var(--coal-3); }
.main { min-height: 0; overflow: hidden; }
.center-screen { height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; }
.notice-card { max-width: 440px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--muted); }
.notice-card h1 { color: var(--text); }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Ecrã de PIN ---------- */
.lock, .setup { position: relative; height: 100%; overflow: hidden; }
.lock-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lock-bg-default { background: radial-gradient(120% 90% at 85% 110%, color-mix(in srgb, var(--accent) 34%, transparent) 0%, transparent 55%), var(--bg); }
.lock-veil { position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.85) 40%, rgba(0,0,0,.55) 100%); }
.lock-inner { position: relative; height: 100%; display: grid; grid-template-columns: 1fr minmax(320px, 420px); gap: 40px; padding: calc(40px + var(--sat)) 56px calc(40px + var(--sab)); align-items: center; }
.lock-brand { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.lock-logo { max-width: 280px; max-height: 120px; object-fit: contain; object-position: left; margin-bottom: auto; }
.lock-name { font-size: 44px; margin-bottom: auto; font-weight: 700; }
.lock-clock { font-family: var(--f-display); font-size: 108px; font-weight: 300; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.lock-date { font-size: 22px; color: var(--muted); text-transform: capitalize; }
.lock-device { display: flex; align-items: center; gap: 8px; color: var(--faint); margin-top: 18px; font-size: 14px; }
.lock-station { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.lock-pad { display: flex; flex-direction: column; gap: 18px; background: rgba(21,18,14,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.lock-prompt { font-family: var(--f-display); font-size: 20px; text-align: center; }
.lock-langs { justify-content: center; padding: 0; }
.pin-dots { display: flex; justify-content: center; gap: 14px; min-height: 22px; }
.dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); transition: background .1s, border-color .1s; }
.dot.on { background: var(--accent); border-color: var(--accent); }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.key { height: 72px; border-radius: 16px; background: var(--coal-2); border: 1px solid var(--line); font-family: var(--f-display); font-size: 30px; font-weight: 500; font-variant-numeric: tabular-nums; }
.key:active { background: var(--coal-3); border-color: var(--accent); }
.key-fn { font-size: 22px; color: var(--muted); }
.keypad-compact .key { height: 58px; font-size: 24px; border-radius: 12px; }
.pin-ok { width: 100%; }
.setup { display: grid; grid-template-columns: 1fr minmax(340px, 440px); gap: 48px; padding: calc(40px + var(--sat)) 56px 40px; align-items: center; background: radial-gradient(100% 80% at 0% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), var(--bg); overflow: auto; }
.setup-intro { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.setup-intro h1 { font-size: 40px; }
.setup-intro p { color: var(--muted); font-size: 18px; }
.setup-brand { font-family: var(--f-display); font-size: 22px; color: var(--accent); font-weight: 600; }
.setup-logo { max-height: 90px; max-width: 240px; object-fit: contain; object-position: left; }
.setup-form { display: flex; flex-direction: column; gap: 16px; background: var(--coal); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }

/* ---------- Campos ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-label { font-weight: 600; font-size: 14px; color: var(--muted); }
.field-hint { color: var(--faint); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.form-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin-top: 16px; }
.mini-field { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.mini-field input { width: 80px; min-height: 40px; }
.mini-field .money-input { width: 130px; }
.mini-field .money-input input { width: 100%; }
.toggle { display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track { flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--coal-3); border: 1px solid var(--line-2); position: relative; transition: background .15s; margin-top: 1px; }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.toggle input:checked + .toggle-track { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(20px); background: var(--accent-ink); }
.toggle input:focus-visible + .toggle-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle-text { display: flex; flex-direction: column; font-weight: 500; }
.toggle-text small { color: var(--faint); font-weight: 400; }
.i18n-input { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.i18n-tabs { display: flex; gap: 4px; }
.i18n-tab { height: 26px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--faint); border: 1px solid var(--line); }
.i18n-tab.filled { color: var(--muted); }
.i18n-tab.on { background: var(--coal-3); color: var(--text); border-color: var(--line-2); }
.money-input { position: relative; }
.money-input input { padding-right: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.money-input span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.media-picker { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.media-preview { width: 120px; height: 90px; flex: none; border-radius: var(--r-sm); background: var(--coal-2); border: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--faint); }
.media-preview img, .media-preview video { width: 100%; height: 100%; object-fit: cover; }
.media-actions { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.media-url { min-height: 38px !important; font-size: 13px !important; padding: 6px 10px !important; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.swatch.on { border-color: var(--text); }
.segmented { display: inline-flex; background: var(--coal); border: 1px solid var(--line); border-radius: var(--r); padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg { min-height: 40px; padding: 0 14px; border-radius: 9px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.seg.on { background: var(--coal-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.segmented.small .seg { min-height: 34px; font-size: 14px; }

/* ---------- Modais ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.66); display: flex; align-items: center; justify-content: center; padding: calc(16px + var(--sat)) 16px calc(16px + var(--sab)); animation: fade .12s ease-out; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--coal); border: 1px solid var(--line-2); border-radius: 20px; width: 100%; max-height: 100%; display: flex; flex-direction: column; box-shadow: 0 40px 90px -20px rgba(0,0,0,.85); animation: rise .16s ease-out; }
@keyframes rise { from { transform: translateY(10px); opacity: .6; } }
.modal-sm { max-width: 460px; }
.modal-md { max-width: 640px; }
.modal-lg { max-width: 920px; }
.modal-full { max-width: 1280px; height: 100%; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 6px 24px; }
.modal-head h2 { flex: 1; font-size: 22px; }
.modal-body { padding: 10px 24px 20px; overflow: auto; flex: 1; min-height: 0; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.dialog-msg { color: var(--muted); margin-bottom: 14px; }
.dialog-input { margin-top: 4px; }
.toasts { position: fixed; left: 50%; bottom: calc(24px + var(--sab)); transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(560px, 92vw); }
.toast { background: var(--coal-3); border: 1px solid var(--line-2); padding: 14px 20px; border-radius: 14px; font-weight: 600; box-shadow: 0 20px 40px -10px rgba(0,0,0,.7); animation: rise .18s ease-out; text-align: center; }
.toast-ok { border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
.toast-error { border-color: color-mix(in srgb, var(--danger) 60%, transparent); background: #2b1612; }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 50px 20px; color: var(--faint); text-align: center; }
.empty-title { color: var(--muted); font-weight: 600; font-size: 17px; }
.empty-body { color: var(--muted); max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); margin-bottom: 16px; font-weight: 500; }
.banner.warn { background: color-mix(in srgb, var(--warn) 14%, var(--coal)); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); cursor: pointer; }
.banner.danger { background: #2b1612; border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); }
.banner .chip { margin-left: auto; }

/* ---------- Sala ---------- */
.floor { height: 100%; display: grid; grid-template-columns: 1fr 340px; }
.floor-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 14px 16px 16px; }
.floor-map { display: flex; flex-direction: column; flex: 1; min-height: 0; gap: 12px; }
.zone-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.zone-tab { height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; color: var(--muted); background: var(--coal); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; }
.zone-tab.on { color: var(--text); border-color: var(--text); }
.zone-tab.add { border-style: dashed; }
.zone-tab .count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.floor-canvas { position: relative; flex: 1; min-height: 360px; border-radius: var(--r-lg); background-color: var(--coal); background-size: cover; background-position: center;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0); background-size: 28px 28px; border: 1px solid var(--line); overflow: hidden; }
.floor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; align-content: start; overflow: auto; padding-bottom: 16px; }
.floor-grid .tbl { position: relative; height: 110px; width: auto; left: auto; top: auto; }
.tbl { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--coal-2); color: var(--muted); transition: transform .08s; padding: 4px; overflow: visible; }
.tbl:active { transform: scale(0.97); }
.tbl.shape-round { border-radius: 50%; }
.tbl.shape-rect { border-radius: 12px; }
.tbl-name { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 2.2vw, 28px); line-height: 1; color: var(--text); }
.tbl-seats, .tbl-meta { font-size: 12px; display: inline-flex; align-items: center; gap: 3px; }
.tbl-total { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.tbl.busy { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tbl.busy .tbl-name { color: var(--accent-ink); }
.tbl.busy .tbl-meta { color: color-mix(in srgb, var(--accent-ink) 70%, transparent); }
.tbl.pending { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.tbl-flag { position: absolute; top: -9px; right: -9px; min-width: 24px; height: 24px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.tbl-link { position: absolute; bottom: -9px; right: -9px; width: 24px; height: 24px; border-radius: 12px; background: var(--coal-3); color: var(--text); display: flex; align-items: center; justify-content: center; }
.tbl.bill { background: var(--warn); border-color: var(--warn); animation: billpulse 2.4s ease-in-out infinite; }
@keyframes billpulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--warn) 25%, transparent); } }
.tbl.disabled { opacity: .3; }
.tbl.picking.free:hover { border-color: var(--accent); color: var(--text); }
.floor-side { border-left: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 0; background: var(--coal); }
.side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.side-sum { font-family: var(--f-display); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.side-empty { padding: 20px 0; }
.side-btn { width: 100%; }
.order-list { display: flex; flex-direction: column; gap: 6px; overflow: auto; flex: 1; min-height: 0; }
.order-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 't total' 'i total'; text-align: left; padding: 12px 14px; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); gap: 2px 12px; }
.order-row.on { border-color: var(--accent); }
.order-row.has-pending { box-shadow: inset 3px 0 0 var(--text); }
.order-row.has-bill { box-shadow: inset 3px 0 0 var(--warn); }
.or-table { grid-area: t; font-weight: 700; font-family: var(--f-display); font-size: 17px; display: flex; align-items: center; gap: 8px; }
.or-info { grid-area: i; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-total { grid-area: total; align-self: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.or-total.debt { color: var(--warn); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg-free { border: 1.5px solid var(--line-2); background: var(--coal-2); }
.lg-busy { background: var(--accent); }
.lg-pending { background: var(--accent); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--text); }
.lg-bill { background: var(--warn); }
.covers-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.cover-btn { height: 66px; border-radius: 14px; background: var(--coal-2); border: 1px solid var(--line); font-family: var(--f-display); font-size: 28px; font-weight: 600; }
.cover-btn:active, .cover-btn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.covers-custom { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: center; }
.covers-value { font-family: var(--f-display); font-size: 40px; text-align: center; }

/* ---------- Comanda ---------- */
.order { height: 100%; display: grid; grid-template-rows: auto 1fr; min-height: 0; }
.order-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.back { width: 48px; height: 48px; color: var(--text); background: var(--coal-2); border: 1px solid var(--line); }
.oh-title { min-width: 0; }
.oh-title h1 { font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oh-title p { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.covers-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; background: var(--coal-2); border: 1px solid var(--line); font-weight: 700; font-variant-numeric: tabular-nums; }
.oh-actions { margin-left: auto; display: flex; gap: 8px; }
.order-body { display: grid; grid-template-columns: 1fr 390px; min-height: 0; }
.order-body.narrow { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 10px; gap: 10px; }
.order-body.narrow .segmented { width: 100%; }
.order-body.narrow .seg { flex: 1; justify-content: center; }
.catalog { display: grid; grid-template-columns: 210px 1fr; min-height: 0; }
.cat-rail { display: flex; flex-direction: column; gap: 4px; padding: 12px; overflow: auto; border-right: 1px solid var(--line); }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 46px; border-radius: var(--r-sm); background: var(--coal); border: 1px solid var(--line-2); color: var(--muted); margin-bottom: 6px; }
.search input { border: 0 !important; background: none !important; min-height: 40px !important; padding: 0 !important; box-shadow: none !important; }
.cat-btn { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px 8px 14px; border-radius: var(--r-sm); text-align: left; font-weight: 600; color: var(--muted); position: relative; line-height: 1.2; }
.cat-btn::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: var(--cat); opacity: .55; }
.cat-btn.on { background: var(--coal-2); color: var(--text); }
.cat-btn.on::before { opacity: 1; top: 6px; bottom: 6px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 12px; overflow: auto; align-content: start; }
.tile { position: relative; display: flex; flex-direction: column; text-align: left; min-height: 96px; padding: 12px; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); overflow: hidden; box-shadow: inset 0 -3px 0 var(--cat); }
.tile:active { transform: scale(0.97); border-color: var(--accent); }
.tile.has-img { padding: 0; }
.tile.has-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tile.has-img .tile-name { padding: 8px 10px 0; }
.tile.has-img .tile-foot { padding: 4px 10px 10px; }
.tile-name { font-weight: 600; font-size: 15px; line-height: 1.25; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; color: var(--muted); }
.tile-price { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.tile-tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.tile.sold-out { opacity: .45; }
.tile-sold { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--danger); color: #fff; }

/* O talão: papel térmico sobre o preto */
.ticket-wrap { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-left: 1px solid var(--line); min-height: 0; background: var(--coal); }
.ticket { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--paper); color: var(--paper-ink); border-radius: 6px 6px 0 0; font-family: var(--f-ticket); position: relative; box-shadow: 0 16px 30px -18px rgba(0,0,0,.9); }
.ticket-head { display: flex; justify-content: space-between; padding: 14px 16px 10px; font-weight: 600; font-size: 14px; border-bottom: 1px dashed #cdbfa8; }
.ticket-lines { flex: 1; overflow: auto; padding: 6px 0; }
.ticket-empty { padding: 30px 16px; color: var(--paper-muted); font-size: 14px; text-align: center; font-family: var(--f-ui); }
.tgroup-title { padding: 10px 16px 4px; font-size: 12px; color: var(--paper-muted); font-family: var(--f-ui); font-weight: 600; }
.tgroup-new .tgroup-title { color: #b54d00; }
.tline { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; width: 100%; text-align: left; padding: 9px 16px; font-size: 14.5px; line-height: 1.3; color: var(--paper-ink); }
.tline:active { background: var(--paper-2); }
.tline.st-new { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent) 0 4px, transparent 4px); }
.tline.st-void { color: var(--paper-muted); text-decoration: line-through; }
.tline.offered .tl-price { color: #2d7a52; }
.tl-qty { font-weight: 700; }
.tl-main { display: flex; flex-direction: column; min-width: 0; }
.tl-name { font-weight: 600; }
.tl-sub { color: var(--paper-muted); font-size: 13px; }
.tl-note { color: #9a3d00; font-size: 13px; font-style: italic; }
.tl-paid { color: #2d7a52; font-size: 12px; font-weight: 600; }
.tl-price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.tvoid-toggle { width: 100%; padding: 8px; font-size: 12px; color: var(--paper-muted); font-family: var(--f-ui); }
.ticket-totals { padding: 10px 16px 18px; border-top: 1px dashed #cdbfa8; }
.tt { display: flex; justify-content: space-between; font-size: 14px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.tt-total { font-family: var(--f-display); font-size: 26px; font-weight: 700; padding: 6px 0 2px; }
.tt-due { font-weight: 700; font-size: 17px; color: #b54d00; }
.ticket-edge { position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: linear-gradient(-45deg, transparent 6px, var(--paper) 0) 0 0 / 14px 10px repeat-x, linear-gradient(45deg, transparent 6px, var(--paper) 0) 0 0 / 14px 10px repeat-x; }
.ticket-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.ta-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.ta-send { width: 100%; }

/* Diálogos da comanda */
.opt-group { margin: 14px 0; }
.opt-title { font-weight: 700; font-family: var(--f-display); font-size: 17px; margin-bottom: 4px; }
.opt-title small { font-family: var(--f-ui); font-weight: 500; color: var(--faint); font-size: 13px; margin-left: 6px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.choice { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 4px; padding: 0 0 10px; border-radius: var(--r); background: var(--coal-2); border: 2px solid var(--line); overflow: hidden; font-weight: 600; min-height: 64px; }
.choice span, .choice small { padding: 0 10px; }
.choice span { padding-top: 10px; }
.choice img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.choice img + span { padding-top: 6px; }
.choice small { color: var(--accent); }
.choice.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--coal-2)); }
.note-input { margin-top: 4px; }
.qty-stepper { display: inline-flex; align-items: center; background: var(--coal-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-right: auto; }
.qty-stepper button { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.qty-stepper button:active { background: var(--coal-3); }
.qty-stepper span, .qty-stepper input { min-width: 44px; text-align: center; font-family: var(--f-display); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty-stepper input { width: 56px; min-height: 36px !important; padding: 0 !important; border: 0 !important; background: none !important; }
.qty-stepper.sm { margin: 0; }
.qty-stepper.sm button { width: 38px; height: 38px; }
.qty-stepper.sm span { min-width: 30px; font-size: 18px; }
.qty-stepper.lg { margin: 10px auto; }
.qty-stepper.lg button { width: 64px; height: 64px; }
.qty-stepper.lg span { min-width: 80px; font-size: 36px; }
.line-qty { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 10px 0 16px; }
.big-step { width: 72px; height: 72px; border-radius: 50%; background: var(--coal-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.big-qty { font-family: var(--f-display); font-size: 54px; font-weight: 600; min-width: 80px; text-align: center; }
.action-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.action-list .btn { justify-content: flex-start; min-height: 54px; }
.pick-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.pick-line { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 0; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); }
.pick-line.on { border-color: var(--accent); }
.pl-name { flex: 1; display: flex; flex-direction: column; text-align: left; padding: 6px 14px; min-width: 0; }
.pl-name span { font-weight: 600; }
.pl-name small { color: var(--muted); }
.pick-hint { margin-bottom: 10px; }
.big-value { font-family: var(--f-display); font-size: 44px; font-weight: 600; text-align: center; padding: 10px 0; font-variant-numeric: tabular-nums; }

/* ---------- Pagamento ---------- */
.pay { display: grid; grid-template-columns: 1fr 440px; gap: 24px; height: 100%; min-height: 0; }
.pay-left { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow: auto; }
.pay-right { display: flex; flex-direction: column; gap: 12px; background: var(--coal-2); border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 0; overflow: auto; }
.pay-confirm { position: sticky; bottom: 0; margin-top: auto; padding: 10px 0 18px; background: linear-gradient(transparent, var(--coal-2) 30%); }
.pay .keypad-compact .key { height: 48px; font-size: 22px; }
.pay .due { font-size: 48px; }
.pay .method { min-height: 56px; }
.pay-summary { display: flex; gap: 10px; }
.pay-summary div { flex: 1; display: flex; flex-direction: column; padding: 12px 16px; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); }
.pay-summary span { color: var(--muted); font-size: 14px; }
.pay-summary strong { font-family: var(--f-display); font-size: 24px; font-variant-numeric: tabular-nums; }
.pay-summary .pay-rem { border-color: var(--accent); }
.due-label { color: var(--muted); font-weight: 600; }
.due { font-family: var(--f-display); font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.method { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 0 14px; border-radius: 14px; background: var(--coal); border: 2px solid var(--line); font-weight: 700; text-align: left; }
.method.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--coal)); }
.cash-box, .cust-box { display: flex; flex-direction: column; gap: 10px; }
.cash-line { display: flex; justify-content: space-between; align-items: baseline; font-variant-numeric: tabular-nums; }
.cash-line strong { font-family: var(--f-display); font-size: 24px; }
.cash-line.change { padding: 10px 14px; border-radius: var(--r); background: var(--coal); }
.cash-line.change.on { background: var(--accent); color: var(--accent-ink); }
.quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; }
.amountpad { display: flex; flex-direction: column; gap: 10px; }
.cust-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow: auto; }
.cust { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: var(--r-sm); background: var(--coal); border: 2px solid var(--line); text-align: left; font-weight: 600; }
.cust small { color: var(--muted); font-weight: 400; }
.cust.on { border-color: var(--accent); }
.split-box { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 14px; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); }
.split-each { text-align: center; font-family: var(--f-display); font-size: 22px; }
.pay-history { padding: 14px; border-radius: var(--r); border: 1px solid var(--line); }
.ph-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.ph-row span { flex: 1; color: var(--muted); }
.done { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 16px 4px 4px; }
.done-check { width: 84px; height: 84px; border-radius: 50%; background: var(--ok); color: #04130b; display: flex; align-items: center; justify-content: center; animation: pop .3s ease-out; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.done h2 { font-size: 28px; }
.done-change-label { color: var(--muted); margin-top: 8px; }
.done-change { font-family: var(--f-display); font-size: 64px; font-weight: 700; color: var(--accent); line-height: 1; }
.done .action-list { width: 100%; }
.done .action-list .btn { justify-content: center; }

/* ---------- Páginas ---------- */
.page { height: 100%; overflow: auto; padding: 20px 24px 40px; }
.page-sub { padding-bottom: 30px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head p { margin-top: 4px; }
.split-page { height: 100%; display: grid; grid-template-columns: 340px 1fr; min-height: 0; }
.split-page.inner { height: auto; min-height: 400px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.list-pane { border-right: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 0; background: var(--coal); }
.detail-pane { padding: 20px 24px; overflow: auto; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { padding: 14px 18px; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.kpi span { color: var(--muted); font-size: 14px; }
.kpi strong { font-family: var(--f-display); font-size: 26px; font-variant-numeric: tabular-nums; }
.kpi-main { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.kpi-main strong { color: var(--accent); }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.rblock { padding: 16px 18px; border-radius: var(--r); background: var(--coal); border: 1px solid var(--line); }
.rblock h3 { margin-bottom: 8px; }
.rrow { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.rrow:last-child { border-bottom: 0; }
.rrow small { color: var(--faint); margin-left: 6px; }
.rrow.head { color: var(--faint); font-size: 13px; }
.rrow.cols4, .rrow.head { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; text-align: right; }
.rrow.cols4 > :first-child, .rrow.head > :first-child { text-align: left; }
.rrow.sub { color: var(--muted); font-size: 14px; }
.rrow.total { font-weight: 700; }
.rrow.ok strong { color: var(--ok); }
.rrow.warn strong { color: var(--warn); }
.neg { color: var(--ok); }
.cash-open { height: 100%; display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: 40px; padding: 40px 56px; align-items: center; overflow: auto; }
.cash-open h1 { font-size: 38px; margin-bottom: 10px; }
.cash-open section { display: flex; flex-direction: column; gap: 14px; }
.cash-open .big-value { text-align: left; font-size: 64px; }
.close-head { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.close-diff { display: flex; align-items: baseline; gap: 10px; margin-right: auto; font-variant-numeric: tabular-nums; }
.close-diff strong { font-family: var(--f-display); font-size: 24px; }
.close-diff.ok strong { color: var(--ok); }
.close-diff.warn strong { color: var(--warn); }
.denoms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 16px; margin: 14px 0; }
.denom { display: grid; grid-template-columns: 64px auto 1fr; gap: 10px; align-items: center; }
.denom-v { font-weight: 700; }
.denom-sum { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th { text-align: left; color: var(--faint); font-weight: 600; font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.data-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.job-error { display: block; color: #ffb2a9; margin-top: 4px; }
.job-error + * { margin-top: 4px; }

/* ---------- Administração ---------- */
.admin { height: 100%; display: grid; grid-template-columns: 230px 1fr; min-height: 0; }
.admin-nav { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; background: var(--coal); overflow: auto; }
.admin-tab { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 14px; border-radius: var(--r-sm); font-weight: 600; color: var(--muted); text-align: left; }
.admin-tab.on { background: var(--coal-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.admin-body { overflow: auto; padding: 20px 24px; min-width: 0; }
.catalog-admin { display: grid; grid-template-columns: 340px 1fr; gap: 0; height: calc(100% + 40px); margin: -20px -24px; }
.catalog-admin .list-pane { min-height: 0; }
.catalog-admin .detail-pane { overflow: auto; }
.cat-row { display: flex; align-items: center; gap: 2px; border-radius: var(--r-sm); }
.cat-row.on { background: var(--coal-2); }
.cat-row.off { opacity: .5; }
.cat-row-main { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 10px; text-align: left; font-weight: 600; min-width: 0; }
.cat-row-main span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-row-main small { color: var(--faint); }
.cat-row .icon-btn { width: 34px; height: 34px; }
.dotc { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.admin-products { display: flex; flex-direction: column; gap: 6px; }
.ap-row { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 6px; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); }
.ap-row.off { opacity: .5; }
.ap-main { flex: 1; display: flex; align-items: center; gap: 14px; text-align: left; min-width: 0; }
.ap-thumb { width: 64px; height: 48px; border-radius: 8px; background: var(--coal-3); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--faint); flex: none; }
.ap-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ap-name { flex: 1; font-weight: 600; min-width: 0; }
.ap-price { font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 10px; }
.editor-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.editor-card { padding: 14px; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.editor-card-head { display: flex; gap: 10px; align-items: flex-end; }
.option-row { display: flex; gap: 10px; align-items: flex-end; }
.option-row .money-input { width: 130px; flex: none; }
.choice-name { flex: 1; font-weight: 600; align-self: center; }
.floor-admin .fa-body { display: grid; grid-template-columns: 1fr 280px; gap: 16px; margin-top: 12px; }
.floor-admin .floor-canvas { min-height: 520px; touch-action: none; }
.floor-canvas.editing .tbl { cursor: grab; touch-action: none; }
.tbl.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--text); }
.fa-panel { padding: 16px; border-radius: var(--r); background: var(--coal); border: 1px solid var(--line); }
.fa-panel h3 { margin-bottom: 12px; }
.card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-bottom: 20px; }
.printer-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); text-align: left; color: var(--muted); }
.printer-card:hover { border-color: var(--line-2); }
.printer-card.off { opacity: .5; }
.pc-main { flex: 1; display: flex; flex-direction: column; min-width: 0; color: var(--text); }
.pc-main small { color: var(--muted); }
.pc-ip { font-size: 13px; font-variant-numeric: tabular-nums; }
.pc-ip.missing { color: var(--warn); }
.vat-badge { min-width: 64px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-family: var(--f-display); font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 8px; }
.help-box { padding: 18px 20px; border-radius: var(--r); background: var(--coal); border: 1px solid var(--line); color: var(--muted); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.help-box h3 { color: var(--text); }
.help-box ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.two-col.wide-left { grid-template-columns: 1.4fr 1fr; }
.perm-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 10px; }
.perm-group { padding: 14px 16px; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); }
.perm-group h3 { margin-bottom: 4px; }
.pin-edit { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.pin-edit .pin-dots { justify-content: flex-start; }
.device-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; margin-bottom: 20px; }
.device-card { padding: 16px; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.device-card.current { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.dc-head { display: flex; align-items: center; gap: 10px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.status-dot.on { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }

/* ---------- Ecrãs estreitos (telemóvel / tablet vertical) ---------- */
@media (max-width: 1100px) {
  .nav-btn span { display: none; }
  .oh-actions .btn span { display: none; }
  .oh-actions .btn { padding: 0 12px; }
  .user-name { display: none; }
  .user-chip { padding: 0 4px; }
}
@media (max-width: 1000px) {
  .catalog { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .cat-rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .cat-rail .search { min-width: 180px; margin: 0; }
  .cat-btn { white-space: nowrap; flex: none; }
  .cat-btn::before { left: 10px; right: 10px; top: auto; bottom: 4px; width: auto; height: 3px; }
  .ticket-wrap { border-left: 0; padding: 0; background: none; }
  .pay { grid-template-columns: 1fr; }
  .pay-right { order: -1; }
}
@media (max-width: 900px) {
  .floor { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .floor-side { border-left: 0; border-top: 1px solid var(--line); max-height: 40vh; }
  .lock-inner, .setup, .cash-open { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; }
  .lock-brand { align-self: auto; }
  .lock-clock { font-size: 64px; }
  .lock-logo, .lock-name { margin-bottom: 0; }
  .split-page, .catalog-admin { grid-template-columns: 1fr; }
  .catalog-admin { height: auto; margin: 0; }
  .list-pane { border-right: 0; border-bottom: 1px solid var(--line); max-height: 45vh; }
  .admin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .admin-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .admin-tab { white-space: nowrap; flex: none; }
  .admin-tab span { display: none; }
  .admin-tab.on span { display: inline; }
  .form-cols, .two-col, .two-col.wide-left, .floor-admin .fa-body { grid-template-columns: 1fr; }
  .page, .admin-body, .detail-pane { padding: 16px; }
  .topbar-right .pill:not(.pill-danger) span, .topbar-right .pill { font-size: 0; gap: 0; padding: 0 10px; }
  .topbar-right .pill .ic { width: 18px; height: 18px; }
  .brand { max-width: 120px; }
  .oh-title h1 { font-size: 20px; }
  .modal-bg { padding: 0; align-items: flex-end; }
  .modal { border-radius: 20px 20px 0 0; max-height: 96%; }
  .modal-full { height: 96%; }
}
.order-body > *, .catalog, .catalog > *, .floor-main, .floor-map { min-width: 0; }
@media (max-width: 1000px) {
  .pay-right { overflow: visible; }
  .pay-left { overflow: visible; }
  .pay { height: auto; }
}
@media (max-width: 600px) {
  .topbar { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .brand { display: none; }
  .nav { gap: 0; }
  .nav-btn { padding: 0 10px; }
  .topbar-right { gap: 4px; }
  .topbar-right .pill-ok, .topbar-right .pill-quiet:not(.pill-danger) { display: none; }
  .order-head { flex-wrap: wrap; gap: 8px; padding: 8px 10px; }
  .oh-title { flex: 1; }
  .oh-actions { width: 100%; margin-left: 0; overflow-x: auto; }
  .oh-actions .btn { flex: 1; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; gap: 8px; }
  .ticket-actions .ta-row { grid-template-columns: 1fr; }
  .methods { grid-template-columns: 1fr 1fr; }
  .lock-pad { padding: 18px; }
  .key { height: 62px; }
  .page-head .segmented { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Chamadas das mesas (equipa) ---------- */
.pill-call { background: var(--warn); color: #1a1205; font-weight: 700; animation: billpulse 2.4s ease-in-out infinite; }
.toast-call { background: var(--warn); color: #1a1205; border-color: var(--warn); }
.tbl-call { position: absolute; top: -10px; left: -10px; width: 28px; height: 28px; border-radius: 14px; background: var(--warn); color: #1a1205; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--bg); }
.tbl.calling { animation: billpulse 2.4s ease-in-out infinite; }
.zone-tab .count.call { background: var(--warn); color: #1a1205; }
.call-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); }
.call-ic { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); display: flex; align-items: center; justify-content: center; flex: none; }
.call-order .call-ic { background: var(--accent-soft); color: var(--accent); }
.call-main { flex: 1; display: flex; flex-direction: column; text-align: left; min-width: 0; }
.call-main strong { font-family: var(--f-display); font-size: 18px; }
.call-main small { color: var(--muted); }
.call-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--warn); color: #1a1205; font-weight: 700; font-size: 14px; }
.call-chip-ok { background: rgba(0,0,0,.18); border-radius: 999px; padding: 4px 10px; }
.tl-origin { color: var(--paper-muted); display: inline-flex; vertical-align: -2px; }
.setup-zone { margin-bottom: 4px; }
.setup-zone .chips { margin-top: 4px; }

/* ---------- Tablet do cliente ---------- */
.c-welcome { position: relative; height: 100%; overflow: hidden; cursor: pointer; background: var(--bg); }
.c-slides { position: absolute; inset: 0; }
.c-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.c-slide.on { opacity: 1; }
img.c-slide.on { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.c-welcome-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 35%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.9) 100%); }
.c-welcome-inner { position: relative; height: 100%; display: flex; flex-direction: column; padding: calc(36px + var(--sat)) 48px calc(36px + var(--sab)); }
.c-logo { max-height: 110px; max-width: 280px; object-fit: contain; object-position: left; }
.c-name { font-family: var(--f-display); font-size: 34px; font-weight: 700; }
.c-welcome-text { margin-top: auto; max-width: 760px; }
.c-welcome-text h1 { font-size: clamp(44px, 7vw, 92px); line-height: 1; letter-spacing: -0.03em; font-weight: 600; }
.c-welcome-text p { font-size: 22px; color: rgba(244,238,228,.86); margin-top: 14px; max-width: 560px; }
.c-welcome-text .c-now { font-size: 15px; color: var(--accent); margin-top: 20px; }
.c-welcome-foot { display: flex; align-items: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.c-table { height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); display: inline-flex; align-items: center; font-weight: 600; }
.c-langs { display: flex; gap: 6px; }
.c-lang { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); font-weight: 700; font-size: 14px; }
.c-lang.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.c-start { margin-left: auto; height: 56px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 18px; display: inline-flex; align-items: center; }

.c-app { height: 100%; display: grid; grid-template-rows: auto 1fr; background: var(--bg); }
.c-top { display: flex; align-items: center; gap: 14px; padding: calc(10px + var(--sat)) 18px 10px; border-bottom: 1px solid var(--line); }
.c-brand { height: 52px; display: flex; align-items: center; font-family: var(--f-display); font-size: 22px; font-weight: 700; }
.c-brand img { height: 46px; width: auto; max-width: 180px; object-fit: contain; }
.c-table-chip { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--coal-2); border: 1px solid var(--line); display: inline-flex; align-items: center; font-weight: 600; color: var(--muted); }
.c-top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.c-top .c-lang { width: 42px; height: 42px; }
.c-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 16px; background: var(--coal-2); border: 1px solid var(--line-2); font-weight: 700; font-size: 16px; }
.c-btn:disabled { opacity: .45; }
.c-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.c-btn-called { background: color-mix(in srgb, var(--warn) 22%, var(--coal-2)); border-color: var(--warn); color: #ffe2a3; }
.c-body { display: grid; grid-template-columns: 220px 1fr 380px; min-height: 0; }
.c-body.no-cart { grid-template-columns: 220px 1fr; }
.c-cats { display: flex; flex-direction: column; gap: 4px; padding: 16px 10px; overflow: auto; border-right: 1px solid var(--line); }
.c-cat { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 0 14px; border-radius: 12px; text-align: left; font-weight: 600; font-size: 17px; color: var(--muted); position: relative; }
.c-cat::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 2px; background: var(--cat, var(--accent)); opacity: 0; }
.c-cat.on { background: var(--coal-2); color: var(--text); }
.c-cat.on::before { opacity: 1; }
.c-products { overflow: auto; padding: 18px 22px 40px; min-width: 0; }
.c-cat-title { font-size: 32px; margin-bottom: 16px; }
.c-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.c-card { display: flex; flex-direction: column; text-align: left; border-radius: 18px; background: var(--coal); border: 1px solid var(--line); overflow: hidden; }
.c-card:active { transform: scale(0.985); }
.c-card-img { position: relative; aspect-ratio: 4 / 3; background: var(--coal-2); overflow: hidden; }
.c-card-img img { width: 100%; height: 100%; object-fit: cover; }
.c-play { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; }
.c-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.c-card-name { font-family: var(--f-display); font-size: 19px; font-weight: 600; line-height: 1.2; }
.c-card-desc { color: var(--muted); font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; font-variant-numeric: tabular-nums; }
.c-card-foot strong { font-size: 18px; }
.c-add { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.c-sold { font-size: 13px; font-weight: 700; color: var(--danger); }
.c-card.sold { opacity: .5; }
.c-card.no-img .c-card-body { min-height: 150px; }

.c-cart { display: flex; flex-direction: column; min-height: 0; background: var(--paper); color: var(--paper-ink); border-left: 1px solid var(--line); }
.c-sheet .c-cart { border-left: 0; border-radius: 20px; max-height: 80vh; }
.c-cart-head { display: flex; align-items: center; gap: 10px; padding: 20px 20px 12px; border-bottom: 1px dashed #cdbfa8; }
.c-cart-head h2 { font-size: 22px; }
.c-count { min-width: 28px; height: 28px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; font-size: 14px; }
.c-cart-lines { flex: 1; overflow: auto; padding: 8px 0; }
.c-cart-empty { padding: 28px 20px; text-align: center; color: var(--paper-muted) !important; }
.c-cline { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 20px; border-bottom: 1px solid #e6dccb; }
.c-cline-main { display: flex; flex-direction: column; min-width: 0; }
.c-cline .n { font-weight: 600; }
.c-cline small { color: var(--paper-muted); font-size: 13px; }
.c-cline small.note { color: #9a3d00; font-style: italic; }
.c-cline .p { font-family: var(--f-ticket); font-weight: 600; font-variant-numeric: tabular-nums; min-width: 56px; text-align: right; }
.c-cart-foot { padding: 14px 20px calc(18px + var(--sab)); border-top: 1px dashed #cdbfa8; display: flex; flex-direction: column; gap: 10px; }
.c-cart-foot .c-muted { color: var(--paper-muted); text-align: center; }
.c-ttotal { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--f-display); font-size: 20px; }
.c-ttotal strong { font-size: 28px; }
.c-tpaid { display: flex; justify-content: space-between; color: var(--paper-muted); }
.c-send { min-height: 64px; font-size: 19px; }
.c-qty { display: inline-flex; align-items: center; background: var(--coal-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.c-qty button { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.c-qty span { min-width: 40px; text-align: center; font-family: var(--f-display); font-size: 22px; font-weight: 600; }
.c-qty.sm { background: #ece3d3; border-color: #ddd0bb; }
.c-qty.sm button { width: 36px; height: 36px; color: var(--paper-ink); }
.c-qty.sm span { min-width: 26px; font-size: 17px; color: var(--paper-ink); }
.c-cart-bar { position: fixed; left: 16px; right: 16px; bottom: calc(16px + var(--sab)); height: 64px; border-radius: 18px; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; gap: 12px; padding: 0 20px; font-weight: 700; font-size: 18px; z-index: 30; box-shadow: 0 20px 40px -10px rgba(0,0,0,.8); }
.c-cart-bar .c-count { background: var(--accent-ink); color: var(--accent); }
.c-cart-bar strong { margin-left: auto; }

.c-sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .15s ease-out; }
.c-sheet { width: min(980px, 100%); max-height: 100%; display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr auto; background: var(--coal); border: 1px solid var(--line-2); border-radius: 24px; overflow: hidden; animation: rise .18s ease-out; }
.c-sheet-narrow { width: min(560px, 100%); grid-template-columns: 1fr; background: transparent; border: 0; }
.c-sheet-narrow .c-sheet-body { background: var(--coal); border: 1px solid var(--line-2); border-radius: 24px; max-height: 86vh; }
.c-sheet-media { grid-row: 1 / span 2; position: relative; background: var(--coal-2); min-height: 320px; }
.c-sheet-media img, .c-sheet-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-media-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 120px; color: var(--accent); opacity: .5; }
.c-close { position: absolute; top: 14px; left: 14px; width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; color: #fff; }
.c-close.static { position: static; background: var(--coal-2); }
.c-sheet-body { padding: 26px 28px 10px; overflow: auto; min-height: 0; }
.c-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.c-sheet-body h2 { font-size: 30px; line-height: 1.1; }
.c-desc { color: var(--muted); font-size: 17px; margin-top: 10px; line-height: 1.45; }
.c-allergens { margin-top: 12px; font-size: 14px; color: var(--muted); }
.c-allergens span { color: var(--warn); font-weight: 700; margin-right: 6px; }
.c-opt { margin-top: 20px; }
.c-opt-title { font-family: var(--f-display); font-weight: 600; font-size: 18px; margin: 16px 0 8px; }
.c-opt-title small { font-family: var(--f-ui); font-weight: 500; color: var(--faint); font-size: 13px; margin-left: 6px; }
.c-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.c-pill { min-height: 50px; padding: 0 18px; border-radius: 999px; background: var(--coal-2); border: 2px solid var(--line); font-weight: 600; font-size: 16px; }
.c-pill.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--coal-2)); }
.c-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.c-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; border-radius: 14px; background: var(--coal-2); border: 2px solid var(--line); overflow: hidden; padding-bottom: 10px; font-weight: 600; min-height: 60px; }
.c-choice img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.c-choice span, .c-choice small { padding: 0 10px; }
.c-choice span { padding-top: 8px; }
.c-choice small { color: var(--accent); }
.c-choice .sold-tag { color: var(--danger); }
.c-choice.on { border-color: var(--accent); }
.c-choice.sold { opacity: .45; }
.c-input { margin-top: 2px; }
.c-sheet-foot { display: flex; align-items: center; gap: 14px; padding: 16px 28px calc(20px + var(--sab)); border-top: 1px solid var(--line); background: var(--coal); }
.c-sheet-foot .c-btn-primary { flex: 1; min-height: 60px; font-size: 18px; }
.c-ticket { background: var(--paper); color: var(--paper-ink); border-radius: 14px; padding: 8px 0 14px; margin-bottom: 18px; }
.c-tline { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; padding: 9px 16px; font-family: var(--f-ticket); font-size: 15px; }
.c-tline .q { font-weight: 700; }
.c-tline .n { display: flex; flex-direction: column; font-weight: 600; }
.c-tline small { font-weight: 400; color: var(--paper-muted); font-size: 13px; }
.c-tline small.pending { color: #b54d00; }
.c-ticket .c-ttotal, .c-ticket .c-tpaid { padding: 8px 16px 0; border-top: 1px dashed #cdbfa8; margin-top: 6px; }
.c-pay-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.c-pay-choices .c-btn { min-height: 64px; }
.c-done-note { display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: 14px; background: color-mix(in srgb, var(--ok) 16%, transparent); color: #a9e7c6; font-weight: 600; margin-bottom: 18px; }
.c-muted { color: var(--muted); }
.c-sent, .c-thanks { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.86); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 30px; animation: fade .2s ease-out; }
.c-thanks { background: radial-gradient(90% 70% at 50% 100%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 60%), var(--bg); }
.c-sent h2, .c-thanks h1 { font-size: 40px; }
.c-sent p, .c-thanks p { color: var(--muted); font-size: 20px; }
.c-sent .done-check, .c-thanks .done-check { width: 110px; height: 110px; }

@media (max-width: 1000px) {
  .c-body, .c-body.no-cart { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .c-cats { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .c-cat { white-space: nowrap; flex: none; min-height: 46px; }
  .c-cat::before { left: 12px; right: 12px; top: auto; bottom: 4px; width: auto; height: 3px; }
  .c-products { padding-bottom: 110px; }
  .c-sheet { grid-template-columns: 1fr; grid-template-rows: 260px 1fr auto; }
  .c-sheet-media { grid-row: auto; min-height: 0; }
  .c-top { flex-wrap: wrap; }
  .c-top-actions { width: 100%; margin-left: 0; justify-content: flex-end; flex-wrap: wrap; }
  .c-welcome-inner { padding: 28px 24px; }
}
@media (max-width: 600px) {
  .c-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .c-card-name { font-size: 16px; }
  .c-card-desc { display: none; }
  .c-btn { min-height: 46px; padding: 0 14px; font-size: 14px; }
  .c-top .c-langs { display: none; }
  .c-sheet-bg { padding: 0; align-items: flex-end; }
  .c-sheet { border-radius: 22px 22px 0 0; max-height: 96%; }
  .c-pay-choices { grid-template-columns: 1fr; }
  .c-start { margin-left: 0; }
}
