:root {
  color-scheme: dark;
  --bg: #030405;
  --panel: rgba(255, 255, 255, .025);
  --panel-soft: rgba(255, 255, 255, .045);
  --popup: #070808;
  --popup-soft: #090a0a;
  --line: rgba(255, 255, 255, .14);
  --line-soft: rgba(255, 255, 255, .07);
  --text: #f4f7fb;
  --muted: #777f8c;
  --muted-2: #a1a8b3;
  --mint: #00f5a0;
  --blue: #38bdf8;
  --violet: #a855f7;
  --yellow: #facc15;
  --red: #fb7185;
  --green: #22c55e;
}

* { box-sizing: border-box; }

* {
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 "Cascadia Mono", "Cascadia Code", Consolas, "Courier New", monospace;
}

button,
input,
select {
  font: inherit;
}

button,
input,
select {
  min-height: 36px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  padding: 0 10px;
  outline: none;
  transition: border-color .18s ease, color .18s ease, background .18s ease, opacity .18s ease;
}

input,
select {
  background: rgba(255, 255, 255, .025);
}

.native-select {
  display: none;
}

.select-shell {
  position: relative;
  display: block;
  min-width: 0;
  width: 100%;
}

.head-actions .select-shell {
  width: auto;
  min-width: 164px;
}

.select-button {
  position: relative;
  width: 100%;
  min-height: 36px;
  padding: 0 34px 0 10px;
  background: rgba(255, 255, 255, .025);
  color: var(--text);
  text-align: left;
  text-transform: none;
}

.select-button::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--muted-2);
  border-bottom: 1px solid var(--muted-2);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .16s ease, border-color .16s ease;
}

.select-shell.open .select-button {
  border-color: rgba(244, 247, 251, .46);
  background: rgba(255, 255, 255, .04);
}

.select-shell.open .select-button::after {
  border-color: var(--text);
  transform: translateY(-30%) rotate(225deg);
}

.select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 25;
  display: grid;
  max-height: 258px;
  overflow: auto;
  padding: 5px;
  border: 1px solid rgba(244, 247, 251, .18);
  background: #060707;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .42);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}

.select-shell.open .select-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.select-option {
  min-height: 32px;
  padding: 0 9px;
  border: 0;
  color: var(--muted-2);
  background: transparent;
  text-align: left;
  text-transform: none;
}

.select-option:hover,
.select-option.selected {
  color: var(--text);
  background: rgba(244, 247, 251, .075);
}

.select-option.selected {
  box-shadow: inset 2px 0 0 var(--text);
}

button {
  cursor: pointer;
  text-transform: lowercase;
}

button:hover,
input:focus,
select:focus {
  border-color: rgba(255, 255, 255, .42);
}

button:disabled {
  opacity: .45;
  cursor: default;
}

.app-header {
  height: 66px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.header-inner {
  width: min(1500px, calc(100% - 36px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
}

.header-session {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted-2);
  font-size: 15px;
  font-weight: 500;
}

.header-session button {
  min-width: 72px;
}

.profile-link {
  min-width: 0;
  border: 0;
  padding: 0;
  color: var(--text);
  font-weight: 600;
}

.profile-link:hover {
  color: var(--text);
  border-color: transparent;
}

#logoutBtn:hover {
  color: #fecaca;
  border-color: rgba(254, 202, 202, .45);
  background: rgba(254, 202, 202, .08);
}

.app-shell {
  width: min(1500px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: calc(100vh - 66px);
}

.side-panel {
  border-right: 1px solid rgba(255, 255, 255, .10);
  padding: 34px 18px 34px 0;
}

.nav-list {
  position: sticky;
  top: 30px;
  display: grid;
  gap: 22px;
}

.nav-group {
  display: grid;
  gap: 7px;
}

.nav-title {
  display: block;
  padding-left: 18px;
  color: rgba(119, 127, 140, .48);
  font-size: 12px;
  line-height: 1;
  text-transform: lowercase;
}

.nav-list button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 52px;
  padding: 0 0 0 18px;
  border: 0;
  color: var(--muted);
  text-align: left;
  font-size: 18px;
  background: transparent;
  transition: color .2s ease;
}

.nav-list button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  background: var(--text);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .26s cubic-bezier(.18, .88, .22, 1);
}

.nav-list button:hover {
  color: var(--text);
}

.nav-list button.active {
  color: var(--text);
}

.nav-list button.active::before {
  transform: scaleY(1);
}

.nav-label {
  min-width: 0;
}

.nav-badges {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-width: 0;
}

.nav-badge {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
}

.nav-badge.red {
  background: rgba(248, 80, 105, .96);
}

