*{box-sizing:border-box}body{color:#25262a;background:#fff;margin:0;font:14px Arial,sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit;background:0 0;border:0;border-radius:6px}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-offset:3px;outline:2px solid #7864d7}button:hover{background:#f0eef8}header{border-bottom:1px solid #e7e7eb;justify-content:space-between;align-items:center;height:72px;padding:0 28px;display:flex}.brand{letter-spacing:-1px;align-items:center;gap:10px;font-size:25px;font-weight:700;display:flex}.mark{color:#7864d7;font-size:35px}.subtitle{color:#85858d;letter-spacing:0;margin-left:24px;font-size:12px;font-weight:400}.primary{color:#fff;background:#28282d;justify-content:center;align-items:center;gap:24px;padding:12px 17px;font-size:13px;font-weight:600;display:flex}.primary:hover{background:#424149}.full{width:100%}.workspace{grid-template-columns:280px minmax(360px,1fr) 260px;height:calc(100dvh - 72px);display:grid}aside{overflow:auto}.left{border-right:1px solid #e7e7eb;flex-direction:column;display:flex}.tabs{background:#f3f3f5;border-radius:7px;gap:3px;padding:3px;display:flex}.left>.tabs{margin:22px 20px 0}.tabs button{color:#76767e;flex:1;padding:8px 6px;font-size:12px}.tabs .active,.detail .active{color:#28282d;background:#fff;box-shadow:0 1px 4px #00000010}.panel-content{padding:24px 20px}h2{letter-spacing:-.4px;margin:0 0 10px;font-size:18px}p{line-height:1.6}.muted{color:#81818b;font-size:12px}.small{font-size:11px}.panel-content>p{margin-bottom:24px}label{margin:17px 0 9px;font-size:12px;font-weight:500;display:block}textarea{resize:vertical;color:#45434d;border:1px solid #dedee5;border-radius:7px;width:100%;min-height:100px;margin-bottom:12px;padding:12px;line-height:1.6}.divider{background:#eeeef2;height:1px;margin:27px 0 22px}.section-title{justify-content:space-between;font-size:12px;font-weight:600;display:flex}.section-title span{color:#96959d;font-size:11px;font-weight:400}.library{grid-template-columns:1fr 1fr;gap:9px;margin-top:16px;display:grid}.library button{text-align:center;background:#fafafb;border:1px solid #eeeef2;padding:10px 5px;position:relative}.library button:hover{background:#f5f2ff;border-color:#b9abeb}.library img{object-fit:contain;width:90px;height:66px;margin:auto;display:block}.library span{margin-top:8px;font-size:11px;display:block}.library b{color:#a4a0ae;font-weight:400;position:absolute;top:3px;right:6px}.aside-note{color:#9a99a3;border-top:1px solid #eee;margin-top:auto;padding:18px 20px;font-size:10px;line-height:1.7}.stage{background:#f3f4f6;flex-direction:column;min-width:0;display:flex}.stage-toolbar{background:#fafafb;border-bottom:1px solid #e7e7eb;align-items:center;gap:12px;height:64px;padding:0 22px;display:flex}select{color:#494850;background:#fff;border:1px solid #e1e1e7;border-radius:6px;padding:8px;font-size:12px}.dimensions{color:#9a99a3;font-size:11px}.detail{color:#898792;align-items:center;gap:3px;margin-left:auto;font-size:11px;display:flex}.detail>span{margin-right:10px}.detail button{padding:6px 10px}.canvas-area{background-image:radial-gradient(#d7d8df .65px,#0000 .65px);background-size:14px 14px;flex:1;justify-content:center;align-items:center;min-height:0;padding:65px 55px;display:flex;overflow:auto}.canvas-area svg{touch-action:none;-webkit-user-select:none;user-select:none;flex-shrink:0;max-height:100%;box-shadow:0 6px 30px #22223212}.canvas-area g{cursor:move}footer{color:#86858f;background:#fafafb;border-top:1px solid #e4e4eb;flex-shrink:0;justify-content:space-between;align-items:center;height:44px;padding:0 20px;font-size:11px;display:flex}footer>div{align-items:center;gap:10px;display:flex}footer button{padding:7px}.right{border-left:1px solid #e7e7eb}.right section{border-bottom:1px solid #eeeef2;padding:23px 20px}h3{justify-content:space-between;margin:0 0 20px;font-size:13px;display:flex}h3 span{color:#96939f;font-weight:400}.palettes{gap:8px;display:flex}.palettes button{border:1px solid #e5e3ea;gap:0;padding:5px;display:flex}.palettes .chosen{border:2px solid #7864d7;padding:4px}.secondary{background:#fff;border:1px solid #dfdee6;padding:9px;font-size:11px}.angle{color:#92909b;border:1px solid #dfdee6;border-radius:6px;margin-bottom:16px;padding:7px 10px;display:flex}.angle input{border:0;outline:none;width:100%;font-size:12px}.delete{color:#a05660;width:100%;margin-top:10px;padding:8px;font-size:11px}.layer{border-radius:5px;align-items:center;margin:4px -6px;padding:4px;display:flex}.layer.selected{background:#f0ecfb}.layer>button:first-child{text-align:left;flex:1;padding:6px;font-size:12px}.layer small{color:#a09ca9;margin-top:4px;font-size:10px;display:block}.layer>button:not(:first-child){color:#8a8499;padding:6px}@media (max-width:1050px){.workspace{grid-template-columns:230px minmax(300px,1fr) 220px}.subtitle,.dimensions{display:none}.canvas-area{padding:35px}.stage-toolbar{padding:0 12px}.detail>span{display:none}}@media (max-width:760px){.workspace{grid-template-columns:1fr;height:auto}.left{max-height:380px}.stage{grid-row:1;height:600px}.right{grid-template-columns:1fr 1fr;display:grid}.aside-note{display:none}header{padding:0 16px}.canvas-area{padding:30px}}button:disabled{opacity:.55;cursor:wait}.background-toggle{align-items:center;gap:8px;margin:0 0 16px;font-size:11px;line-height:1.5;display:flex}.background-toggle input{accent-color:#7864d7}.palettes button{grid-template-columns:repeat(2,14px);display:grid}.palettes span{width:14px;height:14px}button:disabled{cursor:not-allowed}.canvas-area svg:focus-visible{outline-offset:6px;outline:2px solid #7864d7}.layer button:disabled{opacity:.25}.workspace[inert]{opacity:.7;pointer-events:none}.primary:disabled{cursor:wait}html,body{width:100%;height:100%;overflow:hidden}.app{flex-direction:column;height:100dvh;min-height:0;display:flex;overflow:hidden}header{flex:0 0 64px;height:64px}.workspace{flex:1;grid-template-columns:clamp(210px,18vw,280px) minmax(0,1fr) clamp(210px,17vw,260px);height:auto;min-height:0;overflow:hidden}.workspace>*{min-width:0;min-height:0}.left,.right{overscroll-behavior:contain;scrollbar-width:thin}.left>.tabs{flex-shrink:0;margin:14px 16px 0}.panel-content{min-height:0;padding:16px}.panel-content>p{margin:8px 0 14px}textarea{resize:none;height:74px;min-height:64px;margin-bottom:8px;padding:9px}.divider{margin:16px 0}.library{gap:6px;margin-top:10px}.library button{padding:5px}.library img{width:100%;height:clamp(30px,5.2dvh,58px)}.library span{margin-top:4px;font-size:10px}.aside-note{flex-shrink:0;padding:10px 16px}.stage{min-height:0;overflow:hidden}.stage-toolbar{flex:0 0 52px;height:52px;padding:0 16px}.canvas-area{flex:1;min-width:0;min-height:0;padding:0;position:relative;overflow:hidden;container-type:size}.canvas-area svg{width:min(90cqw,calc(86cqh * var(--canvas-ratio)));max-width:none;height:auto;max-height:none;transform:scale(var(--canvas-zoom));transform-origin:50%;flex:none;display:block}footer{flex:0 0 40px;gap:8px;min-width:0}footer>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}footer>div{flex-shrink:0}.right section{padding:16px}h3{margin-bottom:14px}.right label{margin:12px 0 8px}@media (max-height:780px){header{flex-basis:52px;height:52px}.brand{font-size:22px}.mark{font-size:29px}.panel-content{padding:12px 14px}.panel-content h2{margin-bottom:6px;font-size:16px}.panel-content>p{margin:6px 0 10px;font-size:11px;line-height:1.4}label{margin:10px 0 6px}.background-toggle{margin-bottom:10px;font-size:10px}textarea{height:58px;min-height:58px;font-size:12px}.primary{padding:10px 12px}.divider{margin:12px 0}.library img{height:clamp(24px,4.5dvh,36px)}.library button{padding:4px}.library span{margin-top:2px}.aside-note{display:none}.right section{padding:12px 14px}.right h3{margin-bottom:10px}.right p{line-height:1.4}.right label{margin:8px 0 6px}.angle{margin-bottom:8px}.delete{margin-top:4px;padding:6px}.layer{margin:1px -6px}.layer>button:first-child{padding:4px}.stage-toolbar{flex-basis:46px;height:46px}}@media (max-height:600px){.panel-content>p{display:none}.panel-content h2{font-size:14px}.library{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.library img{height:26px}.library span{font-size:9px}.section-title span{display:none}textarea{height:48px;min-height:48px}.right .small{display:none}header{flex-basis:46px;height:46px}.left>.tabs{margin-top:8px}.tabs button{padding:6px}}@media (max-width:1050px){.workspace{grid-template-columns:210px minmax(0,1fr) 205px}.stage-toolbar{padding:0 10px}.canvas-area{padding:0}.subtitle,.dimensions,.detail>span{display:none}}@media (max-width:760px){.workspace{grid-template-rows:minmax(0,1fr) minmax(0,42%);grid-template-columns:minmax(0,1fr) 190px;display:grid}.stage{grid-area:1/1;height:auto;min-height:0}.left{border-top:1px solid #e7e7eb;grid-area:2/1;max-height:none;display:flex;overflow:auto}.right{grid-area:1/2/3;display:block;overflow:auto}.library{grid-template-columns:repeat(5,minmax(0,1fr))}.library img{height:28px}.panel-content>p,.aside-note,.left h2{display:none}.panel-content{padding:8px 12px}.left>.tabs{margin:8px 12px 0}textarea{height:42px;min-height:42px}.divider{margin:8px 0}.library{margin-top:6px}.brand{font-size:20px}header{padding:0 12px}.stage-toolbar select{max-width:130px}.stage-toolbar{gap:4px}footer{padding:0 8px}}@media (max-height:780px){.library{grid-template-columns:repeat(3,minmax(0,1fr))}.library img{height:28px}.library span{font-size:9px}.library button{padding:3px}}@media (max-height:600px){.panel-content{padding:8px 12px}.panel-content h2{margin-bottom:4px}.library img{height:22px}.library span{font-size:9px}.library{gap:3px}.library button{padding:2px}.background-toggle{margin-bottom:7px}.divider{margin:8px 0}}@media (max-width:760px){.left .panel-content{padding:6px 12px}.left textarea{height:34px;min-height:34px;margin:0}.left label{margin:3px 0}.left .primary{padding:6px}.left .background-toggle{margin:3px 0}.left .divider{margin:5px 0}.left .library{grid-template-columns:repeat(5,minmax(0,1fr))}.left .library img{height:20px}.left .library button{padding:2px}.left .library span{margin-top:1px;font-size:9px}.left .tabs button{padding:4px}}.loading-overlay{z-index:40;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#f3f4f694;place-items:center;animation:.18s ease-out .18s both loader-enter;display:grid;position:fixed;inset:52px 0 0}.loading-card{text-align:center;background:#fff;border:1px solid #e7e3f0;border-radius:16px;flex-direction:column;align-items:center;max-width:calc(100vw - 32px);padding:30px 38px;display:flex;box-shadow:0 16px 60px #30254814}.loading-card strong{letter-spacing:-.3px;margin-top:22px;font-size:16px}.loading-card p{color:#777280;margin:9px 0 14px;font-size:12px}.loading-caption{color:#a19aa9;font-size:11px}.assembly-loader{width:100px;height:70px;position:relative}.assembly-loader span{border-radius:8px;width:42px;height:42px;animation:1.8s cubic-bezier(.45,0,.25,1) infinite assemble-shape;display:block;position:absolute}.assembly-loader span:first-child{--turn:-14deg;--shift:-7px;background:#7864d7;animation-delay:-.3s;top:14px;left:10px}.assembly-loader span:nth-child(2){--turn:12deg;--shift:7px;background:#f9ecb0;animation-delay:-.15s;top:6px;left:47px}.assembly-loader span:nth-child(3){--turn:-5deg;--shift:0px;background:#d7cdf5;top:32px;left:34px}@keyframes assemble-shape{0%,to{transform:translate(var(--shift),-5px) rotate(var(--turn))}50%{transform:translateY(3px)rotate(0)}}@keyframes loader-enter{0%{opacity:0}to{opacity:1}}@media (min-height:781px){.loading-overlay{top:64px}}@media (max-height:600px){.loading-overlay{top:46px}}@media (prefers-reduced-motion:reduce){.loading-overlay,.assembly-loader span{animation:none}.assembly-loader span{transform:rotate(var(--turn))}}.group-scale{accent-color:#7864d7;cursor:ew-resize;width:100%}.scale-help{color:#92909b;margin:2px 0 12px;font-size:10px}.right label[for=group-scale]{justify-content:space-between;display:flex}
