body {
      --dash-bg: var(--rf-invest-bg);
      --dash-panel: var(--rf-invest-panel);
      --dash-panel-strong: var(--rf-invest-panel-strong);
      --dash-line: var(--rf-invest-line);
      --dash-muted: var(--rf-invest-muted);
      --dash-muted-2: var(--rf-invest-muted-2);
      --dash-purple: var(--rf-invest-purple);
      --dash-purple-2: var(--rf-invest-purple-2);
      --dash-cyan: var(--rf-invest-cyan);
      --dash-amber: var(--rf-invest-amber);
      --dash-blue: var(--rf-invest-blue);
      --dash-green: var(--rf-invest-green);
      --dash-red: var(--rf-invest-red);
      background: var(--rf-bg);
      font-family: Inter, Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    .invest-dashboard-mock {
      min-height: 100vh;
      color: #fff;
    }

    .invest-dashboard-mock .invest-nav-shell,
    .invest-dashboard-mock .invest-bottom-nav {
      display: none;
    }

    .dashboard-mobile-nav-proxy {
      display: none;
    }

    .dashboard-topbar {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: stretch;
      min-height: 4.25rem;
      border-bottom: 1px solid var(--dash-line);
      background: var(--rf-bg);
      padding: 0 1.55rem;
    }

    .dashboard-topbar__left,
    .dashboard-topbar__right {
      display: flex;
      align-items: center;
      gap: 1.2rem;
      min-width: 0;
    }

    .dashboard-brand {
      display: inline-flex;
      align-items: center;
      gap: 0.58rem;
      min-height: 3rem;
      padding: 0 0.7rem 0 0.35rem;
      background: rgba(0, 0, 0, 0.18);
      color: #fff;
      font-size: 1rem;
      font-weight: 760;
      letter-spacing: 0.34em;
      text-decoration: none;
      white-space: nowrap;
    }

    .dashboard-brand img {
      width: 2rem;
      height: 2rem;
      object-fit: contain;
    }

    .dashboard-nav {
      display: flex;
      align-items: stretch;
      gap: 2.05rem;
      height: 100%;
      margin-left: 3.35rem;
    }

    .dashboard-nav a {
      position: relative;
      display: inline-flex;
      align-items: center;
      color: rgba(230, 235, 247, 0.78);
      font-size: 0.82rem;
      font-weight: 520;
      text-decoration: none;
      transition: color 0.16s ease;
      white-space: nowrap;
    }

    .dashboard-nav a:hover,
    .dashboard-nav a.is-active {
      color: #fff;
    }

    .dashboard-nav a.is-active {
      color: var(--dash-purple);
    }

    .dashboard-nav a.is-active::after {
      content: "";
      position: absolute;
      right: 0;
      bottom: -1px;
      left: 0;
      height: 2px;
      background: var(--dash-purple);
    }

    .dashboard-icon-button {
      display: none;
      place-items: center;
      width: 2.35rem;
      height: 2.35rem;
      border: 0;
      border-left: 1px solid var(--dash-line);
      background: transparent;
      color: rgba(255, 255, 255, 0.86);
    }

    .dashboard-profile {
      display: inline-grid;
      grid-template-columns: 2.1rem auto;
      align-items: center;
      gap: 0.48rem;
      color: #fff;
      text-decoration: none;
    }

    .dashboard-avatar {
      position: relative;
      display: grid;
      place-items: center;
      width: 2.1rem;
      height: 2.1rem;
      border-radius: 50%;
      background: var(--dash-purple);
      font-size: 0.82rem;
      font-weight: 760;
    }

    .dashboard-profile__chevron {
      color: rgba(255, 255, 255, 0.78);
    }

    .dashboard-avatar::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: -0.05rem;
      width: 0.38rem;
      height: 0.38rem;
      border-radius: 50%;
      background: #16d85b;
    }

    .mobile-metric-icon--allocation {
      color: var(--dash-amber);
      background: color-mix(in srgb, var(--dash-amber) 13%, transparent);
    }

    .mobile-metric-icon--cash {
      color: var(--dash-green);
      background: color-mix(in srgb, var(--dash-green) 13%, transparent);
    }

    .dashboard-profile__name {
      font-size: 0.82rem;
      font-weight: 720;
      line-height: 1.1;
      white-space: nowrap;
    }

    .invest-dashboard-main {
      max-width: none;
      padding: 1.45rem 2rem 2rem;
    }

    .dashboard-hello {
      display: grid;
      gap: 0.35rem;
      margin-bottom: 1.25rem;
    }

    .dashboard-hello h1 {
      font-size: 1.42rem;
      font-weight: 700;
      letter-spacing: -0.045em;
    }

    .dashboard-hello p,
    .dash-muted {
      color: var(--dash-muted);
    }

    .dashboard-stats {
      margin-bottom: 0;
    }

    .dashboard-stat {
      position: relative;
      grid-template-columns: minmax(0, 1fr) minmax(5.9rem, auto);
      column-gap: 1rem;
      min-height: 4.55rem;
    }

    .dashboard-stat__label {
      grid-column: 1 / -1;
      display: flex;
      align-items: center;
      gap: 0.35rem;
      color: var(--dash-muted);
      font-size: 0.72rem;
    }

    .dashboard-stat__label::after {
      content: "ⓘ";
      color: var(--dash-muted);
      font-size: 0.72rem;
      text-transform: none;
    }

    .dashboard-stat__value {
      align-self: start;
      font-size: 1.32rem;
      line-height: 1.04;
      white-space: nowrap;
    }

    .dashboard-stat__currency {
      display: inline-block;
      color: #fff;
      font-size: 0.82rem;
      letter-spacing: 0.04em;
      white-space: nowrap;
    }

    .dashboard-stat__delta {
      color: var(--dash-green);
      font-size: 0.86rem;
      font-weight: 650;
      grid-column: 1 / 2;
    }

    .dashboard-stat__spark {
      grid-column: 2 / 3;
      grid-row: 2 / 4;
      width: 6.3rem;
      height: 2.55rem;
      justify-self: end;
      align-self: center;
    }

    .dashboard-stat__spark path,
    .dashboard-stat__spark rect {
      filter: drop-shadow(0 0 8px rgba(124, 60, 255, 0.35));
    }

    .dashboard-stat__wallet {
      display: grid;
      place-items: center;
      grid-column: 2 / 3;
      grid-row: 2 / 4;
      justify-self: end;
      align-self: center;
      width: 2.15rem;
      height: 2.15rem;
      color: var(--dash-purple);
    }

    .dashboard-range-tabs button.is-active {
      background: rgba(124, 60, 255, 0.28);
      color: #fff;
      box-shadow: none;
    }

    .dashboard-period {
      width: max-content;
      max-width: 100%;
      min-width: 0;
      min-height: 2.25rem;
      border-radius: 0.42rem;
      padding: 0 0.75rem;
      gap: 0.5rem;
      font-size: 0.86rem;
      white-space: nowrap;
      justify-self: end;
    }

    .dashboard-period svg {
      width: 1rem;
      height: 1rem;
      flex: 0 0 auto;
    }

    .dashboard-period-wrap {
      position: relative;
    }

    .dashboard-period-menu {
      position: absolute;
      z-index: 20;
      top: calc(100% + 0.35rem);
      right: 0;
      display: none;
      min-width: 10rem;
      border: 1px solid var(--dash-line);
      background: #040816;
      padding: 0.3rem;
    }

    .dashboard-period-wrap.is-open .dashboard-period-menu {
      display: grid;
    }

    .dashboard-period-option {
      border: 0;
      background: transparent;
      color: var(--dash-muted);
      padding: 0.48rem 0.62rem;
      text-align: left;
      font-size: 0.78rem;
    }

    .dashboard-period-option:hover,
    .dashboard-period-option.is-active {
      color: #fff;
      background: rgba(124, 77, 255, 0.12);
    }

    .dashboard-grid {
      display: grid;
      grid-template-columns: minmax(0, 8fr) minmax(360px, 4fr);
      gap: 1.15rem;
      align-items: start;
    }

    .dashboard-main-layout {
      display: grid;
      grid-template-columns: 19rem minmax(0, 1fr);
      gap: 1.15rem;
      align-items: start;
      margin-top: 1.05rem;
    }

    .dashboard-main-stack {
      display: grid;
      min-width: 0;
      gap: 1.05rem;
    }

    .dashboard-lower-grid {
      grid-template-columns: 19rem minmax(0, 1fr);
      gap: 1.15rem;
      margin-top: 1.05rem;
    }

    .dashboard-accounts-chart-grid {
      grid-template-columns: 19rem minmax(0, 1fr);
      gap: 1.15rem;
      margin-top: 1.05rem;
      align-items: stretch;
    }

    .dashboard-table-allocation-grid {
      grid-template-columns: minmax(0, 8fr) minmax(360px, 4fr);
      gap: 1.15rem;
      margin-top: 1.05rem;
      align-items: start;
    }

    .dashboard-panel--bare {
      border-color: transparent;
      background: transparent;
      box-shadow: none;
    }

    .portfolio-chart-card {
      border-top: 1px solid var(--dash-line);
      min-height: 300px;
      padding: 0.95rem 0 0.4rem;
    }

    .dashboard-main-stack .portfolio-chart-card {
      min-height: 22.5rem;
    }

    .dashboard-main-stack .portfolio-chart {
      min-height: 18.6rem;
    }

    .dashboard-main-stack .portfolio-chart svg {
      height: clamp(300px, 25vw, 335px);
    }

    .portfolio-chart {
      position: relative;
      min-height: clamp(230px, 19vw, 255px);
      padding: 0.35rem 0 0;
    }

    .portfolio-chart svg {
      display: block;
      width: 100%;
      height: clamp(230px, 19vw, 255px);
      overflow: visible;
    }

    .chart-grid-line {
      stroke: rgba(148, 163, 184, 0.09);
      stroke-width: 1;
    }

    .chart-area {
      fill: url(#portfolioGradient);
      opacity: 0.9;
    }

    .chart-line {
      fill: none;
      stroke: var(--dash-purple);
      stroke-width: 2.3;
      filter: drop-shadow(0 0 12px rgba(124, 60, 255, 0.5));
    }

    .chart-dot {
      fill: #fff;
      stroke: var(--dash-purple);
      stroke-width: 3;
    }

    .chart-axis-label {
      fill: var(--dash-muted);
      font-size: 0.68rem;
      font-weight: 520;
    }

    .chart-crosshair {
      stroke: rgba(255, 255, 255, 0.16);
      stroke-width: 1;
      stroke-dasharray: 3 4;
      opacity: 0;
      transition: opacity 0.12s ease;
    }

    .chart-hover-zone {
      fill: transparent;
      cursor: crosshair;
    }

    .chart-tooltip {
      position: absolute;
      z-index: 4;
      min-width: 8.5rem;
      border: 1px solid var(--dash-line);
      border-radius: 0.42rem;
      background: rgba(5, 6, 10, 0.92);
      padding: 0.62rem 0.72rem;
      color: #fff;
      font-size: 0.78rem;
      line-height: 1.35;
      pointer-events: none;
      opacity: 0;
      transform: translate(-50%, -112%);
      transition: opacity 0.12s ease;
      box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    }

    .chart-tooltip.is-visible,
    .portfolio-chart.is-hovering .chart-crosshair {
      opacity: 1;
    }

    .chart-tooltip__date {
      color: var(--dash-muted);
      font-size: 0.72rem;
    }

    .chart-tooltip__value {
      margin-top: 0.14rem;
      font-size: 0.92rem;
      font-weight: 720;
    }

    .allocation-card {
      border-top: 1px solid var(--dash-line);
      min-height: 300px;
      padding-top: 0.95rem;
      position: relative;
    }

    .allocation-body {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0;
      align-items: center;
      min-height: 235px;
      padding: 0.1rem 0.1rem 0 0.1rem;
      justify-items: center;
    }

    .allocation-legend {
      display: none;
    }

    .donut {
      position: relative;
      width: min(252px, calc(100% - 0.5rem));
      aspect-ratio: 1;
      border-radius: 50%;
      background: conic-gradient(var(--dash-purple) 0 45%, var(--dash-cyan) 45% 71%, var(--dash-amber) 71% 87%, var(--dash-blue) 87% 95%, #64748b 95% 100%);
      box-shadow: none;
    }

    .donut::after {
      content: "";
      position: absolute;
      inset: 14%;
      border-radius: 50%;
      background: #040816;
      box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.38);
    }

    .donut__center {
      position: absolute;
      inset: 14%;
      z-index: 1;
      display: grid;
      place-content: center;
      justify-items: center;
      text-align: center;
      min-width: 0;
    }

    .donut__value {
      white-space: nowrap;
      font-size: clamp(0.62rem, 0.74vw, 0.86rem);
      font-weight: 760;
      line-height: 1.05;
      letter-spacing: -0.06em;
    }

    .donut__currency,
    .donut__label {
      color: var(--dash-muted);
      font-size: 0.62rem;
      line-height: 1.15;
    }

    .allocation-tooltip {
      position: absolute;
      top: 1rem;
      right: 0.5rem;
      min-width: 11rem;
      max-width: 14rem;
      display: grid;
      gap: 0.82rem;
      padding: 0.9rem 1rem;
      min-width: 0;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(4, 8, 22, 0.94);
      box-shadow: 0 18px 42px rgba(0,0,0,0.34);
      opacity: 0;
      transform: translateY(8px);
      pointer-events: none;
      transition: opacity .18s ease, transform .18s ease;
      z-index: 3;
    }

    .allocation-card:hover .allocation-tooltip,
    .allocation-card:focus-within .allocation-tooltip {
      opacity: 1;
      transform: translateY(0);
    }

    .legend-row {
      display: grid;
      grid-template-columns: 0.65rem auto;
      gap: 0.62rem;
      align-items: center;
      font-size: 0.92rem;
    }

    .legend-percent {
      color: #fff;
      font-weight: 760;
      line-height: 1.05;
      white-space: nowrap;
    }

    .legend-dot {
      width: 0.65rem;
      height: 0.65rem;
      border-radius: 999px;
    }

    .legend-dot--0 { background: var(--dash-purple); }
    .legend-dot--1 { background: var(--dash-cyan); }
    .legend-dot--2 { background: var(--dash-amber); }
    .legend-dot--3 { background: var(--dash-blue); }
    .legend-dot--4 { background: var(--rf-text-muted); }

    .accounts-card {
      border-top: 1px solid var(--dash-line);
      padding: 1rem 0 0;
    }

    .accounts-head {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 0.7rem;
      margin-bottom: 1.05rem;
    }

    .accounts-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      min-width: 0;
    }

    .accounts-connect-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 2.15rem;
      padding: 0 0.95rem;
      border-radius: 0.22rem;
      background: var(--dash-purple);
      color: #fff;
      font-size: 0.74rem;
      font-weight: 700;
      white-space: nowrap;
      box-shadow: 0 0 22px rgba(124, 77, 255, 0.2);
    }

    .holdings-count-pill {
      display: inline-grid;
      min-width: 1.4rem;
      height: 1.3rem;
      place-items: center;
      border-radius: 0.4rem;
      background: rgba(124, 77, 255, 0.35);
      color: #fff;
      font-size: 0.72rem;
    }

    .holdings-clear-filter {
      color: var(--dash-purple);
      font-size: 0.72rem;
      font-weight: 650;
      text-transform: none;
      white-space: nowrap;
    }

    .accounts-title {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      width: 100%;
    }

    .account-bars {
      display: grid;
      gap: 0.78rem;
      max-height: calc((0.82rem * 1.2 + 0.78rem) * 5);
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-width: none;
    }

    .account-bars::-webkit-scrollbar {
      display: none;
    }

    .dashboard-provider-rows {
      max-height: 23.6rem;
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-width: none;
    }

    .dashboard-provider-rows::-webkit-scrollbar {
      display: none;
    }

    .connection-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(5.8rem, auto);
      gap: 0.65rem;
      align-items: start;
      min-width: 0;
      border: 0;
      border-bottom: 1px solid var(--dash-line);
      background: transparent;
      padding: 0.82rem 0;
      cursor: pointer;
      transition: background-color 160ms ease, border-color 160ms ease, padding-inline 160ms ease;
    }

    .connection-row:hover,
    .connection-row.is-selected {
      border-color: rgba(124, 77, 255, 0.42);
      background: rgba(124, 77, 255, 0.07);
      padding-inline: 0.45rem;
    }

    .connection-main {
      display: grid;
      grid-template-columns: 1.25rem minmax(0, 1fr);
      gap: 0.72rem;
      align-items: start;
      min-width: 0;
    }

    .connection-mark {
      display: inline-flex;
      width: 1.15rem;
      height: 1.15rem;
      align-items: center;
      justify-content: center;
      margin-top: 0.04rem;
      flex: 0 0 auto;
    }

    .connection-mark img,
    .connection-mark svg {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .connection-mark--brand {
      width: 1.05rem;
      height: 1.32rem;
    }

    .connection-value {
      color: #fff;
      font-size: 0.82rem;
      font-weight: 560;
      white-space: nowrap;
    }

    .connection-status {
      margin-top: 0.18rem;
      color: var(--dash-green);
      font-size: 0.74rem;
      line-height: 1.1;
    }

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

    .connection-row__meta {
      margin-top: 0.12rem;
      line-height: 1.1;
    }

    .connection-action {
      min-height: 1.8rem;
      border: 1px solid var(--dash-line);
      border-radius: 0.25rem;
      padding: 0.3rem 0.52rem;
      color: rgba(226, 232, 240, 0.78);
      font-size: 0.68rem;
    }

    .account-flag,
    .instrument-flag {
      display: grid;
      place-items: center;
      background: transparent;
      box-shadow: none;
    }

    .account-flag {
      width: 1.25rem;
      height: 1.25rem;
      font-size: 1rem;
    }

    .account-bar {
      display: grid;
      grid-template-columns: minmax(0, 132px) minmax(0, 1fr) 44px 112px;
      gap: 0.9rem;
      align-items: center;
      font-size: 0.82rem;
      min-width: 0;
    }

    .account-bar span:first-child {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: #fff;
      font-weight: 560;
    }

    .bar-track {
      height: 0.42rem;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.07);
      overflow: hidden;
    }

    .bar-fill {
      display: block;
      width: var(--bar-width, 0%);
      height: 100%;
      border-radius: inherit;
      background: var(--bar-color, var(--dash-purple)) !important;
    }

    .bar-fill--0 { --bar-color: var(--dash-purple); }
    .bar-fill--1 { --bar-color: var(--dash-cyan); }
    .bar-fill--2 { --bar-color: var(--dash-amber); }
    .bar-fill--3 { --bar-color: var(--dash-blue); }
    .bar-fill--4 { --bar-color: var(--rf-text-muted); }

    .watchlist-card {
      border-top: 1px solid var(--dash-line);
      padding: 1rem 0 0;
    }

    .dashboard-watch-tabs {
      display: flex;
      gap: 1.4rem;
      margin: 0.3rem 0 0.65rem;
      border-bottom: 1px solid var(--dash-line);
    }

    .dashboard-watch-tab {
      position: relative;
      padding: 0 0 0.55rem;
      color: var(--dash-muted);
      font-size: 0.78rem;
      font-weight: 650;
      transition: color 0.16s ease;
    }

    .dashboard-watch-tab.is-active {
      color: #fff;
    }

    .dashboard-watch-tab.is-active::after {
      content: "";
      position: absolute;
      right: 0;
      bottom: -1px;
      left: 0;
      height: 2px;
      background: var(--dash-purple);
    }

    .watchlist-table {
      display: grid;
      gap: 0;
    }

    .watchlist-table[hidden],
    .dashboard-mini-table[hidden] {
      display: none;
    }

    .dashboard-mini-table {
      display: grid;
      gap: 0;
      max-height: calc(3.8rem * 5 + 2.4rem);
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-width: none;
    }

    .dashboard-mini-table::-webkit-scrollbar {
      display: none;
    }

    .dashboard-mini-head,
    .dashboard-mini-row {
      display: grid;
      grid-template-columns: minmax(180px, 1.4fr) minmax(120px, 0.9fr) 92px 108px 118px;
      gap: 0.85rem;
      align-items: center;
    }

    .dashboard-mini-head--history,
    .dashboard-mini-row--history {
      grid-template-columns: 88px 118px minmax(180px, 1.4fr) 92px 118px;
    }

    .dashboard-mini-head {
      padding: 0.55rem 0;
      color: var(--dash-muted);
      font-size: 0.64rem;
      font-weight: 650;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }

    .dashboard-mini-row {
      min-height: 3.8rem;
      border-top: 1px solid var(--dash-line);
      color: #fff;
      font-size: 0.78rem;
    }

    .dashboard-mini-row > span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .dashboard-mini-instrument {
      display: grid !important;
      grid-template-columns: 1.25rem minmax(0, 1fr);
      gap: 0.65rem;
      align-items: center;
    }

    .dashboard-mini-instrument strong,
    .dashboard-mini-instrument small {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .dashboard-mini-instrument small {
      color: var(--dash-muted);
      font-size: 0.68rem;
      font-weight: 500;
    }

    .dashboard-mini-empty {
      padding: 1.25rem 0;
      color: var(--dash-muted);
      font-size: 0.82rem;
    }

    [data-watchlist-rows] {
      max-height: calc(3.8rem * 5);
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-width: none;
    }

    [data-watchlist-rows]::-webkit-scrollbar {
      display: none;
    }

    .watchlist-head,
    .watchlist-row {
      display: grid;
      grid-template-columns: minmax(0, 1.38fr) 112px 112px 122px 28px;
      gap: 0.9rem;
      align-items: center;
    }

    .watchlist-head {
      padding: 0.55rem 0;
      color: var(--dash-muted);
      font-size: 0.64rem;
      font-weight: 650;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }

    .watchlist-row {
      min-height: 3.8rem;
      border-top: 1px solid var(--dash-line);
      transition: background 0.16s ease;
    }

    .watchlist-row:hover {
      background: rgba(255, 255, 255, 0.018);
    }

    .watchlist-identity {
      display: grid;
      grid-template-columns: 1.25rem minmax(0, 1fr);
      gap: 0.68rem;
      align-items: center;
    }

    .watchlist-identity > span:last-child {
      display: grid;
      min-width: 0;
      gap: 0.12rem;
    }

    .instrument-logo {
      display: grid;
      place-items: center;
      width: 2rem;
      height: 2rem;
      border-radius: 0.32rem;
      background: linear-gradient(135deg, #f97316, #facc15);
      color: #fff;
      font-size: 0.62rem;
      font-weight: 800;
      text-transform: uppercase;
    }

    .instrument-flag {
      width: 1.25rem;
      height: 1.25rem;
      font-size: 1rem;
    }

    .instrument-name {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 0.82rem;
      font-weight: 700;
    }

    .instrument-sub {
      display: block;
      overflow: hidden;
      color: var(--dash-muted);
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 0.68rem;
    }

    .watchlist-price,
    .watchlist-change {
      font-size: 0.84rem;
      font-weight: 640;
      letter-spacing: 0;
      white-space: nowrap;
    }

    .watchlist-change--positive { color: var(--dash-green); }
    .watchlist-change--negative { color: var(--dash-red); }

    .mini-chart {
      width: 104px;
      height: 28px;
    }

    .watchlist-chart-cell {
      display: grid;
      gap: 0.12rem;
      align-items: center;
      min-width: 0;
    }

    .watchlist-updated {
      color: var(--dash-muted);
      font-size: 0.58rem;
      line-height: 1;
      white-space: nowrap;
    }

    .star-button {
      display: grid;
      place-items: center;
      width: 1.7rem;
      height: 1.7rem;
      color: rgba(255, 255, 255, 0.72);
      line-height: 1;
      transition: color 0.16s ease, transform 0.16s ease;
    }

    .star-button.is-selected {
      color: var(--dash-purple);
    }

    .star-button:hover {
      color: #fff;
      transform: translateY(-1px);
    }

    .mobile-dashboard {
      display: none;
    }

    @media (max-width: 1280px) and (min-width: 981px) {
      .dashboard-lower-grid,
      .dashboard-accounts-chart-grid {
        grid-template-columns: 19rem minmax(0, 1fr);
      }

      .dashboard-table-allocation-grid {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
      }

      .watchlist-head,
      .watchlist-row {
        grid-template-columns: minmax(220px, 1fr) 104px 104px 28px;
        gap: 0.72rem;
      }

      .watchlist-head span:nth-child(4),
      .watchlist-row .watchlist-chart-cell {
        display: none;
      }

      .dashboard-mini-head,
      .dashboard-mini-row {
        grid-template-columns: minmax(180px, 1.35fr) minmax(100px, 0.75fr) 80px 100px;
      }

      .dashboard-mini-head span:nth-child(5),
      .dashboard-mini-row > span:nth-child(5) {
        display: none;
      }
    }

    @media (max-width: 980px) {
      .dashboard-mobile-nav-proxy {
        display: block;
      }

      .invest-dashboard-mock .dashboard-mobile-nav-proxy .invest-bottom-nav {
        display: grid;
      }

      .desktop-dashboard {
        display: none;
      }

      .mobile-dashboard {
        display: block;
        position: relative;
        min-height: 100vh;
        padding: 1.35rem 0.95rem 6.05rem;
        overflow-x: hidden;
        background:
          radial-gradient(circle at 12% 8%, rgba(34, 82, 170, 0.16), transparent 31%),
          radial-gradient(circle at 84% 17%, rgba(124, 77, 255, 0.1), transparent 36%),
          radial-gradient(circle at 58% 56%, rgba(26, 56, 112, 0.1), transparent 34%),
          #040816;
      }

      .mobile-dashboard::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        opacity: 0.13;
        background-image: radial-gradient(rgba(255, 255, 255, 0.2) 0.45px, transparent 0.45px);
        background-size: 3px 3px;
      }

      .mobile-dashboard > * {
        position: relative;
        z-index: 1;
      }

      .mobile-top {
        display: grid;
        grid-template-columns: 2.15rem minmax(0, 1fr) 2.35rem;
        align-items: center;
        column-gap: 0.78rem;
        margin-bottom: 1.05rem;
      }

      .mobile-r-logo {
        display: grid;
        place-items: center;
        width: 2.15rem;
        height: 2.15rem;
        color: var(--dash-purple);
      }

      .mobile-r-logo img {
        width: 2.15rem;
        height: 2.15rem;
        object-fit: contain;
      }

      .mobile-greeting {
        border-left: 1px solid var(--dash-line);
        padding-left: 0.8rem;
        min-width: 0;
      }

      .mobile-greeting a {
        display: grid;
        min-width: 0;
        color: inherit;
        text-decoration: none;
      }

      .mobile-greeting h1 {
        overflow: hidden;
        font-size: 0.98rem;
        font-weight: 720;
        letter-spacing: -0.02em;
        line-height: 1.16;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .mobile-greeting p {
        color: var(--dash-muted);
        font-size: 0.7rem;
        line-height: 1.25;
        white-space: nowrap;
      }

      .mobile-icon-btn,
      .mobile-avatar {
        display: grid;
        place-items: center;
        width: 2.18rem;
        height: 2.18rem;
        border-radius: 999px;
        border: 1px solid transparent;
      }

      .mobile-icon-btn {
        display: none;
        position: relative;
        color: rgba(255, 255, 255, 0.82);
      }

      .mobile-icon-btn::after {
        content: "";
        position: absolute;
        top: 0.4rem;
        right: 0.35rem;
        width: 0.7rem;
        height: 0.7rem;
        border-radius: 999px;
        background: var(--dash-purple);
      }

      .mobile-avatar {
        background: linear-gradient(135deg, var(--dash-purple), #4338ca);
        color: #fff;
        font-size: 0.84rem;
        font-weight: 780;
        text-decoration: none;
      }

      .mobile-period {
        min-height: 1.95rem;
        margin-bottom: 0;
        padding: 0 0.62rem;
        gap: 0.48rem;
        border-radius: 0.46rem;
        font-size: 0.92rem;
      }

      .mobile-dashboard .dashboard-period-wrap {
        position: relative;
        z-index: 5;
        width: max-content;
      }

      .mobile-dashboard .dashboard-period-menu {
        top: calc(100% + 0.34rem);
        right: auto;
        left: 0;
        min-width: 9.4rem;
        border-color: rgba(255, 255, 255, 0.08);
        background: rgba(8, 10, 28, 0.98);
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
      }

      .mobile-dashboard .dashboard-period-option {
        padding: 0.5rem 0.65rem;
        font-size: 0.74rem;
      }

      .mobile-hero-chart {
        position: relative;
        height: 15rem;
        margin: 0 -0.95rem 0.18rem;
        overflow: hidden;
        padding: 0;
      }

      .mobile-hero-chart-head {
        position: relative;
        z-index: 2;
        display: grid;
        grid-template-columns: max-content minmax(0, 1fr);
        align-items: start;
        gap: 0.75rem;
        margin: 0 0 -1.22rem;
        padding: 0 0.95rem;
      }

      .mobile-hero-summary {
        display: none;
      }

      .mobile-hero-chart > svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
      }

      .mobile-chart-tooltip {
        display: none;
        font-size: 0.68rem;
        min-width: 7rem;
      }

      .mobile-chart-tooltip.is-visible {
        display: block;
      }

      .mobile-hero-value {
        position: absolute;
        top: 3.5rem;
        left: 0.95rem;
        z-index: 1;
        max-width: min(18rem, 78vw);
        padding-top: 0;
      }

      .mobile-label {
        color: var(--dash-muted);
        font-size: 0.84rem;
        letter-spacing: 0.02em;
        text-transform: uppercase;
      }

      .mobile-value {
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
        margin-top: 0.34rem;
        font-size: clamp(2.06rem, 8.4vw, 2.4rem);
        font-weight: 730;
        letter-spacing: -0.05em;
      }

      .mobile-value small {
        font-size: 0.86rem;
        font-weight: 560;
        letter-spacing: 0;
      }

      .mobile-delta {
        margin-top: 0.2rem;
        color: var(--dash-green);
        font-size: 0.84rem;
        font-weight: 610;
      }

      .mobile-selected-date {
        min-height: 1rem;
        margin-top: 0.28rem;
        color: rgba(185, 191, 210, 0.78);
        font-size: 0.74rem;
      }

      .mobile-metric p {
        font-size: 0.78rem;
        line-height: 1.25;
      }

      .mobile-range {
        display: none;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        align-items: center;
        gap: 0.16rem;
        margin: 0.2rem 0 1.05rem;
      }

      .mobile-range button {
        min-width: 0;
        min-height: 2.55rem;
        border: 0;
        border-radius: 0.48rem;
        background: transparent;
        color: rgba(185, 191, 210, 0.76);
        font: inherit;
        font-size: 0.9rem;
      }

      .mobile-range button.is-active {
        background: linear-gradient(135deg, #7c4dff, #5d47e8);
        color: #fff;
      }

      .mobile-metrics {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        border-top: 1px solid var(--dash-line);
        border-bottom: 1px solid var(--dash-line);
        margin-bottom: 1.38rem;
      }

      .mobile-metric {
        min-width: 0;
        min-height: 8.2rem;
        border-right: 1px solid var(--dash-line);
        padding: 1.08rem 0.52rem 0.64rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
      }

      .mobile-metric:last-child {
        border-right: 0;
      }

      .mobile-metric-icon {
        display: none;
      }

      .mobile-metric-title {
        color: var(--dash-muted);
        font-size: 0.76rem;
        text-transform: uppercase;
      }

      .mobile-metric-value {
        max-width: 100%;
        margin-top: 0.62rem;
        font-size: clamp(0.98rem, 4.05vw, 1.16rem);
        font-weight: 560;
        line-height: 1.18;
        overflow-wrap: normal;
        word-break: normal;
      }

      .mobile-metric-value .metric-amount {
        display: block;
        max-width: 100%;
        font-weight: 620;
        letter-spacing: -0.02em;
        transform-origin: left center;
        white-space: nowrap;
      }

      .mobile-metric-value .metric-currency {
        display: block;
        margin-top: 0.1rem;
        color: rgba(255, 255, 255, 0.84);
        font-size: 0.88em;
        font-weight: 500;
        letter-spacing: 0;
      }

      .mobile-section-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 1.05rem 0 0.62rem;
      }

      .mobile-section-title {
        color: var(--dash-muted);
        font-size: 0.96rem;
        text-transform: uppercase;
      }

      .mobile-accounts-scroll {
        display: flex;
        gap: 0.8rem;
        overflow-x: auto;
        padding-bottom: 0;
        scrollbar-width: none;
      }

      .mobile-accounts-scroll::-webkit-scrollbar {
        display: none;
      }

      .mobile-account-tile {
        display: grid;
        position: relative;
        align-items: center;
        gap: 0.5rem;
        min-width: 9.95rem;
        min-height: 3.48rem;
        border: 1px solid var(--dash-line);
        border-radius: 0.34rem;
        background: rgba(255, 255, 255, 0.012);
        padding: 0.45rem 0.72rem 0.45rem 0.45rem;
        grid-template-columns: 1.55rem minmax(0, 1fr);
      }

      .mobile-account-tile > span:nth-child(2) {
        display: grid;
        min-width: 0;
      }

      .account-logo {
        display: grid;
        place-items: center;
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 0.35rem;
        background: rgba(124, 77, 255, 0.18);
        color: #fff;
        font-size: 0.8rem;
        font-weight: 800;
      }

      .account-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.92rem;
        font-weight: 650;
      }

      .account-meta {
        overflow: hidden;
        color: var(--dash-muted);
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.76rem;
      }

      .account-status {
        position: absolute;
        right: 0.42rem;
        top: 50%;
        width: 0.42rem;
        height: 0.42rem;
        border-radius: 50%;
        background: var(--dash-green);
        transform: translateY(-50%);
      }

      .account-add {
        justify-content: center;
        border-style: dashed;
        color: var(--dash-purple);
      }

      .mobile-watchlist {
        display: grid;
        max-height: calc(4.45rem * 5);
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: none;
      }

      .mobile-watchlist::-webkit-scrollbar {
        display: none;
      }

      .mobile-watch-row {
        display: grid;
        width: 100%;
        max-width: 100%;
        grid-template-columns: minmax(0, 1.1fr) minmax(5.8rem, 0.9fr) minmax(4.8rem, auto) 1.35rem;
        gap: 0.68rem;
        align-items: center;
        min-height: 4.75rem;
        border-bottom: 1px solid var(--dash-line);
      }

      .mobile-watch-row .instrument-name {
        font-size: 0.96rem;
        font-weight: 650;
      }

      .mobile-watch-row .instrument-sub {
        font-size: 0.8rem;
      }

      .mobile-watch-price {
        font-size: 0.96rem;
        line-height: 1.2;
      }

      .mobile-watch-price strong {
        font-weight: 620;
      }

      .mobile-watch-row .watchlist-chart-cell {
        min-width: 0;
        overflow: hidden;
      }

      .mobile-watch-row .mini-chart {
        width: 100%;
        min-width: 3.7rem;
      }

      .invest-dashboard-mock .dashboard-mobile-nav-proxy .invest-bottom-nav {
        background: rgba(4, 8, 22, 0.94);
        border-top-color: rgba(255, 255, 255, 0.08);
        padding-top: 0.52rem;
      }

      .invest-dashboard-mock .dashboard-mobile-nav-proxy .invest-bottom-nav a {
        position: relative;
      }

      .invest-dashboard-mock .dashboard-mobile-nav-proxy .invest-bottom-nav a.is-active {
        color: var(--dash-purple);
      }

      .invest-dashboard-mock .dashboard-mobile-nav-proxy .invest-bottom-nav a.is-active::before {
        content: "";
        position: absolute;
        top: -0.56rem;
        left: 50%;
        width: 2rem;
        height: 0.18rem;
        border-radius: 999px;
        background: var(--dash-purple);
        transform: translateX(-50%);
      }
    }

    @media (max-width: 720px) {
      .mobile-metrics {
        overflow: visible;
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .mobile-watch-row {
        grid-template-columns: minmax(0, 1.2fr) 5.2rem minmax(4.35rem, auto) 1.2rem;
        gap: 0.5rem;
      }

      .mobile-watch-row .instrument-flag {
        width: 2rem;
        height: 2rem;
        font-size: 1.1rem;
      }

      .mobile-watch-row .watchlist-identity {
        grid-template-columns: 2rem minmax(0, 1fr);
      }

      .mobile-watch-price {
        text-align: right;
      }

      @media (max-width: 640px) {
        .mobile-hero-chart-head {
          grid-template-columns: 1fr;
          gap: 0.55rem;
          margin-bottom: -1.2rem;
        }

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

        .mobile-metric:nth-child(2n) {
          border-right: 0;
        }

        .mobile-metric:nth-child(n+3) {
          border-top: 1px solid var(--dash-line);
        }
      }

      @media (max-width: 430px) {
        .mobile-watch-row {
          position: relative;
          grid-template-columns: minmax(0, 1fr);
          gap: 0.28rem;
          align-items: start;
          padding: 0.76rem 1.55rem 0.76rem 0;
        }

        .mobile-watch-row .watchlist-chart-cell {
          display: none;
        }

        .mobile-watch-price {
          padding-left: 2.45rem;
          text-align: left;
        }

        .mobile-watch-row .star-button {
          position: absolute;
          top: 0.8rem;
          right: 0;
        }
      }

      @media (max-width: 380px) {
        .mobile-metric-value {
          font-size: 1.08rem;
        }
      }

      @media (max-width: 300px) {
        .mobile-metrics {
          grid-template-columns: 1fr;
        }

        .mobile-metric {
          border-right: 0;
          border-top: 1px solid var(--dash-line);
        }

        .mobile-metric:first-child {
          border-top: 0;
        }
      }
    }
