.fx-page { padding: 1.6rem 0 3rem; }

.fx-page .chips {
  flex-wrap: wrap;
  overflow: visible;
}

.fx-lede { margin: -0.2rem 0 1.2rem; }

.fx-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  font-size: 0.82rem;
  white-space: nowrap;
}

.fx-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}

.fx-status.live .fx-dot { background: var(--ok); }
.fx-status.cache .fx-dot { background: var(--violet); }
.fx-status.fallback .fx-dot { background: var(--danger); }

.fx-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.fx-card, .fx-board { padding: 1.15rem; min-width: 0; }

.fx-board h2 {
  font-family: Oxanium, Manrope, sans-serif;
  margin: 0 0 0.35rem;
}

.fx-block { margin-top: 1.1rem; }

.fx-amounts-label { margin-top: 0.9rem; }

.fx-picker-wrap { position: relative; z-index: 1; }
.fx-picker-wrap:focus-within { z-index: 5; }

.fx-picker {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #09070f;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.fx-picker-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.fx-picker-text strong {
  font-family: Oxanium, Manrope, sans-serif;
  letter-spacing: 0.04em;
}
.fx-picker-text small { color: var(--muted); }

.fx-mark {
  width: 34px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(124, 58, 237, 0.22);
  color: #e9d5ff;
  font-family: Oxanium, Manrope, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.fx-menu {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #120a1c;
  box-shadow: var(--shadow);
}

.fx-menu[hidden] { display: none !important; }

.fx-search {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0.75rem 0.85rem;
  font-size: 1rem;
  outline: none;
}

.fx-options { max-height: min(280px, 46vh); overflow: auto; }

.fx-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  background: transparent;
  border: 0;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.fx-option strong { color: var(--violet); margin-right: 0.35rem; }
.fx-option:hover, .fx-option.kb, .fx-option.active { background: rgba(124, 58, 237, 0.2); }

.fx-sep { height: 1px; margin: 0.25rem 0.6rem; background: var(--line); }
.fx-empty { margin: 0; padding: 1rem; text-align: center; color: var(--muted); }

.fx-money {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  column-gap: 0.55rem;
  margin-top: 0.7rem;
  min-height: 4.8rem;
  min-width: 0;
}

.fx-symbol {
  padding-bottom: 0.45rem;
  font-family: Oxanium, Manrope, sans-serif;
  font-size: 1.25rem;
  color: var(--violet);
}

.fx-money input,
.fx-result {
  width: 100%;
  min-width: 0;
  min-height: 1.2em;
  margin: 0;
  padding: 0 0 0.08em;
  border: 0;
  background: transparent;
  font-family: Oxanium, Manrope, sans-serif;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.fx-money input:focus { outline: none; }
.fx-money input:focus-visible { outline: none; box-shadow: inset 0 -2px 0 var(--violet); }
.fx-money input.sm, .fx-result.sm { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.fx-money input.xs, .fx-result.xs { font-size: clamp(1.25rem, 3.4vw, 1.8rem); }

.fx-result { color: #e9d5ff; white-space: nowrap; }

.fx-swap-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.7rem;
  margin: 1rem 0 0.4rem;
}

.fx-swap-row span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.fx-swap {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #120a1c;
  color: var(--violet);
  font-size: 1.2rem;
  cursor: pointer;
}

.fx-receive {
  margin-top: 0.4rem;
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(192, 132, 252, 0.28);
  background: rgba(124, 58, 237, 0.1);
}

.fx-sentence { margin: 0.85rem 0 0; }
.fx-sentence strong { color: #e9d5ff; }

.fx-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.fx-meta p { margin: 0; }

.fx-move {
  margin: 0.55rem 0 0;
  font-weight: 800;
}

.fx-move.up { color: var(--ok); }
.fx-move.down { color: var(--danger); }
.fx-move.same { color: var(--muted); font-weight: 600; }

.fx-note { margin: 0.7rem 0 0; color: #fda4af; font-size: 0.92rem; }

.fx-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }

.fx-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.35rem;
  border: 0;
  border-top: 1px solid rgba(168, 85, 247, 0.18);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
}

.fx-row:hover { background: rgba(124, 58, 237, 0.12); }
.fx-row.active { background: rgba(124, 58, 237, 0.2); }
.fx-row .fx-left { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.fx-row .fx-left strong {
  display: block;
  font-family: Oxanium, Manrope, sans-serif;
  font-size: 0.92rem;
}
.fx-row .fx-left small {
  display: block;
  max-width: 140px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fx-val { flex: none; text-align: right; }
.fx-val strong { display: block; font-weight: 800; }
.fx-row.active .fx-val strong { color: #e9d5ff; }
.fx-unit { display: block; margin-top: 0.1rem; color: var(--muted); font-size: 0.72rem; }

@media (max-width: 860px) {
  .fx-layout { grid-template-columns: minmax(0, 1fr); }
  .fx-status { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-swap { transition: none; }
}
