:root {
  --bg: #0a0a0a;
  --ink: #f7f7f2;
  --muted: rgba(247, 247, 242, 0.54);
  --dim: rgba(247, 247, 242, 0.22);
  --panel: #020202;
  --panel-2: #121212;
  --line: rgba(255, 255, 255, 0.09);
  --green: #8cff78;
  --green-2: #45f596;
  --purple: #e35cff;
  --teal: #58edd9;
  --base: #0052ff;
  --shadow: 0 32px 110px rgba(0, 0, 0, 0.62);
  --composer-width: min(440px, calc(100vw - 48px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@font-face {
  font-family: 'Rogient Block';
  src: local('Rogient Block'), local('RogientBlock'), local('Rogient Block Regular');
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: 0;
}

body.consent-locked {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #0a0a0a;
  transition: filter 220ms ease, transform 220ms ease;
}

body.consent-locked .page {
  filter: blur(14px);
  transform: scale(1.01);
  pointer-events: none;
  user-select: none;
}

.doodle-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 14%, rgba(227, 92, 255, 0.16), transparent 22%),
    radial-gradient(circle at 22% 22%, rgba(98, 72, 176, 0.16), transparent 28%),
    linear-gradient(rgba(4, 4, 4, 0.82), rgba(4, 4, 4, 0.91)),
    url("/beanie-bg.jpg") center center / cover no-repeat fixed,
    #0a0a0a;
}

.background-art {
  display: none !important;
}

.pattern-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none !important;
  opacity: 0;
}

.pattern-svg--tall {
  display: none !important;
}

@media (max-aspect-ratio: 4 / 3) {
  .pattern-svg--wide {
    display: none !important;
  }

  .pattern-svg--tall {
    display: none !important;
  }
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(10, 10, 10, 0.34) 0 18rem, rgba(10, 10, 10, 0.58) 31rem, rgba(10, 10, 10, 0.82) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.34), rgba(10, 10, 10, 0.18) 24%, rgba(10, 10, 10, 0.18) 76%, rgba(10, 10, 10, 0.34));
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 42px 42px;
}

.brand {
  position: fixed;
  top: 32px;
  left: 34px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: soft-enter 520ms cubic-bezier(.2, .8, .2, 1) both;
}

.wordmark {
  font-family: 'Slackey', 'Rogient Block', 'Rogient', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.22rem, 4.45vw, 3.76rem);
  line-height: 0.94;
  font-weight: 400;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: #f7f7f2;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
  transform: scaleX(1.02);
  transform-origin: left center;
}

.wordmark .colon {
  position: relative;
  display: inline-flex;
  width: 0.34em;
  height: 0.86em;
  margin: 0 0.055em 0 0.075em;
  color: transparent;
  vertical-align: -0.05em;
  text-shadow: none;
}

.wordmark .colon::before,
.wordmark .colon::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0.26em;
  height: 0.26em;
  border-radius: 999px;
  background: var(--purple);
  transform: translateX(-50%);
  box-shadow: 0 0 24px rgba(227, 92, 255, 0.44);
}

.wordmark .colon::before {
  top: 0.13em;
}

.wordmark .colon::after {
  bottom: 0.12em;
}

.right-rail {
  position: fixed;
  top: 32px;
  right: 24px;
  z-index: 6;
  display: grid;
  justify-items: end;
  gap: 14px;
  animation: rail-enter 620ms cubic-bezier(.2, .8, .2, 1) 90ms both;
}

.rail-pill {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: #f7f7f2;
  color: #050505;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 520;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1), background 220ms ease, opacity 220ms ease;
}

.rail-pill:hover {
  transform: translateX(-4px);
  background: #ffffff;
}

.rail-pill:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
  background: rgba(247, 247, 242, 0.64);
}

.rail-pill .arrow {
  font-size: 1.05rem;
  line-height: 1;
}

.rail-pill .share-symbol {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
}

.rail-pill .share-symbol svg {
  width: 16px;
  height: 16px;
  display: block;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.file-open-warning {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  z-index: 20;
  max-width: min(520px, calc(100vw - 28px));
  border-radius: 999px;
  background: #f7f7f2;
  color: #050505;
  padding: 11px 16px;
  font-size: 0.86rem;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 18, 0.38);
  backdrop-filter: blur(12px);
}

.consent-overlay:not([hidden]) {
  display: grid;
  animation: modal-fade 180ms ease both;
}

.consent-card {
  width: min(660px, calc(100vw - 32px));
  border-radius: 34px;
  background: #040a14;
  color: #f7f7f2;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.72), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  animation: modal-rise 220ms cubic-bezier(.2, .82, .22, 1) both;
}

.consent-card-top {
  min-height: 156px;
  display: grid;
  place-items: center;
  padding: 24px 28px;
  background: linear-gradient(90deg, rgba(73, 44, 112, 0.85), rgba(37, 60, 99, 0.92));
}

.consent-card-top svg {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.32));
}

.consent-wordmark {
  font-family: 'Slackey', 'Rogient Block', 'Rogient', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.5rem, 6vw, 3.6rem);
  line-height: 0.94;
  font-weight: 400;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: #f7f7f2;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
  transform: scaleX(1.02);
  transform-origin: center;
}

.consent-wordmark .colon {
  position: relative;
  display: inline-flex;
  width: 0.34em;
  height: 0.86em;
  margin: 0 0.055em 0 0.075em;
  color: transparent;
  vertical-align: -0.05em;
  text-shadow: none;
}

