.backdrop{z-index:50;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);touch-action:none;background:#1b191773;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.modal{background:var(--surface);border-radius:var(--r-xl);box-shadow:var(--shadow-high);overscroll-behavior:contain;width:100%;max-width:540px;max-height:calc(100vh - 48px);padding:24px;overflow:auto}.modal.wide{max-width:680px}.modal-head{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:18px;display:flex}.modal-head h2{font:600 var(--fs-dialog)/1.2 var(--font);letter-spacing:-.02em}.modal-head p{color:var(--muted);font:400 13.5px/1.45 var(--font);margin-top:5px}.modal-head-lead{align-items:center;gap:12px;min-width:0;display:flex}.modal-icon{background:var(--terracotta-soft);width:34px;height:34px;color:var(--terracotta-ink);border-radius:10px;flex:none;place-items:center;display:grid}.modal-icon svg{width:17px;height:17px}.modal-body{flex-direction:column;gap:18px;display:flex}.modal-foot{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:22px;display:flex}.backdrop.drawer{justify-content:flex-end;padding:0}.backdrop.drawer .modal{border-radius:var(--r-xl) 0 0 var(--r-xl);max-width:480px;height:100vh;max-height:none}@media (width<=860px){.backdrop,.backdrop.drawer{padding:10px 10px calc(10px + env(safe-area-inset-bottom));justify-content:center;align-items:flex-end}.modal,.backdrop.drawer .modal{border-radius:var(--r-xl);max-width:none;max-height:calc(100dvh - 20px - env(safe-area-inset-bottom));height:auto;padding:22px 18px}.modal-head p{font-size:14px}.modal-foot{gap:10px}.modal-foot .btn{flex:1}.backdrop.centered{align-items:center;padding:16px}.backdrop.centered .modal{border-radius:var(--r-xl);max-width:540px;max-height:calc(100dvh - 32px);padding:22px 18px}.backdrop[data-keyboard]{top:var(--viewport-top);height:var(--viewport-h);padding-bottom:10px;bottom:auto}.backdrop[data-keyboard] .modal{max-height:calc(var(--viewport-h) - 20px)}.backdrop.centered[data-keyboard] .modal{max-height:calc(var(--viewport-h) - 32px)}}
