/* ============================================================
   WAVE RISE FRONT DESK OS — POS styles
   ------------------------------------------------------------
   Concept: THE TICKET. White paper, one orange, system type. The
   desk is a quiet white counter; the only object with character is
   the ticket itself, drawn on screen from the bytes the printer gets.
   Everything else is a list, a number, or one button.

   Rules of the system:
   - one accent (Wave Rise orange), spent on the single thing to tap
     next and on money still owed. No green, no red.
   - sentence case everywhere. Hierarchy is size and weight, never
     capitals or letter-spacing.
   - no shadows on things that lie on the page; a shadow means "this
     floats above it" (a sheet, a toast, the ticket).
   - lists are rows with hairlines, not stacks of cards. A filled
     tile is something you tap to choose.
   Loaded by index.html; every rule applies only inside body.pos-mode.
   ============================================================ */

:root {
  /* brand */
  --pos-orange: #E5551F;            /* canonical Wave Rise orange */
  --pos-orange-ink: #FFFFFF;        /* text on orange: only at 19px bold or larger (3.7:1, AA large) */
  --pos-orange-deep: #CC4410;       /* small filled marks carrying white text (4.8:1) */
  --pos-orange-12: rgba(229, 85, 31, .10);
  --pos-orange-20: rgba(229, 85, 31, .18);
  --pos-orange-35: rgba(229, 85, 31, .32);
  --pos-orange-60: rgba(229, 85, 31, .60);
  --pos-orange-text: #B8400F;       /* orange as text on white or on the tint: 5.6:1 / 5.0:1 */

  /* surfaces (light). Neutrals lean a hair warm, toward the orange. */
  --pos-bg: #FFFFFF;
  --pos-surface: #FFFFFF;           /* sheets, the ticket */
  --pos-surface-2: #F5F4F2;         /* a filled tile, a field, a grouped block */
  --pos-surface-3: #ECEAE7;         /* the same, pressed */
  --pos-ink: #111113;
  --pos-ink-2: #5F5E63;             /* secondary text — 6.4:1 on white */
  --pos-ink-3: #6B6A6F;             /* tertiary text — 5.3:1 on white, 4.9:1 on a tile */
  --pos-border: rgba(17, 17, 19, .10);          /* hairline */
  --pos-border-strong: rgba(17, 17, 19, .20);
  --pos-shadow: none;
  --pos-shadow-lift: 0 1px 2px rgba(17, 17, 19, .06), 0 24px 60px rgba(17, 17, 19, .18);
  --pos-shadow-paper: 0 1px 1px rgba(17, 17, 19, .05), 0 12px 32px rgba(17, 17, 19, .10);
  --pos-scrim: rgba(17, 17, 19, .38);
  --pos-paper: #FFFFFF;             /* the ticket is always paper-white, in both themes */
  --pos-paper-ink: #111113;

  /* spacing scale */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px;

  /* radii */
  --r-sm: 12px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;

  /* type: 13 footnote · 15 secondary · 17 body · 20 emphasis · 24 title · 34 large title · 44 / 56 money */
  --pos-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --pos-font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --pos-font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --t-xs: 13px; --t-sm: 15px; --t-md: 17px; --t-lg: 20px; --t-xl: 24px; --t-2xl: 34px; --t-3xl: 44px; --t-4xl: 56px;

  /* motion: sheets rise, the ticket prints; everything else answers the finger */
  --m-fast: 120ms; --m-base: 220ms; --m-slow: 420ms;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* touch */
  --tap: 52px; --tap-lg: 60px;
}

body.pos-mode.pos-dark {
  --pos-bg: #000000;
  --pos-surface: #1C1C1E;
  --pos-surface-2: #1C1C1E;
  --pos-surface-3: #2C2C2E;
  --pos-ink: #F5F5F7;
  --pos-ink-2: #AEAEB2;
  --pos-ink-3: #98989D;
  --pos-border: rgba(255, 255, 255, .12);
  --pos-border-strong: rgba(255, 255, 255, .24);
  --pos-shadow-lift: 0 1px 2px rgba(0, 0, 0, .5), 0 24px 60px rgba(0, 0, 0, .7);
  --pos-shadow-paper: 0 12px 32px rgba(0, 0, 0, .6);
  --pos-scrim: rgba(0, 0, 0, .62);
  --pos-orange: #FF6B2C;            /* brighter on black */
  --pos-orange-ink: #1A0D06;        /* dark text on the bright orange: 6.7:1 */
  --pos-orange-deep: #FF6B2C;
  --pos-orange-12: rgba(255, 107, 44, .16);
  --pos-orange-20: rgba(255, 107, 44, .26);
  --pos-orange-35: rgba(255, 107, 44, .40);
  --pos-orange-text: #FF8A57;
}
body.pos-mode.pos-dark #pos-sheet-host .sheet { --pos-surface-2: #2C2C2E; --pos-surface-3: #3A3A3C; }

/* ---------- mode switch: hide the team app shell, show the desk ---------- */
body.pos-mode > *:not(#pos-root):not(#pos-toasts):not(#pos-sheet-host) { display: none !important; }
body.pos-mode { background: var(--pos-bg) !important; color: var(--pos-ink); overflow: hidden; }
body.pos-mode #pos-root { display: block; }
#pos-root { display: none; font-family: var(--pos-font); color: var(--pos-ink); font-size: var(--t-md); line-height: 1.3;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
  position: fixed; inset: 0; background: var(--pos-bg); }
#pos-root *, #pos-sheet-host *, #pos-toasts * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* :where() keeps this at zero weight: a button inherits its colour unless a class says otherwise.
   (Written as #pos-root button it outranked every class, and every orange button had black text.) */
:where(#pos-root, #pos-sheet-host) button { font-family: inherit; color: inherit; }
#pos-root button:focus-visible, #pos-sheet-host button:focus-visible, #pos-root a:focus-visible, #pos-root [tabindex]:focus-visible {
  outline: 3px solid var(--pos-orange); outline-offset: 2px; }

/* ---------- layout ---------- */
.pos-shell { display: flex; flex-direction: column; height: 100%; }
.pos-top { height: 64px; flex: 0 0 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--s3); padding-top: env(safe-area-inset-top, 0px); box-sizing: content-box; border-bottom: 1px solid var(--pos-border); }
.pos-top .pos-logo { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 0; border-radius: var(--r-sm);
  background: transparent; border: 0; cursor: pointer; }
.pos-top .pos-logo img { width: 32px; height: 32px; border-radius: 8px; }
.pos-top .pos-logo span { font-family: var(--pos-font-display); font-weight: 700; font-size: var(--t-md); letter-spacing: -.01em; }
.pos-top .pos-logo span b { font-weight: 700; color: inherit; }
.pos-top .pos-logo:active { opacity: .6; }
.pos-top .pos-right { display: flex; align-items: center; gap: var(--s1); }
.pos-top .pos-clock { display: flex; align-items: baseline; gap: 8px; color: var(--pos-ink-2); font-size: var(--t-sm); font-weight: 500; margin-right: var(--s1); white-space: nowrap; }
.pos-top .pos-clock strong { color: var(--pos-ink); font-size: var(--t-md); font-weight: 600; }
.pos-profile { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 4px; border-radius: var(--r-pill);
  background: transparent; border: 0; cursor: pointer; text-align: left; }
