/* ── Editor Layout ── */
.editor-layout {
  display: grid;
  grid-template-columns: 320px 1fr 280px;
  height: calc(100vh - 64px);
  gap: 0;
}

.editor-sidebar-left {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 20px;
}

.editor-canvas-area {
  background: #090910;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

/* ── Layer handles (Canva-style element selection) ── */
.layer-handle {
  border-radius: 4px;
  cursor: pointer;
  outline: 2px solid transparent;
  transition: outline .12s;
}
.layer-handle:hover { outline: 2px dashed rgba(255,255,255,.35) !important; }
.layer-handle.layer-selected { outline: 2px solid #2C966F !important; box-shadow: 0 0 0 4px rgba(44,150,111,.18); }

.layer-label {
  position: absolute;
  top: -24px; left: 0;
  background: #2C966F;
  color: #fff;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 4px 4px 4px 0;
  white-space: nowrap;
  pointer-events: none;
  z-index: 100;
  display: none;
}
.layer-handle.layer-selected .layer-label { display: block; }

/* ── Layer chips bar (top of right sidebar) ── */
.layer-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.layer-chip {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.1);
  background: transparent;
  color: rgba(242,242,247,.55);
  font-family: var(--font);
  transition: .15s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.layer-chip:hover { border-color: rgba(255,255,255,.25); color: rgba(242,242,247,.9); }
.layer-chip.active { background: rgba(44,150,111,.18); border-color: rgba(44,150,111,.5); color: var(--eko-light); }

/* ── Full-height horizontal slides strip ── */
.slides-strip {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 20px;
  padding: 24px 30px;
  overflow-x: auto;
  overflow-y: hidden;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
.slides-strip::-webkit-scrollbar { height: 6px; }
.slides-strip::-webkit-scrollbar-track { background: transparent; }
.slides-strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

.strip-slide {
  position: relative;
  flex-shrink: 0;
  height: 100%;
  width: auto;
  aspect-ratio: 4/5;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.08);
  cursor: pointer;
  transition: border-color .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 6px 40px rgba(0,0,0,.65);
  background: #0d0d14;
  container-type: inline-size;
}
.strip-slide:not(.active):hover { transform: translateY(-5px); border-color: rgba(255,255,255,.22); }
.strip-slide.active {
  border-color: var(--eko);
  box-shadow: 0 0 0 3px rgba(44,150,111,.3), 0 10px 48px rgba(0,0,0,.7);
  cursor: default;
}

.strip-num {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,.72); color: #fff;
  font-size: .62rem; font-weight: 700;
  padding: 2px 7px; border-radius: 5px; z-index: 2;
}
.strip-del {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,.72); border: none; color: #fff;
  width: 22px; height: 22px; border-radius: 4px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: .72rem; opacity: 0; transition: opacity .15s, background .15s; z-index: 2;
}
.strip-slide:hover .strip-del { opacity: 1; }
.strip-del:hover { background: var(--danger) !important; }

.strip-preview {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; color: var(--muted); text-align: center;
  padding: 16px; word-break: break-word; line-height: 1.4;
}
.strip-preview img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.strip-preview-text {
  position: relative; z-index: 1;
  font-weight: 700; font-size: .8rem; color: #fff;
  text-align: center; line-height: 1.35;
  padding: 0 8px;
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
}

.strip-text-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.5) 50%, rgba(0,0,0,.15) 100%);
}
.strip-type-badge {
  align-self: flex-start;
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2C966F;
  background: rgba(44,150,111,.18);
  border: 1px solid rgba(44,150,111,.35);
  border-radius: 4px;
  padding: 2px 6px;
}
.strip-type-badge.cta {
  color: #f59e0b;
  background: rgba(245,158,11,.15);
  border-color: rgba(245,158,11,.3);
}
.strip-text-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.strip-headline {
  font-size: .75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0,0,0,1);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  letter-spacing: -.01em;
}
.strip-subline {
  font-size: .6rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0,0,0,1);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.strip-body {
  font-size: .53rem;
  font-weight: 300;
  color: rgba(255,255,255,.65);
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0,0,0,1);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.strip-add {
  flex-shrink: 0;
  height: 100%;
  width: auto;
  aspect-ratio: 4/5;
  border: 2px dashed var(--border2);
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; color: var(--muted);
  font-size: .8rem; font-family: var(--font);
  transition: border-color .2s, color .2s;
}
.strip-add:hover { border-color: var(--eko); color: var(--eko-light); }

.editor-sidebar-right {
  background: var(--bg2);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  padding: 20px;
}

/* ── Top Bar ── */
.editor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  height: 64px;
  gap: 16px;
}

.editor-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.editor-back {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text2);
  font-size: .85rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  transition: var(--transition);
}
.editor-back:hover { color: var(--eko-light); }

