body.m-app {
  --m-primary: #3f7df4;
  --m-primary-strong: #2f6bea;
  --m-primary-soft: #eaf2ff;
  --m-bg: #f4f7fb;
  --m-surface: #ffffff;
  --m-surface-soft: #f8fafc;
  --m-text: #24272d;
  --m-text-muted: #7a808a;
  --m-text-faint: #aeb4be;
  --m-border: #e7ebf1;
  --m-danger: #ef4444;
  --m-warning: #f59e0b;
  --m-success: #16a34a;
  --m-radius-lg: 22px;
  --m-radius-md: 16px;
  --m-radius-sm: 12px;
  --m-shadow-card: 0 8px 22px rgba(15, 23, 42, 0.10);
  --m-shadow-soft: 0 4px 14px rgba(15, 23, 42, 0.07);
  --m-header-h: 64px;
  --m-tabbar-h: 86px;
  --m-cta-h: 58px;
  min-height: 100%;
  margin: 0;
  background: var(--m-bg);
  color: var(--m-text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.m-app *,
.m-app *::before,
.m-app *::after { box-sizing: border-box; }

.m-app a { color: inherit; text-decoration: none; }
.m-app button,
.m-app input,
.m-app textarea,
.m-app select { font: inherit; }
.m-app button { cursor: pointer; }
.m-app button:disabled,
.m-app .is-disabled { cursor: not-allowed; opacity: .56; }
.m-app img { max-width: 100%; display: block; }
.m-app [hidden] { display: none !important; }

.m-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--m-bg);
}

.m-page.is-white { background: #fff; }

.m-content {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 18px 22px calc(var(--m-tabbar-h) + env(safe-area-inset-bottom) + 18px);
}

.m-content.m-content-cta {
  padding-bottom: calc(var(--m-cta-h) + env(safe-area-inset-bottom) + 42px);
}

.m-content.m-content-pay {
  padding-bottom: calc(var(--m-cta-h) + env(safe-area-inset-bottom) + 42px);
}

.m-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(231, 235, 241, .76);
  padding: env(safe-area-inset-top) 16px 0;
}

.m-topbar-inner {
  width: min(100%, 640px);
  height: var(--m-header-h);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 8px;
}

.m-topbar-home .m-topbar-inner {
  min-height: 88px;
  height: auto;
  padding: 14px 0 16px;
  grid-template-columns: 1fr auto;
}

.m-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.m-brand img { height: 24px; width: auto; }
.m-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: inline-grid;
  place-items: center;
  background: var(--m-primary);
  color: #fff;
  box-shadow: var(--m-shadow-soft);
  font-weight: 900;
}

.m-topbar-title {
  margin: 0;
  text-align: center;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.03em;
}

.m-topbar-action,
.m-icon-button {
  min-width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--m-text);
  background: #f2f4f7;
}

.m-topbar-action.is-ghost { background: transparent; }

.m-chip-link,
.m-chip-button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f2f4f7;
  color: var(--m-text);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.m-chip-link.is-primary,
.m-chip-button.is-primary { background: var(--m-primary); color: #fff; }

.m-title-xl {
  margin: 0;
  font-size: clamp(30px, 8vw, 34px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -.055em;
}

.m-title-lg {
  margin: 0;
  font-size: 25px;
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -.04em;
}

.m-title-md {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -.035em;
}

.m-text,
.m-app p {
  font-size: 15px;
  line-height: 1.58;
}

.m-muted { color: var(--m-text-muted); }
.m-faint { color: var(--m-text-faint); }
.m-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: -.02em; }
.m-clamp { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }

.m-card {
  border: 1px solid rgba(231, 235, 241, .78);
  border-radius: var(--m-radius-lg);
  background: var(--m-surface);
  box-shadow: var(--m-shadow-card);
  padding: 22px;
}

.m-card + .m-card { margin-top: 16px; }
.m-card-soft { background: var(--m-primary-soft); border-color: rgba(63, 125, 244, .10); box-shadow: none; }
.m-card-flat { box-shadow: none; }
.m-section { margin-top: 18px; }
.m-section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 24px 0 12px; }
.m-section-head h2 { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: -.035em; }
.m-section-head p { margin: 4px 0 0; color: var(--m-text-muted); }