.pos-profile:active { background: var(--pos-surface-2); }
.pos-profile .av { width: 36px; height: 36px; border-radius: 50%; background: var(--pos-surface-2); color: var(--pos-ink);
  display: grid; place-items: center; font-weight: 600; font-size: var(--t-sm); }
.pos-profile .nm { font-weight: 600; font-size: var(--t-sm); display: block; line-height: 1.15; }
.pos-profile .rl { font-size: var(--t-xs); color: var(--pos-ink-3); font-weight: 400; display: block; line-height: 1.15; }
.pos-iconbtn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--pos-ink-2);
  display: grid; place-items: center; cursor: pointer; }
.pos-iconbtn:active { background: var(--pos-surface-2); }
.pos-iconbtn svg { width: 24px; height: 24px; }
/* The printer's state is a dot on the printer, the way a camera has a recording light. */
.pos-printer-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pos-ink-3); display: inline-block; flex: 0 0 auto; }
.pos-iconbtn .pos-printer-dot { position: absolute; right: 7px; top: 8px; box-shadow: 0 0 0 2px var(--pos-bg); }
.pos-printer-dot.ready { background: var(--pos-orange); }
.pos-printer-dot.off { background: transparent; border: 1.5px solid var(--pos-ink-3); }
.pos-printer-dot.attention { background: var(--pos-orange); animation: pos-pulse 1.4s infinite; }
@keyframes pos-pulse { 0% { box-shadow: 0 0 0 0 var(--pos-orange-35); } 100% { box-shadow: 0 0 0 9px transparent; } }

.pos-main { flex: 1 1 auto; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch;
  padding: 0 var(--s4) calc(var(--s6) + env(safe-area-inset-bottom, 0px)); }
.pos-page { max-width: 1080px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
.pos-page > * { flex: 0 0 auto; }
.pos-page.narrow { max-width: 720px; }
.pos-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s2); padding: var(--s2) 0 var(--s3); flex-wrap: wrap; }
.pos-page-head h1 { font-family: var(--pos-font-display); font-size: var(--t-2xl); font-weight: 700; letter-spacing: -.022em; margin: 0; line-height: 1.1; }
.pos-page-head .sub { color: var(--pos-ink-2); font-size: var(--t-md); font-weight: 400; margin-top: 6px; }
/* Back is a word and a chevron in the accent colour, where iPadOS puts it. */
.pos-back { display: inline-flex; align-items: center; gap: 2px; height: 44px; padding: 0 12px 0 0; margin-left: -6px; border-radius: var(--r-sm);
  background: transparent; border: 0; color: var(--pos-orange-text) !important; font-weight: 500; font-size: var(--t-md); cursor: pointer; }
.pos-back:active { opacity: .5; }
.pos-back svg { width: 24px; height: 24px; }

/* ---------- icons ---------- */
.pos-ico { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -.15em; flex: 0 0 auto; }

/* ---------- avatar: initials in a circle; a ring means "this guest still needs something" ---------- */
.pos-av { width: 44px; height: 44px; border-radius: 50%; background: var(--pos-surface-2); color: var(--pos-ink-2); display: grid; place-items: center;
  font-size: var(--t-sm); font-weight: 600; letter-spacing: .01em; flex: 0 0 auto; position: relative; }
.pos-av.ring::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--pos-orange); }
.pos-av.done { color: var(--pos-ink-3); }
.pos-av.lg { width: 72px; height: 72px; font-size: var(--t-xl); }

/* ---------- phone with a country code ---------- */
.pos-phone { display: flex; gap: 8px; }
.pos-phone .cc { flex: 0 0 92px; text-align: center; padding: 0 6px; }
.pos-phone input { flex: 1 1 auto; min-width: 0; }

/* ---------- home ---------- */
.pos-home { flex: 1 1 auto !important; display: flex; flex-direction: column; padding: var(--s3) 0 var(--s4); }
.pos-hello h1 { font-family: var(--pos-font-display); font-size: var(--t-2xl); font-weight: 700; letter-spacing: -.022em; margin: 0; line-height: 1.1; }
.pos-home .today { color: var(--pos-ink-2); font-weight: 400; font-size: var(--t-md); margin-top: 6px; }
.pos-home .today b { color: var(--pos-ink); font-weight: 600; }
.pos-doors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; width: 100%; margin-top: var(--s3); }
.pos-door { min-height: 132px; border-radius: var(--r-lg); background: var(--pos-surface-2); border: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: var(--s2); padding: 18px;
  cursor: pointer; position: relative; text-align: left; transition: background var(--m-fast), transform var(--m-fast) var(--ease); }
.pos-door:active { transform: scale(.97); background: var(--pos-surface-3); }
.pos-door svg { width: 30px; height: 30px; color: var(--pos-orange); }
.pos-door span { font-family: var(--pos-font-display); font-weight: 600; font-size: var(--t-md); letter-spacing: -.01em; line-height: 1.2; }
.pos-door .badge { position: absolute; top: 14px; right: 14px; min-width: 28px; height: 28px; padding: 0 9px; border-radius: var(--r-pill);
  background: var(--pos-orange-deep); color: #fff; font-weight: 700; font-size: var(--t-xs); display: grid; place-items: center; letter-spacing: 0; }
body.pos-mode.pos-dark .pos-door .badge { color: var(--pos-orange-ink); }
/* The first door is the one the desk exists for. */
.pos-door.main { background: var(--pos-orange); color: var(--pos-orange-ink); }
.pos-door.main svg { color: inherit; }
.pos-door.main span { font-weight: 700; font-size: 19px; }
.pos-door.main:active { background: var(--pos-orange); opacity: .85; }
.pos-home-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s5); margin-top: var(--s4); align-items: start; }
.pos-home h2, .pos-h2 { font-size: var(--t-lg); font-weight: 700; letter-spacing: -.012em; margin: 0 0 4px; }
.pos-home .more { display: flex; flex-direction: column; }
@media (max-width: 1000px) { .pos-doors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .pos-home-cols { grid-template-columns: 1fr; gap: var(--s4); } }
@media (max-width: 640px) { .pos-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pos-main { padding: 0 var(--s2) var(--s4); } .pos-top { padding-left: var(--s2); padding-right: var(--s2); } .pos-top .pos-clock span { display: none; } }

/* ---------- rows: the one list shape (time or icon · who · what is owed · chevron) ---------- */
.pos-row { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--pos-border);
  background: transparent; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.pos-row:last-child { border-bottom: 0; }
