/* Provider Dashboard layout + uniform brand styling */

:root {
  --pd-bg:
    radial-gradient(820px 420px at 0% 0%, color-mix(in srgb, var(--es-primary-bg) 8%, transparent), transparent 48%),
    radial-gradient(720px 360px at 100% 12%, color-mix(in srgb, var(--es-text-primary) 4%, transparent), transparent 44%),
    linear-gradient(180deg, var(--es-bg-page) 0%, var(--es-bg-subtle) 100%);
  --pd-surface: var(--es-bg-surface);
  --pd-surface-strong: var(--es-bg-surface-elevated);
  --pd-muted-surface: var(--es-bg-subtle);
  --pd-border: var(--es-border);
  --pd-border-strong: var(--es-border-strong);
  --pd-shadow: var(--es-shadow-card);
  --pd-shadow-lg: var(--es-shadow-md);
  --pd-brand: var(--es-primary-bg);
  --pd-brand-strong: var(--es-primary-bg-hover);
  --pd-text: var(--es-text-primary);
  --pd-muted: var(--es-text-muted);
  --pd-radius: var(--es-radius-xl);
  --pd-radius-control: var(--es-radius-md);
  --pd-provider-marker-color: #2563eb;
  --pd-pickup-marker-color: #dc2626;
  --pd-safe-area-top: env(safe-area-inset-top, 0px);
  --pd-safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

.pd-password-requirements {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.5rem;
  color: var(--pd-muted);
  font-size: 12px;
  line-height: 1.4;
}

.pd-password-requirements__title {
  color: var(--pd-text);
  font-weight: 700;
}

.pd-password-requirements__list {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-password-requirements__list li {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: start;
  min-width: 0;
}

.pd-password-requirements__icon {
  color: var(--pd-brand);
  font-weight: 800;
  text-align: center;
}

body,
button,
input,
select,
textarea {
  font-family: var(--es-font-sans);
  letter-spacing: 0;
  font-size: var(--es-text-md);
  line-height: var(--es-leading-normal);
}

body {
  background: var(--pd-bg) !important;
}

#pdContentGate {
  background: transparent;
  min-height: 100vh;
  min-height: 100dvh;
}

#pdSidebar {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: var(--pd-border) !important;
  box-shadow: 10px 0 24px rgba(15, 23, 42, 0.06);
}

#pdSidebar .pd-sidebar-brand {
  min-width: 0;
}

#pdSidebar .pd-brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(180deg, #14b8a6, #0f766e);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.2);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

#pdSidebar .pd-brand-text,
#pdSidebar .pd-nav,
#pdSidebar #pdNavLoading,
#pdSidebar button,
#pdSidebar a {
  color: var(--pd-text) !important;
}

#pdSidebar .pd-nav {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 14px !important;
}

#pdSidebar .pd-nav > svg,
#pdSidebar #btnDarkToggle > svg,
#pdSidebar #btnLogout > svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

#pdSidebar .pd-nav:hover,
#pdSidebar .pd-nav:focus-visible {
  background: #f0fdfa !important;
  border-color: rgba(15, 118, 110, 0.18) !important;
  color: #0f172a !important;
}

#pdSidebar #btnLogout:focus,
#pdSidebar #btnLogout:focus-visible {
  background: var(--pd-surface) !important;
  border-color: var(--pd-border-strong) !important;
  box-shadow: inset 0 0 0 1px var(--pd-border-strong) !important;
  color: var(--pd-text) !important;
  outline: 2px solid transparent !important;
  outline-offset: 0 !important;
}

#pdSidebar .pd-nav[aria-current="true"],
#pdSidebar .pd-nav.pd-active {
  background: #ecfdf5 !important;
  border-color: rgba(15, 118, 110, 0.28) !important;
  box-shadow: inset 3px 0 0 #0f766e, inset 0 1px 0 rgba(255,255,255,.75);
  color: #115e59 !important;
}

#pdSidebar .pd-nav.pd-nav-loading {
  background: color-mix(in srgb, var(--es-brand-50) 78%, var(--pd-surface)) !important;
  border-color: color-mix(in srgb, var(--pd-brand) 34%, transparent) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 8px 18px color-mix(in srgb, var(--pd-brand) 16%, transparent);
}

#pdSidebar .pd-nav-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: auto;
  flex: 0 0 auto;
  border-radius: 9999px;
  border: 2px solid color-mix(in srgb, var(--pd-brand) 18%, transparent);
  border-top-color: var(--pd-brand);
  animation: pd-pane-spin .78s linear infinite;
}

#pdSidebar .border-slate-200,
#pdSidebar .dark\:border-slate-800 {
  border-color: var(--pd-border) !important;
}

header.bg-white,
main + header,
body > header {
  background: color-mix(in srgb, var(--pd-surface) 88%, transparent) !important;
  backdrop-filter: blur(14px);
  border-color: var(--pd-border) !important;
  box-shadow: var(--es-shadow-sm);
}

main {
  background: transparent !important;
}

.pd-secondary-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-control);
  background: color-mix(in srgb, var(--pd-surface) 92%, var(--pd-brand-soft));
  padding: 0.625rem 0.75rem;
  box-shadow: var(--es-shadow-sm);
}

.pd-secondary-context[hidden] {
  display: none !important;
}

.pd-secondary-context__back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  border-radius: var(--pd-radius-control);
  background: transparent;
  padding: 0.5rem 0.625rem;
  color: var(--pd-brand-strong);
  font-size: 0.875rem;
  font-weight: 750;
  cursor: pointer;
}

.pd-secondary-context__back:hover,
.pd-secondary-context__back:focus-visible {
  background: var(--pd-brand-soft);
  outline: none;
}

.pd-secondary-context__current {
  min-width: 0;
  overflow: hidden;
  color: var(--pd-text);
  font-size: 0.8125rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-activity-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  width: min(100%, 30rem);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-control);
  background: var(--pd-surface-muted);
  padding: 0.25rem;
}

.pd-activity-switcher button {
  min-height: 44px;
  border: 0;
  border-radius: calc(var(--pd-radius-control) - 3px);
  background: transparent;
  color: var(--pd-muted);
  font-size: 0.875rem;
  font-weight: 750;
  cursor: pointer;
}

.pd-activity-switcher button[aria-current="page"] {
  background: var(--pd-surface);
  color: var(--pd-text);
  box-shadow: var(--es-shadow-sm);
}

.pd-activity-switcher button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pd-brand) 28%, transparent);
  outline-offset: 1px;
}

.bg-white,
.es-card,
.pd-pane-card {
  background: var(--pd-surface) !important;
  border-color: var(--pd-border) !important;
  box-shadow: var(--pd-shadow);
}

.pd-pane-card,
.es-card {
  border-radius: var(--pd-radius) !important;
}

#pdSidebar .pd-brand-text {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

#pdSidebar .pd-nav-icon {
  width: 20px;
  height: 20px;
}

#pdSidebar .pd-sidebar,
#pdSidebar .pd-nav,
#pdSidebar button,
#pdSidebar a {
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

#pdSidebar .pd-sidebar.collapsed .pd-nav,
#pdSidebar.collapsed .pd-nav,
.pd-sidebar.collapsed .pd-nav {
  min-height: 42px;
}

html.dark #pdSidebar {
  background:
    radial-gradient(520px 220px at 10% 0%, rgba(20,184,166,.16), transparent 55%),
    radial-gradient(420px 180px at 100% 14%, rgba(148,163,184,.10), transparent 55%),
    linear-gradient(180deg, rgba(15,23,42,.98), rgba(2,6,23,.98)) !important;
  border-color: rgba(148,163,184,.16) !important;
  box-shadow: 12px 0 28px rgba(2,6,23,.18);
}

html.dark #pdSidebar .pd-brand-text,
html.dark #pdSidebar .pd-nav,
html.dark #pdSidebar #pdNavLoading,
html.dark #pdSidebar button,
html.dark #pdSidebar a {
  color: rgba(248,250,252,.96) !important;
}

html.dark #pdSidebar .pd-nav:hover,
html.dark #pdSidebar .pd-nav:focus-visible {
  background: rgba(20,184,166,.12) !important;
  border-color: rgba(94,234,212,.24) !important;
}

html.dark #pdSidebar .pd-nav[aria-current="true"],
html.dark #pdSidebar .pd-nav.pd-active {
  background: linear-gradient(180deg, rgba(20,184,166,.18), rgba(15,118,110,.12)) !important;
  border-color: rgba(94,234,212,.34) !important;
  box-shadow: inset 3px 0 0 #5eead4, inset 0 1px 0 rgba(255,255,255,.05);
  color: #ccfbf1 !important;
}

html.dark #pdSidebar .pd-nav.pd-nav-loading {
  background: linear-gradient(180deg, rgba(30,41,59,.96), rgba(15,23,42,.96)) !important;
  border-color: color-mix(in srgb, var(--pd-brand) 34%, transparent) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 18px color-mix(in srgb, var(--pd-brand) 12%, transparent);
}

html.dark #pdSidebar .pd-nav-loading::after {
  border-color: color-mix(in srgb, var(--pd-brand) 22%, transparent);
  border-top-color: color-mix(in srgb, var(--pd-brand) 96%, white);
}

html.dark #pdSidebar .border-slate-200,
html.dark #pdSidebar .dark\:border-slate-800 {
  border-color: rgba(148,163,184,.14) !important;
}

.pd-nav-section {
  position: relative;
}

.pd-pane-skeleton {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(248,250,252,.92)),
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,.36) 50%, transparent 100%);
  background-size: auto, 220px 100%;
  background-repeat: no-repeat;
  animation: pd-pane-shimmer 1.08s ease-in-out infinite;
  pointer-events: none;
}

.dark .pd-pane-skeleton {
  background:
    linear-gradient(180deg, rgba(15,23,42,.9), rgba(2,6,23,.95)),
    linear-gradient(90deg, transparent 0%, rgba(148,163,184,.14) 50%, transparent 100%);
  background-size: auto, 220px 100%;
  background-repeat: no-repeat;
}

.pd-nav-section[data-loading="true"] .pd-pane-skeleton {
  display: grid;
}

.pd-pane-skeleton-hero {
  display: grid;
  gap: 0.65rem;
}

.pd-pane-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.875rem;
}

.pd-pane-skeleton-list {
  display: grid;
  gap: 0.75rem;
}

.pd-pane-skeleton-card,
.pd-pane-skeleton-row {
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 1rem;
  background: rgba(248,250,252,.86);
  padding: 0.875rem;
}

.dark .pd-pane-skeleton-card,
.dark .pd-pane-skeleton-row {
  border-color: rgba(51,65,85,.94);
  background: rgba(15,23,42,.72);
}

.pd-pane-skeleton-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(88px, auto) minmax(0, 0.65fr);
  align-items: center;
  gap: 0.75rem;
}

.pd-pane-skeleton-stat {
  display: grid;
  gap: 0.45rem;
}

.pd-nav-section[data-loading="true"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.9)),
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,.42) 50%, transparent 100%);
  background-size: auto, 220px 100%;
  background-repeat: no-repeat;
  animation: pd-pane-shimmer 1.1s ease-in-out infinite;
  pointer-events: none;
}

.dark .pd-nav-section[data-loading="true"]::before {
  background:
    linear-gradient(180deg, rgba(15,23,42,.86), rgba(30,41,59,.82)),
    linear-gradient(90deg, transparent 0%, rgba(148,163,184,.14) 50%, transparent 100%);
  background-size: auto, 220px 100%;
  background-repeat: no-repeat;
}

.pd-nav-section[data-loading="true"]::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 4;
  border-radius: 18px;
  background-image:
    linear-gradient(rgba(226,232,240,.9), rgba(226,232,240,.9)),
    linear-gradient(rgba(226,232,240,.9), rgba(226,232,240,.9)),
    linear-gradient(rgba(226,232,240,.9), rgba(226,232,240,.9)),
    linear-gradient(rgba(226,232,240,.9), rgba(226,232,240,.9));
  background-repeat: no-repeat;
  background-size:
    24% 12px,
    54% 18px,
    100% 110px,
    100% calc(100% - 168px);
  background-position:
    22px 20px,
    22px 44px,
    22px 84px,
    22px 214px;
  opacity: .94;
  pointer-events: none;
}

.dark .pd-nav-section[data-loading="true"]::after {
  background-image:
    linear-gradient(rgba(51,65,85,.92), rgba(51,65,85,.92)),
    linear-gradient(rgba(51,65,85,.92), rgba(51,65,85,.92)),
    linear-gradient(rgba(51,65,85,.92), rgba(51,65,85,.92)),
    linear-gradient(rgba(51,65,85,.92), rgba(51,65,85,.92));
}

.rounded-2xl,
.rounded-xl {
  overflow: hidden;
}

.rounded-full,
button.rounded-full,
a.rounded-full[role="button"] {
  border-radius: 12px !important;
}

button.rounded-lg,
a.rounded-lg,
.rounded-lg {
  border-radius: 12px !important;
}

#banner {
  border: 1px solid color-mix(in srgb, var(--pd-brand) 24%, var(--pd-border));
  background: color-mix(in srgb, var(--es-brand-50) 72%, var(--pd-surface)) !important;
  color: var(--pd-brand-strong) !important;
  box-shadow: var(--pd-shadow);
}

#pdLocBanner {
  border-color: rgba(245,158,11,.28) !important;
  background: linear-gradient(180deg, rgba(255,251,235,.98), rgba(254,243,199,.92)) !important;
}

.es-btn.es-btn-primary,
.bg-brand-600,
.hover\:bg-brand-700:hover {
  box-shadow: 0 12px 24px rgba(79,70,229,.22);
}

.text-slate-500 { color: rgba(71,85,105,.9) !important; }
.text-slate-700, .text-slate-900 { color: rgb(15 23 42) !important; }

