/* ActSmall · apex /embed/ builder — layout for the snippet builder + preview.
 * Scoped to .eb-* so it never collides with the shared chrome. */

.eb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}
@media (max-width: 720px) {
  .eb-grid { grid-template-columns: 1fr; }
}

.eb-form { display: flex; flex-direction: column; gap: 1.1rem; margin: 0; }
.eb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .eb-row { grid-template-columns: 1fr; } }

.eb-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.eb-label { font-weight: 700; font-size: 0.95rem; }
.eb-req { color: #b3401f; }
.eb-field select,
.eb-field input[type="text"] {
  font: inherit;
  padding: 0.5rem 0.6rem;
  border: 1px solid #c9c3b0;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  max-width: 100%;
}
.eb-hint { font-size: 0.8rem; color: #6a6a5c; line-height: 1.35; }
.eb-hint-warn { color: #b3401f; font-weight: 600; }

.eb-pin { gap: 0.5rem; }
.eb-radio {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.4;
}
.eb-radio input { margin-top: 0.2rem; }

.eb-preview-wrap {
  position: sticky;
  top: 1rem;
  border: 1px dashed #c9c3b0;
  border-radius: 10px;
  padding: 1rem;
  background: #faf8f1;
}
.eb-preview-label { margin: 0 0 0.75rem; }
.eb-preview { min-height: 80px; }

.eb-output { display: block; }
.eb-output-label { margin: 0 0 0.5rem; }
.eb-code-box { margin: 0 0 0.6rem; }
.eb-code {
  width: 100%;
  box-sizing: border-box;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  padding: 0.75rem;
  border: 1px solid #c9c3b0;
  border-radius: 8px;
  background: #15140f;
  color: #ece7d6;
  resize: vertical;
}
.eb-output-actions { display: flex; gap: 0.75rem; align-items: center; }
.eb-copy-status { font-size: 0.85rem; color: #3a7d44; }
