.viewport-wrapper {
  width: 100%;
  height: 100%; /* MUST have `height` to prevent resize infinite loop */
  position: relative;
}

.viewport-element {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: black;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;

  /* Prevent the blue outline in Chrome when a viewport is selected */
  outline: 0 !important;

  /* Prevents the entire page from getting larger
     when the magnify tool is near the sides/corners of the page */
  overflow: hidden;
}

.scroll {
  position: absolute;
  right: 45px;
  top: 130px;
  top: var(--scroll-top, 130px);
  bottom: 125px;
  bottom: var(--scroll-bottom, 125px);
  padding: 5px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.scroll--inactive {
  opacity: 0.3;
}

.scroll--idle {
  opacity: 0.15;
}

.scroll--side {
  right: 0;
  top: 0;
  bottom: 0;
  padding: 5px;
}

.scroll--side .scroll-holder::before {
  display: none;
}

.scroll .scroll-holder {
  flex: 1 1;
  min-height: 0;
  position: relative;
  width: 12px;
}

.scroll .scroll-holder::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  z-index: 0;
}

.scroll .scroll-holder .imageSlider {
  height: 12px;
  left: 12px;
  padding: 0;
  position: absolute;
  top: 0;
  transform: rotate(90deg);
  transform-origin: top left;
  -webkit-appearance: none;
  background-color: rgba(0, 0, 0, 0);
  z-index: 10;
}
.scroll .scroll-holder .imageSlider:focus {
  outline: none;
}
.scroll .scroll-holder .imageSlider::-moz-focus-outer {
  border: none;
}
.scroll .scroll-holder .imageSlider::-webkit-slider-runnable-track {
  background-color: rgba(0, 0, 0, 0);
  border: none;
  cursor: pointer;
  height: 5px;
  z-index: 6;
}
.scroll .scroll-holder .imageSlider::-moz-range-track {
  background-color: rgba(0, 0, 0, 0);
  border: none;
  cursor: pointer;
  height: 2px;
  z-index: 6;
}
.scroll .scroll-holder .imageSlider::-ms-track {
  background: transparent;
  border: none;
  border-width: 15px 0;
  color: rgba(0, 0, 0, 0);
  cursor: pointer;
  height: 12px;
  width: 100%;
}
.scroll .scroll-holder .imageSlider::-ms-fill-lower {
  background: rgba(0, 0, 0, 0);
}
.scroll .scroll-holder .imageSlider::-ms-fill-upper {
  background: rgba(0, 0, 0, 0);
}
.scroll .scroll-holder .imageSlider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  background-color: #2c2c2c;
  border: none;
  border-radius: 57px;
  cursor: -webkit-grab;
  height: 16px;
  margin-top: -4px;
  width: 50px;
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}
.scroll .scroll-holder .imageSlider::-webkit-slider-thumb:active {
  background-color: #221e1e;
  height: 20px;
  width: 50px;
  cursor: -webkit-grabbing;
}
.scroll .scroll-holder .imageSlider::-moz-range-thumb {
  background-color: #2c2c2c;
  border: none;
  border-radius: 57px;
  cursor: -moz-grab;
  height: 12px;
  width: 30px;
  z-index: 7;
  -moz-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}
.scroll .scroll-holder .imageSlider::-moz-range-thumb:active {
  background-color: #221e1e;
  cursor: -moz-grabbing;
}
.scroll .scroll-holder .imageSlider::-ms-thumb {
  background-color: #2c2c2c;
  border: none;
  border-radius: 57px;
  cursor: ns-resize;
  height: 12px;
  width: 30px;
}
.scroll .scroll-holder .imageSlider::-ms-thumb:active {
  background-color: #221e1e;
}
.scroll .scroll-holder .imageSlider::-ms-tooltip {
  display: none;
}
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .imageSlider {
    left: 50px;
  }
}

.pr-track-segments-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  z-index: 1;
  pointer-events: none;
}