.consent-wordmark .colon::before,
.consent-wordmark .colon::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0.26em;
  height: 0.26em;
  border-radius: 999px;
  background: var(--purple);
  transform: translateX(-50%);
  box-shadow: 0 0 24px rgba(227, 92, 255, 0.44);
}

.consent-wordmark .colon::before {
  top: 0.13em;
}

.consent-wordmark .colon::after {
  bottom: 0.12em;
}

.consent-card-body {
  padding: 26px 30px 14px;
}

.consent-card-body h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  line-height: 1.02;
  font-weight: 820;
}

.consent-card-body p {
  margin: 0;
  color: rgba(247, 247, 242, 0.72);
  font-size: 1rem;
  line-height: 1.55;
}

.consent-card-body a {
  color: #f7f7f2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.consent-card-actions {
  padding: 0 20px 20px;
}

.consent-accept {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #73a9ff, #5e95ef);
  color: #f7f7f2;
  font-size: 1rem;
  font-weight: 760;
  cursor: pointer;
  box-shadow: 0 14px 44px rgba(75, 126, 222, 0.26);
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1), box-shadow 180ms ease;
}

.consent-accept:hover,
.consent-accept:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 50px rgba(75, 126, 222, 0.34);
}

.consent-accept:focus-visible {
  outline: 2px solid rgba(247, 247, 242, 0.9);
  outline-offset: 3px;
}

.file-open-warning a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

html.js-ready .file-open-warning {
  display: none;
}

main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 82px 18px;
  position: relative;
  z-index: 3;
}

.stage {
  width: var(--composer-width);
  display: grid;
  gap: 10px;
  transform: translateY(0);
  animation: stage-enter 620ms cubic-bezier(.2, .8, .2, 1) 130ms both;
}

.stage.created {
  transform: translateY(-46px);
}

.surface {
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.composer {
  padding: 0;
  display: grid;
  gap: 7px;
  justify-items: center;
  width: 100%;
}

.stage.created .composer {
  display: none;
}

.composer>label {
  width: 100%;
  display: block;
}

.destination-shell {
  width: 100%;
  justify-self: center;
  min-height: 64px;
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(227, 92, 255, 0.03), rgba(255, 255, 255, 0.01)),
    #030303;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  column-gap: 6px;
  padding: 0 8px 0 16px;
  box-shadow:
    0 22px 68px rgba(0, 0, 0, 0.46),
    inset 0 0 0 1px rgba(247, 247, 242, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: box-shadow 220ms ease, background 220ms ease, transform 220ms cubic-bezier(.2, .8, .2, 1), filter 220ms ease;
  position: relative;
}

.destination-shell:hover {
  background:
    linear-gradient(180deg, rgba(227, 92, 255, 0.04), rgba(255, 255, 255, 0.01)),
    #050505;
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(247, 247, 242, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.destination-shell:focus-within {
  background: #050505;
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.46),
    0 0 0 3px rgba(227, 92, 255, 0.10),
    inset 0 0 0 1px rgba(227, 92, 255, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transform: translateY(-1px);
}

.destination-shell:has(.destination.invalid) {
  box-shadow: inset 0 0 0 1px rgba(255, 92, 92, 0.72), 0 0 0 4px rgba(255, 92, 92, 0.10);
}

.destination {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  color: rgba(247, 247, 242, 0.9);
  background: transparent;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 340;
  letter-spacing: 0;
  caret-color: var(--purple);
  overflow: hidden;
  text-overflow: ellipsis;
}

.destination::placeholder {
  color: rgba(247, 247, 242, 0.48);
}

.input-error {
  display: none;
  min-height: 0;
  padding: 0 14px;
  color: rgba(255, 142, 142, 0.9);
  font-size: 0.78rem;
  font-weight: 760;
}

.input-error:not(:empty) {
  display: block;
  margin-top: -2px;
  margin-bottom: 2px;
}

.inline-config {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  min-height: 30px;
}

.history-btn {
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(247, 247, 242, 0.47);
  padding: 0 0 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.94rem;
  font-weight: 300;
  justify-self: center;
  transition: color 180ms ease, transform 180ms ease;
}

.history-btn .action-icon {
  font-size: 1.08em;
  line-height: 1;
  color: rgba(247, 247, 242, 0.5);
  font-weight: 300;
}

.route-settings .action-icon {
  line-height: 1;
  color: rgba(247, 247, 242, 0.5);
  font-weight: 300;
}

.route-settings .action-icon {
  font-size: 2.02em;
}

.history-btn:hover {
  color: rgba(247, 247, 242, 0.72);
  transform: translateX(2px);
}

.utility-stack {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.receivers-btn {
  justify-content: flex-end;
  text-align: right;
}

.receivers-btn .action-icon {
  font-size: 1em;
}

.route-settings {
  width: fit-content;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  color: rgba(247, 247, 242, 0.5);
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 330;
  white-space: nowrap;
  justify-self: start;
  transition: color 180ms ease, transform 180ms ease;
}

.route-settings:hover {
  color: rgba(247, 247, 242, 0.76);
  transform: translateX(2px);
}

.route-summary {
  color: var(--purple);
  font-size: 0.76rem;
  font-weight: 460;
  padding: 0;
  text-align: right;
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.chain-trigger {
  width: 40px;
  height: 32px;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent !important;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1);
  position: relative;
}

.chain-trigger:hover {
  transform: translateY(-1px);
}

.chain-trigger:hover .chain-icon {
  filter: drop-shadow(0 0 18px rgba(227, 92, 255, 0.28));
  transform: scale(1.07);
}

.chain-trigger:focus-visible {
  outline: 2px solid rgba(227, 92, 255, 0.58);
  outline-offset: 5px;
}

.chain-trigger:active {
  transform: scale(0.96);
}

#settlementTrigger {
  display: none;
}

.chain-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1);
}

.chain-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

#sourceTrigger .chain-copy,
#sourceTrigger .chev {
  display: none;
}