.nav-badge.blue {
  background: rgba(56, 189, 248, .96);
}

.nav-badge.orange {
  background: rgba(251, 146, 60, .96);
}

.content-panel {
  min-width: 0;
  padding: 30px 0 48px 34px;
}

.content-head {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.content-head h1,
.locked h1,
.block-head h2 {
  margin: 0;
  letter-spacing: 0;
}

.content-head h1 {
  font-size: 28px;
  font-weight: 700;
}

.content-head span,
.block-head span,
label,
.metric span,
.event small {
  color: var(--muted);
  font-size: 12px;
  text-transform: lowercase;
}

.head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: end;
}

#globalSearch {
  width: min(260px, 34vw);
}

.tab-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  transition: height .36s cubic-bezier(.2, .8, .2, 1);
}

.tab-track {
  display: block;
  width: 100%;
}

.tab-page {
  display: none;
  width: 100%;
  min-width: 0;
  gap: 18px;
  pointer-events: none;
}

.tab-page.active {
  display: grid;
  opacity: 1;
  pointer-events: auto;
}

.tab-page.animating {
  position: absolute;
  inset: 0 auto auto 0;
  display: grid;
  width: 100%;
  pointer-events: none;
  will-change: transform, opacity;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
}

.metric {
  min-height: 92px;
  padding: 16px;
  background: var(--panel);
}

.metric strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  font-weight: 700;
}

.metric.tone-mint strong { color: var(--mint); }
.metric.tone-blue strong { color: var(--blue); }
.metric.tone-violet strong { color: var(--violet); }
.metric.tone-yellow strong { color: var(--yellow); }
.metric.tone-green strong { color: var(--green); }
.metric.tone-red strong { color: var(--red); }
.metric.tone-white strong { color: var(--text); }

.asset-metrics {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.asset-list {
  display: grid;
  gap: 0;
}

.asset-table-head {
  display: grid;
  grid-template-columns: minmax(230px, 1.25fr) repeat(3, minmax(160px, 1fr)) minmax(120px, .8fr);
  gap: 16px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
  text-transform: lowercase;
}

.asset-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.25fr) repeat(3, minmax(160px, 1fr)) minmax(120px, .8fr);
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

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

.asset-icon {
  width: 42px;
  height: 42px;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  color: #030405;
  font-size: 18px;
  font-weight: 800;
}

.asset-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.asset-icon::after {
  content: attr(data-fallback);
  display: none;
}

.asset-icon.missing-icon::after {
  display: block;
}

.asset-icon.missing-icon,
.table-asset-icon.missing-icon {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}

.asset-name div,
.asset-value {
  display: grid;
  min-width: 0;
}

.asset-name strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.1;
}

.asset-name small,
.asset-table-head span {
  color: var(--muted);
  font-size: 12px;
  text-transform: lowercase;
}

.asset-value strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.data-block {
  position: relative;
  padding: 18px;
  background: var(--panel);
}

