@font-face {
  font-family: "PT Mono";
  src: url("/fonts/pt-mono-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "PT Mono";
  src: url("/fonts/pt-mono-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --base: #000403;
  --ink: #eee;
  --accent: #94febf;
  --active-bg: #0e1f17;
  --control-bg: #242424;
  --border: #393939;
  --muted: #a7adab;
  --error: #ffadab;
  font: 14px/1.5 "PT Mono", "Microsoft YaHei", monospace;
  background: var(--base);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { color: inherit; font: inherit; }
button, select, summary { cursor: pointer; }
button:disabled, select:disabled { opacity: .6; cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.top, main, footer { width: min(calc(100% - 42px), 960px); margin-inline: auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 74px; padding-top: 20px; }
.brand-group, .controls, .brand, .top-links { display: flex; align-items: center; }
.brand-group { gap: 20px; }
.brand { color: var(--accent); font: 700 28px/1 "PT Mono", monospace; gap: 10px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { display: block; }
.top-links { gap: 18px; white-space: nowrap; }
.top-links a { color: var(--ink); }
.controls { gap: 9px; }
.network { display: flex; min-height: 40px; align-items: stretch; }
.eth-icon { width: 40px; border: 1px solid var(--accent); border-radius: 4px; background: var(--active-bg); display: grid; place-items: center; }
.eth-icon::before { content: ""; width: 12px; height: 19px; background: var(--accent); clip-path: polygon(50% 0,100% 49%,52% 65%,0 49%,50% 0,50% 73%,100% 55%,50% 100%,0 55%,50% 73%); }
.network select { min-width: 101px; border: 0; border-radius: 0 4px 4px 0; background: var(--control-bg); color: var(--ink); padding: 0 8px 0 12px; font-weight: 700; }
.wallet, .secondary { min-height: 40px; padding: 5px 12px; border: 1px solid var(--accent); border-radius: 4px; background: var(--active-bg); color: var(--accent); font-weight: 700; white-space: nowrap; }
main { flex: 1 0 auto; padding: 42px 0 72px; }
.test-network { margin: 0 0 15px; color: var(--accent); }
.workspace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 7vw, 80px); align-items: start; }
.tabs { display: flex; justify-content: space-between; height: 48px; }
.tabs button { width: 102px; height: 49px; position: relative; border: 0; color: var(--accent); background: var(--accent); font-size: 19px; font-weight: 700; z-index: 1; }
.tabs button:first-child { clip-path: polygon(0 0, 79% 0, 83% 3%, 100% 100%, 0 100%); padding-right: 15px; border-radius: 5px 0 0 0; }
.tabs button:last-child { clip-path: polygon(17% 3%, 21% 0, 100% 0, 100% 100%, 0 100%); padding-left: 15px; border-radius: 0 5px 0 0; }
.tabs button::before { content: ""; position: absolute; inset: 1px; background: var(--active-bg); clip-path: inherit; z-index: -1; }
.tabs button[aria-pressed="true"] { color: var(--base); }
.tabs button[aria-pressed="true"]::before { background: var(--accent); }
.tabs button:focus-visible { outline: none; text-decoration: underline; }
.transaction { border: 1px solid var(--accent); border-radius: 0 0 4px 4px; padding: 20px 21px 29px; min-height: 274px; }
.field { display: grid; gap: 7px; margin: 0 0 17px; }
.field input, .field select { min-height: 40px; width: 100%; border-radius: 4px; border: 1px solid var(--border); background: var(--base); padding: 0 16px; }
.field input::placeholder { color: #777f7b; }
.amount { padding: 0; border: none; margin: 0 0 17px; min-width: 0; }
.info { background: var(--accent); color: var(--base); display: inline-flex; min-width: 15px; height: 15px; align-items: center; justify-content: center; font: 700 10px/1 "PT Mono", monospace; border-radius: 4px; vertical-align: 1px; }
.amount-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; padding-top: 7px; }
.amount-steps[data-asset="usdc"], .amount-steps[data-asset="usdt"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.amount-steps::before { content: ""; position: absolute; height: 2px; inset: 17px 0 auto; background: var(--accent); }
.amount-steps label { display: grid; justify-items: center; gap: 10px; white-space: nowrap; font-weight: 700; cursor: pointer; }
.amount-steps input { appearance: none; position: relative; margin: 0; width: 21px; height: 21px; border-radius: 50%; background: var(--base); border: 2px solid var(--accent); cursor: pointer; }
.amount-steps input:checked { background: var(--accent); box-shadow: inset 0 0 0 2px var(--base); }
.amount-steps input:checked + span { color: var(--accent); }
.token-help { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.primary { width: 100%; min-height: 40px; display: block; font-weight: 700; border-radius: 4px; border: 1px solid var(--accent); color: var(--base); background: var(--accent); }
.primary:not(:disabled):hover { background: #bdffd6; }
.backup { margin-bottom: 15px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 4px; }
.backup p { margin: 0 0 8px; }
.backup .secondary { min-height: 34px; }
.check { display: flex; align-items: flex-start; gap: 8px; margin: 13px 0; font-size: 13px; }
.check input { margin-top: 2px; flex: none; accent-color: var(--accent); }
.fee-detail { margin: 20px 0 0; border: 1px solid #252a27; border-radius: 10px; padding: 14px 16px; background: #0b0f0d; }
.fee-detail h2 { font-size: 15px; margin: 0 0 6px; }
.fee-detail dl { margin: 0 0 8px; }
.fee-detail dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.fee-detail dd { margin: 0; white-space: nowrap; }
.fee-detail .total { font-weight: 700; }
.fee-detail a { font-size: 12px; }
.status-area p { margin: 12px 0 0; overflow-wrap: anywhere; }
.status-area a { font-size: 12px; }
#status[data-error="true"] { color: var(--error); }
.stats-heading { display: flex; align-items: center; gap: 12px; height: 49px; width: max-content; position: relative; z-index: 1; border-radius: 5px 0 0 0; background: var(--border); clip-path: polygon(0 0,90% 0,92% 4%,100% 100%,0 100%); padding: 0 32px 0 24px; }
.stats-heading::before { position: absolute; content: ""; inset: 1px 1px 0; background: var(--base); clip-path: inherit; z-index: -1; }
.stats-heading h2 { font-size: 19px; margin: 0; white-space: nowrap; }
#pool-amount { padding: 2px 7px; border: 1px solid var(--accent); border-radius: 4px; background: var(--active-bg); color: var(--accent); font-size: 11px; font-weight: 700; white-space: nowrap; }
.stats-box { margin-top: -1px; min-height: 275px; border: 1px solid var(--border); border-radius: 0 6px 6px 6px; padding: 20px 21px; }
.stats-summary { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 20px; }
.stats-summary strong { display: block; margin-top: 5px; color: var(--accent); overflow-wrap: anywhere; }
.stats-box h3 { font-size: 14px; font-weight: 400; margin: 13px 0 4px; }
.recent-list { list-style: none; padding: 0; margin: 0 0 6px; }
.recent-list li { display: flex; justify-content: space-between; align-items: center; padding: 2px 0; gap: 5px; font-size: 12px; border-bottom: 1px solid #202421; }
.stats-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 11px; }
#pool-data-status { color: var(--muted); font-size: 12px; margin: 7px 0 0; }
.guide { margin-top: 24px; border: 1px solid var(--border); border-radius: 5px; color: var(--ink); padding: 10px 16px; }
.guide summary { color: var(--accent); }
.guide ol { padding-left: 21px; }
.guide li p { margin: 2px 0 8px; color: var(--muted); }
.privacy { border-top: 1px solid var(--border); margin-bottom: 3px; padding-top: 8px; color: var(--muted); }
footer { display: flex; justify-content: flex-end; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 88px; font-size: 11px; color: var(--muted); }
footer span { margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@media (max-width: 767px) {
  .top-links { display: none; }
  .workspace { grid-template-columns: 1fr; gap: 21px; }
  .top { gap: 12px; }
  .controls { gap: 6px; }
  .network select { min-width: 83px; padding: 0 2px 0 6px; }
  .eth-icon { width: 31px; }
  .wallet { padding: 5px 7px; }
  main { padding: 42px 0 35px; }
  footer { justify-content: center; min-height: 70px; text-align: center; }
  footer span { margin-right: 0; }
}
@media (max-width: 370px) {
  .top, main, footer { width: calc(100% - 28px); }
  .brand { gap: 5px; font-size: 24px; }
  .brand img { width: 29px; height: 29px; }
  .transaction, .stats-box { padding-inline: 14px; }
}
