/* A discoverable label for OneZoom's existing ancestor / tracer switch. */
#UI #advanced_search_toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 34px;
  padding: 0 3px 0 7px;
  border: 1px solid rgba(0, 91, 191, .25);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0, 70, 140, .12);
}
#UI #advanced_search_toggle .common-ancestor-label {
  padding: 2px 0;
  border: 0;
  color: #0058bd;
  background: transparent;
  font: 600 14px/1.6 system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
#UI #advanced_search_button { color: #0058bd; }
#UI #advanced_search_toggle .common-ancestor-label:focus-visible {
  outline: 2px solid #006bff;
  outline-offset: 2px;
  border-radius: 3px;
}
/* Keep the full search field on compact screens; the label stays next to its
   own icon in the second toolbar row, opposite the name-display controls. */
@media (max-width: 850px) {
  #UI #advanced_search_toggle {
    position: absolute;
    top: 58px;
    right: 8px;
    margin: 0;
  }
  #UI #advanced_search_toggle .common-ancestor-label { font-size: 12px; }
}
