html, body {
  overflow-x: hidden;
}

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

button, a, input, select, textarea {
  touch-action: manipulation;
}

button, .btn-primary, .typeCard, .tap-target {
  min-height: 44px;
}

button:active, .btn-primary:active, .typeCard:active, a:active {
  transform: scale(0.98);
}

input, select, textarea {
  font-size: 16px !important;
}

@media (max-width: 1024px) {
  aside.fixed,
  aside.w-72,
  aside.account-sidebar,
  #accountSidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 60;
  }
  aside.mobile-open {
    transform: translateX(0) !important;
  }
  main.ml-72 {
    margin-left: 0 !important;
    width: 100%;
  }
  .dash-sidebar-backdrop,
  #dashBackdrop,
  #mobileNavBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .dash-sidebar-backdrop.is-open,
  #dashBackdrop.is-open,
  #mobileNavBackdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .modal, .modal-content, [role="dialog"] {
    width: 92vw !important;
    max-width: 92vw !important;
    margin-left: auto;
    margin-right: auto;
  }
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
  }
  .mobile-bottom-nav a {
    text-decoration: none;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 48px;
    min-width: 72px;
    padding: 0 8px;
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
  }
  .mobile-bottom-nav a.is-active {
    color: #2D5AFE;
  }
  body.has-mobile-bottom-nav {
    padding-bottom: 82px;
  }
  body.has-fixed-step-actions {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }
  body.has-fixed-step-actions .actions.actions--between,
  body.has-fixed-step-actions .bottomActions,
  body.has-fixed-step-actions .bottomNav,
  body.has-fixed-step-actions .vActionsSticky,
  body.has-fixed-step-actions .footerNav,
  body.has-fixed-step-actions .navBtns,
  body.has-fixed-step-actions .bottomBar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 79 !important;
    margin: 0 !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border-top: 1px solid #e5e7eb !important;
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.08) !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    backdrop-filter: blur(8px);
  }
  body.has-fixed-step-actions .bottomBar .bottomBar__inner {
    display: contents !important;
  }
  body.has-fixed-step-actions .actions.actions--between > *,
  body.has-fixed-step-actions .bottomActions > *,
  body.has-fixed-step-actions .bottomNav > *,
  body.has-fixed-step-actions .vActionsSticky > *,
  body.has-fixed-step-actions .footerNav > *,
  body.has-fixed-step-actions .navBtns > *,
  body.has-fixed-step-actions .bottomBar .bottomBar__inner > * {
    width: 100% !important;
    min-height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .dash-mobile-toggle,
  #dashToggle,
  .mobile-nav-toggle {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .step__label {
    display: none !important;
  }
  .step__line {
    width: 22px !important;
  }
  .phone {
    transform: scale(0.86);
    transform-origin: top center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