.editor-project-name {
  font-size: 1rem;
  font-weight: 500;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.editor-project-name:focus { background: var(--surface); }

.editor-topbar-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Slide Thumbnails ── */
.slides-panel h3 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.slides-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slide-thumb {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
}
.slide-thumb:hover { border-color: var(--border2); }
.slide-thumb.active { border-color: var(--eko); box-shadow: 0 0 0 2px var(--eko-glow); }

.slide-thumb canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-thumb-num {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: .65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.slide-thumb-actions {
  position: absolute;
  bottom: 4px;
  right: 4px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: var(--transition);
}
.slide-thumb:hover .slide-thumb-actions { opacity: 1; }

.slide-thumb-btn {
  background: rgba(0,0,0,.7);
  border: none;
  color: #fff;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  font-size: .7rem;
}
.slide-thumb-btn:hover { background: var(--danger); }

.add-slide-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: var(--surface);
  border: 2px dashed var(--border2);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-family: var(--font);
  font-size: .8rem;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}
.add-slide-btn:hover { border-color: var(--eko); color: var(--eko-light); background: rgba(44,150,111,.05); }

/* ── Canvas Preview ── */
.canvas-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

.canvas-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.slide-counter {
  text-align: center;
  margin-top: 16px;
  color: var(--muted);
  font-size: .8rem;
}

.slide-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.slide-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}
.slide-nav-btn:hover { background: var(--surface2); border-color: var(--eko); }
.slide-nav-btn:disabled { opacity: .3; cursor: not-allowed; }

/* ── Properties Panel ── */
.prop-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.prop-section:last-child { border-bottom: none; }

.prop-title {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.prop-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.prop-label {
  font-size: .8rem;
  color: var(--text2);
  min-width: 70px;
  flex-shrink: 0;
}

.prop-input {
  flex: 1;
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: .82rem;
  outline: none;
  transition: var(--transition);
}
.prop-input:focus { border-color: var(--eko); }

.prop-color {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid var(--border2);
  cursor: pointer;
  padding: 0;
  background: none;
}
.prop-color::-webkit-color-swatch-wrapper { padding: 0; }
.prop-color::-webkit-color-swatch { border: none; border-radius: 4px; }

.prop-range {
  -webkit-appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--surface2);
  outline: none;
}
.prop-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--eko);
  cursor: pointer;
  border: 2px solid var(--bg);
}

/* ── AI Generate Panel ── */
.ai-panel {
  background: linear-gradient(135deg, rgba(44,150,111,.08), rgba(44,150,111,.03));
  border: 1px solid rgba(44,150,111,.2);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.ai-panel h3 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--eko-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-prompt {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid rgba(44,150,111,.2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: .85rem;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: var(--transition);
}
.ai-prompt:focus { border-color: var(--eko); }
.ai-prompt::placeholder { color: var(--muted); }

.ai-options {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.ai-generate-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--eko), var(--eko-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ai-generate-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--eko-glow); }
.ai-generate-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ══════════════════════════════════════
   ACCORDION PANEL SYSTEM (right sidebar)
══════════════════════════════════════ */
.ep-panel {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 6px;
}
.ep-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.ep-panel-header:hover { background: rgba(255,255,255,.03); }
.ep-panel-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ep-panel-title { flex: 1; font-size: .84rem; font-weight: 500; color: var(--text); }
.ep-panel-chevron { transition: transform .22s; color: var(--muted); flex-shrink: 0; }
.ep-panel.open .ep-panel-chevron { transform: rotate(180deg); }
.ep-panel-body { max-height: 0; overflow: hidden; transition: max-height .28s cubic-bezier(.4,0,.2,1); }
.ep-panel.open .ep-panel-body { max-height: 3000px; }
.ep-panel-inner { padding: 2px 14px 14px; }

/* Label inside panels */
.ep-label {
  font-size: .65rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(242,242,247,.32);
  margin: 10px 0 6px; display: block;
}

/* Style toggle (Minimalista / Profile) */
.style-toggle { display: flex; gap: 5px; margin-bottom: 6px; }
.style-toggle-btn {
  flex: 1; padding: 8px 4px;
  border-radius: 8px; border: 1px solid rgba(255,255,255,.1);
  background: transparent; color: var(--muted);
  font-family: var(--font); font-size: .78rem; cursor: pointer; transition: .15s;
}
.style-toggle-btn.active {
  border-color: var(--eko); background: rgba(44,150,111,.12);
  color: var(--eko-light); font-weight: 500;
}

/* Toggle switch */
.ep-toggle { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ep-toggle-label { font-size: .82rem; color: var(--text2); }
.ep-switch { position: relative; width: 38px; height: 22px; flex-shrink: 0; }
.ep-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.ep-switch-track {
  position: absolute; inset: 0; background: rgba(255,255,255,.12);
  border-radius: 11px; cursor: pointer; transition: .2s;
}
.ep-switch-track::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s;
}
.ep-switch input:checked + .ep-switch-track { background: var(--eko); }
.ep-switch input:checked + .ep-switch-track::before { transform: translateX(16px); }

/* Color row */
.color-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; background: var(--bg);
  border-radius: 8px; margin-bottom: 5px;
}
.color-swatch {
  width: 34px; height: 34px; border-radius: 7px;
  border: 2px solid rgba(255,255,255,.12); cursor: pointer;
  flex-shrink: 0; overflow: hidden; position: relative;
}
.color-swatch input[type=color] {
  position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px);
  border: none; cursor: pointer; padding: 0; background: none;
}
.color-row-label { font-size: .82rem; color: var(--text2); flex: 1; }
.color-row-hex { font-size: .75rem; color: var(--muted); font-family: monospace; }

