.tx-typeahead {
  position: relative;
}

.tx-security-meta {
  margin-top: 5px;
  min-height: 14px;
  font-size: 8.5px;
  color: var(--color-text-tertiary);
  line-height: 1.4;
}

.tx-security-meta.live {
  color: var(--green-d);
}

.tx-security-meta.warn {
  color: var(--amber);
}

.tx-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  max-height: 260px;
  overflow-y: auto;
  background: white;
  border: 1px solid #D5C99E;
  border-radius: 3px;
  box-shadow: 0 10px 24px rgba(20, 41, 68, 0.12);
}

.tx-suggestions.open {
  display: block;
}

.tx-suggestion {
  padding: 9px 10px;
  border-bottom: 0.5px solid var(--color-border-tertiary);
  cursor: pointer;
  transition: background 0.12s ease;
}

.tx-suggestion:last-child {
  border-bottom: none;
}

.tx-suggestion:hover,
.tx-suggestion.active {
  background: var(--bg-warm);
}

.tx-suggestion-name {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--slate);
}

.tx-suggestion-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
  font-size: 8px;
  color: var(--color-text-tertiary);
  text-transform: none;
  letter-spacing: 0.06em;
}

.tx-suggestion-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 999px;
  background: #F1ECDF;
  color: var(--slate);
}

.tx-live-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #E5DDC4;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 8.8px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.tx-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 7.5px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.tx-live-pill.good {
  background: #E8F5EE;
  color: var(--green-d);
}

.tx-live-pill.warn {
  background: #FBF3E1;
  color: var(--amber);
}

.tx-live-pill.muted {
  background: #ECEFF3;
  color: var(--slate);
}

.tx-live-msg {
  display: block;
  margin-top: 4px;
}

.tx-security-sub {
  margin-top: 2px;
  font-size: 8px;
  color: var(--color-text-tertiary);
  text-transform: none;
  letter-spacing: 0.06em;
}

@media (max-width: 980px) {
  .tx-live-row {
    flex-direction: column;
  }
}
