/* Визуальный редактор градиента hero (вкл.: ?overlay-editor=1) */
.oe-toggle {
  z-index: 10000;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: #090909e6;
  border: 1px solid var(--gold-20);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  transition: background .2s, border-color .2s, transform .2s;
  position: fixed;
  bottom: 24px;
  right: 24px;
}
.oe-toggle:hover { background: var(--gold-10); border-color: var(--gold); transform: translateY(-1px); }

.oe-panel {
  z-index: 10001;
  color: var(--white);
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: #111111f2;
  border: 1px solid var(--white-10);
  border-radius: 12px;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  overflow: auto;
  box-shadow: 0 16px 48px #00000080;
}
.oe-panel.is-open { display: flex; }

.oe-panel__head { justify-content: space-between; align-items: center; display: flex; }
.oe-panel__title { letter-spacing: .06em; text-transform: uppercase; color: var(--gold); font-size: 11px; font-weight: 600; }
.oe-panel__close { color: var(--white-50); padding: 4px; font-size: 18px; line-height: 1; transition: color .2s; }
.oe-panel__close:hover { color: var(--white); }

.oe-preview {
  background-image: url(../images/foto-bg.jpg);
  background-position: 50%;
  background-size: cover;
  border: 1px solid var(--white-10);
  border-radius: 8px;
  height: 88px;
  position: relative;
  overflow: hidden;
}
.oe-preview__overlay { position: absolute; inset: 0; }
.oe-preview__label {
  z-index: 1;
  color: var(--white-80);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 9px;
  position: absolute;
  bottom: 8px;
  left: 10px;
}

.oe-field { flex-direction: column; gap: 6px; display: flex; }
.oe-field__label { color: var(--white-50); letter-spacing: .08em; text-transform: uppercase; font-size: 10px; }

.oe-angle-row { align-items: center; gap: 12px; display: flex; }
.oe-dial {
  cursor: grab;
  background: var(--dark-2);
  border: 1px solid var(--white-10);
  border-radius: 50%;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  position: relative;
}
.oe-dial:active { cursor: grabbing; }
.oe-dial__ring {
  border: 1px dashed var(--white-20);
  border-radius: 50%;
  position: absolute;
  inset: 8px;
}
.oe-dial__needle {
  background: var(--gold);
  transform-origin: 50% 100%;
  border-radius: 2px;
  width: 2px;
  height: 28px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -1px;
  margin-top: -28px;
}
.oe-dial__center {
  background: var(--gold);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.oe-angle-range { accent-color: var(--gold); flex: 1; }
.oe-angle-value { color: var(--gold); min-width: 40px; font-variant-numeric: tabular-nums; text-align: right; }

.oe-track-wrap { position: relative; }
.oe-track {
  cursor: crosshair;
  background: var(--dark-2);
  border: 1px solid var(--white-10);
  border-radius: 6px;
  height: 28px;
  position: relative;
  overflow: hidden;
}
.oe-track__fill { pointer-events: none; height: 100%; position: absolute; inset: 0; }
.oe-handle {
  cursor: grab;
  z-index: 2;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px #0006;
}
.oe-handle.is-active { outline: 2px solid var(--gold); outline-offset: 2px; }
.oe-handle:active { cursor: grabbing; }

.oe-stop-editor {
  background: var(--dark-2);
  border: 1px solid var(--white-10);
  border-radius: 8px;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  display: flex;
}
.oe-stop-editor__title { color: var(--white-80); font-size: 11px; }
.oe-row { align-items: center; gap: 8px; display: flex; }
.oe-row label { color: var(--white-50); flex: 0 0 52px; font-size: 10px; }
.oe-row input[type="color"] {
  cursor: pointer;
  background: 0 0;
  border: 1px solid var(--white-20);
  border-radius: 4px;
  width: 36px;
  height: 28px;
  padding: 2px;
}
.oe-row input[type="range"] { accent-color: var(--gold); flex: 1; }
.oe-row output { color: var(--gold); min-width: 36px; font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; }

.oe-actions { flex-wrap: wrap; gap: 8px; display: flex; }
.oe-btn {
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--white-80);
  border: 1px solid var(--white-20);
  border-radius: 6px;
  flex: 1 1 auto;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  transition: background .2s, border-color .2s, color .2s;
}
.oe-btn:hover { color: var(--white); border-color: var(--white-50); }
.oe-btn--gold { color: var(--black); background: var(--gold); border-color: var(--gold); }
.oe-btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--black); }
.oe-btn--danger:hover { color: #ffb4b4; border-color: #ff6b6b66; }

.oe-toast {
  z-index: 10002;
  color: var(--black);
  letter-spacing: .04em;
  pointer-events: none;
  background: var(--gold);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 500;
  animation: .25s var(--ease-out) oeToastIn;
  position: fixed;
  bottom: 100px;
  right: 24px;
}
@keyframes oeToastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.oe-pin { align-items: center; gap: 8px; color: var(--white-50); display: flex; }
.oe-pin input { accent-color: var(--gold); }
