/* Profile charts reuse the existing RudolfStats line-chart components. */
body.pf-trend-open{overflow:hidden}
body.rf-refined.profile-page .rf-stat-button{
 position:relative;display:flex;flex-direction:column;align-items:flex-start;
 text-align:left;font:inherit;width:100%;cursor:pointer;
 transition:background .16s,border-color .16s,transform .16s;
}
body.rf-refined.profile-page .rf-stat-button:hover,
body.rf-refined.profile-page .rf-stat-button:focus-visible{
 background:#24543a!important;border-color:#e8abc9!important;transform:translateY(-2px);
}
body.rf-refined.profile-page .rf-stat-button .rf-stat-hint{
 margin-top:11px;color:#efb3ce;font-size:11px;font-weight:850;line-height:1.3;
}
body.rf-refined.profile-page .rf-stat-button:hover .rf-stat-hint{text-decoration:underline}
.pf-trend-overlay[hidden]{display:none!important}
.pf-trend-overlay{position:fixed;inset:0;z-index:9000;display:grid;place-items:center;padding:16px}
.pf-trend-backdrop{position:absolute;inset:0;background:#04130dd9;backdrop-filter:blur(5px)}
body.rf-refined.profile-page .pf-trend-dialog.stats-panel{
 position:relative;width:min(1100px,100%);max-height:min(92vh,950px);
 overflow:auto;overscroll-behavior:contain;outline:none;
 margin:0;padding:clamp(18px,2.6vw,30px);
 background:linear-gradient(155deg,#123425,#102d20)!important;
 border:1px solid #416d4e!important;border-radius:15px!important;
 box-shadow:0 26px 70px #0009!important;color:#f3f1e5!important;
}
body.rf-refined.profile-page .pf-trend-heading{
 display:flex;justify-content:space-between;align-items:start;gap:20px;
}
body.rf-refined.profile-page .pf-trend-heading h2{
 margin:5px 0 8px;font:700 clamp(27px,3.4vw,40px)/1.13 Georgia,serif!important;
 color:#fff1df!important;
}
body.rf-refined.profile-page .pf-trend-heading p{color:#c6ddc9!important;font-size:14px;margin:0 0 15px}
body.rf-refined.profile-page .pf-trend-close{
 flex:none;cursor:pointer;font-size:17px;font-weight:800;
 border:1px solid #517a57!important;border-radius:9px;
 color:#f6f0e3!important;background:#214832!important;padding:9px 14px;
}
body.rf-refined.profile-page .pf-trend-close:hover{border-color:#eeabc9!important;background:#2d5b3e!important}
body.rf-refined.profile-page .pf-trend-range{
 display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;
 margin:0 0 18px;
}
body.rf-refined.profile-page .pf-trend-range button{font-size:12px}
body.rf-refined.profile-page .pf-trend-source-controls{display:none!important}
body.rf-refined.profile-page .pf-trend-dialog .stats-trend-summary{
 margin-bottom:12px;gap:12px;flex-wrap:wrap;
}
body.rf-refined.profile-page .pf-trend-dialog .stats-line-chart{
 min-height:270px;border:1px solid #456b51;border-radius:12px;
 overflow:hidden;
}
body.rf-refined.profile-page .pf-trend-dialog .stats-chart-hint,
body.rf-refined.profile-page .pf-trend-dialog .stats-chart-foot{line-height:1.6}
@media(max-width:650px){
 .pf-trend-overlay{padding:7px}
 body.rf-refined.profile-page .pf-trend-dialog.stats-panel{max-height:96vh;padding:17px 12px}
 body.rf-refined.profile-page .pf-trend-heading h2{font-size:27px!important}
 body.rf-refined.profile-page .pf-trend-range{justify-content:stretch;gap:5px}
 body.rf-refined.profile-page .pf-trend-range button{flex:1;font-size:11px;padding:10px 5px!important}
 body.rf-refined.profile-page .rf-stat-button .rf-stat-hint{font-size:10px}
}

@media(max-width:650px){body.rf-refined.profile-page .pf-trend-dialog .stats-line-chart{overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}body.rf-refined.profile-page .pf-trend-dialog .stats-line-chart svg{min-width:660px}}
