.companion:has(.relay-guide:not([hidden])) {
  z-index: 8;
}
.monitor-main .companion-note.relay-guide {
  right: auto;
  bottom: auto;
  width: var(--relay-width, 280px);
  padding: 10px 16px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #76548a #140b1d;
  background: #110918f5;
  border: 1px solid #926aac85;
  border-top-color: #bda0e3ad;
  box-shadow: 0 16px 44px #0503089c, inset 0 1px #e4c6f00c;
}
.relay-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
}
.relay-caption {
  font: 9px var(--mono);
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: #c9b0dc;
}
.relay-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-right: -9px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #c9b0dc;
  font-size: 23px;
  line-height: 1;
}
.companion-note .relay-context {
  margin: 0 0 12px;
  color: #cbbfd4;
  font-size: 12px;
  line-height: 1.65;
}
.relay-actions {
  display: flex;
  flex-direction: column;
}
.companion-note .relay-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-height: 60px;
  padding: 12px 1px;
  border-top: 1px solid #7352855c;
  color: #eee5f5;
  text-decoration: none;
  transition: color 160ms, border-color 160ms;
}
.companion-note .relay-action[hidden] {
  display: none;
}
.relay-action-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
}
.relay-action-arrow {
  color: var(--amber);
  font-size: 14px;
}
.relay-action-detail {
  font-size: 11px;
  line-height: 1.55;
  color: #bbaac8;
  overflow-wrap: anywhere;
}
.companion-note .relay-action:hover,
.relay-close:hover {
  color: var(--amber);
  border-color: #b495d290;
}
.companion-note .relay-action:focus-visible,
.relay-close:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
@media (prefers-reduced-transparency: reduce) {
  .monitor-main .companion-note.relay-guide {
    background: #110918;
    backdrop-filter: none;
  }
}
