:root{font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:#263238;background:#e9edf0;font-size:13px}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.topbar{height:58px;background:#fff;border-bottom:1px solid #dce2e5;display:flex;align-items:center;justify-content:space-between;padding:0 22px;gap:15px}.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:16px;white-space:nowrap}.brand-mark{width:30px;height:30px;display:grid;place-items:center;background:#de473d;color:#fff;border-radius:6px;font-size:18px}.brand small{font-size:11px;color:#859197;font-weight:400;border-left:1px solid #d6dfe2;padding-left:10px}.top-actions{display:flex;align-items:center;gap:6px}.top-actions button{border:0;border-radius:5px;padding:8px 13px;font-weight:600;white-space:nowrap}.ghost{background:transparent;color:#526169}.ghost:hover,.subtle:hover,.icon:hover{background:#e9eff1}.accent{background:#e8f5f0;color:#19785b}.accent:hover{background:#d7eee4}.primary{background:#263b41;color:white}.primary:hover{background:#182c32}.divider{height:22px;border-left:1px solid #d9e0e3;margin:0 5px}.workspace{height:calc(100vh - 58px);min-height:580px;display:grid;grid-template-columns:228px minmax(420px,1fr) 270px}.left-pane,.right-pane{background:#fff;overflow:auto}.left-pane{border-right:1px solid #dce2e5}.right-pane{border-left:1px solid #dce2e5}.pane-heading{height:51px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;font-weight:700;border-bottom:1px solid #edf0f1}.icon{border:0;background:transparent;border-radius:4px;width:28px;height:28px;font-size:19px;color:#43565e}.page-list{padding:14px 12px;display:grid;gap:9px;max-height:37vh;overflow:auto}.page-item{display:flex;align-items:center;gap:10px;border:1px solid transparent;background:transparent;border-radius:5px;padding:6px;width:100%;text-align:left;color:#617178}.page-item.active{background:#edf6f3;border-color:#9dcbb9;color:#275d4c}.page-item:hover{background:#f2f6f7}.page-number{font-size:11px;width:15px;text-align:right}.page-preview{width:91px;aspect-ratio:16/9;border:1px solid #cbd5d8;border-radius:2px;box-shadow:0 1px 3px #0001;display:grid;place-items:center;overflow:hidden;color:#7b8587;font-size:10px}.page-meta{display:grid;gap:5px;font-size:11px}.page-meta strong{font-size:12px;color:#34464c}.sidebar-section{border-top:1px solid #edf0f1;padding:18px 14px}.section-label{font-size:11px;font-weight:700;color:#859196;text-transform:uppercase;margin-bottom:12px;display:flex;justify-content:space-between}.asset-button{width:100%;display:flex;align-items:center;gap:10px;border:1px solid #dce3e5;background:#fff;border-radius:5px;padding:10px;margin-bottom:8px;text-align:left;font-weight:600}.asset-button:hover{border-color:#88b9a7;background:#f5faf8}.asset-icon{width:25px;height:25px;display:grid;place-items:center;background:#f0f3f4;border-radius:4px;font-size:16px;color:#d24c42}.asset-hint{margin-left:auto;color:#99a5a9;font-size:10px;font-weight:400}.layers-section{flex:1}.layers{display:grid;gap:3px}.layer{width:100%;border:0;background:transparent;padding:9px 8px;text-align:left;border-radius:4px;color:#52656c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layer.active{background:#edf6f3;color:#237253}.layer:hover{background:#f1f5f5}.center-pane{display:flex;flex-direction:column;min-width:0;overflow:hidden}.canvas-toolbar{height:47px;display:flex;align-items:center;gap:13px;padding:0 22px;background:#f7f9f9;border-bottom:1px solid #dce3e5;font-weight:700}.canvas-info{font-weight:400;color:#9ca8ad}.canvas-toolbar #zoomLabel{margin-left:auto;font-weight:400;color:#7f8d93}.stage-area{flex:1;min-height:180px;display:flex;align-items:center;justify-content:center;padding:24px;overflow:hidden;background:#e9edf0;background-image:radial-gradient(#cdd5d8 0.65px,transparent .65px);background-size:16px 16px}.canvas-shell{width:min(100%,960px);max-height:100%;aspect-ratio:16/9;box-shadow:0 12px 32px #33404722,0 0 0 1px #adb9be;display:flex;background:#fff}.canvas-shell canvas{display:block;width:100%;height:100%;touch-action:none}.transport{height:56px;display:flex;align-items:center;gap:14px;background:#fff;border-top:1px solid #dce3e5;padding:0 20px}.play-button{border:0;background:#263b41;color:#fff;width:32px;height:32px;border-radius:50%;font-size:12px}.timecode{font-variant-numeric:tabular-nums;color:#63747b;min-width:52px}.transport input[type=range]{flex:1;min-width:40px;accent-color:#dd5044}.fps-label{white-space:nowrap;color:#869398}.fps-label select{border:0;background:transparent;color:#45575d}.timeline-head{height:41px;display:flex;align-items:center;justify-content:space-between;background:#f8faf9;padding:0 20px;border-top:1px solid #dce3e5;color:#41545b}.timeline-head span{color:#9ba8ad;font-size:11px}.timeline{height:104px;background:#fff;display:flex;align-items:center;gap:7px;overflow:auto;padding:12px 19px 16px}.timeline-page{height:56px;min-width:115px;position:relative;background:#eef3f4;border:1px solid #ccd8da;border-radius:4px;text-align:left;padding:8px;color:#42565e}.timeline-page.active{border-color:#dc6659;background:#fff4f1}.timeline-page span{display:block;font-weight:700}.timeline-page small{position:absolute;bottom:7px;color:#8b9a9f}.timeline-page .progress{position:absolute;bottom:-8px;left:0;height:3px;background:#df5548;max-width:100%;border-radius:2px}.properties{padding:18px}.properties label{display:block;color:#607179;font-size:11px;font-weight:600;margin-bottom:14px}.properties input:not([type=color]),.properties textarea,.properties select{display:block;width:100%;border:1px solid #d6dfe2;border-radius:4px;background:#fff;padding:8px 9px;color:#293d44;margin-top:6px;outline:none}.properties input:focus,.properties textarea:focus,.properties select:focus{border-color:#65a88f}.properties input[type=color]{display:block;width:100%;height:36px;border:1px solid #d6dfe2;background:#fff;border-radius:4px;padding:3px;margin-top:6px}.properties textarea{resize:vertical;min-height:65px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}.input-unit{position:relative}.input-unit span{position:absolute;right:10px;top:15px;color:#9ba8ad;font-weight:400}.input-unit input{padding-right:30px!important}.rule{border-top:1px solid #e9edef;padding-top:20px;margin-top:7px}.property-title{display:flex;align-items:center;justify-content:space-between;font-weight:700;margin-bottom:18px}.danger{color:#cf5950!important}.button-row{display:flex;gap:8px}.subtle{border:1px solid #dce3e5;background:#fff;border-radius:4px;padding:8px 10px;color:#586970;flex:1;white-space:nowrap}.tips{border-top:1px solid #edf0f1;margin:0 18px;padding:17px 0;color:#9ca8ac;font-size:11px;line-height:1.7}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#263b41;color:white;padding:10px 16px;border-radius:5px;box-shadow:0 8px 22px #0003;opacity:0;pointer-events:none;transition:opacity .2s;max-width:min(90vw,600px);text-align:center}.toast.show{opacity:1}body.busy button,body.busy input,body.busy select{pointer-events:none}@media(max-width:1050px){.workspace{grid-template-columns:170px minmax(320px,1fr) 220px}.page-preview{width:65px}.canvas-info{display:none}.stage-area{padding:14px}.topbar{padding:0 10px}}@media(max-width:750px){.topbar{height:auto;min-height:58px;flex-wrap:wrap;padding:9px}.top-actions{overflow:auto;width:100%}.workspace{height:auto;min-height:calc(100vh - 100px);grid-template-columns:1fr}.left-pane{order:2;border:0}.center-pane{order:1;min-height:530px}.right-pane{order:3;border:0}.page-list{display:flex;max-height:none}.page-item{min-width:135px}.sidebar-section{padding:12px}.stage-area{min-height:220px}.right-pane .properties{max-width:600px}.tips{max-width:600px}.timeline{height:85px}}

/* 文件拖入时高亮目标区域，避免覆盖画布原有交互。 */
.stage-area.file-drag-over,.layers-section.file-drag-over{outline:2px dashed #238563;outline-offset:-3px;background-color:#e1f3eb}
/* 插入线画在按钮内部，避免被侧栏滚动区域裁切。 */
.layer[draggable=true]{cursor:grab}
.layer[draggable=true]:active{cursor:grabbing}
.layer.drop-before{box-shadow:inset 0 2px #238563}
.layer.drop-after{box-shadow:inset 0 -2px #238563}
