@font-face { font-family: "Geist"; src: url("../../landing/fonts/Geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../../landing/fonts/GeistMono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink-3: #18181B;      /* raised surface, hover */
  --ink-4: #1F1F23;      /* pressed, selected chip */
  --line-2: #2E2E33;     /* hover hairline */
  --mute: #5E5C57;       /* third text role */
  --on-uv: #0A0A0B;
  --uv-hi: #A9D6FF;
  --uv-lo: #6FB2F2;
  --ease: cubic-bezier(.22,1,.36,1);
  --r-xl: 6px; --r-l: 5px; --r-m: 4px; --r-s: 3px;
  --col: 520px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  background: var(--ink);
  color: var(--bone);
  font: 400 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" 0;
}
button, input, output { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
::selection { background: rgba(143,200,255,.35); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--uv); outline-offset: 2px; border-radius: var(--r-s); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--ink-3); border-radius: var(--r-m); text-decoration: none; }
.skip:focus-visible { top: 12px; }

/* ---------- icons, spinner ---------- */
.ic { flex: none; display: block; }
.ic--sm { width: 14px; height: 14px; }
.spin {
  width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 1.5px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite; opacity: .9;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: var(--r-m);
  font-weight: 500; font-size: 14px; white-space: nowrap; text-decoration: none;
  transition-property: background-color, color, box-shadow, transform, opacity;
  transition-duration: 160ms; transition-timing-function: var(--ease);
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn--ghost { box-shadow: inset 0 0 0 1px var(--line); color: var(--bone); }
.btn--ghost:hover { background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; gap: 6px; position: relative; }
.btn--sm::after { content: ""; position: absolute; inset: -4px 0; }
.btn--uv { background: var(--uv); color: var(--on-uv); }
.btn--uv:hover:not(:disabled) { background: var(--uv-hi); }
.btn--uv:active:not(:disabled) { background: var(--uv-lo); }
.btn--big { width: 100%; min-height: 52px; font-size: 15px; border-radius: var(--r-l); }
.btn__in { display: inline-flex; align-items: center; gap: 10px; }
.btn--uv:disabled { background: var(--ink-3); color: var(--ash); cursor: default; }
.btn--uv[data-mode="busy"] { background: var(--uv-lo); color: var(--on-uv); }
.btn--uv[data-mode="busy"]:disabled { background: var(--ink-4); color: var(--bone); }
.btn--uv[data-mode="done"]:disabled { background: var(--ink-4); color: var(--bone); }
.btn--uv[data-mode="done"] .ic { color: var(--uv-hi); }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-m);
  color: var(--ash); transition: color 160ms var(--ease), background-color 160ms var(--ease), transform 160ms var(--ease);
}
.icon-btn:hover { color: var(--bone); background: var(--ink-3); }
.icon-btn:active, .link:active, .tab:active, .disclosure:active, .pop__item:active, .toast__x:active { transform: scale(.97); }

.link {
  font-size: 13px; font-weight: 500; color: var(--bone); min-height: 44px; padding: 0 2px;
  display: inline-flex; align-items: center; text-decoration: underline; text-decoration-color: var(--line-2);
  text-underline-offset: 3px; transition: color 140ms var(--ease), text-decoration-color 140ms var(--ease), transform 140ms var(--ease);
}
.link:hover { text-decoration-color: currentColor; }
.link--uv { color: var(--uv-hi); text-decoration-color: rgba(139,112,255,.35); }

/* ---------- bar ---------- */
.bar {
  max-width: 1120px; margin: 0 auto; height: 72px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; padding-right: 6px; }
.brand__logo { display: grid; place-items: center; width: 22px; height: 22px; color: var(--bone); }
.brand__logo svg { width: 22px; height: 22px; display: block; }
.brand__word { font-weight: 700; font-size: 15px; letter-spacing: .08em; }
.bar__r { display: flex; align-items: center; gap: 8px; }
.net {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  font-size: 13px; color: var(--ash); border-radius: var(--r-m);
}
.wallet { min-width: 104px; }
.wallet.is-on { gap: 8px; padding: 0 12px 0 14px; }
.wallet .mono { font-size: 13px; }
.wallet .ic { color: var(--ash); transition: transform 200ms var(--ease); }
.wallet[aria-expanded="true"] .ic { transform: rotate(180deg); }
.wallet:disabled { cursor: default; color: var(--ash); }

