[hidden] { display: none !important; }
.brand-logo { flex-direction: column; align-items: flex-start; gap: 7px; }
.brand-logo img { display: block; width: 184px; height: auto; aspect-ratio: 2561 / 561; object-fit: contain; }
.brand-logo small { letter-spacing: 0; margin: 0; }
.login-art .brand-logo img { width: 230px; max-width: 100%; }
.avatar, .mini-avatar { border-radius: 50%; flex-shrink: 0; overflow: hidden; }
.userbox { border: 0; background: transparent; padding: 5px; color: var(--ink); border-radius: 8px; text-align: left; }
.userbox:hover, .userbox[aria-expanded="true"] { background: #f0f2fa; }
.userbox .avatar { display: grid; width: 36px; height: 36px; color: white; font-size: 13px; }
.userbox-label { display: block; max-width: 180px; }
.userbox-label strong { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-search, .topbar-menu { position: relative; }
.topbar-search { min-width: 0; }
.topbar-search .searchbar { width: 390px; max-width: 32vw; min-width: 0; }
.searchbar input { min-width: 0; }
.searchbar .ico { flex-shrink: 0; }
.topbar-menu > .icon-btn { position: relative; }
.topbar-popover { position: absolute; top: calc(100% + 12px); right: 0; z-index: 40; background: #fff; border: 1px solid var(--stroke); border-radius: 8px; box-shadow: 0 12px 36px #20294320; padding: 6px; max-height: min(480px, calc(100dvh - 100px)); overflow: auto; overscroll-behavior: contain; }
.search-results { left: 0; right: auto; width: 100%; min-width: 290px; max-width: min(420px, calc(100vw - 32px)); }
.search-result, .popover-item { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); text-align: left; padding: 12px; border-radius: 6px; }
.search-result { display: block; }
.search-result:hover, .search-result[aria-selected="true"], .popover-item:hover, .popover-item:focus-visible { background: #f5f6fc; }
.search-result b, .search-result .tiny, .popover-heading, .notification-copy { overflow-wrap: anywhere; white-space: normal; }
.popover-item .ico { flex-shrink: 0; width: 17px; height: 17px; }
.popover-item.danger { color: var(--danger); }
.popover-heading { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-bottom: 1px solid var(--stroke); margin-bottom: 4px; }
.popover-heading strong { font-size: 12px; }
.popover-divider { height: 1px; background: var(--stroke); margin: 4px 0; }
.account-menu { width: 260px; }
.notifications-menu { width: 350px; }
.notification-copy { flex: 1; min-width: 0; }
.notification-copy strong { display: block; font-size: 12px; line-height: 1.6; }
.notification-copy span { display: block; color: var(--muted); font-size: 10px; line-height: 1.7; margin-top: 3px; }
.topbar-popover .empty { padding: 24px 14px; font-size: 12px; }
.popover-footer { display: block; border-top: 1px solid var(--stroke); padding: 12px; text-align: center; color: var(--primary); font-weight: 600; }
:is(.icon-btn, .userbox, .popover-item, .search-result):focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 800px) {
    .userbox .userbox-label { display: none; }
    .topbar-search .searchbar { width: 39vw; max-width: none; }
    .account-menu, .notifications-menu { max-width: calc(100vw - 32px); }
}
@media (max-width: 480px) {
    #clock-date { display: none; }
    .topbar > .top-actions:first-child { flex: 1; min-width: 0; margin-right: 8px; }
    .topbar-search { flex: 1; }
    .topbar-search .searchbar { width: 100%; }
    .search-results { min-width: min(290px, calc(100vw - 80px)); }
    .userbox { gap: 4px; padding: 4px 0; }
}