.chain-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.chain-label {
  display: none;
  color: rgba(247, 247, 242, 0.42);
  font-size: 0.74rem;
  font-weight: 780;
}

.chain-name {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chev {
  margin-left: auto;
  width: 12px;
  height: 12px;
  border-right: 3px solid rgba(247, 247, 242, 0.68);
  border-bottom: 3px solid rgba(247, 247, 242, 0.68);
  transform: rotate(45deg) translateY(-2px);
}

.create-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  justify-self: center;
  min-height: 54px;
  border: 1px solid rgba(74, 38, 92, 0.7);
  border-radius: 17px;
  color: rgba(247, 247, 242, 0.96);
  background:
    radial-gradient(circle at 50% -20%, rgba(227, 92, 255, 0.09), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.006)),
    #000;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 760;
  letter-spacing: 0.01em;
  box-shadow:
    0 22px 68px rgba(0, 0, 0, 0.54),
    0 0 0 1px rgba(227, 92, 255, 0.09),
    0 12px 34px rgba(0, 0, 0, 0.32),
    0 14px 34px rgba(109, 39, 124, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    inset 0 -1px 0 rgba(0, 0, 0, 0.72);
  transition:
    transform 220ms cubic-bezier(.2, .8, .2, 1),
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease;
}

.create-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(227, 92, 255, 0.16), transparent);
  opacity: 0;
  transform: translateX(-72%);
  transition: opacity 220ms ease, transform 520ms cubic-bezier(.2, .8, .2, 1);
}

.create-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(227, 92, 255, 0.38);
  background:
    radial-gradient(circle at 50% -20%, rgba(227, 92, 255, 0.105), transparent 46%),
    linear-gradient(180deg, rgba(227, 92, 255, 0.038), rgba(255, 255, 255, 0.006)),
    #000;
  color: #ffffff;
  box-shadow:
    0 26px 76px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(227, 92, 255, 0.14),
    0 16px 46px rgba(227, 92, 255, 0.08),
    inset 0 1px 0 rgba(227, 92, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.72);
}

.create-btn:hover::after {
  opacity: 1;
  transform: translateX(72%);
}

.create-btn:focus-visible {
  outline: 2px solid rgba(201, 92, 255, 0.44);
  outline-offset: 4px;
}

.create-btn:active {
  transform: translateY(0) scale(0.994);
}

.result {
  display: none;
  padding: 0;
  border-top: 0;
  background: transparent;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms cubic-bezier(.2, .8, .2, 1), transform 320ms cubic-bezier(.2, .8, .2, 1);
}

.result.visible {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}

.result.visible .qr-wrap,
.result.visible .address-row,
.result.visible .result-actions,
.result.visible .relay-opt-in,
.result.visible .fee {
  animation: result-rise 420ms cubic-bezier(.2, .8, .2, 1) both;
}

.result.visible .address-row {
  animation-delay: 80ms;
}

.result.visible .fee {
  animation-delay: 140ms;
}

.result.visible .relay-opt-in {
  animation-delay: 170ms;
}

.result-actions {
  display: flex;
  justify-content: center;
  margin-top: -2px;
}

.result-back {
  width: fit-content;
  border: 0;
  background: transparent;
  color: rgba(247, 247, 242, 0.52);
  padding: 0 0 2px 4px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 360;
  justify-self: start;
  transition: color 180ms ease, transform 180ms ease;
}

.result-back:hover {
  color: rgba(247, 247, 242, 0.78);
  transform: translateX(-2px);
}

.qr-wrap {
  width: min(360px, calc(100vw - 48px));
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 12px;
  border-radius: 34px;
  background: #f8fff9;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.44);
  position: relative;
  overflow: hidden;
}

#qr {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  transition: filter 260ms ease, opacity 260ms ease;
}

.qr-wrap.pending #qr {
  filter: blur(10px);
  opacity: 0.68;
}

.qr-wrap.pending::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(5, 5, 5, 0.18);
  border-top-color: rgba(5, 5, 5, 0.76);
  transform: translate(-50%, -50%);
  animation: qr-spin 800ms linear infinite;
}

@keyframes qr-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.qr-link {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-wrap.pending .qr-link {
  pointer-events: none;
}

.address-row {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  min-height: 38px;
  border-radius: 10px;
  background: rgba(8, 8, 7, 0.42);
  box-shadow: none;
  padding: 5px 2px 5px 10px;
  margin: 0 auto;
}

.address {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(247, 247, 242, 0.82);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.62rem, 1.8vw, 0.72rem);
  font-weight: 390;
  letter-spacing: 0;
  transition: filter 220ms ease, opacity 220ms ease;
}

.result.locked .address {
  filter: blur(4px);
  opacity: 0.58;
  user-select: none;
}

.result.locked .copy {
  opacity: 0.38;
  pointer-events: none;
}

.copy {
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  border: 0;
  border-radius: 7px;
  padding: 0;
  color: rgba(247, 247, 242, 0.76);
  background: transparent;
  cursor: pointer;
  font-size: 0;
  font-weight: 420;
  display: grid;
  place-items: center;
  transition: background 170ms ease, color 170ms ease, transform 170ms cubic-bezier(.2, .8, .2, 1);
}