/* ---------- layout ---------- */
.col { max-width: var(--col); margin: 0 auto; padding: 40px 24px 96px; }
@media (min-width: 1200px) {
  .col { max-width: 1120px; display: grid; grid-template-columns: var(--col) minmax(0, 1fr); column-gap: 72px; align-items: start; align-content: center; min-height: calc(100dvh - 72px); padding-top: 16px; padding-bottom: max(48px, 12vh); }
  .col__main { min-width: 0; }
  .col__side { padding-top: 20px; }
  .col__side .accts { margin-top: 0; }
  .col__side .hist { margin-top: 28px; }
}

/* ---------- backdrop: still point field, slow cut ring ---------- */
.bal { position: relative; isolation: isolate; }
.act, .col__side { position: relative; } /* paint above the backdrop */
.field-bg {
  position: absolute; z-index: -1; left: 50%; top: 96px; width: 1000px; aspect-ratio: 1;
  translate: -50% -50%; pointer-events: none; color: var(--bone);
}
.field-bg__f, .field-bg__r { position: absolute; inset: 0; }
.field-bg svg { width: 100%; height: 100%; display: block; }
.field-bg__f { opacity: .09; }
.field-bg__r { opacity: .16; will-change: transform; animation: ring 420s linear infinite; }
@keyframes ring { to { transform: rotate(360deg); } }

