/* NABWORK v62 — mobile layout system, header + page rhythm + footer.
 * Strict preservation: no rules for approved mobile hero photograph/title/search,
 * category carousel, or "აღმოაჩინე მეტი" cards and their spacing/typography.
 * No functional changes to payments, auth, bank, gigs or routing.
 */
@media (max-width:600px) {
  /* ONE predictable header row: logo | EN | account | standalone menu.
     The last 48px are reserved for the menu button, so nothing can sit under it.
     Earlier rules placed the account in a second grid row and overlaid the menu. */
  .nab-header {
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
    background:#fff!important;
    box-shadow:0 2px 16px rgba(12,48,91,.045)!important;
    border-bottom:1px solid #e5edf7!important;
  }
  .nab-header .nab30-header-inner {
    display:grid!important;
    grid-template-areas:"brand tools account"!important;
    grid-template-columns:minmax(0,1fr) 37px auto!important;
    grid-template-rows:minmax(44px,auto)!important;
    align-items:center!important;
    justify-items:stretch!important;
    min-height:64px!important;
    height:auto!important;
    width:100%!important;
    max-width:100%!important;
    padding:9px 58px 9px 12px!important;
    margin:0!important;
    gap:6px!important;
    box-sizing:border-box!important;
    position:relative!important;
  }
  .nab-header .nab30-leading {
    grid-area:brand!important;
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:0!important;
  }
  .nab-header .nab30-leading > button {
    flex:0 1 auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    padding:0!important;
    margin:0!important;
  }
  .nab-header .nabwork-exact-header-logo {
    width:clamp(103px,29.5vw,125px)!important;
    max-width:100%!important;
    height:auto!important;
    min-width:0!important;
    object-fit:contain!important;
    display:block!important;
  }
  /* Offline status is still available through actual connection indicators;
     an empty decorative dot should not steal mobile header space. */
  .nab-header #cloudStatusDot {display:none!important;}
  .nab-header .nab30-controls {
    grid-area:tools!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 37px!important;
    width:37px!important;
    min-width:37px!important;
    max-width:37px!important;
    gap:0!important;
    padding:0!important;
    margin:0!important;
  }
  .nab-header .nab30-controls > :not(#langBtn) {display:none!important;}
  .nab-header .nab30-controls #langBtn {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 37px!important;
    width:37px!important;
    min-width:37px!important;
    max-width:37px!important;
    height:41px!important;
    min-height:41px!important;
    padding:0!important;
    margin:0!important;
    background:#f7fbff!important;
    border:1px solid #dceafa!important;
    border-radius:12px!important;
    color:#20496c!important;
    font-size:11px!important;
    font-weight:850!important;
    letter-spacing:0!important;
    box-shadow:none!important;
  }
  .nab-header .nab30-account {
    grid-area:account!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    justify-self:end!important;
    align-self:center!important;
    width:auto!important;
    min-width:0!important;
    max-width:96px!important;
    min-height:41px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }
  .nab-header .nab30-account:empty {
    display:none!important;
    width:0!important;
    min-height:0!important;
  }
  .nab-header .nab30-account > button {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:76px!important;
    min-height:41px!important;
    height:41px!important;
    padding:0 11px!important;
    margin:0!important;
    border-radius:12px!important;
    background:#076ee9!important;
    color:#fff!important;
    font-size:12px!important;
    line-height:1!important;
    font-weight:850!important;
    white-space:nowrap!important;
    box-shadow:0 3px 11px rgba(9,104,229,.14)!important;
  }
  .nab-header .nab30-account > div {
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:0!important;
    min-width:0!important;
    width:auto!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  .nab-header .nab30-account > div > button:first-child {
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    flex:0 0 42px!important;
    width:42px!important;
    min-width:42px!important;
    max-width:42px!important;
    height:41px!important;
    min-height:41px!important;
    border:1px solid #dfebf9!important;
    border-radius:12px!important;
    padding:4px!important;
    background:#f3f8fe!important;
    box-shadow:none!important;
    overflow:hidden!important;
  }
  .nab-header .nab30-account > div > button:first-child > span:nth-child(2),
  .nab-header .nab30-account > div > button:first-child > span:last-child {
    display:none!important;
  }
  .nab-header .nab30-account > div > button:first-child > span:first-child {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 28px!important;
    width:28px!important;height:28px!important;
  }
  /* Logout is available from the actual mobile menu; removing its duplicate
     header affordance keeps the signed-in header from overflowing. */
  .nab-header .nab30-account > div > button:last-child:not(:first-child) {display:none!important;}
  /* The menu lives in its own reserved, absolutely positioned 40px slot. */
  .nab-header .nab-mobile-navigation {
    display:block!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    width:100%!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    background:transparent!important;
    overflow:visible!important;
  }
  .nab-header #nab29MobileToggle {
    position:absolute!important;
    top:11px!important;
    right:11px!important;
    left:auto!important;
    z-index:20!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:none!important;
    width:41px!important;
    height:41px!important;
    min-width:41px!important;
    min-height:41px!important;
    max-width:41px!important;
    padding:0!important;
    margin:0!important;
    background:#fff!important;
    color:#193b65!important;
    border:1px solid #dceafa!important;
    border-radius:12px!important;
    box-shadow:0 2px 7px rgba(10,58,111,.045)!important;
    font-size:0!important;
  }
  .nab-header #nab29MobileToggle::before {
    display:none!important;
    content:none!important;
  }
  .nab-header #nab29MobileToggle svg {
    display:block;
    flex:0 0 21px;
    width:21px;
    height:21px;
    stroke:currentColor;
    stroke-width:2.25;
    fill:none;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
  .nab-header #nab29MobileToggle .nw-v62-close-icon {display:none;}
  .nab-header #nab29MobileToggle[aria-expanded="true"] {
    color:#076bd9!important;
    border-color:#aacdf3!important;
    background:#ecf5ff!important;
  }
  .nab-header #nab29MobileToggle[aria-expanded="true"] .nw-v62-menu-icon {display:none;}
  .nab-header #nab29MobileToggle[aria-expanded="true"] .nw-v62-close-icon {display:block;}
  .nab-header #mobileMenu {
    position:absolute!important;
    top:calc(100% + 5px)!important;
    right:11px!important;
    left:11px!important;
    z-index:19!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:calc(100% - 22px)!important;
    max-width:420px!important;
    max-height:calc(100dvh - 95px)!important;
    margin:0 0 0 auto!important;
    padding:12px!important;
    border:1px solid #dfeaf7!important;
    border-radius:17px!important;
    background:#fff!important;
    box-shadow:0 18px 40px rgba(13,46,93,.20)!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch;
    box-sizing:border-box!important;
  }
  .nab-header #mobileMenu.hidden {display:none!important;}
  .nab-header #mobileMenu:not(.hidden) {display:grid!important;}
  .nab-header #mobileMenu > button {
    display:flex!important;
    align-items:center!important;
    min-width:0!important;
    min-height:44px!important;
    height:auto!important;
    padding:10px 12px!important;
    line-height:1.45!important;
    border-radius:11px!important;
    font-size:11.5px!important;
    font-weight:770!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    text-align:left!important;
    color:#1a365a!important;
    background:#f5f9ff!important;
    border:1px solid #e6eef8!important;
  }
  .nab-header #mobileMenu > button:not(.hidden):focus-visible,
  .nab-header :is(#langBtn,#nab29MobileToggle,.nab30-account button):focus-visible {
    outline:3px solid #86bcff!important;
    outline-offset:2px!important;
  }
  .nab-header #mobileMenu > button.col-span-2 {grid-column:span 2!important;}
  .nab-header #mobileMenu > button.hidden {display:none!important;}
  .nab-header #mobileMenu #nabMobileLogout {
    color:#ad2e44!important;
    background:#fff3f6!important;
    border-color:#fbe0e6!important;
  }
  .nab-header #mobileMenu button[onclick*="openCreateGigModal"] {
    color:#fff!important;
    background:#096ee5!important;
    border-color:#096ee5!important;
    justify-content:center!important;
  }
  /* The dropdown and sticky header shouldn't overlap the next section anchor. */
  #homeView,#jobsView,#dashboardView,#ordersView,#profileView,#gigDetailsView {
    scroll-margin-top:76px!important;
  }

  /* Existing two hero buttons stay functional, but align precisely with the
     same 16px page gutter and avoid a tall empty bar below the photograph. */
  #homeView:not(.nw-v26-catalog-mode) .nw-v57-mobile-actions {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:600px!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
    margin:0 auto!important;
    padding:12px 16px 8px!important;
    background:#fff!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v57-mobile-actions button {
    box-sizing:border-box!important;
    min-width:0!important;
    min-height:44px!important;
    height:44px!important;
    padding:7px 6px!important;
    border-radius:12px!important;
    line-height:1.35!important;
    font-size:clamp(10px,2.8vw,11.5px)!important;
    font-weight:850!important;
  }

  /* Compact, deliberate rhythm below the approved category and discovery rows.
     DO NOT change their cards/rail dimensions or titles. */
  #homeView:not(.nw-v26-catalog-mode) > .nw-v57-steps-row {
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v57-steps-row .nw-v56-ai {
    box-sizing:border-box!important;
    width:calc(100% - 32px)!important;
    max-width:580px!important;
    min-height:92px!important;
    margin:15px auto 22px!important;
    padding:13px 14px!important;
    gap:12px!important;
    border-radius:17px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v57-steps-row .nw-v58-ai-bot {
    flex:0 0 42px!important;
    width:42px!important;
    height:42px!important;
    border-radius:12px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v57-steps-row .nw-v58-ai-bot svg {
    width:31px!important;
    height:31px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v57-steps-row .nw-v56-ai-copy {
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    flex:1 1 0!important;
    min-width:0!important;
    gap:3px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v57-steps-row .nw-v56-ai strong {
    margin:0!important;
    font-size:clamp(12px,3.5vw,14px)!important;
    line-height:1.4!important;
    font-weight:850!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v57-steps-row .nw-v56-ai p {
    margin:0!important;
    font-size:clamp(9.4px,2.55vw,10.5px)!important;
    line-height:1.55!important;
    overflow-wrap:anywhere!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v57-steps-row .nw-v56-ai > button {
    flex:0 0 38px!important;
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    padding:0!important;
    margin:0!important;
    border-radius:50%!important;
    box-shadow:none!important;
  }

  /* How it works: remove the huge blank band and align its cards with
     the same horizontal gutter; keep all three actual steps swipeable. */
  #homeView:not(.nw-v26-catalog-mode) .nw-how-section {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    padding:5px 0 23px!important;
    margin:0!important;
    overflow:hidden!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-how-shell {
    box-sizing:border-box!important;
    width:calc(100% - 32px)!important;
    max-width:580px!important;
    margin:0 auto!important;
    padding:10px 0 0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:transparent!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-how-head {
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    flex-direction:row!important;
    gap:10px!important;
    margin:0 0 15px!important;
    padding:0!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-how-title {
    margin:0!important;
    padding:0!important;
    font-size:clamp(18px,5vw,21px)!important;
    font-weight:900!important;
    line-height:1.3!important;
    letter-spacing:-.03em!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-how-more {
    flex:0 0 auto!important;
    min-width:0!important;
    min-height:38px!important;
    padding:8px 11px!important;
    margin:0!important;
    font-size:11px!important;
    border-radius:11px!important;
    white-space:nowrap!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-how-steps {
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:10px!important;
    width:100%!important;
    max-width:100%!important;
    padding:2px 1px 11px!important;
    margin:0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x proximity!important;
    scrollbar-width:none!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-how-steps::-webkit-scrollbar {display:none;}
  #homeView:not(.nw-v26-catalog-mode) .nw-how-card {
    display:flex!important;
    flex:0 0 clamp(190px,70vw,240px)!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
    align-items:flex-start!important;
    width:clamp(190px,70vw,240px)!important;
    min-width:0!important;
    max-width:240px!important;
    min-height:130px!important;
    height:auto!important;
    padding:15px!important;
    border-radius:16px!important;
    scroll-snap-align:start!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-how-card .nab-step-number {
    flex:0 0 30px!important;
    width:30px!important;height:30px!important;
    margin:0 0 9px!important;
    font-size:12px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-how-card-title {
    margin:0 0 6px!important;
    font-size:13px!important;
    line-height:1.35!important;
    font-weight:870!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-how-card-description {
    margin:0!important;
    font-size:11.2px!important;
    line-height:1.45!important;
    overflow:hidden!important;
  }

  /* Site-wide footer alignment. All existing disclosures/links remain. */
  footer.nw-footer {
    margin-top:4px!important;
    padding:0!important;
    border-radius:0!important;
    overflow:hidden!important;
  }
  footer.nw-footer .nw-footer-inner {
    width:100%!important;
    max-width:100%!important;
    padding:0 18px!important;
    box-sizing:border-box!important;
  }
  footer.nw-footer .nw-footer-top {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:24px!important;
    padding:30px 0 24px!important;
    margin:0!important;
  }
  footer.nw-footer .nw-footer-about {
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  footer.nw-footer .nw-footer-logo {
    padding:9px 12px!important;
    min-height:48px!important;
    border-radius:13px!important;
  }
  footer.nw-footer .nw-footer-logo > img {
    width:clamp(155px,44vw,180px)!important;
    height:auto!important;
    max-height:40px!important;
  }
  footer.nw-footer .nw-footer-description {
    margin:15px 0 0!important;
    max-width:100%!important;
    font-size:12px!important;
    line-height:1.75!important;
  }
  footer.nw-footer .nw-footer-navigation {
    min-width:0!important;
    width:100%!important;
    padding:0!important;
  }
  footer.nw-footer .nw-footer-nav-title {
    margin:0 0 14px!important;
    font-size:13px!important;
    line-height:1.4!important;
    letter-spacing:0!important;
  }
  footer.nw-footer .nw-footer-links {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    column-gap:12px!important;
    row-gap:13px!important;
    width:100%!important;
    max-width:100%!important;
  }
  footer.nw-footer .nw-footer-links a {
    min-width:0!important;
    width:fit-content!important;
    max-width:100%!important;
    font-size:11.5px!important;
    line-height:1.5!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  footer.nw-footer .nw-footer-bottom {
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:8px!important;
    margin:0!important;
    padding:17px 0 calc(24px + env(safe-area-inset-bottom,0px))!important;
    border-top:1px solid rgba(225,242,255,.16)!important;
    font-size:10.5px!important;
    line-height:1.65!important;
  }
  footer.nw-footer .nw-footer-status {
    max-width:100%!important;
    overflow-wrap:anywhere!important;
  }
  /* Fixed controls occupy distinct vertical positions, never the same area. */
  .nab29-backtop {
    right:13px!important;
    bottom:calc(17px + env(safe-area-inset-bottom,0px))!important;
    width:39px!important;
    height:39px!important;
    border-radius:12px!important;
    z-index:32!important;
  }
  #nabPaidAi:not(.nab-ai-open) {
    right:13px!important;
    bottom:calc(74px + env(safe-area-inset-bottom,0px))!important;
  }
  #nabPaidAi:not(.nab-ai-open) #nabAiLaunch {
    width:43px!important;
    height:43px!important;
    min-width:43px!important;
    min-height:43px!important;
  }

  /* Shared subpages: avoid hardcoded desktop gutters and unreadable controls.
     No changes to gig listing/category carousels, checkout or order behavior. */
  :is(#jobsView,#profileView,#dashboardView,#ordersView,#gigDetailsView) {
    box-sizing:border-box!important;
    min-width:0!important;
    max-width:100%!important;
    padding-left:15px!important;
    padding-right:15px!important;
  }
  :is(#jobsView,#profileView,#dashboardView,#ordersView,#gigDetailsView) :is(input,textarea,select) {
    max-width:100%!important;
    min-width:0!important;
  }
  :is(#authModal,#jobModal,#directPaymentTermsModal) {
    padding:12px!important;
    padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
  }
  :is(#authModal,#jobModal,#directPaymentTermsModal) > div:first-child {
    max-width:100%!important;
    max-height:calc(100dvh - 36px - env(safe-area-inset-bottom,0px))!important;
    overflow-y:auto!important;
    border-radius:18px!important;
    padding:20px 17px!important;
    box-sizing:border-box!important;
  }
  .nab29-palette {
    width:100%!important;
    max-width:100%!important;
    max-height:calc(100dvh - 60px)!important;
    border-radius:17px!important;
  }
  /* Preserve keyboard focus for mobile tappable controls. */
  :is(#mobileMenu,#homeView,.nw-footer) :is(a,button):focus-visible {
    outline:3px solid #79baff!important;
    outline-offset:2px!important;
  }
}
@media (max-width:359px) {
  .nab-header .nab30-header-inner {
    grid-template-columns:minmax(0,1fr) 34px auto!important;
    padding-left:9px!important;
    padding-right:50px!important;
    gap:4px!important;
  }
  .nab-header .nabwork-exact-header-logo {
    width:clamp(97px,30vw,108px)!important;
  }
  .nab-header .nab30-controls,
  .nab-header .nab30-controls #langBtn {
    width:34px!important;min-width:34px!important;flex-basis:34px!important;
  }
  .nab-header #nab29MobileToggle {right:8px!important;width:36px!important;min-width:36px!important;height:40px!important;min-height:40px!important;}
  .nab-header .nab30-account > button {min-width:67px!important;padding:0 7px!important;font-size:11px!important;}
  #homeView:not(.nw-v26-catalog-mode) .nw-v57-steps-row .nw-v56-ai {gap:9px!important;padding:12px!important;}
  #homeView:not(.nw-v26-catalog-mode) .nw-v57-steps-row .nw-v58-ai-bot {flex-basis:37px!important;width:37px!important;height:37px!important;}
  #homeView:not(.nw-v26-catalog-mode) .nw-v57-steps-row .nw-v56-ai strong {font-size:11.5px!important;}
}
@media (prefers-reduced-motion:reduce) {
  #homeView .nw-how-steps,
  #homeView .nw-v57-mobile-actions,
  .nab-header #nab29MobileToggle {
    scroll-behavior:auto!important;
    transition:none!important;
  }
}

/* The same navigation control is also shown in tablet layout: a single
   accessible icon must be visible at every mobile-nav breakpoint. */
@media (max-width:1399px) {
  .nab-header #nab29MobileToggle .nw-v62-close-icon {display:none!important;}
  .nab-header #nab29MobileToggle .nw-v62-menu-icon {display:block!important;}
  .nab-header #nab29MobileToggle[aria-expanded="true"] .nw-v62-menu-icon {display:none!important;}
  .nab-header #nab29MobileToggle[aria-expanded="true"] .nw-v62-close-icon {display:block!important;}
  .nab-header #nab29MobileToggle :is(.nw-v62-menu-icon,.nw-v62-close-icon) {
    width:21px;height:21px;flex:0 0 21px;stroke:currentColor;stroke-width:2.25;
    stroke-linecap:round;stroke-linejoin:round;fill:none;
  }
}
@media (min-width:601px) and (max-width:1079px) {
  /* Landscape phones / small tablets had a legacy second account row. */
  .nab-header .nab30-header-inner {
    display:grid!important;
    grid-template-areas:"brand tools account"!important;
    grid-template-columns:minmax(0,1fr) 48px auto!important;
    grid-template-rows:minmax(48px,auto)!important;
    min-height:68px!important;
    height:auto!important;
    width:100%!important;
    padding:9px 76px 9px 21px!important;
    gap:12px!important;
    align-items:center!important;
  }
  .nab-header .nab30-leading {grid-area:brand!important;min-width:0!important;width:100%!important;}
  .nab-header .nabwork-exact-header-logo {width:155px!important;max-width:100%!important;height:auto!important;}
  .nab-header .nab30-controls {
    grid-area:tools!important;display:flex!important;align-items:center!important;
    justify-content:center!important;width:48px!important;min-width:48px!important;gap:0!important;
  }
  .nab-header .nab30-controls > :not(#langBtn) {display:none!important;}
  .nab-header .nab30-controls #langBtn {
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:45px!important;min-width:45px!important;flex:0 0 45px!important;
    height:43px!important;min-height:43px!important;
    background:#f7fbff!important;border:1px solid #dfe9f7!important;
    border-radius:12px!important;
  }
  .nab-header .nab30-account {
    grid-area:account!important;
    display:flex!important;align-items:center!important;justify-content:flex-end!important;
    justify-self:end!important;max-width:158px!important;min-height:43px!important;
    padding:0!important;border:0!important;margin:0!important;
  }
  .nab-header .nab30-account > div {max-width:100%!important;min-width:0!important;}
  .nab-header .nab30-account > div > button:first-child {
    min-width:0!important;max-width:128px!important;overflow:hidden!important;
  }
  .nab-header .nab30-account > div > button:first-child > span:nth-child(2) {
    max-width:72px!important;
  }
  .nab-header .nab30-account > div > button:last-child:not(:first-child) {display:none!important;}
  .nab-header .nab-mobile-navigation {
    display:block!important;width:100%!important;height:0!important;min-height:0!important;
    border:0!important;padding:0!important;margin:0!important;overflow:visible!important;
  }
  .nab-header #nab29MobileToggle {
    position:absolute!important;right:19px!important;top:12px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;
    padding:0!important;border:1px solid #deebf9!important;
    border-radius:12px!important;background:#fff!important;color:#183956!important;
    font-size:0!important;z-index:20!important;
  }
  .nab-header #nab29MobileToggle::before {content:none!important;display:none!important;}
  .nab-header #mobileMenu {
    position:absolute!important;top:calc(100% + 5px)!important;right:19px!important;left:auto!important;
    z-index:19!important;width:min(440px,calc(100% - 38px))!important;
    max-height:calc(100dvh - 95px)!important;overflow-y:auto!important;
    background:#fff!important;border:1px solid #dfebf8!important;border-radius:17px!important;
    box-shadow:0 16px 35px rgba(14,49,96,.17)!important;
  }
}
/* Keep the existing optional dark mode readable. The approved light look remains
   unchanged and this doesn't enable any new theme or service. */
@media (max-width:600px) {
  body.dark-mode .nab-header {background:#14283e!important;border-color:#314965!important;}
  body.dark-mode .nab-header #nab29MobileToggle,
  body.dark-mode .nab-header .nab30-controls #langBtn {
    background:#213b58!important;color:#e3f1ff!important;border-color:#385976!important;
  }
  body.dark-mode .nab-header #mobileMenu {background:#1c324b!important;border-color:#365676!important;}
}
