:root {
  color-scheme: dark;
  --bg: #050806;
  --panel: #0d1512;
  --panel-2: #121e1a;
  --panel-3: #172721;
  --line: rgba(184, 245, 207, 0.16);
  --text: #f4fff8;
  --muted: rgba(244, 255, 248, 0.66);
  --green: #71f2a8;
  --lime: #c7fb74;
  --gold: #f6cb5f;
  --blue: #7dc8ff;
  --danger: #ff7f91;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
  --main: "Space Grotesk", system-ui, sans-serif;
  --display: "Audiowide", "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--main);
  background:
    radial-gradient(circle at 50% -10%, rgba(113, 242, 168, 0.16), transparent 36%),
    linear-gradient(180deg, #0b1510, #050806 58%, #030403);
}

body.wallet-active {
  overflow: hidden;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }

.app-shell {
  width: min(100%, 620px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 12px;
}

.wallet-active .app-shell {
  height: 100svh;
  min-height: 0;
  display: grid;
  place-items: center;
}

.wallet-screen {
  width: min(100%, 460px);
  margin: 0 auto;
}

.wallet-screen:not(.hidden) {
  height: calc(100svh - 24px);
  max-height: 860px;
  display: grid;
  grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
  gap: 8px;
  overflow: hidden;
}

.auth-screen, .wallet-screen {
  display: grid;
  gap: 12px;
}

.auth-hero, .auth-panel, .wallet-top, .wallet-hero, .wallet-panel, .modal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.018)), var(--panel);
  box-shadow: var(--shadow);
}

.auth-hero {
  min-height: 238px;
  position: relative;
  overflow: hidden;
  padding: 18px;
  display: flex;
  align-items: flex-end;
}

.auth-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.auth-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 6, 0.94));
}

.auth-hero div {
  position: relative;
  z-index: 1;
}

.auth-hero h1 {
  margin: 8px 0 4px;
  font-family: var(--display);
  font-size: clamp(2.45rem, 16vw, 4.7rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-hero p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-actions a {
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0 13px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.soft-action {
  border: 1px solid rgba(184,245,207,0.18);
  color: var(--text);
  background: rgba(5,8,6,0.62);
}

.install-banner {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(184,245,207,0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(113,242,168,0.1), rgba(246,203,95,0.06)), rgba(0,0,0,0.22);
}

.install-banner strong {
  display: block;
  margin-top: 2px;
}

.install-banner b {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.install-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 166px;
}

.install-banner a {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #06100f;
  background: linear-gradient(135deg, var(--green), var(--gold));
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.install-banner a.muted-install-action {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,0.045);
}

.extension-page {
  width: min(100%, 700px);
}

.extension-hero {
  min-height: 300px;
}

.install-panel {
  display: grid;
  gap: 14px;
}

.install-steps, .browser-grid, .browser-tabs, .browser-steps, .install-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.browser-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.browser-tabs, .install-mode-tabs {
  padding: 4px;
  border: 1px solid rgba(184,245,207,0.11);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
}

.install-steps div, .browser-grid div, .browser-steps div {
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(184,245,207,0.13);
  border-radius: 8px;
  background: rgba(0,0,0,0.22);
}

.browser-tabs button, .install-mode-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255,255,255,0.045);
  font-weight: 900;
}

.browser-tabs button.active, .install-mode-tabs button.active {
  color: #06100f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), var(--gold));
}

.install-section {
  display: grid;
  gap: 12px;
}

.browser-guide {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(184,245,207,0.13);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
}

.browser-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.browser-guide-head strong {
  display: block;
  margin-top: 3px;
}

.browser-guide-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.browser-guide-head b, .browser-guide-actions button {
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.browser-guide-head b {
  color: #06100f;
  background: linear-gradient(135deg, var(--green), var(--gold));
}

.browser-guide-actions button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.045);
}

