/* Build 30 mobile header refinement. All desktop rules remain unchanged. */
@media (max-width: 920px) {
  .build29-header .nav-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto 44px !important;
    grid-template-areas: "brand actions toggle" !important;
    align-items: center !important;
    column-gap: 6px !important;
    min-height: 72px !important;
    height: auto !important;
    flex-wrap: nowrap !important;
  }

  .build29-header .brand {
    grid-area: brand !important;
    min-width: 0 !important;
    width: min(180px, 100%) !important;
    overflow: visible !important;
  }

  .build29-header .brand .master-brand {
    display: block !important;
    width: 100% !important;
    max-width: 180px !important;
    height: 52px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  .build29-header .nav-actions {
    grid-area: actions !important;
    grid-column: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .build29-header .nav-actions > details {
    flex: 0 0 auto !important;
  }

  .build29-header .nav-actions summary,
  .build29-header .nav-toggle {
    box-sizing: border-box !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 10px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .build29-header .nav-toggle {
    grid-area: toggle !important;
    display: flex !important;
    flex-direction: column !important;
    width: 44px !important;
    height: 44px !important;
    padding: 8px !important;
    justify-self: end !important;
    margin: 0 !important;
  }

  .build29-header .nav-toggle span:not(.sr-only) {
    margin: 3px 0 !important;
  }

  .build29-header .mega-nav {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-height: calc(100vh - 72px) !important;
    overflow: auto !important;
  }

  .build29-header .account-panel {
    top: calc(100% + 8px) !important;
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: clip !important;
  }
}

@media (max-width: 560px) {
  .build29-header,
  .build29-header .nav-wrap {
    min-height: 66px !important;
  }

  .build29-header .nav-wrap {
    grid-template-columns: minmax(118px, 1fr) auto 44px !important;
    column-gap: 3px !important;
  }

  .build29-header .brand {
    display: flex !important;
    width: min(150px, 100%) !important;
  }

  .build29-header .brand .master-brand {
    width: 100% !important;
    max-width: 150px !important;
    height: 46px !important;
  }

  .build29-header .account-menu {
    display: block !important;
  }

  .build29-header .account-menu > summary {
    width: 44px !important;
    font-size: 0 !important;
  }

  .build29-header .account-menu > summary::before {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
  }

  .build29-header .language-menu > summary {
    gap: 4px !important;
    min-width: 52px !important;
    width: 52px !important;
    padding: 7px 5px !important;
    font-size: 0 !important;
  }

  .build29-header .language-menu > summary::before {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
  }

  html[lang="de"] .build29-header .language-menu > summary::after {
    content: "DE";
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
  }

  html[lang="en"] .build29-header .language-menu > summary::after {
    content: "EN";
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
  }

  .build29-header .mega-nav {
    max-height: calc(100vh - 66px) !important;
  }

  .build29-header .account-panel {
    top: 66px !important;
  }
}

@media (max-width: 340px) {
  .shell.build29-header,
  .build29-header .shell {
    width: calc(100% - 20px) !important;
  }

  .build29-header .nav-wrap {
    grid-template-columns: minmax(108px, 1fr) auto 42px !important;
    column-gap: 2px !important;
  }

  .build29-header .brand {
    width: min(138px, 100%) !important;
  }

  .build29-header .brand .master-brand {
    max-width: 138px !important;
  }

  .build29-header .nav-actions summary,
  .build29-header .nav-toggle,
  .build29-header .account-menu > summary {
    min-width: 42px !important;
    width: 42px !important;
    height: 42px !important;
  }

  .build29-header .language-menu > summary {
    min-width: 48px !important;
    width: 48px !important;
  }
}
