:root{--paper:#f5f2eb;--ink:#282b26;--muted:#85877e;--line:#deded3;--orange:#e45b32;--green:#42634c}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Avenir Next","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px}button,input,select{font:inherit}button,select{cursor:pointer}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,.dropzone:focus-within{outline:3px solid #e45b3280;outline-offset:4px}button:disabled{opacity:.45;cursor:not-allowed}header{height:86px;border-bottom:1px solid var(--line);padding:0 5%;display:flex;align-items:center;justify-content:space-between}.brand{text-decoration:none;color:var(--ink);font-weight:800;font-size:22px;display:flex;align-items:center;gap:12px}.brand-icon{display:grid;place-items:center;background:var(--orange);color:var(--paper);width:36px;height:36px;font-size:30px}.mono,.eyebrow{font-family:"SFMono-Regular",Consolas,monospace}.brand .mono{font-size:10px;font-weight:500;margin-left:8px;letter-spacing:1.2px}.privacy{font-size:12px;color:#62685d;display:flex;gap:8px;align-items:center}i{display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%}main{max-width:1440px;margin:auto;padding:46px 5% 24px}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:38px}.eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:600;color:#74776d}h1{font-size:clamp(30px,3.3vw,48px);letter-spacing:-1.8px;font-weight:600;margin:14px 0}h1 span{color:var(--orange)}.subtitle{color:#777b70;font-size:13px;margin-bottom:0}.edition{font-size:10px;color:#929487;line-height:2;text-align:right}.workspace{display:grid;grid-template-columns:300px minmax(0,1fr);background:#fbfaf6;border:1px solid var(--line);border-radius:10px;overflow:hidden;box-shadow:0 12px 40px #393c2605}.controls{padding:24px;border-right:1px solid var(--line)}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.text-button{padding:0;border:0;background:none;font-size:11px;color:#777b70}.text-button:hover{color:var(--orange)}.dropzone{position:relative;display:flex;align-items:center;flex-direction:column;gap:10px;border:1px dashed #c9cbbd;border-radius:6px;padding:19px 5px;cursor:pointer;background:#f5f4ed;transition:.2s}.dropzone:hover,.dropzone.dragging{border-color:var(--orange);background:#fff1e7}.upload-icon{font-size:28px;font-weight:300;color:var(--orange);line-height:1}.dropzone strong{font-size:12px;font-weight:500}.dropzone>span:last-of-type{font-size:10px;color:#8d8f83}.dropzone input{position:absolute;width:1px;height:1px;opacity:0}.file-meta{font-size:10px;color:#85887b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:10px 0 0}.divider{height:1px;background:var(--line);margin:24px 0}.control-label{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin:20px 0 12px}.value{font:11px Consolas,monospace;color:var(--orange);background:#f8e9de;padding:4px 7px;border-radius:3px}.hint{font-size:10px;color:#8a8d80}input[type=range]{width:100%;accent-color:var(--orange);height:4px;margin:10px 0;cursor:pointer}.range-labels{display:flex;justify-content:space-between;font-size:10px;color:#939588;margin:3px 0 24px}select{width:100%;padding:11px 10px;background:#fffefa;border:1px solid var(--line);border-radius:4px;color:#575d50;font-size:12px}select:disabled{opacity:.6;cursor:default}.toggle-row{display:flex;justify-content:space-between;align-items:center;margin-top:23px}.toggle-row strong{font-size:12px;font-weight:500}.toggle-row small{display:block;font-size:10px;color:#909286;margin-top:6px}.toggle-row input{appearance:none;width:32px;height:18px;border-radius:20px;background:#d4d6cd;cursor:pointer;flex-shrink:0}.toggle-row input:before{content:"";display:block;width:12px;height:12px;margin:3px;background:#fff;border-radius:50%;transition:transform .2s}.toggle-row input:checked{background:var(--orange)}.toggle-row input:checked:before{transform:translateX(14px)}.primary{width:100%;border:0;border-radius:5px;background:var(--orange);color:white;padding:14px 16px;margin-top:18px;display:flex;justify-content:space-between;font-weight:600;font-size:13px}.primary:hover:not(:disabled){background:#ca4821}.export-size{text-align:center;color:#939588;font-size:10px;margin:12px 0 0}.preview-panel{min-width:0;display:flex;flex-direction:column}.preview-toolbar{height:65px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid var(--line);gap:10px}.preview-title{font-size:12px;display:flex;align-items:center;gap:8px}.tabs{display:flex;padding:3px;background:#eeeee6;border-radius:5px;gap:2px}.tabs button{padding:7px 16px;border:0;background:none;font-size:11px;color:#828575;border-radius:3px}.tabs button.active{background:#fffefa;color:var(--ink);box-shadow:0 1px 3px #00000012}.dimensions{font-size:10px;color:#858878}.stage{position:relative;min-height:420px;flex:1;display:flex;align-items:center;justify-content:center;padding:42px;background-color:#efeee6;background-image:linear-gradient(45deg,#e8e8de 25%,transparent 25%),linear-gradient(-45deg,#e8e8de 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e8e8de 75%),linear-gradient(-45deg,transparent 75%,#e8e8de 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}canvas{display:block;max-width:100%;max-height:540px;object-fit:contain;image-rendering:pixelated;box-shadow:0 14px 30px #252c2520}.canvas-corner{position:absolute;width:14px;height:14px;border-color:#9da28f;border-style:solid}.top-left{top:18px;left:18px;border-width:1px 0 0 1px}.bottom-right{bottom:18px;right:18px;border-width:0 1px 1px 0}.preview-bottom{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#858a79;padding:16px 24px;border-top:1px solid var(--line)}#status.error{color:#b2381c}.palette-bar{display:flex;align-items:center;gap:16px;padding:23px 24px;border-top:1px solid var(--line);min-height:77px}#swatches{display:flex;flex-wrap:wrap;gap:3px;flex:1}#swatches span{width:14px;height:20px;border-radius:2px;border:1px solid #0000000a}#palette-count{font-size:10px;color:#8c907f}footer{display:flex;justify-content:space-between;color:#8f9383;font-size:10px;padding-top:24px}@media(min-width:1500px){main{padding-left:50px;padding-right:50px}}@media(max-width:850px){.brand .mono,.edition{display:none}main{padding-top:28px}.workspace{grid-template-columns:260px minmax(0,1fr)}.controls{padding:18px}.preview-toolbar{padding:0 14px;flex-wrap:wrap}.dimensions{display:none}.stage{padding:20px;min-height:350px}.palette-bar{padding:18px 14px;flex-wrap:wrap}.palette-bar .eyebrow{width:100%}.tabs button{padding:7px 10px}}@media(max-width:620px){header{height:68px}.brand{font-size:18px}.privacy{font-size:10px}.brand-icon{width:28px;height:28px;font-size:24px}.intro{margin-bottom:26px}h1{letter-spacing:-1px}.workspace{display:flex;flex-direction:column}.preview-panel{order:-1}.stage{min-height:280px;height:320px;flex:auto}.stage canvas{max-height:280px}.preview-toolbar{height:56px}.controls{border-right:0;border-top:1px solid var(--line);padding:24px}.palette-bar{min-height:60px;gap:8px}.palette-bar .eyebrow{width:auto;font-size:9px}.preview-bottom{padding:12px 14px}.preview-bottom .mono{display:none}.dropzone{padding:22px}.subtitle{font-size:12px}footer{font-size:9px;gap:14px;line-height:1.8}}
[hidden]{display:none!important}canvas{image-rendering:auto}.notice{font-size:11px;line-height:1.9;color:#828575;margin:20px 0 0}.secondary{width:100%;display:flex;justify-content:space-between;padding:13px 16px;border:1px solid var(--line);border-radius:5px;background:#fffefa;font-size:12px}.empty-state{text-align:center;color:#7b8072;max-width:340px}.empty-mark{font-size:88px;color:var(--orange);font-family:Georgia,serif}.empty-state h2{font-size:20px;font-weight:500;color:var(--ink)}.empty-state p{font-size:12px;line-height:1.9;margin-bottom:26px}#connection{font-size:11px;color:#828575}.stage{min-height:500px}.primary.busy{animation:pulse 1.4s ease-in-out infinite}@keyframes pulse{50%{opacity:.6}}@media(prefers-reduced-motion:reduce){.primary.busy{animation:none}}@media(max-width:620px){.stage{min-height:300px}.empty-mark{font-size:60px}.empty-state h2{font-size:18px}}