.browser-url {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(184,245,207,0.13);
  border-radius: 8px;
  color: var(--green);
  background: rgba(0,0,0,0.22);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-steps div {
  min-height: 74px;
  align-content: center;
}

.browser-grid div {
  min-height: 72px;
  align-content: center;
}

.support-matrix {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.support-matrix div {
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 9px;
  border: 1px solid rgba(184,245,207,0.12);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
}

.support-matrix b {
  color: var(--green);
  font-size: 0.82rem;
}

.install-steps strong, .browser-steps strong {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #06100f;
  background: linear-gradient(135deg, var(--green), var(--gold));
}

.install-steps span, .browser-steps span {
  text-transform: none;
  line-height: 1.35;
}

.browser-grid strong {
  display: block;
  margin-bottom: 4px;
}

.package-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(184,245,207,0.13);
  border-radius: 8px;
  background: rgba(0,0,0,0.22);
}

.package-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.package-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checksum-row {
  grid-column: 1 / -1;
}

.package-card button, .package-download {
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.package-card button {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.package-download {
  color: #06100f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), var(--gold));
}

.verified-package-card {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.verified-package-card .package-download, .verified-package-card button {
  grid-column: span 3;
}

.verify-guide .browser-steps div {
  min-height: 78px;
}

.extension-preview {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(184,245,207,0.13);
  border-radius: 8px;
  background: rgba(0,0,0,0.22);
}

.preview-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.preview-head strong, .preview-head b {
  display: block;
  margin-top: 3px;
  color: var(--green);
}

.preview-address {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  background: rgba(255,255,255,0.045);
  font-weight: 900;
}

.preview-controls, .preview-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.preview-controls div, .preview-pairs div {
  min-height: 44px;
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(184,245,207,0.12);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
}

.preview-pairs div.active {
  color: #06100f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), var(--gold));
}

.preview-controls strong, .preview-pairs b {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--green);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-pairs div.active span, .preview-pairs div.active b {
  color: #06100f;
}

.preview-balance {
  display: block;
  color: var(--gold);
  font-size: 1.55rem;
  line-height: 1;
}

.preview-address::after {
  content: "Copy";
  min-height: 24px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 8px;
  color: #06100f;
  background: linear-gradient(135deg, var(--green), var(--gold));
  font-size: 0.72rem;
}

.preview-actions, .preview-tabs, .preview-content, .preview-home-grid, .preview-network-grid, .preview-route-grid, .preview-mint-grid {
  display: grid;
  gap: 8px;
}

.preview-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.preview-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 4px;
  border: 1px solid rgba(184,245,207,0.11);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
}

.preview-actions span, .preview-tabs button, .preview-family-tabs span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255,255,255,0.045);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.preview-tabs button.active, .preview-family-tabs span.active {
  color: #06100f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), var(--gold));
}

.preview-content {
  min-height: 0;
}

.preview-home-grid, .preview-network-grid, .preview-route-grid, .preview-mint-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preview-home-grid > div, .preview-network-grid > div, .preview-route-grid > div, .preview-mint-grid > div {
  min-height: 56px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(184,245,207,0.12);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
}

.preview-home-grid > div.primary, .preview-network-grid > div.primary, .preview-route-grid > div.primary {
  grid-column: 1 / -1;
  min-height: 66px;
  border-color: rgba(113,242,168,0.3);
  background: linear-gradient(180deg, rgba(113,242,168,0.1), rgba(0,0,0,0.18));
}

.preview-home-grid strong, .preview-home-grid em,
.preview-network-grid strong, .preview-network-grid em,
.preview-route-grid strong, .preview-route-grid em,
.preview-mint-grid strong, .preview-mint-grid em {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-home-grid strong, .preview-network-grid strong, .preview-route-grid strong, .preview-mint-grid strong {
  color: var(--green);
  font-size: 1rem;
  line-height: 1.25;
}

.preview-home-grid > div.primary strong, .preview-network-grid > div.primary strong, .preview-route-grid > div.primary strong {
  color: var(--gold);
  font-size: 1.2rem;
}

.preview-home-grid em, .preview-network-grid em, .preview-route-grid em, .preview-mint-grid em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.preview-network-summary {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 54px;
  border-color: rgba(113,242,168,0.3);
  background: linear-gradient(180deg, rgba(113,242,168,0.1), rgba(0,0,0,0.18));
}

.preview-network-summary b {
  color: var(--gold);
  font-size: 0.78rem;
  text-align: right;
}

.preview-family-tabs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(184,245,207,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
}

.preview-mint-hero {
  grid-column: 1 / -1;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  min-height: 82px;
  border-color: rgba(113,242,168,0.3);
  background: linear-gradient(180deg, rgba(113,242,168,0.1), rgba(0,0,0,0.18));
}

.preview-mint-hero img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.preview-mint-hero strong {
  color: var(--gold);
  font-size: 1.05rem;
}

.auth-panel, .wallet-panel, .modal-card {
  padding: 14px;
}

.auth-tabs, .wallet-tabs, .settings-grid, .route-toggle, .quick-actions, .surface-tabs, .network-family-tabs, .wallet-filter-tabs, .activity-filter-tabs {
  display: grid;
  gap: 8px;
}

.auth-tabs { grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.wallet-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 4px 0;
  padding: 5px;
  border: 1px solid rgba(184,245,207,0.11);
  border-radius: 8px;
  background: rgba(5,8,6,0.82);
  backdrop-filter: blur(12px);
}
.settings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 14px; }
.route-toggle { grid-template-columns: 1fr 1fr; }
.quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.surface-tabs {
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  margin-top: 12px;
  padding: 4px;
  border: 1px solid rgba(184,245,207,0.11);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
}

.network-family-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
  padding: 4px;
  border: 1px solid rgba(184,245,207,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
}

.wallet-filter-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: -2px;
  padding: 4px;
  border: 1px solid rgba(184,245,207,0.1);
  border-radius: 8px;
  background: rgba(0,0,0,0.18);
}

.activity-filter-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 4px;
  border: 1px solid rgba(184,245,207,0.1);
  border-radius: 8px;
  background: rgba(0,0,0,0.18);
}

.auth-tabs button, .wallet-tabs button, .settings-grid button, .route-toggle button, .surface-tabs button, .network-family-tabs button, .wallet-filter-tabs button, .activity-filter-tabs button,
.wallet-top button, .panel-head button, .asset-actions button, .text-action, .receive-active button, .receive-row button,
.network-switcher button, .quick-actions button, .chain-grid button, .wallet-set-card, .account-drawer-trigger, .account-drawer-keys button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255,255,255,0.045);
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.auth-tabs button.active, .wallet-tabs button.active, .route-toggle button.active, .surface-tabs button.active, .network-family-tabs button.active, .wallet-filter-tabs button.active, .activity-filter-tabs button.active,
.primary-action, .network-switcher button.active, .chain-grid button.active {
  color: #06100f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), var(--gold));
}

.text-action {
  min-height: 28px;
  border: 0;
  color: var(--green);
  background: transparent;
  text-align: left;
}

.stack-form, .send-form, .bridge-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
}

span, label span, .panel-head span, .auth-hero span, .hero-main span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(0,0,0,0.25);
  outline: none;
}

textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(113,242,168,0.6);
  box-shadow: 0 0 0 3px rgba(113,242,168,0.12);
}

