:root {
  --es-mobile-tabbar-height: 68px;
  --es-mobile-shell-safe-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --es-mobile-shell-safe-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --es-mobile-shell-safe-left: var(--safe-area-inset-left, env(safe-area-inset-left, 0px));
  --es-mobile-shell-safe-right: var(--safe-area-inset-right, env(safe-area-inset-right, 0px));
  --es-mobile-page-gutter: 0.875rem;
  --es-mobile-section-gap: 0.875rem;
  --es-mobile-card-padding: 1rem;
  --es-mobile-card-radius: 0.875rem;
  --es-mobile-control-radius: 0.75rem;
  --es-mobile-header-height: 64px;
  --es-mobile-touch-target: 44px;
  --es-mobile-title-size: 1.0625rem;
  --es-mobile-canvas: #fff;
  --es-mobile-frame: #fff;
  --es-mobile-surface: #fff;
  --es-mobile-muted-surface: #f6f8fb;
  --es-mobile-subtle-surface: #eef2f6;
  --es-mobile-text: #17222e;
  --es-mobile-text-secondary: #5a6673;
  --es-mobile-text-muted: #64717c;
  --es-mobile-border: #e3e7ee;
  --es-mobile-accent: #c8322b;
  --es-mobile-accent-highlight: #df4941;
  --es-mobile-accent-strong: #a8241f;
  --es-mobile-accent-soft: #fbedec;
  --es-mobile-success: #1e7a4d;
  --es-mobile-success-soft: #e6f3ec;
  --es-mobile-warning: #9a6a1b;
  --es-mobile-warning-soft: #fbf3e2;
  --es-mobile-strong: #233648;
  --es-mobile-info-soft: #eef2f6;
  --es-mobile-settings-icon-blue: color-mix(in srgb, #3b82f6 68%, var(--es-mobile-text));
  --es-mobile-settings-icon-blue-soft: color-mix(in srgb, #3b82f6 14%, var(--es-mobile-surface));
  --es-mobile-settings-icon-green: color-mix(in srgb, #10b981 70%, var(--es-mobile-text));
  --es-mobile-settings-icon-green-soft: color-mix(in srgb, #10b981 14%, var(--es-mobile-surface));
  --es-mobile-settings-icon-amber: color-mix(in srgb, #f59e0b 72%, var(--es-mobile-text));
  --es-mobile-settings-icon-amber-soft: color-mix(in srgb, #f59e0b 14%, var(--es-mobile-surface));
  --es-mobile-settings-icon-red: color-mix(in srgb, #ef4444 70%, var(--es-mobile-text));
  --es-mobile-settings-icon-red-soft: color-mix(in srgb, #ef4444 13%, var(--es-mobile-surface));
  --es-mobile-settings-icon-slate: color-mix(in srgb, #64748b 68%, var(--es-mobile-text));
  --es-mobile-settings-icon-slate-soft: color-mix(in srgb, #64748b 13%, var(--es-mobile-surface));
  --es-mobile-control-track: #d9dde1;
  --es-mobile-card-shadow: 0 1px 2px rgb(11 27 43 / 3%);
}

.es-mobile-tabbar,
.es-mobile-brand,
.es-mobile-overview-context {
  display: none;
}

.es-mobile-card {
  border: 1px solid var(--es-mobile-border);
  border-radius: var(--es-mobile-card-radius);
  background: var(--es-mobile-surface);
  padding: var(--es-mobile-card-padding);
  color: var(--es-mobile-text);
  box-shadow: var(--es-mobile-card-shadow);
}

.es-skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5000;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  margin: -1px;
  border: 0;
  border-radius: var(--es-mobile-control-radius);
  background: var(--es-bg-surface, #fff);
  padding: 0;
  color: var(--es-text-primary, #0f172a);
  font-size: 0.875rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: var(--es-shadow-md, 0 10px 20px rgba(15, 23, 42, 0.08));
}

html[data-es-input-modality="keyboard"] .es-skip-link:focus-visible {
  top: max(0.5rem, var(--es-mobile-shell-safe-top));
  left: max(0.5rem, var(--es-mobile-shell-safe-left));
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  margin: 0;
  border: 2px solid var(--es-primary-bg, #0f766e);
  padding: 0.65rem 0.85rem;
  white-space: normal;
  outline: none;
}

@media (max-width: 768px) {
  body[data-mobile-dashboard-role] {
    background: var(--es-mobile-frame) !important;
    color: var(--es-mobile-text);
  }

  body[data-mobile-dashboard-role="customer"] {
    --cd-bg: var(--es-mobile-canvas);
    --cd-shell-bg: var(--es-mobile-frame);
    --cd-settings-bg: var(--es-mobile-frame);
    --cd-surface: var(--es-mobile-surface);
    --cd-surface-2: var(--es-mobile-muted-surface);
    --cd-surface-3: var(--es-mobile-subtle-surface);
    --cd-border: var(--es-mobile-border);
    --cd-border-soft: color-mix(in srgb, var(--es-mobile-border) 62%, transparent);
    --cd-text: var(--es-mobile-text);
    --cd-text-strong: var(--es-mobile-text);
    --cd-text-muted: var(--es-mobile-text-secondary);
    --es-bg-page: var(--es-mobile-canvas);
    --es-bg-surface: var(--es-mobile-surface);
    --es-bg-surface-elevated: var(--es-mobile-surface);
    --es-bg-muted: var(--es-mobile-muted-surface);
    --es-bg-subtle: var(--es-mobile-muted-surface);
    --es-text-primary: var(--es-mobile-text);
    --es-text-secondary: var(--es-mobile-text-secondary);
    --es-text-muted: var(--es-mobile-text-muted);
    --es-border: var(--es-mobile-border);
    --es-border-strong: color-mix(in srgb, var(--es-mobile-border) 72%, var(--es-mobile-text));
    --es-primary-bg: var(--es-mobile-accent);
    --es-primary-bg-hover: var(--es-mobile-accent-strong);
    --es-success: var(--es-mobile-success);
    --es-success-soft: var(--es-mobile-success-soft);
    --es-warning: var(--es-mobile-warning);
    --es-warning-soft: var(--es-mobile-warning-soft);
  }

  html[data-customer-effective-theme="day"] body[data-mobile-dashboard-role="customer"] {
    --es-mobile-accent: var(--cd-accent-600);
    --es-mobile-accent-highlight: var(--cd-accent-500);
    --es-mobile-accent-strong: var(--cd-accent-700);
    --es-mobile-accent-soft: var(--cd-accent-soft);
    --cd-theme-primary: var(--cd-accent-600);
    --cd-theme-primary-strong: var(--cd-accent-700);
    --cd-theme-accent: var(--cd-accent-500);
    --cd-theme-accent-soft: var(--cd-accent-soft);
    --cd-theme-ring: var(--cd-accent-border);
    --cd-theme-shadow: var(--cd-accent-glow);
    --cd-activity-badge: var(--cd-accent-600);
    --cd-activity-badge-ring: var(--cd-accent-glow);
  }

  html[data-customer-effective-theme="sunset"] body[data-mobile-dashboard-role="customer"] {
    --es-mobile-canvas: #fffaf7;
    --es-mobile-frame: #fff8f3;
    --es-mobile-surface: #fffdfb;
    --es-mobile-muted-surface: #fff9f5;
    --es-mobile-subtle-surface: #fff2e8;
    --es-mobile-text: #1f2937;
    --es-mobile-text-secondary: #6b7280;
    --es-mobile-text-muted: #8a7663;
    --es-mobile-border: var(--cd-accent-border);
    --es-mobile-accent: var(--cd-accent-600);
    --es-mobile-accent-highlight: var(--cd-accent-500);
    --es-mobile-accent-strong: var(--cd-accent-700);
    --es-mobile-accent-soft: var(--cd-accent-soft);
    --es-mobile-success: #059669;
    --es-mobile-success-soft: rgb(5 150 105 / 14%);
    --es-mobile-warning: #d97706;
    --es-mobile-warning-soft: rgb(217 119 6 / 14%);
    --es-mobile-strong: #1f2937;
    --es-mobile-info-soft: #fff2e8;
    --es-mobile-control-track: #ded8ce;
    --es-mobile-card-shadow: 0 1px 2px rgb(15 23 42 / 3.5%);
    --es-border-strong: color-mix(in srgb, var(--cd-accent-600) 46%, transparent);
  }

  html:is(.dark, [data-customer-effective-theme="night"]) body[data-mobile-dashboard-role="customer"] {
    --es-mobile-canvas: #0f172a;
    --es-mobile-frame: #0f172a;
    --es-mobile-surface: #111827;
    --es-mobile-muted-surface: #172033;
    --es-mobile-subtle-surface: #1e293b;
    --es-mobile-text: #f8fafc;
    --es-mobile-text-secondary: #cbd5e1;
    --es-mobile-text-muted: #94a3b8;
    --es-mobile-border: #253044;
    --es-mobile-accent: var(--cd-accent-600);
    --es-mobile-accent-highlight: var(--cd-accent-500);
    --es-mobile-accent-strong: var(--cd-accent-700);
    --es-mobile-accent-soft: var(--cd-accent-soft);
    --es-mobile-success: #10b981;
    --es-mobile-success-soft: rgb(16 185 129 / 18%);
    --es-mobile-warning: #f59e0b;
    --es-mobile-warning-soft: rgb(245 158 11 / 20%);
    --es-mobile-strong: #f8fafc;
    --es-mobile-info-soft: #10192b;
    --es-mobile-control-track: #334155;
    --es-mobile-card-shadow: 0 1px 2px rgb(0 0 0 / 18%);
    --es-bg-surface-elevated: #172033;
    --es-bg-muted: rgb(30 41 59 / 72%);
    --es-bg-subtle: #10192b;
    --es-border-strong: #334155;
  }

  body[data-mobile-dashboard-role="customer"] #customerDashboardMain,
  body[data-mobile-dashboard-role="customer"] #cdContentGate > .flex-1 {
    background: var(--es-mobile-canvas) !important;
  }

  [data-mobile-shell-content] {
    padding-top: var(--es-mobile-page-gutter) !important;
    padding-right: max(var(--es-mobile-page-gutter), var(--es-mobile-shell-safe-right)) !important;
    padding-bottom: calc(
      var(--es-mobile-tabbar-height) + var(--es-mobile-shell-safe-bottom) + 1rem
    ) !important;
    padding-left: max(var(--es-mobile-page-gutter), var(--es-mobile-shell-safe-left)) !important;
    scroll-padding-bottom: calc(
      var(--es-mobile-tabbar-height) + var(--es-mobile-shell-safe-bottom) + 1rem
    );
  }

  [data-mobile-shell-header] {
    min-height: calc(var(--es-mobile-header-height) + var(--es-mobile-shell-safe-top)) !important;
    align-items: center !important;
    gap: var(--es-space-2, 0.5rem) !important;
    border-bottom: 1px solid var(--es-mobile-border, var(--es-border, #e2e8f0)) !important;
    background: var(--es-mobile-surface, var(--es-bg-surface, #fff)) !important;
    padding:
      calc(0.625rem + var(--es-mobile-shell-safe-top))
      max(var(--es-mobile-page-gutter), var(--es-mobile-shell-safe-right))
      0.625rem
      max(var(--es-mobile-page-gutter), var(--es-mobile-shell-safe-left)) !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
  }

  [data-mobile-shell-title] {
    margin: 0;
    color: var(--es-text-primary, #0f172a);
    font-size: var(--es-mobile-title-size) !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em;
    line-height: 1.18 !important;
  }

  [data-mobile-shell-subtitle] {
    max-width: min(58vw, 32rem);
    margin-top: 0.125rem;
    color: var(--es-text-muted, #64748b) !important;
    font-size: 0.75rem !important;
    line-height: 1.25;
  }

  [data-mobile-shell-header-actions] {
    gap: var(--es-space-2, 0.5rem) !important;
  }

  .es-mobile-brand {
    display: flex;
    min-width: 0;
    align-items: baseline;
    color: var(--es-mobile-text);
    white-space: nowrap;
  }

  .es-mobile-brand__word,
  .es-mobile-brand__role {
    font-family: Sora, var(--es-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: 19px;
    letter-spacing: -0.02em;
    line-height: 1.05;
  }

  .es-mobile-brand__word {
    font-weight: 700;
  }

  .es-mobile-brand__dot {
    color: var(--es-mobile-accent);
  }

  .es-mobile-brand__role {
    color: var(--es-mobile-text-muted);
    font-weight: 400;
  }

  .es-mobile-overview-context {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    margin: 0;
  }

  .es-mobile-context-action {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid var(--es-mobile-accent);
    border-radius: var(--es-mobile-control-radius);
    background: var(--es-mobile-accent);
    padding: 0.75rem 1rem;
    color: #fff;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--es-mobile-accent) 18%, transparent);
  }

  .es-mobile-context-action svg {
    width: 1.125rem;
    height: 1.125rem;
    flex: 0 0 auto;
  }

  .es-mobile-context-action:active {
    background: var(--es-mobile-accent-strong);
    transform: scale(0.99);
  }

  .es-mobile-context-action:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--es-mobile-accent) 34%, transparent);
    outline-offset: 2px;
  }

  body[data-mobile-dashboard-role="customer"] .cd-desktop-header-copy {
    display: none !important;
  }

  body[data-mobile-dashboard-role="customer"] #cdDashboardHeader {
    min-height: calc(var(--es-mobile-header-height) + var(--es-mobile-shell-safe-top)) !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    background: var(--es-mobile-surface) !important;
  }

  html[data-customer-effective-theme="sunset"]
    body[data-mobile-dashboard-role="customer"]
    #cdDashboardHeader {
    background: rgb(255 253 251 / 86%) !important;
    box-shadow: 0 16px 40px var(--cd-shadow-soft);
  }

  html:is(.dark, [data-customer-effective-theme="night"])
    body[data-mobile-dashboard-role="customer"]
    #cdDashboardHeader {
    border-color: rgb(71 85 105 / 65%) !important;
    background: rgb(15 23 42 / 90%) !important;
    box-shadow: 0 16px 34px rgb(0 0 0 / 28%) !important;
  }

  body[data-mobile-dashboard-role="customer"] #cdDashboardHeader .cd-header-left {
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
  }

  body[data-mobile-dashboard-role="customer"] :is(
    #connStatus,
    #cdHeaderLocationPill,
    #cdHeaderDateTimePill,
    #cdHeaderAccountBlock
  ) {
    display: none !important;
  }

  body[data-mobile-dashboard-role="customer"] #cdMobileMenuOpen,
  body[data-mobile-dashboard-role="customer"] #cdNotificationsToggle {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    border: 1px solid var(--es-mobile-border) !important;
    border-radius: var(--es-mobile-card-radius) !important;
    background: var(--es-mobile-surface) !important;
    color: var(--es-mobile-text) !important;
    box-shadow: none !important;
  }

  body[data-mobile-dashboard-role="customer"] #cdNotificationsToggle svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.8;
  }

  [data-mobile-shell-header] button,
  [data-mobile-shell-header] a[role="button"],
  [data-mobile-shell-content] button:not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out),
  [data-mobile-shell-content] a[href] {
    min-height: var(--es-mobile-touch-target);
    touch-action: manipulation;
  }

  [data-mobile-shell-header] button {
    min-width: var(--es-mobile-touch-target);
  }

  [data-mobile-shell-content] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  [data-mobile-shell-content] select,
  [data-mobile-shell-content] textarea {
    min-height: var(--es-mobile-touch-target);
    font-size: max(1rem, 1em);
  }

  [data-mobile-shell-content] h1,
  [data-mobile-shell-content] h2,
  [data-mobile-shell-content] h3,
  [data-mobile-shell-content] p,
  [data-mobile-shell-content] li,
  [data-mobile-shell-content] dd {
    overflow-wrap: anywhere;
  }

  [data-mobile-shell-content] :focus-visible,
  [data-mobile-shell-header] :focus-visible {
    scroll-margin: 1rem;
  }

  body[data-mobile-dashboard-role="customer"] .cd-shell-workspace,
  body[data-mobile-dashboard-role="provider"] .es-card,
  body[data-mobile-dashboard-role="provider"] .pd-pane-card {
    border-radius: var(--es-mobile-card-radius) !important;
  }

  .es-mobile-tabbar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    min-height: calc(
      var(--es-mobile-tabbar-height) + var(--es-mobile-shell-safe-bottom)
    );
    align-items: stretch;
    gap: 2px;
    border-top: 1px solid var(--es-mobile-border, var(--es-border, rgba(148, 163, 184, 0.3)));
    background: var(--es-mobile-surface, var(--es-bg-surface, #ffffff));
    padding:
      6px
      max(8px, var(--es-mobile-shell-safe-right))
      calc(6px + var(--es-mobile-shell-safe-bottom))
      max(8px, var(--es-mobile-shell-safe-left));
    box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    backdrop-filter: blur(18px) saturate(1.25);
  }

  .es-mobile-tabbar--customer {
    --es-mobile-tab-accent: var(--es-mobile-accent);
    --es-mobile-tab-accent-soft: var(--es-mobile-accent-soft);

    right: auto;
    left: 50%;
    width: 100%;
    max-width: 430px;
    transform: translateX(-50%);
    gap: 0;
    border-color: var(--es-mobile-border);
    background: var(--es-mobile-surface);
    box-shadow: none;
  }

  html:is([data-customer-effective-theme="sunset"], [data-customer-effective-theme="night"])
    body[data-mobile-dashboard-role="customer"]
    .es-mobile-tabbar--customer {
    background: color-mix(in srgb, var(--es-mobile-surface) 94%, transparent);
    box-shadow: 0 -12px 32px rgb(15 23 42 / 8%);
  }

  .es-mobile-tabbar--provider {
    --es-mobile-tab-accent: var(--pd-brand, var(--cd-accent-600, #2563eb));
    --es-mobile-tab-accent-soft: var(--pd-selected-surface, rgba(37, 99, 235, 0.12));
  }

  .es-mobile-tabbar__item {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: max(56px, var(--es-mobile-touch-target));
    flex: 1 1 0;
    appearance: none;
    place-content: center;
    justify-items: center;
    gap: 3px;
    border: 0;
    border-radius: var(--es-mobile-control-radius);
    background: transparent;
    color: var(--es-text-muted, #64748b);
    cursor: pointer;
    font: inherit;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .es-mobile-tabbar__item[hidden],
  .es-mobile-tabbar__item.hidden {
    display: none !important;
  }

  .es-mobile-tabbar__item::before {
    content: "";
    position: absolute;
    inset: 3px 7px;
    z-index: -1;
    border-radius: 12px;
    background: transparent;
    transition: background-color 160ms ease, transform 160ms ease;
  }

  .es-mobile-tabbar__item svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    stroke-width: 2;
  }

  .es-mobile-tabbar__item .cd-nav-label,
  .es-mobile-tabbar__item .pd-nav-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: -0.01em;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .es-mobile-tabbar__item[aria-current="true"] {
    color: var(--es-mobile-tab-accent, #0f766e);
  }

  .es-mobile-tabbar__item[aria-current="true"]::before {
    background: var(--es-mobile-tab-accent-soft, rgba(15, 118, 110, 0.12));
    transform: scale(1);
  }

  .es-mobile-tabbar--customer .es-mobile-tabbar__item {
    min-height: 56px;
    gap: 4px;
    border-radius: var(--es-mobile-control-radius);
    color: var(--es-mobile-text-secondary);
    font-size: 11px;
    font-weight: 500;
  }

  .es-mobile-tabbar--customer .es-mobile-tabbar__item::before {
    display: none;
  }

  .es-mobile-tabbar--customer .es-mobile-tabbar__item svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
  }

  .es-mobile-tabbar--customer .es-mobile-tabbar__item .cd-nav-label {
    font-size: 11px;
    font-weight: inherit;
    letter-spacing: 0;
  }

  .es-mobile-tabbar--customer .es-mobile-tabbar__item[aria-current="true"] {
    color: var(--es-mobile-accent);
    font-weight: 600;
  }

  .es-mobile-tabbar--customer .cd-nav-badge {
    border-color: var(--es-mobile-surface) !important;
    background: var(--es-mobile-accent) !important;
  }

  .es-mobile-tabbar__primary {
    overflow: visible;
    color: var(--es-mobile-tab-accent, #0f766e);
  }

  .es-mobile-tabbar__primary::before {
    display: none;
  }

  .es-mobile-tabbar__primary-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-top: -18px;
    place-items: center;
    border: 4px solid var(--es-bg-surface, #ffffff);
    border-radius: 50%;
    background: var(--es-mobile-tab-accent, #0f766e);
    color: #ffffff;
    box-shadow: 0 9px 22px color-mix(in srgb, var(--es-mobile-tab-accent, #0f766e) 30%, transparent);
    transition: transform 160ms ease, box-shadow 160ms ease;
  }

  .es-mobile-tabbar__primary:active .es-mobile-tabbar__primary-icon {
    transform: scale(0.94);
  }

  .es-mobile-tabbar__primary[data-mode="track"] .es-mobile-tabbar__primary-icon {
    box-shadow:
      0 0 0 5px var(--es-mobile-tab-accent-soft, rgba(15, 118, 110, 0.12)),
      0 9px 22px color-mix(in srgb, var(--es-mobile-tab-accent, #0f766e) 30%, transparent);
  }

  .es-mobile-tabbar__primary .cd-nav-label {
    margin-top: -1px;
    color: var(--es-mobile-tab-accent, #0f766e);
  }

  .es-mobile-tabbar__item:focus-visible {
    outline: 3px solid color-mix(
      in srgb,
      var(--es-mobile-tab-accent, #0f766e) 38%,
      transparent
    );
    outline-offset: -2px;
  }

  .es-mobile-tabbar__item .cd-nav-badge,
  .es-mobile-tabbar__item .pd-nav-badge {
    position: absolute;
    top: 2px;
    left: calc(50% + 5px);
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--es-bg-surface, #ffffff);
    border-radius: 999px;
    background: var(--es-info, #2563eb);
    padding: 0 4px;
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 850;
    line-height: 1;
  }

  .es-mobile-tabbar__item .cd-nav-badge.hidden,
  .es-mobile-tabbar__item .pd-nav-badge.hidden {
    display: none !important;
  }

  .es-mobile-tabbar__item .cd-nav-badge.is-warn,
  .es-mobile-tabbar__item .pd-nav-badge.is-warn {
    background: var(--es-warning, #d97706);
  }

  .es-mobile-tabbar__item .cd-nav-badge.is-danger,
  .es-mobile-tabbar__item .pd-nav-badge.is-danger {
    background: var(--es-error, #dc2626);
  }

  body[data-mobile-dashboard-role="customer"] #toast,
  body[data-mobile-dashboard-role="provider"] #pdToast,
  body[data-mobile-dashboard-role] .es-update-banner {
    bottom: calc(
      var(--es-mobile-tabbar-height) + var(--es-mobile-shell-safe-bottom) + 0.75rem
    ) !important;
  }

  body[data-mobile-dashboard-role="customer"] .es-ai-entry {
    bottom: calc(
      var(--es-mobile-tabbar-height) + var(--es-mobile-shell-safe-bottom) + 0.75rem
    ) !important;
  }

  body[data-mobile-dashboard-role="provider"] #pdActiveJobActionRail {
    bottom: calc(
      var(--es-mobile-tabbar-height) + var(--es-mobile-shell-safe-bottom) + 0.5rem
    ) !important;
  }

  body[data-mobile-dashboard-role="provider"].pd-has-active-action-rail [data-mobile-shell-content] {
    padding-bottom: calc(
      var(--es-mobile-tabbar-height) + var(--es-mobile-shell-safe-bottom) + 7.25rem
    ) !important;
    scroll-padding-bottom: calc(
      var(--es-mobile-tabbar-height) + var(--es-mobile-shell-safe-bottom) + 7.25rem
    );
  }
}

@media (max-width: 520px) {
  [data-mobile-shell-subtitle] {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .es-mobile-tabbar {
    gap: 0;
    padding-inline: max(4px, var(--es-mobile-shell-safe-left));
  }

  .es-mobile-tabbar__item {
    border-radius: 12px;
  }

  .es-mobile-tabbar__item .cd-nav-label,
  .es-mobile-tabbar__item .pd-nav-label {
    font-size: 0.6875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-mobile-dashboard-role] *,
  body[data-mobile-dashboard-role] *::before,
  body[data-mobile-dashboard-role] *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (forced-colors: active) {
  .es-mobile-tabbar__item[aria-current="true"] {
    outline: 2px solid CanvasText;
    outline-offset: -4px;
  }
}
