/* appcMAP: livemap (ui-maps.js). Theme variables only: --primary, --on-primary, --text, --muted, --surface, --border, --radius. */
.um-map { position: relative; width: 100%; min-height: 220px; overflow: hidden; border-radius: var(--radius, 12px); background: var(--surface, #eef0f2); }
.um-map.is-fill { min-height: 60vh; height: 100%; border-radius: 0; }
.um-map .maplibregl-canvas { outline: none; }
.um-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.um-chip { position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 12px; border-radius: 999px;
  background: var(--surface, #fff); color: var(--text, #111); box-shadow: 0 2px 10px rgba(0,0,0,.14); font-size: 13px; font-variant-numeric: tabular-nums; }
.um-chip b { font-size: 15px; font-weight: 700; }
.um-chip span { color: var(--muted); }
.um-btn { position: absolute; z-index: 2; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--surface, #fff); color: var(--text, #111); box-shadow: 0 2px 10px rgba(0,0,0,.14); }
.um-btn svg { width: 18px; height: 18px; }
/* the vehicle: a deep-notched arrow on a disc with a heading beam ahead of it (turned with it by MapLibre), so which way it goes
   reads at a glance; the dot look keeps the soft pulse */
.um-veh--car { background: transparent; box-shadow: none; overflow: visible; }
.um-beam { position: absolute; left: 50%; bottom: 50%; width: 66px; height: 58px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--primary, #111) 45%, transparent), transparent); clip-path: polygon(50% 100%, 8% 0, 92% 0); }
.um-disc { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--primary, #111); box-shadow: 0 3px 12px rgba(0,0,0,.28), 0 0 0 3px #fff; }
.um-disc svg { width: 22px; height: 22px; fill: var(--on-primary, #fff); }
.um-veh { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--primary, #111); box-shadow: 0 3px 12px rgba(0,0,0,.28), 0 0 0 3px #fff; display: grid; place-items: center; }
.um-veh svg { width: 20px; height: 20px; fill: var(--on-primary, #fff); }
.um-veh--dot svg { width: 12px; height: 12px; }
.um-pulse { position: absolute; inset: -10px; border-radius: 50%; background: var(--primary, #111); opacity: .18; animation: umPulse 2s ease-out infinite; }
@keyframes umPulse { 0% { transform: scale(.6); opacity: .28; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .um-pulse { animation: none; } }
/* the stops: a round badge with its icon, the name beside it */
.um-pin { display: flex; align-items: center; gap: 6px; transform: translateY(-2px); }
.um-pin span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--text, #111); color: var(--surface, #fff); box-shadow: 0 2px 8px rgba(0,0,0,.25), 0 0 0 3px #fff; }
.um-pin--end span { background: var(--surface, #fff); color: var(--text, #111); box-shadow: 0 2px 8px rgba(0,0,0,.25), 0 0 0 3px var(--text, #111); }
.um-pin svg { width: 16px; height: 16px; }
.um-pin b { padding: 4px 8px; border-radius: 8px; background: var(--surface, #fff); color: var(--text, #111); font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 1px 6px rgba(0,0,0,.16); }
.maplibregl-ctrl-attrib { font-size: 10px; }
.um-chip em { font-style: normal; font-weight: 600; color: var(--text, #111); margin-right: 2px; }
/* navigator: the next turn on top, the map, the stop and the actions below; fills the screen */
.um-nav { position: relative; display: flex; flex-direction: column; height: calc(100svh - 96px); min-height: 420px; overflow: hidden; border-radius: var(--radius, 12px); background: var(--bg, #fff); }   /* JS sets the exact height */
.um-nav .um-map { flex: 1 1 auto; min-height: 0; border-radius: 0; }
.um-turn { flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--text, #111); color: var(--surface, #fff); z-index: 3; }
.um-turn b { display: block; font-size: 18px; font-weight: 700; line-height: 1.25; }
.um-turn small { display: block; opacity: .75; font-size: 13px; margin-top: 2px; }
.um-turn-i { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.um-turn-i svg { width: 28px; height: 28px; }
.um-foot { flex-shrink: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--surface, #fff); box-shadow: 0 -4px 16px rgba(0,0,0,.08); z-index: 3; position: relative; }
.um-foot-h { display: flex; align-items: baseline; gap: 10px; }
.um-foot-h b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.um-foot-h span { color: var(--muted); font-size: 14px; }
.um-addr { display: flex; gap: 6px; align-items: center; margin: 6px 0 0; color: var(--text); font-size: 14px; }
.um-addr svg { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; }
.um-acts { display: flex; gap: 10px; margin-top: 12px; }
.um-acts .uu-btn { flex: 1; justify-content: center; height: 52px; border-radius: 14px; font-size: 16px; font-weight: 600; }
.um-wide { width: 100%; margin-top: 12px; height: 52px; }
.um-pick { position: absolute; left: 12px; right: 12px; bottom: calc(100% + 8px); display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--surface, #fff); box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.um-pick b { font-size: 15px; }
.um-pick .uu-btn { justify-content: center; height: 48px; }
/* appcADR: place picker (a fixed pin over the map) */
.um-place { display: grid; gap: 12px; }
.um-place-map { position: relative; height: 46svh; min-height: 260px; border-radius: var(--radius, 14px); overflow: hidden; background: var(--border); }
.um-place-pin { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -100%); color: var(--primary); pointer-events: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.um-place-pin svg { width: 40px; height: 40px; fill: color-mix(in srgb, var(--primary) 25%, transparent); }
.um-place-form { display: grid; gap: 8px; }
.um-place-hint { margin: 0; color: var(--muted); font-size: 14px; }
.um-place-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.um-place-in { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; box-sizing: border-box; min-width: 0; }
.um-place-go { height: 52px; border-radius: 14px; border: 0; background: var(--primary); color: var(--on-primary, #fff); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
/* appcDSN: the address step: search, Use my current location, recent places, the pin on the map, apt, hand-over, instructions */
.um-place-search { position: relative; }
.um-place-q { height: 52px; border-radius: 999px; padding: 0 18px; background: var(--surface); }
.um-place-list { display: grid; gap: 2px; }
.um-place-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 4px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; border-radius: 12px; }
.um-place-row > svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--muted); }
.um-place-row.is-gps > svg { color: var(--primary); }
.um-place-row span { display: grid; gap: 1px; min-width: 0; }
.um-place-row b { font-size: 15px; } .um-place-row small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-place-row:active { background: var(--surface); }
.um-place-map { height: 34svh; min-height: 220px; }
.um-place-tip { position: absolute; left: 50%; top: 12px; z-index: 3; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 12.5px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.um-place-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.um-place-drop { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); }
.um-place-drop button { height: 40px; border: 0; border-radius: 999px; background: none; color: var(--text); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.um-place-drop button.on { background: var(--bg); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.um-place-note { height: auto; min-height: 64px; padding: 10px 12px; resize: vertical; }
.um-place-go { border-radius: 999px; }
/* appcDSN: the Deliver to pill */
.um-pill { display: grid; gap: 1px; justify-items: start; padding: 4px 2px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; max-width: 100%; }
.um-pill small { color: var(--muted); font-size: 12.5px; }
.um-pill b { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 800; min-width: 0; max-width: 100%; }
.um-pill b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-pill svg { width: 17px; height: 17px; flex-shrink: 0; }
.um-pill b > svg:first-child { color: var(--primary); }
/* appcSTEP2: the trip's job block: who to see, the pickup checklist, the drop-off instructions and photo */
.um-job { display: grid; gap: 8px; margin: 6px 0 4px; padding: 12px; border-radius: var(--radius, 14px); background: var(--bg); }
.um-job-h { display: flex; align-items: center; gap: 10px; }
.um-job-ph { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: var(--surface) center / cover no-repeat; }
.um-job-t { flex: 1; display: grid; min-width: 0; } .um-job-t small { color: var(--muted); font-size: 12px; } .um-job-t b { font-size: 16px; }
.um-drop { padding: 4px 10px; border-radius: 999px; background: var(--primary); color: var(--on-primary, #fff); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.um-call { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--text); flex-shrink: 0; }
.um-call svg { width: 18px; height: 18px; }
.um-check { display: grid; gap: 6px; } .um-check > small { color: var(--muted); font-size: 12.5px; }
.um-check label { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.um-check input { width: 22px; height: 22px; accent-color: var(--primary); flex-shrink: 0; }
.um-check span { display: flex; gap: 8px; align-items: baseline; } .um-check span b { min-width: 20px; }
.um-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface); font-size: 14px; }
.um-photo { width: 100%; justify-content: center; } .um-photo.is-done { color: #16a34a; }
/* appcSTEP5: the safety shield on the driver's map */
.um-safe { position: absolute; z-index: 6; left: 12px; top: 92px; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface, #fff); color: #2563eb; box-shadow: 0 2px 10px rgba(0,0,0,.18); cursor: pointer; }
.um-safe svg { width: 20px; height: 20px; }
.um-safe-s .us-sheet-b { display: grid; gap: 8px; padding-top: 22px; }
.um-sf { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border: 0; border-radius: 14px; background: var(--bg); color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.um-sf > svg { width: 22px; height: 22px; flex-shrink: 0; } .um-sf span { display: grid; } .um-sf b { font-size: 16px; } .um-sf small { color: var(--muted); font-size: 13px; }
.um-sf.is-911 { background: #dc2626; color: #fff; } .um-sf.is-911 small { color: rgba(255,255,255,.85); }
.um-safe.um-chat { top: 146px; color: var(--text, #111); } .um-chat.is-busy { opacity: .5; }
.um-runck { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border, #ddd); } .um-runh { margin: 8px 0 2px; font-size: 13.5px; color: var(--muted, #666); } .um-runh b { color: var(--text, #111); }
/* appcOPS: Can't make it */
.um-gb { display: block; margin: 12px auto 0; padding: 6px 10px; border: 0; background: none; color: var(--muted, #666); font: inherit; font-size: 13.5px; text-decoration: underline; cursor: pointer; }
/* appcSHARE: the stage chip never runs under the recenter button (top right): it keeps that room and wraps its words, never the minutes */
.um-chip { max-width: calc(100% - 84px); flex-wrap: wrap; row-gap: 2px; } .um-chip b, .um-chip span { white-space: nowrap; }

/* appcTRKPRIV: the sharing banner (Stop sharing / Share again) and the consent line */
.um-share { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: color-mix(in srgb, var(--text, #14161a) 6%, var(--surface, #fff)); font-size: 14px; z-index: 3; }
.um-share span { width: 9px; height: 9px; border-radius: 50%; background: var(--muted, #888); flex-shrink: 0; }
.um-share.is-on span { background: #2e9b4f; box-shadow: 0 0 0 4px rgba(46,155,79,.18); }
.um-share b { flex: 1; font-weight: 600; line-height: 1.3; }
.um-share button { border: 1px solid var(--border, #e4e7ec); background: var(--surface, #fff); color: var(--text, #14161a); border-radius: 999px; padding: 6px 12px; font: 600 13px var(--font, inherit); cursor: pointer; flex-shrink: 0; }
.um-consent { margin: 8px 0 10px; color: var(--muted, #667085); font-size: 14px; line-height: 1.45; }
.um-nav.has-share .um-safe { top: 148px; }   /* appcTRKPRIV: below the sharing banner */
.um-nav.has-share .um-safe.um-chat { top: 202px; }

/* dedroute (#7703): dayroute, the day in the order to drive it. Theme variables only. */
.um-dr { display: flex; flex-direction: column; gap: 12px; color: var(--text, #111); }
.um-dr-top { display: flex; align-items: center; gap: 8px; }
.um-dr-day { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.um-dr-day b { font-size: 18px; font-weight: 700; line-height: 1.2; }
.um-dr-day span { color: var(--muted); font-size: 13px; }
.um-dr-nav { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--border, #e3e5e8); background: var(--surface, #fff); color: var(--text, #111); display: grid; place-items: center; cursor: pointer; }
.um-dr-nav svg { width: 18px; height: 18px; }
.um-dr-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.um-dr-sum b { color: var(--text, #111); font-size: 16px; }
/* dedroutestart (#7703): where the person's own day starts, with a small form to change it */
.um-dr-start { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: 14px; color: var(--muted); }
.um-dr-start > span { display: inline-flex; align-items: center; gap: 6px; flex: 1 1 0; min-width: 0; }
.um-dr-start [data-startl] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-dr-startb { flex: none; }
.um-dr-startrow .um-dr-n svg { width: 15px; height: 15px; }
.um-dr-start svg { width: 16px; height: 16px; flex: none; }
.um-dr-startb { border: 0; background: none; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; padding: 6px 0; }
.um-dr-startf { flex: 1 1 100%; display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--border, #e3e5e8); border-radius: var(--radius, 12px); background: var(--surface, #fff); }
.um-dr-startf[hidden] { display: none; }
.um-dr-startf input[type=text] { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--border, #e3e5e8); border-radius: calc(var(--radius, 12px) - 4px); font: inherit; color: var(--text, #111); background: var(--bg, #fff); }
.um-dr-startw { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text, #111); }
.um-dr-startw label { display: inline-flex; align-items: center; gap: 6px; }
.um-dr-startw input { accent-color: var(--primary); }
.um-dr-starta { display: flex; gap: 8px; }
.um-dr-go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--primary, #1a73e8); color: var(--on-primary, #fff); text-decoration: none; font-weight: 600; font-size: 14px; }
.um-dr-go svg { width: 16px; height: 16px; }
/* dedroutepick (#7703) */
.um-dr-srcb { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 12px; border-radius: var(--radius, 12px); border: 1px solid var(--border, #e3e5e8); background: var(--surface, #fff); color: var(--text, inherit); font: inherit; font-size: 14px; cursor: pointer; }
.um-dr-srcb span { flex: 1; text-align: left; }
.um-dr-srcb svg { width: 16px; height: 16px; flex: none; }
.um-dr-srcp { margin-top: 6px; padding: 4px 12px; border-radius: var(--radius, 12px); border: 1px solid var(--border, #e3e5e8); background: var(--surface, #fff); }
.um-dr-srcp[hidden], .um-dr-src[hidden] { display: none; }
.um-dr-opt { display: flex; gap: 4px; padding: 4px; border-radius: var(--radius, 12px); border: 1px solid var(--border, #e3e5e8); background: var(--surface, #fff); }
.um-dr-opt button { flex: 1; min-height: 40px; border: 0; border-radius: calc(var(--radius, 12px) - 4px); background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.um-dr-opt button.is-on { background: var(--primary); color: #fff; }
.um-dr-srcr { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; cursor: pointer; }
.um-dr-srcr input { width: 18px; height: 18px; flex: none; }
.um-dr-note { padding: 10px 12px; border-radius: var(--radius, 12px); background: color-mix(in srgb, #f5a623 14%, var(--surface, #fff)); font-size: 13px; line-height: 1.4; }
.um-dr-map { min-height: 260px; }
.um-dr-pin { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary, #1a73e8); color: var(--on-primary, #fff); font-weight: 700; font-size: 13px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.um-dr-pin.is-home { background: var(--text, #111); }
.um-dr-pin svg { width: 14px; height: 14px; }
.um-dr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.um-dr-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border, #e3e5e8); }
.um-dr-row:last-child { border-bottom: 0; }
.um-dr-n { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--primary, #1a73e8) 14%, transparent); color: var(--primary, #1a73e8); font-weight: 700; font-size: 13px; }
.um-dr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.um-dr-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-variant-numeric: tabular-nums; }
.um-dr-when b { font-size: 16px; }
.um-dr-fixed, .um-dr-wait, .um-dr-late { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--bg, #f3f4f6); color: var(--muted); }
.um-dr-late { background: color-mix(in srgb, #d93025 14%, transparent); color: #b3261e; }
.um-dr-what { font-weight: 600; overflow-wrap: anywhere; }
.um-dr-where { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.um-dr-leg { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-top: 2px; }
.um-dr-leg svg { width: 14px; height: 14px; }
.um-dr-links { display: flex; flex-direction: column; gap: 6px; flex: none; }
.um-dr-links a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border, #e3e5e8); color: var(--text, #111); }
.um-dr-links svg { width: 18px; height: 18px; }
.um-dr-none { padding: 12px; border-radius: var(--radius, 12px); background: var(--bg, #f3f4f6); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.um-dr-nrow span { font-variant-numeric: tabular-nums; color: var(--muted); }
.um-dr-nrow i { color: var(--muted); font-style: normal; }
/* r34vega (#7703): Leave out / Put back on the Day route (leave_out = yes only) */
.um-dr-lo { display: inline-flex; align-self: flex-start; width: auto; align-items: center; gap: 4px; margin-top: 6px; padding: 4px 10px; border: 1px solid var(--line, #e5e7eb); border-radius: 999px; background: transparent; color: var(--muted, #6b7280); font: inherit; font-size: 12px; cursor: pointer; }
.um-dr-lo svg { width: 13px; height: 13px; }
.um-dr-lo:hover { color: var(--text, #111827); border-color: currentColor; }
.um-dr-lo:disabled { opacity: .5; cursor: default; }
.um-dr-left .um-dr-nrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.um-dr-left .um-dr-lo { margin: 0 0 0 auto; color: var(--primary, #1a73e8); }
.um-dr-fresh { color: var(--muted); font-size: 12px; }
/* r2saul (#7703): flexible appointments */
.um-dr-fixed.is-flex { background: color-mix(in srgb, var(--primary, #1a73e8) 12%, transparent); color: var(--primary, #1a73e8); }
.um-dr-fxf { margin-top: 8px; padding: 10px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; display: flex; flex-direction: column; gap: 8px; max-width: 340px; }
.um-dr-fxf[hidden] { display: none; }
.um-dr-fxh { font-size: 12px; color: var(--muted, #6b7280); }
.um-dr-fxr { display: flex; gap: 10px; flex-wrap: wrap; }
.um-dr-fxr label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.um-dr-fxr input { font: inherit; padding: 5px 8px; border: 1px solid var(--line, #e5e7eb); border-radius: 8px; background: var(--surface, #fff); color: inherit; }
.um-dr-main:has(> .um-dr-fx) { flex-direction: row; flex-wrap: wrap; column-gap: 6px; align-items: flex-start; }
.um-dr-main:has(> .um-dr-fx) > :not(.um-dr-lo) { flex-basis: 100%; }
