/* /bc Engine history card — matches bcqame/CrashX tokens in bcqame-full.css */
html body .bqx .ehist{margin-top:8px!important;display:flex!important;flex-direction:column!important;gap:12px!important}
html body .bqx .ehist-h{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
html body .bqx .ehist-t{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 auto}
html body .bqx .ehist-t .ic{width:32px;height:32px;border-radius:6px;background:var(--l5);display:grid;place-items:center;color:var(--brand);flex:none}
html body .bqx .ehist-t b{font-size:14px;font-weight:700;color:var(--p);white-space:nowrap}
html body .bqx .ehist-ctl{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
html body .bqx .ehist .seg button{font-size:13px!important}
html body .bqx .ehist .seg button svg.i.sm{width:16px!important;height:16px!important;opacity:.9}
html body .bqx .ehist .seg button.on svg.i.sm{color:var(--brand)!important;opacity:1}
html body .bqx .ehist.is-staked .ehist-r{visibility:hidden}
html body .bqx .ehist-sum{display:flex;gap:8px;flex-wrap:wrap;min-height:58px}
html body .bqx .ehs{background:var(--l4);border-radius:8px;padding:10px 14px;display:flex;flex-direction:column;gap:2px;min-width:150px}
html body .bqx .ehs-l{font-size:12px;font-weight:600;color:var(--t);white-space:nowrap}
html body .bqx .ehs-v{font-size:18px;font-weight:800;color:var(--p);line-height:24px;white-space:nowrap}
html body .bqx .ehs-v.up{color:var(--brand)}
html body .bqx .ehs-v.down{color:var(--s)}
html body .bqx .ehist-box{position:relative;height:240px}
html body .bqx .ehist-box canvas{position:relative;z-index:1}
html body .bqx .ehist-sk{position:absolute;inset:0;border-radius:8px;background:linear-gradient(90deg,var(--l4) 0%,var(--l5) 50%,var(--l4) 100%);background-size:200% 100%;animation:ehsk 1.4s linear infinite;opacity:0;pointer-events:none;transition:opacity .2s}
html body .bqx .ehist.is-loading .ehist-sk{opacity:.5}
html body .bqx .ehist.is-loading .ehist-sum{visibility:hidden}
@keyframes ehsk{0%{background-position:200% 0}100%{background-position:-200% 0}}
html body .bqx .ehist-err{position:absolute;inset:0;display:grid;place-items:center;color:var(--t);font-size:13px;z-index:2}
html body .bqx .ehist-err[hidden]{display:none}
html body .bqx .ehist-note{font-size:12px;color:var(--q);line-height:18px}
@media (max-width:900px){
 html body .bqx .ehist-ctl{width:100%}
 html body .bqx .ehist-ctl .seg{flex:1 1 auto}
 html body .bqx .ehist-ctl .seg button{flex:1 1 0!important}
}
@media (max-width:640px){
 html body .bqx .ehist{gap:10px!important}
 html body .bqx .ehist-ctl{flex-direction:column;align-items:stretch;gap:6px}
 html body .bqx .ehist-ctl .seg{display:flex!important;width:100%}
 html body .bqx .ehist .seg button{padding:0 6px!important;font-size:12px!important;gap:4px!important}
 html body .bqx .ehist.is-staked .ehist-r{display:none!important}
 html body .bqx .ehs{flex:1 1 0;min-width:0;padding:8px 12px}
 html body .bqx .ehs-v{font-size:16px}
 html body .bqx .ehist-box{height:200px}
}