/* Stronger visible shell pass */
#pdSidebar + .flex-1 > header {
  min-height: 72px;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

#pdSidebar + .flex-1 > header h1 {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

#statusValue {
  min-height: 34px;
  padding: 0 12px !important;
  border: 1px solid rgba(148,163,184,.22) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.92)) !important;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
}

#partialDashboard,
#fullDashboard {
  gap: 18px !important;
}

#partialDashboard > .es-card,
#fullDashboard > .es-card,
#fullDashboard > .pd-nav-section > .es-card,
#fullDashboard > .pd-nav-section > .pd-pane-card {
  border-radius: 20px !important;
  border: 1px solid rgba(203,213,225,.88) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.95)) !important;
  box-shadow: var(--pd-shadow-lg);
}

#fullDashboard .grid > .es-card,
#fullDashboard .grid > .pd-pane-card,
#partialDashboard .grid > .es-card,
#partialDashboard .grid > .pd-pane-card {
  border-radius: 18px !important;
  box-shadow: var(--pd-shadow);
}

#providerLiveMapContainer,
#mapPageMapWrapper,
#overviewMapWrapper > div {
  border-radius: 18px !important;
  border: 1px solid rgba(203,213,225,.88) !important;
  box-shadow: var(--pd-shadow);
  overflow: hidden;
}

#providerLiveMapContainer,
#mapPageMapWrapper {
  height: clamp(340px, 38vh, 420px);
}

.pd-live-map-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.pd-live-map-page__back {
  min-height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--pd-border-strong);
  border-radius: var(--pd-radius-control);
  background: var(--pd-surface);
  padding: .6rem .8rem;
  color: var(--pd-brand-strong);
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
}

.pd-live-map-page__back:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pd-brand) 30%, transparent);
  outline-offset: 2px;
}

#providerLiveMapContainer .es-map-vehicle-pulse-marker--customer .es-map-vehicle-pulse-marker__dot,
#mapPageMapWrapper .es-map-vehicle-pulse-marker--customer .es-map-vehicle-pulse-marker__dot {
  animation: none !important;
}

#providerLiveMapContainer .es-map-vehicle-pulse-marker--customer .es-map-vehicle-pulse-marker__dot::after,
#mapPageMapWrapper .es-map-vehicle-pulse-marker--customer .es-map-vehicle-pulse-marker__dot::after {
  display: none !important;
  animation: none !important;
}

.pd-map-pickup-marker {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: visible;
  pointer-events: none;
}

.pd-leaflet-marker .pd-map-pickup-marker {
  position: relative;
}

.pd-map-pickup-marker__visual {
  position: relative;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  transform: none;
  transition: transform 160ms ease-out;
  will-change: transform;
}

.pd-map-pickup-marker::before,
.pd-map-pickup-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  display: none;
  pointer-events: none;
}

.pd-map-pickup-marker[data-marker-overlap="separated"]::before {
  z-index: 1;
  display: block;
  width: 9px;
  height: 9px;
  border: 2px solid rgba(255, 255, 255, .96);
  border-radius: 999px;
  background: var(--pd-pickup-marker-color, #2563eb);
  box-shadow: 0 1px 4px rgba(15, 23, 42, .28);
  transform: translate(-50%, -50%);
}

.pd-map-pickup-marker[data-marker-overlap="separated"]::after {
  z-index: 0;
  display: block;
  width: var(--pd-pickup-connector-length, 0px);
  height: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pd-pickup-marker-color, #2563eb) 72%, white);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .72);
  transform: translateY(-50%) rotate(var(--pd-pickup-offset-angle, 0deg));
  transform-origin: 0 50%;
}

.pd-map-pickup-marker[data-marker-overlap="separated"] > .pd-map-pickup-marker__visual {
  transform: translate3d(
    var(--pd-pickup-offset-x, 0px),
    var(--pd-pickup-offset-y, 0px),
    0
  );
}

@media (prefers-reduced-motion: reduce) {
  .pd-map-pickup-marker__visual {
    transition: none;
  }
}

#pdOverviewServicesChips > *,
#pdStatusPill,
#pdMessagesUnread,
#providerLiveMapEta,
#providerLiveMapStatus {
  border-radius: 12px !important;
}

.pd-live-map-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  margin-top: 6px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.92);
  padding: 8px 10px;
  color: #0f172a;
}

.pd-live-map-navigation.hidden,
.pd-live-map-navigation[aria-hidden="true"] {
  display: none;
}

.pd-live-map-navigation__instruction {
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
}

.pd-live-map-navigation__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 0;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}

html.dark .pd-live-map-navigation,
body.dark .pd-live-map-navigation {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
}

html.dark .pd-live-map-navigation__meta,
body.dark .pd-live-map-navigation__meta {
  color: #cbd5e1;
}

.pd-map-app-control {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(226, 232, 240, 0.94));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(12px);
}

.pd-map-control-button {
  display: grid;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1e3a8a;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.pd-map-control-button svg {
  width: 19px;
  height: 19px;
  pointer-events: none;
}

.pd-map-control-button + .pd-map-control-button {
  border-top: 1px solid rgba(148, 163, 184, 0.55);
}

.pd-map-control-button:hover,
.pd-map-control-button:focus-visible {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  outline: 0;
}

.pd-map-control-button:active {
  transform: scale(0.96);
}

.pd-map-control-button:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.42);
}

.pd-map-control-button.is-following {
  background: rgba(37, 99, 235, 0.16);
  color: #1d4ed8;
}

html.dark .pd-map-app-control,
body.dark .pd-map-app-control {
  border-color: rgba(96, 165, 250, 0.3);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.84));
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.46);
}

html.dark .pd-map-control-button,
body.dark .pd-map-control-button {
  color: #bfdbfe;
}

html.dark .pd-map-control-button + .pd-map-control-button,
body.dark .pd-map-control-button + .pd-map-control-button {
  border-top-color: rgba(71, 85, 105, 0.74);
}

html.dark .pd-map-control-button:hover,
html.dark .pd-map-control-button:focus-visible,
html.dark .pd-map-control-button.is-following,
body.dark .pd-map-control-button:hover,
body.dark .pd-map-control-button:focus-visible,
body.dark .pd-map-control-button.is-following {
  background: rgba(59, 130, 246, 0.18);
  color: #dbeafe;
}

#pdMessagesList,
#pdDocsListFull,
#pdJobOffersListOffers,
#servicesListFull,
#servicesList {
  border-radius: 16px !important;
}

#pdActiveRequestCard {
  overflow: visible !important;
}

#pdActiveRequestStatus .es-pill {
  border-radius: 999px !important;
  min-height: 30px;
  padding: 0 12px;
  font-size: 0.75rem;
  font-weight: 800;
}

#pdActiveRequestBody > .grid {
  border-color: rgba(203,213,225,.86) !important;
  background: linear-gradient(180deg, rgba(248,250,252,.92), rgba(241,245,249,.76)) !important;
}

html.dark #pdActiveRequestBody > .grid {
  border-color: rgba(51,65,85,.92) !important;
  background: rgba(15,23,42,.54) !important;
}

.pd-current-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  color: rgb(15 23 42);
}

html.dark .pd-current-section-title {
  color: rgb(248 250 252);
}

.pd-current-section-copy,
.pd-current-helper {
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(71,85,105,.94);
}

html.dark .pd-current-section-copy,
html.dark .pd-current-helper {
  color: rgba(203,213,225,.88);
}

.pd-current-workflow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pd-current-primary-action {
  min-height: 40px;
  border-radius: var(--pd-radius-control);
  border: 1px solid var(--pd-brand-strong);
  background: linear-gradient(180deg, var(--pd-brand), var(--pd-brand-strong));
  padding: 0 0.95rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 12px 24px rgba(15,118,110,.2);
}

.pd-current-primary-action:hover {
  filter: brightness(1.04);
}

.pd-current-primary-action.is-disabled,
.pd-current-primary-action:disabled {
  cursor: not-allowed;
  border-color: rgba(148, 163, 184, .72);
  background: linear-gradient(180deg, rgba(226, 232, 240, .92), rgba(203, 213, 225, .9));
  color: rgba(71, 85, 105, .86);
  box-shadow: none;
  filter: none;
}

.pd-current-secondary-action {
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--pd-brand) 36%, var(--pd-border));
  border-radius: var(--pd-radius-control);
  background: color-mix(in srgb, var(--pd-brand) 8%, var(--pd-surface));
  padding: 0 .78rem;
  color: var(--pd-brand-strong);
  font-size: .74rem;
  font-weight: 850;
}

.pd-manual-arrival-override {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border-bottom: 1px solid rgba(226,232,240,.9);
  padding-bottom: .75rem;
  font-size: .75rem;
  color: rgba(71,85,105,.92);
}

.pd-manual-arrival-override.hidden {
  display: none !important;
}

.pd-manual-arrival-override__copy {
  min-width: 0;
}

.pd-current-cancel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid rgba(226,232,240,.9);
  padding-top: 0.75rem;
  font-size: 0.75rem;
  color: rgba(71,85,105,.92);
}

html.dark .pd-current-cancel-footer {
  border-color: rgba(51,65,85,.9);
  color: rgba(203,213,225,.86);
}

html.dark .pd-current-primary-action.is-disabled,
html.dark .pd-current-primary-action:disabled {
  border-color: rgba(71, 85, 105, .82);
  background: linear-gradient(180deg, rgba(51, 65, 85, .9), rgba(30, 41, 59, .92));
  color: rgba(203, 213, 225, .72);
}

html.dark .pd-manual-arrival-override {
  border-color: rgba(51,65,85,.9);
  color: rgba(203,213,225,.86);
}

.pd-current-cancel-action {
  min-height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(251,113,133,.42);
  background: rgba(255,241,242,.82);
  padding: 0 0.78rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: rgb(190 18 60);
}

.pd-current-cancel-action:hover {
  background: rgba(255,228,230,.94);
}

html.dark .pd-current-cancel-action {
  border-color: rgba(190,18,60,.56);
  background: rgba(76,5,25,.28);
  color: rgb(253 164 175);
}

html.dark .pd-current-cancel-action:hover {
  background: rgba(76,5,25,.42);
}

.pd-current-job-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pd-current-job-card__identity {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}

.pd-current-job-card__icon {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pd-brand) 16%, var(--pd-surface-strong));
  color: var(--pd-brand-strong);
}

.pd-current-job-card__icon svg {
  width: 19px;
  height: 19px;
}

.pd-current-job-card__label,
.pd-active-side-card__label {
  margin: 0;
  color: var(--pd-muted);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.25;
}

.pd-current-job-card__title {
  margin: .12rem 0 0;
  color: var(--pd-text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pd-current-job-card__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
}

.pd-current-route-metric {
  display: grid;
  gap: .08rem;
  min-width: 5.8rem;
  text-align: right;
}

.pd-current-route-metric span:first-child {
  color: var(--pd-text);
  font-size: 1.18rem;
  font-weight: 850;
  line-height: 1.1;
}

.pd-current-route-metric span:last-child {
  color: var(--pd-muted);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
}

.pd-current-job-status {
  display: flex;
  justify-content: flex-end;
}

.pd-active-job-age {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  margin-top: .62rem;
  color: var(--pd-muted);
  font-size: .74rem;
  font-weight: 760;
  line-height: 1.3;
}

.pd-active-job-age.hidden {
  display: none !important;
}

.pd-active-job-age__dot {
  width: .46rem;
  height: .46rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pd-muted) 70%, transparent);
}

.pd-active-job-age[data-attention="check_in_due"],
.pd-active-job-age[data-attention="urgent"] {
  color: color-mix(in srgb, #b45309 80%, var(--pd-text));
}

.pd-active-job-age[data-attention="check_in_due"] .pd-active-job-age__dot,
.pd-active-job-age[data-attention="urgent"] .pd-active-job-age__dot {
  background: #f59e0b;
  box-shadow: 0 0 0 3px color-mix(in srgb, #f59e0b 18%, transparent);
}

.pd-active-job-age[data-attention="urgent"] .pd-active-job-age__dot {
  background: #e11d48;
  box-shadow: 0 0 0 3px color-mix(in srgb, #e11d48 18%, transparent);
}

.pd-active-job-check-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  margin-top: .62rem;
  border: 1px solid color-mix(in srgb, #f59e0b 42%, var(--pd-border));
  border-radius: 11px;
  background: color-mix(in srgb, #fef3c7 54%, var(--pd-surface));
  padding: .68rem .74rem;
  color: color-mix(in srgb, #92400e 82%, var(--pd-text));
}

.pd-active-job-check-in.hidden {
  display: none !important;
}

.pd-active-job-check-in[data-attention="urgent"] {
  border-color: color-mix(in srgb, #e11d48 38%, var(--pd-border));
  background: color-mix(in srgb, #fff1f2 62%, var(--pd-surface));
  color: color-mix(in srgb, #9f1239 82%, var(--pd-text));
}

.pd-active-job-check-in__copy {
  display: grid;
  flex: 1 1 auto;
  gap: .18rem;
  min-width: 0;
  font-size: .73rem;
  line-height: 1.42;
}

.pd-active-job-check-in__copy strong {
  font-size: .78rem;
  font-weight: 850;
}

.pd-active-job-check-in button {
  min-height: 36px;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, currentColor 32%, var(--pd-border));
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 8%, var(--pd-surface));
  padding: 0 .82rem;
  color: inherit;
  font-size: .72rem;
  font-weight: 850;
  cursor: pointer;
}

.pd-active-job-check-in button:hover,
.pd-active-job-check-in button:focus-visible {
  background: color-mix(in srgb, currentColor 13%, var(--pd-surface));
}

.pd-active-job-check-in button:focus-visible {
  outline: 2px solid color-mix(in srgb, currentColor 28%, transparent);
  outline-offset: 2px;
}

.pd-active-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: .72rem 0 0;
  padding: .28rem 0 0;
  list-style: none;
  min-height: 48px;
}

.pd-active-timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 18px;
  right: 18px;
  height: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pd-border-strong) 78%, transparent);
  pointer-events: none;
}

.pd-active-timeline li::before,
.pd-active-timeline li:first-child::before,
.pd-active-timeline li.is-complete::before,
.pd-active-timeline li.is-current::before {
  display: none;
}

.pd-active-timeline li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: .22rem;
  min-width: 0;
  color: color-mix(in srgb, var(--pd-muted) 72%, transparent);
  padding: 0 .25rem;
  font-size: .66rem;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
}

.pd-active-timeline__dot {
  display: block;
  width: 16px;
  height: 16px;
  border: 3px solid var(--pd-surface);
  border-radius: 999px;
  background: var(--pd-border-strong);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--pd-border-strong) 86%, transparent),
    0 8px 18px rgba(15, 23, 42, .08);
}

