/* STORE OS design system: System Blue actions, Midnight text, Cloud pages, white cards.
   8 px spacing rhythm, 16 px body text, 10 px control radius, 16 px card radius. */

@font-face { font-family: 'DejaVu Sans'; src: url('/assets/fonts/DejaVuSans.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DejaVu Sans'; src: url('/assets/fonts/DejaVuSans-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'DejaVu Sans Condensed'; src: url('/assets/fonts/DejaVuSansCondensed.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DejaVu Sans Condensed'; src: url('/assets/fonts/DejaVuSansCondensed-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }
/* The name, job and city on the badges STORE OS draws (Inter Display, SIL OFL: fonts/Inter-LICENSE.txt). */
@font-face { font-family: 'Badge Display'; src: url('/assets/fonts/InterDisplay-ExtraBold-badge.woff') format('woff'); font-weight: 800; font-display: block; }
@font-face { font-family: 'Badge Display'; src: url('/assets/fonts/InterDisplay-SemiBold-badge.woff') format('woff'); font-weight: 600; font-display: block; }

:root {
  --blue: #0057FF;
  --blue-hover: #0047D6;
  --blue-press: #003BB3;
  --blue-soft: #E8F0FF;
  --navy: #07152D;
  --cyan: #00C8E8;
  --cloud: #F3F7FC;
  --slate: #52647B;
  --border: #E1E8F2;
  --border-strong: #C9D4E3;
  --white: #FFFFFF;
  --green: #0F7A4F;
  --green-soft: #E3F5EC;
  --amber: #8A5300;
  --amber-soft: #FFF3DC;
  --red: #C42127;
  --red-soft: #FDECEC;
  --focus: #07152D;
  --shadow: 0 1px 2px rgba(7, 21, 45, 0.06), 0 4px 16px rgba(7, 21, 45, 0.06);
  --shadow-lg: 0 12px 40px rgba(7, 21, 45, 0.18);
  --r-control: 10px;
  --r-card: 16px;
  --font: 'DejaVu Sans', Arial, sans-serif;
  --nav-w: 96px;
  --top-h: 72px;
  /* Glass surfaces: frosted, translucent panels over a soft ambient backdrop (the nav, the top bar,
     the goals dock, cards and tiles) — same palette, just lit like glass instead of flat paper. */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.86);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: 20px;
  --glass-shine: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 40%);
  --glow-blue: 0 8px 28px rgba(0, 87, 255, 0.16);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font: 16px/24px var(--font);
  color: var(--navy);
  background:
    radial-gradient(1100px 620px at 14% -8%, rgba(0, 200, 232, 0.16), transparent 60%),
    radial-gradient(1200px 760px at 108% 4%, rgba(0, 87, 255, 0.14), transparent 55%),
    radial-gradient(900px 700px at 50% 112%, rgba(124, 58, 237, 0.08), transparent 60%),
    var(--cloud);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; color: var(--navy); font-weight: 700; }
