/* ════ QA EDM — HTML email pre-flight checker (edm-) ════ */
.edm-app{display:flex;flex-direction:column;gap:22px}
.edm-app .panel{padding:22px}                                  /* global section padding reset */

/* hero */
.edm-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.edm-hero h2{font-size:22px;font-weight:800}
.edm-hero h2 .accent{color:var(--indigo,#4f46e5)}
.edm-hero-sub{font-size:13px;color:var(--muted,#64748b);margin:4px 0 12px;max-width:600px;line-height:1.5}
.edm-hero-badges{display:flex;flex-wrap:wrap;gap:8px 16px}
.edm-hero-badges span{font-size:12px;font-weight:600;color:var(--muted,#64748b);display:inline-flex;align-items:center;gap:7px}
.edm-hero-badges i{color:var(--indigo,#4f46e5)}
.edm-hero-art{width:104px;height:74px;border-radius:14px;background:linear-gradient(135deg,#1159da,#0d3f9e);display:grid;place-items:center;color:#fff;font-size:30px;flex:none;box-shadow:0 12px 30px rgba(17,89,218,.28)}

/* input */
.edm-input-head{display:flex;align-items:flex-start;gap:11px;margin-bottom:14px}
.edm-num{width:26px;height:26px;border-radius:50%;background:var(--indigo,#4f46e5);color:#fff;font-size:13px;font-weight:800;display:grid;place-items:center;flex:none}
.edm-input-head h3{font-size:15px;font-weight:800}
.edm-input-head p{font-size:12px;color:var(--muted,#64748b);margin:2px 0 0}
.edm-paste{width:100%;min-height:150px;resize:vertical;border:1.5px solid var(--line,#e6e8ec);border-radius:12px;padding:13px 15px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;line-height:1.55;color:var(--ink,#1f2430);background:var(--bg1,#fff);outline:none;transition:.15s}
.edm-paste:focus{border-color:var(--indigo,#4f46e5);box-shadow:0 0 0 3px rgba(79,70,229,.12)}
.edm-paste.drag{border-color:var(--indigo,#4f46e5);background:rgba(79,70,229,.05)}
.edm-input-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}
.edm-input-actions .btn-indigo,.edm-input-actions .btn-outline{font-size:13px;padding:11px 22px}
.edm-link{border:0;background:none;color:var(--indigo,#4f46e5);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;text-decoration:underline;text-underline-offset:2px;padding:0}
/* prominent Upload button — dashed blue "drop a file here" affordance so it can't be missed */
.edm-upload-btn{display:inline-flex;align-items:center;gap:8px;font:inherit;font-size:13px;font-weight:700;padding:11px 20px;border-radius:10px;cursor:pointer;color:#1159da;background:#eaf1ff;border:1.5px dashed #9dc0f5;transition:.15s}
.edm-upload-btn:hover{background:#dbe8ff;border-color:#1159da;color:#0d3f9e}
.edm-upload-btn i{font-size:14px}
/* reset (clears the box + report) — pushed to the right */
.edm-reset{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:12.5px;font-weight:700;color:#7c879b;background:#fff;border:1px solid var(--line,#e6e8ec);border-radius:9px;padding:9px 14px;cursor:pointer;transition:.15s}
.edm-reset:hover{border-color:#f3c7c2;color:#c8364c;background:#fff6f6}
@media(max-width:560px){ .edm-reset{margin-left:0} }

/* results: report | preview */
.edm-results{display:grid;grid-template-columns:1.15fr .85fr;gap:18px;align-items:start}
@media(max-width:920px){ .edm-results{grid-template-columns:1fr} }

.edm-report-head,.edm-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.edm-report-head h2,.edm-preview-head h2{font-size:17px;font-weight:800}
.edm-score{font-size:12.5px;font-weight:700;border-radius:20px;padding:5px 12px;display:inline-flex;align-items:center;gap:6px}
.edm-score.good{color:#15794a;background:#e6f5ec}
.edm-score.warn{color:#9a6a12;background:#fdf3e0}
.edm-score.bad{color:#b4530e;background:#fdebd9}

/* premium upsell hint (free users) + PRO tag on gated rows */
.edm-pro-hint{display:flex;gap:9px;align-items:flex-start;margin:0 0 16px;padding:10px 13px;font-size:12.5px;line-height:1.5;color:#7a5b12;background:linear-gradient(90deg,#fff7e6,#fdf1d8);border:1px solid #f0deb3;border-radius:11px;cursor:pointer;transition:.15s}
.edm-pro-hint[hidden]{display:none}   /* class display:flex would otherwise beat the UA [hidden] rule */
.edm-pro-hint:hover{border-color:#e6c878;background:linear-gradient(90deg,#fef3d8,#fbecc8)}
.edm-pro-hint i{margin-top:2px;color:#c79a3a;flex:none}
.edm-pro-hint strong{color:var(--indigo,#4f46e5);text-decoration:underline;text-underline-offset:2px}
.edm-pro-tag{flex:none;font-size:9.5px;font-weight:800;letter-spacing:.5px;color:#fff;background:linear-gradient(135deg,#c79a3a,#a87c25);border-radius:5px;padding:2px 5px;margin-left:7px;vertical-align:middle}

.edm-group{margin-bottom:16px}
.edm-group:last-child{margin-bottom:0}
.edm-group h3{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;color:var(--muted,#94a3b8);margin:0 0 8px;padding-left:2px}
.edm-rows{display:flex;flex-direction:column;gap:7px}

/* preview */
.edm-preview{position:sticky;top:16px}
.edm-seg{display:inline-flex;background:var(--bg2,#eef0f4);border:1px solid var(--line,#e1e5ec);border-radius:999px;padding:3px}
.edm-seg button{border:0;background:none;font:inherit;font-size:12px;font-weight:700;color:var(--muted,#7c879b);padding:5px 14px;border-radius:999px;cursor:pointer;display:inline-flex;align-items:center;gap:6px;transition:.15s}
.edm-seg button.is-active{background:var(--bg1,#fff);color:var(--indigo,#4f46e5);box-shadow:0 1px 3px rgba(20,30,50,.12)}
.edm-preview-stage{border:1px solid var(--line,#e6e8ec);border-radius:14px;background:var(--bg2,#f4f6f9);background-image:radial-gradient(rgba(20,30,50,.05) 1px,transparent 1px);background-size:18px 18px;overflow:auto;padding:20px;display:flex;flex-direction:column;align-items:center;gap:12px;min-height:420px;max-height:70vh}
.edm-frame{border:1px solid var(--line,#e6e8ec);border-radius:6px;background:#fff;width:600px;height:760px;flex:none;box-shadow:0 8px 26px -10px rgba(24,32,60,.26)}
.edm-preview-note{align-self:stretch;display:flex;gap:9px;align-items:flex-start;font-size:12px;line-height:1.5;color:#9a6a12;background:#fdf3e0;border:1px solid #f3e2bf;border-radius:10px;padding:9px 12px}
.edm-preview-note[hidden]{display:none}
.edm-preview-note i{margin-top:2px;flex:none}
.edm-preview-note code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;background:rgba(154,106,18,.12);padding:1px 5px;border-radius:4px}

@media(max-width:920px){ .edm-preview{position:static} .edm-frame{max-width:100%} }
