/* Divisas · estilos propios */
.top-mid { margin: 0 auto; }
.topbar .top-actions { margin-left: 0; }
.wrap { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.hero-conv { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px 14px; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); }
.side { display: grid; gap: 8px; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); }
.side.from { background: var(--panel); }
.side.from:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.side.to { background: var(--sunken); }
.side-l { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.cur-sel { height: 34px; font-weight: 500; }
.amount { width: 100%; min-width: 0; border: 0; outline: 0; padding: 0; background: none; font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--text); }
.amount.bad { color: var(--danger); }
.amount.res { display: block; color: var(--accent); cursor: copy; overflow-wrap: anywhere; }
.swap-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border-2); border-radius: 50%; background: var(--panel); color: var(--text-2); transition: transform .2s var(--ease); }
.swap-btn:hover { transform: rotate(180deg); color: var(--text); }
.sentence { grid-column: 1 / -1; margin: 0; text-align: center; font-size: 14px; line-height: 1.6; }
.list-h { display: flex; align-items: center; gap: 12px; }
.search { position: relative; flex: 1; }
.search .ic { position: absolute; left: 10px; top: 9px; width: 14px; height: 14px; color: var(--text-3); }
.search input { width: 100%; height: 32px; padding: 0 10px 0 31px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); outline: none; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.list { display: grid; gap: 2px; padding: 4px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border); }
.row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 4px; padding: 2px 6px 2px 2px; border-radius: 10px; }
.row:hover { background: var(--hover); }
.star { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--border-2); }
.star .ic { width: 15px; height: 15px; }
.star:hover { color: var(--text-3); }
.star.on { color: var(--star); }
.star.on .ic { fill: currentColor; }
.cur { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 4px; border: 0; background: none; text-align: left; }
.flag { font-size: 22px; line-height: 1; }
.cur span:last-child { display: flex; flex-direction: column; min-width: 0; }
.cur b { font-size: 13.5px; }
.cur small { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.val { display: flex; flex-direction: column; align-items: flex-end; padding: 6px 4px; border: 0; background: none; text-align: right; cursor: copy; }
.val b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.val small { font-size: 11px; color: var(--text-3); }
.note { margin: 0; line-height: 1.55; }
@media (max-width: 640px) {
  .hero-conv { grid-template-columns: minmax(0, 1fr); }
  .swap-btn { justify-self: center; transform: rotate(90deg); }
  .swap-btn:hover { transform: rotate(270deg); }
  .list-h { flex-wrap: wrap; } .list-h .sec-t { width: 100%; }
  .top-mid { display: none; } .topbar .top-actions { margin-left: auto; }
}

/* Pantallas táctiles */
:root[data-input="touch"] .search input { height: 42px; font-size: 16px; }
:root[data-input="touch"] .search .ic { top: 14px; }
:root[data-input="touch"] .star { width: 40px; height: 44px; }
:root[data-input="touch"] .star .ic { width: 17px; height: 17px; }