.pr-track-segment {
  position: absolute;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.scroll .scroll-holder .pr-markers-container {
  position: absolute;
  left: 16px;
  top: 0;
  width: 40px;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.scroll .scroll-holder .pr-marker-range {
  position: absolute;
  left: 0;
  width: 14px;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.15);
  border: none;
  border-left: 2px solid #999;
  border-radius: 2px;
  pointer-events: auto;
  cursor: pointer;
}

.scroll .scroll-holder .pr-marker-range:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.scroll .scroll-holder .pr-marker-range--active {
  background-color: rgba(255, 255, 255, 0.35);
  border-left-color: #ddd;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.scroll .scroll-holder .pr-range-count {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 7px;
  font-weight: bold;
  color: #bbb;
  width: 14px;
  text-align: center;
}

.scroll .scroll-holder .pr-tag-btn {
  position: absolute;
  left: 2px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  transition: background-color 0.15s ease;
}

.pr-tag-svg {
  display: block;
  transition: opacity 0.15s ease;
}

.scroll .scroll-holder .pr-tag-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  z-index: 9;
}

.scroll .scroll-holder .pr-tag-btn--active {
  background: transparent;
  z-index: 8;
}

.pr-tag-dot {
  position: absolute;
  left: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #fff;
  pointer-events: none;
}

.pr-nav-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 16px;
  margin: 2px 0;
  background: rgba(40, 40, 40, 0.85);
  border: 1px solid #888;
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
  align-self: flex-end;
  position: relative;
}

.pr-nav-btn:hover:not(:disabled) {
  background: #999;
  color: #000;
}

.pr-nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
  border-color: #555;
  color: #555;
}

.pr-nav-arrow-up,
.pr-nav-arrow-down {
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}

.pr-nav-arrow-up {
  border-bottom: 5px solid #aaa;
}

.pr-nav-arrow-down {
  border-top: 5px solid #aaa;
}

.pr-nav-btn:hover:not(:disabled) .pr-nav-arrow-up {
  border-bottom-color: #000;
}

.pr-nav-btn:hover:not(:disabled) .pr-nav-arrow-down {
  border-top-color: #000;
}

.pr-nav-btn:disabled .pr-nav-arrow-up {
  border-bottom-color: #555;
}

.pr-nav-btn:disabled .pr-nav-arrow-down {
  border-top-color: #555;
}

.pr-nav-counter {
  flex-shrink: 0;
  text-align: center;
  font-size: 9px;
  font-weight: bold;
  color: #aaa;
  white-space: nowrap;
  margin: 1px 0;
  width: 20px;
  align-self: flex-end;
  margin-right: -4px;
}

.pr-thumb-tooltip {
  position: absolute;
  right: 18px;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid #777;
  border-radius: 3px;
  padding: 3px 8px;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  white-space: nowrap;
  z-index: 30;
  pointer-events: none;
}

.scroll .scroll-holder .imageSlider--pr-active::-webkit-slider-thumb {
  background-color: #bbb !important;
  opacity: 1 !important;
}
.scroll .scroll-holder .imageSlider--pr-active::-webkit-slider-thumb:active {
  background-color: #999 !important;
  opacity: 1 !important;
}
.scroll .scroll-holder .imageSlider--pr-active::-moz-range-thumb {
  background-color: #bbb !important;
  opacity: 1 !important;
}
.scroll .scroll-holder .imageSlider--pr-active::-moz-range-thumb:active {
  background-color: #999 !important;
  opacity: 1 !important;
}
.scroll .scroll-holder .imageSlider--pr-active::-ms-thumb {
  background-color: #bbb !important;
  opacity: 1 !important;
}
.scroll .scroll-holder .imageSlider--pr-active::-ms-thumb:active {
  background-color: #999 !important;
  opacity: 1 !important;
}

