@font-face {
  font-family: "DM Sans";
  src: url("./dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("./geist.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --body-face: "DM Sans", "Helvetica Neue", sans-serif;
  --heading: "Geist", "Helvetica Neue", sans-serif;
}
svg.folio-icon {
  --glyph-ease: cubic-bezier(.22,.78,.24,1);
  --detail-pose: scale(1.2);
  --body-pose: translateY(1px);
  display: inline-block;
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  pointer-events: none;
}
.folio-icon use {
  transform-box: view-box;
  transform-origin: center;
  --layer-pose: var(--body-pose);
}
.folio-icon use:last-child {
  transform-origin: var(--detail-pivot, center);
  --layer-pose: var(--detail-pose);
}
.folio-icon[data-glyph="grid"] { --detail-pose: translate(1px,-1px) rotate(90deg); --detail-pivot: 17.5px 6.5px; }
.folio-icon[data-glyph="market-icon"] { --body-pose: translateY(-2.7px); --detail-pose: translateY(4.8px) scaleY(.86); }
.folio-icon[data-glyph="portfolio-icon"] { --body-pose: rotate(-7deg); --detail-pose: translate(2px,-2px) rotate(-23deg); --detail-pivot: 20px 14px; }
.folio-icon[data-glyph="receipt-icon"] { --body-pose: translateY(-2px) rotate(-7deg); --detail-pose: translateY(3px) scaleX(.45); --detail-pivot: 8.5px 12px; }
.folio-icon[data-glyph="archive"] { --body-pose: translateY(1.5px); --detail-pose: translateY(-3px) rotate(-13deg); --detail-pivot: 5px 8px; }
.folio-icon[data-glyph="search"] { --body-pose: translate(1px,1px); --detail-pose: translate(-1px,-1px) scale(1.19); --detail-pivot: 10.5px 10.5px; }
.folio-icon[data-glyph="panel"] { --detail-pose: translateX(6px); }
.folio-icon[data-glyph="limits"] { --detail-pose: translateX(4.3px); }
.folio-icon[data-glyph="home-icon"] { --detail-pose: scaleX(.2); --detail-pivot: 9.5px 16px; }
.folio-icon[data-glyph="activity"] { --body-pose: scaleX(.8); --detail-pose: scaleY(.65); }
.folio-icon[data-glyph="shield"] { --body-pose: scale(1.12); --detail-pose: scale(.68); }
.folio-icon:is([data-glyph="market-icon"], [data-glyph="archive"], [data-glyph="grid"]) use:last-child {
  fill: color-mix(in srgb, currentColor 24%, transparent);
}
.folio-icon:is([data-glyph="portfolio-icon"], [data-glyph="limits"]) use:last-child { fill: var(--card); }
.shell .shortcut .folio-icon { width: 26px; height: 26px; }
#sidebar nav .folio-icon { width: 24px; height: 24px; }
.shell :is(#wallet, #connect)::before {
  content: "";
  flex: none;
  width: 19px;
  height: 19px;
  background: currentColor;
  mask: url(/assets/wallet.svg) center / contain no-repeat;
}
.shell #sidebar nav a { position: relative; }
.shell #sidebar nav a::after {
  content: "";
  position: absolute;
  border-radius: 3px;
  background: currentColor;
  pointer-events: none;
  opacity: 0;
}
#sidebar nav a::after { inset: 25% auto 25% 0; width: 3px; transform: scaleY(.25); }
.shell #sidebar nav a[aria-current="page"]::after {
  opacity: 1;
  transform: none;
}
.shell .tabs button:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes folio-hover {
    0% { transform: none; stroke-dashoffset: var(--trace-start, 0); }
    42% { transform: var(--layer-pose); }
    100% { transform: none; stroke-dashoffset: 0; }
  }
  @keyframes folio-select {
    0% { transform: none; stroke-dashoffset: var(--trace-start, 0); }
    32%, 47% { transform: var(--layer-pose); }
    100% { transform: none; stroke-dashoffset: 0; }
  }
  @keyframes folio-wallet-open {
    38% { transform: translateY(-2px) rotate(-16deg) scale(1.13); }
    70% { transform: rotate(4deg); }
  }
  @keyframes folio-panel {
    from { opacity: .72; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes folio-heading {
    from { opacity: .75; transform: translateX(-10px); }
    to { opacity: 1; transform: none; }
  }
  @media (hover: hover) {
    :is(a, button:enabled):hover .folio-icon use { animation: folio-hover 540ms var(--glyph-ease); }
    .shell :is(#wallet, #connect):enabled:hover::before { animation: folio-wallet-open 520ms ease-out; }
    .shell .shortcut:hover .shortcut-icon { transform: translateY(-2px) scale(1.09); }
    .shell :is(a.primary, button.primary:enabled):hover { translate: 0 -2px; }
  }
  :is(a, button:enabled):is(:focus-visible, :active) .folio-icon use {
    animation: folio-hover 540ms var(--glyph-ease);
  }
  :is(a[aria-current="page"], button[aria-pressed="true"]) .folio-icon[data-glyph] use {
    animation: folio-select 600ms var(--glyph-ease);
  }
  .folio-icon:is([data-glyph="activity"], [data-glyph="shield"]) use:last-child {
    --trace-start: 1;
    stroke-dasharray: 1;
  }
  :is(a, button:enabled) > .folio-icon { transition: scale 160ms var(--glyph-ease); }
  @media (hover: hover) {
    :is(a, button:enabled):hover > .folio-icon { scale: 1.12; }
  }
  :is(a, button:enabled):focus-visible > .folio-icon { scale: 1.12; }
  :is(a, button:enabled):active > .folio-icon { scale: .92; }
  .shell :is(#wallet, #connect):enabled:is(:focus-visible, :active)::before { animation: folio-wallet-open 520ms ease-out; }
  .shell :is(a.primary, button.primary) { transition-property: background-color, color, border-color, box-shadow, translate; }
  .shell :is(a.primary, button.primary:enabled):active { translate: 0 1px; }
  .shell .shortcut-icon { transition: transform 180ms ease-out; }
  .shell .shortcut:focus-visible .shortcut-icon { transform: scale(1.09); }
  .shell .shortcut:active .shortcut-icon { transform: scale(.92); }
  .shell #sidebar nav a::after { transition: transform 260ms ease-out, opacity 160ms ease-out; }
  .shell :is(#private-controls, #market-controls) > :not([hidden]),
  .shell #overview-grid:not([hidden]), .shell #market:not([hidden]) { animation: folio-panel 290ms cubic-bezier(.18,.75,.23,1); }
  .shell .banner-copy { animation: folio-heading 380ms cubic-bezier(.18,.75,.23,1); }
}