.pd-active-timeline li.is-complete,
.pd-active-timeline li.is-current {
  color: var(--pd-text);
}

.pd-active-timeline li.is-complete .pd-active-timeline__dot {
  background: var(--pd-brand);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--pd-brand) 35%, transparent),
    0 8px 18px color-mix(in srgb, var(--pd-brand) 18%, transparent);
}

.pd-active-timeline li.is-current .pd-active-timeline__dot {
  border-color: var(--pd-surface);
  background: var(--pd-brand);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--pd-brand) 16%, transparent),
    0 10px 22px color-mix(in srgb, var(--pd-brand) 18%, transparent);
  animation: pd-active-timeline-current-pulse 1.45s ease-in-out infinite;
}

.pd-active-timeline__label {
  color: inherit;
  font-weight: 800;
  line-height: 1.15;
}

.pd-active-timeline__sub {
  color: var(--pd-muted);
  font-size: .64rem;
  font-weight: 720;
  line-height: 1.1;
}

.pd-active-timeline li.is-complete .pd-active-timeline__sub {
  color: color-mix(in srgb, var(--pd-brand-strong) 82%, var(--pd-text));
}

.pd-active-timeline li.is-current .pd-active-timeline__sub {
  color: var(--pd-brand-strong);
  font-weight: 820;
}

@keyframes pd-active-timeline-current-pulse {
  0%,
  100% {
    transform: scale(.94);
    box-shadow:
      0 0 0 4px color-mix(in srgb, var(--pd-brand) 14%, transparent),
      0 8px 18px color-mix(in srgb, var(--pd-brand) 16%, transparent);
  }
  50% {
    transform: scale(1.12);
    box-shadow:
      0 0 0 7px color-mix(in srgb, var(--pd-brand) 18%, transparent),
      0 10px 24px color-mix(in srgb, var(--pd-brand) 20%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd-active-timeline li.is-current .pd-active-timeline__dot {
    animation: none;
    transform: none;
  }
}

.pd-active-job-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(280px, .76fr);
  gap: .72rem;
  align-items: stretch;
  min-width: 0;
}

.pd-live-map-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.pd-live-map-card__header h3 {
  margin: 0;
  color: var(--pd-text);
  font-size: .92rem !important;
  font-weight: 800;
}

.pd-live-map-card__live {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 24px;
  padding: 0 .55rem;
  border: 1px solid color-mix(in srgb, var(--pd-brand) 32%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--pd-brand) 10%, transparent);
  color: var(--pd-brand-strong);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}

.pd-live-map-card__live span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .16);
}

.pd-live-map-card__live [data-map-health-label] {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pd-live-map-card__live[data-map-health-state="updating"],
.pd-live-map-card__live[data-map-health-state="stale"],
.pd-live-map-card__live[data-map-health-state="customer_stale"] {
  border-color: color-mix(in srgb, #f59e0b 36%, var(--pd-border));
  background: color-mix(in srgb, #fef3c7 58%, var(--pd-surface));
  color: color-mix(in srgb, #92400e 82%, var(--pd-text));
}

.pd-live-map-card__live[data-map-health-state="route_unavailable"] {
  border-color: color-mix(in srgb, #2563eb 34%, var(--pd-border));
  background: color-mix(in srgb, #dbeafe 52%, var(--pd-surface));
  color: color-mix(in srgb, #1e40af 78%, var(--pd-text));
}

.pd-live-map-card__live[data-map-health-state="updating"] > span:first-child,
.pd-live-map-card__live[data-map-health-state="stale"] > span:first-child,
.pd-live-map-card__live[data-map-health-state="customer_stale"] > span:first-child {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .18);
}

.pd-live-map-card__live[data-map-health-state="route_unavailable"] > span:first-child {
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}

.pd-live-map-card__legend {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: .5rem;
  color: var(--pd-muted);
  font-size: .72rem;
  font-weight: 700;
}

.pd-live-map-card__legend span {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
}

.pd-live-map-route-notice {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .55rem;
  margin-top: .45rem;
  border: 1px solid color-mix(in srgb, #2563eb 34%, var(--pd-border));
  border-radius: 10px;
  background: color-mix(in srgb, #dbeafe 42%, var(--pd-surface));
  padding: .45rem .55rem;
  color: color-mix(in srgb, #1e40af 82%, var(--pd-text));
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.35;
}

.pd-live-map-route-notice.hidden {
  display: none !important;
}

.pd-live-map-route-notice__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.pd-live-map-route-notice__action {
  flex: 0 0 auto;
  min-height: 26px;
  border: 1px solid color-mix(in srgb, #2563eb 42%, var(--pd-border));
  border-radius: 999px;
  background: color-mix(in srgb, #2563eb 12%, var(--pd-surface));
  padding: 0 .62rem;
  color: color-mix(in srgb, #1d4ed8 82%, var(--pd-text));
  font-size: .7rem;
  font-weight: 850;
  text-decoration: none;
}

.pd-live-map-route-notice__action:disabled {
  cursor: progress;
  opacity: .7;
}

.pd-marker-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.95), 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}

.pd-marker-dot--provider {
  color: var(--pd-provider-marker-color);
  border-radius: 3px;
  background: var(--pd-provider-marker-color);
  transform: rotate(45deg);
}

.pd-marker-dot--pickup {
  color: var(--pd-pickup-marker-color);
  background: var(--pd-pickup-marker-color);
}

.pd-marker-dot--pickup::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(255, 255, 255, .94);
  border-radius: 999px;
}

.pd-active-job-summary-stack,
.pd-active-issue-stack {
  display: grid;
  gap: .72rem;
  min-width: 0;
}

.pd-active-tracking-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border: 1px solid color-mix(in srgb, #0891b2 30%, var(--pd-border));
  border-radius: 10px;
  background: color-mix(in srgb, #ecfeff 42%, var(--pd-surface));
  padding: .46rem .6rem;
  color: color-mix(in srgb, #0e7490 66%, var(--pd-text));
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.35;
}

.pd-active-tracking-notice::before {
  display: none;
}

.pd-active-tracking-notice.hidden {
  display: none !important;
}

.pd-active-tracking-notice__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.pd-active-tracking-notice__action {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 .7rem;
  border: 1px solid color-mix(in srgb, #0891b2 45%, var(--pd-border));
  border-radius: 999px;
  background: color-mix(in srgb, #0891b2 14%, var(--pd-surface));
  color: color-mix(in srgb, #0e7490 82%, var(--pd-text));
  font-size: .7rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.pd-active-tracking-notice__action:hover,
.pd-active-tracking-notice__action:focus-visible {
  border-color: color-mix(in srgb, #0891b2 62%, var(--pd-border));
  background: color-mix(in srgb, #0891b2 18%, var(--pd-surface));
}

.pd-active-tracking-notice__action:focus-visible {
  outline: 2px solid rgba(8, 145, 178, .28);
  outline-offset: 2px;
}

.pd-arrival-gate-note {
  border: 1px solid color-mix(in srgb, #f59e0b 34%, var(--pd-border));
  border-radius: 10px;
  background: color-mix(in srgb, #fef3c7 48%, var(--pd-surface));
  padding: .48rem .62rem;
  color: color-mix(in srgb, #92400e 82%, var(--pd-text));
  font-weight: 780;
}

.pd-arrival-gate-note.hidden {
  display: none !important;
}

.pd-active-side-card,
.pd-active-more-options {
  border: 1px solid var(--pd-border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--pd-surface) 94%, var(--pd-muted-surface));
  padding: .86rem;
  color: var(--pd-text);
}

.pd-active-customer {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: .58rem;
  min-width: 0;
}

.pd-active-customer__body {
  min-width: 0;
}

.pd-active-customer__avatar {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--pd-brand) 24%, var(--pd-border));
  background: color-mix(in srgb, var(--pd-brand) 18%, var(--pd-muted-surface));
  color: color-mix(in srgb, var(--pd-brand) 55%, var(--pd-text));
  box-shadow: 0 10px 22px rgba(15, 23, 42, .1);
  font-size: .98rem;
  font-weight: 850;
}

.pd-active-customer__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-active-customer__name {
  color: var(--pd-text);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pd-active-customer__vehicle,
.pd-active-payout-meta {
  margin-top: .16rem;
  color: var(--pd-muted);
  font-size: .74rem;
  font-weight: 650;
  line-height: 1.3;
}

.pd-active-customer-vehicle {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  margin-top: .74rem;
  padding: .62rem;
  border: 1px solid color-mix(in srgb, var(--pd-border) 84%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--pd-muted-surface) 54%, transparent);
}

.pd-active-customer-vehicle.hidden {
  display: none !important;
}

.pd-active-customer-vehicle__icon {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: color-mix(in srgb, var(--pd-surface-strong) 88%, var(--pd-brand));
}

.pd-active-customer-vehicle__icon .cd-vehicle-thumbnail,
.pd-active-customer-vehicle__icon svg,
.pd-active-customer-vehicle__icon img {
  width: 42px;
  height: 42px;
  max-width: 42px;
  max-height: 42px;
}

.pd-active-customer-vehicle__icon .es-map-provider-generic-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
}

.pd-active-customer-vehicle__copy {
  min-width: 0;
}

.pd-active-customer-vehicle__meta {
  margin-top: .12rem;
  color: var(--pd-muted);
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pd-active-contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-top: .72rem;
}

.pd-active-contact-actions button,
.pd-active-contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--pd-border-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--pd-text);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
}

.pd-active-detail-list {
  display: grid;
  gap: .48rem;
  margin: .7rem 0 0;
}

.pd-active-detail-list div {
  display: grid;
  grid-template-columns: minmax(5rem, .65fr) minmax(0, 1fr);
  gap: .75rem;
  align-items: baseline;
}

.pd-active-detail-list dt {
  color: var(--pd-muted);
  font-size: .78rem;
  font-weight: 700;
}

.pd-active-detail-list dd {
  margin: 0;
  color: var(--pd-text);
  font-size: .78rem;
  font-weight: 850;
  text-align: right;
  overflow-wrap: anywhere;
}

.pd-active-payout-amount {
  margin-top: .28rem;
  color: var(--pd-text);
  font-size: 1.38rem;
  font-weight: 850;
  line-height: 1.1;
}

.pd-active-payout-link {
  display: inline-flex;
  width: fit-content;
  margin-top: .72rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pd-brand-strong);
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.pd-active-payout-link:hover,
.pd-active-payout-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pd-active-payout-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--pd-brand) 48%, transparent);
  outline-offset: 3px;
  border-radius: 4px;
}

.pd-active-job-action-stack {
  display: grid;
  gap: .62rem;
  margin-top: .72rem;
}

.pd-active-job-action-stack .pd-current-workflow-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: .5rem;
}

.pd-active-job-action-stack .pd-current-primary-action {
  width: auto;
  min-width: min(100%, 13rem);
  min-height: 44px;
  border-radius: 10px;
  border-color: var(--pd-brand-strong);
  background: linear-gradient(180deg, var(--pd-brand), var(--pd-brand-strong));
  color: #fff;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--pd-brand) 20%, transparent);
}

.pd-active-job-action-stack .pd-current-primary-action.is-disabled,
.pd-active-job-action-stack .pd-current-primary-action:disabled {
  border-color: rgba(148, 163, 184, .72);
  background: linear-gradient(180deg, rgba(226, 232, 240, .92), rgba(203, 213, 225, .9));
  color: rgba(71, 85, 105, .86);
  box-shadow: none;
}

.pd-active-more-options {
  justify-self: start;
  width: min(100%, 16rem);
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.pd-active-more-options[open] {
  width: min(100%, 38rem);
  padding: .65rem;
  border-color: var(--pd-border);
  background: color-mix(in srgb, var(--pd-surface) 94%, var(--pd-muted-surface));
}

.pd-active-more-options summary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: fit-content;
  min-height: 36px;
  padding: 0 .85rem;
  border: 1px solid var(--pd-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--pd-muted-surface) 54%, transparent);
  cursor: pointer;
  color: var(--pd-muted);
  font-size: .82rem;
  font-weight: 750;
  list-style: none;
}

.pd-active-more-options[open] summary {
  width: 100%;
  min-height: 28px;
  padding: 0 .15rem .45rem;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
}

.pd-active-more-options summary::-webkit-details-marker {
  display: none;
}

.pd-active-more-options__body {
  display: grid;
  gap: .75rem;
  padding: .15rem 0 0;
}

.pd-active-more-options .pd-current-cancel-footer {
  border-top: 0;
  padding-top: 0;
}

html.dark .pd-current-job-card__icon {
  background: rgba(37, 99, 235, .18);
  color: #93c5fd;
}

html.dark .pd-active-timeline::before {
  background: rgba(71, 85, 105, .72);
}

html.dark .pd-active-timeline__dot {
  border-color: rgba(15, 23, 42, .96);
  background: rgba(100, 116, 139, .96);
}

html.dark .pd-active-timeline li.is-complete .pd-active-timeline__dot {
  background: #60a5fa;
}

html.dark .pd-active-timeline li.is-current .pd-active-timeline__dot {
  border-color: rgba(15, 23, 42, .96);
  background: #60a5fa;
  box-shadow:
    0 0 0 5px rgba(96, 165, 250, .18),
    0 10px 22px rgba(96, 165, 250, .16);
}

html.dark .pd-active-timeline li.is-complete .pd-active-timeline__sub,
html.dark .pd-active-timeline li.is-current .pd-active-timeline__sub,
html.dark .pd-active-payout-link {
  color: #bfdbfe;
}

html.dark .pd-live-map-card__live {
  border-color: rgba(96, 165, 250, .34);
  background: rgba(37, 99, 235, .16);
  color: #bfdbfe;
}

html.dark .pd-live-map-card__live[data-map-health-state="updating"],
html.dark .pd-live-map-card__live[data-map-health-state="stale"],
html.dark .pd-live-map-card__live[data-map-health-state="customer_stale"] {
  border-color: rgba(251, 191, 36, .38);
  background: rgba(120, 53, 15, .24);
  color: #fde68a;
}

html.dark .pd-live-map-card__live[data-map-health-state="route_unavailable"] {
  border-color: rgba(96, 165, 250, .38);
  background: rgba(37, 99, 235, .18);
  color: #dbeafe;
}

html.dark .pd-live-map-route-notice {
  border-color: rgba(96, 165, 250, .34);
  background: rgba(37, 99, 235, .16);
  color: #dbeafe;
}

html.dark .pd-live-map-route-notice__action {
  border-color: rgba(96, 165, 250, .46);
  background: rgba(37, 99, 235, .22);
  color: #eff6ff;
}

html.dark .pd-active-tracking-notice {
  border-color: rgba(34, 211, 238, .34);
  background: rgba(8, 145, 178, .2);
  color: #ecfeff;
}

html.dark .pd-active-job-age[data-attention="check_in_due"],
html.dark .pd-active-job-age[data-attention="urgent"] {
  color: #fde68a;
}

html.dark .pd-active-job-check-in {
  border-color: rgba(251, 191, 36, .4);
  background: rgba(120, 53, 15, .3);
  color: #fef3c7;
}

html.dark .pd-active-job-check-in[data-attention="urgent"] {
  border-color: rgba(251, 113, 133, .42);
  background: rgba(136, 19, 55, .28);
  color: #ffe4e6;
}

html.dark .pd-active-job-check-in button {
  background: rgba(15, 23, 42, .34);
}

html.dark .pd-arrival-gate-note {
  border-color: rgba(251, 191, 36, .36);
  background: rgba(120, 53, 15, .26);
  color: #fde68a;
}

html.dark .pd-active-tracking-notice__action {
  border-color: rgba(103, 232, 249, .42);
  background: rgba(8, 145, 178, .24);
  color: #ecfeff;
}

html.dark .pd-active-tracking-notice__action:hover,
html.dark .pd-active-tracking-notice__action:focus-visible {
  background: rgba(8, 145, 178, .32);
}

html.dark .pd-active-side-card {
  background: rgba(15, 23, 42, .68);
  border-color: rgba(71, 85, 105, .62);
}

html.dark .pd-active-job-action-stack .pd-current-primary-action.is-disabled,
html.dark .pd-active-job-action-stack .pd-current-primary-action:disabled {
  border-color: rgba(71, 85, 105, .82);
  background: linear-gradient(180deg, rgba(51, 65, 85, .9), rgba(30, 41, 59, .92));
  color: rgba(203, 213, 225, .72);
}

html.dark .pd-active-more-options {
  border-color: transparent;
  background: transparent;
}

html.dark .pd-active-more-options[open] {
  border-color: rgba(71, 85, 105, .62);
  background: rgba(15, 23, 42, .68);
}

html.dark .pd-active-more-options summary {
  border-color: rgba(71, 85, 105, .62);
  background: rgba(15, 23, 42, .58);
}

html.dark .pd-active-more-options[open] summary {
  border-color: transparent;
  background: transparent;
}

@media (max-width: 980px) {
  .pd-active-job-content-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

#pdActiveRequestInlineNotice {
  border-radius: var(--pd-radius) !important;
  border-color: color-mix(in srgb, var(--pd-brand) 24%, var(--pd-border)) !important;
  background: color-mix(in srgb, var(--es-brand-50) 74%, var(--pd-surface)) !important;
  color: var(--pd-brand-strong) !important;
}

html.dark #pdActiveRequestInlineNotice {
  border-color: rgba(45,212,191,.26) !important;
  background: rgba(20,184,166,.12) !important;
  color: rgb(204 251 241) !important;
}

#pdActiveRequestInlineNotice .pd-arrive-action-btn {
  background: linear-gradient(180deg, var(--pd-brand), var(--pd-brand-strong)) !important;
}

@media (max-width: 640px) {
  #providerLiveMapContainer,
  #mapPageMapWrapper {
    min-height: 320px !important;
  }

  .pd-map-control-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .pd-live-map-navigation {
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem;
  }

  .pd-live-map-navigation__meta {
    justify-content: flex-start;
    text-align: left;
  }

  .pd-current-job-card__head,
  .pd-current-job-card__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .pd-current-job-card__meta,
  .pd-current-route-metric {
    width: 100%;
    text-align: left;
  }

  .pd-active-timeline {
    gap: .25rem;
    overflow-x: auto;
    padding-bottom: .2rem;
  }

  .pd-active-timeline li {
    min-width: 4.8rem;
  }

  .pd-active-timeline li::before {
    left: calc(-50% + .7rem);
    right: calc(50% + .7rem);
  }

  .pd-active-job-action-stack .pd-current-workflow-actions,
  .pd-active-job-action-stack .pd-current-primary-action {
    width: 100%;
  }

  .pd-active-job-content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pd-active-detail-list div {
    grid-template-columns: minmax(0, 1fr);
    gap: .12rem;
  }

  .pd-active-detail-list dd {
    text-align: left;
  }

  .pd-active-contact-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .pd-current-cancel-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

#pdMessagesInput,
#servicesFilterFull,
.pd-input,
.pd-select,
.pd-textarea {
  min-height: 44px;
  border-radius: var(--pd-radius-control) !important;
  border: 1px solid var(--pd-border-strong) !important;
  background: var(--pd-surface) !important;
  box-shadow: none;
}

.pd-textarea { min-height: 104px; }

#btnOnline,
#btnOffline,
#pdMessagesSend,
#docSubmitBtnFull,
#servicesFormFull button[type="submit"] {
  min-height: 42px;
  padding-inline: 16px !important;
  border-radius: 12px !important;
}

body.pd-mode-full #pdFullOverview > .es-card:first-child,
body.pd-mode-full #pdFullOverview > .es-card:nth-child(2) {
  position: relative;
}

body.pd-mode-full #pdFullOverview > .es-card:first-child::before,
body.pd-mode-full #pdFullOverview > .es-card:nth-child(2)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(320px 120px at 0% 0%, color-mix(in srgb, var(--pd-brand) 9%, transparent), transparent 60%);
}

/* Professional provider surface pass */
#pdSidebar + .flex-1 > header {
  background: color-mix(in srgb, var(--pd-surface) 88%, transparent) !important;
  border-bottom: 1px solid var(--pd-border) !important;
  backdrop-filter: blur(18px);
}

#headerEmail {
  font-weight: 600 !important;
  color: var(--es-text-secondary) !important;
}

#dashboardAuthLoader {
  border-radius: var(--pd-radius) !important;
  border: 1px solid var(--pd-border) !important;
  background: var(--pd-surface) !important;
  box-shadow: var(--pd-shadow);
}

#partialDashboard > .es-card,
#fullDashboard > .pd-nav-section > .es-card,
#fullDashboard > .pd-nav-section > .pd-pane-card {
  position: relative;
  overflow: hidden;
}

