/**
 * OW Onboarding Tool v0.84.0
 * Bilingual DE/EN coverage, responsive map nodes and marquee multi-selection.
 */

/* --------------------------------------------------------------------------
   Clean root node: typography and system icon instead of a centered logo
   -------------------------------------------------------------------------- */
.cm-root-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.cm-root-heading > span:last-child {
  min-width: 0;
}

.cm-root-symbol,
.cmp-root-symbol {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.cm-root-symbol svg,
.cmp-root-symbol svg {
  width: 17px;
  height: 17px;
}

.cmp-root-symbol {
  margin-bottom: 6px;
}

.cm-root-locales {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.cm-root-locales > span {
  min-height: 20px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.cm-root-locales > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.cm-root-locales > span.linked i { color: #8be0a5; }
.cm-root-locales > span.missing i { color: #ff9d9d; }

.cm-root-locales > small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
}

/* --------------------------------------------------------------------------
   DE / EN language status
   -------------------------------------------------------------------------- */
.cm-locale-badges,
.cmp-locale-badges,
.owr-locale-badges,
.cm-language-summary-badges {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.cm-locale-badge,
.cmp-locale-badge,
.owr-locale-badge,
.cm-language-summary-badges > span {
  min-width: 32px;
  min-height: 19px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 8px !important;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.045em;
  white-space: nowrap;
  box-sizing: border-box;
}

.cm-locale-badge i,
.cmp-locale-badge i,
.owr-locale-badge i,
.cm-language-summary-badges i {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
}

.cm-locale-badge.linked,
.cmp-locale-badge.linked,
.owr-locale-badge.linked,
.cm-language-summary-badges > span.linked {
  color: #17683a;
  border-color: #a8d8b8;
  background: #edf8f1;
}

.cm-locale-badge.missing,
.cmp-locale-badge.missing,
.owr-locale-badge.missing,
.cm-language-summary-badges > span.missing {
  color: #a52f2f;
  border-color: #efb6b6;
  background: #fff0f0;
}

/* Floating status at the top edge keeps the node content uncluttered. */
.cm-node-page > .cm-locale-badges.map,
.cm-node-opportunity > .cm-locale-badges.map,
.cmp-node-page .cmp-node-locale-row .cmp-locale-badges.map {
  position: relative;
}

.cm-node-page > .cm-locale-badges.map,
.cm-node-opportunity > .cm-locale-badges.map {
  position: absolute;
  z-index: 4;
  top: -10px;
  left: 12px;
}

.cmp-node-locale-row {
  margin-top: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.cmp-node-locale-row small {
  min-width: 0;
  color: var(--cm-soft);
  font-size: 8px !important;
  overflow-wrap: anywhere;
}

/* Existing pages are green only when both locale links are present. */
.cm-node-page.locale-complete,
.cmp-node-page.locale-complete {
  border-color: #78bd8d;
  background: linear-gradient(180deg, #ffffff 0%, #f5fbf7 100%);
  box-shadow: inset 3px 0 0 #47a568, 0 2px 5px rgba(41, 41, 41, 0.04), 0 12px 30px rgba(41, 41, 41, 0.055);
}

.cm-node-page.locale-incomplete,
.cmp-node-page.locale-incomplete {
  border-color: #df8d8d;
  background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
  box-shadow: inset 3px 0 0 #cf5757, 0 2px 5px rgba(41, 41, 41, 0.04), 0 12px 30px rgba(41, 41, 41, 0.055);
}

.cm-node-page.locale-complete:hover,
.cmp-node-page.locale-complete:hover {
  border-color: #4da96b;
}

.cm-node-page.locale-incomplete:hover,
.cmp-node-page.locale-incomplete:hover {
  border-color: #c74f4f;
}

.cm-node-page.locale-complete.selected,
.cmp-node-page.locale-complete.selected,
.cm-node-page.locale-incomplete.selected,
.cmp-node-page.locale-incomplete.selected {
  border-color: #292929;
  box-shadow: 0 0 0 3px rgba(41, 41, 41, 0.12), 0 18px 44px rgba(41, 41, 41, 0.12);
}

/* Sidebar status follows the same complete/incomplete rule. */
body.content-editor-mode .cm-sidebar-content-item.existing.locale-complete {
  border-color: rgba(71, 165, 104, 0.34);
  background: rgba(241, 250, 244, 0.78);
}

body.content-editor-mode .cm-sidebar-content-item.existing.locale-incomplete {
  border-color: rgba(207, 87, 87, 0.34);
  background: rgba(255, 244, 244, 0.78);
}

body.content-editor-mode .cm-sidebar-content-item.existing.locale-complete.active,
body.content-editor-mode .cm-sidebar-content-item.existing.locale-incomplete.active {
  color: #292929;
  border-color: #292929;
  background: #fff;
}

.cm-sidebar-content-copy .cm-locale-badges.sidebar {
  margin-top: 5px;
}

.cm-site-language-summary {
  margin-top: 10px;
  padding-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  border-top: 1px solid rgba(211, 211, 205, 0.7);
}

.cm-site-language-summary > span {
  min-width: 0;
  min-height: 28px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 600;
}

.cm-site-language-summary > span b {
  font-size: 9px;
  letter-spacing: 0.04em;
}

.cm-site-language-summary > span.complete {
  color: #17683a;
  border-color: #b8dfc4;
  background: #f1faf4;
}

.cm-site-language-summary > span.incomplete {
  color: #9e3131;
  border-color: #efc1c1;
  background: #fff5f5;
}

/* Inspector language editor */
.cm-language-overview,
.cm-locale-editor {
  min-width: 0;
}

.cm-form-section-title,
.cm-locale-editor-head,
.cmp-locale-links-head,
.owr-locale-links > div:first-child {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.cm-form-section-title > div,
.cm-locale-editor-head > div {
  min-width: 0;
  flex: 1 1 180px;
}

.cm-form-section-title h3,
.cm-form-section-title p,
.cm-locale-editor-head span,
.cm-locale-editor-head strong {
  overflow-wrap: anywhere;
}

.cm-language-overview-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cm-language-overview-grid > span {
  min-width: 0;
  padding: 10px;
  display: grid;
  gap: 3px;
  border: 1px solid #e0e0db;
  border-radius: 10px;
  color: var(--cm-muted);
  background: #fafaf8;
  font-size: 10px;
}

.cm-language-overview-grid b {
  color: var(--cm-text);
  font-size: 14px;
}

.cm-locale-editor {
  margin-bottom: 14px;
  padding: 13px;
  border: 1px solid #deded8;
  border-radius: 13px;
  background: #fafaf8;
}

.cm-locale-editor.complete {
  border-color: #b9ddc4;
  background: #f5fbf7;
}

.cm-locale-editor.incomplete {
  border-color: #edbcbc;
  background: #fff7f7;
}

.cm-locale-editor-head {
  margin-bottom: 10px;
}

.cm-locale-editor-head span,
.cm-locale-editor-head strong {
  display: block;
}

.cm-locale-editor-head span {
  color: var(--cm-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cm-locale-editor-head strong {
  margin-top: 3px;
  color: var(--cm-text);
  font-size: 13px;
}

.cm-locale-editor-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.cm-language-url-field {
  min-width: 0;
  margin: 0 !important;
  padding: 10px;
  border: 1px solid #deded8;
  border-radius: 10px;
  background: #fff;
}

.cm-language-url-field > span {
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.cm-language-url-field > span b {
  min-width: 27px;
  padding: 3px 5px;
  border-radius: 999px;
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.04em;
}

.cm-language-url-field > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.cm-language-url-field.linked > span { color: #17683a; }
.cm-language-url-field.linked > span b { background: #edf8f1; }
.cm-language-url-field.missing > span { color: #a52f2f; }
.cm-language-url-field.missing > span b { background: #fff0f0; }

.cm-language-url-field input {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.cm-locale-open-links,
.cmp-locale-links,
.owr-locale-links {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.cm-locale-open-link,
.cmp-url,
.owr-locale-url,
.owr-page-url {
  min-width: 0;
  min-height: 40px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #deded8;
  border-radius: 10px;
  color: var(--cm-text);
  background: #fff;
  text-decoration: none;
  box-sizing: border-box;
}

.cm-locale-open-link b,
.cmp-url b,
.owr-locale-url b,
.owr-page-url b {
  min-width: 28px;
  padding: 4px 6px;
  border-radius: 999px;
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.04em;
}

.cm-locale-open-link span,
.cmp-url span,
.owr-locale-url span,
.owr-page-url span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cm-locale-open-link.present,
.cmp-url.linked,
.owr-locale-url.linked,
.owr-page-url.linked {
  border-color: #b7ddc3;
  background: #f5fbf7;
}

.cm-locale-open-link.present b,
.cmp-url.linked b,
.owr-locale-url.linked b,
.owr-page-url.linked b {
  color: #17683a;
  background: #e5f5ea;
}

.cm-locale-open-link.missing,
.cmp-url.missing,
.owr-locale-url.missing,
.owr-page-url.missing {
  color: #8f3939;
  border-color: #edbcbc;
  background: #fff7f7;
}

.cm-locale-open-link.missing b,
.cmp-url.missing b,
.owr-locale-url.missing b,
.owr-page-url.missing b {
  color: #a52f2f;
  background: #ffe8e8;
}

.cm-locale-open-link svg,
.cmp-url svg,
.owr-locale-url svg,
.owr-page-url svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Responsive node content and icons
   -------------------------------------------------------------------------- */
.cm-node,
.cmp-node,
.owr-node,
.cm-sidebar-content-item,
.owr-sidebar-item {
  box-sizing: border-box;
}

.cm-node > *,
.cmp-node > *,
.owr-node > *,
.cm-node-top > *,
.cmp-node-top > *,
.cm-sidebar-content-copy,
.owr-item-copy {
  min-width: 0;
  max-width: 100%;
}

.cm-node svg,
.cmp-node svg,
.owr-node svg,
.cm-sidebar-content-item svg,
.owr-sidebar-item svg {
  flex: 0 0 auto;
}

.cm-node-top,
.cmp-node-top {
  align-items: center;
  gap: 5px;
}

.cm-node-state,
.cmp-node-state,
.cm-node-role,
.cmp-node-role,
.cm-node-action {
  min-width: 0;
  max-width: 100%;
  min-height: 20px;
  padding: 3px 7px;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

.cm-node h2,
.cm-node h3,
.cm-node p,
.cm-node footer,
.cmp-node h2,
.cmp-node h3,
.cmp-node p,
.cmp-node footer,
.owr-node strong,
.owr-node small {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.cm-node footer,
.cmp-node footer {
  row-gap: 4px;
}

.cm-sidebar-content-copy strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.cm-sidebar-content-copy small {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Marquee selection: drag an empty area to select multiple pages
   -------------------------------------------------------------------------- */
.cm-stage {
  cursor: crosshair;
}

.cm-stage.space-pan-ready {
  cursor: grab;
}

.cm-stage.panning {
  cursor: grabbing;
}

.cm-stage.marquee-selecting {
  cursor: crosshair;
}

.cm-selection-marquee {
  position: absolute;
  z-index: 70;
  pointer-events: none;
  border: 1.5px solid #292929;
  border-radius: 8px;
  background: rgba(41, 41, 41, 0.075);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55) inset, 0 7px 22px rgba(41, 41, 41, 0.1);
}

.cm-selection-marquee[hidden] {
  display: none !important;
}

.cm-node.marquee-preview {
  z-index: 12;
  border-color: #292929 !important;
  box-shadow: 0 0 0 3px rgba(41, 41, 41, 0.14), 0 18px 44px rgba(41, 41, 41, 0.13) !important;
}

/* --------------------------------------------------------------------------
   Presenter / customer view
   -------------------------------------------------------------------------- */
.cmp-locale-links {
  margin-bottom: 13px;
  padding: 12px;
  border: 1px solid #dfdfda;
  border-radius: 13px;
  background: #fafaf8;
}

.cmp-locale-links-head {
  margin-bottom: 8px;
  color: var(--cm-muted);
  font-size: 10px;
}

/* --------------------------------------------------------------------------
   48h review view
   -------------------------------------------------------------------------- */
.owr-sidebar-item.existing.locale-complete {
  border-color: rgba(71, 165, 104, 0.32);
  background: #f4fbf6;
}

.owr-sidebar-item.existing.locale-incomplete {
  border-color: rgba(207, 87, 87, 0.32);
  background: #fff6f6;
}

.owr-sidebar-item.active.locale-complete,
.owr-sidebar-item.active.locale-incomplete {
  border-color: #111;
  background: #111;
}

.owr-sidebar-item .owr-locale-badges.sidebar {
  justify-self: end;
}

.owr-node.content.existing.locale-complete {
  border-color: #68b981;
  background: linear-gradient(180deg, #fff 0%, #f2faf5 100%);
  box-shadow: inset 3px 0 0 #47a568, 0 8px 24px rgba(0, 0, 0, 0.07);
}

.owr-node.content.existing.locale-incomplete {
  border-color: #d97878;
  background: linear-gradient(180deg, #fff 0%, #fff4f4 100%);
  box-shadow: inset 3px 0 0 #cf5757, 0 8px 24px rgba(0, 0, 0, 0.07);
}

.owr-node.content.existing.selected {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12), 0 12px 30px rgba(0, 0, 0, 0.12);
}

.owr-node.content .owr-locale-badges.map {
  position: absolute;
  top: -9px;
  left: 10px;
  z-index: 4;
}

.owr-node.content {
  min-width: 0;
  overflow: visible;
}

.owr-node.content > strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.24;
  text-align: left;
}

.owr-node.content > small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.owr-locale-links {
  margin-bottom: 13px;
  padding: 12px;
  border: 1px solid #deded9;
  border-radius: 13px;
  background: #fafaf8;
}

.owr-locale-links > div:first-child {
  margin-bottom: 8px;
  color: #777772;
  font-size: 10px;
}

.owr-legend.locale-linked i,
.owr-legend.locale-missing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.owr-legend.locale-linked i { background: #47a568; }
.owr-legend.locale-missing i { background: #cf5757; }

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .cm-node-page,
  .cm-node-opportunity,
  .cmp-node-page,
  .cmp-node-opportunity {
    width: 276px;
  }
}

@media (max-width: 820px) {
  .cm-language-overview-grid {
    grid-template-columns: 1fr;
  }

  .cm-locale-open-link,
  .cmp-url,
  .owr-locale-url,
  .owr-page-url {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cm-locale-open-link svg,
  .cmp-url svg,
  .owr-locale-url svg,
  .owr-page-url svg {
    display: none;
  }

  .cm-root-heading {
    gap: 8px;
  }

  .cm-root-symbol,
  .cmp-root-symbol {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
}

@media (max-width: 520px) {
  .cm-site-language-summary,
  .cm-language-overview-grid {
    grid-template-columns: 1fr;
  }

  .cm-form-section-title,
  .cm-locale-editor-head,
  .cmp-locale-links-head,
  .owr-locale-links > div:first-child {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cm-node-state,
  .cmp-node-state,
  .cm-node-role,
  .cmp-node-role,
  .cm-node-action {
    font-size: 8px !important;
  }
}

/* Explicit hand mode keeps touch navigation available while blank dragging
   remains reserved for the marquee selection requested by the workflow. */
.cm-stage.map-pan-mode {
  cursor: grab;
}

.cm-stage.map-pan-mode.panning {
  cursor: grabbing;
}

/* --------------------------------------------------------------------------
   Language synchronization and reference links
   -------------------------------------------------------------------------- */
.cm-language-sync-button {
  margin-top: 10px;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  white-space: normal;
  text-align: center;
}

.cm-language-sync-button svg,
.cm-language-sync-error svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.cm-language-sync-meta {
  display: block;
  margin-top: 7px;
  color: var(--cm-soft);
  font-size: 9px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cm-language-sync-error,
.cm-language-sync-result {
  min-width: 0;
  margin-top: 8px;
  padding: 9px 10px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  border: 1px solid #edbcbc;
  border-radius: 10px;
  color: #922f2f;
  background: #fff5f5;
  font-size: 9px;
  line-height: 1.45;
}

.cm-language-sync-error span,
.cm-language-sync-result span,
.cm-language-sync-result strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cm-language-sync-result {
  display: grid;
  gap: 3px;
  border-color: #b9ddc4;
  color: #315f41;
  background: #f3faf5;
}

.cm-language-sync-result strong {
  color: #174d2c;
  font-size: 10px;
}

.cm-reference-open-link,
.cmp-reference-link,
.owr-reference-link {
  min-width: 0;
  margin-bottom: 13px;
  padding: 11px 12px;
  border: 1px solid #deded9;
  border-radius: 12px;
  background: #fafaf8;
  box-sizing: border-box;
}

.cm-reference-open-link > a,
.cmp-reference-link > a,
.owr-reference-link > a {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.cmp-reference-link > span,
.owr-reference-link > span {
  display: block;
  margin-bottom: 7px;
  color: #8a8a84;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.cm-reference-open-link svg,
.cmp-reference-link svg,
.owr-reference-link svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

/* Presenter root uses the same clean icon + text language summary. */
.cmp-root-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.cmp-root-heading > div:last-child {
  min-width: 0;
}

.cmp-root-locales {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cmp-root-locales > span {
  min-height: 19px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  color: rgba(255,255,255,.84);
  background: rgba(255,255,255,.08);
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.cmp-root-locales i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.cmp-root-locales .linked i { color: #8be0a5; }
.cmp-root-locales .missing i { color: #ff9d9d; }

/* --------------------------------------------------------------------------
   Responsive labels and controls: no crushed icons or unreadable titles
   -------------------------------------------------------------------------- */
body.content-editor-mode .cm-sidebar-cluster-row {
  min-height: 56px;
}

body.content-editor-mode .cm-sidebar-cluster-main {
  min-height: 56px;
  align-items: center;
}

body.content-editor-mode .cm-sidebar-cluster-main strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.content-editor-mode .cm-sidebar-cluster-main small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.cm-map-toolbar {
  max-width: calc(100% - 36px);
  align-items: flex-start;
  flex-wrap: wrap;
}

.cm-toolbar-group {
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

.cm-toolbar-group button,
.cm-toolbar-group button > span,
.cm-toolbar-group button > b,
.cm-toolbar-group button > strong {
  min-width: 0;
}

.cm-toolbar-group button svg {
  flex: 0 0 auto;
}

.owr-sidebar-group > button span,
.owr-item-copy strong,
.owr-item-copy small,
.owr-stage-toolbar > div:first-child strong {
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.owr-sidebar-group > button span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.owr-item-copy strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.owr-item-copy .owr-locale-badges.sidebar {
  margin-top: 5px;
  justify-content: flex-start;
}

.owr-sidebar-item {
  align-items: start;
}

.owr-sidebar-item > .owr-source-badge,
.owr-sidebar-item > .owr-comment-count {
  align-self: center;
}

@media (max-width: 1180px) {
  .cm-map-toolbar {
    right: 18px;
  }

  .cm-toolbar-group button > span:not(.cm-prompt-entry-copy) {
    display: none;
  }

  .cm-toolbar-group button {
    min-width: 32px;
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .cm-map-toolbar {
    left: 10px;
    right: 10px;
    top: 10px;
    max-width: calc(100% - 20px);
    gap: 5px;
  }

  .cm-toolbar-group {
    gap: 4px;
  }

  .cm-toolbar-group button {
    min-width: 30px;
    min-height: 30px;
    padding-inline: 7px;
  }

  .cm-toolbar-prompts .cm-prompt-entry-copy,
  .cm-toolbar-prompts > strong {
    display: none;
  }

  .owr-stage-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-block: 9px;
  }

  .owr-stage-toolbar > div:last-child {
    min-width: 0;
    flex-wrap: wrap;
    gap: 6px;
  }

  .owr-legend {
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   Final bilingual state: every paired marketing node uses one clear status
   -------------------------------------------------------------------------- */
.cm-node-page.locale-complete,
.cm-node-opportunity.locale-complete,
.cmp-node-page.locale-complete,
.cmp-node-opportunity.locale-complete,
.owr-node.content.locale-complete {
  border-color: #68b981;
  background: linear-gradient(180deg, #ffffff 0%, #f1faf4 100%);
  box-shadow: inset 3px 0 0 #47a568, 0 2px 5px rgba(41, 41, 41, 0.04), 0 12px 30px rgba(41, 41, 41, 0.065);
}

.cm-node-page.locale-incomplete,
.cm-node-opportunity.locale-incomplete,
.cmp-node-page.locale-incomplete,
.cmp-node-opportunity.locale-incomplete,
.owr-node.content.locale-incomplete {
  border-color: #d97878;
  background: linear-gradient(180deg, #ffffff 0%, #fff3f3 100%);
  box-shadow: inset 3px 0 0 #cf5757, 0 2px 5px rgba(41, 41, 41, 0.04), 0 12px 30px rgba(41, 41, 41, 0.065);
}

.cm-node-opportunity.locale-complete,
.cm-node-opportunity.locale-incomplete,
.cmp-node-opportunity.locale-complete,
.cmp-node-opportunity.locale-incomplete,
.owr-node.content.planned.locale-complete,
.owr-node.content.planned.locale-incomplete {
  border-style: dashed;
}

.cm-node-page.locale-complete:hover,
.cm-node-opportunity.locale-complete:hover,
.cmp-node-page.locale-complete:hover,
.cmp-node-opportunity.locale-complete:hover,
.owr-node.content.locale-complete:hover {
  border-color: #429d61;
}

.cm-node-page.locale-incomplete:hover,
.cm-node-opportunity.locale-incomplete:hover,
.cmp-node-page.locale-incomplete:hover,
.cmp-node-opportunity.locale-incomplete:hover,
.owr-node.content.locale-incomplete:hover {
  border-color: #c54c4c;
}

.cm-node-page.locale-complete.selected,
.cm-node-opportunity.locale-complete.selected,
.cm-node-page.locale-incomplete.selected,
.cm-node-opportunity.locale-incomplete.selected,
.cmp-node-page.locale-complete.selected,
.cmp-node-opportunity.locale-complete.selected,
.cmp-node-page.locale-incomplete.selected,
.cmp-node-opportunity.locale-incomplete.selected,
.owr-node.content.locale-complete.selected,
.owr-node.content.locale-incomplete.selected {
  border-color: #292929;
  box-shadow: 0 0 0 3px rgba(41, 41, 41, 0.13), 0 18px 44px rgba(41, 41, 41, 0.13);
}

body.content-editor-mode .cm-sidebar-content-item.locale-complete,
.owr-sidebar-item.locale-complete {
  border-color: rgba(71, 165, 104, 0.36);
  background: rgba(240, 250, 243, 0.88);
}

body.content-editor-mode .cm-sidebar-content-item.locale-incomplete,
.owr-sidebar-item.locale-incomplete {
  border-color: rgba(207, 87, 87, 0.36);
  background: rgba(255, 242, 242, 0.9);
}

body.content-editor-mode .cm-sidebar-content-item.locale-complete.active,
body.content-editor-mode .cm-sidebar-content-item.locale-incomplete.active {
  color: #292929;
  border-color: #292929;
  background: #fff;
}

.owr-sidebar-item.active.locale-complete,
.owr-sidebar-item.active.locale-incomplete {
  color: #fff;
  border-color: #111;
  background: #111;
}

/* --------------------------------------------------------------------------
   Responsive map typography: labels wrap inside their nodes, icons never crush
   -------------------------------------------------------------------------- */
.cm-node-cluster,
.cm-node-page,
.cm-node-opportunity,
.cmp-node-cluster,
.cmp-node-page,
.cmp-node-opportunity,
.owr-node.cluster,
.owr-node.content {
  min-width: 0;
}

.cm-node h2,
.cm-node h3,
.cmp-node h2,
.cmp-node h3,
.owr-node strong {
  max-width: 100%;
  line-height: 1.25 !important;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.cm-node-cluster h3,
.cmp-node-cluster h3,
.cm-node-page h3,
.cm-node-opportunity h3,
.cmp-node-page h3,
.cmp-node-opportunity h3,
.owr-node.cluster strong,
.owr-node.content strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.cm-node-cluster p,
.cmp-node-cluster p,
.cm-node-page p,
.cm-node-opportunity p,
.cmp-node-page p,
.cmp-node-opportunity p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  line-height: 1.38;
}

.cm-node footer,
.cmp-node footer,
.cm-node-top,
.cmp-node-top {
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

.cm-node footer span,
.cmp-node footer span,
.cm-node-kind,
.cmp-node-kind,
.cm-node-state,
.cmp-node-state,
.cm-node-role,
.cmp-node-role,
.cm-node-action,
.owr-node-kind {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.cm-node-kind i,
.cmp-node-kind i,
.cm-node-state svg,
.cmp-node-state svg,
.owr-node-kind svg,
.cm-node-collapse,
.cm-node-quick-actions button,
.cm-sidebar-content-icon,
.owr-item-icon {
  flex: 0 0 auto;
}

.owr-node.cluster > strong,
.owr-node.content > strong {
  text-align: left;
}

.owr-node.cluster > small,
.owr-node.content > small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .cm-node-page,
  .cm-node-opportunity,
  .cmp-node-page,
  .cmp-node-opportunity {
    width: 264px;
  }

  .cm-node-cluster,
  .cmp-node-cluster {
    width: 244px;
  }

  .cm-node h3,
  .cmp-node h3 {
    font-size: 12px !important;
  }

  .cm-node p,
  .cmp-node p {
    font-size: 9px !important;
  }
}