.pos-row:active { background: var(--pos-surface-2); }
.pos-row .tm { flex: 0 0 60px; font-size: var(--t-md); font-weight: 600; }
.pos-row .mn { flex: 1 1 auto; min-width: 0; }
.pos-row .mn b { display: block; font-weight: 600; font-size: var(--t-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-row .mn span { display: block; color: var(--pos-ink-2); font-size: var(--t-sm); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-row .rt { flex: 0 0 auto; text-align: right; font-size: var(--t-sm); color: var(--pos-ink-2); white-space: nowrap; }
.pos-row .rt.due { color: var(--pos-orange-text); font-weight: 600; }
.pos-row .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--pos-surface-2); display: grid; place-items: center; flex: 0 0 auto; color: var(--pos-ink); }
.pos-row .ic svg { width: 22px; height: 22px; }
.pos-row > svg.chev { width: 18px; height: 18px; color: var(--pos-ink-3); flex: 0 0 auto; opacity: .7; }

/* ---------- buttons: filled (the one thing to do), grey (the others), plain (the quiet ones) ---------- */
.pos-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--tap); padding: 0 20px;
  border-radius: var(--r-md); border: 0; background: var(--pos-surface-2); color: var(--pos-ink);
  font-weight: 600; font-size: var(--t-md); cursor: pointer; user-select: none; -webkit-user-select: none; white-space: nowrap;
  transition: transform var(--m-fast) var(--ease), background var(--m-fast), opacity var(--m-fast); }
.pos-btn:active { transform: scale(.975); background: var(--pos-surface-3); }
.pos-btn.primary { background: var(--pos-orange); color: var(--pos-orange-ink); font-weight: 700; font-size: 19px; }
.pos-btn.primary:active { background: var(--pos-orange); opacity: .82; }
.pos-btn.ghost { background: transparent; color: var(--pos-orange-text); font-weight: 500; }
.pos-btn.ghost:active { background: transparent; opacity: .5; }
.pos-btn.outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--pos-orange-35); color: var(--pos-orange-text); }
.pos-btn.soft { background: var(--pos-orange-12); color: var(--pos-orange-text); }
.pos-btn.lg { height: var(--tap-lg); font-size: var(--t-lg); border-radius: 16px; padding: 0 var(--s3); }
.pos-btn.lg.primary { font-size: var(--t-lg); }
.pos-btn.block { width: 100%; }
.pos-btn.quiet { background: transparent; color: var(--pos-ink-2); font-weight: 500; }
.pos-btn[disabled] { opacity: .35; pointer-events: none; }
.pos-btn svg { width: 20px; height: 20px; }
.pos-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pos-actions > .pos-btn { flex: 1 1 0; }

/* ---------- cards ---------- */
/* A card is a grouped block lying on the page: a fill, no outline, no shadow. */
.pos-card { background: var(--pos-surface-2); border: 0; border-radius: var(--r-lg); padding: var(--s3); }
.pos-stack > * + * { margin-top: var(--s2); }
.pos-card.tap { cursor: pointer; transition: transform var(--m-fast) var(--ease), background var(--m-fast), box-shadow var(--m-fast); }
.pos-card.tap:active { transform: scale(.98); background: var(--pos-surface-3); }
.pos-card.selected { box-shadow: inset 0 0 0 2px var(--pos-orange); background: var(--pos-orange-12); }
.pos-grid { display: grid; gap: 12px; }
.pos-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pos-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pos-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pos-grid.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .pos-grid.c4, .pos-grid.c5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pos-grid.c3, .pos-grid.c4, .pos-grid.c5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pos-grid.c2 { grid-template-columns: 1fr; } }

.pos-section { margin-top: var(--s4); }
.pos-section-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.pos-section-h h2 { font-size: var(--t-lg); font-weight: 700; letter-spacing: -.012em; color: var(--pos-ink); margin: 0; }
.pos-section-h .meta { font-size: var(--t-sm); color: var(--pos-ink-2); font-weight: 400; }

/* ---------- status: a word, and a small mark. Orange only when money or a person is waiting. ---------- */
.pos-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: var(--t-sm); white-space: nowrap; color: var(--pos-ink-2); }
.pos-status .g { font-size: 13px; line-height: 1; width: 16px; text-align: center; }
.pos-status.paid, .pos-status.in, .pos-status.done { color: var(--pos-ink-2); }
.pos-status.partial, .pos-status.warn { color: var(--pos-orange-text); font-weight: 600; }
.pos-status.unpaid { color: var(--pos-ink-2); }
.pos-status.cancel { color: var(--pos-ink-3); text-decoration: line-through; }
.pos-status.overdue { color: var(--pos-orange-text); font-weight: 700; }
.pos-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font-size: var(--t-xs); font-weight: 500;
  background: var(--pos-surface-2); color: var(--pos-ink-2); }
.pos-tag.on { background: var(--pos-orange-12); color: var(--pos-orange-text); }
.pos-card .pos-tag, .pos-bk.open .pos-tag { background: var(--pos-surface-3); }