.block-head {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.block-head h2 {
  font-size: 18px;
}

.bar-chart {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 92px minmax(120px, 1fr) 48px;
  gap: 12px;
  align-items: center;
}

.bar-row span {
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-row strong {
  text-align: right;
  font-weight: 400;
}

.bar-track {
  height: 9px;
  background: rgba(255, 255, 255, .045);
}

.bar-track i {
  display: block;
  height: 100%;
  width: var(--bar-width, 0);
  transform-origin: left center;
  animation: growBar .74s cubic-bezier(.2, .8, .2, 1) both;
}

.data-rendered .bar-track i {
  animation: none;
}

.mint { background: rgba(0, 245, 160, .92); }
.blue { background: rgba(56, 189, 248, .92); }
.violet { background: rgba(168, 85, 247, .92); }
.yellow { background: rgba(250, 204, 21, .94); }
.green { background: rgba(34, 197, 94, .92); }
.red { background: rgba(251, 113, 133, .92); }
.muted { background: rgba(255, 255, 255, .34); }

.form-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.withdrawal-quote {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 12px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.withdrawal-quote.hidden {
  display: none;
}

.withdrawal-quote span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: lowercase;
}

.withdrawal-quote strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-action-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 320px;
  gap: 12px;
  margin-bottom: 10px;
  align-items: stretch;
}

.wallet-create-form {
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 8px;
}

.wallet-create-form button {
  grid-column: 1 / -1;
}

.wallet-withdraw-block {
  min-height: 184px;
  display: grid;
  min-width: 0;
}

.wallet-exchange-block {
  position: relative;
  width: 320px;
  min-width: 0;
  padding: 12px;
}

.exchange-form {
  position: relative;
  display: grid;
  gap: 5px;
}

.exchange-caption {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 16px;
  color: var(--muted);
  font-size: 11px;
  text-transform: lowercase;
}

.exchange-caption strong {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 500;
}

.exchange-caption button {
  width: auto;
  min-height: auto;
  margin-left: 0;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 11px;
}

.exchange-input-row {
  position: relative;
  min-height: 42px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  background: var(--popup-soft);
  border: 1px solid var(--line-soft);
}

.exchange-asset-button {
  min-height: 32px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 1px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.exchange-coin {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.exchange-coin .table-asset-icon {
  width: 24px;
  height: 24px;
}

.exchange-coin strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.exchange-asset-button code {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exchange-selected-asset {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.exchange-selected-asset > span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.exchange-selected-asset strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.exchange-selected-asset code {
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exchange-input-row input {
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  text-align: right;
}

.exchange-input-row input:focus {
  outline: none;
}

.exchange-separator {
  position: relative;
  height: 18px;
  display: grid;
  place-items: center;
}

.exchange-separator i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-soft);
}

.exchange-separator button {
  position: relative;
  z-index: 1;
  width: 28px;
  min-width: 28px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  color: var(--muted-2);
  font-size: 15px;
}

.exchange-hint {
  color: var(--muted);
  font-size: 11px;
}

.exchange-hint:empty {
  display: none;
}

.exchange-picker {
  position: absolute;
  left: 0;
  right: 0;
  top: 76px;
  z-index: 1000;
  display: grid;
  gap: 2px;
  max-height: 230px;
  overflow: auto;
  padding: 6px 8px;
  border: 1px solid var(--line-soft);
  background: #070808;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .70);
}

.exchange-picker[data-side="to"] {
  top: 161px;
}

.exchange-picker[hidden] {
  display: none;
}

.exchange-picker button {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.exchange-picker button:hover {
  color: var(--text);
}

.exchange-picker .table-asset-icon {
  width: 24px;
  height: 24px;
}

.exchange-picker-asset {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.exchange-picker-asset > span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.exchange-picker-asset strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.exchange-picker-asset code {
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exchange-picker button > strong {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 500;
  text-align: right;
}

.exchange-totp {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  text-transform: lowercase;
}

.exchange-totp input {
  min-height: 34px;
}

#exchangeSubmit {
  margin-top: 2px;
}

.wallet-action-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

#walletActionAsset {
  min-width: 0;
}

#walletActionAsset .table-asset {
  min-width: 0;
  justify-content: flex-start;
}

#walletActionAsset .table-asset div {
  justify-items: start;
  text-align: left;
}

#walletActionAsset .table-asset-icon {
  width: 44px;
  height: 44px;
}

.wallet-action-head > div:last-child {
  display: grid;
  gap: 2px;
  justify-items: end;
  min-width: 120px;
}

.wallet-action-head span,
.wallet-action-address span {
  color: var(--muted);
  font-size: 11px;
  text-transform: lowercase;
}

.wallet-action-head strong {
  color: var(--green);
  font-size: 18px;
  overflow-wrap: anywhere;
  text-align: right;
}

.wallet-action-head small {
  color: var(--muted-2);
  font-size: 12px;
  text-align: right;
}

.wallet-action-address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.wallet-withdrawal-form {
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) minmax(120px, .7fr) minmax(120px, .7fr) minmax(92px, auto);
  gap: 10px;
  align-items: end;
}

[data-wallet-row] {
  cursor: pointer;
}

[data-wallet-row].selected td {
  background: rgba(255, 255, 255, .035);
}

[data-wallet-row].selected td:first-child {
  box-shadow: inset 3px 0 0 rgba(244, 247, 251, .86);
}

.column-chart {
  height: 250px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18px, 1fr));
  gap: 8px;
  align-items: end;
  padding-top: 22px;
}

.column {
  position: relative;
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr 18px;
  gap: 8px;
  align-items: end;
}

.column i {
  display: block;
  width: 100%;
  min-height: 0;
  height: var(--column-height, 0);
  align-self: end;
  transform-origin: bottom center;
  animation: growColumn .86s cubic-bezier(.2, .8, .2, 1) both;
}

.data-rendered .column i {
  animation: none;
}

.column span {
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

.column::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 5;
  width: max-content;
  max-width: 240px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(3, 4, 5, .96);
  color: var(--text);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity .16s ease, transform .16s ease;
}

.column:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

label.check {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
}