.primary-action, .send-form button, .bridge-form > button {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #06100f;
  text-decoration: none;
  font-weight: 900;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status-line {
  min-height: 21px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.status-line.good { color: var(--green); }
.status-line.bad { color: var(--danger); }

.wallet-top {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(86px, 0.78fr) minmax(0, 1.38fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
}

.wallet-top strong {
  display: block;
  margin-top: 3px;
  font-family: var(--display);
  font-size: 0.78rem;
}

.wallet-top select {
  min-height: 38px;
  padding: 0 9px;
}

.wallet-top button {
  min-height: 38px;
  padding: 0 10px;
}

.account-select-shell {
  position: relative;
  min-width: 0;
}

.account-drawer-trigger {
  width: 100%;
  min-height: 42px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 3px;
  padding: 7px 10px;
  text-align: left;
}

.account-drawer-trigger span, .account-drawer-trigger b {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-drawer-trigger span {
  color: var(--text);
  font-size: 0.84rem;
  text-transform: none;
}

.account-drawer-trigger b {
  color: var(--green);
  font-size: 0.76rem;
}

.native-wallet-select {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.wallet-hero {
  padding: 10px;
  display: grid;
  gap: 8px;
}

.hero-main {
  display: grid;
  gap: 6px;
}

.hero-main strong {
  font-size: clamp(1.58rem, 8vw, 2.22rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.hero-main button {
  min-height: 34px;
  padding: 6px 9px;
  text-align: left;
}

.hero-main button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--green);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.hero-main button::after {
  content: "Copy";
  flex: 0 0 auto;
  min-height: 24px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 8px;
  color: #06100f;
  background: linear-gradient(135deg, var(--green), var(--gold));
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wallet-identity-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(70px, 0.58fr) minmax(70px, 0.58fr);
  gap: 7px;
}

.wallet-identity-strip button {
  min-height: 42px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 2px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(184,245,207,0.13);
  border-radius: 8px;
  color: var(--text);
  background: rgba(0,0,0,0.2);
  text-align: left;
}

.wallet-identity-strip span, .wallet-identity-strip strong, .wallet-identity-strip b {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-identity-strip strong {
  color: var(--green);
  font-size: 0.86rem;
}

.wallet-identity-strip b {
  color: var(--muted);
  font-size: 0.76rem;
}

.identity-main {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
}

.identity-main span, .identity-main strong {
  grid-column: 1;
}

.identity-main b {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--gold);
}

.identity-chip.active {
  color: #06100f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), var(--gold));
}

.identity-chip.active span, .identity-chip.active b {
  color: rgba(6,16,15,0.72);
}

.quick-actions button {
  min-height: 48px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 7px 5px;
  text-align: center;
}

.quick-actions b {
  color: var(--green);
  font-size: 0.84rem;
}

.quick-actions button:disabled b {
  color: var(--muted);
}

.network-switcher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, 0.54fr);
  gap: 7px;
  align-items: stretch;
}

.network-switcher button {
  min-height: 40px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 2px;
  padding: 7px 10px;
  text-align: left;
  min-width: 0;
}

.network-drawer-trigger {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
}

.network-drawer-trigger span, .network-drawer-trigger strong, .network-drawer-trigger b,
.network-address-copy span, .network-address-copy b {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-drawer-trigger span {
  grid-column: 1 / -1;
}

.network-drawer-trigger strong {
  color: var(--text);
  font-size: 0.9rem;
}

.network-switcher b {
  color: var(--green);
  font-size: 0.78rem;
}

.network-address-copy b {
  color: var(--gold);
}

.wallet-panel {
  min-height: 0;
  margin-top: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(113,242,168,0.38) transparent;
}

.wallet-panel::-webkit-scrollbar {
  width: 6px;
}

.wallet-panel::-webkit-scrollbar-track {
  background: transparent;
}

.wallet-panel::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(113,242,168,0.28);
}

.panel-head, .total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.asset-list, .activity-list, .chain-grid, .overview-grid {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-card {
  min-height: 76px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 4px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(184,245,207,0.13);
  border-radius: 8px;
  color: var(--text);
  background: rgba(0,0,0,0.21);
  text-align: left;
}

.overview-card.primary, .overview-card.wide {
  grid-column: 1 / -1;
}

.overview-card.primary {
  min-height: 86px;
  border-color: rgba(113,242,168,0.28);
  background: linear-gradient(180deg, rgba(113,242,168,0.09), rgba(0,0,0,0.2));
}

.overview-card strong, .overview-card span, .overview-card em {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-card strong {
  color: var(--green);
  font-size: 1.04rem;
}

.overview-card.primary strong {
  color: var(--gold);
  font-size: 1.34rem;
}

.overview-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
}

.activity-surface {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.wallet-set-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.wallet-set-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 10px;
  text-align: left;
}

.wallet-set-card.active {
  color: #06100f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), var(--gold));
}

.wallet-set-card strong, .wallet-set-card span, .wallet-set-card em, .wallet-set-card b {
  display: block;
}

.wallet-set-card span {
  margin-top: 3px;
}

.wallet-set-card em {
  min-width: 74px;
  color: var(--green);
  font-style: normal;
  font-size: 0.82rem;
  text-align: right;
}

.wallet-set-card.active em, .wallet-set-card.active span {
  color: rgba(6,16,15,0.72);
}

.wallet-set-card b {
  color: var(--muted);
  font-size: 0.68rem;
}

.wallet-set-card.active b {
  color: rgba(6,16,15,0.58);
}

.chain-grid {
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
}

.chain-grid button {
  min-height: 74px;
  display: grid;
  justify-items: start;
  align-content: center;
  padding: 11px;
  text-align: left;
}

.chain-grid strong {
  margin-top: 4px;
}

.chain-grid em {
  margin-top: 2px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.8rem;
}

.asset-item, .activity-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(184,245,207,0.12);
  border-radius: 8px;
  background: rgba(0,0,0,0.21);
}

.nft-asset {
  grid-template-columns: 54px minmax(0, 1fr) auto;
}

.nft-asset img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.asset-item strong, .activity-item strong {
  display: block;
  font-size: 0.96rem;
}

.asset-item span, .activity-item span, .activity-item a {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  word-break: break-all;
}

.asset-item b {
  color: var(--gold);
}

.asset-actions {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.asset-actions button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 0.82rem;
}

.list-toggle {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: 100%;
  border: 1px solid rgba(184,245,207,0.16);
  border-radius: 8px;
  color: var(--green);
  background: rgba(255,255,255,0.045);
  font-weight: 900;
}

.bridge-form {
  margin-top: 12px;
}

.quote-card {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(113,242,168,0.26);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(113,242,168,0.08), rgba(0,0,0,0.16));
}

.quote-card strong {
  font-size: 1.24rem;
}

.send-chain-card {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(184,245,207,0.13);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
}

.send-chain-card strong, .send-chain-card span, .send-chain-card b {
  display: block;
}

.send-chain-card strong {
  margin-top: 3px;
}

.send-chain-card b {
  color: var(--green);
  font-size: 0.86rem;
}

.send-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.send-summary-grid div {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(184,245,207,0.12);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
}

.send-summary-grid strong, .send-summary-grid span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.send-summary-grid strong {
  color: var(--gold);
  font-size: 0.86rem;
}

.send-form.switch-mode label,
.sheet-send-form.switch-mode label {
  display: none;
}

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

.quote-grid div, .guard-callout {
  min-height: 54px;
  padding: 9px;
  border: 1px solid rgba(184,245,207,0.12);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
}

.quote-grid b {
  display: block;
  margin-top: 4px;
  word-break: break-word;
}

.guard-callout {
  margin: 0;
  color: var(--gold);
  line-height: 1.4;
}

#bridgeExecuteForm {
  margin-top: 12px;
}

.mint-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.wallet-install {
  margin: 12px 0 10px;
}

.mint-card img {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
}

.mint-card h2 {
  margin: 4px 0;
  font-family: var(--display);
  font-size: 1.02rem;
  text-transform: uppercase;
}

.mint-card p {
  margin: 0;
  color: var(--muted);
}

.mint-card b {
  color: var(--gold);
}

.stepper {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  height: 50px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stepper button, .stepper output {
  display: grid;
  place-items: center;
  border: 0;
  color: var(--text);
  background: rgba(0,0,0,0.22);
  font-family: var(--display);
}

.stepper output {
  background: rgba(255,255,255,0.04);
}

.wallet-panel.mint-switch-mode .stepper {
  display: none;
}

.total-row {
  min-height: 42px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(2,5,3,0.78);
}

.modal-card {
  width: min(430px, 100%);
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 24px);
  overflow: auto;
}

.action-sheet-modal {
  place-items: end center;
  padding: 10px;
}

.action-sheet-card {
  width: min(460px, 100%);
  grid-template-rows: auto auto minmax(0, 1fr);
  max-height: min(760px, calc(100svh - 20px));
  overflow: hidden;
}

.action-sheet-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(184,245,207,0.11);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
}

.action-sheet-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255,255,255,0.045);
  font-weight: 900;
}

