@media (max-width: 600px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .authenticated .header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 68px;
    padding: 8px 12px;
    gap: 8px;
  }

  .authenticated .brand {
    flex: 0 0 auto;
    min-width: 0;
  }

  #mobile-menu-button,
  #mobile-menu-overlay {
    display: none;
  }

  .authenticated #mobile-menu-button {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid #49637a;
    border-radius: 9px;
    background: transparent;
    color: #fff;
    font-size: 21px;
  }

  .authenticated .brand-logo {
    display: block;
    width: 38px;
    height: 38px;
  }

  .authenticated .brand span {
    display: none;
  }

  .authenticated #account-actions {
    display: flex !important;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
    margin-left: auto;
    gap: 8px;
  }

  .authenticated #account-name {
    display: -webkit-box;
    max-width: 145px;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
    text-align: right;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .authenticated #logout {
    display: block !important;
    flex: 0 0 auto;
    padding: 8px 10px;
    border-color: #667d91;
    font-size: 13px;
  }

  .authenticated #logout:disabled {
    cursor: wait;
    opacity: 0.7;
  }

  .dashboard.active {
    min-height: calc(100vh - 68px);
  }

  .dashboard aside {
    display: flex;
    position: fixed;
    z-index: 70;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(82vw, 310px);
    padding: calc(24px + env(safe-area-inset-top)) 17px 24px;
    overflow-y: auto;
    box-shadow: 18px 0 50px #0007;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
  }

  .mobile-menu-open .dashboard.active aside {
    transform: translateX(0);
  }

  .authenticated #mobile-menu-overlay {
    display: block;
    position: fixed;
    z-index: 60;
    inset: 0;
    border: 0;
    background: #03111db8;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .authenticated.mobile-menu-open {
    overflow: hidden;
  }

  .authenticated.mobile-menu-open #mobile-menu-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .dashboard .content {
    padding: 24px 14px 44px;
  }

  .content h1 {
    margin-top: 8px;
    font-size: 34px;
    line-height: 1.08;
  }

  .stats {
    gap: 10px;
    margin: 20px 0;
  }

  .stats article {
    padding: 17px;
  }

  .stats strong {
    margin-top: 8px;
    font-size: 22px;
  }

  .shipping-card {
    gap: 18px;
    margin: 18px 0;
    padding: 19px;
  }

  .shipping-card h2 {
    font-size: 24px;
    line-height: 1.15;
  }

  .address-box {
    min-width: 0;
    padding: 58px 17px 17px;
    overflow-wrap: anywhere;
  }

  .address-box strong {
    padding-right: 0;
    font-size: 16px;
  }

  .address-box button {
    top: 12px;
    right: 12px;
  }

  .customer-package-list .package-row {
    padding: 16px;
  }
}

@media (min-width: 601px) {
  #mobile-menu-button,
  #mobile-menu-overlay {
    display: none;
  }
}