.m-stack { display: grid; gap: 14px; }
.m-row { display: flex; align-items: center; gap: 10px; }
.m-spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.m-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.m-btn {
  min-height: 56px;
  border: 0;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  background: var(--m-primary);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 10px 18px rgba(63, 125, 244, .22);
}

.m-btn:hover { text-decoration: none; }
.m-btn:active { transform: translateY(1px); }
.m-btn-secondary { background: var(--m-primary-soft); color: var(--m-primary-strong); box-shadow: none; }
.m-btn-ghost { background: #fff; color: var(--m-text); border: 1px solid var(--m-border); box-shadow: none; }
.m-btn-danger { background: var(--m-danger); color: #fff; box-shadow: 0 10px 18px rgba(239, 68, 68, .18); }
.m-btn-wide { width: 100%; }
.m-btn-sm { min-height: 44px; border-radius: 14px; font-size: 14px; padding: 0 14px; }

.m-field { display: grid; gap: 9px; }
.m-field label,
.m-label { font-size: 17px; font-weight: 850; letter-spacing: -.025em; }
.m-field small { color: var(--m-text-muted); font-size: 13px; line-height: 1.45; }
.m-field input,
.m-field textarea,
.m-field select,
.m-input {
  width: 100%;
  min-height: 60px;
  border: 1px solid #e4e7ec;
  border-radius: 17px;
  background: #fff;
  color: var(--m-text);
  padding: 0 18px;
  font-size: 16px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.m-field textarea { min-height: 108px; padding-top: 16px; resize: vertical; }
.m-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8b95a1 50%), linear-gradient(135deg, #8b95a1 50%, transparent 50%); background-position: calc(100% - 22px) 26px, calc(100% - 16px) 26px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 42px; }
.m-field input:focus,
.m-field textarea:focus,
.m-field select:focus,
.m-input:focus { border-color: var(--m-primary); box-shadow: 0 0 0 4px rgba(63, 125, 244, .13); }
.m-field input::placeholder,
.m-field textarea::placeholder { color: var(--m-text-faint); }
.m-error-text { color: var(--m-danger); font-size: 13px; font-weight: 700; }

.m-pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.m-pill {
  min-height: 44px;
  border: 1px solid var(--m-border);
  border-radius: 999px;
  background: #fff;
  color: var(--m-text);
  padding: 0 15px;
  font-weight: 800;
  white-space: nowrap;
}
.m-pill[aria-pressed="true"],
.m-pill.is-active { border-color: transparent; background: var(--m-primary); color: #fff; }

.m-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  min-height: calc(74px + env(safe-area-inset-bottom));
  padding: 7px max(12px, env(safe-area-inset-left)) env(safe-area-inset-bottom) max(12px, env(safe-area-inset-right));
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid #edf0f4;
  backdrop-filter: blur(18px);
}

.m-tabbar-inner {
  width: min(100%, 640px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.m-tabbar a {
  min-height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: #aeb4be;
  font-size: 12px;
  font-weight: 700;
}

.m-tabbar svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.m-tabbar a[aria-current="page"] { color: var(--m-primary); background: var(--m-primary-soft); font-weight: 900; }

.m-bottom-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 42;
  padding: 12px max(18px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-right));
  background: rgba(244, 247, 251, .94);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(231, 235, 241, .75);
}
.m-bottom-cta-inner { width: min(100%, 640px); margin: 0 auto; display: grid; gap: 8px; }

.m-status-banner,
.m-live-message {
  border-radius: 16px;
  padding: 13px 14px;
  background: var(--m-surface-soft);
  color: var(--m-text-muted);
  border: 1px solid var(--m-border);
  font-size: 14px;
  line-height: 1.45;
}
.m-live-message:empty { display: none; }
.m-live-message.error,
.m-status-banner.error { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
.m-live-message.success,
.m-status-banner.success { background: #ecfdf5; border-color: #bbf7d0; color: #166534; }
.m-live-message.warning,
.m-status-banner.warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.m-live-message.info,
.m-status-banner.info { background: var(--m-primary-soft); border-color: rgba(63, 125, 244, .18); color: var(--m-primary-strong); }

.m-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  background: #eef2ff;
  color: #3152b5;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.m-badge.success { background: #ecfdf5; color: #166534; }
.m-badge.warning { background: #fffbeb; color: #92400e; }
.m-badge.danger { background: #fff1f2; color: #be123c; }
.m-badge.neutral { background: #f1f5f9; color: #475569; }

.m-info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.m-info-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--m-border); }
.m-info-list li:last-child { border-bottom: 0; }
.m-info-list strong { min-width: 88px; color: var(--m-text-muted); font-size: 13px; font-weight: 800; }
.m-info-list span { text-align: right; font-size: 15px; font-weight: 750; overflow-wrap: anywhere; }

.m-timeline { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.m-timeline li { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.m-timeline li::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: -10px; width: 2px; background: #dbe3ef; }
.m-timeline li:last-child::before { display: none; }
.m-timeline b { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: #e2e8f0; color: #64748b; font-size: 12px; }
.m-timeline strong { display: block; font-size: 15px; font-weight: 900; }
.m-timeline small { color: var(--m-text-muted); line-height: 1.4; }
.m-timeline li.is-done b { background: var(--m-primary); color: #fff; }
.m-timeline li.is-active b { background: var(--m-primary-strong); color: #fff; box-shadow: 0 0 0 5px rgba(63, 125, 244, .14); }
.m-timeline li.is-active strong { color: var(--m-primary-strong); }

.m-empty {
  min-height: 330px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 14px;
}
.m-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 25px;
  display: grid;
  place-items: center;
  background: var(--m-primary-soft);
  color: var(--m-primary);
}
.m-empty h2,
.m-empty h3 { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: -.04em; }
.m-empty p { margin: 0; color: var(--m-text-muted); max-width: 320px; }

.m-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--m-tabbar-h) + env(safe-area-inset-bottom) + 12px);
  z-index: 80;
  max-width: min(92vw, 520px);
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  border-radius: 16px;
  padding: 13px 15px;
  background: #111827;
  color: #fff;
  font-weight: 750;
  font-size: 14px;
  line-height: 1.45;
  transition: opacity .18s ease, transform .18s ease;
}
.m-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.m-toast.is-error { background: #991b1b; }
.m-toast.is-success { background: #166534; }

.m-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  background: rgba(244, 247, 251, .76);
  backdrop-filter: blur(8px);
}
.m-loading-overlay.is-visible { display: grid; }
.m-loading-box { width: min(82vw, 320px); border-radius: 24px; background: #fff; padding: 28px; box-shadow: var(--m-shadow-card); text-align: center; }
.m-spinner { width: 38px; height: 38px; margin: 0 auto 12px; border-radius: 50%; border: 4px solid #dbeafe; border-top-color: var(--m-primary); animation: m-spin .72s linear infinite; }
.m-loading-box p { margin: 0; font-weight: 800; }

@keyframes m-spin { to { transform: rotate(360deg); } }

.m-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (min-width: 768px) {
  .m-content { padding-left: 28px; padding-right: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .m-app *,
  .m-app *::before,
  .m-app *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

.m-topbar-spacer {
  min-width: 44px;
  min-height: 44px;
  display: block;
}

/* Flow/history additions */
.m-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
  padding: 16px 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--m-border);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  text-decoration: none;
  color: var(--m-text);
}
.m-list-row strong { display: block; font-size: 16px; font-weight: 950; letter-spacing: -.03em; }
.m-list-row small { display: block; margin-top: 4px; color: var(--m-text-muted); font-size: 13px; line-height: 1.35; }
.m-profile-card { display: grid; gap: 12px; }
.m-profile-avatar {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--m-primary), var(--m-primary-strong));
  font-size: 24px;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(47, 107, 234, .24);
}

.m-payment-prompt {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: end;
  justify-content: center;
}
.m-payment-prompt.is-visible { display: flex; }
.m-payment-prompt-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(10px);
}
.m-payment-prompt-sheet {
  position: relative;
  width: min(100%, 430px);
  margin: 0 auto;
  border-radius: 28px 28px 0 0;
  background: #fff;
  padding: 24px 18px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -22px 60px rgba(15, 23, 42, .24);
  display: grid;
  gap: 12px;
}
.m-payment-prompt-sheet h2 { margin: 0; font-size: 24px; font-weight: 950; letter-spacing: -.04em; }
.m-payment-prompt-sheet p { margin: 0; color: var(--m-text-muted); line-height: 1.45; }
.m-payment-prompt-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--m-primary-soft);
  color: var(--m-primary-strong);
  font-weight: 950;
  font-size: 22px;
}
@media (min-width: 768px) {
  .m-payment-prompt { align-items: center; }
  .m-payment-prompt-sheet { border-radius: 28px; padding-bottom: 24px; }
}

/* 2026-06-18 UI polish pass: CSS-only visual refinement, no JS hooks changed. */
body.m-app {
  --m-bg: #f5f7fb;
  --m-surface-soft: #f8fbff;
  --m-border: #e3e8f2;
  --m-shadow-card: 0 18px 42px rgba(15, 23, 42, .095);
  --m-shadow-soft: 0 10px 28px rgba(15, 23, 42, .07);
  background:
    radial-gradient(circle at 12% -8%, rgba(63, 125, 244, .12), transparent 32%),
    radial-gradient(circle at 92% 4%, rgba(15, 23, 42, .06), transparent 26%),
    var(--m-bg);
  -webkit-tap-highlight-color: rgba(63, 125, 244, .14);
}

.m-page {
  background:
    linear-gradient(180deg, rgba(255,255,255,.66) 0%, rgba(245,247,251,0) 280px),
    var(--m-bg);
}

.m-content {
  padding-top: 20px;
}

.m-card {
  border-color: rgba(226, 232, 240, .82);
  box-shadow: var(--m-shadow-card);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.m-card-flat,
.m-card-soft {
  box-shadow: 0 10px 26px rgba(15, 23, 42, .045);
}

.m-topbar {
  background: rgba(255, 255, 255, .86);
  border-bottom-color: rgba(226, 232, 240, .64);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
}

.m-topbar-action,
.m-icon-button,
.m-chip-link,
.m-chip-button {
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease;
}

.m-topbar-action:active,
.m-icon-button:active,
.m-chip-link:active,
.m-chip-button:active {
  transform: translateY(1px) scale(.98);
}

.m-btn {
  position: relative;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, opacity .16s ease;
}

.m-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  opacity: .72;
  pointer-events: none;
}

.m-btn-secondary::after,
.m-btn-ghost::after { opacity: .28; }

.m-btn:focus-visible,
.m-topbar-action:focus-visible,
.m-icon-button:focus-visible,
.m-chip-link:focus-visible,
.m-chip-button:focus-visible,
.m-tabbar a:focus-visible,
.m-pill:focus-visible,
.m-option-card:focus-visible {
  outline: 3px solid rgba(63, 125, 244, .24);
  outline-offset: 3px;
}

.m-field input,
.m-field textarea,
.m-field select,
.m-input {
  border-color: rgba(203, 213, 225, .9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.m-field input:focus,
.m-field textarea:focus,
.m-field select:focus,
.m-input:focus {
  background: #fff;
}

.m-tabbar {
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.86) 22%, rgba(255,255,255,.96));
  border-top: 0;
  padding-top: 9px;
}

.m-tabbar-inner {
  padding: 6px;
  border: 1px solid rgba(226, 232, 240, .86);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .13);
  backdrop-filter: blur(18px);
}

.m-tabbar a {
  min-height: 54px;
  border-radius: 22px;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.m-tabbar a:active { transform: scale(.98); }

.m-tabbar a[aria-current="page"] {
  box-shadow: inset 0 0 0 1px rgba(63, 125, 244, .10);
}

.m-badge {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.42);
}

.m-list-row,
.m-customer-list-row,
.m-driver-list-row {
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.m-list-row:active,
.m-customer-list-row:active,
.m-driver-list-row:active {
  transform: scale(.99);
}

.m-empty-icon,
.m-payment-prompt-icon {
  box-shadow: inset 0 0 0 1px rgba(63, 125, 244, .08);
}

@media (hover: hover) and (pointer: fine) {
  .m-card:hover,
  .m-list-row:hover,
  .m-customer-list-row:hover,
  .m-driver-list-row:hover {
    transform: translateY(-1px);
  }
  .m-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(63, 125, 244, .24);
  }
  .m-btn-secondary:hover,
  .m-btn-ghost:hover { box-shadow: 0 10px 22px rgba(15, 23, 42, .07); }
}

@media (max-width: 360px) {
  .m-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .m-title-xl { font-size: 29px; }
  .m-card { padding: 18px; border-radius: 20px; }
  .m-grid-2 { grid-template-columns: 1fr; }
  .m-tabbar { padding-left: 9px; padding-right: 9px; }
  .m-tabbar-inner { gap: 2px; padding: 5px; }
  .m-tabbar a { font-size: 11px; border-radius: 18px; }
}

/* FinalV9 mobile surface refinement: softer shadow boundaries, less boxed borders. */
body.m-app {
  --m-border: rgba(226, 232, 240, .58);
  --m-shadow-card: 0 22px 54px rgba(15, 23, 42, .085);
  --m-shadow-soft: 0 14px 34px rgba(15, 23, 42, .058);
}

.m-card,
.m-list-row,
.m-customer-list-row,
.m-driver-list-row,
.m-driver-ride-card,
.m-driver-mission-card,
.m-driver-call-card,
.m-driver-nav-card,
.m-driver-summary-card,
.m-driver-stat,
.m-counter,
.m-option-card,
.m-customer .m-quick-card,
.m-customer .m-trust-item,
.m-customer .m-help-link {
  border-color: rgba(255, 255, 255, .62) !important;
  background: rgba(255, 255, 255, .90);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .075) !important;
}

.m-card-soft,
.m-card-flat {
  border-color: rgba(255, 255, 255, .52) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .052) !important;
}

.m-field input,
.m-field textarea,
.m-field select,
.m-input {
  border-color: rgba(203, 213, 225, .64);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .035), inset 0 0 0 1px rgba(255,255,255,.78);
}

.m-field input:focus,
.m-field textarea:focus,
.m-field select:focus,
.m-input:focus {
  border-color: rgba(63, 125, 244, .52);
  box-shadow: 0 12px 28px rgba(63, 125, 244, .10), 0 0 0 4px rgba(63, 125, 244, .12);
}

.m-info-list li {
  border-bottom-color: rgba(226, 232, 240, .64);
}

/* FinalV12: non-admin mobile surfaces use shadow separation instead of boxed outlines. */
body.m-app {
  --m-border: rgba(226, 232, 240, .26);
  --m-shadow-card: 0 24px 62px rgba(15, 23, 42, .060);
  --m-shadow-soft: 0 14px 40px rgba(15, 23, 42, .045);
}

body.m-app .m-topbar {
  border-bottom-color: transparent;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .050);
}

