.ui-modal-root{position:fixed;inset:0;z-index:var(--z-modal);display:flex;align-items:center;justify-content:center;padding:max(clamp(12px,4vw,24px),var(--safe-top)) max(clamp(12px,4vw,24px),var(--safe-right)) max(clamp(12px,4vw,24px),var(--safe-bottom)) max(clamp(12px,4vw,24px),var(--safe-left))}.ui-modal-overlay{position:absolute;inset:0;background:var(--scrim)}.ui-modal-dialog{position:relative;z-index:1;width:100%;max-height:100%;display:flex;flex-direction:column;background:var(--bg);border:1px solid var(--border);border-radius:16px;box-shadow:0 24px 60px -12px var(--shadow-key);overflow:hidden;animation:ui-modal-in .2s ease}.ui-modal-sm{max-width:420px}.ui-modal-md{max-width:560px}.ui-modal-lg{max-width:860px}.ui-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 16px 0}.ui-modal-title{margin:0;font-size:17px;font-weight:600;letter-spacing:-.01em;line-height:1.25}.ui-modal-close{flex-shrink:0;width:44px;height:44px;display:grid;place-items:center;border-radius:10px;background:transparent;border:0;color:var(--text-muted);cursor:pointer;transition:background .16s ease,color .16s ease}.ui-modal-close:hover{background:var(--overlay-06);color:var(--text)}.ui-modal-close:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.ui-modal-body{padding:12px 16px 16px;overflow-y:auto;-webkit-overflow-scrolling:touch}@media (max-width:480px){.ui-modal-sheet{align-items:flex-end;padding:0}.ui-modal-sheet .ui-modal-dialog{max-width:none;width:100%;max-height:92dvh;border-radius:16px 16px 0 0;border-bottom:0;animation:ui-sheet-in .24s ease;transition:transform .22s ease}.ui-modal-sheet .ui-modal-body{padding-bottom:max(16px,var(--safe-bottom))}.ui-modal-sheet .ui-modal-sheet-handle{display:flex;align-items:center;justify-content:center;padding:10px 0 2px;cursor:-webkit-grab;cursor:grab;touch-action:none}.ui-modal-sheet .ui-modal-sheet-grip{width:40px;height:4px;border-radius:999px;background:var(--overlay-16)}}@keyframes ui-modal-in{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}@keyframes ui-sheet-in{0%{transform:translateY(100%)}to{transform:translateY(0)}}@media (max-height:480px){.ui-modal-root{padding-top:max(8px,var(--safe-top));padding-bottom:max(8px,var(--safe-bottom))}.ui-modal-sheet .ui-modal-dialog{max-height:96dvh}}@media (prefers-reduced-motion:reduce){.ui-modal-dialog{animation:none}}