.copy::before {
  content: "⧉";
  font-size: 0.88rem;
  line-height: 1;
}

.copy:hover {
  background: rgba(227, 92, 255, 0.13);
  color: var(--ink);
  transform: translateY(-1px);
}

.fee {
  margin: -1px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 300;
}

.fee-rate {
  color: #55ff26;
  font-weight: 300;
}

.fee-sep {
  color: rgba(247, 247, 242, 0.42);
}

.fee-route {
  color: var(--purple);
  font-weight: 300;
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.relay-opt-in {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 7px auto 0;
  color: rgba(247, 247, 242, 0.42);
  font-size: 0.76rem;
  font-weight: 360;
}

.relay-open {
  min-height: 31px;
  border: 1px solid rgba(247, 247, 242, 0.16);
  border-radius: 12px;
  background: rgba(247, 247, 242, 0.08);
  color: rgba(247, 247, 242, 0.72);
  padding: 0 13px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 520;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background 180ms ease, color 180ms ease, transform 180ms cubic-bezier(.2, .8, .2, 1), box-shadow 180ms ease;
}

.relay-open::before {
  content: "⇄";
  margin-right: 7px;
  color: rgba(247, 247, 242, 0.5);
  font-weight: 400;
}

.relay-open:hover {
  background: rgba(247, 247, 242, 0.12);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.relay-open:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.status-line {
  margin: -6px 0 0;
  color: rgba(247, 247, 242, 0.42);
  text-align: center;
  font-size: 0.76rem;
  font-weight: 420;
}

.status-line.error {
  color: rgba(255, 112, 112, 0.92);
}

.fine-print {
  margin: 0;
  color: rgba(247, 247, 242, 0.52);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 880;
}

.chain-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(11px);
}

.chain-modal.open {
  display: grid;
}

.chain-sheet {
  width: min(420px, 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #020202;
  box-shadow: 0 40px 150px rgba(0, 0, 0, 0.82);
  overflow: hidden;
  transform: translateY(8px) scale(.98);
  opacity: 0;
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1), opacity 220ms ease;
}

.chain-modal.open .chain-sheet {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.chain-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px 12px;
  color: rgba(247, 247, 242, 0.58);
  font-size: 0.96rem;
  font-weight: 840;
}

.chain-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.09);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 900;
}

.chain-list {
  display: grid;
  gap: 7px;
  padding: 0 12px 12px;
}

.chain-option {
  min-height: 60px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: #151515;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 14px;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms cubic-bezier(.2, .8, .2, 1);
}

.chain-option:hover,
.chain-option[aria-selected="true"] {
  background: #2c2c2c;
  border-color: rgba(227, 92, 255, 0.5);
}

.chain-option:active {
  transform: scale(0.99);
}

.route-modal,
.relay-modal,
.history-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.38);
}

.route-modal.open,
.relay-modal.open,
.history-modal.open {
  display: grid;
  animation: modal-fade 180ms ease both;
}

.route-sheet,
.relay-sheet,
.history-sheet {
  width: min(560px, calc(100vw - 32px));
  max-height: min(82vh, 760px);
  overflow: auto;
  border-radius: 30px;
  background: #020202;
  color: var(--ink);
  padding: 22px;
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.68), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: modal-rise 240ms cubic-bezier(.2, .82, .22, 1) both;
}

.route-sheet {
  width: min(376px, calc(100vw - 32px));
  border-radius: 20px;
  padding: 15px;
}

.relay-sheet {
  width: min(396px, calc(100vw - 32px));
  border-radius: 22px;
  padding: 16px;
}

.history-sheet {
  background: #020202;
  color: var(--ink);
  width: min(440px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 24px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 10px;
}

.modal-title {
  display: grid;
  gap: 4px;
}

.modal-title strong {
  font-size: 1.05rem;
  font-weight: 930;
}

.modal-title span {
  color: rgba(247, 247, 242, 0.48);
  font-size: 0.84rem;
  font-weight: 720;
}

.history-sheet .modal-title span {
  color: rgba(247, 247, 242, 0.44);
  font-weight: 360;
}

.history-sheet .modal-title strong {
  font-weight: 420;
}

.receivers-sheet {
  width: min(520px, calc(100vw - 32px));
}

.history-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  position: relative;
}

.history-chain-select {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(247, 247, 242, 0.72);
  padding: 0 10px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 360;
  transition: background 170ms ease, transform 170ms cubic-bezier(.2, .8, .2, 1);
}

.history-chain-select:hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-1px);
}

.history-chain-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 42px;
  z-index: 70;
  display: none;
  min-width: 138px;
  padding: 6px;
  border-radius: 16px;
  background: #050505;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.56), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.source-chain-menu {
  position: absolute;
  top: auto;
  bottom: calc(100% + 5px);
  right: 0;
  z-index: 24;
  display: none;
  min-width: 148px;
  padding: 6px;
  border-radius: 16px;
  background: #050505;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.58), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.source-chain-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 10px;
}

.history-chain-menu.open,
.source-chain-menu.open {
  display: grid;
  gap: 4px;
  animation: modal-rise 180ms cubic-bezier(.2, .82, .22, 1) both;
}

.history-chain-option,
.source-chain-option {
  min-height: 34px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(247, 247, 242, 0.68);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 360;
  text-align: left;
}

.history-chain-option:hover,
.history-chain-option[aria-selected="true"],
.source-chain-option:hover,
.source-chain-option[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.history-chain-select .mini-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}