h1 { font-size: 28px; line-height: 36px; }
h2 { font-size: 22px; line-height: 30px; }
h3 { font-size: 18px; line-height: 26px; }
p { margin: 0; }
.muted { color: var(--slate); }
.small { font-size: 14px; line-height: 20px; }
.tiny { font-size: 12px; line-height: 16px; }
.strong { font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: var(--nav-w) 1fr; grid-template-rows: var(--top-h) 1fr; height: 100vh; height: 100dvh; min-width: 0; overflow: hidden; }
.nav { grid-row: 1 / span 2; background: var(--glass-bg-strong); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3); backdrop-filter: blur(var(--glass-blur)) saturate(1.3); border-right: 1px solid var(--glass-border); box-shadow: 1px 0 0 rgba(7, 21, 45, 0.03), 8px 0 32px rgba(7, 21, 45, 0.05); display: flex; flex-direction: column; align-items: stretch; padding: 12px 8px; gap: 4px; overflow-y: auto; position: relative; z-index: 5; }
.nav-brand { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0 12px; text-decoration: none; color: var(--navy); }
.nav-brand img { width: 44px; height: 44px; }
.nav-brand span { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: 0.04em; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; text-decoration: none; color: var(--slate); font-size: 12px; line-height: 16px; font-weight: 700; border: 0; background: none; cursor: pointer; text-align: center; position: relative; }
/* Each item's icon sits on its own colour tile, white on a gradient, like an app icon (a bare icon gets the navy tile). */
.nav .nav-item { padding: 8px 4px; gap: 3px; }
.nav-ico, .nav-item > svg { --t1: #2B7BFF; --t2: #0046D9; position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; color: var(--white); background: linear-gradient(145deg, var(--t1) 0%, var(--t2) 100%); box-shadow: 0 2px 6px rgba(7, 21, 45, 0.16), 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35); overflow: hidden; transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease; }
/* The "glass shielding": a glossy highlight laid over the top half of every icon tile, like light on curved glass. Same footprint as before (it must still fit a short screen's nav), just lit differently. */
.nav-ico::before, .nav-item > svg::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(165deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.08) 42%, rgba(255, 255, 255, 0) 60%); pointer-events: none; }
.nav-item > svg { --t1: #3B5BA9; --t2: #07152D; padding: 8px; box-sizing: border-box; }
.nav-ico svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12)); }
.nav-ico-sunset { --t1: #FF8A5B; --t2: #F0415F; }
.nav-ico-green { --t1: #34D399; --t2: #059669; }
.nav-ico-amber { --t1: #FBBF24; --t2: #EA580C; }
.nav-ico-violet { --t1: #A78BFA; --t2: #6D28D9; }
.nav-ico-teal { --t1: #2DD4BF; --t2: #0D9488; }
.nav-ico-sky { --t1: #38BDF8; --t2: #0369A1; }
.nav-ico-blue { --t1: #2B7BFF; --t2: #0046D9; }
.nav-ico-emerald { --t1: #4ADE80; --t2: #15803D; }
.nav-ico-pink { --t1: #F472B6; --t2: #BE185D; }
.nav-ico-indigo { --t1: #818CF8; --t2: #4338CA; }
.nav-ico-slate { --t1: #94A3B8; --t2: #475569; }
.nav-ico-navy { --t1: #3B5BA9; --t2: #07152D; }
.nav-item:hover { background: var(--cloud); color: var(--navy); }
.nav-item:hover .nav-ico, .nav-item:hover > svg { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(7, 21, 45, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.nav-item[aria-current='page'] { background: var(--blue-soft); color: var(--blue); }
.nav-item[aria-current='page'] .nav-ico, .nav-item[aria-current='page'] > svg { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--blue), 0 4px 10px rgba(0, 87, 255, 0.25); }
.nav-item[aria-current='page']::before { content: ''; position: absolute; left: -8px; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--blue); }
.nav-spacer { flex: 1; }
/* STORE OS mark and copyright, bottom left. */
.nav-legal { position: sticky; bottom: -12px; display: flex; flex-direction: column; align-items: center; gap: 1px; margin: 8px -8px -12px; padding: 8px 4px 10px; border-top: 1px solid var(--border); background: var(--white); color: var(--slate); font-size: 10px; line-height: 13px; text-align: center; }
.nav-legal img { width: 22px; height: 22px; margin-bottom: 3px; }
.nav-legal .nl-name { font-weight: 800; letter-spacing: 0.06em; color: var(--navy); }
.legal-foot { position: fixed; left: 16px; bottom: 12px; display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--slate); pointer-events: none; }
.legal-foot img { width: 20px; height: 20px; }
.legal-foot strong { color: var(--navy); letter-spacing: 0.04em; }
@media print { .legal-foot, .nav-legal { display: none; } }
@media (max-width: 640px) { .legal-foot { position: static; justify-content: center; padding: 12px 16px 16px; } }
.top { display: flex; align-items: center; gap: 16px; padding: 0 24px; background: var(--glass-bg); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3); backdrop-filter: blur(var(--glass-blur)) saturate(1.3); border-bottom: 1px solid var(--glass-border); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 24px rgba(7, 21, 45, 0.04); min-width: 0; position: relative; z-index: 4; }
.top-store { display: flex; flex-direction: column; min-width: 0; }
.top-store .biz { font-size: 12px; line-height: 16px; color: var(--slate); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.top-store .loc { font-weight: 700; white-space: nowrap; }
.top-search { flex: 1; max-width: 640px; position: relative; }
.top-user { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.main { overflow-y: auto; padding: 24px; min-width: 0; min-height: 0; }
.page { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin-right: auto; }
.row { display: flex; align-items: center; gap: 8px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.grow { flex: 1; min-width: 0; }
/* Icons default to 20px and never stretch; specific rules below resize them. */
.svg-ic { width: 20px; height: 20px; flex: none; }

/* ---------- surfaces ---------- */
.card { position: relative; background: var(--glass-bg-strong); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border: 1px solid var(--glass-border); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.card-tight { padding: 16px; }
.card h2, .card h3 { margin-bottom: 8px; }
.divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: var(--r-control); border: 1px solid transparent; font-weight: 700; font-size: 16px; line-height: 20px; cursor: pointer; text-decoration: none; white-space: nowrap; user-select: none; transition: background 0.12s, border-color 0.12s, color 0.12s; }
.btn svg { width: 20px; height: 20px; flex: none; }
/* West Coast Wireless blues: the brush-logo blue with a little light on top, navy for the quiet ones. */
.btn-primary { background: linear-gradient(180deg, #2B7BFF 0%, var(--blue) 48%, #0046D9 100%); color: var(--white); box-shadow: 0 1px 2px rgba(0, 70, 217, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.btn-primary:hover { background: linear-gradient(180deg, #1F6EF2 0%, var(--blue-hover) 48%, #003BB3 100%); }
.btn-primary:active { background: var(--blue-press); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: #B9CDF3; box-shadow: 0 1px 2px rgba(7, 21, 45, 0.05); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); background: #F5F9FF; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--blue-soft); color: var(--blue); }
.btn-danger { background: var(--white); color: var(--red); border-color: #F2C4C6; }
.btn-danger:hover { background: var(--red-soft); }
.btn-lg { min-height: 56px; font-size: 18px; padding: 14px 24px; }
.btn-xl { min-height: 72px; font-size: 22px; padding: 16px 28px; border-radius: 14px; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn-block { width: 100%; }
/* Walk-in uses the Easy Buy colors: a gradient used nowhere else, white bold type, larger than Scan ID. */
.btn.btn-walkin { background: linear-gradient(135deg, #FF7A00 0%, #FF2D95 50%, #7B2CFF 100%); color: #fff; border-color: transparent; min-height: 64px; padding: 10px 22px; font-size: 20px; font-weight: 800; letter-spacing: 0.02em; border-radius: 16px; box-shadow: 0 6px 18px rgba(255, 45, 149, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.btn.btn-walkin:hover { background: linear-gradient(135deg, #FF7A00 0%, #FF2D95 50%, #7B2CFF 100%); filter: brightness(1.06); color: #fff; border-color: transparent; }
.btn.btn-walkin:active { filter: none; transform: translateY(1px); }
.btn.btn-walkin svg { width: 26px; height: 26px; }
.btn.btn-walkin.walk-in-big { width: 100%; min-height: 72px; font-size: 22px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-control); border: 1px solid var(--border-strong); background: var(--white); cursor: pointer; color: var(--navy); flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { border-color: var(--navy); }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--navy); }
.field .hint { font-size: 13px; line-height: 18px; color: var(--slate); font-weight: 400; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-control); background: var(--white); color: var(--navy); }
.textarea { min-height: 88px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); outline: 3px solid rgba(0, 87, 255, 0.18); outline-offset: 0; }
.input-lg { min-height: 56px; font-size: 18px; }
.input-money { font-variant-numeric: tabular-nums; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--blue); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.error-text { color: var(--red); font-size: 14px; line-height: 20px; font-weight: 700; }

/* ---------- search ---------- */
.search { position: relative; }
.search > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--slate); pointer-events: none; }
.search .input { padding-left: 44px; border-radius: 999px; }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-lg); max-height: 70vh; overflow-y: auto; z-index: 40; padding: 8px; }
.search-hit { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 0; background: none; cursor: pointer; }
.search-hit:hover, .search-hit[aria-selected='true'] { background: var(--cloud); }
.search-hit .t { font-weight: 700; }
.search-hit .s { font-size: 14px; line-height: 20px; color: var(--slate); }

/* ---------- badges & status ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 13px; line-height: 20px; font-weight: 700; background: var(--cloud); color: var(--navy); border: 1px solid var(--border); white-space: nowrap; }
.badge svg { width: 14px; height: 14px; }
.badge-blue { background: var(--blue-soft); color: var(--blue); border-color: #C9DAFF; }
.badge-green { background: var(--green-soft); color: var(--green); border-color: #BFE6D2; }
.badge-amber { background: var(--amber-soft); color: var(--amber); border-color: #F4D9A6; }
.badge-red { background: var(--red-soft); color: var(--red); border-color: #F2C4C6; }

/* ---------- cost (red) and profit (green) bubbles, the same everywhere ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 13px; line-height: 20px; font-weight: 700; border: 1px solid transparent; white-space: nowrap; vertical-align: middle; font-variant-numeric: tabular-nums; }
.pill .pill-k { font-size: 11px; line-height: 16px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; }
.pill-cost { background: var(--red-soft); color: var(--red); border-color: #F2C4C6; }
.pill-profit { background: var(--green-soft); color: var(--green); border-color: #BFE6D2; }
.pill-lg { font-size: 15px; line-height: 24px; padding: 4px 14px; gap: 8px; }
.pill-lg .pill-k { font-size: 12px; line-height: 18px; }
.pill + .pill { margin-left: 6px; }
.list-row .s .pill, .goals-detail-row .pill { margin-top: 2px; }
.pill-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pill-row .pill + .pill { margin-left: 0; }
/* A stat tile that holds a cost (red) or a profit (green). */
.stat.stat-cost { background: var(--red-soft); }
.stat.stat-cost .k, .stat.stat-cost .v { color: var(--red); }
.stat.stat-profit { background: var(--green-soft); }
.stat.stat-profit .k, .stat.stat-profit .v { color: var(--green); }
/* The same colors on the daily close-out's profit and loss (black on the receipt printer, which has no color). */
.receipt .rl.dr-cost span:last-child { color: var(--red); font-weight: 700; }
.receipt .rl.dr-profit span:last-child { color: var(--green); font-weight: 700; }
.receipt .rl.dr-loss span:last-child { color: var(--red); font-weight: 700; }

/* ---------- home ---------- */
.tasks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.task { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 16px; min-height: 132px; padding: 20px; border-radius: var(--r-card); border: 1px solid var(--glass-border); background: var(--glass-bg-strong); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); color: var(--navy); text-decoration: none; cursor: pointer; text-align: left; box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.55); transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.15s ease, border-color 0.12s; }
.task::before { content: ''; position: absolute; inset: 0; background: var(--glass-shine); pointer-events: none; }
.task:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--glow-blue), var(--shadow); }
.task:active { transform: scale(0.985); }
.task .ic { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue); }
.task .ic svg { width: 28px; height: 28px; }
.task .label { font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: 0.01em; }
.task .sub { font-size: 14px; line-height: 20px; color: var(--slate); }
.task.primary { background: linear-gradient(155deg, #2B7BFF 0%, var(--blue) 55%, #0040C2 100%); border-color: var(--blue); color: var(--white); }
.task.primary .ic { background: rgba(255, 255, 255, 0.16); color: var(--white); }
.task.primary .sub { color: rgba(255, 255, 255, 0.85); }
.task .pic-box { width: 76px; height: 76px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #F3F7FC, #E3EDFF); flex: none; }
.task.primary .pic-box { background: #fff; }
.task .soon { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--slate); background: var(--cloud); border-radius: 999px; padding: 2px 8px; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--navy); min-height: 104px; }
.tile .k { font-size: 14px; line-height: 20px; color: var(--slate); font-weight: 700; }
.tile .v { font-size: 28px; line-height: 36px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile .n { font-size: 13px; line-height: 18px; color: var(--slate); }
.tile .tile-money { margin-top: auto; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
a.tile:hover { border-color: var(--blue); }
.alerts { display: flex; flex-direction: column; gap: 8px; }
.alert { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--border); text-decoration: none; color: var(--navy); font-weight: 700; }
.alert svg { width: 22px; height: 22px; flex: none; }
.alert .go { margin-left: auto; color: var(--slate); }
.alert.warning { border-left: 6px solid #E3A33B; }
.alert.critical { border-left: 6px solid var(--red); }
.alert.info { border-left: 6px solid var(--blue); }
.alert.good { border-left: 6px solid var(--green); }

/* ---------- lists ---------- */
.list { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--navy); background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; cursor: pointer; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: #F8FAFE; }
.list-row .main-col { flex: 1; min-width: 0; }
.list-row .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .s { font-size: 14px; line-height: 20px; color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row > .svg-ic { color: var(--slate); }
.list-head { display: flex; gap: 16px; padding: 10px 16px; font-size: 13px; line-height: 18px; color: var(--slate); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: var(--cloud); border-bottom: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 13px; line-height: 18px; color: var(--slate); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--cloud); }
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: #F8FAFE; }
/* Reports → Summary → Daily records: the cash and card columns stand out, wholesale's are tinted, the total is bold. */
.dr-scroll { overflow-x: auto; }
.dr-table th, .dr-table td { white-space: nowrap; padding: 8px 10px; }
.dr-table .dr-cash { color: var(--green); }
.dr-table .dr-card { color: var(--blue); }
.dr-table th.dr-ws { background: #EEF4FF; color: #2E4A80; }
.dr-table td.dr-ws { background: #F7FAFF; }
.dr-table tr.dr-total td { font-weight: 800; background: var(--cloud); border-top: 2px solid var(--border-strong); }
/* Settings → Sale menu: each tile with its picture and name. */
.sm-edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sm-edit { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--white); }
.sm-edit-pic { display: flex; align-items: center; justify-content: center; height: 120px; border-radius: 10px; background: var(--cloud); overflow: hidden; }
.sm-edit-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* The goals bar lists: tick rows, then print stickers or the list, edit phones or add them to inventory. */
.goals-pick-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; margin: 0 0 8px; background: var(--cloud); border-radius: 10px; }
.goals-detail-pick { display: flex; align-items: center; }
.goals-detail-row.goals-detail-picked { background: #EEF4FF; }
/* EASY BUY: a big, colorful button that can't be missed, and the sheet of phones behind it. */
.easy-buy-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 8px 22px; border: 0; border-radius: 16px; cursor: pointer; color: #fff; background: linear-gradient(135deg, #FF7A00 0%, #FF2D95 50%, #7B2CFF 100%); box-shadow: 0 6px 18px rgba(255, 45, 149, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.easy-buy-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.easy-buy-btn:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(255, 45, 149, 0.35); }
.easy-buy-btn svg { width: 26px; height: 26px; }
.easy-buy-btn .eb-t { font-size: 20px; line-height: 24px; font-weight: 900; letter-spacing: 0.06em; }
.easy-buy-btn .eb-s { font-size: 12px; line-height: 14px; font-weight: 700; opacity: 0.95; }
.easy-buy-btn.easy-buy-compact { flex-direction: row; gap: 10px; min-height: 48px; padding: 6px 18px; }
.easy-buy-btn.easy-buy-compact .eb-s { display: none; }
.easy-buy-btn.easy-buy-compact .eb-t { font-size: 17px; }
.eb-paste { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.eb-paste .input { flex: 1 1 320px; }
.eb-scroll { overflow-x: auto; }
.eb-sheet th, .eb-sheet td { padding: 6px 8px; vertical-align: top; white-space: nowrap; }
.eb-sheet td .input, .eb-sheet td .select { min-width: 110px; }
.eb-sheet td:nth-child(2) .input { min-width: 180px; }
.eb-sheet td:nth-child(3) .input { min-width: 170px; }
.eb-sheet .eb-n { width: 36px; text-align: center; font-weight: 800; color: var(--slate); }
.eb-sheet tr.eb-row-on .eb-n { color: var(--blue); }
.eb-sheet .eb-go { flex-wrap: nowrap; gap: 4px; }
.eb-sheet .eb-go .chip { padding: 4px 10px; min-height: 32px; font-size: 13px; }
/* Day by day on paper: a plain table. */
.dbd-print h1 { font-size: 20px; line-height: 26px; margin: 0 0 4px; }
.dbd-print p { margin: 0 0 10px; color: #333; }
.dbd-print .dbd-paper { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 16px; }
.dbd-print .dbd-paper th, .dbd-print .dbd-paper td { padding: 4px 6px; border-bottom: 1px solid #ccc; color: #000; background: none; }
.dbd-print .dbd-paper tr.dr-total td { background: #eee; }
.empty { padding: 40px 24px; text-align: center; color: var(--slate); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty svg { width: 40px; height: 40px; color: var(--border-strong); }

/* ---------- tabs / chips ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; width: fit-content; flex-wrap: wrap; }
.tab { border: 0; background: none; padding: 10px 16px; border-radius: 9px; font-weight: 700; color: var(--slate); cursor: pointer; min-height: 44px; }
.tab[aria-selected='true'] { background: var(--navy); color: var(--white); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
/* Repairs: the calendar chip holds the date box; it lights up when a day is picked. */
.chip.rp-day { padding-right: 10px; }
.chip.rp-day input[type="date"] { border: 0; background: none; font: inherit; color: inherit; width: 150px; min-height: 0; padding: 0; outline: none; }
.chip.rp-day-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.rp-day-on input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); }
.chip { border: 1px solid var(--border-strong); background: var(--white); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; line-height: 20px; cursor: pointer; min-height: 40px; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed='true'] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chip .x { font-size: 16px; line-height: 1; }
.chip .svg-ic { width: 16px; height: 16px; }

/* ---------- sale ---------- */
.sale { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; height: 100%; }
.sale-left { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.item { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--white); text-align: left; cursor: pointer; min-height: 120px; }
.item:hover { border-color: var(--blue); }
.item .t { font-weight: 700; line-height: 22px; }
.item .s { font-size: 13px; line-height: 18px; color: var(--slate); }
.item .pic-wrap { height: 104px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #F7F9FD; margin-bottom: 4px; overflow: hidden; }
.item .pic-wrap img.pic { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.item[disabled] { opacity: 0.6; cursor: default; }
img.pic { object-fit: contain; border-radius: 10px; background: #fff; }
.thumb { width: 56px; height: 56px; flex: none; border-radius: 10px; background: #F7F9FD; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb img.pic, .thumb svg.art { width: 56px; height: 56px; }
.item .p { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 18px; }
/* Sale menu: Apple, Samsung, Google, Moto, WiFi, Accessories, then groups and models with pictures. */
.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.brand-tile { display: grid; grid-template-rows: 150px auto auto; gap: 4px; padding: 14px; border-radius: var(--r-card); border: 1px solid var(--border); background: var(--white); cursor: pointer; text-align: left; color: var(--navy); box-shadow: var(--shadow); transition: border-color 0.12s, transform 0.12s; }
.brand-tile:hover { border-color: var(--blue); }
.brand-tile:active { transform: scale(0.985); }
.brand-tile .brand-pic { display: flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(160deg, #F7F9FD, #E9F0FB); overflow: hidden; margin-bottom: 6px; }
.brand-tile .brand-pic img { width: 100%; height: 100%; object-fit: contain; padding: 10px; mix-blend-mode: multiply; }
.brand-tile .brand-pic .svg-ic { width: 48px; height: 48px; color: var(--slate); }
.brand-tile .brand-name { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.01em; }
.brand-tile .brand-sub { font-size: 13px; line-height: 18px; color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-crumbs { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.crumb-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--white); font-weight: 700; color: var(--navy); cursor: pointer; }
.crumb-back .svg-ic { width: 18px; height: 18px; }
.crumb-title { font-size: 22px; line-height: 28px; font-weight: 700; }
.chip-lg { min-height: 48px; font-size: 16px; padding: 10px 18px; }
.menu-section { display: flex; flex-direction: column; gap: 10px; }
.menu-section-title { margin: 6px 0 0; font-size: 14px; line-height: 20px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); }
.menu-item-wrap { position: relative; display: flex; }
.menu-item-wrap .item { flex: 1; min-width: 0; }
.menu-item .t { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.menu-item .s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item .p small { font-size: 13px; font-weight: 400; color: var(--slate); }
.menu-edit { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.94); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--navy); }
.menu-edit:hover { border-color: var(--blue); color: var(--blue); }
.menu-edit .svg-ic { width: 16px; height: 16px; }
.ask { color: var(--amber); font-size: 15px; font-weight: 700; }
.model-head { display: flex; gap: 16px; align-items: center; }
.model-pic { width: 140px; height: 140px; flex: none; border-radius: 14px; background: #F7F9FD; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.model-pic img.pic { width: 100%; height: 100%; object-fit: contain; }
.cart { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); display: flex; flex-direction: column; min-height: 0; max-height: calc(100dvh - var(--top-h) - 48px); position: sticky; top: 0; }
.cart-head { padding: 16px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.cart-lines { flex: 1; overflow-y: auto; padding: 8px 16px; min-height: 120px; position: relative; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 16px; margin: 0 -16px; border-bottom: 1px solid var(--border); }
.cart-line.flash { animation: flash 1.6s ease-out; }
.cart-line:last-child { border-bottom: 0; }
.cart-line .d { font-weight: 700; line-height: 22px; }
.cart-line .x { font-size: 13px; line-height: 18px; color: var(--slate); }
.cart-line .amt { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.cart-line .ctl { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--r-control); overflow: hidden; }
.qty button { width: 40px; height: 40px; border: 0; background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty button svg { width: 16px; height: 16px; }
.qty span { min-width: 36px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-foot { border-top: 1px solid var(--border); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.sum-row { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.sum-row.total { font-size: 24px; line-height: 32px; font-weight: 700; padding-top: 6px; }
.pay-btn { margin-top: 10px; }
.extras { display: flex; flex-direction: column; gap: 8px; }
.extras-btn { min-height: 48px; white-space: normal; text-align: left; justify-content: flex-start; }
.pay-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pay-methods .btn { min-height: 64px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.home-actions .btn { min-height: 52px; }
.checkout-open .goals-bar { display: none; }
.customer-pill { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--cloud); }
.customer-pill svg { width: 20px; height: 20px; color: var(--slate); }

/* ---------- sheets (modals) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(7, 21, 45, 0.45); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 100; animation: fade 0.12s ease-out; }
.sheet { background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; max-height: calc(100dvh - 48px); display: flex; flex-direction: column; animation: rise 0.16s ease-out; }
.sheet-wide { max-width: 860px; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px 12px; }
.sheet-head h2 { margin-right: auto; }
.sheet-body { padding: 8px 24px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.sheet-foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes flash { from { background: var(--blue-soft); } to { background: transparent; } }
@keyframes rise { from { transform: translateY(-12px); opacity: 0.6; } to { transform: none; opacity: 1; } }

/* ---------- pin pad ---------- */
.pin-dots { display: flex; justify-content: center; gap: 14px; height: 24px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--navy); display: block; }
.pin-dots i.on { background: var(--navy); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 320px; margin: 0 auto; width: 100%; }
.pinpad button { height: 68px; border-radius: 14px; border: 1px solid var(--border); background: var(--white); font-size: 26px; font-weight: 700; cursor: pointer; color: var(--navy); display: flex; align-items: center; justify-content: center; }
.pinpad button:active { background: var(--cloud); }
.pinpad button svg { width: 26px; height: 26px; }

/* ---------- sign-in screens ---------- */
/* The sign-in and clock-in screens: a West Coast scene (sky, sun, sea, palms) behind a frosted card. */
.gate { position: relative; overflow: hidden; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(180deg, #E6EFFF 0%, #F6F9FF 52%, #FFF1E4 100%); }
.gate-lock { background: linear-gradient(180deg, #E3EDFF 0%, #F4F8FF 52%, #FFEFE0 100%); }
.gate-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.gate-sun { position: absolute; right: 8%; bottom: 17%; width: 46vmin; height: 46vmin; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 138, 0.95) 0%, rgba(255, 184, 107, 0.5) 42%, rgba(255, 184, 107, 0) 70%); }
.gate-sea { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 26%; display: block; }
.gate-gulls { position: absolute; left: 34%; top: 10%; width: clamp(140px, 18vw, 260px); height: auto; }
.gate-palms { position: absolute; bottom: -2px; width: clamp(220px, 30vw, 460px); height: auto; }
.gate-palms-l { left: -3%; }
.gate-palms-r { right: -3%; }
.gate-card { position: relative; z-index: 1; width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 24px; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.95); border-radius: 24px; padding: 28px 28px 24px; box-shadow: 0 16px 48px rgba(7, 21, 45, 0.14); }
@media (max-width: 600px) { .gate { padding: 12px; } .gate-card { padding: 20px 16px; border-radius: 18px; } }
.gate-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gate-wcw { width: min(400px, 88%); }
.gate-os { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 8px; font-size: 14px; line-height: 20px; color: var(--slate); text-align: center; }
.gate-os img { width: 20px; height: 20px; }
.gate-os .strong { color: var(--navy); font-size: 13px; letter-spacing: 0.06em; }

/* ---------- the West Coast Wireless logo ---------- */
.wcw { position: relative; display: grid; aspect-ratio: 960 / 337; user-select: none; -webkit-user-select: none; }
.wcw > * { grid-area: 1 / 1; width: 100%; height: 100%; }
.wcw img { display: block; max-width: none; pointer-events: none; }
.wcw-shine {
  pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.9) 50%, transparent 60%) no-repeat; background-size: 300% 100%; background-position: 100% 0;
  -webkit-mask: url('/assets/wcw-logo-brush.png') center / 100% 100% no-repeat; mask: url('/assets/wcw-logo-brush.png') center / 100% 100% no-repeat;
}
/* Painted on from left to right with a slanted brush edge, WIRELESS rises in, then one shine. */
.wcw-anim .wcw-brush { animation: wcw-paint 0.95s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
.wcw-anim .wcw-word { animation: wcw-rise 0.55s ease-out 0.6s both; }
.wcw-anim .wcw-shine { animation: wcw-shine 1.1s ease-in-out 1.1s both; }
@keyframes wcw-paint { from { clip-path: polygon(0 0, 0 0, -14% 100%, 0 100%); } to { clip-path: polygon(0 0, 114% 0, 100% 100%, 0 100%); } }
@keyframes wcw-rise { from { opacity: 0; transform: translateY(14%); } to { opacity: 1; transform: none; } }
@keyframes wcw-shine { from { opacity: 1; background-position: 100% 0; } to { opacity: 1; background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .wcw-anim .wcw-brush, .wcw-anim .wcw-word, .wcw-anim .wcw-shine { animation: none; } }

/* ---------- employee badges: 2 wide by 3 tall ---------- */
.ebadge { position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; border-radius: 4.5% / 3%; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(7, 21, 45, 0.12), 0 6px 18px rgba(7, 21, 45, 0.14); }
.ebadge img, .ebadge svg { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.eb-name { font-family: 'Badge Display', var(--font); font-weight: 800; fill: #fff; }
.eb-job, .eb-city { font-family: 'Badge Display', var(--font); font-weight: 600; fill: #fff; }
.eb-rule { stroke: #2f6bff; stroke-width: 3; }
.ebadge.mini { width: 30px; flex: none; border-radius: 3px; box-shadow: 0 1px 2px rgba(7, 21, 45, 0.25); }
.ebadge.pick { width: 112px; flex: none; }
.ebadge.big { width: min(320px, 76vw); }
.badge-view { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.badge-field { display: flex; gap: 16px; align-items: center; padding: 12px; margin-bottom: 16px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--cloud); }
.badge-field label.btn { position: relative; }
.badge-field label.btn.disabled { opacity: 0.6; pointer-events: none; }
/* The clock-in screen: everyone's badge; after a tap, theirs next to the code pad. */
.lock-card { max-width: 1040px; }
.lock-card.lock-picked .gate-wcw { width: min(280px, 70%); }
.people.badges { gap: 14px; }
.person.badge-tile { width: 136px; padding: 8px 8px 10px; gap: 6px; transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease; }
.person.badge-tile .ebadge { width: 118px; }
.person.badge-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.person.badge-tile .nm { font-size: 14px; line-height: 18px; }
.clockin { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.ebadge.clockin-badge { width: 236px; flex: none; animation: badge-in 0.35s ease-out both; }
.clockin-pad { max-width: 420px; width: 100%; }
@keyframes badge-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ebadge.clockin-badge { animation: none; } }
@media (max-width: 640px) {
  .person.badge-tile { width: 112px; }
  .person.badge-tile .ebadge { width: 94px; }
  .ebadge.clockin-badge { width: 150px; }
}
/* Top right, once signed in: their badge. A tap shows it big. */
.top-badge { flex: none; width: 44px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 4px; }
.top-badge .ebadge { width: 44px; border-radius: 3px; box-shadow: 0 1px 3px rgba(7, 21, 45, 0.3); transition: transform 0.12s ease; }
.top-badge:hover .ebadge { transform: translateY(-1px); }
/* Home: hello, today, and the logo. */
.home-hero { position: relative; overflow: hidden; align-items: center; padding: 20px 24px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(232, 240, 255, 0.78) 100%); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border: 1px solid var(--glass-border); border-radius: var(--r-card); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.home-hero::before { content: ''; position: absolute; right: -80px; top: -110px; width: 520px; height: 340px; background: radial-gradient(closest-side, rgba(1, 98, 253, 0.16), transparent); pointer-events: none; }
.home-hero::after { content: ''; position: absolute; left: -60px; bottom: -120px; width: 320px; height: 260px; background: radial-gradient(closest-side, rgba(0, 200, 232, 0.14), transparent); pointer-events: none; }
.home-hero .hero-text { position: relative; margin-right: auto; }
.home-hero .hero-hi { font-weight: 700; color: var(--blue); }
.home-hero .hero-logo { position: relative; width: 300px; }
@media (max-width: 760px) { .home-hero { flex-direction: column-reverse; align-items: flex-start; } .home-hero .hero-logo { width: 220px; } }
.people { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.person { width: 140px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: var(--r-card); border: 1px solid var(--border); background: var(--white); cursor: pointer; }
.person:hover { border-color: var(--blue); }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; flex: none; }
.avatar-sm { width: 36px; height: 36px; font-size: 14px; }
.person .nm { font-weight: 700; text-align: center; line-height: 20px; }
.person .rl { font-size: 13px; line-height: 18px; color: var(--slate); }

/* ---------- toasts ---------- */
/* Messages appear at the top so they never cover the Pay or Finish buttons; taps go straight through them. */
.toasts { position: fixed; top: calc(var(--top-h) + 12px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; width: min(560px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: var(--navy); color: var(--white); padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; font-weight: 700; animation: rise 0.16s ease-out; }
.toast svg { width: 20px; height: 20px; flex: none; }
.toast.error { background: var(--red); }
.toast.good { background: var(--green); }

/* ---------- receipt ---------- */
.receipt { width: 100%; max-width: 360px; margin: 0 auto; background: var(--white); padding: 20px; border: 1px dashed var(--border-strong); border-radius: 8px; font-size: 14px; line-height: 20px; color: #000; }
.receipt .logo { display: inline-block; vertical-align: top; max-width: 180px; max-height: 64px; margin: 0 auto 8px; object-fit: contain; }
.receipt .biz { text-align: center; font-weight: 700; font-size: 18px; line-height: 24px; }
.receipt .c { text-align: center; }
.receipt .rl { display: flex; justify-content: space-between; gap: 12px; }
.receipt .rl span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt .dim { color: #444; font-size: 12px; line-height: 16px; }
.card hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; align-self: stretch; width: 100%; }
.receipt hr { border: 0; border-top: 1px dashed #999; margin: 10px 0; }
.receipt .tot { font-weight: 700; font-size: 18px; line-height: 26px; }
.upsell-card { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 0 8px; padding: 22px 28px 20px; border-radius: 22px; text-align: center; background: linear-gradient(165deg, #FFF8EC 0%, #FFE3C2 55%, #F7D7A8 100%); border: 2px solid #E0A100; box-shadow: 0 14px 36px rgba(224, 161, 0, 0.28); }
.upsell-kicker { font-size: 13px; line-height: 18px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #8A5300; }
.upsell-title { margin: 0; font-size: 40px; line-height: 46px; font-weight: 800; letter-spacing: -0.03em; color: #3A2600; }
.upsell-script { margin: 0 0 8px; max-width: 34em; font-size: 28px; line-height: 36px; font-weight: 700; color: #1C2434; }
@media (max-width: 720px) {
  .upsell-card { padding: 16px; }
  .upsell-title { font-size: 30px; line-height: 36px; }
  .upsell-script { font-size: 22px; line-height: 30px; }
}
@media print { .upsell-card { display: none !important; } }
.buy-week { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.buy-week h2 { margin: 0; font-size: 18px; }
.buy-week-row { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--border); text-decoration: none; color: inherit; }
.buy-week-row:hover { color: var(--blue); }
@media (min-width: 1180px) {
  .buy-page { display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 16px; align-items: start; }
  .buy-page > .page-head { grid-column: 1 / -1; }
  .buy-page > :not(.buy-week) { grid-column: 1; }
  .buy-week { grid-column: 2; grid-row: 2 / span 8; position: sticky; top: 12px; max-height: calc(100dvh - 120px); overflow: auto; margin: 0; }
}
.done-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.done-mark svg { width: 40px; height: 40px; }

/* ---------- misc ---------- */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; }
.kv dt { color: var(--slate); font-weight: 700; font-size: 14px; }
.kv dd { margin: 0; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--blue-soft); color: var(--navy); }
.banner svg { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: 1px; }
.banner.warn { background: var(--amber-soft); }
.banner.warn svg { color: var(--amber); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { background: var(--cloud); border-radius: 12px; padding: 12px 14px; }
.stat .k { font-size: 13px; line-height: 18px; color: var(--slate); font-weight: 700; }
.stat .v { font-size: 22px; line-height: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.bottom-nav { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sale { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 900px) {
  .tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sale { grid-template-columns: 1fr; }
  .cart { position: static; max-height: calc(100dvh - var(--top-h) - var(--goals-h, 0px) - 88px); }
  .cart-foot { position: sticky; bottom: 0; background: var(--white); z-index: 4; box-shadow: 0 -8px 24px rgba(7, 21, 45, 0.08); }
  .grid-3, .pay-methods { grid-template-columns: 1fr; }
  .pay-methods .btn { min-height: 56px; }
}
@media (max-width: 720px) {
  .sale-left > .spread { flex-wrap: wrap; }
  .sale-left > .spread > .tabs { width: 100%; flex-wrap: nowrap; }
  .sale-left > .spread > .tabs .tab { flex: 1; padding: 10px 8px; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .brand-tile { grid-template-rows: 110px auto auto; }
  .brand-tile .brand-name { font-size: 20px; }
  .model-pic { width: 96px; height: 96px; }
  :root { --top-h: 64px; }
  .app { grid-template-columns: 1fr; grid-template-rows: var(--top-h) 1fr 72px; }
  .nav { display: none; }
  .bottom-nav { display: flex; grid-row: 3; background: var(--white); border-top: 1px solid var(--border); justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav .nav-item { flex: 1; padding: 4px 2px; gap: 2px; }
  .bottom-nav .nav-ico, .bottom-nav .nav-item > svg { width: 34px; height: 34px; border-radius: 10px; }
  .bottom-nav .nav-ico svg { width: 20px; height: 20px; }
  .top { padding: 0 16px; gap: 12px; }
  .top-store { display: none; }
  .top-user .who { display: none; }
  .main { padding: 16px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task { min-height: 112px; padding: 16px; }
  .task .label { font-size: 17px; line-height: 22px; }
  .form-grid, .grid-2 { grid-template-columns: 1fr; }
  .overlay { padding: 0; align-items: flex-end; }
  .sheet { border-radius: 20px 20px 0 0; max-height: 92dvh; }
  h1 { font-size: 24px; line-height: 32px; }
}

/* ---------- printing (receipts, tickets, invoices) ---------- */
#print-root { display: none; }
/* Thermal (80 mm receipt printer): each ticket is its own page, 80 mm wide and exactly as tall as
   the ticket (fitThermalPages sets each page's height right before printing; 297 mm is only the
   fallback). The width is RepairDesk's thermal receipt width: 70.6 mm (200 pt), 3.6 mm sides.
   No page margins: the white around the text is the ticket's own 3 mm padding, and with no
   margins the print window has no room for its date, web address and page numbers. Nothing here
   has a minimum or fixed height or is centered vertically. */
@page thermal { size: 70.6mm 297mm; margin: 0; }
#print-root .thermal { width: auto; margin: 0; padding: 0; }
#print-root .thermal > .ticket { page: thermal; display: block; width: 70.6mm; height: auto; min-height: 0; margin: 0 auto; padding: 3mm 3.6mm; }
#print-root .thermal > .ticket + .ticket { break-before: page; }
#print-root .thermal .receipt { width: auto; max-width: none; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
/* Chrome's print layout moves a block-level picture (or one that is a flex item) onto a new
   page inside a named page (thermal, letter, label). Pictures on paper stay inline-block. */
#print-root img { display: inline-block; vertical-align: top; }
/* Measuring the tickets at their printed width with the same styles (see fitThermalPages). */
#print-root.measure { display: block; position: absolute; left: -10000px; top: 0; visibility: hidden; }
/* Full pages: no page margins either; the 12 mm is padding repeated on every page, so they come
   out the same whichever Margins option the print window is set to. */
@page letter { size: letter; margin: 0; }
#print-root .letter { width: 100%; padding: 12mm; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media print {
  html, body { height: auto; min-height: 0; background: #fff; }
  body.printing #root { display: none; }
  body.printing #print-root { display: block; }
  #print-root .letter { page: letter; }
}

/* ---------- receipt (thermal, 72 mm) ---------- */
.receipt .head { text-align: center; }
.receipt .head .site { color: #000; font-weight: 700; font-size: 13px; line-height: 17px; }
/* The website, big and bold at the bottom of every receipt, ticket and invoice. */
.site-line { text-align: center; color: #000; margin: 12px 0 2px; }
.site-line span { display: block; font-size: 10px; line-height: 14px; letter-spacing: .06em; text-transform: uppercase; }
.site-line strong { display: block; font-size: 17px; line-height: 22px; font-weight: 800; overflow-wrap: anywhere; }
.invoice .site-line strong, .letter .site-line strong, .record .site-line strong { font-size: 20px; line-height: 26px; }
.receipt .doc { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 15px; letter-spacing: 0.04em; }
.receipt .meta { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; font-size: 13px; line-height: 18px; }
.receipt .meta dt { color: #444; }
.receipt .meta dd { margin: 0; text-align: right; }
.receipt table.rtable { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 18px; }
.receipt table.rtable th { text-align: left; font-size: 11px; letter-spacing: 0.05em; border-bottom: 1px solid #000; padding: 2px 0; }
.receipt table.rtable th.r, .receipt table.rtable td.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt table.rtable td { vertical-align: top; padding: 4px 0 2px; }
.receipt table.rtable td.q, .receipt table.rtable th.q { width: 26px; }
.receipt table.rtable th:nth-child(2), .receipt table.rtable td:nth-child(2) { padding-left: 4px; padding-right: 6px; }
.receipt .bar { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 8px 0 4px; }
.receipt .bar svg { width: 100%; max-width: 240px; height: 44px; }
.receipt .terms { font-size: 11px; line-height: 15px; color: #222; text-align: left; white-space: pre-wrap; }
.receipt .sign { margin-top: 18px; border-top: 1px solid #000; padding-top: 2px; font-size: 11px; }
.receipt .box { border: 1.5px solid #000; border-radius: 4px; padding: 6px 8px; margin: 8px 0; }
.receipt .big { font-size: 20px; line-height: 26px; font-weight: 700; text-align: center; letter-spacing: 0.02em; }
.tear-line { text-align: center; color: #666; font-size: 11px; margin: 14px 0; border-top: 1px dashed #666; padding-top: 2px; }

/* ---------- invoice (full page) ---------- */
.invoice { background: #fff; color: #000; font-size: 13px; line-height: 19px; padding: 0; }
.invoice .ih { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; border-bottom: 3px solid var(--blue); padding-bottom: 12px; }
.invoice .ih img { max-height: 110px; max-width: 220px; object-fit: contain; }
.invoice .ih .biz { font-size: 22px; line-height: 28px; font-weight: 700; }
.invoice .ih .right { text-align: right; }
.invoice h1 { font-size: 26px; line-height: 32px; letter-spacing: 0.06em; margin: 0; color: var(--navy); }
.invoice .two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 16px 0; }
.invoice .lab { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #555; }
.invoice table { width: 100%; border-collapse: collapse; }
.invoice th { background: #F3F7FC; text-align: left; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px; border-bottom: 1px solid #C9D6EA; }
.invoice td { padding: 8px; border-bottom: 1px solid #E1E8F2; vertical-align: top; }
.invoice .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.invoice .totals { margin-left: auto; width: 280px; margin-top: 12px; }
.invoice .totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.invoice .totals .grand { border-top: 2px solid #000; margin-top: 4px; padding-top: 6px; font-size: 17px; font-weight: 700; }
.invoice .terms { margin-top: 20px; font-size: 11px; line-height: 16px; color: #333; white-space: pre-wrap; }
.invoice .sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 36px; }
.invoice .sigs div { border-top: 1px solid #000; padding-top: 4px; font-size: 11px; }
.invoice .foot { margin-top: 24px; text-align: center; font-size: 11px; color: #555; }
.invoice .barc svg { height: 40px; width: 220px; }

/* ---------- repairs ---------- */
.board-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--cloud); color: var(--navy); white-space: nowrap; }
.status-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.st-checked_in { color: #0057FF; background: #E6F0FF; }
.st-in_progress { color: #6B4EFF; background: #EFEBFF; }
.st-waiting_parts { color: #B76E00; background: #FFF4DE; }
.st-waiting_customer { color: #C2410C; background: #FFEDE3; }
.st-ready { color: #0E8A55; background: #E3F7EE; }
.st-picked_up { color: #52647B; background: #EEF2F7; }
.st-cancelled { color: #B42318; background: #FDECEA; }
.overdue { color: var(--red); font-weight: 700; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.svc { text-align: left; border: 1px solid var(--border); border-radius: 14px; background: var(--white); padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-height: 84px; }
.svc:hover { border-color: var(--blue); }
.svc[aria-pressed='true'] { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.svc .t { font-weight: 700; line-height: 20px; }
.svc .s { font-size: 13px; line-height: 18px; color: var(--slate); }
.svc .p { font-weight: 700; margin-top: auto; }
.precheck { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.precheck .pc { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 12px; padding: 6px 6px 6px 12px; background: var(--white); }
.precheck .pc .opts { display: flex; gap: 4px; }
.precheck .pc button { border: 1px solid var(--border); background: var(--white); border-radius: 8px; min-width: 40px; min-height: 36px; font-weight: 700; cursor: pointer; }
.precheck .pc button[aria-pressed='true'].ok { background: #E3F7EE; border-color: #0E8A55; color: #0E8A55; }
.precheck .pc button[aria-pressed='true'].bad { background: #FDECEA; border-color: #B42318; color: #B42318; }
.precheck .pc button[aria-pressed='true'].na { background: var(--cloud); border-color: var(--border-strong); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photos a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #F7F9FD; }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.timeline { display: flex; flex-direction: column; gap: 10px; }
.timeline .ev { display: grid; grid-template-columns: 10px 1fr; gap: 10px; }
.timeline .ev::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); margin-top: 6px; }
.timeline .ev.status::before { background: var(--blue); }
.money-split { font-size: 13px; color: var(--slate); }
.sticky-actions { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 8px -8px 0; background: rgba(255, 255, 255, 0.96); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-lg); backdrop-filter: blur(6px); }
@media (max-width: 720px) { .sticky-actions { flex-wrap: wrap; } .sticky-actions .grow { flex-basis: 100%; } }

/* ---- phone check (SICKW) and unlock sites ---- */
.imei-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.imei-row > .input { flex: 1 1 220px; min-width: 0; }
.unlock-tools { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--cloud); }
.unlock-sites { display: flex; flex-wrap: wrap; gap: 8px; }
.unlock-site { flex: 0 1 auto; max-width: 100%; justify-content: flex-start; text-align: left; min-width: 0; }
.unlock-site .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unlock-site > svg:last-child { color: var(--slate); }
.unlock-site-off { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 16px; border-radius: var(--r-control); border: 1px dashed var(--border-strong); background: var(--white); color: var(--slate); font-weight: 700; }
.unlock-site-off a, .unlock-site-off .small { white-space: nowrap; font-size: 14px; }
.pc-intro { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn.pc-run { max-width: 100%; white-space: normal; text-align: left; }
.chip .pc-price { font-weight: 400; color: var(--slate); }
.chip[aria-pressed='true'] .pc-price { color: rgba(255, 255, 255, 0.8); }
.pc-result { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-card); border: 1px solid var(--border-strong); background: var(--white); box-shadow: var(--shadow); }
.pc-result.pc-failed { border-color: #F4D9A6; background: var(--amber-soft); box-shadow: none; }
.pc-result-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.pc-lines { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); margin: 0; border-top: 1px solid var(--border); }
.pc-lines dt, .pc-lines dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.pc-lines dt { padding-right: 20px; color: var(--slate); font-size: 14px; font-weight: 700; }
.pc-lines .pc-full { grid-column: 1 / -1; color: var(--slate); }
.pc-lines .pc-good { color: var(--green); font-weight: 700; }
.pc-lines .pc-bad { color: var(--red); font-weight: 700; }
.pc-lines .pc-warn { color: var(--amber); font-weight: 700; }
.pc-lines .pc-good::before, .pc-lines .pc-bad::before, .pc-lines .pc-warn::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.pc-text { margin: 0; white-space: pre-wrap; font-family: inherit; }
.unlock-order { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--cloud); }
.unlock-search { flex: 1 1 240px; min-width: 0; }
.unlock-chosen { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--white); }
.unlock-info { max-height: 140px; overflow: auto; color: var(--slate); }
.unlock-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: var(--r-card); border: 1px solid var(--border); background: var(--white); }
.unlock-card.unlock-done { border-color: var(--green); }
.unlock-card.unlock-failed, .unlock-card.unlock-check { background: var(--amber-soft); }
.unlock-card.unlock-rejected { background: var(--red-soft); }
.unlock-card p { margin: 0; }
.unlock-code { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--green-soft); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; line-height: 24px; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.unlock-test { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.learn-item { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--white); }
.sophia-week { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.sophia-week > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--cloud); border: 1px solid var(--border); }
.sophia-week .big { font-size: 24px; line-height: 30px; font-weight: 800; }
.sheet .list-row[aria-current='true'] { background: var(--blue-soft); }
@media (max-width: 720px) {
  .pc-lines { grid-template-columns: minmax(0, 1fr); }
  .pc-lines dt { padding-bottom: 0; border-bottom: 0; }
}

/* ---- points, member QR, repair tickets ---- */
.qr { display: block; }
.points-box { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-card); background: var(--amber-soft); border: 1px solid var(--border); }
.points-box > .svg-ic { color: var(--amber); flex: none; }
.points-head { display: flex; gap: 16px; align-items: center; }
.points-head .big { font-size: 32px; line-height: 38px; font-weight: 800; }
.num.neg { color: var(--red); }
.person .in { font-size: 12px; line-height: 16px; color: var(--green); font-weight: 700; }
.receipt .qrwrap { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 8px 0 4px; text-align: center; }
.receipt .rewards .c.strong { letter-spacing: 0.06em; }
.receipt .rewards .rw { display: flex; align-items: center; gap: 8px; }
.receipt .rewards .rw .qr { flex: none; }
.receipt .rewards .rw-t { flex: 1; min-width: 0; }
.receipt .rewards .rw-t > .strong:first-child { letter-spacing: 0.06em; }
.member-card .qrwrap .strong { font-size: 16px; letter-spacing: 0.06em; }
.invoice .inv-rewards { display: flex; gap: 14px; align-items: center; border: 1px solid #ccc; border-radius: 8px; padding: 10px 12px; margin: 14px 0; }
.receipt .ticket-no { text-align: center; font-size: 30px; line-height: 36px; font-weight: 800; letter-spacing: 0.03em; margin: 4px 0; }
.receipt .big-dev { font-size: 18px; line-height: 24px; font-weight: 700; }
.receipt .todo { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; }
.receipt .todo .chk { flex: none; width: 14px; height: 14px; border: 1.5px solid #000; border-radius: 2px; margin-top: 3px; }
.receipt .checks .rl { font-size: 13px; line-height: 18px; }

/* ---- buy phone / trade-in ---- */
.qa { display: grid; gap: 6px; }
.qa-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.offer-box { padding: 14px 16px; border-radius: var(--r-card); background: var(--green-soft); border: 1px solid var(--border); }
.offer-box .big { font-size: 34px; line-height: 40px; font-weight: 800; }
/* ---------- buy a phone: SICKW results, thumbprint, printouts ---------- */
.imei-result { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--cloud); }
.imei-result.tone-green { background: var(--green-soft); border-color: #BFE6D2; }
.imei-result.tone-red { background: var(--red-soft); border-color: #F2C4C6; }
.imei-result.tone-amber { background: var(--amber-soft); border-color: #F4D9A6; }
.imei-result .badge { white-space: normal; overflow-wrap: anywhere; }
.imei-sec { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.imei-grid { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: 3px 16px; margin: 6px 0 0; font-size: 14px; line-height: 20px; }
.imei-grid dt { color: var(--slate); font-weight: 700; }
.imei-grid dd { margin: 0; overflow-wrap: anywhere; }
.imei-grid dd.full { grid-column: 1 / -1; }
.imei-grid .v-green { color: var(--green); font-weight: 700; }
.imei-grid .v-red { color: var(--red); font-weight: 700; }
.imei-grid .v-amber { color: var(--amber); font-weight: 700; }
@media (max-width: 720px) { .imei-grid { grid-template-columns: 1fr; gap: 0; } .imei-grid dd { margin-bottom: 6px; } }
.suggest { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: var(--blue-soft); }
.suggest svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.thumb-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.thumb-slot { width: 120px; height: 150px; flex: none; display: flex; align-items: center; justify-content: center; text-align: center; border: 1.5px dashed var(--border-strong); border-radius: 12px; background: var(--white); color: var(--slate); font-size: 13px; overflow: hidden; }
.thumb-slot img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.thumb-slot svg { width: 40px; height: 40px; color: var(--border-strong); }
.thumb-slot.small-slot { width: 64px; height: 80px; border-style: solid; }
.print-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.print-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--white); color: var(--navy); font: inherit; text-align: left; cursor: pointer; min-height: 44px; }
.print-choice:hover { border-color: var(--navy); }
.print-choice svg { width: 24px; height: 24px; color: var(--blue); }
.print-choice .t { font-weight: 700; }
.print-choice .s { font-size: 13px; line-height: 18px; color: var(--slate); }
.saved-card { border-color: #BFE6D2; background: var(--green-soft); }
.saved-card > .row svg { width: 24px; height: 24px; color: var(--green); }
@media (max-width: 720px) { .print-choices { grid-template-columns: 1fr; } }
.invoice .imei-print { margin-top: 14px; border: 1px solid #C9D6EA; border-radius: 6px; padding: 8px 10px; font-size: 10.5px; line-height: 14px; break-inside: avoid; }
.invoice .imei-print dl { display: grid; grid-template-columns: max-content 1fr max-content 1fr; gap: 1px 10px; margin: 2px 0 6px; }
.invoice .imei-print dt { color: #555; font-weight: 700; }
.invoice .imei-print dd { margin: 0; overflow-wrap: anywhere; }

/* The sticker for the back of a bought phone: 2.25 x 1.25 in label printer. */
@page label { size: 2.25in 1.25in; margin: 0; }
@media print { #print-root > .label { page: label; width: 2.25in; } }
.plabel { width: 2.25in; height: 1.25in; box-sizing: border-box; padding: 0.06in 0.09in 0.05in; display: flex; flex-direction: column; overflow: hidden; background: #fff; color: #000; font-size: 7.5pt; line-height: 9pt; break-after: avoid; }
.plabel .pl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 7pt; white-space: nowrap; }
.plabel .pl-no { font-size: 11.5pt; line-height: 13pt; font-weight: 800; letter-spacing: 0.02em; }
.plabel .pl-dev { font-size: 8.5pt; line-height: 10pt; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plabel .pl-ln { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plabel .pl-bc { margin-top: auto; height: 0.27in; }
.plabel .pl-bc svg { display: block; width: 100%; height: 100%; }
.sigpad { position: relative; border: 1.5px dashed var(--border-strong); border-radius: var(--r-card); background: var(--white); height: 180px; touch-action: none; }
.sigpad canvas { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
.sigpad .hint-in { position: absolute; left: 16px; bottom: 14px; color: var(--slate); pointer-events: none; }
.sigpad .clear { position: absolute; right: 12px; top: 8px; }
.photo-row { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-row .ph { position: relative; width: 104px; height: 104px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #F7F9FD; display: block; }
.photo-row .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-row .tag { position: absolute; left: 4px; bottom: 4px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.9); border-radius: 6px; padding: 0 6px; }
.photo-row .x { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border-radius: 12px; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.sig-img { max-width: 100%; height: 80px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.receipt .sig-print { display: inline-block; vertical-align: top; width: 100%; max-height: 70px; object-fit: contain; margin-top: 8px; }
.invoice .record-sign { display: flex; gap: 24px; align-items: flex-end; margin-top: 18px; }
.invoice .record-sign .sigblock { flex: 1; }
.invoice .record-sign .sigblock img { display: inline-block; vertical-align: bottom; max-height: 70px; max-width: 100%; }
.invoice .record-sign .line { border-top: 1px solid #000; padding-top: 2px; font-size: 12px; }
.invoice .thumb-box { width: 1.3in; height: 1.6in; border: 1.5px solid #000; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; font-size: 11px; padding: 4px; box-sizing: border-box; }
.invoice .thumb-box .ti { flex: 1; min-height: 0; width: 100%; text-align: center; line-height: 0; overflow: hidden; }
.invoice .thumb-box .ti img { display: inline-block; max-width: 100%; max-height: 1.3in; object-fit: contain; }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 12px; }

/* ---- special orders: part search, picked part, the two questions, tracking ---- */
.part-panel { border: 1px solid var(--border); border-radius: var(--r-card); background: #FBFCFF; padding: 12px; display: flex; flex-direction: column; gap: 12px; max-height: 560px; overflow-y: auto; }
.part-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; position: sticky; top: -12px; background: #FBFCFF; padding: 4px 0; z-index: 1; }
.part-group { display: flex; flex-direction: column; gap: 4px; }
.part-group-head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 2px; border-bottom: 1px solid var(--border); min-height: 30px; }
.part-row { display: flex; align-items: center; gap: 8px; }
.part-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; background: var(--white); cursor: pointer; text-align: left; color: var(--navy); }
.part-pick:hover { border-color: var(--blue); }
.part-thumb { width: 48px; height: 48px; flex: none; border-radius: 8px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--slate); }
.part-thumb img { width: 100%; height: 100%; object-fit: contain; }
.part-thumb svg { width: 22px; height: 22px; }
.part-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; line-height: 20px; }
.part-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; line-height: 18px; color: var(--slate); margin-top: 2px; }
.part-meta .stock.in { color: var(--green); font-weight: 700; }
.part-meta .stock.out { color: var(--red); font-weight: 700; }
.part-price { display: flex; flex-direction: column; align-items: flex-end; flex: none; text-align: right; }
.part-open { width: 40px; height: 40px; }
.part-more { align-self: flex-start; margin: 2px 10px; font-size: 14px; }
.mini-spin { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: middle; flex: none; }
.picked { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--blue-soft); border: 1px solid #C9DAFF; flex-wrap: wrap; }
.choice-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { text-align: left; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--white); padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-height: 64px; color: var(--navy); }
.choice:hover { border-color: var(--blue); }
.choice[aria-pressed='true'] { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.choice .t { font-weight: 700; }
.choice .s { font-size: 13px; line-height: 18px; color: var(--slate); }
.order-row .thumb { width: 48px; height: 48px; color: var(--slate); }
.order-row .thumb img.pic { width: 48px; height: 48px; }
.order-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.eta-box { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--cloud); }
.eta-box .eta { font-size: 22px; line-height: 28px; font-weight: 700; }
.search-group { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
.search-group-head { display: flex; align-items: center; gap: 8px; padding: 4px 12px; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: 0.05em; }
.search-hit .part-thumb { width: 40px; height: 40px; }
@media (max-width: 720px) { .choice-row { grid-template-columns: 1fr; } .part-price .tiny { display: none; } }

/* ---- the sticker for the back of the phone: DYMO 30334 (2.25 x 1.25 in) or 30252 (3.5 x 1.125 in) ---- */
@page sticker { size: 2.25in 1.25in; margin: 0; }
@page sticker-wide { size: 3.5in 1.125in; margin: 0; }
.osticker { box-sizing: border-box; width: 2.25in; height: 1.25in; padding: 0.05in 0.07in; background: #fff; color: #000; font-family: Arial, 'DejaVu Sans', sans-serif; display: flex; flex-direction: column; gap: 1px; overflow: hidden; border: 1px dashed var(--border-strong); }
.osticker.s30252 { width: 3.5in; height: 1.125in; }
.osticker .os-top { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.osticker .os-no { font-size: 15pt; line-height: 1; font-weight: 800; letter-spacing: 0.02em; }
.osticker .os-pay { font-size: 8pt; line-height: 1.1; font-weight: 800; border: 1.5px solid #000; border-radius: 3px; padding: 1px 4px; white-space: nowrap; }
.osticker .os-pay.paid { background: #000; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.osticker .os-cust { font-size: 7.5pt; line-height: 1.15; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osticker .os-item { font-size: 6.5pt; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.osticker .os-dates { font-size: 6pt; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osticker .os-bar { margin-top: auto; height: 0.22in; }
.osticker .os-bar svg { width: 100%; height: 100%; display: block; }
.osticker.s30252 .os-item { -webkit-line-clamp: 1; }
@media print {
  #print-root .sticker { page: sticker; width: 2.25in; }
  #print-root .sticker-wide { page: sticker-wide; width: 3.5in; }
  #print-root .osticker { border: 0; }
}
.track-edit { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
.track-edit > label { font-size: 14px; line-height: 20px; font-weight: 700; margin-top: 4px; }
.form-grid > * { min-width: 0; }
@media (max-width: 720px) {
  .part-panel { padding: 10px; max-height: 70vh; }
  .part-panel-head .chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 2px; }
  .part-panel-head .chip { flex: none; }
  .part-open { display: none; }
  .part-pick { gap: 10px; padding: 8px; }
}

/* ---- scanning a driver license (Buy a phone, Trade-in) ---- */
.banner.good { background: var(--green-soft); }
.banner.good svg { color: var(--green); }
.banner.bad { background: var(--red-soft); }
.banner.bad svg { color: var(--red); }
.id-pill { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--green-soft); border: 1px solid #BFE6D2; }
.id-pill > svg { width: 24px; height: 24px; color: var(--green); flex: none; }
.id-pill.bad { background: var(--red-soft); border-color: #F2C4C6; }
.id-pill.bad > svg { color: var(--red); }
.scan-zone { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 22px 16px; border: 2px dashed var(--border-strong); border-radius: 16px; background: var(--cloud); }
.scan-zone.reading { border-color: var(--blue); background: var(--blue-soft); }
.scan-zone .card-back { width: 172px; height: 108px; color: var(--slate); }
.scan-video { position: relative; width: 100%; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 10; }
.scan-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-guide { position: absolute; left: 8%; right: 8%; top: 30%; bottom: 30%; border: 3px solid rgba(255, 255, 255, 0.9); border-radius: 10px; box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.35); }

/* ---- the big label for the back of a bought phone: Brother DK-1202 (62 x 100 mm) or DYMO 30256 (2-5/16 x 4 in) ---- */
@page phone-label { size: 62mm 100mm; margin: 0; }
@page phone-label-4 { size: 2.3125in 4in; margin: 0; }
@media print {
  #print-root > .phone-label { page: phone-label; width: 62mm; }
  #print-root > .phone-label-4 { page: phone-label-4; width: 2.3125in; }
}
.plabel-big { box-sizing: border-box; width: 62mm; height: 100mm; padding: 3mm 3.5mm 2.5mm; display: flex; flex-direction: column; gap: 0.9mm; overflow: hidden; background: #fff; color: #000; font-family: Arial, 'DejaVu Sans', sans-serif; break-after: avoid; }
.plabel-big.d30256 { width: 2.3125in; height: 4in; }
.plabel-big hr { border: 0; border-top: 0.45mm solid #000; margin: 0.6mm 0; width: 100%; }
.plabel-big .pb-top { display: flex; justify-content: space-between; align-items: baseline; gap: 2mm; font-size: 6.5pt; line-height: 1.1; font-weight: 700; text-transform: uppercase; letter-spacing: 0; white-space: nowrap; }
.plabel-big .pb-top span:first-child { overflow: hidden; text-overflow: ellipsis; }
.plabel-big .pb-no { font-size: 21pt; line-height: 1; font-weight: 800; letter-spacing: 0.02em; }
.plabel-big .pb-bar { height: 8mm; }
.plabel-big .pb-imei-bar { height: 7.5mm; }
.plabel-big .pb-bar svg, .plabel-big .pb-imei-bar svg { display: block; width: 100%; height: 100%; }
.plabel-big .pb-model { font-size: 16pt; line-height: 1.05; font-weight: 800; }
.plabel-big .pb-spec { display: flex; align-items: baseline; gap: 2.5mm; font-size: 10pt; line-height: 1.15; }
.plabel-big .pb-gb { font-size: 15pt; font-weight: 800; }
.plabel-big .pb-carrier { font-size: 11.5pt; line-height: 1.15; font-weight: 700; }
.plabel-big .pb-imei-l { font-size: 7pt; line-height: 1; font-weight: 700; letter-spacing: 0.08em; }
.plabel-big .pb-imei { font-family: 'DejaVu Sans Mono', 'Courier New', monospace; font-size: 12.5pt; line-height: 1.1; font-weight: 700; letter-spacing: 0.02em; }
.plabel-big .pb-paid { display: flex; justify-content: space-between; align-items: baseline; font-size: 9pt; font-weight: 800; letter-spacing: 0.05em; }
.plabel-big .pb-paid .amt { font-size: 18pt; letter-spacing: 0; }
.plabel-big .pb-sub { font-size: 8.5pt; line-height: 1.15; }
.plabel-big .pb-hold { border: 0.55mm solid #000; border-radius: 1.5mm; padding: 0.8mm 2mm; font-size: 10.5pt; line-height: 1.15; font-weight: 800; text-align: center; }
.plabel-big .pb-foot { margin-top: auto; font-size: 7.5pt; line-height: 1.15; }

/* ---- the technician's repair label (Brother 62 × 100 mm): black TECH banner, nothing like the customer's ticket ---- */
.tlabel { box-sizing: border-box; width: 100mm; height: 62mm; border: 1mm solid #000; display: flex; flex-direction: column; overflow: hidden; background: #fff; color: #000; font-family: Arial, 'DejaVu Sans', sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tlabel.d30256 { width: 4in; height: 2.3125in; }
.tlabel .tl-banner { background: #000; color: #fff; display: flex; align-items: center; gap: 2.5mm; padding: 0.8mm 2.2mm 1mm; }
.tlabel .tl-tech { font-size: 24pt; line-height: 1; font-weight: 900; letter-spacing: 0.08em; }
.tlabel .tl-sub { font-size: 6pt; line-height: 1.2; font-weight: 800; letter-spacing: 0.05em; }
.tlabel .tl-due { margin-left: auto; font-size: 6.5pt; line-height: 1.1; font-weight: 800; text-align: right; letter-spacing: 0.04em; }
.tlabel .tl-due b { font-size: 11pt; letter-spacing: 0; }
.tlabel .tl-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 47% 1fr; }
.tlabel .tl-left { display: flex; flex-direction: column; gap: 0.5mm; padding: 1mm 2mm 0 2.2mm; border-right: 0.45mm solid #000; min-width: 0; overflow: hidden; }
.tlabel .tl-right { display: flex; flex-direction: column; gap: 0.6mm; padding: 1mm 2.2mm 0 2mm; min-width: 0; overflow: hidden; }
.tlabel .tl-no { font-size: 19pt; line-height: 1; font-weight: 900; letter-spacing: 0.01em; }
.tlabel .tl-bar { height: 6.5mm; }
.tlabel .tl-bar svg { display: block; width: 100%; height: 100%; }
.tlabel .tl-dev { font-size: 12pt; line-height: 1.05; font-weight: 900; }
.tlabel .tl-spec { font-size: 6.6pt; line-height: 1.2; overflow-wrap: anywhere; }
.tlabel .tl-h { font-size: 7pt; font-weight: 900; letter-spacing: 0.1em; }
.tlabel .tl-todo { display: flex; gap: 1.3mm; align-items: flex-start; font-size: 8.5pt; line-height: 1.15; font-weight: 700; }
.tlabel .tl-todo .chk { flex: none; width: 2.8mm; height: 2.8mm; border: 0.45mm solid #000; margin-top: 0.3mm; }
.tlabel .tl-part { font-size: 6.5pt; font-weight: 400; }
.tlabel .tl-more, .tlabel .tl-issue, .tlabel .tl-fail { font-size: 6.8pt; line-height: 1.2; }
.tlabel .tl-issue { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tlabel .tl-fail { font-weight: 800; }
.tlabel .tl-foot { border-top: 0.45mm solid #000; padding: 0.6mm 2.2mm 0.7mm; font-size: 6.2pt; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tlabel .tl-foot > div { overflow: hidden; text-overflow: ellipsis; }
@page tech-wide { size: 100mm 62mm; margin: 0; }
@page tech-wide-4 { size: 4in 2.3125in; margin: 0; }
@media print {
  #print-root > .tech-wide { page: tech-wide; width: 100mm; }
  #print-root > .tech-wide-4 { page: tech-wide-4; width: 4in; }
}
/* The customer's copy says so in a box under the logo. */
.receipt .copy-tag { margin: 6px auto 4px; padding: 2px 10px; border: 2px solid #000; border-radius: 6px; width: fit-content; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; }

/* ---- thermal receipts: the logo on top, the store's policies at the bottom ---- */
.receipt .palms { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto 6px; }
.receipt .policies ul { margin: 4px 0 0; padding-left: 16px; font-size: 12px; line-height: 16px; }
.receipt .policies li { margin: 3px 0; }

/* ---- trade-ins on the sale ---- */
.trade-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 10px; background: var(--green-soft); font-size: 14px; line-height: 18px; }
.trade-row > svg { width: 20px; height: 20px; color: var(--green); flex: none; }
.trade-prompt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; background: var(--blue-soft); }
.trade-prompt > svg { width: 24px; height: 24px; color: var(--blue); flex: none; }

/* ---- Today: a color for each tile ---- */
.tile { position: relative; overflow: hidden; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6); transition: transform .15s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .15s ease; }
a.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(11, 22, 45, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.tile .ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; color: #fff; box-shadow: 0 2px 6px rgba(7, 21, 45, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.tile .ic svg { width: 20px; height: 20px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1)); }
.tile.t-green { background: linear-gradient(140deg, #DDF4E7 0%, #FFFFFF 75%); border-color: #BFE6D2; }
.tile.t-green .ic { background: #12A150; }
.tile.t-green .v { color: #0B7A3B; }
.tile.t-blue { background: linear-gradient(140deg, #E1EBFF 0%, #FFFFFF 75%); border-color: #C9DAFF; }
.tile.t-blue .ic { background: #0057FF; }
.tile.t-blue .v { color: #0046CC; }
.tile.t-amber { background: linear-gradient(140deg, #FFF0D6 0%, #FFFFFF 75%); border-color: #F4D9A6; }
.tile.t-amber .ic { background: #E08A00; }
.tile.t-amber .v { color: #A86400; }
.tile.t-purple { background: linear-gradient(140deg, #EEE6FF 0%, #FFFFFF 75%); border-color: #D9C8FF; }
.tile.t-purple .ic { background: #7C3AED; }
.tile.t-purple .v { color: #5B21B6; }
.tile.t-red { background: linear-gradient(140deg, #FDE3E4 0%, #FFFFFF 75%); border-color: #F2C4C6; }
.tile.t-red .ic { background: #E5252A; }
.tile.t-red .v { color: #B91C1F; }
.tile.t-teal { background: linear-gradient(140deg, #D9F5F3 0%, #FFFFFF 75%); border-color: #B5E6E2; }
.tile.t-teal .ic { background: #0E9F9A; }
.tile.t-teal .v { color: #0A7672; }
.tile.t-indigo { background: linear-gradient(140deg, #E4E7FF 0%, #FFFFFF 75%); border-color: #C9CEFF; }
.tile.t-indigo .ic { background: #4F46E5; }
.tile.t-indigo .v { color: #3730A3; }
.visits { display: flex; flex-direction: column; gap: 8px; }
.visit { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); }
.visit .when { font-weight: 800; min-width: 76px; color: var(--navy); }
.visit .who { flex: 1; min-width: 0; }
.visit.arrived, .visit.no_show { opacity: .7; }
@media (max-width: 640px) { .visit { flex-wrap: wrap; } .visit .row-wrap { width: 100%; } }

/* Big money amounts shrink so they stay inside the tile. */
.tile .v.long { font-size: 22px; line-height: 36px; }
.tile .v.xlong { font-size: 18px; line-height: 36px; }
/* Keep the policies together (title and all), so a long receipt breaks before them, not inside. */
.receipt .policies { break-inside: avoid; page-break-inside: avoid; }
/* The full West Coast Wireless logo on receipts: big enough to read the phone number and address. */
.receipt .logo.logo-full { display: block; width: 84%; max-width: 300px; max-height: none; height: auto; margin: 2px auto 4px; }
/* A barcode never splits from its number across two pages. */
.receipt .bar { break-inside: avoid; page-break-inside: avoid; }

/* ---------- Messages & calls ---------- */
.nav-count { position: absolute; top: 4px; right: 14px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: var(--white); font-size: 12px; line-height: 20px; font-weight: 700; text-align: center; }
.msg-layout { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.msg-list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.msg-list .list { max-height: calc(100dvh - var(--top-h) - var(--goals-h, 0px) - 160px); overflow-y: auto; }
.msg-row { align-items: flex-start; }
.msg-row[aria-current='true'] { background: var(--blue-soft); }
.msg-row.unread .t { color: var(--blue); }
.msg-row .s { white-space: nowrap; }
.msg-thread { position: sticky; top: 0; min-width: 0; }
.msg-empty { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); padding: 48px 24px; }
/* The conversation fits under the top bar, the page's heading and above the goals bar (its height is --goals-h), so the compose box is on the screen without scrolling. */
.msg-thread-inner { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; gap: 12px; height: calc(100dvh - var(--top-h) - var(--goals-h, 0px) - 116px); min-height: 360px; overflow: hidden; }
.msg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--border); flex: none; }
/* Notices and the customer's tickets never push the compose box off the screen: past a quarter of the pane the block scrolls, and the tickets sit on one line. */
.msg-notes { display: flex; flex-direction: column; gap: 8px; flex: none; max-height: 28%; overflow-y: auto; }
.msg-notes .banner { padding: 8px 12px; }
.msg-tickets { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.msg-tickets::-webkit-scrollbar { display: none; }
.msg-tickets .chip { flex: none; }
.msg-head a { color: var(--navy); }
.msg-back { display: none; }
.msg-bubbles { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px 2px; }
.msg-day { text-align: center; font-size: 12px; line-height: 16px; color: var(--slate); font-weight: 700; margin: 10px 0 4px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 18px; width: fit-content; }
.bubble.in { background: var(--cloud); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.bubble.out { margin-left: auto; background: var(--blue); color: var(--white); border-bottom-right-radius: 6px; }
.bubble.out.ai { background: #5B3FD6; }
.bubble.out.sys { background: var(--navy); }
.try-bubbles { max-height: 380px; border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.try-bubbles .bubble { white-space: pre-wrap; }
.try-used { margin-top: 6px; opacity: 0.85; }
.try-input { flex: 1 1 240px; min-width: 0; }
.bubble.bad { background: var(--red-soft); color: var(--red); border: 1px solid #F2C4C6; }
.bubble-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble-meta { display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; opacity: 0.8; margin-top: 4px; }
.bubble-meta svg { width: 13px; height: 13px; }
.bubble.out .bubble-meta { justify-content: flex-end; }
.bubble a { color: inherit; }
.msg-compose { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 10px; flex: none; }
.msg-compose .textarea { min-height: 56px; }
/* What the customer said always keeps most of the pane: the compose box never grows into it, and on a short screen the bubbles give way before the compose box does. */
.msg-bubbles { min-height: 120px; }
.msg-compose { max-height: 50%; overflow-y: auto; }
.consent-box { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--cloud); }
.consent-box input { width: 22px; height: 22px; accent-color: var(--blue); flex: none; margin-top: 2px; }
.setup-links code { font-size: 13px; background: var(--cloud); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; overflow-wrap: anywhere; }
/* A short screen (a tablet in landscape with the browser's bars): the pane tightens up so the compose box stays on it. */
@media (max-height: 760px) and (min-width: 901px) {
  .msg-thread-inner { height: calc(100dvh - var(--top-h) - var(--goals-h, 0px) - 100px); min-height: 300px; padding: 10px 12px; gap: 8px; }
  .msg-head { padding-bottom: 6px; }
  .msg-head .small.muted { display: none; }
  .msg-notes { max-height: 22%; }
  .msg-notes .banner { padding: 6px 10px; }
  .msg-bubbles { min-height: 80px; }
  .msg-compose { padding-top: 6px; gap: 6px; }
  .msg-compose .textarea { min-height: 0; height: 48px; }
  .msg-compose .tiny.muted { display: none; }
}
@media (max-width: 900px) {
  .msg-layout { grid-template-columns: 1fr; }
  .msg-layout.has-thread .msg-list { display: none; }
  .msg-layout:not(.has-thread) .msg-thread { display: none; }
  .msg-back { display: inline-flex; }
  .msg-head .grow { flex: 1 1 calc(100% - 56px); }
  .msg-thread-inner { height: auto; min-height: calc(100dvh - var(--top-h) - var(--goals-h, 0px) - 160px); padding: 12px; }
  .msg-bubbles { min-height: 260px; max-height: 60dvh; }
  .bubble { max-width: 88%; }
}
/* ---------- repair check-in menu ---------- */
.fix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.fix-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--white); color: var(--navy); text-align: left; cursor: pointer; min-height: 150px; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.fix-tile:hover, .fix-tile:focus-visible { border-color: var(--blue); box-shadow: 0 6px 18px rgba(11, 92, 255, .12); transform: translateY(-1px); }
.fix-tile .art { width: 64px; height: 64px; border-radius: 14px; background: var(--cloud); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.fix-tile .t { font-weight: 800; font-size: 17px; line-height: 22px; }
.fix-tile .s { font-size: 13px; line-height: 18px; color: var(--slate); }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.model-btn { padding: 12px 12px; min-height: 52px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); color: var(--navy); font-weight: 700; font-size: 15px; line-height: 20px; text-align: left; cursor: pointer; }
.model-btn:hover, .model-btn:focus-visible { border-color: var(--blue); background: #F2F7FF; }
.typed-model { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding-top: 4px; border-top: 1px dashed var(--border); }
.typed-model .field { flex: 1 1 220px; margin: 0; }
.parts-menu { border-top: 1px solid var(--border); padding-top: 12px; }
.svc.part { position: relative; }
.svc.part.has-img { padding-right: 64px; }
.svc.part .pimg { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #fff; }
@media (max-width: 700px) {
  .fix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fix-tile { min-height: 130px; }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The special-order sticker on the Brother 2.4 x 3.9 in label (62 x 100 mm, portrait). */
.osticker-big { box-sizing: border-box; width: 62mm; height: 100mm; padding: 3mm 3.5mm; background: #fff; color: #000; font-family: Arial, 'DejaVu Sans', sans-serif; display: flex; flex-direction: column; gap: 1.2mm; overflow: hidden; border: 1px dashed var(--border-strong); }
.osticker-big .ob-top { display: flex; justify-content: space-between; font-size: 7.5pt; font-weight: 800; letter-spacing: 0.04em; }
.osticker-big .ob-no { font-size: 26pt; line-height: 1; font-weight: 900; letter-spacing: 0.01em; }
.osticker-big .ob-bar { height: 11mm; }
.osticker-big .ob-bar svg { width: 100%; height: 100%; display: block; }
.osticker-big .ob-pay { font-size: 14pt; font-weight: 900; text-align: center; border: 2px solid #000; border-radius: 4px; padding: 1mm; }
.osticker-big .ob-pay.paid { background: #000; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.osticker-big .ob-cust { font-size: 13pt; line-height: 1.15; font-weight: 800; }
.osticker-big .ob-phone { font-size: 11pt; font-weight: 700; }
.osticker-big .ob-item { font-size: 10pt; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.osticker-big .ob-dev { font-size: 9pt; line-height: 1.2; }
.osticker-big .ob-dates { font-size: 8.5pt; line-height: 1.2; }
.osticker-big .ob-foot { margin-top: auto; font-size: 7pt; font-weight: 800; letter-spacing: 0.04em; text-align: center; border-top: 1px solid #000; padding-top: 1mm; }
@media print { #print-root .osticker-big { border: 0; } }

/* ---- calls and the phone agent ---- */
.call-row { cursor: pointer; align-items: flex-start; }
.call-row > .svg-ic { margin-top: 2px; }
.call-summary { display: block; font-size: 14px; line-height: 20px; color: var(--navy); margin-top: 4px; }
.call-transcript { max-height: 50dvh; border: 1px solid var(--border); border-radius: 12px; padding: 10px; flex: none; }
@media (max-width: 720px) { .call-row > .btn { display: none; } }
.line-edit { display: inline-flex; color: var(--blue); }
.line-edit svg { width: 18px; height: 18px; }
/* BUY BACK / TRADE-IN on every buyback printout, so the two can't be mixed up. */
.kind-banner { background: #000; color: #fff; text-align: center; font-size: 26px; line-height: 34px; font-weight: 900; letter-spacing: 0.12em; padding: 3px 8px; margin: 6px 0 4px; border-radius: 4px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.kind-banner.sm { font-size: 18px; line-height: 24px; }
.invoice .right .kind-banner { display: inline-block; font-size: 22px; line-height: 30px; margin: 0 0 6px; }
.plabel-big .pb-kind { background: #000; color: #fff; text-align: center; font-size: 15pt; line-height: 1.15; font-weight: 900; letter-spacing: 0.12em; margin: -0.5mm -0.5mm 0.6mm; padding: 0.4mm 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.plabel .pl-kind { font-weight: 900; letter-spacing: 0.04em; }
.policies li.sub { margin-left: 14px; list-style: circle; }
.policies .policy-sign { text-align: center; margin-top: 6px; font-size: 12px; line-height: 16px; }
.invoice .policies { margin-top: 14px; font-size: 12px; line-height: 17px; break-inside: avoid; page-break-inside: avoid; }
.invoice .policies hr { border: 0; border-top: 1px solid #000; }
.invoice .policies ul { margin: 6px 0 0; padding-left: 18px; }
.invoice .policies li { margin: 3px 0; }
.confirm-all { align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--amber-soft); }
.confirm-all input { margin-top: 3px; }
.file-pick { position: relative; overflow: hidden; width: fit-content; cursor: pointer; }
.file-pick input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- thermal receipts and tickets: RepairDesk's sizes ----------
   Measured from RepairDesk's own thermal receipt (mPDF): DejaVu Sans Condensed, 9 pt (12 px)
   text on 12 pt (16 px) lines, bold labels, 18 pt (24 px) titles, 12 pt (16 px) totals, 6 pt fine
   print, a 10 mm tall barcode. */
.receipt { font-family: 'DejaVu Sans Condensed', 'DejaVu Sans', Arial, sans-serif; font-size: 12px; line-height: 16px; }
.receipt .logo.logo-full { width: 60%; max-width: 200px; margin: 0 auto 2px; }
.receipt .head .site { font-size: 12px; line-height: 16px; }
.receipt .biz { font-size: 16px; line-height: 20px; }
.receipt hr { margin: 5px 0; }
.receipt .dim { font-size: 10px; line-height: 13px; }
.receipt .doc { font-size: 13px; line-height: 17px; }
.receipt .meta { font-size: 12px; line-height: 16px; }
.receipt table.rtable { font-size: 12px; line-height: 16px; }
.receipt table.rtable th { font-size: 10px; padding: 1px 0; }
.receipt table.rtable td { padding: 2px 0 1px; }
.receipt table.rtable td.q, .receipt table.rtable th.q { width: 22px; }
.receipt .tot { font-size: 16px; line-height: 20px; }
.receipt .bar { margin: 3px 0 2px; gap: 0; }
.receipt .bar svg { max-width: 170px; height: 38px; }
.receipt .ticket-no { font-size: 24px; line-height: 28px; margin: 2px 0; }
.receipt .big-dev { font-size: 16px; line-height: 20px; }
.receipt .big { font-size: 18px; line-height: 24px; }
.receipt .copy-tag { margin: 4px auto 2px; font-size: 12px; padding: 1px 8px; }
.receipt .box { padding: 4px 6px; margin: 6px 0; }
.receipt .sign { margin-top: 12px; }
.receipt .terms { font-size: 8px; line-height: 11px; }
.receipt .policies > .c.strong { font-size: 9px; line-height: 12px; }
/* The policies flow as one small paragraph on receipts (a list wastes paper); full pages keep the list. */
.receipt .policies ul { margin: 1px 0 0; padding: 0; list-style: none; font-size: 8px; line-height: 10px; }
.receipt .policies li, .receipt .policies li.sub { display: inline; margin: 0; list-style: none; }
.receipt .policies li + li::before { content: ' \00B7  '; }
.receipt .policies li.lead + li::before { content: ' '; }
.receipt .policies .policy-sign { margin-top: 2px; font-size: 8px; line-height: 10px; }
.receipt .policies .policy-sign > div { display: inline; }
.receipt .policies .policy-sign > div + div::before { content: ' \00B7  '; font-weight: 400; }
.receipt .pickup-note { margin-top: 4px; font-size: 11px; line-height: 14px; }
/* A receipt still too long for one paper is made tighter right before printing (fitThermalPages):
   the printer's page is often 297 mm long, and a longer receipt comes out on two papers. */
#print-root .thermal > .ticket.tight .receipt .logo.logo-full { width: 46%; }
#print-root .thermal > .ticket.tight .receipt hr { margin: 3px 0; }
#print-root .thermal > .ticket.tight .receipt .bar svg { height: 30px; }
#print-root .thermal > .ticket.tight .receipt .meta, #print-root .thermal > .ticket.tight .receipt table.rtable { line-height: 14px; }
#print-root .thermal > .ticket.tight .receipt .policies ul, #print-root .thermal > .ticket.tight .receipt .policies .policy-sign { font-size: 7px; line-height: 8.5px; }
#print-root .thermal > .ticket.tight .receipt .site-line { margin-top: 3px; }
#print-root .thermal > .ticket.tighter .receipt .logo.logo-full { width: 38%; }
#print-root .thermal > .ticket.tighter .receipt .meta, #print-root .thermal > .ticket.tighter .receipt table.rtable, #print-root .thermal > .ticket.tighter .receipt { font-size: 11px; line-height: 13px; }
#print-root .thermal > .ticket.tighter .receipt .policies ul, #print-root .thermal > .ticket.tighter .receipt .policies .policy-sign { font-size: 6.5px; line-height: 7.5px; }
.receipt .kind-banner { font-size: 20px; line-height: 26px; margin: 4px 0 2px; }
.receipt .kind-banner.sm { font-size: 14px; line-height: 19px; }
.receipt .site-line { margin: 5px 0 0; }
.receipt .site-line span { display: none; }
.receipt .site-line strong { font-size: 14px; line-height: 18px; }
.receipt .todo { margin: 3px 0; }
.receipt .checks .rl { font-size: 12px; line-height: 16px; }

/* Lifetime repairs (Repairs → All time). */
.lifetime { display: flex; align-items: center; gap: 16px; padding: 14px 18px; }
.lifetime .lt-n { font-size: 34px; line-height: 40px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }

/* A newer STORE OS is live (see lib/update.tsx). */
.update-bar { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 16px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 6px 24px rgba(10, 37, 64, 0.25); }
.update-bar button { border: 0; border-radius: 999px; padding: 6px 14px; background: #fff; color: var(--navy); font-weight: 800; cursor: pointer; }
@media print { .update-bar { display: none; } }

/* The technician's ticket on receipt paper (Repairs → Tech ticket). */
.receipt.tech-ticket .tt-banner { display: flex; align-items: center; gap: 10px; background: #000; color: #fff; border-radius: 4px; padding: 3px 10px; margin-bottom: 2px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.receipt.tech-ticket .tt-tech { font-size: 24px; line-height: 30px; font-weight: 900; letter-spacing: 0.12em; }
.receipt.tech-ticket .tt-sub { font-size: 10px; line-height: 12px; font-weight: 800; letter-spacing: 0.04em; }
.receipt.tech-ticket .tt-due { font-weight: 800; font-size: 13px; }
.receipt.tech-ticket .tt-h { margin-top: 4px; letter-spacing: 0.05em; }

/* The STORE OS mark, bottom left of every receipt, ticket and invoice (ui/legal.tsx). */
.sos-mark { text-align: left; color: #000; margin-top: 6px; white-space: nowrap; }
.sos-mark img { width: 20px; height: 20px; vertical-align: middle; margin-right: 6px; filter: grayscale(1) contrast(1.3); }
.sos-mark .sos-t { display: inline-block; vertical-align: middle; font-size: 9px; line-height: 11px; white-space: normal; }
.sos-mark .sos-t strong { font-size: 10px; letter-spacing: 0.06em; }
.invoice .sos-mark { margin-top: 18px; }
.invoice .sos-mark img { width: 24px; height: 24px; }
.invoice .sos-mark .sos-t { font-size: 10px; line-height: 13px; }
.invoice .sos-mark .sos-t strong { font-size: 11px; }

/* Settings → Store tablets → setup link. */
.setup-link { padding: 10px 12px; border: 1px dashed var(--border-strong); border-radius: 10px; background: var(--cloud); font: 14px/20px ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
/* A supplier's part already on the repair (tap again to take it off). */
.part-pick[aria-pressed='true'] { border-color: var(--blue); background: var(--blue-soft); }
.part-pick[aria-pressed='true'] .part-name::before { content: '✓ '; color: var(--blue); font-weight: 800; }

/* ---------------------------------------------------------------- real photos on the menus */
/* One look everywhere: the photo on white in a rounded tile, a small blue badge for the action. */
img.photo { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: inherit; }
.photo-tile { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 18px; background: linear-gradient(165deg, #fff 0%, #F6F9FF 100%); border: 1px solid #E3EAF5; box-shadow: 0 1px 2px rgba(7, 21, 45, 0.06), 0 6px 16px rgba(7, 21, 45, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9); transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1); }
.task:hover .photo-tile { transform: scale(1.04) rotate(-1deg); }
.photo-tile img.photo { padding: 7px; border-radius: 18px; }
.photo-tile > svg.art { width: 82%; height: 82%; }
.photo-badge { position: absolute; right: -7px; bottom: -7px; width: 28px; height: 28px; border-radius: 999px; background: linear-gradient(145deg, #2B7BFF, var(--blue-press)); color: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(7, 21, 45, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.photo-badge svg { width: 15px; height: 15px; }
.task.primary .photo-tile { border-color: transparent; }
.task.primary .photo-badge { background: linear-gradient(145deg, #182B52, var(--navy)); }
.thumb img.photo { padding: 4px; }

/* "Search customer name": the matches drop down under the box. */
.cust-search { position: relative; }
.cust-drop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: var(--white); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 32px rgba(7, 21, 45, 0.16); padding: 6px; max-height: 360px; overflow-y: auto; }
.cust-hit { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px; border: 0; border-radius: 10px; background: none; color: var(--navy); text-align: left; cursor: pointer; min-height: 52px; }
.cust-hit:hover, .cust-hit[aria-selected='true'] { background: var(--blue-soft); }
.cust-hit .t { display: block; font-weight: 700; line-height: 20px; }
.cust-hit .s { display: block; font-size: 13px; line-height: 18px; color: var(--slate); }
.cust-hit.cust-add { border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; margin-top: 4px; }
.cust-hit.cust-add .avatar { background: var(--blue); color: #fff; }
.cust-hit.cust-add .avatar svg { width: 16px; height: 16px; }
.cust-none { padding: 10px 12px; }

/* Trade-in: the last step shows the phone and its value before "Accept Trade-In & Issue Credit". */
.accept-box { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--blue); background: linear-gradient(160deg, #F5F9FF, #EAF2FF); }
.accept-box .ab-dev { display: flex; gap: 14px; align-items: center; }
.accept-box .ab-val { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid #CFE0FB; font-weight: 700; }
.accept-box .ab-val .num { font-size: 32px; line-height: 38px; color: var(--blue); }

/* Activations: the five carriers and New Line / Port-In as big buttons. */
.carrier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.carrier-btn { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--white); color: var(--navy); font-weight: 800; font-size: 17px; text-align: left; cursor: pointer; border-left: 6px solid var(--cc, var(--blue)); }
.carrier-btn .cc-dot { width: 12px; height: 12px; border-radius: 999px; background: var(--cc, var(--blue)); flex: none; }
.carrier-btn[aria-checked='true'] { border-color: var(--cc, var(--blue)); box-shadow: inset 0 0 0 2px var(--cc, var(--blue)); background: #F7FAFF; }
.act-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.act-type { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--white); color: var(--navy); text-align: left; cursor: pointer; min-height: 104px; }
.act-type svg { width: 26px; height: 26px; color: var(--blue); }
.act-type .t { font-weight: 800; font-size: 19px; line-height: 24px; }
.act-type .s { font-size: 13px; line-height: 18px; color: var(--slate); }
.act-type[aria-checked='true'] { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1.5px var(--blue); }
@media (max-width: 520px) { .act-type-grid { grid-template-columns: 1fr; } }
.commission-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }

/* ---- the technician's label: DYMO LabelWriter, 89 x 29 mm (RepairDesk's ticket label size) ---- */
@page tech-label { size: 89mm 29mm; margin: 0; }
.tklabel { box-sizing: border-box; width: 89mm; height: 28.5mm; padding: 1.4mm 2.2mm 1.2mm; background: #fff; color: #000; font-family: 'DejaVu Sans Condensed', Arial, sans-serif; font-size: 8pt; line-height: 1.15; display: flex; flex-direction: column; gap: 0.6mm; overflow: hidden; border: 1px dashed var(--border-strong); break-inside: avoid; break-after: avoid; }
.tklabel .tk-top { display: flex; justify-content: space-between; align-items: baseline; gap: 2mm; }
.tklabel .tk-no { font-size: 13pt; line-height: 1; font-weight: 700; letter-spacing: 0.02em; }
.tklabel .tk-due { font-size: 8.5pt; font-weight: 700; white-space: nowrap; }
.tklabel .tk-mid { display: flex; align-items: center; gap: 2.5mm; height: 8mm; }
.tklabel .tk-bar { width: 38mm; height: 7.5mm; flex: none; }
.tklabel .tk-bar svg { width: 100%; height: 100%; display: block; }
.tklabel .tk-cust { display: flex; flex-direction: column; min-width: 0; font-size: 8pt; }
.tklabel .tk-name { font-size: 9.5pt; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tklabel .tk-dev { font-size: 8.5pt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tklabel .tk-foot { margin-top: auto; font-weight: 700; font-size: 8pt; text-align: center; letter-spacing: 0.02em; }
@media print {
  /* Exactly one label: the page is the label, and nothing can spill onto a second one. */
  #print-root .tech-label { page: tech-label; width: 89mm; height: 29mm; overflow: hidden; }
  #print-root .tklabel { border: 0; }
}

/* ---- repair check-in: the part used, the price / tax / total box, the repair time buttons ---- */
.repair-line .part-used { color: var(--green-ink, #067647); }
.repair-line .part-used svg, .part-used svg { width: 14px; height: 14px; vertical-align: -2px; }
.repair-totals { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--cloud); margin-top: 4px; }
.repair-totals .rt-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; line-height: 22px; }
.repair-totals .rt-total { font-size: 20px; line-height: 28px; font-weight: 800; border-top: 1px solid var(--border); padding-top: 8px; }
.svc-head { display: flex; align-items: center; gap: 10px; }
.svc-head .photo, .svc-head svg { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); padding: 3px; flex: none; }
.svc.svc-pic { position: relative; padding-right: 62px; }
.svc.svc-pic .svc-pic-img { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 8px; padding: 2px; border: 1px solid var(--border); }
.model-btn.has-pic { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.model-btn .mb-pic { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; }
.model-btn .mb-pic img.photo, .model-btn .mb-pic svg { width: 40px; height: 40px; }
.time-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.time-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 10px; min-height: 112px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--white); color: var(--navy); cursor: pointer; text-align: center; transition: border-color .12s, box-shadow .12s, transform .08s; }
.time-btn:hover { border-color: var(--blue); }
.time-btn:active { transform: scale(0.985); }
.time-btn .tm-n { font-size: 34px; line-height: 38px; font-weight: 800; letter-spacing: -0.02em; }
.time-btn .tm-l { font-size: 14px; line-height: 18px; font-weight: 700; }
.time-btn .tm-s { font-size: 12px; line-height: 16px; color: var(--slate); }
.time-btn[aria-checked='true'] { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(11, 92, 255, 0.25); }
.time-btn[aria-checked='true'] .tm-s { color: rgba(255, 255, 255, 0.85); }
@media (max-width: 520px) { .time-grid { gap: 8px; } .time-btn { min-height: 96px; padding: 12px 6px; } .time-btn .tm-n { font-size: 28px; } .time-btn .tm-l { font-size: 12px; } }

/* ---- print choices right after a repair is checked in ---- */
.print-now { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.print-now .pn-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; min-height: 120px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--white); color: var(--navy); cursor: pointer; text-align: left; }
.print-now .pn-btn:hover { border-color: var(--blue); }
.print-now .pn-btn svg { width: 28px; height: 28px; color: var(--blue); }
.print-now .pn-btn .t { font-size: 18px; line-height: 24px; font-weight: 800; }
.print-now .pn-btn .s { font-size: 13px; line-height: 18px; color: var(--slate); }
.print-now .pn-btn.done { border-color: var(--green, #12B76A); }
@media (max-width: 520px) { .print-now { grid-template-columns: 1fr; } }

/* ---------- prints on their way to the store's printers (PrintNode) ---------- */
.print-tray { position: fixed; right: 16px; bottom: 16px; z-index: 95; display: flex; flex-direction: column; gap: 8px; width: min(400px, calc(100vw - 32px)); }
.print-job { display: flex; align-items: flex-start; gap: 12px; padding: 12px 10px 12px 14px; background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: 14px; box-shadow: var(--shadow-lg); animation: fade 0.16s ease-out; }
.print-job.printed { border-left-color: var(--green); }
.print-job.failed { border-left-color: var(--red); }
.print-job.warn { border-left-color: var(--amber); }
.pj-ico { display: grid; place-items: center; padding-top: 1px; }
.pj-ico svg { width: 22px; height: 22px; color: var(--blue); }
.print-job.printed .pj-ico svg { color: var(--green); }
.print-job.failed .pj-ico svg { color: var(--red); }
.print-job.warn .pj-ico svg { color: var(--amber); }
.pj-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pj-t { font-weight: 800; color: var(--navy); line-height: 20px; }
.pj-s { font-size: 13px; line-height: 18px; color: var(--slate); }
.print-job.failed .pj-s { color: var(--red); }
.pj-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pj-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--blue); color: var(--white); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.pj-btn:hover { background: var(--blue-hover); }
.pj-btn svg { width: 16px; height: 16px; }
.pj-btn.ghost { background: var(--cloud); color: var(--navy); border: 1px solid var(--border); }
.pj-x { flex: none; border: 0; background: transparent; color: var(--slate); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.pj-x:hover { background: var(--cloud); }
.pj-x svg { width: 16px; height: 16px; }
.pj-spin { flex: none; width: 18px; height: 18px; margin: 3px 7px 0; border-radius: 50%; border: 2.5px solid var(--border); border-top-color: var(--blue); animation: spin 0.8s linear infinite; }
@media (max-width: 640px) { .print-tray { left: 12px; right: 12px; bottom: 12px; width: auto; } }
@media print { .print-tray { display: none; } }
.pn-btn .pn-state { font-size: 13px; line-height: 18px; font-weight: 700; color: var(--blue); }
.pn-btn .pn-state.printed { color: var(--green); }
.pn-btn .pn-state.failed, .pn-btn .pn-state.warn { color: var(--red); }
.pn-btn:disabled { opacity: 0.7; cursor: progress; }
.printer-store { display: flex; flex-direction: column; gap: 14px; }
.printer-store + .printer-store { border-top: 1px solid var(--border); padding-top: 18px; }
.printer-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.printer-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- drop-off check (customer receipt and technician ticket) ----------
   Every check with a big mark in a box; anything not working is filled black so it stands out. */
.receipt .dropoff { margin: 5px 0 2px; border: 1.5px solid #000; border-radius: 6px; padding: 3px 6px 2px; break-inside: avoid; }
.receipt .do-h { text-align: center; font-weight: 800; font-size: 12px; line-height: 15px; letter-spacing: 0.08em; }
.receipt .do-sub { text-align: center; font-size: 9px; line-height: 12px; margin: 0 0 3px; }
.receipt .do-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 6px; }
.receipt .do-grid.one { grid-template-columns: 1fr; }
.receipt .do-item { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 10.5px; line-height: 14px; }
.receipt .do-mark { flex: none; display: inline-block; width: 13px; height: 13px; border: 1.5px solid #000; border-radius: 3px; text-align: center; font-size: 10px; line-height: 11px; font-weight: 900; font-family: 'DejaVu Sans', 'Segoe UI Symbol', Arial, sans-serif; }
.receipt .do-item.bad .do-mark { background: #000; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.receipt .do-item.bad .do-label { font-weight: 800; }
.receipt .do-item.none .do-mark { border-style: dashed; font-weight: 400; }
.receipt .do-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.receipt .do-legend { text-align: center; font-size: 8px; line-height: 11px; margin-top: 2px; font-family: 'DejaVu Sans', 'Segoe UI Symbol', Arial, sans-serif; }

/* ---------- technician ticket, option A: 89 x 29 mm DYMO label with the logo ---------- */
.tklabel.tkA { display: grid; grid-template-columns: 25mm 1fr; grid-template-rows: 1fr auto; column-gap: 2.4mm; row-gap: 0.5mm; }
.tkA .tkA-left { display: flex; flex-direction: column; justify-content: space-between; gap: 1mm; min-width: 0; }
.tkA .tkA-logo { line-height: 0; }
.tkA .tkA-logo img { width: 25mm; height: auto; }
.tkA .tkA-biz { font-size: 9pt; font-weight: 800; line-height: 1.1; }
.tkA .tkA-bar { width: 25mm; height: 8.5mm; }
.tkA .tkA-bar svg { width: 100%; height: 100%; display: block; }
.tkA .tkA-right { display: flex; flex-direction: column; gap: 0.2mm; min-width: 0; }
.tkA .tk-top { gap: 1.5mm; }
.tkA .tk-no { font-size: 13pt; }
.tkA .tk-due { font-size: 8pt; }
.tkA .tk-name { font-size: 9pt; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkA .tk-ph { font-size: 8pt; font-weight: 400; }
.tkA .tk-dev, .tkA .tk-work { font-size: 8pt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkA .tk-bad { font-size: 7.5pt; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkA .tk-foot { grid-column: 1 / -1; margin-top: 0; font-size: 8pt; }

/* ---------- technician ticket, option B: 4-inch DYMO label (30256, 2-5/16 x 4 in) ---------- */
@page tech-label-4 { size: 2.3125in 4in; margin: 0; }
.tkB { box-sizing: border-box; width: 2.3125in; height: 3.98in; padding: 2.2mm 2.6mm 2mm; background: #fff; color: #000; font-family: 'DejaVu Sans Condensed', Arial, sans-serif; font-size: 7.5pt; line-height: 1.2; display: flex; flex-direction: column; gap: 0.7mm; overflow: hidden; border: 1px dashed var(--border-strong); break-inside: avoid; }
.tkB .tkB-logo { text-align: center; line-height: 0; }
.tkB > * { flex-shrink: 0; }
.tkB .tkB-mid { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 0.6mm; }
.tkB .tkB-mid > * { flex-shrink: 0; }
.tkB .tkB-logo img { width: 30mm; height: auto; }
.tkB .tkB-biz { text-align: center; font-size: 11pt; font-weight: 800; }
.tkB .tkB-bar { background: #000; color: #fff; text-align: center; font-weight: 900; font-size: 9pt; letter-spacing: 0.14em; padding: 0.4mm 0; border-radius: 1mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tkB .tkB-top { display: flex; justify-content: space-between; align-items: center; gap: 2mm; }
.tkB .tkB-no { font-size: 17pt; font-weight: 800; line-height: 1; letter-spacing: 0.02em; }
.tkB .tkB-due { display: flex; flex-direction: column; align-items: flex-end; border: 0.4mm solid #000; border-radius: 1mm; padding: 0.4mm 1.2mm; font-size: 7pt; line-height: 1.15; text-align: right; }
.tkB .tkB-due b { font-size: 8.5pt; }
.tkB .tkB-code { height: 7mm; }
.tkB .tkB-code svg { width: 100%; height: 100%; display: block; }
.tkB .tkB-row { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 8pt; }
.tkB .tkB-row.sm { font-size: 7pt; }
.tkB .tkB-prob { font-size: 7.5pt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkB .tkB-h { font-weight: 800; font-size: 7pt; letter-spacing: 0.06em; margin-top: 0.3mm; }
.tkB .tkB-todo { display: flex; gap: 1.2mm; align-items: flex-start; font-size: 7.5pt; white-space: nowrap; overflow: hidden; }
.tkB .tkB-todo > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.tkB .tkB-todo .chk { flex: none; width: 2.6mm; height: 2.6mm; border: 0.35mm solid #000; margin-top: 0.2mm; }
.tkB .dim { color: #333; }
.tkB .dropoff { border: 0.35mm solid #000; border-radius: 1mm; padding: 0.6mm 1mm; }
.tkB .do-h { text-align: center; font-weight: 800; font-size: 6.5pt; letter-spacing: 0.06em; }
.tkB .do-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2mm 1.4mm; }
.tkB .do-item { display: flex; align-items: center; gap: 0.8mm; font-size: 6.5pt; line-height: 1.25; min-width: 0; }
.tkB .do-mark { flex: none; display: inline-block; width: 2.6mm; height: 2.6mm; border: 0.3mm solid #000; text-align: center; font-size: 6pt; line-height: 2.3mm; font-weight: 900; font-family: 'DejaVu Sans', Arial, sans-serif; }
.tkB .do-item.bad .do-mark { background: #000; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tkB .do-item.bad .do-label { font-weight: 800; }
.tkB .do-item.none .do-mark { border-style: dashed; }
.tkB .do-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkB .do-legend { text-align: center; font-size: 5.5pt; margin-top: 0.2mm; }
.tkB .tk-foot { margin-top: auto; text-align: center; font-weight: 800; font-size: 8.5pt; letter-spacing: 0.02em; }
@media print {
  #print-root .tech-label-4 { page: tech-label-4; width: 2.3125in; height: 4in; overflow: hidden; }
  #print-root .tkB { border: 0; }
}

/* ---------- technician ticket, option C: receipt paper (80 mm) ---------- */
.receipt.tkC .tkC-logo { text-align: center; line-height: 0; margin: 0 0 4px; }
.receipt.tkC .tkC-logo img { width: 62%; max-width: 200px; height: auto; }
.receipt.tkC .tt-banner { justify-content: center; }
.receipt.tkC .tt-not { font-size: 10px; line-height: 13px; letter-spacing: 0.08em; margin-top: 2px; }
.receipt.tkC .tkC-due { display: flex; justify-content: space-between; gap: 6px; border: 2px solid #000; border-radius: 6px; padding: 3px 8px; margin: 4px 0 6px; font-weight: 800; font-size: 13px; line-height: 17px; }
.receipt.tkC .tt-h { margin-top: 6px; letter-spacing: 0.05em; }
.receipt.tkR .tkR-title { font-size: 14px; line-height: 18px; letter-spacing: 0.04em; }
/* Whose copy it is (the customer's or the technician's), white on black under the title. */
.copy-tag { display: block; width: fit-content; margin: 2px auto 3px; padding: 0 10px; background: #000; color: #fff; font-weight: 800; font-size: 12px; line-height: 17px; letter-spacing: 0.12em; border-radius: 3px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* On the title's line (the customer's ticket stays exactly as long as it was). */
.copy-tag.inline { display: inline-block; margin: 0 0 0 6px; padding: 0 6px; font-size: 11px; line-height: 15px; letter-spacing: 0.05em; vertical-align: baseline; white-space: nowrap; }
.invoice .ih .right .copy-tag { margin: 2px 0 4px auto; font-size: 13px; line-height: 19px; }
.receipt.tkR .tkC-foot { text-align: center; font-weight: 800; font-size: 15px; line-height: 15px; margin-top: 8px; padding-top: 4px; border-top: 2px solid #000; }
.receipt.tkC .tkC-foot { text-align: center; font-weight: 800; font-size: 15px; line-height: 17px; margin-top: 8px; padding-top: 4px; border-top: 2px solid #000; }
.tt-formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.tt-format { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--white); color: var(--navy); cursor: pointer; font: inherit; }
.tt-format:hover { border-color: var(--blue); }
.tt-format.on { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.tt-format .t { font-weight: 800; }
.tt-format .s { font-size: 13px; line-height: 18px; color: var(--slate); }

/* Buying several phones at once (from Phone check). */
.bm-phone { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--white); }
.bm-phone + .bm-phone { margin-top: 4px; }
.bm-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bm-head .grow { min-width: 160px; }
.bm-money { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.bm-total { font-size: 32px; line-height: 38px; font-weight: 800; color: var(--navy); }
/* Bulk buy: the IMEIs are typed or pasted in. */
.bm-paste { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 12px; align-items: end; }
.bm-paste textarea.input { height: auto; min-height: 76px; resize: vertical; font-family: var(--mono, ui-monospace, monospace); }
.bm-code { display: flex; flex-direction: column; gap: 2px; max-width: 320px; }
.bm-code .input { font-weight: 600; letter-spacing: 0.02em; }
.input.input-bad { border-color: var(--red); box-shadow: 0 0 0 2px rgba(196, 33, 39, 0.12); }
@media (max-width: 600px) { .bm-paste { grid-template-columns: 1fr; } }
/* Phone check: tick the phones to buy. */
.pc-row { display: flex; align-items: stretch; gap: 0; }
.pc-row > .list-row { flex: 1; min-width: 0; }
.pc-pick { display: flex; align-items: center; justify-content: center; width: 48px; flex: none; cursor: pointer; border-bottom: 1px solid var(--border); }
.pc-pick input { width: 22px; height: 22px; accent-color: var(--blue); cursor: pointer; }
.pc-buybar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.pc-buybar .check { margin: 0; }

/* ---------- PAID / NOT PAID on tickets and receipts ---------- */
/* NOT PAID white on black (money to take); PAID, NO CHARGE and REFUNDED in a box. */
.pay-wrap { text-align: center; margin: 2px 0; }
.pay-stamp { display: inline-block; padding: 0 12px; border: 2px solid #000; border-radius: 4px; background: #fff; color: #000; font-weight: 900; font-size: 20px; line-height: 27px; letter-spacing: 0.06em; }
.pay-stamp.unpaid { background: #000; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pay-stamp.sm { font-size: 12px; line-height: 17px; padding: 0 6px; border-width: 1.5px; letter-spacing: 0.04em; }
.pay-detail { font-weight: 700; font-size: 13px; line-height: 17px; margin-top: 2px; }
.invoice .totals .pay-line { align-items: center; gap: 10px; font-weight: 700; }
.tkA .tk-foot { position: relative; }
.tkA .tk-pay { position: absolute; right: 0; bottom: 0; padding: 0 1.2mm; border: 0.35mm solid #000; border-radius: 0.6mm; font-size: 7.5pt; line-height: 1.25; font-weight: 800; letter-spacing: 0.02em; }
.tkA .tk-pay.unpaid { background: #000; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tkB .tkB-pay { border: 0.35mm solid #000; border-radius: 0.8mm; text-align: center; font-weight: 800; font-size: 7.5pt; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkB .tkB-pay.unpaid { background: #000; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* ---------- special order receipt: the banner on top and the day it arrives ---------- */
.receipt .order-banner { margin: 2px 0 6px; padding: 3px 4px; background: #000; color: #fff; text-align: center; font-weight: 900; font-size: 15px; line-height: 20px; letter-spacing: 0.03em; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.receipt .arrive { margin: 6px 0; padding: 4px 0; border-top: 2px solid #000; border-bottom: 2px solid #000; text-align: center; }
.receipt .arrive .l { font-weight: 800; letter-spacing: 0.06em; }
.receipt .arrive .d { font-weight: 900; font-size: 24px; line-height: 30px; letter-spacing: 0.02em; }
.receipt .arrive .n { font-size: 11px; line-height: 14px; }
/* New special order: the arrival day picked from the calendar (next to the quick picks). */
.input.arrival-date { width: auto; min-height: 40px; border-radius: 999px; padding: 6px 14px; }
.input.arrival-date.on { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: var(--blue-soft); }

/* ---------- the price sticker for a phone on sale: a 3 x 2 in label on the Rollo (stuck sideways on the back) ---------- */
@page sticker-3x2 { size: 3in 2in; margin: 0; }
@media print { #print-root > .sticker-3x2 { page: sticker-3x2; width: 3in; } }
/* --ps-shift (printing only, Settings → Printers → Move it right): the store's printer prints a little to the left of the label, so the left margin grows by it and the right one gives way first. */
.psticker { box-sizing: border-box; width: 3in; height: 2in; padding: 1.2mm max(0mm, calc(9mm - var(--ps-shift, 0mm))) 1.6mm calc(1mm + var(--ps-shift, 0mm)); background: #fff; color: #000; font-family: Arial, 'DejaVu Sans', sans-serif; display: flex; flex-direction: column; gap: 0.5mm; overflow: hidden; break-inside: avoid; break-after: avoid; }
.psticker + .psticker { break-before: page; }
.psticker .ps-top { display: flex; align-items: center; justify-content: space-between; gap: 2mm; min-height: 12.5mm; }
/* The logo gives way to the price: a long price ("$699.99") squeezes the logo, never the other way round. */
.psticker .ps-logo { display: block; height: 12.5mm; width: auto; max-width: 36mm; min-width: 0; flex: 0 1 auto; object-fit: contain; object-position: left center; filter: grayscale(1) contrast(1.6); }
.psticker .ps-biz { font-size: 12.5pt; line-height: 1.05; font-weight: 900; max-width: 38mm; }
/* Bold (700), not 900: on Windows, 900 is Arial Black, much wider than the printed sticker's Helvetica-Bold. */
.psticker .ps-price { font-size: 34pt; line-height: 1; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; flex: 0 0 auto; }
.psticker .ps-model { font-size: 14pt; line-height: 1.15; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psticker .ps-ln { font-size: 12pt; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psticker .ps-batt { font-weight: 700; }
.psticker .ps-imei { font-family: 'DejaVu Sans Mono', 'Courier New', monospace; font-size: 10.5pt; line-height: 1.15; font-weight: 700; letter-spacing: 0.02em; }
.psticker .ps-bar { margin-top: auto; height: 10.5mm; }
.psticker .ps-bar svg { display: block; width: 100%; height: 100%; }
@media screen { .psticker { border: 1px dashed var(--border-strong); } }
.psticker .ps-price.long { font-size: 29pt; }
.psticker .ps-price.xlong { font-size: 25pt; }
.psticker .ps-model.long { font-size: 11.5pt; }
.psticker .ps-model.xlong { font-size: 10pt; }
/* A long color and carrier line ("Natural Titanium · T-Mobile · Locked") prints smaller rather than lose its end. */
.psticker .ps-ln.long { font-size: 10.5pt; }
.psticker .ps-ln.xlong { font-size: 9.5pt; }
/* On 4 × 3 in labels (Settings → Printers): the same sticker a third bigger, sideways across the label, one a label. */
@page sticker-4x3 { size: 4in 3in; margin: 0; }
@media print { #print-root > .sticker-4x3 { page: sticker-4x3; width: 4in; } }
.psticker.s4x3 { width: 4in; height: 3in; padding: 1.6mm max(0mm, calc(8.8mm - var(--ps-shift, 0mm))) 2mm calc(1.2mm + var(--ps-shift, 0mm)); gap: 0.7mm; }
.psticker.s4x3 .ps-top { min-height: 16.7mm; gap: 2.7mm; }
.psticker.s4x3 .ps-logo { height: 16.7mm; max-width: 48mm; }
.psticker.s4x3 .ps-biz { font-size: 16.5pt; max-width: 50mm; }
.psticker.s4x3 .ps-price { font-size: 45.5pt; }
.psticker.s4x3 .ps-price.long { font-size: 38.5pt; }
.psticker.s4x3 .ps-price.xlong { font-size: 33.5pt; }
.psticker.s4x3 .ps-model { font-size: 18.5pt; }
.psticker.s4x3 .ps-model.long { font-size: 15.5pt; }
.psticker.s4x3 .ps-ln { font-size: 16pt; }
.psticker.s4x3 .ps-model.xlong { font-size: 13.5pt; }
.psticker.s4x3 .ps-ln.long { font-size: 14pt; }
.psticker.s4x3 .ps-ln.xlong { font-size: 12.5pt; }
.psticker.s4x3 .ps-imei { font-size: 14pt; }
.psticker.s4x3 .ps-bar { height: 14mm; }
/* On 2 × 3 in labels (2 in across, 3 in long): the 3 × 2 in sticker turned sideways, one a label. */
@page sticker-2x3 { size: 2in 3in; margin: 0; }
@media print { #print-root > .sticker-2x3 { page: sticker-2x3; width: 2in; } }
.ps-2x3 { position: relative; box-sizing: border-box; width: 2in; height: 3in; overflow: hidden; background: #fff; break-inside: avoid; break-after: avoid; }
.ps-2x3 + .ps-2x3 { break-before: page; }
.ps-2x3 > .psticker { position: absolute; left: 0; top: 0; transform-origin: top left; transform: rotate(90deg) translateY(-2in); }
/* A 2 × 2 in square sticker (the top of a 2 × 3 in label, for a driver with no 2 × 3 paper): the same sticker three quarters the size. */
@page sticker-2x2 { size: 2in 2in; margin: 0; }
@media print { #print-root > .sticker-2x2 { page: sticker-2x2; width: 2in; } }
.psticker.s2x2 { width: 2in; height: 2in; padding: 1mm max(0mm, calc(5.4mm - var(--ps-shift, 0mm))) 1.2mm calc(0.6mm + var(--ps-shift, 0mm)); gap: 0.4mm; }
.psticker.s2x2 .ps-top { min-height: 9.4mm; gap: 1.5mm; }
.psticker.s2x2 .ps-logo { height: 9.4mm; max-width: 27mm; }
.psticker.s2x2 .ps-biz { font-size: 9.5pt; max-width: 28.5mm; }
.psticker.s2x2 .ps-price { font-size: 25.5pt; }
.psticker.s2x2 .ps-price.long { font-size: 22pt; }
.psticker.s2x2 .ps-price.xlong { font-size: 19pt; }
.psticker.s2x2 .ps-model { font-size: 10.5pt; }
.psticker.s2x2 .ps-model.long { font-size: 8.5pt; }
.psticker.s2x2 .ps-ln { font-size: 9pt; }
.psticker.s2x2 .ps-model.xlong { font-size: 7.5pt; }
.psticker.s2x2 .ps-ln.long { font-size: 8pt; }
.psticker.s2x2 .ps-ln.xlong { font-size: 7pt; }
.psticker.s2x2 .ps-imei { font-size: 8pt; }
.psticker.s2x2 .ps-bar { height: 9mm; }
/* A technician copy uses the same sticker, with a few more lines, so the type sits a little tighter. */
.psticker.dense { gap: 0.25mm; }
.psticker.dense .ps-top { min-height: 9mm; }
.psticker.dense .ps-logo { height: 9mm; }
.psticker.dense .ps-price { font-size: 18pt; }
.psticker.dense .ps-model { font-size: 10pt; }
.psticker.dense .ps-ln { font-size: 8.5pt; line-height: 1.15; }
.psticker.dense .ps-imei { font-size: 8pt; }
.psticker.dense .ps-bar { height: 8mm; }
/* Any in-stock item, and the PlayStation 5 technician copy: portrait, 2 in wide by 3 in tall.
   To print landscape, change these three together with ITEM_STICKER_PAGE in src/shared/item-sticker.ts:
   size, width, and height (3in 2in, width 3in, height 2in). */
@page item-2x3 { size: 2in 3in; margin: 0; }
@media print { #print-root > .item-2x3 { page: item-2x3; width: 2in; } }
.item-sticker { box-sizing: border-box; width: 2in; height: 3in; padding: 2mm 2.2mm 1.6mm; background: #fff; color: #000; font-family: Arial, 'DejaVu Sans', sans-serif; display: flex; flex-direction: column; gap: 0.6mm; overflow: hidden; break-inside: avoid; break-after: avoid; }
.item-sticker + .item-sticker { break-before: page; }
.item-sticker .is-store { font-size: 7pt; line-height: 1.15; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-sticker .is-kind { font-size: 7pt; line-height: 1.1; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.item-sticker .is-title { font-size: 12pt; line-height: 1.15; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-sticker .is-ln { font-size: 8pt; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-sticker .is-price { margin-top: auto; font-size: 18pt; line-height: 1; font-weight: 800; }
.item-sticker .is-code { font-family: 'DejaVu Sans Mono', 'Courier New', monospace; font-size: 7.5pt; line-height: 1.15; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-sticker .is-bar { height: 11mm; }
.item-sticker .is-bar svg { display: block; width: 100%; height: 100%; }
.item-sticker.tech-copy .is-title { font-size: 14pt; -webkit-line-clamp: 1; white-space: nowrap; }
.item-sticker.tech-copy .is-price { display: none; }
.item-sticker.tech-copy .is-bar { margin-top: 0; height: 9mm; }
.item-sticker.tech-copy .is-ln { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.item-sticker .is-foot { margin-top: auto; font-size: 7pt; font-weight: 800; letter-spacing: 0.02em; }
@media screen { .item-sticker { border: 1px dashed var(--border-strong); } }
/* The 4-inch label makes room for its PAID / NOT PAID row. */
.tkB .tkB-mid { gap: 0.45mm; }
.tkB .tkB-code { height: 6.2mm; }
.tkB .tkB-pay { font-size: 7pt; line-height: 1.3; }
/* Tick boxes in a list (phones to print stickers for, tickets to mark ready). */
.row-pick { width: 20px; height: 20px; accent-color: var(--blue); cursor: pointer; vertical-align: middle; }
/* Repairs list: tick tickets, then Mark ready for all of them. */
.pick-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); position: sticky; top: 0; z-index: 2; }
.pick-bar .check { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
/* "Add customer" in the top bar, on every screen (just the + on a phone). */
.top .top-add { flex: none; white-space: nowrap; }
@media (max-width: 720px) { .top .top-add-t { display: none; } .top .top-add { padding-left: 10px; padding-right: 10px; } }
/* The daily close-out report (80 mm, like every receipt). */
.receipt.daily-report .dr-item { font-size: 11px; line-height: 14px; }
.receipt.daily-report .rl.dr-item span:first-child { padding-left: 6px; }
.daily-preview { max-width: 340px; margin: 8px auto 0; }
/* The short close-out: a few big numbers. */
.receipt.daily-simple { font-size: 16px; line-height: 24px; }
.receipt.daily-simple .tot { font-size: 22px; line-height: 30px; }
.receipt.daily-simple .rl.ds-cash span:last-child, .receipt.daily-simple .rl.ds-card span:last-child { font-size: 18px; }
/* The Cart button in the top bar, on every screen but New sale: the items in it and the total. */
.top .top-cart { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: var(--r-control); border: 1px solid var(--border-strong); background: var(--white); color: var(--navy); font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; }
.top .top-cart:hover { border-color: var(--navy); }
.top .top-cart svg { width: 22px; height: 22px; }
.top .top-cart.has { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.top .top-cart-n { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--blue); color: var(--white); font-size: 12px; line-height: 20px; text-align: center; }
@media (max-width: 720px) { .top .top-cart-t { display: none; } .top .top-cart { padding: 8px 10px; } }
/* The same cart inside its sheet: no frame of its own, the sheet scrolls.
   The lines stay as tall as their items. Shrinking them (flex) lets the row controls
   spill out, and a positioned line list paints over the totals, so Remove taxes
   cannot be tapped once the footer is tall. */
.cart.cart-sheet { position: static; max-height: none; border: 0; border-radius: 0; }
.cart.cart-sheet .cart-head, .cart.cart-sheet .cart-foot { padding-left: 0; padding-right: 0; }
.cart.cart-sheet .cart-lines { flex: none; overflow: visible; min-height: 0; padding-left: 0; padding-right: 0; }
.cart.cart-sheet .cart-foot { position: relative; z-index: 1; background: var(--white); }
.cart.cart-sheet .cart-line { margin: 0; padding-left: 0; padding-right: 0; }
/* Tax (9.25%) [Remove taxes] … $9.25 */
.sum-row.tax-row { align-items: center; gap: 8px; }
.sum-row.tax-row .tax-label { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.sum-row.tax-row .btn-sm { min-height: 32px; padding: 4px 10px; }
/* Phone check: the price sticker made from a check (fields beside a preview of the 3 × 2 in label). */
.pc-sticker { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--cloud); }
/* Editing a price sticker (inventory, a phone's page, Phone check): the words beside a preview of the label. */
.ps-edit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.ps-edit-preview { display: flex; justify-content: center; padding: 10px; border-radius: 10px; background: var(--white); border: 1px solid var(--border); }
@media (max-width: 900px) { .ps-edit { grid-template-columns: minmax(0, 1fr); } }
/* Today: "This store / All stores", each store's numbers side by side, and visits on other days. */
.store-totals { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--white); }
.store-totals .table { min-width: 640px; }
.store-totals .table td { white-space: nowrap; }
.visit-tools { justify-content: space-between; }
.day-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.day-nav .day-name { min-width: 150px; text-align: center; }
.visit-day { text-transform: uppercase; letter-spacing: 0.04em; font-size: 13px; }
@media (max-width: 640px) { .spread.wrap-sm { flex-wrap: wrap; } .day-nav .day-name { min-width: 0; flex: 1; } }
/* Merging duplicate customers: the one kept beside the one removed. */
.merge-side { align-items: flex-start; }
/* Hours: one shift per line, with Fix or Clock out beside it. */
.punch-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 16px; border-top: 1px dashed var(--border); }
/* Messages: one-tap replies above the reply box (they only fill the box). */
/* One row that scrolls sideways (never wrapping into a stack), so the conversation keeps the room. */
.quick-replies { display: flex; flex-direction: column; gap: 4px; }
.quick-replies .chips { gap: 6px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; padding-bottom: 2px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.quick-replies .chip { flex: none; min-height: 34px; padding: 5px 12px; font-weight: 600; max-width: 240px; }
.quick-replies .chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- the public demo (STORE_OS_DEMO=1): the bar, the sample shop's wordmark, the print preview ---------- */
:root { --demo-h: 44px; }
.demo-bar { position: sticky; top: 0; z-index: 95; display: flex; align-items: center; gap: 12px; min-height: var(--demo-h); padding: 6px 16px; background: #FFF3DC; color: #4A3200; border-bottom: 1px solid #F1D9A7; font-size: 14px; line-height: 18px; }
.demo-dot { width: 10px; height: 10px; border-radius: 50%; background: #E08A00; box-shadow: 0 0 0 4px rgba(224, 138, 0, 0.18); flex: none; }
.demo-text { flex: 1; min-width: 0; }
.demo-left { white-space: nowrap; }
.demo-acts { display: flex; align-items: center; gap: 8px; flex: none; }
.demo-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #D9B46A; border-radius: 999px; padding: 5px 12px; background: #fff; color: #4A3200; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; }
.demo-btn svg { width: 16px; height: 16px; }
.demo-btn:hover { background: #FFF9EE; }
.demo-btn.ghost { background: transparent; }
.demo-btn.cta { background: var(--blue); border-color: var(--blue); color: #fff; }
.demo-btn.cta:hover { background: var(--blue-hover); }
.demo-btn:disabled { opacity: 0.6; cursor: default; }
html.demo-site .app { height: calc(100vh - var(--demo-h)); height: calc(100dvh - var(--demo-h)); }
html.demo-site .gate { min-height: calc(100vh - var(--demo-h)); min-height: calc(100dvh - var(--demo-h)); }
@media (max-width: 760px) {
  .demo-bar { font-size: 12px; line-height: 16px; padding: 6px 12px; gap: 8px; }
  .demo-left { display: none; }
  .demo-btn { padding: 4px 10px; }
  .demo-btn.ghost span, .demo-btn.cta { display: none; }
}
@media print { .demo-bar { display: none; } }

/* The sample shop's wordmark, in the places the store's logo goes. */
.demo-logo { position: relative; display: block; aspect-ratio: 960 / 337; user-select: none; -webkit-user-select: none; }
.demo-logo svg { display: block; width: 100%; height: 100%; }
.demo-logo .dl-first, .demo-logo .dl-rest { font-family: 'Badge Display', var(--font); }
.demo-logo-anim .dl-block { animation: wcw-paint 0.95s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
.demo-logo-anim .dl-first { animation: wcw-rise 0.55s ease-out 0.5s both; }
.demo-logo-anim .dl-rest { animation: wcw-rise 0.55s ease-out 0.8s both; }
@media (prefers-reduced-motion: reduce) { .demo-logo-anim .dl-block, .demo-logo-anim .dl-first, .demo-logo-anim .dl-rest { animation: none; } }
.demo-welcome { display: flex; flex-direction: column; gap: 14px; }
.demo-welcome-logo { width: min(320px, 80%); margin: 0 auto; }
.demo-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.demo-steps li { display: flex; gap: 8px; align-items: flex-start; }
.demo-steps svg { width: 18px; height: 18px; flex: none; color: var(--blue); margin-top: 2px; }
.demo-tour { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.demo-tour li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); }
.demo-tour li.done { background: var(--green-soft); border-color: #BFE3CF; }
.demo-tour-n { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue); font-weight: 800; flex: none; }
.demo-tour li.done .demo-tour-n { background: var(--green); color: #fff; }
.demo-tour-n svg { width: 18px; height: 18px; }
.demo-people td { padding: 6px 10px 6px 0; }
.person.badge-tile .demo-code { color: var(--blue); font-weight: 800; }

/* The demo's print preview: the printout on the screen, on "paper", instead of a print window. */
#print-root.preview { display: block; position: fixed; inset: 0; z-index: 180; overflow: auto; padding: 72px 16px 32px; background: rgba(7, 21, 45, 0.62); }
#print-root.preview > div { margin: 0 auto; }
#print-root.preview .thermal > .ticket { background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); margin: 0 auto 16px; }
#print-root.preview .letter { background: #fff; max-width: 8.5in; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
#print-root.preview > .label, #print-root.preview > .sticker, #print-root.preview > .sticker-wide, #print-root.preview > .sticker-3x2, #print-root.preview > .sticker-2x3, #print-root.preview > .sticker-4x3, #print-root.preview > .sticker-2x2,
#print-root.preview > .phone-label, #print-root.preview > .phone-label-4, #print-root.preview > .tech-wide, #print-root.preview > .tech-wide-4, #print-root.preview > .tech-label, #print-root.preview > .tech-label-4, #print-root.preview > .item-2x3 { background: #fff; width: max-content; max-width: 100%; padding: 8px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
.print-preview-bar { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 190; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 24px); padding: 8px 10px 8px 16px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 14px; line-height: 18px; box-shadow: 0 6px 24px rgba(10, 37, 64, 0.35); }
.ppb-close { border: 0; border-radius: 999px; padding: 6px 14px; background: #fff; color: var(--navy); font: inherit; font-weight: 800; cursor: pointer; flex: none; }
@media (max-width: 760px) { .print-preview-bar { font-size: 12px; line-height: 16px; } }

/* ---------- Carrier unlocks (UnlockBase), owner only ---------- */
.ub-balance { display: flex; flex-direction: column; gap: 2px; min-width: 160px; padding: 12px 16px; background: var(--cloud); border: 1px solid var(--border); border-radius: var(--r-card); }
.ub-balance-v { font-size: 28px; line-height: 34px; font-weight: 700; }
.ub-tools { display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--white); }
.ub-tool { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--border); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; min-height: 52px; }
.ub-tool:last-child { border-bottom: 0; }
.ub-tool:hover { background: var(--cloud); }
.ub-tool-on, .ub-tool-on:hover { background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--blue); }
.ub-tool-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.ub-tool-n { font-weight: 700; overflow-wrap: anywhere; }
.ub-tool-p { font-weight: 700; white-space: nowrap; }
.ub-picked { padding: 14px 16px; background: var(--cloud); border: 1px solid var(--border); border-radius: var(--r-card); }
.ub-orders { display: flex; flex-direction: column; gap: 12px; }
.ub-order { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--white); }
.ub-order-done { border-color: #BFE6D2; }
.ub-order-rejected, .ub-order-failed { border-color: #F2C4C6; }
.ub-order-check { border-color: #F0D9A8; }
.ub-order-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ub-order-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin-right: auto; }
.ub-code { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; background: var(--green-soft); border: 1px solid #BFE6D2; border-radius: var(--r-control); }
.ub-code-v { margin: 0; flex: 1; min-width: 0; font: 700 20px/28px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--green); white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.ub-order-foot { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
@media (max-width: 720px) {
  .ub-tools { max-height: 300px; }
  .ub-balance { min-width: 0; flex: 1 1 140px; }
  .ub-code-v { font-size: 18px; line-height: 26px; }
}

/* ---------- goals bar (bottom of every screen) ---------- */
/* The bar is a row of the page grid, never floating: the main area shrinks, so it can't cover the Pay button. */
.app { grid-template-rows: var(--top-h) 1fr auto; }
.nav { grid-row: 1 / span 3; }
.goals-bar { grid-column: 2; grid-row: 3; position: relative; min-width: 0; background: var(--glass-bg-strong); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3); backdrop-filter: blur(var(--glass-blur)) saturate(1.3); border-top: 1px solid var(--glass-border); box-shadow: 0 -10px 30px rgba(7, 21, 45, 0.08); min-width: 0; z-index: 3; }
.goals-bar::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--blue), #7C3AED, var(--cyan)); background-size: 200% 100%; animation: goals-ribbon 6s linear infinite; opacity: 0.8; }
@keyframes goals-ribbon { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .goals-bar::before { animation: none; } }
/* The sale screen's sticky cart leaves room for the bar (--goals-h is the bar's height, set by the bar itself). */
.cart { max-height: calc(100dvh - var(--top-h) - var(--goals-h, 0px) - 48px); }
.goals-scroll { display: flex; align-items: center; gap: 14px; padding: 12px 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.goals-scroll::-webkit-scrollbar { display: none; }
.goals-today { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding-right: 14px; margin-right: 4px; border-right: 1px solid var(--border); flex: none; }
.goals-today-k { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.goals-today-d { font-size: 15px; line-height: 20px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.goals-today-s { font-size: 12px; line-height: 16px; color: var(--blue); font-weight: 700; white-space: nowrap; }
.goals-chip { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 16px; flex: none; min-height: 128px; padding: 12px 24px 12px 16px; border-radius: 24px; border: 1px solid var(--border); background: linear-gradient(165deg, #fff 0%, var(--cloud) 100%); color: var(--navy); cursor: pointer; text-align: left; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7); transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease, border-color 0.12s ease; }
.goals-chip::before { content: ''; position: absolute; inset: 0; background: var(--glass-shine); pointer-events: none; }
.goals-chip:hover { border-color: var(--blue); background: var(--white); transform: translateY(-2px) scale(1.015); box-shadow: var(--glow-blue), var(--shadow); }
.goals-chip-text { display: flex; flex-direction: column; gap: 2px; min-width: 108px; }
.goals-chip-n { font-size: 14px; line-height: 18px; font-weight: 800; color: var(--slate); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.04em; }
.goals-chip-v { font-size: 36px; line-height: 40px; font-weight: 800; white-space: nowrap; letter-spacing: -0.02em; }
.goals-chip-bar { display: block; width: 100%; height: 6px; border-radius: 999px; background: rgba(7, 21, 45, 0.1); overflow: hidden; margin-top: 3px; }
.goals-chip-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--blue); transition: width 0.5s ease; }
.goals-chip-mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; font-size: 16px; font-weight: 900; color: var(--white); background: var(--green); box-shadow: 0 2px 6px rgba(15, 122, 79, 0.35); }
.goals-chip-amazing { border-color: #E0A100; background: linear-gradient(135deg, #FFF8E1 0%, #FFEDB3 100%); box-shadow: 0 0 0 1px #F3C64A, 0 4px 14px rgba(224, 161, 0, 0.25); animation: goals-shine 2.4s ease-in-out infinite; }
.goals-chip-amazing .goals-chip-v { color: #8A5300; }
.goals-chip-amazing .goals-chip-bar > span { background: #E0A100; }
.goals-chip-amazing .goals-chip-mark { background: #E0A100; box-shadow: 0 2px 6px rgba(224, 161, 0, 0.45); }
.goals-chip-hit { border-color: #8FD5B0; background: linear-gradient(135deg, #E3F5EC 0%, #CBEFDC 100%); box-shadow: 0 0 0 1px #8FD5B0, 0 4px 14px rgba(22, 163, 74, 0.2); }
.goals-chip-hit .goals-chip-v { color: var(--green); }
.goals-chip-hit .goals-chip-bar > span { background: #16A34A; }
.goals-chip-under { border-color: #C9DAFF; background: linear-gradient(165deg, #fff 0%, var(--blue-soft) 100%); }
.goals-chip-far { border-color: #F2C4C6; background: linear-gradient(165deg, #fff 0%, var(--red-soft) 100%); }
.goals-chip-far .goals-chip-bar > span { background: var(--red); }
@keyframes goals-shine { 0%, 100% { box-shadow: 0 0 0 1px #F3C64A, 0 4px 14px rgba(224, 161, 0, 0.25); } 50% { box-shadow: 0 0 0 2px #FFD35C, 0 6px 22px rgba(224, 161, 0, 0.45); } }
/* One more on a count: the chip bounces and glows for a moment, and a short cheer pops above the bar. */
.goals-chip-bump { animation: goals-bump 0.9s cubic-bezier(0.34, 1.56, 0.64, 1); }
.goals-chip-bump .goals-chip-v { animation: goals-bump-n 0.9s ease; }
@keyframes goals-bump { 0% { transform: scale(1); } 30% { transform: scale(1.1) translateY(-4px); box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.35), 0 10px 26px rgba(0, 87, 255, 0.3); } 100% { transform: scale(1); } }
@keyframes goals-bump-n { 0% { color: inherit; } 30% { color: var(--blue); } 100% { color: inherit; } }
.goals-pop { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: linear-gradient(135deg, #0057FF, #7B2CFF); color: var(--white); font-size: 16px; line-height: 22px; font-weight: 800; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; box-shadow: 0 10px 28px rgba(7, 21, 45, 0.28); animation: goals-pop 3.2s ease forwards; }
.goals-pop svg { width: 20px; height: 20px; flex: none; }
@keyframes goals-pop { 0% { transform: translate(-50%, 24px) scale(0.9); opacity: 0; } 12% { transform: translate(-50%, 0) scale(1.05); opacity: 1; } 20% { transform: translate(-50%, 0) scale(1); } 82% { transform: translate(-50%, 0) scale(1); opacity: 1; } 100% { transform: translate(-50%, -12px) scale(0.96); opacity: 0; } }
/* The cheer: confetti bursting up from the bar, and a word above it, for a few seconds. */
.goals-cheer { position: fixed; left: var(--nav-w); right: 0; bottom: var(--goals-h, 0px); height: 0; z-index: 60; pointer-events: none; }
.goals-confetti { position: absolute; bottom: 0; border-radius: 2px; opacity: 0; animation: goals-confetti 2s ease-out forwards; will-change: transform, opacity; }
.goals-confetti.round { border-radius: 50%; }
@keyframes goals-confetti { 0% { transform: translate(0, 0) rotate(0deg); opacity: 1; } 55% { transform: translate(var(--dx), -220px) rotate(var(--r)); opacity: 1; } 100% { transform: translate(calc(var(--dx) * 1.5), 30px) rotate(calc(var(--r) * 2)); opacity: 0; } }
.goals-cheer-banner { position: absolute; left: 50%; bottom: 18px; z-index: 2; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; border-radius: 999px; background: linear-gradient(135deg, #16A34A, #0F7A4F); color: var(--white); font-size: 28px; line-height: 34px; font-weight: 800; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; box-shadow: 0 16px 40px rgba(7, 21, 45, 0.32); animation: goals-banner 4.6s ease forwards; pointer-events: none; }
.goals-cheer-banner.milestone { bottom: 12px; z-index: 3; font-size: 28px; line-height: 34px; padding: 14px 28px; letter-spacing: -0.02em; border: 3px solid #fff; background: #0F7A4F; }
.goals-confetti, .goals-firework { z-index: 1; }
.goals-cheer-banner.amazing { background: linear-gradient(135deg, #F5B400, #E0A100); color: #3A2600; }
.goals-cheer-banner.phone { background: linear-gradient(135deg, #0057FF, #7B2CFF); color: #fff; }
.goals-chip-phone { animation: goals-phone 1.15s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes goals-phone {
  0% { transform: scale(1); }
  35% { transform: scale(1.12) translateY(-6px); box-shadow: 0 0 0 4px rgba(0, 87, 255, 0.35), 0 14px 32px rgba(123, 44, 255, 0.35); }
  100% { transform: scale(1); }
}
.goals-money { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.rpt-more { margin: 8px 0 0; font-size: 18px; }
.rpt-stat { border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; width: 100%; }
.rpt-stat:hover { box-shadow: var(--shadow); }
.rpt-detail { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.goals-cheer-banner svg { width: 22px; height: 22px; }
@keyframes goals-banner { 0% { transform: translate(-50%, 30px) scale(0.9); opacity: 0; } 10% { transform: translate(-50%, 0) scale(1.04); opacity: 1; } 16% { transform: translate(-50%, 0) scale(1); } 85% { transform: translate(-50%, 0) scale(1); opacity: 1; } 100% { transform: translate(-50%, -16px) scale(0.96); opacity: 0; } }
.goals-firework { position: absolute; bottom: 36px; width: 14px; height: 14px; border-radius: 50%; opacity: 0; animation: goals-firework 1.1s ease-out forwards; box-shadow: 0 0 0 0 currentColor; }
@keyframes goals-firework { 0% { transform: translateY(0) scale(0.2); opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8); } 70% { transform: translateY(-180px) scale(1); opacity: 1; box-shadow: 0 0 0 28px rgba(255, 255, 255, 0); } 100% { transform: translateY(-150px) scale(1.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .goals-chip-amazing { animation: none; }
  .goals-confetti, .goals-firework { display: none; }
  .goals-cheer-banner, .goals-pop { animation: none; opacity: 1; }
}
.goals-cheer-still .goals-cheer-banner { animation: none; opacity: 1; }
.goals-candle { display: block; flex: none; }
.goals-open { display: inline-flex; align-items: center; gap: 8px; flex: none; margin-left: auto; min-height: 52px; padding: 10px 20px; border-radius: 18px; border: 1px solid var(--border-strong); background: linear-gradient(165deg, #fff 0%, var(--cloud) 100%); color: var(--navy); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.goals-open:hover { border-color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow); }
.goals-open svg { width: 18px; height: 18px; }
@media print { .goals-bar, .goals-overlay { display: none !important; } }
@media (max-width: 720px) {
  .app { grid-template-rows: var(--top-h) 1fr auto 72px; }
  .goals-bar { grid-column: 1; grid-row: 3; }
  .bottom-nav { grid-row: 4; }
  .goals-scroll { padding: 8px 12px; gap: 10px; }
  .goals-chip { min-height: 104px; padding: 8px 14px 8px 10px; gap: 10px; }
  .goals-chip-v { font-size: 28px; line-height: 32px; }
  .goals-chip-text { min-width: 88px; }
  .goals-candle-xl { width: 42px; height: 84px; }
  .goals-open { margin-left: 0; }
  .goals-cheer { left: 0; bottom: calc(var(--goals-h, 0px) + 72px); }
  .goals-cheer-banner, .goals-cheer-banner.milestone { font-size: 20px; line-height: 26px; padding: 12px 16px; }
}

/* ---------- goals panel (from the bottom) ---------- */
.goals-overlay { position: fixed; inset: 0; background: rgba(7, 21, 45, 0.45); display: flex; align-items: flex-end; justify-content: center; z-index: 100; animation: fade 0.12s ease-out; }
.goals-panel { width: 100%; max-width: 1180px; max-height: 92dvh; display: flex; flex-direction: column; background: var(--cloud); border-radius: var(--r-card) var(--r-card) 0 0; box-shadow: var(--shadow-lg); animation: goals-up 0.18s ease-out; outline: none; }
@keyframes goals-up { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .goals-panel { animation: none; } }
.goals-panel-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 24px 12px; background: var(--white); border-bottom: 1px solid var(--border); border-radius: var(--r-card) var(--r-card) 0 0; }
.goals-panel-head > div:first-child { margin-right: auto; }
.goals-stores { flex-wrap: nowrap; overflow-x: auto; }
.goals-panel-body { overflow-y: auto; padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.goals-section { display: flex; flex-direction: column; gap: 8px; }
.goals-section-head { display: flex; align-items: baseline; gap: 12px; }
.goals-section-head h3 { font-size: 13px; line-height: 18px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.goals-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.goals-tile { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); min-width: 0; }
.goals-tile .goals-candle-xl { width: 48px; height: 96px; }
.goals-tile-amazing { border-color: #E0A100; box-shadow: inset 0 0 0 1px #E0A100; }
.goals-tile-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.goals-tile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.goals-tile-n { font-size: 13px; line-height: 18px; font-weight: 700; color: var(--slate); }
.goals-tile-v { font-size: 24px; line-height: 30px; font-weight: 700; }
.goals-tile-num { font-size: 40px; line-height: 48px; font-weight: 700; min-width: 34px; text-align: center; }
.goals-tile-d { overflow-wrap: anywhere; }
.goals-pill { align-self: flex-start; display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: 12px; line-height: 18px; font-weight: 700; background: var(--cloud); color: var(--navy); border: 1px solid var(--border); white-space: nowrap; }
.goals-pill-amazing { background: #FFF8E1; color: #8A5300; border-color: #E0A100; }
.goals-pill-hit { background: var(--green-soft); color: var(--green); border-color: #BFE6D2; }
.goals-pill-under { background: var(--blue-soft); color: var(--blue); border-color: #C9DAFF; }
.goals-pill-far { background: var(--red-soft); color: var(--red); border-color: #F2C4C6; }
.goals-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); font-size: 13px; line-height: 18px; color: var(--slate); }
.goals-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.goals-legend-n { font-weight: 700; color: var(--navy); font-size: 16px; min-width: 18px; text-align: center; }
.goals-panel-foot { justify-content: flex-end; }
.goals-panel-foot .small { margin-right: auto; }
@media (max-width: 1180px) { .goals-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .goals-panel { max-height: 94dvh; }
  .goals-panel-head { padding: 12px 16px 10px; }
  .goals-panel-body { padding: 12px 16px 16px; }
  .goals-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .goals-tile { padding: 12px; }
  .goals-tile-v { font-size: 20px; line-height: 26px; }
}

/* ---------- Settings → Goals ---------- */
.goals-settings { display: flex; flex-direction: column; gap: 12px; }
.goals-setting { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 12px 24px; padding: 14px 0; border-top: 1px solid var(--border); }
.goals-setting:first-child { border-top: 0; padding-top: 0; }
.goals-setting-head { display: flex; flex-direction: column; gap: 4px; }
.goals-setting-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.goals-setting-none { grid-column: 1 / span 2; align-self: center; }
@media (max-width: 900px) { .goals-setting { grid-template-columns: 1fr; } .goals-setting-fields { grid-template-columns: 1fr 1fr; } .goals-setting-fields .check { grid-column: 1 / -1; } }

/* A business that subscribes: its own name as its wordmark (never West Coast Wireless's logo). */
.shop-logo { display: block; user-select: none; -webkit-user-select: none; }
.shop-logo svg { display: block; width: 100%; height: auto; }
.shop-logo .sl-name { font-family: 'Badge Display', var(--font); }
.shop-logo-anim { animation: wcw-rise 0.6s ease-out both; }
.sos-logo { display: flex; align-items: center; justify-content: center; gap: 16px; user-select: none; -webkit-user-select: none; }
.sos-logo img { width: 72px; height: 72px; }
.sos-logo-t { font-family: 'Badge Display', var(--font); font-weight: 800; font-size: 40px; letter-spacing: 0.06em; color: var(--navy); }
@media (prefers-reduced-motion: reduce) { .shop-logo-anim { animation: none; } }

/* Store OS signup (a server with several businesses). */
.gate-scroll { align-items: flex-start; }
.signup-card { max-width: 820px; }
.signup-card fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.signup-card legend { font-weight: 800; font-size: 18px; line-height: 24px; color: var(--navy); margin-bottom: 4px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 2px solid var(--border-strong); border-radius: 14px; background: var(--white); cursor: pointer; }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1, 98, 253, 0.14); }
.plan-card:focus-within { outline: 3px solid rgba(1, 98, 253, 0.35); outline-offset: 2px; }
.plan-name { font-weight: 800; font-size: 18px; color: var(--navy); }
.plan-price { font-weight: 800; font-size: 22px; color: var(--navy); }
.plan-feats { margin: 4px 0 0; padding-left: 18px; color: var(--slate); }
.plan-feats li + li { margin-top: 2px; }
.input.readonly { display: flex; align-items: center; background: var(--cloud); }
.check { display: flex; gap: 10px; align-items: flex-start; line-height: 22px; }
.check input { width: 20px; height: 20px; margin-top: 1px; flex: none; }
@media (max-width: 760px) { .plan-grid { grid-template-columns: 1fr; } }
.task-glyph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 14px; background: var(--blue-soft); color: var(--blue); }
.task-glyph svg { width: 38px; height: 38px; }

/* Getting started (a new business's setup checklist). */
.ob-card h2 { margin: 0; }
.ob-progress { height: 10px; border-radius: 999px; background: var(--blue-soft); overflow: hidden; }
.ob-progress span { display: block; height: 100%; border-radius: 999px; background: var(--blue); transition: width 0.3s ease; }
.ob-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--blue); flex: none; }
.ob-steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ob-step { padding: 0; overflow: hidden; }
.ob-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ob-num { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 800; flex: none; }
.ob-num svg { width: 18px; height: 18px; }
.ob-step.done .ob-num { background: var(--green-soft); color: var(--green); }
.ob-step.skipped { opacity: 0.75; }
.ob-body { padding: 0 16px 16px 62px; }
.ob-how { margin: 0; padding-left: 18px; line-height: 22px; }
@media (max-width: 760px) { .ob-body { padding-left: 16px; } }

/* Work orders and other shops' tickets. */
.job-thumb { display: flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue); border-radius: 16px; }
.job-thumb svg { width: 36px; height: 36px; }
.list-row .job-thumb { border-radius: 10px; }
.list-row .job-thumb svg { width: 26px; height: 26px; }
.sig-thumb { width: 120px; height: 48px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: #fff; flex: none; }
.work-order .wo-findings { margin: 12px 0; }
.work-order .wo-approval { margin-top: 14px; padding: 10px 12px; border: 1px solid #c9d4e3; border-radius: 8px; }
.work-order .wo-sig { height: 56px; margin-top: 6px; }
.work-order .wo-approval > div + div { margin-top: 8px; }
.work-order .wo-signline { display: flex; gap: 24px; margin-top: 28px; }
.work-order .wo-signline span { flex: 1; border-top: 1px solid #333; padding-top: 4px; font-size: 12px; color: #555; }
.work-order .wo-signline span:last-child { flex: 0 0 160px; }
.demo-kind { border: 1px solid #D9B46A; border-radius: 999px; padding: 4px 10px; background: #fff; color: #4A3200; font: inherit; font-weight: 800; cursor: pointer; }
@media (max-width: 760px) { .demo-kind { max-width: 130px; } }

/* ---------- goals: tiles you can tap, and the list behind a count ---------- */
.goals-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.goals-tile { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color 0.12s ease-out, box-shadow 0.12s ease-out; }
.goals-tile:hover { border-color: var(--blue); }
.goals-tile:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.goals-tile-open, .goals-tile-open:hover { border-color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.goals-tile-amazing.goals-tile-open { box-shadow: inset 0 0 0 2px var(--navy); }
.goals-tile-d { display: block; }
.goals-detail { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; background: var(--white); border: 1px solid var(--navy); border-radius: var(--r-card); scroll-margin-top: 12px; }
.goals-detail-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.goals-detail-title { display: flex; flex-direction: column; gap: 2px; margin-right: auto; min-width: 0; }
.goals-detail-title h3 { font-size: 16px; line-height: 22px; }
.goals-detail-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.goals-detail-row { display: grid; grid-template-columns: 28px 96px minmax(0, 2fr) minmax(0, 1.4fr) auto 96px 110px; gap: 4px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.goals-detail-when { font-size: 13px; color: var(--slate); white-space: nowrap; }
.goals-detail-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.goals-detail-what { font-weight: 700; overflow-wrap: anywhere; }
.goals-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.goals-detail-actions .btn { min-height: 44px; }
.goals-target-link { min-height: 44px; }
.goals-detail-pieces { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 12px; line-height: 18px; }
.goals-detail-who { min-width: 0; overflow-wrap: anywhere; }
.goals-detail-amt { font-weight: 700; text-align: right; white-space: nowrap; }
.goals-detail-ref { text-align: right; white-space: nowrap; }
.goals-detail-empty { padding: 8px 0; }
.goals-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.goals-group { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--cloud); border: 1px solid var(--border); border-radius: var(--r-card); min-width: 0; }
.goals-group h4 { font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.goals-group-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto 80px; gap: 10px; align-items: center; font-size: 14px; line-height: 20px; min-width: 0; }
.goals-group-name { font-weight: 700; overflow-wrap: anywhere; }
.goals-group-bar { display: block; height: 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--border); overflow: hidden; }
.goals-group-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.goals-group-n { white-space: nowrap; }
.goals-group-amt { text-align: right; white-space: nowrap; }
@media (max-width: 1180px) { .goals-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .goals-detail-row { grid-template-columns: 28px 84px minmax(0, 1fr) auto; grid-template-rows: auto auto; }
  .goals-detail-pick { grid-column: 1; grid-row: 1 / span 2; }
  .goals-detail-when { grid-column: 2; grid-row: 1; }
  .goals-detail-main { grid-column: 3; grid-row: 1; }
  .goals-detail-tag { grid-column: 4; grid-row: 1; }
  .goals-detail-ref { grid-column: 2; grid-row: 2; text-align: left; }
  .goals-detail-who { grid-column: 3; grid-row: 2; }
  .goals-detail-amt { grid-column: 4; grid-row: 2; }
  .goals-groups { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .goals-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goals-detail { padding: 12px; }
  .goals-group-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .goals-group-bar { display: none; }
}

/* ---------- iPhone (375–430): same screens, fitted to the phone. Desktop is unchanged. ---------- */
@media (max-width: 480px) {
  :root { --top-h: calc(120px + env(safe-area-inset-top)); }
  .app { grid-template-rows: var(--top-h) minmax(0, 1fr) auto auto; max-width: 100%; }
  .top {
    flex-wrap: wrap;
    align-content: center;
    height: var(--top-h);
    padding: 8px 10px;
    padding-top: calc(8px + env(safe-area-inset-top));
    gap: 8px;
  }
  .top-search { order: -1; flex: 1 1 100%; max-width: none; min-width: 0; }
  .top-user { margin-left: auto; gap: 6px; }
  .top .top-add, .top .top-cart, .top-badge, .top .icon-btn { flex: none; }
  .main { padding: 12px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .page, .stack, .card { gap: 16px; max-width: 100%; min-width: 0; }
  .page { display: flex; flex-direction: column; }
  .page-head h1 { font-size: 26px; line-height: 32px; }
  .home-hero { padding: 16px; }
  .home-hero .hero-logo, .home-hero .wcw { width: min(240px, 100%); max-width: 100%; min-width: 0; }
  .home-hero .wcw img { max-width: 100%; height: auto; }
  .card { padding: 16px; }
  .grid-2, .grid-3, .form-grid, .tasks, .pay-methods { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .brand-grid { grid-template-columns: 1fr 1fr; }
  .items { grid-template-columns: 1fr; }
  .sale { display: flex; flex-direction: column; gap: 16px; height: auto; }
  .sale .cart { order: -1; position: static; max-height: 70dvh; width: 100%; }
  .cust-search > .row { flex-wrap: wrap; }
  .cust-search > .row > .search { flex: 1 1 160px; min-width: 0; }
  .customer-pill { flex-wrap: wrap; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
  .board-row { grid-template-columns: 44px minmax(0, 1fr); }
  .board-row > :nth-child(3) { grid-column: 2; justify-self: start; }
  .spread { flex-wrap: wrap; min-width: 0; }
  .tabs, .chips, .row-wrap { max-width: 100%; min-width: 0; }
  .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .tabs .tab, .sale-left > .spread > .tabs .tab { flex: 0 0 auto; white-space: nowrap; }
  .btn { white-space: normal; max-width: 100%; text-align: center; }
  .tab, .chip, .btn-sm, .qty button, .menu-edit, .precheck .pc button, .link-btn, .goals-open {
    min-height: 44px;
  }
  .tab, .chip, .btn-sm, .qty button, .menu-edit, .precheck .pc button, .goals-open { min-width: 44px; }
  .chip { padding: 10px 14px; }
  .qty button { width: 44px; height: 44px; }
  .menu-edit { width: 44px; height: 44px; }
  .link-btn { display: inline-flex; align-items: center; }
  input, select, textarea, .input, .select, .textarea { font-size: 16px; }
  .input, .select, .textarea { min-height: 48px; }
  table.table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  table.table thead, table.table tbody, table.table tfoot {
    display: table;
    width: max-content;
    min-width: 100%;
  }
  .bottom-nav {
    height: auto;
    min-height: 56px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .bottom-nav .nav-item { min-height: 44px; min-width: 0; font-size: 11px; line-height: 13px; padding: 4px 1px; }
  .goals-bar { min-width: 0; }
  .goals-scroll { padding: 6px 10px; gap: 8px; }
  .goals-chip { min-height: 72px; padding: 6px 12px 6px 8px; gap: 8px; }
  .goals-chip-v { font-size: 22px; line-height: 26px; }
  .goals-chip-text { min-width: 72px; }
  .goals-candle-xl { width: 30px; height: 60px; }
  .goals-open { min-height: 44px; padding: 8px 12px; }
  .goals-cheer { left: 0; bottom: calc(var(--goals-h, 0px) + 64px + env(safe-area-inset-bottom)); }
  .overlay {
    padding: 0;
    padding-top: env(safe-area-inset-top);
    align-items: flex-end;
  }
  .sheet, .sheet-wide {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - env(safe-area-inset-top) - 8px);
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sheet-head, .sheet-body, .sheet-foot { padding-left: 16px; padding-right: 16px; }
  .sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; }
  .sheet-foot .btn { min-height: 44px; }
  .goals-panel {
    max-height: calc(100dvh - env(safe-area-inset-top));
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: 20px 20px 0 0;
  }
  .gate {
    align-items: flex-start;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    overflow: auto;
  }
  .gate-card { max-width: 100%; }
  .pinpad button { height: 64px; }
  .person { width: calc(50% - 8px); min-width: 132px; min-height: 44px; }
  .sticky-actions { margin-left: 0; margin-right: 0; bottom: 0; }
  .print-tray { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); width: auto; }
  .toasts { top: calc(var(--top-h) + 8px); width: min(560px, calc(100vw - 16px)); }
  .banner { flex-wrap: wrap; }
  .banner .btn { flex: 1 1 100%; }
  .model-head { flex-wrap: wrap; }
  .model-pic { width: 96px; height: 96px; }
  .buy-page { padding-bottom: 16px; }
}

.sheet-bulk { max-width: min(1180px, calc(100vw - 32px)); }
.bulk-scroll { overflow-x: auto; max-width: 100%; }
.bulk-grid { border-collapse: collapse; width: 100%; min-width: 1040px; }
.bulk-grid th { text-align: left; font-size: 12px; line-height: 16px; color: var(--slate); font-weight: 700; padding: 4px 4px 8px; white-space: nowrap; }
.bulk-grid td { padding: 4px; vertical-align: top; }
.bulk-grid .input, .bulk-grid .select { min-height: 40px; padding: 8px 10px; }
.bulk-actions { white-space: nowrap; }
.bulk-actions .btn { margin-right: 4px; }
.bulk-totals { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; font-weight: 700; }
.bulk-error td { padding-top: 0; }
.inv-sticker-row { flex-wrap: wrap; align-items: center; }
.inv-sticker-row .main-col { min-width: 0; }

@media (max-width: 720px) {
  .bulk-scroll { overflow: visible; }
  .bulk-grid { min-width: 0; }
  .bulk-grid, .bulk-grid tbody, .bulk-grid tr, .bulk-grid td { display: block; width: 100%; }
  .bulk-grid thead { display: none; }
  .bulk-grid tr { border: 1px solid var(--border); border-radius: 16px; padding: 12px; margin: 0 0 12px; background: var(--white); }
  .bulk-grid td { padding: 6px 0; }
  .bulk-grid td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--slate); margin-bottom: 4px; }
  .bulk-grid tr.bulk-error { border: 0; padding: 0; margin: -4px 0 12px; background: transparent; }
  .bulk-actions { white-space: normal; }
}