.action-sheet-tabs button.active {
  color: #06100f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), var(--gold));
}

.action-sheet-body {
  min-height: 0;
  overflow: hidden;
}

.action-sheet-section {
  display: grid;
  gap: 10px;
  min-height: 0;
  align-content: start;
}

.sheet-active-card, .sheet-route-card {
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(113,242,168,0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(113,242,168,0.1), rgba(0,0,0,0.18));
}

.sheet-active-card strong, .sheet-active-card span, .sheet-active-card em,
.sheet-route-card strong, .sheet-route-card span, .sheet-route-card em,
.sheet-metric-grid strong, .sheet-metric-grid span,
.sheet-address-grid strong, .sheet-address-grid span, .sheet-address-grid em,
.sheet-mint-card strong, .sheet-mint-card span, .sheet-mint-card b {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-active-card strong, .sheet-route-card strong {
  margin-top: 3px;
  color: var(--green);
  font-size: 1rem;
}

.sheet-active-card em, .sheet-route-card em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.8rem;
}

.sheet-active-card button {
  min-height: 38px;
  padding: 0 12px;
}

.sheet-address-grid, .sheet-metric-grid, .sheet-asset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sheet-address-grid button, .sheet-metric-grid div, .sheet-asset-grid div {
  min-height: 64px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(184,245,207,0.13);
  border-radius: 8px;
  color: var(--text);
  background: rgba(0,0,0,0.2);
  text-align: left;
}

.sheet-address-grid button {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
}

.sheet-address-grid button::after {
  content: "Copy";
  align-self: center;
  min-height: 26px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 8px;
  color: #06100f;
  background: linear-gradient(135deg, var(--green), var(--gold));
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sheet-address-grid strong, .sheet-metric-grid strong {
  color: var(--green);
}

.sheet-asset-grid div {
  min-height: 58px;
}

.sheet-asset-grid strong, .sheet-asset-grid span, .sheet-asset-grid em {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-asset-grid strong {
  color: var(--gold);
  font-size: 0.9rem;
}

.sheet-asset-grid em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.sheet-address-grid em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.78rem;
}

.sheet-route-card b {
  color: var(--gold);
  font-size: 0.9rem;
  text-align: right;
}

.sheet-send-form {
  gap: 9px;
}

.sheet-send-form label {
  gap: 5px;
}

.sheet-send-form input {
  min-height: 40px;
}

.sheet-mint-card {
  min-height: 86px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(113,242,168,0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(113,242,168,0.1), rgba(0,0,0,0.18));
}

.sheet-mint-card img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
}

.sheet-mint-card strong {
  margin: 4px 0;
  color: var(--green);
  font-size: 1rem;
}

.sheet-mint-card b {
  color: var(--gold);
  font-size: 0.88rem;
}

.account-drawer-card {
  overflow: hidden;
}

.account-drawer-active {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(113,242,168,0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(113,242,168,0.1), rgba(0,0,0,0.18));
}

