.usage-hint {
  position: fixed;
  z-index: 10000;
  box-sizing: border-box;
  width: 320px;
  max-width: calc(100vw - 24px);
  padding: 19px 20px 16px;
  border: 1px solid #80659d;
  border-radius: 16px;
  background: #3c2c50;
  color: #f5f5f4;
  box-shadow: 0 12px 36px #0005, 0 3px 9px #0003;
  font-family: Geist, 'Noto Sans SC', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  text-align: start;
  -webkit-font-smoothing: antialiased;
  transform-origin: var(--usage-hint-arrow, 50%) top;
  animation: usage-hint-pop 240ms cubic-bezier(.22, 1, .36, 1) both;
}
.usage-hint[data-placement='top'] {
  --usage-hint-enter-y: 8px;
  transform-origin: var(--usage-hint-arrow, 50%) bottom;
}
@keyframes usage-hint-pop {
  from {opacity: 0; transform: translateY(var(--usage-hint-enter-y, -8px)) scale(.96);}
  to {opacity: 1; transform: translateY(0) scale(1);}
}
.usage-hint[hidden] {display: none;}
.usage-hint::before {
  content: '';
  position: absolute;
  left: var(--usage-hint-arrow, 50%);
  width: 12px;
  height: 12px;
  background: #3c2c50;
  border: 1px solid #80659d;
  transform: translateX(-50%) rotate(45deg);
}
.usage-hint[data-placement='bottom']::before {top: -7px; border-right: 0; border-bottom: 0;}
.usage-hint[data-placement='top']::before {bottom: -7px; border-left: 0; border-top: 0;}
.usage-hint h2 {
  margin: 0;
  padding-inline-end: 24px;
  color: #f5f5f4;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.usage-hint p {margin: 7px 0 16px; color: #e6daef; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere;}
.usage-hint-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #c0a8da;
  font: 23px/1 system-ui, sans-serif;
  cursor: pointer;
}
.usage-hint-close:hover {background: #ffffff12; color: #fff;}
.usage-hint-footer {display: flex; justify-content: flex-end;}
.usage-hint-button {
  max-width: 100%;
  padding: 6px 15px;
  border: 1px solid #a986ff;
  border-radius: 999px;
  background: #9365f5;
  color: #fff;
  font: 500 13px/1.5 Geist, 'Noto Sans SC', system-ui, sans-serif;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.usage-hint-button:hover {background: #a679ff;}
.usage-hint button:focus-visible {outline: 2px solid #cbb1ff; outline-offset: 3px;}
@media (prefers-reduced-motion: reduce) {
  .usage-hint {animation: none;}
}
@media (max-height: 360px) {
  .usage-hint {padding: 12px 16px;}
  .usage-hint p {margin-bottom: 10px; max-height: 100px; overflow-y: auto;}
}
