.guest-auth-links { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.guest-auth-links a { padding: 9px 12px; color: var(--text-main); font-size: 12px; font-weight: 700; border-radius: 9px; text-decoration: none; }
.guest-auth-links .guest-register-link { background: #2563eb; color: #fff; }
.guest-auth-links a:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.guest-welcome { justify-content: center; gap: 16px; padding: 28px; }
.guest-welcome > i { color: var(--primary); font-size: 30px; }
.guest-welcome h2 { margin: 0; color: var(--text-main); font-size: 24px; font-weight: 800; }
.guest-welcome p { margin: 0; color: var(--text-secondary); line-height: 1.8; font-size: 14px; }
.guest-welcome .btn-auth-primary { text-align: center; justify-content: center; text-decoration: none; }
.guest-login-link { color: var(--primary); font-size: 13px; font-weight: 600; text-align: center; }
@media (max-width: 600px) { .guest-auth-links { gap: 4px; } .guest-auth-links a { font-size: 12px; padding: 10px; min-height: 44px; display: inline-flex; align-items: center; } .guest-welcome { padding: 22px; } }

/* Allow the search field to shrink instead of pushing account actions off-screen. */
.topbar-left, .topbar-search-box { min-width: 0; }
.topbar-user-dropdown, .topbar-logout-btn { flex-shrink: 0; }
@media (max-width: 600px) {
    body.modern-app-body .app-topbar-2026 {
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 10px !important;
        padding: 10px 16px !important;
    }
    .app-topbar-2026 .topbar-left { display: contents; }
    .app-topbar-2026 .topbar-mobile-btn { grid-column: 1; grid-row: 1; width: 44px; height: 44px; }
    .app-topbar-2026 .topbar-search-box { grid-column: 1 / -1; grid-row: 2; width: 100%; }
    .app-topbar-2026 .topbar-search-box input { height: 44px; padding-right: 40px; font-size: 16px; }
    .app-topbar-2026 .topbar-right { grid-column: 2; grid-row: 1; justify-content: flex-end; gap: 6px; min-width: 0; }
    .app-topbar-2026 .topbar-icon-btn, .app-topbar-2026 .topbar-logout-btn { width: 44px; height: 44px; flex: 0 0 44px; }
    .app-topbar-2026 .topbar-user-chip { padding: 6px; width: 44px; height: 44px; justify-content: center; }
    .app-topbar-2026 .topbar-wallet-pill { min-width: 0; max-width: 120px; padding: 6px 8px; min-height: 44px; }
    .app-topbar-2026 .twp-info { min-width: 0; }
    .app-topbar-2026 .twp-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .app-topbar-2026 .twp-icon, .app-topbar-2026 .twp-plus { display: none; }
    .app-topbar-2026 .topbar-logout-btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
    body.modern-app-body .content-box { padding: 14px 14px 92px !important; }
    .catalog-toolbar, .catalog-filter-pills, .catalog-view-Controls { min-width: 0; max-width: 100%; }
    .catalog-filter-pills { overflow-x: auto; }
    .modern-modal .modal-body { overflow-wrap: anywhere; }
    .modern-modal .modal-body input, .modern-modal .modal-body select { max-width: 100%; font-size: 16px; }
}
@media (max-width: 380px) {
    .app-topbar-2026 .topbar-user-chip { display: none; }
}
@media (max-width: 991px) {
    .app-sidebar-2026 { height: 100dvh !important; max-height: 100dvh; }
}