#pdFullOverview > .es-card:nth-child(1) {
  background: var(--pd-surface) !important;
}

#pdFullOverview > .es-card:nth-child(2) {
  background: var(--pd-surface) !important;
}

#pdFullOverview > .grid:nth-child(3) > .es-card:nth-child(1) {
  background: var(--pd-surface) !important;
}

#pdFullOverview > .grid:nth-child(3) > .es-card:nth-child(2) {
  background: var(--pd-surface) !important;
}

#pdFullOverview > .grid:nth-child(3) > .es-card:nth-child(3) {
  background: var(--pd-surface) !important;
}

#pdFullOverview > .es-card:nth-child(4) {
  background: var(--pd-surface) !important;
}

#pdActiveRequestCard {
  background: var(--pd-surface) !important;
}

#pdFullOverview > .es-card:last-child {
  background: var(--pd-surface) !important;
}

#pdFullJobOffers .pd-pane-card,
#pdFullMessages .pd-pane-card,
#pdFullDocuments .pd-pane-card,
#pdFullServices .pd-pane-card,
#pdFullJobHistory .pd-pane-card,
#pdFullEarnings .pd-pane-card,
#pdFullSettings .pd-pane-card {
  background: var(--pd-surface) !important;
}

#pdOverviewOffersCard {
  min-height: 0;
  padding: 1rem !important;
}

.pd-offers-panel__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: start;
  min-width: 0;
}

.pd-offers-panel__heading {
  min-width: 0;
}

.pd-offers-panel__helper {
  max-width: 42rem;
  line-height: 1.42;
}

.pd-offers-open-link {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-color: var(--pd-border) !important;
  background: color-mix(in srgb, var(--pd-muted-surface) 62%, transparent) !important;
  color: var(--pd-muted) !important;
  font-size: 0.72rem !important;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none !important;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.pd-offers-open-link:hover,
.pd-offers-open-link:focus-visible {
  border-color: color-mix(in srgb, var(--pd-brand) 28%, var(--pd-border)) !important;
  background: color-mix(in srgb, var(--pd-brand) 9%, var(--pd-surface)) !important;
  color: var(--pd-brand-strong) !important;
  outline: 0;
}

.pd-offers-open-link:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pd-brand) 20%, transparent) !important;
}

#pdJobOffersList,
#pdJobOffersListOffers {
  display: grid;
  gap: 0.72rem;
  min-width: 0;
}

#pdJobOffersList > *,
#pdJobOffersListOffers > * {
  margin-top: 0 !important;
}

.pd-offer-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--pd-border) 86%, var(--pd-surface));
  border-radius: 16px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--pd-surface) 96%, white), var(--pd-surface));
  padding: 0.95rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.065);
  color: var(--pd-text);
}

.pd-offer-card__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7.25rem, 8.5rem);
  gap: 0.95rem;
  align-items: start;
  min-width: 0;
}

.pd-offer-card__main {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.pd-offer-customer {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  min-width: 0;
}

.pd-offer-customer__text {
  min-width: 0;
}

.pd-offer-customer__name,
.pd-offer-customer__meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-offer-customer__name {
  color: var(--pd-text);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
}

.pd-offer-customer__meta {
  margin-top: 0.08rem;
  color: var(--pd-muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.pd-offer-summary {
  display: grid;
  gap: 0.18rem;
}

.pd-offer-service {
  color: var(--pd-text);
  font-size: 0.98rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.pd-offer-issue {
  color: color-mix(in srgb, var(--pd-text) 76%, var(--pd-muted));
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.pd-offer-details {
  display: grid;
  gap: 0.18rem;
  color: var(--pd-muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.36;
  min-width: 0;
}

.pd-offer-area,
.pd-offer-route-meta {
  overflow-wrap: anywhere;
}

.pd-offer-vehicle {
  display: grid;
  gap: 0.18rem;
  max-width: 34rem;
  border: 1px solid color-mix(in srgb, var(--pd-border) 82%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--pd-muted-surface) 64%, var(--pd-surface));
  padding: 0.65rem 0.78rem;
}

.pd-offer-vehicle__label {
  color: var(--pd-muted);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pd-offer-vehicle__title {
  color: var(--pd-text);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pd-offer-vehicle__title--muted,
.pd-offer-vehicle__meta {
  color: var(--pd-muted);
}

.pd-offer-vehicle__meta {
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.pd-offer-notes {
  max-width: 36rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--pd-muted-surface) 58%, transparent);
  padding: 0.58rem 0.72rem;
  color: color-mix(in srgb, var(--pd-text) 72%, var(--pd-muted));
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.pd-offer-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem 0.65rem;
  align-items: center;
  margin-top: 0.05rem;
}

.pd-offer-countdown {
  display: inline-flex;
  min-height: 1.6rem;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--es-success) 34%, var(--pd-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--es-success-soft) 78%, transparent);
  padding: 0 0.62rem;
  color: color-mix(in srgb, var(--es-success) 78%, var(--pd-text));
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.pd-offer-countdown--urgent {
  border-color: color-mix(in srgb, var(--es-warning) 42%, var(--pd-border));
  background: color-mix(in srgb, var(--es-warning-soft) 80%, transparent);
  color: color-mix(in srgb, var(--es-warning) 84%, var(--pd-text));
}

.pd-offer-countdown--expired {
  border-color: color-mix(in srgb, var(--es-error) 36%, var(--pd-border));
  background: color-mix(in srgb, var(--es-error-soft) 78%, transparent);
  color: color-mix(in srgb, var(--es-error) 86%, var(--pd-text));
}

.pd-offer-created {
  color: color-mix(in srgb, var(--pd-muted) 84%, transparent);
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.2;
}

.pd-offer-actions {
  display: grid;
  gap: 0.5rem;
  align-self: start;
  min-width: 0;
}

#fullDashboard .pd-offer-accept,
#fullDashboard .pd-offer-decline {
  display: inline-flex;
  min-height: 2.75rem;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

#fullDashboard .pd-offer-accept.es-btn-primary {
  border: 1px solid #047857 !important;
  background: linear-gradient(180deg, #059669, #047857) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 20px rgba(4, 120, 87, 0.18) !important;
}

#fullDashboard .pd-offer-accept:hover:not(:disabled),
#fullDashboard .pd-offer-accept:focus-visible:not(:disabled) {
  border-color: #065f46 !important;
  background: linear-gradient(180deg, #047857, #065f46) !important;
  color: #ffffff !important;
}

#fullDashboard .pd-offer-decline {
  border: 1px solid color-mix(in srgb, var(--es-error) 34%, var(--pd-border));
  background: color-mix(in srgb, var(--pd-surface) 88%, transparent);
  color: color-mix(in srgb, var(--es-error) 82%, var(--pd-text));
  box-shadow: none;
}

#fullDashboard .pd-offer-decline:hover:not(:disabled),
#fullDashboard .pd-offer-decline:focus-visible:not(:disabled) {
  border-color: color-mix(in srgb, var(--es-error) 52%, var(--pd-border));
  background: color-mix(in srgb, var(--es-error-soft) 64%, transparent);
  color: color-mix(in srgb, var(--es-error) 92%, var(--pd-text));
}

#fullDashboard .pd-offer-accept:focus-visible,
#fullDashboard .pd-offer-decline:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pd-brand) 22%, transparent) !important;
}

.pd-offer-card-expired {
  opacity: 0.82;
}

html[data-customer-effective-theme] #fullDashboard .pd-offer-accept.es-btn-primary {
  border-color: #047857 !important;
  background: linear-gradient(180deg, #059669, #047857) !important;
  color: #ffffff !important;
}

html[data-customer-effective-theme="night"] .pd-offer-card,
html.dark .pd-offer-card {
  border-color: rgba(71, 85, 105, 0.62);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.86));
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.34);
}