/* ---------- balance ---------- */
.bal { padding: 8px 0 32px; }
.bal__top { display: flex; align-items: center; justify-content: space-between; margin: 0 -10px 0 0; height: 44px; }
.label { font-size: 13px; font-weight: 500; color: var(--ash); }
.bal__figw { position: relative; margin-top: 4px; width: fit-content; max-width: 100%; }
.bal__fig {
  font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500;
  font-size: 56px; line-height: 1.05; letter-spacing: -0.045em;
  white-space: nowrap; min-height: 59px; position: relative;
}
.fig__c { color: var(--ash); }
.fig__p { margin: 0 -0.12em; }
.bal__fig .c { position: relative; }
/* redaction bars, one per digit */
.bal__fig .c::after {
  content: ""; position: absolute; left: .07em; right: .1em; top: .2em; bottom: .14em;
  border-radius: 2px; background: var(--bone); opacity: 0;
}
.bal__fig .c.fig__p::after { content: none; }
.bal__fig .c--s::after { content: none; }
.bal__fig.is-red .c:not(.fig__p):not(.c--s), .bal__fig .c.x:not(.fig__p):not(.c--s) { color: transparent; }
.bal__fig.is-red .c::after, .bal__fig .c.x::after { opacity: 1; }
.bal__fig.is-red .fig__p, .bal__fig .c.x.fig__p { color: transparent; }
.bal__fig .c.s { color: var(--ash); }
.bal__fig.is-red .c--s { color: var(--mute); }
.scan {
  position: absolute; left: 0; top: -6px; bottom: -6px; width: 1px; background: var(--uv); opacity: 0;
  box-shadow: 0 0 0 .5px rgba(143,200,255,.35); pointer-events: none;
}
.bal.is-off .bal__fig { color: var(--mute); }
.bal.is-off .fig__c { color: var(--mute); }
.bal__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; min-height: 24px; }
.yield { display: flex; gap: 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
.yield__apy { color: var(--bone); }
.yield__day { color: var(--ash); }
.yield.is-soon .yield__apy { color: var(--ash); }
.bal.is-off .yield { color: var(--mute); }
.bal.is-off .yield__apy { color: var(--ash); }

.anon { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; }
.anon__l { color: var(--ash); }
.anon__bar { display: inline-flex; gap: 2px; }
.anon__bar i { width: 14px; height: 6px; border-radius: 1px; background: var(--line); transition: background-color 240ms var(--ease); }
.anon__v { min-width: 34px; font-weight: 500; transition: color 240ms var(--ease); }
.anon[data-level="good"] .anon__bar i { background: var(--bone); }
.anon[data-level="fair"] .anon__bar i:nth-child(-n+2) { background: var(--bone); }
.anon[data-level="weak"] .anon__bar i:first-child { background: var(--bone); }
.anon[data-level="weak"] .anon__bar i:not(:first-child) { background: none; box-shadow: inset 0 0 0 1px var(--line-2); }
.anon[data-level="weak"] .anon__v { color: var(--bone); }
.anon[data-level="fair"] .anon__v { color: var(--bone); }

.holdings { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; min-height: 32px; }
.hold {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 6px;
  border-radius: var(--r-m); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums;
}
.bal:not(.is-loading) .holdings:empty { display: none; }
.bal.is-off .anon { opacity: .45; }
.hold .mark { width: 20px; height: 20px; font-size: 10px; }
.hold__s { color: var(--ash); }

/* loading skeletons */
.bal.is-loading .bal__fig, .bal.is-loading .yield, .bal.is-loading .holdings { color: transparent; position: relative; }
.bal.is-loading .bal__fig > *, .bal.is-loading .yield > * { visibility: hidden; }
.bal.is-loading .bal__fig::after, .bal.is-loading .yield::after, .bal.is-loading .holdings::after {
  content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%; border-radius: var(--r-s);
  background: var(--ink-3); animation: sk 1.4s var(--ease) infinite;
}
.bal.is-loading .bal__fig::after { width: 260px; height: 44px; border-radius: var(--r-m); }
.bal.is-loading .yield { min-width: 180px; height: 18px; }
.bal.is-loading .yield::after { width: 180px; height: 12px; }
.bal.is-loading .holdings::after { width: 280px; height: 32px; border-radius: var(--r-m); }
.sk { display: block; height: 12px; border-radius: var(--r-s); background: var(--ink-3); animation: sk 1.4s var(--ease) infinite; }
.sk--s { width: 28px; } .sk--m { width: 140px; height: 14px; } .sk--btn { width: 150px; height: 36px; border-radius: var(--r-m); margin-left: auto; }
@keyframes sk { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* veil: every other amount becomes a flat bar */
.amt { transition: color 200ms var(--ease), background-color 200ms var(--ease); border-radius: 3px; }
.veiled .amt { color: transparent !important; background-color: var(--line-2); user-select: none; text-decoration: none; display: inline-block; width: 64px; min-width: 0; overflow: hidden; white-space: nowrap; vertical-align: middle; line-height: 1.2; }
.veiled .hold__v { width: 48px; }
.veiled .amt * { visibility: hidden; }
.veiled .amt:empty { background: none; }
.veiled .hrow.is-error .hrow__amt { text-decoration: none; }

/* ---------- tabs ---------- */
.act { margin-top: 8px; }
.tabs {
  --i: 0;
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 4px; border-radius: var(--r-xl); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
}
.tabs__ind {
  will-change: transform;
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 5);
  border-radius: var(--r-s); background: var(--ink-4); box-shadow: inset 0 0 0 1px var(--line-2);
  transform: translateX(calc(var(--i) * 100%)); transition: transform 260ms var(--ease);
}
.tab {
  position: relative; z-index: 1; height: 40px; border-radius: var(--r-s);
  font-size: 14px; font-weight: 500; color: var(--ash);
  transition: color 160ms var(--ease), transform 160ms var(--ease);
}
.tab:hover { color: var(--bone); }
.tab[aria-selected="true"] { color: var(--bone); }
.tab:focus-visible { outline-offset: -2px; }

/* ---------- panel ---------- */
.panel {
  margin-top: 12px; padding: 12px; border-radius: var(--r-xl);
  background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
}
.panel__body { display: flex; flex-direction: column; gap: 12px; }

.field {
  position: relative; display: flex; align-items: center; gap: 12px;
  border-radius: var(--r-l); background: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 160ms var(--ease);
}
.field:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.field:focus-within { box-shadow: inset 0 0 0 1px var(--uv); }
.field.is-bad { box-shadow: inset 0 0 0 1px var(--uv-hi); }
.field__in {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-variant-numeric: tabular-nums;
}
.field__in::placeholder { color: var(--mute); }
.field--amt { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 12px 2px 16px; cursor: text; }
.field__row { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.field--amt .field__in { font-size: 32px; font-weight: 500; letter-spacing: -0.03em; height: 48px; }
.field--amt .avail { margin: 2px -2px 0 0; }
.field--amt.is-fixed { cursor: default; }
.field--amt.is-fixed .field__in, .field--amt.is-out { background: transparent; cursor: default; }
.field--amt.is-out:hover { box-shadow: inset 0 0 0 1px var(--line); }
.field--amt.is-out.is-empty .field__in { color: var(--mute); }
.field--amt.is-out .field__in { display: flex; align-items: center; }
.field--txt { height: 56px; padding: 0 16px; gap: 12px; }
.field__lab { font-size: 13px; color: var(--ash); flex: none; width: 24px; }
.field__in--txt { font-size: 15px; height: 100%; }
.field__hint { font-size: 12px; color: var(--ash); flex: none; }

/* token marks */
.mark {
  position: relative; width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  font: 600 11px/1 var(--font); color: var(--ash);
}
.mark--img { background: none; box-shadow: none; }
.mark img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; user-select: none; }
.mark--img::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); pointer-events: none; }