.account-drawer-active strong, .account-drawer-active b {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-drawer-active strong {
  margin-top: 3px;
  color: var(--green);
  font-size: 1rem;
}

.account-drawer-active b {
  color: var(--gold);
  text-align: right;
}

.account-drawer-actions {
  margin: 0;
}

.account-drawer-keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.account-drawer-keys button {
  min-height: 42px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 3px;
  padding: 7px 10px;
  text-align: left;
}

.account-drawer-keys span, .account-drawer-keys b {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-drawer-keys b {
  color: var(--green);
  font-size: 0.82rem;
}

.account-drawer-filters {
  margin-top: 0;
}

.account-drawer-list {
  min-height: 0;
  margin-top: 0;
}

.account-drawer-list .wallet-set-card {
  min-height: 62px;
}

.network-drawer-card {
  overflow: hidden;
}

.network-drawer-active {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(113,242,168,0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(113,242,168,0.1), rgba(0,0,0,0.18));
}

.network-drawer-active strong, .network-drawer-active em, .network-drawer-active b {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-drawer-active strong {
  margin-top: 3px;
  color: var(--green);
  font-size: 1rem;
}

.network-drawer-active em {
  margin-top: 3px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.8rem;
}

.network-drawer-active b {
  color: var(--gold);
  text-align: right;
}

.network-drawer-filters {
  margin-top: 0;
}

.network-drawer-list {
  min-height: 0;
  margin-top: 0;
  overflow: hidden;
}

.network-drawer-list button {
  min-height: 66px;
}

.secret-output {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  background: rgba(0,0,0,0.28);
  white-space: pre-wrap;
  word-break: break-all;
}

.receive-card {
  width: min(430px, 100%);
}

.receive-active {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(113,242,168,0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(113,242,168,0.1), rgba(0,0,0,0.18));
}

.receive-active strong {
  color: var(--green);
  font-size: 0.95rem;
  word-break: break-all;
}

.receive-active button, .receive-row button {
  min-height: 38px;
}

.receive-grid {
  display: grid;
  gap: 8px;
}

.receive-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(184,245,207,0.13);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
}

.receive-row strong, .receive-row span, .receive-row em {
  display: block;
}

.receive-row span {
  margin-top: 3px;
}

.receive-row em {
  margin-top: 4px;
  color: var(--green);
  font-style: normal;
  font-size: 0.8rem;
  word-break: break-all;
}

.toast {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  min-width: 150px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel-2);
  box-shadow: 0 16px 42px rgba(0,0,0,0.36);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

body.wallet-active {
  background: #050605;
}

.wallet-screen:not(.hidden) {
  max-height: 820px;
  gap: 8px;
}

.wallet-top {
  min-height: 44px;
  grid-template-columns: minmax(0, 1fr) minmax(126px, 0.92fr) auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 2px 0 0;
}

.wallet-top > div:first-child span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.wallet-top strong {
  margin-top: 1px;
  font-family: var(--main);
  font-size: 0.86rem;
  text-transform: none;
}

.account-drawer-trigger {
  min-height: 36px;
  border-color: rgba(255,255,255,0.07);
  background: #151816;
  padding: 6px 9px;
}

.account-drawer-trigger b {
  color: var(--gold);
}

#logoutButton {
  min-height: 34px;
  border-color: rgba(255,255,255,0.07);
  background: #151816;
  padding: 0 9px;
  font-size: 0.78rem;
}

.network-switcher {
  grid-template-columns: minmax(0, 1fr) minmax(104px, 0.44fr);
  gap: 6px;
}

.network-switcher button {
  min-height: 34px;
  border-color: rgba(255,255,255,0.07);
  background: rgba(21,24,22,0.86);
  padding: 6px 9px;
}

.network-switcher button.active {
  color: #06100f;
  background: linear-gradient(135deg, var(--green), var(--gold));
}

.network-drawer-trigger strong {
  font-size: 0.82rem;
}

.network-switcher b {
  font-size: 0.72rem;
}

.wallet-hero {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 4px 0 2px;
  text-align: center;
}

.hero-main {
  justify-items: center;
  gap: 8px;
}

.hero-main > span {
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(113,242,168,0.22);
  border-radius: 8px;
  color: var(--green);
  background: rgba(113,242,168,0.08);
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-main strong {
  font-family: var(--main);
  font-size: clamp(2.7rem, 15vw, 4.25rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0;
}

.hero-main button {
  max-width: min(100%, 230px);
  min-height: 24px;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-main button::after {
  display: none;
}

.wallet-identity-strip {
  display: none;
}

.quick-actions {
  gap: 8px;
}

.quick-actions button {
  min-height: 80px;
  border-color: rgba(255,255,255,0.07);
  background: #171918;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  gap: 6px;
  padding: 9px 5px;
}

.quick-actions button::before {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--green);
  background: rgba(113,242,168,0.1);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

#quickSendButton::before {
  content: "\2197";
}

#quickBridgeButton::before {
  content: "\21C4";
}

#quickReceiveButton::before {
  content: "\2193";
}

#quickMintButton::before {
  content: "\25C7";
}

.quick-actions span {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: none;
  white-space: nowrap;
}

.quick-actions b {
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

.wallet-tabs {
  position: static;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  gap: 12px;
}

.wallet-tabs button {
  min-height: 34px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 900;
}

.wallet-tabs button.active {
  color: var(--text);
  border-bottom-color: var(--green);
  background: transparent;
}

.wallet-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 0 6px;
}

.wallet-panel[data-wallet-section="assets"] .panel-head {
  display: none;
}

.surface-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  gap: 8px;
}

.surface-tabs button {
  min-height: 30px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 2px;
  font-size: 0.8rem;
}

.surface-tabs button.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: transparent;
}

.asset-list, .activity-list, .chain-grid, .overview-grid {
  gap: 8px;
  margin-top: 10px;
}

.asset-item {
  min-height: 64px;
  border-color: rgba(255,255,255,0.07);
  background: #171918;
  padding: 9px 12px;
}

