dialog.modal{--modal-gutter:24px;overflow-wrap:anywhere;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent;width:calc(100% - 32px);min-width:0;max-width:min(530px,100vw - 32px);max-height:calc(100dvh - 48px);scroll-padding-block:96px}dialog.modal[data-size=small]{max-width:440px}dialog.modal[data-size=medium]{max-width:600px}dialog.modal[data-size=large]{max-width:780px}dialog.modal[data-size=wide]{max-width:1040px}dialog.modal>.modal-header{z-index:5;background:var(--surface);padding:22px var(--modal-gutter) 20px;flex:none;gap:20px;position:sticky;top:0}dialog.modal>.modal-header>div{min-width:0}dialog.modal>.modal-header h2{letter-spacing:-.025em;margin:0;line-height:1.4}dialog.modal>.modal-header p{color:var(--muted);margin:6px 0 0;font-size:12px;line-height:1.6}dialog.modal>.modal-header>.button{flex:none;width:36px;height:36px;min-height:36px;margin-top:-2px;padding:0}dialog.modal>.modal-content{min-width:0;padding:var(--modal-gutter)}dialog.modal>.modal-content>p:first-child{margin-top:0}dialog.modal>.modal-content>.pagination{padding-inline:0}dialog.modal>.modal-content>.modal-footer:last-child{padding-bottom:0}:where(dialog.modal>form){padding:var(--modal-gutter)}:where(dialog.modal>form,dialog.modal fieldset,dialog.modal .field){min-width:0}dialog.modal :where(input,textarea,select){max-width:100%;scroll-margin-block:16px}dialog.modal>:where(.modal-footer,.modal-actions,.form-actions),dialog.modal>:where(form,section,div)>:where(.modal-footer,.modal-actions,.form-actions){z-index:4;background:var(--surface);flex-wrap:wrap;padding-bottom:14px;position:sticky;bottom:0}dialog.modal[data-layout=panel][open]{flex-direction:column;display:flex;overflow:hidden}dialog.modal[data-layout=panel]>form{flex-direction:column;min-height:0;padding:0;display:flex;overflow:hidden}dialog.modal[data-layout=panel] .modal-body{overscroll-behavior:contain;min-height:0;padding:var(--modal-gutter);scroll-padding-block:20px;overflow-y:auto}dialog.modal[data-layout=panel]>form>.modal-footer{padding:16px var(--modal-gutter);flex:none;margin:0;position:static}html:has(dialog.modal[open]){overflow:hidden}@media (max-width:600px){dialog.modal{--modal-gutter:18px;border-radius:16px;width:calc(100% - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}dialog.modal>.modal-header{gap:12px;padding-block:17px}dialog.modal>.modal-header h2{font-size:17px}dialog.modal>.modal-header>.button{width:40px;height:40px;min-height:40px}}@media (max-width:400px){dialog.modal .form-row{grid-template-columns:minmax(0,1fr)}}@media (max-width:600px) and (pointer:coarse){dialog.modal :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px}}