body.m-app .m-card,
body.m-app .m-card-soft,
body.m-app .m-card-flat,
body.m-app .m-hero-card,
body.m-app .m-quick-card,
body.m-app .m-trust-item,
body.m-app .m-list-row,
body.m-app .m-customer-list-row,
body.m-app .m-driver-list-row,
body.m-app .m-ride-card,
body.m-app .m-route-card,
body.m-app .m-status-current,
body.m-app .m-status-banner,
body.m-app .m-status-lookup,
body.m-app .m-status-result,
body.m-app .m-payment-link-card,
body.m-app .m-payment-notice,
body.m-app .m-payment-prompt,
body.m-app .m-pay-amount-card,
body.m-app .m-pay-coupon-card,
body.m-app .m-pay-coupon-option,
body.m-app .m-pay-result-view,
body.m-app .m-quote-card,
body.m-app .m-dashboard-hero,
body.m-app .m-dashboard-actions,
body.m-app .m-profile-card,
body.m-app .m-customer-profile-card,
body.m-app .m-coupon-wallet-card,
body.m-app .m-coupon-wallet-item,
body.m-app .m-coupon-wallet-summary span,
body.m-app .m-help-card,
body.m-app .m-help-link,
body.m-app .m-empty,
body.m-app .m-empty-icon,
body.m-app .m-counter,
body.m-app .m-option-card,
body.m-app .m-book-progress,
body.m-app .m-datetime-trigger,
body.m-app .m-picker-dialog,
body.m-app .m-driver-hero,
body.m-app .m-driver-page-title-card,
body.m-app .m-driver-profile-card,
body.m-app .m-driver-ride-card,
body.m-app .m-driver-mission-card,
body.m-app .m-driver-call-card,
body.m-app .m-driver-nav-card,
body.m-app .m-driver-summary-card,
body.m-app .m-driver-stat,
body.m-app .m-driver-doc-item,
body.m-app .m-driver-file-box,
body.m-app .m-driver-safe-note,
body.m-app .m-sheet-inner {
  border-color: transparent !important;
  box-shadow: 0 24px 62px rgba(15, 23, 42, .060) !important;
}

