.delivery-failure-overlay{z-index:2600;padding:10px;box-sizing:border-box;overflow:auto}
.delivery-failure-dialog{width:min(980px,100%);max-width:100%;min-width:0;max-height:calc(100dvh - 40px);box-sizing:border-box;background:#fff;padding:24px;border-radius:10px;display:flex;flex-direction:column;gap:16px;overflow:hidden;box-shadow:0 20px 70px #142c4d40}
.delivery-failure-dialog header,.delivery-failure-dialog footer{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-shrink:0}
.delivery-failure-dialog h2,.delivery-failure-dialog p{margin:0}
.delivery-failure-dialog header button{width:38px;height:38px;font-size:22px;flex-shrink:0}
.delivery-failure-dialog footer{justify-content:flex-end;flex-wrap:wrap}
.delivery-failure-list{min-height:0;overflow:auto;flex:1}
.delivery-failure-list article{padding:14px 12px;display:flex;flex-direction:column;gap:8px;border-bottom:1px solid #d8e2ec;overflow-wrap:anywhere}
.delivery-failure-list article:nth-child(even){background:#f3f6f8}
.delivery-failure-list small{color:#526579}.delivery-failure-list pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.85rem}
.delivery-failure-list summary{cursor:pointer;color:#526579}
.delivery-failure-launcher.btn-secondary.has-pending,.delivery-failure-launcher.btn-secondary.has-pending:hover{background:#a8202c;color:#fff;border-color:#a8202c}
.delivery-failure-launcher svg{color:inherit;stroke:currentColor}
.delivery-failure-confirm{flex-shrink:1;min-height:120px;padding:16px;border:1px solid #ce9a9f;border-radius:8px;background:#fff5f5;display:grid;gap:12px;max-height:48dvh;overflow:auto}
.delivery-failure-confirm h3{margin:0}.delivery-failure-confirm label{display:grid;gap:6px}.delivery-failure-confirm>div{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.mail-safety-launcher.has-pending,.mail-safety-launcher.has-pending:hover{background:#a8202c;color:#fff;border-color:#a8202c}
.mail-safety-launcher svg{stroke:currentColor}.mail-safety-review{border:1px solid #ce9a9f;border-radius:8px;background:#fff6f4;padding:12px;margin:12px 0}.mail-safety-review>p{line-height:1.5}.mail-safety-review .mail-safety-hint{margin:12px 0}
.mail-safety-review>summary,.mail-safety-hint{color:#8e1822}.mail-safety-reasons{color:#8e1822;line-height:1.5;padding-left:24px}
@media(max-width:500px){.delivery-failure-dialog{padding:16px;gap:12px}.delivery-failure-dialog footer button{flex:1}.delivery-failure-dialog>p{flex-shrink:0}.delivery-failure-dialog input{min-width:0;width:100%;box-sizing:border-box}}

.delivery-failure-row-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px}.delivery-failure-row-head>strong{flex:1;min-width:120px}.delivery-failure-tools{display:flex;flex-wrap:wrap;gap:8px}.delivery-failure-progress{display:grid;gap:6px;background:#edf5fa;border:1px solid #c3d7e8;border-radius:6px;padding:12px;flex-shrink:0;overflow-wrap:anywhere}.delivery-failure-progress small{font-size:.85rem}
