/* Knode Swap — builds on styles.css (same colours, fonts and buttons). */
.swap-hero > * { min-width: 0; }
.swap-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 36px; }
.swap-copy h1 { margin: 12px 0 14px; }
.grow-note { margin-top: 18px; max-width: 46ch; }

.swap-card { background: var(--surface); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.swap-leg { background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; transition: border-color .15s; }
.swap-leg:focus-within { border-color: var(--violet); }
.swap-leg.receive { background: var(--mint-soft); border-color: transparent; }
.leg-top { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.leg-row { display: flex; align-items: center; gap: 10px; }
.leg-row .btn-small { min-height: 34px; }
.leg-row input, .leg-row output { flex: 1; min-width: 0; font: 800 2rem/1.1 var(--display); color: var(--ink); background: none; border: 0; padding: 0; outline: none; }
.leg-row output { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token-tag { font: 700 .95rem/1 var(--display); padding: 8px 12px; border-radius: 999px; }
.token-tag.vhp { background: var(--violet-soft); color: var(--violet); }
.token-tag.koin { background: var(--surface); color: var(--mint); }
.swap-arrow { align-self: center; width: 36px; height: 36px; margin: -18px 0; z-index: 1; display: grid; place-items: center; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); font-weight: 800; color: var(--violet); }
.quote-facts { margin: 10px 2px 0; font-size: .9rem; }
.swap-go { width: 100%; justify-content: center; min-height: 52px; font-size: 1.05rem; margin-top: 8px; }
.fine { font-size: .82rem; margin-top: 4px; }

.swap-section { margin-top: 56px; }
.recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.recent li { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; background: var(--surface); border-radius: var(--r-md); padding: 12px 16px; box-shadow: var(--shadow); font-size: .95rem; }
.recent li.empty { display: block; color: var(--muted); }
.recent .who { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; }
.recent .amt b { font-weight: 800; }
.recent .when { color: var(--muted); font-size: .85rem; white-space: nowrap; }

.swap-section .steps { margin-bottom: 24px; }
.steps li > span { display: block; color: var(--muted); margin-top: 8px; }
.faq details { background: var(--surface); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 8px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin-top: 8px; color: var(--muted); }

@media (max-width: 860px) {
  .swap-hero { grid-template-columns: 1fr; gap: 24px; margin-top: 20px; }
  .recent li { grid-template-columns: 1fr auto; }
  .recent .when { grid-column: 1 / -1; }
}
