html {
        min-height: 100%;
        background: var(--rf-site-background);
      }

      body {
        min-height: 100vh;
        background: var(--rf-site-background);
        color: var(--app-text);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
      }

      body.invest-app-body {
        padding-bottom: 0;
      }

      body.invest-app-body input::placeholder,
      body.invest-app-body textarea::placeholder {
        color: var(--rf-text-muted);
      }

      .invest-nav-shell {
        background: var(--rf-chrome);
      }

      .invest-nav-shell__inner {
        display: flex;
        min-height: 56px;
        align-items: center;
        gap: 1.25rem;
        width: 100%;
        padding-inline: 1rem;
      }

      .invest-nav-shell__brand {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        min-width: 0;
        color: var(--rf-text-primary);
        text-decoration: none;
      }

      .invest-nav-shell__brand img {
        width: auto;
        height: 1.75rem;
        flex: 0 0 auto;
      }

      .invest-nav-shell__brand span {
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 0.28em;
      }

      .invest-nav-shell__desktop {
        display: none;
        align-items: center;
        gap: 1.5rem;
        margin-left: 1rem;
      }

      .invest-nav-shell__desktop a,
      .invest-nav-shell__langs a {
        color: var(--app-muted);
        text-decoration: none;
        transition: color 160ms ease;
      }

      .invest-nav-shell__desktop a {
        font-size: 0.82rem;
      }

      .invest-nav-shell__desktop a:hover,
      .invest-nav-shell__desktop a.is-active,
      .invest-nav-shell__langs a:hover,
      .invest-nav-shell__langs a.is-active {
        color: var(--rf-text-primary);
      }

      .invest-funding-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin-left: auto;
        min-width: 0;
        height: 2.85rem;
        max-width: 46vw;
        padding: 0.25rem 0.8rem 0.25rem 0.35rem;
        border-radius: 999px;
        background: var(--rf-surface-hover);
        color: var(--rf-text-primary);
        text-decoration: none;
      }

      .invest-funding-pill.is-active {
        background: var(--rf-surface-active);
      }

      .invest-funding-pill__plus {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.75rem;
        height: 1.75rem;
        border-radius: 999px;
        background: var(--rf-warning);
        color: var(--rf-bg);
        font-size: 1.25rem;
        font-weight: 800;
        line-height: 1;
      }

      .invest-funding-pill__body {
        display: grid;
        min-width: 0;
        gap: 0.08rem;
        line-height: 1;
      }

      .invest-funding-pill__line {
        display: inline-flex;
        min-width: 0;
        align-items: center;
        gap: 0.35rem;
      }

      .invest-funding-pill__amount {
        overflow: hidden;
        max-width: 7.5rem;
        text-overflow: ellipsis;
        font-size: 0.9rem;
        font-weight: 650;
      }

      .invest-funding-pill__currency,
      .invest-funding-pill__select {
        font-size: 0.72rem;
        font-weight: 650;
        letter-spacing: 0.12em;
        color: var(--app-muted);
      }

      .invest-funding-pill__select {
        max-width: 5rem;
        border: 0;
        background: transparent;
        padding: 0 1rem 0 0;
        outline: none;
        color: var(--rf-text-primary);
      }

      .invest-funding-pill__select option {
        background: var(--rf-surface-raised);
        color: var(--rf-text-primary);
      }

      .invest-funding-pill__return {
        overflow: hidden;
        max-width: 100%;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.66rem;
        font-weight: 600;
        color: var(--app-muted);
      }

      .invest-funding-pill__return.is-positive {
        color: var(--app-green);
      }

      .invest-funding-pill__return.is-negative {
        color: var(--app-red);
      }

      .invest-nav-shell__right {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
      }

      .invest-nav-shell__langs {
        display: none;
        align-items: center;
        gap: 0.45rem;
        font-size: 0.7rem;
        font-weight: 650;
        letter-spacing: 0.2em;
        color: var(--rf-text-muted);
      }

      .invest-exit-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.2rem;
        height: 2.2rem;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--app-muted);
        padding: 0;
        font-size: 0;
        text-decoration: none;
        cursor: pointer;
      }

      .invest-exit-link::before {
        content: "";
        width: 1.08rem;
        height: 1.08rem;
        opacity: 0.78;
        background: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 7V5a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-2M15 12H3m0 0 4-4m-4 4 4 4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 7V5a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-2M15 12H3m0 0 4-4m-4 4 4 4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
      }

      .invest-exit-link:hover,
      .invest-exit-link:focus-visible {
        color: var(--rf-text-primary);
      }

      .invest-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 50;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.25rem;
        padding: 0.45rem 0.65rem calc(env(safe-area-inset-bottom) + 0.45rem);
        border-top: 1px solid var(--rf-chrome-border);
        background: var(--rf-chrome);
        backdrop-filter: blur(18px);
      }

      .invest-bottom-nav a {
        display: inline-flex;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        min-height: 3.6rem;
        color: var(--app-muted);
        text-align: center;
        text-decoration: none;
      }

      .invest-bottom-nav a.is-active {
        color: var(--rf-text-secondary);
      }

      .invest-bottom-nav svg {
        width: 1.35rem;
        height: 1.35rem;
      }

      .invest-bottom-nav span {
        overflow: hidden;
        max-width: 100%;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.7rem;
      }

      header[data-invest-nav] ~ main {
        width: 100%;
        max-width: 80rem;
        margin-inline: auto;
        padding: 1.5rem 1rem 6.25rem !important;
      }

      header[data-invest-nav] ~ main > .border,
      header[data-invest-nav] ~ main > [class*=" border "],
      header[data-invest-nav] ~ main > [class^="border "],
      header[data-invest-nav] ~ main > section,
      header[data-invest-nav] ~ main > div[id$="Layout"] {
        border-width: 0 !important;
        background-color: transparent !important;
      }

      @media (min-width: 640px) {
        .invest-nav-shell__inner {
          padding-inline: 1.5rem;
        }

        .invest-nav-shell__langs {
          display: inline-flex;
        }

        header[data-invest-nav] ~ main {
          padding-inline: 1.5rem !important;
        }
      }

      @media (min-width: 1024px) {
        .invest-nav-shell__inner {
          padding-inline: 2rem;
        }

        .invest-nav-shell__desktop {
          display: inline-flex;
        }

        .invest-bottom-nav {
          display: none;
        }

        header[data-invest-nav] ~ main {
          padding: 2rem 2rem 3rem !important;
        }
      }

      @media (max-width: 480px) {
        .invest-nav-shell__inner {
          min-height: 58px;
          gap: 0.65rem;
        }

        .invest-nav-shell__brand {
          gap: 0.55rem;
        }

        .invest-nav-shell__brand img {
          height: 1.75rem;
        }

        .invest-nav-shell__brand span {
          font-size: 0.78rem;
          letter-spacing: 0.22em;
        }

        .invest-funding-pill {
          max-width: 36vw;
          height: 2.5rem;
          gap: 0.3rem;
          padding-right: 0.5rem;
        }

        .invest-funding-pill__plus {
          width: 1.55rem;
          height: 1.55rem;
          font-size: 1.05rem;
        }

        .invest-funding-pill__amount {
          max-width: 4rem;
          font-size: 0.8rem;
        }

        .invest-funding-pill__currency,
        .invest-funding-pill__select {
          display: none;
        }

        .invest-funding-pill__return {
          font-size: 0.6rem;
        }

        .invest-nav-shell__right {
          gap: 0.45rem;
        }
      }