html[data-customer-effective-theme="night"] #fullDashboard .pd-offer-decline,
html.dark #fullDashboard .pd-offer-decline {
  background: rgba(15, 23, 42, 0.38);
}

#pdFullJobHistory .es-table-wrap {
  border-color: var(--pd-border);
  box-shadow: none;
  overflow: hidden;
}

#pdFullJobHistory .es-table th {
  background: color-mix(in srgb, var(--pd-muted-surface) 72%, var(--pd-surface));
  color: var(--pd-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

#pdFullJobHistory .es-table td {
  border-color: var(--pd-border);
  color: var(--pd-text);
  padding-block: 0.92rem;
  vertical-align: top;
}

#pdFullJobHistory .es-table tbody tr {
  transition: background-color 120ms ease;
}

#pdFullJobHistory .es-table tbody tr:hover {
  background: color-mix(in srgb, var(--pd-muted-surface) 68%, transparent);
}

.pd-history-date {
  color: var(--pd-muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.pd-history-service,
.pd-history-customer {
  color: var(--pd-text);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pd-history-subline,
.pd-history-billing {
  margin-top: 0.24rem;
  color: var(--pd-muted);
  font-size: 0.73rem;
  font-weight: 650;
  line-height: 1.35;
}

.pd-history-billing {
  color: var(--pd-brand-strong);
}

.pd-history-status {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--pd-border);
  padding: 0 0.68rem;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.pd-history-status.is-completed {
  border-color: color-mix(in srgb, var(--pd-brand) 24%, var(--pd-border));
  background: color-mix(in srgb, var(--pd-brand) 12%, var(--pd-surface));
  color: var(--pd-brand-strong);
}

.pd-history-status.is-review,
.pd-history-status.is-active {
  border-color: color-mix(in srgb, var(--es-warning) 34%, var(--pd-border));
  background: color-mix(in srgb, var(--es-warning) 16%, var(--pd-surface));
  color: color-mix(in srgb, var(--es-warning) 82%, var(--pd-text));
}

.pd-history-status.is-canceled {
  border-color: color-mix(in srgb, var(--es-error) 34%, var(--pd-border));
  background: color-mix(in srgb, var(--es-error) 13%, var(--pd-surface));
  color: color-mix(in srgb, var(--es-error) 86%, var(--pd-text));
}

.pd-history-status.is-neutral {
  background: var(--pd-muted-surface);
  color: var(--pd-muted);
}

.pd-history-view-btn {
  display: inline-flex;
  min-height: 2.12rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--pd-radius-control);
  border: 1px solid var(--pd-brand-strong);
  background: linear-gradient(180deg, var(--pd-brand), var(--pd-brand-strong));
  padding: 0 0.82rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--pd-brand) 18%, transparent);
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
  -webkit-font-smoothing: antialiased;
}

.pd-history-view-btn:hover {
  border-color: var(--pd-brand-strong);
  background: linear-gradient(180deg, var(--pd-brand-strong), var(--pd-brand-strong));
  color: #fff;
}

.pd-history-empty {
  color: var(--pd-muted) !important;
  font-size: 0.86rem;
  font-weight: 650;
  padding-block: 1.25rem !important;
}

#pdOverviewServicesChips > *,
#pdStatusPill,
#pdMessagesUnread,
#providerLiveMapEta,
#providerLiveMapStatus,
#notifications,
#earningsSummary,
#earningsSummaryFull,
#servicesStatusFull,
#docStatusFull {
  box-shadow: 0 10px 24px rgba(15,23,42,.04);
}

#pdMessagesThreadHistoryList {
  scrollbar-width: thin;
}

#pdMessagesList {
  scrollbar-width: thin;
}

.pd-thread-row {
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 120ms ease;
}

.pd-thread-row:hover {
  transform: translateY(-1px);
}

.pd-message-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.pd-message-row-mine {
  justify-content: flex-end;
}

.pd-message-row-admin {
  justify-content: center;
}

.pd-message-stack {
  max-width: min(78%, 680px);
}

.pd-message-row-mine .pd-message-stack {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
}

.pd-message-row-admin .pd-message-stack {
  align-items: center;
  display: flex;
  flex-direction: column;
  max-width: min(86%, 720px);
}

.pd-message-meta {
  color: rgb(100,116,139);
  font-size: 11px;
  line-height: 1.2;
  margin-bottom: 5px;
}

.dark .pd-message-meta {
  color: rgb(148,163,184);
}

.pd-message-bubble {
  border: 1px solid rgba(203,213,225,.86);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15,23,42,.05);
  display: inline-block;
  font-size: 14px;
  line-height: 1.38;
  max-width: 100%;
  padding: 9px 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.pd-message-bubble-customer {
  background: rgb(236,253,245);
  border-color: rgba(110,231,183,.9);
  color: rgb(15,23,42);
}

.pd-message-bubble-mine {
  background: linear-gradient(180deg, var(--pd-brand), var(--pd-brand-strong));
  border-color: color-mix(in srgb, var(--pd-brand-strong) 96%, transparent);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--pd-brand) 18%, transparent);
  color: white;
}

.pd-message-bubble-admin {
  background: rgb(248,250,252);
  border-color: rgba(203,213,225,.9);
  color: rgb(15,23,42);
}

.pd-message-empty {
  align-items: center;
  border: 1px dashed rgba(203,213,225,.95);
  border-radius: 16px;
  color: rgb(100,116,139);
  display: flex;
  font-size: 14px;
  justify-content: center;
  min-height: 180px;
  padding: 24px;
  text-align: center;
}

.dark .pd-message-bubble-customer {
  background: rgba(6,78,59,.38);
  border-color: rgba(16,185,129,.34);
  color: rgb(209,250,229);
}

.dark .pd-message-bubble-admin,
.dark .pd-message-empty {
  background: rgba(15,23,42,.58);
  border-color: rgba(71,85,105,.72);
  color: rgb(203,213,225);
}

#pdOverviewServicesChips > * {
  min-height: 30px;
  padding: 0 12px !important;
  border: 1px solid color-mix(in srgb, var(--pd-brand) 22%, var(--pd-border)) !important;
  background: color-mix(in srgb, var(--es-brand-50) 68%, var(--pd-surface)) !important;
  color: var(--pd-brand-strong) !important;
  font-weight: 700 !important;
}

#pdStatusPill,
#providerLiveMapEta,
#providerLiveMapStatus {
  border: 1px solid rgba(203,213,225,.82) !important;
  background: rgba(255,255,255,.94) !important;
}

#pdStatusPill[data-state="connecting"] {
  border-color: color-mix(in srgb, var(--pd-brand) 35%, var(--pd-border)) !important;
  background: color-mix(in srgb, var(--es-brand-50) 72%, var(--pd-surface)) !important;
  color: var(--pd-brand-strong) !important;
}

#pdStatusPill[data-state="connecting"] #pdStatusDot {
  animation: pd-pill-pulse 1s ease-in-out infinite;
  background: var(--pd-brand) !important;
}

#notifications {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 12px;
  padding: 0 12px;
  border: 1px solid rgba(203,213,225,.82);
  background: rgba(255,255,255,.94);
}

#earningsSummary,
#earningsSummaryFull {
  letter-spacing: -0.02em;
}

#providerLiveMapContainer,
#mapPageMapWrapper,
#overviewMapWrapper > div,
#pdMessagesList,
#pdDocsListFull,
#pdJobOffersListOffers,
#servicesListFull,
#servicesList,
.pd-list-box {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96)) !important;
  border: 1px solid rgba(203,213,225,.82) !important;
}

#pdMessagesList > *,
#pdDocsListFull > *,
#pdJobOffersListOffers > *,
#servicesListFull > *,
#servicesList > * {
  border-radius: 14px !important;
}

#servicesList,
#servicesListFull {
  display: block !important;
  column-width: 320px;
  column-gap: 16px;
  align-items: start !important;
}

#servicesList > *,
#servicesListFull > * {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  display: block;
  width: 100%;
  margin: 0 0 16px;
}

.provider-service-card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.provider-service-issues {
  align-items: start;
}

.provider-service-issue-row {
  min-width: 0;
}

.provider-service-issue-row > div {
  min-width: 0;
}

#btnOnline,
#btnOffline,
#pdMessagesSend,
#docSubmitBtnFull,
#servicesFormFull button[type="submit"],
#servicesToggleExpandFull,
#servicesSelectAllFull,
#servicesClearFull,
#pdRetryLoc,
#pdGoToProfileBtn,
#pdGoToDocumentsBtn,
#btnLogout,
#btnDarkToggle {
  font-weight: 600 !important;
  letter-spacing: 0;
}

#btnOffline,
#servicesToggleExpandFull,
#servicesSelectAllFull,
#servicesClearFull,
#pdRetryLoc,
#pdGoToProfileBtn,
#pdGoToDocumentsBtn {
  background: var(--pd-surface) !important;
  border: 1px solid var(--pd-border) !important;
}

#pdMessagesInput,
#servicesFilterFull,
.pd-input,
.pd-select,
.pd-textarea {
  font-size: 14px;
  line-height: 1.35;
}

#pdMessagesInput:focus,
#servicesFilterFull:focus,
.pd-input:focus,
.pd-select:focus,
.pd-textarea:focus {
  outline: none;
  border-color: var(--pd-brand) !important;
  box-shadow: 0 0 0 4px var(--es-focus-ring) !important;
}

/* Restore legacy towing icon presentation in provider surfaces only */
#fullDashboard :is(span,div,button,a,label):has(> svg[viewBox="0 0 50 100"]),
#partialDashboard :is(span,div,button,a,label):has(> svg[viewBox="0 0 50 100"]) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: auto !important;
  height: auto !important;
}

#fullDashboard svg[viewBox="0 0 50 100"],
#partialDashboard svg[viewBox="0 0 50 100"] {
  width: 22px !important;
  height: 22px !important;
  display: inline-block !important;
  vertical-align: middle;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Provider dark theme pass */
.dark body {
  background: var(--pd-bg) !important;
  color: var(--es-text-primary) !important;
}
.dark main { background: transparent !important; }
.dark header { background: var(--es-bg-surface) !important; border-color: var(--es-border) !important; }
.dark .bg-white,
.dark .es-card,
.dark .pd-pane-card {
  background: var(--pd-surface) !important;
  border-color: var(--pd-border) !important;
  box-shadow: var(--pd-shadow);
}
.dark .text-slate-500 { color: var(--es-text-muted) !important; }
.dark .text-slate-700, .dark .text-slate-900 { color: var(--es-text-primary) !important; }
.dark input, .dark select, .dark textarea { background: var(--es-bg-surface) !important; color: var(--es-text-primary) !important; border-color: var(--es-border) !important; }
.dark input::placeholder, .dark textarea::placeholder { color: var(--es-text-muted) !important; }
.dark #statusValue {
  background: linear-gradient(180deg, rgba(15,23,42,.94), rgba(30,41,59,.88)) !important;
  border-color: rgba(71,85,105,.55) !important;
}
.dark #providerLiveMapContainer,
.dark #mapPageMapWrapper,
.dark #overviewMapWrapper > div {
  border-color: rgba(71,85,105,.55) !important;
}

.dark #pdOverviewServicesChips > * {
  background: rgba(30,41,59,.9) !important;
  border-color: rgba(59,130,246,.35) !important;
  color: #bfdbfe !important;
}

.dark #pdFullOverview > .es-card:nth-child(1),
.dark #pdFullOverview > .es-card:nth-child(4) {
  background: linear-gradient(180deg, rgba(15,23,42,.94), rgba(30,41,59,.92)) !important;
}

.dark #pdFullOverview > .es-card:nth-child(2) {
  background: linear-gradient(180deg, rgba(30,41,59,.94), rgba(51,65,85,.9)) !important;
}

.dark #pdFullOverview > .grid:nth-child(3) > .es-card:nth-child(1),
.dark #pdActiveRequestCard {
  background: linear-gradient(180deg, rgba(15,23,42,.94), rgba(22,78,99,.36)) !important;
}

