.rebours-visual-editor {
  padding: 2rem;
  background: #0a0a0a;
  color: #ededed;
  min-height: 100%;
  font-family: 'Space Mono', ui-monospace, Menlo, monospace;
}

.rebours-visual-editor__hint {
  max-width: 960px;
  margin: 0 auto 1.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.6);
}

.rebours-visual-editor__stage {
  max-width: 1200px;
  margin: 0 auto;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rebours-visual-editor .product-panel--static {
  position: static;
  width: 100%;
  transform: none;
  background: #111;
  color: #ededed;
  padding: 2rem;
}

.rebours-visual-editor .panel-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1fr;
  gap: 2rem;
  align-items: start;
}

.rebours-visual-editor .panel-img-col img {
  width: 100%;
  height: auto;
  display: block;
  background: #1a1a1a;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.rebours-visual-editor .panel-info-col h2 {
  font-size: 1.75rem;
  line-height: 1.15;
  margin: 0.25rem 0 0.75rem;
  letter-spacing: 0.02em;
}

.rebours-visual-editor .panel-index {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  opacity: 0.6;
  margin: 0;
}

.rebours-visual-editor hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0.75rem 0;
}

.rebours-visual-editor .panel-meta {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
}

.rebours-visual-editor .panel-meta-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.5rem;
}

.rebours-visual-editor .meta-key {
  opacity: 0.5;
  letter-spacing: 0.08em;
}

.rebours-visual-editor .red {
  color: #ff3b2f;
}

.rebours-visual-editor .panel-desc {
  font-size: 0.9rem;
  line-height: 1.55;
}

.rebours-visual-editor .accordion {
  margin-top: 0.5rem;
}

.rebours-visual-editor .accordion summary {
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  opacity: 0.85;
}

.rebours-visual-editor .accordion-body {
  font-size: 0.82rem;
  line-height: 1.55;
  padding: 0.25rem 0 0.75rem;
  white-space: pre-wrap;
}

.rebours-editable {
  outline: none;
  transition: box-shadow 120ms ease, background 120ms ease;
  border-radius: 2px;
  padding: 2px 4px;
  margin: -2px -4px;
  cursor: text;
}

.rebours-editable:hover {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.rebours-editable:focus {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px #ff3b2f;
}

.rebours-editable--empty::before {
  content: attr(data-placeholder);
  opacity: 0.3;
  pointer-events: none;
}

.rebours-editable--empty:focus::before {
  content: none;
}
