/* =========================================================================
   Nocturne — premium crypto wallet UI
   Standalone stylesheet (no Tailwind, no framework).
   Mirrors the design system of the React implementation 1:1.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --radius: 0.875rem;

  --background: oklch(0.155 0.008 260);
  --foreground: oklch(0.965 0.004 250);

  --card: oklch(0.196 0.009 260);
  --card-foreground: oklch(0.965 0.004 250);
  --elevated: oklch(0.232 0.01 260);

  --popover: oklch(0.196 0.009 260);
  --popover-foreground: oklch(0.965 0.004 250);

  --primary: oklch(0.72 0.115 232);
  --primary-foreground: oklch(0.16 0.01 260);

  --secondary: oklch(0.245 0.01 260);
  --secondary-foreground: oklch(0.94 0.004 250);

  --muted: oklch(0.245 0.01 260);
  --muted-foreground: oklch(0.68 0.012 258);

  --accent: oklch(0.26 0.012 260);
  --accent-foreground: oklch(0.96 0.004 250);

  --destructive: oklch(0.63 0.17 22);
  --destructive-foreground: oklch(0.97 0.005 250);

  --border: oklch(1 0 0 / 8%);
  --hairline: oklch(1 0 0 / 6%);
  --input: oklch(1 0 0 / 10%);
  --ring: oklch(0.72 0.115 232 / 60%);

  --positive: oklch(0.75 0.145 162);
  --negative: oklch(0.68 0.155 22);
  --info: oklch(0.72 0.115 232);
  --violet: oklch(0.7 0.12 300);
  --warning: oklch(0.79 0.13 78);
  --gold: oklch(0.79 0.095 88);
  --risk-conservative: oklch(0.74 0.115 162);
  --risk-balanced: oklch(0.79 0.105 88);
  --risk-growth: oklch(0.74 0.125 58);
  --risk-aggressive: oklch(0.68 0.135 25);
  --silver: oklch(0.82 0.008 250);

  --asset-usdt: oklch(0.75 0.145 162);
  --asset-btc: oklch(0.76 0.145 62);
  --asset-eth: oklch(0.72 0.09 268);
  --asset-bnb: oklch(0.82 0.13 92);
  --asset-sol: oklch(0.74 0.13 190);
  --asset-doge: oklch(0.8 0.1 96);

  --sidebar: oklch(0.178 0.009 260);

  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --shadow-card: 0 1px 0 0 oklch(1 0 0 / 4%) inset, 0 18px 40px -24px oklch(0 0 0 / 80%);
  --shadow-raise: 0 1px 0 0 oklch(1 0 0 / 6%) inset, 0 28px 60px -28px oklch(0 0 0 / 90%);
  --shadow-hero: 0 1px 0 0 oklch(1 0 0 / 8%) inset, 0 40px 80px -36px oklch(0 0 0 / 95%);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

* {
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  font-feature-settings: "ss01", "cv01";
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

svg.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

ul {
  list-style: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* ---------- Shared helpers ---------- */
.surface {
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--card) 96%, white 4%),
    var(--card) 55%,
    color-mix(in oklab, var(--card) 92%, black 8%)
  );
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}

.surface-glass {
  background: color-mix(in oklab, var(--card) 72%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--hairline);
}

.metal-edge {
  background: linear-gradient(
    120deg,
    oklch(1 0 0 / 16%),
    oklch(1 0 0 / 2%) 38%,
    oklch(1 0 0 / 10%) 62%,
    oklch(1 0 0 / 2%)
  );
}

.press {
  transition:
    transform 180ms var(--ease),
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 220ms ease;
}
.press:active {
  transform: scale(0.97);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: var(--font-mono);
}

.muted {
  color: var(--muted-foreground);
}

.positive {
  color: var(--positive);
}
.negative {
  color: var(--negative);
}
.warning-text {
  color: var(--warning);
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.no-scrollbar {
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.divider-list > * + * {
  border-top: 1px solid var(--hairline);
}

.privacy-blur {
  display: inline-block;
  padding-inline: 0.4rem;
  margin-inline: -0.4rem;
  filter: blur(5px);
  opacity: 0.9;
  user-select: none;
  pointer-events: none;
  transition: filter 240ms ease;
}

/* ---------- Animations ---------- */
@keyframes spark-draw {
  from {
    stroke-dashoffset: 240;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes ring-pop {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }
  60% {
    opacity: 1;
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes sheet-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spark {
  stroke-dasharray: 240;
  animation: spark-draw 900ms cubic-bezier(0.22, 0.7, 0.25, 1) forwards;
}
.animate-rise {
  animation: rise-in 320ms var(--ease) both;
}
.animate-pop {
  animation: ring-pop 420ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

/* ---------- App shell ---------- */
.offline-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.375rem 0 calc(0.375rem);
  padding-top: calc(0.375rem + env(safe-area-inset-top));
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--warning);
  background: color-mix(in oklab, var(--warning) 12%, transparent);
  backdrop-filter: blur(8px);
}
.offline-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.offline-bar .icon {
  width: 12px;
  height: 12px;
}

.shell {
  margin-inline: auto;
  display: flex;
  width: 100%;
  max-width: 64rem;
  gap: 1.5rem;
  padding-inline: 1rem;
  padding-bottom: 8rem;
}

.shell__main {
  min-width: 0;
  flex: 1;
}

/* Desktop rail */
.rail {
  display: none;
  position: sticky;
  top: 1.5rem;
  height: fit-content;
  width: 14rem;
  flex: none;
}
.rail__inner {
  border-radius: 1.5rem;
  padding: 0.5rem;
}
.rail a,
.rail button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1rem;
  padding: 0.625rem 0.75rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
  text-align: left;
}
.rail a:hover,
.rail button:hover {
  color: var(--foreground);
}
.rail .is-active {
  background: var(--secondary);
  color: var(--foreground);
}

@media (min-width: 768px) {
  .shell {
    padding-inline: 1.5rem;
    padding-bottom: 2.5rem;
  }
  .rail {
    display: block;
  }
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 -1rem 1rem;
  padding: env(safe-area-inset-top) 1rem 0;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--background) 80%, transparent);
  backdrop-filter: blur(20px);
}
@media (min-width: 768px) {
  .header {
    margin-inline: 0;
    border-bottom-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
  }
}
.header__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.75rem;
}
.header__brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}
.header__mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 0.75rem;
  box-shadow: inset 0 0 0 1px var(--border);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.header__name {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.header__qid {
  display: flex;
  align-items: center;
  gap: 0;
}
.header__qid-value {
  font-size: 11px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}
.header__copy {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  margin-left: -0.125rem;
  border-radius: 0.375rem;
  color: color-mix(in oklab, var(--muted-foreground) 70%, transparent);
}
.header__copy:hover {
  background: rgb(255 255 255 / 0.08);
  color: var(--foreground);
}
.header__copy .icon {
  width: 12px;
  height: 12px;
}
.header__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.375rem;
}
.header__action {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--secondary) 60%, transparent);
  color: var(--muted-foreground);
}
.header__action:hover {
  color: var(--foreground);
}
.header__action--hide-sm {
  display: none;
}
@media (min-width: 640px) {
  .header__action--hide-sm {
    display: grid;
  }
}
.header__action--avatar {
  background: var(--elevated);
  box-shadow: inset 0 0 0 1px var(--border);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--foreground);
}
.header__dot {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--positive);
  box-shadow: 0 0 0 2px var(--background);
}

/* ---------- Main account hero ---------- */
.hero {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 1.75rem;
  padding: 1.5rem;
  background:
    radial-gradient(
      120% 90% at 12% 0%,
      color-mix(in oklab, var(--info) 22%, transparent),
      transparent 58%
    ),
    radial-gradient(
      95% 85% at 100% 8%,
      color-mix(in oklab, var(--positive) 13%, transparent),
      transparent 60%
    ),
    linear-gradient(158deg, oklch(0.28 0.016 258), oklch(0.185 0.01 260) 62%, oklch(0.165 0.01 262));
  border: 1px solid oklch(1 0 0 / 10%);
  box-shadow: var(--shadow-hero);
}
@media (min-width: 640px) {
  .hero {
    padding: 1.75rem;
  }
}
.hero__ambient {
  pointer-events: none;
  position: absolute;
  inset: 0;
}
.hero__ambient i {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(48px);
}
.hero__ambient i:nth-child(1) {
  top: -6rem;
  right: -4rem;
  width: 16rem;
  height: 16rem;
  background: color-mix(in oklab, var(--primary) 10%, transparent);
}
.hero__ambient i:nth-child(2) {
  bottom: -7rem;
  left: -5rem;
  width: 16rem;
  height: 16rem;
  background: rgb(255 255 255 / 0.04);
}
.hero__ambient i:nth-child(3) {
  inset-inline: 0;
  top: 0;
  width: auto;
  height: 1px;
  filter: none;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.2), transparent);
}
.hero__body {
  position: relative;
}
.hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.hero__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.hero__eye {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.07);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  color: var(--muted-foreground);
}
.hero__eye:hover {
  color: var(--foreground);
}
.hero__eye .icon {
  width: 16px;
  height: 16px;
}
.hero__amount-row {
  display: flex;
  max-width: 100%;
  align-items: flex-end;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.hero__amount {
  min-width: 0;
  max-width: 100%;
  flex: 1;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: filter 300ms ease;
  /* Length-aware sizing: mirrors the React clamp() behaviour. */
  font-size: clamp(1.35rem, calc(78cqw / var(--len, 12) * 1.65), 3.25rem);
}
.hero__amount.is-hidden {
  filter: blur(10px);
  user-select: none;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.hero__change {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  padding: 0.25rem 0.625rem;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: color-mix(in oklab, var(--positive) 12%, transparent);
  color: var(--positive);
}
.hero__change .icon {
  width: 12px;
  height: 12px;
}
.hero__change.is-negative {
  background: color-mix(in oklab, var(--destructive) 12%, transparent);
  color: var(--destructive);
}
.hero__change.is-negative .icon {
  transform: rotate(90deg);
}

/* currency selector trigger */
.currency-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: underline dotted color-mix(in oklab, var(--muted-foreground) 50%, transparent);
  text-underline-offset: 4px;
}
.currency-trigger:hover {
  color: var(--foreground);
  text-decoration-color: color-mix(in oklab, var(--foreground) 60%, transparent);
}
.currency-trigger .icon {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

/* security status */
.security-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-foreground);
}
.security-trigger:hover {
  color: var(--foreground);
}
.security-trigger .icon {
  width: 14px;
  height: 14px;
  color: var(--positive);
}

/* ---------- Popovers ---------- */
.pop {
  position: relative;
}
.pop__panel {
  position: absolute;
  z-index: 60;
  margin-top: 0.5rem;
  border-radius: 1rem;
  border: 1px solid var(--hairline);
  background: var(--popover);
  box-shadow: var(--shadow-raise);
  animation: rise-in 160ms var(--ease) both;
}
.pop__panel[data-align="end"] {
  right: 0;
}
.pop__panel[data-align="start"] {
  left: 0;
}
.pop__panel--currency {
  width: 15rem;
  padding: 0.375rem;
  overflow: hidden;
}
.pop__panel--security {
  width: 17rem;
  padding: 0.875rem;
}
.pop__title {
  padding: 0.375rem 0.625rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.pop__option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.625rem;
  border-radius: 0.75rem;
  padding: 0.5rem 0.625rem;
  text-align: left;
}
.pop__option:hover {
  background: var(--secondary);
}
.pop__option-code {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.pop__option-name {
  display: block;
  font-size: 12px;
  color: var(--muted-foreground);
}
.pop__option .icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
}
.pop__note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.pop__note .icon {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--positive);
}

/* ---------- Quick actions ---------- */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  padding-inline: 0.25rem;
}
.quick-actions--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.quick-action {
  display: flex;
  min-height: 2.75rem;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.quick-action__glyph {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  border: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--secondary) 60%, transparent);
  transition: all 200ms ease;
}
.quick-action:hover .quick-action__glyph {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--primary) 40%, transparent);
  background: var(--elevated);
  box-shadow: var(--shadow-card);
}
.quick-action__glyph .icon {
  width: 19px;
  height: 19px;
}
.quick-action__label {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-foreground);
}
.quick-action:hover .quick-action__label {
  color: var(--foreground);
}

/* ---------- Sections ---------- */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
  padding-inline: 0.25rem;
}
.section-heading h2 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.card {
  overflow: hidden;
  border-radius: 1.5rem;
}

/* ---------- Asset rows / medallions ---------- */
.medallion {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  width: 2.5rem;
  height: 2.5rem;
}
.medallion::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.12), transparent);
  pointer-events: none;
}
.medallion img {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.45));
}
.medallion--sm {
  width: 2rem;
  height: 2rem;
}
.medallion--sm img {
  width: 1.25rem;
  height: 1.25rem;
}
.medallion--lg {
  width: 3rem;
  height: 3rem;
}
.medallion--lg img {
  width: 1.75rem;
  height: 1.75rem;
}

.asset-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: visible;
  padding: 0.875rem 1rem;
  transition: background-color 180ms ease;
}
.asset-row:hover {
  background: rgb(255 255 255 / 0.02);
}
.asset-row__info {
  min-width: 0;
  flex: 1;
}
.asset-row__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.asset-row__sub {
  font-size: 12px;
  color: var(--muted-foreground);
}
.asset-row__spark {
  display: none;
  flex: none;
}
@media (min-width: 640px) {
  .asset-row__spark {
    display: block;
  }
}
.asset-row__values {
  flex: none;
  overflow: visible;
  text-align: right;
}
.asset-row__amount {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.asset-row__fiat {
  font-size: 12px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}
.asset-row__delta {
  margin-left: 0.375rem;
  font-weight: 500;
}

/* Balance disclosure */
.disclosure {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--hairline);
  padding: 0.75rem 1rem;
}
.disclosure__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.05);
  padding: 0.375rem 1rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted-foreground);
  backdrop-filter: blur(4px);
  transition: all 200ms ease;
}
.disclosure__btn:hover {
  transform: translateY(-1px);
  background: rgb(255 255 255 / 0.09);
  color: var(--foreground);
  box-shadow: var(--shadow-raise);
}
.disclosure__btn .icon {
  width: 14px;
  height: 14px;
  transition: transform 400ms var(--ease);
}
.disclosure__btn[aria-expanded="true"] .icon {
  transform: rotate(-180deg);
}
.collapsible {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 500ms var(--ease),
    opacity 500ms var(--ease);
}
.collapsible.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.collapsible > div {
  overflow: hidden;
}
.collapsible .divider-list {
  border-top: 1px solid var(--hairline);
}

/* ---------- Daily trade ---------- */
.trade-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  transition: background-color 180ms ease;
}
.trade-row:hover {
  background: rgb(255 255 255 / 0.02);
}
.tile {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 0.75rem;
  box-shadow: inset 0 0 0 1px var(--border);
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
  width: 2.5rem;
  height: 2.5rem;
}
.trade-row__main {
  min-width: 0;
  flex: 1;
}
.trade-row__name {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.trade-row__amount {
  display: block;
  font-size: 12px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}
.trade-row__values {
  flex: none;
  text-align: right;
}
.trade-row__pct {
  display: block;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.trade-row__result {
  display: block;
  font-size: 12px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}
.trade-row > .icon:last-child {
  width: 16px;
  height: 16px;
  flex: none;
  color: color-mix(in oklab, var(--muted-foreground) 60%, transparent);
}

/* ---------- Earn ---------- */
.earn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.earn-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 1.5rem;
  padding: 0.875rem;
  transition: all 200ms ease;
}
.earn-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raise);
}
.earn-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.earn-card__top .tile {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
}
.earn-card__top .tile .icon {
  width: 16px;
  height: 16px;
}
.earn-card__arrow {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--muted-foreground);
}
.earn-card:hover .earn-card__arrow {
  color: var(--primary);
}
.earn-card__title {
  display: block;
  width: 100%;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Market rates ---------- */
.market {
  border-radius: 1.5rem;
  overflow: hidden;
  padding: 1rem;
}
.market__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.market__head h2 {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}
.market__head h2 .icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
}
.market__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--secondary) 70%, transparent);
  padding: 0.125rem 0.5rem;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted-foreground);
}
.market__categories {
  display: flex;
  gap: 0.25rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--secondary) 50%, transparent);
  padding: 0.25rem;
  margin-bottom: 0.5rem;
}
.market__category {
  flex: 1;
  border-radius: 999px;
  padding: 0.375rem 0.5rem;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-foreground);
}
.market__category:hover {
  color: var(--foreground);
}
.market__category.is-active {
  background: var(--elevated);
  color: var(--foreground);
  box-shadow: var(--shadow-raise);
}
.market__instruments {
  display: flex;
  gap: 0.375rem;
  overflow-x: auto;
  margin-inline: -0.25rem;
  padding: 0 0.25rem 0.125rem;
}
.market__chip {
  flex: none;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--secondary) 40%, transparent);
  padding: 0.375rem 0.75rem;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-foreground);
}
.market__chip:hover {
  color: var(--foreground);
}
.market__chip.is-active {
  border-color: color-mix(in oklab, var(--primary) 40%, transparent);
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: var(--foreground);
}
.market__quote {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}
.market__pair {
  font-size: 12px;
  color: var(--muted-foreground);
}
.market__price {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.market__range {
  margin-top: 0.25rem;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.market__range .muted {
  margin-left: 0.5rem;
}

/* ---------- Bottom navigation ---------- */
.bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
}
@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}
.bottom-nav__inner {
  margin: 0 0.75rem 0.75rem;
  border-radius: 1.75rem;
  padding: 0.5rem;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-raise);
}
.bottom-nav__items {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
}
.bottom-nav__item {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  border-radius: 1rem;
  padding-block: 0.375rem;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted-foreground);
}
.bottom-nav__item:hover,
.bottom-nav__item.is-active {
  color: var(--foreground);
}
.bottom-nav__item .icon {
  width: 20px;
  height: 20px;
}
.bottom-nav__home {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-top: -1.5rem;
}
.bottom-nav__home-glyph {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: var(--elevated);
  color: var(--foreground);
  transition: all 200ms ease;
}
.bottom-nav__home.is-active .bottom-nav__home-glyph {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 14px 34px -14px color-mix(in oklab, var(--primary) 85%, transparent);
}
.bottom-nav__home-glyph .icon {
  width: 22px;
  height: 22px;
}
.bottom-nav__home-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted-foreground);
}
.bottom-nav__home.is-active .bottom-nav__home-label {
  color: var(--foreground);
}

/* ---------- Side drawer ---------- */
.drawer-overlay,
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--background) 80%, transparent);
  backdrop-filter: blur(4px);
  animation: fade-in 200ms ease both;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 51;
  width: 90vw;
  max-width: 24rem;
  border-left: 1px solid var(--hairline);
  background: var(--sidebar);
  animation: drawer-in 300ms var(--ease) both;
}
@keyframes drawer-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
.drawer__scroll {
  height: 100%;
  overflow-y: auto;
  padding: calc(1.5rem + env(safe-area-inset-top)) 1rem calc(2rem + env(safe-area-inset-bottom));
}
.drawer__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--muted-foreground);
}
.drawer__profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1.5rem;
  padding: 1rem;
}
.drawer__avatar {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: none;
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px var(--border);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.drawer__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.drawer__qid {
  font-size: 12px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}
.drawer__status {
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 11px;
  color: var(--positive);
}
.drawer__status .icon {
  width: 12px;
  height: 12px;
}
.group-label {
  margin: 1.5rem 0 0.5rem;
  padding-inline: 0.25rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.menu-list > * + * {
  margin-top: 0.125rem;
}
.menu-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1rem;
  padding: 0.625rem 0.75rem;
  font-size: 14px;
  text-align: left;
  transition: background-color 180ms ease;
}
.menu-row:hover {
  background: color-mix(in oklab, var(--secondary) 70%, transparent);
}
.menu-row .icon {
  flex: none;
  color: var(--muted-foreground);
}
.menu-row__label {
  min-width: 0;
  flex: 1;
  font-weight: 500;
}
.menu-row__trailing {
  flex: none;
  font-size: 12px;
  color: var(--muted-foreground);
}
.menu-row--danger {
  color: var(--destructive);
}
.drawer__quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 0.5rem;
}
.drawer__quick button,
.drawer__quick a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1rem;
  padding-block: 0.875rem;
  font-size: 11px;
  font-weight: 500;
}
.network-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin-top: 1.5rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12);
  backdrop-filter: blur(4px);
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  transition: all 200ms ease;
}
.network-button:hover {
  background: color-mix(in oklab, var(--primary) 20%, transparent);
}
.network-button:active {
  transform: scale(0.99);
}

