/* FX terminal — self-contained layout (no overflow clipping on converter) */

#fx-screen {
  --fx-text: var(--sw-text-main);
  --fx-muted: var(--sw-text-muted);
  --fx-border: var(--sw-border-on-light);
  --fx-border-strong: rgba(var(--accent-rgb), 0.32);
  --fx-up: 34, 160, 107;
  --fx-down: 201, 74, 74;
  --fx-ease: cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--fx-text);
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}

#fx-screen.fx-terminal {
  display: flex;
  flex-direction: column;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.28s ease;
  background: #000;
  background-image:
    radial-gradient(900px 480px at 8% -8%, rgba(var(--accent-rgb), 0.07), transparent 58%),
    radial-gradient(700px 400px at 100% 100%, rgba(var(--accent-rgb), 0.04), transparent 55%);
}

#fx-screen.fx-terminal.fx-screen--visible {
  opacity: 1;
}

#fx-screen .window-panel {
  border: var(--sw-accent-outline) solid var(--fx-border);
  background: var(--sw-surface-light);
  color: var(--fx-text);
  border-radius: 12px;
  box-shadow: none;
}

#fx-screen .muted {
  color: var(--fx-muted);
}

.fx-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Header ── */
.fx-terminal-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  flex-shrink: 0;
}

.fx-terminal-head__center {
  min-width: 0;
}

.fx-terminal-wordmark {
  margin: 0;
  font-family: var(--font-hub-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--fx-text);
}

#fx-screen .hub-back-btn,
#fx-screen .fx-sync-btn {
  flex-shrink: 0;
  min-width: 96px;
  padding: 10px 18px;
  border: var(--sw-accent-outline) solid var(--fx-border);
  border-radius: 10px;
  background: var(--sw-surface-light);
  color: var(--fx-text);
  font-family: var(--font-hub-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color 0.2s var(--fx-ease), color 0.2s var(--fx-ease), background 0.2s var(--fx-ease);
}

#fx-screen .hub-back-btn:hover,
#fx-screen .fx-sync-btn:hover:not(:disabled) {
  border-color: var(--fx-border-strong);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.04);
}

#fx-screen .fx-sync-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

#fx-screen .fx-sync-btn.is-syncing .fx-sync-btn__icon {
  animation: fx-spin 0.75s linear infinite;
}

@keyframes fx-spin {
  to { transform: rotate(360deg); }
}

#fx-screen .hub-back-btn__icon,
#fx-screen .fx-sync-btn__icon {
  display: flex;
  width: 14px;
  height: 14px;
}

#fx-screen .hub-back-btn__icon svg,
#fx-screen .fx-sync-btn__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Main grid — full viewport height ── */
.fx-terminal-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.85fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  align-content: stretch;
}

.fx-board-panel,
.fx-converter-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
}

#fx-screen .fx-board-panel.window-panel,
#fx-screen .fx-converter-panel.window-panel {
  min-height: 0;
}

.fx-board-panel {
  overflow: hidden;
}

.fx-converter-panel {
  overflow: hidden;
}

.fx-converter-panel.fx-converter-panel--menu-open {
  overflow: visible;
  z-index: 30;
}

.fx-converter-panel.fx-converter-panel--menu-open .fx-converter-body {
  overflow: visible;
}

#fx-screen.fx-screen--visible .fx-board-panel,
#fx-screen.fx-screen--visible .fx-converter-panel {
  animation: fx-panel-in 0.42s var(--fx-ease) both;
}

#fx-screen.fx-screen--visible .fx-converter-panel {
  animation-delay: 0.08s;
}

@keyframes fx-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fx-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--fx-border);
  background: var(--sw-surface-elevated);
  flex-shrink: 0;
}

#fx-screen .fx-panel-head .window-title {
  font-family: var(--font-hub-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fx-muted);
}

.fx-status {
  margin: 0;
  font-size: 0.84rem;
  text-align: right;
}

.fx-status.is-error {
  color: rgb(var(--fx-down));
}

/* ── Quotes board ── */
.fx-pairs-board {
  flex: 1;
  min-height: 0;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr)) auto;
  gap: 14px;
  align-content: stretch;
  overflow: hidden;
}