.ViewportOrientationMarkers {
  --marker-width: 100px;
  --marker-height: 100px;
  --scrollbar-width: 20px;
  pointer-events: none;
  font-size: 15px;
  color: #ccc;
  line-height: 18px;
}
.ViewportOrientationMarkers .orientation-marker {
  position: absolute;
}
.ViewportOrientationMarkers .top-mid {
  top: 5px;
  left: 50%;
}
.ViewportOrientationMarkers .left-mid {
  top: 47%;
  left: 5px;
}
.ViewportOrientationMarkers .right-mid {
  top: 47%;
  left: calc(100% - var(--marker-width) - var(--scrollbar-width));
}
.ViewportOrientationMarkers .bottom-mid {
  top: calc(100% - var(--marker-height) - 5px);
  left: 47%;
}
.ViewportOrientationMarkers .right-mid .orientation-marker-value {
  display: flex;
  justify-content: flex-end;
  min-width: var(--marker-width);
}
.ViewportOrientationMarkers .bottom-mid .orientation-marker-value {
  display: flex;
  justify-content: flex-start;
  min-height: var(--marker-height);
  flex-direction: column-reverse;
}

.series-fusion-picker {
  width: clamp(260px, 42cqw, 360px);
  max-width: calc(100cqw - 8px);
  max-height: calc(100cqh - 8px);
  min-width: 0;
  overflow: hidden;
  position: relative;
  margin-top: clamp(6px, 1cqh, 8px);
  padding: clamp(10px, 1.4cqh, 14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: clamp(10px, 1.2cqh, 12px);
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.96) 0%, rgba(20, 20, 20, 0.98) 100%);
  box-shadow:
    0 clamp(10px, 2.2cqh, 10px) clamp(20px, 5cqh, 30px) rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: #fff;
}

.series-fusion-picker-container {
  position: absolute;
  inset: 0;
  container-type: size;
  pointer-events: none;
}

.series-fusion-picker-anchor {
  pointer-events: auto;
}

.series-fusion-picker::before {
  content: '';
  position: absolute;
  top: clamp(-6px, -0.8cqh, -4px);
  left: clamp(12px, 1.5cqw, 14px);
  width: clamp(10px, 1.5cqh, 12px);
  height: clamp(10px, 1.5cqh, 12px);
  background: #1c1c1c;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(45deg);
}

.series-fusion-picker__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: clamp(10px, 1.4cqh, 12px);
}

.series-fusion-picker__title-wrap {
  display: flex;
  align-items: flex-start;
  gap: clamp(8px, 1cqh, 10px);
  min-width: 0;
}

.series-fusion-picker__title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(24px, 3.2cqh, 28px);
  height: clamp(24px, 3.2cqh, 28px);
  border-radius: clamp(7px, 0.9cqh, 8px);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
  font-size: clamp(11px, 1.6cqh, 13px);
}

.series-fusion-picker__title {
  font-size: clamp(12px, 1.7cqh, 14px);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1.1;
}

.series-fusion-picker__subtitle {
  margin-top: 2px;
  font-size: clamp(10px, 1.35cqh, 12px);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.58);
}

.series-fusion-picker__rows {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2cqh, 12px);
}

.series-fusion-picker__group {
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 0.7cqh, 6px);
  min-width: 0;
}

.series-fusion-picker__label {
  font-size: clamp(9px, 1cqh, 11px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.1;
}

.series-fusion-picker__label-short {
  display: none;
}

.series-fusion-picker__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.series-fusion-picker__row {
  display: grid;
  align-items: center;
  grid-column-gap: clamp(6px, 0.8cqh, 8px);
  column-gap: clamp(6px, 0.8cqh, 8px);
  min-width: 0;
}

.series-fusion-picker__row--fusion {
  grid-template-columns: clamp(16px, 2cqh, 18px) minmax(0, 1fr) clamp(24px, 3cqh, 28px);
}

.series-fusion-picker__row--base {
  grid-template-columns: clamp(16px, 2cqh, 18px) minmax(0, 1fr);
}

.series-fusion-picker__stack-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(11px, 1.5cqh, 13px);
}