/* ---------- Modal shell ---------- */
.modal {
  position: fixed;
  z-index: 51;
  display: flex;
  flex-direction: column;
  inset-inline: 0;
  bottom: 0;
  max-height: 92dvh;
  border-radius: 1.5rem 1.5rem 0 0;
  border-bottom: 0;
  color: var(--card-foreground);
  animation: sheet-up 300ms var(--ease) both;
}
@media (min-width: 640px) {
  .modal {
    inset: auto;
    top: 50%;
    left: 50%;
    width: 440px;
    max-width: 92vw;
    max-height: 88dvh;
    transform: translate(-50%, -50%);
    border-radius: 1.5rem;
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-raise);
    animation: fade-in 220ms ease both;
  }
}
.modal__grabber {
  margin: 0.75rem auto 0;
  width: 2.5rem;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
}
@media (min-width: 640px) {
  .modal__grabber {
    display: none;
  }
}
.modal__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem 0.75rem;
}
.modal__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}
.modal__desc {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted-foreground);
}
.modal__icon-btn {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--muted-foreground);
}
.modal__icon-btn:hover {
  color: var(--foreground);
}
.modal__icon-btn .icon {
  width: 16px;
  height: 16px;
}
.modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 1.25rem calc(2.5rem + env(safe-area-inset-bottom));
  scrollbar-width: none;
}
.modal:has(.modal__footer) .modal__body {
  padding-bottom: 0.5rem;
}
.modal__header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--card);
}
.modal__body::-webkit-scrollbar {
  display: none;
}
.modal__footer {
  border-top: 1px solid var(--hairline);
  padding: 1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
}

/* ---------- Forms & controls ---------- */
.segmented {
  position: relative;
  display: grid;
  border-radius: 999px;
  background: color-mix(in oklab, var(--secondary) 70%, transparent);
  padding: 0.25rem;
  height: 2.75rem;
  font-size: 14px;
}
.segmented--sm {
  height: 2.25rem;
  font-size: 12px;
}
.segmented__thumb {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 0.25rem;
  border-radius: 999px;
  background: var(--foreground);
  box-shadow: var(--shadow-card);
  transition: transform 300ms var(--ease);
}
.segmented button {
  position: relative;
  z-index: 1;
  border-radius: 999px;
  padding-inline: 0.5rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 200ms ease;
}
.segmented button:hover {
  color: var(--foreground);
}
.segmented button.is-active {
  font-weight: 600;
  color: var(--background);
}

.field-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
}
.input {
  width: 100%;
  height: 3.5rem;
  border-radius: 1rem;
  border: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--secondary) 60%, transparent);
  padding-inline: 0.875rem;
  font-size: 14px;
  font-weight: 500;
  outline: none;
}
.input:focus {
  border-color: color-mix(in oklab, var(--primary) 50%, transparent);
}
.input--mono {
  font-family: var(--font-mono);
  font-size: 12px;
}
.input.is-invalid {
  border-color: color-mix(in oklab, var(--destructive) 60%, transparent);
}
.search-field {
  position: relative;
}
.search-field .icon {
  position: absolute;
  top: 50%;
  left: 0.875rem;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted-foreground);
  pointer-events: none;
}
.search-field input {
  height: 3rem;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--secondary) 60%, transparent);
  padding: 0 0.875rem 0 2.5rem;
  font-size: 14px;
  outline: none;
}
.search-field input:focus {
  border-color: color-mix(in oklab, var(--primary) 50%, transparent);
}

.locked-row {
  display: flex;
  height: 3.5rem;
  width: 100%;
  align-items: center;
  gap: 0.625rem;
  border-radius: 1rem;
  border: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--secondary) 40%, transparent);
  padding-inline: 0.75rem;
}
.locked-row__title {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.locked-row__sub {
  display: block;
  font-size: 12px;
  color: var(--muted-foreground);
}
.deposit-address-copy {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.deposit-address-copy span { min-width: 0; }
.deposit-address-copy .icon { width: 0.85rem; height: 0.85rem; flex: none; }
.deposit-address-copy:disabled { cursor: default; }
.deposit-costs {
  display: grid;
  gap: 0.4rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.9rem;
  background: color-mix(in oklab, var(--secondary) 45%, transparent);
  color: var(--muted-foreground);
  font-size: 12px;
}
.deposit-costs span { display: flex; justify-content: space-between; gap: 1rem; }
.deposit-costs strong { color: var(--foreground); font-weight: 500; }
.locked-row__lock {
  width: 14px;
  height: 14px;
  flex: none;
  color: color-mix(in oklab, var(--muted-foreground) 60%, transparent);
}
.locked-row__avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 999px;
  background: var(--elevated);
  box-shadow: inset 0 0 0 1px var(--border);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.select-trigger {
  display: flex;
  width: 100%;
  height: 3.5rem;
  align-items: center;
  gap: 0.625rem;
  border-radius: 1rem;
  border: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--secondary) 60%, transparent);
  padding-inline: 0.75rem;
  text-align: left;
}
.select-trigger:hover {
  border-color: var(--border);
}
.select-trigger__main {
  min-width: 0;
  flex: 1;
}
.select-trigger__symbol {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.select-trigger__name {
  display: block;
  font-size: 12px;
  color: var(--muted-foreground);
}
.select-trigger > .icon:last-child {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--muted-foreground);
}
.select-panel {
  position: absolute;
  z-index: 60;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  border-radius: 1rem;
  border: 1px solid var(--hairline);
  background: var(--popover);
  padding: 0.375rem;
  box-shadow: var(--shadow-raise);
  animation: rise-in 160ms var(--ease) both;
}
.select-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.625rem;
  border-radius: 0.75rem;
  padding: 0.5rem;
  text-align: left;
}
.select-option:hover {
  background: var(--secondary);
}
.select-option__symbol {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.select-option__sub {
  display: block;
  font-size: 12px;
  color: var(--muted-foreground);
}
.select-option .icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.amount__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.375rem;
}
.amount__available {
  font-size: 12px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}
.amount__box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1rem;
  border: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--secondary) 60%, transparent);
  padding: 0.75rem 0.875rem;
}
.amount__box:focus-within {
  border-color: color-mix(in oklab, var(--primary) 50%, transparent);
}
.amount__box input {
  min-width: 0;
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.amount__box input::placeholder {
  color: color-mix(in oklab, var(--muted-foreground) 50%, transparent);
}
.amount__symbol {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-foreground);
}
.amount__max {
  border-radius: 999px;
  background: var(--elevated);
  padding: 0.25rem 0.625rem;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
}
.amount__max:hover {
  background: var(--accent);
}
.amount__fiat {
  margin-top: 0.375rem;
  font-size: 12px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

.btn {
  display: inline-flex;
  height: 3rem;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 1rem;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 10px 30px -14px color-mix(in oklab, var(--primary) 80%, transparent);
}
.btn--primary:hover {
  filter: brightness(1.1);
}
.btn--outline {
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--secondary) 50%, transparent);
  color: var(--foreground);
}
.btn--outline:hover {
  background: var(--secondary);
}
.btn--auto {
  width: auto;
  padding-inline: 1rem;
}
.btn:disabled {
  pointer-events: none;
  opacity: 0.45;
}
.btn .icon {
  width: 16px;
  height: 16px;
}

/* ---------- Detail rows / states ---------- */
.detail-card {
  border-radius: 1rem;
  padding: 0.25rem 0.875rem;
}
.detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.625rem;
}
.detail-row + .detail-row {
  border-top: 1px solid var(--hairline);
}
.detail-row__label {
  flex: none;
  font-size: 12px;
  color: var(--muted-foreground);
}
.detail-row__value {
  min-width: 0;
  text-align: right;
  font-size: 12px;
  font-weight: 500;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}
.detail-row__value.is-strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.status-pill {
  border-radius: 999px;
  padding: 0.125rem 0.5rem;
  font-size: 10px;
  font-weight: 600;
  background: var(--secondary);
  color: var(--muted-foreground);
}
.status-pill--pending {
  background: color-mix(in oklab, var(--warning) 14%, transparent);
  color: var(--warning);
}
.status-pill--failed {
  background: color-mix(in oklab, var(--destructive) 14%, transparent);
  color: var(--destructive);
}

.tx-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  text-align: left;
  transition: background-color 180ms ease;
}
.tx-row:hover {
  background: rgb(255 255 255 / 0.02);
}
.tx-glyph {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 999px;
}
.tx-glyph--in {
  color: var(--positive);
  background: color-mix(in oklab, var(--positive) 12%, transparent);
}
.tx-glyph--out {
  color: var(--negative);
  background: color-mix(in oklab, var(--negative) 12%, transparent);
}
.tx-glyph--info {
  color: var(--info);
  background: color-mix(in oklab, var(--info) 12%, transparent);
}
.tx-glyph--violet {
  color: var(--violet);
  background: color-mix(in oklab, var(--violet) 12%, transparent);
}
.tx-glyph--lg {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
}
.tx-glyph--lg .icon {
  width: 24px;
  height: 24px;
}
.tx-row__main {
  min-width: 0;
  flex: 1;
}
.tx-row__title {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.tx-row__meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 12px;
  color: var(--muted-foreground);
}
.tx-row__values {
  flex: none;
  text-align: right;
}
.tx-row__amount {
  display: block;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tx-row__fiat {
  display: block;
  font-size: 12px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.state__glyph {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: var(--secondary);
  color: var(--muted-foreground);
}
.state__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.state__desc {
  margin-top: 0.375rem;
  max-width: 20rem;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0.5rem;
  text-align: center;
}
.success-state__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--positive) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--positive) 30%, transparent);
  color: var(--positive);
}
.success-state__ring .icon {
  width: 28px;
  height: 28px;
}
.success-state__title {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}
.success-state__desc {
  margin-top: 0.375rem;
  max-width: 20rem;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.success-state__details {
  margin-top: 1.5rem;
  width: 100%;
  text-align: left;
}
.inline-error {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 12px;
  color: var(--destructive);
}
.inline-error .icon {
  width: 14px;
  height: 14px;
  flex: none;
}
.warning-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border-radius: 1rem;
  background: color-mix(in oklab, var(--warning) 10%, transparent);
  padding: 0.75rem;
  font-size: 12px;
  line-height: 1.6;
  color: var(--warning);
}
.warning-note .icon {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex: none;
}

/* ---------- Activity page ---------- */
.page-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.page-subtitle {
  margin-top: 0.25rem;
  font-size: 12px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

/* ---------- Receive QR ---------- */
.qr {
  margin-inline: auto;
  width: fit-content;
  border-radius: 1rem;
  background: var(--foreground);
  padding: 0.75rem;
}
.qr__grid {
  display: grid;
  grid-template-columns: repeat(21, 7px);
  gap: 1px;
}
.qr__grid span {
  width: 7px;
  height: 7px;
  border-radius: 1px;
}
.qr__grid span.on {
  background: var(--background);
}
.address {
  margin-top: 0.5rem;
  border-radius: 1rem;
  background: color-mix(in oklab, var(--secondary) 60%, transparent);
  padding: 0.625rem 0.75rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  word-break: break-all;
}

/* ---------- Coming soon ---------- */
.coming-soon {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.coming-soon__rings {
  pointer-events: none;
  position: absolute;
  inset: 0;
}
.coming-soon__rings i {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  display: block;
}
.coming-soon__rings i:nth-child(1) {
  top: -5rem;
  width: 16rem;
  height: 16rem;
  border: 1px solid rgb(255 255 255 / 0.05);
}
.coming-soon__rings i:nth-child(2) {
  top: -8rem;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgb(255 255 255 / 0.03);
}
.coming-soon__body {
  position: relative;
  margin-inline: auto;
  display: flex;
  max-width: 24rem;
  flex-direction: column;
  align-items: center;
}
.coming-soon__glyph {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px var(--border);
}
.coming-soon__glyph .icon {
  width: 24px;
  height: 24px;
  color: color-mix(in oklab, var(--foreground) 85%, transparent);
}
.coming-soon h1 {
  margin-top: 1.25rem;
  font-size: 20px;
  font-weight: 600;
}
.coming-soon p {
  margin-top: 0.5rem;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.coming-soon__badge {
  margin-top: 1rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--secondary) 70%, transparent);
  padding: 0.25rem 0.75rem;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-foreground);
}
.coming-soon__link {
  display: inline-flex;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.75rem;
  border-radius: 1rem;
  background: var(--primary);
  padding-inline: 1.5rem;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-foreground);
}
.coming-soon__link:hover {
  filter: brightness(1.1);
}

/* ---------- Toasts ---------- */
.toasts {
  position: fixed;
  z-index: 80;
  bottom: calc(6.5rem + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  width: min(22rem, calc(100vw - 2rem));
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
@media (min-width: 768px) {
  .toasts {
    bottom: 1.5rem;
    left: auto;
    right: 1.5rem;
    transform: none;
  }
}
.toast {
  border-radius: 1rem;
  border: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--card) 92%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-raise);
  padding: 0.75rem 1rem;
  font-size: 13px;
  animation: sheet-up 220ms var(--ease) both;
}
.toast__desc {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted-foreground);
}
.toast--error {
  color: var(--destructive);
}

/* ---------- Misc ---------- */
.spin {
  animation: spin 1s linear infinite;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.text-center {
  text-align: center;
}
.flex-row {
  display: flex;
  gap: 0.5rem;
}
.form-stack > * + * {
  margin-top: 1rem;
}
.form-stack--tight > * + * {
  margin-top: 0.75rem;
}
.pb-2 {
  padding-bottom: 0.5rem;
}
.swap-row {
  display: flex;
  justify-content: center;
}
.swap-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--elevated);
  color: var(--primary);
}
.swap-btn:hover {
  border-color: color-mix(in oklab, var(--primary) 40%, transparent);
}
.receive-box {
  border-radius: 1.5rem;
  padding: 1rem;
}
.receive-caption {
  margin-top: 1rem;
  text-align: center;
  font-size: 11px;
  color: var(--muted-foreground);
}
.review-head {
  padding-block: 1rem;
  text-align: center;
}
.review-head__amount {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.review-head__fiat {
  margin-top: 0.25rem;
  font-size: 12px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}
.exchange-out {
  margin-top: 0.75rem;
  border-radius: 1rem;
  border: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--secondary) 40%, transparent);
  padding: 0.75rem 0.875rem;
}
.exchange-out__value {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.exchange-out__value span {
  font-size: 14px;
  color: var(--muted-foreground);
}
.tx-detail-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 1rem;
  text-align: center;
}
.tx-detail-head__kind {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.tx-detail-head__amount {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tx-detail-head__fiat {
  font-size: 12px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

/* ---------- Activity filters ---------- */
.filter-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-top: 0.75rem;
  padding-bottom: 0.125rem;
}
.filter-chip {
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--secondary) 45%, transparent);
  padding: 0.375rem 0.875rem;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: all 200ms ease;
}
.filter-chip:hover {
  color: var(--foreground);
}
.filter-chip.is-active {
  background: var(--elevated);
  border-color: rgb(255 255 255 / 0.14);
  color: var(--foreground);
}
.empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  font-size: 13px;
  color: var(--muted-foreground);
}

/* ---------- Asset chips ---------- */
.asset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.asset-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--secondary) 45%, transparent);
  padding: 0.375rem 0.75rem;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
  transition: all 200ms ease;
}
.asset-chip img {
  width: 18px;
  height: 18px;
  border-radius: 999px;
}
.asset-chip:hover {
  color: var(--foreground);
}
.asset-chip.is-active {
  background: var(--elevated);
  border-color: color-mix(in oklab, var(--primary) 40%, transparent);
  color: var(--foreground);
}


/* ---------- Accounts page ---------- */
.page-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.page-subtitle {
  margin-top: 0.25rem;
  font-size: 12px;
  color: var(--muted-foreground);
}
.accounts-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .accounts-grid { grid-template-columns: 1fr 1fr; }
}
.account-card {
  position: relative;
  isolate: isolate;
  overflow: hidden;
  border-radius: 1.75rem;
  padding: 1.5rem;
  container-type: inline-size;
}
.account-card--main {
  background: var(--hero-gradient, linear-gradient(160deg, oklch(0.24 0.03 260), oklch(0.16 0.02 258)));
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-raise, 0 24px 60px -30px rgb(0 0 0 / 0.8));
}
.account-card--trading {
  background:
    linear-gradient(145deg, color-mix(in oklab, oklch(0.35 0.07 255) 34%, transparent), transparent 60%),
    var(--card, oklch(0.17 0.015 258));
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card, 0 18px 40px -28px rgb(0 0 0 / 0.7));
}
.account-card--trading::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.account-card__ambient { position: absolute; inset: 0; pointer-events: none; }
.account-card__ambient i {
  position: absolute;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  filter: blur(60px);
}
.account-card--main .account-card__ambient i:first-child {
  top: -6rem; right: -4rem;
  background: color-mix(in oklab, var(--primary) 12%, transparent);
}
.account-card--trading .account-card__ambient i:first-child {
  top: -5rem; left: -2.5rem;
  background: oklch(0.6 0.12 250 / 0.14);
}
.account-card__ambient i:last-child {
  bottom: -7rem; left: -5rem;
  background: rgb(255 255 255 / 0.04);
}
.account-card__body { position: relative; }
.account-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.account-card__kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-foreground);
}
.account-card__kicker svg { width: 14px; height: 14px; }
.account-card__eye {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 999px; background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.1); color: var(--muted-foreground);
}
.account-card__tag { font-size: 10px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted-foreground); border: 1px solid rgb(255 255 255 / 0.1); background: rgb(255 255 255 / 0.05); border-radius: 999px; padding: 0.125rem 0.5rem; }
  border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.05); padding: 0.25rem 0.625rem;
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted-foreground);
}
.account-card__name {
  margin-top: 1rem; font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
}
.account-card__amount-row { margin-top: 1.75rem; display: flex; align-items: flex-end; gap: 0.5rem; max-width: 100%; }
.account-card__amount {
  min-width: 0; flex: 1;
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.05; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.3rem, calc(78cqw / var(--len, 10) * 1.6), 2.6rem);
}
.account-card__code {
  flex: none; padding-bottom: 0.25rem;
  font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--muted-foreground);
}
.account-card__secondary {
  margin-top: 0.375rem; font-size: 12px; color: var(--muted-foreground); font-variant-numeric: tabular-nums;
}
.account-card__status {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 11px; font-weight: 500; color: var(--muted-foreground);
}
.account-card__status svg { width: 14px; height: 14px; }
.account-card__actions { margin-top: 1.25rem; display: flex; gap: 0.5rem; }
.account-action {
  flex: 1; height: 2.75rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  border-radius: 1rem; font-family: var(--font-display); font-size: 14px; font-weight: 600;
  transition: all 180ms ease;
}
.account-action svg { width: 16px; height: 16px; }
.account-action--solid { background: var(--foreground); color: var(--background); }
.account-action--solid:hover { filter: brightness(0.95); }
.account-action--muted {
  border: 1px solid rgb(255 255 255 / 0.1); background: rgb(255 255 255 / 0.06); color: var(--foreground);
}
.account-action--muted:hover { background: rgb(255 255 255 / 0.1); }

.transfer-cta {
  display: flex; align-items: center; gap: 0.75rem; width: 100%;
  border-radius: 1.5rem; padding: 0.875rem 1rem; text-align: left;
}
.transfer-cta__icon {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px;
  background: color-mix(in oklab, var(--primary) 16%, transparent); color: var(--primary);
}
.transfer-cta__icon svg { width: 16px; height: 16px; }
.transfer-cta__text { min-width: 0; flex: 1; }
.transfer-cta__title { display: block; font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.transfer-cta__meta { display: block; font-size: 11px; color: var(--muted-foreground); }

.account-activity { border-radius: 1.5rem; overflow: hidden; }
.account-activity__row {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
  border-top: 1px solid var(--hairline);
}
.account-activity__row:first-child { border-top: 0; }
.account-activity__icon {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px;
  background: var(--secondary); color: var(--muted-foreground);
}
.account-activity__icon.is-in {
  background: color-mix(in oklab, var(--positive) 12%, transparent); color: var(--positive);
}
.account-activity__icon svg { width: 16px; height: 16px; }
.account-activity__text { min-width: 0; flex: 1; }
.account-activity__title { display: block; font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.account-activity__meta { display: block; font-size: 11px; color: var(--muted-foreground); }
.account-activity__value { flex: none; text-align: right; }
.account-activity__value .mono-num { display: block; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.account-activity__pending { display: block; font-size: 10px; font-weight: 500; color: var(--warning); }

/* Accounts page header with shared display-currency selector */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}
.page-head > div {
  min-width: 0;
}

/* Compact display-controls cluster (currency + balance visibility) */
.display-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex: none;
}
.display-controls__eye {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -0.375rem;
  padding: 0.375rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.display-controls__eye:hover {
  background: rgb(255 255 255 / 0.06);
  color: var(--foreground);
}
.display-controls__eye svg {
  width: 16px;
  height: 16px;
}

/* ── Earn page: market snapshot ─────────────────────────────── */
.snapshot-wrap {
  position: relative;
  margin-inline: -1rem;
}
.snapshot-wrap::before,
.snapshot-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2rem;
  z-index: 1;
  pointer-events: none;
}
.snapshot-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--background), transparent);
}
.snapshot-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--background), transparent);
}
.snapshot {
  padding-inline: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.snapshot::-webkit-scrollbar {
  display: none;
}
@media (min-width: 768px) {
  .snapshot-wrap {
    margin-inline: 0;
  }
  .snapshot {
    padding-inline: 0;
  }
}
.snapshot__track {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  min-width: max-content;
}
.snapshot__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: none;
  border-radius: 1rem;
  padding: 0.5rem 0.75rem;
}
.snapshot__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted-foreground);
}
.snapshot__value {
  font-size: 12px;
  font-weight: 600;
}
.snapshot__change {
  font-size: 11px;
  font-weight: 500;
}
.snapshot__change.is-up {
  color: var(--positive);
}
.snapshot__change.is-down {
  color: var(--negative);
}

