@layer v6 {
    .pattern-card.pattern-batch-selected { outline: 2px solid #efc65b; outline-offset: -2px; }
    .pitch-open { margin-left: 6px; background: #382a50; color: #e5d5ff; border: 1px solid #70519b; border-radius: 5px; padding: 3px 8px; font-size: 11px; cursor: pointer; }
    .pitch-expanded .sequencer-wrapper, .pitch-expanded .grid-event-lanes { display: none !important; }
    .pitch-editor { padding: 6px 10px 12px; }
    .pitch-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; font-size: 11px; }
    .pitch-toolbar button, .pitch-toolbar select, .pitch-toolbar input[type=number] { background: #24202d; color: #eee; border: 1px solid #594773; border-radius: 4px; padding: 3px 6px; }
    .pitch-toolbar input[type=number] { width: 42px; }
    .pitch-overflow { color: #bca9d6; }
    .pitch-scroll { max-height: 330px; overflow-y: auto; scrollbar-color: #735598 #17141d; }
    .pitch-lattice { display: grid; grid-template-columns: 40px repeat(16,minmax(12px,1fr)); gap: 1px; }
    .pitch-label { position: sticky; left: 0; background: #17141d; color: #c9b4e9; font-size: 10px; text-align: right; padding: 3px 5px; }
    .pitch-cell { min-width: 0; height: 21px; background: #211c2d; border: 1px solid #322a44; border-radius: 2px; padding: 0; cursor: crosshair; }
    .pitch-cell.pitch-accidental { background: #15121c; }
    .pitch-cell.pitch-beat { border-left: 2px solid #685580; }
    .pitch-cell.pitch-active { background: var(--track-color,#a875ed); border-color: #c39cef; }
    .pitch-cell.pitch-playing { box-shadow: inset 0 0 0 1px #efc76f; }
    .pitch-cell.pitch-sounding { background: #fff0ae; box-shadow: 0 0 5px #f6cb6a; }
    .zt-song-editor--focus .tracks-container > .track:not(.pitch-focus-track) { display: none !important; }
    .zt-song-editor--focus .pitch-scroll { max-height: calc(var(--song-editor-height,350px) - 155px); }
}

@layer v6 { .cell.sounding { filter: brightness(1.65); box-shadow: inset 0 0 0 1px #fff9; } .compose-foundations input[type="range"] { accent-color: var(--accent-primary, #a855f7); } }

.zt-song-editor__follow, .zt-song-editor__focus { background: #24202d; color: #eee; border: 1px solid #594773; border-radius: 4px; padding: 4px 7px; font-size: 11px; }
[data-chart="briefInfluence"] { background: #24202d; color: #eee; border: 1px solid #594773; border-radius: 4px; padding: 4px 7px; }
