/* Tournée CRM — pure CSS, mobile-first, no framework. */

:root {
  --font-sans: 'Geist', ui-sans-serif, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f4f3f0;
  --surface-3: #ebeae6;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --text: #0a0a0a;
  --muted: #71717a;
  --faint: #a1a1aa;

  --accent: #65a30d;
  --accent-soft: rgba(101, 163, 13, 0.12);
  --accent-txt: #fafaf9;

  --c-blue:   #3b82f6;
  --c-violet: #7c3aed;
  --c-cyan:   #0891b2;
  --c-amber:  #d97706;
  --c-red:    #dc2626;
  --c-green:  #65a30d;

  --pad: 16px;
  --radius: 16px;
  --radius-sm: 10px;

  /* App width caps content reading width on large screens without forcing
     a phone-like frame. Content is left-aligned full-bleed up to this width.
     Tablets/desktop just get wider grids inside the same shell. */
  --content-max: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  min-height: 100vh;
}
button, input, textarea, select { font-family: inherit; color: inherit; }
button { cursor: pointer; }

/* ───────── App shell ───────── */
.app {
  position: relative;
  margin: 0 auto;
  width: 100%;
  min-height: 100dvh;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Respect notches on edge-to-edge devices */
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.view {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px;
}
.view::-webkit-scrollbar { display: none; }

/* On large screens, keep content readable by capping width inside each
   section, but never letterbox the shell itself. */
.view > * {
  width: 100%;
  margin-left: auto; margin-right: auto;
}
@media (min-width: 720px) {
  .view > * { max-width: var(--content-max); }
  .header.large h1 { font-size: 34px; }
}

/* ───────── Typography ───────── */
h1, h2, h3 { margin: 0; letter-spacing: -0.5px; }
.font-mono { font-family: var(--font-mono); }

/* ───────── Header ───────── */
.header {
  padding: 14px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
}
.header.large { align-items: flex-start; padding: 18px 20px 12px; }
.header .h-text { flex: 1; min-width: 0; }
.header h1 {
  font-size: 20px; font-weight: 700; letter-spacing: -0.6px;
  line-height: 1.1; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.header.large h1 { font-size: 28px; letter-spacing: -1px; }
.header .subtitle {
  font-size: 12px; color: var(--muted); font-weight: 500;
  letter-spacing: -0.1px; margin-bottom: 2px;
}
.header .actions { display: flex; gap: 6px; flex-shrink: 0; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  transition: background .12s;
}
.icon-btn:active { background: var(--surface-3); }
.icon-btn .badge {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent);
  border: 1.5px solid var(--bg);
}

/* Back button (used in overlays) */
.back-btn {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); flex-shrink: 0;
}

/* ───────── Section title ───────── */
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 4px 8px; gap: 8px;
}
.section-title h3 {
  font-size: 12px; font-weight: 600; color: var(--muted);
  letter-spacing: 0.3px; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.section-title .action {
  border: 0; background: transparent;
  color: var(--accent); font-size: 13px; font-weight: 600; padding: 0;
  white-space: nowrap; flex-shrink: 0;
}

/* ───────── Card ───────── */
.card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.card.no-pad { padding: 0; }
.card.elevated {
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 1px 3px rgba(0,0,0,.04),
    0 8px 24px -12px rgba(0,0,0,.08);
}

/* ───────── Tags & Chips ───────── */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 8px;
  border-radius: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1px;
  white-space: nowrap; flex-shrink: 0;
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border-radius: 999px;
  border: 0.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px; font-weight: 500; letter-spacing: -0.1px;
  white-space: nowrap;
}
.chip.active {
  background: var(--text); color: var(--bg);
  border-color: var(--text);
}

/* horizontal scroll row of chips */
.chip-row {
  overflow-x: auto; padding: 0 20px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip-row .chip-inner {
  display: flex; gap: 6px; width: max-content;
}

/* ───────── Avatar ───────── */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; letter-spacing: -0.3px;
  flex-shrink: 0;
}

