.dashboard-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;max-width:1300px;margin:auto;padding:24px}.dashboard-nav{display:flex;flex-direction:column;gap:6px;align-self:start;padding:16px;background:#f5f8f7;border-radius:12px}.dashboard-nav a{padding:9px;text-decoration:none;color:inherit;border-radius:6px}.dashboard-nav a[aria-current=page]{background:#dcebe4;font-weight:700}.dashboard-main{min-width:0}.dashboard-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.dashboard-card{border:1px solid #dce4e0;border-radius:12px;padding:20px;margin-bottom:16px;overflow-wrap:anywhere}.dashboard-card h2{margin-top:0}.dashboard-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.dashboard-main input:not([type=checkbox]),.dashboard-main textarea,.dashboard-main select{width:100%;max-width:100%;padding:10px;border:1px solid #b6c6bf;border-radius:6px}.dashboard-main label{display:block;margin:12px 0}.dashboard-main textarea{min-height:120px}.dashboard-preview{padding:12px;background:#fff4d8;border-radius:8px}.dashboard-status{min-height:24px;white-space:pre-wrap}.dashboard-meta{color:#52665c;font-size:.9rem}.dashboard-main button{cursor:pointer}.dashboard-main pre{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:760px){.dashboard-layout{grid-template-columns:1fr;padding:16px}.dashboard-nav{flex-direction:row;flex-wrap:wrap}.dashboard-nav a{font-size:.88rem}.dashboard-cards{grid-template-columns:1fr}}
.workspace-nav-toggle{display:none}
@media(max-width:760px){
.dashboard-nav[data-mobile-nav=compact]{flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:2px;padding:8px}
.dashboard-nav[data-mobile-nav=compact][data-workspace-nav-open=false]>a{display:none}
.dashboard-nav[data-mobile-nav=compact] .workspace-nav-toggle{display:flex;align-items:center;gap:10px;width:100%;padding:12px 14px;border:1px solid #dce4e0;border-radius:10px;background:#fff;color:#142535;font-weight:800;font-size:14px;text-align:left;cursor:pointer}
.dashboard-nav[data-mobile-nav=compact] .workspace-nav-toggle:focus-visible{outline:3px solid #1e6fd9;outline-offset:2px}
.dashboard-nav[data-mobile-nav=compact] .workspace-nav-chevron{margin-left:auto;transition:transform .15s ease}
.dashboard-nav[data-mobile-nav=compact][data-workspace-nav-open=true] .workspace-nav-chevron{transform:rotate(180deg)}
.dashboard-nav[data-mobile-nav=compact] a{margin-top:2px}
}
/* Localized dashboard/workspace action spacing */
.workspace-actions{margin:10px 0}
.workspace-actions .btn{margin:0}
.dashboard-actions+.dashboard-actions{margin-top:0}
@media(max-width:760px){.dashboard-card h2{overflow-wrap:anywhere}.workspace-actions .btn{flex:1 1 140px}}
@media(max-width:360px){.dashboard-layout{padding:10px}.dashboard-card{padding:14px}.workspace-actions .btn{padding:10px 11px}}
/* Newsletter administration: scoped to the workspace dashboard only. */
.newsletter-section{display:grid;gap:4px}
.newsletter-section .dashboard-card{margin-bottom:12px}
.newsletter-section h3{margin:18px 0 8px}
.newsletter-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}
.newsletter-stat{display:flex;flex-direction:column;gap:4px;min-width:0;padding:14px;border:1px solid #dce4e0;border-radius:10px;background:#f7faf9}
.newsletter-stat-value{font-size:1.6rem;font-weight:800;line-height:1.1;color:#142535;overflow-wrap:anywhere}
.newsletter-stat-label{font-size:.85rem;color:#52665c;overflow-wrap:anywhere}
.newsletter-provider{margin:8px 0;padding:10px 12px;border-radius:8px;background:#e7f5ec;color:#18523a}
.newsletter-alert{margin:8px 0;padding:10px 12px;border:1px solid #e6b3a9;border-radius:8px;background:#fff1ee;color:#7a2d1f}
.newsletter-quota-note,.newsletter-hint,.newsletter-preview-note{color:#52665c;font-size:.9rem}
.newsletter-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.newsletter-section .newsletter-toolbar .btn{min-width:88px}
.newsletter-section .newsletter-actions{margin-top:14px}
.newsletter-section .btn:disabled,.newsletter-section button[disabled]{opacity:.55;cursor:not-allowed;filter:grayscale(.35)}
.newsletter-preview{max-height:420px;overflow:auto;padding:16px;border:1px solid #dce4e0;border-radius:10px;background:#fff}
.newsletter-preview h3,.newsletter-preview h4{margin:0 0 10px}
.newsletter-preview p{margin:0 0 12px;overflow-wrap:anywhere}
.newsletter-preview ul{margin:8px 0;padding-left:20px}
.newsletter-preview li{margin-bottom:8px;overflow-wrap:anywhere}
.newsletter-preview img{display:block;max-width:100%;height:auto;margin-top:6px;border-radius:6px}
.newsletter-list{display:grid;gap:0}
.newsletter-section .newsletter-list .dashboard-card{margin-bottom:10px;padding:14px}
.newsletter-metric{font-weight:700;color:#334d40}
.newsletter-history .newsletter-disabled-note{color:#7a2d1f;font-size:.9rem}
@media(max-width:900px){
.newsletter-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.newsletter-section .newsletter-list .dashboard-card{padding:12px}
.newsletter-preview{max-height:340px}
.newsletter-section .newsletter-actions .btn{flex:1 1 180px}
}
@media(max-width:600px){
.newsletter-stats{grid-template-columns:1fr;gap:8px}
.newsletter-stat{padding:10px 12px}
.newsletter-stat-value{font-size:1.35rem}
.newsletter-section .newsletter-toolbar .btn,.newsletter-section .newsletter-actions .btn{flex:1 1 100%;min-width:0}
.newsletter-preview{max-height:60vh;padding:12px}
.newsletter-section .newsletter-list .dashboard-card{padding:10px}
}
