.trend-panel {width:100%;min-width:0}
.trend-head,.trend-value,.trend-legend,.trend-details li {display:flex;gap:1rem;align-items:center;justify-content:space-between}
.trend-head {align-items:flex-start;flex-wrap:wrap}.trend-head h2{margin:0;font-size:clamp(1.3rem,3vw,1.9rem)}
.trend-head label,.trend-method,.trend-value small,.trend-details small,.trend-details time,.trend-legend{color:var(--muted,#a9af9f);font-size:.84rem}
.trend-head label{display:flex;white-space:nowrap;align-items:center;gap:.5rem}.trend-head select{width:auto}
.trend-value{align-items:baseline;justify-content:flex-start;flex-wrap:wrap;margin-top:1rem}.trend-value>b{font-size:clamp(1.7rem,4vw,2.5rem);font-variant-numeric:tabular-nums}
.trend-chart{width:100%;max-height:245px;display:block;margin:.6rem 0;overflow:visible}.trend-chart text{fill:var(--muted,#a9af9f);font:11px system-ui}
.trend-grid{stroke:currentColor;opacity:.16;stroke-width:.6}.trend-step{fill:none;stroke:#82bba8;stroke-width:2;vector-effect:non-scaling-stroke}
.trend-own{fill:#82bba8}.trend-buy{fill:#dbbc7c}.trend-sale{fill:#bb9bcf}
.trend-legend{justify-content:flex-start;gap:1.25rem;flex-wrap:wrap;list-style:none;padding:0}.trend-legend li::before{display:inline-block;margin-right:.35rem}.trend-legend .own::before{content:'●';color:#82bba8}.trend-legend .buy::before{content:'■';color:#dbbc7c}.trend-legend .sale::before{content:'▲';color:#bb9bcf}
.trend-method,.trend-empty{margin:.65rem 0}.trend-details{border-top:1px solid var(--line,#505449);padding:.65rem 0}.trend-details summary{cursor:pointer}
.trend-details ol{margin:0;padding:0}.trend-details li{padding:.6rem 0;align-items:flex-start;border-bottom:1px solid var(--line,#505449)}.trend-details li>div{min-width:0;display:grid;gap:.2rem;overflow-wrap:anywhere}
.trend-price{text-align:right;font-variant-numeric:tabular-nums}.trend-details a,.trend-method a{color:inherit;text-underline-offset:3px}
@media(max-width:540px){.trend-details li{display:grid;gap:.35rem}.trend-price{text-align:start}.trend-legend{gap:.55rem}.trend-chart text{font-size:14px}}
.fx-price{display:inline-flex;flex-direction:column;align-items:inherit;vertical-align:middle}
.fx-price [data-fx-quote]{font-family:inherit;font-size:.77rem;font-weight:400;line-height:1.45;color:var(--muted,#a9af9f)}
.fx-price [data-fx-quote]:empty,.fx-price [data-fx-quote][hidden]{display:none}
