.workspace-switcher-popover__content {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xs);
    inline-size: min(305px, calc(100vw - (var(--space-sm) * 2)));
    min-inline-size: var(--space-zero);
    max-inline-size: calc(100vw - (var(--space-sm) * 2));
    padding: calc(var(--space-sm) - var(--border-w));
    overflow: hidden;
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius-2xl);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    color: var(--text);
    font-family: var(--font-geist);
}

.workspace-switcher-popover__title {
    width: 100%;
    min-width: var(--space-zero);
    margin: var(--space-zero);
    color: var(--text);
    font: 500 16px/24px var(--font-geist);
    letter-spacing: 0.01em;
}

.workspace-switcher-popover__content .shell-menu__workspace-list,
.workspace-switcher-popover__content .shell-menu__footer-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    width: 100%;
}

.workspace-switcher-popover__content .shell-menu__workspace-list {
    gap: var(--space-zero);
}

.workspace-switcher-popover__content .shell-menu__workspace-card {
    appearance: none;
    display: grid;
    box-sizing: border-box;
    grid-template-columns: var(--size-3xl) minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-xs);
    width: 100%;
    min-height: var(--size-5xl);
    margin: var(--space-zero);
    padding: var(--space-xs);
    overflow: hidden;
    border: 0;
    border-radius: var(--control-radius);
    background: transparent;
    color: var(--text);
    font-family: var(--font-geist);
    text-align: left;
    cursor: pointer;
    transition: background-color 150ms ease, box-shadow 150ms ease;
}

.workspace-switcher-popover__content .shell-menu__workspace-card:hover:not(:disabled) {
    background: var(--surface-hover);
}

.workspace-switcher-popover__content .shell-menu__workspace-card:focus-visible,
.workspace-switcher-popover__content .shell-menu__footer-link:focus-visible {
    outline: none;
    box-shadow: var(--ring-brand);
}

.workspace-switcher-popover__content .shell-menu__workspace-card--current,
.workspace-switcher-popover__content .shell-menu__workspace-card--current:hover {
    background: transparent;
}

.workspace-switcher-popover__content .shell-menu__workspace-card:disabled {
    cursor: default;
    opacity: var(--opacity-100);
}

.workspace-switcher-popover__content .shell-menu__workspace-card--current .shell-menu__workspace-icon {
    background: var(--surface);
}

.workspace-switcher-popover__content .shell-menu__workspace-icon,
.workspace-switcher-popover__content .shell-menu__action-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 var(--size-3xl);
    width: var(--size-3xl);
    height: var(--size-3xl);
    overflow: hidden;
    border: var(--border-w) solid var(--border);
    border-radius: var(--control-radius);
    background: var(--surface);
    color: var(--icon);
}

.workspace-switcher-popover__content .shell-menu__workspace-icon img,
.workspace-switcher-popover__content .shell-menu__action-icon img {
    display: block;
    width: var(--size-lg);
    height: var(--size-lg);
    max-width: var(--size-lg);
    max-height: var(--size-lg);
    object-fit: contain;
}

.workspace-switcher-popover__content .shell-menu__workspace-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-zero);
    min-width: var(--space-zero);
}

.workspace-switcher-popover__content .shell-menu__workspace-name,
.workspace-switcher-popover__content .shell-menu__workspace-meta {
    display: block;
    width: 100%;
    min-width: var(--space-zero);
    overflow: hidden;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-switcher-popover__content .shell-menu__workspace-name {
    margin: var(--space-zero);
    color: var(--text);
    font: 500 16px/24px var(--font-geist);
}

.workspace-switcher-popover__content .shell-menu__workspace-meta {
    color: var(--text-tertiary);
    font: 400 14px/22px var(--font-geist);
}

.workspace-switcher-popover__content .shell-menu__workspace-current {
    align-self: center;
}

.workspace-switcher-popover__content .shell-menu__divider {
    position: relative;
    width: 100%;
    height: var(--space-zero);
    margin: var(--space-zero);
    border: 0;
}

.workspace-switcher-popover__content .shell-menu__divider::before {
    content: "";
    position: absolute;
    inset: var(--space-zero) var(--space-zero) auto;
    height: var(--border-w);
    background: var(--border);
}

.workspace-switcher-popover__content .shell-menu__footer-actions {
    gap: var(--space-zero);
    padding: var(--space-zero);
}

.workspace-switcher-popover__content .shell-menu__footer-link {
    appearance: none;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-xs);
    width: 100%;
    min-height: var(--size-5xl);
    margin: var(--space-zero);
    padding: var(--space-xs);
    overflow: hidden;
    border: 0;
    border-radius: var(--control-radius);
    background: transparent;
    color: var(--text);
    font: 500 16px/24px var(--font-geist);
    letter-spacing: 0.01em;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 150ms ease, box-shadow 150ms ease;
}

.workspace-switcher-popover__content .shell-menu__footer-link > span:last-child {
    min-width: var(--space-zero);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-switcher-popover__content .shell-menu__footer-link:hover {
    background: var(--surface-hover);
    color: var(--text);
    box-shadow: none;
}

.workspace-switcher-popover__content .shell-menu__status {
    min-height: var(--size-5xl);
    padding: var(--space-xs);
    color: var(--text-tertiary);
    font: 400 14px/22px var(--font-geist);
}

.workspace-switcher-popover__content .shell-menu__status--error {
    color: var(--error-text);
}

@media (prefers-reduced-motion: reduce) {
    .workspace-switcher-popover__content .shell-menu__workspace-card,
    .workspace-switcher-popover__content .shell-menu__footer-link {
        transition: none;
    }
}
