.bq { position: sticky; top: 84px; overflow: hidden; }
.bq-title { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); margin: 0; }
.err { color: #ff9a9a; margin: 0; }
.bq-note { font-size: 13px; margin: 0; }
.mono { font-variant-numeric: tabular-nums; }

/* the route line between the two chains */
.route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; color: var(--muted); }
.route svg { width: 100%; height: 20px; overflow: visible; }
.route circle { fill: var(--pink); }
.rt-base { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 2; stroke-linecap: round; }
.rt-flow { fill: none; stroke: var(--pink); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 9; animation: rt-flow 1.1s linear infinite; }
.bq.is-busy .rt-flow { animation-duration: .45s; }
@keyframes rt-flow { to { stroke-dashoffset: -12; } }

/* quote rows */
.qrows { display: grid; gap: 10px; margin: 0; }
.qrows > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.qrows dt { color: var(--muted); }
.qrows dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.qrows.pop > div { animation: q-in .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes q-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.qrows.loading dd { color: transparent; min-width: 96px; border-radius: 7px; background: linear-gradient(100deg, rgba(255, 255, 255, .08) 30%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, .08) 70%) 0 0 / 220% 100%; animation: sk 1.1s linear infinite; }
@keyframes sk { to { background-position: -220% 0; } }
#q-out { font-size: 20px; font-weight: 800; color: var(--text); }

/* choices and the action button */
.seg button { transition: background .2s, color .2s, transform .15s; }
.seg button:active { transform: scale(.97); }
.btn.is-ready { animation: ready 2.6s ease-in-out infinite; }
@keyframes ready { 0%, 100% { box-shadow: 0 10px 30px rgba(244, 163, 181, .28); } 50% { box-shadow: 0 14px 44px rgba(244, 163, 181, .55); } }
.btn-wide { width: 100%; }
#manual[hidden] { display: none; }

/* wallet rows */
.wal { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wal .mono { font-size: 13px; }
.wal-hint { margin: 0; font-size: 13px; }
.wal-hint[hidden] { display: none; }
.wal .on { animation: q-in .35s both; }
.near-row { display: flex; gap: 10px; align-items: stretch; }
.near-row input { flex: 1 1 auto; min-width: 0; }
.near-row .btn[hidden], .wal .btn[hidden] { display: none; }
#f-recipient.from-wallet { border-color: rgba(244, 163, 181, .55); }

/* progress dialog */
.lm-card > :not(.br-art):not(.lm-x) { position: relative; z-index: 1; }
.lm-x { z-index: 2; }
.br-art { position: absolute; inset: 0 0 auto 0; z-index: 0; width: 100%; height: 150px; object-fit: cover; opacity: .32; border-radius: 26px 26px 0 0; pointer-events: none; -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
.lm-extra:empty { display: none; }
.br-send { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(6, 20, 28, .55); border: 1px solid rgba(255, 255, 255, .12); animation: q-in .4s both; }
.br-send code { display: block; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .25); overflow-wrap: anywhere; font-size: 13px; }
.br-send .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.br-send p { margin: 0; font-size: 14px; }

@media (max-width: 899px) { .bq { position: static; } }
@media (prefers-reduced-motion: reduce) {
  .rt-flow, .btn.is-ready, .qrows.pop > div, .qrows.loading dd, .br-send, .wal .on { animation: none !important; }
  .seg button { transition: none; }
}
