:root {
  color-scheme: dark;
  --ink: #05080c;
  --ink-soft: #080d13;
  --panel: #0b1119;
  --panel-raised: #101824;
  --line: #222c3b;
  --line-strong: #2e3b4d;
  --text: #f5f7fb;
  --text-soft: #a0aabd;
  --text-dim: #707c90;
  --mint: #14e78a;
  --mint-bright: #7bffc0;
  --mint-deep: #063d2a;
  --gold: #f2b84b;
  --danger: #ff6d79;
  --sticky: 20;
  --menu: 40;
  --modal: 60;
  --toast: 80;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow: 0 20px 55px rgb(0 0 0 / 32%);
  --font-body: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-data: "SFMono-Regular", "Roboto Mono", "Cascadia Code", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgb(20 231 138 / 9%), transparent 34rem),
    var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
select,
input[type="range"] {
  cursor: pointer;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible,
a:focus-visible {
  outline: 3px solid var(--mint-bright);
  outline-offset: 3px;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  translate: 0 -160%;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--mint);
  color: #02160d;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  translate: 0;
}

.app-shell {
  width: 100%;
  min-height: 100svh;
}

.topbar {
  position: sticky;
  z-index: var(--sticky);
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 74px;
  padding: max(12px, env(safe-area-inset-top)) clamp(16px, 4vw, 32px) 12px;
  border-bottom: 1px solid var(--line);
  background: rgb(5 8 12 / 91%);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  color: var(--mint);
  font-family: var(--font-data);
  font-size: clamp(19px, 3vw, 23px);
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: #032318;
  box-shadow: 0 0 26px rgb(20 231 138 / 22%);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.8;
}

.prototype-pill {
  justify-self: center;
  padding: 5px 10px;
  border: 1px solid rgb(123 255 192 / 24%);
  border-radius: 999px;
  background: rgb(20 231 138 / 7%);
  color: var(--mint-bright);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.wallet-chip {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  min-height: 44px;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgb(20 231 138 / 30%);
  border-radius: 12px;
  background: rgb(20 231 138 / 7%);
  color: var(--mint);
  font-family: var(--font-data);
  font-size: 13px;
}

.wallet-chip svg {
  width: 16px;
  height: 16px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

.market-strip {
  position: sticky;
  z-index: calc(var(--sticky) - 1);
  top: 74px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #080c11;
  color: var(--text-dim);
  font-family: var(--font-data);
  font-size: 12px;
}

.ticker-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 34px;
  padding: 0 16px;
  white-space: nowrap;
}

.ticker-track b {
  color: var(--text-soft);
}

.ticker-track em {
  color: var(--text-dim);
  font-style: normal;
}

.ticker-track .up {
  color: var(--mint);
}

.login-view {
  position: relative;
  display: grid;
  min-height: calc(100svh - 109px);
  place-items: center;
  padding: clamp(44px, 8vw, 92px) 16px;
  isolation: isolate;
}

.login-orbit {
  position: absolute;
  z-index: -1;
  top: 18%;
  left: 50%;
  width: min(88vw, 560px);
  aspect-ratio: 1;
  translate: -50% 0;
  border: 1px solid rgb(20 231 138 / 8%);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(20 231 138 / 7%), transparent 64%);
  box-shadow: inset 0 0 90px rgb(20 231 138 / 4%);
}

.panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgb(13 20 29 / 98%), rgb(8 13 20 / 98%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 2%);
}

.panel::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--mint), transparent);
  content: "";
  opacity: 0.34;
}