.tok {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 8px;
  border-radius: var(--r-m); background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 500; font-size: 15px; flex: none;
  transition: background-color 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease);
}
.tok:hover { background: var(--ink-4); box-shadow: inset 0 0 0 1px var(--line-2); }
.tok:active { transform: scale(.97); }
.tok__c { color: var(--ash); transition: transform 200ms var(--ease); }
.tok[aria-expanded="true"] .tok__c { transform: rotate(180deg); }
.tok--static { padding-right: 14px; cursor: default; background: transparent; }
.tok--static:active { transform: none; }
.tok--static:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }

.avail { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ash); min-height: 40px; }
.avail__usd { color: var(--ash); }
.avail.is-empty { display: none; }
.field--amt:has(.avail.is-empty) { padding-bottom: 12px; }
.avail .link { min-width: 44px; justify-content: flex-end; }
.avail__v { color: var(--bone); margin-right: auto; font-size: 13px; }
.avail .link { margin-right: -2px; }

.meta-row { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; font-size: 13px; color: var(--ash); min-height: 20px; }
.meta-row .mono, .meta-row__v { color: var(--bone); }
.batch {
  display: flex; align-items: center; gap: 8px; padding: 0 4px; font-size: 13px; color: var(--ash);
}
.batch .mono { color: var(--bone); }

.swap-mid { display: flex; justify-content: center; height: 0; position: relative; z-index: 2; margin: -6px 0; }
.flip { position: absolute; top: 50%; translate: 0 -50%; width: 40px; height: 40px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line), 0 0 0 4px var(--ink-2); color: var(--bone); border-radius: var(--r-m); }
.flip:hover .ic { transform: rotate(180deg); }
.flip .ic { transition: transform 240ms var(--ease); }
.flip::after { content: ""; position: absolute; inset: -2px; }
.flip:hover { background: var(--ink-3); }

/* chips */
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.chip {
  min-height: 48px; padding: 0 10px; border-radius: var(--r-m);
  background: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ash);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: background-color 160ms var(--ease), box-shadow 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}
.chip:hover { color: var(--bone); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip:active { transform: scale(.97); }
.chip[aria-checked="true"] { color: var(--bone); background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--uv); }
.chips--2 .chip { font-family: var(--font); align-items: flex-start; padding: 10px 14px; min-height: 60px; }
.chip__l { font-size: 14px; font-weight: 500; }
.chip__s { font-size: 12px; color: var(--ash); font-weight: 400; }

/* advice */
.advice {
  display: flex; align-items: center; gap: 10px; padding: 0 4px 0 12px; min-height: 48px;
  border-radius: var(--r-m); background: rgba(143,200,255,.08); box-shadow: inset 0 0 0 1px rgba(143,200,255,.28);
  font-size: 14px; animation: rise 220ms var(--ease);
}
.advice__ic { color: var(--uv-hi); display: grid; }
.advice__t { flex: 1; text-wrap: pretty; }
.advice__a { padding: 0 10px; text-decoration: none; }
.advice__a:hover { text-decoration: underline; }
.fail {
  display: flex; align-items: center; gap: 10px; padding: 0 4px 0 12px; min-height: 48px;
  border-radius: var(--r-m); background: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 14px; animation: rise 220ms var(--ease);
}
.fail__ic { color: var(--bone); display: grid; }
.fail__t { flex: 1; text-wrap: pretty; }
.fail__a { padding: 0 12px; text-decoration: none; }
.fail__a:hover { text-decoration: underline; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }

