:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:#293850;background:#f6f8fc;font-synthesis:none;font-weight:400;font-size:13px;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;color:inherit}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #91b5f8;outline-offset:3px}button{transition:background .15s,border-color .15s}header{height:82px;background:#fff;border-bottom:1px solid #e5eaf2;display:flex;align-items:center;padding:0 36px;gap:24px}.brand{display:flex;align-items:center;gap:11px;color:#2459a8;text-decoration:none}.brand-mark{display:flex;align-items:center;justify-content:center;width:37px;height:37px;background:#eaf1ff;border-radius:10px}.brand strong{font-size:21px;letter-spacing:-.8px}.brand strong>span{font-weight:400;margin-left:4px}.header-divider{height:20px;width:1px;background:#e4eaf4}.app-title{color:#76839a;font-size:12px;letter-spacing:1px}.header-actions{margin-left:auto;display:flex;gap:23px;align-items:center}.reset{background:none;border:0;color:#61728e;padding:10px}.reset:hover{color:#2563eb}.export{height:40px;border:1px solid #2563eb;border-radius:7px;background:#2563eb;color:#fff;padding:0 15px;font-weight:500}.export:hover{background:#1d4ed8}.png{font-size:10px;font-weight:400;opacity:.75;border-left:1px solid #ffffff40;padding-left:10px;margin-left:5px}.editor{display:grid;grid-template-columns:302px minmax(0,1fr);min-height:calc(100vh - 82px);min-height:calc(100dvh - 82px)}.controls{background:#fff;border-right:1px solid #e4eaf4;padding:24px 25px 12px}.panel-heading{display:flex;gap:9px;align-items:center}.panel-heading h2{font-size:14px;font-weight:600;margin:0}.controls section{padding:22px 0;border-bottom:1px solid #edf1f7}.controls section:last-child{border:0;padding-bottom:12px}h3{font-size:12px;margin:0 0 13px;font-weight:600}select{height:37px;width:100%;background:#fff;border:1px solid #dce4f1;border-radius:6px;padding:0 10px;color:#546783;cursor:pointer}.dimensions{display:flex;align-items:center;gap:5px;margin-top:10px}.dimension{height:35px;min-width:0;display:flex;align-items:center;gap:6px;border:1px solid #dce4f1;border-radius:6px;padding:0 8px;color:#8593aa;font-size:11px}.dimension input{width:100%;min-width:0;border:0;outline:0;color:#3b506f;font-size:12px;-moz-appearance:textfield}.dimension input::-webkit-inner-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none}.icon-button{border:0;background:none;padding:5px;color:#8493aa}.field-hint{font-size:10px;color:#7a89a0;margin:9px 0 0}.shapes{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.shape{height:66px;background:#fff;border:1px solid #e0e7f2;border-radius:7px;flex-direction:column;gap:6px;color:#75849c;font-size:11px}.shape:hover{background:#f2f6fe}.shape.selected{background:#edf4ff;border-color:#739ef1;color:#2563eb}.slider{display:block;margin-top:19px}.slider>span{display:flex;justify-content:space-between;align-items:center;font-size:12px}.slider output{font-variant-numeric:tabular-nums;border:1px solid #e4eaf4;border-radius:4px;padding:3px 7px;min-width:50px;text-align:center;font-size:11px}.slider small{font-size:10px;color:#8996ac;margin-left:3px}input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:4px;border-radius:4px;background:linear-gradient(to right,#3b73df var(--fill),#e5ebf5 var(--fill));margin:15px 0 2px;cursor:pointer}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff;border:2px solid #3b73df;width:13px;height:13px;border-radius:50%;box-shadow:0 1px 3px #0001}input[type=range]::-moz-range-thumb{background:#fff;border:2px solid #3b73df;width:10px;height:10px;border-radius:50%}.segmented{background:#f1f4fa;border-radius:6px;padding:3px;display:flex;gap:3px}.segmented button{width:50%;border:1px solid transparent;background:none;border-radius:4px;height:30px;color:#7a889f;font-size:11px}.segmented .active{background:#fff;color:#2563eb;border-color:#dbe6f8;box-shadow:0 1px 2px #00000006}.color-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.color-field>span{font-size:11px;color:#7c8ba2;display:block;margin-bottom:9px}.color-field>div{height:36px;display:flex;align-items:center;gap:6px;padding:5px 6px;border:1px solid #e0e7f2;border-radius:5px}.color-field input[type=color]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:22px;height:22px;flex-shrink:0;border:0;padding:0;background:none;cursor:pointer}.color-field input[type=color]::-webkit-color-swatch-wrapper{padding:0}.color-field input[type=color]::-webkit-color-swatch{border:1px solid #0000000a;border-radius:4px}.color-field input:not([type=color]){font-family:monospace;width:100%;min-width:0;border:0;font-size:10px;color:#5d6e89;background:none;text-transform:uppercase;padding:0}.palette-label{font-size:10px;color:#7e8da5;margin:17px 0 10px}.palettes{display:flex;justify-content:space-between;gap:9px}.palettes button{width:32px;height:32px;padding:0;border:3px solid #fff;border-radius:50%;outline:1px solid #e0e7f2}.palettes button[aria-pressed=true]{outline:1.5px solid #2563eb}.palettes span{display:block;width:14px;height:14px;border-radius:50%}.workspace{padding:42px 44px 0;display:flex;flex-direction:column;min-width:0}.workspace-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:31px;gap:12px}h1{font-size:25px;letter-spacing:1px;font-weight:500;margin:0 0 11px}h1>span{color:#3675e6}.workspace-heading p{font-size:12px;letter-spacing:.4px;color:#7c8ba2;margin:0}.live{display:flex;align-items:center;gap:6px;font-size:10px;color:#5e79a4;white-space:nowrap;border:1px solid #dce7f9;border-radius:5px;padding:6px 9px;background:#edf4ff}.live>span{width:5px;height:5px;background:#3b82f6;border-radius:50%}.preview-bar{display:flex;justify-content:space-between;color:#7c8ba2;font-size:11px;margin-bottom:13px}.mono{font-family:monospace;font-size:11px;color:#8a98af}.canvas-area{position:relative;flex:1;min-height:470px;background-color:#edf2fa;background-image:radial-gradient(#c8d4e7 .65px,transparent .65px);background-size:12px 12px;border:1px solid #dce5f2;border-radius:10px;overflow:hidden}.canvas-scroller{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto;display:flex;padding:40px}.canvas-holder{flex-shrink:0;margin:auto;box-shadow:0 5px 20px #334b7012,0 1px 3px #334b700a;background:#fff}.canvas-holder canvas{display:block;width:100%;height:100%}.zoom-toolbar{position:absolute;bottom:20px;left:50%;transform:translate(-50%);height:36px;display:flex;gap:6px;align-items:center;border:1px solid #e1e8f3;background:#ffffffed;border-radius:7px;box-shadow:0 3px 8px #00000006;padding:0 6px}.zoom-toolbar button{border:0;background:transparent;height:28px;width:28px;border-radius:4px}.zoom-toolbar button:hover{background:#edf4ff}.zoom-toolbar>span{font-size:11px;font-variant-numeric:tabular-nums;min-width:37px;text-align:center;color:#657b9b}.zoom-toolbar i{height:15px;width:1px;background:#e0e8f5;margin:0 2px}.workspace-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#7e8da5;font-size:10px;padding:18px 0 22px}.workspace-footer>span:first-child{display:flex;gap:6px;align-items:center}.app-footer{height:41px;border-top:1px solid #e4eaf4;display:flex;align-items:center;justify-content:space-between;padding:0 32px;color:#8593ab;font-size:10px;background:#fff}.app-footer>span:last-child{display:flex;align-items:center;gap:7px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%);background:#2459b4;color:#fff;padding:12px 15px;border-radius:8px;box-shadow:0 5px 20px #0002;display:flex;align-items:center;gap:20px;z-index:10;max-width:90vw}.toast button{background:none;border:0;color:#fff;font-size:19px}@media(min-width:1500px){.workspace{padding:50px 70px 0}.editor{grid-template-columns:320px minmax(0,1fr)}.controls{padding:28px 30px}}@media(max-width:1000px){header{padding:0 22px}.editor{grid-template-columns:280px minmax(0,1fr)}.controls{padding:24px 20px}.workspace{padding:32px 24px 0}.workspace-heading{align-items:flex-start}.live{display:none}h1{font-size:22px}.workspace-footer>span:last-child{display:none}}@media(max-width:700px){header{height:70px;padding:0 16px;gap:12px}.brand strong{font-size:18px}.brand-mark{width:30px;height:30px}.header-divider,.app-title,.png,.reset span{display:none}.header-actions{gap:5px}.export{padding:0 10px;font-size:12px}.editor{display:flex;flex-direction:column}.workspace{order:-1;padding:24px 16px 0}.workspace-heading{margin-bottom:22px}h1{font-size:22px}.workspace-heading p{font-size:11px}.canvas-area{min-height:370px;flex:none}.controls{border-right:0;border-top:1px solid #e4eaf4;padding:24px}.controls section{padding:22px 0}.shapes{grid-template-columns:repeat(6,1fr)}.shape{height:62px}.palettes{justify-content:flex-start;gap:18px}.app-footer{padding:0 20px}.app-footer>span:last-child{display:none}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}@media(min-width:701px){.editor{height:calc(100vh - 82px);height:calc(100dvh - 82px);min-height:560px;overflow:hidden}.controls{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d1ddef transparent}.workspace{min-height:0}.canvas-area{min-height:250px}.workspace-heading,.workspace-footer{flex-shrink:0}}.shapes{grid-template-columns:repeat(3,minmax(0,1fr));max-height:264px;overflow-y:auto;padding:2px;scrollbar-width:thin;scrollbar-color:#d1ddef transparent}.shape{height:60px;gap:5px}.section-title{display:flex;align-items:center;justify-content:space-between}.section-title h3{margin:0}.switch{position:relative;width:32px;height:19px;display:block;cursor:pointer}.switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;z-index:1;cursor:pointer}.switch span{display:block;width:32px;height:19px;border-radius:12px;background:#c5cfdf;transition:background .15s}.switch span:after{content:"";display:block;position:absolute;top:3px;left:3px;width:13px;height:13px;background:#fff;border-radius:50%;transition:transform .15s}.switch input:checked+span{background:#2563eb}.switch input:checked+span:after{transform:translate(13px)}.switch input:focus-visible+span{outline:3px solid #91b5f8;outline-offset:3px}.select-label{display:block;font-size:11px;color:#657b9b;margin:14px 0}.select-label select{display:block;margin-top:7px}.gradient-controls>.color-field{display:block;margin-top:14px}.gradient-controls .color-field input:not([type=color]){font-size:12px}.field-hint{line-height:1.7}.upload-button{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:58px;border:1px dashed #9bb9ec;border-radius:7px;background:#f4f8ff;color:#3269c7;cursor:pointer;font-size:12px}.upload-button:hover{background:#eaf2ff}.upload-button input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;width:100%;height:100%;cursor:pointer}.upload-button:focus-within{outline:3px solid #91b5f8;outline-offset:3px}.upload-error{font-size:11px;color:#bd3c46;line-height:1.6}.uploaded-file{display:flex;align-items:center;gap:8px;background:#f1f5fc;padding:7px 9px;border-radius:5px;margin-top:12px}.uploaded-file>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:11px;color:#5b7294}.uploaded-file button{background:none;border:0;color:#5b7294;padding:4px}.gradient-controls{padding-top:1px}.segmented button:disabled{opacity:.45}.background-upload .slider{margin-bottom:10px}@media(max-width:700px){.shapes{grid-template-columns:repeat(4,minmax(0,1fr));max-height:none}}.workspace{padding-top:24px;padding-bottom:24px}@media(max-width:700px){.workspace{padding-top:20px;padding-bottom:20px}}.palettes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.palettes button{width:100%;height:32px;border-radius:6px;justify-content:flex-start;overflow:hidden}.palettes span{width:50%;height:100%;border-radius:0}@media(max-width:700px),(orientation:landscape)and (max-height:500px)and (max-width:1000px){.app{height:100vh;height:100dvh;overflow:hidden;display:flex;flex-direction:column}header{flex:none;height:calc(64px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left));gap:8px}.brand{gap:7px;flex-shrink:0}.brand strong{font-size:17px}.brand-mark{width:28px;height:28px}.header-actions{gap:4px}.reset{width:44px;height:44px;padding:0}.export{height:44px;padding:0 12px;font-size:13px;white-space:nowrap}.editor{flex:1;min-height:0;display:flex;overflow:hidden}.workspace{flex:0 0 clamp(200px,34vh,310px);flex:0 0 clamp(200px,34dvh,310px);min-height:0;padding:10px 12px;gap:8px}.preview-bar{margin:0;flex-shrink:0;font-size:12px}.canvas-area{min-height:0;flex:1}.canvas-scroller{padding:12px 12px 52px;overscroll-behavior:contain}.zoom-toolbar{bottom:4px;height:44px;padding:0 3px;gap:2px}.zoom-toolbar button{width:44px;height:40px}.controls{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;padding:18px max(16px,env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));scroll-padding:16px}.controls section{padding:18px 0}.controls h3{font-size:13px}.shapes{grid-template-columns:repeat(4,minmax(0,1fr));max-height:none;overflow:visible;gap:8px}.shape{min-height:64px;font-size:12px}select,.dimension{min-height:44px}select,.dimension input,.color-field input:not([type=color]),.gradient-controls .color-field input:not([type=color]){font-size:16px}.swap-size{min-width:44px;min-height:44px}.slider>span{font-size:13px}.slider input[type=range]{height:44px;margin:4px 0 0;background:linear-gradient(to right,#3b73df var(--fill),#e5ebf5 var(--fill)) center / 100% 4px no-repeat}input[type=range]::-webkit-slider-thumb{width:24px;height:24px}input[type=range]::-moz-range-thumb{width:20px;height:20px}.segmented button{min-height:44px;font-size:13px}.color-field>span,.select-label,.palette-label{font-size:12px}.color-field>div{height:46px;gap:8px}.color-field input[type=color]{width:28px;height:32px}.palettes{gap:12px}.palettes button{height:44px}.switch{width:44px;height:44px}.switch span{position:absolute;top:12px;left:6px}.upload-button{min-height:56px;font-size:14px}.uploaded-file button{width:44px;height:44px}.toast{bottom:calc(12px + env(safe-area-inset-bottom));width:calc(100% - 24px);max-width:430px;gap:8px;padding:8px 12px;font-size:13px}.toast button{margin-left:auto;min-width:44px;min-height:44px}}@media(max-width:360px){.brand strong{font-size:15px}.brand strong>span{margin-left:2px}.brand-mark{display:none}.export{padding:0 10px}}@media(orientation:landscape)and (max-height:500px)and (max-width:1000px){.app{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}header{height:56px;flex:none;padding:0 max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left))}.editor{flex:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,1fr);height:auto;min-height:0;overflow:hidden}.workspace{grid-column:1;grid-row:1;min-height:0;padding:12px}.controls{grid-column:2;grid-row:1;min-height:0;overflow-y:auto;border-left:1px solid #e4eaf4;padding-bottom:calc(24px + env(safe-area-inset-bottom))}.canvas-area{flex:1;min-height:0}.canvas-scroller{padding:12px 12px 52px}.zoom-toolbar{bottom:4px}}@media(orientation:landscape)and (max-height:500px)and (max-width:1000px){.header-divider,.app-title,.png,.reset span{display:none}}.random-size-control{margin-top:16px;font-size:12px}@media(max-width:700px){.random-size-control{font-size:13px}}.custom-shape-upload{margin-top:14px}.custom-shape-upload .upload-button{min-height:44px}.custom-shape-row{display:flex;gap:6px;margin-top:10px;align-items:center}.custom-shape-select{min-width:0;flex:1;background:#f6f8fc;border:1px solid #dce4f1;border-radius:6px;padding:6px;text-align:left;justify-content:flex-start}.custom-shape-select[aria-pressed=true]{border-color:#2563eb;background:#edf4ff}.custom-shape-select canvas{width:36px;height:36px;flex-shrink:0;background:repeating-conic-gradient(#e4e9f1,#e4e9f1 25%,#fff 0%,#fff 50%) 0 / 10px 10px;border-radius:3px}.custom-shape-select span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.custom-shape-row>.icon-button{min-width:44px;min-height:44px}.color-swatch{width:24px;height:24px;flex-shrink:0;border:1px solid #00000012;border-radius:4px;padding:0}.color-dialog{border:1px solid #dce4f1;border-radius:14px;padding:0;width:300px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow:auto;color:#293850;box-shadow:0 16px 64px #172b4d30}.color-dialog::backdrop{background:#172b4d35}.color-dialog-body{padding:18px}.color-dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.color-dialog-heading button{min-height:44px;padding:0 12px;border:0;background:#edf4ff;color:#2563eb;border-radius:6px}.hue-ring{position:relative;width:224px;height:224px;margin:0 auto 18px;border-radius:50%;background:conic-gradient(red,#ff0,#0f0,#0ff,#00f,#f0f,red);touch-action:none;cursor:crosshair;-webkit-user-select:none;user-select:none}.hue-ring-center{position:absolute;top:28px;right:28px;bottom:28px;left:28px;background:#fff;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;pointer-events:none}.hue-ring-center span{width:64px;height:64px;border-radius:50%;border:1px solid #0001}.hue-ring-center code{font-size:13px}.hue-ring-handle{position:absolute;width:20px;height:20px;border:3px solid white;border-radius:50%;box-shadow:0 0 0 1px #0005;transform:translate(-50%,-50%);pointer-events:none}.wheel-slider{display:block;margin-top:10px}.wheel-slider>span{display:flex;justify-content:space-between;font-size:13px}.wheel-slider input[type=range]{height:32px;margin:4px 0 0;background-size:100% 10px;background-repeat:no-repeat;background-position:center;touch-action:none}.wheel-slider input[type=range]::-webkit-slider-thumb{width:22px;height:22px}.wheel-slider input[type=range]::-moz-range-thumb{width:18px;height:18px}@media(max-width:700px){.color-swatch{width:30px;height:34px}.wheel-slider input[type=range]{height:44px}}
