/* ACOMP.: card flutuante no design azul futurista do Prospecta Corban.
   Elemento único no body: não aumenta o custo de render das 1000 linhas. */
.corban-note-tooltip {
  --note-cyan: #6cdeff;
  --note-ice: #ddf6ff;
  position: fixed;
  z-index: 2400;
  box-sizing: border-box;
  width: min(386px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  padding: 0;
  pointer-events: none;
  overflow: visible;
  color: #e8f6ff;
  border: 1px solid rgba(91, 207, 255, .58);
  border-radius: 15px;
  background:
    radial-gradient(ellipse at 100% -22%, rgba(25, 135, 230, .25), transparent 56%),
    linear-gradient(148deg, rgba(15, 44, 74, .985) 0%, rgba(7, 23, 43, .988) 65%, rgba(4, 17, 34, .99) 100%);
  box-shadow:
    0 19px 48px rgba(0, 7, 23, .5),
    0 0 25px rgba(13, 146, 255, .22),
    inset 0 1px 0 rgba(177, 232, 255, .14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(5px) scale(.985);
  transition: opacity .13s ease-out, transform .13s ease-out;
  font-family: inherit;
  text-align: left;
  isolation: isolate;
}

.corban-note-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.corban-note-tooltip[hidden] {
  display: none !important;
}

.corban-note-tooltip::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(var(--note-arrow-y, 30px) - 6px);
  left: -7px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  border-left: 1px solid rgba(91, 207, 255, .58);
  border-bottom: 1px solid rgba(91, 207, 255, .58);
  background: #0b2947;
}

.corban-note-tooltip[data-placement="left"]::before {
  left: auto;
  right: -7px;
  border-left: 0;
  border-bottom: 0;
  border-right: 1px solid rgba(91, 207, 255, .58);
  border-top: 1px solid rgba(91, 207, 255, .58);
}

.corban-note-tooltip[data-placement="bottom"]::before {
  display: none;
}

.corban-note-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 11px 15px 9px;
  border-bottom: 1px solid rgba(122, 206, 254, .16);
  color: #95eaff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.15px;
  line-height: 1.3;
}

.corban-note-head-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 6px;
  border: 1px solid rgba(92, 217, 255, .43);
  background: linear-gradient(145deg, rgba(59, 188, 255, .26), rgba(22, 94, 194, .16));
  box-shadow: inset 0 1px 0 rgba(217, 249, 255, .14), 0 0 11px rgba(44, 177, 255, .13);
}

.corban-note-head-icon::after {
  content: "";
  width: 8px;
  height: 6px;
  display: block;
  border: 1.35px solid #a7f1ff;
  border-radius: 2.5px;
  box-shadow: 0 0 4px rgba(109, 219, 255, .45);
}

.corban-note-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 13px 16px 0;
}

.corban-note-author {
  color: #effaff;
  font-size: 12px;
  font-weight: 770;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.corban-note-time {
  color: #8fb9d6;
  font-size: 10px;
  font-weight: 550;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.corban-note-body {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  overflow: hidden;
  max-height: 188px;
  margin: 0;
  padding: 10px 16px 15px;
  color: #d8e9f8;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 475;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.corban-note-tooltip.is-empty .corban-note-meta {
  display: none;
}

.corban-note-tooltip.is-empty .corban-note-body {
  padding-top: 14px;
  color: #b0cde1;
}

.corban-note-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px 11px;
  border-top: 1px solid rgba(117, 210, 255, .115);
  color: #83aecb;
  font-size: 10px;
  font-weight: 530;
  letter-spacing: .03px;
}

.corban-note-foot span {
  color: #58dcff;
  font-size: 14px;
  line-height: 1;
}

html[data-app-theme="light"] .corban-note-tooltip {
  color: #1c3e61;
  border-color: rgba(59, 151, 215, .55);
  background: linear-gradient(140deg, rgba(247, 253, 255, .99), rgba(224, 241, 255, .99));
  box-shadow: 0 14px 40px rgba(25, 70, 105, .19), 0 0 16px rgba(55, 176, 255, .1);
}

html[data-app-theme="light"] .corban-note-tooltip::before {
  background: #eaf6ff;
}

html[data-app-theme="light"] .corban-note-head {
  color: #1172ac;
  border-bottom-color: rgba(48, 139, 192, .2);
}

html[data-app-theme="light"] .corban-note-author { color: #16466d; }
html[data-app-theme="light"] .corban-note-time { color: #597a91; }
html[data-app-theme="light"] .corban-note-body { color: #2a4b65; }
html[data-app-theme="light"] .corban-note-foot {
  color: #5c819c;
  border-top-color: rgba(48, 139, 192, .15);
}

@media (prefers-reduced-motion: reduce) {
  .corban-note-tooltip { transition: none; transform: none; }
}
