/* LV2 plugin browser + generated editor */
.modal.lv2-modal { width: min(980px, 100%); }
.lv2-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; min-height: 420px; }
.lv2-browser { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lv2-browser .row .input { flex: 1; min-width: 0; }
.lv2-list { display: flex; flex-direction: column; gap: 1px; overflow: auto; max-height: min(56vh, 520px); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px; background: var(--list-bg); }
.lv2-group { font-size: 11.5px; color: var(--amber); padding: 8px 8px 4px; }
.lv2-subgroup { font-size: 11.5px; color: var(--muted); padding: 8px 8px 2px; border-top: 1px solid var(--line); margin-top: 4px; }
.lv2-group + .lv2-item, .lv2-list > .lv2-subgroup:first-child { border-top: 0; margin-top: 0; }
.lv2-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; background: none; border: 0; padding: 5px 8px; border-radius: 5px; color: var(--text); }
.lv2-item:hover { background: var(--panel-2); }
.lv2-item.on { background: var(--panel-2); box-shadow: inset 2px 0 var(--amber); }
.lv2-item-name { font-size: 12.5px; line-height: 1.3; }
.lv2-item-meta { font-size: 11px; color: var(--muted); }
.lv2-none { padding: 8px; margin: 0; }

.lv2-right { display: flex; flex-direction: column; min-width: 0; }
.lv2-editor { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.lv2-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lv2-head h3 { font-size: 14px; }
.lv2-head p { margin: 2px 0 0; }
.lv2-head .link { flex: none; }
.lv2-filter { width: 100%; }
.lv2-params { display: flex; flex-direction: column; gap: 2px; overflow: auto; max-height: min(44vh, 420px); padding-right: 4px; }
.lv2-ctl { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) 76px 84px; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 2px 4px; border-radius: 4px; }
.lv2-ctl:hover { background: color-mix(in srgb, var(--hover-tint) 50%, transparent); }
.lv2-ctl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv2-ctl.changed .lv2-ctl-name { color: var(--amber); }
.lv2-ctl output { text-align: right; color: var(--text); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv2-ctl input[type=range] { width: 100%; accent-color: var(--amber); }
.lv2-num { width: 100%; padding: 3px 6px; text-align: right; font: 11.5px var(--mono); }
.lv2-toggle, .lv2-ctl:has(> select) { grid-template-columns: minmax(110px, 170px) minmax(0, 1fr); }
.lv2-toggle input { justify-self: start; accent-color: var(--amber); }
.lv2-ctl select { justify-self: start; max-width: 100%; padding: 3px 6px; }
.lv2-empty { display: grid; place-content: center; text-align: center; min-height: 300px; gap: 4px; }
.lv2-empty p { margin: 0; max-width: 46ch; }

@media (max-width: 820px) {
  .lv2-grid { grid-template-columns: 1fr; }
  .lv2-list { max-height: 30vh; }
  .lv2-ctl { grid-template-columns: minmax(90px, 1fr) minmax(0, 1.4fr) 64px; }
  .lv2-ctl output { display: none; }
}