.asset-item.token-asset {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.asset-item.token-asset::before {
  content: attr(data-token-icon);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #06100f;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.62), transparent 25%),
    linear-gradient(135deg, var(--green), var(--gold));
  font-size: 1rem;
  font-weight: 900;
}

.asset-item strong {
  font-size: 0.98rem;
}

.asset-item span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.asset-item b {
  color: var(--text);
  text-align: right;
}

.list-toggle {
  border-color: rgba(255,255,255,0.07);
  background: #171918;
}

@media (max-width: 460px) {
  .app-shell {
    padding: 8px;
  }

  .wallet-top {
    grid-template-columns: minmax(84px, 0.72fr) minmax(0, 1fr) auto;
    min-height: 0;
    padding: 8px;
  }

  .wallet-top button {
    min-height: 34px;
    padding: 0 10px;
  }

  .wallet-tabs {
    grid-template-columns: repeat(5, minmax(58px, 1fr));
  }

  .wallet-identity-strip {
    grid-template-columns: minmax(0, 1fr) minmax(66px, 0.5fr) minmax(66px, 0.5fr);
    gap: 6px;
  }

  .wallet-tabs button {
    min-height: 38px;
    padding: 0 4px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .activity-filter-tabs {
    gap: 5px;
  }

  .activity-filter-tabs button {
    min-height: 34px;
    padding: 0 4px;
    font-size: 0.74rem;
  }

  .settings-grid, .quote-grid {
    grid-template-columns: 1fr;
  }

  .chain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nft-asset {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .nft-asset img {
    width: 44px;
    height: 44px;
  }

  .asset-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    justify-items: start;
  }

  .wallet-set-card {
    grid-template-columns: 1fr 1fr;
  }

  .wallet-set-card > div {
    grid-column: 1 / -1;
  }

  .wallet-set-card em {
    min-width: 0;
    text-align: left;
  }

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

  .install-banner {
    grid-template-columns: 1fr;
  }

  .install-banner a {
    width: 100%;
  }

  .install-actions {
    width: 100%;
    min-width: 0;
  }

  .install-steps, .browser-grid, .browser-steps, .package-card {
    grid-template-columns: 1fr;
  }

  .verified-package-card .package-download, .verified-package-card button {
    grid-column: 1;
  }

  .browser-tabs, .support-matrix, .preview-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .extension-hero {
    min-height: 250px;
  }
}

@media (max-width: 380px) {
  .wallet-top {
    grid-template-columns: minmax(0, 1fr) minmax(112px, 0.86fr) auto;
  }

  .quick-actions {
    gap: 6px;
  }

  .quick-actions button {
    min-height: 74px;
  }

  .quick-actions span {
    font-size: 0.8rem;
  }

  .wallet-tabs {
    gap: 8px;
  }

  .wallet-tabs button {
    font-size: 0.84rem;
  }
}

.wallet-screen:not(.hidden) {
  grid-template-rows: auto auto auto auto auto minmax(0, 1fr) auto;
  max-height: 852px;
}

.wallet-screen[data-active-tab="bridge"] {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.wallet-screen[data-active-tab="history"],
.wallet-screen[data-active-tab="discover"] {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.wallet-screen[data-active-tab="bridge"] .network-switcher,
.wallet-screen[data-active-tab="bridge"] .wallet-hero,
.wallet-screen[data-active-tab="bridge"] .quick-actions,
.wallet-screen[data-active-tab="bridge"] .wallet-tabs,
.wallet-screen[data-active-tab="history"] .network-switcher,
.wallet-screen[data-active-tab="history"] .wallet-hero,
.wallet-screen[data-active-tab="history"] .quick-actions,
.wallet-screen[data-active-tab="history"] .wallet-tabs,
.wallet-screen[data-active-tab="discover"] .network-switcher,
.wallet-screen[data-active-tab="discover"] .wallet-hero,
.wallet-screen[data-active-tab="discover"] .quick-actions,
.wallet-screen[data-active-tab="discover"] .wallet-tabs {
  display: none;
}

.wallet-top {
  grid-template-columns: minmax(0, 1fr) minmax(128px, 0.95fr) auto;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 7px;
}

.wallet-top-actions {
  display: flex;
  justify-content: end;
  gap: 6px;
  min-width: 0;
}

.wallet-top-actions button {
  width: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
}

.wallet-top-actions button.active {
  color: #06100f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), var(--gold));
}

#logoutButton {
  width: auto;
  min-width: 42px;
  padding: 0 8px;
  color: var(--muted);
}

.wallet-bottom-tabs {
  min-height: 58px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 2px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #050605;
}

.wallet-bottom-tabs button {
  min-height: 52px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  border-radius: 0;
  color: rgba(244,255,248,0.52);
  background: transparent;
  font-weight: 900;
}

.wallet-bottom-tabs button span {
  display: grid;
  place-items: center;
  min-height: 24px;
  font-size: 1.4rem;
  line-height: 1;
}

.wallet-bottom-tabs button b {
  font-size: 0.66rem;
}

.wallet-bottom-tabs button.active {
  color: var(--green);
  background: transparent;
}

.section-title {
  justify-content: center;
  position: relative;
  min-height: 44px;
}

.section-title h2 {
  font-family: var(--main);
  font-size: 1.28rem;
  text-transform: none;
}

.section-title button {
  position: absolute;
  right: 0;
  min-height: 30px;
  padding: 0 9px;
  color: var(--muted);
  background: #171918;
}

.history-panel .activity-filter-tabs {
  margin-top: 2px;
}

.activity-filter-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 0;
  background: transparent;
  padding: 0;
}

.activity-filter-tabs button {
  min-height: 30px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 2px;
  font-size: 0.75rem;
}

.activity-filter-tabs button.active {
  color: var(--green);
  border-bottom-color: var(--green);
  background: transparent;
}

.history-list,
.history-panel .activity-list {
  gap: 10px;
  margin-top: 12px;
}

.activity-item {
  min-height: 68px;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  border-color: rgba(255,255,255,0.07);
  background: #1a1d1b;
  padding: 10px 12px;
}

.activity-item::before {
  content: "";
  width: 42px;
  height: 42px;
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.62), transparent 25%),
    linear-gradient(135deg, var(--green), var(--gold));
}

.activity-item strong,
.activity-item span,
.activity-item a {
  grid-column: 2;
}

.activity-item strong {
  font-size: 0.94rem;
}

.activity-item span:last-child,
.activity-item a {
  color: var(--green);
}

.discover-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.discover-search {
  min-height: 50px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: #141715;
}

.discover-search span {
  color: var(--muted);
  font-size: 1.25rem;
}