/* ── Earn page: market blocks ───────────────────────────────── */
.earn-markets {
  display: grid;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .earn-markets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .earn-markets__cell--wide {
    grid-column: span 2;
  }
}
.market-block {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 1rem;
  height: 100%;
}
@media (min-width: 768px) {
  .market-block {
    padding: 1.25rem;
  }
}
.market-block__tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.market-block--ai .market-block__tint {
  background: linear-gradient(150deg, rgb(74 111 165 / 0.16), transparent 62%);
}
.market-block--metals .market-block__tint {
  background: linear-gradient(150deg, rgb(200 165 106 / 0.13), transparent 58%);
}
.market-block--crypto .market-block__tint {
  background: linear-gradient(150deg, rgb(108 111 242 / 0.15), transparent 60%);
}
.market-block__body {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.market-block__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.market-block__titles {
  min-width: 0;
}
.market-block__kicker {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.market-block__title {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.market-block__glyph {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px var(--border);
}
.market-block__glyph svg {
  width: 18px;
  height: 18px;
}
.market-block--ai .market-block__glyph {
  color: #9fbbe0;
}
.market-block--metals .market-block__glyph {
  color: #d7bd8c;
}
.market-block--crypto .market-block__glyph {
  color: #a9aaf7;
}
.market-chart {
  position: relative;
  margin-top: 0.75rem;
  overflow: hidden;
  border-radius: 1rem;
  background: rgb(0 0 0 / 0.25);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05);
  line-height: 0;
}
.market-chart svg {
  display: block;
  width: 100%;
  height: 96px;
}
.market-chart__head {
  position: absolute;
  inset: 0.5rem 0.75rem auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}
.market-chart__instrument {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.market-chart__price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.375rem;
  font-size: 10px;
}
.market-chart__value {
  font-weight: 600;
  color: color-mix(in oklab, var(--foreground) 85%, transparent);
}
.market-chart__change.is-positive {
  color: var(--positive);
}
.market-chart__change.is-negative {
  color: var(--negative);
}
.market-chart__grid {
  stroke: rgb(255 255 255 / 0.06);
  stroke-width: 0.6;
}
.market-block__text {
  margin: 0.875rem 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.market-block__benefits {
  display: grid;
  gap: 0.5rem;
  margin: 0.875rem 0 0;
  padding: 0;
  list-style: none;
}
.market-benefit {
  border-radius: 1rem;
  padding: 0.625rem 0.75rem;
  background: rgb(255 255 255 / 0.03);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05);
}
.market-benefit__title {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.market-benefit__text {
  display: block;
  margin-top: 0.125rem;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted-foreground);
}
.market-block__instruments {
  margin-top: 0.875rem;
  margin-bottom: 1rem;
  display: grid;
  gap: 0.25rem;
}
.instrument-strip {
  margin: 0;
  font-size: 11px;
  color: var(--muted-foreground);
}
.instrument-strip--muted {
  color: color-mix(in oklab, var(--muted-foreground) 70%, transparent);
}
.market-block__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  width: 100%;
  height: 48px;
  border-radius: 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.18s ease;
}
.market-block__cta:hover {
  filter: brightness(1.1);
}
.market-block__cta svg {
  width: 16px;
  height: 16px;
}


/* ── Trading market accents (AI Projects / Metals / Crypto) ───────── */
.market-scope { --mkt: #9fbbe0; --mkt-soft: #bfd3ea; --mkt-deep: #4a6fa5; color: inherit; }
.market--ai { --mkt: #9fbbe0; --mkt-soft: #bfd3ea; --mkt-deep: #4a6fa5; }
.market--metals { --mkt: #d7bd8c; --mkt-soft: #e3cea4; --mkt-deep: #8c7343; }
.market--crypto { --mkt: #a9aaf7; --mkt-soft: #c3c4fb; --mkt-deep: #5b5ed6; }

/* ── AI Projects page ─────────────────────────────────────────────── */
.ai-grid { display: grid; gap: 1.25rem; }
.ai-col { display: grid; gap: 1.25rem; align-content: start; min-width: 0; }
@media (min-width: 1024px) {
  .ai-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.account-card--ai .account-card__ambient i:first-child {
  background: color-mix(in oklab, var(--mkt-deep, #4a6fa5) 45%, transparent);
}
.ai-card__texture { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.ai-card__texture::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(150deg, color-mix(in oklab, var(--mkt-deep, #4a6fa5) 20%, transparent), transparent 64%);
}
.ai-card__grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.ai-card__line { color: var(--mkt, #9fbbe0); position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 6rem; opacity: 0.6; }
.ai-card__pairs {
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin-top: 0.75rem;
  font-size: 10.5px; letter-spacing: 0.02em; color: color-mix(in oklab, var(--muted-foreground) 60%, transparent);
}
.ai-card__manage {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  margin-top: 1.25rem; width: 100%; height: 2.75rem; border-radius: 1rem;
  border: 1px solid rgb(255 255 255 / 0.14); background: rgb(255 255 255 / 0.16);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
  backdrop-filter: blur(6px);
  font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--foreground);
  text-decoration: none; transition: background-color 0.18s ease;
}
.ai-card__manage:hover { background: rgb(255 255 255 / 0.22); }
.ai-card__manage svg { width: 16px; height: 16px; }

.trading-balances { border-radius: 1.5rem; overflow: hidden; }
.trading-balances__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem;
  padding: 0.875rem 1rem 0.5rem;
}
.trading-balances__head h2 { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.trading-balances__head span { font-size: 11px; color: var(--muted-foreground); }
.trading-balances__list > .asset-row + .asset-row { border-top: 1px solid var(--hairline); }

.positions-list { border-radius: 1.5rem; overflow: hidden; }
.positions-list > .position-row + .position-row { border-top: 1px solid var(--hairline); }
.position-group__head { padding: 1rem 1rem 0.75rem; }
.position-group__title { font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.position-group__meta { margin-top: 0.125rem; font-size: 11px; color: color-mix(in oklab, var(--muted-foreground) 85%, transparent); }
/* Strategy blocks: rounded outer container, page background visible between them. */
.position-groups { display: flex; flex-direction: column; gap: 1rem; }
.position-group { border-radius: 1.5rem; overflow: hidden; border: 1px solid var(--hairline); }
.position-group .positions-list { border-radius: 0; border-top: 1px solid var(--hairline); background: rgba(255, 255, 255, 0.015); }

.filter-btn {
  display: inline-flex; align-items: center; gap: 0.375rem; flex: none;
  border-radius: 999px; border: 1px solid var(--hairline); background: color-mix(in oklab, var(--elevated) 60%, transparent);
  padding: 0.5rem 0.75rem; font-size: 12px; font-weight: 600; color: var(--muted-foreground);
}
.filter-btn.is-active { color: var(--primary); border-color: color-mix(in oklab, var(--primary) 50%, transparent); background: color-mix(in oklab, var(--primary) 10%, transparent); }
.filter-sheet__label { display: block; margin: 0 0 0.5rem; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); }
.filter-sheet__group + .filter-sheet__group { margin-top: 1rem; }
.filter-sheet__actions { display: flex; align-items: center; gap: 0.5rem; }
.filter-sheet__reset { border-radius: 999px; border: 1px solid var(--hairline); padding: 0.75rem 1rem; font-size: 12.5px; font-weight: 600; color: var(--muted-foreground); }
.positions-empty { padding: 2rem 1rem; text-align: center; font-size: 12px; color: var(--muted-foreground); }

.position-row { padding: 0.875rem 1rem; }
.position-row__top { display: flex; align-items: flex-start; gap: 0.75rem; }
.position-row__badge {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none;
  border-radius: 1rem; background: color-mix(in oklab, var(--mkt-deep, #4a6fa5) 22%, transparent);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
  font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; color: var(--mkt-soft, #bfd3ea);
}
.position-row__info { min-width: 0; flex: 1; }
.position-row__title-line { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.position-row__title { font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.position-row__result { flex: none; font-size: 12px; font-weight: 600; }
.position-row__result.positive { color: var(--positive); }
.position-row__result.negative { color: var(--negative); }
.position-row__amount { margin-top: 0.125rem; font-size: 14px; font-weight: 600; color: var(--mkt, #9fbbe0); }
.position-row__meta { margin-top: 0.125rem; font-size: 11px; color: var(--muted-foreground); }
.position-row__progress-wrap { margin-top: 0.75rem; padding-left: 3rem; }
.position-progress { height: 4px; width: 100%; border-radius: 999px; background: rgb(255 255 255 / 0.07); overflow: hidden; }
.position-progress > span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--mkt, #9fbbe0) 55%, transparent), var(--mkt, #9fbbe0));
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.position-row__progress-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.375rem;
  font-size: 10.5px; color: var(--muted-foreground);
}
.position-row__status { font-size: 10px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.position-row__status.is-active { color: var(--mkt, #9fbbe0); }

.ai-info { position: relative; overflow: hidden; border-radius: 1.5rem; padding: 1rem; }
.ai-info__tint {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(150deg, color-mix(in oklab, var(--mkt-deep, #4a6fa5) 14%, transparent), transparent 62%);
}
.ai-info__body { position: relative; }
.ai-info__kicker { font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-foreground); }
.ai-info__title { margin-top: 0.25rem; font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.ai-info .market-chart { margin-top: 0.75rem; }
.ai-info__text { margin-top: 0.875rem; font-size: 12.5px; line-height: 1.6; color: var(--muted-foreground); }
.ai-info__points { list-style: none; display: grid; gap: 0.5rem; margin-top: 0.875rem; padding: 0; }
@media (min-width: 640px) { .ai-info__points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ai-info__points li {
  border-radius: 1rem; padding: 0.625rem 0.75rem; background: rgb(255 255 255 / 0.03);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05);
}
.ai-info__point-title { display: block; font-family: var(--font-display); font-size: 12px; font-weight: 600; }
.ai-info__point-text { display: block; margin-top: 0.125rem; font-size: 11px; line-height: 1.35; color: var(--muted-foreground); }
.ai-info__pairs { margin-top: 0.875rem; font-size: 11px; color: color-mix(in oklab, var(--muted-foreground) 70%, transparent); }

.start-trading { border-radius: 1.5rem; padding: 1rem; }
.start-trading__title { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.start-trading__sub { margin-top: 0.25rem; font-size: 11.5px; color: var(--muted-foreground); }
.start-trading__field { margin-top: 1.25rem; }
.start-trading__cta { margin-top: 1.25rem; width: 100%; }

.fx-amount {
  margin-top: 1rem; border-radius: 1.5rem; padding: 0.875rem 1rem 0.75rem;
  border: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--mkt-deep, #4a6fa5) 7%, transparent);
  transition: border-color 0.18s ease;
}
.fx-amount:focus-within { border-color: color-mix(in oklab, var(--mkt, #9fbbe0) 45%, transparent); }
.fx-amount.is-invalid { border-color: color-mix(in oklab, var(--destructive) 60%, transparent); }
.fx-amount__label { font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-foreground); }
.fx-amount__row { margin-top: 0.375rem; display: flex; align-items: center; gap: 0.75rem; }
.fx-amount__row input {
  min-width: 0; flex: 1; background: transparent; border: 0; outline: none; color: var(--foreground);
  font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -0.02em;
}
.fx-amount__row input::placeholder { color: color-mix(in oklab, var(--muted-foreground) 45%, transparent); }
.fx-amount__asset {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.25rem 0.75rem 0.25rem 0.25rem; border-radius: 999px;
  background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
}
.fx-amount__asset .medallion { width: 1.5rem; height: 1.5rem; }
.fx-amount__symbol { font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.fx-amount__foot {
  margin-top: 0.75rem; padding-top: 0.625rem; border-top: 1px solid var(--hairline);
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem;
  font-size: 11px; color: var(--muted-foreground);
}
.fx-amount__foot .is-invalid { color: var(--negative); }
.fx-amount__max {
  border: 0; border-radius: 999px; padding: 0.25rem 0.625rem; cursor: pointer;
  background: rgb(255 255 255 / 0.06); color: var(--mkt-soft, #bfd3ea); font-size: 10.5px; font-weight: 600;
}
.fx-amount__max:hover { background: rgb(255 255 255 / 0.1); }
.fx-amount__fiat { margin-top: 0.375rem; font-size: 11px; color: color-mix(in oklab, var(--muted-foreground) 80%, transparent); }

.fx-kicker { display: block; margin-bottom: 0.5rem; font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-foreground); }

.fx-info {
  margin-top: 1rem; border-radius: 1rem; padding: 0.25rem 1rem;
  background: rgb(255 255 255 / 0.03); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05);
}
.fx-info__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem;
  padding: 0.625rem 0; font-size: 11.5px; color: var(--muted-foreground);
}
.fx-info__row + .fx-info__row { border-top: 1px solid var(--hairline); }
.fx-info__row > span:last-child { text-align: right; font-size: 12.5px; font-weight: 600; color: color-mix(in oklab, var(--foreground) 90%, transparent); }
.fx-info__row > span.fx-info__apr { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--mkt-soft, #bfd3ea); }
.fx-info.is-changing .fx-info__row > span:last-child { animation: fx-apr-fade 300ms ease; }
@keyframes fx-apr-fade { from { opacity: 0; } to { opacity: 1; } }

.fx-summary {
  margin-top: 1rem; border-radius: 1rem; padding: 0.625rem 0.875rem;
  background: rgb(255 255 255 / 0.03); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05);
}
.fx-summary__kicker { font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-foreground); }
.fx-summary__rows { margin-top: 0.25rem; }
.fx-summary__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; padding: 0.375rem 0;
  font-size: 11.5px; color: var(--muted-foreground);
}
.fx-summary__row + .fx-summary__row { border-top: 1px solid var(--hairline); }
.fx-summary__row > span:last-child { font-size: 12.5px; font-weight: 600; color: var(--foreground); text-align: right; }
.fx-review { border-radius: 1rem; padding: 0.25rem 1rem; }

.fx-success { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.5rem 0.5rem; }
.fx-success__icon {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 999px;
  background: color-mix(in oklab, var(--positive) 12%, transparent); color: var(--positive);
}
.fx-success__icon svg { width: 28px; height: 28px; }
.fx-success__title { margin-top: 1rem; font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.fx-success__text { margin-top: 0.375rem; font-size: 12px; color: var(--muted-foreground); }
.amount__fiat.is-invalid { color: var(--negative); }

.positions-list__footer { border-top: 1px solid var(--hairline); padding: 0.5rem; }
.positions-all {
  display: flex; align-items: center; justify-content: center; gap: 0.375rem;
  width: 100%; border-radius: 1rem; padding: 0.75rem 1rem;
  background: rgb(255 255 255 / 0.03); border: 0;
  font-size: 12px; font-weight: 500; color: var(--muted-foreground);
  transition: background 0.2s ease, color 0.2s ease; cursor: pointer;
}
.positions-all:hover { background: rgb(255 255 255 / 0.06); color: var(--foreground); }
.positions-all .icon { width: 14px; height: 14px; }

/* =========================================================================
   Authentication / wallet onboarding (presentation-only mock flows)
   ========================================================================= */
.auth {
  position: relative; display: flex; flex-direction: column; min-height: 100dvh;
  background: var(--background);
}
.auth::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 60% at 50% -10%, color-mix(in oklab, var(--primary) 12%, transparent), transparent 60%);
}
.auth__inner {
  position: relative; display: flex; flex-direction: column; flex: 1;
  width: 100%; max-width: 26rem; margin: 0 auto;
  padding: calc(1rem + env(safe-area-inset-top)) 1.25rem calc(2rem + env(safe-area-inset-bottom));
}
.auth__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 2rem; }
.auth__brand { font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.auth__content { display: flex; flex-direction: column; flex: 1; margin-top: 2rem; animation: rise-in 0.35s ease both; }
.auth__spacer { margin-top: auto; padding-top: 2.5rem; }
.auth__title { font-family: var(--font-display); font-size: clamp(1.5rem, 6vw, 1.9rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.auth__subtitle { margin-top: 0.5rem; font-size: 13.5px; line-height: 1.6; color: var(--muted-foreground); }
.auth__email { margin-top: 0.75rem; font-family: var(--font-display); font-size: 13.5px; font-weight: 500; }
.auth__note { margin-top: 0.75rem; font-size: 11.5px; line-height: 1.6; color: color-mix(in oklab, var(--muted-foreground) 85%, transparent); }
.auth__error { margin-top: 0.5rem; font-size: 12px; color: var(--negative); }
.auth__legal { position: relative; margin-top: 2rem; text-align: center; font-size: 11.5px; color: color-mix(in oklab, var(--muted-foreground) 70%, transparent); }
.auth__legal a { color: inherit; text-decoration: none; }
.auth__legal a:hover { color: var(--muted-foreground); }
.auth__link {
  align-self: flex-start; margin-top: 1rem; background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 13px; color: var(--muted-foreground); text-decoration: underline dotted; text-underline-offset: 4px;
}
.auth__link:hover { color: var(--foreground); }
.auth__actions { display: grid; gap: 0.75rem; }
.auth__progress { margin-top: 1rem; height: 3px; border-radius: 999px; background: color-mix(in oklab, var(--secondary) 80%, transparent); overflow: hidden; }
.auth__progress > span { display: block; height: 100%; border-radius: 999px; background: var(--primary); }

.auth-back {
  display: inline-flex; align-items: center; gap: 0.375rem; background: none; border: 0; padding: 0.25rem 0;
  color: var(--muted-foreground); font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.auth-back:hover { color: var(--foreground); }
.auth-back .icon { width: 16px; height: 16px; }

.auth-lang {
  display: inline-flex; align-items: center; gap: 0.25rem; border-radius: 999px;
  border: 1px solid var(--hairline); background: color-mix(in oklab, var(--secondary) 50%, transparent);
  padding: 0.375rem 0.75rem; font-family: var(--font-display); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); cursor: pointer;
}
.auth-lang:hover { color: var(--foreground); }
.auth-lang .icon { width: 12px; height: 12px; opacity: 0.6; }

.auth-mark {
  display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 1.5rem; margin-bottom: 2.5rem;
}
.auth-mark .icon { width: 32px; height: 32px; color: var(--primary); }
.auth-hero { display: flex; flex-direction: column; justify-content: center; flex: 1; padding: 1.5rem 0; }
.auth-hero__kicker { font-family: var(--font-display); font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-foreground); }
.auth-hero__title { margin-top: 0.75rem; font-family: var(--font-display); font-size: clamp(1.9rem, 8vw, 2.5rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; }
.auth-hero__text { margin-top: 1rem; max-width: 22rem; font-size: 13.5px; line-height: 1.65; color: var(--muted-foreground); }

.auth-field { display: block; }
.auth-field__label { display: block; margin-bottom: 0.5rem; font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground); }
.auth-field__box {
  display: flex; align-items: center; gap: 0.625rem; border-radius: 1rem;
  border: 1px solid var(--hairline); background: color-mix(in oklab, var(--secondary) 40%, transparent);
  padding: 0.875rem 1rem; transition: border-color 0.2s ease, background 0.2s ease;
}
.auth-field__box:focus-within { border-color: color-mix(in oklab, var(--primary) 60%, transparent); }
.auth-field__box.is-valid { border-color: color-mix(in oklab, var(--primary) 50%, transparent); }
.auth-field__box.is-invalid { border-color: color-mix(in oklab, var(--negative) 60%, transparent); }
.auth-field__box .icon { width: 16px; height: 16px; color: var(--muted-foreground); flex: none; }
.auth-field__box input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  font-family: var(--font-display); font-size: 13.5px; color: var(--foreground);
}
.auth-field__ok { display: none; color: var(--primary); }
.auth-field__box.is-valid .auth-field__ok { display: block; }

.otp { display: flex; justify-content: space-between; gap: 0.5rem; }
.otp input {
  width: 100%; min-width: 0; height: 3.5rem; text-align: center;
  border-radius: 1rem; border: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--secondary) 40%, transparent);
  font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--foreground);
  font-variant-numeric: tabular-nums; outline: none; transition: border-color 0.2s ease, background 0.2s ease;
}
.otp input:focus { border-color: color-mix(in oklab, var(--primary) 70%, transparent); background: color-mix(in oklab, var(--secondary) 70%, transparent); }
.otp.is-invalid input { border-color: color-mix(in oklab, var(--negative) 60%, transparent); }
.otp-help { margin-top: 1.5rem; font-size: 13px; color: var(--muted-foreground); }
.otp-resend { display: block; margin-top: 0.25rem; background: none; border: 0; padding: 0; font-size: 13px; font-weight: 500; color: var(--primary); cursor: pointer; }
.otp-resend[disabled] { color: var(--muted-foreground); cursor: default; }

.choice-card {
  display: flex; align-items: flex-start; gap: 1rem; width: 100%; text-align: left;
  border-radius: 1.5rem; padding: 1.25rem; cursor: pointer; text-decoration: none; color: inherit;
}
.choice-card + .choice-card { margin-top: 0.75rem; }
.choice-card__icon {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: none;
  border-radius: 1rem; border: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--secondary) 60%, transparent); color: var(--primary);
}
.choice-card__icon .icon { width: 20px; height: 20px; }
.choice-card__title { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.choice-card__text { display: block; margin-top: 0.25rem; font-size: 13px; line-height: 1.6; color: var(--muted-foreground); }
.choice-card__chevron { margin-top: 0.75rem; flex: none; color: var(--muted-foreground); }
.choice-card__chevron .icon { width: 16px; height: 16px; }

.pref-row {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; text-align: left;
  border-radius: 1rem; padding: 0.875rem 1rem; cursor: pointer;
}
.pref-row + .pref-row { margin-top: 0.75rem; }
.pref-row__icon { color: var(--muted-foreground); display: flex; }
.pref-row__label { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground); }
.pref-row__value { display: block; margin-top: 0.125rem; font-family: var(--font-display); font-size: 13.5px; font-weight: 600; }

.secure-list { list-style: none; margin: 0; padding: 1rem; border-radius: 1rem; display: grid; gap: 0.75rem; }
.secure-list li { display: flex; gap: 0.625rem; font-size: 13px; line-height: 1.6; color: var(--muted-foreground); }
.secure-list .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: color-mix(in oklab, var(--primary) 80%, transparent); }
.secure-ack {
  display: flex; align-items: flex-start; gap: 0.75rem; margin-top: 1rem; padding: 1rem;
  border-radius: 1rem; border: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--secondary) 30%, transparent); cursor: pointer;
  font-size: 13px; line-height: 1.6;
}
.secure-ack input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--primary); flex: none; }

.phrase { position: relative; border-radius: 1.5rem; padding: 1rem; overflow: hidden; }
.phrase__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.375rem 0.75rem; }
.phrase__grid li { display: flex; align-items: baseline; gap: 0.625rem; padding: 0.5rem 0.625rem; border-radius: 0.75rem; }
.phrase__grid li:nth-child(odd) { background: rgb(255 255 255 / 0.02); }
.phrase__num { width: 1.25rem; flex: none; font-size: 11px; font-variant-numeric: tabular-nums; color: color-mix(in oklab, var(--muted-foreground) 70%, transparent); }
.phrase__word { font-family: var(--font-display); font-size: 13.5px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.phrase.is-hidden .phrase__word { filter: blur(6px); user-select: none; }
.phrase__cover { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in oklab, var(--card) 40%, transparent); backdrop-filter: blur(2px); }
.phrase.is-revealed .phrase__cover { display: none; }
.phrase__reveal {
  display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px;
  border: 1px solid var(--hairline); background: color-mix(in oklab, var(--secondary) 90%, var(--card));
  padding: 0.625rem 1rem; font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--foreground); cursor: pointer;
}
.phrase__reveal .icon { width: 16px; height: 16px; }

.word-check + .word-check { margin-top: 1.25rem; }
.word-check__label { margin-bottom: 0.5rem; font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground); }
.word-check__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.word-check__options button {
  border-radius: 1rem; border: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--secondary) 40%, transparent);
  padding: 0.75rem 0.5rem; font-family: var(--font-display); font-size: 13px; font-weight: 500;
  color: var(--muted-foreground); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.word-check__options button.is-selected {
  border-color: color-mix(in oklab, var(--primary) 70%, transparent);
  background: color-mix(in oklab, var(--primary) 15%, transparent); color: var(--foreground);
}

.seed-toggle { display: flex; width: 100%; margin-bottom: 1rem; border-radius: 1rem; border: 1px solid var(--hairline); background: color-mix(in oklab, var(--secondary) 40%, transparent); padding: 0.25rem; }
.seed-toggle button {
  flex: 1; border: 0; background: none; border-radius: 0.75rem; padding: 0.5rem 0;
  font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--muted-foreground); cursor: pointer;
}
.seed-toggle button.is-active { background: var(--elevated); color: var(--foreground); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06); }
.seed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.seed-grid label {
  display: flex; align-items: center; gap: 0.5rem; border-radius: 1rem; border: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--secondary) 40%, transparent); padding: 0.625rem 0.75rem;
}
.seed-grid label:focus-within { border-color: color-mix(in oklab, var(--primary) 60%, transparent); }
.seed-grid span { width: 1.25rem; flex: none; font-size: 11px; font-variant-numeric: tabular-nums; color: color-mix(in oklab, var(--muted-foreground) 70%, transparent); }
.seed-grid input {
  width: 100%; min-width: 0; background: none; border: 0; outline: none;
  font-family: var(--font-display); font-size: 13.5px; font-weight: 500; color: var(--foreground);
}

.auth-success { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.auth-success__icon { display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 999px; animation: ring-pop 0.35s ease both; }
.auth-success__icon .icon { width: 36px; height: 36px; color: var(--primary); }
.auth-success__title { margin-top: 2rem; font-family: var(--font-display); font-size: clamp(1.6rem, 7vw, 2rem); font-weight: 600; letter-spacing: -0.02em; }
.auth-success__text { margin-top: 0.75rem; max-width: 20rem; font-size: 13.5px; line-height: 1.6; color: var(--muted-foreground); }

.auth-sheet__overlay { position: fixed; inset: 0; z-index: 80; background: rgb(0 0 0 / 0.6); backdrop-filter: blur(2px); }
.auth-sheet {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 90; margin: 0 auto;
  width: 100%; max-width: 26rem; max-height: 75vh; overflow-y: auto;
  border: 1px solid var(--hairline); border-radius: 1.5rem 1.5rem 0 0;
  background: var(--card); padding: 1rem 1rem 2rem; box-shadow: var(--shadow-raise);
}
.auth-sheet__grabber { display: block; width: 2.5rem; height: 4px; margin: 0 auto 1rem; border-radius: 999px; background: rgb(255 255 255 / 0.15); }
.auth-sheet__title { margin: 0 0 0.75rem; padding: 0 0.25rem; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.auth-sheet__option {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; text-align: left;
  border: 0; background: none; border-radius: 1rem; padding: 0.625rem 0.75rem; cursor: pointer; color: inherit;
}
.auth-sheet__option:hover { background: var(--secondary); }
.auth-sheet__option strong { font-family: var(--font-display); font-size: 13.5px; font-weight: 500; }
.auth-sheet__option small { display: block; font-size: 12px; color: var(--muted-foreground); }
.auth-sheet__option .icon { width: 16px; height: 16px; color: var(--primary); }

/* ============================================================ Utility pages
   Account / Security / Settings / Support — presentation only. */
.set-section { display: block; }
.set-section + .set-section { margin-top: 1.25rem; }
.set-section__label { margin-bottom: 0.5rem; }
.set-section__note { margin: 0.5rem 0.25rem 0; font-size: 12px; color: var(--muted-foreground); }
.set-list { padding: 0.25rem; border-radius: 1.25rem; overflow: hidden; }
.set-anchor { scroll-margin-top: 5rem; }

.set-row {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; text-align: left;
  border: 0; background: none; color: inherit; text-decoration: none;
  border-radius: 1rem; padding: 0.8rem 0.75rem; cursor: pointer;
}
.set-row + .set-row, .set-list > .faq + .faq { border-top: 1px solid color-mix(in oklab, var(--hairline) 70%, transparent); }
.set-row--status, .set-row--toggle { cursor: default; }
button.set-row:hover, a.set-row:hover { background: color-mix(in oklab, var(--secondary) 55%, transparent); }
.set-row__icon { display: grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 0.85rem;
  background: color-mix(in oklab, var(--secondary) 65%, transparent); border: 1px solid var(--hairline); }
.set-row__icon .icon { width: 16px; height: 16px; color: var(--muted-foreground); }
.set-row__text { min-width: 0; flex: 1; display: block; }
.set-row__label { display: block; font-family: var(--font-display); font-size: 13.5px; font-weight: 500; }
.set-row__label.is-emphasis { color: var(--foreground); font-weight: 600; }
.set-row__desc { display: block; margin-top: 2px; font-size: 12px; line-height: 1.45; color: var(--muted-foreground); }
.set-row__value { flex: none; max-width: 45%; font-size: 13px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.set-row__chevron .icon, .set-row__copy .icon { width: 16px; height: 16px; color: color-mix(in oklab, var(--muted-foreground) 80%, transparent); }
.set-row__copy { flex: none; border: 0; background: none; padding: 0.25rem; cursor: pointer; color: inherit; }
.set-row--danger .set-row__label { color: var(--negative); }
.set-row--danger .set-row__icon .icon { color: var(--negative); }

.set-pill {
  flex: none; border-radius: 999px; border: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--secondary) 60%, transparent);
  padding: 0.2rem 0.55rem; font-size: 11px; font-weight: 600; color: var(--muted-foreground);
}
.set-status { flex: none; font-size: 12.5px; font-weight: 600; }
.set-status--positive { color: var(--positive); }
.set-status--warning { color: #e0b25f; }
.set-status--neutral { color: var(--muted-foreground); }
.set-empty { padding: 0.75rem; }

.switch { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--hairline); background: color-mix(in oklab, var(--secondary) 70%, transparent); transition: background .18s ease; }
.switch__knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 999px;
  background: color-mix(in oklab, var(--muted-foreground) 70%, transparent); transition: transform .18s ease, background .18s ease; }
.switch.is-on { background: color-mix(in oklab, var(--primary) 45%, transparent); border-color: color-mix(in oklab, var(--primary) 55%, transparent); }
.switch.is-on .switch__knob { transform: translateX(18px); background: var(--foreground); }

.identity { display: flex; align-items: center; gap: 0.85rem; border-radius: 1.35rem; padding: 1rem; }
.identity__avatar { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: 1rem;
  font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.identity__text { min-width: 0; flex: 1; }
.identity__name { margin: 0; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.identity__qid { display: flex; align-items: center; gap: 0.35rem; margin-top: 2px; font-size: 12.5px; color: var(--muted-foreground); }
.identity__copy { border: 0; background: none; padding: 0; cursor: pointer; color: inherit; }
.identity__copy .icon { width: 14px; height: 14px; }
.identity__email { margin: 2px 0 0; font-size: 12.5px; color: color-mix(in oklab, var(--muted-foreground) 85%, transparent); }
.identity__badge { display: inline-flex; align-items: center; gap: 0.3rem; flex: none; font-size: 11.5px; font-weight: 600; color: var(--muted-foreground); }
.identity__badge .icon { width: 14px; height: 14px; color: var(--positive); }

.sec-status { display: flex; align-items: center; gap: 0.85rem; border-radius: 1.35rem; padding: 1rem; }
.sec-status__shield { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 1rem;
  border: 1px solid var(--hairline); background: color-mix(in oklab, var(--secondary) 60%, transparent); }
.sec-status__shield .icon { width: 20px; height: 20px; color: var(--positive); }
.sec-status__title { margin: 0; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.sec-status__text { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted-foreground); }

.warn-card { display: flex; gap: 0.75rem; border-radius: 1.1rem; padding: 0.9rem;
  border: 1px solid color-mix(in oklab, #e0b25f 35%, transparent); background: color-mix(in oklab, #e0b25f 8%, transparent); }
.warn-card p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--muted-foreground); }
.warn-card__icon .icon { width: 18px; height: 18px; color: #e0b25f; }
.tfa-qr { width: 9.5rem; height: 9.5rem; margin: 0 auto; border-radius: 1rem; border: 1px solid var(--hairline);
  background-color: var(--secondary);
  background-image: repeating-conic-gradient(var(--foreground) 0% 25%, transparent 0% 50%);
  background-size: 14px 14px; opacity: .85; }
.tfa-key { text-align: center; font-size: 14px; letter-spacing: .08em; }
.otp--pin { max-width: 12rem; margin: 0 auto; }

.input--area { min-height: 6rem; resize: vertical; font-family: inherit; }
.btn--danger { background: color-mix(in oklab, var(--negative) 22%, transparent); color: var(--negative);
  border: 1px solid color-mix(in oklab, var(--negative) 45%, transparent); }
.btn--danger:hover { background: color-mix(in oklab, var(--negative) 30%, transparent); }

.topic-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.topic-chip { border-radius: 999px; padding: 0.35rem 0.7rem; font-size: 12px; cursor: pointer; color: var(--muted-foreground);
  border: 1px solid var(--hairline); background: color-mix(in oklab, var(--secondary) 45%, transparent); }
.topic-chip.is-active { color: var(--foreground); border-color: color-mix(in oklab, var(--primary) 55%, transparent);
  background: color-mix(in oklab, var(--primary) 20%, transparent); }
.attach { display: flex; align-items: center; gap: 0.5rem; border-radius: 1rem; padding: 0.7rem 0.85rem; cursor: pointer;
  border: 1px dashed var(--hairline); font-size: 12.5px; color: var(--muted-foreground); }
.attach .icon { width: 16px; height: 16px; }

.faq { padding: 0.35rem 0.25rem; }
.faq__q { display: flex; align-items: center; gap: 0.5rem; list-style: none; cursor: pointer;
  padding: 0.6rem 0.5rem; font-family: var(--font-display); font-size: 13.5px; font-weight: 500; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q .icon { margin-left: auto; width: 16px; height: 16px; color: var(--muted-foreground); transition: transform .18s ease; }
.faq[open] .faq__q .icon { transform: rotate(180deg); }
.faq__a { margin: 0; padding: 0 0.5rem 0.75rem; font-size: 12.5px; line-height: 1.6; color: var(--muted-foreground); }

/* ============================================================
   Network workspace
   ============================================================ */

.network-button__hint {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--muted-foreground);
}
.drawer__status--network { color: var(--network); }
.modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
.status-note { margin-top: 0.5rem; font-size: 12px; color: var(--muted-foreground); }
.status-note.is-ok { color: var(--positive); }
.status-note.is-bad { color: var(--negative); }

.nw-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--network);
}
.nw-kicker .icon { width: 12px; height: 12px; }

.bottom-nav__home--network.is-active .bottom-nav__home-glyph,
.bottom-nav__home--network .bottom-nav__home-glyph {
  color: var(--network);
}

.nw-hero {
  position: relative;
  isolate: isolate;
  overflow: hidden;
  border-radius: 1.75rem;
  padding: 1.5rem;
  border: 1px solid var(--hairline);
  background:
    radial-gradient(120% 120% at 12% 0%, color-mix(in oklab, var(--network) 20%, transparent) 0%, transparent 58%),
    linear-gradient(160deg, color-mix(in oklab, var(--network-deep) 55%, transparent) 0%, var(--card) 72%);
  box-shadow: var(--shadow-card, 0 24px 60px -32px rgb(0 0 0 / 0.75));
}
.nw-hero__texture {
  position: absolute;
  inset: 0;
  color: color-mix(in oklab, var(--network) 25%, transparent);
  pointer-events: none;
}
.nw-hero__body { position: relative; }
.nw-hero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.nw-hero__label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted-foreground);
}
.nw-hero__tag {
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--network) 25%, transparent);
  background: color-mix(in oklab, var(--network) 10%, transparent);
  padding: 0.125rem 0.5rem;
  font-size: 10px; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--network);
}
.nw-hero__amount-row { margin-top: 1.75rem; display: flex; align-items: flex-end; gap: 0.5rem; max-width: 100%; }
.nw-hero__amount {
  min-width: 0; flex: 1; margin: 0;
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; white-space: nowrap;
  font-size: clamp(1.3rem, calc(78vw / var(--len, 10) * 1.5), 2.6rem);
}
.nw-hero__code { flex: none; padding-bottom: 0.25rem; font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--muted-foreground); }
.nw-hero__send {
  margin-top: 1.25rem;
  display: inline-flex; height: 2.75rem; width: 100%;
  align-items: center; justify-content: center; gap: 0.375rem;
  border-radius: 1rem; border: 0;
  background: var(--foreground); color: var(--background);
  font-family: var(--font-display); font-size: 14px; font-weight: 600; cursor: pointer;
}
.nw-hero__send:hover { filter: brightness(0.95); }

