/* Typeahead dropdown (js/typeahead.js). Reusable: reads the page's own tokens with fallbacks. */
.ta-wrap { position: relative; }
.ta-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
  margin: 0; padding: 6px; list-style: none;
  max-height: min(60vh, 26rem); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface, var(--bg-card, #13151f));
  border: 1px solid var(--line-2, var(--border-strong, #2f3447));
  border-radius: 12px;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.75);
  text-align: left;
}
.ta-list[hidden] { display: none; }
.ta-opt {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 6px 10px; border-radius: 8px;
  color: var(--text, #f1f2f7); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ta-opt[aria-selected="true"] { background: var(--accent-soft, var(--accent-dim, rgba(74, 144, 255, 0.14))); }
.ta-opt .gi-cover { flex: none; }
.ta-text { display: block; min-width: 0; flex: 1 1 auto; }
.ta-title { display: block; font-weight: 650; font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-title mark { background: none; color: var(--accent-hi, var(--accent-strong, #82b4ff)); font-weight: 800; }
.ta-meta { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted, #a3aabd); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-empty { padding: 10px 12px; color: var(--muted, #a3aabd); font-size: 14px; }
.ta-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
