.currency-modal .currency-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(35, 36, 50, 0.24);
  animation: modal-in 180ms ease-out;
}
.currency-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.currency-header h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 24px;
}
.currency-fields {
  display: grid;
  grid-template-columns: 1fr 42px 1fr;
  align-items: end;
  gap: 10px;
}
.currency-box {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.currency-box label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.currency-box input,
.currency-box output,
.currency-box select {
  width: 100%;
  display: block;
}
.currency-box input,
.currency-box output {
  height: 44px;
  margin-bottom: 8px;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 44px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.currency-box input {
  padding: 0;
  border: 0;
  background: transparent;
  outline: none;
}
.currency-box output { white-space: nowrap; }
.currency-box select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  padding: 0 8px;
}
.currency-swap {
  height: 42px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  background: var(--surface);
  font-size: 18px;
  cursor: pointer;
}
.currency-status {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--muted);
  background: var(--bg);
  font-size: 12px;
  text-align: center;
}
.currency-status.error { color: #b64d55; background: #fdeeef; }
body.dark .currency-status.error { background: #3a292e; }
@media (max-width: 540px) {
  .currency-fields { grid-template-columns: 1fr 36px 1fr; }
  .currency-box { padding: 10px; }
  .currency-box input,
  .currency-box output { font-size: 18px; }
}
