/* Ampliphy common modal layout. Keep identical in each brand adapter. */
:is(.cyber-studio-community,.awkone-community) .library-backdrop{z-index:340;overflow:hidden;padding:24px}
:is(.cyber-studio-community,.awkone-community) .brand-library-dialog{display:flex;flex-direction:column;height:min(820px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);min-height:0;overflow:hidden}
:is(.cyber-studio-community,.awkone-community) .brand-library-dialog>header,
:is(.cyber-studio-community,.awkone-community) .brand-library-controls,
:is(.cyber-studio-community,.awkone-community) .brand-library-dialog>.library-note,
:is(.cyber-studio-community,.awkone-community) .brand-library-dialog>footer{flex:0 0 auto}
:is(.cyber-studio-community,.awkone-community) .brand-library-grid{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;touch-action:pan-y;scrollbar-gutter:stable;align-content:start;grid-auto-rows:max-content}
:is(.cyber-studio-community,.awkone-community) .brand-library-dialog>footer{position:relative;isolation:isolate}
:is(.cyber-studio-community,.awkone-community) .marketplace-listing-editor{display:flex;flex-direction:column;max-height:calc(100dvh - 48px);overflow:hidden}
:is(.cyber-studio-community,.awkone-community) .marketplace-listing-editor>.spaces-modal-heading{flex:0 0 auto}
:is(.cyber-studio-community,.awkone-community) .marketplace-listing-editor>.spaces-editor{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;padding-right:8px;scrollbar-gutter:stable}
:is(.cyber-studio-community,.awkone-community) .listing-upload-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
:is(.cyber-studio-community,.awkone-community) .listing-upload-tools>.btn,
:is(.cyber-studio-community,.awkone-community) .brand-library-dialog>footer>.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-height:44px;height:44px;min-width:150px;margin:0;padding:0 16px;line-height:1.2;font-size:12px;border-radius:2px;cursor:pointer}
:is(.cyber-studio-community,.awkone-community) .listing-upload-tools>.btn>svg,
:is(.cyber-studio-community,.awkone-community) .brand-library-dialog>footer>.btn>svg{flex:0 0 18px;width:18px;height:18px}
@media(max-width:600px){
 :is(.cyber-studio-community,.awkone-community) .library-backdrop{padding:12px}
 :is(.cyber-studio-community,.awkone-community) .brand-library-dialog{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}
 :is(.cyber-studio-community,.awkone-community) .marketplace-listing-editor{max-height:calc(100dvh - 24px)}
 :is(.cyber-studio-community,.awkone-community) .listing-upload-tools>.btn{min-width:0;flex:1}
 :is(.cyber-studio-community,.awkone-community) .brand-library-dialog>footer>.btn{min-width:0;flex:1;font-size:11px;padding:0 10px}
}

/* Host footer decoration must never escape over a media dialog. */
:is(.cyber-studio-community,.awkone-community) .brand-library-dialog>footer::before,
:is(.cyber-studio-community,.awkone-community) .brand-library-dialog>footer::after{content:none;display:none}
