.app-topbar > .workspace-scope { flex: 0 1 auto; min-width: 0; margin-left: auto; }
.tenant-switch-trigger { display: flex; align-items: center; gap: 10px; max-width: 300px; min-height: 46px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.tenant-switch-trigger:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); }
.tenant-switch-trigger:focus-visible, .tenant-switch-choice:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.tenant-switch-trigger:disabled { cursor: default; opacity: 1; }
.tenant-switch-copy { display: grid; min-width: 0; }
.tenant-switch-copy small { color: var(--muted); font-size: 10px; line-height: 1.3; }
.tenant-switch-copy strong { color: var(--ink); font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tenant-switch-initial { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 700; }
.tenant-switch-chevron { font-size: 19px; color: var(--muted); margin-left: auto; }
body.tenant-switch-open { overflow: hidden; }
dialog.tenant-switch-drawer { position: fixed; inset: 0 0 0 auto; width: min(400px, 100vw); max-width: 100vw; height: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-radius: 0; color: var(--ink); background: var(--surface); }
.tenant-switch-drawer:not([open]) { display: none; }
.tenant-switch-drawer::backdrop { background: rgba(15,23,42,.45); animation: creation-fade-in .16s ease-out; }
.tenant-switch-drawer .creation-header { grid-template-columns: minmax(0, 1fr) auto; padding: 22px; flex-shrink: 0; }
.tenant-switch-drawer .creation-header h2 { font-size: 21px; }
.tenant-switch-drawer .creation-header .icon-button { font-size: 24px; }
.tenant-switch-body { padding: 20px 18px; overflow-y: auto; flex: 1; }
.tenant-switch-search { display: block; margin-bottom: 14px; }
.tenant-switch-search input { min-height: 42px; background: var(--surface-subtle); }
.tenant-switch-list { display: grid; gap: 6px; }
.tenant-switch-choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px; border: 1px solid transparent; border-radius: 10px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.tenant-switch-choice:hover { background: var(--surface-subtle); }
.tenant-switch-choice[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand-border, var(--line)); color: var(--brand); }
.tenant-switch-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; }
.tenant-switch-check { width: 18px; flex: none; font-weight: 700; }
.tenant-switch-result { color: var(--muted); font-size: 13px; }
.tenant-switch-footer { flex-shrink: 0; padding: 18px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }
@media(max-width: 820px) { .app-topbar > .workspace-scope { order: 0; } .tenant-switch-trigger { max-width: 235px; } }
@media(max-width: 540px) { .app-topbar > .workspace-scope { order: 4; flex: 1 0 100%; margin: 0; } .tenant-switch-trigger { width: 100%; max-width: none; } .tenant-switch-search input { font-size: 16px; } }
@media(prefers-reduced-motion: reduce) { .tenant-switch-drawer, .tenant-switch-drawer::backdrop { animation: none; } }
