/* Persistent managed-workspace control; source choices come from the verified session. */
.topbar:has(.workspace-switcher) { height: auto; min-height: 76px; flex-wrap: wrap; gap: 12px 18px; padding-top: 10px; padding-bottom: 10px; }
.topbar:has(.workspace-switcher) > .crumb { flex: 1 1 220px; }
.topbar:has(.workspace-switcher) > .spacer { display: none; }
.workspace-switcher { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px 8px; flex: 0 1 440px; min-width: 0; max-width: 100%; margin-left: auto; }
.workspace-switcher-label { flex: 0 0 auto; margin: 0; color: #295b38; font-size: 11px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.workspace-switcher-controls { display: flex; align-items: center; flex: 1 1 0; gap: 8px; min-width: 0; max-width: 340px; }
.workspace-switcher select { flex: 1 1 0; width: 100%; min-width: 0; max-width: 100%; height: 36px; box-sizing: border-box; border: 1px solid #a9eec0; border-radius: var(--control-radius); padding: 6px 28px 6px 10px; background: #edf5ef; color: #19532a; font: inherit; font-size: 12px; font-weight: 600; text-overflow: ellipsis; cursor: pointer; }
.workspace-switcher select:focus-visible { outline: 3px solid #006B20; outline-offset: 3px; }
.workspace-switcher select:disabled { cursor: wait; opacity: .6; }
.workspace-switcher-status, .workspace-switcher-error { display: block; flex: 1 0 100%; max-width: 100%; font-size: 11px; line-height: 1.4; text-align: right; overflow-wrap: anywhere; }
.workspace-switcher-status { color: #295b38; }
.workspace-switcher-error { color: #a82424; }
@media (max-width: 900px) {
    .topbar .workspace-switcher { order: 3; flex: 1 1 100%; }
    .workspace-switcher-controls { max-width: none; }
}
@media (max-width: 480px) {
    .workspace-switcher select { height: 38px; }
}