.fx-pairs-board.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.fx-pair-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  border-radius: 14px;
  border: var(--sw-accent-outline) solid var(--fx-border);
  background: var(--sw-surface-light);
  min-height: 0;
  height: 100%;
  overflow: hidden;
  transition:
    border-color 0.28s var(--fx-ease),
    box-shadow 0.28s var(--fx-ease),
    transform 0.28s var(--fx-ease);
}

.fx-pair-card--in {
  animation: fx-card-in 0.4s var(--fx-ease) both;
}

@keyframes fx-card-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fx-pair-card:hover {
  border-color: rgba(var(--accent-rgb), 0.32);
  box-shadow: 0 12px 28px rgba(var(--accent-rgb), 0.1);
  transform: translateY(-2px);
}

.fx-pair-card--up {
  border-color: rgba(var(--fx-up), 0.28);
  background: linear-gradient(180deg, rgba(var(--fx-up), 0.07) 0%, var(--sw-surface-light) 55%);
}

.fx-pair-card--down {
  border-color: rgba(var(--fx-down), 0.28);
  background: linear-gradient(180deg, rgba(var(--fx-down), 0.07) 0%, var(--sw-surface-light) 55%);
}

.fx-pair-card__tag {
  font-family: var(--font-hub-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fx-muted);
}

.fx-pair-card__line {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fx-text);
}

.fx-pair-card__codes {
  font-size: 0.8rem;
  color: var(--fx-muted);
}

.fx-pair-card__change {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  width: fit-content;
}

.fx-pair-card__change--up {
  background: rgba(var(--fx-up), 0.1);
  color: rgb(var(--fx-up));
}

.fx-pair-card__change--down {
  background: rgba(var(--fx-down), 0.1);
  color: rgb(var(--fx-down));
}

.fx-pair-card__change--flat {
  background: rgba(10, 10, 10, 0.06);
  color: var(--fx-muted);
}

.fx-pair-card__change-label {
  font-weight: 500;
  opacity: 0.75;
}

.fx-board-meta,
.fx-empty {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.85rem;
}

/* ── Converter ── */
.fx-converter-body {
  flex: 1;
  min-height: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.fx-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fx-field-label,
.fx-pair-label {
  font-family: var(--font-hub-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fx-muted);
}

.fx-input,
.fx-select-trigger {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  border: var(--sw-accent-outline) solid var(--fx-border);
  border-radius: 12px;
  background: var(--sw-surface-light);
  color: var(--fx-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.35;
  -webkit-text-fill-color: var(--fx-text);
  transition:
    border-color 0.32s var(--fx-ease),
    box-shadow 0.32s var(--fx-ease),
    background-color 0.32s var(--fx-ease),
    transform 0.32s var(--fx-ease);
}

.fx-select--native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

.fx-select-field {
  position: relative;
  min-width: 0;
  width: 100%;
}

.fx-select-field--open {
  z-index: 50;
}

.fx-select-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font-weight: 600;
}

.fx-select-trigger__value {
  font-weight: 600;
}

.fx-select-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: rgba(10, 10, 10, 0.42);
  transition: transform 0.32s var(--fx-ease);
}

.fx-select-chevron svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fx-select-field--open .fx-select-chevron,
.fx-select-field--focus .fx-select-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.fx-select-trigger:hover,
.fx-select-field--focus .fx-select-trigger {
  border-color: rgba(var(--accent-rgb), 0.32);
}

.fx-select-field--open .fx-select-trigger,
.fx-select-field--focus .fx-select-trigger {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.fx-select-field--changed .fx-select-trigger {
  animation: fx-select-pick 0.48s var(--fx-ease);
}

@keyframes fx-select-pick {
  0% { transform: scale(1); }
  45% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.fx-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  border: var(--sw-accent-outline) solid rgba(var(--accent-rgb), 0.16);
  background: var(--sw-window);
  box-shadow: 0 16px 40px rgba(10, 10, 10, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  pointer-events: none;
  transition:
    opacity 0.32s var(--fx-ease),
    transform 0.32s var(--fx-ease),
    visibility 0.32s var(--fx-ease);
}

.fx-select-field--open .fx-select-menu,
.fx-select-field--closing .fx-select-menu {
  visibility: visible;
  pointer-events: auto;
}

.fx-select-field--open .fx-select-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fx-select-field--closing .fx-select-menu {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
}

.fx-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--fx-text);
  font-family: var(--font);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s var(--fx-ease), color 0.2s var(--fx-ease);
}

