.pro2-topbar__logo-link {
    appearance: none;
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: 100%;
    min-width: 0;
    padding: 0 4px 0 0;
    font: inherit;
    cursor: pointer;
    border: 0;
    border-right: 1px solid color-mix(in srgb, var(--border) 90%, rgba(255, 255, 255, 0.16));
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.pro2-topbar__logo {
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: min(100%, 176px);
}

.pro2-topbar__logo svg {
    display: block;
    width: auto;
    height: 28px;
    max-width: min(100%, 176px);
    opacity: 1 !important;
    visibility: visible !important;
    position: static;
    z-index: auto;
    filter: none !important;
    mix-blend-mode: normal;
}

.pro2-topbar__subtitle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    max-width: 44rem;
    margin: 2px 0 0;
    color: var(--text-soft);
    font-size: 0.96rem;
    line-height: 1.45;
}

.pro2-topbar__status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid color-mix(in srgb, var(--accent) 12%, var(--border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--panel) 78%, transparent);
    color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pro2-topbar__subtitle a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
    text-underline-offset: 0.18em;
}

.pro2-topbar__cluster {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pro2-topbar__cluster--admin {
    gap: 8px;
    justify-content: flex-end;
}

.pro2-topbar__cluster--main {
    justify-content: flex-end;
    gap: 8px;
}

.pro2-topbar__access {
    display: grid;
    gap: 10px;
    width: 100%;
}

.pro2-topbar__access[hidden],
.pro2-topbar__access [hidden] {
    display: none !important;
}

.pro2-profile-menu {
    margin-left: 0;
    flex: 0 0 auto;
}

.pro2-topbar__theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 50%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 60%),
        color-mix(in srgb, var(--glass-surface-strong) 94%, transparent);
    backdrop-filter: var(--surface-blur);
    box-shadow:
        0 14px 26px rgba(8, 15, 26, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pro2-topbar__theme-toggle svg {
    width: 18px;
    height: 18px;
}

.pro2-profile-menu__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 60%),
        color-mix(in srgb, var(--glass-surface-strong) 94%, transparent);
    backdrop-filter: var(--surface-blur);
    box-shadow:
        0 14px 26px rgba(8, 15, 26, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.pro2-topbar__theme-toggle:hover,
.pro2-topbar__theme-toggle:focus-visible,
.pro2-profile-menu__toggle:hover,
.pro2-profile-menu__toggle:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 60%),
        color-mix(in srgb, var(--glass-surface-strong) 98%, transparent);
    box-shadow: 0 0 0 3px rgba(88, 209, 201, 0.12);
    transform: translateY(-1px);
}

.pro2-topbar__theme-toggle:focus-visible,
.pro2-profile-menu__toggle:focus-visible {
    outline: none;
}

.pro2-topbar__theme-toggle:active,
.pro2-profile-menu__toggle:active {
    transform: translateY(0);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pro2-profile-menu__media {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

button.pro2-profile-menu__media {
    padding: 0;
    border: 0;
    background: none;
    appearance: none;
    cursor: pointer;
}

button.pro2-profile-menu__media:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(88, 209, 201, 0.14);
}

.pro2-profile-menu__media--lg {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.pro2-profile-menu__avatar,
.pro2-profile-menu__photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.pro2-profile-menu__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, white), color-mix(in srgb, var(--accent-strong) 34%, transparent));
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.pro2-profile-menu__media:not(.is-fallback) .pro2-profile-menu__avatar {
    display: none;
}

.pro2-profile-menu__photo {
    position: absolute;
    inset: 0;
    display: block;
    object-fit: cover;
    background: color-mix(in srgb, var(--panel) 86%, transparent);
}

.pro2-profile-menu__media.is-fallback .pro2-profile-menu__photo,
.pro2-profile-menu__photo[hidden] {
    display: none;
}

[data-ui-hydrating='1'] .pro2-topbar__theme-toggle,
[data-ui-hydrating='1'] .pro2-profile-menu__toggle,
[data-ui-hydrating='1'] .pro2-profile-menu__photo {
    transition: none !important;
}

.pro2-profile-drawer {
    display: grid;
    gap: 20px;
}

.pro2-profile-drawer__head {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding-right: 34px;
}

.pro2-profile-drawer__identity {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.pro2-profile-drawer__identity strong,
.pro2-profile-drawer__identity span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pro2-profile-drawer__identity strong {
    font-size: 1.3rem;
    line-height: 1.15;
}

.pro2-profile-drawer__identity span {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.pro2-profile-drawer__identity-action {
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.pro2-profile-drawer__identity-action:hover,
.pro2-profile-drawer__identity-action:focus-visible {
    color: var(--text);
    outline: none;
}

.pro2-profile-drawer__group {
    display: grid;
    gap: 10px;
}

.pro2-profile-drawer__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pro2-profile-drawer__stat {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid color-mix(in srgb, var(--border) 90%, rgba(255, 255, 255, 0.12));
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 72%),
        color-mix(in srgb, var(--glass-surface) 90%, transparent);
    color: var(--text);
    text-decoration: none;
    box-shadow:
        0 10px 24px rgba(8, 15, 26, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pro2-profile-drawer__stat:hover,
.pro2-profile-drawer__stat:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
    box-shadow: 0 0 0 3px rgba(88, 209, 201, 0.12);
    outline: none;
}

.pro2-profile-drawer__stat-label {
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pro2-profile-drawer__stat-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.04rem;
    line-height: 1.25;
}

.pro2-profile-drawer__stat-meta {
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.35;
}

.pro2-profile-drawer__manager {
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid color-mix(in srgb, var(--border) 90%, rgba(255, 255, 255, 0.14));
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 72%),
        color-mix(in srgb, var(--glass-surface) 90%, transparent);
    box-shadow:
        0 10px 24px rgba(8, 15, 26, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pro2-profile-drawer__manager .pro2-section-title {
    margin: 0;
}

.pro2-profile-drawer__manager-title {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.04rem;
    line-height: 1.25;
}

.pro2-profile-drawer__manager-caption {
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.35;
}

.pro2-profile-drawer__manager-phone {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--accent) 34%, transparent);
    text-underline-offset: 0.18em;
}

.pro2-profile-menu__item {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: color-mix(in srgb, var(--bg-soft) 76%, transparent);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.pro2-profile-drawer__personal {
    display: grid;
    gap: 10px;
    width: 100%;
}

[data-header-personal] {
    order: 1;
}

[data-header-logout] {
    order: 3;
}

@media (max-width: 560px) {
    .pro2-profile-drawer__summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .pro2-profile-drawer__stat {
        padding: 14px 14px;
    }
}

.pro2-profile-menu__item--primary {
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent-strong) 60%, var(--accent)));
    border-color: transparent;
}

.pro2-role-switch {
    position: relative;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 36px;
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg-soft) 72%, transparent);
    color: var(--text-soft);
}

.pro2-role-switch::after {
    content: "";
    width: 10px;
    height: 10px;
    margin-left: 2px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.8;
    pointer-events: none;
}

.pro2-role-switch span {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pro2-role-switch select {
    width: auto;
    min-width: 0;
    max-width: 180px;
    padding-right: 2px;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
