/* ── GLOBAL MOBILE VIEWPORT OVERFLOW SAFEGUARD ── */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }
  .MobileBar-module__tnFBRG__bar {
    width: 100% !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
  }

  /* ── MODERN CUSTOMER AUTH & ACCOUNT POPOVER SYSTEM ── */
  .zah-account-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
  }
  .zah-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 640;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.875rem;
  }
  .zah-auth-btn .zah-auth-caret {
    transition: transform 0.2s var(--ease-out);
    opacity: 0.75;
  }
  .zah-account-menu:hover .zah-auth-caret,
  .zah-account-menu.open .zah-auth-caret {
    transform: rotate(180deg);
  }

  /* Popover Dropdown Panel */
  .zah-auth-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-inner);
    box-shadow: var(--shadow-2);
    padding: 8px;
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out), visibility 0.18s;
    pointer-events: none;
  }
  .zah-account-menu:hover .zah-auth-popover,
  .zah-account-menu:focus-within .zah-auth-popover,
  .zah-account-menu.open .zah-auth-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Invisible hover bridge connecting button to popover so menu never disappears in the gap */
  .zah-auth-popover::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
  }

  .zah-popover-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 10px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
  }
  .zah-popover-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--on-brand);
    font-weight: 800;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .zah-popover-userinfo {
    min-width: 0;
    flex: 1;
  }
  .zah-popover-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .zah-popover-meta {
    font-size: 0.72rem;
    color: var(--ink-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .zah-popover-guest-head {
    padding: 8px 10px 10px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
  }
  .zah-popover-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .zah-popover-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 0.85rem;
    font-weight: 580;
    color: var(--ink-2);
    border-radius: 8px;
    transition: background-color 0.14s ease, color 0.14s ease;
    text-decoration: none;
  }
  .zah-popover-item svg {
    color: var(--ink-3);
    transition: color 0.14s ease;
    flex-shrink: 0;
  }
  .zah-popover-item:hover {
    background: var(--surface-2);
    color: var(--ink);
  }
  .zah-popover-item:hover svg {
    color: var(--brand);
  }
  .zah-popover-danger {
    color: var(--bad) !important;
  }
  .zah-popover-danger svg {
    color: var(--bad) !important;
  }
  .zah-popover-danger:hover {
    background: var(--bad-soft) !important;
    color: var(--bad) !important;
  }

  .zah-popover-divider {
    height: 1px;
    background: var(--line);
    margin: 4px 0;
  }

  @media (max-width: 820px) {
    .zah-account-menu .zah-auth-btn .zah-auth-label,
    .zah-account-menu .zah-auth-btn .zah-auth-caret {
      display: none;
    }
    .zah-account-menu .zah-auth-btn {
      padding: 0;
      width: 44px;
      height: 44px;
      justify-content: center;
      border-radius: var(--r-pill);
      background: transparent;
      color: var(--ink);
      border: none;
    }
    .zah-account-menu .zah-auth-btn:hover {
      background: var(--surface-2);
    }
    .zah-auth-popover {
      right: -10px;
    }
  }

  /* ── POWERED BY ASUS FEATURED BANNER & CHIPS (MEGA MENU) ── */
  .mega-asus-featured-card {
    margin-top: auto;
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 83, 164, 0.07), rgba(235, 0, 41, 0.06));
    border: 1px solid color-mix(in oklch, var(--brand, #0053a4) 25%, var(--line));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-decoration: none;
    transition: all 0.2s var(--ease-out, ease);
    position: relative;
    overflow: hidden;
  }
  .mega-asus-featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #0053a4, #eb0029);
    border-radius: 3px 0 0 3px;
  }
  .mega-asus-featured-card:hover {
    background: linear-gradient(135deg, rgba(0, 83, 164, 0.14), rgba(235, 0, 41, 0.12));
    border-color: var(--brand, #0053a4);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 83, 164, 0.15);
  }
  .mega-asus-featured-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .mega-asus-tag {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #eb0029;
  }
  .mega-asus-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
  }
  .mega-asus-title strong {
    color: var(--brand, #0053a4);
    font-weight: 850;
  }
  .mega-asus-pill {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: var(--surface);
    color: var(--brand, #0053a4);
    border: 1px solid var(--line);
    padding: 3px 8px;
    border-radius: var(--r-pill, 9999px);
    flex-shrink: 0;
    transition: all 0.18s ease;
  }
  .mega-asus-featured-card:hover .mega-asus-pill {
    background: var(--brand, #0053a4);
    color: #ffffff;
    border-color: var(--brand, #0053a4);
  }

  /* Mobile Sheet PBA Link */
  .sheet-pba-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    font-size: var(--step-2);
    padding: 14px 0;
    font-weight: 720;
    font-stretch: 85%;
    color: var(--ink) !important;
  }
  .sheet-pba-badge {
    font-size: 0.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(235, 0, 41, 0.12), rgba(0, 83, 164, 0.15));
    color: var(--brand, #0053a4);
    padding: 3px 9px;
    border-radius: var(--r-pill, 9999px);
    border: 1px solid color-mix(in oklch, var(--brand, #0053a4) 30%, var(--line));
    letter-spacing: 0.05em;
  }

.erp-quick-edit-btn {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-weight: 700;
            font-size: 0.75rem;
            color: var(--brand);
            text-decoration: none;
            padding: 3px 10px;
            border-radius: var(--r-pill, 9999px);
            background: var(--brand-soft);
            border: 1px solid color-mix(in oklch, var(--brand) 28%, transparent);
            white-space: nowrap;
            line-height: 1.2;
            transition: all 0.16s ease;
            flex-shrink: 0;
          }
          @media (max-width: 640px) {
            .erp-quick-edit-btn {
              padding: 2px 7px;
              font-size: 0.72rem;
              gap: 4px;
            }
            .erp-quick-edit-btn .erp-edit-label-extra {
              display: none !important;
            }
          }
