:root{
 --esw-ink:#0f172a;--esw-muted:#64748b;--esw-soft:#f8fafc;--esw-border:#e2e8f0;--esw-card:#fff;--esw-accent:#2563eb;--esw-radius:22px;
}
#esw-app,.esw-account-wrap{max-width:1360px;margin:0 auto;color:var(--esw-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.esw-topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:22px;margin:0 0 24px}
.esw-topbar h1{font-size:38px;line-height:1.06;letter-spacing:-.035em;margin:6px 0 7px;font-weight:850}
.esw-topbar p{margin:0;color:var(--esw-muted);font-size:15px}
.esw-badge{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #dbe5f1;border-radius:999px;background:#fff;color:#475569;font-size:10px;font-weight:850;letter-spacing:.11em}
.esw-topbar-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.esw-chip-link{display:inline-flex;padding:10px 14px;border-radius:12px;background:#0f172a;color:#fff!important;text-decoration:none!important;font-size:13px;font-weight:800}
.esw-chip-muted{background:#f1f5f9;color:#0f172a!important}
.esw-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(420px,.9fr);gap:22px;align-items:start}
.esw-panel{background:var(--esw-card);border:1px solid var(--esw-border);border-radius:var(--esw-radius);box-shadow:0 20px 50px rgba(15,23,42,.06)}
.esw-form-panel{padding:28px}
.esw-preview-panel{padding:22px;position:sticky;top:18px}
.esw-step-heading{display:flex;gap:13px;align-items:flex-start;margin-bottom:18px}
.esw-step{flex:none;width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#eef2ff;color:#3730a3;font-size:11px;font-weight:900;letter-spacing:.04em}
.esw-step-heading h3{margin:1px 0 4px;font-size:17px;line-height:1.2}
.esw-step-heading p{margin:0;color:var(--esw-muted);font-size:12px;line-height:1.5}
.esw-template-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:13px}
.esw-template-search-wrap{position:relative;flex:1 1 220px}
.esw-template-search-wrap input{width:100%;box-sizing:border-box;border:1px solid var(--esw-border);border-radius:12px;background:#fff;padding:10px 12px 10px 34px;font:inherit;font-size:13px}
.esw-template-search-wrap input:focus{outline:0;border-color:#93c5fd;box-shadow:0 0 0 4px rgba(37,99,235,.08)}
.esw-search-icon{position:absolute;left:12px;top:7px;color:#94a3b8;font-size:20px;pointer-events:none}
.esw-template-filters{display:flex;gap:6px;flex-wrap:wrap}
.esw-filter{border:1px solid var(--esw-border);background:#fff;color:#475569;border-radius:999px;padding:8px 11px;font-size:11px;font-weight:800;cursor:pointer}
.esw-filter.is-active{background:#0f172a;color:#fff;border-color:#0f172a}
.esw-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.esw-template-card{position:relative;text-align:left;padding:0;border:1px solid var(--esw-border);background:#fff;border-radius:17px;overflow:hidden;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.esw-template-card:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(15,23,42,.08)}
.esw-template-card.is-active{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.11)}
.esw-template-thumb{display:flex;align-items:center;justify-content:center;min-height:126px;padding:14px;background:linear-gradient(180deg,#f8fafc,#eef2f7);overflow:hidden}
.esw-template-thumb>table{transform:scale(.46);transform-origin:center center;max-width:none!important;flex:none}
.esw-template-copy{display:block;padding:12px 13px 13px;background:#fff}
.esw-template-copy strong{display:block;font-size:12px;line-height:1.25;font-weight:850;color:#0f172a}
.esw-template-copy small{display:block;margin-top:4px;color:#64748b;font-size:10px;line-height:1.35}
.esw-template-copy em{display:inline-flex;margin-top:8px;padding:4px 6px;border-radius:6px;background:#f1f5f9;color:#475569;font-size:8px;font-style:normal;font-weight:850;letter-spacing:.07em;text-transform:uppercase}
.esw-no-results{grid-column:1/-1;border:1px dashed #cbd5e1;border-radius:14px;padding:24px;text-align:center;color:#64748b;font-size:13px}
.esw-divider{height:1px;background:#eef2f7;margin:27px 0}
.esw-fields{display:grid;gap:12px}
.esw-fields-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.esw-field{display:block;min-width:0}
.esw-field.esw-wide{grid-column:1/-1}
.esw-field span{display:block;margin-bottom:6px;color:#334155;font-size:11px;font-weight:850}
.esw-field span em{color:#94a3b8;font-style:normal;font-weight:600}
.esw-field input{width:100%;box-sizing:border-box;border:1px solid #d8dee8;border-radius:11px;background:#fff;padding:10px 11px;color:#0f172a;font:inherit;font-size:13px}
.esw-field input:focus{outline:0;border-color:#93c5fd;box-shadow:0 0 0 4px rgba(37,99,235,.08)}
.esw-style-fields{margin-top:12px}
.esw-upload-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.esw-upload-card{border:1px solid var(--esw-border);border-radius:15px;padding:14px;background:#fbfdff}
.esw-upload-title{font-size:12px;font-weight:850}
.esw-upload-desc{margin-top:4px;color:#64748b;font-size:10px;line-height:1.45;min-height:29px}
.esw-upload-row{display:flex;gap:7px;margin-top:11px}
.esw-upload-row input{min-width:0;flex:1;border:1px solid #d8dee8;border-radius:10px;padding:9px;font-size:11px}
.esw-upload-foot{display:flex;justify-content:space-between;gap:8px;margin-top:8px;color:#94a3b8;font-size:9px}
.esw-save-bar{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:17px;border:1px solid #dbe5f1;background:#f8fbff;border-radius:16px}
.esw-save-copy{display:flex;flex-direction:column;gap:3px}
.esw-save-label{font-size:13px;font-weight:850}
.esw-save-copy small{color:#64748b;font-size:10px}
.esw-save-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.esw-save-controls input{min-width:220px;border:1px solid #d8dee8;border-radius:10px;padding:10px 11px;font-size:12px}
.esw-actions-section{margin-top:4px}
.esw-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:11px;padding:10px 14px;text-decoration:none!important;font-size:12px;line-height:1;font-weight:850;cursor:pointer;white-space:nowrap}
.esw-button-lg{padding:12px 17px;font-size:13px}
.esw-primary{background:#0f172a;color:#fff!important}
.esw-secondary{background:#fff;color:#0f172a!important;border-color:#dbe2ea}
.esw-primary:hover{background:#111827}
.esw-secondary:hover{background:#f8fafc}
.esw-preview-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.esw-preview-head .esw-panel-kicker{display:block;color:#94a3b8;font-size:9px;font-weight:900;letter-spacing:.12em}
.esw-preview-head h3{font-size:18px;margin:4px 0 2px;letter-spacing:-.01em}
.esw-preview-head p{margin:0;color:#64748b;font-size:11px}
.esw-preview-toggle{display:flex;gap:4px;padding:4px;border:1px solid var(--esw-border);border-radius:10px;background:#f8fafc}
.esw-preview-toggle button{border:0;background:transparent;color:#64748b;padding:6px 8px;border-radius:7px;font-size:10px;font-weight:800;cursor:pointer}
.esw-preview-toggle button.is-active{background:#fff;color:#0f172a;box-shadow:0 1px 4px rgba(15,23,42,.08)}
.esw-preview-shell{margin-top:18px;border:1px solid var(--esw-border);border-radius:17px;background:#eef2f7;min-height:260px;display:flex;align-items:center;justify-content:center;padding:28px;overflow:auto}
.esw-preview-shell.is-dark{background:#0b1220}
.esw-preview{max-width:100%;overflow:auto;display:flex;justify-content:center}
.esw-preview>table{box-shadow:0 16px 30px rgba(15,23,42,.12)}
.esw-action-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}
.esw-copy-main{flex:1}
.esw-code-head{display:flex;justify-content:space-between;align-items:center;margin-top:17px;margin-bottom:7px;color:#475569;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.esw-copy-link{border:0;background:transparent;color:#0f172a;font-size:10px;font-weight:900;cursor:pointer;padding:3px 0}
.esw-code{width:100%;min-height:180px;box-sizing:border-box;border:1px solid #18233b;border-radius:12px;background:#09111f;color:#dbeafe;padding:11px;font:11px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;resize:vertical}
.esw-status{margin-top:9px;min-height:18px;color:#64748b;font-size:11px;line-height:1.5}
.esw-status.success{color:#15803d}.esw-status.error{color:#b91c1c}
.esw-gate{position:relative;max-width:780px;margin:70px auto}.esw-gate-glow{position:absolute;inset:-100px -30px;background:radial-gradient(circle at 50% 20%,rgba(37,99,235,.13),transparent 55%);pointer-events:none}
.esw-gate-card{position:relative;background:#fff;border:1px solid var(--esw-border);border-radius:28px;padding:44px;box-shadow:0 30px 70px rgba(15,23,42,.10);text-align:center}
.esw-gate-card h2{margin:12px 0 9px;font-size:40px;line-height:1.02;letter-spacing:-.04em}.esw-gate-lead{max-width:610px;margin:0 auto;color:#64748b;font-size:15px;line-height:1.65}
.esw-gate-price{font-size:52px;line-height:1;font-weight:900;margin:23px 0 18px}.esw-gate-price .amount{font-size:inherit}.esw-gate-price span{display:inline-block;margin-left:8px;color:#64748b;font-size:13px;font-weight:750}
.esw-gate-points{display:grid;grid-template-columns:1fr 1fr;gap:9px;max-width:580px;margin:0 auto 22px;text-align:left}.esw-gate-points span{padding:9px 11px;border-radius:10px;background:#f8fafc;color:#334155;font-size:11px;font-weight:700}
.esw-gate-actions{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}.esw-link{color:#0f172a;text-decoration:none;font-size:12px;font-weight:800}.esw-message{padding:22px;border:1px solid var(--esw-border);border-radius:16px;background:#fff}
.esw-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.esw-saved-card{border:1px solid var(--esw-border);border-radius:19px;background:#fff;padding:17px;box-shadow:0 12px 30px rgba(15,23,42,.05)}
.esw-saved-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.esw-saved-top strong{display:block;font-size:14px}.esw-saved-top span{display:block;margin-top:4px;color:#64748b;font-size:10px}.esw-saved-date{color:#94a3b8;font-size:9px}
.esw-mini-frame{margin:14px 0;border:1px solid var(--esw-border);border-radius:13px;background:#f8fafc;padding:18px;overflow:hidden;min-height:130px;display:flex;align-items:center}.esw-mini-preview{transform:scale(.56);transform-origin:left center;width:180%;min-width:600px}
.esw-saved-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.esw-text-button{border:0;background:transparent;color:#b42318;font-size:11px;font-weight:800;cursor:pointer;padding:10px 4px}
.esw-code-details{margin-top:11px}.esw-code-details summary{cursor:pointer;color:#475569;font-size:10px;font-weight:850}.esw-saved-code{width:100%;min-height:140px;box-sizing:border-box;margin-top:8px;border:1px solid #1e293b;border-radius:10px;background:#09111f;color:#dbeafe;padding:10px;font:10px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace}
.esw-empty{padding:58px 22px;text-align:center;border:1px dashed #cbd5e1;border-radius:22px;background:#fff}.esw-empty-icon{width:50px;height:50px;margin:0 auto 13px;border-radius:15px;background:#eef2ff;color:#3730a3;display:grid;place-items:center;font-size:23px}.esw-empty h3{margin:0 0 7px;font-size:20px}.esw-empty p{margin:0 auto 18px;max-width:470px;color:#64748b;font-size:12px;line-height:1.6}
.esw-thankyou{margin:20px 0;padding:18px;border:1px solid #dbe5f1;border-radius:14px;background:#f8fbff}.esw-thankyou p{margin:0 0 7px}.esw-thankyou p:last-child{margin-bottom:0}
@media(max-width:1120px){.esw-layout{grid-template-columns:1fr}.esw-preview-panel{position:static}.esw-upload-grid{grid-template-columns:1fr 1fr}.esw-account-grid{grid-template-columns:1fr}}
@media(max-width:760px){.esw-topbar{display:block}.esw-topbar-actions{margin-top:13px}.esw-topbar h1{font-size:31px}.esw-form-panel{padding:19px}.esw-preview-panel{padding:17px}.esw-fields-3,.esw-upload-grid,.esw-template-grid{grid-template-columns:1fr}.esw-save-bar{display:block}.esw-save-controls{justify-content:flex-start;margin-top:12px}.esw-save-controls input{min-width:0;flex:1}.esw-gate-card{padding:28px 19px}.esw-gate-card h2{font-size:31px}.esw-gate-points{grid-template-columns:1fr}.esw-preview-shell{padding:20px 12px}.esw-mini-preview{transform:scale(.45);width:220%;}}