.discover-search input {
  min-height: 46px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
}

.discover-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.discover-chips button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  color: var(--text);
  background: #171918;
  font-weight: 900;
}

.discover-chips b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #06100f;
  background: linear-gradient(135deg, var(--green), var(--gold));
}

.discover-terminal {
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.07);
  background:
    linear-gradient(135deg, rgba(113,242,168,0.14), transparent 52%),
    #171918;
}

.discover-terminal strong,
.discover-terminal span,
.discover-terminal p {
  display: block;
}

.discover-terminal span {
  margin-top: 2px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
}

.discover-terminal p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.discover-terminal button,
.compact-head button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  color: #06100f;
  background: linear-gradient(135deg, var(--green), var(--gold));
  padding: 0 12px;
  font-weight: 900;
}

.compact-head {
  min-height: 34px;
}

.compact-head h2 {
  font-family: var(--main);
  font-size: 1.18rem;
  text-transform: none;
}

.compact-head button {
  min-height: 28px;
  color: var(--green);
  background: transparent;
  padding: 0;
}

.discover-list {
  margin-top: 0;
}

.wallet-panel[data-wallet-section="nfts"] .asset-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wallet-panel[data-wallet-section="nfts"] .panel-head {
  min-height: 38px;
}

.nft-asset {
  min-height: 166px;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 8px;
  overflow: hidden;
  padding: 0 0 10px;
}

.nft-asset img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 8px 8px 0 0;
}

.nft-asset > div:not(.asset-actions) {
  padding: 0 10px;
}

.nft-asset .asset-actions {
  grid-column: 1;
  grid-template-columns: 1fr 1fr;
  justify-items: stretch;
  padding: 0 10px;
}

.nft-asset .asset-actions b {
  grid-column: 1 / -1;
  text-align: left;
}

.nft-asset .asset-actions button {
  min-height: 28px;
  padding: 0 7px;
}

.wallet-panel[data-wallet-section="bridge"] .panel-head {
  min-height: 44px;
  justify-content: center;
  position: relative;
}

.wallet-panel[data-wallet-section="bridge"] .panel-head h2 {
  font-family: var(--main);
  font-size: 1.3rem;
  text-transform: none;
}

.wallet-panel[data-wallet-section="bridge"] .panel-head span {
  position: absolute;
  right: 0;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
}

.bridge-form label {
  min-height: 92px;
  align-content: center;
  padding: 13px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  background: #171918;
}

.bridge-form label span {
  color: var(--muted);
  font-size: 0.78rem;
}

.bridge-form input,
.bridge-form select {
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
}

.route-toggle {
  padding: 0;
  border: 0;
  background: transparent;
}

.route-toggle button {
  min-height: 34px;
  border-color: rgba(255,255,255,0.07);
  background: #171918;
}

@media (max-width: 460px) {
  .wallet-screen:not(.hidden) {
    height: calc(100svh - 12px);
    gap: 7px;
  }

  .wallet-top {
    grid-template-columns: minmax(78px, 0.82fr) minmax(112px, 0.9fr) auto;
    padding: 2px 0 6px;
  }

  .wallet-top-actions {
    gap: 4px;
  }

  .wallet-top-actions button {
    width: 28px;
  }

  #logoutButton {
    min-width: 38px;
    font-size: 0.72rem;
  }

  .wallet-panel[data-wallet-section="nfts"] .asset-list {
    gap: 8px;
  }

  .activity-filter-tabs button {
    font-size: 0.7rem;
  }
}

@media (max-width: 380px) {
  .wallet-screen:not(.hidden) {
    gap: 6px;
  }

  .wallet-bottom-tabs {
    min-height: 54px;
  }

  .wallet-bottom-tabs button {
    min-height: 48px;
  }

  .discover-terminal {
    grid-template-columns: 1fr;
  }
}

:root {
  --violet: #b69cff;
  --surface-dark: #1b1d1c;
  --surface-soft: #232524;
}

.wallet-screen {
  width: min(100%, 360px);
}

.wallet-screen:not(.hidden) {
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  height: min(100svh, 690px);
  max-height: 690px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  background: #030403;
}

.wallet-screen .network-switcher,
.wallet-screen .account-select-shell {
  display: none;
}

.wallet-top {
  min-height: 52px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px 0 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.wallet-brand {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.wallet-avatar {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 999px;
  background:
    radial-gradient(circle at 69% 33%, #ffe1d7 0 12%, transparent 13%),
    radial-gradient(circle at 33% 66%, var(--green) 0 24%, transparent 25%),
    linear-gradient(135deg, #ff9e93, var(--green));
}

.wallet-brand div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.wallet-brand strong,
.wallet-brand span:not(.wallet-avatar) {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-brand strong {
  margin: 0;
  color: var(--text);
  font-family: var(--main);
  font-size: 0.86rem;
  font-weight: 900;
}

#topNetworkText {
  width: fit-content;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
}

#topNetworkText::after {
  content: "  \2304";
  color: var(--muted);
  opacity: 0.58;
  font-size: 0.7rem;
}

.wallet-top-actions {
  align-items: center;
  gap: 9px;
}

.wallet-top-actions button,
#logoutButton {
  width: 24px;
  min-width: 24px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: rgba(244,255,248,0.74);
  font-size: 1.05rem;
  padding: 0;
}

.wallet-top-actions button.active {
  color: var(--violet);
  background: transparent;
}

.wallet-hero {
  padding: 22px 0 12px;
}

.hero-main {
  gap: 5px;
}

.hero-main > span,
.hero-main button {
  display: none;
}

.hero-main strong {
  font-size: clamp(2.95rem, 17vw, 4.35rem);
  font-weight: 800;
}

.hero-main::after {
  content: "Available balance";
  display: block;
  color: var(--muted);
  font-size: 0.98rem;
}

.quick-actions {
  gap: 8px;
}

.quick-actions button {
  min-height: 78px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-dark);
  box-shadow: none;
}

.quick-actions button::before {
  width: 30px;
  height: 30px;
  color: var(--violet);
  background: rgba(182,156,255,0.1);
  font-size: 1.35rem;
}

.quick-actions span {
  font-size: 0.86rem;
}

.quick-actions b {
  display: none;
}

.wallet-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  overflow: hidden;
}

