/* OW Onboarding Tool 0.81.0
 * Clean project card and monochrome vysibell branding based on the supplied
 * vector mark. Logo management remains available in the project inspector.
 */

/* --------------------------------------------------------------------------
   Clean customer / project card in the left navigation
   -------------------------------------------------------------------------- */
body.content-editor-mode .cm-site-card-shell .cm-site-card {
  padding-right: 13px;
}

/* Compatibility safeguard for cached markup from an older render pass. */
body.content-editor-mode .cm-site-logo-shortcut {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Shared vysibell mark
   -------------------------------------------------------------------------- */
.cm-vysibell-button-mark,
.cm-sidebar-prompt-icon,
.cm-vysibell-modal-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  background: #111;
}

.cm-vysibell-button-mark img,
.cm-sidebar-prompt-icon img,
.cm-vysibell-modal-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.cm-vysibell-button-mark {
  width: 20px;
  height: 20px;
  padding: 2px;
  border-radius: 6px;
}

.cm-vysibell-wordmark {
  font: inherit;
  color: inherit;
  text-transform: lowercase;
}

/* --------------------------------------------------------------------------
   Main prompt entry buttons
   -------------------------------------------------------------------------- */
body.content-editor-mode .cm-button-prompts,
body.content-editor-mode .cm-toolbar-prompts {
  color: #fff !important;
  background: #111 !important;
  border-color: #111 !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16) !important;
}

body.content-editor-mode .cm-button-prompts:hover:not(:disabled),
body.content-editor-mode .cm-toolbar-prompts:hover:not(:disabled) {
  color: #fff !important;
  background: #000 !important;
  border-color: #000 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22) !important;
}

body.content-editor-mode .cm-button-prompts:focus-visible,
body.content-editor-mode .cm-toolbar-prompts:focus-visible,
body.content-editor-mode .cm-sidebar-prompt-entry:focus-visible {
  outline: 3px solid rgba(17, 17, 17, 0.18);
  outline-offset: 2px;
}

body.content-editor-mode .cm-button-prompts > strong,
body.content-editor-mode .cm-toolbar-prompts > strong {
  background: rgba(255, 255, 255, 0.17) !important;
}

body.content-editor-mode .cm-map-toolbar .cm-toolbar-prompts > .cm-vysibell-button-mark {
  width: 18px;
  height: 18px;
  padding: 2px;
  border-radius: 5px;
}

/* --------------------------------------------------------------------------
   vysibell card in the left navigation
   -------------------------------------------------------------------------- */
body.content-editor-mode .cm-sidebar-prompt-entry {
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  margin: 10px 0 14px;
  padding: 12px;
  color: #171717;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 16px;
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.055);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, background 150ms ease;
}

body.content-editor-mode .cm-sidebar-prompt-entry:hover {
  color: #111;
  background: #fcfcfc;
  border-color: rgba(17, 17, 17, 0.42);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
  transform: translateY(-1px);
}

body.content-editor-mode .cm-sidebar-prompt-icon {
  width: 46px;
  height: 46px;
  padding: 5px;
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.content-editor-mode .cm-sidebar-prompt-entry > span:nth-child(2) {
  gap: 4px;
}

body.content-editor-mode .cm-sidebar-prompt-entry > span:nth-child(2) strong {
  color: #171717;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.25;
}

body.content-editor-mode .cm-sidebar-prompt-entry > span:nth-child(2) small {
  color: #6d6d6d;
  font-size: 10px !important;
  line-height: 1.35;
}

body.content-editor-mode .cm-sidebar-prompt-entry > b {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  color: #fff;
  background: #111;
  font-size: 11px !important;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Prompt indicators and inspector use the same monochrome visual language
   -------------------------------------------------------------------------- */
body.content-editor-mode .cm-node-prompt-badge {
  background: #111;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

body.content-editor-mode .cm-cluster-prompt-badge {
  color: #171717;
  background: #f4f4f2;
  border-color: #fff;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.12);
}

body.content-editor-mode .cm-cluster-prompt-badge:hover {
  color: #000;
  background: #ededeb;
}

body.content-editor-mode .cm-cluster-prompt-badge small {
  color: #686868;
}

body.content-editor-mode .cm-sidebar-prompt-count {
  color: #111;
  background: #ececea;
}

body.content-editor-mode .cm-prompt-inspector-card {
  border-color: rgba(17, 17, 17, 0.18) !important;
  background: linear-gradient(145deg, rgba(250, 250, 249, 0.98), rgba(244, 244, 242, 0.98));
}

body.content-editor-mode .cm-prompt-inspector-card.has-prompts {
  border-color: rgba(17, 17, 17, 0.34) !important;
}

body.content-editor-mode .cm-prompt-inspector-icon,
body.content-editor-mode .cm-assignment-tray-icon {
  color: #fff;
  background: #111;
}

body.content-editor-mode .cm-prompt-inspector-card p b,
body.content-editor-mode .cm-prompt-inspector-chip,
body.content-editor-mode .cm-assignment-mode button.active,
body.content-editor-mode .cm-assignment-tray-copy > span {
  color: #111;
}

body.content-editor-mode .cm-prompt-inspector-chip {
  background: #f3f3f1;
  border-color: #d4d4cf;
}

body.content-editor-mode .cm-prompt-inspector-chip:hover {
  background: #ececea;
  border-color: #a9a9a2;
}

/* --------------------------------------------------------------------------
   Prompt modal brand header
   -------------------------------------------------------------------------- */
body.content-editor-mode .cm-prompt-modal-brand {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

body.content-editor-mode .cm-prompt-modal-brand > div {
  min-width: 0;
}

body.content-editor-mode .cm-vysibell-modal-mark {
  width: 48px;
  height: 48px;
  margin: 0 !important;
  padding: 5px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.13);
}

body.content-editor-mode .cm-prompt-modal-header .cm-vysibell-modal-mark {
  margin-bottom: 0;
  color: inherit;
  letter-spacing: 0;
  text-transform: none;
}

body.content-editor-mode .cm-prompt-modal-header span,
body.content-editor-mode .cm-prompt-view-switch button.active,
body.content-editor-mode .cm-prompt-set-header-actions > strong,
body.content-editor-mode .cm-prompt-set-content-category b,
body.content-editor-mode .cm-prompt-assignment-note strong {
  color: #111;
}

body.content-editor-mode .cm-prompt-view-switch button.active {
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.09);
}

body.content-editor-mode .cm-prompt-set-header-actions > strong {
  background: #ededeb;
}

body.content-editor-mode .cm-prompt-assignment-note {
  color: #222;
  background: #f3f3f1;
  border-color: #d7d7d2;
}

body.content-editor-mode .cm-prompt-assignment-note small {
  color: #6a6a67;
}

@media (max-width: 760px) {
  body.content-editor-mode .cm-sidebar-prompt-entry {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 11px;
  }

  body.content-editor-mode .cm-sidebar-prompt-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  body.content-editor-mode .cm-vysibell-modal-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
}

/* Keep the official lowercase brand spelling visible in the modal eyebrow. */
body.content-editor-mode .cm-prompt-modal-brand > div > span {
  color: #111;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

body.content-editor-mode .cm-prompt-empty > svg {
  color: #111;
}

body.content-editor-mode .cm-prompt-tabs button.active,
body.content-editor-mode .cm-prompt-assign.assigned {
  color: #111;
  background: #ededeb;
  border-color: #bdbdb7;
}
