/* A small, direct clip editor. Detailed pose tracks remain optional. */
.timeline-section{background:#fff!important;border-top:1px solid #dde3d6;color:#3c4635;resize:vertical;min-height:220px;height:390px!important;overflow:hidden}
.simple-mode .timeline-section,.simple-mode .timeline-section.has-clips{height:245px!important;min-height:220px}
.simple-mode .timeline-section.multiple-lanes{height:310px!important}
.simple-mode .timeline-section.has-poses{height:350px!important}
.timeline-section .timeline-header{background:#fff;padding:11px 14px!important;border-bottom:1px solid #e9ede3;min-height:48px;flex:none;flex-wrap:wrap}
.timeline-section .timeline-header h2{font-size:13px;color:#303b29;letter-spacing:-.2px}
.timeline-section .timeline-header>div{gap:8px}.timeline-actions{margin-left:auto;align-items:center;gap:7px!important}
.timeline-section .timeline-actions>label,.simple-mode .timeline-section .timeline-actions>label:has(#timeline-time){font-size:10px;color:#78816f;display:flex;gap:5px;align-items:center;white-space:nowrap}
.timeline-section .timeline-header .quiet{background:#f9faf6;border:1px solid #e4e8dd;color:#68765a;font-size:10px;padding:6px 8px}
.timeline-section .timeline-header .quiet.active{background:#edf3e5;border-color:#cad9b9;color:#4d653c}
.timeline-section .timeline-header .icon-button{color:#7b8572}.timeline-section input,.timeline-section select{background:white!important;color:#3d4934!important;border:1px solid #dfe5d7!important;border-radius:6px;padding:5px 6px;font-variant-numeric:tabular-nums}
.timeline-section #timeline-time{width:58px;font-size:10px;padding:4px 5px}.timeline-length input{width:53px;font-size:11px!important;font-weight:600}
.pose-only{display:none!important}.clip-inspector[hidden]{display:none!important}
.clip-inspector{display:flex;gap:12px;align-items:center;padding:9px 14px;border-bottom:1px solid #e8ede1;background:#fbfcf8;min-height:42px;flex:none;flex-wrap:wrap}
.clip-inspector-title{font-size:11px;font-weight:600;color:#596a48;margin-right:auto}.clip-inspector label{display:flex;align-items:center;gap:5px;font-size:10px;color:#7e8873}.clip-inspector input{width:61px;font-size:11px}.clip-inspector label>span{color:#a2a995}
.clip-inspector button{border-radius:5px;width:24px;height:24px;color:#829073;font-size:17px}.clip-inspector button:hover{background:#f0f3e9;color:#d46643}
.timeline-section .timeline-scroll{background:#fafbf7;min-height:0;overflow:auto!important;scrollbar-color:#d5ddca transparent;scrollbar-width:thin;flex:1}
.timeline-section .timeline{font-size:10px;touch-action:none;min-height:100%;background:#fbfcf8}
.timeline-section .ruler{height:28px;min-height:28px!important;z-index:3;background:#f6f8f1;border-bottom:1px solid #e2e8d9}
.timeline-section .ruler-line{background:#f6f8f1!important;cursor:crosshair}.timeline-section .ruler-tick{color:#8b9580;font-size:9px!important;padding-top:8px}.timeline-section .ruler-tick:after{background:#d5decb;height:5px}
.timeline-section .track-row{min-height:34px!important}.timeline-section .track-label{background:#f8faf3;color:#7b8970;border-right:1px solid #e4eadb;z-index:4;padding:8px 12px!important;font-size:10px!important}
.timeline-section .track-label.active{background:#edf3e4;color:#53683f}.timeline-section .track-dot{width:5px;height:5px}
.timeline-section .track-lane{isolation:isolate;border-top:1px solid #edf0e7;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(var(--grid-step) - 1px),#e7ecde calc(var(--grid-step) - 1px),#e7ecde var(--grid-step));touch-action:none}
.timeline-section .motion-track{height:60px;min-height:60px!important}.timeline-section .motion-track .track-label{font-size:11px!important;font-weight:550;color:#78886b}
.motion-clip{position:absolute;top:10px;height:38px;display:flex;align-items:center;gap:6px;min-width:18px;border-radius:7px;background:var(--clip-fill);border:1px solid var(--clip-edge);box-shadow:0 2px 3px #495c2a07;color:#566448;padding:0 13px;cursor:grab;z-index:4;overflow:hidden;white-space:nowrap;touch-action:none;user-select:none}
.motion-clip:active{cursor:grabbing}.motion-clip.selected{border-color:#ea8a61;box-shadow:0 0 0 2px #ee9a7433,0 3px 6px #6a6d3820}.motion-clip:focus-visible{outline:2px solid #e7895d;outline-offset:2px}
.clip-name{font-size:11px;font-weight:600;overflow:hidden;text-overflow:ellipsis;min-width:0}.clip-symbol{font-size:16px;line-height:1;opacity:.65;flex:none}.clip-duration-badge{font-size:9px;margin-left:auto;opacity:.65;font-variant-numeric:tabular-nums}.motion-clip.compact .clip-duration-badge{display:none}
.clip-handle{position:absolute;top:0;bottom:0;width:9px;padding:0;display:flex;align-items:center;justify-content:center;font-size:8px;color:#6b7f5b77;cursor:ew-resize;touch-action:none;background:#ffffff25}.clip-handle.left{left:0;border-right:1px solid #ffffff55}.clip-handle.right{right:0;border-left:1px solid #ffffff55}.clip-handle:hover,.clip-handle:focus-visible{background:#ffffffa0;color:#6b7f5b}
.empty-clips{position:absolute;inset:10px 10px 10px 7px;border:1px dashed #dce4d0;border-radius:7px;color:#a0ad91;display:flex;align-items:center;justify-content:center;font-size:11px;pointer-events:none;background:#ffffff90}
.simple-mode .timeline-section:not(.has-clips) .motion-track{display:grid!important}
.timeline-section .simple-pose-row{height:32px;min-height:32px!important}.timeline-section .simple-pose-row .track-label{font-size:10px!important}
.timeline-section .diamond{width:8px;height:8px;box-shadow:0 0 0 2px #fafbf7;border-radius:1px}.timeline-section .diamond.selected{box-shadow:0 0 0 3px #f19d7933}
.timeline-section .timeline-group{background:#f0f4e9;border-color:#e0e7d6;height:28px}.timeline-section .timeline-group button{background:#f0f4e9;color:#6c7e5d;font-size:10px}.timeline-section .track-curve{opacity:.65}
.timeline-section .timeline-tools{background:#f6f8f1;border-color:#e2e8da;padding:7px 12px;gap:8px}.timeline-section .timeline-tools button{background:#edf2e5;color:#6e7d61}.timeline-section .timeline-tools label{color:#89967d}.timeline-section #timeline-fps{color:#697b5a;background:#fff;border-color:#e0e7d7}.timeline-section .timeline-tools #key-count{color:#94a187}
.outside-animation{position:absolute;top:0;bottom:0;pointer-events:none;z-index:5;background:repeating-linear-gradient(135deg,#f0f2ecaa 0,#f0f2ecaa 5px,#e8ece299 5px,#e8ece299 6px);border-left:1px solid #c8d0bd}
.timeline-end{position:absolute;top:0;bottom:0;width:12px;margin-left:-6px;padding:0;z-index:10;cursor:ew-resize;background:transparent;border:0;touch-action:none}.timeline-end:after{content:'';position:absolute;top:24px;bottom:0;width:1px;background:#c6ceb9;left:6px}.timeline-end>span{position:absolute;top:5px;right:1px;background:#e9eedf;border:1px solid #d1dbc2;color:#8d9b7a;font-size:8px;line-height:15px;border-radius:4px;padding:0 5px}.timeline-end:hover>span{background:#fce7d9;border-color:#e7b197;color:#bd7652}
.timeline-section .playhead{background:#ed8b61;z-index:9;opacity:.9}.timeline-section .playhead:before{width:7px;height:7px;left:-3px;background:#ed8b61;border-radius:2px;clip-path:none}
.timeline-section .timeline-footer{background:white;border-top:1px solid #e4eadd;color:#9aa48b;font-size:9px;padding:8px 13px;min-height:31px;align-items:center;flex:none}.timeline-section .timeline-footer .timeline-hint{font-size:9px}
.simple-zoom{display:flex;align-items:center;gap:3px;flex:none}.simple-zoom button{font-size:11px;color:#889a75;padding:2px 6px;border-radius:4px}.simple-zoom button:hover{background:#f0f4e8}.simple-zoom #zoom-fit{font-size:9px;padding:3px 6px}
.add-move-sign{font-size:12px;color:#b0b9a3;float:right}.preset-card:hover .add-move-sign{color:#e67f57}.loop-badge{font-size:8px!important;letter-spacing:.4px}
@media(max-width:650px){.timeline-section .timeline-header{padding:9px 11px!important;gap:6px}.timeline-actions{gap:5px!important}.timeline-section .timeline-header h2{font-size:12px}.timeline-section .timeline-header .quiet{font-size:9px;padding:6px}.clip-inspector{padding:7px 11px;gap:8px}.clip-inspector-title{width:100%}.simple-mode .timeline-section,.simple-mode .timeline-section.has-clips{height:275px!important}.simple-mode .timeline-section.has-poses{height:375px!important}.empty-clips{font-size:9px}.timeline-section .timeline-footer .timeline-hint{font-size:8px}.timeline-section .timeline-footer{gap:5px;padding:7px 10px}}
.simple-mode .transport-right .transport-divider{display:none}