.series-fusion-picker__select-wrap {
  position: relative;
  min-width: 0;
}

.series-fusion-picker__select {
  width: 100%;
  min-width: 0;
  height: clamp(30px, 5cqh, 38px);
  padding: 0 clamp(28px, 4cqh, 36px) 0 clamp(10px, 1.2cqh, 12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: clamp(8px, 1cqh, 10px);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: clamp(11px, 1.55cqh, 13px);
  font-weight: 500;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.series-fusion-picker__select:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.series-fusion-picker__select:focus {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.07);
}

.series-fusion-picker__select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.series-fusion-picker__select--base {
  color: rgba(255, 255, 255, 0.78);
}

.series-fusion-picker__select option {
  background-color: #181818;
  color: #fff;
}

.series-fusion-picker__chevron {
  position: absolute;
  right: clamp(10px, 1.2cqh, 12px);
  top: 47%;
  margin: 0 !important;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(11px, 1.5cqh, 13px);
  pointer-events: none;
}

.series-fusion-picker__delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(24px, 3cqh, 28px);
  height: clamp(24px, 3cqh, 28px);
  padding: 0;
  border: 1px solid transparent;
  border-radius: clamp(7px, 0.9cqh, 8px);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease;
}

.series-fusion-picker__delete-btn:active {
  transform: scale(0.96);
}

.series-fusion-picker__toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(24px, 3cqh, 28px);
  height: clamp(24px, 3cqh, 28px);
  padding: 0;
  border: 1px solid transparent;
  border-radius: clamp(7px, 0.9cqh, 8px);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease;
}

.series-fusion-picker__toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.series-fusion-picker__toggle-btn:active {
  transform: scale(0.96);
}

.series-fusion-picker__toggle-btn--active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.series-fusion-picker__wl-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.1cqh, 12px);
  padding: clamp(8px, 1cqh, 10px) clamp(10px, 1.2cqh, 12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: clamp(7px, 0.9cqh, 8px);
  background: rgba(255, 255, 255, 0.02);
}

.series-fusion-picker__wl-toggle-text {
  min-width: 0;
}

.series-fusion-picker__wl-toggle-subtitle {
  margin-top: clamp(2px, 0.4cqh, 4px);
  font-size: clamp(10px, 1.3cqh, 12px);
  color: #9aa4b2;
  line-height: 1.3;
}

.series-fusion-picker__switch {
  position: relative;
  display: inline-block;
  width: clamp(32px, 5.5cqh, 42px);
  height: clamp(18px, 3.2cqh, 24px);
  flex-shrink: 0;
}

.series-fusion-picker__switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.series-fusion-picker__switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #2e3645;
  cursor: pointer;
  transition: background 0.2s ease;
}

