/* Email Marketing: public page (plans) and the app at /tools/email-marketing/app. */
.info-main.em-wide{max-width:1240px}
.em-notice{background:#fff8e6;border:1px solid #f5d98a;color:#6b4e00;border-radius:10px;padding:10px 14px;font-size:14px;line-height:1.5}
.em-hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px;margin:18px 0 8px}
.em-terms-link{color:#1d5fd1;text-decoration:underline;font-size:14px}
.em-terms-row{font-size:14px;margin:-6px 0 18px;color:#677991}.em-terms-row a{color:#1d5fd1;text-decoration:underline}
.em-plans-title{font-size:22px;font-weight:800;color:#0b2b56;margin:30px 0 14px}

.em-primary,.em-secondary,.em-danger{display:inline-flex;align-items:center;justify-content:center;gap:7px;font:inherit;font-size:14px;font-weight:650;border-radius:9px;padding:9px 16px;cursor:pointer;border:1px solid transparent;text-decoration:none;white-space:nowrap}
.em-primary{background:#1d5fd1;color:#fff}.em-primary:hover{background:#174fb0}
.em-secondary{background:#fff;color:#10233f;border-color:#cfd9e8}.em-secondary:hover{background:#f3f7fd}
.em-danger{background:#fff;color:#b42318;border-color:#f3c4bf}.em-danger:hover{background:#fff4f2}
.em-primary:disabled,.em-secondary:disabled,.em-danger:disabled{opacity:.55;cursor:default}
.em-icon-btn{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:8px;border:0;background:transparent;color:#4a5b74;cursor:pointer}.em-icon-btn:hover{background:#eef3fa}
.em-link{background:none;border:0;padding:0;color:#1d5fd1;text-decoration:underline;font:inherit;cursor:pointer;text-align:left}
.em-input,.em-app select,.em-modal select{font:inherit;font-size:15px;border:1px solid #cfd9e8;border-radius:9px;padding:9px 11px;background:#fff;color:#10233f;width:100%;box-sizing:border-box}
.em-input:focus,.em-app select:focus{outline:2px solid #8fb4f5;outline-offset:0;border-color:#1d5fd1}
.em-label{display:grid;gap:5px;font-size:14px;font-weight:600;color:#10233f;margin:0 0 12px}.em-label small{font-weight:400;color:#677991}
.em-help{color:#4a5b74;font-size:14px;line-height:1.6;margin:0 0 12px}
.em-msg{border-radius:9px;padding:9px 13px;font-size:14px;line-height:1.5;margin:10px 0}
.em-msg.ok{background:#ecfdf3;color:#05603a;border:1px solid #abefc6}.em-msg.err{background:#fef3f2;color:#b42318;border:1px solid #fecdca}.em-msg.info{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}
.em-empty{color:#677991;padding:26px 0;text-align:center}.em-loading{color:#677991;padding:40px 0}
.em-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px}.em-or{color:#677991;font-size:14px}
.em-badge{display:inline-flex;align-items:center;gap:3px;font-size:12.5px;font-weight:650;padding:2px 9px;border-radius:99px;background:#eef2f7;color:#4a5b74}
.em-badge.active,.em-badge.sent{background:#ecfdf3;color:#05603a}.em-badge.unsubscribed,.em-badge.cancelled{background:#f2f4f7;color:#475467}
.em-badge.bounced,.em-badge.complained{background:#fef3f2;color:#b42318}.em-badge.pending,.em-badge.draft{background:#fff8e6;color:#8a6100}.em-badge.scheduled,.em-badge.sending{background:#eff6ff;color:#1d4ed8}
.em-mono{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px;color:#4a5b74}.em-sub{color:#677991}

/* App frame */
.em-app{background:#fff;border:1px solid #dce6f5;border-radius:16px;box-shadow:0 10px 25px #075beb0a;overflow:hidden}
.em-tabs{display:flex;gap:2px;padding:8px 10px 0;border-bottom:1px solid #e5ebf3;background:#f8fafd;overflow-x:auto}
.em-tabs button{display:inline-flex;align-items:center;gap:7px;padding:11px 15px;border:0;border-bottom:2px solid transparent;background:none;font:inherit;font-size:14px;font-weight:650;color:#4a5b74;cursor:pointer;white-space:nowrap}
.em-tabs button.on{color:#1d5fd1;border-color:#1d5fd1}
.em-panel{padding:22px}
.em-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.em-panel-head h2{font-size:19px;font-weight:800;color:#0b2b56;margin:0}

/* Compose (Gmail-like) */
.em-compose{display:grid;gap:0}
.em-field{display:grid;grid-template-columns:100px 1fr;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #edf1f6}
.em-field>label{font-size:14px;font-weight:650;color:#4a5b74}
.em-field .em-input{border-color:transparent;padding-left:4px}.em-field .em-input:focus{border-color:#1d5fd1}
.em-from{display:grid;gap:3px}.em-from select{border-color:transparent;padding-left:2px}.em-from small{color:#677991;font-size:12.5px;padding-left:4px}
.em-chips{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.em-chip{border:1px solid #cfd9e8;background:#fff;border-radius:99px;padding:5px 12px;font:inherit;font-size:13.5px;cursor:pointer;color:#10233f}
.em-chip span{color:#677991;margin-left:3px}.em-chip.on{background:#e7f0ff;border-color:#1d5fd1;color:#1d5fd1;font-weight:650}
.em-count{font-size:13px;color:#4a5b74;margin-left:6px}
.em-empty-inline{font-size:14px;color:#677991}
.em-editor{border:1px solid #dce6f5;border-radius:12px;margin-top:14px;overflow:hidden}
.em-toolbar{display:flex;flex-wrap:wrap;gap:2px;padding:6px;border-bottom:1px solid #e5ebf3;background:#f8fafd;position:sticky;top:0;z-index:2}
.em-tool{display:inline-grid;place-items:center;width:32px;height:32px;border:0;border-radius:7px;background:none;color:#334155;cursor:pointer}
.em-tool:hover{background:#e7eef8}.em-tool.on{background:#dbe8ff;color:#1d5fd1}
.em-sep{width:1px;background:#dce3ee;margin:5px 4px}
.em-editor-body{min-height:340px;padding:18px 20px;outline:none;font-size:16px;line-height:1.6;color:#1f2937}
.em-editor-body p{margin:0 0 12px}.em-editor-body h1{font-size:26px;margin:8px 0 12px}.em-editor-body h2{font-size:22px;margin:8px 0 12px}.em-editor-body h3{font-size:18px;margin:8px 0 10px}
.em-editor-body ul,.em-editor-body ol{padding-left:24px;margin:0 0 12px}.em-editor-body ul{list-style:disc}.em-editor-body ol{list-style:decimal}
.em-editor-body blockquote{border-left:3px solid #cbd5e1;padding-left:12px;color:#475569;margin:0 0 12px}
.em-editor-body a{color:#1d5fd1;text-decoration:underline}.em-editor-body hr{border:0;border-top:1px solid #e2e8f0;margin:16px 0}
.em-editor-body img{max-width:100%;height:auto;border-radius:8px;display:block;margin:0 auto 12px}
.em-editor-body p.is-editor-empty:first-child::before,.em-editor-body:has(>p:only-child:empty)::before{content:attr(data-placeholder);color:#9aa8bb;pointer-events:none;float:left;height:0}
.em-editor-body .ProseMirror-selectednode{outline:2px solid #1d5fd1;outline-offset:2px;border-radius:8px}
.em-node{margin:0 0 12px}
.em-video{border:1px solid #dce6f5;border-radius:10px;overflow:hidden;max-width:560px;margin-left:auto;margin-right:auto}.em-video img{display:block;width:100%;margin:0;border-radius:0}
.em-video-title{display:block;padding:9px 13px;font-weight:700;color:#1d5fd1}
.em-file{display:inline-block;border:1px solid #cfd9e8;border-radius:9px;padding:9px 13px;font-size:15px}
.em-button{text-align:center}.em-button span{display:inline-block;background:#1d5fd1;color:#fff;font-weight:700;padding:11px 24px;border-radius:8px}
.em-editor-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 18px;padding:8px 14px;border-top:1px solid #edf1f6;font-size:12.5px;color:#677991;background:#fbfcfe}
.em-over{color:#b42318;font-weight:700}
.em-schedule{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:12px;padding:12px;border:1px solid #dce6f5;border-radius:10px;background:#f8fafd}
.em-schedule label{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600}.em-schedule input{font:inherit;padding:7px 9px;border:1px solid #cfd9e8;border-radius:8px}

/* Modals */
.em-modal{position:fixed;inset:0;background:rgba(9,22,45,.45);display:grid;place-items:center;z-index:100;padding:16px}
.em-modal-box{background:#fff;border-radius:14px;box-shadow:0 24px 60px rgba(6,24,56,.3);width:min(640px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:18px 20px}
.em-modal-box.em-small{width:min(460px,100%)}
.em-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.em-modal-head strong{font-size:17px;color:#0b2b56}.em-modal-head small{display:block;color:#677991;font-size:12.5px;margin-top:3px}
.em-preview{width:min(760px,100%);display:flex;flex-direction:column;height:calc(100vh - 32px)}
.em-preview iframe{flex:1;width:100%;border:1px solid #e5ebf3;border-radius:10px;background:#f3f6fb}
.em-file-pick{display:inline-flex;align-items:center;gap:8px;border:1px dashed #9db7e0;border-radius:10px;padding:12px 16px;cursor:pointer;color:#1d5fd1;font-weight:650;margin-bottom:12px}
.em-file-pick input{display:none}
.em-cols{display:flex;flex-wrap:wrap;gap:12px}.em-cols label{display:grid;gap:5px;font-size:14px;font-weight:600;min-width:200px;flex:1}
.em-sample{margin:0 0 12px;padding-left:18px;font-size:13.5px;color:#4a5b74;list-style:disc}

/* Contacts */
.em-contacts{display:grid;grid-template-columns:240px 1fr;gap:20px}
.em-lists{display:flex;flex-direction:column;gap:3px;border-right:1px solid #edf1f6;padding-right:16px}
.em-lists-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;color:#0b2b56}
.em-list{display:flex;justify-content:space-between;gap:8px;text-align:left;border:0;background:none;padding:8px 10px;border-radius:8px;font:inherit;font-size:14px;color:#10233f;cursor:pointer}
.em-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.em-list small{color:#677991}
.em-list:hover{background:#f3f7fd}.em-list.on{background:#e7f0ff;color:#1d5fd1;font-weight:650}
.em-quota{font-size:12.5px;color:#677991;margin-top:10px}
.em-contacts-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:10px}
.em-contacts-bar select{width:auto}
.em-search{display:flex;align-items:center;gap:6px;border:1px solid #cfd9e8;border-radius:9px;padding:0 10px;margin-left:auto;background:#fff;color:#677991}
.em-search input{border:0;outline:none;font:inherit;font-size:14px;padding:8px 0;min-width:180px;color:#10233f}
.em-bulk{display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:#f3f7fd;border-radius:10px;padding:8px 10px;margin-bottom:10px;font-size:14px}
.em-table-wrap{overflow-x:auto}
.em-table{width:100%;border-collapse:collapse;font-size:14px}
.em-table th{text-align:left;font-weight:650;color:#4a5b74;border-bottom:1px solid #e5ebf3;padding:9px 10px;white-space:nowrap}
.em-table td{border-bottom:1px solid #f0f3f8;padding:9px 10px;vertical-align:middle}
.em-row-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end}
.em-pager{display:flex;gap:12px;align-items:center;justify-content:flex-end;margin-top:12px;font-size:14px;color:#4a5b74}

/* Senders */
.em-sender-list{list-style:none;padding:0;margin:0 0 20px;display:grid;gap:10px}
.em-sender-list>li{display:grid;grid-template-columns:1fr auto auto;gap:10px 14px;align-items:center;border:1px solid #e5ebf3;border-radius:12px;padding:12px 14px}
.em-sender-list>li>form{grid-column:1/-1}
.em-sender-list small{color:#677991}
.em-sender-form{max-width:560px;border:1px solid #e5ebf3;border-radius:12px;padding:16px;background:#fbfcfe}
.em-senders h3{font-size:16px;font-weight:750;color:#0b2b56;margin:18px 0 10px}
.em-addr{display:flex;align-items:center;gap:6px}.em-addr .em-input{max-width:240px}.em-addr b{font-weight:600;color:#4a5b74;font-size:14px}
.em-code{display:flex;gap:10px;align-items:flex-end;max-width:420px;margin-bottom:14px}.em-code .em-label{margin:0;flex:1}

/* Plans */
.em-plan-now{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin-bottom:16px}
.em-plan-now>div{border:1px solid #e5ebf3;border-radius:12px;padding:12px 14px;display:grid;gap:3px}
.em-plan-now small{color:#677991;font-size:12.5px}.em-plan-now strong{font-size:18px;color:#0b2b56}
.em-plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin:6px 0 18px}
.em-plan-card{border:1px solid #dce6f5;border-radius:14px;padding:18px;background:#fff;display:flex;flex-direction:column;gap:10px}
.em-plan-card.featured{border-color:#1d5fd1;box-shadow:0 10px 24px rgba(29,95,209,.12)}
.em-plan-card.current{background:#f4f8ff}
.em-plan-card h3{font-size:17px;font-weight:800;color:#0b2b56;margin:0}
.em-price{font-size:24px;font-weight:800;color:#10233f;margin:0}.em-price small{font-size:14px;font-weight:600;color:#677991}
.em-year{display:block;font-size:12.5px;font-weight:600;color:#05603a;margin-top:3px}
.em-plan-card ul{list-style:none;padding:0;margin:0;display:grid;gap:6px;font-size:13.5px;color:#334155;flex:1}
.em-plan-card li{display:flex;gap:7px;align-items:flex-start;line-height:1.4}.em-plan-card li svg{flex:none;margin-top:2px;color:#16a34a}
.em-current{font-size:13.5px;font-weight:700;color:#1d5fd1;text-align:center;padding:8px}
.em-card-cta{width:100%;box-sizing:border-box}

@media(max-width:820px){
  .em-contacts{grid-template-columns:1fr}.em-lists{border-right:0;border-bottom:1px solid #edf1f6;padding:0 0 12px}
  .em-field{grid-template-columns:1fr;gap:4px}.em-panel{padding:14px}
  .em-search{margin-left:0;flex:1}.em-search input{min-width:0;width:100%}
  .em-sender-list>li{grid-template-columns:1fr}
}
.em-usage{margin-top:10px;font-size:13px}
