/* Embed helper / configurator — /embed/live/ only */
.embed-config {
  display: grid;
  gap: var(--space-4);
}
.embed-config__grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .embed-config__grid {
    grid-template-columns: minmax(16rem, 20rem) 1fr;
    align-items: start;
  }
}
.embed-config__panel {
  display: grid;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.embed-config__panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.embed-field {
  display: grid;
  gap: 0.35rem;
}
.embed-field label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--muted);
}
.embed-field select,
.embed-field input[type="text"],
.embed-field input[type="number"] {
  min-height: 2.5rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--fg);
}
.embed-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--fg);
}
.embed-check input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
}
.embed-hint {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.45;
}
.embed-preview-wrap {
  display: grid;
  gap: 0.75rem;
}
/* Fixed demo size — configurator width/height do not resize this preview */
.embed-preview-frame {
  width: 100%;
  max-width: 640px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0e08;
  aspect-ratio: 16 / 9;
}
.embed-preview-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.embed-code-block {
  display: grid;
  gap: 0.5rem;
}
.embed-code-block header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.embed-code-block h3 {
  margin: 0;
  font-size: var(--fs-sm);
  font-family: var(--font-display);
}
.embed-code-block textarea,
.embed-code-block input[readonly] {
  width: 100%;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f7f8f5;
  color: var(--fg);
  resize: vertical;
}
.embed-code-block textarea {
  min-height: 7.5rem;
}
.embed-copy-msg {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--primary-deep);
  min-height: 1.1em;
}
html.assistive .embed-config__panel,
html.assistive .embed-preview-frame,
html.assistive .embed-code-block textarea,
html.assistive .embed-code-block input[readonly] {
  border-color: #000;
  background: #fff;
  box-shadow: none;
}