label.check input {
  min-height: auto;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

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

th {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  text-transform: lowercase;
}

td {
  color: var(--text);
}

tbody tr {
  transition: background .16s ease;
}

code {
  color: var(--blue);
}

button.copy {
  min-height: auto;
  padding: 0;
  border: 0;
  color: var(--blue);
}

.copy-tooltip {
  position: fixed;
  z-index: 120;
  left: 0;
  top: 0;
  padding: 5px 8px;
  border: 1px solid rgba(0, 245, 160, .5);
  background: var(--popup);
  color: var(--mint);
  font-size: 11px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
  transition: opacity .14s ease, transform .14s ease;
}

.copy-tooltip.show {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 16px));
}

.copy-tooltip.error {
  border-color: rgba(251, 113, 133, .55);
  color: var(--red);
}

button.mini {
  min-height: 28px;
  padding: 0 8px;
}

.table-input {
  width: 86px;
  min-height: 28px;
  padding: 0 8px;
}

.link-button {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  text-transform: lowercase;
}

.link-button:hover {
  border-color: rgba(255, 255, 255, .42);
}

button.danger:hover {
  border-color: rgba(251, 113, 133, .68);
  color: #fb7185;
}

.status {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .055);
  color: var(--muted-2);
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.status-success {
  border-color: rgba(0, 245, 160, .28);
  background: rgba(0, 245, 160, .075);
  color: var(--mint);
}

.status-warning {
  border-color: rgba(250, 204, 21, .30);
  background: rgba(250, 204, 21, .075);
  color: var(--yellow);
}

.status-error {
  border-color: rgba(251, 113, 133, .30);
  background: rgba(251, 113, 133, .075);
  color: var(--red);
}

.status-muted {
  border-color: rgba(191, 219, 254, .14);
  background: rgba(191, 219, 254, .07);
  color: var(--blue);
}

.table-asset {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 154px;
}

.table-asset-icon {
  width: 34px;
  height: 34px;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  color: #030405;
  font-size: 15px;
  font-weight: 800;
}

.table-asset-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.table-asset-icon::after {
  content: attr(data-fallback);
  display: none;
}

.table-asset-icon.missing-icon::after {
  display: block;
}

.table-asset div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.table-asset strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.1;
}

[data-transaction-asset] .table-asset {
  min-width: 132px;
}

.tx-type-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(244, 247, 251, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .045);
  color: var(--muted-2);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.tx-type-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tx-type-icon.deposit {
  border-color: rgba(0, 245, 160, .42);
  color: var(--mint);
}

.tx-type-icon.withdrawal {
  border-color: rgba(251, 113, 133, .42);
  color: var(--red);
}

.tx-type-icon.unmatched {
  border-color: rgba(250, 204, 21, .42);
  color: var(--yellow);
}

.amount-cell {
  display: grid;
  gap: 2px;
  line-height: 1.12;
}

.amount-cell strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.amount-cell small {
  color: var(--muted-2);
  font-size: 11px;
}

.date-cell {
  display: grid;
  gap: 1px;
  color: var(--text);
  line-height: 1.1;
}

.date-cell small {
  color: var(--muted-2);
  font-size: 11px;
}

.transaction-tools {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: end;
  margin-bottom: 0;
}

.transaction-tools label {
  width: 180px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.pager span {
  min-width: 28px;
  color: var(--muted-2);
  text-align: center;
}

.list-pager {
  justify-content: flex-end;
  margin-bottom: 0;
}

.wallet-list-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.wallet-list-tools label {
  min-width: 142px;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: lowercase;
}

.wallet-list-tools label.control-only {
  display: block;
  width: auto;
  min-width: 142px;
  font-size: inherit;
}

.wallet-list-tools .select-shell {
  min-width: 142px;
}

.wallet-list-tools .select-button {
  min-height: 36px;
}

.empty-row td {
  padding: 22px 0 18px;
  color: var(--muted-2);
  text-align: center;
}

.empty-table {
  display: inline-block;
  color: var(--muted-2);
  font-size: 12px;
}

.block-loading {
  position: absolute;
  inset: 54px 18px 18px;
  z-index: 8;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  background: rgba(7, 8, 8, .78);
  backdrop-filter: blur(2px);
}

.block-loading[hidden] {
  display: none;
}

.block-loading .loader-ring {
  width: 30px;
  height: 30px;
}

.block-loading strong {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 500;
  text-transform: lowercase;
}

.network-pill {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  margin-top: 2px;
  padding: 0 7px;
  border: 1px solid rgba(244, 247, 251, .14);
  color: var(--muted-2);
  font-size: 10px;
  text-transform: lowercase;
}

.network-pill img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.network-pill.tone-mint { color: var(--mint); border-color: rgba(0, 245, 160, .24); }
.network-pill.tone-blue { color: var(--blue); border-color: rgba(56, 189, 248, .24); }
.network-pill.tone-violet { color: var(--violet); border-color: rgba(168, 85, 247, .24); }
.network-pill.tone-yellow { color: var(--yellow); border-color: rgba(250, 204, 21, .26); }
.network-pill.tone-green { color: var(--green); border-color: rgba(34, 197, 94, .24); }
.network-pill.tone-red { color: var(--red); border-color: rgba(251, 113, 133, .26); }

.admin-account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 12px;
}

