/* Light-theme choreography editor enhancements */
.editor-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:100%;margin-top:12px;padding-top:10px;border-top:1px solid #ececec}
.editor-tool-group{display:flex;gap:5px;flex-wrap:wrap}
.editor-toolbar button,.timeline-zoom button{border:1px solid #d8d8d8;background:#fff;color:#333;border-radius:6px;padding:7px 10px;font-size:12px;cursor:pointer;transition:background .15s,border-color .15s}
.editor-toolbar button:hover,.timeline-zoom button:hover{border-color:#e97832;color:#d96524;background:#fff8f4}
.editor-toolbar button[aria-pressed="true"]{background:#fff1e9;border-color:#e97832;color:#c85b20}
.selection-count{margin-left:auto;color:#777;font-size:12px;white-space:nowrap}
.coordinate-readout{padding:7px 12px;margin:-10px 0 10px;color:#555;background:#fff;border:1px solid #e8e8e8;border-radius:5px;font-size:12px;font-variant-numeric:tabular-nums}
.coordinate-readout.is-hidden{display:none}
.stage-area.show-grid{background-image:linear-gradient(to right,rgba(90,100,110,.13) 1px,transparent 1px),linear-gradient(to bottom,rgba(90,100,110,.13) 1px,transparent 1px);background-size:5% 5%;}
.stage-dancer.is-selected{outline:3px solid #e97832;outline-offset:3px;z-index:30;box-shadow:0 0 0 5px rgba(233,120,50,.13),0 3px 12px rgba(0,0,0,.18)}
.editor-timeline{margin:0 20px 16px;background:#fff;border:1px solid #e5e5e5;border-radius:8px;box-shadow:0 1px 4px rgba(0,0,0,.05);overflow:auto;max-height:210px;color:#333}
.timeline-heading{position:sticky;left:0;display:flex;align-items:center;gap:14px;padding:10px 14px;border-bottom:1px solid #eee;background:#fff;min-width:100%;z-index:2}
.timeline-heading strong{font-size:12px;letter-spacing:.08em}.timeline-heading>span{font-size:11px;color:#888}.timeline-zoom{margin-left:auto;display:flex;gap:4px}.timeline-zoom button{padding:3px 9px}
.timeline-ruler,.timeline-track{position:relative;height:25px;min-width:100%;background:repeating-linear-gradient(to right,transparent 0,transparent 139px,#ededed 140px)}
.timeline-ruler{height:24px;border-bottom:1px solid #eee;background-color:#fafafa}.timeline-ruler span{position:absolute;top:5px;transform:translateX(-50%);font-size:10px;color:#888;font-variant-numeric:tabular-nums}
.timeline-track{height:76px;background-color:#fff;background-image:repeating-linear-gradient(to right,transparent 0,transparent 139px,#f0f0f0 140px)}
.timeline-scene{position:absolute;top:12px;height:52px;min-width:40px;border:1px solid #d9d9d9;border-radius:5px;background:#f4f5f7;overflow:hidden;cursor:grab;padding:6px 10px;user-select:none;touch-action:none}
.timeline-scene.active{background:#fff1e9;border-color:#e97832;box-shadow:inset 0 0 0 1px #e97832}.timeline-scene-name{display:block;font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.timeline-scene-time{display:block;margin-top:4px;font-size:10px;color:#777;white-space:nowrap;font-variant-numeric:tabular-nums}.timeline-handle{position:absolute;top:0;width:7px;height:100%;background:rgba(100,100,100,.12);cursor:ew-resize}.timeline-handle.left{left:0}.timeline-handle.right{right:0}
.editor-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,10px);opacity:0;pointer-events:none;background:#292929;color:#fff;padding:10px 16px;border-radius:6px;font-size:13px;z-index:9999;transition:all .2s}.editor-toast.visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:900px){.editor-toolbar{gap:6px}.selection-count{margin-left:0}.editor-timeline{margin:0 10px 12px}.timeline-heading{gap:8px;flex-wrap:wrap}}
/* Reserve a dedicated lower strip for the timeline while preserving the light stage workspace. */
.main-container{height:calc(100vh - 225px);min-height:360px}
.editor-timeline{height:165px;max-height:165px}
@media(max-height:700px){.main-container{height:calc(100vh - 205px);min-height:280px}.editor-timeline{height:145px;max-height:145px}}
.coordinate-readout{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.coordinate-readout label{display:flex;align-items:center;gap:4px;font-size:12px;color:#666}
.coordinate-readout input{width:76px;padding:5px 7px;border:1px solid #d8d8d8;border-radius:4px;color:#333;background:#fff}
.coordinate-readout button{padding:5px 10px;border:1px solid #d8d8d8;border-radius:4px;background:#fff;color:#333;font-size:12px;cursor:pointer}
.coordinate-readout button:hover{border-color:#e97832;color:#d96524}