.nw-hero__meta {
  margin-top: 1.5rem; padding-top: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}
.nw-hero__meta-main { min-width: 0; flex: 1; }
.nw-hero__meta-name { margin: 0; font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-hero__meta-cap { margin: 0; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-foreground); }
.nw-hero__meta-rate { flex: none; text-align: right; }
.nw-hero__meta-rate p:first-child { margin: 0; font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--network); }

.nw-card { border-radius: 1.5rem; overflow: hidden; }
.nw-card__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 1rem 1rem 0; }
.nw-card__big { margin: 0; font-family: var(--font-display); font-size: clamp(1.35rem, 6.5vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.nw-card__cap { margin: 0.375rem 0 0; font-size: 12px; color: var(--muted-foreground); }
.nw-card__aside { flex: none; text-align: right; }
.nw-card__aside strong { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.nw-card__aside span { font-size: 11px; color: var(--muted-foreground); }

.nw-chart { margin-top: 0.75rem; padding: 0 0.25rem; }
.nw-chart svg { display: block; width: 100%; height: 3rem; }

.nw-split {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
}
.nw-split > div { padding: 0.625rem 0.5rem; text-align: center; border-left: 1px solid var(--hairline); }
.nw-split > div:first-child { border-left: 0; }
.nw-split strong { display: block; font-family: var(--font-display); font-size: 12px; font-weight: 600; }
.nw-split span { display: block; margin-top: 0.125rem; font-size: 10px; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nw-rank-head { display: flex; align-items: center; gap: 0.875rem; padding: 1rem; }
.nw-rank-head__name { margin: 0; font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.nw-rank-head__meta { margin: 0.125rem 0 0; font-size: 11px; color: var(--muted-foreground); }

.rank-badge {
  display: grid; place-items: center; flex: none;
  border-radius: 0.75rem;
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px var(--border);
}
.rank-badge--sm { width: 2rem; height: 2rem; font-size: 10px; }
.rank-badge--md { width: 2.5rem; height: 2.5rem; font-size: 12px; }
.rank-badge--lg { width: 3rem; height: 3rem; font-size: 14px; }
.rank-badge--tone-muted { color: var(--muted-foreground); }
.rank-badge--tone-network { color: var(--network); }
.rank-badge--tone-gold { color: var(--gold, #d7bd8c); }

.nw-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline); }
.nw-metrics > div { background: var(--card); padding: 0.75rem 1rem; }
.nw-metrics span { display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-metrics strong { display: block; margin-top: 0.25rem; font-family: var(--font-display); font-size: 14px; font-weight: 600; }

.nw-req { margin-top: 1rem; display: grid; gap: 0.875rem; }
.nw-req__top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.375rem; }
.nw-req__label { font-size: 12px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-req__value { flex: none; font-size: 11px; color: var(--muted-foreground); }
.nw-req__value.is-complete { color: var(--positive); }
.nw-req__rest { margin: 0.25rem 0 0; font-size: 10px; color: var(--muted-foreground); }

.rail-bar { display: block; height: 4px; width: 100%; overflow: hidden; border-radius: 999px; background: rgb(255 255 255 / 0.07); }
.rail-bar > i {
  display: block; height: 100%; border-radius: 999px;
  background: color-mix(in oklab, var(--network) 85%, transparent);
  animation: network-bar 780ms cubic-bezier(0.22, 0.75, 0.25, 1) both;
}
.rail-bar > i.is-complete { background: color-mix(in oklab, var(--positive) 80%, transparent); }
@keyframes network-bar { from { width: 0 !important; } }

.nw-market-rows { border-top: 0; }
.nw-market-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-top: 1px solid var(--hairline); }
.nw-market-row:first-child { border-top: 0; }
.nw-market-row__body { min-width: 0; flex: 1; }
.nw-market-row__body p { margin: 0; font-size: 12px; font-weight: 500; }
.nw-market-row__sub { display: block; margin-top: 0.125rem; font-size: 11px; color: var(--muted-foreground); }
.nw-market-row__values { flex: none; text-align: right; }
.nw-market-row__value { margin: 0; font-family: var(--font-display); font-size: 14px; font-weight: 600; }

.nw-market-row__today { margin: 0.125rem 0 0; font-size: 11px; color: var(--muted-foreground); }


.nw-countdown { margin-top: 1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.nw-countdown > div {
  border-radius: 1rem; border: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--secondary) 50%, transparent);
  padding: 0.625rem 0; text-align: center;
}
.nw-countdown strong { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.nw-countdown span { display: block; margin-top: 0.125rem; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); }

.nw-mini-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.5rem; font-size: 11px; color: var(--muted-foreground); }

.nw-accent-pill {
  display: inline-flex; flex: none; align-items: center; gap: 0.375rem;
  border-radius: 999px; padding: 0.25rem 0.625rem;
  border: 1px solid color-mix(in oklab, var(--network) 28%, transparent);
  background: color-mix(in oklab, var(--network) 10%, transparent);
  font-size: 10px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--network);
}
.nw-accent-pill .icon { width: 12px; height: 12px; }

.nw-stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--hairline); }
.nw-stats3 > div { padding: 0.75rem; text-align: center; border-left: 1px solid var(--hairline); }
.nw-stats3 > div:first-child { border-left: 0; }
.nw-stats3 strong { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.nw-stats3 span { display: block; margin-top: 0.125rem; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); }

