.db-swap-launcher {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.db-swap-launch {
  width: 100%;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(16px, 2vw, 22px);
  color: #eaf2ff;
  text-align: left;
  cursor: pointer;
  background:
    linear-gradient(115deg, rgba(21, 71, 117, 0.28), transparent 48%),
    radial-gradient(circle at 92% 0%, rgba(40, 214, 190, 0.16), transparent 38%),
    rgba(7, 17, 32, 0.94);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.db-swap-launch:hover,
.db-swap-launch:focus-visible {
  border-color: rgba(92, 235, 194, 0.62);
  box-shadow: 0 12px 36px rgba(4, 18, 35, 0.26), 0 0 24px rgba(61, 217, 255, 0.08);
  transform: translateY(-1px);
}

.db-swap-launch:focus-visible {
  outline: 2px solid #5cebc2;
  outline-offset: 3px;
}

.db-swap-launch:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.db-swap-launch-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.db-swap-launch-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.db-swap-launch-copy > strong {
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.12;
}

.db-swap-launch-copy > small {
  color: #99abc9;
  font-size: 14px;
  line-height: 1.45;
}

.db-swap-launch-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(92, 235, 194, 0.42);
  border-radius: 999px;
  padding: 10px 14px;
  color: #5cebc2;
  background: rgba(24, 113, 97, 0.14);
  font-weight: 800;
  white-space: nowrap;
}

.db-swap-load-status:empty {
  display: none;
}

.db-swap-load-status {
  padding: 0 4px;
  color: #99abc9;
  font-size: 13px;
}

.db-swap-panel[hidden] {
  display: none !important;
}

.db-swap-panel {
  animation: db-swap-reveal 220ms ease-out both;
}

@keyframes db-swap-reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.db-swap {
  --swap-cyan: #3dd9ff;
  --swap-mint: #5cebc2;
  --swap-blue: #5879ff;
  --swap-ink: #eaf2ff;
  --swap-muted: #99abc9;
  --swap-panel: rgba(7, 17, 32, 0.82);
  --swap-line: rgba(83, 180, 239, 0.26);
  --swap-danger: #ff718d;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(18px, 2.4vw, 30px);
  background:
    linear-gradient(125deg, rgba(23, 74, 122, 0.16), transparent 38%),
    radial-gradient(circle at 88% 0%, rgba(40, 214, 190, 0.13), transparent 35%),
    rgba(7, 17, 32, 0.94);
}

.db-swap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(61, 217, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 217, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.db-swap *,
.db-swap *::before,
.db-swap *::after {
  box-sizing: border-box;
}

.db-swap button,
.db-swap input {
  font: inherit;
}

.db-swap-head,
.db-swap-title-row,
.db-swap-wallet-row,
.db-swap-token-line,
.db-swap-balance-line,
.db-swap-route-top,
.db-swap-route-meta,
.db-swap-dialog-head,
.db-swap-review-line,
.db-swap-status-line {
  display: flex;
  align-items: center;
}

.db-swap-head {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.db-swap-title-row {
  gap: 10px;
  flex-wrap: wrap;
}

.db-swap-title-row h2 {
  margin: 3px 0 0;
}

.db-swap-copy {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--swap-muted);
}

.db-swap-no-fee {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 9px 0 0;
  border: 1px solid rgba(92, 235, 194, 0.28);
  border-radius: 9px;
  padding: 6px 9px;
  color: #b8c9df;
  background: rgba(24, 113, 97, 0.12);
  font-size: 11px;
  line-height: 1.4;
}

.db-swap-no-fee strong {
  color: var(--swap-mint);
}

.db-swap-beta-badge,
.db-swap-network,
.db-swap-verified,
.db-swap-route-badge,
.db-swap-token-warning {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(92, 235, 194, 0.34);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--swap-mint);
  background: rgba(24, 113, 97, 0.14);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.db-swap-network::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--swap-mint);
  box-shadow: 0 0 11px rgba(92, 235, 194, 0.85);
}