.login-panel {
  width: min(100%, 620px);
  padding: clamp(24px, 6vw, 40px);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.section-heading--stacked {
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-heading--compact {
  min-height: 62px;
  padding: 0 clamp(18px, 4vw, 26px);
  border-bottom: 1px solid var(--line);
}

.section-heading h1,
.section-heading h2,
.section-heading p {
  margin: 0;
}

.section-heading h1,
.section-heading h2 {
  min-width: 0;
  font-size: clamp(17px, 3.2vw, 20px);
  line-height: 1.25;
}

.section-heading--stacked h1 {
  margin-top: 2px;
  font-size: clamp(26px, 5vw, 34px);
}

.heading-icon {
  flex: 0 0 auto;
  color: var(--mint);
}

.heading-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.heading-icon--gold {
  color: var(--gold);
}

.eyebrow {
  color: var(--mint);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.section-meta {
  min-width: 0;
  margin-left: auto;
  color: var(--text-dim);
  font-family: var(--font-data);
  font-size: 12px;
  overflow-wrap: anywhere;
  text-align: right;
}

.wallet-preview {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  margin: 28px 0 18px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel-raised);
}

.wallet-preview__icon {
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 12px;
  background: rgb(20 231 138 / 10%);
  color: var(--mint);
}

.wallet-preview__icon svg {
  width: 28px;
  height: 28px;
}

.wallet-preview__copy {
  min-width: 0;
}

.wallet-preview__copy strong,
.wallet-preview__copy small {
  display: block;
  overflow-wrap: anywhere;
}

.wallet-preview__copy strong {
  font-size: 17px;
}

.wallet-preview__copy small {
  margin-top: 3px;
  color: var(--text-dim);
  font-family: var(--font-data);
  font-size: 12px;
}

.verified-badge {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-left: auto;
  place-items: center;
  border: 2px solid var(--mint);
  border-radius: 50%;
  color: var(--mint);
  opacity: 0.45;
}

.verified-badge.is-ready {
  opacity: 1;
}

.verified-badge svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 750;
  transition: translate 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.primary-button {
  border: 1px solid var(--mint);
  background: var(--mint);
  color: #032015;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: var(--panel-raised);
  color: var(--text);
}

.primary-button:hover,
.secondary-button:hover {
  translate: 0 -1px;
}

.primary-button:active,
.secondary-button:active {
  translate: 0;
}

.primary-button svg {
  width: 22px;
  height: 22px;
}

.login-panel > .primary-button {
  width: 100%;
}

.safety-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13px;
}

.wallet-error {
  min-height: 0;
  margin: 10px 0 0;
}

.wallet-error:not(:empty) {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgb(255 109 121 / 26%);
  border-radius: 9px;
  background: rgb(255 109 121 / 7%);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
  translate: 0;
}

.safety-note svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--mint);
}

.dashboard {
  padding: 22px 16px calc(106px + env(safe-area-inset-bottom));
}

.page-view {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.content-grid,
.column-stack {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.asset-hero {
  padding-top: 24px;
}

.asset-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
}

.asset-heading p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}

.asset-heading p span {
  color: var(--text-dim);
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  margin-left: auto;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-dim);
}

.icon-button:hover {
  background: var(--panel-raised);
  color: var(--mint);
}

.icon-button svg {
  width: 21px;
  height: 21px;
}

.asset-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px;
  padding: 10px 22px 24px;
}

.asset-total strong,
.big-stat strong,
.gift-amount strong,
.invite-code,
.calculation-result strong,
.reward-list strong,
.summary-footer strong {
  color: var(--mint);
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
}

.asset-total strong {
  font-size: clamp(40px, 9vw, 58px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.asset-total span {
  color: var(--text-dim);
  font-size: 14px;
}

.asset-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.asset-breakdown button {
  min-width: 0;
  min-height: 90px;
  padding: 14px 8px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: center;
}

.asset-breakdown button:last-child {
  border-right: 0;
}

.asset-breakdown button:hover {
  background: rgb(20 231 138 / 4%);
}

.asset-breakdown span,
.asset-breakdown strong {
  display: block;
}

.asset-breakdown span {
  color: var(--text-dim);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
}

.asset-breakdown strong {
  margin-top: 8px;
  font-family: var(--font-data);
  font-size: clamp(15px, 3.5vw, 18px);
  font-variant-numeric: tabular-nums;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.action-row button {
  display: grid;
  min-height: 94px;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-raised);
  font-weight: 700;
}

.action-row button:hover {
  border-color: rgb(20 231 138 / 35%);
  color: var(--mint);
}

.action-row svg {
  width: 26px;
  height: 26px;
}

.big-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 24px 22px;
}

.big-stat strong {
  font-size: 38px;
  letter-spacing: -0.04em;
}

.big-stat span {
  color: var(--text-dim);
  font-family: var(--font-data);
  font-size: 13px;
}

.metric-grid,
.gift-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
}

.metric-grid > div,
.gift-grid > div {
  min-width: 0;
  padding: 17px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-grid > div:nth-child(2n),
.gift-grid > div:nth-child(2n) {
  border-right: 0;
}

.metric-grid > div:nth-last-child(-n + 2),
.gift-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.metric-grid dt,
.gift-grid dt {
  color: var(--text-dim);
  font-size: 12px;
}

.metric-grid dd,
.gift-grid dd {
  margin: 7px 0 0;
  font-family: var(--font-data);
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.metric-grid small {
  color: var(--text-dim);
  font-size: 12px;
}

.empty-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 28px 18px;
  color: var(--text-dim);
  text-align: center;
}

.empty-state p {
  margin: 0;
}

.empty-state > span:last-child {
  max-width: 36ch;
  font-size: 13px;
}

.empty-state__mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--mint);
  font-family: var(--font-data);
  font-size: 20px;
}