.wallet-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
  color: rgba(244,255,248,0.62);
  font-size: 1.16rem;
  border: 0;
  padding: 0;
}

.wallet-tabs button.active {
  color: var(--text);
  border: 0;
}

.wallet-tabs [data-wallet-tab="mint"] {
  display: none;
}

.wallet-tabs [data-wallet-tab="settings"] {
  margin-left: auto;
  letter-spacing: 0.08em;
}

.wallet-panel {
  scrollbar-width: none;
}

.wallet-panel::-webkit-scrollbar {
  display: none;
}

.asset-list,
.activity-list,
.chain-grid,
.overview-grid {
  gap: 9px;
  margin-top: 8px;
}

.asset-item {
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-dark);
  padding: 8px 12px;
}

.asset-item.token-asset {
  grid-template-columns: 43px minmax(0, 1fr) auto;
}

.asset-item.token-asset::before,
.activity-item::before {
  width: 42px;
  height: 42px;
  color: #080a08;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.72), transparent 24%),
    linear-gradient(135deg, var(--green), var(--violet));
}

.asset-item span {
  color: rgba(244,255,248,0.66);
}

.asset-item b {
  color: var(--text);
}

.wallet-bottom-tabs {
  min-height: 58px;
  border-top: 1px solid rgba(255,255,255,0.09);
  background: #030403;
}

.wallet-bottom-tabs button {
  min-height: 54px;
  color: rgba(244,255,248,0.46);
}

.wallet-bottom-tabs button span {
  min-height: 30px;
  font-size: 1.55rem;
}

.wallet-bottom-tabs button b {
  display: none;
}

.wallet-bottom-tabs button.active {
  color: var(--violet);
}

.wallet-screen[data-active-tab="bridge"],
.wallet-screen[data-active-tab="history"],
.wallet-screen[data-active-tab="discover"] {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.wallet-screen[data-active-tab="nfts"] {
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
}

.section-title h2,
.wallet-panel[data-wallet-section="bridge"] .panel-head h2 {
  font-size: 1.28rem;
  font-weight: 900;
}

.history-panel .activity-filter-tabs {
  display: none;
}

.history-list,
.history-panel .activity-list {
  margin-top: 12px;
}

.activity-item {
  min-height: 66px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-dark);
}

.activity-item strong {
  font-size: 0.96rem;
}

.activity-item span:last-child,
.activity-item a {
  color: var(--green);
}

.discover-panel {
  gap: 12px;
  padding-top: 10px;
}

.discover-search {
  min-height: 50px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #141615;
}

.discover-chips button,
.discover-terminal {
  border: 0;
  background: var(--surface-dark);
}

.discover-chips b,
.discover-terminal button,
.compact-head button {
  color: #080a08;
  background: linear-gradient(135deg, var(--green), var(--violet));
}

.discover-terminal {
  min-height: 116px;
}

.discover-terminal span,
.compact-head button {
  color: var(--violet);
}

.discover-terminal button {
  color: #080a08;
}

.wallet-panel[data-wallet-section="nfts"] .panel-head h2 {
  font-family: var(--main);
  font-size: 1.18rem;
  text-transform: none;
}

.wallet-panel[data-wallet-section="nfts"] .asset-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nft-asset {
  min-height: 160px;
  background: var(--surface-dark);
}

.nft-asset img {
  background: #252827;
}

.swap-form {
  position: relative;
  gap: 0;
}

.swap-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 0.5fr);
  align-content: center;
  align-items: center;
  gap: 8px;
  padding: 17px 15px;
  border-radius: 8px;
  background: var(--surface-dark);
}

.swap-pay-card {
  padding-bottom: 24px;
}

.swap-receive-card {
  margin-top: 10px;
  padding-top: 24px;
}

.swap-card label {
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.swap-amount-field {
  gap: 8px;
}

.swap-amount-field span,
.swap-asset-field span {
  color: rgba(244,255,248,0.45);
  font-size: 0.86rem;
  font-weight: 900;
}

.swap-amount-field input {
  min-height: 42px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text);
  font-size: 1.65rem;
  font-weight: 800;
}

.swap-asset-field select {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-soft);
  padding: 0 10px;
  font-weight: 900;
}

.swap-presets {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
}

.swap-presets button {
  min-height: 26px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-soft);
  padding: 0 8px;
  font-weight: 900;
}

.swap-flip-button {
  position: relative;
  z-index: 2;
  width: 38px;
  min-height: 38px;
  margin: -19px auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #080a08;
  background: linear-gradient(135deg, var(--green), var(--violet));
  font-size: 1.25rem;
  font-weight: 900;
}

#bridgeReceiveBalance {
  grid-column: 2;
  justify-self: end;
  color: rgba(244,255,248,0.62);
  font-size: 0.82rem;
}

.route-toggle {
  margin-top: 12px;
}

.route-toggle button {
  background: var(--surface-dark);
}

.route-toggle button.active {
  background: linear-gradient(135deg, var(--green), var(--violet));
}

.bridge-form > .primary-action {
  margin-top: 10px;
}

@media (max-width: 460px) {
  .app-shell {
    padding: 0;
  }

  .wallet-screen:not(.hidden) {
    width: 100%;
    height: 100svh;
    max-height: none;
    border: 0;
    border-radius: 0;
    padding: 0 12px;
  }

  .wallet-top {
    padding-top: 8px;
  }
}

@media (max-width: 360px) {
  .wallet-tabs {
    gap: 9px;
  }

  .wallet-tabs button {
    font-size: 1rem;
  }

  .quick-actions button {
    min-height: 72px;
  }

  .swap-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .swap-presets,
  #bridgeReceiveBalance {
    grid-column: 1;
  }
}
