/* Only the new investment surface. Frame, device sizing and layout come from product-scenes.css. */
.ps-investments{--inv-transition:1;--inv-card-scale:1;--inv-negative:#b34b5a;--inv-positive:#218259}
.ps-investments .inv-header-left{display:flex;align-items:center;gap:1.8cqw;color:#006de5}
.ps-investments .inv-header-left img{display:block;width:7.6cqw;height:8.5cqw;object-fit:contain}
.ps-investments [data-inv-back]{display:block;width:4cqw;height:5.8cqw;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ps-investments .inv-viewport{position:relative;flex:1 1 auto;min-height:0;min-width:0;overflow:hidden}
.ps-investments .inv-summary,.ps-investments .inv-detail{position:absolute;inset:0;padding:4cqw 6.2cqw 2cqw;font-variant-numeric:tabular-nums;backface-visibility:hidden}
.ps-investments .inv-summary{visibility:hidden;opacity:0;pointer-events:none}
.ps-investments .inv-detail{background:#fdfcf9}
.ps-investments[data-inv-ready] .inv-summary{visibility:visible;opacity:calc(1 - var(--inv-transition));transform:translateX(calc(-22% * var(--inv-transition)))}
.ps-investments[data-inv-ready] .inv-detail{transform:translateX(calc(100% * (1 - var(--inv-transition))))}
.ps-investments[data-inv-stage="summary"] [data-inv-back],.ps-investments[data-inv-stage="press"] [data-inv-back]{display:none}
.ps-investments .inv-balance-label{display:flex;justify-content:space-between;align-items:center;color:#55677e;font-size:3.8cqw;line-height:1.4;font-weight:400}
.ps-investments .inv-balance-label>span{display:flex;align-items:center;gap:1.1cqw}
.ps-investments .inv-balance-label svg{width:3.1cqw;height:3.1cqw;fill:none;stroke:currentColor;stroke-width:1.5}
.ps-investments .inv-summary-worth,.ps-investments .inv-portfolio-worth{margin:1cqw 0 .6cqw;color:#152336;font-size:11.6cqw;line-height:1.12;letter-spacing:-.055em;font-weight:500;white-space:nowrap}
.ps-investments .inv-portfolio-worth>span{font-size:4cqw;font-weight:400;letter-spacing:-.015em;color:#758196;margin-left:1cqw}
.ps-investments .inv-summary-gain,.ps-investments .inv-month-return{margin:0;color:var(--inv-positive);font-size:4.05cqw;line-height:1.5;letter-spacing:-.02em;white-space:nowrap}
.ps-investments .inv-month-return{display:flex;gap:1cqw}
.ps-investments .inv-month-return>span:first-child{min-width:5.4ch}
.ps-investments .inv-month-return>span:nth-child(2){min-width:7.3ch}
.ps-investments .inv-summary-chart{display:block;width:100%;height:25cqw;margin-top:2.8cqw;overflow:hidden}
.ps-investments .inv-summary-dates,.ps-investments .inv-chart-dates{display:flex;justify-content:space-between;padding-inline:2.67%;font-size:2.9cqw;line-height:1.4;color:#7a8799;letter-spacing:-.01em}
.ps-investments .inv-summary-dates{margin-top:.6cqw}
.ps-investments .inv-periods{display:flex;align-items:center;justify-content:space-between;gap:1cqw;margin-top:2.3cqw;font-size:3.5cqw;line-height:1.35;color:#758196}
.ps-investments .inv-periods>span{display:grid;place-items:center;min-width:12.5cqw;min-height:6.8cqw;border-radius:99px}
.ps-investments .inv-periods>.inv-period-active{background:#e0efff;color:#075bad;font-weight:500}
.ps-investments .inv-summary-periods{margin-top:1.3cqw}
.ps-investments .inv-summary-cards{display:grid;gap:3cqw;margin-top:3cqw}
.ps-investments .inv-summary-card{padding:2.8cqw 4.2cqw;height:36.5cqw;border-radius:6cqw;background:#f2f7ff;border:1px solid #dee9f7;box-shadow:0 1px 1px #ffffffd9,0 4px 12px #223e6c03;transform-origin:center}
.ps-investments [data-investment-card]{transform:scale(var(--inv-card-scale));transition:background-color 120ms ease,border-color 120ms ease,box-shadow 120ms ease}
.ps-investments[data-inv-stage="press"] [data-investment-card]{background:#e4f0ff;border-color:#8bbdf3;box-shadow:inset 0 0 0 1px #006de526,0 2px 8px #006de50d}
.ps-investments .inv-card-heading{display:flex;align-items:center;justify-content:space-between;font-size:4cqw;line-height:1.3;font-weight:500;color:#354b6c}
.ps-investments .inv-card-heading svg{width:4.5cqw;height:4.5cqw;fill:none;stroke:#547bac;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.ps-investments .inv-card-amount{display:flex;align-items:baseline;gap:1.8cqw;margin:1cqw 0 2cqw;color:#223e6c}
.ps-investments .inv-card-amount strong{font-size:7.7cqw;line-height:1.15;letter-spacing:-.045em;font-weight:500}
.ps-investments .inv-card-amount>span{font-size:2.9cqw;color:#607692}
.ps-investments .inv-card-breakdown{border-top:1px solid #dbe7f6;padding-top:2cqw;display:grid;gap:1.4cqw}
.ps-investments .inv-card-breakdown>div{display:flex;justify-content:space-between;align-items:center;gap:1cqw;font-size:3.25cqw;line-height:1.3;color:#586c84;white-space:nowrap}
.ps-investments .inv-card-breakdown strong{font-weight:500;color:#344e70}
.ps-investments .inv-card-breakdown .inv-negative{color:var(--inv-negative)}
.ps-investments .inv-main-chart{height:30cqw;margin:1.5cqw 0 0;position:relative}
.ps-investments .inv-main-chart>svg{width:100%;height:28cqw;display:block;overflow:hidden}
.ps-investments [data-inv-main-line]{fill:none;stroke:#006de5;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.ps-investments [data-inv-main-dot]{fill:#fdfcf9;stroke:#006de5;stroke-width:2.4}
.ps-investments .inv-chart-ticks{position:absolute;bottom:.3cqw;left:2.67%;right:2.67%;height:1.2cqw;background:repeating-linear-gradient(90deg,#9aa8bb 0 1px,transparent 1px 5%);opacity:.6}
.ps-investments .inv-chart-ticks:after{content:"";position:absolute;right:0;top:0;bottom:0;width:1px;background:#9aa8bb}
.ps-investments .inv-chart-dates{margin-top:.8cqw}
.ps-investments .inv-section-heading{margin:4cqw 0 2.6cqw;padding-top:3cqw;border-top:1px solid #e8edf3;color:#33475f;font-size:4cqw;line-height:1.3;font-weight:500;letter-spacing:-.02em}
.ps-investments .inv-performance-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3cqw}
.ps-investments .inv-performance-card{min-width:0;position:relative;height:36.8cqw;padding:3.3cqw 3.2cqw 2.5cqw;border:1px solid #f0f0ef;border-radius:5cqw;background:#fff;box-shadow:0 2.5cqw 5.6cqw -3cqw #26364b14,0 .4cqw 1.2cqw #26364b04}
.ps-investments .inv-performance-card h5{margin:0 0 1.5cqw;color:#33475f;font-size:3.9cqw;font-weight:500;line-height:1.3;letter-spacing:-.015em}
.ps-investments .inv-performance-amount{margin:0;color:var(--inv-performance-color);font-size:5.5cqw;font-weight:500;line-height:1.2;letter-spacing:-.04em;white-space:nowrap;min-height:6.6cqw}
.ps-investments .inv-performance-percent{margin:.5cqw 0 0;color:var(--inv-performance-color);font-size:3.3cqw;line-height:1.3;letter-spacing:-.01em;min-height:4.3cqw}
.ps-investments .inv-stock{--inv-performance-color:var(--inv-negative)}
.ps-investments .inv-crypto{--inv-performance-color:var(--inv-positive)}
.ps-investments .inv-mini-chart{display:block;width:100%;height:13cqw;margin-top:1.2cqw;overflow:hidden}
.ps-investments [data-inv-stock-line],.ps-investments [data-inv-crypto-line]{fill:none;stroke:var(--inv-performance-color);stroke-width:3.7;stroke-linecap:round;stroke-linejoin:round}
.ps-investments [data-inv-stock-dot],.ps-investments [data-inv-crypto-dot]{fill:#fff;stroke:var(--inv-performance-color);stroke-width:3}
.ps-investments .inv-distribution{margin-top:4cqw;padding-top:2.8cqw;border-top:1px solid #e8edf3}
.ps-investments .inv-distribution>h4{margin:0 0 1.5cqw;color:#33475f;font-size:4cqw;line-height:1.3;font-weight:500}
.ps-investments .inv-distribution-row{display:flex;align-items:center;gap:4cqw;padding:0 .5cqw;min-height:18cqw}
.ps-investments .inv-donut{display:block;flex:0 0 18cqw;width:18cqw;height:18cqw;transform:rotate(-90deg);fill:none;stroke-width:10}
.ps-investments .inv-donut-track{stroke:#edf1f7}
.ps-investments [data-inv-donut-stock]{stroke:#006de5}
.ps-investments [data-inv-donut-crypto]{stroke:#8cbef4}
.ps-investments .inv-distribution-copy{flex:1;min-width:0}
.ps-investments .inv-distribution-copy>div{display:flex;align-items:center;justify-content:space-between;gap:3cqw;margin-top:1.8cqw;color:#65768b;font-size:3.4cqw;line-height:1.3}
.ps-investments .inv-distribution-copy>div>span{display:flex;align-items:center;gap:1.7cqw}
.ps-investments .inv-distribution-copy i{width:1.7cqw;height:1.7cqw;background:#006de5;display:block;border-radius:50%}
.ps-investments .inv-distribution-copy>div:last-child i{background:#8cbef4}
.ps-investments .inv-distribution-copy strong{font-weight:500;color:#344e70}
@media(prefers-reduced-motion:reduce){
 .ps-investments[data-inv-ready] .inv-summary{visibility:hidden;opacity:0;transform:none}
 .ps-investments[data-inv-ready] .inv-detail{transform:none}
 .ps-investments [data-investment-card]{transform:none;transition:none}
}