.account-create {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.account-create button {
  justify-self: stretch;
  min-width: 0;
}

.account-create-block,
.account-inspector {
  padding: 14px;
}

.account-selected-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.account-selected-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  overflow-wrap: anywhere;
  min-width: 0;
  flex: 0 1 auto;
}

.account-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(244, 247, 251, .22);
  color: var(--text);
  font-size: 12px;
  text-transform: lowercase;
}

.account-info-line {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.account-info-line strong {
  color: var(--muted-2);
  font-weight: 500;
}

.account-actions-panel {
  display: grid;
  grid-template-columns: 130px minmax(150px, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.compact-label {
  gap: 4px;
}

.account-action-buttons {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.account-empty,
.empty-state {
  min-height: 112px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

[data-account-row] {
  cursor: pointer;
}

[data-account-row].selected td {
  background: rgba(244, 247, 251, .045);
}

[data-account-row].selected td:first-child {
  color: var(--text);
}

.self-mark {
  margin-left: 8px;
  color: var(--yellow);
  font-size: 11px;
}

.events {
  display: grid;
  gap: 8px;
}

.event {
  display: grid;
  grid-template-columns: minmax(140px, .75fr) minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 40px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}

.event strong {
  color: var(--violet);
  font-weight: 400;
}

.event span {
  color: var(--muted-2);
}

.locked {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
}

.locked-box {
  width: min(540px, 100%);
  padding: 26px;
  background: var(--panel);
}

.locked-box h1 {
  margin-top: 8px;
  font-size: 28px;
}

.locked-box p {
  color: var(--muted-2);
}

.pay-body {
  min-height: 100vh;
}

.pay-shell {
  width: min(500px, calc(100% - 36px));
  min-height: calc(100vh - 66px);
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 18px 0;
}

.pay-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 18px;
  background: var(--panel);
}

.pay-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.pay-topline > div:first-child {
  min-width: 0;
}

.pay-asset-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pay-asset-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-weight: 700;
  overflow: hidden;
}

.pay-asset-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.pay-asset-icon.missing-icon::after {
  content: attr(data-asset-icon);
  font-size: 12px;
}

.pay-topline span,
.pay-timer-card span,
.pay-copy-row span,
.pay-foot {
  color: var(--muted);
  font-size: 12px;
  text-transform: lowercase;
}

.pay-topline h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.pay-network-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  margin-top: 7px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  color: var(--muted-2);
  background: rgba(255, 255, 255, .035);
  font-size: 11px;
  line-height: 1;
  text-transform: none;
}

.pay-network-pill img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.pay-network-pill.tone-mint { color: var(--mint); border-color: rgba(0, 245, 160, .28); }
.pay-network-pill.tone-blue { color: var(--blue); border-color: rgba(56, 189, 248, .28); }
.pay-network-pill.tone-violet { color: var(--violet); border-color: rgba(168, 85, 247, .28); }
.pay-network-pill.tone-yellow { color: var(--yellow); border-color: rgba(250, 204, 21, .30); }
.pay-network-pill.tone-green { color: var(--green); border-color: rgba(34, 197, 94, .28); }
.pay-network-pill.tone-red { color: var(--red); border-color: rgba(251, 113, 133, .30); }

.pay-timer-card {
  min-width: 88px;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  background: var(--popup-soft);
  text-align: center;
}

.pay-timer-card strong {
  display: block;
  color: var(--yellow);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.pay-main,
.pay-details {
  display: grid;
  gap: 10px;
}

.pay-main {
  position: relative;
  justify-items: center;
  align-items: center;
  padding: 10px 0 12px;
  max-height: 280px;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  transition: padding .24s ease;
}

.pay-main[data-stage="detected"],
.pay-main[data-stage="paid"],
.pay-main[data-stage="expired"] {
  padding: 32px 0 34px;
}

.pay-main.no-stage-animation,
.pay-main.no-stage-animation *,
.pay-details.no-stage-animation,
.pay-details.no-stage-animation *,
.pay-progress.no-stage-animation,
.pay-progress.no-stage-animation * {
  transition: none !important;
  animation: none !important;
}

.pay-qr {
  width: min(260px, 100%);
  aspect-ratio: 1;
  padding: 3px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
  opacity: 1;
  transform: scale(1);
  transition: opacity .2s ease, transform .24s ease;
}

.pay-main[data-stage="detected"] .pay-qr,
.pay-main[data-stage="paid"] .pay-qr,
.pay-main[data-stage="expired"] .pay-qr,
.pay-main[data-stage="loading"] .pay-qr {
  opacity: 0;
  transform: scale(.92);
  pointer-events: none;
}

.pay-stage-icon {
  position: absolute;
  inset: auto;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  opacity: 0;
  transform: scale(.86);
  transition: opacity .2s ease, transform .24s ease, color .2s ease, border-color .2s ease, background .2s ease;
}

.pay-stage-icon span {
  position: relative;
  width: 58px;
  height: 58px;
  display: block;
}

.pay-main[data-stage="detected"] .pay-stage-icon,
.pay-main[data-stage="paid"] .pay-stage-icon,
.pay-main[data-stage="expired"] .pay-stage-icon {
  opacity: 1;
  transform: scale(1);
}

.pay-main[data-stage="detected"] .pay-stage-icon {
  color: var(--yellow);
  border: 1px solid rgba(250, 204, 21, .62);
  background: rgba(250, 204, 21, .075);
  box-shadow: 0 0 34px rgba(250, 204, 21, .10);
}

.pay-main[data-stage="detected"] .pay-stage-icon::before,
.pay-main[data-stage="detected"] .pay-stage-icon::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .85;
  animation: pay-wait-ring 1.35s ease-in-out infinite;
}

.pay-main[data-stage="detected"] .pay-stage-icon::after {
  inset: 29px;
  opacity: .55;
  animation-delay: -.42s;
}

.pay-main[data-stage="detected"] .pay-stage-icon span::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 18px rgba(250, 204, 21, .35);
}

.pay-main[data-stage="paid"] .pay-stage-icon {
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, .68);
  background: rgba(34, 197, 94, .10);
  box-shadow: 0 0 36px rgba(34, 197, 94, .12);
}

