/* Scoped to the existing history page. No theme or content files are changed. */
#bch-history {overflow:visible!important;min-width:0}
body.bch-enhanced {overflow-x:clip}
body.bch-enhanced .bch-sticky-ancestor {overflow:visible!important}
#bch-history .bch-panel-column {position:sticky!important;top:var(--bch-sticky-top,110px)!important;align-self:start}
#bch-history .bch-panel {max-height:calc(100dvh - var(--bch-sticky-top,110px) - 110px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
#bch-history .bch-jump {display:inline-flex;align-items:center;justify-content:center;gap:12px;margin-top:26px;padding:14px 22px;border-radius:12px;background:#f3c461;color:#16305c!important;font-size:16px;font-weight:700;text-decoration:none;min-height:48px;border:1px solid transparent}
#bch-history .bch-jump:focus-visible,#bch-history .bch-step:focus-visible {outline:3px solid #1565c0;outline-offset:4px}
#bch-history .bch-help {margin:12px 0 0;color:#52657e;font-size:15px;line-height:1.7}
#bch-history #bch-period-timeline {scroll-margin-top:var(--bch-sticky-top,110px)}
#bch-history .bch-panel-column {scroll-margin-top:var(--bch-sticky-top,110px)}
#bch-history .bch-navigation {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}
#bch-history .bch-step {display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:46px;padding:10px 14px;border:1px solid #ccdbea;border-radius:12px;background:#fff;color:#16305c;font:inherit;font-size:15px;cursor:pointer}
#bch-history .bch-step:disabled {opacity:.45;cursor:default}
#bch-history .bch-position {font-size:14px;color:#52657e}
#bch-history .bch-period-text strong {overflow-wrap:anywhere}
@media(max-width:900px){
 #bch-history .bch-panel-column {position:static!important}
 #bch-history .bch-panel {max-height:none;overflow:visible}
 #bch-history .bch-periods {max-width:100%;min-width:0;scrollbar-width:thin;overscroll-behavior-x:contain;scroll-padding:4px}
 #bch-history .bch-period {flex-basis:min(265px,82vw);min-width:0;min-height:100px}
 #bch-history .bch-period-text strong {font-size:16px}
 #bch-history .bch-wrap {padding-left:18px;padding-right:18px}
 #bch-history .bch-panel {padding:24px 20px}
 #bch-history .bch-panel-body p {font-size:16px;line-height:1.85}
 #bch-history .bch-today-card {min-width:0}
 #bch-history .bch-navigation {gap:10px}
 #bch-history .bch-step {flex:1 1 100px}
 #bch-history .bch-position {flex:0 0 100%;text-align:center;order:-1}
 #bch-history .bch-help {font-size:14px}
}
@media(prefers-reduced-motion:reduce){#bch-history * {scroll-behavior:auto!important;transition:none!important}}