.nw-partner-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-top: 1px solid var(--hairline); }
.nw-partner-row:first-child { border-top: 0; }
.nw-partner-row__body { min-width: 0; flex: 1; }
.nw-partner-row__body p { margin: 0; font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-partner-row__body span { display: block; font-size: 11px; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-partner-row__value { flex: none; font-size: 12px; color: var(--muted-foreground); }

.nw-card-foot {
  display: flex; height: 2.75rem; width: 100%; align-items: center; justify-content: center; gap: 0.25rem;
  border: 0; border-top: 1px solid var(--hairline);
  background: rgb(255 255 255 / 0.04);
  color: var(--foreground); font-size: 12px; font-weight: 500; cursor: pointer; text-decoration: none;
}
.nw-card-foot:hover { background: rgb(255 255 255 / 0.07); }
.nw-card-foot .icon { width: 14px; height: 14px; }

.nw-link { display: inline-flex; align-items: center; gap: 0.125rem; font-size: 12px; font-weight: 500; color: var(--network); text-decoration: none; }
.nw-link .icon { width: 14px; height: 14px; }

/* Community explorer */
.nw-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; font-size: 11px; color: var(--muted-foreground); }
.nw-crumbs a, .nw-crumbs span { color: inherit; text-decoration: none; }
.nw-crumbs a:hover { color: var(--foreground); }
.nw-crumbs .is-current { color: var(--foreground); font-weight: 500; }

.nw-node { display: flex; width: 100%; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; border-top: 1px solid var(--hairline); background: transparent; border-left: 0; border-right: 0; border-bottom: 0; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.nw-node:first-child { border-top: 0; }
.nw-node:hover { background: rgb(255 255 255 / 0.03); }
.nw-node__body { min-width: 0; flex: 1; }
.nw-node__qid { margin: 0; font-size: 13px; font-weight: 600; font-family: var(--font-display); }
.nw-node__meta { margin: 0.125rem 0 0; font-size: 11px; color: var(--muted-foreground); }
.nw-node__chev { flex: none; color: var(--muted-foreground); }
.nw-node__chev .icon { width: 16px; height: 16px; }

.nw-empty { padding: 2rem 1rem; text-align: center; font-size: 12px; color: var(--muted-foreground); }

/* Activity + library */
.nw-act-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; border-top: 1px solid var(--hairline); }
.nw-act-row:first-child { border-top: 0; }
.nw-act-icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none; border-radius: 0.875rem; border: 1px solid var(--hairline); background: color-mix(in oklab, var(--secondary) 60%, transparent); color: var(--muted-foreground); }
.nw-act-icon .icon { width: 16px; height: 16px; }
.nw-act-row__body { min-width: 0; flex: 1; }
.nw-act-row__body p { margin: 0; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-act-row__body span { display: block; font-size: 11px; color: var(--muted-foreground); }
.nw-act-amount { flex: none; font-size: 13px; font-weight: 600; font-family: var(--font-display); }
.nw-act-amount.is-in { color: var(--positive); }

.nw-topic { display: flex; width: 100%; gap: 0.875rem; padding: 1rem; text-align: left; background: transparent; border: 0; border-top: 1px solid var(--hairline); color: inherit; cursor: pointer; }
.nw-topic:first-child { border-top: 0; }
.nw-topic:hover { background: rgb(255 255 255 / 0.03); }
.nw-topic__glyph { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none; border-radius: 0.875rem; border: 1px solid color-mix(in oklab, var(--network) 25%, transparent); background: color-mix(in oklab, var(--network) 10%, transparent); color: var(--network); }
.nw-topic__body { min-width: 0; flex: 1; }
.nw-topic__body p { margin: 0; font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.nw-topic__body span { display: block; margin-top: 0.25rem; font-size: 12px; line-height: 1.55; color: var(--muted-foreground); }

[data-balance-amount].is-hidden { filter: blur(10px); user-select: none; }

/* Community explorer, activity ledger and library (Network) */
.nw-search { display: flex; align-items: center; gap: 0.5rem; border-radius: 1rem; padding: 0.625rem 0.875rem; }
.nw-search .icon { width: 16px; height: 16px; flex: none; color: var(--muted-foreground); }
.nw-search input { min-width: 0; flex: 1; border: 0; background: transparent; color: var(--foreground); font: inherit; font-size: 14px; outline: none; }
.nw-search input::placeholder { color: var(--muted-foreground); }
.nw-search__clear { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; flex: none; border-radius: 999px; background: var(--secondary); color: var(--muted-foreground); }
.nw-search__clear .icon { width: 12px; height: 12px; }

.nw-crumbs { overflow-x: auto; flex-wrap: nowrap; padding: 0 0.25rem; }
.nw-crumbs a { flex: none; border-radius: 999px; padding: 0.25rem 0.5rem; }
.nw-crumbs a.is-current { color: var(--network); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--network) 30%, transparent); }

.nw-details-btn { flex: none; border: 0; border-radius: 999px; background: var(--secondary); color: var(--foreground); padding: 0.375rem 0.75rem; font-size: 11px; font-weight: 500; cursor: pointer; }
.nw-node__open { display: flex; min-width: 0; flex: 1; align-items: center; gap: 0.75rem; border: 0; background: transparent; color: inherit; text-align: left; padding: 0; cursor: pointer; }
.nw-node__qid { display: block; font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-node__meta { display: block; }
.nw-node__drill { display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 999px; background: var(--secondary); color: var(--muted-foreground); }
.nw-node__drill:hover { color: var(--foreground); }
.nw-node__drill .icon { width: 16px; height: 16px; }
.nw-node__end { flex: none; padding-right: 0.25rem; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); }

.nw-act-row { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.nw-act-row:hover { background: rgb(255 255 255 / 0.03); }

.nw-topic { align-items: center; border-radius: 1.5rem; border: 1px solid var(--hairline); }
.nw-topic__icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none; border-radius: 0.875rem; border: 1px solid color-mix(in oklab, var(--network) 25%, transparent); background: color-mix(in oklab, var(--network) 10%, transparent); color: var(--network); }
.nw-topic__icon .icon { width: 18px; height: 18px; }
.nw-topic__title { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.nw-topic__sub { display: block; margin-top: 0.125rem; font-size: 11px; line-height: 1.5; color: var(--muted-foreground); }
.nw-topic > .icon { flex: none; width: 16px; height: 16px; color: var(--muted-foreground); }

.nw-facts { margin-top: 1rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.nw-facts > div { border-radius: 1rem; border: 1px solid var(--hairline); background: color-mix(in oklab, var(--secondary) 50%, transparent); padding: 0.625rem; text-align: center; }
.nw-facts p { margin: 0; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); }
.nw-facts strong { display: block; margin-top: 0.25rem; font-family: var(--font-display); font-size: 12px; font-weight: 600; }

.nw-article { margin-top: 1.25rem; display: grid; gap: 1rem; }
.nw-article h3 { margin: 0; font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.nw-article p { margin: 0.25rem 0 0; font-size: 13px; line-height: 1.65; color: var(--muted-foreground); }

.nw-langs { margin-top: 1rem; display: flex; gap: 0.375rem; overflow-x: auto; }
.nw-langs button { flex: none; border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.06); color: var(--muted-foreground); padding: 0.375rem 0.75rem; font-size: 11px; font-weight: 500; cursor: pointer; }
.nw-langs button.is-active { color: var(--network); background: color-mix(in oklab, var(--network) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--network) 30%, transparent); }
.nw-download { margin-top: 1rem; display: flex; height: 2.75rem; width: 100%; align-items: center; justify-content: center; gap: 0.5rem; border: 0; border-radius: 1rem; background: var(--foreground); color: var(--background); font-family: var(--font-display); font-size: 14px; font-weight: 600; cursor: pointer; }
.nw-download .icon { width: 16px; height: 16px; }

.nw-line { color: var(--network); }

/* ── Notifications centre ───────────────────────────────── */
.header__badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--info);
    color: var(--background);
    font-size: 10px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 0 0 2px var(--background);
}

.nt-markall {
    background: none;
    border: 0;
    color: var(--muted-foreground);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
}
.nt-markall:hover { color: var(--foreground); }
.nt-markall:disabled { opacity: 0.4; cursor: default; }

.nt-group-label {
    margin: 0 0 0.5rem 0.25rem;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}

.nt-list {
    border-radius: 1.5rem;
    overflow: hidden;
}

.nt-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    background: none;
    border: 0;
    border-top: 1px solid var(--hairline);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}
.nt-row:first-child { border-top: 0; }
.nt-row:hover { background: rgba(255, 255, 255, 0.03); }
.nt-row.is-unread { background: rgba(255, 255, 255, 0.035); }

.nt-glyph {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}
.nt-glyph--in { background: color-mix(in oklab, var(--positive) 12%, transparent); color: var(--positive); }
.nt-glyph--info { background: color-mix(in oklab, var(--info) 12%, transparent); color: var(--info); }
.nt-glyph--warn { background: color-mix(in oklab, var(--warning) 12%, transparent); color: var(--warning); }
.nt-glyph--strategy { background: color-mix(in oklab, var(--primary) 12%, transparent); color: var(--primary); }
.nt-glyph--muted { background: rgba(255, 255, 255, 0.05); color: var(--muted-foreground); }
.nt-glyph .icon { width: 18px; height: 18px; }

.nt-row__main { min-width: 0; flex: 1; }
.nt-row__title-line { display: flex; align-items: center; gap: 0.375rem; }
.nt-row__title { font-size: 13px; font-weight: 500; color: color-mix(in oklab, var(--foreground) 85%, transparent); }
.nt-row.is-unread .nt-row__title { font-weight: 600; color: var(--foreground); }
.nt-row__dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 999px; background: var(--info); }
.nt-row__msg { display: block; margin-top: 2px; font-size: 11px; color: var(--muted-foreground); }
.nt-row__context { display: block; margin-top: 2px; font-size: 10px; color: color-mix(in oklab, var(--muted-foreground) 75%, transparent); }

.nt-row__values { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-left: 0.25rem; flex: 0 0 auto; }
.nt-row__amount { font-size: 12px; font-weight: 600; white-space: nowrap; color: color-mix(in oklab, var(--foreground) 80%, transparent); }
.nt-row__amount.positive { color: var(--positive); }
.nt-row__amount.warning { color: var(--warning); }
.nt-row__time { font-size: 10px; white-space: nowrap; color: color-mix(in oklab, var(--muted-foreground) 80%, transparent); }

.nt-empty { padding: 2rem 0; text-align: center; font-size: 12px; color: var(--muted-foreground); }

.nt-settings-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 1.5rem;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
}
.nt-settings-link .icon { width: 16px; height: 16px; }

.nt-detail-head { text-align: center; padding: 0.5rem 0 0.75rem; }
.nt-detail-title { margin: 0; font-size: 14px; font-weight: 600; }
.nt-detail-msg { margin: 0.25rem 0 0; font-size: 12px; color: var(--muted-foreground); }
.nt-detail-amount { margin: 0.75rem 0 0; font-size: 24px; font-weight: 600; }
.nt-detail-rows { border-radius: 1.5rem; padding: 0.375rem 1rem; }

/* Tokenized stock summary (AI Projects) */
.tokenized-stock {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    padding: 0.875rem 1rem;
}
.tokenized-stock__line {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--mkt, #9fbbe0);
    opacity: 0.16;
    pointer-events: none;
}
.tokenized-stock__body { position: relative; }
.tokenized-stock__kicker {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}
.tokenized-stock__amount {
    margin-top: 0.375rem;
    font-family: var(--font-display, inherit);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.tokenized-stock__unit {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
}
.tokenized-stock__estimate {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}
.tokenized-stock__label { opacity: 0.7; }

.tokenized-stock__identity {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
.tokenized-stock__mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid rgb(255 255 255 / 0.1);
    background: rgb(255 255 255 / 0.05);
    color: var(--mkt, #9fbbe0);
}
.tokenized-stock__mark svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ------------------------------------------------------------------ Design System (internal docs) */
.ds-head { padding: 4px 0 16px; }
.ds-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.ds-lead { margin-top: 6px; color: var(--muted-foreground); font-size: 13px; line-height: 1.55; max-width: 68ch; }
.ds-mobile-nav { display: flex; gap: 8px; overflow-x: auto; padding: 10px; border-radius: 18px; position: sticky; top: 8px; z-index: 20; min-width: 0; max-width: 100%; }
.ds-mobile-nav .ds-chip { flex: none; }
.ds-layout { display: grid; gap: 20px; margin-top: 16px; }
.ds-sidebar { display: none; }
.ds-content { display: grid; gap: 28px; min-width: 0; }
.ds-section { scroll-margin-top: 84px; min-width: 0; }
.ds-section * { min-width: 0; }
.ds-section__title { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.ds-section__desc { margin-top: 4px; color: var(--muted-foreground); font-size: 13px; max-width: 68ch; }
.ds-block { border-radius: 22px; padding: 16px; margin-top: 12px; min-width: 0; overflow-wrap: anywhere; }
.ds-block__title { margin-top: 18px; font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.ds-note { margin-top: 12px; color: var(--muted-foreground); font-size: 12px; line-height: 1.6; }
.ds-spec { margin-top: 4px; color: var(--muted-foreground); font-size: 12px; }
.ds-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; line-height: 1.55; }
.ds-grid-2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
.ds-grid-3 { display: grid; gap: 12px; grid-template-columns: 1fr; }
.ds-row-wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ds-swatches { display: grid; gap: 12px; grid-template-columns: 1fr; }
.ds-swatch { display: flex; gap: 10px; align-items: center; }
.ds-swatch__chip { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); flex: none; }
.ds-swatch__name { font-size: 13px; font-weight: 600; }
.ds-swatch__var, .ds-swatch__use { font-size: 11px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.ds-tile { border-radius: 18px; padding: 14px; font-size: 13px; text-align: left; color: var(--foreground); }
.ds-tile.is-disabled { opacity: 0.45; }
.ds-tile--selected { border: 1px solid color-mix(in oklab, var(--primary) 45%, transparent); background: color-mix(in oklab, var(--primary) 12%, transparent); border-radius: 18px; padding: 14px; font-size: 13px; }
.hero-demo { background: linear-gradient(158deg, oklch(0.28 0.016 258), oklch(0.185 0.01 260) 62%, oklch(0.165 0.01 262)); border: 1px solid oklch(1 0 0 / 10%); }
.network-demo { background: linear-gradient(160deg, oklch(0.255 0.022 236), oklch(0.183 0.014 244) 60%); border: 1px solid oklch(1 0 0 / 10%); }
.ds-type-balance { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 9vw, 2.6rem); line-height: 1.05; letter-spacing: -0.02em; }
.ds-type-h1 { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.ds-type-h2 { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.ds-type-card { font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.ds-type-body { font-size: 14px; line-height: 1.5; }
.ds-type-muted { font-size: 13px; color: var(--muted-foreground); line-height: 1.6; }
.ds-mono, .ds-mono-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.ds-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ds-table th { text-align: left; color: var(--muted-foreground); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 10px; }
.ds-table td { padding: 9px 10px; border-top: 1px solid var(--hairline); vertical-align: top; }
.ds-pos { color: var(--positive); }
.ds-neg { color: var(--negative); }
.ds-warn-text { color: var(--warning); }
.ds-scale-row { display: flex; align-items: center; gap: 12px; padding: 3px 0; }
.ds-scale-row__n { width: 48px; font-size: 12px; color: var(--muted-foreground); }
.ds-scale-row__bar { height: 10px; border-radius: 999px; background: color-mix(in oklab, var(--primary) 45%, transparent); }
.ds-meta { display: grid; gap: 8px; margin: 14px 0 0; }
.ds-meta div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.ds-meta dt { color: var(--muted-foreground); }
.ds-meta dd { margin: 0; text-align: right; }
.ds-radii { display: flex; gap: 14px; flex-wrap: wrap; }
.ds-radius { display: block; width: 56px; height: 40px; background: var(--secondary); border: 1px solid var(--border); }
.ds-field { display: block; }
.ds-input { width: 100%; height: 48px; margin-top: 6px; border-radius: 16px; background: color-mix(in oklab, var(--secondary) 80%, transparent); border: 1px solid var(--hairline); color: var(--foreground); padding: 0 14px; font-size: 14px; font-family: inherit; }
.ds-input:focus { outline: none; border-color: color-mix(in oklab, var(--primary) 50%, transparent); }
.ds-input--error { border-color: color-mix(in oklab, var(--destructive) 60%, transparent); }
.ds-textarea { height: 92px; padding: 12px 14px; resize: vertical; }
.ds-help { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted-foreground); }
.ds-error { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11.5px; color: var(--negative); }
.ds-check, .ds-radio { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--hairline); background: color-mix(in oklab, var(--secondary) 60%, transparent); color: var(--foreground); font-size: 13px; text-align: left; }
.ds-check span, .ds-radio span { width: 18px; height: 18px; border-radius: 6px; border: 1px solid var(--border); flex: none; }
.ds-radio span { border-radius: 999px; }
.ds-check.is-checked span, .ds-radio.is-selected span { background: var(--primary); border-color: var(--primary); }
.ds-radios { display: grid; gap: 10px; margin-top: 10px; }
.ds-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ds-switch { width: 46px; height: 28px; border-radius: 999px; background: var(--secondary); border: 1px solid var(--border); padding: 3px; display: flex; }
.ds-switch span { width: 20px; height: 20px; border-radius: 999px; background: var(--muted-foreground); transition: transform 180ms ease; }
.ds-switch.is-on { background: color-mix(in oklab, var(--primary) 45%, transparent); }
.ds-switch.is-on span { transform: translateX(18px); background: var(--foreground); }
.ds-otp { display: flex; gap: 8px; }
.ds-otp span { width: 40px; height: 48px; border-radius: 14px; border: 1px solid var(--hairline); background: color-mix(in oklab, var(--secondary) 70%, transparent); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; }
.ds-otp span.is-active { border-color: color-mix(in oklab, var(--primary) 60%, transparent); }
.ds-select { width: 100%; margin-top: 12px; height: 48px; border-radius: 16px; background: color-mix(in oklab, var(--secondary) 70%, transparent); border: 1px solid var(--hairline); color: var(--foreground); display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-size: 13px; }
.ds-summary { margin-top: 14px; display: grid; gap: 8px; font-size: 12.5px; }
.ds-summary div { display: flex; justify-content: space-between; color: var(--muted-foreground); }
.ds-summary .is-total { color: var(--foreground); font-weight: 600; border-top: 1px solid var(--hairline); padding-top: 8px; }
.ds-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ds-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted-foreground); }
.ds-asset-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; }
.ds-medallion { width: 36px; height: 36px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--elevated); border: 1px solid var(--border); font-weight: 600; flex: none; }
.ds-market { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; border: 1px solid color-mix(in oklab, var(--m) 26%, transparent); background: color-mix(in oklab, var(--m) 9%, transparent); }
.ds-market > span { width: 36px; height: 36px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--m); background: color-mix(in oklab, var(--m) 14%, transparent); flex: none; }
.ds-address { border-radius: 16px; border: 1px solid var(--hairline); padding: 12px; }
.ds-address__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.ds-warn { display: flex; gap: 6px; align-items: center; margin-top: 10px; font-size: 11.5px; color: var(--warning); }
.ds-tx { margin-top: 14px; display: grid; gap: 10px; }
.ds-tx > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; border-top: 1px solid var(--hairline); padding-top: 10px; }
.ds-kv { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--hairline); }
.ds-progress { margin-top: 10px; height: 6px; border-radius: 999px; background: color-mix(in oklab, var(--foreground) 8%, transparent); overflow: hidden; }
.ds-progress span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.ds-nav-demo { display: flex; justify-content: space-between; gap: 6px; padding: 10px; border-radius: 20px; border: 1px solid var(--hairline); background: color-mix(in oklab, var(--card) 72%, transparent); }
.ds-nav-demo__item { display: grid; justify-items: center; gap: 4px; font-size: 10.5px; color: var(--muted-foreground); }
.ds-nav-demo__item.is-active { color: var(--primary); }
.ds-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--hairline); background: color-mix(in oklab, var(--secondary) 60%, transparent); font-size: 12px; color: var(--muted-foreground); white-space: nowrap; }
.ds-chip.is-active { color: var(--foreground); border-color: color-mix(in oklab, var(--primary) 45%, transparent); background: color-mix(in oklab, var(--primary) 14%, transparent); }
.ds-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.ds-badge--pos { background: color-mix(in oklab, var(--positive) 14%, transparent); color: var(--positive); }
.ds-badge--warn { background: color-mix(in oklab, var(--warning) 14%, transparent); color: var(--warning); }
.ds-badge--neg { background: color-mix(in oklab, var(--negative) 14%, transparent); color: var(--negative); }
.ds-badge--outline { border: 1px solid var(--border); color: var(--muted-foreground); }
.ds-badge--network { background: color-mix(in oklab, var(--network) 14%, transparent); color: var(--network); }
.ds-counter { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ds-alert { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 12px; border-radius: 16px; font-size: 12.5px; }
.ds-alert--warn { background: color-mix(in oklab, var(--warning) 10%, transparent); color: var(--warning); }
.ds-alert--info { background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--primary); }
.ds-toast-demo { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 14px; border-radius: 999px; font-size: 12.5px; }
.ds-accordion { margin-top: 12px; border-top: 1px solid var(--hairline); padding-top: 12px; }
.ds-accordion button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; background: none; border: 0; color: var(--foreground); font-size: 13px; font-family: inherit; text-align: left; }
.ds-accordion p { margin-top: 8px; font-size: 12.5px; color: var(--muted-foreground); }
.ds-spinner { width: 16px; height: 16px; border-radius: 999px; border: 2px solid color-mix(in oklab, var(--foreground) 25%, transparent); border-top-color: var(--foreground); animation: ds-spin 700ms linear infinite; display: inline-block; }
@keyframes ds-spin { to { transform: rotate(360deg); } }
.ds-skeleton { display: block; height: 12px; width: 100%; border-radius: 999px; background: linear-gradient(90deg, color-mix(in oklab, var(--foreground) 6%, transparent), color-mix(in oklab, var(--foreground) 12%, transparent), color-mix(in oklab, var(--foreground) 6%, transparent)); background-size: 200% 100%; animation: ds-shimmer 1.4s linear infinite; margin-bottom: 8px; }
@keyframes ds-shimmer { to { background-position: -200% 0; } }
.ds-state { border-radius: 18px; padding: 16px; display: grid; gap: 6px; }
.ds-state--center { justify-items: center; text-align: center; }
.ds-state__icon { width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--elevated); border: 1px solid var(--border); color: var(--muted-foreground); margin-bottom: 4px; }
.ds-state__icon--pos { color: var(--positive); }
.ds-state__icon--neg { color: var(--negative); }
.ds-code { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.ds-auth { max-width: 420px; margin: 0 auto; text-align: left; }
.ds-steps { display: flex; gap: 6px; }
.ds-steps span { flex: 1; height: 4px; border-radius: 999px; background: color-mix(in oklab, var(--foreground) 10%, transparent); }
.ds-steps span.is-done { background: var(--primary); }
.ds-seed { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ds-seed span { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--hairline); font-size: 12.5px; }
.ds-seed i { font-style: normal; color: var(--muted-foreground); font-size: 11px; }
.ds-article { max-width: 68ch; display: grid; gap: 12px; }
.ds-notifs { display: grid; gap: 10px; }
.ds-notifs > div { display: flex; gap: 10px; align-items: flex-start; padding-top: 10px; border-top: 1px solid var(--hairline); }
.ds-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--primary); margin-top: 6px; flex: none; }
.ds-dot--muted { background: color-mix(in oklab, var(--foreground) 18%, transparent); }
.ds-frame { max-width: 100%; margin-top: 14px; border: 1px solid var(--border); border-radius: 20px; padding: 12px; overflow: hidden; transition: width 220ms ease; }
.ds-chart { width: 100%; height: 44px; margin-top: 8px; }
.ds-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.ds-icon-cell { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--hairline); font-size: 10px; color: var(--muted-foreground); text-align: center; }
.ds-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hairline); background: color-mix(in oklab, var(--secondary) 60%, transparent); color: var(--foreground); font-size: 12.5px; }
.ds-icon-btn { width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--hairline); background: color-mix(in oklab, var(--secondary) 60%, transparent); color: var(--foreground); }
.ds-text-action { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--muted-foreground); font-size: 12.5px; font-family: inherit; }
.ds-wide-action { width: 100%; height: 44px; border-radius: 16px; border: 1px solid oklch(1 0 0 / 14%); background: oklch(1 0 0 / 16%); color: var(--foreground); font-size: 13px; font-weight: 600; backdrop-filter: blur(12px); }
.btn.is-loading { opacity: 0.85; }
.ds-sidebar__link { display: block; padding: 7px 10px; border-radius: 12px; font-size: 12.5px; color: var(--muted-foreground); }
.ds-sidebar__link:hover, .ds-sidebar__link.is-active { color: var(--foreground); background: color-mix(in oklab, var(--foreground) 6%, transparent); }

