/* Version 260 — dedicated phone and tablet browser presentation. Desktop remains unchanged. */
@media (max-width: 1000px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    overflow-x: clip !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

  body {
    margin: 0 !important;
    overscroll-behavior-x: none !important;
  }

  .loginShell.loginShell,
  .loginShell.loginShell:not(.employerAccessShell) {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 100svh !important;
    flex-direction: column !important;
    overflow: visible !important;
  }

  .loginShell.loginShell:not(.employerAccessShell) .loginBrand {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    aspect-ratio: 1254 / 941 !important;
    overflow: hidden !important;
  }

  .loginShell.loginShell:not(.employerAccessShell) .loginBrand::before {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: contain !important;
    background-position: center center !important;
  }

  .loginShell.loginShell:not(.employerAccessShell) .currentFeatureEdits article {
    border-radius: clamp(4px, 1.2vw, 9px) !important;
  }

  .loginShell.loginShell:not(.employerAccessShell) .currentFeatureEdits i {
    font-size: clamp(10px, 3.2vw, 24px) !important;
  }

  .loginShell.loginShell:not(.employerAccessShell) .currentFeatureEdits span {
    font-size: clamp(5px, 1.35vw, 10px) !important;
    line-height: 1.02 !important;
  }

  .loginShell.loginShell .loginPanel {
    box-sizing: border-box !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding:
      24px max(16px, env(safe-area-inset-right))
      calc(24px + env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left)) !important;
    overflow: visible !important;
  }

  .loginShell.loginShell .loginPanel .loginBox,
  .loginShell.loginShell .loginPanel .employerLoginBox,
  .loginShell.loginShell:not(.employerAccessShell) .panelAwsSecurity,
  .loginShell.loginShell:not(.employerAccessShell) .loginPanel > .siteLegalFooter {
    box-sizing: border-box !important;
    width: min(100%, 620px) !important;
    max-width: 620px !important;
  }

  .loginShell.loginShell .loginPanel .loginBox,
  .loginShell.loginShell .loginPanel .employerLoginBox,
  .loginShell.loginShell .loginPanel .loginBox.signinMode,
  .loginShell.loginShell .loginPanel .loginBox.signupMode,
  .loginShell.loginShell .loginPanel .employerLoginBox.signinMode,
  .loginShell.loginShell .loginPanel .employerLoginBox.signupMode {
    display: flex !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  .loginShell.loginShell .authTabs {
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    margin: 0 0 12px !important;
  }

  .loginShell.loginShell .authTabs button,
  .loginShell.loginShell .employerEntryButton,
  .loginShell.loginShell .driverReturnButton,
  .loginShell.loginShell .loginButton,
  .loginShell.loginShell .textButton {
    min-height: 46px !important;
    touch-action: manipulation !important;
  }

  .loginShell.loginShell .employerEntryButton,
  .loginShell.loginShell .driverReturnButton {
    margin-bottom: 12px !important;
    padding: 10px 14px !important;
  }

  .loginShell.loginShell .loginBox > h2,
  .loginShell.loginShell .employerLoginBox > h2 {
    margin: 4px 0 7px !important;
    font-size: clamp(28px, 7vw, 38px) !important;
    line-height: 1.08 !important;
    text-align: center !important;
  }

  .loginShell.loginShell .loginBox > p,
  .loginShell.loginShell .employerLoginBox > p,
  .loginShell.loginShell:not(.employerAccessShell) .signinMode > p,
  .loginShell.loginShell:not(.employerAccessShell) .signupMode > p {
    width: 100% !important;
    margin: 0 0 15px !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .loginShell.loginShell form label {
    margin-bottom: 12px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .loginShell.loginShell form input:not([type='checkbox']) {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    margin-top: 6px !important;
    padding: 12px 13px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  .loginShell.loginShell .termsCheck {
    min-height: 40px !important;
    margin: 3px 0 9px !important;
    font-size: 13px !important;
  }

  .loginShell.loginShell .loginButton {
    padding: 13px 16px !important;
    font-size: 16px !important;
  }

  .loginShell.loginShell .textButton {
    padding: 10px !important;
    font-size: 13px !important;
  }

  .loginShell.loginShell:not(.employerAccessShell) .loginBox .subscriptionLine {
    width: 100% !important;
    min-height: 0 !important;
    margin-top: 14px !important;
    padding: 12px 13px !important;
    gap: 8px !important;
  }

  .loginShell.loginShell:not(.employerAccessShell) .subscriptionLine > em {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .loginShell.loginShell:not(.employerAccessShell) .subscriptionLine .offerDisclaimer {
    font-size: 10px !important;
    line-height: 1.35 !important;
  }

  .loginShell.loginShell:not(.employerAccessShell) .panelAwsSecurity {
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 12px 13px !important;
  }

  .loginShell.loginShell:not(.employerAccessShell) .panelAwsSecurity p {
    font-size: 12px !important;
    line-height: 1.38 !important;
  }

  .loginShell.loginShell:not(.employerAccessShell) .panelAwsSecurity strong {
    font-size: 14px !important;
  }

  .loginShell.loginShell:not(.employerAccessShell) .loginPanel > .siteLegalFooter {
    margin: 0 auto !important;
    padding: 12px !important;
  }

  .loginShell.loginShell:not(.employerAccessShell) .loginPanel > .siteLegalFooter > span:first-child {
    font-size: 10px !important;
    line-height: 1.35 !important;
  }

  .loginShell.loginShell:not(.employerAccessShell) .loginPanel > .siteLegalFooter button,
  .loginShell.loginShell:not(.employerAccessShell) .loginPanel > .siteLegalFooter a {
    min-height: 32px !important;
    padding: 7px 3px !important;
    font-size: 10px !important;
    touch-action: manipulation !important;
  }

  .employerLaunchNoticeBackdrop,
  .driverTypeBackdrop,
  .checkoutBackdrop,
  .legalBackdrop {
    box-sizing: border-box !important;
    padding:
      max(14px, env(safe-area-inset-top))
      max(14px, env(safe-area-inset-right))
      max(14px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left)) !important;
  }

  .employerLaunchNotice,
  .driverTypeCard,
  .checkoutCard,
  .legalModal {
    width: min(100%, 620px) !important;
    max-width: 100% !important;
    max-height: calc(100svh - 28px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
  }

  .driverPortal,
  .driverPortal > .wrap,
  .page,
  .employerPortal {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }

  .driverPortal button,
  .driverPortal input,
  .driverPortal select,
  .driverPortal textarea,
  .employerPortal button,
  .employerPortal input,
  .employerPortal select,
  .employerPortal textarea {
    touch-action: manipulation !important;
  }

  .driverPortal input,
  .driverPortal select,
  .driverPortal textarea,
  .employerPortal input,
  .employerPortal select,
  .employerPortal textarea {
    max-width: 100% !important;
    font-size: 16px !important;
  }
}

@media (max-width: 560px) {
  .loginShell.loginShell .loginPanel {
    padding-top: 20px !important;
  }

  .loginShell.loginShell .signupPasswords {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .loginShell.loginShell:not(.employerAccessShell) .subscriptionLine > span {
    grid-template-columns: minmax(102px, .75fr) minmax(0, 1.25fr) !important;
    gap: 4px 10px !important;
  }

  .loginShell.loginShell:not(.employerAccessShell) .subscriptionLine strong {
    padding-left: 10px !important;
    font-size: clamp(19px, 6vw, 25px) !important;
  }

  .loginShell.loginShell:not(.employerAccessShell) .subscriptionLine b {
    min-height: 24px !important;
    padding: 0 8px !important;
    font-size: 7px !important;
  }

  .loginShell.loginShell:not(.employerAccessShell) .subscriptionLine s {
    font-size: 9px !important;
  }

  .loginShell.loginShell:not(.employerAccessShell) .panelAwsSecurity {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 9px !important;
  }

  .driverPortal > .wrap,
  .page {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

@supports not (height: 100svh) {
  @media (max-width: 1000px) {
    .loginShell.loginShell { min-height: 100vh !important; }
  }
}
