/**
 * Vysibell Content-Map Embed UX · 0.110.2
 *
 * Ausschließlich aktiv in /embed/{id}. Die normale Onboarding-Oberfläche unter
 * /o/{id} bleibt unverändert.
 */

/* Mehr nutzbare Höhe für Themencluster: obere Bedienelemente im Embed verdichten. */
body[data-view="vysibell_embed"].content-editor-mode .cm-sidebar {
  gap: 8px;
  padding: 11px 11px 9px;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-site-card {
  padding: 11px;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-site-card > small {
  margin-top: 6px;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-site-stats {
  margin-top: 9px;
  padding-top: 8px;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-site-language-summary {
  margin-top: 8px;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-search {
  height: 34px;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-filter-select-wrap {
  gap: 4px;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-filter-select-wrap > span {
  font-size: 10px !important;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-filter-select {
  min-height: 34px;
  height: 34px;
}

/* Prompt-Sets bleibt vorhanden, beansprucht aber deutlich weniger Sidebar-Höhe. */
body[data-view="vysibell_embed"].content-editor-mode .cm-sidebar-prompt-entry {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  margin: 2px 0 5px;
  padding: 8px 9px;
  border-radius: 12px;
  min-height: 48px;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-sidebar-prompt-icon {
  width: 34px;
  height: 34px;
  padding: 4px;
  border-radius: 10px;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-sidebar-prompt-entry > span:nth-child(2) {
  gap: 1px;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-sidebar-prompt-entry > span:nth-child(2) strong {
  font-size: 11px !important;
  line-height: 1.18;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-sidebar-prompt-entry > span:nth-child(2) small {
  font-size: 9px !important;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-sidebar-prompt-entry > b {
  min-width: 26px;
  width: 26px;
  height: 26px;
  padding: 0;
  font-size: 10px !important;
}

/* Die Clusterliste bekommt im Embed Vorrang vor den Nebenwerkzeugen. */
body[data-view="vysibell_embed"].content-editor-mode .cm-sidebar-two-level {
  flex: 1 1 420px;
  min-height: 280px;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-cluster-overview,
body[data-view="vysibell_embed"].content-editor-mode .cm-cluster-detail-list {
  padding: 7px !important;
  gap: 7px !important;
}

/* Kleine visuelle Rückmeldung: freie Canvas ist mit linker Maustaste verschiebbar. */
body[data-view="vysibell_embed"].content-editor-mode .cm-stage {
  cursor: grab;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-stage.panning,
body[data-view="vysibell_embed"].content-editor-mode .cm-stage.ow-canvas-panning {
  cursor: grabbing;
}

/* Auf Karten bleibt die bestehende Auswahl-/Drag-Semantik sichtbar. */
body[data-view="vysibell_embed"].content-editor-mode .cm-node {
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Vysibell Content-Map Embed UX · 0.110.4
   Kundenorientierte, reduzierte Moduldarstellung. Alle Regeln bleiben strikt
   auf /embed/{id} begrenzt und verändern /o/{id} nicht.
   -------------------------------------------------------------------------- */

/* Der Projektkopf ist im Embed ein Navigations-/Filter-Panel statt eines
   einzigen großen Buttons. */
body[data-view="vysibell_embed"].content-editor-mode .cm-site-card-vysibell {
  padding: 10px;
  cursor: default;
  transform: none !important;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-site-card-vysibell:hover {
  transform: none !important;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-site-card-summary {
  width: 100%;
  min-width: 0;
  padding: 0;
  display: block;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-site-card-summary > small {
  display: block;
  margin-top: 6px;
  color: var(--ow-depth-soft);
  font-size: 10px !important;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-site-card-summary:focus-visible,
body[data-view="vysibell_embed"].content-editor-mode .cm-site-stat:focus-visible,
body[data-view="vysibell_embed"].content-editor-mode .cm-site-language-summary > button:focus-visible,
body[data-view="vysibell_embed"].content-editor-mode .cm-vysibell-prompts-link:focus-visible {
  outline: 2px solid rgba(55, 60, 54, .18);
  outline-offset: 2px;
}

/* KPI-Zeile wird zu vier echten, klickbaren Mini-Ansichten. */
body[data-view="vysibell_embed"].content-editor-mode .cm-site-card-vysibell .cm-site-stats.cm-site-stats-extended {
  margin-top: 9px;
  padding-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  border-top: 1px solid var(--ow-depth-divider);
  border-bottom: 1px solid var(--ow-depth-divider);
}

body[data-view="vysibell_embed"].content-editor-mode .cm-site-stat {
  min-width: 0;
  min-height: 44px;
  padding: 7px 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ow-depth-soft);
  text-align: left;
  cursor: pointer;
  transition: background-color .14s ease, color .14s ease;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-site-stat + .cm-site-stat {
  border-left: 1px solid var(--ow-depth-divider);
  border-radius: 0 8px 8px 0;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-site-stat:hover,
body[data-view="vysibell_embed"].content-editor-mode .cm-site-stat.active {
  background: #f4f5f2;
  color: var(--ow-depth-text);
}

body[data-view="vysibell_embed"].content-editor-mode .cm-site-stat strong {
  color: var(--ow-depth-text);
  font-size: 13px !important;
  line-height: 1.05;
  font-weight: 600;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-site-stat small {
  max-width: 100%;
  color: currentColor;
  font-size: 8.5px !important;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* DE/EN nicht mehr als zwei breite Halbflächen, sondern als kompakte Pills. */
body[data-view="vysibell_embed"].content-editor-mode .cm-site-card-vysibell .cm-site-language-summary {
  margin-top: 8px;
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  border-top: 0;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-site-card-vysibell .cm-site-language-summary > button {
  flex: 0 0 auto;
  width: 108px;
  min-width: 0;
  min-height: 27px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0 !important;
  border-radius: 9px;
  font: inherit;
  font-size: 9.5px !important;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px currentColor;
  transition: background-color .14s ease, box-shadow .14s ease, transform .14s ease;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-site-card-vysibell .cm-site-language-summary > button:hover {
  transform: translateY(-1px);
}

body[data-view="vysibell_embed"].content-editor-mode .cm-site-card-vysibell .cm-site-language-summary > button.active {
  box-shadow: inset 0 0 0 1px currentColor, 0 0 0 3px rgba(31, 34, 29, .055);
}

body[data-view="vysibell_embed"].content-editor-mode .cm-site-card-vysibell .cm-site-language-summary > button b {
  font-size: 9px !important;
  letter-spacing: .02em;
}

/* Search + Filter als kompakte Utility-Leiste statt übergroßer Formfelder. */
body[data-view="vysibell_embed"].content-editor-mode .cm-search {
  height: 34px;
  min-height: 34px;
  border: 0 !important;
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  box-shadow: inset 0 0 0 1px var(--ow-depth-ring);
}

body[data-view="vysibell_embed"].content-editor-mode .cm-search:focus-within {
  box-shadow: inset 0 0 0 1px rgba(31, 34, 29, .18), 0 0 0 3px rgba(31, 34, 29, .035) !important;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-search input {
  font-size: 10.5px !important;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-filter-select-wrap {
  min-height: 34px;
  margin: 0 1px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-filter-select-wrap > span {
  font-size: 8.5px !important;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #8b8e88;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-filter-select {
  width: 100%;
  min-height: 34px;
  height: 34px;
  padding-inline: 10px 28px;
  border: 0 !important;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, .92);
  box-shadow: inset 0 0 0 1px var(--ow-depth-ring);
  font-size: 10.5px !important;
}

/* Prompt-Karte verweist im Vysibell-Embed zurück in den kanonischen
   Vysibell-Promptbereich; keine lokalen 0-Counts und kein Plugin-Popup. */
body[data-view="vysibell_embed"].content-editor-mode .cm-sidebar-prompt-entry.cm-vysibell-prompts-link {
  grid-template-columns: 31px minmax(0, 1fr) 18px;
  gap: 9px;
  min-height: 44px;
  margin: 1px 0 4px;
  padding: 7px 9px;
  border-radius: 11px;
  border: 0 !important;
  background: #fff;
  box-shadow: 0 0 0 1px var(--ow-depth-ring), var(--ow-smooth-shadow-xs);
  transform: none;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-sidebar-prompt-entry.cm-vysibell-prompts-link:hover {
  transform: none;
  background: #fff;
  box-shadow: 0 0 0 1px var(--ow-depth-ring-strong), var(--ow-smooth-shadow-sm);
}

body[data-view="vysibell_embed"].content-editor-mode .cm-vysibell-prompts-link .cm-sidebar-prompt-icon {
  width: 31px;
  height: 31px;
  padding: 3px;
  border-radius: 9px;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-vysibell-prompts-link > span:nth-child(2) strong {
  font-size: 11px !important;
  line-height: 1.15;
  font-weight: 600;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-vysibell-prompts-link > span:nth-child(2) small {
  font-size: 8.8px !important;
  line-height: 1.15;
  color: #858882;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-vysibell-prompts-link-arrow {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #959892;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-vysibell-prompts-link-arrow svg {
  width: 14px;
  height: 14px;
}

/* Der kleine Prompt-Link in der Map-Toolbar zeigt ebenfalls keine lokalen
   Nullwerte mehr. */
body[data-view="vysibell_embed"].content-editor-mode .cm-toolbar-prompts-vysibell > strong {
  display: none !important;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-toolbar-prompts-vysibell > svg {
  width: 13px;
  height: 13px;
  margin-left: 2px;
}

/* Die farbige Linie am oberen Kartenrand war im eingebetteten Layout optisch
   angeschnitten. Der Farbdot links bleibt als eindeutige Clusterkennung. */
body[data-view="vysibell_embed"].content-editor-mode .cm-cluster-overview-card::before {
  display: none !important;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-cluster-overview-card {
  min-height: 74px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* Help-Center-Quelle im Inspector als ruhige Metainformation statt lauter
   blauer Badge. */
body[data-view="vysibell_embed"].content-editor-mode .cm-source-badge.help-center.inspector {
  min-height: 19px;
  margin-left: 5px;
  padding: 0 7px;
  border: 0 !important;
  border-radius: 999px;
  background: #f2f5f6;
  color: #687078;
  box-shadow: inset 0 0 0 1px rgba(61, 70, 76, .10);
  font-size: 8.5px !important;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

/* Nach Entfernen der Agentur-/Review-Aktionen bleibt die Topbar ruhig und
   benötigt keine künstliche Lücke. */
body[data-view="vysibell_embed"].content-editor-mode .cm-topbar-actions {
  gap: 7px;
}

@media (max-width: 560px) {
  body[data-view="vysibell_embed"].content-editor-mode .cm-site-card-vysibell .cm-site-language-summary > button {
    width: 96px;
  }

  body[data-view="vysibell_embed"].content-editor-mode .cm-site-stat small {
    font-size: 8px !important;
  }
}

body[data-view="vysibell_embed"].content-editor-mode .cm-site-card-vysibell .cm-site-language-summary > button.complete {
  color: #3b6f50;
  background: #f3f8f4;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-site-card-vysibell .cm-site-language-summary > button.incomplete {
  color: #a43b3b;
  background: #fff7f7;
}


/* --------------------------------------------------------------------------
   Vysibell Content-Map Embed UX · 0.110.4
   Clusterkarten bleiben neutral: keine farbigen Ober-/Seitenstriche. Punkte,
   Statusbadges und Verbindungen behalten ihre semantische Farbe.
   -------------------------------------------------------------------------- */
body[data-view="vysibell_embed"].content-editor-mode .cm-node-cluster::before,
body[data-view="vysibell_embed"].content-editor-mode .cm-sidebar-active-cluster::before,
body[data-view="vysibell_embed"].content-editor-mode .cm-cluster-overview-card::before {
  display: none !important;
  content: none !important;
}


/* --------------------------------------------------------------------------
   Vysibell Content-Map Embed UX · 0.110.5
   Linke Inhaltsnavigation ohne farbige Seitenstriche. Status und Inhaltstyp
   bleiben über Badge, Icon und Text erhalten; außerhalb des Embeds unverändert.
   -------------------------------------------------------------------------- */
body[data-view="vysibell_embed"].content-editor-mode .cm-sidebar-content-item::before {
  display: none !important;
  content: none !important;
  width: 0 !important;
  background: transparent !important;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-sidebar-content-item {
  border-left: 0 !important;
}


/* --------------------------------------------------------------------------
   Vysibell Content-Map Embed UX · 0.110.6
   Die Zurück-Kachel „Alle Themencluster“ bleibt eine Navigation und soll nicht
   wie eine Inhaltskarte wirken.
   -------------------------------------------------------------------------- */
body[data-view="vysibell_embed"].content-editor-mode .cm-sidebar-back-to-clusters {
  min-height: 26px !important;
  padding: 0 8px !important;
  gap: 4px !important;
  border-radius: 7px !important;
  font-size: 9.5px !important;
  line-height: 1 !important;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-sidebar-back-to-clusters svg {
  width: 11px !important;
  height: 11px !important;
}

body[data-view="vysibell_embed"].content-editor-mode .cm-sidebar-cluster-detail-head {
  gap: 6px !important;
  padding-top: 7px !important;
}
