/* Library typeahead finder */
.ta-lib-finder {
  max-width: 42rem;
  margin: 0 auto 1.75rem;
  text-align: left;
}
.ta-lib-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.4rem;
  color: inherit;
}
.ta-lib-wrap {
  position: relative;
}
.ta-lib-input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111;
  font-size: 1.05rem;
  line-height: 1.4;
  padding: 0.85rem 1rem;
}
.dark .ta-lib-input {
  border-color: #4b5563;
  background: #1f2937;
  color: #f3f4f6;
}
.ta-lib-input:focus {
  outline: 2px solid #ff4c41;
  outline-offset: 1px;
  border-color: #ff4c41;
}
.ta-lib-dropdown {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  max-height: 22rem;
  overflow: auto;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.dark .ta-lib-dropdown {
  border-color: #374151;
  background: #111827;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.ta-lib-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
}
.ta-lib-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.4rem;
  cursor: pointer;
}
.ta-lib-item:hover,
.ta-lib-item.is-active {
  background: rgba(255, 76, 65, 0.12);
}
.ta-lib-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ff4c41;
}
.ta-lib-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #111;
  line-height: 1.35;
}
.dark .ta-lib-title {
  color: #f3f4f6;
}
.ta-lib-mark {
  background: rgba(255, 76, 65, 0.35);
  color: inherit;
  padding: 0 0.1em;
  border-radius: 0.15em;
}
.ta-lib-empty {
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  opacity: 0.85;
}
.ta-lib-status {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  opacity: 0.7;
}
.ta-lib-details {
  margin-top: 1.25rem;
  border: 1px solid rgba(127, 127, 127, 0.35);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}
.ta-lib-details > summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.ta-lib-details > summary::-webkit-details-marker {
  display: none;
}
.ta-lib-details[open] > summary {
  margin-bottom: 0.75rem;
  color: #ff4c41;
}