.db-swap-connect,
.db-swap-primary,
.db-swap-secondary,
.db-swap-token-button,
.db-swap-icon-button,
.db-swap-mini-button,
.db-swap-result {
  border: 1px solid var(--swap-line);
  color: var(--swap-ink);
  background: rgba(12, 30, 53, 0.88);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.db-swap-connect,
.db-swap-primary,
.db-swap-secondary {
  min-height: 44px;
  border-radius: 12px;
  padding: 10px 15px;
  font-weight: 760;
}

.db-swap-connect:hover,
.db-swap-secondary:hover,
.db-swap-token-button:hover,
.db-swap-icon-button:hover,
.db-swap-mini-button:hover,
.db-swap-result:hover {
  border-color: rgba(61, 217, 255, 0.7);
  background: rgba(19, 48, 78, 0.95);
}

.db-swap-primary {
  width: 100%;
  color: #04141c;
  border-color: rgba(92, 235, 194, 0.8);
  background: linear-gradient(100deg, var(--swap-cyan), var(--swap-mint));
  box-shadow: 0 10px 28px rgba(38, 204, 210, 0.14);
}

.db-swap-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.db-swap-primary:disabled,
.db-swap-connect:disabled,
.db-swap-secondary:disabled,
.db-swap-token-button:disabled,
.db-swap-mini-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.db-swap-wallet-row {
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.db-swap-wallet-address {
  color: var(--swap-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.db-swap-safety {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  padding: 11px 13px;
  border: 1px solid rgba(93, 122, 170, 0.22);
  border-radius: 12px;
  color: var(--swap-muted);
  background: rgba(5, 13, 25, 0.54);
  font-size: 13px;
}

.db-swap-safety strong {
  color: var(--swap-ink);
}

.db-swap-mint {
  min-width: 0;
  overflow: hidden;
  color: #a9bada;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.db-swap-terminal {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(340px, 1.08fr);
  gap: 16px;
}

.db-swap-ticket,
.db-swap-routes {
  min-width: 0;
  border: 1px solid var(--swap-line);
  border-radius: 17px;
  background: var(--swap-panel);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.db-swap-ticket {
  padding: 13px;
}

.db-swap-token-box {
  border: 1px solid rgba(83, 180, 239, 0.21);
  border-radius: 14px;
  padding: 13px;
  background: rgba(10, 25, 45, 0.76);
}

.db-swap-token-box + .db-swap-token-box {
  margin-top: 8px;
}

.db-swap-balance-line,
.db-swap-token-line,
.db-swap-route-top,
.db-swap-review-line {
  justify-content: space-between;
  gap: 10px;
}

.db-swap-field-label,
.db-swap-balance,
.db-swap-route-label,
.db-swap-route-sub,
.db-swap-section-copy {
  color: var(--swap-muted);
  font-size: 12px;
}

.db-swap-token-line {
  margin-top: 9px;
}

.db-swap-token-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-width: 118px;
  max-width: 52%;
  min-height: 45px;
  border-radius: 12px;
  padding: 8px 10px;
  text-align: left;
}

.db-swap-token-icon,
.db-swap-result-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(61, 217, 255, 0.35), rgba(92, 235, 194, 0.18));
  background-position: center;
  background-size: cover;
  font-size: 11px;
  font-weight: 800;
}

.db-swap-token-symbol {
  overflow: hidden;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.db-swap-amount,
.db-swap-output-value {
  flex: 1 1 auto;
  width: min(58%, 330px);
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--swap-ink);
  background: transparent;
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 780;
  letter-spacing: -0.025em;
  text-align: right;
}

.db-swap-amount::placeholder {
  color: #50627f;
}

.db-swap-output-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.db-swap-mini-button {
  border-radius: 8px;
  padding: 3px 7px;
  color: var(--swap-cyan);
  font-size: 11px;
  font-weight: 780;
}

.db-swap-flip-wrap {
  position: relative;
  z-index: 2;
  height: 0;
  text-align: center;
}

.db-swap-icon-button {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 18px;
  line-height: 1;
}

.db-swap-flip-wrap .db-swap-icon-button {
  transform: translateY(-14px);
}

.db-swap-preferences {
  margin-top: 9px;
  border: 1px solid rgba(83, 180, 239, 0.18);
  border-radius: 12px;
  padding: 10px 11px;
  background: rgba(5, 14, 27, 0.58);
}

.db-swap-slippage {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--swap-ink);
}

.db-swap-slippage small {
  display: block;
  margin-top: 2px;
  color: var(--swap-muted);
  font-size: 10px;
  font-weight: 500;
}

.db-swap-slippage-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.db-swap-slippage-presets {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.db-swap-slippage-preset {
  appearance: none;
  min-width: 48px;
  min-height: 34px;
  border: 1px solid rgba(83, 180, 239, 0.24);
  border-radius: 9px;
  padding: 6px 9px;
  color: var(--swap-muted);
  background: rgba(8, 25, 43, 0.72);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.db-swap-slippage-preset:hover,
.db-swap-slippage-preset:focus-visible {
  border-color: rgba(92, 235, 194, 0.58);
  color: var(--swap-ink);
  outline: 0;
}

.db-swap-slippage-preset:active {
  transform: translateY(1px);
}

.db-swap-slippage-preset.is-active,
.db-swap-slippage-preset[aria-pressed="true"] {
  border-color: rgba(92, 235, 194, 0.58);
  color: var(--swap-mint);
  background: rgba(12, 55, 60, 0.72);
  box-shadow: inset 0 0 0 1px rgba(92, 235, 194, 0.08);
}

.db-swap-slippage-custom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--swap-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.db-swap-slippage-input {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 76px;
  border: 1px solid rgba(92, 235, 194, 0.38);
  border-radius: 10px;
  padding: 5px 7px;
  color: var(--swap-mint);
  background: rgba(12, 44, 51, 0.55);
}

.db-swap-slippage-input input {
  appearance: textfield;
  width: 45px;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: right;
}

.db-swap-slippage-input input::-webkit-inner-spin-button,
.db-swap-slippage-input input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.db-swap-slippage-input b {
  font-size: 12px;
}

.db-swap-slippage-warning {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid rgba(251, 146, 60, 0.38);
  border-radius: 9px;
  padding: 7px 9px;
  color: #ffd1aa;
  background: rgba(105, 43, 15, 0.28);
  font-size: 10px;
  line-height: 1.45;
}

.db-swap-slippage-warning[hidden] {
  display: none;
}

.db-swap-status-line {
  min-height: 42px;
  gap: 8px;
  margin: 9px 2px;
  color: var(--swap-muted);
  font-size: 12px;
}

.db-swap-status-line::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #63738d;
}

.db-swap-status-line[data-tone="working"]::before {
  background: var(--swap-cyan);
  box-shadow: 0 0 10px rgba(61, 217, 255, 0.75);
  animation: db-swap-pulse 1.15s ease-in-out infinite alternate;
}

.db-swap-status-line[data-tone="success"]::before {
  background: var(--swap-mint);
}

.db-swap-status-line[data-tone="error"] {
  color: #ff9bb0;
}

.db-swap-status-line[data-tone="error"]::before {
  background: var(--swap-danger);
}

@keyframes db-swap-pulse {
  to { opacity: 0.3; transform: scale(0.75); }
}

.db-swap-console {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid rgba(61, 217, 255, 0.24);
  border-radius: 13px;
  padding: 11px;
  color: #b7c9df;
  background:
    linear-gradient(180deg, rgba(3, 12, 22, 0.97), rgba(5, 18, 31, 0.95)),
    #030c16;
  box-shadow: inset 0 0 26px rgba(33, 174, 208, 0.045), 0 10px 24px rgba(0, 0, 0, 0.14);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.db-swap-console::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(transparent 48%, rgba(61, 217, 255, 0.028) 50%, transparent 52%);
  background-size: 100% 6px;
  animation: db-swap-scanline 9s linear infinite;
}

.db-swap-console-head,
.db-swap-console-progress-row,
.db-swap-progress-labels {
  display: flex;
  align-items: center;
}

.db-swap-console-head {
  position: relative;
  z-index: 1;
  gap: 9px;
  border-bottom: 1px solid rgba(83, 180, 239, 0.14);
  padding-bottom: 9px;
  color: var(--swap-cyan);
  letter-spacing: 0.08em;
}

.db-swap-console-lights {
  display: inline-flex;
  gap: 4px;
}

.db-swap-console-lights i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #53637a;
}

.db-swap-console-lights i:nth-child(1) { background: #ff718d; }
.db-swap-console-lights i:nth-child(2) { background: #ffd35c; }
.db-swap-console-lights i:nth-child(3) { background: var(--swap-mint); }

.db-swap-console-stage {
  max-width: 52%;
  overflow: hidden;
  margin-left: auto;
  border: 1px solid rgba(61, 217, 255, 0.22);
  border-radius: 999px;
  padding: 3px 7px;
  color: #d9e8f8;
  background: rgba(61, 217, 255, 0.07);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.db-swap-console[data-tone="success"] .db-swap-console-stage { color: var(--swap-mint); border-color: rgba(92, 235, 194, 0.4); }
.db-swap-console[data-tone="warning"] .db-swap-console-stage { color: #ffd35c; border-color: rgba(255, 211, 92, 0.42); }
.db-swap-console[data-tone="error"] .db-swap-console-stage { color: #ff91a8; border-color: rgba(255, 113, 141, 0.42); }

.db-swap-console-meter {
  position: relative;
  z-index: 1;
  margin-top: 9px;
}

.db-swap-console-progress-row {
  justify-content: space-between;
  margin-bottom: 5px;
  color: #7288a6;
  font-size: 9px;
  letter-spacing: 0.075em;
}

.db-swap-progress {
  overflow: hidden;
  height: 7px;
  border: 1px solid rgba(83, 180, 239, 0.21);
  border-radius: 999px;
  background: #071120;
}

.db-swap-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms cubic-bezier(.2, .8, .2, 1);
  background: linear-gradient(90deg, var(--swap-cyan), var(--swap-mint), #d9fff4, var(--swap-mint));
  background-size: 220% 100%;
  box-shadow: 0 0 14px rgba(92, 235, 194, 0.58);
}

.db-swap-console[data-tone="working"] .db-swap-progress > span {
  animation: db-swap-progress-shimmer 1.4s linear infinite;
}

.db-swap-console[data-tone="warning"] .db-swap-progress > span { background: #ffd35c; box-shadow: 0 0 12px rgba(255, 211, 92, 0.45); }
.db-swap-console[data-tone="error"] .db-swap-progress > span { background: var(--swap-danger); box-shadow: 0 0 12px rgba(255, 113, 141, 0.42); }

.db-swap-progress-labels {
  justify-content: space-between;
  margin-top: 5px;
  color: #536986;
  font-size: 8px;
  letter-spacing: 0.05em;
}

.db-swap-console-log {
  position: relative;
  z-index: 1;
  display: grid;
  max-height: 128px;
  gap: 5px;
  overflow-y: auto;
  margin: 9px 0 0;
  padding: 0;
  scrollbar-color: rgba(61, 217, 255, 0.32) transparent;
  list-style: none;
}

.db-swap-console-log li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 7px;
  animation: db-swap-log-in 220ms ease both;
}

.db-swap-console-log li > span:first-child { color: #48637f; }
.db-swap-console-log li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.db-swap-console-log li[data-tone="success"] > span:last-child { color: var(--swap-mint); }
.db-swap-console-log li[data-tone="warning"] > span:last-child { color: #ffd35c; }
.db-swap-console-log li[data-tone="error"] > span:last-child { color: #ff91a8; }

.db-swap-outcome {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  margin-top: 11px;
  border: 1px solid rgba(92, 235, 194, 0.5);
  border-radius: 12px;
  padding: 11px;
  color: #dffbf3;
  background: linear-gradient(110deg, rgba(22, 112, 91, 0.28), rgba(8, 35, 42, 0.78));
  box-shadow: inset 0 0 24px rgba(92, 235, 194, 0.06), 0 0 22px rgba(92, 235, 194, 0.07);
  animation: db-swap-outcome-in 380ms cubic-bezier(.2, .9, .25, 1.2) both;
}

.db-swap-outcome[hidden] { display: none; }

.db-swap-outcome-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--swap-mint);
  border-radius: 50%;
  color: #041b14;
  background: var(--swap-mint);
  box-shadow: 0 0 0 0 rgba(92, 235, 194, 0.42);
  font-family: system-ui, sans-serif;
  font-size: 27px;
  font-weight: 900;
  animation: db-swap-check 700ms ease 120ms both;
}

.db-swap-outcome-body { display: grid; min-width: 0; gap: 2px; }
.db-swap-outcome-body strong { color: #f1fff9; font-family: system-ui, sans-serif; font-size: 18px; }
.db-swap-outcome-body span { color: #a8d7ca; line-height: 1.35; }
.db-swap-outcome-body code { overflow: hidden; color: #78998f; font: inherit; text-overflow: ellipsis; white-space: nowrap; }

.db-swap-outcome > a {
  grid-column: 1 / -1;
  border: 1px solid rgba(92, 235, 194, 0.42);
  border-radius: 9px;
  padding: 8px 10px;
  color: var(--swap-mint);
  background: rgba(4, 17, 25, 0.58);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.db-swap-outcome[data-state="pending"] { border-color: rgba(255, 211, 92, 0.52); background: rgba(73, 55, 10, 0.22); }
.db-swap-outcome[data-state="pending"] .db-swap-outcome-icon { border-color: #ffd35c; color: #251b02; background: #ffd35c; animation: db-swap-pending 1.2s ease-in-out infinite alternate; }
.db-swap-outcome[data-state="pending"] > a { color: #ffd35c; border-color: rgba(255, 211, 92, 0.4); }
.db-swap-outcome[data-state="failed"] { border-color: rgba(255, 113, 141, 0.5); background: rgba(83, 17, 35, 0.24); }
.db-swap-outcome[data-state="failed"] .db-swap-outcome-icon { border-color: var(--swap-danger); color: #24030a; background: var(--swap-danger); animation: none; }
.db-swap-outcome[data-state="failed"] > a { color: #ff9bb0; border-color: rgba(255, 113, 141, 0.38); }

@keyframes db-swap-scanline { to { background-position: 0 60px; } }
@keyframes db-swap-progress-shimmer { to { background-position: -220% 0; } }
@keyframes db-swap-log-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes db-swap-outcome-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes db-swap-check {
  0% { opacity: 0; transform: scale(0.45) rotate(-18deg); box-shadow: 0 0 0 0 rgba(92, 235, 194, 0.55); }
  65% { opacity: 1; transform: scale(1.08) rotate(0); box-shadow: 0 0 0 10px rgba(92, 235, 194, 0); }
  100% { opacity: 1; transform: scale(1); box-shadow: 0 0 18px rgba(92, 235, 194, 0.24); }
}
@keyframes db-swap-pending { to { opacity: 0.58; transform: scale(0.92); } }

.db-swap-routes {
  display: flex;
  min-height: 385px;
  flex-direction: column;
  padding: 15px;
}

.db-swap-routes h3 {
  margin: 0;
  font-size: 18px;
}

.db-swap-route-empty {
  display: grid;
  min-height: 245px;
  place-items: center;
  padding: 25px;
  color: var(--swap-muted);
  text-align: center;
}

.db-swap-route-empty[hidden] {
  display: none;
}

.db-swap-route-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.db-swap-route {
  width: 100%;
  border: 1px solid rgba(83, 180, 239, 0.22);
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--swap-ink);
  background: rgba(10, 25, 45, 0.72);
  cursor: pointer;
  text-align: left;
}

.db-swap-route:hover,
.db-swap-route[aria-pressed="true"] {
  border-color: rgba(92, 235, 194, 0.7);
  background: rgba(18, 53, 70, 0.75);
  box-shadow: inset 3px 0 var(--swap-mint);
}

.db-swap-route-output {
  color: var(--swap-mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 760;
  overflow-wrap: anywhere;
  text-align: right;
}

.db-swap-route-badge {
  padding: 3px 7px;
  font-size: 10px;
}

.db-swap-route-meta {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 5px;
  color: var(--swap-muted);
  font-size: 11px;
}

.db-swap-route-meta span + span::before {
  content: "\00b7";
  margin-right: 8px;
  color: #4c6382;
}

.db-swap-route-details {
  margin-top: 12px;
  border-top: 1px solid rgba(83, 180, 239, 0.16);
  padding-top: 12px;
}

.db-swap-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.db-swap-detail {
  min-width: 0;
  border-radius: 10px;
  padding: 9px;
  background: rgba(5, 14, 27, 0.64);
}

.db-swap-detail small {
  display: block;
  color: var(--swap-muted);
  font-size: 10px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.db-swap-detail strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.db-swap-leg-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.db-swap-leg {
  border: 1px solid rgba(83, 180, 239, 0.2);
  border-radius: 999px;
  padding: 5px 8px;
  color: #b8c9e5;
  background: rgba(10, 25, 45, 0.64);
  font-size: 11px;
}

.db-swap-footnote {
  margin: 13px 2px 0;
  color: #7f93b3;
  font-size: 11px;
  line-height: 1.5;
}

.db-swap-dialog {
  width: min(580px, calc(100vw - 24px));
  max-height: min(760px, calc(100vh - 30px));
  margin: auto;
  overflow: auto;
  border: 1px solid rgba(83, 180, 239, 0.42);
  border-radius: 17px;
  padding: 0;
  color: var(--swap-ink);
  background: #091426;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.db-swap-dialog::backdrop {
  background: rgba(1, 7, 14, 0.76);
  backdrop-filter: blur(5px);
}

.db-swap-dialog[data-fallback-open="1"] {
  position: fixed;
  inset: 15px;
  z-index: 9999;
  display: block;
}

.db-swap-dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(83, 180, 239, 0.18);
  padding: 15px;
  background: rgba(9, 20, 38, 0.97);
}

.db-swap-dialog-head h3 {
  margin: 0;
}

.db-swap-dialog-body {
  padding: 15px;
}

.db-swap-search {
  width: 100%;
  border: 1px solid rgba(83, 180, 239, 0.28);
  border-radius: 11px;
  outline: 0;
  padding: 12px 13px;
  color: var(--swap-ink);
  background: rgba(4, 12, 24, 0.9);
}

.db-swap-search:focus {
  border-color: rgba(61, 217, 255, 0.7);
}

.db-swap-results {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.db-swap-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border-radius: 11px;
  padding: 10px;
  text-align: left;
}

.db-swap-result-main,
.db-swap-result-meta {
  min-width: 0;
}

.db-swap-result-main strong,
.db-swap-result-main span,
.db-swap-result-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.db-swap-result-main span,
.db-swap-result-meta {
  color: var(--swap-muted);
  font-size: 11px;
}

.db-swap-result-meta {
  max-width: 155px;
  text-align: right;
}

.db-swap-token-warning {
  border-color: rgba(255, 113, 141, 0.38);
  color: #ff9bb0;
  background: rgba(120, 23, 50, 0.14);
}

.db-swap-review {
  display: grid;
  gap: 9px;
}

.db-swap-review-line {
  border-bottom: 1px solid rgba(83, 180, 239, 0.12);
  padding: 8px 0;
}

.db-swap-review-line span:first-child {
  color: var(--swap-muted);
}

.db-swap-review-address {
  max-width: 310px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
  text-align: right;
  white-space: normal;
}

.db-swap-review-actions {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 8px;
  margin-top: 13px;
}

.db-swap-success-link {
  color: var(--swap-mint);
  font-weight: 750;
}

@media (max-width: 900px) {
  .db-swap-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .db-swap-wallet-row {
    width: 100%;
    justify-content: space-between;
  }

  .db-swap-terminal {
    grid-template-columns: 1fr;
  }

  .db-swap-routes {
    min-height: 0;
  }

  .db-swap-route-empty {
    min-height: 150px;
  }
}

@media (max-width: 560px) {
  .db-swap-launch {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .db-swap-launch-action {
    align-self: flex-start;
  }

  .db-swap {
    padding: 14px;
  }

  .db-swap-safety {
    grid-template-columns: 1fr auto;
  }

  .db-swap-safety strong {
    grid-column: 1 / -1;
  }

  .db-swap-mint {
    font-size: 10px;
  }

  .db-swap-ticket,
  .db-swap-routes {
    padding: 10px;
  }

  .db-swap-slippage {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 9px;
  }

  .db-swap-slippage-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .db-swap-slippage-preset {
    min-width: 46px;
  }

  .db-swap-token-button {
    min-width: 112px;
    max-width: 52%;
  }

  .db-swap-amount,
  .db-swap-output-value {
    width: auto;
    font-size: 24px;
  }

  .db-swap-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .db-swap-result-meta {
    display: none;
  }

  .db-swap-result {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .db-swap-review-actions {
    grid-template-columns: 1fr;
  }

  .db-swap-console {
    padding: 9px;
    font-size: 10px;
  }

  .db-swap-console-log {
    max-height: 155px;
  }

  .db-swap-outcome {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 10px;
  }

  .db-swap-outcome-icon {
    width: 38px;
    height: 38px;
    font-size: 23px;
  }

  .db-swap-outcome-body strong {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .db-swap-launch,
  .db-swap-panel,
  .db-swap *,
  .db-swap *::before,
  .db-swap *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