.series-fusion-picker__switch-slider::before {
  content: '';
  position: absolute;
  top: clamp(2px, 0.35cqh, 3px);
  left: clamp(2px, 0.35cqh, 3px);
  width: clamp(14px, 2.4cqh, 18px);
  height: clamp(14px, 2.4cqh, 18px);
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.series-fusion-picker__switch input:checked + .series-fusion-picker__switch-slider {
  background: #1d9bf0;
}

.series-fusion-picker__switch input:checked + .series-fusion-picker__switch-slider::before {
  transform: translateX(clamp(12px, 2cqh, 18px));
}

.series-fusion-picker__switch input:disabled + .series-fusion-picker__switch-slider {
  opacity: 0.45;
  cursor: not-allowed;
}

@container (max-height: 230px), (max-width: 320px) {
  .series-fusion-picker {
    width: clamp(230px, 40cqw, 320px);
    padding: clamp(8px, 1.1cqh, 10px);
  }

  .series-fusion-picker__header,
  .series-fusion-picker__group--base,
  .series-fusion-picker__group--fusion + .series-fusion-picker__divider,
  .series-fusion-picker__group--base + .series-fusion-picker__divider,
  .series-fusion-picker__subtitle,
  .series-fusion-picker__wl-toggle-subtitle {
    display: none;
  }

  .series-fusion-picker__rows {
    gap: 8px;
  }

  .series-fusion-picker__label-full {
    display: none;
  }

  .series-fusion-picker__label-short {
    display: inline;
  }
}

@container (max-height: 170px), (max-width: 260px) {
  .series-fusion-picker {
    width: clamp(180px, 38cqw, 260px);
    padding: 6px;
    border-radius: 8px;
  }

  .series-fusion-picker::before,
  .series-fusion-picker__header,
  .series-fusion-picker__divider {
    display: none;
  }

  .series-fusion-picker__rows {
    gap: 4px;
  }

  .series-fusion-picker__group {
    gap: 3px;
  }

  .series-fusion-picker__label {
    font-size: 8px;
  }

  .series-fusion-picker__row--fusion {
    grid-template-columns: 12px minmax(0, 1fr) 20px;
    column-gap: 4px;
  }

  .series-fusion-picker__stack-icon {
    font-size: 10px;
  }

  .series-fusion-picker__select {
    height: 26px;
    padding-left: 8px;
    padding-right: 24px;
    font-size: 11px;
    border-radius: 7px;
  }

  .series-fusion-picker__chevron {
    right: 8px;
    font-size: 10px;
  }

  .series-fusion-picker__delete-btn {
    width: 20px;
    height: 20px;
    border-radius: 6px;
  }

  .series-fusion-picker__wl-toggle-row {
    padding: 5px 6px;
    gap: 6px;
    border-radius: 7px;
  }

  .series-fusion-picker__switch {
    width: 28px;
    height: 16px;
  }

  .series-fusion-picker__switch-slider::before {
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
  }

  .series-fusion-picker__switch input:checked + .series-fusion-picker__switch-slider::before {
    transform: translateX(12px);
  }

  .series-fusion-picker__group--fusion .series-fusion-picker__label {
    display: none;
  }
}

@container (max-height: 230px) {
  .series-fusion-picker__header,
  .series-fusion-picker__group--base,
  .series-fusion-picker__group--fusion + .series-fusion-picker__divider,
  .series-fusion-picker__group--base + .series-fusion-picker__divider {
    display: none !important;
  }
}

@container (max-width: 320px) {
  .series-fusion-picker__header,
  .series-fusion-picker__group--base,
  .series-fusion-picker__group--fusion + .series-fusion-picker__divider,
  .series-fusion-picker__group--base + .series-fusion-picker__divider {
    display: none !important;
  }
}

.fusion-vp-overlay {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  z-index: 40;
  pointer-events: none;
}

.fusion-vp-overlay__inner {
  position: relative;
  pointer-events: auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* ── Toolbar ── */

.fusion-vp-overlay__toolbar {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 32px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.96) 0%, rgba(20, 20, 20, 0.98) 100%);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.fusion-vp-overlay__sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 2px;
}

.fusion-vp-overlay__tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.12s ease;
}

.fusion-vp-overlay__tool-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.fusion-vp-overlay__tool-btn:active {
  transform: scale(0.96);
}

.fusion-vp-overlay__tool-btn--active {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.fusion-vp-overlay__tool-btn--close {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  padding: 0 6px;
}

.fusion-vp-overlay__tool-btn--close:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}

/* ── Panel base ── */

.fusion-vp-overlay__panel {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.96) 0%, rgba(20, 20, 20, 0.98) 100%);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  overflow: hidden;
}

.fusion-vp-overlay__panel::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #1c1c1c;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fusion-vp-overlay__panel--display {
  width: 220px;
}

.fusion-vp-overlay__panel--presets {
  width: 248px;
}

.fusion-vp-overlay__panel--wl {
  width: 320px;
}

.fusion-vp-overlay__panel--opacity {
  width: 240px;
}

/* ── Panel sections ── */

.fusion-vp-overlay__panel-section {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fusion-vp-overlay__panel-section--wl {
  gap: 10px;
}

.fusion-vp-overlay__panel-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.1;
}