/* ---------- booking list: rows with hairlines; the open one becomes a block ---------- */
.pos-bk { border-bottom: 1px solid var(--pos-border); transition: background var(--m-base) var(--ease); }
.pos-bk:last-of-type { border-bottom: 0; }
.pos-bk.open { background: var(--pos-surface-2); border-radius: var(--r-lg); border-bottom-color: transparent; margin: 8px calc(var(--s2) * -1); padding: 0 var(--s2); }
.pos-bk.cancelled .pos-bk-row { opacity: .5; }
.pos-bk-row { display: grid; grid-template-columns: 64px 44px minmax(0, 1fr) auto 18px; align-items: center; gap: 14px; padding: 12px 0; min-height: 76px; cursor: pointer; }
.pos-bk-row:active { opacity: .6; }
.pos-bk-time { font-family: var(--pos-font-display); font-size: var(--t-lg); font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.pos-bk-time small { display: block; font-size: var(--t-xs); color: var(--pos-ink-3); font-weight: 400; letter-spacing: 0; margin-top: 3px; }
.pos-bk-main { min-width: 0; }
.pos-bk-name { font-size: var(--t-md); font-weight: 600; letter-spacing: -.005em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-bk-sub { margin-top: 2px; color: var(--pos-ink-2); font-size: var(--t-sm); font-weight: 400; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pos-bk-sub .pax { color: inherit; font-weight: 400; }
.pos-bk-sub .pax::after { content: '·'; margin-left: 6px; color: var(--pos-ink-3); }
.pos-bk-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.pos-bk-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pos-bk-money { font-size: var(--t-md); font-weight: 600; letter-spacing: -.005em; }
.pos-bk-money.due { color: var(--pos-orange-text); }
.pos-bk-row > svg.chev { width: 18px; height: 18px; color: var(--pos-ink-3); opacity: .7; transition: transform var(--m-base) var(--ease); }
.pos-bk.open .pos-bk-row > svg.chev { transform: rotate(90deg); }
.pos-bk-body { border-top: 1px solid var(--pos-border); padding: var(--s3) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s4); animation: pos-expand var(--m-base) var(--ease); }
@keyframes pos-expand { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pos-kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 16px; font-size: var(--t-md); align-content: start; align-items: center; }
.pos-kv .k { color: var(--pos-ink-2); font-weight: 400; font-size: var(--t-sm); }
.pos-kv .v { font-weight: 500; word-break: break-word; }
.pos-kv .v.big { font-size: var(--t-xl); font-weight: 700; letter-spacing: -.015em; }
.pos-kv .v.big small { display: block; font-weight: 400; margin-top: 2px; letter-spacing: 0; }
/* A phone number is tapped to call, with wet hands: it is a control and gets a control's target. */
.pos-kv .v a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; color: var(--pos-orange-text) !important; text-decoration: none !important; font-weight: 500; }
.pos-bk-actions { display: flex; flex-direction: column; gap: 10px; }
.pos-bk-actions .row { display: flex; gap: 10px; }
.pos-bk-actions .row > .pos-btn { flex: 1; padding: 0 10px; }
.pos-bk.open .pos-btn:not(.primary):not(.soft):not(.ghost):not(.quiet) { background: var(--pos-surface); }
.pos-bk.open .pos-btn:not(.primary):not(.soft):not(.ghost):not(.quiet):active { background: var(--pos-surface-3); }
body.pos-mode.pos-dark .pos-bk.open .pos-btn:not(.primary):not(.soft):not(.ghost):not(.quiet) { background: var(--pos-surface-3); }
@media (max-width: 860px) { .pos-bk-body { grid-template-columns: 1fr; gap: var(--s3); } }
@media (max-width: 560px) { .pos-bk-row { grid-template-columns: 52px minmax(0, 1fr) auto; } .pos-bk-row .pos-av, .pos-bk-row > svg.chev { display: none; } }

/* day switcher on the bookings screen */
.pos-daynav { display: flex; gap: 8px; align-items: center; }
.pos-daynav .pos-chip { padding: 0 14px; }
.pos-daynav .pos-chip.arrow { width: 44px; padding: 0; justify-content: center; font-size: var(--t-lg); }

/* ---------- wizard ---------- */
/* Where you are in the booking: a line of words, the current one in ink. */
.pos-steps { display: flex; gap: 6px; align-items: center; margin: 0 0 var(--s3); flex-wrap: wrap; }
.pos-step { font-size: var(--t-sm); font-weight: 400; color: var(--pos-ink-3); display: inline-flex; align-items: center; gap: 6px; }
.pos-step + .pos-step::before { content: '›'; color: var(--pos-ink-3); opacity: .6; margin-right: 0; }
.pos-step.on { color: var(--pos-ink); font-weight: 600; }
.pos-step.done { color: var(--pos-ink-2); }
.pos-step i { display: none; }
.pos-question { font-family: var(--pos-font-display); font-size: var(--t-2xl); font-weight: 700; letter-spacing: -.022em; margin: 0 0 var(--s3); line-height: 1.12;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pos-question .pos-tag { font-family: var(--pos-font); letter-spacing: 0; height: 30px; padding: 0 12px; font-size: var(--t-sm); border-radius: 9px; }
.pos-service { min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; }
.pos-service .cat { display: none; }
.pos-service .nm { font-family: var(--pos-font-display); font-size: var(--t-lg); font-weight: 600; letter-spacing: -.012em; }
.pos-service .pr { font-size: var(--t-md); font-weight: 400; color: var(--pos-ink-2); margin-top: var(--s2); }
.pos-service .pr small { font-size: var(--t-sm); color: var(--pos-ink-3); font-weight: 400; margin-left: 2px; }
.pos-cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--s2); }
.pos-chip { height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 0; background: var(--pos-surface-2); color: var(--pos-ink);
  font-weight: 500; font-size: var(--t-sm); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.pos-chip.on { background: var(--pos-ink); color: var(--pos-bg); font-weight: 600; }
.pos-chip:active { background: var(--pos-surface-3); }
.pos-chip.on:active { background: var(--pos-ink); opacity: .8; }
.pos-chip.lg { height: var(--tap); font-size: var(--t-md); padding: 0 22px; }
.pos-chip svg { width: 18px; height: 18px; }
/* The iPadOS segmented control: a grey track, the choice is a white pill. */
.pos-seg { display: inline-flex; background: var(--pos-surface-2); border-radius: 12px; padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; }
.pos-seg button { height: 40px; min-width: 64px; padding: 0 16px; border-radius: 9px; border: 0; background: transparent; font-weight: 500; font-size: var(--t-sm); cursor: pointer; white-space: nowrap; }
.pos-seg button.on { background: var(--pos-bg); color: var(--pos-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(17, 17, 19, .12), 0 0 0 .5px rgba(17, 17, 19, .06); }
body.pos-mode.pos-dark .pos-seg button.on { background: #636366; box-shadow: none; }
#pos-sheet-host .pos-seg button.on { background: var(--pos-surface); }
.pos-card .pos-seg, .pos-bk.open .pos-seg { background: var(--pos-surface-3); }
.pos-time { min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 12px; border-radius: 16px; }
.pos-time .t { font-family: var(--pos-font-display); font-size: var(--t-xl); font-weight: 600; letter-spacing: -.015em; }
.pos-time .c { color: var(--pos-ink-2); font-size: var(--t-xs); font-weight: 400; }
.pos-time .i { color: var(--pos-ink-3); font-size: var(--t-xs); font-weight: 400; }
.pos-time.selected .t { color: var(--pos-orange-text); }
.pos-stepper { display: flex; align-items: center; justify-content: center; gap: var(--s5); margin: var(--s5) 0 var(--s2); }
.pos-stepper button { width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--pos-surface-2); font-size: 34px; font-weight: 300; cursor: pointer; line-height: 1; display: grid; place-items: center; padding-bottom: 4px; }
.pos-stepper button:active { background: var(--pos-surface-3); transform: scale(.94); }
.pos-stepper .n { font-family: var(--pos-font-display); font-size: 112px; font-weight: 700; letter-spacing: -.04em; min-width: 170px; text-align: center; line-height: 1; }
.pos-stepper-label { text-align: center; font-size: var(--t-md); font-weight: 400; color: var(--pos-ink-2); }
.pos-wizard-foot { position: sticky; bottom: 0; z-index: 2; padding: var(--s2) 0 var(--s1); margin-top: var(--s3); background: var(--pos-bg);
  box-shadow: 0 -18px 18px -6px var(--pos-bg); display: flex; gap: var(--s2); justify-content: space-between; align-items: center; }
.pos-wizard-foot .pos-btn.primary { min-width: 200px; }

/* ---------- forms ---------- */
.pos-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s2); }
.pos-field label { font-size: var(--t-xs); font-weight: 500; color: var(--pos-ink-2); }
.pos-input { height: var(--tap); border-radius: var(--r-sm); border: 0; box-shadow: inset 0 0 0 1px transparent; background: var(--pos-surface-2); padding: 0 16px;
  font-size: var(--t-md); font-weight: 400; color: var(--pos-ink); outline: none; width: 100%; font-family: inherit; -webkit-appearance: none; appearance: none; }