.pay-main[data-stage="paid"] .pay-stage-icon span::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 17px;
  width: 31px;
  height: 17px;
  border-left: 5px solid #fff;
  border-bottom: 5px solid #fff;
  transform: rotate(-45deg);
  transform-origin: center;
}

.pay-main[data-stage="paid"] .pay-stage-icon.swap-success {
  animation: pay-success-swap .48s cubic-bezier(.22, .9, .22, 1) both;
}

.pay-main[data-stage="expired"] .pay-stage-icon {
  color: var(--red);
  border: 1px solid rgba(251, 113, 133, .60);
  background: rgba(251, 113, 133, .08);
}

.pay-main[data-stage="expired"] .pay-stage-icon span::before,
.pay-main[data-stage="expired"] .pay-stage-icon span::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 27px;
  width: 32px;
  height: 4px;
  background: currentColor;
}

.pay-main[data-stage="expired"] .pay-stage-icon span::before {
  transform: rotate(45deg);
}

.pay-main[data-stage="expired"] .pay-stage-icon span::after {
  transform: rotate(-45deg);
}

.pay-copy-row {
  position: relative;
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 4px 12px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  background: var(--popup-soft);
  text-align: left;
  text-transform: none;
  cursor: copy;
  user-select: none;
}

.pay-copy-row:hover,
.pay-copy-row:focus-within {
  border-color: rgba(244, 247, 251, .32);
  color: var(--text);
}

.pay-copy-row strong {
  grid-column: 1;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
  cursor: text;
  user-select: text;
}

.pay-copy-row:first-child strong {
  color: var(--mint);
  font-size: 19px;
}

.pay-copy-icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  justify-self: end;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: copy;
}

.pay-copy-icon:hover,
.pay-copy-icon:focus-visible {
  color: var(--text);
}

.pay-copy-icon i {
  width: 18px;
  height: 18px;
  color: var(--muted-2);
  position: relative;
}

.pay-copy-icon i::before,
.pay-copy-icon i::after {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
  background: var(--popup-soft);
}

.pay-copy-icon i::before {
  inset: 4px 0 0 4px;
}

.pay-copy-icon i::after {
  inset: 0 4px 4px 0;
}

.pay-copy-row::after {
  content: "copied";
  position: absolute;
  right: 8px;
  top: -26px;
  z-index: 2;
  padding: 4px 7px;
  border: 1px solid rgba(0, 245, 160, .55);
  background: var(--popup);
  color: var(--mint);
  font-size: 11px;
  line-height: 1;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}

.pay-copy-row.copied::after {
  opacity: 1;
  transform: translateY(0);
}

.pay-details {
  overflow: hidden;
}