.text-button {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--mint);
  font-weight: 700;
}

.gift-card,
.rule-card {
  padding-bottom: 0;
}

.gift-label,
.gift-amount {
  margin-right: 22px;
  margin-left: 22px;
}

.gift-label {
  margin-top: 22px;
  margin-bottom: 4px;
  color: var(--text-dim);
  font-size: 13px;
}

.gift-amount {
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--text-soft);
  font-family: var(--font-data);
  font-size: clamp(18px, 4vw, 22px);
}

.gift-amount strong {
  font-size: clamp(28px, 7vw, 38px);
}

.progress-track {
  height: 10px;
  margin: 0 22px 22px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--mint);
}

.card-footnote {
  margin: 0;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.65;
}

.rule-card form {
  display: grid;
  gap: 10px;
  padding: 20px 22px;
}

.rule-card label {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 650;
}

.rule-card select,
.rule-card input[type="number"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--panel-raised);
  color: var(--text);
  font-size: 16px;
}

.rule-card select {
  padding: 0 14px;
}

.input-with-unit {
  position: relative;
}

.input-with-unit input {
  padding: 0 78px 0 14px;
  font-family: var(--font-data);
}

.input-with-unit span {
  position: absolute;
  top: 50%;
  right: 14px;
  translate: 0 -50%;
  color: var(--text-dim);
  font-family: var(--font-data);
  font-size: 12px;
  pointer-events: none;
}

.rule-card input[type="range"] {
  width: 100%;
  accent-color: var(--mint);
}

.field-help,
.field-error {
  min-height: 18px;
  margin: -4px 0 0;
  font-size: 12px;
}

.field-help {
  color: var(--text-dim);
}

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

.range-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-family: var(--font-data);
  font-size: 12px;
}

.range-legend strong {
  color: var(--mint);
  font-size: 15px;
}

.rule-card .secondary-button {
  width: 100%;
  margin-top: 8px;
}

.calculation-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.calculation-result div {
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calculation-result div:nth-child(2n) {
  border-right: 0;
}

.calculation-result span,
.calculation-result strong {
  display: block;
  overflow-wrap: anywhere;
}

.calculation-result span {
  color: var(--text-dim);
  font-size: 12px;
}

.calculation-result strong {
  margin-top: 6px;
  font-size: 14px;
}

.reward-list > div,
.summary-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 22px;
  border-bottom: 1px solid var(--line);
}

.reward-list span,
.reward-list small {
  display: block;
}

.reward-list span {
  font-weight: 700;
}

.reward-list small {
  margin-top: 3px;
  color: var(--text-dim);
  font-weight: 400;
}

.reward-list strong {
  color: var(--text);
  font-size: 24px;
}

.summary-footer {
  border-bottom: 0;
  background: rgb(20 231 138 / 4%);
  color: var(--text-soft);
}

.summary-footer strong {
  font-size: 24px;
}

.summary-footer small {
  color: var(--text-dim);
  font-size: 12px;
}

.invite-label,
.invite-code,
.invite-url,
.invite-actions {
  margin-right: 22px;
  margin-left: 22px;
}

.invite-label {
  margin-top: 22px;
  margin-bottom: 4px;
  color: var(--text-dim);
  font-size: 13px;
}

.invite-code {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: clamp(28px, 8vw, 42px);
  font-weight: 850;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.invite-url {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-raised);
  color: var(--text-dim);
  font-family: var(--font-data);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.invite-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 20px;
}

.unlock-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  color: var(--text-dim);
  font-size: 13px;
}

.unlock-heading strong {
  color: var(--mint);
}

.rate-badge {
  margin-left: auto;
  padding: 5px 10px;
  border: 1px solid rgb(20 231 138 / 30%);
  border-radius: 999px;
  color: var(--mint);
  font-family: var(--font-data);
  font-size: 12px;
}

.unlock-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0 18px 24px;
  list-style: none;
}

.unlock-steps li {
  display: grid;
  min-width: 0;
  gap: 7px;
  text-align: center;
}

.unlock-steps li span {
  height: 8px;
  background: var(--line);
}

.unlock-steps li:first-child span {
  border-radius: 999px 0 0 999px;
}

.unlock-steps li:last-child span {
  border-radius: 0 999px 999px 0;
}

.unlock-steps strong {
  font-family: var(--font-data);
  font-size: 13px;
}

.unlock-steps small {
  color: var(--text-dim);
  font-size: 12px;
}

.team-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.team-table-wrap table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}

.team-table-wrap th,
.team-table-wrap td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.team-table-wrap th {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 650;
}

.team-table-wrap td:first-child,
.team-table-wrap td:last-child {
  color: var(--mint);
  font-family: var(--font-data);
  font-weight: 750;
}