/* Slider row */
.ep-slider-row { margin-bottom: 10px; }
.ep-slider-header { display: flex; justify-content: space-between; margin-bottom: 5px; }
.ep-slider-label { font-size: .73rem; color: var(--muted); }
.ep-slider-val { font-size: .73rem; color: var(--eko-light); font-weight: 600; }
.ep-range {
  width: 100%; -webkit-appearance: none;
  height: 4px; border-radius: 2px;
  background: var(--surface2); outline: none; cursor: pointer;
}
.ep-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px;
  border-radius: 50%; background: var(--eko);
  cursor: pointer; border: 2px solid var(--bg);
  box-shadow: 0 0 6px var(--eko-glow-sm);
}

/* 9-cell position grid */
.pos-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin-bottom: 10px; }
.pos-cell {
  aspect-ratio: 1; border-radius: 7px; border: 1px solid rgba(255,255,255,.09);
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: .15s; flex-direction: column; gap: 2px;
}
.pos-cell:hover { border-color: rgba(44,150,111,.4); }
.pos-cell.active { border-color: var(--eko); background: rgba(44,150,111,.15); }
.pos-cell svg { opacity: .5; }
.pos-cell.active svg { opacity: 1; color: var(--eko-light); }
.pos-cell-label { font-size: .55rem; color: var(--muted); }
.pos-cell.active .pos-cell-label { color: var(--eko-light); }

/* Background pattern buttons */
.pattern-list { display: flex; flex-direction: column; gap: 4px; }
.pattern-btn {
  padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.07);
  background: transparent; color: var(--text2); font-family: var(--font);
  font-size: .8rem; text-align: left; cursor: pointer; transition: .15s; width: 100%;
}
.pattern-btn:hover { background: rgba(255,255,255,.04); }
.pattern-btn.active { border-color: var(--eko); background: rgba(44,150,111,.1); color: var(--eko-light); font-weight: 500; }

/* Drop zone */
.ep-drop-zone {
  border: 2px dashed rgba(255,255,255,.12); border-radius: 10px;
  padding: 14px 12px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s; background: rgba(255,255,255,.02); margin-bottom: 8px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.ep-drop-zone:hover { border-color: var(--eko); background: rgba(44,150,111,.04); }
.ep-drop-zone p { font-size: .71rem; color: var(--muted); line-height: 1.4; margin: 0; }
.ep-drop-zone strong { font-size: .75rem; color: var(--text2); display: block; }
.ep-drop-zone svg { color: var(--muted); opacity: .6; }

/* Image quick-action row (Upload + Paste side by side) */
.ep-img-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px;
}
.ep-img-row-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 8px; border-radius: 8px; font-size: .74rem; font-weight: 500;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  color: var(--text2); cursor: pointer; transition: .15s; font-family: var(--font);
}
.ep-img-row-btn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: var(--text); }

