/* EngineFeed — Editor centralizado premium */

.ax-grid--enginefeed {
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr) minmax(260px, 300px);
}

.preview-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 16px 20px 20px;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 107, 0, 0.06), transparent), #030303;
  min-height: calc(100vh - 120px);
}

.ef-studio-toolbar {
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--ef-glass, rgba(20,20,20,0.72));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: var(--ef-radius, 12px);
  margin-bottom: 12px;
}

.ef-studio-toolbar .ef-zoom input[type="range"] { width: 80px; }

.ef-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.ef-toolbar-divider {
  width: 1px;
  height: 28px;
  background: #333;
  margin: 0 4px;
}

.ef-stage-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 24px;
  position: relative;
}

.ef-stage-wrap.ef-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 8000;
  min-height: 100vh;
  border-radius: 0;
  background: #000;
}

.ef-stage-wrap.ef-show-ruler::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 20px;
  background: repeating-linear-gradient(90deg, #333 0, #333 1px, transparent 1px, transparent 10px);
  opacity: 0.4;
  pointer-events: none;
}

.ef-stage-wrap.ef-show-guides::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 100%;
  background: rgba(59, 130, 246, 0.35);
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 100px 0 0 rgba(59, 130, 246, 0.2), -100px 0 0 rgba(59, 130, 246, 0.2);
}

.ef-stage-wrap.ef-snap-on .ef-stage {
  outline: 1px dashed rgba(255, 107, 0, 0.2);
}

.ef-stage {
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ef-stage iframe {
  display: block;
  margin: 0 auto;
}

.fmt-tabs {
  justify-content: center;
  width: 100%;
}

.ef-sim-label { text-align: center; }

.ef-editor-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.ef-editor-tools .btn {
  min-height: 38px;
  padding: 8px 4px;
  font-size: 0.62rem;
}

.ef-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ef-header-actions .ef-autosave { margin-right: 8px; }

.ax-header {
  background: linear-gradient(180deg, rgba(17,17,17,0.95) 0%, rgba(8,8,8,0.98) 100%);
  backdrop-filter: blur(12px);
}

@media (max-width: 1100px) {
  .preview-wrap { min-height: 50vh; }
  .ef-stage-wrap { min-height: 320px; padding: 12px; }
  .ef-studio-toolbar { justify-content: flex-start; }
  .ef-toolbar-divider { display: none; }
}