.team-table-wrap tr:last-child td {
  border-bottom: 0;
}

.bottom-nav {
  position: fixed;
  z-index: var(--sticky);
  bottom: 0;
  left: 50%;
  display: grid;
  width: min(100%, 1120px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  translate: -50% 0;
  padding: 7px max(12px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: rgb(5 8 12 / 95%);
  box-shadow: 0 -18px 50px rgb(0 0 0 / 35%);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  display: grid;
  min-height: 58px;
  place-items: center;
  gap: 1px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-soft);
  font-size: 12px;
}

.bottom-nav button:hover {
  background: var(--panel-raised);
}

.bottom-nav button.is-active {
  color: var(--mint);
}

.bottom-nav svg {
  width: 25px;
  height: 25px;
}

.modal-backdrop {
  position: fixed;
  z-index: var(--modal);
  inset: 0;
  display: grid;
  min-height: 100dvh;
  overflow-y: auto;
  place-items: center;
  padding: 18px;
  background: rgb(0 0 0 / 72%);
  backdrop-filter: blur(9px);
}

.modal {
  position: relative;
  width: min(100%, 480px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  font-size: 30px;
}

.modal-close:hover {
  background: var(--panel-raised);
}

.modal-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 15px;
  background: rgb(20 231 138 / 10%);
  color: var(--mint);
}

.modal-mark svg {
  width: 28px;
  height: 28px;
}

.modal h2 {
  margin: 0 40px 10px 0;
  font-size: 22px;
}

.modal p {
  color: var(--text-soft);
  font-size: 14px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-raised);
  color: var(--text-soft);
  font-size: 14px;
}

.consent-row input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--mint);
}

.modal > .primary-button,
.modal > .secondary-button {
  width: 100%;
  margin-top: 14px;
}

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

.qr-placeholder {
  display: grid;
  width: 210px;
  max-width: 80%;
  aspect-ratio: 1;
  margin: 24px auto;
  place-items: center;
  border: 12px solid white;
  background:
    repeating-conic-gradient(#06120d 0 25%, white 0 50%) 0 0 / 22px 22px;
  color: var(--mint);
  box-shadow: inset 0 0 0 36px #06120d;
}

.qr-placeholder span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: #06120d;
  font-family: var(--font-data);
  font-size: 28px;
  font-weight: 900;
}

.wallet-menu {
  position: fixed;
  z-index: var(--menu);
  top: 66px;
  right: 16px;
  width: 190px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.wallet-menu button {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  text-align: left;
}

.wallet-menu button:hover {
  background: var(--panel-raised);
  color: var(--text);
}

.toast {
  position: fixed;
  z-index: var(--toast);
  right: 16px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  width: min(calc(100% - 32px), 420px);
  padding: 13px 16px;
  border: 1px solid rgb(20 231 138 / 30%);
  border-radius: 11px;
  background: #102219;
  color: var(--mint-bright);
  box-shadow: var(--shadow);
  font-size: 14px;
}

body.private-values [data-private-value] {
  color: var(--text);
  font-size: 0;
}

body.private-values [data-private-value]::after {
  font-size: 1rem;
  content: "••••••";
  letter-spacing: 0.08em;
}

body.private-values .asset-total [data-private-value]::after,
body.private-values .big-stat [data-private-value]::after {
  font-size: 2rem;
}

@media (min-width: 760px) {
  .dashboard {
    padding-right: 24px;
    padding-left: 24px;
  }

  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
  }

  .bottom-nav {
    bottom: 12px;
    width: min(calc(100% - 48px), 720px);
    border-bottom: 1px solid var(--line);
    border-radius: 18px;
  }

  .toast {
    bottom: 100px;
  }
}

@media (max-width: 520px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .prototype-pill {
    display: none;
  }

  .wallet-chip {
    padding: 8px 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .ticker-track {
    justify-content: flex-start;
  }

  .dashboard {
    padding-right: 10px;
    padding-left: 10px;
  }

  .section-heading--compact {
    padding-right: 16px;
    padding-left: 16px;
  }

  .invite-actions {
    grid-template-columns: 1fr;
  }

  .unlock-card .section-heading {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .rate-badge {
    margin-left: 0;
  }
}

@media (max-width: 380px) {
  .topbar:has(.wallet-chip:not(.is-hidden)) .brand > span:last-child {
    display: none;
  }

  .wallet-chip {
    font-size: 12px;
  }

  .asset-breakdown strong {
    font-size: 13px;
  }

  .calculation-result {
    grid-template-columns: 1fr;
  }

  .calculation-result div {
    border-right: 0;
  }

  .modal {
    padding: 24px 20px;
  }
}

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