/* Sabrina Reverb compact preset bar + docked browser. HTML overlay; GL does not paint this. */

.dsp-node.sabrina-preset-open {
  z-index: 12;
}

.dsp-node.has-module-face > .dsp-node-body > .sabrina-preset-shell {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  z-index: 6;
  box-sizing: border-box;
  font-family: "Cascadia Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: 11px;
  color: #d8d8e0;
  user-select: none;
}

.node-graph-workspace.gl-graph-on .dsp-node .sabrina-preset-shell,
.node-graph-workspace.gl-graph-on .dsp-node .sabrina-preset-shell * {
  pointer-events: auto;
}

.sabrina-preset-bar {
  display: flex;
  align-items: stretch;
  gap: 3px;
  height: 100%;
  padding: 2px 4px;
  box-sizing: border-box;
  background: rgba(10, 12, 16, 0.92);
  border-top: 1px solid #2c2c36;
}

.sabrina-preset-bar button {
  flex: none;
  margin: 0;
  padding: 0 7px;
  border: 1px solid #444;
  border-radius: 3px;
  background: #1e1e24;
  color: #ccc;
  font: inherit;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}

.sabrina-preset-bar button:hover {
  background: #2a2a34;
  color: #fff;
}

.sabrina-preset-name {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  color: #cfd8ff;
}

.sabrina-preset-name.is-audition {
  color: #ffd27a;
  border-color: #8a6a2a;
  background: #3a2e12;
}

.sabrina-preset-bar [data-spb="toggle"][aria-expanded="true"] {
  border-color: #6af;
  color: #fff;
  background: #1a2a40;
}

.sabrina-preset-panel {
  position: absolute;
  left: calc(100% + 8px);
  bottom: 0;
  width: 420px;
  box-sizing: border-box;
  padding: 8px;
  border: 2px solid #3a3a44;
  border-radius: 6px;
  background: #1a1a1a;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sabrina-preset-panel[hidden] {
  display: none !important;
}

.sabrina-preset-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sabrina-preset-head input[type="search"] {
  flex: 1 1 0;
  min-width: 0;
  height: 24px;
  box-sizing: border-box;
  padding: 0 6px;
  border: 1px solid #444;
  border-radius: 4px;
  background: #121218;
  color: #ddd;
  font: inherit;
}

.sabrina-preset-aud {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  color: #ccc;
  cursor: pointer;
}

.sabrina-preset-body {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 8px;
  height: 240px;
  min-height: 240px;
}

.sabrina-preset-cats {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
}

.sabrina-preset-cats button {
  flex: none;
  text-align: left;
  margin: 0;
  padding: 4px 7px;
  border: 1px solid #333;
  border-radius: 4px;
  background: #1e1e22;
  color: #bbb;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sabrina-preset-cats button.is-on {
  border-color: #6af;
  color: #fff;
  background: #1a2a40;
}

.sabrina-preset-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  min-height: 0;
  background: #121218;
  border: 1px solid #2c2c36;
  border-radius: 4px;
  scrollbar-width: thin;
}

.sabrina-preset-list:focus {
  outline: none;
}

.sabrina-preset-list:focus-visible {
  outline: 1px solid #6af;
}

.sabrina-preset-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  border-bottom: 1px solid #1d1d24;
  color: #ccd;
  cursor: pointer;
}

.sabrina-preset-list li:hover {
  background: #1c1c26;
}

.sabrina-preset-list li.is-sel {
  box-shadow: inset 0 0 0 1px #8ab4e8;
}

.sabrina-preset-list li.is-loaded {
  color: #fff;
  background: #1a2a40;
}

.sabrina-preset-list li.is-aud {
  color: #ffe3a8;
  background: #3a2e12;
}

.sabrina-preset-list li.is-user {
  border-left: 3px solid #4fb38a;
}

.sabrina-preset-list li small {
  flex: none;
  font-size: 10px;
  color: #b08a3a;
}

.sabrina-preset-list li.is-user small {
  color: #7fd8b0;
}

.sabrina-preset-list li.empty {
  color: #777;
  cursor: default;
  font-style: italic;
}

.sabrina-preset-audbar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 6px;
  border: 1px solid #6a5420;
  border-radius: 4px;
  background: #2a2210;
  color: #ffd27a;
  font-size: 11px;
}

.sabrina-preset-audbar[hidden] {
  display: flex !important;
  visibility: hidden;
}

.sabrina-preset-audbar span {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sabrina-preset-foot,
.sabrina-preset-lane-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}

.sabrina-preset-foot input[type="text"] {
  flex: 1 1 0;
  min-width: 0;
  height: 24px;
  box-sizing: border-box;
  padding: 0 6px;
  border: 1px solid #444;
  border-radius: 4px;
  background: #121218;
  color: #ddd;
  font: inherit;
}

.sabrina-preset-panel button {
  flex: none;
  margin: 0;
  padding: 3px 8px;
  border: 1px solid #555;
  border-radius: 4px;
  background: #222;
  color: #ddd;
  font: inherit;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}

.sabrina-preset-panel button:hover {
  background: #2c2c2c;
}

.sabrina-preset-panel button:disabled {
  opacity: 0.4;
  cursor: default;
}

.sabrina-preset-panel [data-spb="load"],
.sabrina-preset-panel [data-spb="save"] {
  border-color: #c79a3a;
  background: #3a2e12;
  color: #ffe3a8;
}

.sabrina-preset-lane {
  position: relative;
  height: 28px;
  margin: 14px 10px 4px;
  border: 1px solid #3a3a44;
  border-radius: 4px;
  background: #16161c;
  cursor: copy;
  touch-action: none;
}

.sabrina-preset-lane:focus-visible {
  outline: 1px solid #6af;
}

.sabrina-preset-stops {
  position: absolute;
  inset: 0;
}

.sabrina-preset-stop {
  position: absolute;
  top: -10px;
  transform: translateX(-50%);
  max-width: 90px;
  padding: 0 4px;
  height: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #000;
  border-radius: 3px;
  background: hsl(210 50% 42%);
  color: #eef;
  font: inherit;
  font-size: 10px;
  line-height: 12px;
  cursor: grab;
}

.sabrina-preset-stop.is-sel {
  box-shadow: 0 0 0 2px #fff;
  color: #fff;
  z-index: 1;
}

.sabrina-preset-playhead {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 4px #6af;
  pointer-events: none;
}
