:root{color-scheme:light;--ink:#2a2e29;--muted:#687064;--paper:#f2f2eb;--panel:#fbfcf8;--line:#dedfd5;--red:#cf443b;--red-wash:#f8e9e4;--green:#596c48;--focus:#647b50;font-family:'Segoe UI','Malgun Gothic',sans-serif;font-size:13px}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper)}button,input,select{font:inherit}button,a,input{touch-action:manipulation}button{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:34px;padding:7px 11px;border:1px solid transparent;border-radius:6px;background:none;color:inherit;cursor:pointer;white-space:nowrap;line-height:1.3}button:hover{background:#e8eae1}button:disabled{opacity:.35;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--focus);outline-offset:3px}input{accent-color:var(--green);color:inherit}input[type=number]{width:52px;border:1px solid var(--line);border-radius:4px;padding:5px 4px;background:var(--panel);font-variant-numeric:tabular-nums}input[type=range]{width:100%;height:22px;cursor:pointer}input[type=color]{width:30px;height:26px;padding:1px;border:1px solid var(--line);border-radius:4px;background:#fff;cursor:pointer}input[type=checkbox]{width:14px;height:14px;margin:0;flex:none;cursor:pointer}::selection{background:#e4d8bf}::-webkit-scrollbar{height:7px;width:7px}::-webkit-scrollbar-thumb{background:#c5c9bb;border-radius:6px}::-webkit-scrollbar-track{background:transparent}a{color:inherit;text-decoration:none}svg.icon{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}[data-icon]{display:inline-flex;align-items:center;justify-content:center}.topbar{height:64px;padding:0 22px 0 14px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);background:var(--panel)}.home-link{display:grid;place-items:center;width:28px;height:32px;color:var(--muted)}.wordmark{font-size:17px;font-weight:750;letter-spacing:-.04em;white-space:nowrap;display:flex;gap:5px;align-items:center}.brand-dot{width:6px;height:6px;border-radius:50%;background:var(--red);align-self:flex-end;margin-bottom:4px}.header-divider{width:1px;height:22px;background:var(--line);margin:0 5px}.project-name{width:180px;background:none;border:1px solid transparent;border-radius:4px;padding:7px;min-width:80px}.project-name:hover,.project-name:focus{border-color:var(--line);background:#fff}.save-status{font-size:11px;color:var(--muted)}.file-actions{display:flex;align-items:center;gap:5px;margin-left:auto}.quiet{color:var(--muted)}.dark{background:var(--ink);color:white}.dark:hover{background:#454c40}.outline{border-color:var(--line);background:var(--panel)}.full{width:100%}.workspace{display:grid;grid-template-columns:205px minmax(320px,1fr) 236px;min-height:calc(100svh - 102px)}.inspector{background:var(--panel);border-right:1px solid var(--line);padding:0 18px;overflow:auto}.panel-heading{padding:24px 0 17px;position:relative}.panel-heading h1,.panel-heading h2{font-size:15px;letter-spacing:-.025em;margin:0 0 5px;font-weight:700}.panel-caption,.panel-heading p{font-size:11px;color:var(--muted);margin:0;line-height:1.7}.property-section{border-top:1px solid var(--line);padding:18px 0}.property-section h2{font-size:12px;font-weight:650;margin:0 0 13px}.swatches{display:flex;gap:7px;flex-wrap:wrap}.swatch{padding:0;min-height:24px;height:24px;width:24px;border-radius:50%;position:relative;border:1px solid #0002;background:var(--swatch)}.swatch:hover{background:var(--swatch);transform:scale(1.08)}.swatch.active:after{content:'';position:absolute;inset:-4px;border:1.5px solid var(--ink);border-radius:50%}.color-row{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);margin:14px 0}.range-label{display:flex;align-items:center;justify-content:space-between;font-size:11px;gap:8px}.range-label output{font-variant-numeric:tabular-nums;font-size:11px;color:var(--muted)}.field-note{font-size:10px;color:var(--muted);line-height:1.7;margin:5px 0 12px}.check-row{display:flex;align-items:center;gap:7px;font-size:11px;cursor:pointer;min-height:28px}.property-section .outline{font-size:11px;margin-top:8px}.property-section .quiet{font-size:11px;padding:7px 0;justify-content:flex-start}.text-button{padding:4px 0;color:var(--muted);font-size:11px;min-height:26px}.text-button:hover{background:transparent;color:var(--red)}.coordinate-row{display:flex;gap:10px;font-size:10px;color:var(--muted)}.coordinate-row label{display:flex;gap:5px;align-items:center}.coordinate-row input{width:58px;font-size:11px}.editor{min-width:0;display:flex;flex-direction:column}.canvas-toolbar{height:49px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.tool-group{display:flex;align-items:center;gap:4px}.icon-button{padding:6px;width:31px;min-height:30px;flex:none}.tool-divider{height:17px;width:1px;background:#d0d4c6;margin:0 10px}.stage-size{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.stage-area{padding:20px 30px 14px;flex:1;display:flex;flex-direction:column;justify-content:center;min-height:360px}.stage-caption{display:flex;justify-content:space-between;margin-bottom:10px;color:var(--muted);font-size:10px;gap:10px}.stage-caption #frameBadge{color:var(--ink);font-size:11px;font-weight:600}.stage-shell{width:100%;max-width:960px;align-self:center;box-shadow:0 5px 18px #333a2910;aspect-ratio:1.6;overflow:hidden;background:white}.stage-shell>svg{width:100%;height:100%;display:block;touch-action:none;user-select:none}.stage-shell svg.playing .joint-handle{display:none}.joint-handle{cursor:grab;outline:none}.joint-handle:active{cursor:grabbing}.joint-handle .hit{fill:transparent;stroke:none}.joint-handle .dot{fill:#fffdf4;stroke:#95382f;stroke-width:2;transition:r .12s}.joint-handle .ring{fill:none;stroke:var(--green);stroke-width:2;opacity:0}.joint-handle:hover .dot{r:9}.joint-handle.selected .ring,.joint-handle:focus .ring{opacity:1}.joint-handle.root .dot{fill:#435e3b;stroke:#fff;stroke-width:2}.joint-handle.root .ring{stroke:#435e3b}.stage-bottom{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted);margin-top:8px;gap:12px}.stage-bottom>span{display:flex;align-items:center;gap:5px}.move-dot{display:inline-block;width:6px;height:6px;background:#596c48;border-radius:50%}.timeline{background:var(--panel);border-top:1px solid var(--line);padding:13px 18px 12px;min-height:223px}.timeline-controls{display:flex;align-items:center;justify-content:space-between;gap:8px}.playback{display:flex;align-items:center;gap:1px}.play-button{background:var(--ink);color:white;border-radius:50%;width:34px;padding:7px;margin:0 5px}.play-button:hover{background:#48543c}.frame-counter{margin-left:10px;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}.timing{display:flex;align-items:center;gap:13px;font-size:10px}.timing>label{display:flex;align-items:center;gap:6px}.timing input[type=number]{width:45px;font-size:11px;padding:3px}.duration{font-size:10px;font-variant-numeric:tabular-nums;color:var(--muted);min-width:40px;text-align:right}.frame-strip{display:flex;gap:7px;overflow-x:auto;padding:13px 2px 10px;min-height:93px;scroll-behavior:smooth}.frame-tile{padding:0;display:flex;flex-direction:column;min-width:83px;width:83px;height:74px;border:1px solid var(--line);border-radius:5px;background:white;gap:0;overflow:hidden;position:relative}.frame-tile:hover{background:#fff}.frame-tile.active{border:2px solid var(--red)}.frame-tile.selected:not(.active){border-color:#c88277;background:var(--red-wash)}.frame-tile svg{width:76px;height:49px;flex:none}.frame-tile .frame-number{border-top:1px solid #e5e7dd;display:flex;width:100%;justify-content:space-between;padding:3px 7px;align-items:center;font-size:9px;font-variant-numeric:tabular-nums}.frame-tile.active .frame-number{color:var(--red);font-weight:650}.frame-tile .hold-mark{font-size:9px;color:var(--muted)}.frame-add{min-width:46px;width:46px;height:74px;border:1px dashed #c7ccbd;flex:none;color:var(--muted)}.frame-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.frame-actions button{font-size:11px;min-height:30px;padding:5px 8px}.hold-label{font-size:10px;display:flex;gap:5px;align-items:center;color:var(--muted);white-space:nowrap}.hold-label input{width:42px;padding:3px;font-size:11px}.timeline-foot{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin-top:9px;line-height:1.6;gap:8px}.library{background:var(--panel);border-left:1px solid var(--line);padding:0 17px;display:flex;flex-direction:column;min-width:0}.library-tabs{display:flex;border-bottom:1px solid var(--line);gap:15px}.library-tabs button{border-radius:0;padding:8px 0;font-size:11px;color:var(--muted);min-height:36px;position:relative}.library-tabs button[aria-selected=true]{color:var(--ink);font-weight:650}.library-tabs button[aria-selected=true]:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--ink)}#customCount{font-size:10px;color:var(--muted)}.clip-list{padding:15px 0;display:flex;flex-direction:column;gap:12px;flex:1}.clip-card{display:grid;grid-template-columns:1fr 30px;column-gap:4px}.clip-art{grid-column:1/-1;background:#eeefe7;height:100px;border-radius:7px;position:relative;width:100%;padding:0;overflow:hidden}.clip-art:hover{background:#e7e9df}.clip-art svg{width:100%;height:100%}.clip-art .preview-cue{position:absolute;right:7px;bottom:7px;color:#65705d;width:24px;height:24px;background:#ffffffb3;display:grid;place-items:center;border-radius:50%}.clip-name{padding:9px 0 0;display:flex;flex-direction:column;gap:3px;align-items:flex-start;min-height:36px;font-size:11px;white-space:normal}.clip-name:hover{background:none}.clip-name small{font-size:9px;color:var(--muted);font-weight:400}.clip-plus{margin-top:9px;background:#e9ecdf;border-radius:5px;width:28px;min-height:28px;padding:5px;align-self:start}.clip-delete{font-size:10px;color:var(--muted);justify-content:flex-start;padding:0;min-height:22px}.library-footer{border-top:1px solid var(--line);padding:15px 0 17px}.library-footer button{font-size:11px}.library-footer p{font-size:9px;color:var(--muted);line-height:1.7;margin:9px 0 0}.empty-library{padding:27px 6px;color:var(--muted);font-size:11px;line-height:1.9;text-align:center}.empty-library strong{display:block;color:var(--ink);font-size:13px;margin-bottom:6px}.app-footer{height:38px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:0 20px;font-size:10px;color:var(--muted)}.app-footer>div{display:flex;gap:20px}.toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,15px);padding:12px 19px;border-radius:7px;box-shadow:0 5px 20px #0002;background:#2d3528;color:white;font-size:12px;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s;z-index:100;max-width:90vw;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:0;border-radius:12px;padding:25px;max-width:440px;width:calc(100% - 36px);color:var(--ink);background:var(--panel);box-shadow:0 15px 70px #0003}dialog::backdrop{background:#20241e66}dialog .dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}dialog h2{font-size:19px;letter-spacing:-.025em;margin:0}dialog p{font-size:12px;color:var(--muted);line-height:1.8;margin:10px 0 20px}.dialog-label{display:flex;flex-direction:column;gap:8px;font-size:12px}.dialog-label input{border:1px solid var(--line);background:white;border-radius:5px;padding:10px}.dialog-range{display:flex;align-items:end;gap:12px;margin:20px 0}.dialog-range label{display:flex;flex-direction:column;gap:8px;font-size:11px;flex:1}.dialog-range input{width:100%}.dialog-range>span{padding-bottom:8px}.clip-preview{height:220px;margin-top:20px;background:#eeefe7;border-radius:8px;display:grid;place-items:center}.clip-preview svg{width:100%;height:100%}.export-option{display:flex;align-items:center;gap:15px;justify-content:flex-start;width:100%;white-space:normal;text-align:left;padding:17px 5px;border-top:1px solid var(--line);border-radius:0}.export-option>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:5px}.export-option strong{font-size:13px;font-weight:600}.export-option small{font-size:10px;color:var(--muted);line-height:1.6}.export-progress{padding-top:20px;font-size:11px;line-height:1.8}.export-progress progress{width:100%;accent-color:var(--green)}.help-list{padding-left:23px;font-size:13px}.help-list li{padding:10px 0}.help-list p{font-size:12px;margin:5px 0 0}.shortcut-note{font-size:10px!important;border-top:1px solid var(--line);padding-top:12px}.mobile-tool,.library-toggle,.library-close{display:none}[hidden]{display:none!important}
@media(min-width:641px){body{height:100svh;overflow:hidden}.workspace{height:calc(100svh - 102px);min-height:0}.inspector,.library{min-height:0}.inspector{overflow-y:auto}.editor{min-height:0}.stage-area{min-height:0;overflow:hidden}.stage-shell{flex:none;max-width:min(100%,calc((100svh - 435px)*1.6))}.timeline{flex:none}.clip-list{min-height:0;overflow-y:auto;padding-right:4px}.library-footer,.library-tabs,.panel-heading{flex:none}}
@media(min-width:1400px){.workspace{grid-template-columns:222px minmax(320px,1fr) 252px}.stage-area{padding:22px 48px 18px}.clip-art{height:112px}}
@media(max-width:1100px){.workspace{grid-template-columns:185px minmax(320px,1fr) 200px}.inspector{padding:0 14px}.library{padding:0 13px}.stage-area{padding:20px 18px 14px}.save-status{display:none}.timeline{padding-left:12px;padding-right:12px}.timing{gap:8px}.smooth-label{display:none}.timeline-foot>span:last-child{display:none}.frame-actions button span:not([data-icon]){display:none}.frame-actions .outline{font-size:10px}.hold-label{font-size:9px}.clip-art{height:87px}}
@media(max-width:940px){.workspace{grid-template-columns:185px minmax(300px,1fr)}.library{display:none}.library.open{display:flex;position:fixed;z-index:30;top:64px;bottom:38px;right:0;width:245px;overflow-y:auto;box-shadow:-8px 0 30px #0001}.library-toggle,.library-close{display:inline-flex}.library-close{position:absolute;right:0;top:19px}.stage-area{padding:22px 26px}.clip-art{height:100px}.smooth-label{display:flex}.frame-actions button span:not([data-icon]){display:inline}.timeline-foot>span:last-child{display:none}}
@media(max-width:640px){.topbar{height:auto;min-height:58px;padding:10px 11px;gap:6px;flex-wrap:wrap}.wordmark{font-size:15px}.header-divider{display:none}.project-name{order:5;width:100%;padding:4px 8px;font-size:11px;color:var(--muted)}.file-actions{gap:0}.file-actions button{padding:7px;font-size:11px}.wide-label{display:none}.workspace{display:block;min-height:0}.inspector{display:none}.inspector.open{display:block;position:fixed;top:95px;left:0;bottom:38px;width:215px;z-index:30;box-shadow:5px 0 25px #0002}.canvas-toolbar{height:45px;padding:0 10px}.onion-label{font-size:10px}.tool-divider{margin:0 5px}.stage-size{display:none}.mobile-tool{display:inline-flex}.canvas-toolbar .quiet{font-size:11px;padding:6px}.stage-area{padding:16px 14px 10px;min-height:300px}.stage-caption{font-size:9px}.stage-bottom{font-size:9px}.stage-bottom>span{max-width:265px;line-height:1.6}.timeline{padding:12px 10px;min-height:232px}.timeline-controls{align-items:center;flex-wrap:wrap;gap:8px}.timing{margin-left:auto;gap:9px}.smooth-label{display:none}.duration{display:none}.playback .icon-button{width:25px}.frame-counter{margin-left:5px;font-size:10px}.frame-actions{flex-wrap:wrap}.frame-actions>.tool-group{gap:0}.frame-actions button{padding:5px 6px;font-size:10px}.frame-actions button span:not([data-icon]){display:none}.hold-label{margin-left:auto}.timeline-foot{font-size:9px}.library.open{top:95px;bottom:38px}.app-footer{padding:0 12px;font-size:9px}.app-footer>div{gap:12px}.app-footer .text-button{font-size:10px}.toast{bottom:46px}.clip-list{gap:17px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
@media(min-width:641px) and (max-height:650px){.stage-area{padding:12px 18px 8px}.stage-caption{margin-bottom:6px}.stage-bottom{margin-top:4px}.timeline{min-height:200px;padding-top:8px;padding-bottom:8px}.timeline-foot{display:none}}
@media(min-width:641px) and (max-height:480px){body{height:auto;overflow:auto}.workspace{height:auto;min-height:610px}.stage-area{min-height:300px}.stage-shell{max-width:550px}.clip-list{overflow:visible}}
.section-title{display:flex;align-items:baseline;justify-content:space-between}.section-title>span{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.actor-select-label,.actor-name-label{display:flex;flex-direction:column;gap:6px;font-size:10px;color:var(--muted);margin-bottom:10px}.actor-select-label select,.actor-name-label input{width:100%;min-width:0;padding:7px 6px;border:1px solid var(--line);background:white;border-radius:5px;color:var(--ink)}.actor-buttons{display:flex;gap:5px}.actor-buttons .outline{flex:1;margin:0}.side-colors{display:flex;flex-direction:column;gap:8px;margin-top:10px}.side-colors label{display:flex;align-items:center;gap:6px;font-size:11px}.side-colors input{margin-left:auto}.side-letter{font-size:10px;font-weight:750;width:20px;text-align:center}.yaw-presets{display:flex;gap:3px;margin-top:5px}.yaw-presets button{flex:1;font-size:10px;min-height:28px;padding:5px 1px;border:1px solid var(--line);background:white}.yaw-presets button.active{border-color:var(--green);background:#edf0e5}.character-figure{cursor:pointer}.character-figure:focus{outline:none}.character-figure:focus .actor-hit{stroke:var(--focus);stroke-dasharray:5 4;stroke-width:2}.actor-hit{fill:transparent;stroke:none}.actor-direction{font-size:9px;fill:#687064;letter-spacing:.02em}.joint-handle .dot.left-dot{stroke:#347fa0}.joint-handle .dot.right-dot{stroke:#d66b38}
.clip-placement-label{display:flex;flex-direction:column;gap:5px;font-size:10px;color:var(--muted);margin:12px 0 0;flex:none}.clip-placement-label select{width:100%;padding:6px 4px;background:white;border:1px solid var(--line);border-radius:4px;color:var(--ink);font-size:10px}
/* Object workshop extends the existing inspector palette. */
.objects-panel{position:fixed;z-index:45;right:12px;top:70px;bottom:36px;width:290px;padding:18px;background:var(--panel,#fbfcf8);border:1px solid #cdd3c3;border-radius:12px;box-shadow:0 12px 38px #29302426;overflow:auto}.objects-panel[hidden]{display:none}.objects-panel .panel-heading{display:flex;align-items:center;justify-content:space-between;padding:0 0 12px}.objects-panel .dialog-label{margin:0 0 12px}.objects-panel input[type=search]{width:100%;padding:10px;border:1px solid #cbd0c1;background:#fff;border-radius:6px}.object-catalog{display:grid;grid-template-columns:1fr 1fr;gap:7px;max-height:180px;overflow:auto;padding-bottom:4px}.object-catalog button{min-height:37px;border:1px solid #d5d9cd;background:#f6f7f0;border-radius:6px;font-size:12px;color:#30392c;cursor:pointer}.object-catalog button:hover{background:#e6eadc}.object-drawing{padding-top:16px}.object-drawing .coordinate-row{margin-top:10px}.objects-panel .property-section{padding-left:0;padding-right:0}.objects-panel .coordinate-row input[type=color]{height:34px;padding:3px}.objects-panel .field-note{line-height:1.7}.objects-panel button:focus-visible{outline:3px solid #347fa0;outline-offset:2px}.objects-panel select{max-width:100%}#stage.drawing{cursor:crosshair}@media(max-width:620px){.objects-panel{top:64px;right:8px;bottom:32px;width:min(280px,calc(100vw - 16px))}#toggleObjects{padding:6px;font-size:11px}.stage-size{display:none}}