/* ---------- popover ---------- */
.anchor { position: relative; }
.pop {
  position: absolute; top: calc(100% + 6px); z-index: 30; min-width: 260px; padding: 6px;
  border-radius: var(--r-l); background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 32px rgba(0,0,0,.5);
  transform-origin: top right; animation: pop-in 160ms var(--ease);
}
.pop--end { right: 0; }
.pop.is-out { animation: pop-out 120ms var(--ease) forwards; pointer-events: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(-2px) scale(.99); } }
.pop__item {
  width: 100%; min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 10px;
  border-radius: var(--r-s); text-align: left; font-size: 14px; color: var(--bone);
  transition: background-color 120ms var(--ease), transform 120ms var(--ease);
}
.pop__item .ic { color: var(--ash); }
.pop__item:hover, .pop__item:focus-visible { background: var(--ink-4); outline: none; }
.pop__item:focus-visible { box-shadow: inset 0 0 0 1px var(--uv); }
.pop__main { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.pop__s { font-weight: 500; }
.pop__n { font-size: 12px; color: var(--ash); }
.pop__b { font-size: 13px; color: var(--ash); }
.pop__ck { color: var(--uv-hi) !important; opacity: 0; }
.pop__item.is-sel .pop__ck { opacity: 1; }
.bar .pop { min-width: 200px; }

/* ---------- sections ---------- */
.accts { margin-top: 48px; }
.sec-h { display: flex; align-items: baseline; gap: 8px; padding: 0 4px 8px; }
.sec-h h2, .disclosure__t { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.sec-h__n { font-family: var(--mono); font-size: 13px; color: var(--ash); font-variant-numeric: tabular-nums; }

.list { border-radius: var(--r-xl); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.row { display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 16px; min-height: 64px; }
.row + .row { box-shadow: inset 0 1px 0 var(--line); }
.empty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; min-height: 64px; color: var(--ash); font-size: 14px; text-wrap: pretty; }

/* the cut thread: wallet point, cut, account point */
.cut { width: 34px; height: 15px; flex: none; overflow: visible; color: var(--ash); }
.cut line { stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; transform-box: fill-box; }
.cut__full { opacity: 0; transform-origin: left center; stroke: var(--uv-hi) !important; }
.cut__a { transform-origin: left center; }
.cut__b { transform-origin: right center; }
.cut__o { fill: var(--mute); }
.cut__p { fill: var(--bone); transform-box: fill-box; transform-origin: center; transition: fill 300ms var(--ease); }
.acct.is-funding .cut__p { fill: var(--ink-2); stroke: var(--uv-hi); stroke-width: 1.2; }
.acct__main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.acct__balw { display: flex; align-items: center; gap: 8px; }
.acct__balw .mark { width: 20px; height: 20px; }
.acct__bal { font-size: 15px; font-weight: 500; white-space: nowrap; }
.acct__sub { font-size: 12px; color: var(--ash); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.acct__sub > span:first-child { color: var(--bone); }
.acct__pnl { font-size: 14px; min-width: 76px; text-align: right; }
.acct__pnl.is-neg { color: var(--ash); }
.acct__open .ic { color: var(--ash); }
.acct__open-s { display: none; }
@media (max-width: 560px) { .acct__open-s { display: inline; } }
.acct__open[aria-disabled] { opacity: .6; pointer-events: none; }
.acct.is-funding .acct__bal { color: var(--bone); }

.pips { display: inline-flex; gap: 4px; }
.pips i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); transition: background-color 300ms var(--ease), transform 300ms var(--ease); }
.pips i.on { background: var(--uv-hi); }
.pips i.in { animation: arrive 300ms var(--ease) backwards; }
@keyframes arrive { 0% { transform: translateY(-7px) scale(.4); background: var(--bone); } 60% { transform: translateY(1px) scale(1.25); } }

.hist { margin-top: 32px; }
.disclosure {
  width: 100%; display: flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 10px 4px; text-align: left;
  border-radius: var(--r-m); transition: transform 140ms var(--ease);
}
.disclosure__c { margin-left: auto; align-self: center; width: 16px; height: 16px; position: relative; color: var(--ash); transition: transform 200ms var(--ease), color 160ms var(--ease); }
.disclosure__c::before { content: ""; position: absolute; inset: 4px 3px 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) scale(.7); transform-origin: center; }
.disclosure[aria-expanded="true"] .disclosure__c { transform: rotate(180deg); }
.disclosure:hover .disclosure__c { color: var(--bone); }
.hist__body { overflow: hidden; margin-top: 4px; }

