/* Tonic — piano roll */

#roll { flex: 1 1 0; min-height: 0; display: flex; }
.rl { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; background: var(--bg); position: relative; }
.rl-head { display: flex; align-items: center; gap: 8px; padding: 7px 12px; flex: none; min-width: 0; overflow-x: auto; scrollbar-width: none; background: var(--panel); border-bottom: 1px solid var(--line); }
.rl-head::-webkit-scrollbar { display: none; }
.rl-head-group { display: flex; align-items: center; gap: 3px; flex: none; }
.rl-head .tb-sep { margin: 0 4px; height: 20px; }
.seg.icons button { width: 32px; padding: 0; display: grid; place-items: center; }
.rl-key { font: 700 11.5px var(--sans); color: var(--muted); white-space: nowrap; }
.rl-hint { font: 500 11px var(--mono); color: var(--muted); min-width: 74px; text-align: right; white-space: nowrap; }

.rl-scroll { position: relative; flex: 1; min-height: 0; overflow: auto; outline: none; background: var(--roll-white); scrollbar-gutter: stable; overscroll-behavior: contain; }
.rl-spacer { position: absolute; left: 0; top: 0; pointer-events: none; }
.rl-stick { position: sticky; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; touch-action: none; }
.rl-base, .rl-fx { position: absolute; left: 0; top: 0; }
.rl-stick[data-cursor="draw"] { cursor: crosshair; }
.rl-stick[data-cursor="select"] { cursor: default; }
.rl-stick[data-cursor="erase"] { cursor: cell; }
.rl-stick[data-cursor="key"], .rl-stick[data-cursor="seek"] { cursor: pointer; }
.rl-stick[data-cursor="move"] { cursor: grab; }
.rl-stick[data-cursor="resize"] { cursor: ew-resize; }

.rl-vel { position: relative; height: 74px; flex: none; border-top: 1px solid var(--line); background: var(--panel-2); }
.rl-velc { position: absolute; left: 0; top: 0; }
.rl-vel-label { position: absolute; left: 0; top: 0; width: var(--gutter, 64px); height: 100%; padding: 11px 10px; display: flex; flex-direction: column; gap: 2px; pointer-events: none; z-index: 1; }
.rl-vel-label b { font: 800 9px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.rl-vel-label small { font-size: 10px; color: var(--muted); font-weight: 600; }
