:root{font-family:'Manrope',sans-serif;color-scheme:light;--bg:#f5f7fa;--panel:#fff;--text:#18242e;--muted:#607181;--line:#dfe5ec;--accent:#2459d3;--accent-text:#fff;--input:#fff;--subtle:#edf2f8;--error:#b62b3a;--success:#17714f}html[data-theme=dark]{color-scheme:dark;--bg:#121820;--panel:#19222d;--text:#eaf0f7;--muted:#a4b4c5;--line:#334151;--accent:#9bbaff;--accent-text:#14264b;--input:#151e28;--subtle:#253344;--error:#ff9da8;--success:#7dd8b2}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:13px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.info:focus-visible{outline:3px solid var(--accent);outline-offset:3px}::selection{background:var(--accent);color:var(--accent-text)}*{scrollbar-width:thin;scrollbar-color:var(--line) var(--panel)}::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-thumb{background:var(--line);border-radius:8px}::-webkit-scrollbar-track{background:var(--panel)}.topbar{height:76px;padding:0 32px;display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--line);background:var(--panel)}.brand{display:flex;align-items:center;gap:11px;font-size:19px;font-weight:800;color:var(--text);text-decoration:none;letter-spacing:-.7px}.brand svg{width:32px;height:32px;fill:none;stroke:var(--accent);stroke-width:2;stroke-linejoin:round}.product-type{color:var(--muted);padding-left:24px;border-left:1px solid var(--line)}.top-actions{margin-left:auto;display:flex;gap:10px;align-items:center}.secondary,.primary,.icon-button,.text-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--text);padding:10px 14px;font-weight:600;white-space:nowrap;min-height:40px}.secondary:hover,.icon-button:hover{background:var(--subtle)}.primary{background:var(--accent);color:var(--accent-text);border-color:var(--accent)}.primary:hover{filter:brightness(.94)}.icon-button{width:40px;padding:9px}.text-button{border:0;background:transparent;color:var(--accent);padding:8px 4px}.text-button:hover{text-decoration:underline}svg.icon{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;display:block}.workspace{display:grid;grid-template-columns:420px minmax(0,1fr);height:calc(100dvh - 76px);max-width:1800px;margin:auto}.editor{display:flex;flex-direction:column;min-height:0;background:var(--panel);border-right:1px solid var(--line)}.editor-top{display:flex;align-items:center;justify-content:space-between;padding:27px 24px 23px;gap:10px}h1{font-size:20px;letter-spacing:-.65px;margin:0;font-weight:800}.badge{font-size:11px;padding:5px 8px;background:var(--subtle);border-radius:5px;color:var(--muted);white-space:nowrap}.tabs{display:grid;grid-template-columns:repeat(4,1fr);padding:0 16px;border-bottom:1px solid var(--line);gap:3px}.tabs button{border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);padding:13px 4px;font-weight:700}.tabs button[aria-selected=true]{border-bottom-color:var(--accent);color:var(--accent)}.editor-scroll{padding:24px;overflow:auto;flex:1}.section-heading{display:flex;gap:8px;align-items:center;margin-bottom:20px}.section-heading h2{font-size:13px;font-weight:800;margin:0}.info{border:1px solid var(--line);border-radius:50%;color:var(--muted);font-size:10px;font-weight:700;width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;cursor:help}.divider{border-top:1px solid var(--line);padding-top:24px;margin-top:25px}label{display:block;font-size:12px;font-weight:600;margin-bottom:18px}input:not([type=checkbox]):not([type=color]):not([type=file]),textarea,select{display:block;width:100%;border:1px solid var(--line);color:var(--text);background:var(--input);border-radius:6px;padding:11px 12px;margin-top:8px;min-width:0;caret-color:var(--accent)}input::placeholder,textarea::placeholder{color:var(--muted);font-weight:400}textarea{resize:vertical;line-height:1.7}select{appearance:auto}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}.upload-box{border:1px dashed var(--line);border-radius:8px;text-align:center;background:var(--bg);padding:24px 15px;display:flex;align-items:center;flex-direction:column;gap:10px;margin-bottom:19px}.upload-box.drag{border-color:var(--accent);background:var(--subtle)}.upload-box>svg{color:var(--muted);width:26px;height:26px}.upload-box strong{font-size:12px;font-weight:500;color:var(--muted);max-width:100%;overflow-wrap:anywhere}.upload-actions{display:flex;gap:16px;align-items:center}.switch-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;gap:20px}.switch-row input{appearance:none;width:35px;height:21px;flex-shrink:0;border-radius:20px;background:var(--line);cursor:pointer;margin:0}.switch-row input:before{content:'';display:block;width:15px;height:15px;border-radius:50%;background:var(--panel);margin:3px}.switch-row input:checked{background:var(--accent)}.switch-row input:checked:before{margin-left:17px;background:var(--accent-text)}.editor-footer{border-top:1px solid var(--line);padding:16px 24px;display:flex;flex-direction:column;gap:12px}.editor-footer .primary{width:100%;min-height:44px}.muted{color:var(--muted);font-size:11px}.preview-area{min-width:0;display:flex;flex-direction:column;padding:24px 30px}.preview-toolbar{display:flex;justify-content:space-between;align-items:center;padding:0 0 22px;gap:12px}.preview-toolbar>div:first-child{display:flex;gap:9px;align-items:center;font-size:12px}.live-dot{width:7px;height:7px;border-radius:50%;background:var(--success)}.segmented{display:flex;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--panel);gap:3px}.segmented button{border:0;border-radius:5px;background:transparent;color:var(--muted);padding:7px 12px;min-height:32px}.segmented button.active{background:var(--subtle);color:var(--text)}.preview-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:10px;background:var(--subtle);padding:24px;overflow:auto}.preview-frame{width:100%;height:100%;min-height:400px;border-radius:6px;overflow:auto;background:#c8102e;color:#fff;container-type:inline-size}.preview-frame.mobile{max-width:375px;height:100%;max-height:760px}.welcome{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;padding:38px 35px;text-align:center}.welcome>img{width:auto;max-width:75%;max-height:240px;object-fit:contain}.welcome-copy{max-width:620px;width:100%}.welcome-copy h2{font-size:clamp(23px,3cqw,34px);font-weight:400;margin:0 0 12px;line-height:1.3;overflow-wrap:anywhere;letter-spacing:-.025em}.welcome-copy p{font-size:clamp(14px,2cqw,18px);line-height:1.6;margin:0 0 22px;white-space:pre-wrap;overflow-wrap:anywhere}.welcome-copy .caption{margin-bottom:24px}.welcome-copy a{display:inline-block;color:inherit;font-size:clamp(14px,2cqw,18px);text-underline-offset:3px;margin:0 0 24px;overflow-wrap:anywhere}.welcome-copy button{border:0;border-radius:6px;font-size:18px;font-weight:700;padding:11px 18px;display:block;margin:0 auto}.welcome-copy button.invisible{visibility:hidden}.welcome-copy [hidden],img[hidden]{display:none}.welcome.split{flex-direction:row;text-align:left;gap:30px}.welcome.split>img{width:45%;max-width:45%;max-height:430px}.welcome.float{flex-direction:row-reverse;text-align:left}.welcome.float>img{width:30%;max-width:30%;max-height:230px}.preview-frame.mobile .welcome{padding:25px 20px;gap:22px;flex-direction:column;text-align:center}.preview-frame.mobile .welcome>img{max-width:100%;width:auto;max-height:230px}.preview-frame.mobile .welcome-copy h2{font-size:24px}.preview-frame.mobile .welcome-copy p,.preview-frame.mobile .welcome-copy a{font-size:15px}.preview-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:15px;color:var(--muted);font-size:11px;flex-wrap:wrap}.preview-bottom a{display:flex;align-items:center;gap:7px;color:var(--accent)}.preview-bottom .text-button{font-size:11px}.color-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.color-row label{margin:0}.color-inputs{display:flex;align-items:center;gap:8px}.color-inputs input[type=color]{width:34px;height:34px;padding:3px;background:var(--panel);border:1px solid var(--line);border-radius:6px;cursor:pointer}.color-inputs input.hex{width:97px!important;margin:0!important;padding:8px!important;font-size:12px}.input-action{display:flex;gap:6px;margin-top:8px;align-items:center}.input-action input{margin:0!important}.input-action .icon-button,.input-action .secondary{flex-shrink:0}.inline-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}.status-chip,.contrast-result{padding:12px;background:var(--subtle);border-radius:6px;font-size:12px;color:var(--muted);line-height:1.5}.contrast-result.warn{color:var(--error)}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:20;padding:14px 20px;background:var(--text);color:var(--panel);border-radius:8px;max-width:min(650px,90vw);font-size:13px;border:1px solid var(--line);white-space:pre-wrap}#toast.error{background:var(--error);color:#fff}dialog{max-width:450px;width:90vw;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:12px;padding:28px}dialog::backdrop{background:#0007}dialog h2{font-size:19px;margin:0 0 15px}dialog p{color:var(--muted);line-height:1.7;font-size:13px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}[hidden]{display:none!important}@media(min-width:1500px){.workspace{grid-template-columns:450px minmax(0,1fr)}.preview-area{padding:28px 40px}}@media(max-width:1000px){.workspace{grid-template-columns:360px minmax(0,1fr)}.preview-area{padding:20px 18px}.preview-stage{padding:12px}.welcome{padding:30px 20px}.product-type{display:none}.topbar{padding:0 20px}.welcome.split,.welcome.float{flex-direction:column;text-align:center}.welcome.split>img,.welcome.float>img{width:auto;max-width:85%;max-height:200px}}@media(max-width:720px){.topbar{padding:12px 16px;gap:12px;height:auto;min-height:72px;flex-wrap:wrap}.brand{font-size:17px}.top-actions{gap:5px}.top-actions .secondary{font-size:11px;padding:8px}.workspace{height:auto;display:flex;flex-direction:column}.editor{min-height:620px;border-right:0;border-bottom:1px solid var(--line)}.editor-scroll{max-height:480px}.editor-top{padding:24px 20px 16px}.preview-area{min-height:690px;padding:22px 16px}.preview-stage{min-height:550px}.preview-frame{min-height:520px}.preview-toolbar{padding-bottom:16px}.two-col{grid-template-columns:1fr}.top-actions svg{display:none}.preview-bottom{font-size:10px}.preview-bottom .text-button{font-size:10px}.editor-footer{padding:14px 20px}}.editor-scroll{min-height:0;flex-shrink:1}.editor-footer,.editor-top,.tabs{flex-shrink:0}.preview-area{min-height:0}@media(min-width:721px){.preview-stage{flex-basis:0}.preview-frame{min-height:0}.welcome{min-height:100%}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
