/* U111 embed builder + widget (scoped) */
.embed-builder__grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .embed-builder__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.embed-form fieldset {
  border: 1px solid var(--v2-border, #e2e8f0);
  border-radius: 8px;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
}
.embed-radio {
  display: block;
  margin: 0.35rem 0;
}
.embed-area-map,
.embed-map {
  width: 100%;
  min-height: 180px;
  border-radius: 8px;
  overflow: hidden;
}
.embed-preview-wrap iframe.embed-preview {
  width: 100%;
  max-width: 600px;
  min-height: 200px;
  background: #f8fafc;
}
.embed-snippet {
  width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
}
.embed-search-results {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  max-height: 12rem;
  overflow: auto;
}
.embed-search-results button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.4rem 0.6rem;
  border: 0;
  background: #fff;
  cursor: pointer;
}
.embed-size-small .embed-card,
.embed-size-small .embed-map { max-height: 200px; }
.embed-size-medium .embed-map { min-height: 240px; }
.embed-size-large .embed-map { min-height: 380px; }

.embed-root {
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  color: #0f172a;
  background: #fff;
}
.embed-root[data-theme="dark"] {
  color: #e2e8f0;
  background: #0f172a;
}
@media (prefers-color-scheme: dark) {
  .embed-root[data-theme="auto"] {
    color: #e2e8f0;
    background: #0f172a;
  }
}
.embed-widget {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}
.embed-card {
  flex: 1;
  padding: 0.75rem 1rem;
}
.embed-card__title {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}
.embed-card__status {
  margin: 0 0 0.75rem;
  line-height: 1.4;
}
.embed-card__connectors {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  font-size: 0.85rem;
}
.embed-footer {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  border-top: 1px solid #e2e8f0;
}
.embed-root[data-theme="dark"] .embed-footer,
.embed-root[data-theme="auto"] .embed-footer {
  border-color: #334155;
}
.embed-footer a {
  color: #0f766e;
}
.embed-footer__attr {
  margin: 0.25rem 0 0;
  opacity: 0.85;
}
.embed-map {
  flex: 1;
}
.embed-popup {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  max-width: 220px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 12%);
}