.fx-select-option__code {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.fx-select-option__label {
  font-size: 0.82rem;
  color: var(--fx-muted);
}

.fx-select-option:hover {
  background: rgba(var(--accent-rgb), 0.06);
}

.fx-select-option.is-selected {
  background: rgba(var(--accent-rgb), 0.1);
}

.fx-select-option.is-selected .fx-select-option__code {
  color: var(--accent);
}

.fx-select-field--open .fx-select-option {
  animation: fx-menu-option-in 0.34s var(--fx-ease) both;
}

.fx-select-field--open .fx-select-option:nth-child(1) { animation-delay: 0ms; }
.fx-select-field--open .fx-select-option:nth-child(2) { animation-delay: 35ms; }
.fx-select-field--open .fx-select-option:nth-child(3) { animation-delay: 70ms; }
.fx-select-field--open .fx-select-option:nth-child(4) { animation-delay: 105ms; }

@keyframes fx-menu-option-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fx-input {
  font-size: 18px;
  font-weight: 600;
  min-height: 52px;
  transition:
    border-color 0.32s var(--fx-ease),
    box-shadow 0.32s var(--fx-ease);
}

.fx-input::placeholder {
  color: rgba(10, 10, 10, 0.35);
}

.fx-input:hover {
  border-color: rgba(var(--accent-rgb), 0.28);
}

.fx-input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.fx-pair-block {
  padding: 14px 16px;
  border: var(--sw-accent-outline) solid var(--fx-border);
  border-radius: 14px;
  background: var(--sw-surface-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  transition:
    border-color 0.4s var(--fx-ease),
    box-shadow 0.4s var(--fx-ease),
    transform 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

.fx-pair-block:focus-within {
  border-color: rgba(var(--accent-rgb), 0.34);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08);
}

.fx-pair-block--swapping {
  border-color: rgba(var(--accent-rgb), 0.42);
  transform: scale(0.998);
}

.fx-pair-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
}

.fx-pair-block__title {
  font-family: var(--font-hub-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fx-muted);
}

.fx-pair-route {
  font-family: var(--font-hub-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: var(--sw-accent-outline) solid rgba(var(--accent-rgb), 0.22);
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--accent);
  white-space: nowrap;
  transition:
    transform 0.32s var(--fx-ease),
    border-color 0.32s var(--fx-ease),
    background-color 0.32s var(--fx-ease);
}

.fx-pair-route--pulse {
  animation: fx-route-pulse 0.48s var(--fx-ease);
}

@keyframes fx-route-pulse {
  0% { transform: scale(1); }
  42% {
    transform: scale(1.06);
    border-color: rgba(var(--accent-rgb), 0.42);
    background: rgba(var(--accent-rgb), 0.12);
  }
  100% { transform: scale(1); }
}

.fx-pair-row {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  gap: 10px;
  align-items: end;
}

.fx-pair-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.fx-pair-col--swapping[data-currency-field="from"] {
  animation: fx-col-shift-right 0.56s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fx-pair-col--swapping[data-currency-field="to"] {
  animation: fx-col-shift-left 0.56s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fx-col-shift-right {
  0%, 100% { transform: translateX(0); }
  45% { transform: translateX(6px); }
}

@keyframes fx-col-shift-left {
  0%, 100% { transform: translateX(0); }
  45% { transform: translateX(-6px); }
}

.fx-swap-btn {
  width: 44px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: var(--sw-accent-outline) solid var(--fx-border);
  border-radius: 12px;
  background: var(--sw-surface-light);
  color: rgba(10, 10, 10, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    border-color 0.32s var(--fx-ease),
    color 0.32s var(--fx-ease),
    background 0.32s var(--fx-ease),
    box-shadow 0.32s var(--fx-ease);
}

.fx-swap-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

.fx-swap-btn__icon--spin {
  animation: fx-swap-spin 0.56s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fx-swap-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(180deg); }
}

.fx-swap-btn--spinning {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.28);
}

.fx-swap-btn__icon svg {
  width: 20px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fx-swap-btn:hover {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--accent-rgb), 0.04);
}

.fx-convert-btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    opacity 0.28s var(--fx-ease),
    transform 0.28s var(--fx-ease),
    box-shadow 0.28s var(--fx-ease);
}

