:root{--bg:#f3efe6;--ink:#1c1a16;--accent:#0f5c4c;--line:#d7d0c3;--panel:#fffdf8;--muted:#5c564c;font-family:Segoe UI,Helvetica Neue,sans-serif}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:radial-gradient(circle at top left,#e8f2ee 0,transparent 40%),linear-gradient(180deg,#f7f3ea,#efe8da);min-height:100vh}.topbar{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid var(--line);background:rgba(255,253,248,.85);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.topbar nav{display:flex;gap:1rem}.topbar a{color:var(--accent);text-decoration:none;font-weight:600}.main{max-width:960px;margin:0 auto;padding:2rem 1.5rem 4rem}.main:has(.newsletter-editor){max-width:1280px}h1{font-size:clamp(1.8rem,3vw,2.4rem);margin:0 0 .5rem}.lead{color:var(--muted);margin:0 0 1.5rem;max-width:42rem}.grid{display:grid;grid-gap:1rem;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.panel{background:var(--panel);border:1px solid var(--line);padding:1.25rem}.panel h2{margin:0 0 .5rem;font-size:1.1rem}.panel p{margin:0;color:var(--muted);font-size:.95rem}.editor-shell{border:1px solid var(--line);background:var(--panel);min-height:280px}.editor-toolbar{display:flex;gap:.5rem;padding:.75rem;border-bottom:1px solid var(--line)}.editor-toolbar button{border:1px solid var(--line);background:#fff;padding:.35rem .7rem;cursor:pointer}.ProseMirror{min-height:220px;padding:1rem;outline:none}.form{display:grid;grid-gap:.75rem;gap:.75rem}.form input,.form textarea{width:100%;border:1px solid var(--line);padding:.7rem;font:inherit;background:#fff}.btn,.form button{justify-self:start;border:0;background:var(--accent);color:#fff;padding:.65rem 1rem;font:inherit;cursor:pointer;transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease,opacity .18s ease}.btn:hover:not(:disabled),.form button:hover:not(:disabled){background:#0c4a3d;box-shadow:0 2px 8px rgba(15,92,76,.22)}.btn:active:not(:disabled),.form button:active:not(:disabled){transform:scale(.98);box-shadow:none}.btn:focus-visible,.form button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.btn:disabled,.form button:disabled{opacity:.55;cursor:not-allowed;box-shadow:none;transform:none}.muted{color:var(--muted);font-size:.9rem}.ok-msg{color:var(--accent)}.error-msg,.ok-msg{margin:0;font-size:.95rem}.error-msg{color:#9b2c2c}.warn-banner{margin:0 0 1rem;padding:.85rem 1rem;border:1px solid #c4a35a;background:#fff6df;color:#5c4518;font-size:.95rem;line-height:1.45}.warn-banner code{font-size:.88em}.success-msg{margin:0;color:#0f5c4c;font-size:.95rem;font-weight:600}.confirm-modal-backdrop{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:1rem;background:rgba(28,26,22,.45)}.confirm-modal{width:min(440px,100%);margin:0;box-shadow:0 12px 40px rgba(28,26,22,.22)}.confirm-modal h2{margin:0;font-size:1.15rem}.btn-secondary{border:1px solid var(--line)!important;background:#fff!important;color:var(--ink)!important}.btn-secondary:hover:not(:disabled){background:#f3efe6!important;border-color:var(--accent)!important;color:var(--accent)!important;box-shadow:0 1px 4px rgba(28,26,22,.08)}.btn-secondary:active:not(:disabled){background:#ebe4d6!important;transform:scale(.98)}.btn-danger{border:1px solid #b33a3a!important;background:#9b2c2c!important;color:#fff!important}.btn-danger:hover:not(:disabled){background:#7a2222!important;border-color:#7a2222!important;box-shadow:0 2px 8px rgba(155,44,44,.22)}.btn-danger:active:not(:disabled){background:#6b1d1d!important;transform:scale(.98)}.subscribers-toolbar label{display:block}.subscribers-filters{display:flex;flex-wrap:wrap;gap:1rem 1.5rem;align-items:flex-end}.list-create-row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.list-create-row input{flex:1 1 12rem;min-width:10rem;max-width:28rem}.list-manage{list-style:none;margin:0;padding:0}.list-manage li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem;padding:.55rem 0;border-bottom:1px solid var(--line)}.list-manage li:last-child{border-bottom:0}.list-checkboxes{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem}.list-check{display:inline-flex!important;align-items:center;gap:.4rem;margin:0!important;font-weight:500;cursor:pointer}.list-tags{display:inline-flex;flex-wrap:wrap;gap:.3rem}.list-tag{display:inline-block;padding:.15rem .45rem;border:1px solid var(--line);background:#f3f1eb;font-size:.82rem;font-weight:600;color:var(--ink)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.subscribers-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;margin-top:.9rem;padding-top:.75rem;border-top:1px solid var(--line)}.data-table{width:100%;border-collapse:collapse;font-size:.95rem}.data-table td,.data-table th{text-align:left;padding:.55rem .4rem;border-bottom:1px solid var(--line)}.data-table th{font-weight:600;color:var(--muted)}.page-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}.page-actions .lead{margin-bottom:0}.stat-value{font-size:2rem;font-weight:700;line-height:1.1;margin:.35rem 0;color:var(--ink)}.stat-link{display:inline-block;margin-top:.75rem;color:var(--accent);font-weight:600;text-decoration:none}.stat-link:hover{text-decoration:underline}.status-badge{display:inline-block;padding:.2rem .55rem;border:1px solid var(--line);background:#fff;font-size:.85rem;font-weight:600;color:var(--muted)}.status-badge.draft{color:#6b5a2e;background:#f7efd8;border-color:#e4d6ad}.status-badge.scheduled{color:#1e4a6e;background:#e5f0f8;border-color:#c5d9ea}.status-badge.completed,.status-badge.confirmed,.status-badge.sent{color:#0f5c4c;background:#e4f3ee;border-color:#b9d9cf}.status-badge.queued,.status-badge.sending{color:#1e4a6e;background:#e5f0f8;border-color:#c5d9ea}.status-badge.paused,.status-badge.pending{color:#6b5a2e;background:#f7efd8;border-color:#e4d6ad}.status-badge.cancelled,.status-badge.failed,.status-badge.skipped,.status-badge.unsubscribed{color:#7a2e2e;background:#f8e5e5;border-color:#e5c5c5}.row-actions{display:flex;flex-wrap:wrap;gap:.5rem}.row-actions a,.row-actions button{font-size:.9rem}a.btn{display:inline-block;text-decoration:none;border:0;background:var(--accent);color:#fff;padding:.65rem 1rem;font:inherit;font-weight:600;cursor:pointer}.form label{display:block;margin-bottom:-.35rem}.gjs-host{min-height:72vh;border:1px solid var(--line);background:#fff;overflow:hidden}.newsletter-editor .gjs-cv-canvas,.newsletter-editor .gjs-cv-canvas__frames,.newsletter-editor .gjs-frame-wrapper{overflow-x:hidden!important}.newsletter-editor .gjs-frame{max-width:100%}.newsletter-editor .gjs-one-bg{background-color:#fffdf8}.newsletter-editor .gjs-two-color{color:var(--ink)}.newsletter-editor .gjs-three-bg{background-color:var(--accent);color:#fff}.newsletter-editor .gjs-four-color,.newsletter-editor .gjs-four-color-h:hover{color:var(--accent)}.newsletter-editor .gjs-pn-panel{border-color:var(--line)}.newsletter-editor .gjs-block{min-height:auto;padding:.55rem;font-size:.85rem;font-weight:600;color:var(--ink);border:1px solid var(--line);background:#fff;width:auto;flex-basis:45%;transition:border-color .18s ease,background-color .18s ease,transform .18s ease,box-shadow .18s ease}.newsletter-editor .gjs-block:hover{box-shadow:0 2px 8px rgba(28,26,22,.08);border-color:var(--accent);background:#f7faf8;transform:translateY(-1px)}.newsletter-editor .gjs-block:active{transform:scale(.98);box-shadow:none}.newsletter-editor .gjs-block-category .gjs-title,.newsletter-editor .gjs-category-title,.newsletter-editor .gjs-layer-title,.newsletter-editor .gjs-sm-sector .gjs-sm-sector-title{background:#f3efe6;color:var(--ink);border-color:var(--line);font-weight:600}.newsletter-editor code{font-size:.85em;background:#f3efe6;padding:.1rem .35rem}.newsletter-editor .gjs-pn-btn{transition:color .18s ease,background-color .18s ease,transform .18s ease,opacity .18s ease;border-radius:4px}.newsletter-editor .gjs-pn-btn:hover{background-color:rgba(15,92,76,.1);color:var(--accent)}.newsletter-editor .gjs-pn-btn:active{transform:scale(.94)}.newsletter-editor .gjs-pn-btn.gjs-pn-active{background-color:rgba(15,92,76,.16);color:var(--accent)}.newsletter-editor .gjs-pn-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.gjs-mdl-dialog{border-radius:8px;overflow:hidden;box-shadow:0 12px 40px rgba(28,26,22,.18)}.gjs-am-file-uploader>form{border:2px dashed #b8b0a0!important;border-radius:8px!important;background:#f7f3ea!important;color:var(--ink)!important;cursor:pointer;min-height:140px;display:flex!important;align-items:center;justify-content:center;transition:border-color .2s ease,background-color .2s ease,color .2s ease,transform .2s ease,box-shadow .2s ease!important}.gjs-am-file-uploader>form.gjs-am-hover,.gjs-am-file-uploader>form:hover,form.gjs-am-hover{border:2px solid #0f5c4c!important;background:#e8f2ee!important;background-color:#e8f2ee!important;color:#0f5c4c!important;transform:scale(1.015)!important;box-shadow:0 4px 14px rgba(15,92,76,.12)!important}.gjs-am-file-uploader>form:active{transform:scale(.99);box-shadow:none}.gjs-am-file-uploader>form:focus-within{border:2px solid var(--accent)!important;outline:2px solid rgba(15,92,76,.35);outline-offset:2px}.gjs-am-file-uploader>form.wt-am-busy,.gjs-am-file-uploader>form.wt-am-busy:hover,form.wt-am-busy{pointer-events:none;cursor:wait;border:2px solid var(--accent)!important;background:#e8f2ee!important;transform:none!important;box-shadow:none!important;opacity:.85}#gjs-am-title{font-weight:600;font-size:.95rem;transition:color .18s ease;pointer-events:none}.gjs-am-add-asset .gjs-am-add-field input,.gjs-am-add-asset input{transition:border-color .18s ease,box-shadow .18s ease}.gjs-am-add-asset input:focus,.gjs-am-add-asset input:focus-visible{border-color:var(--accent);outline:2px solid rgba(15,92,76,.3);outline-offset:1px}.gjs-am-add-asset button,.gjs-mdl-dialog .gjs-btn-prim{background:var(--accent)!important;color:#fff!important;border:0!important;border-radius:4px;font-weight:600;cursor:pointer;transition:background-color .18s ease,transform .18s ease,box-shadow .18s ease,opacity .18s ease}.gjs-am-add-asset button:hover:not(:disabled),.gjs-mdl-dialog .gjs-btn-prim:hover:not(:disabled){background:#0c4a3d!important;box-shadow:0 2px 8px rgba(15,92,76,.22)}.gjs-am-add-asset button:active:not(:disabled),.gjs-mdl-dialog .gjs-btn-prim:active:not(:disabled){transform:scale(.97);box-shadow:none}.gjs-am-add-asset button:focus-visible,.gjs-mdl-dialog .gjs-btn-prim:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.gjs-am-add-asset button:disabled,.gjs-mdl-dialog .gjs-btn-prim:disabled{opacity:.55;cursor:wait;transform:none;box-shadow:none}.gjs-am-asset{border-radius:6px;transition:background-color .2s ease,box-shadow .2s ease,transform .2s ease,border-color .2s ease;border:1px solid transparent}.gjs-am-asset:hover{background-color:#e8f2ee;border-color:rgba(15,92,76,.25);transform:translateY(-1px);box-shadow:0 2px 8px rgba(28,26,22,.06)}.gjs-am-asset:active{transform:scale(.99)}.gjs-am-asset.gjs-am-highlight,.gjs-am-asset.wt-am-asset-new{animation:wt-am-asset-pop .7s ease;background-color:#e4f3ee;border-color:var(--accent);box-shadow:0 0 0 2px rgba(15,92,76,.2)}@keyframes wt-am-asset-pop{0%{transform:scale(.94);opacity:.55}55%{transform:scale(1.02);opacity:1}to{transform:scale(1);opacity:1}}.wt-am-upload-status{display:none;align-items:center;gap:.55rem;margin:.35rem 0 .85rem;padding:.55rem .75rem;border-radius:6px;font-size:.9rem;font-weight:600;line-height:1.35;transition:background-color .18s ease,color .18s ease,border-color .18s ease,opacity .18s ease}.wt-am-upload-status[data-state=error],.wt-am-upload-status[data-state=success],.wt-am-upload-status[data-state=uploading]{display:flex}.wt-am-upload-status[data-state=uploading]{background:#e8f2ee;color:var(--accent);border:1px solid #b9d9cf}.wt-am-upload-status[data-state=success]{background:#e4f3ee;color:#0f5c4c;border:1px solid #b9d9cf}.wt-am-upload-status[data-state=error]{background:#f8e5e5;color:#9b2c2c;border:1px solid #e5c5c5}.wt-am-spinner{width:1rem;height:1rem;border:2px solid rgba(15,92,76,.25);border-top:2px solid var(--accent);border-radius:50%;flex-shrink:0;animation:wt-am-spin .7s linear infinite}@keyframes wt-am-spin{to{transform:rotate(1turn)}}.gjs-am-assets-cont{border-radius:8px}.gjs-mdl-btn-close{transition:opacity .18s ease,transform .18s ease}.gjs-mdl-btn-close:hover{opacity:1;transform:scale(1.08)}.newsletter-editor .wt-ai-actions{flex-wrap:wrap;gap:.5rem;align-items:center}.newsletter-editor .wt-ai-tone-group{display:inline-flex;align-items:stretch;gap:.35rem}.newsletter-editor .wt-ai-tone-select{border:1px solid var(--line);background:#fff;font:inherit;padding:.45rem .55rem;min-width:8.5rem;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease}.newsletter-editor .wt-ai-tone-select:hover:not(:disabled){border-color:var(--accent)}.newsletter-editor .wt-ai-tone-select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.newsletter-editor .wt-ai-selection-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1rem;border-left:3px solid var(--accent)}.newsletter-editor .wt-ai-selection-label{font-weight:600;color:var(--ink)}.newsletter-editor .wt-ai-flash{color:var(--accent);font-weight:600;font-size:.9rem;animation:wt-ai-pulse 1.2s ease}.newsletter-editor .wt-ai-flash-msg{animation:wt-ai-pulse 1.2s ease}.newsletter-editor input.wt-ai-adopted{border-color:var(--accent)!important;box-shadow:0 0 0 2px rgba(15,92,76,.18);transition:box-shadow .2s ease,border-color .2s ease}.newsletter-editor .wt-ai-prompt-dialog textarea{border:1px solid var(--line);padding:.7rem;font:inherit;resize:vertical}.newsletter-editor .gjs-host.wt-ai-busy{opacity:.92;pointer-events:none}@keyframes wt-ai-pulse{0%{opacity:.35}30%{opacity:1}to{opacity:1}}