.scale-key {display:grid;gap:6px;grid-column:1/-1;min-width:0}
.scale-key {grid-template-columns:minmax(0,1fr) auto;margin:8px 0 12px}
.scale-key label {grid-column:1/-1;display:flex;justify-content:space-between;font-size:.78rem}
#scale-motion {width:100%;min-width:0;accent-color:#d6e4fb}
.key-tools {display:flex;gap:3px}.key-tools button {padding:4px;min-width:25px;min-height:25px}
#sound-lane {position:relative}
#sound-lane #wave {position:absolute;inset:0;pointer-events:none;opacity:.32;margin:0}
#sound-lane:has(.ma-clip) #wave {visibility:hidden}
#sound-span[data-empty=true] {background:transparent}
#sound-lane:has(#wave[data-muted=true]) .ma-track {opacity:.48}
.layer-track .key-marker[aria-pressed=true] {color:white;background:#5872a0;border-color:#c6d9f9}


.edit[data-timeline-face=background] #sound-lane {display:none}
body .edit:not([data-timeline-face=background]) :is(#lane-heads,#layer-tracks):not([hidden]) {display:block}
#layer-tracks {max-height:none;overflow:visible}
#lane-heads {overflow:hidden}
.layer-track,.track-heads #lane-heads .track-eye {height:30px;min-height:30px;margin-top:3px}
.layer-track {background:#171717;border:0}
.layer-track .range-item {display:flex;align-items:stretch;position:absolute;top:0;height:100%;overflow:hidden;border:1px solid #4e4e4e;border-radius:5px;background:#2f2f2f}
.layer-track .range-item[data-selected=true] {border-color:#aab8cf;background:#373737}
.layer-track .range-item button {min-width:0;min-height:0;padding:0;border:0;background:transparent;color:#eeeeee;border-radius:0;touch-action:none}
.layer-track .range-body {display:flex;gap:6px;align-items:center;justify-content:start;min-width:0;flex:1;overflow:hidden;cursor:grab;font-size:.7rem}
.layer-track .range-body canvas {width:31px;height:24px;object-fit:contain;flex:none;background:#737373;border-radius:2px}
.layer-track .range-body span {white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.layer-track .source-strip {position:relative;display:flex;align-items:center;gap:5px;flex:1;height:100%;pointer-events:none}
.layer-track .source-sample {position:absolute;top:50%;transform:translateY(-50%);border-left:1px solid #929292}
.layer-track .range-edge {position:relative;flex:0 0 min(8px,14%);cursor:ew-resize}
.layer-track .source-replace {align-self:center;display:grid;place-items:center;width:23px;height:23px;margin-right:3px}
.layer-track .source-replace .glyph {width:15px;height:15px}
.layer-track .source-replace:hover {background:#4f4f4f}
.layer-track .key-marker {height:11px;top:auto;bottom:0;z-index:4;min-width:10px;line-height:10px;background:#242424;color:#dce7fb}
#timeline.pose-cuts {height:22px;min-height:22px}
.pose-cuts .cue {min-height:22px;height:22px;background:#303030;color:#dddddd;text-align:left;font-size:10px}
.pose-cuts .cue small {display:block;margin-inline:5px 22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

#height-tools:not([hidden]) {display:grid;gap:7px;margin:8px 0 12px;padding-bottom:9px;border-bottom:1px solid var(--soft-line)}
#height-tools label {display:flex;justify-content:space-between;align-items:center;font-size:.78rem;font-weight:620}
#height-motion {width:100%;min-width:0;accent-color:#d6e4fb}
.height-pivot {display:flex;flex-wrap:wrap;align-items:center;gap:4px;color:#cbcbcb;font-size:.7rem}
.height-pivot button {min-height:24px;padding:2px 7px;border:1px solid #424242;border-radius:5px;font-size:.71rem}
.height-pivot button[aria-pressed=true] {color:#ffffff;background:#444444;border-color:#a8b4c9}

.size-heading {display:flex;align-items:center;justify-content:space-between;gap:8px;grid-column:1/-1}
.size-heading .size-number {display:inline-flex;align-items:center;gap:3px;min-height:28px;padding:0 6px;background:#222222;color:#bcbcbc;border:1px solid #414141;border-radius:5px;font:500 12px/1 var(--mono,monospace)}
.size-heading .size-number:focus-within {border-color:var(--accent,#c9dbf9)}
.size-number input[type=number] {appearance:textfield;min-width:0;width:4ch;min-height:26px;height:auto;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#f3f3f3;font:inherit;text-align:right;outline:0}
.size-number input::-webkit-inner-spin-button,.size-number input::-webkit-outer-spin-button {appearance:none;margin:0}
@media(pointer:coarse){.size-heading .size-number{min-height:34px}.size-number input[type=number]{font-size:16px}}
