/* Chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .375rem .75rem;
  border-radius: 9999px;
  border: 1px solid #d1d5db; /* gray-300 */
  font-size: .875rem;
  font-weight: 600;
  line-height: 1;
  background: #ffffff;
  color: #374151;            /* gray-700 */
  cursor: pointer;
  user-select: none;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease, border-color .12s ease;
}
.chip:hover { background: #f9fafb; } /* gray-50 */

.chip-inactive { /* 비선택 상태 */
  background: #ffffff;
}

.chip-active, .chip.is-selected, .chip[aria-pressed="true"] { /* 선택/눌림 */
  background: #2563eb;       /* blue-600 */
  color: #fff;
  border-color: #1d4ed8;     /* blue-700 */
  box-shadow: inset 0 2px 5px rgba(0,0,0,.28), 0 0 0 2px rgba(37,99,235,.12);
  transform: translateY(1px);
}

.chip:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37,99,235,.35);
}

a.chip { text-decoration: none; }

/* Card */
.card {
  border-radius: 1rem;        /* rounded-2xl */
  border: 1px solid #e5e7eb;  /* gray-200 */
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  padding: 1rem;              /* p-4 */
  background: #ffffff;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .75rem;      /* rounded-xl */
  padding: .5rem 1rem;        /* px-4 py-2 */
  border: 1px solid #d1d5db;  /* gray-300 */
  font-weight: 600;
  cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease, transform .12s ease, box-shadow .12s ease;
  background: #ffffff;
  color: #111827;             /* gray-900 */
}
.btn:hover { background: #f9fafb; }
.btn-primary {
  background: #2563eb;
  color: #fff;
  border-color: #1d4ed8;
}
.btn-primary:hover { background: #1d4ed8; }


#usage-popover::before{content:"";position:absolute;top:-6px;left:18px;border:6px solid transparent;border-bottom-color:#e5e7eb}
#usage-popover::after{content:"";position:absolute;top:-5px;left:19px;border:5px solid transparent;border-bottom-color:#fff}