@media (min-width: 640px) {
  .ds-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ds-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-seed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .ds-mobile-nav { display: none; }
  .ds-layout { grid-template-columns: 224px minmax(0, 1fr); align-items: start; }
  .ds-sidebar { display: block; position: sticky; top: 16px; border-radius: 22px; padding: 14px; max-height: 80vh; overflow-y: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .ds-spinner, .ds-skeleton, .ds-frame { animation: none !important; transition: none !important; }
}

/* ── Workspace restructure: Markets / Payments surfaces ─────────────── */
.rail__label { margin: 0.25rem 0 0.35rem; padding-inline: 0.75rem; }

.workspace-switch {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.25rem;
  padding: 0.25rem; border-radius: 1rem;
  border: 1px solid var(--hairline); background: rgb(255 255 255 / 0.03);
}
.workspace-switch__item {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding-inline: 0.5rem; border-radius: 0.75rem;
  font-size: 0.8125rem; font-weight: 500;
  border: 1px solid transparent; background: transparent;
  color: var(--muted-foreground); transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.workspace-switch__item svg { width: 1rem; height: 1rem; flex: none; opacity: 0.8; }
.workspace-switch__item:hover { color: var(--foreground); background: rgb(255 255 255 / 0.04); }
.workspace-switch__item:focus-visible { outline: 2px solid color-mix(in oklab, var(--primary) 40%, transparent); outline-offset: 2px; }
.workspace-switch__item.is-active {
  border-color: color-mix(in oklab, var(--primary) 25%, transparent);
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: var(--primary);
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.1);
}

.list-card { overflow: hidden; border-radius: 1.5rem; }
.list-card > * + * { border-top: 1px solid var(--hairline); }
.empty-note { padding: 2rem 1rem; text-align: center; font-size: 0.75rem; color: var(--muted-foreground); }
.positions-cta {
  display: flex; align-items: center; justify-content: center; gap: 0.375rem;
  padding: 0.75rem; font-size: 0.75rem; font-weight: 500;
  background: rgb(255 255 255 / 0.04); color: var(--foreground);
  transition: background 0.2s ease;
}
.positions-cta:hover { background: rgb(255 255 255 / 0.07); }
.menu-row__meta { margin-left: auto; font-size: 0.6875rem; color: var(--muted-foreground); }

.pay-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.pay-actions .surface {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem; border-radius: 1rem; font-size: 0.875rem; font-weight: 500;
}
.pay-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; }
.pay-row__icon {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none;
  border-radius: 1rem; border: 1px solid var(--hairline); background: rgb(255 255 255 / 0.04);
  color: var(--muted-foreground);
}
.pay-row__body { min-width: 0; flex: 1; display: grid; }
.pay-row__title { font-size: 0.875rem; font-weight: 500; }
.pay-row__meta { font-size: 0.6875rem; color: var(--muted-foreground); }
.pay-row__amount { flex: none; text-align: right; display: grid; gap: 0.125rem; }
.pay-row__amount .tabular { font-size: 0.875rem; font-weight: 600; }
.pay-row__status { font-size: 0.6875rem; color: var(--muted-foreground); }
.pay-row__status--paid, .pay-row__status--completed { color: var(--success); }
.pay-row__status--pending, .pay-row__status--active { color: var(--warning); }

.ai-portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.375rem; }
@media (min-width: 640px) { .ai-portfolio { gap: 0.5rem; } }
@media (min-width: 1024px) { .ai-portfolio { grid-template-columns: repeat(4, 1fr); } }
.ai-portfolio__card { display: flex; flex-direction: column; text-align: left; gap: 0.25rem; padding: 0.625rem 0.5rem; border-radius: 1rem; height: 100%; }
.ai-portfolio__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.25rem; width: 100%; }
.ai-portfolio__chevron { width: 0.875rem; height: 0.875rem; flex: none; color: var(--muted-foreground); }
.ai-portfolio__mark {
  display: grid; place-items: center; width: 2rem; height: 2rem; flex: none;
  border-radius: 0.9rem; border: 1px solid var(--hairline); background: rgba(255,255,255,0.04);
}
.ai-portfolio__mark svg { width: 18px; height: 18px; }
.ai-portfolio__name {
  font-size: 0.6875rem; line-height: 0.95rem; font-weight: 500; width: 100%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word;
}
.ai-portfolio__category {
  font-size: 0.5625rem; line-height: 1.15; color: var(--muted-foreground); width: 100%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word;
}
.ai-portfolio__foot { margin-top: auto; padding-top: 0.375rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 0.25rem; width: 100%; }
.ai-portfolio__arrow { width: 0.875rem; height: 0.875rem; flex: none; color: var(--muted-foreground); }
.ai-portfolio__weight { font-size: 0.875rem; font-weight: 600; color: var(--info); }

.ai-portfolio__more { display: flex; justify-content: center; margin-top: 0.625rem; }
.ai-portfolio__card.is-extra { animation: ai-portfolio-in 200ms ease both; }
@keyframes ai-portfolio-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ai-portfolio__card.is-extra { animation: none; } }
.ai-portfolio__note { margin-top: 0.75rem; font-size: 0.6875rem; line-height: 1.6; color: var(--muted-foreground); }
.section-heading__meta { font-size: 0.6875rem; color: var(--muted-foreground); }

/* ------------------------------------------------------------------
   Wallet · Exchange page + professional invoicing
------------------------------------------------------------------ */
.exch-card { border-radius: 1.5rem; padding: 0.875rem; }
.exch-review { text-align: center; padding: 1rem 0 0.5rem; }
.exch-review__amount { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.exch-review__amount--out { color: var(--primary); }
.exch-review__hint { font-size: 0.75rem; color: var(--muted-foreground); margin: 0.25rem 0; }

.inv-new {
  display: inline-flex; align-items: center; gap: 0.375rem; height: 2.5rem; flex: none;
  padding: 0 0.875rem; border-radius: 999px; background: var(--primary);
  color: var(--primary-foreground); font-size: 0.75rem; font-weight: 600;
}
.inv-new svg { width: 1rem; height: 1rem; }

.inv-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.inv-summary__card { border-radius: 1.5rem; padding: 0.875rem 1rem; }
.inv-summary__label { font-size: 0.6875rem; color: var(--muted-foreground); }
.inv-summary__value { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; margin-top: 0.25rem; word-break: break-word; }
.inv-summary__value--paid { color: var(--success); }
.inv-summary__meta { font-size: 0.6875rem; color: var(--muted-foreground); margin-top: 0.125rem; }

.inv-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: flex-start;
  gap: 0.75rem; padding: 0.875rem 1rem; color: inherit; text-decoration: none;
}
.inv-row + .inv-row { border-top: 1px solid var(--hairline); }
.inv-row:hover { background: color-mix(in oklab, var(--secondary) 40%, transparent); }
.inv-row__body { min-width: 0; display: grid; }
.inv-row__title { font-size: 0.875rem; font-weight: 500; }
.inv-row__meta { font-size: 0.6875rem; color: var(--muted-foreground); }
.inv-row__amount { flex: none; text-align: right; display: grid; gap: 0.25rem; justify-items: end; }
.inv-row__amount .tabular { font-size: 0.875rem; font-weight: 600; }
.inv-row__due { font-size: 0.6875rem; color: var(--muted-foreground); }

.inv-badge {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 0.125rem 0.5rem;
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--secondary); color: var(--muted-foreground);
}
.inv-badge--pending { background: color-mix(in oklab, var(--warning) 12%, transparent); color: var(--warning); }
.inv-badge--paid { background: color-mix(in oklab, var(--success) 12%, transparent); color: var(--success); }
.inv-badge--overdue { background: color-mix(in oklab, var(--destructive) 12%, transparent); color: var(--destructive); }
.inv-empty { padding: 2.5rem 1rem; text-align: center; font-size: 0.75rem; color: var(--muted-foreground); }

.inv-detail-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; }
.inv-modal-copy { font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); padding-bottom: 1rem; }
.inv-primary-actions { display: grid; gap: 0.5rem; }

.inv-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.inv-actions .surface {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 1rem; padding: 0.75rem; font-size: 0.75rem; font-weight: 500;
}
.inv-actions .surface svg { width: 1rem; height: 1rem; }
@media (min-width: 640px) {
  .inv-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .inv-actions--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.inv-section { border-radius: 1.5rem; padding: 1rem; }
.inv-section__title {
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}
.inv-fields { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
@media (min-width: 640px) { .inv-fields { grid-template-columns: 1fr 1fr; } }
.inv-fields--pair { grid-template-columns: 1fr 1fr; }
.inv-field { display: block; min-width: 0; }
.inv-field span { display: block; margin-bottom: 0.375rem; font-size: 0.75rem; font-weight: 500; color: var(--muted-foreground); }
.inv-field textarea {
  width: 100%; min-width: 0; resize: none; border-radius: 1rem; padding: 0.75rem 0.875rem;
  font: inherit; font-size: 0.875rem; color: var(--foreground);
  background: color-mix(in oklab, var(--secondary) 60%, transparent);
  border: 1px solid var(--hairline);
}
.inv-field textarea:focus { outline: none; border-color: color-mix(in oklab, var(--primary) 50%, transparent); }
.inv-field input {
  width: 100%; min-width: 0; height: 2.75rem; border-radius: 1rem;
  border: 1px solid var(--hairline); background: color-mix(in oklab, var(--secondary) 60%, transparent);
  padding: 0 0.875rem; font-size: 0.875rem; color: var(--foreground);
}
.inv-field input:focus { outline: none; border-color: color-mix(in oklab, var(--primary) 50%, transparent); }

.inv-items { display: grid; gap: 0.625rem; }
.inv-item { border-radius: 1rem; padding: 0.75rem; }
.inv-item__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.6875rem; color: var(--muted-foreground); }
.inv-item__remove {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px;
  background: var(--secondary); color: var(--muted-foreground); border: 0;
}
.inv-item__remove svg { width: 1rem; height: 1rem; }
.inv-add {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%;
  margin-top: 0.625rem; padding: 0.75rem; border-radius: 1rem; background: transparent;
  border: 1px dashed color-mix(in oklab, var(--border) 70%, transparent);
  color: var(--muted-foreground); font-size: 0.75rem; font-weight: 600;
}

.inv-doc { border-radius: 1.5rem; overflow: hidden; }
.inv-doc__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; padding: 1rem; border-bottom: 1px solid var(--hairline); }
.inv-doc__kicker { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.inv-doc__number { font-size: 0.75rem; color: var(--muted-foreground); }
.inv-doc__dates { text-align: right; font-size: 0.75rem; color: var(--muted-foreground); }
.inv-doc__parties { display: grid; gap: 1.25rem; padding: 1rem; }
@media (min-width: 640px) { .inv-doc__parties { grid-template-columns: 1fr 1fr; } .inv-doc__head, .inv-doc__parties, .inv-doc__items, .inv-doc__totals, .inv-doc__payment, .inv-doc__notes { padding-left: 1.5rem; padding-right: 1.5rem; } }
.inv-doc__label { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-foreground); }
.inv-doc__name { font-family: var(--font-display); font-size: 0.875rem; font-weight: 600; margin-top: 0.375rem; word-break: break-word; }
.inv-doc__line { font-size: 0.75rem; color: var(--muted-foreground); word-break: break-word; }
.inv-doc__items { padding: 0 1rem; }
.inv-doc__items-head { display: none; }
.inv-doc__item { padding: 0.75rem 0; }
.inv-doc__item + .inv-doc__item { border-top: 1px solid var(--hairline); }
.inv-doc__item-desc { font-size: 0.875rem; font-weight: 500; word-break: break-word; }
.inv-doc__item-meta { font-size: 0.75rem; color: var(--muted-foreground); }
.inv-doc__item-amount { font-size: 0.875rem; font-weight: 600; }
@media (min-width: 640px) {
  .inv-doc__items-head, .inv-doc__item { display: grid; grid-template-columns: minmax(0, 1fr) 3rem 6rem 6.5rem; gap: 0.5rem; }
  .inv-doc__items-head { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-foreground); padding-bottom: 0.5rem; border-bottom: 1px solid var(--hairline); }
  .inv-doc__items-head span:not(:first-child), .inv-doc__item-meta, .inv-doc__item-amount { text-align: right; }
  .inv-doc__m { display: none; }
}
.inv-doc__totals { padding: 1rem; border-top: 1px solid var(--hairline); display: grid; gap: 0.375rem; }
.inv-doc__total-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.75rem; color: var(--muted-foreground); }
.inv-doc__grand { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: flex-end; gap: 0.75rem; padding-top: 0.5rem; }
.inv-doc__grand > span:last-child { text-align: right; }
.inv-doc__grand-value { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; word-break: break-word; }
.inv-doc__grand-fiat { display: block; font-size: 0.6875rem; color: var(--muted-foreground); }
.inv-doc__payment { padding: 1rem; border-top: 1px solid var(--hairline); }
.inv-doc__payment-grid { display: grid; gap: 0.75rem; margin-top: 0.75rem; align-items: center; }
@media (min-width: 640px) { .inv-doc__payment-grid { grid-template-columns: auto minmax(0, 1fr); } }
.inv-doc__address { font-size: 0.75rem; word-break: break-all; }
.inv-doc__notes { padding: 1rem; border-top: 1px solid var(--hairline); display: grid; gap: 0.5rem; }

