.topbar-brand-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-layout .dashboard-topbar {
    position: fixed;
    z-index: 50;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 70px;
}

.admin-layout .dashboard-shell {
    min-height: 100vh;
}

.admin-layout .dashboard-content {
    padding-top: calc(70px + clamp(22px, 4vw, 52px));
}

.admin-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(260px, 28vw);
    padding: 8px 12px;
    border: 1px solid #29475b;
    border-radius: 10px;
    color: #78a0a9;
    background: #102b3d;
}

.admin-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #e9f2f6;
    background: transparent;
    font: inherit;
    font-size: .76rem;
}

.admin-search input::placeholder { color: #7895a2; }
.admin-topbar-button, .admin-profile-trigger { cursor: pointer; }
.admin-topbar-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    color: #c2d8de;
    background: #102b3d;
    list-style: none;
}
.admin-topbar-button::-webkit-details-marker, .admin-profile-trigger::-webkit-details-marker { display: none; }
.admin-topbar-button b {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    padding: 2px 4px;
    border-radius: 10px;
    color: #082333;
    background: #43df9c;
    font-size: .58rem;
    text-align: center;
}
.admin-profile-menu, .admin-notification-menu { position: relative; }
.captain-profile-menu, .captain-notification-menu { position: relative; }
.admin-profile-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d4e4e7;
    list-style: none;
}
.admin-avatar {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #082333;
    background: #43df9c;
    font-size: .78rem;
    font-weight: 900;
}
.admin-profile-label { display: grid; gap: 2px; }
.admin-profile-label strong { color: #eef9f7; font-size: .76rem; }
.admin-profile-label small, .admin-profile-summary small { color: #8caab0; font-size: .6rem; text-transform: uppercase; }
.admin-dropdown {
    position: absolute;
    z-index: 30;
    top: calc(100% + 12px);
    right: 0;
    width: 300px;
    overflow: hidden;
    border: 1px solid #d8e8e4;
    border-radius: 14px;
    color: #173640;
    background: #fff;
    box-shadow: 0 20px 55px rgba(5, 31, 41, .2);
}
.admin-profile-dropdown { width: 250px; }
.admin-dropdown-heading, .admin-profile-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid #edf3f1;
}
.admin-dropdown-heading small { color: #0b9870; font-size: .65rem; }
.admin-notification-item, .admin-profile-dropdown > a, .admin-profile-dropdown form button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    color: #426068;
    background: transparent;
    font: inherit;
    font-size: .75rem;
    text-align: left;
    text-decoration: none;
}
.admin-notification-item:hover, .admin-profile-dropdown > a:hover, .admin-profile-dropdown form button:hover { background: #f0faf6; }
.admin-notification-item.is-unread { background: #f4fcf8; }
.admin-notification-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #087352; background: #d9f8ec; }
.admin-notification-item strong, .admin-notification-item small { display: block; }
.admin-notification-item small { max-width: 210px; margin-top: 4px; overflow: hidden; color: #82979a; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-dropdown-footer { display: block; padding: 12px 16px; border-top: 1px solid #edf3f1; color: #087352; font-size: .7rem; font-weight: 800; text-decoration: none; }
.admin-dropdown-empty { padding: 20px 16px; color: #82979a; font-size: .75rem; }
.admin-profile-summary { justify-content: flex-start; }
.admin-profile-summary > div { display: grid; gap: 3px; }
.admin-profile-dropdown form button { cursor: pointer; }
.admin-profile-dropdown a span, .admin-profile-dropdown form span { margin-left: auto; }

.dashboard-topbar .site-brand,
.landing-layout .site-brand,
.auth-brand,
.auth-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.site-brand-logo,
.cp-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: contain;
    background: #fff;
}

.dashboard-topbar .site-brand > span:last-child,
.landing-layout .site-brand > span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.topbar-brand-group .sidebar-toggle {
    order: 2;
}

.cp-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cp-brand-logo {
    width: 36px;
    height: 36px;
}

.cp-header-left .cp-menu-toggle {
    order: 2;
}

@media (max-width: 780px) {
    .topbar-brand-group {
        gap: 8px;
    }

    .dashboard-topbar .site-brand {
        min-width: 0;
    }

    .dashboard-topbar .site-brand > span:last-child {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .admin-search { display: none; }
    .admin-profile-label { display: none; }
    .admin-topbar-actions, .captain-topbar-actions { gap: 7px; }
    .captain-profile-menu .admin-profile-trigger { padding: 0; }
    .captain-notification-menu .admin-dropdown, .captain-profile-menu .admin-dropdown { position: fixed; top: 62px; right: 12px; width: min(300px, calc(100vw - 24px)); }

    .admin-layout .dashboard-content {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
}
