/* Inline sandboxed-HTML embed (render_html → html_artifact event). */

.embed-iframe-wrap {
  display: flex;
  flex-direction: column;
  background: var(--bg-card, #2c333d);
  border: 1px solid var(--border-soft, #3a3a39);
  border-radius: 12px;
  overflow: hidden;
}

.embed-iframe-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #1c2229;
  border-bottom: 1px solid var(--border-soft, #3a3a39);
  gap: 8px;
}
.embed-iframe-name {
  font: 500 12px/1.2 'Roboto Mono', monospace;
  color: var(--fg-muted, #aab2bc);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.open-large {
  font: 500 12px/1.2 'Work Sans', sans-serif;
  background: transparent;
  border: 1px solid var(--border-soft, #3a3a39);
  color: var(--accent, #d2ff41);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 120ms ease;
  white-space: nowrap;
}
.open-large:hover {
  background: rgba(210, 255, 65, 0.08);
}

.embed-iframe {
  width: 100%;
  border: 0;
  background: #fff;
  min-height: 160px;
}

.msg-embed {
  /* Tighter than a regular assistant prose block — the embed already
     has its own framing. */
  padding: 4px 0;
}

.preview-body {
  padding: 16px;
  overflow: auto;
}