.pos-input:focus { box-shadow: inset 0 0 0 2px var(--pos-orange); background: var(--pos-bg); }
#pos-sheet-host .pos-input:focus { background: var(--pos-surface); }
.pos-card .pos-input, .pos-bk.open .pos-input { background: var(--pos-surface-3); }
textarea.pos-input { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; line-height: 1.4; }
.pos-input::placeholder { color: var(--pos-ink-3); font-weight: 400; opacity: 1; }
input[type="file"].pos-input { padding: 12px 16px; height: auto; min-height: var(--tap); font-size: var(--t-sm); }
.pos-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
@media (max-width: 640px) { .pos-form-row { grid-template-columns: 1fr; } }
.pos-search { position: relative; }
.pos-search .pos-input { padding-left: 46px; }
.pos-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--pos-ink-3); }
.pos-result { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: 12px 0; border-bottom: 1px solid var(--pos-border); cursor: pointer; min-height: 68px; }
.pos-result:last-child { border-bottom: 0; }
.pos-result:active { opacity: .6; }
.pos-result .n { font-size: var(--t-md); font-weight: 600; }
.pos-result .m { color: var(--pos-ink-2); font-size: var(--t-sm); font-weight: 400; margin-top: 2px; }
.pos-list { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.pos-select-list { display: flex; flex-direction: column; gap: 0; max-height: 340px; overflow: auto; border-radius: var(--r-md); background: var(--pos-surface-2); }
.pos-select-list button { text-align: left; min-height: 52px; padding: 8px 16px; border: 0; border-bottom: 1px solid var(--pos-border); background: transparent; font-size: var(--t-md); font-weight: 400; cursor: pointer; }
.pos-select-list button:last-child { border-bottom: 0; }
.pos-select-list button:active { background: var(--pos-surface-3); }
.pos-select-list button.on { color: var(--pos-orange-text); font-weight: 600; }

/* ---------- money ---------- */
.pos-money { font-family: var(--pos-font-display); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pos-money .cur { font-size: .4em; font-weight: 600; letter-spacing: 0; margin-left: .3em; color: var(--pos-ink-2); vertical-align: baseline; }
.pos-money.hero { font-size: var(--t-4xl); line-height: 1; }
.pos-money.big { font-size: var(--t-3xl); line-height: 1; }
.pos-money.accent { color: var(--pos-ink); }
.pos-money.accent .cur { color: var(--pos-ink-2); }
.pos-money.muted, .pos-money.muted .cur { color: var(--pos-ink-3); }
.pos-total-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; font-size: var(--t-md); font-weight: 400; color: var(--pos-ink-2); }
.pos-total-line b { font-weight: 500; color: var(--pos-ink); white-space: nowrap; }
.pos-total-line.strong { color: var(--pos-ink); font-weight: 600; font-size: var(--t-lg); border-top: 1px solid var(--pos-border); margin-top: 6px; padding-top: 14px; }
.pos-total-line.strong b { font-weight: 700; }
.pos-total-line.due, .pos-total-line.due b { color: var(--pos-orange-text); }

/* ---------- pay screen: the bill on the left as the ticket it will become, the answer on the right ---------- */
.pos-pay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s5); align-items: start; }
@media (max-width: 860px) { .pos-pay { grid-template-columns: 1fr; gap: var(--s3); } }
.pos-pay .pos-card { padding: var(--s3); }
.pos-pay .lbl { font-size: var(--t-sm); font-weight: 400; color: var(--pos-ink-2); margin-bottom: 6px; }
.pos-pay .pos-calc { background: transparent; padding: 0; }
.pos-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pos-keypad button { height: 58px; border-radius: var(--r-md); border: 0; background: var(--pos-surface-2); font-size: var(--t-xl); font-weight: 500; cursor: pointer; }
.pos-keypad button:active { background: var(--pos-surface-3); transform: scale(.97); }
.pos-keypad button.fn { color: var(--pos-ink-2); font-size: var(--t-lg); font-weight: 500; }
.pos-quick { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.pos-quick .pos-chip { height: 40px; padding: 0 16px; }
.pos-parts { display: flex; flex-direction: column; gap: 8px; margin-top: var(--s2); }
.pos-part { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 14px; border-radius: var(--r-sm); background: var(--pos-surface-3); font-weight: 500; font-size: var(--t-md); }
.pos-part small { color: var(--pos-ink-2); font-weight: 400; margin-left: 8px; }
.pos-part button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--pos-ink-2); font-weight: 400; font-size: var(--t-lg); cursor: pointer; border-radius: 50%; }
.pos-received { font-family: var(--pos-font-display); font-size: var(--t-3xl); font-weight: 700; letter-spacing: -.03em; min-height: 52px; display: flex; align-items: baseline; gap: 10px; line-height: 1.1; }
.pos-received .cur { font-size: var(--t-lg); color: var(--pos-ink-2); font-weight: 600; letter-spacing: 0; }
.pos-received.empty { color: var(--pos-ink-3); }
.pos-received.empty .cur { color: var(--pos-ink-3); }
.pos-calc .lbl { margin-top: var(--s1); }
.pos-calc-note { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--pos-surface-2); color: var(--pos-ink-2); font-size: var(--t-sm); font-weight: 500; }
.pos-calc-note b { font-family: var(--pos-font-display); font-size: var(--t-lg); font-weight: 700; letter-spacing: -.015em; }
.pos-calc-note.change { background: var(--pos-orange-12); color: var(--pos-orange-text); }
/* The three answers to "how did they pay". The first one is the sale; the other two are the exceptions, and they look like it. */
.pos-choices { display: grid; gap: 10px; margin-top: var(--s2); }
.pos-choice { display: grid; grid-template-columns: minmax(0, 1fr) 18px; align-items: center; column-gap: 12px; width: 100%; text-align: left; padding: 14px 18px; min-height: 76px; border-radius: 16px; border: 0;
  background: var(--pos-surface-2); color: var(--pos-ink); font: inherit; cursor: pointer; transition: transform var(--m-fast) var(--ease), background var(--m-fast); }
.pos-choice:active { transform: scale(.985); background: var(--pos-surface-3); }
.pos-choice b { display: block; font-size: var(--t-md); font-weight: 600; grid-column: 1; }
.pos-choice span { display: block; font-size: var(--t-sm); font-weight: 400; margin-top: 2px; color: var(--pos-ink-2); grid-column: 1; }
.pos-choice::after { content: ''; grid-column: 2; grid-row: 1 / span 2; width: 9px; height: 9px; border-right: 2px solid var(--pos-ink-3); border-top: 2px solid var(--pos-ink-3); transform: rotate(45deg); opacity: .7; justify-self: center; }
.pos-choice.primary { background: var(--pos-orange); color: var(--pos-orange-ink); min-height: 92px; }
.pos-choice.primary b { font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.pos-choice.primary span { color: inherit; opacity: .92; font-size: var(--t-sm); font-weight: 500; }
.pos-choice.primary::after { border-color: currentColor; opacity: .9; }
.pos-choice.primary:active { background: var(--pos-orange); opacity: .85; }
.pos-choice.primary svg { display: none; }
.pos-notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.pos-notes button { min-height: 76px; border-radius: var(--r-md); border: 0; background: var(--pos-surface-2); color: var(--pos-ink); font: inherit; font-size: var(--t-xl); font-weight: 600; cursor: pointer; letter-spacing: -.015em; }
.pos-notes button:active { background: var(--pos-surface-3); transform: scale(.96); }
.pos-notes button small { display: block; font-size: var(--t-xs); font-weight: 400; color: var(--pos-ink-2); margin-top: 0; letter-spacing: 0; }
.pos-notechips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; min-height: 44px; }
.pos-notechips .pos-chip { padding-right: 4px; font-variant-numeric: tabular-nums; cursor: default; height: 40px; }
.pos-notechips .pos-chip button { border: 0; background: transparent; color: var(--pos-ink-2); font: inherit; font-size: var(--t-lg); cursor: pointer; padding: 0 10px; min-height: 40px; min-width: 40px; }
.pos-notechips .muted { color: var(--pos-ink-3); font-size: var(--t-sm); font-weight: 400; }

