:root {
  --canvas: #f7f8fc;
  --surface: #ffffff;
  --ink: #19233d;
  --muted: #626d82;
  --accent: #6050cc;
  --accent-hover: #4e3fb4;
  --accent-soft: #eeecfc;
  --border: #e1e5ee;
  --success: #23745c;
  --danger: #af3c38;
  --usdc: #2775ca;
  --success-soft: #edf7f1;
  --danger-soft: #fff1ee;
  --scroll-thumb: #b5bbcc;
  --scroll-track: #f7f8fc;
  --scroll-hover: #858fa6;
  --scroll-active: #626d82;
  --radius: 12px;
  --card-radius: 22px;
  --space: 4px;
  --font-display: "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "Segoe UI", system-ui, sans-serif;
  --font-mono: Consolas, monospace;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
  scrollbar-width: thin;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: var(--scroll-track);
}
*::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 8px;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-hover);
}
*::-webkit-scrollbar-thumb:active {
  background: var(--scroll-active);
}
html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button,
a,
summary {
  cursor: pointer;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
::selection {
  background: var(--accent-soft);
  color: var(--ink);
}
.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  background: var(--surface);
  padding: 14px;
  z-index: 50;
}
.skip:focus {
  top: 12px;
}
.wrap {
  max-width: 1140px;
  margin: auto;
  padding: 0 28px;
}
.header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.wordmark {
  font: 750 25px/1 var(--font-display);
  letter-spacing: -1.1px;
}
.brand-period {
  color: var(--accent);
}
.brand-label {
  color: var(--muted);
  font-size: 14px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.primary-nav a:hover,
.primary-nav .nav-active {
  color: var(--accent);
}
.primary-nav .nav-active {
  text-decoration: underline;
  text-underline-offset: 9px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 12px;
}
.connection .button {
  font-size: 13px;
  white-space: nowrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 30px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dot,
.network-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--success);
}
.badge .dot {
  width: 5px;
  height: 5px;
  background: currentColor;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition:
    background 0.16s,
    border-color 0.16s,
    box-shadow 0.16s;
}
.button:hover:enabled {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.button:active:enabled {
  box-shadow: inset 0 0 0 1px var(--accent);
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
  min-height: 52px;
  font-size: 15px;
}
.button.primary:hover:enabled {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.button.text {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
  padding: 8px 10px;
}
.button.wide {
  width: 100%;
}
.intro {
  padding: 34px 0 26px;
  text-align: center;
}
.eyebrow {
  font-size: 10px;
  line-height: 1.6;
  font-weight: 750;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin: 0 0 12px;
}
.intro h1 {
  font: 700 38px/1.15 var(--font-display);
  letter-spacing: -1.5px;
  margin: 0 0 14px;
}
.intro h1 span {
  color: var(--accent);
}
.lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 auto;
  max-width: 820px;
}
.mobile-break {
  display: none;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 300px);
  gap: 36px;
  align-items: start;
  max-width: 956px;
  margin: auto;
}
#transfer {
  min-width: 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow:
    0 8px 30px #19233d06,
    0 2px 4px #19233d03;
  padding: 26px;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--canvas);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 24px;
}
.tabs button {
  border: 0;
  border-radius: 9px;
  min-height: 42px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.tabs button[aria-selected="true"] {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 2px 5px #19233d0c;
}
.tabs button:hover:enabled {
  background: var(--accent-soft);
  color: var(--accent);
}
.heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.heading-row h2,
#panel > h2 {
  font: 700 20px/1.3 var(--font-display);
  letter-spacing: -0.45px;
  margin: 0;
}
.ratio-badge {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.subtext {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 7px 0 20px;
}
.token-panel {
  padding: 16px 18px 9px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--canvas);
}
.token-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.token-panel-heading label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: text;
}
.network-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  line-height: 1.5;
}
.network-dot {
  width: 6px;
  height: 6px;
}
.network-dot.parent {
  background: var(--usdc);
}
.network-dot.child {
  background: var(--accent);
}
.amount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
}
.amount-row input,
.amount-row output {
  display: block;
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  font: 600 34px/1.2 var(--font-body);
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  color: var(--ink);
  background: transparent;
  overflow-wrap: anywhere;
}
.amount-row input:focus-visible {
  outline: none;
}
.send-panel:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.send-panel:has(input[aria-invalid="true"]) {
  border-color: var(--danger);
}
.token {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  flex: none;
}
.token small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--muted);
}
.token-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--usdc);
  color: var(--surface);
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
}
.token-icon.usdmag {
  background: var(--accent);
  font-family: var(--font-display);
  font-size: 17px;
}
.balance-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.max {
  border: 0;
  background: transparent;
  color: var(--accent);
  min-height: 34px;
  min-width: 44px;
  padding: 4px 0 4px 8px;
  font-size: 12px;
  font-weight: 700;
}
.max:hover:enabled {
  text-decoration: underline;
}
.transfer-connector {
  height: 12px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.transfer-connector span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 4px solid var(--surface);
  border-radius: 12px;
  background: var(--canvas);
  color: var(--muted);
  font-size: 20px;
}
.receive-panel {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  padding-bottom: 16px;
}
.receive-panel output {
  color: var(--accent);
}
.receive-caption {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin: 2px 0 0;
}
.conversion-summary {
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  margin: 18px 0;
  color: var(--ink);
}
.conversion-summary > span:last-child {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.facts {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}
.fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  line-height: 1.5;
}
.fact dt {
  color: var(--muted);
}
.fact dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.transfer-notice {
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 14px 0 20px;
}
.wallet-hint {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin: 14px 0 0;
}
.health {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  font-size: 11px;
  color: var(--muted);
  padding: 6px 8px;
}
.health .button {
  margin-left: auto;
  font-size: 11px;
  min-height: 40px;
  flex: none;
}
.health.checking .dot {
  background: var(--muted);
}
.health.error,
.error-text {
  color: var(--danger);
}
.health.error .dot {
  background: var(--danger);
}
.bridge-aside {
  padding: 20px 0 0;
}
.aside-intro .eyebrow {
  font-size: 9px;
  margin-bottom: 9px;
}
.aside-intro h2 {
  font: 700 25px/1.2 var(--font-display);
  letter-spacing: -0.8px;
  margin: 0 0 10px;
}
.aside-intro > p:last-child {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.asset-checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0 14px;
}
.asset-checklist li {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.asset-checklist .token-icon,
.asset-glyph {
  width: 30px;
  height: 30px;
  flex: none;
  font-size: 17px;
}
.asset-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
}
.asset-checklist strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.asset-checklist li div > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.asset-checklist li > a {
  font-size: 11px;
  margin-left: auto;
  white-space: nowrap;
  padding: 10px 0;
}
.aside-note {
  font-size: 11px;
  line-height: 1.75;
  color: var(--muted);
}
.guide-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.guide-link:hover {
  text-decoration: underline;
}
.verified-note {
  display: flex;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
.verified-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex: none;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 12px;
}
.verified-note strong,
.verified-note div > span {
  display: block;
  font-size: 12px;
  line-height: 1.7;
}
.verified-note div > span {
  color: var(--muted);
  font-size: 11px;
}
.verified-note a {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  min-height: 32px;
}
.journey-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 12px;
}
.journey-list li {
  display: flex;
  gap: 12px;
  padding: 0 0 20px;
}
.journey-list li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 11px;
  background: var(--surface);
  color: var(--muted);
}
.journey-list strong {
  font-size: 13px;
}
.journey-list p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 5px 0 0;
}
.history {
  max-width: 956px;
  margin: 26px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 26px;
}
.history h3 {
  font-size: 14px;
  margin: 0;
}
.empty {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 12px 0 0;
}
.history-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.history-item small {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 4px;
}
.history-item .button {
  flex: none;
  font-size: 12px;
  min-height: 42px;
  padding: 9px 12px;
}
.community-section,
.contracts-section,
.help-section {
  margin: 64px auto 0;
  max-width: 956px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 26px;
}
.section-heading h2,
.help-section h2 {
  font: 700 27px/1.25 var(--font-display);
  letter-spacing: -0.8px;
  margin: 0;
}
.section-heading > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
  margin: 0;
}
.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.guide-steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.guide-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}
.guide-steps h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 12px;
  letter-spacing: -0.2px;
}
.guide-steps p,
.help-section p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 12px;
}
.guide-steps a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  font-weight: 600;
  margin-top: auto;
}
.return-guide {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  margin-top: 16px;
}
.return-icon {
  color: var(--accent);
  font-size: 26px;
  flex: none;
}
.return-guide h3 {
  font-size: 14px;
  margin: 0 0 7px;
}
.return-guide p {
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}
.return-guide > a {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.featured-contract {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 16px;
  padding: 26px;
}
.contract-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contract-title .token-icon {
  width: 42px;
  height: 42px;
  font-size: 22px;
}
.contract-title h3 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin: 0 0 3px;
}
.contract-title p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.contract-title .badge {
  margin-left: auto;
}
.contract-metadata {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.contract-metadata dt {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 5px;
}
.contract-metadata dd {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}
.contract-address-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px 10px 16px;
  background: var(--canvas);
}
.contract-address {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  min-width: 0;
  user-select: all;
}
.contract-address-row .button {
  font-size: 12px;
  flex: none;
}
.contract-footnote {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 16px 0 0;
}
.secondary-contracts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.contract-secondary {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  background: var(--surface);
  min-width: 0;
}
.contract-secondary h3 {
  font-size: 14px;
  margin: 0 0 5px;
}
.contract-secondary p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 14px;
}
.contract-secondary .contract-address {
  display: block;
  font-size: 12px;
}
.contract-secondary .button {
  font-size: 11px;
  margin: 10px 0 -8px -10px;
}
.copy-status {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.help-section {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  padding-bottom: 56px;
}
.help-section h2 {
  margin-bottom: 18px;
}
.help-section details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.help-section summary {
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
}
.help-section summary:hover {
  color: var(--accent);
}
.help-section details p {
  margin: 12px 0 0;
}
.proof-links {
  font-size: 12px;
  padding-left: 20px;
  line-height: 2;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  padding: 26px 0 32px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.footer strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 4px;
}
.footer nav {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  flex: none;
}
.footer a {
  color: var(--muted);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.field {
  display: block;
  margin: 18px 0;
}
.field-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 600;
}
input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 14px;
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
input[aria-invalid="true"] {
  border-color: var(--danger);
}
.address {
  font: 12px/1.7 var(--font-mono);
  overflow-wrap: anywhere;
}
.feedback {
  padding: 14px 16px;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--canvas);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.feedback strong {
  display: block;
  margin-bottom: 4px;
}
.feedback p {
  margin: 6px 0 12px;
}
.feedback a {
  overflow-wrap: anywhere;
}
.feedback.error {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: var(--danger);
}
.feedback.success {
  color: var(--success);
  background: var(--success-soft);
  border-color: var(--success);
}
.error-text {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 9px;
}
.review {
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
  background: var(--accent-soft);
}
.review h3 {
  font-size: 16px;
  margin: 0 0 16px;
}
.review .facts {
  margin: 12px 0 18px;
}
.review-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 0 0 20px;
  font-size: 13px;
  line-height: 1.6;
}
.step-dot {
  width: 23px;
  height: 23px;
  border: 1px solid var(--border);
  border-radius: 50%;
  text-align: center;
  line-height: 21px;
  font-size: 11px;
  color: var(--muted);
}
.done .step-dot {
  background: var(--success-soft);
  border-color: var(--success);
  color: var(--success);
}
.active .step-dot {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.timeline small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.hash-row {
  font: 12px/1.7 var(--font-mono);
  overflow-wrap: anywhere;
}
.wallet-dialog {
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 26px;
  width: calc(100% - 32px);
  max-width: 420px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 25px 100px #19233d33;
}
.wallet-dialog::backdrop {
  background: #19233d66;
}
.wallet-dialog h2 {
  font-size: 21px;
  margin: 0;
}
.wallet-dialog p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}
.wallet-options {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.wallet-option {
  justify-content: space-between;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: none;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1020px) {
  .primary-nav {
    gap: 18px;
  }
  .connection .badge {
    display: none;
  }
  .workspace {
    gap: 28px;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  }
}
@media (max-width: 800px) {
  .wrap {
    padding: 0 24px;
  }
  .header {
    flex-wrap: wrap;
    gap: 4px 20px;
    padding: 18px 0 0;
  }
  .primary-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 32px;
  }
  .intro {
    padding: 32px 0;
  }
  .intro h1 {
    font-size: 36px;
  }
  .workspace {
    grid-template-columns: minmax(0, 580px);
    justify-content: center;
    gap: 30px;
  }
  .bridge-aside {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
  }
  .aside-intro h2 {
    font-size: 23px;
  }
  .history {
    max-width: 580px;
  }
  .guide-steps {
    grid-template-columns: 1fr;
  }
  .guide-steps li {
    padding: 24px;
  }
  .guide-steps .guide-number {
    margin-bottom: 16px;
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    margin-top: 12px;
  }
  .section-heading > p br {
    display: none;
  }
  .return-guide {
    flex-wrap: wrap;
  }
  .return-guide > div {
    flex: 1;
    min-width: 0;
  }
  .return-guide > a {
    margin-left: 44px;
  }
  .secondary-contracts {
    grid-template-columns: 1fr;
  }
  .help-section {
    gap: 28px;
  }
}
@media (max-width: 540px) {
  .wrap {
    padding: 0 16px;
  }
  .brand-label {
    display: none;
  }
  .wordmark {
    font-size: 23px;
  }
  .connection .button {
    font-size: 12px;
    padding: 10px 12px;
    min-height: 44px;
  }
  .primary-nav {
    gap: 28px;
  }
  .primary-nav a {
    font-size: 12px;
  }
  .intro {
    padding: 28px 0;
  }
  .intro h1 {
    font-size: 31px;
    letter-spacing: -1px;
    max-width: 300px;
    margin-inline: auto;
  }
  .lead {
    font-size: 13px;
    line-height: 1.75;
  }
  .mobile-break {
    display: block;
  }
  .card {
    padding: 18px;
    border-radius: 18px;
  }
  .tabs {
    margin-bottom: 22px;
  }
  .tabs button {
    font-size: 13px;
    min-height: 42px;
  }
  .token-panel {
    padding: 14px 14px 8px;
  }
  .receive-panel {
    padding-bottom: 15px;
  }
  .token-panel-heading {
    gap: 7px;
  }
  .network-label {
    font-size: 10px;
    gap: 4px;
  }
  .token-panel-heading label {
    font-size: 12px;
  }
  .amount-row {
    gap: 10px;
    min-height: 64px;
  }
  .amount-row input,
  .amount-row output {
    font-size: 30px;
  }
  .token {
    font-size: 14px;
    gap: 7px;
  }
  .token .token-icon {
    width: 28px;
    height: 28px;
    font-size: 17px;
  }
  .conversion-summary {
    font-size: 12px;
  }
  .facts {
    gap: 10px;
  }
  .fact {
    font-size: 11px;
    gap: 10px;
  }
  .health {
    gap: 6px;
    padding-inline: 2px;
    font-size: 10px;
  }
  .health .button {
    padding-inline: 5px;
    font-size: 10px;
  }
  .history {
    padding: 20px;
  }
  .history-item {
    align-items: flex-start;
  }
  .history-item .button {
    font-size: 11px;
    padding: 8px;
  }
  .community-section,
  .contracts-section,
  .help-section {
    margin-top: 44px;
  }
  .section-heading h2,
  .help-section h2 {
    font-size: 24px;
  }
  .featured-contract {
    padding: 20px;
  }
  .contract-title {
    gap: 9px;
  }
  .contract-title h3 {
    font-size: 18px;
  }
  .contract-title p {
    font-size: 11px;
  }
  .contract-title .badge {
    font-size: 9px;
    padding: 6px 8px;
  }
  .contract-metadata {
    grid-template-columns: 1.6fr 1fr;
    row-gap: 18px;
  }
  .contract-address-row {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
  }
  .contract-address-row .button {
    width: 100%;
  }
  .contract-address {
    font-size: 12px;
  }
  .help-section {
    grid-template-columns: 1fr;
    padding-bottom: 36px;
  }
  .footer {
    flex-direction: column;
    gap: 14px;
  }
  .review {
    padding: 16px;
  }
  .review-actions {
    grid-template-columns: 1fr;
  }
}
@media (forced-colors: active) {
  * {
    scrollbar-color: auto;
  }
  .button,
  .card,
  .token-panel,
  .review,
  .feedback,
  .featured-contract {
    border: 1px solid CanvasText;
  }
  .dot,
  .network-dot {
    background: CanvasText;
    forced-color-adjust: auto;
  }
}
/* Respect reduced-motion preferences across every shared control. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
