/* Shared modal repair: the form wrapper must participate in the flex layout. */
.modal{height:var(--modal-viewport-height,100dvh);top:var(--modal-viewport-top,0px);overflow-y:auto}
.modal .modal-dialog{height:calc(var(--modal-viewport-height,100dvh) - 2 * var(--bs-modal-margin,.5rem));min-height:0}
.modal .modal-content{max-height:100%;overflow:hidden;min-height:0}
.modal .modal-content>form{display:flex;flex-direction:column;min-height:0;max-height:100%;overflow:hidden}
.modal .modal-body{min-height:0;overflow-y:auto!important;max-height:none;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.modal .modal-header,.modal .modal-footer{flex-shrink:0;background:#fff}
.modal .modal-footer{padding-bottom:max(13px,env(safe-area-inset-bottom));flex-wrap:wrap}
.workspace-logo{width:48px;height:48px;object-fit:contain;background:#fff;border-radius:12px;border:1px solid #e2ebf5;padding:4px;flex-shrink:0}
.sidebar-brand-logo.tenant-brand-logo{width:100%;height:80px;object-fit:contain}
.topbar-brand-mini img.tenant-brand-logo{width:48px;height:48px;object-fit:contain}
.workspace-brand-links{display:flex;gap:8px;overflow-x:auto;max-width:240px;padding:3px}
.workspace-brand-links .workspace-logo{width:34px;height:34px;border-radius:8px}
.logo-choice{display:flex;align-items:center;gap:8px;border:1px solid #dce7f5;border-radius:12px;padding:10px;cursor:pointer}
.logo-choice:has(input:checked){border-color:#1467df;background:#eef6ff}
@supports not (height:100dvh){.modal{height:var(--modal-viewport-height,100vh)}.modal .modal-dialog{height:calc(var(--modal-viewport-height,100vh) - 2 * var(--bs-modal-margin,.5rem))}}
