.embed-builder-hero {
  margin-bottom: 1.5rem;
}

.embed-builder-hero .badge {
  display: inline-block;
  background: #eef3ff;
  color: #0b57d0;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.embed-builder-layout {
  border: 1px solid #d7dbe7;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 45, 96, 0.06);
}

.embed-builder-form {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
}

.embed-builder-form .card {
  border: 1px solid #d7dbe7;
  border-radius: 8px;
  padding: 1.25rem;
  background: #fff;
}

.embed-builder-form .row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}

.embed-builder-form label.inline {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-weight: 600;
  color: #1f2937;
}

.embed-builder-form label.inline input,
.embed-builder-form label.inline select,
.embed-builder-form label.inline textarea {
  border: 1px solid #c4cadb;
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  font: inherit;
  color: #1f2937;
  min-width: 0;
}

.embed-builder-form label.inline input:focus,
.embed-builder-form label.inline select:focus,
.embed-builder-form label.inline textarea:focus {
  outline: 3px solid rgba(11, 87, 208, 0.22);
  border-color: #0b57d0;
}

.embed-builder-form .inline.grow {
  flex: 1 1 420px;
}

.embed-builder-form .inline.full {
  flex: 1 1 100%;
}

.embed-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.embed-builder-actions button {
  padding: 0.55rem 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #c4cadb;
  background: #f8f9fd;
  color: #1f2937;
  cursor: pointer;
}

.embed-builder-actions button.primary {
  background: #0b57d0;
  border-color: #0b57d0;
  color: #fff;
}

.embed-builder-actions button:focus-visible {
  outline: 3px solid rgba(11, 87, 208, 0.22);
  outline-offset: 1px;
}

.embed-builder-actions button.small {
  font-size: 0.9rem;
  padding: 0.3rem 0.6rem;
}

.embed-builder-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.embed-builder-table th,
.embed-builder-table td {
  border-bottom: 1px dashed #d7dbe7;
  padding: 0.45rem 0.35rem;
  text-align: left;
  vertical-align: middle;
}

.embed-builder-table th {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4b5565;
}

.embed-builder-table td:last-child {
  width: 3rem;
  text-align: right;
}

.embed-builder-table input,
.embed-builder-table select {
  width: 100%;
  font: inherit;
  border: 1px solid #c4cadb;
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  box-sizing: border-box;
}

.embed-builder-table button.remove {
  border: none;
  background: transparent;
  color: #a30d2d;
  font-weight: 700;
  cursor: pointer;
}

.embed-builder-table button.remove:focus-visible {
  outline: 3px solid rgba(163, 13, 45, 0.3);
  border-radius: 999px;
}

.embed-builder-preview {
  border: 1px dashed #d4d9e7;
  border-radius: 8px;
  background: #f4f6fc;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.embed-builder-output textarea {
  width: 100%;
  min-height: 82px;
  font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  border-radius: 6px;
  border: 1px solid #c4cadb;
  padding: 0.75rem 0.8rem;
  box-sizing: border-box;
  margin-bottom: 0.75rem;
}

.embed-builder-output .label {
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #1f2937;
}

.embed-builder-output ol {
  margin-left: 1.25rem;
}

.embed-builder-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.embed-builder-badges .pill {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: #eef3ff;
  color: #0b57d0;
}

.embed-builder-error {
  color: #a30d2d;
  font-weight: 600;
  margin-top: 0.75rem;
}

.embed-builder-status {
  color: #0b8043;
  font-weight: 600;
  margin-top: 0.5rem;
}

@media (max-width: 1024px) {
  .embed-builder-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .embed-builder-layout {
    padding: 1.1rem;
  }

  .embed-builder-form label.inline {
    font-size: 0.95rem;
  }
}

