@font-face {
  font-family: "Manrope";
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
}

:root {
  --ink-title: rgba(0, 0, 0, 0.9);
  --ink-primary: rgba(0, 0, 0, 0.8);
  --ink-secondary: rgba(0, 0, 0, 0.6);
  --ink-tertiary: rgba(0, 0, 0, 0.4);
  --ink-quaternary: rgba(0, 0, 0, 0.3);
  --line: #f2f2f2;
  --header-line: #e3e7ea;
  --selected: rgba(0, 0, 0, 0.03);
  --chip: rgba(0, 0, 0, 0.05);
  --success: #00d690;
  --success-secondary: #00e59a;
  --error: #f3518b;
  --focus: #5f9aff;
  --accent-purple: #a934fc;
  --page-background: #f7f8f8;
  --surface: #fff;
  --surface-muted: #f4f5f5;
  --surface-hover: #eef0f0;
  --border-subtle: rgba(0, 0, 0, 0.055);
  --border-strong: rgba(0, 0, 0, 0.14);
  --card-shadow: 0 1px 2px rgba(16, 24, 40, 0.018);
  --radius-card: 16px;
  --radius-control: 22px;
  --section-padding: 28px;
  --hero-padding: 32px;
  --control-height: 40px;
  --header-height: 53px;
  --sidebar-width: 264px;
  --content-gap: 24px;
  color-scheme: light;
  font-family: "Manrope", sans-serif;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #fff;
  -webkit-text-size-adjust: 100%;
  text-rendering: geometricPrecision;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--page-background);
  color: var(--ink-primary);
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.428571;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

img,
svg {
  display: block;
  flex: 0 0 auto;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

::selection {
  background: rgba(0, 214, 144, 0.2);
  color: var(--ink-title);
}

:focus {
  outline: none;
}

:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(95, 154, 255, 0.7);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Global header */

.site-header {
  position: relative;
  z-index: 50;
  width: 100%;
  height: var(--header-height);
  border-bottom: 1px solid var(--header-line);
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 52px;
  padding: 0 40px;
  gap: 40px;
}

.header-left,
.header-actions,
.primary-nav,
.header-menu-trigger,
.brand-button,
.icon-button {
  display: flex;
  align-items: center;
}

.header-left {
  flex: 0 0 auto;
  height: 100%;
  gap: 44px;
}

.brand-button {
  justify-content: center;
  width: 72px;
  height: 32px;
  border-radius: 8px;
}

.brand-button:hover {
  opacity: 0.68;
}

.brand-button:active {
  transform: translateY(1px);
}

.brand-mark {
  position: relative;
  display: block;
  width: 72px;
  height: 21.774px;
}

.brand-base {
  position: absolute;
  inset: 0 auto auto 0;
  width: 72px;
  height: 21.664px;
}

.brand-dot {
  position: absolute;
  top: 16.988px;
  left: 34.938px;
  width: 4.68px;
  height: 4.676px;
}

.primary-nav {
  height: 100%;
  gap: 32px;
  white-space: nowrap;
}

.primary-nav button,
.header-menu-trigger {
  min-height: 32px;
  color: var(--ink-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  transition: color 140ms ease, opacity 140ms ease;
}

.primary-nav button:hover,
.header-menu-trigger:hover {
  color: #000;
}

.primary-nav button:active,
.header-menu-trigger:active {
  opacity: 0.54;
}

.header-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
  height: 100%;
  gap: 20px;
  margin-right: 6px;
  white-space: nowrap;
}

.deposit-button {
  width: 84px;
  height: 32px;
  border: 1.5px solid var(--accent-purple);
  border-radius: 50px;
  background: #fff;
  color: var(--ink-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.deposit-button > span {
  background: linear-gradient(180deg, #a934fc 0%, #5f9aff 100%);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.deposit-button:hover {
  background: var(--accent-purple);
  color: #fff;
  box-shadow: 0 6px 18px rgba(169, 52, 252, 0.18);
}

.deposit-button:hover > span {
  background: none;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.deposit-button:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: none;
}

.header-menu-trigger {
  justify-content: center;
  gap: 4px;
}

#assets-trigger {
  width: 61px;
}

#history-trigger {
  width: 78px;
}

.chevron-crop {
  position: relative;
  display: block;
  flex: 0 0 10px;
  width: 10px;
  height: 6px;
  overflow: hidden;
}

.header-menu-trigger img {
  position: absolute;
  top: -7px;
  left: -5px;
  width: 20px;
  height: 20px;
  max-width: none;
  opacity: 0.4;
  transition: transform 160ms ease;
}

.header-menu-trigger[aria-expanded="true"] img {
  transform: rotate(180deg);
}

.icon-button {
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color 140ms ease, transform 140ms ease;
}

.icon-button:hover,
.icon-button[aria-expanded="true"] {
  background: var(--selected);
}

.icon-button:active {
  transform: scale(0.94);
}

.icon-button img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.icon-button img,
.account-nav-item.is-current .nav-icon img,
.copy-icon img,
.card-icon img {
  opacity: 0.8;
}

.account-nav-item:not(.is-current) .nav-icon img,
.info-button img,
.gear-button img {
  opacity: 0.6;
}

.popover-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.popover-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  right: 0;
  width: 232px;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(15, 20, 29, 0.14), 0 2px 8px rgba(15, 20, 29, 0.06);
  transform-origin: top right;
  animation: popover-in 150ms ease-out both;
}

.popover-menu-wide {
  width: 250px;
}

.popover-menu > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  gap: 16px;
  border-radius: 9px;
  color: var(--ink-primary);
  font-size: 13px;
  font-weight: 650;
  line-height: 18px;
  text-align: left;
}

.popover-menu > button:hover,
.popover-menu > button:focus-visible {
  background: var(--selected);
  color: var(--ink-title);
}

.menu-meta {
  flex: 0 0 auto;
  color: var(--ink-tertiary);
  font-size: 11px;
  font-weight: 650;
  line-height: 16px;
}

