/* ==========================================================================
   Unity Drive demo — shared design system
   Brand tokens, typography, buttons, forms, cards, badges, tables, modals,
   toasts, notification bell, demo badge and the phone-frame shell.
   ========================================================================== */

:root {
  /* Brand */
  --navy: #0D2B4F;
  --navy-700: #0a2240;
  --navy-600: #143a66;
  --navy-50: #e8eef6;
  --orange: #F25C05;
  --orange-600: #d94f02;
  --orange-50: #fff1e8;
  --offwhite: #F8F8FA;
  --slate: #4A5568;
  --green: #1B7543;
  --green-50: #e7f4ec;
  --amber: #D97706;
  --amber-50: #fdf3e2;
  --red: #C53030;
  --red-50: #fdecec;

  /* Neutrals */
  --ink: #142033;
  --muted: #6b7686;
  --line: #e3e7ee;
  --line-strong: #cfd6e1;
  --surface: #ffffff;
  --bg: var(--offwhite);

  /* Service colors (used for chips + map markers) */
  --svc-black_car: #0D2B4F;
  --svc-shuttle: #F25C05;
  --svc-school: #D97706;
  --svc-nemt: #1B7543;

  /* Shape & depth */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(13, 43, 79, .06), 0 1px 3px rgba(13, 43, 79, .08);
  --shadow: 0 4px 14px rgba(13, 43, 79, .08), 0 1px 3px rgba(13, 43, 79, .06);
  --shadow-lg: 0 18px 50px rgba(13, 43, 79, .18);
  --focus: 0 0 0 3px rgba(242, 92, 5, .35);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- Icons ---------- */
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-lg { width: 1.6em; height: 1.6em; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand-chip { background: #fff; border-radius: 10px; padding: 6px 10px; }
.wordmark { font-weight: 800; letter-spacing: -.02em; }
.wordmark .u { color: var(--navy); }
.wordmark .d { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; line-height: 1.2; cursor: pointer;
  text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .05s, box-shadow .15s;
  white-space: nowrap; background: var(--surface); color: var(--navy);
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-600); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-600); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { filter: brightness(1.08); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }
.btn-outline { border-color: var(--line-strong); background: #fff; color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--slate); }
.btn-ghost:hover { background: rgba(13, 43, 79, .06); color: var(--navy); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; border-radius: 10px; }
.btn .spinner { width: 16px; height: 16px; border-width: 2px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--slate); }
.input, .select, .textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; transition: border-color .15s, box-shadow .15s; font-size: 14.5px;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--orange); box-shadow: var(--focus); }
.input.is-invalid { border-color: var(--red); }
.field-error { color: var(--red); font-size: 12.5px; }
.field-hint { color: var(--muted); font-size: 12.5px; }
.textarea { min-height: 80px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A5568' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.input-sm { padding: 6px 9px; font-size: 13px; border-radius: 8px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }

/* Toggle switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 44px; height: 26px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: var(--focus); }

/* Segmented control */
.segmented { display: inline-flex; background: var(--navy-50); border-radius: 10px; padding: 3px; gap: 2px; }
.segmented button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--slate); cursor: pointer; }
.segmented button.is-active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 15.5px; }
.card-body { padding: 16px 18px; }

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px;
  font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap;
  background: var(--navy-50); color: var(--navy);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.no-dot::before { display: none; }
.badge-green { background: var(--green-50); color: var(--green); }
.badge-amber { background: var(--amber-50); color: #a85a00; }
.badge-orange { background: var(--orange-50); color: var(--orange-600); }
.badge-red { background: var(--red-50); color: var(--red); }
.badge-gray { background: #eef0f3; color: var(--slate); }
.badge-navy { background: var(--navy-50); color: var(--navy); }

.chip-svc { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--c, var(--navy)); background: color-mix(in srgb, var(--c, var(--navy)) 11%, white); white-space: nowrap; }
.chip-svc .ic { width: 14px; height: 14px; }
.tag-channel { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; }
.tag-push { background: var(--navy-50); color: var(--navy); }
.tag-sms { background: var(--green-50); color: var(--green); }

.avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; background: var(--navy); flex: none; }
.avatar-sm { width: 30px; height: 30px; font-size: 12px; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }

