.currency-shell {
  width: min(980px, 94vw);
}

.currency-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.95fr);
  gap: 1rem;
  align-items: start;
}

.currency-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff 0%, #fefcf8 100%);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.currency-card h2 {
  margin: 0 0 0.8rem;
  font-size: 1.08rem;
}

.currency-field {
  margin-bottom: 0.85rem;
}

.currency-field label {
  display: block;
  margin-bottom: 0.34rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.currency-field input,
.currency-field select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fdfcf8;
  color: #1f1f1f;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  padding: 0.58rem 0.62rem;
}

.pair-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.55rem;
  align-items: end;
}

.swap-wrap {
  padding-bottom: 0.85rem;
}

.swap-btn {
  border: 1px solid #b9d9ce;
  background: #ebf7f2;
  color: #0f5b45;
  border-radius: 999px;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: #2f2a24;
}

.toggle-row input {
  width: 1.05rem;
  height: 1.05rem;
}

.refresh-row {
  margin-top: 0.8rem;
}

.refresh-btn {
  border: 1px solid #b9d9ce;
  border-radius: 999px;
  background: #ebf7f2;
  color: #0f5b45;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.42rem 0.78rem;
  cursor: pointer;
}

.refresh-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.result-grid {
  display: grid;
  gap: 0.62rem;
}

.result-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.6rem 0.65rem;
  border: 1px solid #e5ddd1;
  border-radius: 12px;
  background: #fff;
}

.result-line span {
  color: #5f574e;
  font-size: 0.92rem;
}

.result-line strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
}

.source-note {
  margin: 0.8rem 0 0;
  padding: 0.65rem 0.7rem;
  border: 1px solid #e5ddd1;
  border-radius: 12px;
  background: #fff;
  color: #4f483f;
  font-size: 0.88rem;
}

@media (max-width: 860px) {
  .currency-layout {
    grid-template-columns: 1fr;
  }

  .pair-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .swap-wrap {
    padding-bottom: 0.85rem;
  }
}
