.passenger-portal body { -webkit-user-select: none; user-select: none; }
.passenger-portal :is(input, textarea, [contenteditable="true"]) { -webkit-user-select: text; user-select: text; }
.passenger-portal img { -webkit-touch-callout: none; -webkit-user-drag: none; }
.passenger-portal .support-attachment[data-action="open-support-image"] { border: 0; width: fit-content; }
.passenger-portal .support-image-preview {
  display: block; width: 100%; max-height: 72dvh; object-fit: contain; border-radius: 14px; background: #edf4ff;
}
.passenger-signed-in .nav-brand { width: 25px; height: 25px; border-radius: 7px; }

#ride-form {
  padding: clamp(15px, 3vw, 23px); border-color: #e4ebf5; border-radius: 25px;
  background: #fff; box-shadow: 0 8px 25px #162f580f, 0 1px 3px #162f5808;
}
.ride-planner-error:empty { display: none; }
.ride-planner .map-panel { border-radius: 24px 24px 0 0; }
.ride-planner .maplibregl-ctrl-bottom-right { bottom: 16px; }
.ride-planner #ride-form { position: relative; z-index: 2; margin-top: -16px; border-radius: 27px 27px 0 0; }
#ride-form .panel-heading { gap: 9px; }
#ride-form .panel-heading .symbol { width: 36px; height: 36px; border-radius: 11px; }
.route-inputs {
  display: grid; margin: 12px 0; padding: 3px; border: 1px solid #e7edf6; border-radius: 19px; background: #f5f7fb;
}
.route-inputs .address-field + .address-field { border-top: 1px solid #e6ecf5; }
.route-field-row { display: flex; align-items: center; gap: 4px; }
.route-inputs label {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; column-gap: 9px;
  flex: 1; min-width: 0; min-height: 58px; padding: 6px 8px; border: 1px solid transparent; border-radius: 14px;
}
.route-inputs label:focus-within { background: #fff; border-color: #8eb9f9; }
.route-field-icon {
  grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 9px; background: #e5efff; color: #235aab;
}
.address-field:last-child .route-field-icon { background: #e9edf5; color: #3d5376; }
.route-field-icon + span { color: #455a76; font-size: .73rem; font-weight: 740; }
.route-inputs input {
  width: 100%; min-width: 0; padding: 2px 0 0; border: 0; outline: 0;
  background: transparent; color: var(--ink); font-size: 16px;
}
.route-inputs .address-suggestions { margin: 3px 4px 6px; border-color: #dde7f5; border-radius: 13px; }
.route-pick-destination {
  display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px;
  margin-inline-end: 6px; border: 1px solid #d5e5ff; border-radius: 14px;
  background: #e5efff; color: #235aab;
}
.route-pick-destination:is(:hover, [aria-pressed="true"]) { background: #dbeaff; }
.route-pick-destination span, .destination-pin-head::before {
  border-radius: 50% 50% 50% 12%;
  background: radial-gradient(circle at 42% 37%, #fff 0 19%, #e1f7ff 21% 26%, transparent 28%),
    linear-gradient(145deg, #44d3ff 8%, #067bff 49%, #1831bd 88%);
  box-shadow: inset 2px 2px 5px #b5eaffb0, inset -3px -3px 5px #16369b85, 2px 3px 8px #123e9670;
}
.route-pick-destination span { width: 19px; height: 19px; transform: translateY(-2px) rotate(-45deg); }
.route-keyboard-open .sidebar { display: none; }
.route-editor-header { display: none; }
.address-field-raised { min-height: 58px; }
.route-inputs:has(.address-field-raised)::before {
  content: ''; position: fixed; inset: 0; z-index: 8; background: #13294967; pointer-events: none;
}
.address-field-raised .route-field-content {
  position: fixed; z-index: 10; top: var(--route-editor-top); left: var(--route-editor-left);
  display: flex; flex-direction: column; width: var(--route-editor-width);
  max-height: var(--route-editor-height); padding: 9px 10px 10px; overflow: hidden;
  background: #fff; border: 1px solid #dce7f5; border-radius: 24px; box-shadow: 0 18px 52px #10254560;
}
.address-field-raised .route-editor-header {
  display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between;
  min-height: 40px; padding-inline: 8px 2px; color: #162d51;
}
.route-editor-close { color: #365579; background: #eef4fd; }
.address-field-raised .route-field-row { flex-shrink: 0; background: #f2f6fe; border-radius: 14px; }
.address-field-raised .address-suggestions {
  min-height: 0; flex: 0 1 auto; margin: 6px 0 0; max-height: 330px; border: 0;
}
.address-field-raised .address-suggestions li { min-height: 54px; border-radius: 12px; }
.route-inputs .address-status:not(:empty) { margin: 5px 8px 7px; }
#ride-form .ride-confirm-route { border-radius: 16px; }
#ride-form .ride-confirm-route:disabled { background: #e9f2ff; color: #506989; box-shadow: none; text-shadow: none; opacity: 1; cursor: default; }

.destination-map-pin { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.destination-pin-head { position: absolute; top: 50%; left: 50%; width: 0; height: 0; }
.destination-pin-head::before, .destination-pin-head::after { content: ''; position: absolute; }
.destination-pin-head::before {
  width: 38px; height: 38px; top: -46px; left: -19px; z-index: 1;
  transform: rotate(-45deg); border: 2px solid #c9efff;
}
.destination-pin-head::after {
  width: 30px; height: 10px; top: -4px; left: -15px; border: 1px solid #fff;
  border-radius: 50%; background: #0068ff48; box-shadow: 0 2px 8px #103d9a80;
}
.destination-map-sheet {
  position: absolute; left: 50%; bottom: 27px; transform: translateX(-50%); width: min(calc(100% - 24px), 430px);
  padding: 9px 10px; display: grid; gap: 6px; background: #fffffff5;
  border: 1px solid #dbe7f5; border-radius: 17px; box-shadow: 0 7px 22px #15376038;
}
.destination-map-sheet output {
  color: #304a68; text-align: center; font-size: .8rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.destination-map-buttons { display: flex; justify-content: center; gap: 6px; pointer-events: auto; }
.destination-map-buttons button { flex: 1; min-width: 0; padding-inline: 8px; }
.ride-planner .map-panel:has(.destination-map-pin:not([hidden])) .map-actions { display: none; }

dialog[data-variant="cancel-trip"] {
  width: min(100%, 535px); max-width: calc(100% - 24px); max-height: calc(100dvh - 24px);
  padding: clamp(19px, 4vw, 29px); border-radius: 29px; overflow-y: auto; overscroll-behavior: contain;
}
[data-variant="cancel-trip"] .cancel-heading { display: grid; gap: 13px; margin-bottom: 8px; }
[data-variant="cancel-trip"] h2 { margin: 0; padding: 0; font-size: clamp(1.45rem, 5vw, 1.9rem); }
[data-variant="cancel-trip"] h2:focus { outline: none; }
[data-variant="cancel-trip"] #dialog-content > p:not(.alert) { margin-bottom: 16px; color: var(--muted); }
.cancel-heading-icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px;
  background: linear-gradient(145deg, #ffefec, #ffe2e5); color: #a92f43;
}
.cancel-form { display: grid; gap: 10px; }
.cancel-form > p { margin: 0; color: var(--muted); }
.cancel-form .cancel-options { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.cancel-options label {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  min-height: 52px; gap: 9px; padding: 7px 9px; border-radius: 15px;
  color: var(--ink); border: 1px solid #e2eaf6; background: #f6f9fe; cursor: pointer; font-size: .88rem;
}
.cancel-options label > svg { visibility: hidden; }
.cancel-options label:has(input:checked) { background: #eaf3ff; border-color: #8bb9fb; color: #104681; }
.cancel-options label:has(input:checked) > svg { visibility: visible; }
.cancel-options label:focus-within { outline: 2px solid var(--accent); }
.cancel-form > button { min-height: 45px; justify-content: center; }
.cancel-option-icon {
  display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 auto; border-radius: 11px;
  background: var(--accent-light); color: var(--accent-dark);
}

@media (max-width: 810px), (pointer: coarse) {
  :root.passenger-portal { touch-action: pan-x pan-y; }
  .passenger-portal :is(input, textarea, select) { font-size: max(16px, 1em); }
}
@media (max-width: 810px) {
  body.mobile-icon-nav:not(.ride-focus):not(.account-fullscreen):not(.public-entry) .sidebar {
    inset: auto max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    height: auto; padding: 3px; border: 1px solid #dbe7f6; border-radius: 20px;
    background: #fff; box-shadow: 0 8px 24px #132f5a28;
  }
  .mobile-icon-nav #navigation { gap: 4px; }
  .mobile-icon-nav .nav-link {
    position: relative; min-height: 50px; min-width: 0; padding: 0;
    border-radius: 16px; color: #465d7c;
  }
  .mobile-icon-nav .nav-title {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    clip-path: inset(50%); overflow: hidden; white-space: nowrap;
  }
  .mobile-icon-nav .nav-glyph {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  }
  .mobile-icon-nav .nav-glyph svg { width: 24px; height: 24px; stroke-width: 1.85; }
  .passenger-signed-in .nav-brand { width: 38px; height: 38px; border-radius: inherit; }
  .mobile-icon-nav .nav-link.active { color: #275c9d; background: #eaf3ff; }
  .mobile-icon-nav .nav-link .notification-count { top: 4px; left: calc(50% + 10px); }
  .mobile-icon-nav .notice { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .passenger-signed-in.ride-focus .notice,
  .passenger-signed-in.account-fullscreen .notice,
  .passenger-signed-in.public-entry .notice { bottom: max(16px, env(safe-area-inset-bottom)); }
  body.mobile-icon-nav:not(.ride-focus):not(.account-fullscreen):not(.public-entry) #main {
    padding-bottom: var(--mobile-nav-content-space, calc(76px + env(safe-area-inset-bottom)));
  }
  dialog[data-variant="cancel-trip"] {
    position: fixed; inset: auto 0 0; width: 100%; max-width: none; margin: 0;
    min-height: min(76dvh, 540px); max-height: calc(100dvh - max(12px, env(safe-area-inset-top)));
    padding: 20px max(17px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(17px, env(safe-area-inset-left));
    border-radius: 29px 29px 0 0;
  }
}