.dark #pdFullOverview > .grid:nth-child(3) > .es-card:nth-child(2),
.dark #pdFullOverview > .grid:nth-child(3) > .es-card:nth-child(3),
.dark #pdFullOverview > .es-card:last-child {
  background: linear-gradient(180deg, rgba(15,23,42,.94), rgba(51,65,85,.9)) !important;
}

.pd-nav-section { display: none; }
.pd-nav-section.pd-active { display: block; }

.pd-sidebar { width: 252px; min-width: 252px; height: 100vh; height: 100dvh; max-height: 100dvh; overflow: hidden; }
.pd-sidebar.collapsed { width: 64px; min-width: 64px; overflow: visible; }
.pd-sidebar.collapsed .pd-nav-label { display: none; }
.pd-sidebar.collapsed .pd-nav-badge { display: none; }
.pd-sidebar.collapsed .pd-nav,
.pd-sidebar.collapsed #btnDarkToggle,
.pd-sidebar.collapsed #btnLogout,
.pd-sidebar.collapsed #pdSidebarToggle {
  justify-content: center;
  align-items: center;
  gap: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.pd-sidebar.collapsed .pd-nav-icon {
  margin: 0 !important;
}
.pd-sidebar.collapsed #pdSidebarToggle {
  margin-inline: auto;
  width: 36px;
  height: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 0 !important;
  border-radius: 12px !important;
}
.pd-sidebar.collapsed #pdSidebarToggle svg {
  width: 18px;
  height: 18px;
  margin: 0 !important;
}
.pd-sidebar.collapsed > .border-b,
.pd-sidebar.collapsed .flex-shrink-0.border-b {
  justify-content: center;
}

body.pd-mode-partial .pd-full-only { display: none !important; }
body.pd-mode-full .pd-partial-only { display: none !important; }

@media (max-width: 768px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body.min-h-screen,
  #pdContentGate {
    min-height: 0;
  }

  #pdContentGate {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  #pdSidebar + .flex-1 {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  #pdSidebar + .flex-1 > main {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.pd-drawer-lock {
    overflow: hidden;
    overscroll-behavior: contain;
  }

  .pd-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(86vw, 320px);
    min-width: min(86vw, 320px);
    height: 100dvh;
    max-height: 100dvh;
    padding-top: var(--pd-safe-area-top, env(safe-area-inset-top, 0px));
    transform: translateX(-100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1200;
    overflow: hidden;
    overscroll-behavior: contain;
  }

  .pd-sidebar.pd-drawer-open {
    transform: translateX(0);
    box-shadow: 18px 0 48px rgba(15,23,42,0.28);
  }

  .pd-sidebar .pd-nav-label { display: inline; }
  .pd-sidebar .pd-nav-badge { display: inline-flex; }
  .pd-sidebar nav {
    min-height: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .pd-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.48);
    backdrop-filter: blur(2px);
    z-index: 1190;
  }

  .pd-sidebar-overlay.pd-drawer-open { display: block; }
  #pdSidebar + .flex-1 > header {
    min-height: var(--es-mobile-header-height, 64px);
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem var(--es-mobile-page-gutter, 0.875rem);
  }
  #pdSidebar + .flex-1 > header h1 {
    font-size: 1rem;
    line-height: 1.2;
  }
  #pdSidebar + .flex-1 > header p {
    max-width: 58vw;
  }
  #pdSidebar + .flex-1 > main {
    padding: var(--es-mobile-page-gutter, 0.875rem) !important;
  }
  #pdFullOverview.pd-active {
    gap: var(--es-mobile-section-gap, 0.875rem);
  }
  #pdFullOverview > .es-card,
  #pdFullOverview > .grid,
  #pdOverviewPrimaryGrid,
  #pdActiveRequestWorkspace {
    margin-top: 0 !important;
  }
  #pdOverviewPrimaryGrid,
  #pdActiveRequestWorkspace {
    grid-template-columns: 1fr !important;
    gap: var(--es-mobile-section-gap, 0.875rem);
  }
  #pdOverviewCommandCard,
  #pdActiveRequestCard,
  #pdOverviewOffersCard,
  #pdOverviewMapCard,
  #pdFullOverview .es-card {
    border-radius: var(--es-mobile-card-radius, 1.125rem) !important;
  }
  #pdOverviewCommandCard,
  #pdActiveRequestCard {
    padding: var(--es-mobile-card-padding, 1rem) !important;
  }
  #pdOverviewCommandCard h2,
  #pdActiveRequestCard h2 {
    font-size: 1.25rem !important;
    line-height: 1.18 !important;
  }
  #pdOverviewCommandCard button,
  #pdActiveRequestCard button,
  #pdOverviewOffersCard button {
    min-height: 44px;
  }
  #pdOverviewOffersCard {
    padding: 0.85rem !important;
  }
  .pd-offers-panel__header {
    grid-template-columns: 1fr;
    gap: 0.58rem;
  }
  .pd-offers-panel__helper {
    font-size: 0.78rem !important;
    line-height: 1.35;
  }
  .pd-offers-open-link {
    justify-self: start;
    padding-inline: 0.72rem !important;
    font-size: 0.7rem !important;
  }
  #pdJobOffersList,
  #pdJobOffersListOffers {
    gap: 0.65rem;
    margin-top: 0.72rem !important;
  }
  .pd-offer-card {
    border-radius: 15px;
    padding: 0.82rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.055);
  }
  .pd-offer-card__grid {
    grid-template-columns: 1fr;
    gap: 0.72rem;
  }
  .pd-offer-card__main {
    gap: 0.5rem;
  }
  .pd-offer-service {
    font-size: 0.93rem;
  }
  .pd-offer-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem;
  }
  #fullDashboard .pd-offer-accept,
  #fullDashboard .pd-offer-decline {
    min-height: 44px;
    padding-inline: 0.65rem;
    font-size: 0.76rem;
  }
  #toast {
    right: 1rem !important;
    bottom: calc(1rem + var(--pd-safe-area-bottom, env(safe-area-inset-bottom, 0px))) !important;
    left: 1rem !important;
    max-width: none !important;
    transform: none !important;
  }
  #servicesList,
  #servicesListFull {
    column-width: auto;
    columns: 1;
  }
  .pd-nav-section[data-loading="true"]::after {
    inset: 14px;
    background-size:
      34% 12px,
      74% 18px,
      calc(100% - 28px) 96px,
      calc(100% - 28px) calc(100% - 150px);
    background-position:
      14px 16px,
      14px 40px,
      14px 76px,
      14px 188px;
  }
}

@media (max-width: 360px) {
  .pd-offer-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .pd-sidebar-overlay { display: none !important; }
}

@keyframes pd-auth-loader{0%{transform:translateX(-100%);}100%{transform:translateX(400%);}}
@keyframes pd-pane-spin{to{transform:rotate(360deg);}}
@keyframes pd-pane-shimmer{0%{background-position:0 0,-220px 0;}100%{background-position:0 0,calc(100% + 220px) 0;}}

body.pd-nav-pending .pd-sidebar nav[aria-label="Main"] { display: none !important; }
#pdNavLoading { display: none; }
body.pd-nav-pending #pdNavLoading { display: block; }
#pdSidebar .pd-nav[data-section="job-offers"] { display: none !important; }

/* Theme completion fixes */
html.dark #pdSidebar + .flex-1 > header,
html.dark header.bg-white,
html.dark main + header,
html.dark body > header {
  background: rgba(15, 23, 42, 0.9) !important;
  border-color: rgba(71, 85, 105, 0.65) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28) !important;
}

html.dark #headerEmail,
html.dark #pdHeaderSignedIn strong,
html.dark #providerEmail,
html.dark #providerId,
html.dark .pd-pane-card,
html.dark .es-card,
html.dark .text-slate-600,
html.dark .text-slate-700,
html.dark .text-slate-900 {
  color: #e2e8f0 !important;
}

html.dark #dashboardAuthLoader,
html.dark #fullDashboard > .pd-nav-section > .pd-pane-card,
html.dark #fullDashboard > .pd-nav-section > .es-card,
html.dark #partialDashboard > .es-card,
html.dark #partialDashboard > .pd-pane-card,
html.dark #pdFullJobOffers .pd-pane-card,
html.dark #pdFullMessages .pd-pane-card,
html.dark #pdFullDocuments .pd-pane-card,
html.dark #pdFullServices .pd-pane-card,
html.dark #pdFullJobHistory .pd-pane-card,
html.dark #pdFullEarnings .pd-pane-card,
html.dark #pdFullSettings .pd-pane-card {
  background: var(--pd-surface) !important;
  border-color: var(--pd-border) !important;
  box-shadow: var(--pd-shadow) !important;
}

html.dark #pdMessagesList,
html.dark #pdDocsListFull,
html.dark #pdJobOffersListOffers,
html.dark #servicesListFull,
html.dark #servicesList,
html.dark .pd-list-box,
html.dark #providerLiveMapContainer,
html.dark #mapPageMapWrapper,
html.dark #overviewMapWrapper > div {
  background: rgba(2, 6, 23, 0.42) !important;
  border-color: rgba(71, 85, 105, 0.62) !important;
}

html.dark #pdMessagesList > *,
html.dark #pdDocsListFull > *,
html.dark #pdJobOffersListOffers > *,
html.dark #servicesListFull > *,
html.dark #servicesList > *,
html.dark .provider-service-card {
  background: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(71, 85, 105, 0.58) !important;
  color: #e2e8f0 !important;
}

html.dark .pd-input,
html.dark .pd-select,
html.dark .pd-textarea,
html.dark #pdMessagesInput,
html.dark #servicesFilterFull,
html.dark input[type="date"],
html.dark input[type="search"],
html.dark input[type="text"],
html.dark input[type="email"],
html.dark input[type="number"],
html.dark select,
html.dark textarea {
  background: var(--pd-surface) !important;
  border-color: var(--pd-border-strong) !important;
  color: var(--es-text-primary) !important;
}

html.dark .pd-input::placeholder,
html.dark .pd-textarea::placeholder,
html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #94a3b8 !important;
}

html.dark #btnOffline,
html.dark #servicesToggleExpandFull,
html.dark #servicesSelectAllFull,
html.dark #servicesClearFull,
html.dark #pdRetryLoc,
html.dark #pdGoToProfileBtn,
html.dark #pdGoToDocumentsBtn,
html.dark #pdGoToServicesBtn,
html.dark #pdFullSettings button,
html.dark .rounded-lg.border,
html.dark .rounded-xl.border {
  background: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(71, 85, 105, 0.68) !important;
  color: #e2e8f0 !important;
}

html.dark #statusValue,
html.dark #pdHeaderLocStatus,
html.dark #pdStatusPill,
html.dark #providerLiveMapEta,
html.dark #providerLiveMapStatus,
html.dark #notifications {
  background: rgba(15, 23, 42, 0.9) !important;
  border-color: rgba(71, 85, 105, 0.68) !important;
  color: #e2e8f0 !important;
}

html.dark #pdStatusPill[data-state="connecting"] {
  background: color-mix(in srgb, var(--pd-brand) 14%, var(--pd-surface)) !important;
  border-color: color-mix(in srgb, var(--pd-brand) 38%, var(--pd-border)) !important;
  color: color-mix(in srgb, var(--pd-brand) 42%, white) !important;
}

html.dark #pdHeaderLocTime,
html.dark #pdLastLocAt,
html.dark .pd-label,
html.dark .text-slate-400,
html.dark .text-slate-500 {
  color: #94a3b8 !important;
}

html.dark #pdMessagesTabCustomer {
  background: rgba(30, 41, 59, 0.92) !important;
  border-color: color-mix(in srgb, var(--pd-brand) 42%, transparent) !important;
  color: color-mix(in srgb, var(--pd-brand) 38%, white) !important;
}

html.dark #pdMessagesTabSystem {
  background: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(71, 85, 105, 0.62) !important;
  color: #e2e8f0 !important;
}

/* Injected workspace hardening */
html.dark #pdMessagesSearch,
html.dark #pdMessagesFilterType,
html.dark #pdMessagesSort,
html.dark #pdMessagesDateFrom,
html.dark #pdMessagesDateTo,
html.dark #pdHistorySearch,
html.dark #pdHistoryStatus,
html.dark #pdHistoryDateFrom,
html.dark #pdHistoryDateTo,
html.dark #pdHistorySort,
html.dark #pdEarningsSearch,
html.dark #pdEarningsSource,
html.dark #pdEarningsStatus,
html.dark #pdEarningsSort,
html.dark #pdFeeBillingCardElement,
html.dark #pdPayoutSettingsPanel input,
html.dark #pdPayoutSettingsPanel select,
html.dark #pdPayoutSettingsPanel textarea {
  background: var(--pd-surface) !important;
  border-color: var(--pd-border-strong) !important;
  color: var(--es-text-primary) !important;
}

html.dark #pdMessagesThreadHistoryList > *,
html.dark #pdMessagesSearchResults > *,
html.dark #pdEarningsCards > *,
html.dark #pdEarningsList > *,
html.dark #pdPayoutSettingsPanel > *,
html.dark #pdPayoutSettingsPanel .rounded-2xl,
html.dark #pdFullMessages .rounded-2xl,
html.dark #pdFullMessages .rounded-xl,
html.dark #pdFullJobHistory .rounded-2xl,
html.dark #pdFullJobHistory .rounded-xl,
html.dark #pdFullEarnings .rounded-2xl,
html.dark #pdFullEarnings .rounded-xl,
html.dark #pdFullServices .rounded-2xl,
html.dark #pdFullServices .rounded-xl {
  background: rgba(15, 23, 42, 0.9) !important;
  border-color: rgba(71, 85, 105, 0.66) !important;
  color: #e2e8f0 !important;
}

