/* Unstructured panels need the same inset as panel-body; table shells retain their own cell spacing. */
:is(#content,#modal-body) .panel:not(:has(> .panel-head,> .panel-body,> .table-wrap,> .empty)) {
 padding:18px 20px;
}
:is(#content,#modal-body) .panel> :is(h2,h3,p):first-child{margin-top:0}
:is(#content,#modal-body) .panel> :is(p,.row-controls):last-child{margin-bottom:0}
:is(#content,#modal-body) .panel:has(> .table-wrap)> :is(h2,h3,p){margin:16px 20px}
:is(#content,#modal-body) .panel:not(:has(> .panel-head,> .panel-body,> .table-wrap,> .empty))>button{margin:4px 6px 0 0}
:is(#content,#modal-body) input:is([type="checkbox"],[type="radio"]){width:18px;height:18px;min-height:0;padding:0;margin:0 8px 0 0;vertical-align:middle;flex:none;accent-color:var(--accent)}
:is(#content,#modal-body) label:has(> input:is([type="checkbox"],[type="radio"])) {line-height:1.7;overflow-wrap:anywhere}
:is(#content,#modal-body) .panel :is(strong,p,label){overflow-wrap:anywhere}
/* A selectable list is a single column, not a two-column field form. */
#modal-body form:is([data-form="email-queue-review"],[data-form="email-backlog-review"],[data-form="v3_ticket_expired_preview"])>.form-grid{display:block}
#modal-body form[data-form="email-queue-review"]>.form-grid>label{padding:10px 0;margin-bottom:12px}
#modal-body form[data-form="email-queue-review"] .panel{margin-bottom:12px}
#modal-body .email-template-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
#modal-body .email-template-row>strong{font-weight:500;min-width:0}
#modal-body .email-template-row>button{flex:none;margin:0}
@media(max-width:600px){
 :is(#content,#modal-body) .panel:not(:has(> .panel-head,> .panel-body,> .table-wrap,> .empty)){padding:14px}
 :is(#content,#modal-body) .panel:has(> .table-wrap)> :is(h2,h3,p){margin:14px}
 #modal-body .email-template-row{gap:10px}
}