.account-menu-summary {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 12px;
  gap: 12px;
}

.account-menu-summary > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.account-menu-summary strong,
.account-menu-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-summary strong {
  color: var(--ink-title);
  font-size: 13px;
  font-weight: 750;
  line-height: 18px;
}

.account-menu-summary small {
  color: var(--ink-tertiary);
  font-size: 11px;
  line-height: 16px;
}

.mini-avatar {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #35d8ff 0%, var(--success-secondary) 100%);
  color: var(--ink-primary);
  font-size: 14px;
  font-weight: 800;
}

.account-menu {
  width: 360px;
  max-height: calc(100vh - 72px);
  padding: 12px;
  overflow-y: auto;
  border-radius: 16px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}

.account-menu .mini-avatar {
  flex-basis: 48px;
  width: 48px;
  height: 48px;
  background: linear-gradient(90deg, #36cdca 0%, #00dd95 100%);
  color: #fff;
  font-size: 20px;
  line-height: 28px;
}

.account-menu-identity {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.account-menu-summary .account-menu-identity > strong {
  color: var(--ink-title);
  font-size: 15px;
  font-weight: 750;
  line-height: 20px;
}

.menu-copy-button {
  display: flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
  min-height: 20px;
  gap: 6px;
  border-radius: 5px;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-align: left;
}

.menu-copy-button:hover {
  color: var(--ink-primary);
}

.menu-copy-button img {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.account-menu-chips {
  display: flex;
  align-items: center;
  min-height: 22px;
  margin-top: 3px;
  gap: 6px;
}

.account-menu-chips > span {
  display: inline-grid;
  min-width: 48px;
  height: 22px;
  padding: 0 8px;
  place-items: center;
  border-radius: 100px;
  background: var(--chip);
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
}

.account-menu-chips > span:first-child {
  background: rgba(0, 214, 144, 0.1);
  color: #008f62;
}

.account-menu > button {
  min-height: 48px;
  padding: 12px;
  gap: 12px;
  font-size: 14px;
  font-weight: 650;
  line-height: 20px;
}

.account-menu > button > img,
.account-menu > button .menu-item-icon,
.account-menu > button .menu-item-icon img {
  width: 20px;
  height: 20px;
  opacity: 0.6;
  object-fit: contain;
}

.account-menu-row-label {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.account-menu-icon {
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  opacity: 0.6;
}

.account-menu-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.account-menu .menu-separator {
  margin: 8px 4px;
}

.account-menu-logout {
  color: var(--ink-primary);
}

.account-menu > .account-menu-logout:hover,
.account-menu > .account-menu-logout:focus-visible {
  background: rgba(243, 81, 139, 0.08);
  color: #cf275f;
}

.menu-separator {
  height: 1px;
  margin: 2px 8px 6px;
  background: var(--line);
}

.selection-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink-quaternary);
  border-radius: 50%;
}

[role="menuitemradio"][aria-checked="true"] .selection-dot {
  border-color: var(--success);
  background: var(--success);
  box-shadow: inset 0 0 0 2px #fff;
}

@keyframes popover-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Account page */

.page-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  column-gap: var(--content-gap);
  width: 100%;
  margin-top: 24px;
}

.account-sidebar {
  width: var(--sidebar-width);
}

.account-nav {
  display: grid;
  width: 100%;
  gap: 0;
}

.account-nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  height: 48px;
  overflow: hidden;
  color: var(--ink-secondary);
  font-size: 14px;
  border-radius: 0 8px 8px 0;
  font-weight: 600;
  line-height: 20px;
  text-align: left;
  transition: background-color 130ms ease, color 130ms ease;
}

.account-nav-item:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-primary);
}

.account-nav-item:active {
  background: var(--selected);
}

.account-nav-item.is-current {
  background: #fff;
  color: var(--ink-primary);
  font-weight: 600;
}

.nav-indicator {
  width: 8px;
  height: 48px;
  background: transparent;
}

.account-nav-item.is-current .nav-indicator {
  background: var(--success-secondary);
}

.nav-item-content {
  display: flex;
  align-items: center;
  min-width: 0;
  padding-left: 16px;
  gap: 8px;
}

.nav-icon {
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
}

.nav-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

#main-content {
  width: 100%;
  max-width: 1440px;
  min-width: 0;
  padding: 0;
  justify-self: center;
}

#main-content > h1 {
  margin: 0 0 40px;
  color: var(--ink-title);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 36px;
}

.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  gap: 24px;
}

.overview-primary,
.overview-aside {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 24px;
}

.overview-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 944px) minmax(0, 472px);
  min-width: 0;
  gap: 24px;
}

.profile-summary {
  display: flex;
  align-items: center;
  width: 100%;
  height: 160px;
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: var(--radius-card);
  background: #fff;
}

.profile-summary.profile-hero {
  align-items: center;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.015);
}

.avatar {
  display: grid;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(90deg, #36cdca 0%, #00dd95 100%);
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.9px;
  line-height: 38px;
}

.profile-hero-identity {
  display: grid;
  align-content: center;
  min-width: 0;
  margin-left: 20px;
  gap: 6px;
}

.profile-hero-identity strong {
  overflow: hidden;
  color: var(--ink-title);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 40px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-hero .copy-button {
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}

.profile-hero .copy-button:hover {
  color: var(--ink-title);
}

.profile-hero .copy-icon {
  opacity: 0.6;
}

.profile-hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(136px, 1fr));
  align-items: center;
  min-width: 320px;
  margin-left: auto;
  margin-right: 40px;
  gap: 36px;
}

.profile-hero-fact {
  display: grid;
  min-width: 0;
  padding: 8px 10px;
  gap: 3px;
  border-radius: 10px;
  text-align: left;
  transition: background-color 140ms ease, transform 140ms ease;
}

.profile-hero-fact:hover,
.profile-hero-fact:focus-visible {
  background: var(--surface-muted);
}