/* ───────── Stat tile ───────── */
.stat-grid {
  padding: 0 20px 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.stat-tile {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px;
  border: 0.5px solid var(--border);
  position: relative;
  overflow: hidden;
}
.stat-tile .icon-corner {
  position: absolute; top: 12px; right: 12px;
  opacity: 0.6;
}
.stat-tile .label {
  font-size: 11.5px; color: var(--muted); font-weight: 500;
  margin-bottom: 10px; padding-right: 18px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stat-tile .value {
  font-family: var(--font-mono);
  font-size: 28px; font-weight: 600;
  letter-spacing: -1.2px; line-height: 1;
  color: var(--text);
}
.stat-tile .sub {
  margin-top: 6px; font-size: 11px; color: var(--muted); letter-spacing: -0.05px;
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border-radius: 14px;
  border: 0.5px solid var(--accent);
  background: var(--accent); color: var(--accent-txt);
  font-size: 15px; font-weight: 600; letter-spacing: -0.2px;
  white-space: nowrap;
  transition: transform .08s, opacity .12s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.full { width: 100%; }
.btn.lg { height: 52px; font-size: 16px; }
.btn.sm { height: 32px; font-size: 13px; padding: 0 12px; border-radius: 10px; }
.btn.secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn.ghost { background: transparent; border-color: transparent; color: var(--text); }
.btn.outline { background: transparent; border-color: var(--border); color: var(--text); }

/* ───────── Form fields ───────── */
.label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.4px;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 6px;
}
.field, .textarea, .drop-trigger {
  width: 100%; box-sizing: border-box;
  min-height: 46px; padding: 12px 14px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  outline: 0;
  font-size: 15px; color: var(--text);
  font-family: inherit;
}
.field:focus, .textarea:focus { border-color: var(--border-strong); }
.textarea { resize: none; min-height: 90px; line-height: 1.45; }
.drop-trigger {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.2px;
  text-align: left;
  color: var(--text);
}
.drop-trigger.empty { color: var(--faint); font-weight: 500; }
.drop-trigger:disabled { opacity: 0.5; cursor: not-allowed; }
.drop-trigger > span:first-child {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Search field */
.search-field {
  display: flex; gap: 8px; padding: 4px 20px 12px;
}
.search-input {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px;
  background: var(--surface-2);
  border-radius: 12px;
  border: 0.5px solid var(--border);
}
.search-input input {
  flex: 1; border: 0; background: transparent; outline: 0;
  font-size: 14px; color: var(--text);
}

/* Toggle switch */
.toggle {
  width: 44px; height: 26px; border-radius: 999px;
  background: #d4d4d4; border: 0;
  position: relative; padding: 0; flex-shrink: 0;
  transition: background .15s;
}
.toggle[data-on="true"] { background: var(--accent); }
.toggle i {
  position: absolute; top: 2px; left: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .15s;
}
.toggle[data-on="true"] i { transform: translateX(18px); }

/* Tab bar (segmented) */
.tabbar {
  display: flex; gap: 6px; padding: 4px;
  margin: 0 20px 12px;
  background: var(--surface-2);
  border-radius: 12px;
  border: 0.5px solid var(--border);
}
.tabbar button {
  flex: 1; height: 32px; border-radius: 9px;
  border: 0; background: transparent;
  color: var(--muted);
  font-size: 13px; font-weight: 500; letter-spacing: -0.1px;
  transition: background .14s, color .14s;
}
.tabbar button.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

/* ───────── Bottom Navigation ───────── */
.bottom-nav {
  flex-shrink: 0;
  padding: 6px 12px;
  padding-bottom: calc(env(safe-area-inset-bottom, 14px) + 6px);
  background: var(--bg);
  box-sizing: border-box;
  display: flex; justify-content: center;
  border-top: 0.5px solid var(--border);
}
.bottom-nav-inner {
  width: 100%;
  max-width: var(--content-max);
  height: 60px;
  background: var(--surface);
  border-radius: 20px;
  border: 0.5px solid var(--border);
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 8px 24px -8px rgba(0,0,0,.12),
    0 2px 8px rgba(0,0,0,.04);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  align-items: center;
}
.bottom-nav button:not(.fab) {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: transparent; border: 0;
  color: var(--muted);
  height: 60px; justify-content: center;
  padding: 0;
}
.bottom-nav button.active { color: var(--text); }
.bottom-nav button span { font-size: 10px; font-weight: 500; letter-spacing: -0.1px; }
.bottom-nav button.active span { font-weight: 600; }

.fab-slot { display: flex; justify-content: center; }
.bottom-nav button.fab,
.fab {
  width: 50px !important; height: 50px !important; border-radius: 17px !important;
  background: var(--accent) !important; color: var(--accent-txt) !important;
  border: 0 !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  margin-top: -20px !important;
  box-shadow: 0 8px 18px -4px rgba(101, 163, 13, 0.45), 0 2px 4px rgba(0,0,0,.15) !important;
  padding: 0 !important;
}

/* ───────── Sheets / Overlays ───────── */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.34);
  z-index: 100;
  display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center;
  animation: fadeIn .18s;
}
.sheet {
  width: 100%;
  max-width: var(--content-max);
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  max-height: 78dvh;
  overflow-y: auto;
  padding-bottom: calc(38px + env(safe-area-inset-bottom, 0));
  scrollbar-width: none;
  animation: slideUp .26s cubic-bezier(.32,.72,0,1);
}
.sheet::-webkit-scrollbar { display: none; }
.sheet-handle {
  display: flex; justify-content: center; padding: 10px 0 4px;
}
.sheet-handle i {
  width: 36px; height: 4px; border-radius: 999px;
  background: rgba(0,0,0,.15);
}
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 20px 12px;
}
.sheet-head .title { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.sheet-close {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2);
  border: 0; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.sheet-row {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  background: transparent; border: 0; text-align: left;
}
.sheet-row:active { background: var(--surface-2); }

@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* Full-screen overlay screens (perform visit / new order / add client) */
.overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 80;
  display: flex; flex-direction: column;
  animation: slideUp .26s cubic-bezier(.32,.72,0,1);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}
