/* Demo 原变量与组件样式映射；范围仅本地看板展示层。 */
.bc-insights{
  --bg:#f3f6f5;--paper:#fff;--ink:#163b3c;--sub:#647a7a;--muted:#8b9b9a;--line:#dce6e3;
  --accent:#137e72;--accent-hover:#09685e;--soft:#e8f3ee;--blue:#4d7ca8;--blue-soft:#eaf1f7;--amber:#ac7036;--amber-soft:#fcf2e7;--radius:16px;
  --bi-bg:var(--bg);--bi-paper:var(--paper);--bi-ink:var(--ink);--bi-sub:var(--sub);--bi-muted:var(--muted);--bi-line:var(--line);--bi-grid:var(--line);
  --bi-accent:var(--accent);--bi-hover:var(--accent-hover);--bi-soft:var(--soft);--bi-neutral:var(--bg);--bi-last:#b8c3c2;--bi-reference:#9aa7a6;
  display:block;padding:0;background:transparent;color:var(--ink);font:14px/1.55 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;border:0;min-width:0;text-align:left;font-variant-numeric:tabular-nums
}
.bc-insights *{box-sizing:border-box}
.bc-insights [hidden]{display:none!important}
.bc-insights h2,.bc-insights h3,.bc-insights p,.bc-insights figure{margin:0}
.bc-insights h3{font-size:15px;line-height:1.5;font-weight:600;color:var(--ink)}
.bc-insights small{font-size:12px;color:var(--sub)}
.bc-insights button,.bc-insights select,.bc-insights input{font:inherit;color:inherit;letter-spacing:normal}
.bc-insights button{cursor:pointer;touch-action:manipulation;margin:0;box-shadow:none;min-height:0;line-height:1.5}
.bc-insights button:disabled{cursor:default;opacity:.55}
.bc-insights button:focus-visible,.bc-insights select:focus-visible,.bc-insights input:focus-visible,.bc-insights summary:focus-visible,.bc-insights [tabindex]:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.bc-insights .bi-header{display:flex;align-items:center;justify-content:flex-end;margin-bottom:24px}
.bc-insights .bi-header-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
.bc-insights .bi-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 14px;background:var(--paper);border:1px solid var(--line);border-radius:8px;font-size:12px;font-weight:400;white-space:nowrap;line-height:1.5;text-decoration:none}
.bc-insights .bi-button:hover:not(:disabled){background:var(--soft);border-color:#c0d6cc}
.bc-insights .bi-primary{background:var(--accent);border-color:var(--accent);color:#fff}
.bc-insights .bi-primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}
.bc-insights .bi-icon{width:18px;height:18px;stroke:currentColor;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7;flex-shrink:0}
.bc-insights .bi-count{font-size:10px;font-variant-numeric:tabular-nums;background:var(--bg);border-radius:4px;padding:1px 5px;color:var(--sub)}
.bc-insights .bi-tabs{display:flex;gap:28px;margin-bottom:20px;border-bottom:1px solid var(--line)}
.bc-insights .bi-tab{border:0;border-radius:0;background:transparent;position:relative;padding:10px 2px 12px;font-size:14px;color:var(--sub);min-height:44px}
.bc-insights .bi-tab[aria-current=page]{font-weight:600;color:var(--accent)}
.bc-insights .bi-tab[aria-current=page]:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:3px;background:var(--accent);border-radius:3px 3px 0 0}
.bc-insights .bi-notice{padding:12px 15px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink);font-size:12px;margin-bottom:17px}
.bc-insights .bi-context{min-width:0;margin-bottom:23px;padding:16px 18px 0;background:var(--paper);border:1px solid var(--line);border-radius:12px}
.bc-insights .bi-filter-summary{display:none}
.bc-insights .bi-filter-grid{display:flex;align-items:center;flex-wrap:wrap;gap:15px;min-width:0;padding-bottom:15px}
.bc-insights .bi-field{display:flex;flex-direction:row;align-items:center;gap:8px;color:var(--sub);font-size:12px;min-width:0;margin:0;font-weight:400}
.bc-insights .bi-field>span{white-space:nowrap}
.bc-insights .bi-field select,.bc-insights .bi-field input{width:auto;min-width:0;max-width:170px;margin:0;min-height:0;height:auto;padding:7px 25px 7px 9px;border:0;background:var(--bg);border-radius:6px;color:var(--ink);font-size:12px;line-height:1.5;box-shadow:none}
.bc-insights .bi-field input{width:70px;padding-right:6px}
.bc-insights .bi-filter-grid select[data-insight-field=unitId]{width:132px}
.bc-insights .bi-filter-grid select[data-insight-field=granularity]{width:74px}
.bc-insights .bi-filter-grid select[data-insight-field=population]{width:112px}
.bc-insights .bi-filter-grid select[data-insight-field=department]{width:102px}
.bc-insights .bi-filter-grid select[data-insight-field=period]{width:84px}
.bc-insights .bi-filter-grid select[data-insight-field=reference]{width:124px}
.bc-insights .bi-field select:disabled,.bc-insights .bi-field input:disabled{background:var(--bg);color:var(--muted)}
.bc-insights .bi-reference-field{margin-left:auto}
.bc-insights .bi-context-footer{border-top:1px solid #edf1ef;padding:10px 0;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;color:var(--sub);font-size:11px}
.bc-insights .bi-local-hint{display:flex;align-items:center;gap:6px}
.bc-insights .bi-current-period{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 13px}
.bc-insights .bi-current-period-copy{font-size:12px;color:var(--sub);min-width:0}
.bc-insights .bi-current-period-copy strong{font-size:13px;font-weight:600;color:var(--ink);margin-right:9px}
.bc-insights .bi-current-period .bi-button{padding:6px 10px;flex-shrink:0}
.bc-insights .bi-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:21px}
.bc-insights .bi-kpi{position:relative;display:block;text-align:left;min-width:0;padding:17px 18px 16px;border:1px solid var(--line);border-radius:12px;background:var(--paper);overflow:hidden}
.bc-insights .bi-kpi[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 3px var(--accent)}
.bc-insights .bi-kpi:hover{background:#fcfefd}
.bc-insights .bi-kpi-name{display:block;font-size:12px;color:var(--sub);margin-bottom:7px}
.bc-insights .bi-kpi-value{display:block;font-size:32px;font-weight:600;line-height:1.2;letter-spacing:-.8px;font-variant-numeric:tabular-nums}
.bc-insights .bi-unit{font-size:13px;font-weight:400;letter-spacing:0;margin-left:4px;color:var(--sub)}
.bc-insights .bi-kpi-previous,.bc-insights .bi-kpi-comparison,.bc-insights .bi-kpi .bi-compare-quantity{display:block;font-size:11px;line-height:1.55;color:var(--sub);overflow-wrap:anywhere}
.bc-insights .bi-kpi .bi-compare-delta,.bc-insights .bi-kpi .bi-comparison-level{display:block;margin-top:4px;overflow-wrap:anywhere}
.bc-insights .bi-extra-metrics{margin-bottom:18px}
.bc-insights .bi-extra-metrics .bi-kpis{margin-top:12px;margin-bottom:0}
.bc-insights .bi-extra-metrics summary,.bc-insights .bi-comparison-basis summary{cursor:pointer;color:var(--ink);font-size:13px;font-weight:600;padding:8px 0}
.bc-insights .bi-matrix-panel>.bi-field{margin-bottom:12px}
.bc-insights .bi-kpi-change{display:block;color:var(--sub);font-size:11px;line-height:1.55;margin-top:9px}
.bc-insights .bi-point-status{display:block;color:var(--sub);font-size:11px;margin-top:4px}
.bc-insights .bi-spark{display:block;margin-left:auto;width:60px;height:25px}
.bc-insights .bi-spark .bi-series{stroke-width:1.6}
.bc-insights .bi-panel{padding:21px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);min-width:0;box-shadow:none}
.bc-insights .bi-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:15px}
.bc-insights .bi-panel-heading p{font-size:12px;color:var(--sub);margin-top:4px}
.bc-insights .bi-panel-heading .bi-button{padding:7px 10px}
.bc-insights .bi-trend-layout{display:grid;grid-template-columns:minmax(0,2.65fr) minmax(270px,1fr);gap:18px;margin-bottom:20px;align-items:stretch}
.bc-insights .bi-compare-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(310px,1fr);gap:18px;margin-bottom:18px;align-items:start}
.bc-insights .bi-chart-tools{display:flex;align-items:center;gap:10px;flex-shrink:0}
.bc-insights .bi-chart-tools .bi-field>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.bc-insights .bi-chart-tools .bi-field select{max-width:145px;font-size:12px}
.bc-insights .bi-chart-modes{display:flex;padding:3px;background:var(--bg);border:1px solid var(--line);border-radius:7px;flex-shrink:0}
.bc-insights .bi-mode{background:transparent;border:0;border-radius:4px;padding:5px 10px;font-size:12px;line-height:1.5;color:var(--sub)}
.bc-insights .bi-mode[aria-pressed=true]{background:var(--paper);color:var(--ink);box-shadow:0 1px 2px #173d3b15}
.bc-insights .bi-legend{display:flex;flex-wrap:wrap;align-items:center;gap:17px;color:var(--sub);font-size:11px;margin:0 0 4px}
.bc-insights .bi-legend>span{display:inline-flex;align-items:center;gap:6px}
.bc-insights .bi-legend-period{margin-left:auto}
.bc-insights .bi-line-key{display:inline-block;width:19px;border-top:2px solid var(--accent);height:0}
.bc-insights .bi-previous-key{border-color:var(--bi-last);border-top-width:1.8px}
.bc-insights .bi-standard-key{border-top:1.5px dashed var(--bi-reference)}
.bc-insights .bi-chart-scroll{max-width:100%;min-width:0}
.bc-insights .bi-chart{width:100%;height:300px;display:block;min-width:0;max-width:none;overflow:visible}
.bc-insights .bi-compare-trend .bi-chart{height:232px}
.bc-insights .bi-compare-trend .bi-panel-heading{margin-bottom:8px}
.bc-insights .bi-explore-detail .bi-chart{height:220px}
.bc-insights .bi-chart text{font:11px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;fill:var(--sub)}
.bc-insights .bi-gridline{stroke:var(--line);stroke-width:1}
.bc-insights .bi-zero-line{stroke:var(--bi-reference);stroke-width:1.2}
.bc-insights .bi-series{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.bc-insights .bi-previous-series{stroke:var(--bi-last);stroke-width:1.8}
.bc-insights .bi-previous-point{stroke:var(--bi-last);stroke-width:1.8;fill:var(--paper)}
.bc-insights .bi-difference-stem{stroke-width:2}
.bc-insights .bi-standard-line{stroke:var(--bi-reference);stroke-width:1.2;stroke-dasharray:5 5}
.bc-insights .bi-chart .bi-standard-label{fill:var(--sub);font-size:11px}
.bc-insights .bi-point{stroke:var(--accent);stroke-width:2;fill:var(--paper)}
.bc-insights .bi-point.bi-selected-point,.bc-insights .bi-point.bi-latest-point{fill:var(--accent);stroke:var(--paper);stroke-width:2}
.bc-insights .bi-point.bi-tentative{fill:var(--paper);stroke:var(--accent);stroke-width:2;stroke-dasharray:2 2}
.bc-insights .bi-selected-band{fill:#137e7207}
.bc-insights .bi-chart .bi-selected-value,.bc-insights .bi-chart .bi-point-label{font-size:12px;font-weight:600;fill:var(--ink)}
.bc-insights .bi-chart .bi-current-label{fill:var(--ink);font-weight:600}
.bc-insights .bi-chart .bi-missing-label{font-size:11px;fill:var(--muted)}
.bc-insights .bi-chart-hit{fill:transparent;stroke:transparent;cursor:pointer;stroke-width:1.5}
.bc-insights .bi-chart-period{cursor:pointer;outline:none}
.bc-insights .bi-chart-hit:focus,.bc-insights .bi-chart-period:focus .bi-chart-hit{stroke:var(--blue);outline:none}
.bc-insights .bi-chart-detail{background:var(--bg);border-radius:7px;padding:11px 13px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px 16px;font-size:12px;min-height:41px;color:var(--sub)}
.bc-insights .bi-chart-detail-row{display:flex;flex:1 1 100%;flex-wrap:wrap;align-items:center;gap:7px 16px}
.bc-insights .bi-chart-detail strong{font-weight:600;color:var(--ink)}
.bc-insights .bi-detail-note{flex-basis:100%;color:var(--sub)}
.bc-insights .bi-chart-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:11px;color:var(--sub);font-size:11px}
.bc-insights .bi-chart-rules summary{cursor:pointer;font-size:11px}
.bc-insights .bi-chart-rules p{margin-top:7px;font-size:11px;line-height:1.6}
.bc-insights .bi-standard-note{font-size:11px;line-height:1.6;color:var(--sub);margin-top:11px}
.bc-insights .bi-text-button{border:0;border-radius:0;background:none;padding:3px 0;color:var(--accent);font-size:12px;white-space:nowrap;text-decoration:none}
.bc-insights .bi-text-button:hover{background:none;text-decoration:underline}
.bc-insights .bi-chart-empty{padding:28px 16px;background:var(--bg);border:1px dashed var(--line);border-radius:8px;color:var(--sub);font-size:13px;margin:12px 0;min-height:120px;display:flex;align-items:center;justify-content:center;text-align:center}
.bc-insights .bi-gap-panel{background:var(--soft);border-color:transparent;display:flex;flex-direction:column}
.bc-insights .bi-gap-kicker{font-size:11px;color:var(--accent);margin-bottom:10px;letter-spacing:.6px}
.bc-insights .bi-gap-big,.bc-insights .bi-gap-value{font-size:42px;letter-spacing:-1px;font-weight:600;line-height:1.2;margin:12px 0 7px;font-variant-numeric:tabular-nums}
.bc-insights .bi-gap-big .bi-unit,.bc-insights .bi-gap-value .bi-unit{font-size:13px}
.bc-insights .bi-gap-description{font-size:12px;color:var(--sub)}
.bc-insights .bi-bullet-pair{display:grid;gap:16px;margin:22px 0 10px}
.bc-insights .bi-bullet-row{min-width:0}
.bc-insights .bi-bullet{position:relative;background:rgba(19,126,114,.08);height:12px;border-radius:3px;margin:7px 0}
.bc-insights .bi-bullet-fill{position:absolute;inset:0 auto 0 0;background:var(--accent);border-radius:3px}
.bc-insights .bi-bullet-fill[data-series=previous],.bc-insights .bi-bullet-fill[series=previous]{background:#b8c3c2}
.bc-insights .bi-bullet-labels{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;font-size:11px;color:var(--sub)}
.bc-insights .bi-bullet-labels strong{color:var(--ink);font-weight:600}
.bc-insights .bi-gap-side{display:flex;flex-direction:column;flex:1;min-width:0}
.bc-insights .bi-gap-notes{display:grid;gap:8px;margin:20px 0;color:var(--sub);font-size:12px;border-top:1px solid #cedfd5;padding-top:15px}
.bc-insights .bi-gap-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:auto}
.bc-insights .bi-gap-actions .bi-button{font-size:11px;padding:8px 10px}
.bc-insights .bi-no-comparison{padding:13px;border-radius:8px;background:#ffffff80;margin:17px 0;color:var(--sub);font-size:12px}
.bc-insights .bi-coverage-bar{display:flex;align-items:center;gap:19px;padding:15px 20px;margin-top:20px}
.bc-insights .bi-coverage-heading{min-width:112px;max-width:160px;flex-shrink:0}
.bc-insights .bi-coverage-heading h3{font-size:15px;font-weight:600}
.bc-insights .bi-coverage-heading small{display:block;font-size:11px;color:var(--sub);margin-top:4px}
.bc-insights .bi-coverage-summary-desktop{display:none}
.bc-insights .bi-coverage-summary-mobile{display:inline}
.bc-insights .bi-coverage-body{flex:1;min-width:0}
.bc-insights .bi-coverage-months{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:7px;flex:1;min-width:0}
.bc-insights .bi-coverage-months.bi-quarter-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
.bc-insights .bi-coverage-month{background:var(--soft);border:1px solid transparent;border-radius:6px;padding:9px 3px;color:var(--ink);font-size:12px;min-width:0;position:relative}
.bc-insights .bi-coverage-month.bi-missing{background:repeating-linear-gradient(135deg,#f6f7f6,#f6f7f6 4px,#dfe7e3 4px,#dfe7e3 5px);color:var(--sub)}
.bc-insights .bi-coverage-month.bi-unfilled{background:var(--paper);border:1px dashed var(--line);color:var(--sub)}
.bc-insights .bi-coverage-month.bi-future{background:var(--paper);border-color:transparent;color:var(--muted)}
.bc-insights .bi-coverage-month[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.bc-insights .bi-coverage-month small{display:block;font-size:10px;color:inherit;margin-top:2px}
.bc-insights .bi-coverage-note{position:relative;display:flex;align-items:baseline;gap:12px;color:var(--sub);font-size:11px;margin-top:10px;min-width:0}
.bc-insights .bi-coverage-flow{border:0;background:none;padding:0;color:var(--sub);font-size:11px;line-height:1.6;text-align:left;white-space:normal;min-width:0;overflow-wrap:anywhere}
.bc-insights .bi-coverage-flow:hover{background:none;text-decoration:underline}
.bc-insights .bi-coverage-note>.bi-coverage-flow{flex:1}
.bc-insights .bi-coverage-more{margin-left:auto;flex-shrink:0;font-size:11px}
.bc-insights .bi-coverage-more summary{cursor:pointer;white-space:nowrap}
.bc-insights .bi-coverage-list{position:absolute;z-index:5;top:100%;left:0;right:0;display:grid;gap:12px;background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:14px}
.bc-insights .bi-section-tail{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-top:18px}
.bc-insights .bi-section-tail p{color:var(--sub);font-size:12px}
.bc-insights .bi-reference-pair{display:grid;grid-template-columns:1fr 54px 1fr;align-items:stretch;background:var(--paper);border:1px solid var(--line);border-radius:13px;margin-bottom:18px;overflow:hidden}
.bc-insights .bi-reference-half{padding:17px 21px;min-width:0}
.bc-insights .bi-reference-half-right{background:#f7faf8}
.bc-insights .bi-reference-half .bi-eyebrow{font-size:11px;color:var(--accent);margin-bottom:5px;letter-spacing:0}
.bc-insights .bi-reference-half h3{font-size:16px}
.bc-insights .bi-reference-half p{font-size:12px;color:var(--sub);margin-top:6px}
.bc-insights .bi-reference-vs{align-self:center;text-align:center;font-size:11px;color:var(--sub)}
.bc-insights .bi-badge{display:inline-flex;align-items:center;gap:5px;padding:3px 7px;border-radius:5px;background:var(--bg);color:var(--sub);font-size:11px;white-space:normal}
.bc-insights .bi-badge.bi-ready{background:var(--soft);color:var(--accent)}
.bc-insights .bi-badge.bi-pending{background:var(--amber-soft);color:#89602f}
.bc-insights .bi-comparison-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}
.bc-insights .bi-comparison-table th{text-align:left;color:var(--sub);font-weight:400;padding:0 10px 13px 0;font-size:11px}
.bc-insights .bi-comparison-table th:nth-child(1){width:155px}
.bc-insights .bi-comparison-table th:nth-child(2){width:44%}
.bc-insights .bi-comparison-table th:last-child{text-align:right}
.bc-insights .bi-comparison-table td{padding:14px 10px 14px 0;border-top:1px solid var(--line);vertical-align:middle;overflow-wrap:anywhere}
.bc-insights .bi-comparison-selected td{background:#f6faf8}
.bc-insights .bi-comparison-table td:last-child{text-align:right;font-variant-numeric:tabular-nums}
.bc-insights .bi-metric-link{padding:0;border:0;background:none;text-align:left;font-size:12px;line-height:1.5;color:var(--ink)}
.bc-insights .bi-metric-link:hover{background:none}
.bc-insights .bi-metric-link[aria-pressed=true]{color:var(--accent);font-weight:600}
.bc-insights .bi-comparison-table svg{width:100%;height:32px;display:block}
.bc-insights .bi-compare-values{white-space:nowrap;font-size:11px;color:var(--sub);display:block}
.bc-insights .bi-compare-delta{font-size:16px;font-weight:600;line-height:22px;margin-top:3px;word-break:keep-all;overflow-wrap:normal}
.bc-insights .bi-comparison-table small{display:block;font-size:11px;color:var(--sub);margin-top:4px;line-height:1.6}
.bc-insights .bi-compare-quantities{word-break:keep-all;overflow-wrap:normal}
.bc-insights .bi-compare-quantity{display:inline-block;max-width:100%;vertical-align:top;white-space:normal}
.bc-insights .bi-scale-note,.bc-insights .bi-note{font-size:11px;color:var(--sub);margin-top:13px}
.bc-insights .bi-conditions{display:flex;flex-direction:column;align-self:start}
.bc-insights .bi-comparison-basis{width:100%;border-top:1px solid var(--line)}
.bc-insights .bi-conditions dl{display:grid;gap:0;font-size:12px;margin:0}
.bc-insights .bi-conditions dl>div{display:flex;justify-content:space-between;gap:13px;padding:12px 0;border-bottom:1px solid var(--line)}
.bc-insights .bi-conditions dt{color:var(--sub);flex-shrink:0}
.bc-insights .bi-conditions dd{margin:0;text-align:right;max-width:68%;overflow-wrap:anywhere}
.bc-insights .bi-conditions .bi-button{align-self:flex-start;margin-top:17px}
.bc-insights .bi-matrix-panel{margin-bottom:18px}
.bc-insights .bi-matrix-scroll{overflow:auto;max-width:100%;min-width:0;overscroll-behavior-x:contain}
.bc-insights .bi-matrix{width:100%;border-collapse:separate;border-spacing:8px;table-layout:fixed}
.bc-insights .bi-matrix th{font-size:12px;font-weight:400;color:var(--sub);text-align:center;padding:0 6px 7px;border:0;background:none}
.bc-insights .bi-matrix th:first-child{width:166px;text-align:left}
.bc-insights .bi-matrix td{padding:0;border:0;background:none}
.bc-insights .bi-matrix tbody th{font-size:13px;color:var(--ink);line-height:1.5;overflow-wrap:anywhere}
.bc-insights .bi-matrix th small,.bc-insights .bi-matrix-row-note{display:block;font-size:11px;color:var(--sub);font-weight:400;margin-top:4px}
.bc-insights .bi-matrix-cell{width:100%;border:2px solid transparent;border-radius:7px;background:var(--bg);padding:12px 5px;text-align:center;min-height:78px}
.bc-insights .bi-matrix-cell.bi-warm{background:var(--amber-soft)}
.bc-insights .bi-matrix-cell.bi-cool{background:var(--blue-soft)}
.bc-insights .bi-matrix-cell.bi-equal{background:var(--bg)}
.bc-insights .bi-matrix-cell.bi-missing{background:repeating-linear-gradient(135deg,#f6f7f6,#f6f7f6 4px,#e3e9e6 4px,#e3e9e6 5px)}
.bc-insights .bi-matrix-cell[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 0 0 2px #fff}
.bc-insights .bi-matrix-mobile-label{display:none}
.bc-insights .bi-matrix-value{display:block;font-size:22px;font-weight:500;line-height:1.25;font-variant-numeric:tabular-nums}
.bc-insights .bi-matrix-value small{font-size:11px;font-weight:400;letter-spacing:0;margin-left:3px;color:var(--sub);display:inline}
.bc-insights .bi-matrix-count,.bc-insights .bi-matrix-status,.bc-insights .bi-matrix-difference{display:block;font-size:11px;color:var(--sub);line-height:1.55;margin-top:4px}
.bc-insights .bi-matrix-legend{display:flex;gap:18px;flex-wrap:wrap;align-items:center;font-size:11px;color:var(--sub);margin-top:14px}
.bc-insights .bi-color-key{display:inline-block;width:10px;height:10px;border-radius:2px;background:var(--amber-soft);margin-right:5px}
.bc-insights .bi-cool-key{background:var(--blue-soft)}
.bc-insights .bi-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;color:var(--sub);font-size:11px;border-top:1px solid var(--line);padding:18px 0 4px;margin-top:29px}
@media(min-width:901px){
.bc-insights .bi-coverage-bar{padding-top:10px;padding-bottom:10px}
.bc-insights .bi-coverage-months{gap:3px}
.bc-insights .bi-coverage-note{margin-top:4px}
.bc-insights .bi-coverage-summary-desktop,.bc-insights .bi-coverage-summary-desktop>span{display:block}
.bc-insights .bi-coverage-summary-mobile{display:none}
}
@media(max-width:1100px){
.bc-insights .bi-filter-grid{gap:10px}
.bc-insights .bi-trend-layout{grid-template-columns:minmax(0,2fr) minmax(250px,1fr)}
.bc-insights .bi-compare-layout{grid-template-columns:minmax(0,1.9fr) minmax(265px,1fr)}
.bc-insights .bi-comparison-table th:nth-child(1){width:130px}
.bc-insights .bi-comparison-table th:nth-child(2){width:36%}
}
@media(max-width:900px){
.bc-insights .bi-coverage-months{grid-template-columns:repeat(6,minmax(0,1fr))}
.bc-insights .bi-coverage-months.bi-quarter-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
.bc-insights .bi-coverage-bar{gap:12px;flex-wrap:wrap}
.bc-insights .bi-coverage-heading{min-width:90px}
.bc-insights .bi-coverage-bar>.bi-button{margin-left:auto}
}
@media(max-width:850px){
.bc-insights .bi-trend-layout,.bc-insights .bi-compare-layout{grid-template-columns:1fr}
.bc-insights .bi-gap-panel{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}
.bc-insights .bi-gap-content{grid-column:1}
.bc-insights .bi-gap-side{grid-column:2;display:flex;flex-direction:column}
.bc-insights .bi-gap-notes{margin:0 0 18px;padding-top:0;border:0}
.bc-insights .bi-gap-value{font-size:35px}
.bc-insights .bi-conditions dl{grid-template-columns:1fr 1fr;column-gap:22px}
.bc-insights .bi-matrix th:first-child{width:140px}
.bc-insights .bi-matrix{min-width:670px}
.bc-insights .bi-kpis{gap:10px}
.bc-insights .bi-kpi{padding:15px 13px}
.bc-insights .bi-kpi-value{font-size:29px}
.bc-insights .bi-spark{width:45px;right:12px}
.bc-insights .bi-kpi-change{max-width:125px}
.bc-insights .bi-comparison-table th:nth-child(2){width:50%}
}
@media(max-width:700px){
.bc-insights .bi-header{justify-content:flex-start;margin:0 0 18px}
.bc-insights .bi-header-actions{justify-content:flex-start}
.bc-insights .bi-tabs{gap:0;margin-bottom:12px}
.bc-insights .bi-tab{flex:1;font-size:13px;min-height:39px;padding:8px 0 10px}
.bc-insights .bi-context{padding:0 12px;border:1px solid var(--line);background:var(--paper);margin-bottom:18px}
.bc-insights .bi-filter-summary{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;border:0;border-radius:0;background:transparent;padding:10px 0;text-align:left;font-size:12px;min-height:42px}
.bc-insights .bi-filter-summary>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bc-insights .bi-filter-toggle-label{white-space:nowrap;flex-shrink:0}
.bc-insights .bi-filter-toggle-label:after{content:" ▾"}
.bc-insights .bi-filter-summary[aria-expanded=true] .bi-filter-toggle-label:after{content:" ▴"}
.bc-insights .bi-filter-grid{display:none;grid-template-columns:1fr 1fr;gap:10px;padding:0 0 13px}
.bc-insights .bi-filters-open .bi-filter-grid{display:grid}
.bc-insights .bi-field{font-size:11px;gap:6px;flex-direction:column;align-items:stretch}
.bc-insights .bi-unit-field{grid-column:span 2}
.bc-insights .bi-field select,.bc-insights .bi-field input{width:100%;max-width:none;height:auto;padding:7px 19px 7px 8px;font-size:12px}
.bc-insights .bi-filter-grid select[data-insight-field]{width:100%}
.bc-insights .bi-reference-field{margin-left:0;grid-column:span 2}
.bc-insights .bi-context-footer{font-size:11px;gap:5px}
.bc-insights .bi-current-period{align-items:flex-start}
.bc-insights .bi-current-period-copy{font-size:11px}
.bc-insights .bi-current-period-copy strong{display:block;margin-bottom:3px}
.bc-insights .bi-current-period .bi-button{font-size:11px;padding:5px 7px}
.bc-insights .bi-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:15px}
.bc-insights .bi-kpi{padding:13px 12px}
.bc-insights .bi-kpi-name{font-size:11px}
.bc-insights .bi-kpi-value{font-size:28px}
.bc-insights .bi-kpi-change{font-size:11px;max-width:95px}
.bc-insights .bi-spark{width:36px;height:23px;right:10px;bottom:14px}
.bc-insights .bi-unit{font-size:11px}
.bc-insights .bi-panel{padding:16px;border-radius:12px}
.bc-insights .bi-panel-heading{gap:10px;margin-bottom:12px}
.bc-insights .bi-panel-heading h3{font-size:14px}
.bc-insights .bi-panel-heading p{font-size:11px}
.bc-insights .bi-chart-tools{width:100%;justify-content:space-between;gap:8px}
.bc-insights .bi-chart-tools .bi-field select{font-size:12px;max-width:160px}
.bc-insights .bi-legend{font-size:11px;gap:8px 12px}
.bc-insights .bi-legend-period{display:none!important}
.bc-insights .bi-chart{height:240px}
.bc-insights .bi-compare-trend .bi-chart{height:232px}
.bc-insights .bi-explore-detail .bi-chart{height:220px}
.bc-insights .bi-chart-detail{font-size:12px;padding:10px}
.bc-insights .bi-chart-detail-row{gap:5px 9px}
.bc-insights .bi-chart-detail-row>span{flex-basis:100%}
.bc-insights .bi-coverage-bar{display:block}
.bc-insights .bi-coverage-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;max-width:none;min-width:0}
.bc-insights .bi-coverage-heading small{margin-top:0;text-align:right}
.bc-insights .bi-coverage-months{margin:13px 0;gap:6px}
.bc-insights .bi-coverage-month{font-size:12px;padding:9px 3px}
.bc-insights .bi-coverage-month small{font-size:10px}
.bc-insights .bi-coverage-note{gap:8px;align-items:flex-start;margin-top:10px}
.bc-insights .bi-coverage-bar>.bi-button{width:100%;margin-top:12px}
.bc-insights .bi-section-tail{display:block}
.bc-insights .bi-section-tail .bi-button{margin-top:12px}
.bc-insights .bi-matrix-scroll{overflow:visible}
.bc-insights .bi-matrix{display:block;min-width:0;border-spacing:0}
.bc-insights .bi-matrix thead{display:none}
.bc-insights .bi-matrix tbody{display:block}
.bc-insights .bi-matrix tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-bottom:14px;margin-bottom:12px;border-bottom:1px solid var(--line)}
.bc-insights .bi-matrix tbody th{grid-column:1/-1;width:auto!important;text-align:left;padding:0 0 3px;font-size:13px}
.bc-insights .bi-matrix td{display:block;min-width:0}
.bc-insights .bi-matrix-mobile-label{display:block;font-size:11px;color:var(--sub);margin-bottom:6px}
.bc-insights .bi-matrix-cell{min-height:78px;padding:12px 5px}
.bc-insights .bi-footer{font-size:11px;margin-top:23px}
}
@media(max-width:600px){
.bc-insights .bi-header-actions .bi-button{font-size:11px;padding:8px 11px}
.bc-insights .bi-gap-panel{display:block}
.bc-insights .bi-gap-value{font-size:34px}
.bc-insights .bi-gap-side{display:block}
.bc-insights .bi-gap-notes{margin:17px 0;font-size:12px;border-top:1px solid #cedfd5;padding-top:12px}
.bc-insights .bi-gap-actions .bi-button{font-size:11px}
.bc-insights .bi-reference-pair{grid-template-columns:1fr 25px 1fr}
.bc-insights .bi-reference-half{padding:13px 10px}
.bc-insights .bi-reference-half h3{font-size:12px}
.bc-insights .bi-reference-half p{font-size:11px;overflow-wrap:anywhere}
.bc-insights .bi-reference-half .bi-eyebrow,.bc-insights .bi-reference-vs{font-size:11px}
.bc-insights .bi-comparison-table th:nth-child(1){width:28%}
.bc-insights .bi-comparison-table th:nth-child(2){width:40%}
.bc-insights .bi-comparison-table td,.bc-insights .bi-comparison-table th{padding-right:6px}
.bc-insights .bi-comparison-table th{font-size:11px}
.bc-insights .bi-metric-link{font-size:11px}
.bc-insights .bi-compare-delta{font-size:14px}
.bc-insights .bi-compare-values{font-size:11px;white-space:normal}
.bc-insights .bi-compare-quantity{display:inline}
.bc-insights .bi-scale-note{font-size:11px}
.bc-insights .bi-conditions dl{grid-template-columns:1fr;font-size:11px}
.bc-insights .bi-matrix{min-width:0}
.bc-insights .bi-matrix th:first-child{width:130px}
.bc-insights .bi-matrix th{font-size:11px}
.bc-insights .bi-matrix-cell{min-height:78px;padding:12px 5px}
.bc-insights .bi-matrix-value{font-size:22px}
.bc-insights .bi-matrix-legend{gap:8px 12px;font-size:11px}
}
@media(prefers-reduced-motion:no-preference){.bc-insights .bi-button,.bc-insights .bi-kpi{transition:background .16s,border-color .16s}}

[data-page="local-dashboard"] .compact-history-banner+.bc-insights .bi-header{position:static;margin:12px 0}
.bc-insights .bi-matrix-panel>.bi-field{display:inline-flex;margin-right:12px}
.bc-insights .bi-matrix-scope-hint{display:inline-block;margin-bottom:12px;color:var(--bi-sub)}
[data-page="analyses"] #compact-finalized:disabled{background:#e9edf0;color:#55616b;border-color:#c8d0d6;opacity:1}
