:root{--return-gain:var(--signal-green,#39ff88);--return-loss:var(--signal-red,#ff4058)}
.performance-gain{--performance-color:var(--return-gain)}.performance-loss{--performance-color:var(--return-loss)}.performance-flat,.performance-unknown{--performance-color:var(--muted)}.performance-caution{--performance-color:#f4ff70}
.account-grand-total.performance-gain>strong,.account-grand-total.performance-loss>strong,.account-value.performance-gain>b,.account-value.performance-loss>b{color:var(--performance-color)}.lifetime-return{display:block!important;font-size:14px!important;font-weight:600;color:var(--performance-color)!important;margin:2px 0 7px}.account-grand-total>.lifetime-return{font-size:18px!important}
.compact-help{display:inline-grid!important;place-items:center;width:19px;height:19px;min-width:19px;padding:0!important;margin:0 0 0 7px!important;border:1px solid var(--border)!important;border-radius:50%!important;background:transparent!important;color:var(--muted)!important;font-size:11px!important;line-height:1!important;vertical-align:middle;box-shadow:none!important}.compact-help-dialog .estimate-body{display:block}.compact-help-dialog .estimate-details{padding:0}
#portfolioSummary.snapshot-redesign{padding:18px 22px;height:264px;box-sizing:border-box;overflow:visible}#portfolioSummary.snapshot-redesign>.chart-heading{display:flex;margin:0 0 12px;gap:10px;height:28px}#portfolioSummary.snapshot-redesign h2{font-size:17px;margin:0}#portfolioSummary.snapshot-redesign #refreshPortfolio{font-size:10px;padding:4px 8px;margin:0}
.snapshot-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(200px,.8fr) minmax(0,1fr);gap:24px;min-height:0}.snapshot-grid>section,.snapshot-grid>.allocation-layout{min-width:0}.snapshot-label{font-size:11px;color:var(--muted);line-height:20px}.snapshot-label>span{font-size:9px}.snapshot-value{font-size:29px!important;line-height:1.2;letter-spacing:-.8px;color:var(--performance-color,var(--text));font-weight:550;display:block;font-variant-numeric:tabular-nums;white-space:nowrap}.snapshot-change{font-size:12px;color:var(--performance-color);font-weight:600;height:19px;line-height:19px}.performance-plot{height:83px;color:var(--performance-color);margin-top:4px}.performance-plot svg{width:100%;height:100%;overflow:visible;outline-offset:2px}.performance-plot text{fill:var(--muted);font:9px system-ui}.performance-grid{stroke:var(--border);stroke-dasharray:2 4;stroke-width:1}.performance-empty{height:100%;display:grid;place-items:center;border-bottom:1px dashed var(--border);font-size:11px;color:var(--muted)}.performance-readout{height:17px;font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.performance-periods{display:flex;gap:3px;justify-content:space-between}.performance-periods button{padding:3px 7px;margin:0;border:0;border-radius:5px;min-height:23px;background:none;color:var(--performance-color);font-size:10px;font-weight:700}.performance-periods button[aria-pressed=true]{background:var(--performance-color);color:var(--bg)}
.snapshot-margin{text-align:center;border-inline:1px solid var(--border);padding:0 20px}.snapshot-margin .snapshot-value{font-size:28px!important}.snapshot-estimate{font-size:8px!important;letter-spacing:.7px}.snapshot-dial{width:100%;height:104px;max-width:240px;display:block;margin:4px auto 0;overflow:visible}.snapshot-dial .dial-track{fill:none;stroke:var(--border);stroke-width:12}.snapshot-dial .dial-spectrum{fill:none;stroke:url(#snapshotSpectrum);stroke-width:8}.snapshot-dial .dial-needle{fill:var(--text)}.snapshot-dial text{fill:var(--muted);font:10px system-ui}.snapshot-dial .dial-percent{font-size:16px;fill:var(--performance-color);font-weight:600}.snapshot-margin-base{display:flex;justify-content:space-between;gap:8px;font-size:10px;margin-top:2px}.snapshot-margin-base>div:first-child{text-align:left}.snapshot-margin-base>div:last-child{text-align:right}.snapshot-margin-base span,.snapshot-margin-base b{display:block}.snapshot-margin-base span{color:var(--muted);font-size:9px}.snapshot-margin-base b{font-size:12px;font-weight:500}
#portfolioSummary.snapshot-redesign .allocation-layout{display:flex;flex-direction:column;gap:9px;padding:0;margin:0;border:0;align-self:stretch;max-height:188px;overflow:auto}#portfolioSummary.snapshot-redesign .allocation-caption{font-size:11px;margin:0}#portfolioSummary.snapshot-redesign .allocation-bar{height:52px;min-height:52px;margin:0}#portfolioSummary.snapshot-redesign .allocation-inline b{font-size:10px}#portfolioSummary.snapshot-redesign .allocation-inline strong{font-size:12px}#portfolioSummary.snapshot-redesign .allocation-inline small{font-size:9px}#portfolioSummary.snapshot-redesign .allocation-readout{padding:0;min-height:24px;font-size:11px}#portfolioSummary.snapshot-redesign #allocationDetail strong{font-size:12px}#portfolioSummary.snapshot-redesign #allocationDetail span{font-size:11px}#portfolioSummary.snapshot-redesign .allocation-key{gap:4px;margin:0;max-height:62px;overflow:auto}#portfolioSummary.snapshot-redesign .allocation-key-item{padding:3px 6px;font-size:9px;margin:0}#portfolioSummary.snapshot-redesign .allocation-key-item b{font-size:9px}.quiet-strategy{margin-top:8px}.quiet-strategy>summary{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px;cursor:pointer;padding:9px 0}.quiet-strategy>summary span:last-child{color:var(--accent)}.strategy-quiet .live-strategy-toolbar{margin:0}
body.signed-in nav [data-page=Accounts],body.signed-in nav a[href^='/#page=Accounts']{order:-2}
.connections-compact #content{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:16px}.connections-compact #content>article{margin:0;min-width:0;padding:20px}.connections-compact #content h2{font-size:19px;margin:0 0 12px}.connections-compact #content h3{font-size:14px;margin-top:20px}.connections-compact #content p{font-size:12px;line-height:1.55}.connections-compact #content form{display:flex;flex-wrap:wrap;gap:10px;align-items:end}.connections-compact #content form label{flex:1 1 180px;min-width:0}.connections-compact #content button{font-size:12px}.connections-compact #content section{border-top:1px solid var(--border);padding-top:12px;margin-top:12px}.connections-compact .owner-bank-heading{flex-wrap:wrap;justify-content:flex-start;gap:10px 12px}.connections-compact .owner-bank-heading h2{flex:1 0 100%}.connection-holdings>summary{cursor:pointer;font-size:12px;color:var(--muted)}.connection-holdings{margin-top:12px}.connection-help-notes[hidden]{display:none}
@media(max-width:1000px){.snapshot-grid{gap:14px;grid-template-columns:minmax(0,1.1fr) minmax(180px,.85fr) minmax(0,1fr)}.snapshot-margin{padding:0 12px}.snapshot-value{font-size:25px!important}.snapshot-margin .snapshot-value{font-size:25px!important}.performance-periods button{padding:3px 5px}}
@media(max-width:760px){#portfolioSummary.snapshot-redesign{height:auto;padding:16px}.snapshot-grid{grid-template-columns:1fr 1fr;gap:18px}.snapshot-performance{grid-column:1/-1}.performance-plot{height:125px}.snapshot-grid>.allocation-layout{max-height:205px!important}.snapshot-margin{border-left:0;padding:0 12px 0 0}.snapshot-value{font-size:28px!important}.performance-periods button{font-size:11px;padding:6px 9px}.connections-compact #content{display:block}.connections-compact #content>article{margin-bottom:14px}.snapshot-grid .allocation-inline strong{display:none}.snapshot-margin .snapshot-value{font-size:22px!important}.snapshot-margin-base b{font-size:10px}}
.margin-calculator{padding:24px}.calc-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.calc-heading h2{margin:6px 0 0}.calc-presets{display:flex;gap:5px;flex-wrap:wrap}.calc-presets button{font-size:11px;margin:0;padding:7px 10px}.calc-layout{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(0,1.5fr);gap:32px}.calc-controls{display:block!important}.calc-controls section{border:1px solid var(--border);border-radius:12px;padding:16px 18px;margin-bottom:14px;background:var(--bg)}.calc-controls h3{font-size:13px;margin:0 0 16px}.margin-calc-control{display:block!important;margin:14px 0!important;font-size:12px!important}.margin-calc-control>span{display:flex;align-items:center;justify-content:space-between;gap:8px}.calc-exact{display:flex;gap:4px;align-items:center;color:var(--muted)}.calc-exact input{width:105px!important;padding:5px 7px!important;font-size:12px!important;margin:0!important;text-align:right}.calc-exact>span{width:28px;font-size:10px}.margin-calc-control input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:5px;padding:0!important;margin:16px 0 3px!important;background:linear-gradient(90deg,var(--accent) var(--calc-fill),var(--border) var(--calc-fill));border:0;border-radius:4px;cursor:pointer}.margin-calc-control input[type=range]::-webkit-slider-thumb{appearance:none;width:15px;height:15px;border-radius:50%;background:var(--accent);box-shadow:0 0 12px color-mix(in srgb,var(--accent) 45%,transparent)}.margin-calc-control input[type=range]::-moz-range-thumb{width:15px;height:15px;border-radius:50%;border:0;background:var(--accent)}.calc-choice{display:flex!important;justify-content:space-between;align-items:center;gap:12px;font-size:11px!important;margin:12px 0 0!important}.calc-choice select{font-size:11px;width:65%;padding:7px}.calc-results{position:sticky;top:64px;align-self:start;min-width:0}.calc-result-heading>small{font-size:12px;color:var(--muted)}.calc-result-heading>strong{font-size:44px;letter-spacing:-1.5px;display:block;font-weight:550;line-height:1.3}.calc-result-heading>p{font-size:13px;margin:2px 0 14px}.calc-positive{color:var(--return-gain)}.calc-negative{color:var(--return-loss)!important}#calcGraph svg{width:100%;display:block;overflow:visible}#calcGraph text{font:10px system-ui;fill:var(--muted)}.calc-equity{stroke:var(--accent);stroke-width:2.5;fill:none}.calc-baseline{stroke:var(--muted);stroke-width:2;stroke-dasharray:5 5;fill:none}.calc-legend{display:flex;gap:20px;font-size:11px;color:var(--muted);margin:10px 0 20px}.calc-legend>span:first-child{color:var(--accent)}.calc-metrics{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--border);border-radius:12px;overflow:hidden}.calc-metrics>div{padding:12px 14px;border-bottom:1px solid var(--border)}.calc-metrics span{display:block;color:var(--muted);font-size:10px}.calc-metrics strong{display:block;font-size:18px;margin-top:4px;font-weight:500}.calc-risk{padding:16px;margin-top:16px;border:1px solid var(--border);border-radius:12px}.calc-risk h3,.calc-risk>div{display:flex;justify-content:space-between;gap:10px;font-size:14px;margin:0}.calc-risk h3 strong{color:var(--return-gain)}.calc-risk p{font-size:11px;color:var(--muted);margin:8px 0}.calc-risk-alert{border-color:var(--return-loss)}.calc-risk-alert h3 strong{color:var(--return-loss)}.calc-risk>div{font-size:12px;margin-top:14px}.calc-table{margin-top:20px;font-size:12px}.calc-table summary{cursor:pointer;color:var(--muted)}.calc-invalid #calcEquity,.calc-invalid #calcGraph,.calc-invalid #calcMetrics,.calc-invalid #calcRisk,.calc-invalid #calcAdvantage{opacity:.35}.calc-controls input:invalid{border-color:var(--return-loss)}
@media(max-width:800px){.calc-layout{grid-template-columns:1fr;gap:18px}.calc-results{position:static}.calc-heading{display:block}.calc-presets{margin-top:16px}.margin-calculator{padding:16px}.calc-result-heading>strong{font-size:36px}.calc-controls{display:grid!important;grid-template-columns:1fr 1fr;gap:12px}.calc-controls section{margin:0;min-width:0}.calc-exact input{width:80px!important}.margin-calc-control>span{flex-wrap:wrap}.calc-choice{display:block!important}.calc-choice select{width:100%}}
@media(max-width:520px){.calc-controls{grid-template-columns:1fr}.calc-choice{display:flex!important}.calc-choice select{width:65%}}
#portfolioSummary.snapshot-redesign>.chart-heading{width:100%;max-width:none;grid-column:auto}#portfolioSummary.snapshot-redesign .allocation-layout{width:100%;grid-column:auto;grid-row:auto}#portfolioSummary.snapshot-redesign .allocation-bar{width:100%;max-width:none;aspect-ratio:auto;border-radius:8px}.snapshot-redesign .performance-plot{height:74px}.snapshot-redesign .performance-periods{margin-top:0}.snapshot-redesign .allocation-inline{overflow:hidden}.snapshot-redesign .allocation-narrow .allocation-inline strong{display:none}
#portfolioSummary.snapshot-redesign>.chart-heading{justify-content:space-between}.calc-metrics strong,.calc-result-heading>strong{overflow-wrap:anywhere}
body.light{--return-gain:#087046;--return-loss:#bd203b}body.light .performance-caution{--performance-color:#805700}.calc-mobile-result{display:none}@media(max-width:800px){.margin-calculator{padding-bottom:90px}.calc-mobile-result{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;background:var(--panel);border-top:1px solid var(--border);box-shadow:0 -4px 20px #0002;z-index:35;font-size:10px}.calc-mobile-result strong{font-size:22px;display:block;color:var(--text)}.calc-mobile-result>span:last-child{font-size:11px}}
@media(max-width:520px){.calc-exact input{width:105px!important}}
/* Owner refinement: fixed footprint, holdings chart, centered heading, compact allocation. */
body.signed-in nav{justify-content:flex-start!important}
#portfolioSummary.snapshot-redesign{height:264px;padding:16px 22px}
.snapshot-redesign .snapshot-grid{height:230px;align-items:stretch;gap:24px}
.snapshot-redesign .snapshot-performance .performance-plot{height:108px}
.snapshot-redesign .snapshot-margin{padding-top:0}
.snapshot-redesign .snapshot-margin>.chart-heading{display:flex;justify-content:center;align-items:center;margin:0 0 2px;height:23px;width:100%;max-width:none}
.snapshot-redesign .snapshot-margin h2{font-size:15px!important;line-height:20px;white-space:nowrap;text-align:center}
.snapshot-redesign .snapshot-margin .snapshot-label{line-height:19px}
.snapshot-redesign .snapshot-dial{height:116px;margin:0 auto}
.snapshot-redesign .snapshot-dial .dial-percent{font-size:28px;font-weight:600}
.snapshot-redesign .snapshot-dial .dial-health-label{font-size:11px;fill:var(--text)}
.snapshot-redesign .snapshot-margin-base{margin-top:0}
#portfolioSummary.snapshot-redesign .allocation-layout{max-height:none;height:230px;overflow:visible;gap:8px}
#portfolioSummary.snapshot-redesign .allocation-readout[hidden]{display:none}
#portfolioSummary.snapshot-redesign .allocation-layout>#refreshPortfolio{align-self:flex-end;margin-top:auto;font-size:10px;padding:5px 9px}
#portfolioSummary.snapshot-redesign .allocation-squares .allocation-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:68px;height:144px;min-height:144px;gap:7px;overflow:auto;background:none;border:0;box-shadow:none;align-items:stretch;padding:0}
#portfolioSummary.snapshot-redesign .allocation-squares .allocation-segment{min-width:0;height:68px;border-radius:7px;border:2px solid transparent;flex:none;animation:none;transform:none;opacity:1;overflow:hidden;padding:5px}
#portfolioSummary.snapshot-redesign .allocation-squares .allocation-segment.selected{border-color:var(--text);box-shadow:inset 0 0 0 1px #fff9}
#portfolioSummary.snapshot-redesign .allocation-squares .allocation-inline{display:flex!important;flex-direction:column;align-items:center;justify-content:center;height:100%;width:100%;gap:3px;position:static;opacity:1;transform:none;white-space:nowrap}
#portfolioSummary.snapshot-redesign .allocation-squares .allocation-inline b{font-size:11px}
#portfolioSummary.snapshot-redesign .allocation-squares .allocation-inline strong{display:block!important;font-size:10px}
#portfolioSummary.snapshot-redesign .allocation-squares .allocation-inline small{font-size:10px}
#portfolioSummary.snapshot-redesign .allocation-squares .allocation-key{display:none}
.gross-total-value{display:flex;align-items:center;gap:3px}.account-grand-total.performance-gain .gross-total-value strong,.account-grand-total.performance-loss .gross-total-value strong{color:var(--performance-color)}.gross-total-value .compact-help{align-self:center}
.combined-composition{width:min(100%,440px);margin-top:3px;min-width:0;font-size:11px;color:var(--muted)}.combined-asset-track{height:8px;width:100%;background:#f4c56a;border-radius:5px;overflow:hidden}.combined-asset-track>span{display:block;height:100%;background:#79b0ff}.combined-asset-labels{display:flex;justify-content:space-between;gap:16px;margin-top:9px;font-size:12px;flex-wrap:wrap}.combined-asset-labels>span{display:flex;align-items:center;gap:5px}.combined-asset-labels i{width:6px;height:6px;border-radius:50%;background:#79b0ff}.combined-asset-labels>span:last-child i{background:#f4c56a}.combined-asset-labels b{font-size:12px;color:var(--text);font-weight:500}
.strategy-earlier-reviews{margin:12px 0;border:1px solid var(--border);border-radius:9px;padding:12px 14px}.strategy-earlier-reviews h3{font-size:12px;margin:0 0 7px;color:var(--muted)}.strategy-earlier-reviews .earlier-review-row{padding:6px 0;border:0}.strategy-earlier-reviews small{font-size:11px}
@media(max-width:1000px){.snapshot-redesign .snapshot-grid{gap:14px}.snapshot-redesign .snapshot-margin h2{font-size:13px!important}#portfolioSummary.snapshot-redesign .allocation-squares .allocation-bar{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:46px;height:154px;min-height:154px;gap:5px}#portfolioSummary.snapshot-redesign .allocation-squares .allocation-segment{height:46px;padding:2px}#portfolioSummary.snapshot-redesign .allocation-squares .allocation-inline{gap:0}#portfolioSummary.snapshot-redesign .allocation-squares .allocation-inline b{font-size:9px}#portfolioSummary.snapshot-redesign .allocation-squares .allocation-inline strong,#portfolioSummary.snapshot-redesign .allocation-squares .allocation-inline small{font-size:8px}}
@media(max-width:760px){#portfolioSummary.snapshot-redesign{height:auto;padding:16px}.snapshot-redesign .snapshot-grid{height:auto;gap:16px}.snapshot-redesign .snapshot-performance .performance-plot{height:125px}.snapshot-redesign .snapshot-margin h2{font-size:12px!important;white-space:normal;line-height:15px}.snapshot-redesign .snapshot-margin>.chart-heading{height:25px;margin-bottom:4px}.snapshot-redesign .snapshot-margin{padding-right:8px}#portfolioSummary.snapshot-redesign .allocation-layout{height:230px;max-height:none!important}#portfolioSummary.snapshot-redesign .allocation-squares .allocation-bar{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:36px;height:160px;min-height:160px;gap:5px}#portfolioSummary.snapshot-redesign .allocation-squares .allocation-segment{height:36px}#portfolioSummary.snapshot-redesign .allocation-squares .allocation-inline{display:grid!important;grid-template-columns:1fr;gap:0}#portfolioSummary.snapshot-redesign .allocation-squares .allocation-inline b{font-size:9px;line-height:10px}#portfolioSummary.snapshot-redesign .allocation-squares .allocation-inline strong,#portfolioSummary.snapshot-redesign .allocation-squares .allocation-inline small{font-size:8px;line-height:9px}.combined-asset-labels{gap:8px;font-size:10px}.combined-asset-labels b{font-size:11px}}
#portfolioSummary.snapshot-redesign .allocation-squares .allocation-inline{visibility:visible!important}
#portfolioSummary.snapshot-redesign .allocation-squares .allocation-inline{padding:0!important;box-sizing:border-box;align-content:center}
/* Independent navigation anchors and proportional, stable allocation tiles. */
body.signed-in nav{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:0;overflow:visible}
body.signed-in nav>.nav-center{grid-column:2;display:flex;justify-content:center;align-items:center;gap:6px;min-width:0}
body.signed-in nav.accounts-pinned>[data-page=Accounts],body.signed-in nav.accounts-pinned>a[href='/#page=Accounts']{grid-column:1;grid-row:1;justify-self:start;order:0}
.snapshot-redesign .snapshot-performance{position:relative}
#portfolioSummary.snapshot-redesign .snapshot-performance>.chart-heading{position:absolute;right:0;top:0;width:auto;max-width:none;height:20px;margin:0;display:flex;align-items:center}
#portfolioSummary.snapshot-redesign .snapshot-performance>.chart-heading h2{font-size:13px;line-height:20px;white-space:nowrap}
.snapshot-redesign .snapshot-dial{height:140px;max-width:240px;margin:0 auto}
.snapshot-redesign .snapshot-dial .dial-health-label{font-size:15px;font-weight:500}
#portfolioSummary.snapshot-redesign .allocation-squares .allocation-bar{position:relative;display:block;height:140px;min-height:140px;overflow:hidden;flex:none}
#portfolioSummary.snapshot-redesign .allocation-squares .allocation-segment{position:absolute;min-width:0;min-height:0;box-sizing:border-box;border:2px solid var(--panel);border-radius:7px;padding:5px;overflow:hidden;margin:0}
#portfolioSummary.snapshot-redesign .allocation-squares .allocation-segment.selected{border-color:var(--text)}
#portfolioSummary.snapshot-redesign .allocation-squares .allocation-segment .allocation-inline{display:flex!important;position:static!important;inset:auto!important;transform:none!important;visibility:visible!important;opacity:1!important;background:none!important;box-shadow:none!important;padding:0!important;z-index:auto;gap:2px;line-height:1.1}
#portfolioSummary.snapshot-redesign .allocation-squares .allocation-inline b{font-size:11px;line-height:1.1}
#portfolioSummary.snapshot-redesign .allocation-squares .allocation-inline small,#portfolioSummary.snapshot-redesign .allocation-squares .allocation-inline strong{font-size:10px;line-height:1.1}
#portfolioSummary.snapshot-redesign .allocation-squares .tile-compact .allocation-inline strong{display:none!important}
#portfolioSummary.snapshot-redesign .allocation-squares .tile-compact .allocation-inline b,#portfolioSummary.snapshot-redesign .allocation-squares .tile-compact .allocation-inline small{font-size:9px}
#portfolioSummary.snapshot-redesign .allocation-squares .tile-tiny .allocation-inline{visibility:visible!important}.snapshot-redesign .tile-tiny .allocation-inline small{display:none!important}
.holding-all-time{min-height:32px;line-height:16px;font-size:10px;margin:0}
.holding-all-time>span{display:block;color:var(--muted)}
.holding-all-time>strong{display:block;color:var(--performance-color);font-weight:600;font-size:12px;white-space:nowrap}
#portfolioSummary.snapshot-redesign .allocation-layout{gap:6px}
.strategy-earlier-reviews>summary{cursor:pointer;font-size:12px;color:var(--muted)}
@media(max-width:1000px){#portfolioSummary.snapshot-redesign .snapshot-performance>.chart-heading h2{font-size:11px}.snapshot-redesign .snapshot-dial{height:140px}}
@media(max-width:760px){body.signed-in nav{grid-template-columns:minmax(0,1fr)}body.signed-in nav>.nav-center{grid-column:1;overflow-x:auto;justify-content:safe center}body.signed-in nav.accounts-pinned{grid-template-columns:auto minmax(0,1fr);column-gap:10px}body.signed-in nav.accounts-pinned>.nav-center{grid-column:2;justify-content:safe center}body.signed-in nav .nav-center>*{flex-shrink:0}#portfolioSummary.snapshot-redesign .snapshot-performance>.chart-heading h2{font-size:12px}.snapshot-redesign .snapshot-dial{height:auto;aspect-ratio:240/165}#portfolioSummary.snapshot-redesign .allocation-squares .allocation-bar{height:140px;min-height:140px}.holding-all-time>strong{font-size:10px;white-space:normal;line-height:13px}.holding-all-time{min-height:40px}.snapshot-redesign .snapshot-dial .dial-health-label{font-size:18px}}
@media(max-width:520px){.snapshot-redesign .snapshot-margin{grid-column:1/-1;border:0;padding:0;max-width:280px;width:100%;justify-self:center}.snapshot-redesign .snapshot-dial{height:140px;aspect-ratio:auto}.snapshot-redesign .snapshot-dial .dial-health-label{font-size:15px}#portfolioSummary.snapshot-redesign .allocation-layout{grid-column:1/-1;height:230px}.holding-all-time>strong{font-size:12px}.holding-all-time{min-height:32px}}
#portfolioSummary.snapshot-redesign .allocation-squares .tile-compact{padding:2px}
/* Inspection feedback is transient; a retained readout is not a pinned tile. */
#portfolioSummary.snapshot-redesign .allocation-bar,#portfolioSummary.snapshot-redesign .allocation-squares .allocation-bar{overflow:visible;isolation:isolate}
#portfolioSummary.snapshot-redesign .allocation-segment{translate:none;transform:none;filter:none;box-shadow:none;transform-origin:center;transition:transform 180ms ease,filter 180ms ease,box-shadow 180ms ease;z-index:0}
#portfolioSummary.snapshot-redesign .allocation-segment:focus-visible,#portfolioSummary.snapshot-redesign .allocation-segment:active{translate:none;transform:scale(1.055);transform-origin:center;z-index:3;filter:brightness(1.08);box-shadow:0 5px 14px #0004,inset 0 0 0 1px #ffffffb0}
@media(hover:hover) and (pointer:fine){#portfolioSummary.snapshot-redesign .allocation-bar:not(:has(.allocation-segment:focus-visible)) .allocation-segment:hover{translate:none;transform:scale(1.055);transform-origin:center;z-index:3;filter:brightness(1.08);box-shadow:0 5px 14px #0004,inset 0 0 0 1px #ffffffb0}}
#portfolioSummary.snapshot-redesign .allocation-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-top:auto;min-width:0;width:100%;text-align:left}
#portfolioSummary.snapshot-redesign .allocation-footer .holding-all-time{flex:1;min-width:0;min-height:32px;text-align:left}
#portfolioSummary.snapshot-redesign .allocation-footer .holding-all-time>strong{white-space:normal}
#portfolioSummary.snapshot-redesign .allocation-footer>#refreshPortfolio{flex:none;margin:0;font-size:10px;padding:5px 9px}
.strategy-actions>.purchase-check{margin-left:auto;align-items:flex-end;text-align:right;max-width:100%}
@media(prefers-reduced-motion:reduce){#portfolioSummary.snapshot-redesign .allocation-segment{transition:none}}

/* Report intake stays compact; wide source tables scroll within their card. */
#historyImportPanel form{display:grid;gap:12px;max-width:620px}#historyImportPanel label{display:grid;gap:5px}.history-import-dates{display:grid;grid-template-columns:1fr 1fr;gap:12px}.history-import-review{min-width:0}.history-import-review .table{max-width:100%;overflow:auto}.history-import-review td{max-width:260px;white-space:pre-wrap;overflow-wrap:anywhere}.history-import-review label{display:flex!important;align-items:center;margin:12px 0}.history-import-review input[type=checkbox]{width:auto}@media(max-width:440px){.history-import-dates{grid-template-columns:1fr}#historyImportPanel input[type=file]{width:100%;min-width:0}}

/* Match desktop separators when the three snapshot sections stack on phones. */
@media(max-width:520px){
 #portfolioSummary.snapshot-redesign .allocation-layout{position:relative}
 #portfolioSummary.snapshot-redesign .snapshot-performance::after,
 #portfolioSummary.snapshot-redesign .allocation-layout::before{content:"";position:absolute;left:0;right:0;border-top:1px solid var(--border);pointer-events:none}
 #portfolioSummary.snapshot-redesign .snapshot-performance::after{bottom:-8px}
 #portfolioSummary.snapshot-redesign .allocation-layout::before{top:-8px}
}

/* Saved estimates remain legible without implying current funding eligibility. */
.snapshot-saved-date{font-size:11px;color:var(--muted);line-height:1.3;margin-top:3px}
.snapshot-margin.margin-saved .dial-spectrum{stroke:url(#snapshotSpectrum);opacity:1}
.snapshot-margin.margin-saved .snapshot-dial{max-height:144px}

/* Fine dollar controls and the assets/debt projection. */
.calc-exact .calc-dollar-input{appearance:textfield;-moz-appearance:textfield}
.calc-dollar-input::-webkit-inner-spin-button,.calc-dollar-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.calc-exact>.calc-dollar-arrows{display:grid;width:20px;gap:1px}
.calc-dollar-arrows button{margin:0!important;padding:1px 3px!important;min-width:20px;line-height:12px;font-size:9px;border-radius:3px}
.calc-assets{stroke:var(--accent);stroke-width:2.5;fill:none;vector-effect:non-scaling-stroke}
.calc-debt{stroke:#e5a44d;stroke-width:2.5;stroke-dasharray:6 4;fill:none;vector-effect:non-scaling-stroke}
.calc-inspect-line{stroke:var(--muted);stroke-width:1;stroke-dasharray:2 4;opacity:.5}
.calc-start-point{stroke-dasharray:none}
.calc-input-help{font-size:11px;color:var(--muted);line-height:1.5;margin:10px 0}
.calc-legend>span:nth-child(2){color:#b57521}.calc-legend{margin-bottom:6px;flex-wrap:wrap;gap:8px 20px}
body:not(.light) .calc-legend>span:nth-child(2){color:#e5a44d}
#calcGraph text{font:11px system-ui}.calc-graph-readout{font-size:11px;color:var(--muted);min-height:30px;line-height:1.5;margin:0 0 14px}
#calcGraph svg:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}

/* Long tracks and practical default ranges make drag adjustments more deliberate. */
.margin-calc-control input[type=range]{max-width:none!important;width:100%!important;height:6px}
.calc-layout{grid-template-columns:minmax(360px,1fr) minmax(0,1.4fr)}
.margin-calc-control>.calc-range-bounds{margin-top:3px;font-size:10px;line-height:1.2}
.calc-range-bounds small{font-size:10px;font-variant-numeric:tabular-nums}
.calc-exact input{font-variant-numeric:tabular-nums}
.calc-dollar-arrows button{min-height:18px}
@media(max-width:800px){.calc-layout{grid-template-columns:1fr}}

/* Headline balances and margin cushion sit above the chart. */
.calc-result-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.calc-result-top .calc-result-heading{min-width:0;flex:1}
.calc-cushion{flex:0 1 180px;text-align:right;min-width:120px}
.calc-cushion>small{font-size:12px;color:var(--muted)}
.calc-cushion>strong{display:block;font-size:34px;line-height:1.65;font-weight:550;letter-spacing:-1px;color:var(--return-gain)}
.calc-cushion>p{font-size:10px;line-height:1.4;margin:2px 0 14px;color:var(--muted)}
.calc-cushion-alert>strong{color:var(--return-loss)}
.calc-invalid #calcCushion{opacity:.35}
@media(max-width:520px){.calc-result-top{gap:10px}.calc-cushion{flex-basis:112px;min-width:90px}.calc-result-top .calc-result-heading>strong{font-size:30px}.calc-cushion>strong{font-size:28px;line-height:1.4}.calc-cushion>small{font-size:11px}}
@media(max-width:350px){.calc-result-top{flex-wrap:wrap}.calc-cushion{flex:1;text-align:left}.calc-result-top .calc-result-heading{flex-basis:100%}}
@media(max-width:800px),(any-pointer:coarse){.calc-exact>.calc-dollar-arrows{width:28px}.calc-dollar-arrows button{min-width:28px;min-height:28px;line-height:18px;font-size:11px}}

/* Dated brokerage return snapshots remain separate from daily chart returns. */
.reported-account-return{display:flex;flex-direction:column;gap:4px;margin:10px 0 12px;font-size:12px}
.reported-account-return>span{display:flex;align-items:center;gap:6px;color:var(--muted)}
.reported-account-return>strong{font-size:17px;font-variant-numeric:tabular-nums}
.reported-account-return>small,.reported-source{display:block;color:var(--muted);font-size:10px;line-height:1.5;font-weight:400;overflow-wrap:anywhere}
.holding-all-time .reported-source{grid-column:1/-1}

#portfolioSummary.snapshot-redesign.has-reported-returns{height:auto;min-height:264px}
.snapshot-redesign.has-reported-returns .snapshot-grid{height:auto;min-height:230px}
.reported-account-return>strong{color:var(--performance-color)}

/* Overview refinement: compact prices, direct timelines, and fuller snapshot panels. */
.market-compact{--market-color:var(--text);--market-green:var(--return-gain);--market-red:var(--return-loss);padding:18px 22px}
.market-compact.market-gain{--market-color:var(--market-green)}
.market-compact.market-loss{--market-color:var(--market-red)}
.market-compact>.chart-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:20px;margin:0 0 5px}
.market-summary{min-width:0}.market-summary #marketQuoteLabel{font-size:11px;color:var(--muted);margin-bottom:3px}
.market-summary #marketQuote{display:block;font-size:32px;font-weight:550;line-height:1.12;letter-spacing:-.7px;color:var(--market-color);font-variant-numeric:tabular-nums}
.market-period-change{display:flex;flex-direction:column;gap:3px;margin-top:7px}
.market-period-change strong{font-size:17px;font-weight:600;color:var(--market-color);font-variant-numeric:tabular-nums}
.market-period-change span{font-size:10px;color:var(--muted)}
.market-heading-right{display:flex;flex-direction:column;align-items:flex-end;gap:10px;text-align:right}
.market-heading-right h2{font-size:15px;line-height:1.3;margin:0;display:flex;align-items:center;gap:7px}
.market-compact .market-ticker{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--muted);margin:0}
.market-compact .market-ticker select{width:105px;padding:6px 9px;margin:0;font-size:12px}
.market-compact #marketStatus{font-size:11px;color:var(--muted);margin:6px 0}.market-compact #marketStatus:empty{display:none}
.market-compact #priceChart{height:230px;min-width:0;width:100%;display:block}
.market-compact .close-line{stroke:var(--market-color);stroke-width:2.4}
.market-compact .cursor-point,.market-compact .market-single-point{fill:var(--market-color);stroke:var(--panel)}
.market-compact .market-close-key{color:var(--market-color)}
.market-timeline{display:flex;align-items:center;justify-content:safe center;gap:6px;overflow-x:auto;padding:3px 0 5px;scrollbar-width:thin}
.market-timeline button{flex:none;margin:0;padding:5px 11px;min-height:29px;border:0;background:none;color:var(--market-green);font-size:11px;font-weight:700;border-radius:5px}
.market-timeline button[aria-pressed=true]{background:var(--market-green);color:#082217}
.market-timeline button[aria-disabled=true],.market-timeline button[aria-disabled=true]:hover{background:none;color:var(--muted);opacity:.45;cursor:not-allowed}
.market-timeline button:focus-visible{outline:2px solid var(--market-green);outline-offset:2px}
.market-footer{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-top:7px}
.market-chart-notes{min-width:0;flex:1}.market-compact #priceReadout{margin:0;padding:0;font-size:10px;line-height:1.5;min-height:15px;background:none;border:0}
.market-compact #chartLegend{display:flex;flex-wrap:wrap;gap:4px 12px;margin:4px 0 0;font-size:10px;line-height:1.5}
.market-compact .chart-add-ticker{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:7px;flex:0 0 245px;max-width:100%;margin:0}
.market-compact .chart-add-ticker label{display:flex;flex-direction:column;gap:3px;font-size:10px;color:var(--muted);margin:0;min-width:0}
.market-compact .chart-add-ticker input{margin:0;padding:6px 8px;width:100%;font-size:12px;min-width:0}
.market-compact .chart-add-ticker button{margin:0;padding:7px 10px;font-size:11px;min-height:30px}
.market-compact .chart-add-ticker [role=status]{grid-column:1/-1;font-size:10px;line-height:1.4;margin:0}
.market-compact .chart-add-ticker [role=status]:empty{display:none}
.market-compact #marketProvenance{margin:10px 0 0;font-size:10px;line-height:1.5;color:var(--muted)}.market-compact #marketProvenance:empty{display:none}
#portfolioSummary.snapshot-redesign{height:auto;min-height:284px;padding:15px 22px}
#portfolioSummary.snapshot-redesign>.snapshot-header{display:flex;position:static;justify-content:space-between;align-items:center;width:100%;margin:0 0 12px;min-height:25px}
#portfolioSummary.snapshot-redesign>.snapshot-header h2{font-size:14px;line-height:1.3;margin:0;text-align:left}
#portfolioSummary.snapshot-redesign>.snapshot-header #refreshPortfolio{margin:0;padding:6px 10px;font-size:10px}
.snapshot-redesign .snapshot-grid{height:auto;min-height:220px;grid-template-columns:minmax(0,1.1fr) minmax(200px,1fr) minmax(0,1.15fr);gap:22px}
.snapshot-redesign .snapshot-performance{padding-top:0}
.snapshot-redesign .snapshot-value{font-size:31px!important}
.snapshot-redesign .reported-account-return{margin:5px 0 8px;gap:2px}
.snapshot-redesign .reported-account-return>span{font-size:10px;line-height:15px}
.snapshot-redesign .reported-account-return>strong{font-size:15px;line-height:19px}
.snapshot-redesign .snapshot-change.snapshot-value-change{display:flex;align-items:baseline;justify-content:space-between;gap:7px;flex-wrap:wrap;height:auto;min-height:19px;line-height:1.3;margin:2px 0 4px}
.snapshot-value-change>span{color:var(--muted);font-size:10px;font-weight:400}.snapshot-value-change>strong{font-size:12px;font-weight:600}
.snapshot-redesign .snapshot-performance .performance-plot{height:90px}
.snapshot-redesign .snapshot-margin{padding:0 15px;display:flex;flex-direction:column;align-items:stretch}
.snapshot-redesign .snapshot-margin .snapshot-label{justify-content:center}
.snapshot-redesign .snapshot-margin .snapshot-value{font-size:32px!important}
.snapshot-redesign .snapshot-dial,.snapshot-redesign .snapshot-margin.margin-saved .snapshot-dial{height:158px;max-height:none;max-width:none;width:100%;margin:4px auto 0}
.snapshot-redesign .snapshot-dial .dial-percent{font-size:29px}
.snapshot-redesign .snapshot-dial .dial-health-label{font-size:14px}
.snapshot-redesign .snapshot-margin-base{margin-top:auto;padding-top:2px}
#portfolioSummary.snapshot-redesign .allocation-layout{height:auto;min-height:220px;max-height:none;overflow:visible;gap:7px}
#portfolioSummary.snapshot-redesign .allocation-caption{font-size:11px;line-height:18px;display:flex;align-items:center;gap:7px}
#portfolioSummary.snapshot-redesign .allocation-squares .allocation-bar,#portfolioSummary.snapshot-redesign .allocation-bar{height:176px;min-height:176px}
#portfolioSummary.snapshot-redesign .allocation-inline b{font-size:12px}
#portfolioSummary.snapshot-redesign .allocation-inline strong{font-size:14px}
#portfolioSummary.snapshot-redesign .allocation-inline small{font-size:10px}
#portfolioSummary.snapshot-redesign .allocation-footer{min-height:32px;margin-top:0}
#portfolioSummary.snapshot-redesign .holding-all-time{min-height:32px}
@media(max-width:1000px){
 .snapshot-redesign .snapshot-grid{grid-template-columns:minmax(0,1.1fr) minmax(170px,1fr) minmax(0,1.1fr);gap:14px}
 .snapshot-redesign .snapshot-margin{padding:0 10px}.snapshot-redesign .snapshot-value,.snapshot-redesign .snapshot-margin .snapshot-value{font-size:27px!important}
 .snapshot-redesign .snapshot-value-change{flex-direction:column;gap:2px!important}
}
@media(max-width:760px){
 .market-compact{padding:16px}.market-timeline{gap:2px}.market-timeline button{padding:5px 9px}
 .market-compact>.chart-heading{gap:12px}.market-heading-right h2{font-size:12px;max-width:155px}
 .market-summary #marketQuote{font-size:29px}.market-period-change strong{font-size:15px}
 .market-footer{align-items:flex-start;flex-wrap:wrap}.market-chart-notes{flex-basis:100%}.market-compact .chart-add-ticker{margin-left:auto;flex-basis:245px}
 #portfolioSummary.snapshot-redesign{height:auto;padding:16px}.snapshot-redesign .snapshot-grid{grid-template-columns:1fr 1fr;gap:18px;min-height:0}
 .snapshot-redesign .snapshot-performance{grid-column:1/-1}.snapshot-redesign .snapshot-performance .performance-plot{height:115px}
 .snapshot-redesign .snapshot-margin{padding:0 12px 0 0;border-left:0}
 #portfolioSummary.snapshot-redesign .allocation-layout{max-height:none!important;min-height:228px}
 .snapshot-redesign .snapshot-value-change{flex-direction:row;align-items:baseline}
}
@media(max-width:520px){
 .market-compact>.chart-heading{grid-template-columns:minmax(0,1fr) 135px;gap:8px}
 .market-heading-right h2{font-size:11px;max-width:135px}.market-heading-right{gap:10px}
 .market-compact .market-ticker{font-size:10px;gap:5px}.market-compact .market-ticker select{width:78px}
 .market-summary #marketQuote{font-size:28px}.market-period-change strong{font-size:14px}
 .market-timeline button{padding:5px 8px;font-size:10px}
 #portfolioSummary.snapshot-redesign .snapshot-header h2{font-size:12px}
 .snapshot-redesign .snapshot-grid{grid-template-columns:minmax(0,1fr);gap:24px}
 .snapshot-redesign .snapshot-margin{grid-column:1/-1;border:0;padding:0;max-width:100%;width:100%}
 .snapshot-redesign .snapshot-dial{height:190px;width:100%;max-width:340px}
 .snapshot-redesign .snapshot-margin-base{width:100%;max-width:340px;align-self:center}
 #portfolioSummary.snapshot-redesign .allocation-layout{grid-column:1/-1;min-height:246px}
 #portfolioSummary.snapshot-redesign .allocation-bar,#portfolioSummary.snapshot-redesign .allocation-squares .allocation-bar{height:190px;min-height:190px}
 .snapshot-redesign .snapshot-performance::after{bottom:-12px!important}#portfolioSummary.snapshot-redesign .allocation-layout::before{top:-12px}
}
#portfolioSummary.snapshot-redesign>.snapshot-header{flex-direction:row;flex-wrap:nowrap}
#portfolioSummary.snapshot-redesign>.snapshot-header h2{flex:initial;width:auto}
/* The SMA key may be absent, so colour it by class rather than position. */
.market-compact #chartLegend span:nth-child(2){color:inherit}
.market-compact #chartLegend .market-close-key{color:var(--market-color)}
.market-compact #chartLegend span.market-sma-key{color:var(--chart-gold)}

/* Match site return colors and give the margin estimate more visual weight. */
.snapshot-redesign .snapshot-margin>.snapshot-estimate{display:block;font-size:10px!important;line-height:12px;letter-spacing:.2px;margin:0 0 3px;color:var(--muted)}
.snapshot-redesign .snapshot-margin .snapshot-value{font-size:clamp(30px,3vw,44px)!important;line-height:1.12;letter-spacing:-1px}
.snapshot-redesign .snapshot-dial,.snapshot-redesign .snapshot-margin.margin-saved .snapshot-dial{height:205px;width:100%;max-width:380px;margin:6px auto 0}
.snapshot-redesign .snapshot-dial .dial-percent{font-size:38px;fill:var(--performance-color)}
.snapshot-redesign .snapshot-dial .dial-health-label{font-size:15px}
.snapshot-redesign #snapshotSpectrum stop:first-child{stop-color:var(--return-loss)}
.snapshot-redesign #snapshotSpectrum stop:nth-child(2){stop-color:var(--signal-yellow)}
.snapshot-redesign #snapshotSpectrum stop:last-child{stop-color:var(--return-gain)}
@media(max-width:1000px) and (min-width:761px){.snapshot-redesign .snapshot-grid{grid-template-columns:minmax(0,1fr) minmax(230px,1.35fr) minmax(0,1.1fr)}.snapshot-redesign .snapshot-dial,.snapshot-redesign .snapshot-margin.margin-saved .snapshot-dial{height:190px}.snapshot-redesign .snapshot-margin .snapshot-value{font-size:36px!important}}
@media(max-width:760px){.snapshot-redesign .snapshot-margin .snapshot-value{font-size:34px!important}.snapshot-redesign .snapshot-dial,.snapshot-redesign .snapshot-margin.margin-saved .snapshot-dial{height:180px}}
@media(max-width:520px){.snapshot-redesign .snapshot-margin .snapshot-value{font-size:44px!important}.snapshot-redesign .snapshot-dial,.snapshot-redesign .snapshot-margin.margin-saved .snapshot-dial{height:220px}}

/* Fill the holdings chart column and make snapshot labels and returns readable. */
#portfolioSummary.snapshot-redesign .snapshot-performance{display:flex;flex-direction:column;min-height:0}
#portfolioSummary.snapshot-redesign .snapshot-performance .performance-plot{height:auto;min-height:150px;flex:1 1 0;margin-top:7px}
#portfolioSummary.snapshot-redesign .snapshot-performance>.snapshot-label,
#portfolioSummary.snapshot-redesign .snapshot-performance>.snapshot-value,
#portfolioSummary.snapshot-redesign .reported-account-return,
#portfolioSummary.snapshot-redesign .snapshot-change,
#portfolioSummary.snapshot-redesign .performance-readout,
#portfolioSummary.snapshot-redesign .performance-periods{flex-shrink:0}
.snapshot-redesign .snapshot-margin>.snapshot-label{font-size:19px;line-height:25px;font-weight:500;color:var(--text)}
#portfolioSummary.snapshot-redesign .holding-all-time>strong{font-size:20px;line-height:1.25;white-space:normal;font-variant-numeric:tabular-nums}
#portfolioSummary.snapshot-redesign .holding-all-time>span{font-size:12px;line-height:18px}
@media(max-width:1000px) and (min-width:761px){.snapshot-redesign .snapshot-margin>.snapshot-label{font-size:17px;line-height:23px}}
@media(max-width:760px){.snapshot-redesign .snapshot-margin>.snapshot-label{font-size:16px;line-height:23px}#portfolioSummary.snapshot-redesign .snapshot-performance .performance-plot{height:160px;min-height:160px;flex:none}}
@media(max-width:520px){.snapshot-redesign .snapshot-margin>.snapshot-label{font-size:20px;line-height:27px}}

/* Return provenance uses the existing compact source-note pattern. */
#portfolioSummary.snapshot-redesign .performance-status{display:block;font-size:10px;line-height:1.4;color:var(--muted);margin:3px 0;overflow-wrap:anywhere;flex-shrink:0}
#portfolioSummary.snapshot-redesign .holding-all-time .reported-source{font-size:9px;line-height:1.35}

/* The single account gain follows the selected timeline. */
#portfolioSummary.snapshot-redesign .selected-period-return{margin:6px 0;flex-shrink:0}
#portfolioSummary.snapshot-redesign .selected-period-return .reported-account-return>span{font-size:12px;line-height:1.4}
#portfolioSummary.snapshot-redesign .selected-period-return .reported-account-return>strong{font-size:22px;line-height:1.25;white-space:normal}
.holding-record{color:var(--text);font-size:12px;font-weight:400;margin-top:6px}
.holding-record summary{cursor:pointer;color:var(--muted)}
.brokerage-holding-detail>td{padding-top:0}
.brokerage-holding-detail .holding-record{margin-top:0;max-width:min(620px,calc(100vw - 112px))}
.holding-record>div{padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);max-height:340px;overflow:auto;max-width:100%;overflow-wrap:anywhere}
.holding-record dl{margin:0 0 8px;display:grid;gap:5px}
.holding-record dl>div{display:flex;justify-content:space-between;gap:12px}
.holding-record dt{color:var(--muted)}
.holding-record dd{margin:0;text-align:right;font-variant-numeric:tabular-nums;flex-shrink:0;max-width:55%;overflow-wrap:normal}
.holding-record small{display:block;font-size:10px;line-height:1.4;margin:5px 0}
.holding-record p{font-size:11px;line-height:1.4;margin:8px 0}
#portfolioSummary.snapshot-redesign .allocation-layout:has(.holding-record[open]){height:auto;min-height:230px}
#portfolioSummary.snapshot-redesign .allocation-footer:has(.holding-record[open]){display:block}
#portfolioSummary.snapshot-redesign .allocation-footer:has(.holding-record[open])>#refreshPortfolio{display:block;margin:8px 0 0 auto}
.directory-return{display:grid;gap:6px;margin-top:12px;min-width:0}
.directory-return-label{font-size:.75rem;color:var(--muted);font-weight:500}
.directory-return-value{color:var(--performance-color);font-size:1.05rem!important;letter-spacing:normal!important;line-height:1.3;overflow-wrap:anywhere}
.directory-return.performance-gain .directory-return-value{color:var(--performance-color)}
.directory-return.performance-loss .directory-return-value{color:var(--performance-color)}
.directory-return .performance-periods{justify-content:flex-start;flex-wrap:wrap}
.snapshot-performance .performance-periods{flex-wrap:wrap}
.directory-return .performance-periods button{font-size:.75rem}

.account-hero .account-grand-total strong.gross-unavailable{font-size:1.05rem!important;letter-spacing:normal!important;line-height:1.3;font-weight:500}

/* Current holdings value is independent of the selected return and its color. */
.snapshot-performance>.current-holdings-value{color:var(--text)}

/* Retirement accounts: the margin panel says it does not apply. */
.snapshot-margin .snapshot-value.margin-not-applicable{font-size:19px!important;letter-spacing:0!important;color:var(--muted)}

/* Price trend chart: the hover value (date and close) floats above the pointer, clear of the price line. */
.market-tip-host{position:relative}
.market-tip{position:absolute;z-index:6;display:grid;gap:1px;justify-items:center;padding:6px 11px;border-radius:8px;border:1px solid var(--accent);background:var(--panel);color:var(--text);
 font-size:12px;line-height:1.3;white-space:nowrap;pointer-events:none;box-shadow:0 8px 24px rgba(0,0,0,.35);transition:left .06s linear,top .06s linear}
.market-tip[hidden]{display:none}
.market-tip strong{font-size:11px;font-weight:600;color:var(--muted)}
.market-tip b{font-size:16px;font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion:reduce){.market-tip{transition:none}}

/* Margin calculator: net equity leads; gross investments is secondary; forced-sale markers. */
.margin-calculator .calc-equity{stroke:var(--accent);stroke-width:3;fill:none;vector-effect:non-scaling-stroke}
.margin-calculator .calc-assets{stroke:var(--chart-blue,#8fc3ed);stroke-width:1.75;opacity:.8}
body.light .margin-calculator .calc-assets{stroke:var(--chart-blue,#276d9f)}
.calc-legend .calc-legend-assets{color:var(--chart-blue,#8fc3ed)}
body.light .calc-legend .calc-legend-assets{color:var(--chart-blue,#276d9f)}
.calc-legend .calc-legend-call{color:var(--return-loss)}
.calc-call-marker{fill:var(--return-loss);stroke:var(--panel);stroke-width:2}
.calc-notice{border:1px solid var(--return-loss);border-radius:12px;padding:12px 14px;margin:0 0 14px;font-size:12px}
.calc-notice strong{display:block;font-size:13px;color:var(--return-loss)}
.calc-notice p{margin:4px 0 0;font-size:12px;line-height:1.5}
.calc-input-help.calc-note-alert{color:var(--text)}
.calc-cushion p{font-size:11px;line-height:1.45}
.calc-cushion .calc-cushion-hint{display:block;font-size:10px;opacity:.85}