.pay-details.is-payment-detected .pay-copy-row {
  max-height: 0;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.pay-details.is-payment-detected .pay-foot {
  padding-top: 0;
}

.pay-copy-row {
  max-height: 86px;
  transition: max-height .26s ease, min-height .26s ease, padding .26s ease, border-width .26s ease, opacity .18s ease, transform .22s ease, border-color .16s ease;
}

.pay-progress {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(250, 204, 21, .24);
  background: rgba(250, 204, 21, .055);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
}

.pay-progress.is-paid {
  border-color: rgba(0, 245, 160, .22);
  background: rgba(0, 245, 160, .055);
}

.pay-progress.show {
  opacity: 1;
  transform: translateY(0);
}

.pay-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pay-progress-head span,
.pay-tx-row span {
  color: var(--muted);
  font-size: 11px;
  text-transform: lowercase;
}

.pay-progress-head strong {
  color: var(--yellow);
  font-size: 15px;
  font-weight: 600;
  cursor: copy;
  user-select: text;
}

.pay-progress.is-paid .pay-progress-head strong {
  color: var(--mint);
}

.pay-tx-list {
  display: grid;
  gap: 8px;
}

.pay-tx-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(96px, .72fr) minmax(92px, .52fr);
  gap: 10px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.pay-tx-row > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pay-tx-row strong,
.pay-tx-copy code {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}

.pay-tx-copy {
  width: fit-content;
  min-height: auto;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  text-align: left;
}

.pay-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 2px;
}

.pay-foot span {
  min-width: 0;
}

.pay-foot strong {
  color: var(--muted-2);
  font-weight: 500;
  overflow-wrap: anywhere;
}

#payCheckCopy {
  cursor: copy;
}

@keyframes pay-wait-ring {
  0%, 100% {
    transform: scale(.82);
    opacity: .32;
  }
  50% {
    transform: scale(1.08);
    opacity: .9;
  }
}

@keyframes pay-success-swap {
  0% {
    transform: scale(1);
  }
  42% {
    transform: scale(0);
  }
  58% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

.pay-loading {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  gap: 12px;
  background: var(--bg);
  color: var(--text);
  opacity: 1;
  transition: opacity .26s ease;
}

.pay-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.pay-loading strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-2);
  text-transform: lowercase;
}

.modal[hidden],
[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.modal.opening {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .82);
  opacity: 0;
  transition: opacity .22s ease;
}

.modal.opening .modal-backdrop {
  opacity: 1;
}

.login-card,
.profile-card {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  display: grid;
  gap: 12px;
  padding: 20px;
  background: var(--popup);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s cubic-bezier(.2, .8, .2, 1);
}

.modal.opening .login-card,
.modal.opening .profile-card {
  opacity: 1;
  transform: translateY(0);
}

.profile-card {
  width: min(560px, 100%);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head h2 {
  margin: 0;
}

.profile-lines {
  display: grid;
  gap: 10px;
}

.profile-lines div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.profile-lines span,
.totp-setup span {
  color: var(--muted-2);
}

.profile-lines strong {
  font-weight: 600;
}

.profile-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .8fr);
  gap: 10px 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.settings-title {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  text-transform: lowercase;
}

.settings-toggle {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted-2);
}

.settings-toggle input {
  position: relative;
  width: 64px;
  min-width: 64px;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}

.settings-toggle input::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  display: block;
  width: 22px;
  height: 22px;
  background: var(--muted);
  transition: transform .16s ease, background .16s ease;
}

.settings-toggle input:checked {
  border-color: rgba(34, 197, 94, .82);
  background: rgba(34, 197, 94, .12);
}

.settings-toggle input:checked::before {
  transform: translateX(28px);
  background: var(--green);
}