.fx-convert-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.28);
}

.fx-convert-btn:active {
  transform: translateY(0);
}

/* ── Result — grows to fill panel ── */
.fx-result-block {
  border: var(--sw-accent-outline) solid var(--fx-border);
  border-radius: 14px;
  background: var(--sw-surface-light);
  overflow: hidden;
  flex: 1;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.32s var(--fx-ease),
    box-shadow 0.32s var(--fx-ease);
}

.fx-result-block--ready {
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.08);
}

.fx-result-block--error {
  border-color: rgba(var(--fx-down), 0.35);
}

.fx-result-block--revealing {
  animation: fx-result-in 0.34s var(--fx-ease) both;
}

@keyframes fx-result-in {
  from {
    opacity: 0.85;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fx-result-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
  background: var(--sw-surface-elevated);
  flex-shrink: 0;
}

.fx-result-block__title {
  font-family: var(--font-hub-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fx-muted);
}

.fx-result-block__date {
  font-family: var(--font-hub-mono);
  font-size: 10px;
  color: var(--fx-muted);
}

.fx-result {
  padding: 14px 16px;
  color: var(--fx-text);
  flex: 1;
  display: flex;
  align-items: center;
}

.fx-result--in {
  animation: fx-result-body-in 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fx-result--in .fx-result__side:first-child {
  animation: fx-result-part-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.fx-result--in .fx-result__arrow {
  animation: fx-result-part-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.fx-result--in .fx-result__side--to {
  animation: fx-result-part-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.fx-result--in .fx-result__value--accent {
  animation: fx-result-accent 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

@keyframes fx-result-body-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fx-result-part-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fx-result-accent {
  from { transform: scale(0.96); }
  to { transform: scale(1); }
}

.fx-result-block--revealing .fx-result-block__date:not([hidden]) {
  animation: fx-result-date-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

@keyframes fx-result-date-in {
  from {
    opacity: 0;
    transform: translateX(6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fx-result__placeholder,
.fx-result__message {
  margin: 0;
  font-size: 0.94rem;
  color: var(--fx-muted);
}

.fx-result-block--error .fx-result__message {
  color: rgb(var(--fx-down));
}

.fx-result__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.fx-result__side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.fx-result__side--to {
  text-align: right;
}

.fx-result__label {
  font-size: 0.8rem;
  color: var(--fx-muted);
}

.fx-result__value {
  font-size: 1.05rem;
  font-weight: 600;
  word-break: break-word;
}

.fx-result__value--accent {
  color: var(--accent);
  font-size: 1.15rem;
}

.fx-result__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fx-muted);
}

.fx-result__arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 960px) {
  .fx-terminal-main {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 0.46fr) minmax(0, 0.54fr);
    overflow: hidden;
  }

  .fx-board-panel,
  .fx-converter-panel {
    min-height: 0;
  }

  .fx-pairs-board {
    grid-template-rows: repeat(2, minmax(0, 1fr)) auto;
    overflow: hidden;
  }

  .fx-pair-card {
    min-height: 0;
  }

  .fx-converter-body {
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  #fx-screen.fx-terminal {
    padding: 12px;
  }

  .fx-pair-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fx-swap-btn {
    justify-self: center;
  }

  .fx-result__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .fx-result__side--to {
    text-align: left;
  }

  .fx-result__arrow {
    transform: rotate(90deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  #fx-screen.fx-terminal {
    transition: none;
  }

  #fx-screen .fx-sync-btn.is-syncing .fx-sync-btn__icon,
  .fx-pair-card--in,
  .fx-select-field--open .fx-select-option,
  .fx-result-block--revealing,
  .fx-result--in,
  .fx-result--in .fx-result__side,
  .fx-result--in .fx-result__arrow,
  .fx-result--in .fx-result__value--accent,
  .fx-pair-route--pulse,
  .fx-pair-col--swapping,
  .fx-swap-btn__icon--spin,
  .fx-select-field--changed .fx-select-trigger,
  #fx-screen.fx-screen--visible .fx-board-panel,
  #fx-screen.fx-screen--visible .fx-converter-panel {
    animation: none !important;
    transition: none !important;
  }

  .fx-pair-card:hover {
    transform: none;
  }

  .fx-select-menu {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
}
