/* Self Mark: the "Mark AI" overlay in the Chatwoot desk.
   Linked last in <head> by the Dockerfile layout patch, next to selfmark-mark.js.
   Tokens come from selfmark.css, which loads first.
   Checked against Chatwoot v4.18.0. */

#sm-mark {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--sm-light);
}

.dark #sm-mark {
  background: var(--sm-stage);
}

#sm-mark iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

#sm-mark[hidden] {
  display: none;
}

a[data-sm-mark] svg {
  width: 16px;
  height: 16px;
}

/* The native Captain item: hidden, not removed (Vue owns the list).
   Its routes are redirected to Mark AI by selfmark-mark.js. */
aside nav li:has(a[href*="/captain/"]) {
  display: none;
}