/* ---------- THE TICKET: paper, drawn from the bytes the printer receives ---------- */
.pos-ticket { --tw: 320px; width: var(--tw); max-width: 100%; margin: 0 auto; background: var(--pos-paper); color: var(--pos-paper-ink); position: relative;
  font-family: var(--pos-font-mono); font-size: calc(var(--tw) / 31.2); line-height: 1.38; padding: 1.6em 1.2em 2.2em; box-shadow: var(--pos-shadow-paper);
  border-radius: 6px 6px 0 0; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
/* the torn edge where the cutter went through */
.pos-ticket::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 8px;
  background: linear-gradient(-45deg, transparent 5.5px, var(--pos-paper) 0) 0 0 / 11px 8px repeat-x, linear-gradient(45deg, transparent 5.5px, var(--pos-paper) 0) 0 0 / 11px 8px repeat-x; }
.pos-ticket .tl { white-space: pre; min-height: 1.38em; overflow: hidden; }
.pos-ticket .tl.c { text-align: center; }
.pos-ticket .tl.r { text-align: right; }
.pos-ticket .tl b { font-weight: 700; }
.pos-ticket .tl.big { font-size: 2em; line-height: 1.25; font-weight: 700; min-height: 1.25em; }
.pos-ticket .tq { display: grid; place-items: center; padding: .6em 0 .2em; }
.pos-ticket .tq > div { width: 12.5em; height: 12.5em; background: #fff; display: grid; place-items: center; }
.pos-ticket .tq svg { width: 12.5em; height: 12.5em; display: block; }
.pos-ticket .tq .nolib { font-family: var(--pos-font); font-size: .8em; word-break: break-all; color: #5F5E63; text-align: center; padding: 1em; border: 1px dashed rgba(17, 17, 19, .25); border-radius: 8px; width: 100%; height: 100%; display: grid; place-items: center; }
.pos-ticket.sm { --tw: 264px; }
/* the paper comes out of a slot, top first, the way it leaves the printer */
.pos-ticket-slot { position: relative; padding-top: 10px; overflow: hidden; padding-bottom: 14px; margin-bottom: -14px; padding-left: 28px; padding-right: 28px; margin-left: -28px; margin-right: -28px; }
.pos-ticket-slot::before { content: ''; position: absolute; left: 50%; top: 0; width: calc(320px + 28px); max-width: 100%; height: 10px; transform: translateX(-50%); border-radius: 5px;
  background: var(--pos-ink); opacity: .9; z-index: 2; }
body.pos-mode.pos-dark .pos-ticket-slot::before { background: #3A3A3C; opacity: 1; }
.pos-ticket-slot .pos-ticket { animation: pos-print 900ms var(--ease) both; transform-origin: top center; }
@keyframes pos-print { from { transform: translateY(-101%); } to { transform: translateY(0); } }

/* ---------- success: what was taken on the left, the ticket on the right ---------- */
.pos-success { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: var(--s6); align-items: start; padding: var(--s4) 0 var(--s3); }
.pos-success .what { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: var(--s3); }
.pos-success .ring { width: 56px; height: 56px; border-radius: 50%; background: var(--pos-orange); color: var(--pos-orange-ink); display: grid; place-items: center; animation: pos-pop var(--m-slow) var(--ease); margin-bottom: var(--s1); }
.pos-success .ring svg { width: 30px; height: 30px; stroke-dasharray: 60; stroke-dashoffset: 60; animation: pos-draw 420ms 160ms var(--ease) forwards; }
@keyframes pos-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes pos-draw { to { stroke-dashoffset: 0; } }
.pos-success h2 { font-family: var(--pos-font-display); font-size: var(--t-lg); font-weight: 600; letter-spacing: -.01em; margin: 0; color: var(--pos-ink-2); }
.pos-success .pos-money.big { font-size: 72px; letter-spacing: -.04em; }
.pos-success .line2 { font-size: var(--t-lg); font-weight: 600; color: var(--pos-ink); }
.pos-success .line2.due { color: var(--pos-orange-text); }
.pos-success .print { display: flex; align-items: center; gap: 10px; color: var(--pos-ink-2); font-weight: 400; font-size: var(--t-md); margin-top: var(--s2); min-height: 28px; }
.pos-success .print b { color: var(--pos-ink); font-weight: 600; }
.pos-success .hint { color: var(--pos-ink-2); font-size: var(--t-sm); max-width: 44ch; line-height: 1.4; }
.pos-success .pos-actions { width: 100%; max-width: 420px; margin-top: var(--s3); }
.pos-success .paper { display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
@media (max-width: 860px) { .pos-success { grid-template-columns: 1fr; gap: var(--s4); } .pos-success .what { align-items: center; text-align: center; padding-top: 0; } .pos-success .pos-actions { margin-left: auto; margin-right: auto; } }

/* ---------- sheets / modals ---------- */
#pos-sheet-host { position: fixed; inset: 0; z-index: 9000; display: none; font-family: var(--pos-font); color: var(--pos-ink); font-size: var(--t-md); line-height: 1.3; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
#pos-sheet-host.on { display: block; }
#pos-sheet-host .scrim { position: absolute; inset: 0; background: var(--pos-scrim); animation: pos-fade var(--m-base) both; }
@keyframes pos-fade { from { opacity: 0; } }
#pos-sheet-host .sheet { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(640px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto;
  background: var(--pos-surface); border-radius: 24px; box-shadow: var(--pos-shadow-lift); padding: var(--s3) var(--s3) calc(var(--s3) + env(safe-area-inset-bottom, 0px)); animation: pos-sheet var(--m-base) var(--ease) both; }
#pos-sheet-host .sheet.wide { width: min(920px, calc(100% - 32px)); }
#pos-sheet-host .sheet.narrow { width: min(460px, calc(100% - 32px)); }
@keyframes pos-sheet { from { opacity: 0; transform: translate(-50%, -47%) scale(.985); } }
.pos-sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s2); gap: var(--s2); min-height: 36px; }
.pos-sheet-h h3 { font-family: var(--pos-font-display); font-size: var(--t-xl); font-weight: 700; letter-spacing: -.018em; margin: 0; }
.pos-sheet-h .x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--pos-surface-2); color: var(--pos-ink-2) !important; font-size: 20px; line-height: 1; cursor: pointer; position: relative; flex: 0 0 auto; }
.pos-sheet-h .x::after { content: ''; position: absolute; inset: -6px; }   /* a 48px target around a 36px mark */
.pos-sheet-h .x:active { background: var(--pos-surface-3); }
.pos-sheet-b > p { color: var(--pos-ink-2); }

/* ---------- profile / pin ---------- */
.pos-who { text-align: center; padding-top: var(--s1); }
.pos-who h1 { font-family: var(--pos-font-display); font-size: var(--t-xl); font-weight: 700; letter-spacing: -.018em; margin: 0 0 var(--s3); }
.pos-who .people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.pos-who .person { border-radius: var(--r-lg); border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px 6px;
  transition: background var(--m-fast); }
