.dashboard-role-switch {
    width: 100%;
    margin: -14px 0 16px;
    border-bottom: 1px solid #3d4145;
}

.role-switch-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    gap: 8px;
    padding: 13px 15px;
    border: 0;
    background: transparent;
    color: antiquewhite;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.role-switch-toggle:hover {
    background: #3d4145;
    color: #fff8e9;
}

.role-switch-toggle:focus,
.role-switch-toggle:focus-visible {
    outline: none;
    background: #1f1f1f;
    color: #dec702;
    box-shadow: inset 5px 0 #dec702, 0 0 4px rgba(222, 199, 2, 0.6);
}

.role-switch-icon {
    flex: 0 0 auto;
    color: #67e8f9;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1;
}

.role-switch-label {
    min-width: 0;
}

.role-switch-options {
    background: #20282f;
    border-top: 1px solid rgba(103, 232, 249, 0.16);
}

.role-switch-form {
    padding: 9px 10px 11px;
}

.role-switch-list {
    display: grid;
    gap: 7px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.role-switch-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid #43545d;
    border-radius: 9px;
    background: #18242c;
    color: #f3ead8;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.role-switch-option:hover:not(:disabled) {
    border-color: #67e8f9;
    background: #123541;
    color: #ffffff;
}

.role-switch-option:focus-visible {
    outline: 3px solid rgba(103, 232, 249, 0.38);
    outline-offset: 2px;
}

.role-switch-option.is-active,
.role-switch-option:disabled.is-active {
    border-color: #3fcfe7;
    background: linear-gradient(135deg, #0b5262, #123d49);
    color: #ffffff;
    cursor: default;
    opacity: 1;
    box-shadow: inset 4px 0 #67e8f9;
}

.role-switch-option:disabled:not(.is-active) {
    cursor: wait;
    opacity: 0.58;
}

.role-switch-status {
    min-height: 0;
    margin: 0;
    color: #9bdce8;
    font-size: 0.76rem;
    line-height: 1.35;
}

.role-switch-status:not(:empty) {
    padding: 9px 2px 0;
}

.dashboard-role-switch[aria-busy="true"] .role-switch-option:not(.is-active) {
    cursor: wait;
    opacity: 0.58;
}

#dashboard.collapsed .dashboard-role-switch,
.dashboard-state-collapsed #dashboard .dashboard-role-switch {
    display: none !important;
}

html[data-theme="light"] .dashboard-role-switch {
    border-bottom-color: #c4d2d9;
}

html[data-theme="light"] .role-switch-toggle {
    color: #263942;
}

html[data-theme="light"] .role-switch-toggle:hover {
    background: #d1e0e7;
    color: #102a34;
}

html[data-theme="light"] .role-switch-toggle:focus,
html[data-theme="light"] .role-switch-toggle:focus-visible {
    background: #ffffff;
    color: #665600;
    box-shadow: inset 5px 0 #b59e00, 0 0 4px rgba(138, 115, 0, 0.28);
}

html[data-theme="light"] .role-switch-icon {
    color: #007f9a;
}

html[data-theme="light"] .role-switch-options {
    background: #dce7ec;
    border-top-color: #b7c9d2;
}

html[data-theme="light"] .role-switch-option {
    border-color: #aabfc9;
    background: #f6fafb;
    color: #183442;
}

html[data-theme="light"] .role-switch-option:hover:not(:disabled) {
    border-color: #087f96;
    background: #e7f4f7;
    color: #0c3544;
}

html[data-theme="light"] .role-switch-option:focus-visible {
    outline-color: rgba(8, 127, 150, 0.34);
}

html[data-theme="light"] .role-switch-option.is-active,
html[data-theme="light"] .role-switch-option:disabled.is-active {
    border-color: #087f96;
    background: linear-gradient(135deg, #bfe9f0, #d5f1f5);
    color: #073746;
    box-shadow: inset 4px 0 #008eaa;
}

html[data-theme="light"] .role-switch-status {
    color: #006f84;
}

@media (max-width: 1199.98px) {
    .role-switch-toggle {
        min-height: 54px;
    }

    .role-switch-option {
        min-height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .role-switch-toggle,
    .role-switch-option {
        transition: none;
    }
}