html.dark #pdFullMessages .bg-slate-50\/80,
html.dark #pdFullMessages .bg-slate-50,
html.dark #pdFullMessages .bg-white,
html.dark #pdFullJobHistory .bg-slate-50\/80,
html.dark #pdFullJobHistory .bg-slate-50,
html.dark #pdFullJobHistory .bg-white,
html.dark #pdFullEarnings .bg-slate-50\/80,
html.dark #pdFullEarnings .bg-slate-50,
html.dark #pdFullEarnings .bg-white,
html.dark #pdFullServices .bg-slate-50\/80,
html.dark #pdFullServices .bg-slate-50,
html.dark #pdFullServices .bg-white {
  background: rgba(15, 23, 42, 0.9) !important;
}

html.dark #pdFullMessages .text-slate-500,
html.dark #pdFullMessages .text-slate-600,
html.dark #pdFullMessages .text-slate-700,
html.dark #pdFullJobHistory .text-slate-500,
html.dark #pdFullJobHistory .text-slate-600,
html.dark #pdFullJobHistory .text-slate-700,
html.dark #pdFullEarnings .text-slate-500,
html.dark #pdFullEarnings .text-slate-600,
html.dark #pdFullEarnings .text-slate-700,
html.dark #pdFullServices .text-slate-500,
html.dark #pdFullServices .text-slate-600,
html.dark #pdFullServices .text-slate-700 {
  color: #cbd5e1 !important;
}

html.dark #pdMessagesThreadHistoryList .bg-brand-50,
html.dark #pdMessagesThreadHistoryList .dark\:bg-brand-950\/20,
html.dark #pdMessagesSearchResults .bg-slate-50,
html.dark #pdEarningsCards .bg-slate-50,
html.dark #pdEarningsList .bg-slate-50 {
  background: rgba(15, 23, 42, 0.92) !important;
}

html.dark #pdSaveFeePaymentMethodBtn,
html.dark #pdManagePayoutMethodsBtn,
html.dark #pdMessagesClearFilters,
html.dark #pdHistoryClearFilters,
html.dark #pdEarningsClearFilters {
  border-color: rgba(71, 85, 105, 0.72) !important;
}

html.dark,
html.dark body,
html.dark #pdContentGate,
html.dark #pdContentGate > .flex-1,
html.dark #pdContentGate > .flex-1 > main,
html.dark #partialDashboard,
html.dark #fullDashboard,
html.dark .pd-nav-section,
html.dark .pd-nav-section.pd-active {
  background: #020617 !important;
}

html.dark #pdContentGate > .flex-1 > main {
  background:
    radial-gradient(980px 520px at 0% 0%, color-mix(in srgb, var(--pd-brand) 14%, transparent), transparent 48%),
    radial-gradient(900px 480px at 100% 12%, rgba(148,163,184,.10), transparent 46%),
    linear-gradient(180deg, #0f172a 0%, #020617 100%) !important;
}

html.dark #partialDashboard > *,
html.dark #fullDashboard > *,
html.dark #fullDashboard > .pd-nav-section > *,
html.dark #pdFullOverview > *,
html.dark #pdFullMessages > *,
html.dark #pdFullServices > *,
html.dark #pdFullJobHistory > *,
html.dark #pdFullEarnings > *,
html.dark #pdFullDocuments > *,
html.dark #pdFullSettings > *,
html.dark #pdFullMap > * {
  color: #e2e8f0 !important;
}

html.dark .leaflet-control-zoom,
html.dark .leaflet-bar,
html.dark .leaflet-control-zoom a,
html.dark .maplibregl-ctrl-group,
html.dark .maplibregl-ctrl-group button {
  background: rgba(15,23,42,.96) !important;
  border-color: rgba(71,85,105,.68) !important;
  color: #e2e8f0 !important;
}

/* Final full-screen dark coverage */
html.dark #pdContentGate,
html.dark #pdContentGate > .flex-1,
html.dark #pdContentGate > .flex-1 > main,
html.dark #pdContentGate > .flex-1 > main > section,
html.dark #partialDashboard,
html.dark #fullDashboard,
html.dark #pdFullOverview,
html.dark #pdFullMessages,
html.dark #pdFullServices,
html.dark #pdFullJobHistory,
html.dark #pdFullEarnings,
html.dark #pdFullDocuments,
html.dark #pdFullSettings,
html.dark #pdFullMap,
html.dark #pd-section-profile,
html.dark #pd-section-services {
  background-color: transparent !important;
}

html.dark #pdContentGate > .flex-1 > main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(980px 520px at 0% 0%, color-mix(in srgb, var(--pd-brand) 14%, transparent), transparent 48%),
    radial-gradient(900px 480px at 100% 12%, rgba(148,163,184,.10), transparent 46%),
    linear-gradient(180deg, #0f172a 0%, #020617 100%) !important;
}

html.dark #fullDashboard .bg-white,
html.dark #partialDashboard .bg-white,
html.dark #pd-section-profile .bg-white,
html.dark #pd-section-services .bg-white,
html.dark #fullDashboard [class*="bg-slate-50"],
html.dark #fullDashboard [class*="bg-slate-100"],
html.dark #partialDashboard [class*="bg-slate-50"],
html.dark #partialDashboard [class*="bg-slate-100"],
html.dark #pd-section-profile [class*="bg-slate-50"],
html.dark #pd-section-services [class*="bg-slate-50"] {
  background: rgba(15, 23, 42, 0.9) !important;
}

html.dark #fullDashboard [class*="border-slate-200"],
html.dark #fullDashboard [class*="border-slate-300"],
html.dark #partialDashboard [class*="border-slate-200"],
html.dark #partialDashboard [class*="border-slate-300"],
html.dark #pd-section-profile [class*="border-slate-200"],
html.dark #pd-section-services [class*="border-slate-200"] {
  border-color: rgba(71, 85, 105, 0.62) !important;
}

/* Provider documents + uploader dark fixes */
#docFile,
#docFileFull {
  width: 100%;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.35;
  color: rgb(51 65 85);
}

#docFile::file-selector-button,
#docFileFull::file-selector-button {
  margin-right: 12px;
  border: 1px solid var(--pd-brand-strong);
  border-radius: var(--pd-radius-control);
  background: linear-gradient(180deg, var(--pd-brand), var(--pd-brand-strong));
  color: #ffffff;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--pd-brand) 18%, transparent);
}

#docFile::-webkit-file-upload-button,
#docFileFull::-webkit-file-upload-button {
  margin-right: 12px;
  border: 1px solid var(--pd-brand-strong);
  border-radius: var(--pd-radius-control);
  background: linear-gradient(180deg, var(--pd-brand), var(--pd-brand-strong));
  color: #ffffff;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--pd-brand) 18%, transparent);
}

html.dark #docFile,
html.dark #docFileFull,
html.dark #docFileName,
html.dark #docFileNameFull,
html.dark #docsRequiredSummary,
html.dark #docsRequiredSummaryFull,
html.dark #pdDocsListFull .font-semibold,
html.dark #pdDocsListFull .text-slate-800,
html.dark #pdDocsListFull .text-slate-700,
html.dark #pdDocsListFull .text-slate-600,
html.dark #pdDocsListFull .text-slate-500 {
  color: #f8fafc !important;
}

html.dark #pdDocsListFull .text-slate-500,
html.dark #pdDocsListFull .dark\:text-slate-400,
html.dark #docsRequiredSummary,
html.dark #docsRequiredSummaryFull {
  color: #cbd5e1 !important;
}

html.dark #docFile::file-selector-button,
html.dark #docFileFull::file-selector-button,
html.dark #docFile::-webkit-file-upload-button,
html.dark #docFileFull::-webkit-file-upload-button {
  border-color: var(--pd-brand);
  background: linear-gradient(180deg, var(--pd-brand), var(--pd-brand-strong));
  color: #ffffff !important;
}

html.dark #pdOverviewAvailabilityCard #btnOnline:disabled,
html.dark #pdOverviewAvailabilityCard #btnOnline[aria-disabled="true"],
html.dark #pdOverviewAvailabilityCard #btnOffline:disabled,
html.dark #pdOverviewAvailabilityCard #btnOffline[aria-disabled="true"],
html.dark #docSubmitBtnFull:disabled,
html.dark #docSubmitBtnFull[aria-disabled="true"] {
  border-color: rgba(71, 85, 105, 0.72) !important;
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.92), rgba(30, 41, 59, 0.96)) !important;
  color: rgba(226, 232, 240, 0.72) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

html.dark #pdGoOnlineBlocked {
  border-color: rgba(251, 113, 133, 0.38) !important;
  background: rgba(76, 5, 25, 0.28) !important;
  color: #fecdd3 !important;
}

html.dark #pdGoOnlineBlocked .font-semibold,
html.dark #pdGoOnlineBlocked li {
  color: #ffe4e6 !important;
}

html.dark #pdGoOnlineBlocked [class*="text-rose-800"] {
  color: rgba(254, 205, 211, 0.78) !important;
}

html.dark #pdGoOnlineBlocked .rounded-full {
  border-color: rgba(251, 113, 133, 0.5) !important;
  background: rgba(159, 18, 57, 0.34) !important;
  color: #ffe4e6 !important;
}

html.dark #pdGoOnlineBlocked button {
  border-color: rgba(251, 113, 133, 0.42) !important;
  background: rgba(15, 23, 42, 0.78) !important;
  color: #fecdd3 !important;
}

html.dark #pdGoOnlineBlocked button:hover,
html.dark #pdGoOnlineBlocked button:focus-visible {
  border-color: rgba(251, 113, 133, 0.62) !important;
  background: rgba(76, 5, 25, 0.42) !important;
  color: #ffe4e6 !important;
}

html.dark #pdFullDocuments label[for="docFile"],
html.dark #pdFullDocuments label[for="docFileFull"] {
  border-color: rgba(100, 116, 139, 0.76) !important;
  background: rgba(15, 23, 42, 0.86) !important;
  color: #cbd5e1 !important;
}

html.dark #pdFullSettings #pdFullDocuments[data-settings-workspace="documents"] label[for="docFile"],
html.dark #pdFullSettings #pdFullDocuments[data-settings-workspace="documents"] label[for="docFileFull"],
body.dark #pdFullSettings #pdFullDocuments[data-settings-workspace="documents"] label[for="docFile"],
body.dark #pdFullSettings #pdFullDocuments[data-settings-workspace="documents"] label[for="docFileFull"] {
  border-color: rgba(100, 116, 139, 0.76) !important;
  background: rgba(15, 23, 42, 0.88) !important;
  color: #cbd5e1 !important;
}

html.dark #pdFullDocuments label[for="docFile"]:hover,
html.dark #pdFullDocuments label[for="docFileFull"]:hover {
  border-color: rgba(45, 212, 191, 0.42) !important;
  background: rgba(15, 23, 42, 0.94) !important;
}

html.dark #pdFullSettings #pdFullDocuments[data-settings-workspace="documents"] label[for="docFile"]:hover,
html.dark #pdFullSettings #pdFullDocuments[data-settings-workspace="documents"] label[for="docFileFull"]:hover,
body.dark #pdFullSettings #pdFullDocuments[data-settings-workspace="documents"] label[for="docFile"]:hover,
body.dark #pdFullSettings #pdFullDocuments[data-settings-workspace="documents"] label[for="docFileFull"]:hover {
  border-color: rgba(45, 212, 191, 0.42) !important;
  background: rgba(15, 23, 42, 0.94) !important;
}

html.dark #docFile,
html.dark #docFileFull {
  color-scheme: dark;
  border: 1px solid rgba(71, 85, 105, 0.72);
  border-radius: var(--pd-radius-control);
  background: rgba(2, 6, 23, 0.56) !important;
  padding: 8px;
  color: #e2e8f0 !important;
}

html.dark #docFile::file-selector-button,
html.dark #docFileFull::file-selector-button,
html.dark #docFile::-webkit-file-upload-button,
html.dark #docFileFull::-webkit-file-upload-button {
  border-color: rgba(71, 85, 105, 0.82) !important;
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.96), rgba(30, 41, 59, 0.98)) !important;
  color: #f8fafc !important;
  box-shadow: none !important;
}

html.dark #pdFullDocuments [class*="bg-brand-50"],
body.dark #pdFullDocuments [class*="bg-brand-50"],
html[data-customer-effective-theme="night"] #pdFullSettings #pdFullDocuments[data-settings-workspace="documents"] [class*="bg-brand-50"] {
  border-color: rgba(45, 212, 191, 0.38) !important;
  background: rgba(20, 184, 166, 0.14) !important;
  color: #ccfbf1 !important;
}

html.dark #pdFullDocuments label[for="docFile"] .rounded-full,
html.dark #pdFullDocuments label[for="docFileFull"] .rounded-full,
html.dark #docFileName,
html.dark #docFileNameFull {
  border-color: rgba(71, 85, 105, 0.68) !important;
  background: rgba(15, 23, 42, 0.86) !important;
  color: #cbd5e1 !important;
}

/* Dark scrollbars */
html.dark #pdContentGate,
html.dark #pdContentGate * {
  scrollbar-color: rgba(148,163,184,.42) rgba(15,23,42,.72);
}

html.dark #pdContentGate *::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

html.dark #pdContentGate *::-webkit-scrollbar-track {
  background: rgba(15,23,42,.72);
  border-radius: 999px;
}

html.dark #pdContentGate *::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,.42);
  border-radius: 999px;
  border: 2px solid rgba(15,23,42,.72);
}

html.dark #pdContentGate *::-webkit-scrollbar-thumb:hover {
  background: rgba(148,163,184,.6);
}

/* Sidebar shell refinements: neutral focus ring + smoother collapse */
#pdSidebar {
  overflow: hidden;
  will-change: width, min-width, transform;
  transition:
    width 220ms cubic-bezier(.22,.9,.24,1),
    min-width 220ms cubic-bezier(.22,.9,.24,1),
    transform 180ms ease,
    box-shadow 180ms ease;
}

#pdSidebar.collapsed {
  overflow: visible !important;
}

