#workspace-location-picker > article {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: min(42rem, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    max-height: 85vh;
    margin: 0;
    overflow: auto;
    padding: 1.25rem;
    border: 1px solid var(--color-hover, #888);
    border-radius: 0.5rem;
    background: var(--background-2, white);
    color: inherit;
}

.workspace-location-picker::backdrop {
    background: #0008;
}

#workspace-location-picker nav,
#workspace-location-picker footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

#workspace-location-picker footer {
    position: static;
    flex-shrink: 0;
    justify-content: flex-end;
    padding: 0;
    background: transparent;
}

#workspace-location-picker button {
    --background-color: transparent;
    --border-color: transparent;
    --color: inherit;
    background: transparent;
    border-color: transparent;
    color: inherit;
    box-shadow: none;
    padding: 0.45rem 0.65rem;
    font-size: 0.9rem;
    font-weight: 400;
}

#workspace-location-picker button:hover:not(:disabled) {
    background: var(--color-hover, #8882);
    border-color: transparent;
    color: inherit;
}

#workspace-location-picker nav {
    justify-content: flex-start;
    gap: 0.15rem;
}

#workspace-location-picker nav button {
    padding: 0.2rem 0.3rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

#workspace-location-picker nav button + button::before {
    content: "/";
    margin-right: 0.5rem;
    opacity: 0.45;
}

#workspace-location-picker footer button:last-child {
    border: 1px solid var(--muted-color, #888);
    font-weight: 500;
}

#workspace-location-picker button:disabled {
    opacity: 0.4;
}

#workspace-location-picker nav button,
#workspace-location-picker footer button {
    width: auto;
    margin: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.workspace-location-picker input {
    width: 100%;
}

.workspace-location-list {
    display: block;
    min-height: 0;
    max-height: 45vh;
    overflow: auto;
}

.workspace-location-row:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0;
}

.workspace-location-row button {
    flex: 1;
    min-width: 0;
    margin: 0;
    white-space: normal;
    text-align: left;
    overflow-wrap: anywhere;
}

.workspace-location-row span {
    font-size: 0.85em;
    opacity: 0.7;
}

.workspace-location-picker button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
