:root{
  --bc-slate:#506878;
  --bc-slate2:#587080;
  --bc-blue:#88B8E0;
  --bc-blue2:#98C0E8;
  --bc-orange:#F8A000;
  --bc-yellow:#F8C858;
  --bc-green:#90C058;
  --bc-red:#E85152;
  --bg:#f7f9fc;
  --card:#ffffff;
  --border:#e7edf6;
  --text:#0f172a;
  --muted:#64748b;
}
.bhems{max-width:760px;margin:10px auto;padding:0 10px;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;color:var(--text)}
.bhems *{box-sizing:border-box}
.bhems-topbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:10px 0 10px}
.bhems-brand{display:flex;align-items:center;gap:10px}
.bhems-logoDot{width:14px;height:14px;border-radius:999px;background:radial-gradient(circle at 30% 30%, var(--bc-green), var(--bc-blue));border:2px solid var(--bc-slate)}
.bhems-title{font-weight:900;font-size:18px;line-height:1.1}
.bhems-sub{font-size:12px;color:var(--muted);margin-top:2px}
.bhems-topRight{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.bhems-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:var(--bc-slate);color:#fff;font-size:12px;font-weight:800}
.bhems-pill--soft{background:#eaf2ff;color:var(--bc-slate);border:1px solid #d8e7ff}
.bhems-nav{display:flex;gap:6px;overflow:auto;padding-bottom:6px;scrollbar-width:none}
.bhems-nav::-webkit-scrollbar{display:none}
.bhems-navBtn{flex:0 0 auto;border:1px solid var(--border);background:var(--card);color:var(--bc-slate);padding:8px 10px;border-radius:999px;font-weight:900;font-size:12px;cursor:pointer}
.bhems-navBtn.is-on{background:linear-gradient(180deg, #ffffff, #f2f7ff);border-color:#d8e7ff;color:var(--text)}
.bhems-pager{background:transparent;overflow:hidden;border-radius:18px}
.bhems-track{display:flex;will-change:transform;touch-action:pan-y}
.bhems-screen{flex:0 0 100%;padding:10px 0}
.bhems-card{background:var(--card);border:1px solid var(--border);border-radius:18px;padding:12px;box-shadow:0 2px 14px rgba(2,6,23,.06);margin-bottom:12px}
.bhems-cardH{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.bhems-card h2{margin:0;font-size:14px}
.bhems-inline{display:flex;align-items:center;gap:8px}
.bhems-label{display:block;font-size:11px;color:var(--muted);font-weight:800;margin-bottom:6px}
.bhems-select{border:1px solid var(--border);border-radius:14px;padding:10px 12px;background:#fff;font-weight:900;color:var(--text);font-size:13px}
.bhems-input{width:100%;border:1px solid var(--border);border-radius:14px;padding:10px 12px;background:#fff;font-weight:900;color:var(--text);font-size:13px}
.bhems-btn{border:0;border-radius:14px;padding:10px 12px;background:var(--bc-slate);color:#fff;font-weight:900;font-size:12px;cursor:pointer}
.bhems-btn--soft{background:#eef5ff;color:var(--bc-slate);border:1px solid #d8e7ff}
.bhems-btn:active{transform:translateY(1px)}
.bhems-tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
@media (min-width:560px){ .bhems-tiles{grid-template-columns:repeat(4,1fr);} }
.bhems-tile{border:1px solid var(--border);border-radius:16px;padding:10px;background:linear-gradient(180deg,#fff,#fbfdff);min-height:78px}
.bhems-tTop{display:flex;justify-content:space-between;align-items:center}
.bhems-tLbl{font-size:11px;color:var(--muted);font-weight:900}
.bhems-ico{font-size:16px}
.bhems-tVal{font-size:18px;font-weight:1000;margin-top:4px}
.bhems-tVal small{font-size:12px;color:var(--muted);font-weight:900;margin-left:6px}
.bhems-tSub{font-size:11px;color:var(--muted);margin-top:6px}
.bhems-kpis2{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:10px}
@media (min-width:560px){ .bhems-kpis2{grid-template-columns:repeat(4,1fr);} }
.bhems-miniCard{border:1px solid #dbe7ff;border-radius:16px;padding:10px;background:#fbfdff}
.bhems-miniCard--good{border-color:#cfead8;background:#f2fbf5}
.bhems-miniLbl{font-size:11px;color:var(--muted);font-weight:900}
.bhems-miniVal{font-size:16px;font-weight:1000;margin-top:4px}
.bhems-miniVal small{font-size:12px;color:var(--muted);font-weight:900;margin-left:6px}
.bhems-flow{border:1px dashed #dbe7ff;border-radius:16px;padding:10px;margin-top:10px;background:#fbfcff}
.bhems-flowRow{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:6px 0}
.bhems-chip{font-size:11px;font-weight:1000;color:var(--bc-slate);background:#eef5ff;border:1px solid #dbe7ff;padding:6px 10px;border-radius:999px}
.bhems-flowTxt{font-size:12px;color:var(--muted);font-weight:900;text-align:right}
.bhems-totals{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.bhems-total{border:1px solid var(--border);border-radius:16px;padding:10px;background:#fff}
.bhems-totalL{font-size:11px;color:var(--muted);font-weight:900}
.bhems-totalV{font-size:16px;font-weight:1000;margin-top:4px}
.bhems-totalV small{font-size:12px;color:var(--muted);font-weight:900;margin-left:6px}
.bhems-chartWrap{border:1px solid var(--border);border-radius:16px;padding:10px;background:#fff}
canvas{width:100%;height:260px;display:block}
.bhems-legend{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;margin-top:8px;color:var(--muted);font-size:11px;font-weight:800}
.dot{display:inline-block;width:10px;height:10px;border-radius:999px;margin-right:6px;vertical-align:middle}
.dot-price{background:var(--bc-slate)}
.dot-solar{background:var(--bc-green)}
.dot-wind{background:var(--bc-blue)}
.dot-other{background:#cbd5e1}
.dot-blue{background:var(--bc-blue)}
.dot-green{background:var(--bc-green)}
.dot-orange{background:var(--bc-orange)}
.dot-slate{background:var(--bc-slate)}
.bhems-row2{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:10px}
.bhems-tag{font-size:11px;font-weight:1000;padding:6px 10px;border-radius:999px;background:#fff3e0;border:1px solid #ffe0b2;color:var(--bc-orange)}
.bhems-list{margin:0;padding-left:18px;color:var(--muted);font-weight:900;font-size:12px;line-height:1.4}
.bhems-list li{margin:8px 0}
.bhems-controlRow{display:flex;justify-content:space-between;align-items:center;gap:10px}
.bhems-controlT{font-size:12px;font-weight:1000}
.bhems-controlS{font-size:12px;color:var(--muted);font-weight:900;margin-top:2px}
.bhems-grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:10px}
.bhems-grid2 .full{grid-column:1/-1}
@media (max-width:520px){ .bhems-grid2{grid-template-columns:1fr;} }
.bhems-hr{border:0;border-top:1px solid var(--border);margin:12px 0}
.bhems-switch{position:relative;width:46px;height:26px;display:inline-block}
.bhems-switch input{opacity:0;width:0;height:0}
.bhems-switch span{position:absolute;inset:0;background:#e5e7eb;border-radius:999px;transition:.2s}
.bhems-switch span:before{content:"";position:absolute;width:20px;height:20px;left:3px;top:3px;background:#fff;border-radius:999px;transition:.2s;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.bhems-switch input:checked + span{background:var(--bc-slate)}
.bhems-switch input:checked + span:before{transform:translateX(20px)}
.bhems-badge{font-size:11px;font-weight:1000;color:var(--bc-slate);background:#eef5ff;border:1px solid #dbe7ff;padding:6px 10px;border-radius:999px}
.bhems-rangeMeta{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;font-weight:800;margin-top:4px}
.bhems-next{white-space:pre-line;color:var(--muted);font-weight:900;font-size:12px;line-height:1.4}
.bhems-anaGrid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:10px}
@media (min-width:560px){ .bhems-anaGrid{grid-template-columns:repeat(4,1fr);} }
.bhems-note{margin-top:10px;color:var(--muted);font-size:12px;line-height:1.4;font-weight:800}
.bhems-dots{display:flex;justify-content:center;gap:8px;margin:10px 0 16px}
.bhems-dot{width:10px;height:10px;border-radius:999px;border:1px solid #dbe7ff;background:#fff;cursor:pointer}
.bhems-dot.is-on{background:var(--bc-slate)}
.bhems-toast{position:fixed;right:16px;bottom:16px;max-width:360px;background:var(--bc-slate);color:#fff;border-radius:16px;padding:10px 12px;font-size:12px;font-weight:1000;opacity:0;transform:translateY(8px);transition:.25s;pointer-events:none;z-index:99999}
.bhems-toast.is-on{opacity:1;transform:translateY(0)}
