/* Exchange-rate controls and dashboard motion. Search history has its own stylesheet. */
.text-button{
  display: inline-grid;
  place-items: center;
  width: var(--tv-control-h-md);
  height: var(--tv-control-h-md);
  border: 1px solid transparent;
  border-radius: var(--tv-radius-sm);
  background: transparent;
  color: var(--tv-brand);
  transition: background var(--tv-motion), color var(--tv-motion);
}
.text-button:hover { background: var(--tv-brand-soft); color: var(--tv-brand-hover); }
.text-button:focus-visible { outline: 2px solid var(--tv-brand); outline-offset: 2px; }
.text-button:disabled { color: var(--tv-text-3); }

.fx-panel{
  margin: 0;
  min-width: 0;
}
.fx-panel .ov-block-head { align-items: center; }
.fx-panel .ov-line { flex-wrap: wrap; min-height: 46px; padding-block: var(--tv-s2); }
.fx-panel .ov-line-name { flex: 0 0 auto; }
.fx-panel :is(select, input) { flex: 1 1 120px; width: auto; min-width: 0; }
.fx-panel output { color: var(--tv-text); font-variant-numeric: tabular-nums; font-weight: 650; }
.fx-panel #fxRate { margin-block: var(--tv-s2) var(--tv-s3); }
.fx-panel #fxSource { overflow-wrap: anywhere; }

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  .text-button { transition: none; }
}