.history-chain-select svg {
  width: 20px;
  height: 20px;
}

.history-chain-option .mini-icon,
.source-chain-option .mini-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
}

.history-chain-option .mini-icon svg,
.source-chain-option .mini-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.modal-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 1.55rem;
  line-height: 1;
}

.route-fields {
  display: grid;
  gap: 8px;
  font-weight: 300;
}

.relay-fields {
  display: grid;
  gap: 10px;
}

.relay-lane {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  color: rgba(247, 247, 242, 0.66);
  font-size: 0.74rem;
  font-weight: 320;
}

#relayLaneText {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  min-width: 0;
}

.relay-lane .relay-arrow {
  color: rgba(247, 247, 242, 0.5);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1;
}

.relay-lane .mini-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
}

.relay-lane svg {
  width: 24px;
  height: 24px;
}

.relay-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.065);
}

.relay-mode button {
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(247, 247, 242, 0.52);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 360;
  transition: background 170ms ease, color 170ms ease, transform 170ms cubic-bezier(.2, .8, .2, 1);
}

.relay-mode button[aria-pressed="true"] {
  background: rgba(247, 247, 242, 0.11);
  color: rgba(247, 247, 242, 0.88);
}

.relay-mode button:hover {
  transform: translateY(-1px);
}

.relay-lane strong {
  color: var(--ink);
  font-weight: 360;
}

.relay-field {
  display: grid;
  gap: 5px;
}

.relay-field span {
  color: rgba(247, 247, 242, 0.52);
  font-size: 0.72rem;
  font-weight: 320;
  padding-left: 3px;
}

.relay-field input {
  min-height: 42px;
  border: 0;
  outline: 0;
  border-radius: 16px;
  background: #11100d;
  color: var(--ink);
  padding: 0 13px;
  font-size: clamp(0.58rem, 1.8vw, 0.76rem);
  font-weight: 360;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(244, 232, 197, 0.12);
}

.relay-field input::placeholder {
  color: rgba(247, 247, 242, 0.32);
  font-weight: 320;
  text-transform: lowercase;
}

.relay-field input:focus {
  box-shadow: inset 0 0 0 1px rgba(227, 92, 255, 0.58), 0 0 0 4px rgba(227, 92, 255, 0.12);
}

.relay-to-field {
  display: none;
}

.relay-modal[data-direction="outbound"] .relay-to-field {
  display: grid;
}

.relay-quote {
  display: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(247, 247, 242, 0.6);
  padding: 10px 12px;
  font-size: 0.72rem;
  font-weight: 320;
  line-height: 1.35;
}

.relay-quote.visible {
  display: block;
}

.relay-status {
  min-height: 18px;
  color: rgba(247, 247, 242, 0.44);
  font-size: 0.72rem;
  font-weight: 320;
}

.relay-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.relay-actions .relay-secondary.connected {
  flex: 0 0 10px !important;
  display: inline-block !important;
  overflow: hidden;
  align-self: center;
  inline-size: 10px !important;
  block-size: 10px !important;
  min-inline-size: 10px !important;
  min-block-size: 10px !important;
  max-inline-size: 10px !important;
  max-block-size: 10px !important;
}

.relay-secondary,
.relay-primary {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 420;
  transition: transform 170ms cubic-bezier(.2, .8, .2, 1), background 170ms ease, opacity 170ms ease;
}

.relay-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 247, 242, 0.76);
}

.relay-secondary.connected {
  width: 10px !important;
  min-width: 10px !important;
  max-width: 10px !important;
  min-height: 10px !important;
  max-height: 10px !important;
  height: 10px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #55ff26 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  box-shadow: none !important;
}

.relay-secondary.connected::before {
  content: none;
}

.relay-primary {
  background: var(--purple);
  color: #f7f7f2;
  margin-left: auto;
}

.relay-secondary:hover,
.relay-primary:hover {
  transform: translateY(-1px);
}

.relay-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.route-label {
  color: rgba(247, 247, 242, 0.56);
  font-size: 0.74rem;
  font-weight: 320;
  padding-left: 3px;
}

.route-heading {
  padding-top: 2px;
  font-weight: 420;
}

.route-modal .route-label {
  color: rgba(247, 247, 242, 0.52);
  font-size: 0.72rem;
  font-weight: 320;
  padding-left: 3px;
}

.route-modal .route-heading {
  padding-top: 2px;
  font-weight: 420;
}

.route-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.065);
}

.route-choice button {
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(247, 247, 242, 0.52);
  cursor: pointer;
  font-weight: 360;
  font-size: 0.72rem;
}

.route-choice button[aria-pressed="true"] {
  background: rgba(247, 247, 242, 0.11);
  color: rgba(247, 247, 242, 0.88);
}

.route-field {
  display: grid;
  gap: 5px;
}

.route-field span {
  color: rgba(247, 247, 242, 0.52);
  font-size: 0.72rem;
  font-weight: 320;
  padding-left: 3px;
}

.route-field>.route-label.route-heading {
  color: rgba(247, 247, 242, 0.58);
  font-size: 0.78rem;
  font-weight: 620;
  padding-top: 3px;
  padding-left: 3px;
}

.route-modal.same-mode .route-cross-only {
  display: none;
}

.route-field input {
  min-height: 36px;
  border: 0;
  outline: 0;
  border-radius: 12px;
  background: #11100d;
  color: var(--ink);
  padding: 0 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.58rem, 1.8vw, 0.76rem);
  font-weight: 360;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(244, 232, 197, 0.12);
}

