/* Portfolio presentation aligned with the supplied V104 design export.
   Recorded observations, gaps, account scope and financial reads are unchanged. */
@layer v104Restoration {
  html.vercel-layout body #appView #tab-positions .portfolio-hero > .card.primary {
    padding: 22px 24px 24px !important;
    row-gap: 0 !important;
    overflow: hidden !important;
  }
  html.vercel-layout body #appView #tab-positions .v85-trend-controls {
    grid-row: 1 !important;
    margin: 0 !important;
    min-height: 32px !important;
  }
  html.vercel-layout body #appView #tab-positions .v104-chart-range {
    grid-row: 1 !important;
    grid-column: 1 !important;
    justify-self: end !important;
    align-self: center !important;
  }
  html.vercel-layout body #appView #tab-positions .v104-chart-range select {
    min-height: 34px !important;
    height: 34px !important;
    min-width: 68px !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    font: 500 12px/18px var(--v85-font) !important;
  }
  html.vercel-layout body #appView #tab-positions .v104-chart-value {
    grid-row: 2 !important;
    margin: 10px 0 0 !important;
    font-size: 36px !important;
    line-height: 44px !important;
    font-weight: 700 !important;
    letter-spacing: -1px !important;
  }
  html.vercel-layout body #appView #tab-positions .v85-trend-legend {
    grid-row: 3 !important;
    margin: 6px 0 18px !important;
    padding: 0 !important;
    min-height: 18px !important;
  }
  html.vercel-layout body #appView #tab-positions .v85-trend-legend > span {
    font-size: 12px !important;
    line-height: 18px !important;
  }
  html.vercel-layout body #appView #tab-positions .v85-trend-legend > span::before {
    content: none !important;
  }
  html.vercel-layout body #appView #tab-positions .v85-trend-legend > small,
  html.vercel-layout body #appView #tab-positions .v85-trend-scale,
  html.vercel-layout body #appView #tab-positions .v85-trend-note {
    display: none !important;
  }
  html.vercel-layout body #appView #tab-positions .v85-trend-plot {
    grid-row: 4 !important;
    position: relative !important;
    height: 178px !important;
    min-height: 178px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html.vercel-layout body #appView #tab-positions .v85-trend-plot > svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
  }
  html.vercel-layout body #appView #tab-positions .v85-trend-grid {
    stroke: var(--v85-border) !important;
    stroke-opacity: .55 !important;
    stroke-width: 1 !important;
    stroke-dasharray: 3 5 !important;
  }
  html.vercel-layout body #appView #tab-positions .v85-trend-line {
    stroke-width: 1.5 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }
  html.vercel-layout body #appView #tab-positions .v85-trend-area {
    fill: url(#zenoPortfolioArea) !important;
    opacity: 1 !important;
  }
  html.vercel-layout body #appView #tab-positions .v85-trend-fill-top {
    stop-color: var(--v85-yes);
    stop-opacity: .13;
  }
  html.vercel-layout body #appView #tab-positions .v85-trend-fill-bottom {
    stop-color: var(--v85-yes);
    stop-opacity: 0;
  }
  html.vercel-layout body #appView #tab-positions .v85-trend-halo {
    fill: var(--v85-yes);
    opacity: .18;
  }
  html.vercel-layout body #appView #tab-positions .v85-trend-times {
    grid-row: 5 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    min-height: 18px !important;
    align-items: start !important;
    font-size: 12px !important;
    line-height: 18px !important;
  }
  html.vercel-layout body #appView #tab-positions .v85-trend-times > span {
    flex: 1 !important;
    min-width: 0 !important;
    text-align: center !important;
  }
  html.vercel-layout body #appView #tab-positions .v85-trend-times > span:first-child {
    text-align: left !important;
  }
  html.vercel-layout body #appView #tab-positions .v85-trend-times > span:last-child {
    text-align: right !important;
  }
  html.vercel-layout body #appView #tab-positions .portfolio-history-source-note {
    grid-row: 6 !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 18px !important;
  }
  html.vercel-layout body #appView #tab-positions .v85-equity-summary {
    grid-row: 7 !important;
    margin-top: 20px !important;
    padding-top: 16px !important;
  }
  html.vercel-layout[data-theme="dark"] body #appView #tab-positions .v85-trend-metrics button[aria-pressed="true"] {
    background: #272c33 !important;
    border-color: #272c33 !important;
    color: #f2f4f8 !important;
  }
  html.vercel-layout[data-theme="light"] body #appView #tab-positions .v85-trend-metrics button[aria-pressed="true"] {
    background: #e9ebee !important;
    border-color: #e9ebee !important;
    color: #1c2028 !important;
  }
  @media (max-width: 760px) {
    html.vercel-layout body #appView #tab-positions .portfolio-hero > .card.primary {
      padding: 18px 16px 20px !important;
    }
    html.vercel-layout body #appView #tab-positions .v104-chart-value {
      font-size: 32px !important;
      line-height: 40px !important;
    }
    html.vercel-layout body #appView #tab-positions .v85-trend-plot {
      height: 156px !important;
      min-height: 156px !important;
    }
    html.vercel-layout body #appView #tab-positions .v85-trend-times > span:nth-child(2) {
      display: none !important;
    }
    html.vercel-layout body #appView #tab-positions .v85-trend-times {
      font-size: 11px !important;
      line-height: 17px !important;
    }
  }
}