.totp-setup {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.totp-setup img {
  width: 220px;
  height: 220px;
  background: #fff;
}

.totp-setup code {
  display: block;
  margin-top: 4px;
  color: var(--yellow);
  overflow-wrap: anywhere;
}

.field-error {
  color: var(--red);
  font-size: 13px;
}

.notification-stack {
  position: fixed;
  --notification-offset: 14px;
  top: var(--notification-offset);
  right: var(--notification-offset);
  z-index: 45;
  width: min(420px, calc(100vw - var(--notification-offset) * 2));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.notification-stack[data-position="top-left"] {
  top: var(--notification-offset);
  right: auto;
  bottom: auto;
  left: var(--notification-offset);
}

.notification-stack[data-position="top-right"] {
  top: var(--notification-offset);
  right: var(--notification-offset);
  bottom: auto;
  left: auto;
}

.notification-stack[data-position="bottom-left"] {
  top: auto;
  right: auto;
  bottom: var(--notification-offset);
  left: var(--notification-offset);
}

.notification-stack[data-position="bottom-right"] {
  top: auto;
  right: var(--notification-offset);
  bottom: var(--notification-offset);
  left: auto;
}

.notification {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  background: var(--popup);
  color: var(--text);
  opacity: 0;
  pointer-events: auto;
  will-change: transform, opacity;
  transition: opacity .18s ease, transform .24s cubic-bezier(.18, .88, .22, 1), border-color .18s ease;
}

.notification.show {
  opacity: 1;
}

.notification.paused {
  border-right-color: rgba(244, 247, 251, .36);
}

.notification.leaving {
  opacity: 0;
  transform: translate3d(14px, 0, 0);
}

.notification-stack[data-position$="left"] .notification.leaving {
  transform: translate3d(-14px, 0, 0);
}

.notification strong {
  font-size: 13px;
  font-weight: 700;
  text-transform: lowercase;
}

.notification span {
  color: var(--text);
}

.notification small {
  color: var(--muted);
}

.notification.deposit {
  border-color: rgba(0, 245, 160, .9);
}

.notification.success {
  border-color: rgba(34, 197, 94, .95);
}

.notification.success strong {
  color: var(--green);
}

.notification.withdrawal {
  border-color: rgba(244, 247, 251, .55);
}

.notification.warning {
  border-color: rgba(250, 204, 21, .9);
}

.notification.error {
  border-color: rgba(251, 113, 133, .9);
}

.notification.event {
  border-color: rgba(244, 247, 251, .42);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 36px));
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .20);
  background: var(--popup-soft);
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.2, .8, .2, 1);
}

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

.modal-open {
  overflow: hidden;
}

.transition-overlay {
  --cover-size: 2600px;
  --cover-left: -1300px;
  --cover-top: -1300px;
  --cover-color: #030405;
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

.transition-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.reload-boot body > :not(#transitionOverlay) {
  visibility: hidden;
}

.reload-boot .transition-overlay {
  opacity: 1;
  pointer-events: auto;
}

.transition-circle {
  position: fixed;
  left: var(--cover-left);
  top: var(--cover-top);
  width: var(--cover-size);
  height: var(--cover-size);
  border-radius: 50%;
  background: var(--cover-color);
  transform: scale(0);
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;
}

.transition-overlay.entering .transition-circle {
  animation: coverIn .62s cubic-bezier(.72, 0, .18, 1) forwards;
}

.transition-overlay.covered .transition-circle {
  transform: scale(1);
}

.reload-boot .transition-circle {
  transform: scale(1);
}

.transition-overlay.leaving .transition-circle {
  animation: coverOut .56s cubic-bezier(.72, 0, .18, 1) forwards;
}

.transition-loader {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  justify-items: center;
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
}

.transition-overlay.entering .transition-loader {
  animation: loaderIn .22s ease .28s forwards;
}

.transition-overlay.covered .transition-loader {
  opacity: 1;
  transform: translateY(0);
}

.reload-boot .transition-loader {
  opacity: 1;
  transform: translateY(0);
}

.transition-overlay.loader-out .transition-loader,
.transition-overlay.leaving .transition-loader {
  animation: loaderOut .14s ease forwards;
}

.loader-ring {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 247, 251, .26);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin .72s linear infinite;
}

@keyframes growBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes growColumn {
  from { transform: scaleY(0); opacity: .45; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes coverIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

@keyframes coverOut {
  from { transform: scale(1); }
  to { transform: scale(0); }
}

@keyframes loaderIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes loaderOut {
  to { opacity: 0; transform: translateY(-6px); }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    padding: 18px 0;
  }

  .nav-list {
    position: static;
  }

  .nav-group {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-title {
    grid-column: 1 / -1;
  }

  .content-panel {
    padding: 24px 0 42px;
  }

.chart-grid,
.admin-account-grid,
.wallet-action-grid,
.asset-table-head,
.asset-row,
.metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-account-grid,
  .wallet-action-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-actions-panel,
  .account-action-buttons,
  .wallet-withdrawal-form {
    grid-template-columns: 1fr 1fr;
  }

  .asset-row {
    align-items: start;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .app-shell {
    width: min(100% - 22px, 1500px);
  }

  .notification-stack {
    --notification-offset: 10px;
    width: calc(100vw - var(--notification-offset) * 2);
  }

  .brand {
    font-size: 24px;
  }

  .content-head,
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .app-header {
    height: auto;
    min-height: 66px;
    padding: 14px 0;
  }

  .nav-list,
  .chart-grid,
  .admin-account-grid,
  .pay-card,
  .asset-table-head,
  .asset-row,
  .metrics-grid,
  .form-row,
  .account-action-buttons,
  .account-actions-panel,
  .event {
    grid-template-columns: 1fr;
  }
}
