.bh-chart { color:var(--label); font-variant-numeric:tabular-nums; }
.bh-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; margin:12px 0; }
.bh-zoom { display:flex; gap:3px; padding:3px; border-radius:var(--radius-control); background:var(--surface-secondary); }
.bh-chart button { min-height:44px; border:1px solid var(--separator); border-radius:10px; background:var(--surface); color:var(--label); font:inherit; font-size:13px; padding:8px 11px; }
.bh-zoom button { border-color:transparent; background:transparent; }
.bh-zoom button[aria-pressed=true] { background:var(--surface); border-color:var(--separator); font-weight:700; }
.bh-expand { color:var(--info)!important; }
.bh-comparisons { display:flex; gap:10px; flex-wrap:wrap; }
.bh-comparisons label { min-height:44px; display:flex; align-items:center; gap:7px; font-size:13px; cursor:pointer; }
.bh-comparisons input { width:18px; height:18px; margin:0; accent-color:var(--info); }
.bh-key { display:inline-block; width:9px; height:9px; flex-shrink:0; border-radius:2px; background:var(--accent); }
.bh-key.week1,.bh-bar.week1 { background:var(--info); }
.bh-key.week2,.bh-bar.week2 { background:var(--success); }
.bh-note,.bh-empty { color:var(--label-secondary); font-size:12px; line-height:1.5; margin:8px 0 14px; }
.bh-chart-frame { display:flex; gap:8px; }
.bh-axis { width:49px; flex-shrink:0; height:190px; display:flex; flex-direction:column; justify-content:space-between; font-size:10px; color:var(--label-secondary); padding:0 0 3px; }
.bh-scroll { flex:1; min-width:0; overflow:auto; scrollbar-width:thin; padding-bottom:8px; }
.bh-columns { display:grid; grid-template-columns:repeat(var(--bh-count),minmax(44px,1fr)); min-width:calc(var(--bh-count) * 44px); gap:0; }
.bh-chart .bh-hour { position:relative; min-width:44px; padding:0 2px 8px; border:1px solid transparent; border-radius:6px; background:transparent; font-size:10px; }
.bh-hour.is-selected { border-color:var(--info)!important; background:var(--info-soft)!important; }
.bh-hour.is-future { color:var(--label-secondary); }
.bh-plot { display:block; position:relative; height:190px; border-bottom:1px solid var(--separator); }
.bh-baseline { position:absolute; left:0; right:0; top:var(--bh-baseline); border-top:1px solid var(--separator-strong); }
.bh-bar { position:absolute; display:block; background:var(--accent); border-radius:3px 3px 0 0; }
.bh-bar.is-negative { border-radius:0 0 3px 3px; }
.bh-bar.is-partial { background-image:repeating-linear-gradient(135deg,transparent,transparent 4px,rgba(255,255,255,.45) 4px,rgba(255,255,255,.45) 6px); }
.bh-missing { position:absolute; top:75%; transform:translateX(-50%); color:var(--label-secondary); }
.bh-hour-label { display:block; margin-top:7px; }
.bh-partial-dot { display:block; width:4px; height:4px; background:var(--accent); border-radius:50%; margin:3px auto 0; }
.bh-pan { display:flex; justify-content:space-between; align-items:center; gap:8px; margin:8px 0 14px; }
.bh-pan span { font-size:12px; color:var(--label-secondary); }
.bh-chart button:disabled { opacity:.4; cursor:default; }
.bh-selection { padding:14px; border:1px solid var(--separator); border-radius:var(--radius-control); background:var(--surface-secondary); }
.bh-selection > div { display:flex; flex-wrap:wrap; gap:5px 12px; justify-content:space-between; align-items:center; }
.bh-selection small { font-size:12px; color:var(--label-secondary); }
.bh-selection dl { margin:12px 0 0; display:grid; gap:8px; }
.bh-selection dl > div { display:flex; justify-content:space-between; gap:12px; }
.bh-selection dt { display:flex; align-items:center; gap:7px; color:var(--label-secondary); font-size:12px; }
.bh-selection dd { margin:0; font-size:14px; font-weight:700; }
.bh-table { margin-top:14px; font-size:12px; }
.bh-table summary { min-height:44px; cursor:pointer; display:list-item; padding:12px 0; color:var(--info); }
.bh-table-scroll { overflow:auto; }
.bh-table table { width:100%; border-collapse:collapse; text-align:right; }
.bh-table caption { text-align:left; padding:8px 0; color:var(--label-secondary); }
.bh-table th,.bh-table td { border-bottom:1px solid var(--separator); padding:10px 8px; white-space:nowrap; }
.bh-table th:first-child { text-align:left; }
.bh-table th small { display:block; font-size:11px; font-weight:400; color:var(--label-secondary); margin-top:4px; }
.bh-table .is-partial { background:var(--accent-soft); }
.bh-dialog { width:min(1000px,calc(100% - 24px)); max-height:calc(100svh - 24px); margin:auto; overflow:auto; border:1px solid var(--separator); border-radius:24px; padding:24px; color:var(--label); background:var(--surface); box-shadow:var(--shadow-sheet); }
.bh-dialog::backdrop { background:var(--scrim); }
.bh-dialog h2 { font-size:24px; margin:0 0 16px; }
.bh-expanded .bh-plot,.bh-expanded .bh-axis { height:300px; }
@media(max-width:390px) { .bh-chart .bh-zoom button { padding-inline:8px; font-size:12px; } .bh-dialog { padding:16px; } }