.route-field input::placeholder {
  color: rgba(247, 247, 242, 0.32);
  font-weight: 320;
  letter-spacing: 0;
  text-transform: lowercase;
}

.route-field.same-mode input {
  min-height: 30px;
  border-radius: 0;
  background: transparent;
  padding: 0 4px;
  color: rgba(247, 247, 242, 0.62);
  font-weight: 460;
  box-shadow: none;
  -webkit-text-fill-color: rgba(247, 247, 242, 0.62);
  opacity: 1;
}

.route-field input:focus {
  box-shadow: inset 0 0 0 1px rgba(227, 92, 255, 0.58), 0 0 0 4px rgba(227, 92, 255, 0.12);
}

.route-settlement {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.route-chain {
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-weight: 360;
  font-size: 0.78rem;
  transition: background 170ms ease, color 170ms ease, transform 170ms cubic-bezier(.2, .8, .2, 1), box-shadow 170ms ease;
}

.route-chain:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(247, 247, 242, 0.08);
  transform: translateY(-1px);
}

.route-chain:disabled {
  cursor: default;
  opacity: 0.38;
}

.route-chain:disabled:hover {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
  transform: none;
}

.route-chain[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px rgba(227, 92, 255, 0.78), 0 0 0 1px rgba(227, 92, 255, 0.05);
  background: rgba(227, 92, 255, 0.11);
}

.route-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}

.route-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0;
}

.route-save {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: #f7f7f2;
  color: #050505;
  padding: 0 11px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 360;
  opacity: 0.82;
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1), background 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.route-save:hover {
  background: rgba(247, 247, 242, 0.82);
  opacity: 1;
  transform: translateY(-1px) scale(1.035);
  box-shadow: 0 10px 28px rgba(247, 247, 242, 0.12);
}

.route-save:active {
  transform: translateY(0) scale(0.94);
}

.route-legal {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 0;
  color: rgba(247, 247, 242, 0.34);
  font-size: 0.68rem;
  font-weight: 300;
}

.route-legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.balance-card {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  color: #f7f7f2;
  padding: 16px 17px;
  margin-bottom: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.065);
}

.balance-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.balance-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(247, 247, 242, 0.46);
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 320;
}

.balance-value {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1;
  font-weight: 320;
}

.balance-subvalue {
  margin-top: 8px;
  color: rgba(247, 247, 242, 0.52);
  font-size: 0.76rem;
  font-weight: 300;
}

.help-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(247, 247, 242, 0.12);
  color: rgba(247, 247, 242, 0.56);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: help;
  position: relative;
  vertical-align: middle;
  margin-left: 4px;
}

.tx-help::after,
.help-dot::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 60;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: min(220px, calc(100vw - 48px));
  border-radius: 12px;
  background: #121212;
  color: #f7f7f2;
  padding: 10px 12px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.13);
  opacity: 0;
  pointer-events: none;
  white-space: pre-line;
  font-size: 0.72rem;
  line-height: 1.35;
  font-weight: 560;
  transition: opacity 160ms ease, transform 160ms ease;
}

.tx-help:hover::after,
.tx-help:focus-visible::after,
.help-dot:hover::after,
.help-dot:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.route-label .help-dot::after {
  left: 0;
  transform: translateY(4px);
  max-width: min(180px, calc(100vw - 48px));
}

.route-label .help-dot:hover::after,
.route-label .help-dot:focus-visible::after {
  transform: translateY(0);
}

