.modal{width:min(560px,calc(100vw - 32px));max-width:none;max-height:min(90dvh,860px);margin:auto;border-radius:20px;box-shadow:var(--shadow-lg)}.modal[open]{animation:modal-in .22s var(--ease)}.modal[open]::backdrop{animation:fade-in .22s var(--ease)}@keyframes modal-in{0%{opacity:0;transform:translateY(12px) scale(.985)}}@keyframes sheet-in{0%{transform:translateY(100%)}}.modal__inner{display:flex;flex-direction:column;max-height:inherit}.modal__head{display:flex;align-items:center;gap:8px;flex-shrink:0;min-height:64px;padding-inline:20px 8px;border-bottom:1px solid var(--border)}.modal__head h2{flex:1;display:flex;align-items:center;gap:10px;font-size:18px;font-weight:800;line-height:1.6}.modal__body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:20px 20px calc(24px + env(safe-area-inset-bottom))}.modal__lead{font-size:15px;line-height:1.9;color:var(--fg-muted)}@media (max-width:639.98px){.modal{width:100%;max-width:none;max-height:92dvh;margin:auto 0 0;border-radius:20px 20px 0 0}.modal[open]{animation:sheet-in .28s var(--ease)}.modal__body{padding-inline:16px}}@media (prefers-reduced-motion:reduce){.modal[open],.modal[open]::backdrop{animation:none}}