.profile-hero-fact:active {
  transform: translateY(1px);
}

.profile-hero-fact-label {
  color: var(--ink-tertiary);
  font-size: 12px;
  font-weight: 550;
  line-height: 18px;
}

.profile-hero-fact-value {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  color: var(--ink-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
}

.profile-hero-fact-value img {
  width: 14px;
  height: 14px;
  opacity: 0.45;
  transform: rotate(-90deg);
}

.profile-action-button {
  display: inline-grid;
  flex: 0 0 auto;
  min-width: 120px;
  height: 42px;
  margin-left: 0;
  padding: 0 20px;
  place-items: center;
  border-radius: 22px;
  background: var(--ink-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  line-height: 20px;
  transition: background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.profile-action-button:hover {
  background: #000;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.profile-action-button:active {
  transform: translateY(1px) scale(0.985);
}

.field-label {
  display: block;
  color: var(--ink-tertiary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.asset-summary-card {
  display: grid;
  grid-template-areas:
    "total metrics"
    "actions actions";
  grid-template-columns: minmax(360px, 1fr) minmax(260px, 0.72fr);
  grid-template-rows: minmax(0, 1fr) 64px;
  align-items: center;
  width: 100%;
  height: 260px;
  margin-top: 0;
  padding: 32px;
  column-gap: 48px;
  border: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.015);
}

.asset-total {
  display: grid;
  grid-area: total;
  align-content: center;
  min-width: 0;
  gap: 8px;
}

.asset-total p {
  margin: 0;
  color: rgba(0, 0, 0, 0.5);
  font-size: 14px;
  font-weight: 550;
  line-height: 20px;
}

.asset-total-value-row {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 8px;
}

.asset-total-value-row > strong {
  color: var(--ink-title);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 44px;
  white-space: nowrap;
}

.asset-currency-control {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  align-self: baseline;
  height: 38px;
}

.asset-currency-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 38px;
  padding: 0 11px 0 13px;
  gap: 7px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 20px;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.asset-currency-trigger:hover,
.asset-currency-trigger[aria-expanded="true"] {
  background-color: var(--surface-hover);
  border-color: var(--border-strong);
  color: var(--ink-title);
}

.asset-currency-trigger:active {
  transform: translateY(1px) scale(0.985);
}

.asset-currency-trigger:focus-visible {
  border-color: var(--focus);
  background-color: #fff;
  color: var(--ink-title);
  box-shadow: 0 0 0 3px rgba(95, 154, 255, 0.15);
}

.asset-currency-chevron {
  display: grid;
  width: 12px;
  height: 12px;
  place-items: center;
  opacity: 0.55;
  transition: transform 150ms ease;
}

.asset-currency-trigger[aria-expanded="true"] .asset-currency-chevron {
  transform: rotate(180deg);
}

.asset-currency-menu {
  top: calc(100% + 8px);
  right: 0;
  width: 136px;
  padding: 6px;
  border-radius: 12px;
  transform-origin: top right;
}

.asset-currency-menu > .asset-currency-option {
  min-height: 40px;
  padding: 9px 10px 9px 12px;
  border-radius: 8px;
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.asset-currency-menu > .asset-currency-option:hover,
.asset-currency-menu > .asset-currency-option:focus-visible {
  background: var(--surface-hover);
  color: var(--ink-title);
}

.asset-currency-menu > .asset-currency-option[aria-checked="true"] {
  background: rgba(0, 214, 144, 0.09);
  color: var(--ink-title);
}

.asset-currency-check {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
}

.asset-currency-check::after {
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  content: "";
  opacity: 0;
  transform: translateY(-1px) rotate(45deg) scale(0.8);
  transition: opacity 120ms ease, transform 120ms ease;
}

.asset-currency-option[aria-checked="true"] .asset-currency-check::after {
  opacity: 1;
  transform: translateY(-1px) rotate(45deg) scale(1);
}

@media (forced-colors: active) {
  .asset-currency-trigger {
    border-color: ButtonText;
  }

  .asset-currency-option[aria-checked="true"] .asset-currency-check::after {
    border-color: Highlight;
  }
}

.asset-metrics {
  display: grid;
  grid-area: metrics;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  min-width: 0;
  margin: 0;
  padding: 2px 0 2px 40px;
  gap: 40px;
  border-left: 1px solid var(--line);
}

.asset-metrics > div {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.asset-metrics dt,
.asset-metrics dd {
  margin: 0;
}

.asset-metrics dt {
  color: rgba(0, 0, 0, 0.5);
  font-size: 13px;
  font-weight: 550;
  line-height: 18px;
}

.asset-metrics dd {
  color: var(--ink-primary);
  font-size: 17px;
  font-weight: 750;
  line-height: 24px;
  white-space: nowrap;
}

.asset-metrics .positive-value {
  color: #008f62;
}

.asset-actions {
  display: flex;
  grid-area: actions;
  align-items: flex-end;
  justify-content: flex-start;
  min-width: max-content;
  height: 64px;
  padding-top: 20px;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.primary-action,
.secondary-action,
.asset-primary-button,
.asset-secondary-button {
  display: inline-grid;
  min-width: 112px;
  height: 44px;
  padding: 0 22px;
  place-items: center;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 750;
  line-height: 20px;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.primary-action,
.asset-primary-button {
  background: var(--ink-primary);
  color: #fff;
}

.primary-action:hover,
.asset-primary-button:hover {
  background: #000;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.secondary-action,
.asset-secondary-button {
  background: var(--selected);
  color: var(--ink-primary);
}

.secondary-action:hover,
.asset-secondary-button:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--ink-title);
}

.primary-action:active,
.secondary-action:active,
.asset-primary-button:active,
.asset-secondary-button:active {
  transform: translateY(1px) scale(0.985);
}

.get-started-card {
  display: grid;
  width: 100%;
  margin-top: 0;
  padding: 24px 28px 28px;
  gap: 24px;
  border: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.015);
}

.get-started-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  gap: 24px;
}

.get-started-heading > div {
  display: grid;
  gap: 4px;
}

.get-started-heading h2,
.get-started-heading p {
  margin: 0;
}

.get-started-heading h2 {
  color: var(--ink-title);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 30px;
}

.get-started-heading p {
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 550;
  line-height: 20px;
}

.get-started-progress {
  display: inline-grid;
  min-height: 28px;
  padding: 4px 11px;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 214, 144, 0.09);
  color: #007d57;
  font-size: 12px;
  font-weight: 750;
  line-height: 20px;
  white-space: nowrap;
}

.onboarding-steps {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 0.82fr) minmax(0, 1.36fr);
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 16px;
  list-style: none;
}

.onboarding-step {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  min-width: 0;
  min-height: 170px;
  padding: 16px;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: #fff;
}

.onboarding-step.is-complete {
  background: rgba(0, 214, 144, 0.025);
}

.onboarding-step-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 20px;
}

.onboarding-step.is-complete .onboarding-step-number {
  background: rgba(0, 214, 144, 0.14);
  color: #008f62;
}

.onboarding-step-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.onboarding-step-label {
  color: var(--ink-tertiary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 16px;
  text-transform: uppercase;
}

.onboarding-step-copy strong {
  color: var(--ink-title);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 22px;
}

.onboarding-step-status {
  color: var(--ink-tertiary);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.onboarding-step.is-complete .onboarding-step-status {
  color: #008f62;
}

.onboarding-complete-action {
  display: inline-flex;
  grid-column: 2;
  align-self: end;
  justify-self: start;
  align-items: center;
  min-height: 38px;
  gap: 8px;
  color: #008f62;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}

.onboarding-status-check {
  position: relative;
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #00d690;
}

.onboarding-status-check::after {
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  content: "";
  transform: translateY(-1px) rotate(45deg);
}

.onboarding-step.is-pending {
  grid-template-columns: 36px minmax(150px, 1fr) 180px;
  grid-template-rows: minmax(72px, 1fr) auto;
  border-color: rgba(0, 143, 98, 0.22);
  background: #fff;
}

.onboarding-step.is-pending .onboarding-step-number {
  grid-row: 1 / 3;
}

.onboarding-step.is-pending .onboarding-step-copy {
  grid-column: 2;
}

.onboarding-trade-illustration {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: end;
  width: 180px;
  height: 168px;
  object-fit: contain;
}

.onboarding-trade-button {
  grid-column: 2;
  align-self: end;
  justify-self: start;
  min-width: 92px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.copy-button,
.verification-value,
.daily-limit-value,
.limit-label {
  display: flex;
  align-items: center;
}

.copy-button {
  width: max-content;
  min-height: 20px;
  gap: 4px;
  text-align: left;
}

.copy-button:hover strong {
  color: #000;
}

.copy-button:active .copy-icon {
  transform: scale(0.9);
}

.copy-icon {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  transition: transform 120ms ease;
}

.copy-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.verification-value {
  min-height: 20px;
  gap: 4px;
}

.tier-chip {
  display: inline-grid;
  min-width: 50px;
  height: 22px;
  padding: 0 8px;
  place-items: center;
  border-radius: 100px;
  background: var(--chip);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}

.security-summary-card,
.limits-summary-card {
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.015);
}

.security-summary-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 132px;
  padding: 24px;
  gap: 24px;
}

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

.summary-card-icon {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 214, 144, 0.09);
}

.summary-card-icon img {
  width: 24px;
  height: 24px;
  opacity: 0.8;
  object-fit: contain;
}

.summary-card-heading > div {
  min-width: 0;
}

.summary-card-heading h2,
.summary-card-heading p {
  margin: 0;
}

.summary-card-heading h2 {
  overflow: hidden;
  color: var(--ink-title);
  font-size: 18px;
  font-weight: 800;
  line-height: 26px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-card-heading p {
  margin-top: 2px;
  color: var(--ink-tertiary);
  font-size: 13px;
  font-weight: 550;
  line-height: 18px;
}

.summary-card-link {
  display: inline-grid;
  flex: 0 0 auto;
  align-self: center;
  align-items: center;
  min-width: 96px;
  height: 40px;
  margin-left: 0;
  padding: 0 18px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--ink-primary);
  font-size: 14px;
  font-weight: 750;
  line-height: 20px;
  transition: background-color 130ms ease, color 130ms ease, transform 130ms ease;
}

.summary-card-link:hover {
  background: var(--selected);
  color: #000;
}

.summary-card-link:active {
  transform: translateY(1px);
}

.limits-summary-card {
  display: grid;
  grid-template-rows: 40px minmax(0, 1fr);
  height: 268px;
  padding: 24px;
  gap: 12px;
}

.summary-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  height: 40px;
  gap: 16px;
}

.summary-card-title-row h2 {
  margin: 0;
  overflow: hidden;
  color: var(--ink-title);
  font-size: 18px;
  font-weight: 800;
  line-height: 26px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-card-title-row .gear-button {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
  margin-left: 0;
}

.summary-card-title-row .gear-button img {
  width: 16px;
  height: 16px;
}

.action-card-list {
  display: grid;
  gap: 24px;
}

.action-card {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 108px;
  align-items: center;
  width: 100%;
  height: 100px;
  padding: 24px;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.action-card:hover {
  border-color: rgba(0, 0, 0, 0.09);
  box-shadow: 0 10px 30px rgba(15, 20, 29, 0.045);
}

.card-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
}

.card-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.action-card-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.action-card-copy h3,
.action-card-copy p {
  margin: 0;
}

.action-card-copy h3 {
  overflow: hidden;
  color: var(--ink-primary);
  font-size: 20px;
  font-weight: 800;
  line-height: 28px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-card-copy p {
  overflow: hidden;
  color: var(--ink-tertiary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-status {
  margin-left: 3px;
  font-weight: 700;
}

.status-low {
  color: var(--error);
}

.status-medium,
.status-completed {
  color: var(--success);
}

.outline-button {
  display: inline-grid;
  width: 108px;
  height: 40px;
  place-items: center;
  border: 2px solid var(--ink-primary);
  border-radius: 24px;
  background: #fff;
  color: var(--ink-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.outline-button:hover {
  background: var(--ink-primary);
  color: #fff;
}

.outline-button:active {
  transform: translateY(1px) scale(0.985);
}

.limits-card {
  display: grid;
  grid-template-rows: 40px 40px 40px 48px;
  width: 100%;
  height: 168px;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.limit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  height: auto;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  color: rgba(0, 0, 0, 0.5);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

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

.limit-row > :last-child {
  flex: 0 0 auto;
  color: var(--ink-primary);
  font-weight: 650;
  text-align: right;
}

.limit-row strong {
  color: var(--ink-primary);
  font-weight: 700;
}

.limit-row-stacked {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.limit-row-stacked > :last-child {
  text-align: right;
}

.limit-label {
  position: relative;
  min-width: 0;
  gap: 6px;
}

.info-button,
.gear-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
}

.info-button {
  width: 18px;
  height: 18px;
}

.info-button:hover,
.info-button:focus-visible,
.gear-button:hover,
.gear-button:focus-visible {
  background: var(--selected);
}

.info-button img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.daily-limit-value {
  gap: 3px;
  font-size: 12px;
  white-space: nowrap;
}

.daily-limit-used {
  color: var(--ink-primary);
  font-weight: 700;
}

.limit-currency {
  margin-left: 4px;
  color: var(--ink-secondary);
}

.gear-button {
  width: 20px;
  height: 20px;
  margin-left: 5px;
}

.gear-button img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.tooltip {
  position: absolute;
  z-index: 35;
  bottom: calc(100% + 10px);
  left: -12px;
  width: 272px;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(18, 20, 23, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  color: #fff;
  font-size: 12px;
  font-weight: 550;
  line-height: 18px;
  text-align: left;
  white-space: normal;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 130ms ease, transform 130ms ease, visibility 130ms ease;
}

.tooltip::after {
  position: absolute;
  top: 100%;
  left: 58px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-top-color: rgba(18, 20, 23, 0.96);
  content: "";
}

.limit-label:hover .tooltip,
.info-button:focus-visible + .tooltip,
.info-button[aria-expanded="true"] + .tooltip,
.tooltip.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Dialog and generated interface content */

.dialog-layer {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.dialog-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 12, 16, 0.44);
  cursor: default;
  backdrop-filter: blur(2px);
  animation: backdrop-in 180ms ease-out both;
}

.dialog-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(8, 13, 23, 0.22), 0 4px 14px rgba(8, 13, 23, 0.08);
  animation: dialog-in 210ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dialog-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 88px;
  padding: 24px 24px 18px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.dialog-kicker {
  display: block;
  min-height: 16px;
  margin-bottom: 3px;
  color: var(--success);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 16px;
  text-transform: uppercase;
}

.dialog-kicker:empty {
  display: none;
}

.dialog-header h2 {
  margin: 0;
  color: var(--ink-title);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 30px;
}

.dialog-close {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-secondary);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  transition: background-color 130ms ease, color 130ms ease, transform 130ms ease;
}

.dialog-close:hover {
  background: var(--selected);
  color: var(--ink-title);
}

.dialog-close:active {
  transform: rotate(5deg) scale(0.94);
}

.dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
  overscroll-behavior: contain;
}

.dialog-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  min-height: 80px;
  padding: 16px 24px 20px;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.dialog-actions:empty {
  display: none;
}

.form-stack {
  display: grid;
  gap: 20px;
}

.field-group {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.field-group > .field-label,
label.field-label {
  color: var(--ink-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.field-hint {
  margin: -2px 0 0;
  color: var(--ink-tertiary);
  font-size: 12px;
  line-height: 18px;
}

.field-error {
  min-height: 18px;
  margin: -2px 0 0;
  color: #d62d65;
  font-size: 12px;
  font-weight: 650;
  line-height: 18px;
}

.field-error:empty {
  display: none;
}

.text-input,
.select-input,
.field-group input[type="text"],
.field-group input[type="number"],
.field-group select {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  transition: border-color 130ms ease, box-shadow 130ms ease;
}

.select-input,
.field-group select {
  padding-right: 38px;
  background-image: url("assets/lucide-chevron-down.svg");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 20px 20px;
  appearance: none;
}

.text-input:hover,
.select-input:hover,
.field-group input:hover,
.field-group select:hover {
  border-color: rgba(0, 0, 0, 0.28);
}

.text-input:focus,
.select-input:focus,
.field-group input:focus,
.field-group select:focus {
  border-color: var(--focus);
  outline: none;
  box-shadow: 0 0 0 3px rgba(95, 154, 255, 0.15);
}

.text-input[aria-invalid="true"],
.select-input[aria-invalid="true"],
.field-group input[aria-invalid="true"],
.field-group select[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(243, 81, 139, 0.1);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 550;
  line-height: 20px;
  cursor: pointer;
}

.checkbox-field input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--success);
}

.checkbox-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.checkbox-title {
  color: var(--ink-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.checkbox-copy .field-hint {
  margin: 0;
}

.dialog-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 214, 144, 0.16);
  border-radius: 10px;
  background: rgba(0, 214, 144, 0.055);
  color: var(--ink-secondary);
  font-size: 12px;
  line-height: 18px;
}

.dialog-note-warning {
  border-color: rgba(243, 81, 139, 0.15);
  background: rgba(243, 81, 139, 0.055);
}

.dialog-note-success {
  border-color: rgba(0, 214, 144, 0.18);
  background: rgba(0, 214, 144, 0.07);
}

.detail-list {
  display: grid;
  margin: 0;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 48px;
  padding: 13px 14px;
  gap: 20px;
  background: #fff;
  font-size: 13px;
  line-height: 20px;
}

.detail-row + .detail-row {
  border-top: 1px solid var(--line);
}

.detail-row > :first-child,
.detail-row dt {
  color: var(--ink-tertiary);
}

.detail-row > :last-child,
.detail-row dd {
  margin: 0;
  color: var(--ink-primary);
  font-weight: 700;
  text-align: right;
}

.history-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 66px;
  padding: 12px 14px;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.history-item strong {
  display: block;
  color: var(--ink-primary);
  font-size: 14px;
  font-weight: 750;
  line-height: 20px;
}

.history-item small {
  display: block;
  margin-top: 3px;
  color: var(--ink-tertiary);
  font-size: 11px;
  line-height: 16px;
}

.history-item > :last-child {
  color: #008f62;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.history-meta {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.history-date {
  color: var(--ink-tertiary);
  font-size: 11px;
  font-weight: 550;
  line-height: 16px;
}

.confirmation-state,
.empty-state {
  display: grid;
  justify-items: center;
  padding: 18px 6px;
  gap: 10px;
  color: var(--ink-secondary);
  text-align: center;
}

.confirmation-badge {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 214, 144, 0.12);
  color: #008f62;
  font-size: 23px;
  font-weight: 800;
}

.confirmation-state h3,
.empty-state h3 {
  margin: 2px 0 0;
  color: var(--ink-title);
  font-size: 18px;
  font-weight: 800;
  line-height: 26px;
}

.confirmation-state p,
.empty-state p {
  max-width: 380px;
  margin: 0;
  font-size: 13px;
  line-height: 20px;
}

.confirmation-message {
  margin: 0;
}

.empty-state {
  min-height: 150px;
  margin: 0;
  place-content: center;
}

.code-input {
  letter-spacing: 0.34em;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.primary-button,
.secondary-button,
.danger-button {
  position: relative;
  display: inline-grid;
  min-width: 104px;
  height: 42px;
  padding: 0 18px;
  place-items: center;
  border: 1.5px solid transparent;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 750;
  line-height: 20px;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.primary-button {
  background: var(--ink-primary);
  color: #fff;
}

.primary-button:hover {
  background: #000;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.14);
}

.secondary-button {
  border-color: rgba(0, 0, 0, 0.18);
  background: #fff;
  color: var(--ink-primary);
}

.secondary-button:hover {
  border-color: rgba(0, 0, 0, 0.38);
  background: var(--selected);
}

.danger-button {
  background: var(--error);
  color: #fff;
}

.danger-button:hover {
  background: #df386f;
  box-shadow: 0 7px 20px rgba(243, 81, 139, 0.2);
}

.primary-button:active,
.secondary-button:active,
.danger-button:active {
  transform: translateY(1px) scale(0.985);
}

button[aria-busy="true"] {
  color: transparent !important;
  pointer-events: none;
}

button[aria-busy="true"]::after {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  color: #fff;
  content: "";
  animation: spin 650ms linear infinite;
}

/* Unified account workspace */

#page-title:focus-visible {
  outline: none;
}

.account-view {
  width: 100%;
  min-width: 0;
  padding-bottom: 64px;
}

.account-view.is-active {
  animation: account-view-in 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.account-view:not([data-account-view="overview"]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.account-view:not([data-account-view="overview"]) > .account-section,
.account-view > .profile-page-hero {
  align-self: start;
  width: 100%;
  min-width: 0;
  padding: var(--section-padding);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.account-view:not([data-account-view="overview"]) > .account-hero {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  min-height: 160px;
  padding: var(--hero-padding);
  gap: 20px;
  background:
    linear-gradient(112deg, #fff 0%, #fff 76%, rgba(0, 214, 144, 0.055) 100%);
}

.account-hero-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.account-hero-copy h2,
.account-hero-copy p {
  margin: 0;
}

.account-hero-copy h2 {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: var(--ink-title);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 36px;
}

.account-hero-copy p {
  max-width: 760px;
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.account-hero-copy .copy-button {
  margin-top: 2px;
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.account-hero-copy .copy-button:hover {
  color: var(--ink-title);
}

.hero-label {
  color: var(--ink-tertiary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.055em;
  line-height: 18px;
  text-transform: uppercase;
}

.account-hero > .button,
.account-hero > .status-badge {
  flex: 0 0 auto;
  margin-left: auto;
}

.avatar-large {
  flex-basis: 80px;
  width: 80px;
  height: 80px;
  font-size: 34px;
  line-height: 42px;
}

.account-hero-icon,
.empty-state-icon,
.account-note-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
}

.account-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--surface-muted);
}

.account-hero-icon img {
  width: 32px;
  height: 32px;
  opacity: 0.72;
  object-fit: contain;
}

.status-icon-success {
  background: rgba(0, 214, 144, 0.1);
}

.preferences-hero .account-hero-icon {
  background: rgba(169, 52, 252, 0.075);
}

.account-view:not([data-account-view="overview"]) .section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  margin-bottom: 12px;
  gap: 24px;
}

.account-view:not([data-account-view="overview"]) .section-heading-row > div {
  min-width: 0;
}

.account-view:not([data-account-view="overview"]) .section-heading-row h2,
.account-view:not([data-account-view="overview"]) .section-heading-row p {
  margin: 0;
}

.account-view:not([data-account-view="overview"]) .section-heading-row h2 {
  color: var(--ink-title);
  font-size: 18px;
  font-weight: 800;
  line-height: 26px;
}

.account-view:not([data-account-view="overview"]) .section-heading-row p {
  margin-top: 3px;
  color: var(--ink-tertiary);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.account-view:not([data-account-view="overview"]) .detail-list {
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.account-view:not([data-account-view="overview"]) .detail-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 64px;
  padding: 12px 0;
  gap: 24px;
  border-top: 1px solid var(--line);
  background: transparent;
}

.account-view:not([data-account-view="overview"]) .detail-row + .detail-row {
  border-top: 1px solid var(--line);
}

.detail-copy {
  display: grid;
  justify-self: stretch;
  min-width: 0;
  gap: 3px;
  color: var(--ink-primary);
  font-weight: 500;
  text-align: left;
}

.account-view:not([data-account-view="overview"]) .detail-copy dt,
.account-view:not([data-account-view="overview"]) .detail-copy dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-view:not([data-account-view="overview"]) .detail-copy dt {
  color: var(--ink-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.account-view:not([data-account-view="overview"]) .detail-copy dd {
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 550;
  line-height: 18px;
}

.account-view:not([data-account-view="overview"]) .detail-row > .button,
.account-view:not([data-account-view="overview"]) .detail-row > .status-badge {
  justify-self: end;
}

.account-view:not([data-account-view="overview"]) .detail-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-view:not([data-account-view="overview"]) .detail-list-grid > .detail-row:nth-child(odd) {
  padding-right: 24px;
}

.account-view:not([data-account-view="overview"]) .detail-list-grid > .detail-row:nth-child(even) {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.account-view:not([data-account-view="overview"]) .detail-list-grid > .detail-row:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  padding-right: 0;
}

.status-badge {
  display: inline-grid;
  width: max-content;
  min-width: 54px;
  height: 24px;
  padding: 0 10px;
  place-items: center;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 750;
  line-height: 18px;
  white-space: nowrap;
}

.status-success {
  background: rgba(0, 214, 144, 0.11);
  color: #00865c;
}

.status-warning {
  background: rgba(243, 81, 139, 0.1);
  color: #cf275f;
}

.status-neutral {
  background: var(--chip);
  color: var(--ink-secondary);
}

.button {
  position: relative;
  display: inline-grid;
  min-width: 92px;
  height: var(--control-height);
  padding: 0 18px;
  place-items: center;
  border: 1.5px solid transparent;
  border-radius: var(--radius-control);
  font-size: 13px;
  font-weight: 750;
  line-height: 20px;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.button-primary {
  background: var(--ink-primary);
  color: #fff;
}

.button-primary:hover {
  background: #000;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.14);
}

.button-secondary {
  background: var(--surface-muted);
  color: var(--ink-primary);
}

.button-secondary:hover {
  background: var(--surface-hover);
  color: var(--ink-title);
  box-shadow: none;
}

.button-text {
  width: max-content;
  min-width: 0;
  height: 32px;
  padding: 0;
  border-radius: 5px;
  color: var(--ink-primary);
}

.button-text:hover {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.button-primary:active,
.button-secondary:active,
.button-text:active {
  transform: translateY(1px) scale(0.985);
}

.asset-actions .button {
  min-width: 112px;
}

.account-view:not([data-account-view="overview"]) .empty-state {
  display: flex;
  align-items: center;
  justify-items: normal;
  min-height: 128px;
  margin: 16px 0 0;
  padding: 24px;
  gap: 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.016);
  color: var(--ink-secondary);
  text-align: left;
  place-content: normal;
}

.account-view:not([data-account-view="overview"]) .empty-state-large {
  min-height: 220px;
  margin-top: 16px;
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface-muted);
}

.empty-state-icon img {
  width: 26px;
  height: 26px;
  opacity: 0.62;
  object-fit: contain;
}

.account-view:not([data-account-view="overview"]) .empty-state h3,
.account-view:not([data-account-view="overview"]) .empty-state p {
  margin: 0;
  text-align: left;
}

.account-view:not([data-account-view="overview"]) .empty-state h3 {
  color: var(--ink-title);
  font-size: 16px;
  font-weight: 800;
  line-height: 24px;
}

.account-view:not([data-account-view="overview"]) .empty-state p {
  max-width: 520px;
  margin-top: 3px;
  color: var(--ink-secondary);
  font-size: 13px;
  line-height: 19px;
}

.account-view:not([data-account-view="overview"]) > .account-note {
  display: flex;
  align-items: flex-start;
  min-height: 112px;
  gap: 16px;
  border-color: rgba(0, 214, 144, 0.15);
  background: rgba(0, 214, 144, 0.045);
}

.account-note-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(0, 214, 144, 0.11);
}

.account-note-icon img {
  width: 24px;
  height: 24px;
  opacity: 0.75;
  object-fit: contain;
}

.account-note h2,
.account-note p {
  margin: 0;
}

.account-note h2 {
  color: var(--ink-title);
  font-size: 17px;
  font-weight: 800;
  line-height: 24px;
}

.account-note p {
  max-width: 520px;
  margin-top: 4px;
  color: var(--ink-secondary);
  font-size: 13px;
  line-height: 19px;
}

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

/* Toasts */

.toast-region {
  position: fixed;
  z-index: 300;
  right: 28px;
  bottom: 28px;
  display: grid;
  justify-items: end;
  width: min(360px, calc(100vw - 32px));
  gap: 10px;
  pointer-events: none;
}

.toast-region:empty {
  display: none;
}

.toast,
.toast-region > * {
  width: max-content;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(19, 22, 26, 0.96);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  line-height: 20px;
  opacity: 0;
  pointer-events: auto;
  transform: translateY(10px) scale(0.98);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.toast-success,
.toast.is-success,
.toast[data-tone="success"] {
  border-left: 4px solid var(--success);
}

.toast-error,
.toast.is-error,
.toast[data-tone="error"] {
  border-left: 4px solid var(--error);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(5px) scale(0.98);
  }
}

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

/* Fluid desktop range */

@media (max-width: 1751px) {
  .page-shell {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }

  #main-content {
    padding-right: 24px;
  }

  .asset-summary-card {
    grid-template-areas:
      "total"
      "metrics"
      "actions";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 56px;
    padding: 24px 28px;
    gap: 12px;
  }

  .asset-total {
    gap: 4px;
  }

  .asset-total-value-row > strong {
    font-size: 30px;
    line-height: 38px;
  }

  .asset-metrics {
    padding: 0;
    gap: 24px;
    border-left: 0;
  }

  .asset-metrics dd {
    font-size: 15px;
    line-height: 21px;
  }

  .asset-actions {
    height: 56px;
    padding-top: 12px;
  }

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

  .account-meta {
    padding-left: clamp(28px, 2.5vw, 48px);
    gap: clamp(24px, 3.75vw, 72px);
  }
}

@media (max-width: 1380px) {
  .header-inner {
    gap: 24px;
  }

  .header-left {
    gap: 32px;
  }

  .primary-nav,
  .header-actions {
    gap: 20px;
  }

  .profile-identity {
    flex-basis: 240px;
    gap: 16px;
  }

  .account-meta {
    padding-left: 28px;
    gap: clamp(18px, 2vw, 32px);
  }
}

/* Single-column dashboard */

@media (max-width: 1100px) {
  .header-inner {
    padding-inline: 24px;
  }

  .header-left {
    gap: 24px;
  }

  .primary-nav,
  .header-actions {
    gap: 16px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .profile-identity {
    flex-basis: 220px;
    gap: 16px;
  }

  .account-meta {
    padding-left: 20px;
    gap: 12px;
  }

  .action-card,
  .limits-card {
    max-width: 708px;
  }
}

@media (max-width: 1000px) and (min-width: 761px) {
  .primary-nav button:nth-child(3) {
    display: none;
  }

  .profile-summary {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 20px;
    gap: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
  }

  .profile-identity {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    padding: 0 0 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .avatar {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    font-size: 20px;
  }

  .account-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    gap: 18px 24px;
  }
}

/* Compact navigation and mobile content */

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    z-index: 60;
  }

  .header-inner {
    justify-content: flex-start;
    padding: 0 16px;
    gap: 28px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .header-inner::-webkit-scrollbar,
  .account-nav::-webkit-scrollbar {
    display: none;
  }

  .header-left,
  .header-actions {
    gap: 18px;
  }

  .primary-nav {
    gap: 18px;
  }

  .primary-nav button:nth-child(3) {
    display: flex;
  }

  .brand-button,
  .brand-mark {
    flex: 0 0 72px;
  }

  .header-actions {
    padding-right: 4px;
  }

  .popover-menu {
    position: fixed;
    top: 60px;
    right: 16px;
    left: auto;
    max-width: calc(100vw - 32px);
    transform-origin: top right;
  }

  .page-shell {
    display: block;
    margin-top: 16px;
  }

  .account-sidebar {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .account-nav {
    display: flex;
    width: 100%;
    padding: 0 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .account-nav-item {
    flex: 0 0 auto;
    grid-template-columns: 1fr;
    width: auto;
    min-width: max-content;
    height: 48px;
    padding: 0 14px;
    overflow: visible;
    border-radius: 0;
  }

  .account-nav-item.is-current {
    background: transparent;
  }

  .nav-indicator {
    position: absolute;
    right: 10px;
    bottom: 0;
    left: 10px;
    width: auto;
    height: 3px;
    border-radius: 3px 3px 0 0;
  }

  .nav-item-content {
    padding: 0;
    gap: 9px;
  }

  .nav-icon,
  .nav-icon img {
    width: 18px;
    height: 18px;
  }

  #main-content {
    max-width: none;
    padding: 24px 16px 56px;
  }

  #main-content > h1 {
    margin-bottom: 28px;
    font-size: 24px;
    line-height: 32px;
  }

  .profile-summary {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 20px;
    gap: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
  }

  .profile-identity {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    padding: 0 0 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .avatar {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    font-size: 20px;
    line-height: 28px;
  }

  .account-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    gap: 20px 24px;
  }

  .dashboard-grid {
    margin-top: 36px;
    gap: 36px;
  }

  .dashboard-section > h2 {
    margin-bottom: 18px;
    font-size: 21px;
    line-height: 29px;
  }

  .action-card-list {
    gap: 14px;
  }

  .action-card {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    height: auto;
    min-height: 100px;
    padding: 18px;
    gap: 13px;
  }

  .outline-button {
    width: auto;
    min-width: 82px;
    padding: 0 16px;
  }

  .limits-card {
    height: auto;
    min-height: 192px;
    padding: 24px;
  }

  .limit-row {
    height: auto;
    min-height: 20px;
  }

  .tooltip {
    right: auto;
    bottom: calc(100% + 10px);
    left: 0;
    width: min(272px, calc(100vw - 64px));
    transform: translateY(4px);
  }

  .tooltip::after {
    display: none;
  }

  .dialog-layer {
    padding: 16px;
  }

  .dialog-panel {
    max-height: calc(100vh - 32px);
    border-radius: 16px;
  }

  .dialog-header {
    min-height: 78px;
    padding: 20px 20px 16px;
  }

  .dialog-body {
    padding: 20px;
  }

  .dialog-actions {
    min-height: 74px;
    padding: 14px 20px 18px;
  }

  .toast-region {
    right: 16px;
    bottom: 16px;
  }
}

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

  .action-card {
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 16px;
  }

  .card-icon {
    width: 24px;
    height: 24px;
  }

  .outline-button {
    grid-column: 2;
    justify-self: start;
    width: auto;
    min-width: 96px;
    height: 36px;
    margin-top: 5px;
  }

  .action-card-copy h3,
  .action-card-copy p {
    white-space: normal;
  }

  .limits-card {
    padding: 20px;
    gap: 18px;
  }

  .limit-row {
    align-items: flex-start;
    gap: 16px;
  }

  .daily-limit-value {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 172px;
  }

  .limit-currency {
    margin-left: 0;
  }

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

  .dialog-actions > button {
    width: 100%;
    min-width: 0;
  }

  .dialog-actions > button:only-child {
    grid-column: 1 / -1;
  }

  .detail-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .detail-row > :last-child,
  .detail-row dd {
    text-align: left;
  }
}

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