:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #202f2b;
  background: #f6f7f3;
  font-synthesis: none;
  --ink: #172c28;
  --muted: #66756c;
  --line: #e3e8df;
  --green: #426b42;
  --lime: #d3eab7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
summary {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #92b972;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  top: -60px;
  left: 20px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}
.header {
  max-width: 1160px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 27px 32px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}
.brand small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 2.3px;
  margin-top: 6px;
  font-weight: 500;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 40px;
  background: var(--ink);
  color: var(--lime);
  border-radius: 9px;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 400;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.network {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.network i,
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #719958;
  border-radius: 50%;
  margin-right: 8px;
}
.button {
  border: 0;
  border-radius: 8px;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.secondary {
  background: white;
  border: 1px solid #dce3d5;
}
.primary {
  width: 100%;
  background: var(--ink);
  color: #e2f1d2;
  padding: 17px;
}
.primary:hover:not(:disabled) {
  background: #284637;
}
.text-button {
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}
.text-button:hover:not(:disabled) {
  text-decoration: underline;
}
main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 26px 32px 46px;
}
.back {
  font-size: 12px;
  color: var(--muted);
}
.back:hover {
  color: var(--ink);
}
.layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 66px;
  align-items: start;
  margin: 48px 0 42px;
}
.eyebrow {
  font-size: 10px;
  color: var(--green);
  letter-spacing: 2px;
  font-weight: 600;
  margin: 6px 0 20px;
}
h1 {
  font-size: 42px;
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -1.8px;
  margin: 0 0 20px;
}
.lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 355px;
  margin: 0;
}
.ratio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  margin: 30px 0 36px;
}
.coin {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-size: 12px;
}
.coin.wrapped {
  background: #dce9ce;
  color: #3f5b34;
  font-size: 10px;
}
.equals {
  font-weight: 400;
  color: #7c8b76;
  padding: 0 3px;
}
.how {
  display: grid;
  gap: 22px;
}
.how > div {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.step {
  font-size: 10px;
  color: #839278;
  border: 1px solid #d8e0d0;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.how h2 {
  font-size: 12px;
  font-weight: 600;
  margin: 3px 0 7px;
}
.how p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  max-width: 300px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 32px #172c2806;
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f2f4ee;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 28px;
}
.tabs button {
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}
.tabs button[aria-selected="true"] {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 4px #1b302016;
}
.input-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 12px;
}
.input-top > span {
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
  text-align: right;
  max-width: 65%;
}
.amount-box {
  display: flex;
  align-items: center;
  gap: 10px;
}
.amount-box input {
  width: 0;
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 34px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -1px;
  padding: 3px 0;
}
.amount-box input::placeholder {
  color: #bcc5b5;
}
.token-label {
  font-size: 11px;
  font-weight: 600;
  background: #f0f4e9;
  padding: 9px 11px;
  border-radius: 30px;
}
.amount-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 29px;
  font-size: 10px;
  color: #82907a;
}
.direction {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  margin: 13px auto;
  background: white;
  color: #78916b;
}
.receive {
  background: #f5f7f0;
  border: 1px solid #eaf0e2;
  border-radius: 10px;
  padding: 16px;
}
.receive > span {
  font-size: 11px;
  color: var(--muted);
}
.receive > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}
.receive output {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.receive div > span {
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.terms {
  font-size: 11px;
  margin: 23px 0;
  display: grid;
  gap: 12px;
}
.terms > div {
  display: flex;
  justify-content: space-between;
}
.terms dt {
  color: var(--muted);
}
.terms dd {
  margin: 0;
  font-weight: 500;
}
.approval-steps {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
  padding: 0 0 15px;
}
.approval-steps .complete {
  color: var(--green);
}
.form-message {
  color: #a04335;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.form-message:empty {
  display: none;
}
.action-note {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  margin: 12px 0 0;
}
.check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
}
.check input {
  accent-color: var(--green);
}
#recipient-field {
  margin-top: 14px;
}
#recipient-field label {
  display: block;
  font-size: 11px;
  margin-bottom: 7px;
}
#recipient {
  width: 100%;
  font-family: monospace;
  font-size: 12px;
  border: 1px solid #dce3d5;
  border-radius: 7px;
  padding: 12px;
}
#recipient-field p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
.transaction {
  margin-top: 18px;
  padding: 15px;
  border-radius: 9px;
  background: #f0f5e9;
  border: 1px solid #dfe9d4;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.transaction.error {
  background: #fff5ef;
  border-color: #f0d9cd;
  color: #904437;
}
.transaction p {
  font-size: 11px;
  line-height: 1.7;
  margin: 8px 0;
}
.transaction a {
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.transaction details {
  margin-top: 12px;
  font-size: 11px;
}
.transaction #check-transaction {
  margin-top: 12px;
}
.reserves {
  background: #edf1e6;
  border: 1px solid #e1e8d7;
  border-radius: 10px;
  padding: 23px 26px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.reserve-title {
  display: flex;
  align-items: center;
  position: relative;
}
.reserve-title .live-dot {
  flex-shrink: 0;
  margin-right: 12px;
}
.reserve-title h2 {
  font-size: 12px;
  margin: 0 0 6px;
  font-weight: 600;
}
.reserve-title p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.reserve-title button {
  position: absolute;
  top: 100%;
  left: 18px;
  font-size: 10px;
  margin-top: 7px;
}
.reserve-stat {
  min-width: 0;
  border-left: 1px solid #d9e2ce;
  padding-left: 24px;
}
.reserve-stat > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 8px;
}
.reserve-stat strong {
  display: block;
  font-size: 21px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.read-error {
  font-size: 12px;
  color: #a04335;
  line-height: 1.7;
}
.contract-details {
  margin-top: 23px;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px 20px;
  background: #ffffff60;
}
.contract-details summary {
  font-weight: 500;
}
.contract-details summary > span {
  float: right;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.details-grid {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}
.details-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 6px;
}
.details-grid a {
  font:
    11px ui-monospace,
    SFMono-Regular,
    monospace;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contract-details p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 690px;
}
footer {
  max-width: 1096px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 0;
  margin: auto;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #85917d;
}
footer > span:first-child {
  letter-spacing: 1.5px;
}
dialog {
  width: min(420px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 26px;
  color: var(--ink);
  box-shadow: 0 20px 80px #0002;
}
dialog::backdrop {
  background: #10271b70;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-heading h2 {
  font-size: 19px;
  margin: 0;
}
.dialog-heading button {
  font-size: 26px;
}
dialog p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
#wallet-list {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}
#wallet-list button {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: #f6f8f1;
  font-weight: 500;
}
#wallet-list button:hover {
  background: #eaf1df;
}
@media (max-width: 900px) {
  .layout {
    gap: 32px;
    grid-template-columns: 1fr 400px;
  }
  h1 {
    font-size: 35px;
  }
  .ratio {
    flex-wrap: wrap;
    font-size: 10px;
  }
  .header {
    padding: 22px 26px;
  }
  main {
    padding-left: 26px;
    padding-right: 26px;
  }
  footer {
    margin: 0 26px;
  }
  .header-actions {
    gap: 15px;
  }
}
@media (max-width: 740px) {
  .header {
    padding: 19px 20px;
  }
  .header .network {
    display: none;
  }
  .brand {
    font-size: 11px;
    letter-spacing: 1.5px;
  }
  .brand small {
    font-size: 7px;
  }
  .brand-mark {
    width: 32px;
    height: 35px;
    font-size: 33px;
  }
  .header .button {
    padding: 11px 12px;
    font-size: 11px;
  }
  main {
    padding: 22px 20px 32px;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
  }
  .intro .how {
    display: none;
  }
  .eyebrow {
    margin: 0 0 14px;
    font-size: 9px;
  }
  h1 {
    font-size: 35px;
    line-height: 1.15;
    margin-bottom: 14px;
  }
  h1 br {
    display: none;
  }
  .lead {
    font-size: 13px;
    max-width: none;
    line-height: 1.8;
  }
  .ratio {
    margin: 20px 0 0;
    font-size: 11px;
    gap: 8px;
  }
  .card {
    padding: 22px;
  }
  .reserves {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 22px;
  }
  .reserve-title {
    grid-column: 1/-1;
    padding-bottom: 2px;
  }
  .reserve-title button {
    position: static;
    margin: 0 0 0 auto;
  }
  .reserve-stat {
    padding: 0;
    border: 0;
  }
  .reserve-stat strong {
    font-size: 20px;
  }
  .contract-details {
    padding: 16px;
  }
  .contract-details summary > span {
    display: none;
  }
  footer {
    margin: 0 20px;
    flex-wrap: wrap;
    font-size: 8px;
    gap: 12px;
  }
  .receive output {
    font-size: 24px;
  }
  .amount-box input {
    font-size: 31px;
  }
  .token-label {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
