:root{
  --emc-blue:#0f65a3;
  --emc-blue-dark:#0a3f66;
  --emc-bg:#f4f8fb;
  --emc-card:#ffffff;
  --emc-text:#20242b;
  --emc-muted:#667085;
  --emc-border:#d9e3ec;
  --emc-green:#16805d;
  --emc-red:#b42318;
  --emc-shadow:0 18px 55px rgba(15,101,163,.12);
}
*{box-sizing:border-box}
body{margin:0;background:linear-gradient(180deg,#f6fbff 0%,#ffffff 45%);font-family:Inter,Arial,sans-serif;color:var(--emc-text)}
.emc-app{max-width:1180px;margin:0 auto;padding:28px 18px 54px}
.emc-hero{text-align:center;background:var(--emc-bg);border:1px solid #e4eef6;border-radius:24px;padding:42px 22px;box-shadow:var(--emc-shadow)}
.emc-badge{display:inline-block;margin:0 0 14px;padding:7px 13px;border-radius:999px;background:#fff;color:var(--emc-blue);font-weight:800;font-size:13px;letter-spacing:.03em;text-transform:uppercase}
h1{margin:0 auto 16px;font-size:clamp(32px,5vw,56px);line-height:1.1;color:var(--emc-blue-dark);max-width:850px}
.emc-lead{max-width:780px;margin:0 auto 26px;font-size:18px;line-height:1.7;color:#344054}
.emc-upload-card{max-width:650px;margin:0 auto;background:#fff;border:2px dashed #9fc7e4;border-radius:20px;padding:28px;transition:.2s}
.emc-upload-card.drag{border-color:var(--emc-blue);background:#eef7ff;transform:scale(1.01)}
.emc-primary,.emc-secondary,.emc-download{border:0;border-radius:10px;padding:13px 20px;font-weight:800;font-size:15px;cursor:pointer;transition:.18s}
.emc-primary{background:var(--emc-blue);color:#fff}
.emc-primary:hover{background:#0a568d}
.emc-secondary{background:#eef4f8;color:var(--emc-blue-dark)}
.emc-download{width:100%;background:var(--emc-green);color:#fff;margin-top:14px}
.emc-full{width:100%;margin:18px 0 0}
.emc-small,#upload-hint{color:var(--emc-muted);font-size:14px}
.hidden{display:none!important}
.emc-workspace{margin-top:26px}
.emc-toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;background:#fff;border:1px solid var(--emc-border);border-radius:16px;padding:16px 18px;margin-bottom:18px}
.emc-pill{display:inline-block;margin-left:8px;background:#eef7ff;color:var(--emc-blue-dark);font-weight:800;font-size:12px;padding:4px 8px;border-radius:999px}
.emc-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:18px}
.emc-panel,.emc-note{background:#fff;border:1px solid var(--emc-border);border-radius:18px;padding:20px;box-shadow:0 8px 25px rgba(16,24,40,.05)}
.emc-panel h2,.emc-note h2{margin:0 0 14px;color:var(--emc-blue-dark);font-size:22px}
.emc-label{display:block;margin:4px 0 8px;font-weight:800}
.emc-select{width:100%;padding:13px;border:1px solid var(--emc-border);border-radius:10px;background:#fff;font-size:16px}
.emc-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px}
.emc-stat{background:#f7fafc;border:1px solid #e7eef4;border-radius:10px;padding:10px;text-align:center}
.emc-stat span{display:block;color:var(--emc-muted);font-size:12px}
.emc-stat strong{display:block;font-size:16px;color:#111827}
.emc-canvas-wrap{height:450px;background:repeating-linear-gradient(45deg,#fbfdff,#fbfdff 12px,#f3f7fb 12px,#f3f7fb 24px);border:1px solid var(--emc-border);border-radius:14px;overflow:hidden}
.emc-canvas-wrap.small{height:260px;margin-top:12px}
canvas{width:100%;height:100%;display:block}
.emc-output{margin-top:18px;border-top:1px solid var(--emc-border);padding-top:16px}
.emc-output h3{margin:0 0 12px;color:var(--emc-blue-dark)}
.emc-note{margin-top:18px}
.emc-note li{margin:7px 0;line-height:1.6}
.emc-error,.emc-success{padding:13px 16px;border-radius:12px;margin-bottom:16px;font-weight:700}
.emc-error{background:#fff1f0;color:var(--emc-red);border:1px solid #fecdca}
.emc-success{background:#ecfdf3;color:#067647;border:1px solid #abefc6}
.emc-loading{position:fixed;inset:0;background:rgba(245,250,255,.88);backdrop-filter:blur(5px);z-index:999;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:20px}
.emc-loader{width:54px;height:54px;border-radius:50%;border:5px solid #d7eaf8;border-top-color:var(--emc-blue);animation:spin 1s linear infinite;margin-bottom:16px}
@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:800px){
  .emc-grid{grid-template-columns:1fr}
  .emc-toolbar{align-items:flex-start;flex-direction:column}
  .emc-canvas-wrap{height:340px}
  .emc-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Added lead-generation, color assignment, and report features */
.emc-hero-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:18px}
.emc-quote,.emc-outline,.emc-navy{border-radius:10px;padding:12px 18px;font-weight:800;font-size:15px;text-decoration:none;cursor:pointer;transition:.18s;border:0;display:inline-block}
.emc-quote{background:#c81932;color:#fff;box-shadow:0 10px 24px rgba(200,25,50,.18)}
.emc-outline{background:#fff;color:var(--emc-blue-dark);border:1px solid var(--emc-border)}
.emc-navy{background:var(--emc-blue-dark);color:#fff}
.emc-toolbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.emc-color-panel{margin-top:18px;border:1px solid var(--emc-border);border-radius:14px;padding:16px;background:#fbfdff}
.emc-color-panel h3{margin:0 0 6px;color:var(--emc-blue-dark);font-size:18px}
.emc-color-panel p{margin:0 0 14px;color:var(--emc-muted);font-size:14px;line-height:1.55}
.emc-color-grid{display:grid;grid-template-columns:1fr;gap:10px;max-height:330px;overflow:auto;padding-right:3px}
.emc-color-stop{display:grid;grid-template-columns:auto 42px minmax(0,1fr);gap:10px;align-items:center;border:1px solid #e6edf3;background:#fff;border-radius:10px;padding:10px}
.emc-color-stop strong{font-size:13px;white-space:nowrap;color:#344054}
.emc-color-stop input[type="color"]{width:42px;height:34px;border:1px solid var(--emc-border);border-radius:8px;background:#fff;padding:2px;cursor:pointer}
.emc-color-stop select{width:100%;min-width:0;border:1px solid var(--emc-border);border-radius:8px;padding:8px;background:#fff;color:var(--emc-text)}
.emc-report{background:#fff;border:1px solid var(--emc-border);border-radius:18px;padding:20px;box-shadow:0 8px 25px rgba(16,24,40,.05);margin-top:18px}
.emc-report-head{display:flex;gap:16px;justify-content:space-between;align-items:flex-start;margin-bottom:16px}
.emc-report h2{margin:0 0 6px;color:var(--emc-blue-dark);font-size:22px}
.emc-report p{margin:0;color:var(--emc-muted);line-height:1.55}
.emc-report-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.emc-report-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.emc-report-card{background:#f8fbfd;border:1px solid #e6edf3;border-radius:12px;padding:12px;text-align:center}
.emc-report-card span{display:block;color:var(--emc-muted);font-size:12px}
.emc-report-card strong{display:block;color:#111827;font-size:17px;margin-top:3px}
.emc-warning-list{margin-top:15px;display:grid;gap:9px}
.emc-warning{border-radius:10px;padding:11px 13px;font-size:14px;line-height:1.5}
.emc-warning.good{background:#ecfdf3;color:#067647;border:1px solid #abefc6}
.emc-warning.warn{background:#fffaeb;color:#92400e;border:1px solid #fedf89}
.emc-warning.bad{background:#fff1f0;color:#b42318;border:1px solid #fecdca}
@media(max-width:900px){.emc-report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.emc-report-head{flex-direction:column}.emc-report-actions,.emc-toolbar-actions{justify-content:flex-start}.emc-toolbar-actions button{width:100%}}


/* SEO content below the embroidery converter */
.emc-seo-content{margin-top:34px;background:#fff;border:1px solid var(--emc-border);border-radius:22px;padding:clamp(24px,4vw,42px);box-shadow:0 8px 25px rgba(16,24,40,.05)}
.emc-seo-content h2{margin:36px 0 12px;color:var(--emc-blue-dark);font-size:clamp(24px,3vw,32px);line-height:1.25}
.emc-seo-content h2:first-of-type{margin-top:0}
.emc-seo-content p,.emc-seo-content li{font-size:17px;line-height:1.75;color:#344054}
.emc-section-label{font-size:13px!important;text-transform:uppercase;font-weight:900;letter-spacing:.05em;color:var(--emc-blue);margin:0 0 8px!important}
.emc-seo-actions{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0 8px}
.emc-format-grid,.emc-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 8px}
.emc-format-grid div,.emc-check-grid div{border:1px solid #e6edf3;border-radius:14px;background:#f8fbfd;padding:14px}
.emc-format-grid strong,.emc-check-grid strong{display:block;color:var(--emc-blue-dark);font-size:18px;margin-bottom:4px}
.emc-format-grid span{display:block;color:var(--emc-muted);font-size:14px;line-height:1.45}
.emc-check-grid p{font-size:15px;margin:4px 0 0;line-height:1.55}
.emc-seo-steps li{margin:8px 0}
.emc-two-col-list{columns:2;column-gap:30px}
.emc-two-col-list li{break-inside:avoid;margin:0 0 12px}
.emc-faq-list details{border:1px solid #e6edf3;border-radius:12px;background:#fbfdff;padding:14px 16px;margin:10px 0}
.emc-faq-list summary{font-weight:900;color:var(--emc-blue-dark);cursor:pointer}
.emc-faq-list p{margin:10px 0 0;font-size:16px;line-height:1.65}
@media(max-width:900px){.emc-format-grid,.emc-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.emc-two-col-list{columns:1}}
@media(max-width:600px){.emc-format-grid,.emc-check-grid{grid-template-columns:1fr}.emc-seo-content p,.emc-seo-content li{font-size:16px}}