body.m-app .m-card,
body.m-app .m-quick-card,
body.m-app .m-list-row,
body.m-app .m-customer-list-row,
body.m-app .m-driver-list-row,
body.m-app .m-ride-card,
body.m-app .m-status-current,
body.m-app .m-status-lookup,
body.m-app .m-status-result,
body.m-app .m-pay-amount-card,
body.m-app .m-pay-coupon-card,
body.m-app .m-pay-result-view,
body.m-app .m-quote-card,
body.m-app .m-profile-card,
body.m-app .m-customer-profile-card,
body.m-app .m-coupon-wallet-card,
body.m-app .m-help-card,
body.m-app .m-counter,
body.m-app .m-option-card,
body.m-app .m-book-progress,
body.m-app .m-driver-hero,
body.m-app .m-driver-profile-card,
body.m-app .m-driver-ride-card,
body.m-app .m-driver-mission-card,
body.m-app .m-driver-call-card,
body.m-app .m-driver-nav-card,
body.m-app .m-driver-summary-card,
body.m-app .m-driver-stat,
body.m-app .m-sheet-inner {
  background: rgba(255, 255, 255, .90) !important;
}

body.m-app .m-card-soft,
body.m-app .m-card-flat,
body.m-app .m-payment-notice,
body.m-app .m-payment-link-card,
body.m-app .m-driver-safe-note {
  background: rgba(248, 250, 252, .74) !important;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .040) !important;
}