.stars { color: #f5a623; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #d5dae2; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); }
.dot-green { background: #22a35a; box-shadow: 0 0 0 3px rgba(34, 163, 90, .18); }
.dot-gray { background: #b5bcc8; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.is-clickable { cursor: pointer; }
.table tbody tr.is-clickable:hover td { background: #fafbfd; }
.table tbody tr.is-selected td { background: var(--orange-50); }
.cell-main { font-weight: 600; color: var(--ink); }
.cell-sub { font-size: 12.5px; color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Empty / loading ---------- */
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty .ic { width: 40px; height: 40px; color: var(--line-strong); margin-bottom: 8px; }
.empty h4 { color: var(--slate); margin: 0 0 4px; font-size: 15px; }
.empty p { margin: 0 0 12px; font-size: 13.5px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(13, 43, 79, .15); border-top-color: var(--orange); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #eef1f5 25%, #f7f8fa 50%, #eef1f5 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; height: 14px; margin-bottom: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.loading-block { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px; color: var(--muted); }

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; top: 16px; right: 16px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); border-left: 4px solid var(--navy);
  padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; animation: toast-in .25s ease-out;
}
.toast.is-leaving { animation: toast-out .2s ease-in forwards; }
.toast-icon { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--navy-50); color: var(--navy); flex: none; }
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-weight: 700; font-size: 14px; color: var(--ink); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toast-text { font-size: 13px; color: var(--slate); margin-top: 2px; }
.toast-close { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; }
.toast.tone-success { border-left-color: var(--green); } .toast.tone-success .toast-icon { background: var(--green-50); color: var(--green); }
.toast.tone-warn { border-left-color: var(--amber); } .toast.tone-warn .toast-icon { background: var(--amber-50); color: var(--amber); }
.toast.tone-error { border-left-color: var(--red); } .toast.tone-error .toast-icon { background: var(--red-50); color: var(--red); }
.toast.tone-sms { border-left-color: var(--green); } .toast.tone-sms .toast-icon { background: var(--green-50); color: var(--green); }
.toast.tone-push { border-left-color: var(--orange); } .toast.tone-push .toast-icon { background: var(--orange-50); color: var(--orange); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }

/* ---------- Modals ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 25, 45, .5); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade-in .15s; }
.modal { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); width: min(520px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: modal-in .2s ease-out; }
.modal-lg { width: min(780px, 100%); }
.modal-sm { width: min(400px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
/* In phone frames the modal is scoped inside the frame */
.phone-screen .modal-backdrop { position: absolute; border-radius: inherit; align-items: flex-end; padding: 0; }
.phone-screen .modal { border-radius: 20px 20px 0 0; max-height: 88%; width: 100%; animation: sheet-in .25s ease-out; }
@keyframes sheet-in { from { transform: translateY(40px); opacity: .5; } }

/* ---------- Notification bell ---------- */
.bell { position: relative; }
.bell-btn { position: relative; border: 0; background: transparent; padding: 8px; border-radius: 10px; cursor: pointer; color: var(--navy); display: inline-flex; }
.bell-btn:hover { background: rgba(13, 43, 79, .06); }
.bell-count { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.bell-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 360px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 1500; overflow: hidden; }
.bell-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.bell-panel-head strong { color: var(--navy); }
.bell-list { max-height: 380px; overflow-y: auto; }
.bell-item { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.bell-item:last-child { border-bottom: 0; }
.bell-item.is-unread { background: #fffaf6; }
.bell-item-title { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.bell-item-text { font-size: 12.5px; color: var(--slate); }
.bell-item-meta { display: flex; gap: 8px; align-items: center; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.phone-screen .bell-panel { position: absolute; width: auto; left: 10px; right: 10px; top: 58px; }
.phone-screen .bell { position: static; }

/* ---------- Demo badge ---------- */
.demo-badge {
  position: fixed; left: 14px; bottom: 14px; z-index: 2500; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(13, 43, 79, .92); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 12px 6px 10px; border-radius: 99px;
  box-shadow: var(--shadow); backdrop-filter: blur(4px); cursor: help;
}
.demo-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(242, 92, 5, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(242, 92, 5, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 92, 5, 0); } }

/* ---------- Status stepper ---------- */
.stepper { display: flex; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.stepper li { flex: 1; position: relative; text-align: center; font-size: 11px; color: var(--muted); font-weight: 600; padding-top: 26px; }
.stepper li::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong); z-index: 1; }
.stepper li::after { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px; background: var(--line-strong); }
.stepper li:first-child::after { display: none; }
.stepper li.is-done { color: var(--green); }
.stepper li.is-done::before { background: var(--green); border-color: var(--green); }
.stepper li.is-done::after, .stepper li.is-current::after { background: var(--green); }
.stepper li.is-current { color: var(--orange); }
.stepper li.is-current::before { border-color: var(--orange); background: var(--orange); box-shadow: 0 0 0 4px rgba(242, 92, 5, .2); }
.stepper li.is-rejected { color: var(--red); }
.stepper li.is-rejected::before { background: var(--red); border-color: var(--red); }

/* ---------- Map markers (Leaflet divIcons) ---------- */
.map-box { width: 100%; height: 100%; min-height: 200px; background: #e9eef3; }
.map-fallback { display: flex; height: 100%; align-items: center; justify-content: center; text-align: center; color: var(--muted); padding: 20px; font-size: 13px; }
.dmk { width: 30px; height: 30px; border-radius: 50%; background: var(--c, var(--navy)); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; color: #fff; }
.dmk .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.dmk.is-idle { opacity: .78; transform: scale(.85); }
.dmk.is-active { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 30%, transparent), 0 2px 6px rgba(0, 0, 0, .35); }
.dmk.is-me { width: 36px; height: 36px; box-shadow: 0 0 0 7px rgba(242, 92, 5, .25), 0 2px 6px rgba(0, 0, 0, .35); }
.pin { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c, var(--green)); border: 3px solid #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .35); }
.pin-pickup { --c: var(--green); }
.pin-dropoff { --c: var(--orange); }
.leaflet-container { font-family: var(--font); z-index: 0; }
.leaflet-popup-content { margin: 10px 12px; font-size: 13px; }

/* ---------- Phone frame shell (passenger + driver) ---------- */
.phone-page { min-height: 100vh; background: radial-gradient(1200px 600px at 80% -10%, #1d4b80 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, #071a31 100%); display: flex; align-items: center; justify-content: center; gap: 48px; padding: 24px; }
.phone-side { color: #cfdbea; max-width: 300px; font-size: 14px; }
.phone-side h2 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.phone-side .brand-chip { display: inline-flex; margin-bottom: 18px; }
.phone-side ul { padding-left: 18px; margin: 0 0 18px; }
.phone-side li { margin-bottom: 6px; }
.phone-side .side-links { display: flex; flex-direction: column; gap: 8px; }
.phone-side .side-links a { color: #fff; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .08); padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: 13.5px; }
.phone-side .side-links a:hover { background: rgba(255, 255, 255, .15); }
.phone {
  width: 400px; height: min(860px, calc(100vh - 48px)); min-height: 640px; background: #0b1524; border-radius: 46px; padding: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 0 0 2px #2b3a50; flex: none; position: relative;
}
.phone-screen { width: 100%; height: 100%; background: var(--offwhite); border-radius: 36px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.phone-status { height: 34px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; font-size: 13px; font-weight: 700; color: var(--navy); background: #fff; }
.phone-status .notch { width: 110px; height: 24px; background: #0b1524; border-radius: 0 0 14px 14px; position: absolute; left: 50%; top: 0; transform: translateX(-50%); }
.phone-status .sys { display: flex; gap: 5px; align-items: center; }
.app-header { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 10px; background: #fff; border-bottom: 1px solid var(--line); gap: 8px; }
.app-header .brand img { height: 34px; }
.app-header-actions { display: flex; align-items: center; gap: 4px; }
.app-main { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; scroll-behavior: smooth; }
.app-tabs { flex: none; display: flex; background: #fff; border-top: 1px solid var(--line); padding: 6px 6px 14px; }
.app-tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 6px 0; border-radius: 10px; }
.app-tabs a .ic { width: 22px; height: 22px; }
.app-tabs a.is-active { color: var(--orange); }
.screen { padding: 16px; }
.screen-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.screen-title h2 { margin: 0; font-size: 20px; }
.back-btn { border: 0; background: #fff; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); cursor: pointer; color: var(--navy); }
.section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 8px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; text-decoration: none; color: inherit; }
.list-item:hover { border-color: var(--line-strong); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { display: block; font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .sub { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-tile { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c, var(--navy)) 12%, white); color: var(--c, var(--navy)); flex: none; }

@media (max-width: 860px) {
  .phone-side { display: none; }
}
@media (max-width: 480px) {
  .phone-page { padding: 0; background: var(--offwhite); }
  .phone { width: 100%; height: 100vh; height: 100dvh; min-height: 0; border-radius: 0; padding: 0; box-shadow: none; }
  .phone-screen { border-radius: 0; }
  .phone-status { display: none; }
  .demo-badge { bottom: 84px; }
}

/* ---------- Utilities ---------- */
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.strong { font-weight: 700; }
.text-green { color: var(--green); } .text-orange { color: var(--orange); } .text-amber { color: var(--amber); } .text-red { color: var(--red); } .text-navy { color: var(--navy); }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.kv > span:first-child { color: var(--muted); }
.kv > span:last-child { font-weight: 600; text-align: right; }
.kv.total { border-top: 1px dashed var(--line-strong); margin-top: 6px; padding-top: 10px; font-size: 16px; }
.kv.total > span { color: var(--navy); font-weight: 800; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; background: var(--navy-50); color: var(--navy); }
.alert .ic { margin-top: 2px; }
.alert-warn { background: var(--amber-50); color: #8a4b00; }
.alert-danger { background: var(--red-50); color: var(--red); }
.alert-success { background: var(--green-50); color: var(--green); }
.masked { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; letter-spacing: .02em; }

@media print {
  .demo-badge, .toast-stack { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