#pdSidebar .pd-brand-text,
#pdSidebar .pd-brand-workspace,
#pdSidebar .pd-nav-label {
  white-space: nowrap;
  will-change: opacity, transform;
  transition:
    opacity 150ms ease,
    transform 180ms cubic-bezier(.22,.9,.24,1),
    max-width 180ms cubic-bezier(.22,.9,.24,1),
    margin 180ms ease;
  transform: translateX(0);
  opacity: 1;
  max-width: 180px;
}

#pdSidebar .pd-brand-text {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pd-text) !important;
}

html.dark #pdSidebar .pd-brand-text {
  color: rgba(248,250,252,.96) !important;
}

#pdSidebar.collapsed .pd-brand-text,
#pdSidebar.collapsed .pd-nav-label {
  display: inline !important;
  opacity: 0;
  transform: translateX(-6px);
  max-width: 0;
  margin: 0 !important;
  overflow: hidden;
  pointer-events: none;
}

#pdSidebar .pd-nav,
#pdSidebar #btnDarkToggle,
#pdSidebar #btnLogout,
#pdSidebar #pdSidebarToggle {
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease,
    padding 180ms cubic-bezier(.22,.9,.24,1),
    transform 180ms ease;
}

#pdSidebar #pdSidebarToggle,
#pdSidebar #pdMobileMenuClose,
#pdMobileMenuOpen,
#pdDocViewerClose {
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

#pdSidebar #pdSidebarToggle:hover,
#pdSidebar #pdMobileMenuClose:hover,
#pdMobileMenuOpen:hover,
#pdDocViewerClose:hover {
  background: var(--pd-muted-surface) !important;
  border-color: var(--pd-border) !important;
}

#pdSidebar #pdSidebarToggle:focus,
#pdSidebar #pdSidebarToggle:focus-visible,
#pdSidebar #pdMobileMenuClose:focus,
#pdSidebar #pdMobileMenuClose:focus-visible,
#pdMobileMenuOpen:focus,
#pdMobileMenuOpen:focus-visible,
#pdDocViewerClose:focus,
#pdDocViewerClose:focus-visible {
  outline: none !important;
  background: transparent !important;
  border-color: var(--pd-border-strong) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--pd-brand) 18%, transparent) !important;
}

html.dark #pdSidebar #pdSidebarToggle:hover,
html.dark #pdSidebar #pdMobileMenuClose:hover,
html.dark #pdMobileMenuOpen:hover,
html.dark #pdDocViewerClose:hover {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(148,163,184,.18) !important;
}

.dark #pdSidebar #pdSidebarToggle:focus,
.dark #pdSidebar #pdSidebarToggle:focus-visible,
.dark #pdSidebar #pdMobileMenuClose:focus,
.dark #pdSidebar #pdMobileMenuClose:focus-visible,
.dark #pdMobileMenuOpen:focus,
.dark #pdMobileMenuOpen:focus-visible,
.dark #pdDocViewerClose:focus,
.dark #pdDocViewerClose:focus-visible {
  background: transparent !important;
  border-color: rgba(148,163,184,.32) !important;
  box-shadow: 0 0 0 2px rgba(148,163,184,.26) !important;
}

#pdSidebar.collapsed .pd-nav,
#pdSidebar.collapsed #btnDarkToggle,
#pdSidebar.collapsed #btnLogout,
#pdSidebar.collapsed #pdSidebarToggle {
  justify-content: center;
  align-items: center;
  gap: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#pdSidebar.collapsed nav,
#pdSidebar.collapsed .flex-1.overflow-y-auto,
#pdSidebar.collapsed > .border-t {
  overflow: visible !important;
}

#pdSidebar.collapsed .pd-nav,
#pdSidebar.collapsed #btnDarkToggle,
#pdSidebar.collapsed #btnLogout {
  position: relative;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  margin-inline: auto;
  padding: 0 !important;
  overflow: visible;
}

#pdSidebar.collapsed .pd-nav > svg,
#pdSidebar.collapsed #btnDarkToggle > svg,
#pdSidebar.collapsed #btnLogout > svg {
  display: block;
  margin: 0 !important;
}

#pdSidebar.collapsed #pdSidebarToggle {
  margin-inline: auto;
  width: 36px;
  height: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 0 !important;
  border-radius: 12px !important;
}

#pdSidebar.collapsed #pdSidebarToggle svg {
  width: 18px;
  height: 18px;
  margin: 0 !important;
}

#pdSidebar.collapsed > .border-b,
#pdSidebar.collapsed .flex-shrink-0.border-b {
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-height: 50px;
  padding: 8px 0 6px !important;
}

#pdSidebar.collapsed .pd-sidebar-brand {
  display: grid !important;
  place-items: center;
  width: 100%;
  gap: 0 !important;
  margin-inline: auto;
}

#pdSidebar.collapsed .pd-brand-mark {
  display: grid;
  place-items: center;
  margin-inline: auto;
}

#pdSidebar.collapsed .pd-nav[data-label]::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  z-index: 80;
  width: max-content;
  max-width: 220px;
  transform: translate(-6px, -50%) scale(0.98);
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--pd-border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--pd-surface) 98%, white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  color: var(--pd-text);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 140ms ease, transform 160ms cubic-bezier(.22,.9,.24,1);
}

#pdSidebar.collapsed .pd-nav[data-label]:hover::after,
#pdSidebar.collapsed .pd-nav[data-label]:focus-visible::after {
  transform: translate(0, -50%) scale(1);
  opacity: 1;
}

html.dark #pdSidebar.collapsed .pd-nav[data-label]::after {
  border-color: #334155;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
  color: #f8fafc;
}

#pdFullOverview.pd-active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#pdFullOverview.pd-active > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0 !important;
}

#pdOverviewPrimaryGrid {
  order: 2;
}

#pdActiveRequestWorkspace {
  order: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .85rem;
  align-items: stretch;
  min-width: 0;
}

#pdActiveRequestWorkspace > .es-card,
#pdActiveJobContentGrid > .es-card {
  min-width: 0;
  height: 100%;
}

#pdActiveRequestCard {
  order: 0;
  padding: .95rem !important;
}

#pdActiveJobContentGrid {
  order: 1;
}

#pdOverviewMapCard {
  order: 0;
}

#pdActiveJobSummaryStack {
  order: 1;
}

#pdActiveRequestIssueStack {
  order: 2;
}

#pdActiveRequestMoreOptions {
  order: 3;
}

#pdOverviewOffersCard {
  order: 4;
}

#pdOverviewPerformanceCard {
  order: 3;
}

#pdOverviewServicesCard {
  order: 5;
}

#pdOverviewMetaGrid {
  order: 1;
}

#pdOverviewAvailabilityCard {
  order: 1;
}

#pdOverviewEarningsCard {
  order: 2;
}

#pdOverviewLocationDiagnosticsCard,
#pdOverviewRecentCard {
  display: none !important;
}

body:not(.pd-has-offers) #pdOverviewOffersCard,
body:not(.pd-has-active-request):not(.pd-provider-online) #pdOverviewMapCard {
  display: none !important;
}

body.pd-has-active-request #pdActiveRequestCard {
  border-color: rgba(37, 99, 235, .28);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

body.pd-has-active-request #providerLiveMapContainer {
  height: clamp(340px, 38vh, 420px) !important;
}

#pdOverviewMetaGrid {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1280px) {
  #pdOverviewMetaGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #pdActiveRequestWorkspace {
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
  }

  #pdActiveRequestWorkspace #pdActiveRequestCard {
    order: 0;
  }

  #pdOverviewMapCard {
    order: 0;
  }

  #pdOverviewPrimaryGrid,
  #pdOverviewMetaGrid {
    gap: .75rem;
  }

  #pdMessagesThreadPane,
  #pdMessagesConversationPane {
    min-height: auto;
  }

  #pdMessagesThreadHistoryList {
    max-height: 320px;
  }

  #pdMessagesList {
    min-height: 360px;
  }

  .pd-message-stack,
  .pd-message-row-admin .pd-message-stack {
    max-width: 92%;
  }

  #pdOverviewAvailabilityCard .mt-2.flex {
    align-items: stretch;
    flex-direction: column;
  }

  #btnOnline,
  #btnOffline {
    justify-content: center;
    width: 100%;
  }

  #providerLiveMapContainer {
    height: clamp(220px, 32svh, 280px) !important;
  }
}

@keyframes pd-pill-pulse {
  0%,
  100% {
    opacity: .55;
    transform: scale(.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* iPhone-first provider workflow: retain only the operational header and keep
   the active-job path in a compact, non-scrolling column. */
@media (max-width: 640px) {
  html,
  body { overflow-x: hidden; }

  #pdContentGate,
  #pdSidebar + .flex-1,
  #pdProviderHeader > * { min-width: 0; }

  #pdSidebar + .flex-1 > header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: calc(56px + var(--pd-safe-area-top, env(safe-area-inset-top, 0px)));
    align-items: start;
    gap: 0.5rem;
    padding: calc(0.55rem + var(--pd-safe-area-top, env(safe-area-inset-top, 0px))) 0.75rem 0.55rem !important;
  }

  #pdSidebar + .flex-1 > header > .flex.items-center.gap-3 { gap: 0.5rem; }

  #pdMobileMenuOpen,
  #pdNotificationsToggle {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 !important;
  }

  #pdSidebar + .flex-1 > header h1 {
    overflow: visible;
    font-size: 1rem !important;
    line-height: 1.2;
    white-space: nowrap;
  }

  #pdSidebar + .flex-1 > header p,
  #pdHeaderSignedIn,
  #pdHeaderLocStatus { display: none !important; }

  #pdSidebar + .flex-1 > header > .relative.z-\[90\] {
    flex-wrap: nowrap;
    justify-self: end;
    gap: 0.4rem;
  }

  #statusValue {
    max-width: min(7.25rem, 30vw);
    min-height: 44px;
    overflow: hidden;
    padding-inline: 0.65rem !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #pdSidebar + .flex-1 > main { padding: 0.75rem !important; }

  #pdActiveRequestCard,
  #pdOverviewMapCard,
  #pdActiveJobSummaryStack .pd-active-side-card { border-radius: 16px !important; }

  #pdActiveRequestCard,
  #pdOverviewMapCard { padding: 0.8rem !important; }

  .pd-active-job-check-in {
    align-items: stretch;
    flex-direction: column;
    gap: .58rem;
  }

  .pd-active-job-check-in button {
    width: 100%;
    min-height: 44px;
  }

  .pd-current-job-card__head {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .pd-current-job-card__icon { width: 34px; height: 34px; }

  .pd-current-job-card__meta,
  .pd-current-route-metric { width: auto; text-align: right; }

  .pd-current-job-card__meta {
    flex: 0 0 auto;
    align-items: flex-end;
    gap: 0.35rem;
  }

  .pd-current-route-metric { min-width: 0; }
  .pd-current-route-metric span:first-child { font-size: 1rem; }

  .pd-active-timeline {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.1rem;
    min-height: 44px;
    overflow: hidden;
    padding: 0.25rem 0 0;
  }

  .pd-active-timeline::before { right: 12px; left: 12px; }

  .pd-active-timeline li {
    min-width: 0;
    padding: 0 0.1rem;
    font-size: 0.61rem;
  }

  .pd-active-timeline__dot { width: 14px; height: 14px; border-width: 2px; }
  .pd-active-timeline__sub { display: none; }
  .pd-active-timeline li.is-current .pd-active-timeline__sub { display: block; font-size: 0.58rem; }

  .pd-active-job-action-stack { margin-top: 0.75rem; }
  .pd-active-job-action-stack .pd-current-primary-action { width: 100%; min-width: 0; min-height: 48px; }

  #overviewMapWrapper { margin-top: 0.65rem !important; }

  #providerLiveMapContainer,
  #mapPageMapWrapper {
    min-height: 0 !important;
    height: clamp(220px, 32svh, 280px) !important;
  }

  .pd-live-map-card__live {
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pd-live-map-card__legend { margin-top: 0.4rem; gap: 0.65rem; }
  .pd-live-map-page__header { align-items: stretch; flex-direction: column; }
  .pd-live-map-page__back { width: 100%; }
  .pd-live-map-route-notice { align-items: flex-start; }
  .pd-live-map-route-notice__action,
  .pd-active-tracking-notice__action { min-height: 40px; }

  .pd-active-job-summary-stack { gap: 0.6rem; }
  .pd-active-side-card { padding: 0.75rem; }
  .pd-active-customer { gap: 0.65rem; margin-top: 0.45rem; }
  .pd-active-customer__avatar { width: 40px; height: 40px; }
  .pd-active-customer-vehicle { margin-top: 0.55rem; padding: 0.5rem; }

  .pd-active-customer-vehicle__icon,
  .pd-active-customer-vehicle__icon .cd-vehicle-thumbnail,
  .pd-active-customer-vehicle__icon svg,
  .pd-active-customer-vehicle__icon img {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
  }

  #pdActiveCustomerVehicleMeta,
  #pdActiveRequestPayoutDetailsLink,
  #pdActiveJobSummaryStack > .pd-active-side-card:nth-child(2) .pd-active-detail-list > div:nth-child(1),
  #pdActiveJobSummaryStack > .pd-active-side-card:nth-child(2) .pd-active-detail-list > div:nth-child(3),
  #pdActiveJobSummaryStack > .pd-active-side-card:nth-child(2) .pd-active-detail-list > div:nth-child(4) { display: none; }

  .pd-active-contact-actions,
  #pdActiveRequestCallLink { min-height: 44px; }

  .pd-active-contact-actions { margin-top: 0.6rem; }
  .pd-active-detail-list { margin-top: 0.45rem; }

  #banner,
  #pdLocBanner,
  .pd-active-tracking-notice,
  .pd-arrival-gate-note {
    padding: 0.55rem 0.65rem !important;
    font-size: 0.72rem;
  }
}
