/* R44 peak-hours final visual polish */
.stats-card[data-card-id="hourly"]{overflow:visible}
.stats-card[data-card-id="hourly"] .stats-peak{position:relative}
.stats-peak-menu{left:0;right:0;top:31px;width:auto;padding:6px 18px;background:rgba(9,10,12,.98);overflow:hidden}
.stats-peak-menu::before,.stats-peak-menu::after{content:"";position:absolute;top:0;bottom:0;width:20px;pointer-events:none;z-index:2}
.stats-peak-menu::before{left:0;background:linear-gradient(90deg,#0b0c0e,rgba(11,12,14,0))}
.stats-peak-menu::after{right:0;background:linear-gradient(270deg,#0b0c0e,rgba(11,12,14,0))}
.stats-peak-menu-scroll{display:flex;gap:7px;overflow-x:auto;scroll-snap-type:x proximity;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;cursor:grab;touch-action:pan-x;padding:1px;scrollbar-width:none}
.stats-peak-menu-scroll:active{cursor:grabbing}
.stats-peak-menu-scroll::-webkit-scrollbar{display:none}
.stats-peak-menu button{flex:0 0 auto;min-width:74px;height:29px;padding:0 9px;justify-content:center;border:1px solid transparent;scroll-snap-align:center;position:relative;transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease}
.stats-peak-menu button.active{border-color:rgba(217,173,87,.35);box-shadow:inset 0 -2px 0 rgba(217,173,87,.8)}
.stats-peak-menu button:active{transform:scale(.97)}
.stats-peak-body{min-height:92px}
.stats-peak-scrollx{overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.stats-peak-scrollx::-webkit-scrollbar{display:none}
.stats-peak-bars{height:92px;display:flex;align-items:end;gap:8px;padding:7px 1px 0}
.stats-peak-bar-col{flex:1 0 32px;min-width:32px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:5px;scroll-snap-align:center}
.stats-peak-bar-col>i{height:62px;width:100%;display:flex;align-items:end;justify-content:center;border-radius:10px;background:rgba(255,255,255,.025);overflow:hidden}
.stats-peak-bar-col em{width:13px;border-radius:8px 8px 2px 2px;background:linear-gradient(180deg,rgba(69,217,120,.62),rgba(69,217,120,.18));transition:height .2s ease}
.stats-peak-bar-col.peak em{width:16px;background:linear-gradient(180deg,var(--gold2),rgba(217,173,87,.28))}
.stats-peak-bar-col span{font-size:7px;color:var(--muted);white-space:nowrap}
.stats-peak-bar-col.peak span{color:var(--gold2)}
.stats-peak-candles{height:92px;gap:8px;padding-top:6px}
.stats-peak-candle{flex:1 0 31px;min-width:31px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:5px;scroll-snap-align:center}
.stats-peak-candle>i{position:relative;width:100%;height:62px;display:flex;align-items:end;justify-content:center}
.stats-peak-candle>i::before{content:"";position:absolute;top:4px;bottom:4px;width:1px;background:rgba(255,255,255,.17)}
.stats-peak-candle em{position:relative;z-index:1;width:15px;min-height:10px;border-radius:5px;background:linear-gradient(180deg,rgba(69,217,120,.34),rgba(95,99,107,.62));box-shadow:0 0 0 1px rgba(255,255,255,.055)}
.stats-peak-candle.peak em{width:18px;background:linear-gradient(180deg,var(--gold2),rgba(217,173,87,.28))}
.stats-peak-candle span{font-size:7px;color:var(--muted);white-space:nowrap}
.stats-peak-candle.peak span{color:var(--gold2)}
.stats-peak-donut{grid-template-columns:104px 1fr;gap:10px;min-height:98px}
.stats-donut{width:98px;height:98px}
.stats-donut::after{inset:20px}
.stats-donut b{font-size:7px;letter-spacing:.04em}
.stats-donut strong{font-size:12px}
.stats-donut small{position:relative;z-index:1;margin-top:2px;font-size:7px;color:var(--muted);text-align:center;max-width:58px;line-height:1.05}
.stats-donut-legend{gap:5px 7px;align-content:center}
.stats-donut-legend span{font-size:8px;min-width:0}
.stats-peak-line svg{height:84px;background:linear-gradient(180deg,rgba(217,173,87,.025),rgba(255,255,255,.012));animation:statsPeakLineIn .22s ease-out}
.stats-peak-line polygon{fill:rgba(217,173,87,.08)}
.stats-peak-line polyline{stroke:rgba(217,173,87,.72);stroke-width:2.2}
.stats-peak-line circle{fill:#7d828a}
.stats-peak-line circle.peak{fill:var(--gold2)}
.stats-peak-line span{font-size:7px;white-space:nowrap}
.stats-peak-list{gap:4px}
.stats-peak-list-sort{display:flex!important;gap:5px;justify-content:flex-end;margin-bottom:2px;border-bottom:0!important;padding-bottom:0!important}
.stats-peak-list-sort button{height:22px;border:1px solid rgba(255,255,255,.08);border-radius:8px;background:rgba(255,255,255,.018);color:var(--muted);font-size:7px;font-weight:800;padding:0 6px}
.stats-peak-list-sort button.active{border-color:rgba(217,173,87,.35);background:rgba(217,173,87,.12);color:var(--gold2)}
.stats-peak-list div:not(.stats-peak-list-sort){display:grid;grid-template-columns:55px 1fr auto;align-items:center;gap:7px;padding-bottom:4px;border-bottom:1px solid rgba(255,255,255,.045)}
.stats-peak-list div:not(.stats-peak-list-sort)>i{height:5px;border-radius:999px;background:rgba(255,255,255,.055);overflow:hidden}
.stats-peak-list div:not(.stats-peak-list-sort)>i em{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,rgba(69,217,120,.28),rgba(217,173,87,.65))}
.stats-peak-list span,.stats-peak-list b{font-size:9px;white-space:nowrap}
.stats-peak-detail.same-view{gap:10px}
.stats-peak-body.detail{min-height:120px}
.stats-peak-body.detail .stats-peak-bars,.stats-peak-body.detail .stats-peak-candles{height:130px}
.stats-peak-body.detail .stats-peak-line svg{height:126px}
.stats-peak-body.detail .stats-peak-donut{grid-template-columns:132px 1fr}
.stats-peak-body.detail .stats-donut{width:126px;height:126px}
@keyframes statsPeakLineIn{from{opacity:.55;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:520px){.stats-peak-menu{left:-6px;right:-6px}.stats-peak-menu button{min-width:70px}.stats-peak-donut{grid-template-columns:92px 1fr}.stats-donut{width:88px;height:88px}.stats-peak-list div:not(.stats-peak-list-sort){grid-template-columns:50px 1fr auto;gap:5px}.stats-peak-body.detail .stats-peak-donut{grid-template-columns:104px 1fr}.stats-peak-body.detail .stats-donut{width:98px;height:98px}}
@media(prefers-reduced-motion:reduce){.stats-peak-menu button,.stats-peak-bar-col em,.stats-peak-line svg{transition:none;animation:none}}
