:root{font-family:ui-rounded,"SF Pro Rounded","PingFang SC","Microsoft YaHei",sans-serif;color:#223548;background:#f2f5fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,input{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.35}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #7b9de3;outline-offset:3px}button{transition:background .16s,transform .16s}button:active:not(:disabled){transform:translateY(1px)}button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.header{height:92px;max-width:1480px;padding:0 48px;margin:auto;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e1e7ef}.brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:21px;letter-spacing:1px}.brand-mark{background:#395b97;color:white;width:46px;height:46px;border-radius:15px;display:grid;place-items:center;font-size:35px;line-height:1}.brand small{font-size:11px;display:block;color:#8290a4;letter-spacing:1.3px;font-weight:500;margin-top:4px}.header-right{display:flex;align-items:center;gap:22px;font-size:13px}.connection{color:#718095;display:flex;align-items:center;gap:7px}.connection:before{content:"";background:#d2a14b;width:7px;height:7px;border-radius:50%}.connection.ready:before{background:#3c967b}.local-tag{border:1px solid #dce3ec;padding:8px 13px;border-radius:20px;color:#7a8798}main{max-width:1384px;margin:auto;padding:38px 40px 0}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px;gap:24px}.eyebrow{font-size:12px;color:#687f9e;letter-spacing:3px}h1{font-size:clamp(26px,3vw,38px);font-weight:750;letter-spacing:-1px;margin:12px 0}h1 span{color:#5277b3}.intro p{font-size:15px;color:#7b8899;margin:0;line-height:1.7}.example-button{border:1px solid #dce5f0;background:#eaf0fa;border-radius:17px;padding:17px 20px;display:flex;align-items:center;gap:15px;color:#6c809d;text-align:left;font-size:12px;white-space:nowrap}.example-button:hover{background:#dfe9f9}.example-button strong{display:block;font-size:15px;color:#3a5a8e;margin-top:5px}.mini-character{font-size:36px;color:#8ca5cf}.play-small{border:1px solid #bdcce2;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;font-size:17px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px;align-items:start}.panel{background:white;border:1px solid #e3e9f0;border-radius:22px;box-shadow:0 5px 25px #21395704;overflow:hidden}.panel-heading{display:flex;justify-content:space-between;align-items:center;padding:24px 26px 20px}.section-label{font-size:11px;letter-spacing:2px;color:#91a0b1}h2{font-size:18px;margin:8px 0 0;font-weight:650;letter-spacing:.1px}.text-button{background:none;border:0;font-size:12px;color:#7f92ab;padding:8px}.text-button:hover{color:#34578c}.toolbar{display:flex;align-items:center;gap:10px;padding:11px 18px;border-top:1px solid #edf0f5;border-bottom:1px solid #edf0f5;background:#fcfdff;flex-wrap:wrap;min-height:62px}.tool-group{display:flex;gap:4px}.icon-button{width:35px;height:35px;border:0;border-radius:9px;background:transparent;color:#8997a8;display:grid;place-items:center}.icon-button:hover{background:#edf2f9}.icon-button.active{background:#e6edf9;color:#426397}.divider{height:24px;width:1px;background:#e3e8ef;margin:0 2px}.colors{display:flex;align-items:center;gap:8px}.swatch{width:20px;height:20px;border-radius:50%;border:2px solid white;box-shadow:0 0 0 1px transparent;padding:0}.swatch.selected{box-shadow:0 0 0 2px #8093ad}.swatch:hover{transform:scale(1.12)}input[type=color]{appearance:none;border:1px solid #dce4ee;padding:2px;width:25px;height:25px;background:white;border-radius:7px;cursor:pointer}input[type=color]::-webkit-color-swatch-wrapper{padding:1px}input[type=color]::-webkit-color-swatch{border:0;border-radius:3px}.brush-label{display:flex;align-items:center;gap:7px;font-size:11px;color:#8a98aa}input[type=range]{width:66px;accent-color:#5f7eab;height:4px}.brush-label span{width:15px}.toolbar-end{display:flex;margin-left:auto}.canvas-wrap{position:relative;margin:18px 20px 0;background:white;border:1px solid #e7ecf2;border-radius:12px;overflow:hidden;aspect-ratio:1/1;max-height:660px}.canvas-wrap:before{content:"";position:absolute;inset:0;background-image:radial-gradient(#d5dfeb 1px,transparent 1px);background-size:24px 24px;opacity:.25;pointer-events:none}canvas{display:block;width:100%;height:100%;position:relative;touch-action:none;cursor:crosshair}.drawing-guide{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.canvas-caption{position:absolute;bottom:11%;left:0;right:0;text-align:center;color:#a7b5c5;font-size:13px;pointer-events:none}.paper-label{position:absolute;bottom:14px;right:16px;color:#c1cad5;font-size:10px;letter-spacing:2px;pointer-events:none}.canvas-footer{padding:13px 19px 17px;display:flex;justify-content:space-between;gap:10px}.canvas-footer>div{display:flex;gap:6px}.subtle-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:transparent;border:0;color:#7b8b9f;padding:9px 10px;border-radius:8px;font-size:12px}.subtle-button svg{width:15px;height:15px}.subtle-button:hover{background:#f1f5fa;color:#426397}.danger{color:#a29497}.danger:hover{background:#fff0ee;color:#b96a61}.side-panel{display:flex;flex-direction:column;gap:20px}.motion-panel{padding:24px}.motion-panel h2{margin-bottom:20px}.motions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.motion{padding:12px 4px 10px;border:1px solid #e6ebf3;background:#fff;border-radius:12px;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px;color:#7b8a9e}.motion svg{width:34px;height:34px;stroke-width:2.2}.motion:hover{background:#f5f8fd}.motion.selected{border-color:#a6bce0;color:#44699f;background:#edf3ff;box-shadow:inset 0 0 0 1px #a6bce0}.generate{display:flex;justify-content:center;align-items:center;gap:10px;width:100%;margin-top:22px;border:0;background:#eb9565;color:white;font-size:16px;font-weight:650;height:52px;border-radius:12px;box-shadow:0 5px 12px #dc8c5625}.generate:hover{background:#de8553}.generate span{font-size:24px}.generate-hint{text-align:center;color:#a1aab8;font-size:11px;margin:12px 0 0}.preview-panel{padding:20px}.preview-title{display:flex;justify-content:space-between;align-items:center;gap:8px}.preview-title h2{font-size:15px;margin:0}.live-label{font-size:10px;color:#98a6b7}.preview-stage{margin-top:17px;aspect-ratio:1.12;position:relative;display:grid;place-items:center;background:#f6f8fc;border-radius:14px;overflow:hidden}.empty-preview{text-align:center;color:#97a5b8;font-size:12px;line-height:1.9}.empty-preview p{margin:8px 0 0}.empty-art{width:115px;margin:auto}.empty-art svg{display:block;width:100%}.preview-stage>img{width:100%;height:100%;object-fit:contain;position:absolute;background:white}.working{position:absolute;inset:0;background:#f3f7ffed;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:24px;gap:14px}.working strong{font-size:13px;line-height:1.7;font-weight:550}.working>span{font-size:11px;color:#9aa9bc}.spinner{height:35px;width:35px;border:3px solid #dee7f8;border-top-color:#698dc5;border-radius:50%;animation:spin 1s linear infinite}.progress-track{width:80%;height:4px;background:#dee7f5;border-radius:8px;overflow:hidden}.progress-track>div{height:100%;width:0;background:#7596c8;transition:width 1s}.result-actions{display:flex;align-items:center;justify-content:space-between;margin-top:12px}.download{background:#eaf2ff;color:#4e74a8;padding:10px 14px;font-size:12px;border-radius:9px;cursor:pointer}.error{background:#fff2ef;border-radius:10px;padding:12px;color:#b36d5d;font-size:12px;line-height:1.8;margin:13px 0 0}.drawing-tip{display:flex;gap:11px;padding:0 8px;color:#8b99ac}.tip-icon{color:#d2a66c;font-size:26px}.drawing-tip p{font-size:11px;line-height:1.9;margin:0}.drawing-tip strong{display:block;color:#7c8ea7;font-size:12px;font-weight:550;margin-bottom:4px}footer{padding:27px 0 22px;color:#a6b1c0;font-size:11px;letter-spacing:.5px;display:flex;justify-content:space-between}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#2d415a;color:white;padding:13px 22px;border-radius:12px;box-shadow:0 8px 30px #152a4530;font-size:14px;z-index:10}dialog{border:1px solid #dfe7f1;border-radius:20px;padding:28px;max-width:90vw;box-shadow:0 15px 60px #20304030;color:#30445d}dialog::backdrop{background:#26374e55;backdrop-filter:blur(3px)}dialog h2{margin:0}dialog p{color:#8391a4;font-size:14px;line-height:1.8}dialog>div{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.confirm-button{border:0;background:#e79367;color:white;padding:10px 18px;border-radius:9px;font-size:13px}@keyframes spin{to{transform:rotate(360deg)}}@media(min-width:1450px){.workspace{grid-template-columns:minmax(0,1fr) 360px}.preview-stage{aspect-ratio:1.2}.canvas-wrap{max-height:680px}}@media(max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr) 300px;gap:18px}main{padding:30px 24px 0}.header{padding:0 26px}.toolbar{gap:7px;padding:9px 12px}.brush-label{display:none}.divider:nth-of-type(4){display:none}.colors{gap:6px}.panel-heading{padding:20px}.motion-panel{padding:20px}.canvas-wrap{margin:14px 14px 0}.canvas-footer{padding:10px}.local-tag{display:none}}@media(max-width:780px){.header{height:76px;padding:0 20px}.brand{font-size:18px}.brand-mark{height:39px;width:39px;border-radius:12px}.brand small{font-size:9px}.connection{font-size:11px}.intro{align-items:flex-start}.example-button{padding:11px}.example-button>span:first-child,.play-small{display:none}.example-button{font-size:10px}.example-button strong{font-size:12px}.eyebrow{font-size:10px}main{padding:26px 16px 0}.intro p{font-size:12px;max-width:260px}.intro h1{font-size:26px;line-height:1.5}.intro h1 span{display:block}.workspace{grid-template-columns:1fr}.side-panel{display:grid;grid-template-columns:1fr 1fr;gap:14px}.drawing-tip{grid-column:1/-1}.motion-panel{padding:18px}.motion-panel h2{font-size:15px}.motion{padding:9px 2px;font-size:10px;gap:4px}.motion svg{width:28px;height:28px}.motions{gap:5px}.preview-panel{padding:15px}.preview-title{display:block}.live-label{display:block;margin-top:7px}.generate{font-size:13px;height:44px;margin-top:16px}.generate-hint{font-size:10px}.section-label{font-size:10px}.canvas-wrap{max-height:none}.canvas-caption{font-size:11px}footer{font-size:9px;gap:10px}.empty-art{width:90px}.empty-preview p{font-size:11px}.result-actions{gap:2px}.download{font-size:11px;padding:8px}.result-actions .subtle-button{font-size:10px;padding:6px}.panel-heading h2{font-size:16px}.toolbar .brush-label{display:flex}.toolbar{gap:9px}.colors{gap:7px}.swatch{width:19px;height:19px}}@media(max-width:450px){.toolbar .brush-label{display:none}.toolbar{gap:6px}.colors{gap:6px}.icon-button{width:30px}.toolbar-end{gap:0}.side-panel{grid-template-columns:1fr}.preview-stage{aspect-ratio:1.35}.motions{grid-template-columns:repeat(3,1fr)}.motion{font-size:12px}.preview-title{display:flex}.preview-title .live-label{margin:0}.motion-panel h2{font-size:18px}.intro{gap:8px}.example-button{padding:10px 8px}.intro h1{font-size:24px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Keep tool labels readable on touch screens. */
.section-label,.eyebrow,.brand small,.header-right,.connection,.local-tag,.text-button,.brush-label,.motion,.generate-hint,.live-label,.subtle-button,.download,.error,.working strong,.working>span,.drawing-tip p,.drawing-tip strong,.empty-preview,.empty-preview p,.canvas-caption,footer{font-size:14px}
.intro p{font-size:16px}.example-button{font-size:14px}.paper-label{font-size:12px}.toolbar{row-gap:8px}.brand small{font-size:12px}.brush-label input{width:54px}.canvas-footer .subtle-button{font-size:14px}
@media(max-width:780px){.side-panel{grid-template-columns:1fr}.motions{grid-template-columns:repeat(3,1fr)}.motion{font-size:14px}.motion svg{width:34px;height:34px}.preview-stage{aspect-ratio:1.4}.preview-title{display:flex}.live-label{margin:0}.example-button{font-size:12px}.section-label,.eyebrow,.brand small{font-size:12px}.intro p{font-size:14px}.intro h1{font-size:26px}.generate{font-size:16px}.connection{font-size:12px}.brush-label{font-size:12px}.brush-label input{width:48px}.toolbar .brush-label{display:none}footer{font-size:12px;line-height:1.8}.canvas-caption{font-size:12px}}
@media(max-width:780px){.toolbar .brush-label{display:flex}.toolbar{column-gap:9px}.brush-label input{width:66px}.toolbar-end{margin-left:auto}.preview-title .live-label{font-size:12px}}
.character-modes{display:flex;align-items:center;justify-content:space-between;padding:0 20px 15px;gap:10px;flex-wrap:wrap}.character-modes>div{display:flex;background:#f0f4fa;padding:4px;border-radius:11px;gap:3px}.mode{border:0;background:transparent;padding:9px 12px;color:#8090a7;border-radius:8px;font-size:14px}.mode.selected{background:white;color:#426397;box-shadow:0 2px 7px #29456d12}.animal-note{margin:0 20px 15px;padding:12px 14px;background:#eff6ef;border-radius:10px;color:#658969;font-size:14px;line-height:1.8}.joint-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;touch-action:none;z-index:2}.joint-overlay [data-joint]{pointer-events:all;cursor:grab;outline:none}.joint-overlay [data-joint]:focus circle{stroke:#264b88;stroke-width:6}.joint-overlay text{font-size:20px;paint-order:stroke;stroke:white;stroke-width:5px;stroke-linejoin:round;pointer-events:none}.mode:disabled{opacity:.6}