.pos-who .person:active { background: var(--pos-surface-2); }
.pos-who .person .av { width: 68px; height: 68px; border-radius: 50%; background: var(--pos-surface-2); color: var(--pos-ink); display: grid; place-items: center; font-weight: 600; font-size: var(--t-xl); position: relative; }
.pos-who .person.on .av { background: var(--pos-orange); color: var(--pos-orange-ink); }
.pos-who .person.on .av::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--pos-orange); }
.pos-who .person b { font-size: var(--t-sm); font-weight: 500; text-transform: capitalize; }
.pos-who .person.on b { font-weight: 600; }
.pos-pin { display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
.pos-pin .ask { font-weight: 400; font-size: var(--t-sm); color: var(--pos-ink-2); }
.pos-pin .dots { display: flex; gap: 16px; height: 16px; margin: 4px 0 8px; }
.pos-pin .dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--pos-ink); background: transparent; transition: background var(--m-fast); }
.pos-pin .dots i.on { background: var(--pos-ink); }
.pos-pin.shake .dots { animation: pos-shake 320ms; }
@keyframes pos-shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.pos-pin .pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px 22px; }
.pos-pin .pad button { height: 76px; border-radius: 50%; border: 0; background: var(--pos-surface-2); font-size: 30px; font-weight: 400; cursor: pointer; }
.pos-pin .pad button:active { background: var(--pos-surface-3); transform: scale(.95); }
.pos-pin .pad button.fn { background: transparent; color: var(--pos-ink-2); font-size: var(--t-xl); }
.pos-pin .pad button.fn:active { background: var(--pos-surface-2); }
.pos-pin .msg { min-height: 22px; color: var(--pos-orange-text); font-weight: 500; font-size: var(--t-sm); }
.pos-who .links { margin-top: var(--s2); display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; border-top: 1px solid var(--pos-border); padding-top: var(--s2); }

/* ---------- packages ---------- */
.pos-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.pos-dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--pos-ink); }
.pos-dots i.used { background: var(--pos-ink); }

/* ---------- shop ---------- */
.pos-product { overflow: hidden; padding: 0; display: flex; flex-direction: column; background: transparent; border-radius: 0; }
.pos-product .ph { aspect-ratio: 1 / 1; background: var(--pos-surface-2); display: grid; place-items: center; border-radius: var(--r-lg); overflow: hidden; }
.pos-product .ph img { width: 100%; height: 100%; object-fit: cover; }
.pos-product .ph svg { width: 40px; height: 40px; color: var(--pos-ink-3); opacity: .7; }
.pos-product .in { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 2px; }
.pos-product .nm { font-weight: 600; font-size: var(--t-md); line-height: 1.25; }
.pos-product .pr { font-weight: 400; font-size: var(--t-md); color: var(--pos-ink-2); }
.pos-product .st { font-size: var(--t-xs); color: var(--pos-ink-3); font-weight: 400; margin-top: 2px; }
.pos-product.tap:active { background: transparent; opacity: .6; }
.pos-cart { position: sticky; top: var(--s2); }
.pos-cart-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--pos-border); }
.pos-cart-line .q { display: inline-flex; align-items: center; gap: 4px; }
.pos-cart-line .q button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--pos-surface-3); font-size: var(--t-lg); cursor: pointer; line-height: 1; }
.pos-cart-line .q button:active { transform: scale(.94); }
.pos-cart-line .q b { min-width: 30px; text-align: center; font-size: var(--t-md); font-weight: 600; }

