/* V430 final mobile header flex owner */

@media (max-width: 820px) {
  body.xls-v430-header-owner {
    --xls-mobile-page-x: 10px;
    --xls-mobile-header-h: 58px;
    overflow-x: hidden !important;
  }

  body.xls-v430-header-owner .app,
  body.xls-v430-header-owner .mobile-app-home-v386,
  body.xls-v430-header-owner .profile-shell,
  body.xls-v430-header-owner .page,
  body.xls-v430-header-owner .shell,
  body.xls-v430-header-owner main {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: var(--xls-mobile-page-x) !important;
    padding-right: var(--xls-mobile-page-x) !important;
    box-sizing: border-box !important;
  }

  body.xls-v430-header-owner .topbar,
  body.xls-v430-header-owner .profile-topbar,
  body.xls-v430-header-owner .mobile-topbar,
  body.xls-v430-header-owner .home-topbar,
  body.xls-v430-header-owner .xls-mobile-header,
  body.xls-v430-header-owner .ai-records-topbar,
  body.xls-v430-header-owner .zsb-topbar,
  body.xls-v430-header-owner header.topbar,
  body.xls-v430-header-owner header.zsb-topbar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;

    width: 100% !important;
    max-width: 100% !important;
    min-height: var(--xls-mobile-header-h) !important;
    height: var(--xls-mobile-header-h) !important;
    margin: 8px 0 10px !important;
    padding: 8px 10px !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;

    background: rgba(255,255,255,.96) !important;
    border: 1px solid rgba(207,225,255,.86) !important;
    box-shadow: 0 8px 22px rgba(47,128,255,.07) !important;
    backdrop-filter: blur(12px) !important;
  }

  body.xls-v430-header-owner .brand,
  body.xls-v430-header-owner .profile-brand,
  body.xls-v430-header-owner .zsb-brand,
  body.xls-v430-header-owner .xls-brand,
  body.xls-v430-header-owner .ai-records-brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;

    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    text-decoration: none !important;
  }

  body.xls-v430-header-owner .xls-v430-logo-box {
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    line-height: 1 !important;
    background: linear-gradient(135deg,#2f80ff,#7aa7ff) !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 1000 !important;
  }

  body.xls-v430-header-owner .xls-v430-logo-box img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    border-radius: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.xls-v430-header-owner .xls-v430-mobile-title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;

    display: block !important;
    margin: 0 !important;
    padding: 0 !important;

    font-size: 16px !important;
    line-height: 40px !important;
    height: 40px !important;
    font-weight: 1000 !important;
    color: #12396d !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transform: none !important;
  }

  body.xls-v430-header-owner .xls-mobile-fixed-menu-slot {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
    overflow: visible !important;
    z-index: 5 !important;
  }

  body.xls-v430-header-owner #xlsMobileAppMenuBtnV424 {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;

    margin: 0 !important;
    padding: 0 !important;
    border-radius: 14px !important;
    border: 1px solid #dceaff !important;
    background: #fff !important;
    color: #12396d !important;
    box-shadow: 0 6px 16px rgba(47,128,255,.08) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    position: static !important;
    transform: none !important;
    line-height: 1 !important;
    font-size: 0 !important;
    cursor: pointer !important;
  }

  body.xls-v430-header-owner #xlsMobileAppMenuBtnV424::before {
    content: "☰" !important;
    font-size: 20px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    transform: translateY(-1px) !important;
  }

  body.xls-v430-header-owner .brand > *:not(.xls-v430-logo-box):not(.xls-v430-mobile-title),
  body.xls-v430-header-owner .profile-brand > *:not(.xls-v430-logo-box):not(.xls-v430-mobile-title),
  body.xls-v430-header-owner .zsb-brand > *:not(.xls-v430-logo-box):not(.xls-v430-mobile-title),
  body.xls-v430-header-owner .xls-brand > *:not(.xls-v430-logo-box):not(.xls-v430-mobile-title),
  body.xls-v430-header-owner .ai-records-brand > *:not(.xls-v430-logo-box):not(.xls-v430-mobile-title) {
    display: none !important;
  }

  body.xls-v430-header-owner .topbar .actions:not(.xls-mobile-fixed-menu-slot),
  body.xls-v430-header-owner .topbar .navs:not(.xls-mobile-fixed-menu-slot),
  body.xls-v430-header-owner .topbar .nav-actions:not(.xls-mobile-fixed-menu-slot),
  body.xls-v430-header-owner .topbar .xls-global-actions:not(.xls-mobile-fixed-menu-slot),
  body.xls-v430-header-owner .profile-actions:not(.xls-mobile-fixed-menu-slot),
  body.xls-v430-header-owner .ai-records-actions:not(.xls-mobile-fixed-menu-slot),
  body.xls-v430-header-owner .zsb-ai-navs:not(.xls-mobile-fixed-menu-slot),
  body.xls-v430-header-owner .zsb-top-actions:not(.xls-mobile-fixed-menu-slot) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }

  body.xls-v430-header-owner .xls-auth-welcome,
  body.xls-v430-header-owner .xls-auth-top-btn,
  body.xls-v430-header-owner .zsb-ai-login-pill,
  body.xls-v430-header-owner .user-pill,
  body.xls-v430-header-owner .welcome-pill,
  body.xls-v430-header-owner #xlsUnifiedMobileMenuBtnV422,
  body.xls-v430-header-owner .xls-v421-menu-btn {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.xls-v430-header-owner #xlsMobileAppMenuPanelV424 {
    position: fixed !important;
    right: 12px !important;
    top: calc(env(safe-area-inset-top, 0px) + 64px) !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 2147483200 !important;
    width: min(220px, calc(100vw - 24px)) !important;
    padding: 10px !important;
    border-radius: 22px !important;
    border: 1px solid #dceaff !important;
    background: rgba(255,255,255,.98) !important;
    box-shadow: 0 22px 60px rgba(18,57,109,.20) !important;
    display: none !important;
    box-sizing: border-box !important;
  }

  body.xls-v430-header-owner #xlsMobileAppMenuPanelV424.is-open {
    display: grid !important;
    gap: 8px !important;
  }

  body.xls-v430-header-owner #xlsMobileAppMenuMaskV424 {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483199 !important;
    background: rgba(18,57,109,.12) !important;
    display: none !important;
  }

  body.xls-v430-header-owner #xlsMobileAppMenuMaskV424.is-open {
    display: block !important;
  }

  body.xls-v430-header-owner .xls-mobile-menu-panel-link {
    min-height: 42px !important;
    padding: 0 14px !important;
    border-radius: 16px !important;
    border: 1px solid #edf4ff !important;
    background: #f8fbff !important;
    color: #12396d !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 900 !important;
  }

  body.xls-v430-header-owner .xls-mobile-menu-panel-link.primary {
    background: #edf5ff !important;
    color: #1f63d8 !important;
    border-color: #cfe1ff !important;
  }

  body.xls-v430-header-owner {
    padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
  }
}

@media (min-width: 821px) {
  #xlsMobileAppMenuBtnV424,
  .xls-mobile-menu-btn,
  .xls-mobile-fixed-menu-slot,
  #xlsMobileAppMenuPanelV424,
  #xlsMobileAppMenuMaskV424,
  #xlsUnifiedMobileMenuBtnV422,
  #xlsUnifiedMobileMenuPanelV422,
  #xlsUnifiedMobileMenuMaskV422,
  .xls-v421-menu-btn,
  .xls-v421-menu-panel {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }
}
