/* Studio notes grid (notegrid.js, owner 3 Dec 2026): drum lanes and piano roll under a Pro Studio row. One accent colour. */
/* the Notes button = a note icon beside the Change sound pen (owner 3 Dec); lit while the grid is open */
.ng-tog { position: relative; }
.ng-tog svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ng-tog.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.ng-dot { display: none; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); border: 2px solid #12151b; }
.ng-tog.dirty .ng-dot { display: block; }
.ng-tog.on .ng-dot { background: #fff; }

.ng-slot { border-top: 1px solid var(--line); background: #101319; padding: 10px 12px 12px; }
.sdo-basic .ng-slot { border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.ng { outline: none; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ng:focus-visible .ng-box { border-color: var(--accent); }
.ng-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 30px; }
.ng-ttl { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ng-ttl b { font-size: 13px; }
.ng-ttl small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ng-chip { font-style: normal; font-size: 11px; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 0 7px; white-space: nowrap; }
.ng-sp { flex: 1 1 auto; }
.ng-fld { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.ng-fld select { background: var(--panel2); color: var(--text); border: 1px solid var(--line2); border-radius: 8px; padding: 4px 6px; font-size: 12px; height: 30px; }
.ng-vel input { width: 92px; accent-color: var(--accent); }
.ng-vel input:disabled { opacity: .45; }
.ng-vel b { font: 600 12px var(--mono); color: var(--text); min-width: 26px; }
.ng-seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; flex: none; }
.ng-seg button, .ng-ib { background: var(--panel2); color: var(--text); border: 0; min-width: 32px; height: 30px; padding: 0 9px; display: inline-grid; place-items: center; cursor: pointer; font-size: 12px; font-weight: 600; }
.ng-seg button + button { border-left: 1px solid var(--line2); }
.ng-ib { border: 1px solid var(--line2); border-radius: 8px; flex: none; }
.ng-seg button:hover:not(:disabled), .ng-ib:hover:not(:disabled) { color: var(--accent); }
.ng-seg button:disabled, .ng-ib:disabled { opacity: .4; cursor: default; }
.ng-seg svg, .ng-ib svg, .ng-hear svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ng-hear { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); font-weight: 600; font-size: 12px; cursor: pointer; white-space: nowrap; flex: none; }
.ng-hear.on { background: var(--accent); border-color: var(--accent); color: #0b0d14; }
.ng-hear:disabled { opacity: .45; cursor: default; }
.ng-hear .spin { width: 12px; height: 12px; }
.ng-rst { padding: 5px 10px; font-size: 12px; flex: none; }
.ng-msg { font-size: 12px; color: var(--muted); padding-left: 2px; }
.ng-box { display: grid; grid-template-columns: var(--lw, 54px) minmax(0, 1fr); grid-template-rows: 30px auto; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #0c0e13;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ng-corner { background: #0c0e13; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ng-ruler { display: block; height: 30px; border-bottom: 1px solid var(--line); cursor: pointer; touch-action: none; }
.ng-keys { display: block; border-right: 1px solid var(--line); cursor: default; }
.ng-bodyw { position: relative; min-width: 0; }
.ng-scroll { overflow: auto; position: relative; touch-action: pan-x pan-y; overscroll-behavior: contain; scrollbar-color: var(--line2) transparent; }
.ng-inner { position: relative; }
.ng-cv { position: sticky; top: 0; left: 0; display: block; }
.ng-ph { position: absolute; top: 0; left: 0; width: 2px; margin-left: -1px; background: #fff; pointer-events: none; display: none; will-change: transform; }
.ng-empty { padding: 18px; color: var(--muted); font-size: 13px; }
.ng-apply { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border: 1px solid var(--accent); border-radius: 10px; background: rgba(0, 220, 196, .08); flex-wrap: wrap; }
.ng-apply .ng-n { margin-right: auto; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ng-apply .ng-n small { color: var(--muted); font-size: 12px; }
.ng-apply .btn { padding: 7px 16px; }
@media (max-width: 760px) {
  .ng-slot { padding: 8px; }
  .ng-tools { gap: 6px; }
  .ng-sp { display: none; }
  .ng-ttl { flex: 1 1 100%; }
  .ng-vel input { width: 74px; }
  .ng-seg button, .ng-ib { min-width: 36px; height: 34px; }
  .ng-hear { height: 34px; }
}

/* Quantize (button + strength) and the quiet "You hear your changes" label (3 Dec 2026) */
.ng-q select { border: 0; border-left: 1px solid var(--line2); background: none; color: inherit; font: inherit; font-size: 12px; padding: 0 6px; cursor: pointer; }
.ng-q button { padding: 0 10px; width: auto; font-size: 12px; font-weight: 600; }
span.ng-hear { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent); white-space: nowrap; }
span.ng-hear svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
span.ng-hear { border: 0; background: none; padding: 0; height: auto; cursor: default; font-weight: 500; }
.ng-q select { background: var(--panel2); color: var(--text); }
