.mail-management-panel{padding:0;overflow:hidden}.mail-admin-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;padding:16px;border-bottom:1px solid #e8ddef;background:#fcf9ff}.mail-admin-filters label{margin:0;flex:0 1 220px}.mail-admin-filters label:nth-child(2){flex-basis:150px}.mail-admin-filters input,.mail-admin-filters select{min-height:40px;margin-top:6px}.mail-admin-filters p{margin:0 0 9px auto;font-size:13px;color:#a084b0}.mail-admin-filters b{color:#9d4ac5}.mail-admin-table table{min-width:1100px;table-layout:fixed}.mail-admin-table th{padding:13px 12px;background:#f7f1fb;white-space:nowrap}.mail-admin-table td{padding:14px 12px;vertical-align:middle;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.mail-admin-table th:first-child{width:26%}.mail-admin-table th:nth-child(2){width:15%}.mail-admin-table th:nth-child(3){width:11%}.mail-admin-table th:nth-child(4){width:11%}.mail-admin-table th:nth-child(5){width:13%}.mail-admin-table th:nth-child(6){width:8%}.mail-admin-table th:nth-child(7){width:13%}.mail-admin-table th:last-child{width:100px}.mail-admin-table td strong{font-weight:600}.mail-admin-table td:is(:first-child,:nth-child(7)){white-space:normal}.mail-admin-table td small{display:block;margin-top:4px;font-size:12px;line-height:1.55;color:#a088af}.mail-admin-table td:first-child small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.mail-admin-table td:last-child{white-space:nowrap}.mail-admin-table tbody tr:nth-child(even){background:#fcfaff}.mail-admin-state{display:inline-block;padding:3px 8px;border-radius:6px;font-size:12px;white-space:nowrap}.mail-admin-state.is-active{background:#e7f3ec;color:#5a9a79}.mail-admin-state.is-deleted{background:#f3ebf6;color:#ab91b8}.mail-admin-pagination{margin:0;padding:16px 18px}
#admin-dialog:has(.mail-editor){width:min(94vw,1060px);padding:24px;max-height:92dvh;overflow-y:auto}.mail-editor-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr);gap:24px}.mail-editor-fields{min-width:0}.mail-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.mail-editor-grid>label,.mail-editor-fields>label{margin:14px 0 0}.mail-field-full{grid-column:1/-1}.mail-editor textarea{display:block;width:100%;min-height:60px;margin-top:7px;padding:10px 12px;border:1px solid #e0d7e9;border-radius:9px;background:#fff;color:#44314f;font:14px/1.65 "Microsoft YaHei","PingFang SC",Arial,sans-serif;resize:vertical}.mail-editor input,.mail-editor select{min-height:40px;margin-top:7px}.mail-editor small{display:block;margin-top:5px;font-size:12px;line-height:1.5;color:#a68ab6}.mail-editor .mail-recipient-estimate{display:flex;align-items:flex-end;padding-bottom:10px;color:#aa8ebb;font-size:12px}.mail-editor-option{margin:18px 0 0;padding:3px 13px 13px;border:1px solid #e4d6ed;border-radius:10px;min-width:0}.mail-editor-option legend{padding:0 5px}.mail-option-toggle{display:inline-flex;gap:7px;align-items:center;margin:0;color:#835994;font-size:14px;font-weight:600}.mail-option-toggle input{display:inline-block;width:16px;height:16px;min-height:0;margin:0;accent-color:#a14bd0}.mail-editor-option p{font-size:12px;line-height:1.65;color:#9b80ab;margin:9px 0 0}.mail-reward-estimate{margin-top:10px;padding:9px 10px;background:#f7f0fb;border-radius:7px;font-size:12px;color:#9c6cb2}.mail-editor-preview{align-self:start;position:sticky;top:0;min-width:0;margin-top:14px;padding:17px;border:1px solid #d8c2e5;border-radius:13px;background:#e9e0f1;color:#684378}.mail-editor-preview>span{font-size:12px;color:#aa87bc}.mail-editor-preview h3{margin:15px 0 7px;font-size:19px;line-height:1.4;overflow-wrap:anywhere;color:#5c3e6c}.mail-editor-preview>small{color:#9574a6}.mail-editor-preview #mail-preview-body{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:15px;padding-top:14px;border-top:1px solid #d5c0e2;max-height:330px;overflow:auto;font-size:14px;line-height:1.8;color:#7f608f}.mail-preview-actions{display:grid;gap:8px;margin-top:18px}.mail-preview-actions button{border:1px solid #c5a1d9;border-radius:9px;padding:10px 12px;background:#a550cf;color:#fff;font-size:13px;opacity:1;cursor:default;overflow-wrap:anywhere}.mail-preview-actions button:last-child{background:linear-gradient(135deg,#f1d392,#dbb461);border-color:#d5ae63;color:#6b4d2d}.mail-editor-preview>p{margin:13px 0 0;font-size:11px;line-height:1.6;color:#a084ad}.mail-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:21px;padding-top:16px;border-top:1px solid #eadff1}.mail-editor-footer>span{font-size:12px;line-height:1.6;color:#a78db5}.mail-editor-footer>button{flex-shrink:0}.mail-delete-note p{font-size:14px;line-height:1.8;color:#957ba4}.mail-admin-detail{font-size:14px;color:#775588}.mail-detail-summary{display:flex;flex-wrap:wrap;gap:8px}.mail-detail-summary span{padding:5px 8px;border-radius:6px;background:#f5edf9;font-size:12px;color:#a17ab5}.mail-admin-detail h3{margin:22px 0 8px;font-size:22px;line-height:1.4;overflow-wrap:anywhere}.mail-admin-detail .mail-detail-meta{font-size:12px;color:#a38bb1}.mail-detail-body{white-space:pre-wrap;overflow-wrap:anywhere;padding:16px 0;border-top:1px solid #ecdfF3;font-size:14px;line-height:1.85}.mail-detail-link,.mail-detail-reward{padding:11px 12px;margin:10px 0;border:1px solid #e3d2ee;border-radius:8px;background:#faf5fd;overflow-wrap:anywhere;font-size:13px}.mail-detail-link small{display:block;font-size:12px;margin-top:6px;color:#aa8fba}.mail-admin-detail details{margin-top:15px;font-size:13px}.mail-admin-detail summary{cursor:pointer}.mail-recipient-ids{max-height:150px;overflow:auto;padding:10px;background:#fbf7fd;border-radius:7px;line-height:1.7;overflow-wrap:anywhere}
@media(max-width:900px){.mail-editor-layout{grid-template-columns:1fr}.mail-editor-preview{position:static}.mail-editor-preview #mail-preview-body{max-height:220px}.mail-admin-filters p{flex-basis:100%;margin:0}}
@media(max-width:600px){#admin-dialog:has(.mail-editor){padding:18px}.mail-editor-grid{grid-template-columns:minmax(0,1fr)}.mail-field-full{grid-column:auto}.mail-editor .mail-recipient-estimate{padding:10px 0 0}.mail-editor-footer{align-items:stretch;flex-direction:column}.mail-admin-filters{padding:12px;gap:10px}.mail-admin-filters label{flex:1 1 150px}}
.mail-editor-footer>span{flex:1;min-width:0}
.mail-editor-footer>.primary{flex:0 0 auto;width:auto;min-width:110px;margin:0}
@media(max-width:600px){.mail-editor-footer>.primary{width:100%}}
