/* v0.4.0 Messages Center — independent of the approved public homepage */
.msg-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0 28px}
.msg-metrics>div{display:flex;flex-direction:column;gap:8px;padding:20px 24px;border:1px solid rgba(98,205,233,.24);border-radius:15px;background:linear-gradient(145deg,rgba(16,62,108,.8),rgba(12,43,82,.62))}
.msg-metrics span{font-size:12px;letter-spacing:.04em;color:#a7cce3}.msg-metrics strong{font-size:29px;color:#f8fcff}
.msg-filter{display:flex;flex-wrap:wrap;align-items:end;gap:12px}
.msg-filter label{display:grid;gap:7px;flex:1 1 160px;max-width:270px;color:#badcf2;font-weight:650;font-size:12px}
.msg-filter select,.msg-filter input{width:100%;min-height:44px;padding:10px 12px;color:#eaf8ff;background:#0b3155;border:1px solid #2e7794;border-radius:10px}
.msg-filter button,.msg-filter>a{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.msg-list{margin-top:24px;display:grid;gap:10px}.msg-group-label{font-size:16px;color:#56e0e9;letter-spacing:.02em;margin:20px 0 3px}
.msg-list-item{display:block;padding:18px 20px;border-radius:14px;border:1px solid rgba(109,199,233,.19);background:rgba(16,58,104,.55);transition:background .15s,border .15s,transform .15s}
.msg-list-item:hover{background:rgba(27,85,140,.62);border-color:#48dce8;transform:translateY(-1px)}
.msg-item-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.msg-item-top time,.msg-item-top>span:last-child{margin-left:auto;color:#a8c5dc;font-size:12px}
.msg-list-item strong{font-size:16px}.msg-unread-badge,.msg-muted-badge{background:#25e2e8;color:#062e44;font-size:10px;font-weight:800;padding:4px 8px;border-radius:50px}
.msg-muted-badge{background:#254866;color:#c2dbeb}.msg-item-email{margin-top:5px;color:#a9c5dd;font-size:12px}.msg-list-item p{line-height:1.65;font-size:13px;color:#dfedfb;max-width:900px;margin:10px 0 0}
.msg-detail-grid{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:22px}.msg-detail-grid a:not(.button):not(.small-btn){color:#4ae3ee}
.msg-original{padding:20px 22px;background:#082d55;border-left:3px solid #2be2e9;white-space:pre-wrap;line-height:1.8;border-radius:10px;margin:18px 0;color:#e6f4ff;word-break:break-word}
.msg-actions,.msg-actions form{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.msg-actions{margin:22px 0 30px}
.msg-compose{margin-top:18px}.msg-compose input[readonly]{opacity:.8}.msg-compose input[type=file]{padding:12px;background:#0b3155}
.msg-card-divider{height:1px;background:rgba(144,202,250,.2);margin:35px 0 28px}
.msg-history-entry{padding:15px 0;border-bottom:1px solid rgba(144,202,250,.17);display:grid;gap:6px}
.msg-history-entry strong{font-size:13px}.msg-history-entry small{color:#b1c9dc}.msg-history-entry p{white-space:pre-wrap;line-height:1.65;overflow-wrap:anywhere;margin:3px 0}
.msg-status{padding:3px 9px;border-radius:99px;font-size:11px;width:max-content;color:#d3f0ff;border:1px solid #5787ad}
.msg-status.ok{border-color:#28bf93;color:#abf5d7}.msg-status.failed{border-color:#e37e73;color:#ffc7bd}
.msg-warning{padding:16px 20px;margin:14px 0 24px;border-radius:12px;border:1px solid #dbab4c;background:rgba(167,110,27,.13);color:#ffe4ac;font-size:14px;line-height:1.6}
html[data-theme=light] .msg-list-item,html[data-theme=light] .msg-metrics>div{background:#fff;color:#133d58;border-color:#b4d8e5}
html[data-theme=light] .msg-item-email,html[data-theme=light] .msg-list-item p,html[data-theme=light] .msg-metrics span{color:#355d76}
html[data-theme=light] .msg-original{background:#eff8ff;color:#123b5b}
html[data-theme=light] .msg-filter input,html[data-theme=light] .msg-filter select{background:#fff;color:#123b5b}
@media(max-width:850px){.msg-detail-grid{grid-template-columns:1fr}.msg-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.msg-metrics>div{padding:15px}.msg-metrics strong{font-size:24px}}
@media(max-width:530px){.msg-metrics{grid-template-columns:1fr}.msg-filter label{max-width:none;flex:1 1 100%}}
