* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1f2933;
  background: #f4f5f7;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: #1f2933;
  color: #fff;
}

.topbar h1 {
  font-size: 1.1rem;
  margin: 0;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.estado {
  font-size: 0.8rem;
  color: #9aa5b1;
}

button {
  font: inherit;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  background: #3b82f6;
  color: #fff;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: #2563eb;
}

button:disabled {
  background: #52606d;
  cursor: not-allowed;
  opacity: 0.6;
}

main {
  padding: 1.5rem;
}

.panel-cerrado p {
  max-width: 720px;
  line-height: 1.6;
  color: #52606d;
}

.preview-frame {
  border: 1px solid #d9dfe4;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  max-width: 720px;
}

#frame-preview {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
}

.panel-editor {
  height: 78vh;
}

#contenedor-editor {
  height: 100%;
}

.oculto {
  display: none;
}

footer {
  padding: 0 1.5rem 2rem;
}

footer summary {
  cursor: pointer;
  color: #52606d;
  font-size: 0.85rem;
}

footer pre {
  max-height: 260px;
  overflow: auto;
  background: #1f2933;
  color: #e4e7eb;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
}
