:root {
  color-scheme: light;
  --bg: #f3f6fa;
  --surface: #ffffff;
  --surface-alt: #f7f9fc;
  --ink: #092d61;
  --muted: #667387;
  --line: #dce3ec;
  --line-strong: #c3cfdd;
  --accent: #e6aa17;
  --accent-hover: #c88b05;
  --accent-soft: #fff7df;
  --green: #0d7a55;
  --green-soft: #e9f5ef;
  --red: #bd3d32;
  --red-soft: #fbecea;
  --blue: #0875b9;
  --shadow: 0 18px 48px rgba(9, 45, 97, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(44, 99, 199, 0.25);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(223, 226, 220, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.topbar__inner {
  width: min(1180px, calc(100% - 40px));
  height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: #fff;
  background-image: url("./assets/worldtrade-connect-logo.jpg");
  background-position: center 8%;
  background-size: 168% auto;
  background-repeat: no-repeat;
}

.brand__name,
.brand__name strong,
.brand__name small {
  display: block;
}

.brand__name strong {
  font-size: 16px;
  font-weight: 800;
}

.brand__name small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  line-height: 1;
}

.primary-nav {
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.nav-item {
  position: relative;
  height: 64px;
  min-width: 0;
  padding: 7px 4px 6px;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.nav-item__icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #8995a7;
  font-size: 17px;
  font-style: normal;
  line-height: 1;
}

.nav-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: calc(50% - 20px);
  left: calc(50% - 20px);
  height: 2px;
  background: transparent;
}

.nav-item:hover,
.nav-item.is-active {
  color: var(--ink);
}

.nav-item.is-active::after {
  background: var(--accent-hover);
}

.nav-item.is-active .nav-item__icon {
  color: var(--ink);
}

.nav-item span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.language-control {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
}

.language-control > span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.language-control select {
  width: 78px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.account-popover {
  position: absolute;
  top: 46px;
  right: 0;
  width: 250px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(20, 25, 21, 0.16);
}

.account-popover__head,
.account-popover__balance {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.account-popover__head span,
.account-popover__balance span,
.account-popover__head strong,
.account-popover__balance strong {
  display: block;
}

.account-popover__head span,
.account-popover__balance span {
  color: var(--muted);
  font-size: 10px;
}

.account-popover__head strong,
.account-popover__balance strong {
  margin-top: 5px;
  font-size: 12px;
}

.account-popover__head strong {
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-popover > button {
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.account-popover > button:hover {
  background: var(--surface-alt);
}

.account-popover > button:last-child {
  border-bottom: 0;
}

.account-popover > .account-popover__danger {
  color: var(--red);
}

.network-pill,
.wallet-button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.network-pill {
  padding: 0 12px;
  cursor: default;
}

.network-pill:not(:disabled) {
  cursor: pointer;
}

.network-pill.is-wrong {
  border-color: rgba(183, 55, 55, 0.42);
  color: var(--red);
  background: rgba(183, 55, 55, 0.06);
}

.wallet-button {
  min-width: 126px;
  justify-content: center;
  padding: 0 14px;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.wallet-button:hover {
  background: #12427c;
}

.wallet-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.status-dot,
.wallet-button__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(13, 122, 85, 0.1);
}

.wallet-button__dot {
  background: var(--accent);
  box-shadow: none;
}

.status-dot.is-error {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(183, 55, 55, 0.1);
}

.intro-hero {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  background: #fff;
}

.intro-hero__media,
.intro-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-hero__media {
  object-fit: cover;
  object-position: center 42%;
}

.intro-hero__overlay {
  background: rgba(255, 255, 255, 0.87);
}

.intro-hero__inner {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  min-height: 470px;
  margin: 0 auto;
  padding: 54px 0 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.intro-hero__eyebrow {
  margin: 0 0 11px;
  color: var(--gold-dark, #9b6900);
  font-size: 11px;
  font-weight: 850;
}

.intro-hero h1,
.intro-hero h2,
.intro-hero__inner > p {
  margin: 0;
}

.intro-hero h1 {
  color: var(--ink);
  font-size: 56px;
  line-height: 1.06;
  font-weight: 820;
}

.intro-hero h2 {
  margin-top: 12px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.4;
}

.intro-hero__inner > p:not(.intro-hero__eyebrow) {
  max-width: 690px;
  margin-top: 16px;
  color: #53647a;
  font-size: 14px;
  line-height: 1.8;
}

.intro-hero__cta {
  min-width: 154px;
  min-height: 48px;
  margin-top: 24px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.intro-hero__cta:hover {
  background: #12427c;
}

.intro-hero__facts {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
}

.intro-hero__facts span {
  padding: 0 17px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.intro-hero__facts span:first-child {
  padding-left: 0;
  border-left: 0;
}

.network-banner {
  position: relative;
  overflow: hidden;
  background: #082b5b;
  color: #fff;
}

.network-banner__art {
  position: absolute;
  inset: 0;
  background-image: url("./assets/bsc-network.svg");
  background-position: center;
  background-size: cover;
  opacity: 0.3;
}

.network-banner__inner {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  min-height: 126px;
  margin: 0 auto;
  padding: 26px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.network-banner__intro-status {
  display: none;
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.live-label > span:first-child {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(243, 186, 47, 0.13);
}

.live-label__copy {
  display: grid;
  gap: 3px;
}

.live-label__copy small {
  color: #8eabd0;
  font-size: 9px;
  font-weight: 800;
}

.live-label__copy strong {
  color: #fff;
  font-size: 14px;
}

.network-banner__inner > p {
  margin: 0;
  color: #c4d2e4;
  font-size: 13px;
}

.network-facts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: #d0dbea;
  font-size: 12px;
}

.network-facts > span {
  padding-left: 22px;
  border-left: 1px solid #466386;
  white-space: nowrap;
}

.network-facts strong {
  color: #fff;
  font-size: 14px;
}

.main-content {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 280px);
  margin: 0 auto;
  padding: 48px 0 80px;
}

.view {
  --view-background-position: right -120px top -90px;
  position: relative;
  isolation: isolate;
  scroll-margin-top: 88px;
  min-height: 640px;
  padding: clamp(24px, 3vw, 38px);
  overflow: hidden;
  display: none;
  background-color: rgba(243, 246, 250, 0.96);
  background-image:
    linear-gradient(115deg, rgba(243, 246, 250, 0.99) 0%, rgba(243, 246, 250, 0.9) 55%, rgba(243, 246, 250, 0.78) 100%),
    url("./assets/worldtrade-connect-logo.jpg");
  background-position: center, var(--view-background-position);
  background-repeat: no-repeat;
  background-size: cover, clamp(560px, 64vw, 780px) auto;
  box-shadow: inset 0 0 0 1px rgba(9, 45, 97, 0.06);
}

#view-participate {
  --view-background-position: right -120px top 50px;
}

#view-assets {
  --view-background-position: left -150px top -110px;
}

#view-invite {
  --view-background-position: right -110px center;
}

#view-records {
  --view-background-position: left -130px top 30px;
}

.view > * {
  position: relative;
  z-index: 1;
}

.view.is-active {
  display: block;
  animation: view-in 180ms ease-out;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-heading {
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: #8a6507;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-heading h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.18;
  font-weight: 760;
}

.page-heading > div > p:last-child {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.page-heading__meta {
  text-align: right;
}

.page-heading__meta span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.page-heading__meta strong {
  font-size: 18px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  align-items: start;
  gap: 20px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.participation-panel {
  padding: 28px;
}

.panel__header {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel__header--compact {
  margin-bottom: 20px;
}

.panel__header h2,
.section-heading-row h2,
.invite-lock h2,
.invite-copy-block h2,
.modal h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.status-badge,
.relationship-status {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 9px;
  border-radius: 5px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.status-badge.is-ready,
.relationship-status.is-bound {
  background: var(--green-soft);
  color: var(--green);
}

.notice-bar {
  min-height: 48px;
  margin-bottom: 26px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #eddca6;
  border-radius: 6px;
  background: var(--accent-soft);
  color: #76570b;
  font-size: 12px;
}

.notice-bar.is-ready {
  border-color: #cbe5d8;
  background: var(--green-soft);
  color: var(--green);
}

.notice-bar__icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.notice-bar button {
  padding: 4px 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.field-label-row {
  margin-bottom: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.field-label-row label {
  font-size: 13px;
  font-weight: 750;
}

.field-label-row span {
  color: var(--muted);
  font-size: 12px;
}

.field-label-row strong {
  color: var(--ink);
}

.amount-control {
  height: 72px;
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface-alt);
}

.amount-control.is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(189, 61, 50, 0.1);
}

.step-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
}

.step-button:hover {
  background: #eceee9;
  color: var(--ink);
}

.amount-input-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.amount-input-wrap input {
  width: min(180px, 70%);
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 30px;
  font-weight: 760;
  text-align: right;
  appearance: textfield;
}

.amount-input-wrap input::-webkit-inner-spin-button,
.amount-input-wrap input::-webkit-outer-spin-button {
  appearance: none;
}

.amount-input-wrap span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.amount-presets {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.amount-presets button,
.segmented-filter button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.amount-presets button:last-child,
.segmented-filter button:last-child {
  border-right: 0;
}

.amount-presets button:hover,
.amount-presets button.is-selected,
.segmented-filter button:hover,
.segmented-filter button.is-selected {
  background: var(--accent-soft);
  color: #6d4f06;
}

.field-hint,
.field-error {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.field-error {
  color: var(--red);
}

.quote-list {
  margin: 22px 0 20px;
  border-top: 1px solid var(--line);
}

.quote-list > div {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.quote-list dt,
.quote-list dd {
  margin: 0;
  font-size: 12px;
}

.quote-list dt {
  color: var(--muted);
}

.quote-list dd {
  text-align: right;
}

.quote-list strong {
  font-size: 14px;
}

.node-value {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.inline-node-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.primary-action,
.secondary-action {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.primary-action {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
}

.primary-action:hover:not(:disabled) {
  border-color: #2e332f;
  background: #2e332f;
}

.primary-action:disabled,
.secondary-action:disabled {
  border-color: var(--line);
  background: #eceeea;
  color: #929792;
  cursor: not-allowed;
}

.primary-action--inline {
  width: auto;
  min-width: 168px;
  padding: 0 22px;
}

.secondary-action {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.secondary-action:hover:not(:disabled) {
  border-color: var(--ink);
}

.button-arrow {
  font-size: 17px;
}

.action-footnote {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.account-column {
  display: grid;
  gap: 20px;
}

.node-panel,
.inviter-panel {
  padding: 22px;
}

.node-emblem {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.node-emblem img {
  width: 28px;
  height: 28px;
  display: block;
}

.node-emblem.is-node-one {
  border-color: #c9a34a;
  background: #ffefbb;
  color: #78590e;
}

.node-emblem.is-node-two {
  border-color: var(--accent);
  background: var(--ink);
  color: var(--accent);
}

.node-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.node-summary span,
.metric-pair span,
.rights-row span {
  color: var(--muted);
  font-size: 11px;
}

.node-summary strong {
  font-size: 18px;
}

.progress-track {
  position: relative;
  height: 8px;
  margin-top: 18px;
  overflow: visible;
  border-radius: 4px;
  background: #e6e9e3;
}

.progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 4px;
  background: var(--accent-hover);
  transition: width 420ms ease;
}

.progress-marker {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 12px;
  transform: translateY(-50%);
  background: #b8beb7;
}

.progress-marker--one { left: 10%; }
.progress-marker--two { left: 50%; }

.progress-labels {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
}

.metric-pair {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-pair > div {
  min-width: 0;
  padding: 16px 12px 16px 0;
}

.metric-pair > div + div {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.metric-pair span,
.metric-pair strong,
.rights-row span,
.rights-row strong {
  display: block;
}

.metric-pair strong,
.rights-row strong {
  margin-top: 5px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.rights-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.rights-row > div {
  padding-top: 16px;
}

.inviter-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.identity-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eceee9;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.inviter-identity strong,
.inviter-identity span:not(.identity-avatar) {
  display: block;
}

.inviter-identity strong {
  max-width: 210px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inviter-identity span:not(.identity-avatar) {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.node-comparison {
  margin-top: 48px;
}

.section-heading-row {
  margin-bottom: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading-row > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.node-table {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.node-table__row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.node-table__row:last-child {
  border-bottom: 0;
}

.node-table__head {
  min-height: 42px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.node-table__row > span,
.node-table__row > strong {
  min-width: 0;
  padding-right: 14px;
  overflow-wrap: anywhere;
}

.node-level-icon {
  width: 26px;
  height: 26px;
  margin-right: 9px;
  flex: 0 0 auto;
}

.asset-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.metric-card {
  min-height: 154px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric-card span,
.metric-card small {
  color: var(--muted);
  font-size: 11px;
}

.metric-card strong {
  margin: 12px 0 4px;
  font-size: 28px;
}

.asset-node-card {
  position: relative;
}

.asset-node-card__emblem {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230, 170, 23, 0.45);
  border-radius: 6px;
  background: var(--accent-soft);
}

.asset-node-card__emblem img {
  width: 30px;
  height: 30px;
}

.asset-node-card__emblem i {
  color: var(--accent-hover);
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
}

.asset-node-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ledger-panel,
.records-panel {
  overflow: hidden;
}

.ledger-panel .panel__header {
  padding: 24px 24px 0;
}

.empty-state {
  min-height: 320px;
  padding: 40px 20px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-state > span,
.lock-symbol {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
}

.empty-state strong {
  font-size: 15px;
}

.empty-state p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.invite-layout {
  min-height: 480px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.invite-lock {
  min-height: 480px;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.invite-lock > p:not(.eyebrow) {
  max-width: 460px;
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.invite-ready {
  padding: 44px;
}

.invite-copy-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.invite-symbol {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 850;
}

.invite-copy-block__hint {
  max-width: 520px;
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.copy-field {
  max-width: 650px;
  height: 52px;
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  overflow: hidden;
}

.copy-field input {
  min-width: 0;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 12px;
}

.copy-field button {
  min-width: 84px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.invite-stats {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.invite-stats section {
  min-height: 120px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.invite-stats section:last-child {
  border-right: 0;
}

.invite-stats span,
.invite-stats small {
  color: var(--muted);
  font-size: 11px;
}

.invite-stats strong {
  margin: 8px 0 2px;
  font-size: 24px;
}

.invitee-panel {
  max-width: 900px;
  margin: 30px auto 0;
  border-top: 1px solid var(--line-strong);
}

.invitee-panel__header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.invitee-panel__header h2 {
  margin: 0;
  font-size: 17px;
}

.invitee-panel__header > span {
  color: var(--muted);
  font-size: 11px;
}

.invitee-panel__header > span strong {
  color: var(--ink);
  font-size: 13px;
}

.invitee-empty {
  min-height: 120px;
  padding: 26px 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(247, 249, 252, 0.9);
  text-align: center;
}

.invitee-empty strong {
  font-size: 13px;
}

.invitee-empty p {
  max-width: 460px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.invitee-list {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.invitee-row {
  min-height: 74px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(280px, 1.8fr) auto;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.invitee-row:last-child {
  border-bottom: 0;
}

.invitee-row__identity strong,
.invitee-row__identity small {
  display: block;
}

.invitee-row__identity strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.invitee-row__identity small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.invitee-row dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.invitee-row dl > div {
  padding: 2px 16px;
  border-left: 1px solid var(--line);
}

.invitee-row dt,
.invitee-row dd {
  margin: 0;
}

.invitee-row dt {
  color: var(--muted);
  font-size: 9px;
}

.invitee-row dd {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 750;
}

.records-toolbar {
  min-height: 66px;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.segmented-filter {
  display: grid;
  grid-template-columns: repeat(3, 78px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.records-toolbar > span {
  color: var(--muted);
  font-size: 11px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.mobile-data-cards {
  display: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th,
td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

td strong {
  font-size: 12px;
}

.tx-link {
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--blue);
  font-size: 11px;
  cursor: pointer;
}

.table-status {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 8px;
  border-radius: 5px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 750;
}

.table-status.is-pending {
  background: var(--accent-soft);
  color: #7b5d0d;
}

.footer {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto calc(64px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.footer div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.footer p {
  margin: 0;
}

.modal-layer {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-layer.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 19, 0.64);
  backdrop-filter: blur(5px);
}

.modal {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid #333a35;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}

.modal-copy {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.wallet-options {
  display: grid;
  gap: 8px;
}

.wallet-options button {
  min-height: 64px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.wallet-options button:hover {
  border-color: var(--line-strong);
  background: var(--surface-alt);
}

.wallet-options button.is-unavailable {
  border-style: dashed;
}

.wallet-logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.wallet-logo--fox { background: #d95d2c; }
.wallet-logo--blue { background: #2c63c7; }
.wallet-logo--bnb { background: var(--accent); color: var(--ink); }

.wallet-options strong,
.wallet-options small {
  display: block;
}

.wallet-options strong {
  font-size: 13px;
}

.wallet-options small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.wallet-options i {
  color: var(--muted);
  font-style: normal;
}

.modal-footnote {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.modal-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 750;
}

.modal-input {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: 0;
  background: var(--surface-alt);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.modal-input:focus {
  border-color: var(--blue);
}

.bind-validation {
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 11px;
}

.bind-validation i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  font-size: 10px;
  font-style: normal;
}

.transaction-modal {
  text-align: center;
}

.transaction-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
}

.transaction-icon span {
  width: 20px;
  height: 20px;
  display: block;
  border: 3px solid var(--accent-hover);
  border-top-color: transparent;
  border-radius: 50%;
}

.transaction-icon.is-spinning span {
  animation: spin 800ms linear infinite;
}

.transaction-icon.is-complete {
  background: var(--green-soft);
}

.transaction-icon.is-complete span {
  width: 20px;
  height: 11px;
  border: 0;
  border-bottom: 3px solid var(--green);
  border-left: 3px solid var(--green);
  border-radius: 0;
  transform: rotate(-45deg) translate(2px, -2px);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.transaction-summary {
  margin: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.transaction-summary > div {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.transaction-summary > div:last-child {
  border-bottom: 0;
}

.transaction-summary dt,
.transaction-summary dd {
  margin: 0;
  font-size: 12px;
}

.transaction-summary dt {
  color: var(--muted);
}

.transaction-summary dd {
  font-weight: 750;
}

.confirmation-progress {
  margin: 26px 0;
  display: grid;
  grid-template-columns: 1fr 38px 1fr;
  align-items: start;
}

.confirmation-progress > div {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.confirmation-progress > div span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}

.confirmation-progress > div span.is-complete {
  border-color: var(--green);
  background: var(--green);
}

.confirmation-progress > div span.is-complete::after {
  content: "✓";
  color: #fff;
  font-size: 11px;
}

.confirmation-progress > div strong {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.confirmation-progress > i {
  height: 1px;
  margin-top: 11px;
  background: var(--line);
}

.toast-region {
  position: fixed;
  z-index: 150;
  right: 20px;
  bottom: calc(76px + env(safe-area-inset-bottom));
  display: grid;
  gap: 8px;
}

.toast {
  min-width: 250px;
  max-width: 360px;
  padding: 13px 14px;
  border: 1px solid #32413a;
  border-radius: 7px;
  background: #1f2a24;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  animation: toast-in 180ms ease-out;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .topbar__inner {
    gap: 16px;
  }

  .network-pill {
    display: none;
  }

  .network-banner__inner {
    grid-template-columns: auto 1fr;
  }

  .network-facts {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .network-facts > span:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .account-column {
    grid-template-columns: 1fr 1fr;
  }

  .asset-metrics {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 120px;
  }

}

@media (max-width: 640px) {
  .topbar {
    padding-top: env(safe-area-inset-top);
  }

  .topbar__inner,
  .intro-hero__inner,
  .network-banner__inner,
  .main-content,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  .topbar__inner {
    height: 60px;
    gap: 10px;
  }

  .brand {
    font-size: 13px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .brand__name {
    display: none;
  }

  .language-control {
    height: 44px;
    padding: 0 3px;
    min-width: 0;
    max-width: 100px;
  }

  .language-control > span {
    display: none;
  }

  .language-control select {
    width: auto;
    min-width: 64px;
    max-width: 94px;
    font-size: 16px;
  }

  .wallet-button {
    min-width: 100px;
    max-width: 124px;
    height: 44px;
    padding: 0 10px;
    overflow: hidden;
  }

  #walletButtonText {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .network-banner__inner {
    height: 72px;
    min-height: 72px;
    padding: 0 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .network-banner__art {
    display: none;
  }

  .live-label {
    height: 72px;
    padding-right: 10px;
    gap: 8px;
    border-right: 1px solid rgba(160, 184, 216, 0.28);
  }

  .live-label__copy {
    gap: 3px;
  }

  .live-label__copy small {
    font-size: 6px;
  }

  .live-label__copy strong {
    font-size: 10px;
  }

  .live-label > span:first-child {
    width: 7px;
    height: 7px;
  }

  .intro-hero {
    height: min(580px, calc(100svh - 190px));
    min-height: 420px;
  }

  .intro-hero__media {
    object-position: center 38%;
  }

  .intro-hero__overlay {
    background: rgba(255, 255, 255, 0.88);
  }

  .intro-hero__inner {
    height: 100%;
    min-height: 0;
    padding: 30px 0 26px;
  }

  .intro-hero__eyebrow {
    margin-bottom: 8px;
    font-size: 9px;
  }

  .intro-hero h1 {
    font-size: 42px;
  }

  .intro-hero h2 {
    margin-top: 9px;
    font-size: 17px;
  }

  .intro-hero__inner > p:not(.intro-hero__eyebrow) {
    max-width: 340px;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.65;
  }

  .intro-hero__cta {
    min-width: 142px;
    min-height: 44px;
    margin-top: 18px;
  }

  .intro-hero__facts {
    margin-top: 20px;
  }

  .intro-hero__facts span {
    padding: 0 10px;
    font-size: 8px;
  }

  .network-banner__inner > p {
    display: none;
  }

  .network-facts {
    grid-column: auto;
    height: 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    overflow: visible;
  }

  .network-facts > span {
    height: 72px;
    padding: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(160, 184, 216, 0.28);
    font-size: 7px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .network-facts > span:first-child {
    display: none;
  }

  .network-facts > span:last-child {
    border-left: 0;
  }

  .network-facts strong {
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1;
  }

  .main-content {
    width: min(calc(100% - 24px), 480px);
    min-height: calc(100vh - 216px);
    padding: 24px 0 calc(84px + env(safe-area-inset-bottom));
  }

  .view {
    --view-background-position: center top 22px;
    min-height: calc(100svh - 216px);
    padding: 20px 12px 28px;
    background-image:
      linear-gradient(180deg, rgba(243, 246, 250, 0.82) 0%, rgba(243, 246, 250, 0.94) 38%, rgba(243, 246, 250, 0.99) 100%),
      url("./assets/worldtrade-connect-logo.jpg");
    background-size: cover, 118vw auto;
    box-shadow: inset 0 0 0 1px rgba(9, 45, 97, 0.05);
  }

  #view-participate {
    --view-background-position: center top 20px;
  }

  #view-assets {
    --view-background-position: center top -24px;
  }

  #view-invite {
    --view-background-position: center top 44px;
  }

  #view-records {
    --view-background-position: center top -12px;
  }

  .page-heading {
    margin-bottom: 18px;
    align-items: flex-start;
  }

  .page-heading h1 {
    font-size: 25px;
  }

  .page-heading > div > p:last-child {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.55;
  }

  .page-heading__meta {
    display: none;
  }

  .asset-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .asset-metrics .asset-node-card {
    grid-column: 1 / -1;
  }

  .metric-card {
    min-height: 116px;
    padding: 16px;
  }

  .metric-card strong {
    margin-top: 9px;
    font-size: 23px;
  }

  .asset-node-card {
    min-height: 103px;
    padding: 17px;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 14px;
    border-color: rgba(255, 255, 255, 0.12);
    background: var(--ink);
    color: #fff;
  }

  .asset-node-card__emblem {
    position: static;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    background: rgba(230, 170, 23, 0.08);
  }

  .asset-node-card__emblem img {
    width: 34px;
    height: 34px;
  }

  .asset-node-card__emblem i {
    color: var(--accent);
  }

  .asset-node-card__body {
    flex: 1;
  }

  .asset-node-card__body > span,
  .asset-node-card__body > small {
    color: #c6d3e4;
  }

  .asset-node-card__body > strong {
    margin: 4px 0 0;
    color: #fff;
    font-size: 17px;
  }

  .asset-node-card__body > small {
    margin-top: 6px;
    line-height: 1.45;
  }

  .participation-panel,
  .node-panel,
  .inviter-panel {
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
  }

  .participation-panel {
    box-shadow: 0 12px 32px rgba(9, 45, 97, 0.08);
  }

  .panel__header {
    margin-bottom: 16px;
  }

  .notice-bar {
    min-height: 44px;
    margin-bottom: 20px;
    grid-template-columns: auto 1fr;
    line-height: 1.45;
  }

  .notice-bar button {
    min-height: 40px;
    grid-column: 2;
    justify-self: start;
  }

  .field-label-row {
    margin-bottom: 7px;
    gap: 12px;
  }

  .field-label-row label,
  .field-label-row span {
    font-size: 9px;
  }

  .amount-control {
    height: 57px;
    grid-template-columns: 40px 1fr 40px;
  }

  .step-button {
    font-size: 17px;
  }

  .amount-input-wrap {
    gap: 5px;
  }

  .amount-input-wrap input {
    width: 4ch;
    min-width: 3ch;
    max-width: 4ch;
    font-size: 22px;
  }

  .amount-input-wrap span {
    font-size: 8px;
  }

  .amount-presets {
    margin-top: 7px;
    border-radius: 5px;
  }

  .segmented-filter button {
    min-height: 44px;
  }

  .amount-presets button {
    min-height: 36px;
    font-size: 8px;
  }

  .primary-action,
  .secondary-action {
    min-height: 52px;
  }

  .action-footnote {
    line-height: 1.5;
  }

  .copy-field input,
  .modal-input {
    font-size: 16px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
  }

  .wallet-options button {
    min-height: 68px;
  }

  .modal-copy {
    padding-right: 34px;
  }

  .modal {
    overscroll-behavior: contain;
  }

  .status-badge,
  .relationship-status,
  .table-status {
    min-height: 28px;
  }

  .amount-control:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(8, 117, 185, 0.1);
  }

  .amount-control.is-invalid:focus-within {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(189, 61, 50, 0.1);
  }

  .quote-list > div {
    min-height: 44px;
  }

  .account-column {
    grid-template-columns: 1fr;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .node-table__row {
    grid-template-columns: 1.15fr 1.25fr 0.8fr 0.8fr;
    font-size: 10px;
  }

  .node-table__head {
    font-size: 9px;
  }

  .invite-ready {
    padding: 26px 12px;
  }

  .invite-copy-block {
    padding: 18px 14px;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.96);
  }

  .invite-symbol {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
  }

  .invite-copy-block h2 {
    font-size: 16px;
  }

  .invite-copy-block__hint {
    font-size: 11px;
  }

  .invite-copy-block .copy-field {
    margin-top: 16px;
  }

  .invite-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .invite-stats section {
    min-height: 96px;
    padding: 14px 10px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .invite-stats section:last-child {
    border-right: 0;
  }

  .invitee-panel {
    margin-top: 22px;
  }

  .invitee-panel__header {
    min-height: 54px;
  }

  .invitee-panel__header h2 {
    font-size: 15px;
  }

  .invitee-empty {
    min-height: 112px;
    padding: 22px 16px;
  }

  .invitee-row {
    min-height: 112px;
    padding: 13px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 11px;
  }

  .invitee-row dl {
    grid-column: 1 / -1;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .invitee-row dl > div:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .copy-field {
    grid-template-columns: minmax(0, 1fr) 70px;
  }

  .copy-field button {
    min-width: 0;
    padding: 0 8px;
  }

  .records-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .segmented-filter {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  th,
  td {
    padding: 14px 16px;
  }

  .ledger-panel .table-scroll,
  .records-panel .table-scroll {
    display: none;
  }

  .mobile-data-cards:not(.is-hidden) {
    padding: 12px;
    display: grid;
    gap: 10px;
  }

  .mobile-data-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
  }

  .mobile-data-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-data-card__head > strong {
    color: var(--ink);
    font-size: 14px;
  }

  .mobile-data-card dl {
    margin: 14px 0 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .mobile-data-card dl > div {
    padding: 11px 0;
  }

  .mobile-data-card dl > div + div {
    padding-left: 12px;
    border-left: 1px solid var(--line);
  }

  .mobile-data-card dt,
  .mobile-data-card dd {
    margin: 0;
  }

  .mobile-data-card dt {
    color: var(--muted);
    font-size: 9px;
  }

  .mobile-data-card dd {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 750;
  }

  .mobile-data-card .is-positive {
    color: var(--green);
  }

  .mobile-data-card > time,
  .mobile-record-card p time {
    color: var(--muted);
    font-size: 9px;
  }

  .mobile-record-card p {
    margin: 13px 0 11px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
  }

  .mobile-record-card .mobile-tx-link {
    padding: 0 0 2px;
    font-size: 10px;
  }

  .footer {
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .modal {
    width: 100%;
    max-height: 88vh;
    padding: 26px 18px calc(24px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
  }

  .modal-layer {
    padding: 0;
    align-items: flex-end;
  }

  .account-popover {
    position: fixed;
    top: calc(66px + env(safe-area-inset-top));
    right: 12px;
    width: min(280px, calc(100vw - 24px));
  }

  .confirmation-progress {
    grid-template-columns: 1fr 24px 1fr;
  }

  .toast-region {
    right: 12px;
    bottom: 72px;
    left: 12px;
  }

  .toast {
    min-width: 0;
    max-width: none;
  }

  .wallet-button__dot {
    display: none;
  }

  .language-control select {
    font-size: 12px;
  }

  .main-content {
    width: 100%;
    min-height: calc(100svh - 124px);
    margin: 0;
    padding: 0 0 calc(64px + env(safe-area-inset-bottom));
  }

  .view {
    width: 100%;
    min-height: calc(100svh - 124px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 20px 16px 28px;
    scroll-margin-top: calc(72px + env(safe-area-inset-top));
    box-shadow: none;
  }

  #view-participate {
    min-height: calc(100svh - 196px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  body.is-intro-mode .main-content,
  body.is-intro-mode .footer {
    display: none;
  }

  body.is-intro-mode .intro-hero {
    height: calc(100svh - 168px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    min-height: 420px;
  }

  body.is-intro-mode .network-banner {
    height: 44px;
    min-height: 44px;
  }

  body.is-intro-mode .network-banner__art,
  body.is-intro-mode .network-banner__inner > .live-label,
  body.is-intro-mode .network-banner__inner > p,
  body.is-intro-mode .network-facts {
    display: none;
  }

  body.is-intro-mode .network-banner__inner {
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 0 20px;
    display: flex;
  }

  body.is-intro-mode .network-banner__intro-status {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #d3deec;
    font-size: 10px;
  }

  body.is-intro-mode .network-banner__intro-status > span {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(230, 170, 23, 0.14);
  }

  .network-banner__inner {
    width: 100%;
    padding: 0 14px;
  }

  .workspace-grid {
    display: block;
  }

  #view-participate .account-column,
  #view-participate .node-comparison {
    display: none;
  }

  .participation-panel {
    margin-top: 17px;
    box-shadow: 0 12px 28px rgba(9, 45, 97, 0.07);
  }

  .participation-panel .notice-bar button,
  .participation-panel .field-hint,
  .participation-panel .action-footnote {
    display: none;
  }

  .participation-panel .notice-bar {
    margin-bottom: 18px;
    grid-template-columns: auto 1fr;
  }

  .participation-panel .quote-list {
    margin: 14px 0 13px;
  }

  .participation-panel .quote-list > div {
    min-height: 35px;
  }

  .participation-panel .quote-list dt,
  .participation-panel .quote-list dd,
  .participation-panel .quote-list strong {
    font-size: 9px;
  }

  .participation-panel .primary-action {
    min-height: 46px;
  }

  .page-heading {
    margin-bottom: 0;
  }

  .page-heading h1 {
    font-size: 22px;
  }

  .asset-metrics {
    margin-top: 20px;
    margin-bottom: 0;
  }

  .ledger-panel,
  .records-panel {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .ledger-panel .panel__header {
    min-height: 48px;
    margin: 8px 0 0;
    padding: 0;
    align-items: center;
  }

  .ledger-panel .panel__header .section-kicker {
    display: none;
  }

  .ledger-panel .panel__header h2 {
    font-size: 15px;
  }

  .ledger-panel .empty-state,
  .records-panel .empty-state {
    min-height: 150px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
  }

  .ledger-panel .mobile-data-cards:not(.is-hidden) {
    padding: 0;
    overflow: hidden;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
  }

  .ledger-panel .mobile-data-card {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .ledger-panel .mobile-data-card:last-child {
    border-bottom: 0;
  }

  .invite-layout {
    min-height: 0;
    border: 0;
    background: transparent;
  }

  .invite-lock {
    min-height: calc(100svh - 240px);
  }

  .invite-ready {
    padding: 14px 0 0;
  }

  .invite-copy-block {
    border-right: 1px solid var(--line-strong);
    border-left: 1px solid var(--line-strong);
    border-radius: 8px;
  }

  .invite-stats {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.82);
  }

  .records-toolbar {
    margin: 20px 0 12px;
    padding: 0;
    border: 0;
  }

  .records-toolbar > span {
    display: none;
  }

  .records-panel .mobile-data-cards:not(.is-hidden) {
    padding: 0;
    gap: 9px;
  }

  .footer {
    display: none;
  }

  .modal::before {
    content: "";
    width: 36px;
    height: 4px;
    margin: -14px auto 18px;
    display: block;
    border-radius: 2px;
    background: #d6dde6;
  }

  .bind-validation {
    margin-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 640px) and (max-height: 650px) {
  .intro-hero__facts {
    display: none;
  }

  .intro-hero__inner {
    padding-top: 24px;
    padding-bottom: 20px;
  }
}

@media (max-width: 640px) {
  html[lang="en"] .intro-hero__inner > p:not(.intro-hero__eyebrow),
  html[lang="vi"] .intro-hero__inner > p:not(.intro-hero__eyebrow) {
    font-size: 11px;
    line-height: 1.55;
  }
}