/* ── Segmented control ── */

.fusion-vp-overlay__segmented {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.fusion-vp-overlay__segmented--centered {
  display: flex;
  justify-content: center;
  width: 100%;
}

.fusion-vp-overlay__segmented-btn {
  flex: 1 1;
  min-width: 40px;
  height: 22px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.fusion-vp-overlay__segmented-btn--active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ── List (Color LUT + Presets) ── */

.fusion-vp-overlay__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.fusion-vp-overlay__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px;
}

.fusion-vp-overlay__list--scrollable {
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.fusion-vp-overlay__list--scrollable::-webkit-scrollbar {
  width: 4px;
}

.fusion-vp-overlay__list--scrollable::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.fusion-vp-overlay__list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  text-align: left;
  padding: 5px 8px;
  font-size: 11px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.fusion-vp-overlay__list-item:hover,
.fusion-vp-overlay__list-item--active {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.fusion-vp-overlay__list-item-label {
  flex: 1 1;
  text-align: left;
}

.fusion-vp-overlay__list-item-value {
  white-space: nowrap;
  font-size: 10px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  opacity: 0.5;
}

.fusion-vp-overlay__list-item-check {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

/* ── W/L controls ── */

.fusion-vp-overlay__wl-control-row {
  display: grid;
  grid-template-columns: 28px 1fr 58px;
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
}

.fusion-vp-overlay__helper {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.3;
}

.fusion-vp-overlay__helper--label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  text-align: right;
}

.fusion-vp-overlay__number {
  width: 56px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 11px;
  text-align: center;
  outline: none;
  padding: 0 4px;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.fusion-vp-overlay__number:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.fusion-vp-overlay__number:focus {
  border-color: rgba(255, 255, 255, 0.28);
}

/* ── Slider base ── */

.fusion-vp-overlay__slider {
  width: 100%;
  margin: 0;
  accent-color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

/* ── Opacity panel ── */

.fusion-vp-overlay__opacity-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.fusion-vp-overlay__opacity-value {
  font-size: 12px;
  font-weight: 700;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.75);
}

.fusion-vp-overlay__opacity-track-wrap {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}

.fusion-vp-overlay__opacity-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  pointer-events: none;
}

.fusion-vp-overlay__opacity-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.7) 100%);
  transition: width 0.05s ease;
}

.fusion-vp-overlay__slider--opacity {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  opacity: 0;
  height: 20px;
  cursor: pointer;
  z-index: 1;
}

/* ── Misc ── */

.fusion-vp-overlay__back-btn,
.fusion-vp-overlay__link-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.fusion-vp-overlay__back-btn:hover,
.fusion-vp-overlay__link-btn:hover {
  color: rgba(255, 255, 255, 0.85);
}

.fusion-vp-overlay__select-wrap {
  position: relative;
}

.fusion-vp-overlay__select {
  width: 100%;
  height: 32px;
  padding: 0 30px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.fusion-vp-overlay__select:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.fusion-vp-overlay__select:focus {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
}

.fusion-vp-overlay__select option {
  background-color: #181818;
  color: #fff;
}

.fusion-vp-overlay__chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.fusion-colorbar {
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  -webkit-user-select: none;
          user-select: none;
}

.fusion-colorbar--interactive {
  pointer-events: auto;
  cursor: pointer;
}

.fusion-colorbar--interactive:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
  border-radius: 4px;
}

.fusion-colorbar__gradient {
  width: 16px;
  height: 200px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  transition:
    width 0.15s ease,
    border-color 0.15s ease;
}

.fusion-colorbar--interactive:hover .fusion-colorbar__gradient {
  width: 20px;
  border-color: rgba(255, 255, 255, 0.45);
}

.fusion-colorbar--draggable .fusion-colorbar__gradient {
  cursor: ns-resize;
}

.fusion-colorbar__label {
  font-size: 9px;
  font-weight: 700;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.85);
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 0 6px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