body.m-app .m-info-list li,
body.m-app .m-driver-divider,
body.m-app .m-driver-status-row,
body.m-app .m-summary-route,
body.m-app .m-section + .m-section {
  border-color: rgba(226, 232, 240, .34) !important;
}

body.m-app .m-btn-ghost,
body.m-app .m-btn-secondary,
body.m-app .m-chip-link,
body.m-app .m-chip-button,
body.m-app .m-topbar-action,
body.m-app .m-icon-button,
body.m-app .m-pill,
body.m-app .m-route-quick-grid button {
  border-color: transparent !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .045);
}

body.m-app .m-tabbar-inner,
body.m-app .m-bottom-cta-inner {
  border-color: transparent !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .095) !important;
}

body.m-app .m-field input,
body.m-app .m-field textarea,
body.m-app .m-field select,
body.m-app .m-input {
  border-color: rgba(203, 213, 225, .58);
}

/* FinalV16 non-admin mobile surfaces: lighter boundaries, shadow-only separation. */
body.m-app .m-card,
body.m-app .m-list-row,
body.m-app .m-customer-list-row,
body.m-app .m-driver-list-row,
body.m-app .m-counter,
body.m-app .m-option-card,
body.m-app .m-profile-disclosure,
body.m-app .m-coupon-wallet-item,
body.m-app .m-driver-ride-card,
body.m-app .m-driver-mission-card,
body.m-app .m-driver-call-card,
body.m-app .m-driver-nav-card,
body.m-app .m-driver-summary-card,
body.m-app .m-driver-stat {
  border-color: transparent !important;
  box-shadow: 0 26px 68px rgba(15,23,42,.052) !important;
}

body.m-app .m-field input,
body.m-app .m-field textarea,
body.m-app .m-field select,
body.m-app .m-input {
  border-color: rgba(203,213,225,.34) !important;
}
