:root{--bg:#f5f7fb;--panel:#fff;--text:#111827;--muted:#6b7280;--line:#e5e7eb;--primary:#2563eb;--primary2:#1d4ed8;--soft:#eff6ff;--radius:18px;--shadow:0 18px 45px rgba(15,23,42,.07)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}.app-shell{min-height:100vh}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100% - 1180px)/2));position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:11px;color:var(--text);text-decoration:none}.brand-mark{display:grid;place-items:center;width:42px;height:42px;background:var(--text);color:#fff;font-weight:900;border-radius:11px;letter-spacing:-1px}.brand strong,.brand small{display:block}.brand strong{font-size:16px}.brand small{font-size:11px;color:var(--muted);margin-top:1px}.status{font-size:12px;color:#475569;background:#f8fafc;border:1px solid var(--line);border-radius:999px;padding:8px 11px}.status i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#16a34a;margin-right:6px}.hero{text-align:center;max-width:780px;margin:52px auto 34px;padding:0 20px}.eyebrow{font-size:11px;letter-spacing:.15em;font-weight:800;color:var(--primary)}h1{font-size:clamp(34px,5vw,52px);letter-spacing:-.04em;margin:11px 0 13px;line-height:1.02}.hero p{font-size:16px;line-height:1.7;color:var(--muted);margin:0 auto;max-width:690px}.workspace{max-width:1180px;margin:0 auto 44px;padding:0 20px;display:grid;grid-template-columns:minmax(0,1.55fr) minmax(330px,.75fr);gap:22px;align-items:start}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.editor{padding:28px}.preview-panel{padding:26px;position:sticky;top:98px}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}.section-head>div{display:flex;align-items:center;gap:10px}.section-head h2{font-size:17px;margin:0}.section-head p{font-size:12px;color:var(--muted);margin:4px 0 0}.section-head.compact{margin-bottom:16px}.step{width:25px;height:25px;border-radius:50%;background:var(--soft);color:var(--primary);font-size:12px;font-weight:800;display:grid;place-items:center}.types{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.type{border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px 7px;color:#475569;font-size:12px;font-weight:650;cursor:pointer;transition:.18s}.type span{display:block;font-size:19px;margin-bottom:5px}.type:hover{border-color:#bfdbfe;background:#f8fbff}.type.active{border-color:#60a5fa;background:var(--soft);color:var(--primary);box-shadow:inset 0 0 0 1px #93c5fd}.divider{height:1px;background:var(--line);margin:25px 0}.fields,.custom-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:block}.field.full{grid-column:1/-1}.field>span{display:block;font-size:12px;font-weight:700;color:#374151;margin-bottom:7px}.field input[type=text],.field input[type=url],.field input[type=tel],.field input[type=email],.field input[type=password],.field textarea,.field select{width:100%;border:1px solid #dbe1e8;border-radius:10px;background:#fff;padding:12px 13px;outline:none;color:#111827;transition:.15s}.field textarea{min-height:96px;resize:vertical}.message-editor{min-height:142px!important;line-height:1.5;white-space:pre-wrap}.field-help{display:block;margin-top:6px;color:var(--muted);font-size:10px;line-height:1.45}.whatsapp-message{align-self:start}.field input:focus,.field textarea:focus,.field select:focus{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(96,165,250,.13)}.custom-grid{margin-bottom:14px}.color-field{display:flex;border:1px solid #dbe1e8;border-radius:10px;padding:5px;gap:6px}.color-field input[type=color]{width:40px;height:34px;border:0;padding:0;background:none}.color-field input[type=text]{border:0;padding:7px 5px;box-shadow:none!important}.upload{display:flex;align-items:center;gap:12px;border:1px dashed #cbd5e1;border-radius:12px;padding:13px;cursor:pointer;background:#fbfdff}.upload input{display:none}.upload-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:9px;background:var(--soft);color:var(--primary);font-size:20px}.upload strong,.upload small{display:block}.upload strong{font-size:12px}.upload small{color:var(--muted);font-size:10px;margin-top:3px}.upload button{margin-left:auto;border:0;background:#fee2e2;color:#b91c1c;border-radius:8px;padding:7px 9px;font-size:10px;cursor:pointer}.tip{font-size:10px;color:var(--muted);margin:9px 0 0}.preview-box{aspect-ratio:1;border-radius:15px;background:#f8fafc;border:1px solid var(--line);display:grid;place-items:center;padding:21px;margin-top:5px;overflow:hidden;background-image:radial-gradient(#e5e7eb 1px,transparent 1px);background-size:16px 16px}.preview-box canvas{width:100%;height:100%;max-width:310px;max-height:310px;background:#fff;border-radius:5px;box-shadow:0 8px 22px rgba(15,23,42,.08)}.qr-status{text-align:center;font-size:11px;color:var(--muted);margin:11px 0 14px;min-height:17px}.primary,.secondary,.ghost{width:100%;border-radius:11px;padding:13px 14px;font-weight:750;cursor:pointer;margin-bottom:9px}.primary{background:var(--primary);border:1px solid var(--primary);color:#fff}.primary:hover{background:var(--primary2)}.secondary{background:#111827;color:#fff;border:1px solid #111827}.secondary:disabled{opacity:.38;cursor:not-allowed}.ghost{background:#fff;color:#475569;border:1px solid var(--line)}.privacy{margin-top:13px;border-radius:11px;background:#f0fdf4;border:1px solid #dcfce7;padding:12px;display:flex;gap:9px}.privacy p{font-size:10px;line-height:1.45;margin:0;color:#4b5563}.privacy strong{color:#166534}footer{max-width:1180px;margin:0 auto;padding:20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:#94a3b8;font-size:10px}@media(max-width:880px){.workspace{grid-template-columns:1fr}.preview-panel{position:static}.types{grid-template-columns:repeat(4,1fr)}}@media(max-width:620px){.topbar{height:68px;padding:0 15px}.status{display:none}.hero{margin-top:36px}.workspace{padding:0 12px}.editor,.preview-panel{padding:20px}.types{grid-template-columns:repeat(2,1fr)}.fields,.custom-grid{grid-template-columns:1fr}.section-head{display:block}.section-head p{margin-left:35px}footer{display:block;text-align:center;line-height:2}}
