.invest-hero.invest-summary{position:relative;isolation:isolate;overflow:hidden;padding:15px;border-color:#d2e3ca;background:linear-gradient(158deg,#fbfdf7 0%,#edf6e7 78%);color:#173b2d;box-shadow:0 8px 24px #2b533813}
.invest-contours{pointer-events:none;position:absolute;inset:0 0 auto;width:100%;height:136px;z-index:-1}
.invest-summary-top,.invest-heading{display:flex;align-items:center;min-width:0;gap:9px}
.invest-summary-top{justify-content:space-between}
.invest-heading h2{font-size:19px;letter-spacing:-.02em}
.invest-heading-icon{width:38px;height:38px;display:grid;place-items:center;flex:none;border-radius:12px;background:#24533e;color:#d8f2b5}
.invest-heading-icon svg,.invest-chart-link svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.invest-chart-link{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:0 9px;background:#fafff3;border:1px solid #bbd4b9;border-radius:12px;color:#285f45;font-size:13px;font-weight:750}
.invest-chart-link:focus-visible{outline:2px solid #357451;outline-offset:2px}
.invest-summary-value{margin:15px 0 12px}
.invest-summary-value>p{margin:0 0 2px;color:#3f6251;font-size:14px;font-weight:600}
.invest-summary-value #invest-price-status{margin:6px 0 0;color:#496456;font-weight:400;line-height:1.4}
.invest-summary .invest-value{font-size:clamp(30px,9vw,43px);line-height:1.13;color:#163b2b;max-width:100%;font-variant-numeric:tabular-nums}
.invest-summary-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.invest-metric{min-width:0;padding:9px;border:1px solid #d7e5d2;background:#fafff7;border-radius:12px}
.invest-metric>span{display:flex;align-items:center;gap:5px;color:#436454;font-size:12px;font-weight:650;line-height:1.25}
.invest-metric i{display:grid;place-items:center;width:20px;height:20px;flex:none;background:#e7f2df;border-radius:6px;font-style:normal;color:#2d6548;font-weight:800}
.invest-metric strong{display:block;margin-top:5px;font-variant-numeric:tabular-nums;font-size:clamp(15px,4.1vw,20px);overflow-wrap:anywhere;color:#204a36}
.invest-metric[data-tone=loss] strong{color:#88382f}
.invest-metric[data-tone=loss] i{background:#fae7e0;color:#88382f}
.invest-metric[data-tone=gain] strong{color:#23714a}

/* The document is vertical. Dedicated tracks (wallet cards/Analysis charts)
   still handle their own gestures rather than scrolling the page sideways. */
html{overflow-x:hidden;overscroll-behavior-x:none}
body{overflow-x:clip;overscroll-behavior-x:none}
html:has(#investments:not([hidden])) .app{touch-action:pan-y pinch-zoom}
#investments,#investments .card,#invest-assets,#invest-history{min-inline-size:0;max-inline-size:100%}
#investments .invest-asset{grid-template-columns:minmax(0,1fr) minmax(0,auto)}
#investments .invest-asset>div{min-inline-size:0;overflow-wrap:anywhere}
#investments .invest-controls{max-inline-size:9rem}
#investments .invest-controls button{max-inline-size:100%;white-space:normal;overflow-wrap:anywhere}
#invest-history .record{grid-template-columns:minmax(0,1fr) fit-content(44%)}
#invest-history .record>span{min-inline-size:0}

.invest-summary-value{padding:13px 14px;border-radius:15px;background:#16372b}
.invest-summary-value>p{color:#d8e8dc}
.invest-summary .invest-value{color:#fff}
.invest-summary-value #invest-price-status{color:#d5e6d9}
.invest-positions{min-inline-size:0;margin:16px 0}
.invest-positions .section-head{padding:0 2px;margin-bottom:8px;flex-wrap:wrap}
.invest-positions h2{margin:0;font-size:18px}
#invest-asset-count{margin:0}
#invest-assets{display:grid;gap:7px}
.asset-card{min-inline-size:0;border:1px solid var(--line);border-radius:14px;background:#fff}
.asset-card.asset-card-open{border-color:#9bb69e}
.asset-card-toggle{width:100%;max-width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1.05fr) 8px;align-items:center;gap:8px;min-height:58px;border:0;border-radius:13px;background:transparent;color:var(--ink);text-align:left;padding:8px 10px;font:inherit}
.asset-card-toggle:focus-visible{outline:2px solid #3a7653;outline-offset:2px}
.asset-card-icon{display:grid;place-items:center;width:32px;height:34px;border-radius:10px;background:#e8f3eb;color:#245740;font-weight:750}
.asset-card-icon svg{width:19px;height:19px}
.asset-card-gold{background:#f5edcf;color:#795b25}
.asset-card-name,.asset-card-value{display:grid;min-inline-size:0;gap:3px;line-height:1.2;overflow-wrap:anywhere}
.asset-card-name strong,.asset-card-value strong{font-size:clamp(.875rem,4vw,1rem)}
.asset-card-name span,.asset-card-value small{color:#4e6559;font-size:.75rem}
.asset-card-value{text-align:right;font-variant-numeric:tabular-nums}
.asset-card-chevron{width:6px;height:6px;border:solid #326447;border-width:0 1.5px 1.5px 0;transform:rotate(-45deg)}
.asset-card-open .asset-card-chevron{transform:translateY(2px) rotate(225deg)}
.asset-card-panel{border-top:1px solid var(--line);margin:0 11px;padding:10px 0 12px}
.asset-card-panel[hidden]{display:none}
.asset-card-metric{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:8px;margin:0 0 7px;color:#3f574b;font-size:.83rem;overflow-wrap:anywhere}
.asset-card-metric strong{text-align:right;color:#183629;font-variant-numeric:tabular-nums}
.asset-card-panel .asset-quote-source{margin:5px 0 0;color:#496356;font-size:.79rem;line-height:1.4;overflow-wrap:anywhere}
.asset-card-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.asset-card-actions button{flex:1 1 96px;min-height:44px;border:1px solid #cbdcca;border-radius:10px;background:#edf4eb;color:#214d36;font-size:.875rem;font-weight:700}
.asset-card-actions .asset-card-trade{flex-grow:1.35;background:#173a2c;color:#fff;border-color:#173a2c}
.asset-refresh-disclosure{margin:8px 3px 0;color:#446254;font-size:.83rem}
.asset-refresh-disclosure summary{cursor:pointer;min-height:36px;display:list-item;padding:8px 0}
.asset-refresh-disclosure p{margin:0 0 7px}
@media(max-width:360px){.asset-card-toggle{gap:6px;padding-inline:8px}.asset-card-icon{width:27px;height:30px}}