.overlay-body { flex: 1; overflow-y: auto; scrollbar-width: none; }
.overlay-body::-webkit-scrollbar { display: none; }
.overlay-body > * {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto; margin-right: auto;
}
.overlay > .header,
.overlay > div[style*="position:sticky"] {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto; margin-right: auto;
}

/* ───────── Toast ───────── */
.toast {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  top: calc(24px + env(safe-area-inset-top, 0));
  width: calc(100% - 32px); max-width: calc(var(--content-max) - 32px);
  background: #0a0a0a; color: #fafafa;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  font-size: 14px; font-weight: 500;
  z-index: 200;
  animation: toastIn .25s cubic-bezier(.32,.72,0,1);
}
@keyframes toastIn {
  from { transform: translate(-50%, -12px); opacity: 0; }
  to   { transform: translate(-50%, 0); opacity: 1; }
}

/* ───────── Visit list / Order card etc ───────── */
.list-divider > * + * {
  border-top: 0.5px solid var(--border);
}

.empty {
  padding: 60px 24px;
  text-align: center;
}
.empty .e-icon {
  width: 56px; height: 56px; border-radius: 18px;
  margin: 0 auto 14px;
  background: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.empty .e-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.empty .e-sub { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ───────── Hero card (dashboard) ───────── */
.hero {
  margin: 4px 20px 14px;
  padding: 16px;
  background: linear-gradient(135deg, #1a1a1a 0%, #262626 100%);
  border-radius: var(--radius);
  color: #fafafa;
  display: flex; align-items: center; gap: 16px;
}

/* Progress ring (SVG-based, sized via CSS) */
.ring { position: relative; width: 72px; height: 72px; flex-shrink: 0; }
.ring svg { transform: rotate(-90deg); }
.ring .pct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 18px; font-weight: 700;
  letter-spacing: -0.6px; color: #fafafa;
}

/* Weekly chart bars */
.chart {
  display: flex; align-items: flex-end; gap: 8px;
  height: 100px; padding: 4px 2px 0;
}
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.chart .col .v {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--muted);
}
.chart .col.today .v, .chart .col.today .d {
  color: var(--text); font-weight: 700;
}
.chart .col .bar {
  width: 100%; border-radius: 6px;
  background: rgba(10,10,10,.08);
  min-height: 2px;
}
.chart .col.today .bar { background: var(--accent); }
.chart .col .d { font-size: 10px; color: var(--muted); font-weight: 500; }

/* Map strip (svg pattern) */
.map-strip {
  height: 84px;
  background: #f5f5f4;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  position: relative;
  overflow: hidden;
}
.map-strip .meta {
  position: absolute; top: 8px; left: 10px;
  font-size: 10px; color: var(--muted);
  background: rgba(255,255,255,.85);
  padding: 2px 6px; border-radius: 6px; font-weight: 500;
}

/* Week strip (schedule) */
.week-strip {
  padding: 0 16px 12px;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.day-cell {
  position: relative;
  aspect-ratio: 1 / 1.25;
  border-radius: 13px;
  border: 0.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 4px;
}
.day-cell.today { background: var(--surface-2); }
.day-cell.selected {
  background: var(--text); color: var(--bg);
  border-color: var(--text);
}
.day-cell .dow { font-size: 10px; font-weight: 600; opacity: 0.7; letter-spacing: 0.4px; }
.day-cell .day-num {
  font-family: var(--font-mono);
  font-size: 17px; font-weight: 700; letter-spacing: -0.5px;
  line-height: 1;
}
.day-cell .dots {
  position: absolute; bottom: 5px;
  display: flex; gap: 2px;
}
.day-cell .dots i {
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.day-cell.selected .dots i { background: var(--bg); }

/* Type selector (add client) */
.type-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 18px;
}
.type-card {
  position: relative;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  transition: background .14s, border-color .14s;
  text-align: left;
}
.type-card .ic {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.type-card .t-name { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: -0.2px; }
.type-card .t-en   { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.type-card.on .check {
  position: absolute; top: 8px; right: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}

/* QtyStepper */
.stepper {
  display: inline-flex; align-items: center;
  height: 32px; border-radius: 10px;
  border: 0.5px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  flex-shrink: 0;
}
.stepper button {
  width: 30px; height: 100%;
  background: transparent; border: 0; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
}
.stepper .val {
  min-width: 28px; text-align: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--text);
}

/* Cart bar (new order) */
.cart-bar {
  position: sticky; bottom: 16px;
  margin: 0 16px;
  background: var(--text); color: var(--bg);
  border-radius: 18px;
  padding: 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,.35);
  z-index: 10;
}
.cart-bar .total {
  font-family: var(--font-mono); font-size: 20px; font-weight: 700;
  letter-spacing: -0.5px; line-height: 1; margin-top: 2px;
}
.cart-bar .submit {
  height: 42px; padding: 0 18px; border-radius: 12px;
  background: var(--accent); color: var(--accent-txt); border: 0;
  font-weight: 700; font-size: 14px; letter-spacing: -0.2px;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.cart-bar .submit:disabled { opacity: 0.4; cursor: not-allowed; }

/* Banner (e.g. médecin warning) */
.banner {
  padding: 12px 14px;
  background: #fef3c7;
  border: 0.5px solid #fcd34d;
  border-radius: 12px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: #92400e; line-height: 1.4;
}

/* Picker rows (new order) */
.picker-row {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  text-align: left;
}
.picker-row .ic {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); flex-shrink: 0;
}
.picker-row .lbl {
  font-size: 10.5px; font-weight: 600;
  color: var(--muted); letter-spacing: 0.4px; text-transform: uppercase;
  margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.picker-row .val {
  font-size: 14px; font-weight: 500; color: var(--text); letter-spacing: -0.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.picker-row .val.empty { color: var(--faint); font-weight: 500; }
.picker-row .hint {
  font-size: 11px; color: var(--muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Generic row */
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
}
.row .ic-sq {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--surface-2); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* GPS preview */
.gps-card { overflow: hidden; }
.gps-card .gps-map {
  height: 120px; background: #f5f5f4; position: relative;
}
.gps-card .gps-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.gps-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--text); color: var(--bg);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
}

/* Sticky CTA at the bottom of forms */
.sticky-cta {
  position: sticky; bottom: 0;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(250,249,247,0), var(--bg) 40%);
  margin-top: 18px;
}

/* Stripe inputs in steppers etc - prevent default arrow controls */
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