/* ---------- figures: a label, a number. In a row, divided by hairlines — not a wall of boxes. ---------- */
.pos-metric { padding: 0 var(--s3) 0 0; background: transparent; border-radius: 0; border-right: 1px solid var(--pos-border); }
.pos-grid > .pos-metric:last-child, .pos-grid.c4 > .pos-metric:nth-child(4n), .pos-grid.c3 > .pos-metric:nth-child(3n) { border-right: 0; }
.pos-metric .l { font-size: var(--t-sm); font-weight: 400; color: var(--pos-ink-2); }
.pos-metric .v { font-family: var(--pos-font-display); font-size: var(--t-xl); font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.pos-metric .v.accent { color: var(--pos-ink); }
.pos-grid:has(> .pos-metric) { row-gap: var(--s3); column-gap: var(--s3); padding: var(--s1) 0 var(--s2); }
.pos-bar { height: 6px; border-radius: var(--r-pill); background: var(--pos-surface-3); overflow: hidden; margin-top: 8px; }
.pos-bar i { display: block; height: 100%; background: var(--pos-ink); border-radius: var(--r-pill); }

/* ---------- a line of money taken ---------- */
.pos-tx { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: var(--s2); align-items: center; padding: 12px 0; border-bottom: 1px solid var(--pos-border); cursor: pointer; min-height: 68px; }
.pos-tx:last-child { border-bottom: 0; }
.pos-tx:active { opacity: .6; }
.pos-tx .d { font-weight: 600; font-size: var(--t-md); }
.pos-tx .d small { display: block; color: var(--pos-ink-3); font-size: var(--t-xs); font-weight: 400; margin-top: 2px; }
.pos-tx .w { min-width: 0; }
.pos-tx .w b { display: block; font-size: var(--t-md); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-tx .w span { color: var(--pos-ink-2); font-size: var(--t-sm); font-weight: 400; }
.pos-tx .a { font-weight: 600; font-size: var(--t-md); white-space: nowrap; text-align: right; }
.pos-tx .a small { display: block; }
@media (max-width: 760px) { .pos-tx { grid-template-columns: 84px minmax(0, 1fr) auto; } .pos-tx .s { display: none; } }

/* ---------- empty states: say it once, quietly ---------- */
.pos-empty { text-align: center; padding: var(--s8) var(--s3); color: var(--pos-ink-2); }
.pos-empty svg { width: 40px; height: 40px; color: var(--pos-ink-3); opacity: .6; }
.pos-empty h3 { font-size: var(--t-lg); font-weight: 600; letter-spacing: -.01em; color: var(--pos-ink); margin: var(--s2) 0 4px; }
.pos-empty p { margin: 0; font-weight: 400; font-size: var(--t-md); }
.pos-skel { border-radius: var(--r-md); background: linear-gradient(90deg, var(--pos-surface-2) 25%, var(--pos-surface-3) 50%, var(--pos-surface-2) 75%); background-size: 200% 100%; animation: pos-skel 1.2s infinite; height: 68px; margin-bottom: 10px; }
@keyframes pos-skel { to { background-position: -200% 0; } }

/* ---------- toasts ---------- */
#pos-toasts { position: fixed; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); z-index: 9500; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; font-family: var(--pos-font); }
.pos-toast { pointer-events: auto; background: rgba(28, 28, 30, .92); color: #fff; padding: 12px 20px; border-radius: var(--r-pill); font-weight: 500; font-size: var(--t-sm);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 8px 28px rgba(0, 0, 0, .22); animation: pos-toast var(--m-base) var(--ease); max-width: 90vw; }
.pos-toast.warn { background: var(--pos-orange-deep); color: #fff; }
body.pos-mode.pos-dark .pos-toast { background: rgba(72, 72, 74, .95); }
body.pos-mode.pos-dark .pos-toast.warn { color: var(--pos-orange-ink); }
@keyframes pos-toast { from { opacity: 0; transform: translateY(10px); } }

/* ---------- signature ---------- */
.pos-sig { border: 0; border-radius: var(--r-md); background: var(--pos-surface-3); touch-action: none; width: 100%; height: 220px; display: block;
  background-image: linear-gradient(var(--pos-border-strong), var(--pos-border-strong)); background-size: calc(100% - 48px) 1px; background-position: 24px calc(100% - 44px); background-repeat: no-repeat; }
.pos-waiver-text { max-height: 200px; overflow: auto; padding: 0 0 var(--s2); background: transparent; border-radius: 0; font-size: var(--t-sm); line-height: 1.5; color: var(--pos-ink-2); border-bottom: 1px solid var(--pos-border); margin-bottom: var(--s2); }

/* ---------- the printer sheet ---------- */
.pos-printer-state { display: flex; gap: 14px; align-items: flex-start; padding: var(--s2); border-radius: var(--r-lg); background: var(--pos-surface-2); margin-bottom: var(--s2); }
.pos-printer-state .pos-printer-dot { margin-top: 6px; width: 12px; height: 12px; }
.pos-printer-state b { display: block; font-size: var(--t-md); font-weight: 600; }
.pos-printer-state span { display: block; color: var(--pos-ink-2); font-size: var(--t-sm); margin-top: 2px; line-height: 1.4; }

/* ---------- RTL ---------- */
body.pos-mode[dir="rtl"] .pos-search .pos-input { padding-left: 16px; padding-right: 46px; }
body.pos-mode[dir="rtl"] .pos-search svg { left: auto; right: 14px; }
body.pos-mode[dir="rtl"] .pos-bk-side { align-items: flex-start; }
body.pos-mode[dir="rtl"] .pos-money .cur { margin-left: 0; margin-right: .3em; }
body.pos-mode[dir="rtl"] .pos-back { padding: 0 0 0 12px; margin-left: 0; margin-right: -6px; }
body.pos-mode[dir="rtl"] .pos-back svg, body.pos-mode[dir="rtl"] svg.chev { transform: scaleX(-1); }
body.pos-mode[dir="rtl"] .pos-bk.open .pos-bk-row > svg.chev { transform: rotate(90deg); }
body.pos-mode[dir="rtl"] .pos-row, body.pos-mode[dir="rtl"] .pos-door, body.pos-mode[dir="rtl"] .pos-choice, body.pos-mode[dir="rtl"] .pos-profile, body.pos-mode[dir="rtl"] .pos-select-list button { text-align: right; }
body.pos-mode[dir="rtl"] .pos-row .rt, body.pos-mode[dir="rtl"] .pos-tx .a { text-align: left; }
body.pos-mode[dir="rtl"] .pos-door .badge { right: auto; left: 14px; }
body.pos-mode[dir="rtl"] .pos-choice::after { transform: rotate(-135deg); }
body.pos-mode[dir="rtl"] .pos-step + .pos-step::before { content: '‹'; }
body.pos-mode[dir="rtl"] .pos-metric { padding: 0 0 0 var(--s3); border-right: 0; border-left: 1px solid var(--pos-border); }
body.pos-mode[dir="rtl"] .pos-success .what { align-items: flex-start; }
body.pos-mode[dir="rtl"] .pos-money, body.pos-mode[dir="rtl"] .pos-bk-money, body.pos-mode[dir="rtl"] .pos-total-line b, body.pos-mode[dir="rtl"] .pos-metric .v, body.pos-mode[dir="rtl"] .pos-tx .a, body.pos-mode[dir="rtl"] .pos-bk-time, body.pos-mode[dir="rtl"] .pos-kv .v.big, body.pos-mode[dir="rtl"] .pos-row .tm, body.pos-mode[dir="rtl"] .pos-row .rt { direction: ltr; unicode-bidi: isolate; }
.pos-ticket, .pos-ticket * { direction: ltr; }

/* Live rental countdown: the number is the thing you read across a counter. */
.pos-count { font-family: var(--pos-font-display); font-size: var(--t-4xl); font-weight: 700; text-align: left; letter-spacing: -.03em; padding: var(--s2) 0 0; color: var(--pos-ink); font-variant-numeric: tabular-nums; line-height: 1; }
.pos-count.late { color: var(--pos-orange-text); }
.pos-countlabel { text-align: left; font-size: var(--t-sm); font-weight: 400; color: var(--pos-ink-2); margin: 4px 0 12px; }
.pos-prog { height: 6px; border-radius: 3px; background: var(--pos-surface-3); overflow: hidden; margin-bottom: var(--s2); }
.pos-prog i { display: block; height: 100%; background: var(--pos-ink); border-radius: 3px; transition: width 1s linear; }
.pos-prog i.late { background: var(--pos-orange); }

/* The first question of a booking is two doors, nothing else. */
.pos-doors2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: var(--s2); }
.pos-doors2 .pos-btn { height: 148px; font-size: var(--t-lg); font-weight: 600; border-radius: var(--r-lg); flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 20px; text-align: left; white-space: normal; }
.pos-doors2 .pos-btn.primary { font-size: 22px; font-weight: 700; }
.pos-doors2 .pos-btn svg { width: 30px; height: 30px; }
@media (max-width: 820px) { .pos-doors2 { grid-template-columns: 1fr; } .pos-doors2 .pos-btn { height: 104px; } }

/* One row per product option: what it is called, how many are in the box. */
.pos-var-row { display: grid; grid-template-columns: 1fr 96px var(--tap); gap: 8px; margin-bottom: 8px; align-items: center; }
.pos-var-row .pos-btn { width: var(--tap); padding: 0; font-size: 20px; }

@media (prefers-reduced-motion: reduce) {
  #pos-root *, #pos-sheet-host *, #pos-toasts * { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ---------- the bill on the PAY screen: one number and its lines, straight on the page ---------- */
.pos-bill { padding: var(--s1) 0 0; }
.pos-bill .lbl { font-size: var(--t-md); }
.pos-bill-lines { margin-top: var(--s3); border-top: 1px solid var(--pos-border); padding-top: 6px; }
.pos-ticket-slot.still .pos-ticket { animation: none; }

/* ---------- review fixes, 14 Nov ---------- */
.pos-field .pos-seg { align-self: flex-start; }
.pos-service .pr small { margin-left: 6px; }
.pos-keypad { gap: 8px; }
.pos-keypad button { height: 50px; }
.pos-metric .l::first-letter { text-transform: uppercase; }
/* A plain button lying on a grey card needs its own ground, or it reads as text. */
.pos-card:not(.pos-calc) .pos-btn:not(.primary):not(.soft):not(.ghost):not(.quiet) { background: var(--pos-surface); }
.pos-card:not(.pos-calc) .pos-btn:not(.primary):not(.soft):not(.ghost):not(.quiet):active { background: var(--pos-surface-3); }
body.pos-mode.pos-dark .pos-card:not(.pos-calc) .pos-btn:not(.primary):not(.soft):not(.ghost):not(.quiet) { background: var(--pos-surface-3); }
body.pos-mode .pos-calc .pos-actions > .pos-btn:not(.primary):not(.soft):not(.ghost):not(.quiet) { background: var(--pos-surface-2); }