.balance-breakdown {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.balance-breakdown div {
  border-radius: 0;
  background: transparent;
  padding: 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.balance-breakdown span {
  color: rgba(247, 247, 242, 0.46);
  font-size: 0.7rem;
  font-weight: 300;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.balance-breakdown strong {
  font-size: 0.82rem;
  font-weight: 320;
}

.balance-metric-icon {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  background: rgba(89, 242, 10, 0.88);
  box-shadow: 0 0 12px rgba(89, 242, 10, 0.24);
}

.balance-metric-icon.pending {
  background: rgba(227, 92, 255, 0.78);
  box-shadow: 0 0 12px rgba(227, 92, 255, 0.22);
}

.balance-metric-icon.fee {
  background: rgba(118, 178, 255, 0.78);
  box-shadow: 0 0 12px rgba(118, 178, 255, 0.22);
}

.balance-chart {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.balance-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(247, 247, 242, 0.42);
  font-size: 0.68rem;
  font-weight: 300;
}

.balance-change {
  color: rgba(89, 242, 10, 0.88);
  white-space: nowrap;
}

.balance-range {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(247, 247, 242, 0.72);
  min-height: 24px;
  padding: 0 9px;
  font-size: 0.68rem;
  font-weight: 300;
  outline: 0;
}

.balance-sparkline {
  width: 100%;
  height: 42px;
  display: block;
  overflow: visible;
}

.balance-axis {
  display: flex;
  justify-content: space-between;
  color: rgba(247, 247, 242, 0.3);
  font-size: 0.62rem;
  font-weight: 260;
  margin-top: -4px;
}

.balance-empty {
  color: rgba(247, 247, 242, 0.34);
  font-size: 0.64rem;
  font-weight: 260;
  text-anchor: middle;
}

.history-list {
  display: grid;
  gap: 2px;
}

.receiver-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.receiver-row {
  display: grid;
  gap: 10px;
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.receiver-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.receiver-route {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.receiver-route-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  flex: 0 0 30px;
}

.receiver-route-icon svg {
  width: 30px;
  height: 30px;
}

.receiver-route-copy {
  display: grid;
  gap: 0;
  min-width: 0;
}

.receiver-route-name {
  font-size: 0.95rem;
  font-weight: 420;
  color: var(--ink);
}

.receiver-status {
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(227, 92, 255, 0.12);
  color: rgba(247, 247, 242, 0.76);
  font-size: 0.72rem;
  font-weight: 420;
  white-space: nowrap;
}

.receiver-status.success {
  background: rgba(89, 242, 10, 0.14);
  color: rgba(140, 255, 120, 0.96);
}

.receiver-status.failure {
  background: rgba(255, 91, 91, 0.14);
  color: rgba(255, 160, 160, 0.96);
}

.receiver-address {
  color: rgba(247, 247, 242, 0.9);
  font-size: 0.86rem;
  font-weight: 360;
}

.receiver-address-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: rgba(247, 247, 242, 0.42);
  font-size: 0.72rem;
  font-weight: 320;
}

.receiver-address-link {
  min-width: 0;
  color: rgba(247, 247, 242, 0.9);
  font-size: 0.86rem;
  font-weight: 360;
  text-decoration-line: underline;
  text-decoration-color: rgba(247, 247, 242, 0.46);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-skip-ink: auto;
}

.receiver-address-link:hover {
  text-decoration-color: rgba(247, 247, 242, 0.82);
}

.receiver-copy {
  min-height: 20px;
  min-width: 20px;
  border: 0;
  background: transparent;
  color: rgba(247, 247, 242, 0.54);
  padding: 0;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  transition: color 160ms ease, transform 160ms ease;
}

.receiver-copy:hover {
  color: rgba(247, 247, 242, 0.86);
  transform: translateY(-1px);
}

.receiver-address-row span:last-child {
  margin-left: auto;
  white-space: nowrap;
}

.receiver-empty {
  border-radius: 18px;
  padding: 18px 14px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  color: rgba(247, 247, 242, 0.46);
  font-size: 0.8rem;
  font-weight: 320;
}

.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px 12px;
  gap: 10px;
  align-items: center;
  border-radius: 14px;
  background: transparent;
  padding: 10px 8px;
  transition: background 180ms ease, transform 180ms ease;
  cursor: pointer;
}

.history-row.expanded {
  grid-template-columns: 1fr;
}

.history-flow {
  display: grid;
  grid-template-columns: 123px 64px 123px;
  column-gap: 0;
  align-items: center;
  min-width: 0;
  width: max-content;
  max-width: 100%;
}

.history-token {
  display: grid;
  grid-template-columns: 32px 82px;
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.history-token:nth-of-type(1) {
  grid-column: 1;
}

.history-token:nth-of-type(2) {
  grid-column: 3;
}

.history-token-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.history-token-icon svg {
  width: 32px;
  height: 32px;
}

.history-token-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.history-token-copy strong {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1;
  font-weight: 360;
  white-space: nowrap;
}

.history-token-copy span {
  color: rgba(247, 247, 242, 0.46);
  font-size: 0.78rem;
  font-weight: 320;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-fee-note {
  color: rgba(227, 92, 255, 0.86);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 320;
  white-space: normal;
}

.history-arrow {
  grid-column: 2;
  color: rgba(247, 247, 242, 0.42);
  font-size: 1.15rem;
  line-height: 1;
  transform: translate(clamp(-12px, -1vw, -6px), -2px);
  width: 100%;
  text-align: center;
  justify-self: center;
}

.history-row:hover {
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-1px);
}

.history-row.expanded {
  background: rgba(255, 255, 255, 0.055);
}

.history-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.history-kind {
  font-size: 0.74rem;
  color: rgba(247, 247, 242, 0.46);
  font-weight: 360;
  text-transform: uppercase;
}

.history-status {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  min-width: 0;
  color: rgba(247, 247, 242, 0.58);
  font-size: 0.72rem;
  font-weight: 360;
}

.history-status a,
.receiver-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(247, 247, 242, 0.24);
}

.receiver-link {
  color: rgba(247, 247, 242, 0.46);
  max-width: none;
  overflow-wrap: anywhere;
  white-space: normal;
  font-weight: 300;
}

.history-status a:hover,
.receiver-link:hover {
  color: var(--ink);
  text-decoration-color: rgba(227, 92, 255, 0.65);
}

.history-amount {
  font-size: 1rem;
  font-weight: 430;
  white-space: nowrap;
}

.history-side {
  display: contents;
}

.history-side span:first-child {
  justify-self: end;
  color: rgba(247, 247, 242, 0.42);
  font-size: 0.78rem;
  font-weight: 320;
  white-space: nowrap;
}

.history-side .status-dot {
  justify-self: center;
}

.history-row.expanded .history-side {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
  padding-top: 0;
  color: rgba(247, 247, 242, 0.42);
  font-size: 0.78rem;
  font-weight: 320;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(247, 247, 242, 0.24);
  box-shadow: 0 0 0 4px rgba(247, 247, 242, 0.04);
}

.status-dot.success {
  background: #59f20a;
  box-shadow: 0 0 18px rgba(89, 242, 10, 0.36);
}

.status-dot.failure {
  background: #ff6d6d;
  box-shadow: 0 0 18px rgba(255, 109, 109, 0.28);
}

.tx-link {
  color: rgba(247, 247, 242, 0.46);
  font-size: 0.76rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.route-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: rgba(247, 247, 242, 0.66) !important;
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(247, 247, 242, 0.24) !important;
  text-underline-offset: 3px;
  cursor: pointer;
  font: inherit;
}

.route-link:hover,
.route-link:focus-visible {
  color: rgba(247, 247, 242, 0.9) !important;
  text-decoration-color: rgba(247, 247, 242, 0.5) !important;
}

.history-detail {
  display: none;
  margin-top: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  padding: 13px 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  width: 100%;
}

.history-row.expanded .history-detail {
  display: grid;
  gap: 10px;
  animation: modal-rise 180ms cubic-bezier(.2, .82, .22, 1) both;
}

.detail-line {
  display: grid;
  grid-template-columns: minmax(96px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  color: rgba(247, 247, 242, 0.9);
  font-size: 0.78rem;
  font-weight: 300;
}

.detail-line span:first-child {
  color: rgba(247, 247, 242, 0.42);
}

.detail-line strong {
  font-weight: 320;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.detail-line .success {
  color: rgba(247, 247, 242, 0.52);
  font-weight: 300;
}

.detail-line .status-word.success {
  color: #59f20a !important;
}

.detail-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-width: 0;
}

.tx-link .out {
  display: inline-block;
  margin-left: 4px;
  text-decoration: none;
  transform: translateY(-1px);
}

.tx-help {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(247, 247, 242, 0.1);
  color: rgba(247, 247, 242, 0.5);
  font-size: 0.72rem;
  font-weight: 820;
  cursor: help;
  position: relative;
  margin-left: 6px;
  vertical-align: middle;
}

@keyframes modal-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modal-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes soft-enter {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rail-enter {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes stage-enter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes result-rise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes arrow-pulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 14px 38px rgba(227, 92, 255, 0.14);
  }

  50% {
    transform: scale(1.045);
    box-shadow: 0 18px 48px rgba(227, 92, 255, 0.24);
  }
}

@keyframes pattern-drift {
  from {
    transform: translate3d(-8px, -5px, 0) scale(1.01);
  }

  to {
    transform: translate3d(8px, 5px, 0) scale(1.015);
  }
}

.native-select {
  display: none;
}

.toast-stack {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 40;
  width: min(420px, calc(100vw - 28px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.live-toast {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border-radius: 20px;
  background: #f7f7f2;
  color: #050505;
  padding: 10px 11px;
  pointer-events: auto;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(0, 0, 0, 0.04);
  animation: toast-in 260ms cubic-bezier(.2, .82, .22, 1) both;
}

.live-toast.leaving {
  animation: toast-out 180ms ease both;
}

.live-toast-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.08rem;
  font-weight: 760;
}

.live-toast.success .live-toast-icon {
  color: #75c855;
  background: rgba(140, 255, 120, 0.22);
  box-shadow: inset 0 0 0 5px rgba(140, 255, 120, 0.2);
}

.live-toast.info .live-toast-icon {
  color: #286bff;
  background: rgba(40, 107, 255, 0.13);
  box-shadow: inset 0 0 0 5px rgba(40, 107, 255, 0.08);
}

.live-toast.warning .live-toast-icon {
  color: #c38a18;
  background: rgba(255, 202, 91, 0.18);
  box-shadow: inset 0 0 0 5px rgba(255, 202, 91, 0.12);
}

.live-toast.error .live-toast-icon {
  color: #ef6d6d;
  background: rgba(239, 109, 109, 0.15);
  box-shadow: inset 0 0 0 5px rgba(239, 109, 109, 0.1);
}

.live-toast-title {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.16;
  font-weight: 560;
  text-align: center;
}

.live-toast-body {
  color: rgba(5, 5, 5, 0.66);
  margin-top: 3px;
  font-size: 0.72rem;
  line-height: 1.28;
  font-weight: 420;
  text-align: center;
  overflow-wrap: anywhere;
}

.live-toast-body a {
  color: #050505;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.live-toast-close {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(5, 5, 5, 0.24);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.34rem;
  font-weight: 720;
  line-height: 1;
  transition: color 160ms ease, transform 160ms ease;
}

.live-toast-close:hover {
  color: rgba(5, 5, 5, 0.72);
  transform: scale(1.04);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate3d(0, -16px, 0) scale(.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translate3d(0, -10px, 0) scale(.98);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 920px) {
  .right-rail {
    top: 24px;
    right: 18px;
    gap: 10px;
  }

  .rail-pill {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.84rem;
  }
}

@media (max-width: 680px) {
  .brand {
    top: 18px;
    left: 16px;
  }

  .wordmark {
    font-size: 1.92rem;
  }

  main {
    padding-top: 96px;
  }

  .stage {
    transform: none;
  }

  .route-grid {
    grid-template-columns: 1fr;
  }

  .route-arrow {
    margin: -1px auto;
    transform: rotate(90deg);
  }

  .route-settings {
    justify-content: center;
  }

  .balance-breakdown {
    display: grid;
  }

  .right-rail {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    margin: 0;
    display: flex;
    z-index: 7;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .rail-pill {
    flex: 1 1 136px;
    justify-content: center;
    min-height: 42px;
    background: #f7f7f2;
    color: #050505;
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.38);
    border: 0;
    padding: 0 14px;
    white-space: nowrap;
  }

  .page {
    display: grid;
  }
}

@media (max-width: 440px) {
  main {
    padding-bottom: 172px;
  }

  .right-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rail-pill {
    min-width: 0;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .composer {
    padding: 10px;
  }

  .surface {
    border-radius: 0;
  }

  .destination,
  .chain-trigger {
    border-radius: 24px;
  }

  .create-btn {
    border-radius: 17px;
    min-height: 52px;
  }

  .address-row {
    display: grid;
  }
}
