:root{font-family:Arial,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:#252525;background:#f3f3f3;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit;color:inherit}button{cursor:pointer;border:1px solid #d2d2d2;background:#fff;border-radius:9px;min-height:42px;padding:8px 11px;font-size:14px}button:hover{border-color:#555;background:#f0f0f0}button:disabled{opacity:.35;cursor:default}button:focus-visible,input:focus-visible{outline:2px solid #252525;outline-offset:3px}[hidden]{display:none!important}.app{max-width:1800px;margin:auto;padding:24px}header{display:flex;justify-content:space-between;align-items:center;padding:2px 0 22px;border-bottom:1px solid #ccc;margin-bottom:20px;gap:20px}.brand{font-weight:700;letter-spacing:.17em;font-size:25px}.brand span{font-size:12px;font-weight:400;letter-spacing:.08em;display:inline-block;margin-left:20px;color:#737373}.edition{font-size:11px;letter-spacing:.17em;color:#777}main{display:grid;grid-template-columns:240px minmax(320px,1fr) 270px;gap:18px;align-items:start}.panel{background:#fafafa;border:1px solid #d6d6d6;border-radius:18px;padding:22px}.eyebrow{font-size:11px;font-weight:500;letter-spacing:.16em;color:#757575;margin:0 0 12px}h1,h2{font-family:Georgia,"Yu Mincho","Hiragino Mincho ProN",serif;font-weight:400;font-size:25px;margin:0 0 14px}h2{font-size:22px}.hint{font-size:14px;color:#686868;line-height:1.8;margin:0 0 16px}.hint span,.timeline-help span{display:block;font-size:12px;color:#818181;margin-top:4px}.small{font-size:12px}.shape-group{border-top:1px solid #dedede;padding:16px 0}.shape-label{font-size:15px;margin-bottom:10px;display:flex;justify-content:space-between;align-items:center}.shape-label span{font-size:10px;letter-spacing:.07em;color:#888}.shape-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.shape-button{min-width:0;padding:5px 2px;touch-action:none;user-select:none}.shape-button canvas{display:block;width:100%;height:50px;object-fit:contain;pointer-events:none}.shape-button small{display:block;font-size:11px;color:#777;pointer-events:none}.topping-section{border-top:1px solid #ddd;padding-top:18px}.topping-section h2{font-size:18px}.workspace{min-width:0}.canvas-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;font-size:10px;letter-spacing:.12em;color:#777}.canvas-toolbar button{min-height:32px;font-size:12px;background:transparent}.stage{position:relative;height:clamp(400px,60vh,690px);background:radial-gradient(ellipse at 50% 45%,#eee,#d7d7d7);border:1px solid #c7c7c7;border-radius:18px;overflow:hidden;touch-action:none}.stage:after{content:"";position:absolute;inset:14px;border:1px solid #ffffff60;border-radius:10px;pointer-events:none}#canvas{display:block;width:100%;height:100%;touch-action:none}.empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;pointer-events:none;padding:20px}.empty h2{font-size:clamp(30px,3.5vw,51px);line-height:1.6;letter-spacing:.08em;margin:12px 0}.empty p{font-family:Georgia,serif;font-size:20px;margin:0 0 28px}.empty small{font-size:12px;color:#777}.empty .eyebrow{font-size:10px}.selection{position:absolute;border:1px dashed #666;pointer-events:none;z-index:3}.selection:before{content:"";position:absolute;inset:0;border:1px dashed #fff;transform:translate(1px,1px)}#resizeHandle{position:absolute;right:-17px;bottom:-17px;width:34px;height:34px;min-height:34px;padding:0;border:1px solid #777;border-radius:50%;pointer-events:auto;touch-action:none;font-size:20px;box-shadow:0 2px 7px #0002}.time-empty{position:absolute;top:25px;left:20px;right:20px;text-align:center;font-size:13px;color:#666;pointer-events:none}.time-empty small{font-size:11px}.timeline-panel{background:#fafafa;border:1px solid #d6d6d6;border-radius:16px;padding:18px 22px;margin-top:14px}.timeline-top{display:flex;justify-content:space-between;align-items:center}.timeline-top .eyebrow{margin-bottom:6px}#clock{font-size:24px;font-variant-numeric:tabular-nums}#clock small{font-size:13px;color:#888}.transport{display:flex;gap:7px}.primary{background:#252525;color:white;border-color:#252525}.primary:hover{background:#444;color:white}input[type=range]{width:100%;accent-color:#333;height:30px;margin:12px 0 0;cursor:ew-resize}.ruler{display:flex;justify-content:space-between;font-size:11px;color:#888;font-variant-numeric:tabular-nums}#markers{position:relative;height:32px;margin:8px 8px 0;border-top:1px solid #d6d6d6}.key-marker{position:absolute;transform:translateX(-50%);top:-12px;min-height:26px;height:26px;width:26px;padding:0;border:0;background:transparent;font-size:18px;color:#888}.key-marker.active{color:#252525;background:#e3e3e3}.timeline-help{font-size:12px;color:#666;line-height:1.7;margin:8px 0 0}.selected-title{padding:3px 0 17px;border-bottom:1px solid #ddd;display:flex;justify-content:space-between}.selected-title small{font-size:11px;color:#777}label{display:flex;align-items:center;justify-content:space-between;font-size:14px;margin:17px 0 8px}label span{font-size:10px;color:#888;letter-spacing:.06em}.unit-input,.size-row{display:flex;align-items:center;gap:8px}input[type=number]{width:100%;min-width:0;padding:10px;border:1px solid #ccc;background:white;border-radius:7px;font-size:16px}.unit-input>span{color:#888}.size-row input{text-align:center}.swatches{display:flex;gap:7px}.swatch{width:32px;height:32px;min-height:32px;padding:0;border-radius:50%;border:1px solid #aaa;position:relative}.swatch[aria-pressed=true]:after{content:"";position:absolute;inset:-4px;border:1px solid #444;border-radius:50%}.order-row{display:flex;gap:6px;margin-top:20px}.order-row button{flex:1;font-size:12px;padding:7px 4px}.frame-actions{display:grid;gap:7px;margin:20px 0 12px}.frame-actions button{font-size:12px}#removeFrame{background:transparent;min-height:30px}.delete{width:100%;background:transparent;font-size:12px}.layers-section{margin-top:25px;padding-top:22px;border-top:1px solid #ddd}.layers-section h2{font-size:20px}.layer{display:flex;width:100%;gap:8px;align-items:center;text-align:left;margin:6px 0;background:transparent}.layer.active{border-color:#333;background:#eaeaea}.layer span{flex:1;font-size:13px}.layer small{font-size:11px;color:#888}.layer.dim{opacity:.5}.status{font-size:12px;line-height:1.6;color:#666;margin:18px 0 0;min-height:20px}footer{display:flex;justify-content:space-between;color:#888;font-size:10px;letter-spacing:.1em;padding:20px 2px}footer span{letter-spacing:.05em}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.drag-ghost{position:fixed;pointer-events:none;width:80px;height:80px;z-index:99;opacity:.7;transform:translate(-50%,-50%)}
@media(min-width:1100px){.palette-panel,.inspector-panel{max-height:calc(100dvh - 145px);overflow:auto;scrollbar-width:thin}}
@media(max-width:1100px){main{grid-template-columns:195px minmax(290px,1fr) 220px;gap:12px}.app{padding:16px}.panel{padding:16px}.brand span{display:none}.edition{display:none}}
@media(max-width:800px){.app{padding:12px}header{padding-bottom:16px;margin-bottom:14px}.brand{font-size:22px}main{grid-template-columns:1fr 1fr;gap:14px}.workspace{grid-column:1/-1;grid-row:1}.stage{height:52dvh;min-height:360px;max-height:600px}.palette-panel{grid-column:1}.inspector-panel{grid-column:2}.empty h2{font-size:36px}.shape-button canvas{height:44px}.shape-label{display:block}.shape-label span{display:block;margin-top:3px}.shape-options{gap:4px}.panel{padding:15px}.timeline-help{font-size:12px}.timeline-panel{padding:16px}.swatches{gap:5px;flex-wrap:wrap}.swatch{width:27px;height:27px;min-height:27px}.order-row{flex-direction:column}footer span{display:none}}
@media(max-width:370px){main{grid-template-columns:1fr}.palette-panel,.inspector-panel{grid-column:1}.shape-label{display:flex}.shape-button canvas{height:60px}}
.layer .layer-grip{flex:0 0 32px;align-self:stretch;display:grid;place-items:center;font-size:24px;min-height:36px;cursor:grab;touch-action:none;user-select:none;color:#777;border-right:1px solid #ddd;margin:-4px 0 -4px -6px;padding-right:6px}.layer .layer-grip:active{cursor:grabbing}.layer{user-select:none}.layer:focus-visible{outline-offset:1px}
.canvas-toolbar{justify-content:flex-end}.timeline-top{flex-wrap:wrap;gap:12px}.transport{flex-wrap:wrap;gap:6px}.transport button{font-size:12px;padding:8px}.selection{transform-origin:center}#rotateHandle,#deleteHandle{position:absolute;width:34px;height:34px;min-height:34px;padding:0;background:#fff;border:1px solid #777;border-radius:50%;pointer-events:auto;touch-action:none;font-size:22px;box-shadow:0 2px 7px #0002}#deleteHandle{right:-17px;top:-17px}#rotateHandle{left:calc(50% - 17px);top:-43px;cursor:grab}#angle{text-align:center}.stage{background:radial-gradient(ellipse 80% 80% at 50% 45%,#eee,#d7d7d7)}
@media(max-width:500px){.transport{width:100%}.transport button{flex:1;padding:8px 5px;font-size:11px}#rewind{flex:0 0 34px}}

.key-marker{touch-action:none;cursor:ew-resize;user-select:none}.key-marker.active{outline:1px solid #555}.timeline-help span{font-size:13px}

.stage.brushing{cursor:crosshair}#brushControls{margin-top:14px}#brushControls label{font-size:13px;gap:8px}#brushControls button{width:100%}.shape-button[aria-pressed=true]{outline:2px solid #555;background:#ddd}
#completeDialog{width:min(850px,calc(100vw - 28px));max-height:92dvh;overflow:auto;border:1px solid #aaa;border-radius:18px;padding:24px;background:#fafafa;color:#252525}#completeDialog::backdrop{background:#0008}.complete-header{display:flex;align-items:center;justify-content:space-between;gap:14px}.complete-header h2{margin:0;font-size:24px}.complete-header button{font-size:23px}.export-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0 12px}.export-choices button{min-height:54px}.export-choices [aria-pressed=true]{background:#252525;color:white;border-color:#252525}#outputPreview{display:block;width:100%;height:min(48dvh,470px);border:1px solid #ccc;border-radius:10px;background:#e5e5e5}#exportStatus{font-size:14px;min-height:22px;line-height:1.6}.export-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px}#exportDescription{font-size:14px;line-height:1.7;min-height:48px;margin-bottom:14px}@media(max-width:600px){#completeDialog{padding:16px}.complete-header h2{font-size:19px}.export-choices{grid-template-columns:1fr}.export-choices button{min-height:44px}#outputPreview{height:36dvh}.export-actions button{flex:1;font-size:13px}}

.canvas-toolbar{flex-wrap:wrap}.canvas-toolbar #complete{margin-left:auto}

header .creator-credit{font-size:12px;font-weight:400;letter-spacing:.03em;color:#777;text-align:right;line-height:1.5}.topping-section .topping-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-family:inherit;font-size:15px;font-weight:400;line-height:1.5;margin:0 0 10px;white-space:nowrap}.topping-heading span{font-size:10px;letter-spacing:.07em;color:#888;font-weight:400}@media(max-width:480px){header{gap:10px}.creator-credit{max-width:140px}.topping-section .topping-heading{gap:4px}.topping-heading span{letter-spacing:0}}

.header-settings{display:flex;align-items:center;gap:20px;flex-wrap:wrap;justify-content:flex-end}.language-setting{margin:0;display:flex;gap:8px;align-items:center}.language-setting span{font-size:12px;color:#777;letter-spacing:0}.language-setting select{font:inherit;font-size:13px;color:#555;background:transparent;border:1px solid #d2d2d2;border-radius:8px;padding:7px;max-width:170px}html[lang="zh-Hant"] .hint>span,html[lang="zh-Hant"] .timeline-help>span,html[lang="zh-Hant"] .shape-label>span,html[lang="zh-Hant"] .topping-heading>span,html[lang="zh-Hant"] .inspector-panel label>span,html[lang="zh-Hant"] #timeEmpty>small{display:none}@media(max-width:800px){header{flex-wrap:wrap}.header-settings{gap:10px}.language-setting select{min-height:36px}.header-settings .creator-credit{max-width:none}}