/* ------------------------------------------ Investment Strategy Builder */
.strategy { border-radius: 1.5rem; padding: 1rem; }
.strategy__title { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.strategy__sub { margin-top: 0.25rem; font-size: 11.5px; color: var(--muted-foreground); }
.strategy__field { margin-top: 1.25rem; }
.strategy__hint { margin-top: 0.5rem; font-size: 11px; color: var(--muted-foreground); }
.strategy__error { margin-top: 0.5rem; font-size: 11px; color: var(--negative, #e0736f); }
.strategy__risks { margin-top: 0.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.strategy__risk {
  border-radius: 1rem; border: 1px solid var(--hairline); background: color-mix(in oklab, var(--elevated) 60%, transparent);
  padding: 0.625rem 0.5rem; font-size: 12px; font-weight: 600; color: var(--muted-foreground);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.strategy__risk[data-strategy-risk] { color: var(--risk, var(--muted-foreground)); border-color: color-mix(in oklab, var(--risk, var(--foreground)) 26%, transparent); background: color-mix(in oklab, var(--risk, var(--foreground)) 7%, transparent); opacity: 0.82; }
.strategy__risk[data-strategy-risk="conservative"] { --risk: var(--risk-conservative); }
.strategy__risk[data-strategy-risk="balanced"] { --risk: var(--risk-balanced); }
.strategy__risk[data-strategy-risk="growth"] { --risk: var(--risk-growth); }
.strategy__risk[data-strategy-risk="aggressive"] { --risk: var(--risk-aggressive); }
.strategy__risk.is-active { opacity: 1; font-weight: 700; border-color: color-mix(in oklab, var(--risk, var(--foreground)) 70%, transparent); background: color-mix(in oklab, var(--risk, var(--foreground)) 18%, transparent); }
.strategy__note { margin-top: 0.75rem; font-size: 10.5px; line-height: 1.5; color: var(--muted-foreground); }
.strategy__rows-kicker { display: block; margin: 1rem 0 0.5rem; }
.strategy__rows { display: block; }
.strategy__set { display: grid; gap: 0.25rem; }
.strategy__row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--hairline); }
.strategy__row:last-child { border-bottom: 0; }
.strategy__mark {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none; border-radius: 999px;
  font-size: 10px; font-weight: 600; letter-spacing: -0.01em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.strategy__mark svg { width: 1.25rem; height: 1.25rem; }
.strategy__row-main { min-width: 0; flex: 1; display: grid; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.strategy__row-name { font-size: 12.5px; font-weight: 600; }
.strategy__row-caption { font-size: 10.5px; color: var(--muted-foreground); }
.strategy__row-values { display: grid; justify-items: end; }
.strategy__row-pct { font-size: 12.5px; font-weight: 600; color: var(--mkt-soft, #bfd3ea); }
.strategy__row-amount { font-size: 10.5px; color: var(--muted-foreground); }
.strategy__success { display: grid; justify-items: center; gap: 0.5rem; padding: 1.25rem 0; text-align: center; }
.strategy__success-icon { color: var(--positive, #7fd0a0); }
.strategy__success-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.strategy__success-copy { font-size: 11.5px; color: var(--muted-foreground); max-width: 24rem; }
@media (min-width: 640px) { .strategy__risks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Positions — asset monogram tile, daily income label, compact status control. */
.position-row__mono { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.position-row__daily { display: inline-flex; align-items: baseline; gap: 0.25rem; flex: none; }
.position-row__daily-label { font-size: 10px; color: var(--muted-foreground); }
.positions-status { display: flex; align-items: center; gap: 0.375rem; }
.positions-status__btn {
  border-radius: 999px; border: 1px solid var(--hairline); background: rgba(255, 255, 255, 0.03);
  padding: 0.25rem 0.75rem; font-size: 11.5px; font-weight: 600; color: var(--muted-foreground);
}
.positions-status__btn.is-active {
  border-color: color-mix(in oklab, var(--primary) 50%, transparent);
  background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--primary);
}

/* ---------------------------------------------- Markets Activity feed */
.pa-row { display: flex; width: 100%; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; text-align: left; background: none; border: 0; color: inherit; }
.pa-row__icon {
  display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem;
  border-radius: 1rem; border: 1px solid var(--hairline); background: rgba(255,255,255,0.04);
  color: var(--muted-foreground);
}
.pa-row__icon.is-in { background: color-mix(in oklab, var(--positive) 10%, transparent); color: var(--positive); border-color: transparent; }
.pa-row__body { min-width: 0; flex: 1; display: grid; gap: 0.0625rem; }
.pa-row__title { font-size: 0.875rem; font-weight: 500; }
.pa-row__identity { font-size: 0.6875rem; color: var(--muted-foreground); overflow-wrap: anywhere; }
.pa-row__meta { font-size: 0.6875rem; color: color-mix(in oklab, var(--muted-foreground) 80%, transparent); }
.pa-row__amount { flex: none; text-align: right; font-size: 0.875rem; font-weight: 600; }
.pa-row__amount.is-in { color: var(--positive); }
.pa-asset { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; }
.pa-asset__name { min-width: 0; flex: 1; font-size: 0.875rem; font-weight: 500; }
.pa-asset__amount { flex: none; font-size: 0.875rem; font-weight: 600; }

/* ── Markets → Explore: educational market sections ─────────── */
.explore-markets {
  display: grid;
  gap: 1rem;
}
.explore-market,
.explore-block {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 1rem;
}
@media (min-width: 768px) {
  .explore-market,
  .explore-block {
    padding: 1.25rem;
  }
}
.explore-market::before,
.explore-block--risk::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.explore-market--ai::before {
  background: linear-gradient(150deg, color-mix(in oklab, #4a6fa5 16%, transparent), transparent 62%);
}
.explore-market--metals::before {
  background: linear-gradient(150deg, color-mix(in oklab, #c8a56a 13%, transparent), transparent 58%);
}
.explore-market--crypto::before {
  background: linear-gradient(150deg, color-mix(in oklab, #6c6ff2 15%, transparent), transparent 60%);
}
.explore-block--risk::before {
  background: linear-gradient(150deg, color-mix(in oklab, #c98b6a 12%, transparent), transparent 58%);
}
.explore-market > *,
.explore-block > * {
  position: relative;
}
.explore-market__head,
.explore-block__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.explore-market__head {
  justify-content: space-between;
}
.explore-market__kicker {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.explore-market__title {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.explore-block__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.explore-block__lead {
  margin-top: 0.25rem;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.explore-market__glyph,
.explore-block__glyph {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px var(--border);
}
.explore-block__glyph {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--muted-foreground);
}
.explore-market__text {
  margin-top: 0.625rem;
  margin-bottom: 0.75rem;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.explore-market__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.explore-market__label--spaced {
  display: block;
  margin-top: 0.75rem;
}
.explore-market__body {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 1024px) {
  .explore-market__body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.explore-tags {
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  list-style: none;
  padding: 0;
}
.explore-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 11px;
  color: var(--muted-foreground);
  background: rgb(255 255 255 / 0.04);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05);
}
.explore-tag__dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  flex-shrink: 0;
}
.explore-points {
  padding: 0.625rem 0.75rem;
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.03);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05);
}
.explore-points__title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}
.explore-points__list {
  margin: 0.375rem 0 0;
  display: grid;
  gap: 0.375rem;
  list-style: none;
  padding: 0;
}
.explore-points__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted-foreground);
}
.explore-points__glyph {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--muted-foreground);
}
.explore-points__glyph.is-positive { color: var(--positive); }
.explore-points__glyph svg {
  width: 0.75rem;
  height: 0.75rem;
}
.explore-intro {
  margin-top: 0.625rem;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 1024px) {
  .explore-intro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}
.explore-intro__text p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.explore-intro__text p + p { margin-top: 0.5rem; }
.explore-intro__list {
  align-self: start;
  margin: 0;
  display: grid;
  gap: 0.375rem;
  list-style: none;
  padding: 0.625rem 0.75rem;
  border-radius: 1rem;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted-foreground);
  background: rgb(255 255 255 / 0.03);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05);
}
.explore-grid {
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}
@media (min-width: 640px) {
  .explore-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explore-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .explore-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.explore-card {
  min-width: 0;
  padding: 0.625rem 0.75rem;
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.03);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05);
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted-foreground);
}
.explore-card--tight { padding: 0.5rem 0.75rem; }
.explore-card__title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--foreground);
}
.explore-card__text { margin-top: 0.25rem; }
.explore-compare {
  margin: 0.375rem 0 0;
  display: grid;
  gap: 0.25rem;
  font-size: 11.5px;
}
.explore-compare > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.explore-compare dt { color: var(--muted-foreground); }
.explore-compare dd { margin: 0; font-weight: 500; color: var(--foreground); }
.explore-compare dd.tone-low { color: var(--muted-foreground); }
.explore-compare dd.tone-moderate { color: #d7bd8c; }
.explore-compare dd.tone-high { color: #e0a17a; }
.explore-compare dd.tone-very-high { color: #e08a8a; }
.explore-cta {
  margin-top: 0.75rem;
  width: 100%;
}

/* ---------------------------------------------- Markets → Assets directory */
.asset-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.asset-filter {
  border-radius: 999px;
  padding: 0.375rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: rgb(255 255 255 / 0.03);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
}

.asset-filter.is-active {
  color: var(--foreground);
  background: rgb(255 255 255 / 0.1);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
}

.asset-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.asset-toolbar .asset-search {
  flex: 1;
  min-width: 0;
}

.asset-sort {
  flex-shrink: 0;
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.03);
  color: var(--muted-foreground);
  font-size: 0.72rem;
  padding: 0.5rem 0.55rem;
  outline: none;
}

.asset-sort option {
  background: var(--background);
  color: var(--foreground);
}

.asset-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.03);
  padding: 0.5rem 0.75rem;
  color: var(--muted-foreground);
}

.asset-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--foreground);
  font-size: 0.78rem;
}

.asset-row-wrap[hidden] { display: none; }

.asset-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  color: inherit;
  text-decoration: none;
}

.asset-row:hover { background: rgb(255 255 255 / 0.04); }
.asset-row__main { min-width: 0; flex: 1; }
.asset-row__name { display: block; font-size: 0.84rem; font-weight: 600; }
.asset-row__caption { display: block; font-size: 0.66rem; color: var(--muted-foreground); }
.asset-row__values { flex-shrink: 0; text-align: right; }
.asset-row__price { display: block; font-size: 0.78rem; font-weight: 600; }
.asset-row__change { display: block; font-size: 0.66rem; font-weight: 500; }
.asset-row__change.is-up { color: var(--positive); }
.asset-row__change.is-down { color: var(--negative); }

/* Asset detail */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.72rem;
  color: var(--muted-foreground);
  text-decoration: none;
}

.asset-detail { padding: 1rem; border-radius: 1.5rem; }
.asset-detail__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.asset-detail__name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.asset-detail__category { font-size: 0.72rem; color: var(--muted-foreground); }
.asset-detail__price { font-size: 1.5rem; font-weight: 600; margin-top: 0.25rem; }
.asset-detail__change { font-size: 0.75rem; font-weight: 600; margin-top: 0.35rem; }
.asset-detail__change.is-up { color: var(--positive); }
.asset-detail__change.is-down { color: var(--negative); }

.asset-broker { padding: 0.85rem 1rem; border-radius: 1.5rem; }
.asset-broker__name { font-size: 0.82rem; font-weight: 600; margin-top: 0.25rem; }

.asset-block { padding: 1rem; border-radius: 1.5rem; }
.asset-block h2 { font-size: 0.88rem; font-weight: 600; }
.asset-block p { margin-top: 0.5rem; font-size: 0.78rem; line-height: 1.6; color: var(--muted-foreground); }

/* Editable Strategy Summary rows */
.strategy__check {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  border-radius: 0.375rem;
  border: 1px solid var(--hairline);
  background: rgb(255 255 255 / 0.03);
  color: transparent;
}

.strategy__check.is-on {
  border-color: color-mix(in oklab, var(--primary) 60%, transparent);
  background: color-mix(in oklab, var(--primary) 20%, transparent);
  color: var(--primary);
}

.strategy__check svg { width: 0.85rem; height: 0.85rem; }
.strategy__row.is-excluded { opacity: 0.45; }

.strategy__info {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: 999px;
  color: var(--muted-foreground);
}

.strategy__info:hover { background: rgb(255 255 255 / 0.06); color: var(--foreground); }
.strategy__empty { margin-top: 0.75rem; font-size: 0.72rem; font-weight: 500; color: var(--negative); }

/* =========================================================================
   Public landing page (mirror of the React landing experience)
   ========================================================================= */

.lp-shell { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .lp-shell { padding: 0 1.5rem; } }

.lp-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--background) 80%, transparent);
  backdrop-filter: blur(18px);
}
.lp-header__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }
.lp-brand { display: flex; align-items: center; gap: .625rem; min-width: 0; }
.lp-brand__mark {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: .75rem; border: 1px solid var(--hairline);
  font-family: var(--font-display, inherit); font-weight: 600; font-size: .875rem;
}
.lp-brand__name { font-weight: 600; letter-spacing: -.01em; }
.lp-nav { display: none; gap: 1.75rem; }
.lp-nav a { color: var(--muted-foreground); font-size: .875rem; }
.lp-nav a:hover { color: var(--foreground); }
@media (min-width: 768px) { .lp-nav { display: flex; } }
.lp-header__actions { display: flex; align-items: center; gap: .5rem; }
.lp-link { color: var(--muted-foreground); font-size: .875rem; padding: .5rem .75rem; }

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 1rem; padding: .75rem 1.25rem; font-size: .875rem; font-weight: 600;
}
.lp-btn--primary { background: var(--primary); color: var(--primary-foreground); }
.lp-btn--outline { border: 1px solid var(--hairline); background: var(--card); color: var(--foreground); }
.lp-btn--block { display: flex; width: 100%; margin-top: .75rem; }

.lp-hero { padding: 3rem 0 3.5rem; }
@media (min-width: 1024px) { .lp-hero { padding: 5rem 0; } }
.lp-hero__grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .lp-hero__grid { grid-template-columns: minmax(0,1fr) minmax(0,26rem); align-items: center; } }
.lp-chip {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
  border: 1px solid var(--hairline); background: var(--card); border-radius: 999px;
  padding: .375rem .75rem; font-size: .6875rem; color: var(--muted-foreground);
}
.lp-h1 { font-size: clamp(2.1rem, 8.5vw, 3.75rem); line-height: 1.05; font-weight: 600; letter-spacing: -.02em; }
.lp-lead { margin-top: 1.25rem; max-width: 32rem; color: var(--muted-foreground); line-height: 1.6; }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.lp-preview { border-radius: 1.75rem; padding: 1rem; overflow: hidden; }
.lp-preview--pad { padding: 1.25rem; }
.lp-preview__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-foreground); margin-bottom: .5rem; }
.lp-balance { border-radius: 1.25rem; padding: 1.125rem; }
.lp-balance__label { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-foreground); }
.lp-balance__value { font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; margin-top: .25rem; }
.lp-balance__delta { font-size: .75rem; color: var(--positive); margin-top: .25rem; }
.lp-preview__rows { margin-top: .75rem; }
.lp-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem .25rem; border-top: 1px solid var(--hairline); font-size: .875rem; }
.lp-row:first-child { border-top: 0; }
.lp-row small { display: block; font-size: .75rem; color: var(--muted-foreground); }
.lp-row .positive { color: var(--positive); }
.lp-row .negative { color: var(--negative); }

.lp-ticker { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: .875rem 0; background: color-mix(in oklab, var(--card) 40%, transparent); }
.ticker-viewport { overflow-x: auto; overflow-y: hidden; }
.ticker-track { display: flex; width: max-content; min-width: 100%; }
.ticker-group { display: flex; flex-shrink: 0; align-items: center; }
.ticker-item { display: flex; align-items: baseline; gap: .625rem; padding: 0 1.25rem; font-size: .875rem; white-space: nowrap; }
.ticker-item .positive { color: var(--positive); font-size: .75rem; }
.ticker-item .negative { color: var(--negative); font-size: .75rem; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (min-width: 640px) {
  .ticker-viewport { overflow-x: hidden; }
  .ticker-track { animation: ticker-scroll 48s linear infinite; }
  .ticker-viewport:hover .ticker-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-viewport { overflow-x: auto; }
}

.lp-section { padding: 4rem 0; }
.lp-section__head { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 768px) { .lp-section__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.lp-eyebrow { font-size: .6875rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); margin-bottom: .625rem; }
.lp-h2 { font-size: clamp(1.5rem, 5vw, 2.25rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.lp-copy { margin-top: .75rem; color: var(--muted-foreground); line-height: 1.65; max-width: 34rem; }
.lp-note { margin-top: .75rem; font-size: .75rem; color: var(--muted-foreground); }

.lp-tabs { display: flex; gap: .375rem; overflow-x: auto; }
.lp-tab { flex-shrink: 0; border: 1px solid var(--hairline); background: var(--card); color: var(--muted-foreground); border-radius: 999px; padding: .5rem 1rem; font-size: .875rem; font-weight: 500; }
.lp-tab.is-active { border-color: color-mix(in oklab, var(--primary) 40%, transparent); background: color-mix(in oklab, var(--primary) 12%, transparent); color: var(--foreground); }

.lp-market { margin-top: 1.5rem; border-radius: 1.5rem; overflow: hidden; }
.lp-market__row { display: flex; align-items: center; gap: .75rem; padding: .875rem 1rem; border-top: 1px solid var(--hairline); }
.lp-market__row:first-child { border-top: 0; }
.lp-market__id { flex: 1; min-width: 0; }
.lp-market__id b { display: block; font-size: .875rem; }
.lp-market__id small { display: block; font-size: .75rem; color: var(--muted-foreground); }
.lp-market__spark { display: none; }
@media (min-width: 640px) { .lp-market__spark { display: block; } }
.lp-market__values { width: 7.5rem; text-align: right; flex-shrink: 0; }
.lp-market__values b { display: block; font-size: .875rem; font-weight: 500; }
.lp-market__values small { display: block; font-size: .75rem; }
.lp-market__values .positive { color: var(--positive); }
.lp-market__values .negative { color: var(--negative); }

.lp-features { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .lp-features { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .lp-features { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.lp-feature { border-radius: 1.5rem; padding: 1.25rem; }
.lp-feature__title { font-weight: 600; }
.lp-feature__copy { margin-top: .375rem; font-size: .875rem; color: var(--muted-foreground); line-height: 1.6; }

.lp-split { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .lp-split { grid-template-columns: repeat(2, minmax(0,1fr)); align-items: center; } }

.lp-final { border-radius: 2rem; padding: 3.5rem 1.5rem; text-align: center; }
.lp-final .lp-copy { margin: 1rem auto 2rem; }
.lp-final__note { margin-top: 1.25rem; font-size: .875rem; color: var(--muted-foreground); }
.lp-final__note a { color: var(--foreground); text-decoration: underline; text-underline-offset: 4px; }

.lp-footer { border-top: 1px solid var(--hairline); padding: 2.5rem 0; }
.lp-footer__row { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 640px) { .lp-footer__row { flex-direction: row; align-items: center; justify-content: space-between; } }
.lp-footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .875rem; color: var(--muted-foreground); }
.lp-footer__legal { margin-top: 1.5rem; font-size: .75rem; color: var(--muted-foreground); }

/* ===================================================================
   Public landing — scroll-driven Wallet walkthrough
   =================================================================== */
.lp-btn--hide-sm { display: none; }
@media (min-width: 640px) { .lp-btn--hide-sm { display: inline-flex; } }
.lp-burger {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border: 1px solid var(--hairline); border-radius: .75rem; background: var(--card); color: var(--foreground);
}
@media (min-width: 768px) { .lp-burger { display: none; } .lp-nav { display: flex; } }
.lp-menu { border-top: 1px solid var(--hairline); background: var(--background); }
@media (min-width: 768px) { .lp-menu { display: none; } }
.lp-menu__inner { display: flex; flex-direction: column; gap: .25rem; padding: .75rem 1rem; }
.lp-menu__inner a { color: var(--muted-foreground); font-size: .875rem; padding: .625rem .5rem; }

.preview-frame { border-radius: 1.75rem; padding: 1rem; overflow: hidden; }
.lp-hero__visual { width: 100%; max-width: 26rem; margin: 0 auto; }
@media (min-width: 1024px) { .lp-hero__visual { max-width: none; } }

/* wallet scene */
.wsc { display: flex; flex-direction: column; gap: .875rem; }
.wsc__hero { border-radius: 1.4rem; padding: 1rem; }
.wsc__hero-top { display: flex; align-items: center; justify-content: space-between; }
.wsc__label { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in oklab, var(--foreground) 60%, transparent); }
.wsc__eye { width: 1rem; height: 1rem; color: color-mix(in oklab, var(--foreground) 50%, transparent); }
.wsc__balance { margin-top: .5rem; font-size: clamp(1.6rem, 7vw, 2rem); font-weight: 600; letter-spacing: -.02em; }
.wsc__delta { margin-top: .25rem; font-size: .75rem; color: var(--positive); }
.wsc__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: 1rem; }
.wsc__action {
  display: flex; flex-direction: column; align-items: center; gap: .375rem; padding: .625rem 0;
  border: 1px solid rgb(255 255 255 / .1); background: rgb(255 255 255 / .05);
  border-radius: 1rem; font-size: .6875rem; font-weight: 500;
}
.wsc__action .icon { width: 1rem; height: 1rem; }
.wsc__rows > * + * { border-top: 1px solid var(--hairline); }
.wsc__row { display: flex; align-items: center; gap: .75rem; padding: .75rem 0; }
.wsc__row-info { min-width: 0; flex: 1; }
.wsc__row-name { display: block; font-size: .875rem; font-weight: 500; }
.wsc__row-sub { display: block; font-size: .75rem; color: var(--muted-foreground); }
.wsc__row-values { text-align: right; }
.wsc__row-amount { display: block; font-size: .875rem; font-weight: 500; }
.wsc__row-fiat { display: block; font-size: .75rem; color: var(--muted-foreground); }
.wsc__rates { border: 1px solid var(--hairline); border-radius: 1.4rem; padding: .75rem; background: color-mix(in oklab, var(--secondary) 30%, transparent); }
.wsc__rates-title { font-size: .8125rem; font-weight: 600; padding: 0 .25rem .25rem; }
.rate-row { display: flex; align-items: center; gap: .75rem; padding: .625rem 0; }
.rate-row + .rate-row { border-top: 1px solid var(--hairline); }
.rate-row__badge {
  display: grid; place-items: center; width: 2rem; height: 2rem; flex: none;
  border: 1px solid var(--hairline); border-radius: 999px; background: color-mix(in oklab, var(--secondary) 60%, transparent);
  font-size: .625rem; font-weight: 600; letter-spacing: .04em; color: var(--muted-foreground);
}
.rate-row__info { min-width: 0; flex: 1; }
.rate-row__sym { display: block; font-size: .875rem; font-weight: 500; }
.rate-row__name { display: block; font-size: .75rem; color: var(--muted-foreground); }
.rate-row__spark { display: none; }
@media (min-width: 380px) { .rate-row__spark { display: block; } }
.rate-row__values { width: 5.5rem; flex: none; text-align: right; }
.rate-row__price { display: block; font-size: .875rem; font-weight: 500; }
.rate-row__chg { display: block; font-size: .75rem; }

/* wallet sheets */
.sheet { display: flex; flex-direction: column; gap: .75rem; }
.sheet--divided { border-top: 1px solid var(--hairline); padding-top: .875rem; }
.sheet__head { display: flex; align-items: center; gap: .625rem; }
.sheet__icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; }
.sheet__icon .icon { width: 1rem; height: 1rem; }
.sheet__icon--primary { background: color-mix(in oklab, var(--primary) 15%, transparent); color: var(--primary); }
.sheet__icon--positive { background: color-mix(in oklab, var(--positive) 15%, transparent); color: var(--positive); }
.sheet__icon--info { background: color-mix(in oklab, var(--info, var(--primary)) 15%, transparent); color: var(--info, var(--primary)); }
.sheet__title { font-size: .9375rem; font-weight: 600; }
.sheet__tabs { display: flex; gap: .375rem; }
.sheet__tab { border: 1px solid var(--hairline); background: var(--card); color: var(--muted-foreground); border-radius: 999px; padding: .375rem .75rem; font-size: .75rem; font-weight: 500; }
.sheet__tab.is-active { border-color: color-mix(in oklab, var(--primary) 40%, transparent); background: color-mix(in oklab, var(--primary) 12%, transparent); color: var(--foreground); }
.sheet__field { border: 1px solid var(--hairline); border-radius: 1rem; background: color-mix(in oklab, var(--secondary) 40%, transparent); padding: .75rem .875rem; }
.sheet__field--row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-size: .875rem; }
.sheet__field-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.sheet__field-label { display: block; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-foreground); }
.sheet__field-value { display: block; margin-top: .25rem; font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet__field-strong { margin-top: .25rem; font-size: 1.125rem; font-weight: 600; }
.sheet__field-note { font-size: .75rem; color: var(--muted-foreground); }
.sheet__amount { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .375rem; font-size: 1.25rem; font-weight: 600; }
.sheet__pill { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--hairline); background: var(--card); border-radius: 999px; padding: .25rem .75rem .25rem .25rem; font-size: .75rem; font-weight: 500; }
.sheet__swap { display: flex; justify-content: center; }
.sheet__swap .icon { width: 1rem; height: 1rem; color: var(--muted-foreground); border: 1px solid var(--hairline); background: var(--card); border-radius: 999px; padding: .5rem; box-sizing: content-box; }
.sheet__meta { display: flex; flex-direction: column; gap: .375rem; padding: 0 .25rem; font-size: .75rem; }
.sheet__meta > div { display: flex; justify-content: space-between; }
.sheet__meta dt { color: var(--muted-foreground); }
.sheet__cta { display: block; border-radius: 1rem; background: var(--primary); color: var(--primary-foreground); text-align: center; padding: .75rem; font-size: .875rem; font-weight: 600; }
.sheet__qr { display: grid; place-items: center; border: 1px solid var(--hairline); border-radius: 1rem; background: color-mix(in oklab, var(--secondary) 40%, transparent); padding: 1.75rem 0; }
.sheet__qr--sm { padding: 1rem 0; }
.sheet__qr .icon { width: 3.5rem; height: 3.5rem; color: color-mix(in oklab, var(--foreground) 80%, transparent); }
.sheet__copy { display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border: 1px solid var(--hairline); border-radius: 999px; background: var(--card); }
.sheet__copy .icon { width: .875rem; height: .875rem; color: var(--muted-foreground); }

