:where(.common-modal){--modal-surface:#18181f;--modal-text:#fafafa;--modal-line:#a1a1aa33;overscroll-behavior:contain;border:1px solid var(--modal-line);background:var(--modal-surface);width:calc(100% - 2rem);max-width:42rem;max-height:calc(100dvh - 2rem);color:var(--modal-text);border-radius:1rem;margin:auto;padding:0;overflow:clip;box-shadow:0 30px 100px #0006}:where(:root[data-theme=light] .common-modal){--modal-surface:#fff;--modal-text:#18181b;--modal-line:#52525b2e}:where(.common-modal[open]){flex-direction:column;display:flex}:where(.common-modal[data-modal=false]){z-index:60;height:fit-content;position:fixed;inset:0}:where(.common-modal)::backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#000000a6}:where(.common-modal-header){border-bottom:1px solid var(--modal-line);background-color:var(--modal-surface);flex-shrink:0;justify-content:space-between;align-items:flex-start;gap:.75rem;padding:1rem;display:flex}:where(.common-modal-body){overscroll-behavior:contain;flex:1;min-height:0;padding:1rem;overflow:hidden auto}:where(.common-modal-footer){border-top:1px solid var(--modal-line);background-color:var(--modal-surface);flex-shrink:0;justify-content:flex-end;align-items:center;gap:.75rem;padding:1rem;display:flex}:where(.common-modal[data-motion=on][open]){animation:.6s cubic-bezier(.22,1,.36,1) common-modal-arrival}:where(.common-modal[data-motion=on])::backdrop{animation:.5s ease-out common-modal-backdrop-arrival}:where(.common-modal[data-motion=off]) *,:where(.common-modal[data-motion=off]) :before,:where(.common-modal[data-motion=off]) :after{transition:none!important;animation:none!important}@keyframes common-modal-arrival{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes common-modal-backdrop-arrival{0%{background-color:#0000}to{background-color:#000000a6}}:where(.common-modal[data-placement=right]){border-radius:1rem 0 0 1rem;width:min(100%,32rem);max-width:none;height:100dvh;max-height:100dvh;margin:0 0 0 auto;inset:0}:where(.common-modal[data-placement=right][data-motion=on][open]){animation:.42s cubic-bezier(.22,1,.36,1) common-modal-slide-in}@keyframes common-modal-slide-in{0%{opacity:.8;transform:translate(100%)}to{opacity:1;transform:translate(0)}}:where(.common-modal[data-placement=left]){border-radius:0 1rem 1rem 0;width:min(100%,22rem);max-width:none;height:100dvh;max-height:100dvh;margin:0 auto 0 0;inset:0}:where(.common-modal[data-placement=left][data-motion=on][open]){animation:.42s cubic-bezier(.22,1,.36,1) common-modal-slide-in-left}@keyframes common-modal-slide-in-left{0%{opacity:.8;transform:translate(-100%)}to{opacity:1;transform:translate(0)}}:where(.common-modal[data-modal=false])::backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background:0 0;animation:none}@media (max-height:560px){:where(.common-modal){scroll-padding-top:calc(var(--modal-header-height,0px) + .75rem);overflow:hidden auto}:where(.common-modal-header){z-index:4;position:sticky;top:0}:where(.common-modal-body){flex:none;overflow:visible}}
