/* V17 — central de operações e correio, responsiva, compatível com V16. */
.site-admin main.container{max-width:1240px;padding-top:16px}
.site-admin .admin-heading{margin-top:22px;margin-bottom:20px}
.site-admin .admin-heading h1{font-size:clamp(29px,3vw,43px);letter-spacing:-.04em;line-height:1.12}
.site-admin .admin-heading .eyebrow{font-size:11px;letter-spacing:.12em}
.site-admin .admin-heading p{max-width:700px;color:#52637b;font-size:14px}
.site-admin .card{border-color:#dde6f1;box-shadow:0 8px 28px rgba(9,38,95,.035)}
.site-admin .btn:disabled{background:#e7ebf1!important;color:#718096!important;border-color:#d8dfe8!important;box-shadow:none;cursor:not-allowed;transform:none}
.admin-command-panel{margin:12px 0 24px;padding:clamp(18px,2.6vw,30px)!important;background:linear-gradient(145deg,#fff,#f7fbff)!important}
.admin-command-title h2{font-size:clamp(21px,2.3vw,27px);margin:5px 0}
.admin-command-title p{font-size:13px;margin:0 0 17px}
.admin-command-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.admin-command-link{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #dce6f1;border-radius:15px;min-height:94px;padding:15px 12px;color:#0a2a62;text-decoration:none!important;min-width:0}
.admin-command-link:hover{border-color:#9cb9db;box-shadow:0 7px 20px rgba(9,38,95,.085)}
.admin-command-link>span:nth-child(2){display:grid;gap:4px;flex:1;min-width:0}
.admin-command-link strong{font-size:13px;line-height:1.25}
.admin-command-link small{font-size:11px;color:#63748b;line-height:1.45}
.admin-command-icon{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:12px;background:#eaf1fc;color:#153e81;font-size:20px}
.admin-command-link:first-child .admin-command-icon{background:#ffeaec;color:#be2135}
.admin-command-link>span:last-child{font-size:18px;color:#778bab}
.comm-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0}
.comm-stat{display:flex;flex-direction:column;gap:4px;border:1px solid #dde6f2;background:#fff;padding:19px 20px;border-radius:17px;min-width:0;box-shadow:0 4px 18px rgba(9,38,95,.035)}
.comm-stat:before{content:'';height:4px;background:#003b83;width:42px;border-radius:8px;margin-bottom:9px}
.comm-stat-pending:before{background:#e0a114}
.comm-stat:nth-child(2):before{background:#149150}
.comm-stat:nth-child(3):before{background:#d72a3b}
.comm-stat span{font-size:12px;color:#53647b;font-weight:700}
.comm-stat strong{color:#062b62;font-size:clamp(26px,3vw,35px);font-variant-numeric:tabular-nums;letter-spacing:-.05em}
.comm-stat small{color:#687b91;font-size:11px;line-height:1.45}
.comm-control{border-left:5px solid #0c9653!important;display:grid;gap:14px;padding:clamp(20px,2.7vw,30px)!important;background:linear-gradient(120deg,#fff 62%,#f1fbf6)!important}
.comm-control h2{font-size:clamp(21px,2.7vw,29px);margin:5px 0 8px}
.comm-control p{font-size:14px;color:#4b6077;line-height:1.6;margin:0}
.comm-control-top{display:flex;align-items:start;justify-content:space-between;gap:15px}
.comm-live-label{display:inline-flex;align-items:center;gap:7px;font-size:11px;border-radius:100px;padding:8px 12px;white-space:nowrap;font-weight:800}
.comm-live-label:before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor}
.comm-live-label.is-active{color:#066c3d;background:#e2f6eb}
.comm-live-label.is-stale{color:#906017;background:#fff3d9}
.comm-cron-warning{background:#fff8e6;border:1px solid #eedca7;border-radius:11px;padding:12px 14px!important;color:#78561c!important}
.comm-main-actions,.comm-compose-actions,.comm-auto-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.comm-main-actions form,.comm-auto-actions form{margin:0}
.comm-control .comm-send-now{min-width:270px;min-height:54px;font-size:15px;box-shadow:0 6px 14px rgba(216,32,50,.14)}
.comm-compose{padding:clamp(20px,3vw,32px)!important;margin-top:18px}
.comm-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.comm-section-title h2{font-size:clamp(20px,2.6vw,27px);margin:4px 0 0}
.comm-compose form{display:grid;gap:15px}
.comm-compose label{display:grid;gap:7px;font-weight:700;color:#1e3550}
.comm-compose input,.comm-compose select,.comm-compose textarea{width:100%;background:#fbfdff;border:1px solid #bfcde0}
.comm-compose [hidden]{display:none!important}
.comm-compose textarea{min-height:160px;line-height:1.55}
.comm-privacy{background:#eef7ff;border:1px solid #cde0f5;border-radius:12px;padding:12px 15px;font-size:13px;color:#405774;margin:0}
.comm-compose-actions .btn{flex:0 1 auto}
.comm-list-card{padding:0!important;overflow:hidden}
.comm-scroll{overflow:auto}
.comm-delivery-table{min-width:680px;width:100%}
.comm-delivery-table th{background:#eef4fb}
.comm-delivery-table td{font-size:12px}
.comm-delivery-table td:first-child{max-width:440px;overflow-wrap:anywhere}
.comm-delivery-table td small{display:block;margin-top:4px;font-size:11px;line-height:1.5}
.comm-status{font-size:11px;font-weight:800;display:inline-flex;padding:6px 9px;border-radius:100px;white-space:nowrap}
.comm-status.status-pending{color:#79530d;background:#fff2d5}
.comm-status.status-sending{color:#144e9d;background:#eaf2ff}
.comm-status.status-sent{color:#057840;background:#e1f7e9}
.comm-status.status-failed{color:#ac2633;background:#fff0f1}
.comm-error{color:#ae2b37!important;font-weight:650}
.comm-automatic{margin-top:20px}
.comm-automatic .comm-section-title .btn{font-size:12px}
.comm-auto-stats{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.comm-auto-stats>span{background:#f0f5fb;border:1px solid #e0e9f4;border-radius:11px;padding:11px 13px;font-size:12px;color:#4b6078}
.comm-auto-stats b{font-size:17px;margin-left:4px;color:#062b62}
.comm-auto-actions{margin:16px 0 20px}
@media(max-width:1050px){.admin-command-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 .site-admin main.container{width:calc(100% - 24px);padding-top:10px}
 .site-admin .admin-heading h1{font-size:clamp(27px,7.7vw,35px)}
 .comm-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:16px 0}
 .comm-stat{padding:14px;min-height:140px}.comm-stat strong{font-size:28px}
 .comm-control-top{flex-direction:column}.comm-live-label{align-self:flex-start}
 .comm-main-actions,.comm-compose-actions,.comm-auto-actions{flex-direction:column;align-items:stretch}
 .comm-main-actions form,.comm-compose-actions button,.comm-auto-actions form{width:100%}
 .comm-main-actions .btn,.comm-compose-actions button,.comm-auto-actions .btn{width:100%;white-space:normal;min-height:49px}
 .comm-compose form{gap:13px}
 .comm-scroll{overflow:visible}
 .comm-delivery-table{width:100%;min-width:0!important;display:block}
 .comm-delivery-table thead{display:none}
 .comm-delivery-table tbody{display:grid;gap:9px;padding:12px}
 .comm-delivery-table tr{display:block;border:1px solid #e2e9f2;border-radius:13px;padding:6px 12px;background:#fff}
 .comm-delivery-table td{display:block;border:0;padding:9px 0;max-width:none!important;overflow-wrap:anywhere}
 .comm-delivery-table td:not(:last-child){border-bottom:1px solid #e9eef5}
 .comm-delivery-table td:before{content:attr(data-label);display:block;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#6b7e99;margin:0 0 5px}
 .admin-command-grid{grid-template-columns:minmax(0,1fr);gap:9px}
 .admin-command-link{min-height:73px;padding:13px 14px}
 .comm-automatic .comm-section-title .btn{width:100%}
}
@media(prefers-reduced-motion:reduce){.admin-command-link{transition:none}}
