:root {
  --green: #0b3027;
  --green-mid: #164a3c;
  --green-deep: #07251e;
  --lime: #d9e5b1;
  --ivory: #f6f7f1;
  --ink: #18362e;
  --muted: #7c8d85;
  --line: #e3e9df;
  --danger: #b3523f;
  --white: #fff;
  --radius: 20px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--ivory);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #a6bd79;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
[hidden] {
  display: none !important;
}
.topbar {
  height: 98px;
  max-width: 1320px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  border-bottom: 1px solid var(--line);
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  letter-spacing: 2.1px;
  font-weight: 750;
  line-height: 1.7;
}
.brand-symbol {
  font-size: 37px;
  font-weight: 750;
  letter-spacing: -5px;
  line-height: 1;
  position: relative;
  padding-right: 6px;
}
.brand-symbol > span {
  font-size: 15px;
  position: absolute;
  top: -3px;
  right: -4px;
  letter-spacing: 0;
  color: #8b9e58;
}
.brand-caption {
  display: block;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 2px;
  font-weight: 500;
}
.topbar nav {
  display: flex;
  gap: 35px;
  height: 100%;
  align-items: center;
  font-size: 13px;
  color: #71847a;
}
.topbar nav a {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}
.topbar nav a.active {
  color: var(--green);
  font-weight: 650;
}
.topbar nav a.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--green);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.language {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  padding: 8px;
}
.button {
  border: 0;
  border-radius: 10px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition:
    background 0.18s,
    transform 0.18s;
  min-height: 44px;
}
.button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.primary,
.connect {
  background: var(--green);
  color: var(--white);
}
.primary:hover,
.connect:hover {
  background: var(--green-mid);
}
.secondary {
  background: #eef2e9;
  color: var(--green);
  border: 1px solid #e0e7d9;
}
.small {
  padding: 9px 15px;
  font-size: 12px;
  min-height: 38px;
}
.ivory {
  background: var(--lime);
  color: var(--green);
  width: 100%;
}
.wide {
  width: 100%;
  margin-top: 20px;
}
main {
  max-width: 1320px;
  padding: 0 44px;
  margin: auto;
}
.hero {
  padding: 52px 0 35px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.1px;
  font-weight: 650;
  color: #6f8464;
  display: flex;
  align-items: center;
  gap: 9px;
}
.status-dot,
.network i,
.footer-network i {
  height: 6px;
  width: 6px;
  background: #80a76a;
  border-radius: 50%;
  display: inline-block;
}
.hero h1 {
  font-size: 36px;
  letter-spacing: -1.4px;
  font-weight: 650;
  margin: 15px 0 14px;
  line-height: 1.3;
}
.hero p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  line-height: 1.8;
  max-width: 560px;
}
.hero-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  min-width: 200px;
}
.network {
  font-size: 11px;
  border: 1px solid #dce4d6;
  border-radius: 30px;
  padding: 6px 11px;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.eth-diamond {
  font-size: 17px;
}
.meta-label {
  font-size: 11px;
  color: var(--muted);
}
.hero-meta strong {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
}
.hero-meta small {
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}
.muted {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 23px;
  position: relative;
}
.stat-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #788b7d;
  font-size: 12px;
  margin-bottom: 22px;
}
.stat-label > span:last-child {
  font-size: 17px;
  color: #89a16b;
}
.stat > strong {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.9px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.stat > .unit {
  font-size: 10px;
  color: #8b998c;
  margin-left: 7px;
}
.stat > small {
  display: block;
  font-size: 10px;
  color: #94a08f;
  margin-top: 11px;
  line-height: 1.5;
}
.pulse {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8da45f;
}
.workspace {
  display: grid;
  grid-template-columns: 1fr 1.03fr;
  gap: 24px;
}
.left-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 28px;
}
.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.panel h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 0;
  line-height: 1.5;
}
.earn-panel {
  background: var(--green);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 30px;
}
.earn-panel:before {
  content: "";
  position: absolute;
  right: -85px;
  top: -130px;
  width: 320px;
  height: 320px;
  border: 1px solid #ffffff0d;
  border-radius: 50%;
  box-shadow:
    0 0 0 27px #ffffff04,
    0 0 0 54px #ffffff03;
  pointer-events: none;
}
.light {
  color: #b8c7a4;
  margin-bottom: 8px;
}
.round-mark {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff24;
  border-radius: 50%;
  font-size: 20px;
  color: #cfddb1;
}
.earn-amount {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin: 28px 0;
}
.earn-amount strong {
  font-size: 46px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  min-width: 0;
}
.earn-amount > span {
  font-size: 12px;
  color: #a9bbae;
}
.earn-facts {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 13px;
  border-top: 1px solid #ffffff16;
  padding-top: 19px;
  margin-bottom: 24px;
}
.earn-facts > div > span {
  display: block;
  font-size: 10px;
  color: #93ac9a;
  margin-bottom: 8px;
}
.earn-facts b {
  font-size: 12px;
  font-weight: 500;
}
.fineprint {
  font-size: 10px;
  line-height: 1.8;
  color: #8b9a8e;
  margin: 13px 0 0;
}
.earn-panel .fineprint {
  color: #9eb39f;
}
.level-panel {
  padding: 25px 28px;
}
.badge {
  background: #eef2e7;
  color: #5c7949;
  font-size: 11px;
  border-radius: 6px;
  padding: 6px 10px;
  font-weight: 600;
}
.level-line {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 22px;
  color: var(--muted);
}
.level-line strong {
  font-weight: 500;
  color: var(--green);
  text-align: right;
}
.progress-track {
  height: 5px;
  background: #edf1e6;
  border-radius: 5px;
  margin: 14px 0 10px;
  overflow: hidden;
}
.progress-track > span {
  display: block;
  height: 100%;
  width: 0;
  background: #89a060;
  border-radius: 5px;
  transition: width 0.4s;
}
.progress-caption {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #97a18f;
  gap: 15px;
}
.level-breakdown {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
  padding-top: 17px;
}
.level-breakdown > span {
  font-size: 10px;
  color: var(--muted);
}
.level-breakdown b {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-top: 7px;
  color: var(--green);
  overflow-wrap: anywhere;
}
.operations {
  padding: 0 29px 27px;
}
.operation-tabs {
  display: flex;
  gap: 27px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.operation-tabs button {
  padding: 22px 2px 17px;
  background: none;
  border: 0;
  color: #9aa491;
  border-bottom: 2px solid transparent;
  font-size: 14px;
}
.operation-tabs button.selected {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 650;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}
.tag {
  border: 1px solid #e2e9da;
  border-radius: 4px;
  font-size: 9px;
  color: #789064;
  letter-spacing: 0.5px;
  padding: 5px 7px;
}
.field-label {
  display: block;
  font-size: 11px;
  color: #72856e;
  margin-bottom: 9px;
}
.referrer-box {
  background: #f6f8f2;
  border: 1px solid #e9eee2;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 22px;
}
.address {
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
  color: #5e7865;
}
.help {
  font-size: 10px;
  line-height: 1.7;
  color: #97a18e;
  margin: 8px 0 0;
}
input,
select {
  width: 100%;
  border: 1px solid #dfe6d8;
  border-radius: 8px;
  background: var(--white);
  padding: 12px;
  color: var(--ink);
  min-width: 0;
  font-size: 13px;
}
input::placeholder {
  color: #b8c0b0;
}
input[readonly] {
  color: #809176;
}
#bindFields {
  display: flex;
  gap: 8px;
  margin-top: 11px;
}
#bindFields .button {
  padding: 9px 13px;
  white-space: nowrap;
  min-height: 40px;
}
#bindFields input {
  font-size: 11px;
}
.amount-input {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dfe6d8;
  border-radius: 10px;
  padding: 0 15px;
  background: var(--white);
}
.amount-input input {
  border: 0;
  background: transparent;
  padding: 17px 0;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.5px;
  outline: none !important;
}
.amount-input > span {
  font-size: 11px;
  color: #849478;
}
.amount-input > button {
  border: 0;
  background: #eff3e7;
  padding: 5px 7px;
  border-radius: 4px;
  color: #688148;
  font-size: 10px;
}
.presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0 23px;
}
.presets button {
  background: #fafbf8;
  border: 1px solid #e5eadf;
  border-radius: 6px;
  padding: 9px;
  font-size: 11px;
  color: #7a8b70;
}
.presets button.selected {
  background: #edf3df;
  border-color: #93ad6e;
  color: var(--green);
}
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  margin: 12px 0;
  color: #8c9981;
}
.detail-row b {
  color: #667c55;
  font-weight: 500;
  text-align: right;
}
.available {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 12px 0 20px;
  gap: 10px;
}
.available > span {
  color: var(--muted);
}
.available strong {
  font-weight: 500;
}
.receive-box {
  background: #f3f6ed;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  gap: 15px;
}
.receive-box > span {
  font-size: 11px;
  color: #799166;
}
.receive-box > strong {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.5px;
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}
.receive-box small {
  font-size: 11px;
}
.protection {
  font-size: 10px;
  line-height: 1.7;
  color: #87957a;
  margin-top: 16px;
  padding-left: 13px;
  position: relative;
}
.protection:before {
  content: "";
  width: 5px;
  height: 5px;
  background: #8da863;
  position: absolute;
  top: 6px;
  left: 0;
  border-radius: 50%;
}
.protection.blocked {
  color: var(--danger);
}
.protection.blocked:before {
  background: var(--danger);
}
.transaction-status {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.8;
  color: #6c8654;
  overflow-wrap: anywhere;
}
.transaction-status a {
  text-decoration: underline;
}
.invitation {
  margin-top: 27px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  background: #edf1e4;
}
.invitation h2 {
  margin-top: 8px;
}
.invitation p {
  margin: 8px 0 0;
  font-size: 11px;
}
.invitation-action {
  display: flex;
  gap: 10px;
  width: 49%;
  align-items: center;
}
.invitation-action input {
  font-size: 11px;
  background: #ffffff9c;
}
.invitation-action .button {
  white-space: nowrap;
}
.list-panel {
  margin-top: 25px;
  padding-bottom: 12px;
}
.list-panel .panel-top {
  margin-bottom: 24px;
}
.list-panel h2 {
  margin: 0;
}
.list-panel p {
  font-size: 11px;
  margin: 5px 0 0;
}
.list-panel .eyebrow {
  margin-bottom: 9px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 10px;
  font-weight: 500;
  color: #94a08a;
  padding: 0 8px 14px;
  border-bottom: 1px solid var(--line);
}
td {
  font-size: 12px;
  padding: 18px 8px;
  border-bottom: 1px solid #eff2eb;
  color: #617950;
}
td:first-child {
  color: #466c58;
}
td a {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}
td .status {
  font-size: 10px;
  border-radius: 20px;
  padding: 5px 9px;
  background: #eef4e6;
  color: #75914d;
}
.status.inactive {
  background: #f2f2ec;
  color: #9a9e8b;
}
.empty-state {
  text-align: center !important;
  color: #9ba78f !important;
  padding: 43px 12px;
  font-size: 12px;
  line-height: 1.8;
  white-space: normal;
}
.list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0 4px;
}
.list-footer > div {
  display: flex;
  gap: 7px;
}
.list-footer .muted {
  font-size: 10px;
}
.list-footer > .history-summary {
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.history-summary .fineprint {
  margin: 0;
}
.list-footer .history-summary .muted {
  max-width: none;
}
.history-footer .pagination {
  flex-shrink: 0;
}
.admin-panel {
  margin-top: 25px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.admin-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}
.admin-card h3 {
  font-size: 14px;
  margin: 0 0 16px;
}
.admin-card label {
  display: block;
  color: #7b8c70;
  font-size: 11px;
  margin: 12px 0 6px;
}
.admin-card input,
.admin-card select {
  font-size: 12px;
}
.admin-card .button {
  width: 100%;
  margin-top: 16px;
}
.admin-card.wide-card {
  grid-column: 1/-1;
}
.admin-levels {
  display: grid;
  grid-template-columns: 45px 1fr 1fr;
  gap: 8px;
  align-items: center;
  font-size: 11px;
}
.admin-levels input {
  margin: 4px 0;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check-row input {
  width: auto;
}
.notice {
  background: #e5ebd8;
  color: #5d7348;
  text-align: center;
  padding: 10px 20px;
  font-size: 12px;
  line-height: 1.6;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-deep);
  color: var(--ivory);
  padding: 15px 45px 15px 20px;
  max-width: min(92vw, 580px);
  font-size: 13px;
  border-radius: 12px;
  box-shadow: 0 12px 40px #0b302730;
  z-index: 100;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
#toast.error {
  background: #753e31;
}
#toast button {
  position: absolute;
  right: 9px;
  top: 9px;
  background: none;
  border: 0;
  color: inherit;
  font-size: 22px;
  padding: 2px 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 38px 0 30px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  color: #93a08a;
  font-size: 10px;
  line-height: 1.7;
}
.footer-brand {
  font-size: 9px;
  color: #83937a;
  letter-spacing: 1.2px;
}
.footer-brand .brand-symbol {
  font-size: 25px;
  letter-spacing: -3px;
}
.footer-network {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
@media (min-width: 1450px) {
  .hero {
    padding-top: 60px;
  }
  .hero h1 {
    font-size: 40px;
  }
}
@media (max-width: 1000px) {
  .topbar,
  main {
    padding-left: 25px;
    padding-right: 25px;
  }
  .topbar nav {
    gap: 22px;
  }
  .stat {
    padding: 19px;
  }
  .stat > strong {
    font-size: 24px;
  }
  .workspace {
    gap: 18px;
  }
  .panel {
    padding: 23px;
  }
  .operations {
    padding: 0 23px 23px;
  }
  .earn-facts {
    grid-template-columns: 1fr 1fr;
    row-gap: 16px;
  }
  .earn-facts > div:last-child {
    grid-column: 1/-1;
  }
  .earn-amount strong {
    font-size: 40px;
  }
  .invitation-action {
    width: 48%;
  }
  .hero h1 {
    font-size: 31px;
  }
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 80px;
  }
  .topbar {
    height: 78px;
    padding: 0 18px;
    gap: 12px;
  }
  .topbar nav {
    display: none;
  }
  .brand {
    font-size: 9px;
    gap: 9px;
    letter-spacing: 1.3px;
  }
  .brand-symbol {
    font-size: 32px;
  }
  .brand-caption {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .header-actions {
    gap: 6px;
  }
  .connect {
    font-size: 11px;
    padding: 11px 13px;
    min-height: 40px;
  }
  .language {
    font-size: 11px;
    padding: 7px;
  }
  main {
    padding: 0 16px;
  }
  .hero {
    padding: 31px 3px 25px;
    align-items: flex-start;
    gap: 14px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .hero h1 {
    font-size: 26px;
    letter-spacing: -0.8px;
    margin: 12px 0;
  }
  .hero p {
    font-size: 11px;
    max-width: 300px;
    line-height: 1.8;
  }
  .hero-meta {
    min-width: 103px;
    gap: 8px;
    padding-top: 0;
  }
  .network {
    font-size: 9px;
    padding: 4px 8px;
    gap: 5px;
    margin-bottom: 6px;
  }
  .hero-meta strong {
    font-size: 18px;
    line-height: 1.3;
  }
  .hero-meta small {
    font-size: 8px;
    display: block;
  }
  .hero-meta .muted {
    font-size: 9px;
    max-width: 100px;
  }
  .meta-label {
    font-size: 9px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
  }
  .stat {
    padding: 16px;
    border-radius: 12px;
  }
  .stat-label {
    font-size: 11px;
    margin-bottom: 15px;
  }
  .stat > strong {
    font-size: 24px;
  }
  .stat > .unit {
    font-size: 9px;
    margin-left: 5px;
  }
  .stat > small {
    font-size: 9px;
    margin-top: 9px;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .left-column {
    gap: 17px;
  }
  .panel {
    padding: 22px;
    border-radius: 16px;
  }
  .earn-panel {
    padding: 25px;
  }
  .earn-facts {
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 10px;
  }
  .earn-facts > div:last-child {
    grid-column: auto;
  }
  .earn-amount strong {
    font-size: 43px;
  }
  .earn-facts b {
    font-size: 11px;
  }
  .earn-facts > div > span {
    font-size: 9px;
  }
  .level-panel {
    padding: 22px;
  }
  .operations {
    padding: 0 22px 23px;
  }
  .operation-tabs button {
    padding-top: 21px;
  }
  .invitation {
    margin-top: 18px;
    display: block;
  }
  .invitation-action {
    width: 100%;
    margin-top: 17px;
    gap: 8px;
  }
  .invitation-action input {
    font-size: 10px;
  }
  .invitation-action .button {
    font-size: 11px;
    padding: 12px 15px;
  }
  .list-panel {
    margin-top: 18px;
    padding: 22px 16px 12px;
  }
  .list-panel .panel-top {
    margin-bottom: 20px;
  }
  .panel h2 {
    font-size: 16px;
  }
  .table-scroll {
    margin: 0 -2px;
  }
  .table-scroll table {
    min-width: 560px;
  }
  .list-footer .muted {
    font-size: 9px;
    max-width: 62%;
  }
  .list-footer .button {
    font-size: 10px;
    padding: 8px 11px;
  }
  .history-footer {
    flex-wrap: wrap;
  }
  .history-footer > .history-summary {
    flex-basis: 100%;
  }
  .history-footer > .pagination {
    margin-left: auto;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-card {
    padding: 16px;
  }
  .admin-levels {
    grid-template-columns: 30px 1fr 1fr;
    font-size: 10px;
  }
  footer {
    padding: 29px 2px;
    flex-wrap: wrap;
    gap: 17px;
    font-size: 9px;
  }
  footer > span:not(.footer-network) {
    order: 3;
    flex-basis: 100%;
  }
  .footer-network {
    margin-left: auto;
  }
  #toast {
    bottom: 16px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* 装饰 SVG 不参与翻译或业务计算；标题文字单独放在语言节点中。 */
.ui-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  vertical-align: middle;
}
.stat-icon {
  display: inline-flex;
  align-items: center;
}
.stat-icon .ui-icon {
  width: 20px;
  height: 20px;
}
.icon-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}
.icon-heading .ui-icon {
  color: var(--green);
}
.ethereum-icon {
  width: 13px;
  height: 21px;
  flex: 0 0 auto;
  vertical-align: middle;
}
.footer-network .ethereum-icon {
  width: 10px;
  height: 17px;
}

/* 语言菜单使用内嵌图标与原生按钮，触屏和键盘均可选择。 */
.language-picker {
  position: relative;
  flex: 0 0 auto;
}
.language {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  white-space: nowrap;
}
.language .ui-icon {
  width: 19px;
  height: 19px;
}
.language-chevron {
  font-size: 16px;
}
.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 184px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px #0b302724;
  z-index: 100;
}
.language-menu[hidden] {
  display: none;
}
.language-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  font-size: 13px;
}
.language-menu button:hover,
.language-menu button:focus-visible {
  background: #f0f5f1;
}
.language-menu button[aria-checked="true"] {
  color: var(--green);
  background: #edf4ef;
  font-weight: 600;
}
.language-check {
  visibility: hidden;
}
.language-menu button[aria-checked="true"] .language-check {
  visibility: visible;
}
.language:focus-visible,
.language-menu button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.earn-panel .icon-heading .ui-icon {
  color: #cfddb1;
}
@media (max-width: 700px) {
  .language {
    gap: 4px;
  }
  #languageLabel {
    max-width: 55px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .language-chevron {
    display: none;
  }
  .header-actions {
    min-width: 0;
  }
  .icon-heading {
    align-items: flex-start;
  }
  .icon-heading .ui-icon {
    margin-top: 3px;
  }
  .panel-top > div {
    min-width: 0;
  }
}
/* 窄屏只显示语言图标，为钱包按钮保留空间；语言名称仍在菜单和辅助标签中。 */
@media (max-width: 360px) {
  #languageLabel {
    display: none;
  }
  .connect {
    white-space: nowrap;
  }
}