/* ── Referência de Imagem ── */
.ep-ref-wrap {
  margin-bottom: 10px; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.ep-ref-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; cursor: pointer;
  background: rgba(255,255,255,.03); transition: background .15s;
  font-size: .78rem; font-weight: 500; color: var(--text2); border: none; width: 100%;
  font-family: var(--font); text-align: left;
}
.ep-ref-toggle:hover { background: rgba(255,255,255,.07); }
.ep-ref-toggle.has-ref { color: var(--eko-light); }
.ep-ref-chevron { margin-left: auto; transition: transform .2s; flex-shrink: 0; }
.ep-ref-wrap.open .ep-ref-chevron { transform: rotate(180deg); }
.ep-ref-badge {
  background: var(--eko); color: #fff; border-radius: 10px;
  font-size: .58rem; padding: 1px 6px; font-weight: 700; line-height: 1.4;
}
.ep-ref-body {
  max-height: 0; overflow: hidden; transition: max-height .28s cubic-bezier(.4,0,.2,1);
}
.ep-ref-wrap.open .ep-ref-body { max-height: 500px; }
.ep-ref-inner { padding: 10px 12px 12px; border-top: 1px solid rgba(255,255,255,.06); }
.ep-ref-hint {
  font-size: .71rem; color: var(--muted); line-height: 1.5; margin-bottom: 8px;
}
.ep-ref-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px;
}
.ep-ref-action-btn {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 7px 6px; border-radius: 8px; font-size: .73rem; font-weight: 500;
  background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.15);
  color: var(--text2); cursor: pointer; transition: .15s; font-family: var(--font);
  text-align: center;
}
.ep-ref-action-btn:hover { border-color: var(--eko); color: var(--eko-light); background: rgba(44,150,111,.07); }
.ep-ref-preview-wrap {
  position: relative; margin-bottom: 8px; border-radius: 8px; overflow: hidden;
}
.ep-ref-preview-img {
  width: 100%; height: 76px; object-fit: cover; display: block;
  border-radius: 8px; border: 1px solid rgba(255,255,255,.1);
}
.ep-ref-preview-rm {
  position: absolute; top: 5px; right: 5px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.75); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: .75rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  transition: background .15s;
}
.ep-ref-preview-rm:hover { background: #ef4444; border-color: #ef4444; }
.ep-ref-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 6px; }
.ep-ref-mode-btn {
  padding: 6px 4px; background: transparent; border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px; color: var(--muted); font-size: .71rem; cursor: pointer;
  transition: .15s; font-family: var(--font); font-weight: 500; text-align: center;
}
.ep-ref-mode-btn.active { background: rgba(44,150,111,.1); border-color: var(--eko); color: var(--eko-light); }
.ep-ref-mode-hint {
  font-size: .67rem; color: var(--muted); line-height: 1.4;
  font-style: italic; padding: 4px 6px;
  background: rgba(255,255,255,.03); border-radius: 6px;
}

/* Corner grid */
.corner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.corner-item { background: var(--bg); border-radius: 8px; padding: 7px 9px; }
.corner-item-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.corner-item-label { font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.corner-item input[type=text] {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: 5px; color: var(--text2); font-size: .75rem;
  padding: 4px 8px; font-family: var(--font); outline: none;
}
.corner-item input[type=text]:disabled { opacity: .3; }
.corner-item input[type=text]:focus { border-color: var(--eko); }

/* Icon picker */
.icon-picker { display: flex; flex-wrap: wrap; gap: 4px; }
.icon-pick-btn {
  width: 34px; height: 34px; border-radius: 7px;
  border: 1px solid rgba(255,255,255,.1); background: var(--bg);
  color: var(--muted); display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: .15s; font-size: .8rem;
}
.icon-pick-btn:hover { border-color: rgba(44,150,111,.4); }
.icon-pick-btn.active { border-color: var(--eko); background: rgba(44,150,111,.15); color: var(--eko-light); }

/* Overlay style select */
.ep-select {
  width: 100%; padding: 8px 12px; background: var(--bg);
  border: 1px solid rgba(255,255,255,.1); border-radius: 8px;
  color: var(--text2); font-family: var(--font); font-size: .82rem;
  outline: none; cursor: pointer;
}
.ep-select:focus { border-color: var(--eko); }

/* Identity visual preview */
.identity-preview {
  border-radius: 10px; padding: 20px 16px; margin-top: 10px;
  border: 1px solid rgba(255,255,255,.07);
}

/* Apply-all button */
.btn-apply-all {
  width: 100%; padding: 12px; border-radius: 10px; border: none;
  background: linear-gradient(135deg, #e8284e, #c0195f);
  color: #fff; font-family: var(--font); font-size: .88rem;
  font-weight: 600; cursor: pointer; transition: var(--transition);
  margin-top: 10px;
}
.btn-apply-all:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,40,78,.35); }

/* ── Export Panel ── */
.export-options { display: flex; flex-direction: column; gap: 8px; }

.export-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.export-option:hover { border-color: var(--eko); background: rgba(44,150,111,.05); }

.export-option-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44,150,111,.1);
  border-radius: var(--radius-sm);
  color: var(--eko-light);
}

.export-option-info h4 { font-size: .85rem; font-weight: 500; }
.export-option-info p { font-size: .72rem; color: var(--muted); margin-top: 2px; }

/* ── Responsive Editor ── */
@media (max-width: 1100px) {
  .editor-layout { grid-template-columns: 1fr; }
  .editor-sidebar-left, .editor-sidebar-right { display: none; }
  .editor-sidebar-left.open, .editor-sidebar-right.open {
    display: block;
    position: fixed;
    top: 64px;
    bottom: 0;
    width: 300px;
    z-index: 90;
  }
  .editor-sidebar-left.open { left: 0; }
  .editor-sidebar-right.open { right: 0; }
}
