:root{color-scheme:light;--ink:#573849;--mute:#785d6e;--pink:#c94775;--deep:#9f2f59;--line:#efd8e2;--blush:#fff0f6;--white:#fffdfd;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 16% 0,#fff0f8 0,transparent 43%),radial-gradient(ellipse at 100% 28%,#f5eeff 0,transparent 40%),#fff7f8;color:var(--ink)}.symbols,[hidden]{display:none!important}button{font:inherit;color:inherit;cursor:pointer;border:1px solid var(--line);border-radius:14px;background:#fff;padding:10px 15px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:14px;font-weight:700;touch-action:manipulation}button:hover:not(:disabled){border-color:#d980a3;background:#fff4f8}button:disabled{cursor:not-allowed;opacity:.46}button:focus-visible,input:focus-visible{outline:3px solid #aa60ba;outline-offset:3px}button svg,.local svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.primary{background:#bd3d6c;color:white;border-color:#bd3d6c;box-shadow:0 5px 13px #b93a6421}.primary:hover:not(:disabled){background:#a9325e;color:white}header{border-bottom:1px solid #f0dfe6;background:#fffafbcf}.head{max-width:1100px;min-height:76px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 26px}.brand{border:0;background:transparent;text-align:left;padding:0;font-size:20px;font-weight:900;letter-spacing:.03em;gap:11px}.brand:hover:not(:disabled){background:transparent;color:var(--deep)}.brand small{display:block;font-size:10px;font-weight:750;letter-spacing:.19em;color:var(--mute);margin-top:3px}.brand-dot{margin:0 3px;color:var(--pink)}.logo{width:43px;height:43px;display:grid;place-items:center;background:#fbe0ec;border:1px solid #f4c9da;color:var(--deep);border-radius:16px;transform:rotate(-5deg)}.logo svg{width:24px;height:24px}.local{display:inline-flex;gap:6px;align-items:center;font-size:13px;color:var(--mute)}main{max-width:1000px;margin:auto;padding:24px 24px 10px}.steps{display:flex;justify-content:center;align-items:center;gap:10px;margin-bottom:18px}.steps button{background:#fff9fb;box-shadow:none;border-radius:999px;padding:7px 14px;min-height:40px}.steps b{font-size:12px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#f8e5ed;color:#8e4d69}.steps button[aria-current=step]{background:#f8dbe9;border-color:#edbbd0;color:#8a244d}.steps button[aria-current=step] b{background:#a93462;color:#fff}.steps span{height:1px;width:22px;background:#e8c4d4}.studio{border:1px solid #ebd3df;border-radius:26px;background:var(--white);box-shadow:0 15px 45px #8c42671a;overflow:hidden}.bar{height:51px;display:flex;align-items:center;gap:8px;justify-content:space-between;padding:0 17px;font-size:14px;color:var(--mute)}.bar span:first-child{display:flex;gap:8px;align-items:center}.bar i{width:8px;height:8px;border-radius:50%;background:#c95b87}.tag{font-size:10px;letter-spacing:.2em}.bar button{min-height:32px;padding:4px 10px}.stage{position:relative;margin:0 13px;min-height:390px;background:radial-gradient(#e9c9db 1px,transparent 1.4px) 1px 1px/17px 17px,#fcf0f6;border:1px dashed #e9c6d8;border-radius:19px;display:grid;place-items:center;overflow:hidden}.welcome{text-align:center;padding:22px 10px 25px}.hello{width:149px;height:149px;position:relative;margin:auto}.hello img{width:100%;height:100%;border-radius:38%;box-shadow:0 8px 24px #c279a33b;border:4px solid #fff;transform:rotate(-7deg)}.spark{position:absolute;font-size:28px;color:#bd638f;z-index:1}.spark.a{left:-25px;top:31px}.spark.b{right:-25px;bottom:21px}.welcome h1{font-size:clamp(27px,4vw,39px);line-height:1.15;margin:18px 0 8px;letter-spacing:.045em}.welcome p{margin:0 0 17px;color:var(--mute);font-size:15px;line-height:1.55}.choices{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}.welcome small{display:block;margin-top:13px;color:#76596e;font-size:12px}.samples{min-height:67px;padding:9px 16px;display:flex;align-items:center;justify-content:center;gap:8px}.samples>span{font-size:13px;color:var(--mute);margin-right:4px}.samples button{font-size:13px;padding:4px 9px;gap:6px}.samples img{width:29px;height:29px;border-radius:8px}.work{width:100%;height:min(57dvh,560px);min-height:320px;position:relative;display:grid;place-items:center;overflow:hidden;touch-action:none;padding:13px 23px 38px}.frame{display:grid;place-items:center;will-change:transform;max-width:100%;max-height:100%}canvas{display:block;max-width:100%;border-radius:13px;box-shadow:0 5px 20px #a9628329;touch-action:none;cursor:grab;outline:none;user-select:none}body[data-mode=paint] canvas{cursor:crosshair}canvas:active{cursor:grabbing}.tip{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);padding:4px 12px;border-radius:999px;background:#fffbfddd;color:#6a4059;text-align:center;white-space:nowrap;font-size:12px;pointer-events:none}.corners{position:absolute;inset:13px;pointer-events:none}.corners i{position:absolute;width:18px;height:18px;border:2px solid #d394b2;border-right:0;border-bottom:0;border-radius:6px 0 0}.corners i:nth-child(2){top:0;right:0;transform:rotate(90deg)}.corners i:nth-child(3){bottom:0;right:0;transform:rotate(180deg)}.corners i:nth-child(4){bottom:0;left:0;transform:rotate(270deg)}.tools{min-height:67px;padding:12px 16px;display:flex;gap:9px;align-items:center;justify-content:space-between;flex-wrap:wrap}.toolrow{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.toolrow.right{margin-left:auto}.seg{display:inline-flex;padding:3px;border:1px solid var(--line);border-radius:13px;background:#fff4f9;gap:2px}.seg button{border:0;background:transparent;border-radius:9px;min-height:34px;padding:5px 9px}.seg button[aria-pressed=true],button[aria-pressed=true]:not(.primary){background:#f6d8e7;color:#84264a}.size label,.size{display:inline-flex;align-items:center;gap:5px;font-size:13px}input[type=range]{accent-color:var(--pink);max-width:115px}.playtools{justify-content:center}.playtools button{min-width:70px}.playtools .primary{min-width:100px}.playtools button[data-live=true]{background:#a82951;color:white}.work #flash{pointer-events:none;position:absolute;inset:0;opacity:0;background:white}.work #flash.on{animation:flash .45s ease-out}@keyframes flash{0%{opacity:.85}100%{opacity:0}}#dropLabel{position:absolute;inset:12px;display:grid;place-items:center;color:#86214c;background:#fce5f3f5;border:2px dashed var(--pink);border-radius:14px;font-size:25px;font-weight:800;pointer-events:none}footer{display:flex;justify-content:space-between;gap:8px;padding:14px 4px;color:var(--mute);font-size:13px}dialog{color:var(--ink);width:min(440px,calc(100vw - 30px));padding:23px;border:1px solid #eacddc;border-radius:22px;background:#fffafb;box-shadow:0 18px 55px #5a214450}dialog::backdrop{background:#4f284568}dialog h2{margin:0 0 5px;font-size:24px}dialog h3{font-size:16px;margin:18px 0 7px}dialog p{margin:5px 0 12px;color:var(--mute)}dialog p.small{font-size:13px}.close{position:absolute;top:12px;right:12px;min-height:33px;padding:2px 10px;font-size:21px}.setting{display:grid;grid-template-columns:80px 1fr 32px;align-items:center;gap:7px;margin:9px 0;font-size:14px}.setting input{max-width:100%;width:100%}.setting output{font-variant-numeric:tabular-nums;color:var(--mute);text-align:right}.setting+button{margin-bottom:8px}#preview{text-align:center;margin:13px 0}#preview img,#preview video{max-width:100%;max-height:55dvh;width:auto;border-radius:13px;background:#f7ecf6}#toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 25px);padding:10px 16px;border-radius:14px;background:#683452;color:white;z-index:10;font-size:14px;box-shadow:0 8px 25px #56334640}#toast:empty{display:none}
@media(max-width:590px){.head{min-height:63px;padding:0 13px}.brand{font-size:16px}.brand small{font-size:9px}.logo{width:35px;height:35px;border-radius:11px}.logo svg{width:21px;height:21px}.local{font-size:0}.local svg{width:20px;height:20px}main{padding:13px 8px 8px}.steps{gap:5px;margin-bottom:12px}.steps button{font-size:13px;padding:6px 8px}.steps span{width:11px}.studio{border-radius:19px}.bar{height:43px;padding:0 10px}.stage{margin:0 7px;border-radius:14px;min-height:335px}.welcome{padding:15px 7px 18px}.hello{width:118px;height:118px}.welcome p{font-size:14px}.samples{padding:8px 6px;gap:4px}.samples>span{display:none}.samples button{padding:4px 6px}.work{padding:12px 11px 32px;min-height:325px;height:min(55dvh,450px)}.tag{font-size:9px;letter-spacing:.1em}.tools{padding:9px 7px;gap:6px;justify-content:center}.toolrow{gap:4px;justify-content:center}.toolrow.right{margin:0}.tools button{margin:0;padding:7px 8px;min-height:38px}.playtools button{min-width:43px;flex-direction:column;gap:2px;font-size:12px}.playtools .primary{min-width:50px}.seg button{min-height:32px}.size input{max-width:60px}footer{font-size:11px}.tip{font-size:11px;max-width:96%;text-overflow:ellipsis;overflow:hidden}}

.stage-actions{display:flex;align-items:center;gap:.35rem;margin-left:auto}
.stage-actions button{white-space:nowrap;min-height:44px}
@media(max-width:420px){.stage-actions button{padding-inline:.5rem}.stage-actions+#canvasLabel{display:none}}
