:root {
  color-scheme: dark;
  --ink: #f2f3eb;
  --muted: #a3aaa4;
  --paper: #0b0d0b;
  --surface: #131713;
  --line: #293128;
  --green: #c4fb52;
  --green-dark: #c4fb52;
  --deep: #0b0d0b;
  --max: 1280px;
}
body {
  font-family: "Space Grotesk", "Noto Sans CJK SC", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
h1,
h2 {
  font-family: "Archivo Black", "Noto Sans CJK SC", system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.05em;
}
a {
  text-underline-offset: 5px;
}
.topbar {
  background: rgb(11 13 11 / 88%);
  border-bottom-color: #252b23;
}
.nav {
  min-height: 82px;
}
.brand {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 22px;
}
.brand small {
  letter-spacing: 0.18em;
  font-size: 8px;
}
.brand-mark {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: #c4fb52;
  border: 0;
  color: #0b0d0b;
  font-weight: 900;
}
.brand-mark img {
  width: 33px;
  height: 33px;
  object-fit: contain;
}
.brand-name > span {
  color: var(--green) !important;
}
.nav-links {
  padding: 9px 17px;
  border: 1px solid #2b3228;
  border-radius: 40px;
  background: #121610;
  gap: 23px;
}
.nav-links a {
  color: #b1b8ab;
  font-size: 12px;
}
.nav-links a:hover {
  color: var(--green);
}
.nav-cta {
  border-radius: 40px;
  background: var(--green);
  color: #0b0d0b;
  font-weight: 800;
}
.language-control select {
  background: #141912;
  border-color: #323b2d;
  color: #dae2d2;
  border-radius: 40px;
}
.menu-toggle {
  border-radius: 40px;
  font-size: 12px;
  background: #121710;
}
.footer {
  border-top: 1px solid var(--line);
  background: #090b09;
}
.footer-links a {
  color: #d5dec8;
}
:focus-visible {
  outline-color: var(--green) !important;
}
.doc-main h1,
.trade-main h1,
.portal-main h1 {
  line-height: 1.15;
}
.doc-main a,
.trade-main > a,
.portal-main > a {
  color: var(--green);
}
.doc-table td,
.doc-main p,
.doc-main li {
  color: var(--muted);
}
.doc-toc a {
  background: #161c13;
}
.doc-table th {
  color: #e4eada;
}
.trade-card,
.action-card,
.balance-card,
.address-panel {
  background: #131812;
  border-color: #2c3528;
}
.notice {
  background: #252c17;
  color: #d8e6ae;
}
.trade-main input,
.trade-main select,
.portal-main input,
.portal-main select {
  background: #0c110b;
  color: var(--ink);
  border-color: #36432e;
}
.trade-main button,
.action-card button,
.wallet-bar button {
  background: var(--green);
  border-color: var(--green);
  color: #12190a;
}
.trade-main button.secondary,
.portal-main button.secondary {
  background: #1b2217;
  border-color: #394431;
  color: #d8e3cd;
}
.portal-main input:disabled,
.portal-main select:disabled {
  background: #11170e;
}
.quote {
  background: #0c110b;
}
.personal-balances strong {
  color: var(--ink);
}
.portal-tabs button {
  color: var(--muted);
  background: #151b11;
  border-color: #303b27;
}
.portal-tabs button[aria-selected="true"] {
  background: var(--green);
  color: #101609;
  border-color: var(--green);
}
.balance-card p span {
  color: #a9b49d;
}
.balance-card strong {
  color: #edf5e0;
}
.portal-main h2 {
  font-size: clamp(28px, 4vw, 40px);
}
.action-card h3 {
  font-weight: 700;
  color: #e8efdd;
}
.action-card [role="status"],
#portal-status {
  color: #d3f59b;
}
.external-link {
  border-color: #394431;
  color: var(--green);
}
.address-row button {
  color: #dae3cb;
  background: #1a2215;
  border-color: #394431;
}
.wallet-bar .availability {
  color: #bdc5b3;
}
@media (max-width: 1050px) and (min-width: 761px) {
  .nav-links {
    padding: 8px 12px;
    gap: 12px;
  }
  .nav-links a {
    font-size: 10px;
  }
  .brand {
    font-size: 18px;
  }
  .nav {
    gap: 12px;
  }
}
@media (max-width: 760px) {
  .nav {
    min-height: 72px;
  }
  .brand {
    font-size: 18px;
  }
  .brand small {
    font-size: 7px;
  }
  .nav-links {
    border-radius: 0 0 18px 18px;
    border-top: 0;
    padding: 16px 24px;
    background: #10150e;
  }
  .nav-links a {
    font-size: 15px;
  }
  .brand-mark {
    width: 33px;
    height: 33px;
  }
  .brand-mark img {
    width: 28px;
    height: 28px;
  }
  .nav-cta {
    display: none;
  }
}
@media (max-width: 380px) {
  .brand {
    font-size: 16px;
  }
  .brand small {
    font-size: 6px;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
  }
  .language-control select {
    max-width: 101px;
  }
  .nav {
    gap: 7px;
  }
}

/* Keep the connected public address clear of the connection button. */
.trade-card #wallet:not(:empty) {
  margin-top: 12px;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}
.wallet-bar #portal-account:not(:empty) {
  margin-inline-start: 6px;
}