.hrow .mark { width: 24px; height: 24px; }
.hrow__main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.hrow__t { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow__time { font-size: 12px; color: var(--ash); }
.hrow__r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.hrow__amt { font-size: 14px; }
.hrow__st:empty { display: none; }
.hrow__st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ash); }
.hrow__st .spin { width: 10px; height: 10px; }
.hrow.is-wave .hrow__st, .hrow.is-in-batch .hrow__st, .hrow.is-pending .hrow__st { color: var(--bone); }
.st--err { color: var(--bone); }
.hrow.is-error .hrow__amt { color: var(--ash); text-decoration: line-through; text-decoration-color: var(--mute); }

/* ---------- toasts ---------- */
.toasts {
  position: fixed; left: 50%; translate: -50% 0; top: 10px; z-index: 60; /* over the empty middle of the bar */
  display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: min(400px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
  pointer-events: auto; width: 100%; display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 14px; min-height: 52px;
  border-radius: var(--r-l); background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2), 0 16px 40px rgba(0,0,0,.55);
  font-size: 14px; animation: toast-in 260ms var(--ease);
}
.toast.is-out { animation: toast-out 200ms var(--ease) forwards; }
.toast__ic { display: grid; color: var(--ash); }
.toast--done .toast__ic { color: var(--uv-hi); }
.toast--error .toast__ic { color: var(--bone); }
.toast__tx { flex: 1; text-wrap: pretty; }
.toast__x { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ash); border-radius: var(--r-m); transition: color 140ms var(--ease), background-color 140ms var(--ease), transform 140ms var(--ease); }
.toast__x:hover { color: var(--bone); background: var(--ink-4); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-6px); } }

/* ---------- load entrance ---------- */
body:not(.is-ready) .bal, body:not(.is-ready) .act, body:not(.is-ready) .accts, body:not(.is-ready) .hist { opacity: 0; }
body.is-ready .bal, body.is-ready .act, body.is-ready .accts, body.is-ready .hist { animation: enter 300ms var(--ease) backwards; }
body.is-ready .act { animation-delay: 50ms; }
body.is-ready .accts { animation-delay: 100ms; }
body.is-ready .hist { animation-delay: 140ms; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }

/* ---------- mobile ---------- */
@media (max-width: 560px) {
  .bar { height: 64px; padding: 0 16px; }
  .net { padding: 0 8px; }
  .col { padding: 20px 16px 96px; }
  .bal { padding-bottom: 24px; }
  .bal__fig { font-size: 44px; min-height: 47px; }
  .bal__meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tabs { padding: 3px; }
  .tabs__ind { top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 5); }
  .tab { font-size: 12.5px; letter-spacing: -0.02em; }
  .toasts { top: 6px; }
  .toast + .toast { display: none; } /* one at a time on a phone */
  .holdings { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 20px -16px 0; padding: 0 16px; }
  .holdings::-webkit-scrollbar { display: none; }
  .hold { flex: none; }
  .col { overflow-x: clip; }
  .bal__top { margin-right: -4px; }
  .field-bg { width: 680px; top: 84px; }
  .field--amt .field__in { font-size: 28px; }
  .accts { margin-top: 40px; }
  .acct { gap: 12px; }
  .acct__open-l { display: none; }
  .acct__open { min-height: 40px; }
  .acct__pnl { min-width: 0; }
}
@media (max-width: 360px) {
  .net { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .spin { animation: spin 1.4s linear infinite !important; }
}
