.email-control{max-width:1480px;margin:auto}.email-control-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px}.email-control-head h2{font-size:clamp(27px,3vw,38px);margin:8px 0}.email-control-head p{color:#70819b;max-width:650px;line-height:1.6;margin:0}.email-status{white-space:nowrap;display:flex;align-items:center;gap:9px;border:1px solid #d7e4f3;border-radius:999px;padding:10px 14px;background:#fff;font-weight:700;color:#516683;font-size:12px}.email-status i,.email-template-item i{width:8px;height:8px;border-radius:50%;background:#dba641;display:block;flex:none}.email-status i.ready,.email-template-item i{background:#19ac83}.email-template-item i.paused{background:#aebbd0}.email-control-layout{display:grid;grid-template-columns:minmax(210px,260px) minmax(310px,1fr) minmax(340px,1.1fr);gap:18px;align-items:start}.email-control-layout>.admin-panel{margin:0;min-width:0}.email-template-list{padding:12px;display:grid;gap:5px}.email-template-item{width:100%;display:flex;align-items:center;gap:10px;text-align:start;border:1px solid transparent;background:transparent;border-radius:12px;padding:12px;cursor:pointer;color:#20334f}.email-template-item.active{background:#eef5ff;border-color:#b9d4ff}.email-template-item>span:nth-child(2){min-width:0;flex:1}.email-template-item b,.email-template-item small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.email-template-item b{font-size:13px}.email-template-item small{font-size:10px;color:#7f91aa;margin-top:3px;letter-spacing:.07em}.email-template-icon{width:32px;height:32px;display:grid;place-items:center;background:#e8f1ff;color:#0b63e9;border-radius:9px;flex:none}.email-editor,.email-preview{padding:22px}.email-editor-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px}.email-editor-head h3{margin:4px 0 0;font-size:20px}.email-template-state{font-size:11px;color:#19785d;background:#e6f7ef;padding:7px 10px;border-radius:999px}.email-editor form{display:grid;gap:15px}.email-editor form label{display:grid;gap:7px;color:#61738e;font-weight:700;font-size:12px}.email-editor form input:not([type=checkbox]),.email-editor form textarea{width:100%;box-sizing:border-box;border:1px solid #d7e2f0;border-radius:10px;background:#f8fbff;color:#172b49;padding:12px 13px;font:inherit;font-size:14px;min-height:44px}.email-editor form input:focus,.email-editor form textarea:focus{outline:2px solid #77aaff;outline-offset:1px}.email-editor form textarea{resize:vertical;line-height:1.55}.email-form-pair{display:grid;grid-template-columns:1fr 90px;gap:12px}.email-editor form input[type=color]{padding:5px;cursor:pointer}.email-editor form .email-enabled{display:flex;align-items:center;gap:9px;color:#274365}.email-form-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.email-form-actions button{min-height:42px;padding-inline:20px}.email-editor-note{font-size:11px;color:#8b9bb1;line-height:1.55;margin:16px 0 0}.email-preview iframe{width:100%;height:780px;border:1px solid #e0e9f5;border-radius:12px;background:#eef4fb}.email-loading{padding:40px}.email-loading h2{margin:0 0 10px}@media(max-width:1280px){.email-control-layout{grid-template-columns:220px minmax(0,1fr)}.email-preview{grid-column:1/-1}.email-preview iframe{height:680px}}@media(max-width:720px){.email-control-head{display:block}.email-status{width:max-content;max-width:100%;white-space:normal;margin-top:14px}.email-control-layout{display:block}.email-control-layout>.admin-panel{margin-bottom:15px}.email-template-list{display:flex;overflow:auto;scroll-snap-type:x mandatory}.email-template-item{min-width:190px;scroll-snap-align:start}.email-editor,.email-preview{padding:17px}.email-preview iframe{height:640px}} 
.email-report{margin:0 0 20px;padding:22px}.email-report-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.email-report-metrics article{background:#f7faff;border:1px solid #e1eaf6;border-radius:12px;padding:15px}.email-report-metrics small,.email-report-metrics strong{display:block}.email-report-metrics small{color:#7184a0;font-size:12px}.email-report-metrics strong{color:#183451;font-size:25px;margin-top:5px}.email-report-table{overflow:auto;max-height:360px}.email-report-table table{width:100%;border-collapse:collapse;text-align:start;font-size:12px}.email-report-table th,.email-report-table td{padding:10px 12px;border-bottom:1px solid #e8eef6;white-space:nowrap;text-align:start}.email-template-group{display:grid;gap:4px}.email-template-group>span{font-size:10px;font-weight:800;letter-spacing:.12em;color:#879ab3;padding:12px 10px 5px;text-transform:uppercase}@media(max-width:1100px){.email-report-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.email-report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.email-report{padding:16px}.email-template-group{display:flex;align-items:center}.email-template-group>span{min-width:90px}}
.email-subtabs{display:flex;gap:8px;margin:0 0 20px;padding:6px;border:1px solid #dce8f5;border-radius:14px;background:#f6f9fd;width:max-content;max-width:100%}.email-subtabs button{border:0;background:transparent;color:#6c7f99;border-radius:10px;padding:11px 20px;font:700 13px var(--font);cursor:pointer}.email-subtabs button.active{background:#fff;color:#075ff0;box-shadow:0 3px 12px #14396314}.marketing-head{display:flex;justify-content:space-between;gap:20px;margin:0 0 18px}.marketing-head h3{font-size:27px;margin:7px 0}.marketing-head p,.marketing-send p,.marketing-history p{color:#71839d;line-height:1.6}.marketing-audience-count{align-self:start;white-space:nowrap;background:#ecf7f3;color:#167c61;border:1px solid #c9e9df;border-radius:99px;padding:9px 14px;font-weight:700;font-size:12px}.marketing-grid{display:grid;grid-template-columns:210px minmax(300px,1fr) minmax(320px,1.1fr);gap:16px;align-items:start}.marketing-grid>.admin-panel{min-width:0;margin:0;padding:20px}.marketing-list{display:grid;gap:8px}.marketing-item{display:block;width:100%;text-align:start;background:#f8fbff;border:1px solid #e0e9f6;border-radius:10px;padding:12px;color:#203854;cursor:pointer;font:700 12px var(--font)}.marketing-item.active{background:#eaf3ff;border-color:#a8cafa;color:#075ff0}.marketing-item b,.marketing-item small{display:block}.marketing-item small{margin-top:4px;color:#7b90a9;font-size:10px}.marketing-editor h3,.marketing-preview h3,.marketing-send h3,.marketing-history h3{font-size:19px;margin:0 0 17px}.marketing-editor form{display:grid;gap:13px}.marketing-editor form label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#60748e}.marketing-editor form input:not([type=checkbox]),.marketing-editor form textarea{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #d7e2ef;border-radius:9px;background:#fafcff;color:#1c3150;font:500 13px var(--font)}.marketing-editor form textarea{min-height:120px;resize:vertical;line-height:1.55}.marketing-pair{display:grid;grid-template-columns:1fr 90px;gap:12px}.marketing-toggle{display:flex!important;align-items:center;gap:8px!important}.marketing-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:8px}.marketing-actions button{min-height:44px;padding-inline:20px}.marketing-actions small{color:#8293a9}.marketing-preview iframe{display:block;width:100%;height:770px;border:1px solid #e0e9f5;border-radius:12px;background:#edf4fd}.marketing-preview-empty{min-height:320px;display:grid;place-items:center;text-align:center;color:#8293a9;border:1px dashed #d3dfed;border-radius:12px;padding:24px}.marketing-send,.marketing-history{margin-top:18px;padding:22px}.marketing-segments{display:flex;gap:18px;margin:18px 0}.marketing-segments label{display:flex;align-items:center;gap:8px;font-weight:700;color:#344d69}.marketing-subscribers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:240px;overflow:auto}.marketing-subscribers label{display:flex;gap:9px;align-items:center;padding:10px;border:1px solid #dce6f1;border-radius:9px}.marketing-subscribers span{min-width:0}.marketing-subscribers b,.marketing-subscribers small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.marketing-subscribers small{font-size:10px;color:#7a8ba3}.marketing-history-table>div{display:grid;grid-template-columns:2fr 1fr 1fr 1.4fr;gap:12px;padding:11px 0;border-bottom:1px solid #e3ebf5;color:#405872;font-size:12px}.marketing-history-table time{color:#8595aa}body[data-theme=dark] .email-subtabs,body[data-theme=dark] .marketing-item,body[data-theme=dark] .marketing-preview-empty,body[data-theme=dark] .marketing-subscribers label{background:#142136;border-color:#2d4059;color:#e6efff}body[data-theme=dark] .email-subtabs button.active{background:#243b5d;color:#89b9ff}body[data-theme=dark] .marketing-editor form input:not([type=checkbox]),body[data-theme=dark] .marketing-editor form textarea{background:#0d182a;border-color:#30435e;color:#eff5ff}body[data-theme=dark] .marketing-head p,body[data-theme=dark] .marketing-send p{color:#b4c3d8}@media(max-width:1250px){.marketing-grid{grid-template-columns:200px 1fr}.marketing-preview{grid-column:1/-1}.marketing-preview iframe{height:660px}}@media(max-width:720px){.email-subtabs{width:100%}.email-subtabs button{flex:1;padding:10px;font-size:12px}.marketing-head{display:block}.marketing-audience-count{display:inline-block;margin-top:10px}.marketing-grid{display:block}.marketing-grid>.admin-panel{margin-bottom:14px}.marketing-preview iframe{height:620px}.marketing-subscribers{grid-template-columns:1fr}.marketing-history-table>div{grid-template-columns:1fr 1fr}.marketing-segments{flex-wrap:wrap}}
.email-palette-chip{display:inline-flex;align-items:center;min-height:42px;padding:0 16px;border:1px solid #dcdde5;border-radius:9px;background:#f5f5f7;color:#2e3a8c;font-size:13px;font-weight:700;letter-spacing:.04em}