/* invoice */
.inv__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.inv__no { display: block; font-size: .9375rem; font-weight: 600; }
.inv__status { border: 1px solid var(--hairline); background: var(--card); border-radius: 999px; padding: .25rem .625rem; font-size: .6875rem; font-weight: 500; color: var(--muted-foreground); }
.inv__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; border: 0; background: none; padding: 0; }
.inv__block { transition: opacity .5s ease, transform .5s ease; }
.inv__block[data-hidden] { opacity: 0; transform: translateY(.5rem); }
.inv__pay { display: flex; align-items: center; gap: .75rem; margin-top: .625rem; }
.inv__qr { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; flex: none; border: 1px solid var(--hairline); border-radius: .75rem; background: var(--card); }
.inv__qr .icon { width: 2.25rem; height: 2.25rem; }
.inv__pay-title { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 500; }
.inv__pay-addr { display: block; margin-top: .25rem; font-size: .75rem; color: var(--muted-foreground); }

/* security */
.sec__status { display: flex; align-items: center; gap: .75rem; }
.sec__shield { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; background: color-mix(in oklab, var(--positive) 15%, transparent); color: var(--positive); }
.sec__status-title { display: block; font-size: .875rem; font-weight: 600; }
.sec__status-sub { display: block; font-size: .75rem; color: color-mix(in oklab, var(--foreground) 60%, transparent); }
.sec__spacer { margin-top: .75rem; }
.sec__row { display: flex; align-items: center; gap: .75rem; padding: .625rem 0; font-size: .875rem; opacity: 0; transform: translateY(.5rem); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i) * 80ms); }
.sec__row + .sec__row { border-top: 1px solid var(--hairline); }
[data-security].is-revealed .sec__row { opacity: 1; transform: none; }
.sec__icon { display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 999px; background: var(--secondary); color: var(--muted-foreground); }
.sec__icon .icon { width: 1rem; height: 1rem; }
.sec__label { min-width: 0; flex: 1; }
.sec__value { display: inline-flex; align-items: center; gap: .375rem; flex: none; font-size: .75rem; color: var(--positive); }
.sec__value .icon { width: .875rem; height: .875rem; }

/* market strip */
.lp-strip { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: color-mix(in oklab, var(--card) 40%, transparent); }
.lp-strip__viewport { overflow: hidden; padding: .75rem 0; touch-action: pan-y; cursor: grab; }
.lp-strip__track { display: flex; width: max-content; will-change: transform; }
.lp-strip__group { display: flex; align-items: center; flex: none; }
.lp-strip__item { display: inline-flex; align-items: center; gap: .625rem; padding: 0 1rem; font-size: .875rem; white-space: nowrap; }
.lp-strip__item .tabular { color: var(--muted-foreground); }
.lp-strip__item .positive, .lp-strip__item .negative { font-size: .75rem; }

/* split sections */
.lp-split { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .lp-split { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 3.5rem; align-items: center; } }
.lp-split__visual { width: 100%; max-width: 26rem; margin: 0 auto; }
@media (min-width: 1024px) {
  .lp-split__visual { max-width: none; margin: 0; }
  .lp-split--sticky { align-items: start; }
  .lp-split--sticky .lp-split__copy, .lp-split--sticky .lp-split__visual { position: sticky; top: 6rem; }
}
.lp-steps { display: flex; flex-direction: column; gap: .625rem; margin-top: 1.5rem; font-size: .875rem; color: color-mix(in oklab, var(--muted-foreground) 70%, transparent); }
.lp-steps li { display: flex; align-items: center; gap: .625rem; transition: color .5s ease; }
.lp-steps li span { width: .375rem; height: .375rem; flex: none; border-radius: 999px; background: color-mix(in oklab, var(--muted-foreground) 35%, transparent); transition: background .5s ease; }
.lp-steps li.is-on { color: var(--foreground); }
.lp-steps li.is-on span { background: var(--primary); }

.lp-final { border-radius: 2rem; padding: 3.5rem 1.5rem; text-align: center; }
.lp-final__note { margin-top: 1rem; font-size: .875rem; color: var(--muted-foreground); }
.lp-footer__legal { font-size: .75rem; color: var(--muted-foreground); }

@media (prefers-reduced-motion: reduce) {
  .lp-stage__preview, .inv__block, .sec__row { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------------------
   Public landing — conventional product page (no scroll story).
--------------------------------------------------------------------------- */
.lp-section { padding: 3rem 1rem; }
@media (min-width: 640px) { .lp-section { padding: 5rem 1.5rem; } }
.lp-band { border-block: 1px solid var(--hairline); background: color-mix(in oklab, var(--secondary) 20%, transparent); padding: 3rem 0; }
@media (min-width: 640px) { .lp-band { padding: 5rem 0; } }
.lp-points { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .625rem; font-size: .875rem; color: var(--muted-foreground); }
.lp-points li { position: relative; padding-left: 1rem; }
.lp-points li::before { content: ""; position: absolute; left: 0; top: .55rem; width: .375rem; height: .375rem; border-radius: 999px; background: var(--primary); }

.lp-actions { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 1024px) { .lp-actions { grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); gap: 3rem; align-items: start; } }
.lp-actions__pair { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .lp-actions__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lp-action { max-width: 26rem; margin: 0 auto; width: 100%; }
@media (min-width: 640px) { .lp-action { max-width: none; } }
.lp-action__head { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; }
.lp-action__icon { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 999px; }
.lp-action__icon--primary { background: color-mix(in oklab, var(--primary) 15%, transparent); color: var(--primary); }
.lp-action__icon--positive { background: color-mix(in oklab, var(--positive) 15%, transparent); color: var(--positive); }
.lp-action__icon--info { background: color-mix(in oklab, var(--info) 15%, transparent); color: var(--info); }
.lp-action__title { display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.lp-action__copy { display: block; margin-top: .25rem; font-size: .875rem; line-height: 1.55; color: var(--muted-foreground); }

.lp-fields { margin-top: 1.5rem; max-width: 24rem; border: 1px solid var(--hairline); border-radius: 1.5rem; background: var(--card); padding: 0 1rem; }
.lp-fields > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; font-size: .875rem; border-bottom: 1px solid var(--hairline); }
.lp-fields > div:last-child { border-bottom: 0; }
.lp-fields dt { color: var(--muted-foreground); }
.lp-fields dd { margin: 0; font-weight: 500; text-align: right; }

.lp-rates { margin-top: 2rem; border-radius: 1.75rem; padding: 1rem; }
@media (min-width: 640px) { .lp-rates { padding: 1.25rem; } }
.lp-rates__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.lp-tabs { display: flex; gap: .25rem; padding: .25rem; border: 1px solid var(--hairline); border-radius: 999px; background: color-mix(in oklab, var(--secondary) 50%, transparent); }
.lp-tab { border: 0; background: none; color: var(--muted-foreground); border-radius: 999px; padding: .375rem .75rem; font-size: .75rem; font-weight: 500; cursor: pointer; transition: background .2s ease, color .2s ease; }
.lp-tab.is-active { background: var(--primary); color: var(--primary-foreground); }
.lp-rates__grid { margin-top: .5rem; }
@media (min-width: 640px) { .lp-rates__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }
.lp-rates__grid .rate-row { border-bottom: 1px solid var(--hairline); }
.lp-note--left { text-align: left; }
.lp-fiat { margin-top: 1.5rem; max-width: 23rem; border-radius: 1.75rem; padding: 1rem; }

.act__head { display: flex; align-items: center; justify-content: space-between; padding: 0 .25rem .25rem; }
.act__row { display: flex; align-items: center; gap: .75rem; padding: .75rem 0; border-top: 1px solid var(--hairline); }
.act__icon { display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 999px; background: var(--secondary); color: var(--muted-foreground); }
.act__icon--up { background: color-mix(in oklab, var(--positive) 12%, transparent); color: var(--positive); }
.act__amount { flex: none; font-size: .875rem; text-align: right; }
.fiat__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: .75rem 0; }
.fiat__opt { border: 1px solid var(--hairline); background: color-mix(in oklab, var(--secondary) 40%, transparent); color: var(--muted-foreground); border-radius: 1rem; padding: .625rem 0; text-align: center; font-size: .875rem; font-weight: 500; }
.fiat__opt.is-active { border-color: color-mix(in oklab, var(--primary) 45%, transparent); background: color-mix(in oklab, var(--primary) 15%, transparent); color: var(--foreground); }

.lp-footer__nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .75rem; color: var(--muted-foreground); }

/* ----------------------------------------- Choose Strategy (improved block) */
.spro { border-radius: 1.5rem; padding: 0; overflow: hidden; }
.spro__head { padding: 1rem; border-bottom: 1px solid var(--hairline); background: rgba(255,255,255,0.02); }
.spro__title { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.spro__sub { margin-top: 0.25rem; font-size: 11.5px; line-height: 1.45; color: var(--muted-foreground); }
.spro__body { display: grid; gap: 1.25rem; padding: 1rem; }
.spro__config { display: grid; gap: 1.25rem; min-width: 0; }
.spro__step { min-width: 0; }
.spro__step-label { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-foreground); }
.spro__step-num { letter-spacing: 0; font-weight: 600; opacity: 0.6; }
.spro__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.spro__option, .spro__risk {
  position: relative; display: flex; align-items: center; gap: 0.625rem; text-align: left;
  border: 1px solid var(--hairline); background: rgba(255,255,255,0.03);
  border-radius: 1rem; padding: 0.625rem 0.75rem; color: inherit; transition: background-color 0.18s, border-color 0.18s;
}
.spro__option:hover, .spro__risk:hover { background: rgba(255,255,255,0.05); }
.spro__option-icon { display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 0.75rem; background: rgba(255,255,255,0.05); color: var(--muted-foreground); }
.spro__option-icon svg { width: 1rem; height: 1rem; }
.spro__option-main { min-width: 0; display: grid; }
.spro__option-name, .spro__risk-name { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spro__option-blurb { font-size: 10.5px; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spro__option-check { position: absolute; top: 0.45rem; right: 0.45rem; color: var(--primary); opacity: 0; }
.spro__option-check svg { width: 0.85rem; height: 0.85rem; }
.spro__option.is-active { border-color: color-mix(in oklab, var(--primary) 55%, transparent); background: color-mix(in oklab, var(--primary) 9%, transparent); }
.spro__option.is-active .spro__option-icon { background: color-mix(in oklab, var(--primary) 15%, transparent); color: var(--primary); }
.spro__option.is-active .spro__option-check { opacity: 1; }
.spro__risk { align-items: flex-start; }
.spro__risk-dot { width: 0.375rem; height: 0.375rem; margin-top: 0.35rem; flex: none; border-radius: 999px; background: var(--risk, var(--muted-foreground)); opacity: 0.55; }
.spro__risk[data-spro-risk="conservative"] { --risk: var(--risk-conservative); }
.spro__risk[data-spro-risk="balanced"] { --risk: var(--risk-balanced); }
.spro__risk[data-spro-risk="growth"] { --risk: var(--risk-growth); }
.spro__risk[data-spro-risk="aggressive"] { --risk: var(--risk-aggressive); }
.spro__risk.is-active { border-color: color-mix(in oklab, var(--risk) 60%, transparent); background: color-mix(in oklab, var(--risk) 10%, transparent); }
.spro__risk.is-active .spro__risk-dot { opacity: 1; }
.spro__risk.is-active .spro__risk-name { color: var(--risk); }
.spro__amount { margin-top: 0; }
.spro__amount-foot { gap: 0.5rem; }
.spro__available { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spro__available.is-error { color: var(--negative, #e0736f); }
.spro__quick { display: flex; gap: 0.25rem; flex: none; }
.spro__quick button { border-radius: 999px; background: rgba(255,255,255,0.06); padding: 0.25rem 0.5rem; font-size: 10px; font-weight: 600; color: var(--primary); }
.spro__term-info { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 0.5rem; padding: 0 0.25rem; font-size: 11px; color: var(--muted-foreground); }
.spro__term-info b { font-weight: 600; color: color-mix(in oklab, var(--foreground) 90%, transparent); }
.spro__preview { min-width: 0; }
.spro__preview-card { border: 1px solid var(--hairline); background: rgba(255,255,255,0.03); border-radius: 1.5rem; padding: 1rem; }
.spro__rows { margin-top: 0.5rem; }
.spro__row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--hairline); font-size: 11.5px; color: var(--muted-foreground); }
.spro__row:last-child { border-bottom: 0; }
.spro__row > span:last-child { font-size: 12.5px; font-weight: 600; color: var(--foreground); text-align: right; }
.spro__row .spro__apr { font-family: var(--font-display); font-size: 17px; color: var(--primary); }
.spro__bar { display: flex; gap: 2px; height: 6px; margin-top: 0.875rem; }
.spro__bar span { height: 100%; border-radius: 999px; opacity: 0.8; transition: width 0.3s; }
.spro__legend { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin-top: 0.5rem; font-size: 10.5px; color: var(--muted-foreground); }
.spro__legend span { display: inline-flex; align-items: center; gap: 0.375rem; }
.spro__legend i { width: 0.375rem; height: 0.375rem; border-radius: 999px; }
.spro__narrative { margin-top: 0.5rem; font-size: 11px; line-height: 1.45; color: var(--muted-foreground); }
.spro__cta { margin-top: 1rem; width: 100%; }
.spro__note { margin-top: 0.5rem; text-align: center; font-size: 10.5px; color: var(--muted-foreground); }
@media (min-width: 1024px) {
  .spro__head, .spro__body { padding-left: 1.25rem; padding-right: 1.25rem; }
  .spro__body { grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.5rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
}

/* Strategy Summary → quick asset info sheet */
.ai-sheet__name { margin: 0; font-size: 0.9rem; font-weight: 600; }
.ai-sheet__category { margin: 0.15rem 0 0; font-size: 0.7rem; color: var(--muted-foreground); }
.ai-sheet__short { margin: 0.85rem 0 0; font-size: 0.78rem; line-height: 1.6; color: var(--muted-foreground); }
.ai-sheet .fx-info { margin-top: 0.85rem; }
.ai-sheet .positions-cta { margin-top: 0.85rem; }

/* Canonical empty state (mirrors EmptyState in the React app) */
.empty-state-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.empty-state-block__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: var(--secondary);
  color: var(--muted-foreground);
}
.empty-state-block__title {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
}
.empty-state-block__copy {
  margin: 0.375rem 0 0;
  max-width: 20rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Quick asset info sheet (Strategy Summary → Info) */
.asset-info { padding-bottom: 4px; }
.asset-info__head { display: flex; align-items: center; gap: 12px; }
.asset-info__mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--elevated); overflow: hidden; }
.asset-info__mark img { width: 28px; height: 28px; }
.asset-info__id { min-width: 0; display: grid; }
.asset-info__name { font-size: 14px; font-weight: 600; }
.asset-info__category { font-size: 11px; color: var(--muted-foreground); }
.asset-info__short { margin-top: 16px; font-size: 12.5px; line-height: 1.6; color: var(--muted-foreground); }
.asset-info__facts { margin-top: 16px; border-radius: 16px; padding: 2px 16px; }
.asset-info__link { margin-top: 16px; margin-bottom: 4px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 16px; background: rgba(255,255,255,0.06); padding: 12px; font-size: 12.5px; font-weight: 600; color: var(--primary); text-decoration: none; }
.asset-info__link:hover { background: rgba(255,255,255,0.1); }

.ds-section code { overflow-wrap: anywhere; word-break: break-word; }

/* Real on-chain wallet */
.wallet-identity{min-width:0;display:grid;gap:.35rem}
.wallet-address{display:flex;align-items:center;gap:.4rem;max-width:min(68vw,34rem);padding:0;border:0;background:transparent;color:var(--muted-foreground);font:500 .78rem/1.3 var(--font-mono,monospace);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}
.wallet-address .icon{width:.9rem;height:.9rem;flex:none}
.medallion__fallback{position:absolute;font-size:.65rem;font-weight:700;color:var(--text)}
.medallion img{position:relative;z-index:1}
.wallet-total-code{flex:none;padding-bottom:.4rem;color:var(--muted);font-weight:700}
.onchain-only-pill{width:max-content;border:1px solid color-mix(in oklab,var(--accent) 42%,var(--line));border-radius:999px;padding:.5rem .75rem;color:var(--accent);font-size:.78rem;font-weight:700}
.amount-input-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.75rem}
.amount-input-row strong{min-width:3.75rem;color:var(--text);text-align:right}
.wallet-available{margin-top:.45rem;text-align:right}
.wallet-totp-box{max-width:22rem;margin-inline:auto}
.wallet-totp-input{text-align:center!important;font:700 1.6rem/1 var(--font-mono,monospace)!important;letter-spacing:.42em;padding-left:calc(1rem + .42em)!important}
.qr--real{display:grid;place-items:center;background:#fff;border-radius:1.25rem;padding:.75rem}
.qr--real svg{display:block;width:min(15rem,100%);height:auto}
.tfa-qr--real{display:grid;place-items:center;min-height:14rem;background:#fff;border-radius:1.25rem;padding:.75rem;overflow:hidden}
.tfa-qr--real svg{display:block;width:min(14rem,100%);height:auto}
@media(max-width:520px){.wallet-address{max-width:62vw}.hero__amount{font-size:clamp(2.8rem,14vw,5rem)}}

[data-onchain-wallet][data-device-pending]{visibility:hidden}
[data-crypto-activity][data-device-pending]{visibility:hidden}
