/* WEB-33: Home-only mobile layout. Other pages and desktop stay unchanged. */
@media (max-width: 600px) {
  html body #azMobileDrawer .az-mobile-drawer-main {
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom);
    display: flex !important;
    flex-direction: column !important;
  }
  html body #azMobileDrawer .az-mobile-drawer-main[hidden],
  html body #azMobileDrawer .az-mobile-drawer-categories[hidden] {
    display: none !important;
  }
  html body #azMobileDrawer .az-mobile-drawer-auth {
    margin-top: 0 !important;
    padding: 0 0 14px !important;
  }
  html body #azMobileDrawer .az-mobile-drawer-nav {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  html body #azMobileDrawer .az-mobile-drawer-link,
  html body #azMobileDrawer #azMobileThemeHost .az-theme-switch {
    min-height: 52px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  html body #azMobileDrawer .az-mobile-drawer-divider {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  html body #azMobileDrawer #azMobileUserAuth:not([hidden]) {
    display: flex !important;
    flex-direction: column !important;
  }
  html body #azMobileDrawer #azMobileUserAuth > a:first-child {
    display: flex !important;
    align-items: center !important;
    min-height: 52px !important;
    padding: 0 22px !important;
    color: #172033 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
  }
  html body #azMobileDrawer .az-mobile-logout {
    display: block !important;
    width: calc(100% - 32px) !important;
    min-height: 46px !important;
    margin: 3px 16px 0 !important;
    padding: 13px 16px !important;
    border: 1px solid #6d28d9 !important;
    border-radius: 9px !important;
    background: #7c3aed !important;
    color: #fff !important;
    font: inherit;
    font-weight: 800 !important;
    text-align: center !important;
    cursor: pointer;
  }
  html body #azMobileDrawer .az-mobile-logout:hover,
  html body #azMobileDrawer .az-mobile-logout:focus-visible {
    background: #6d28d9 !important;
  }
  html body #azMobileDrawer .az-mobile-logout:disabled { opacity: .55; cursor: wait; }
  html[data-theme="dark"] body #azMobileDrawer .az-mobile-logout {
    background: #7c3aed !important;
    border-color: #a78bfa !important;
    color: #fff !important;
  }
  html body #azMobileDrawer .az-mobile-delete-account {
    display: block !important;
    width: calc(100% - 32px) !important;
    min-height: 46px !important;
    margin: 16px 16px 0 !important;
    padding: 13px 16px !important;
    border: 1px solid #b91c1c !important;
    border-radius: 9px !important;
    background: #dc2626 !important;
    color: #fff !important;
    font-weight: 800 !important;
    text-align: center !important;
    text-decoration: none !important;
  }
  html body #azMobileDrawer .az-mobile-delete-account:hover,
  html body #azMobileDrawer .az-mobile-delete-account:focus-visible {
    background: #b91c1c !important;
  }
  html[data-theme="dark"] body #azMobileDrawer .az-mobile-delete-account {
    background: #dc2626 !important;
    color: #fff !important;
    border-color: #f87171 !important;
  }
  html body .az-home-v3 .az-mobile-header {
    padding-left: 10px !important;
    padding-right: 10px !important;
    gap: 8px !important;
  }
  html body .az-home-v3 .az-mobile-actions { gap: 4px !important; }
  html body .az-home-v3 #azMobileNotificationLink {
    position: relative;
    overflow: visible;
    flex-shrink: 0;
  }
  #azMobileNotificationBadge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 17px;
    height: 17px;
    padding: 0 3px;
    border-radius: 10px;
    background: #d61938;
    color: #fff;
    font: 700 10px/17px Arial, sans-serif;
    text-align: center;
    pointer-events: none;
  }
  #azMobileNotificationBadge[hidden] { display: none !important; }
  html body #azMobileDrawer #azMobileThemeHost .az-theme-switch {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 14px 22px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #172033 !important;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }
  html body #azMobileThemeHost .az-theme-switch::before,
  html body #azMobileThemeHost .az-theme-switch::after { display: none !important; }
  #azMobileThemeHost svg {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
  }
  html[data-theme="dark"] body #azMobileDrawer #azMobileThemeHost .az-theme-switch {
    background: #0c192a !important;
    color: #e8f5ff !important;
  }
  html[data-theme="dark"] body #azMobileDrawer,
  html[data-theme="dark"] body #azMobileDrawer .az-mobile-drawer-main,
  html[data-theme="dark"] body #azMobileDrawer .az-mobile-drawer-categories,
  html[data-theme="dark"] body #azMobileDrawer .az-mobile-drawer-nav,
  html[data-theme="dark"] body #azMobileDrawer .az-mobile-drawer-auth,
  html[data-theme="dark"] body #azMobileDrawer .az-mobile-drawer-link {
    background: #0c192a !important;
    color: #eef4fb !important;
  }
  html[data-theme="dark"] body #azMobileDrawer a,
  html[data-theme="dark"] body #azMobileDrawer button { color: #eef4fb !important; }
  html[data-theme="dark"] body #azMobileDrawer .az-mobile-drawer-head { border-color: #2b425c !important; }
  html[data-theme="dark"] body #azMobileDrawer .az-mobile-drawer-divider { background: #2b425c !important; }
  html body #azMobileThemeHost .az-theme-switch:focus-visible,
  #azMobileNotificationLink:focus-visible {
    outline: 2px solid #1687d3;
    outline-offset: 2px;
  }
}
@media (max-width: 360px) {
  html body .az-home-v3 .az-mobile-menu {
    width: 32px !important;
    flex-basis: 32px !important;
  }
  html body .az-home-v3 .az-mobile-account,
  html body .az-home-v3 .az-mobile-bell { width: 32px !important; }
  html body .az-home-v3 .az-mobile-language { width: 28px !important; min-width: 28px !important; }
}
