/* Customer Insights mock-up: layout glue and the components the Brand Center
   token sheet does not define. Every colour and size is a --bc-* property or
   one of the chart colour rules in docs/sprint-046a-customer-insights-mockup.md. */

html, body { margin: 0; }
body.bc-app { min-height: 100vh; }
#app { min-height: 100vh; }
a { color: inherit; }
button { font-family: inherit; }

/* Shell ------------------------------------------------------------------- */
.ci-shell { display: grid; grid-template-columns: var(--bc-sidebar-width) 1fr; min-height: calc(100vh - var(--bc-topbar-height)); }
.ci-topbar { position: sticky; top: 0; z-index: 20; box-sizing: border-box; }
.ci-topbar-right { display: flex; align-items: center; gap: 4px; }
.ci-divider { width: 1px; height: 24px; background: var(--bc-color-border-chrome); margin: 0 8px; }
.ci-logo { display: inline-block; }
.ci-sidebar { position: sticky; top: var(--bc-topbar-height); align-self: start; height: calc(100vh - var(--bc-topbar-height)); overflow-y: auto; }
.ci-nav-gap { height: 12px; }
.ci-nav-parent span { flex: 1; }
.ci-nav-parent .ci-chev { margin-left: auto; }
.ci-subnav-list { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 4px; }
.ci-subnav { height: 32px; padding-left: 48px; }
.ci-inert { cursor: pointer; }
.bc-main { min-width: 0; }
.ci-loading { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 120px 0; color: var(--bc-color-text-secondary); font: var(--bc-text-card-subtitle); }
.ci-spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--bc-color-bg-control); border-top-color: var(--bc-color-text); animation: ci-spin .8s linear infinite; }
@keyframes ci-spin { to { transform: rotate(360deg); } }

/* Page header and filters --------------------------------------------------- */
.ci-breadcrumb { font: var(--bc-text-card-subtitle); color: var(--bc-color-text-secondary); margin: 8px 0 0; }
.ci-breadcrumb span { margin: 0 4px; }
.ci-filterbar { position: relative; margin-bottom: 32px; }
.ci-filterbar-inline { margin: 0; }
.ci-chip-row { gap: var(--bc-chip-gap); }
.bc-filter-chip.is-open, .bc-filter-chip.is-on { background: var(--bc-color-text); color: var(--bc-color-text-inverse); box-shadow: none; }
.bc-filter-chip .ci-chev { flex: none; }
.ci-report-switch { margin: 0 0 24px; }
.ci-chip-row-top { margin-bottom: 32px; }

/* Popover ----------------------------------------------------------------- */
.ci-popover { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; width: min(920px, 100%); background: var(--bc-color-bg-surface); border: 1px solid var(--bc-color-border); border-radius: var(--bc-radius-xl); padding: 16px 24px 24px; box-shadow: var(--bc-shadow-float); box-sizing: border-box; }
.ci-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ci-pop-title { font: var(--bc-text-nav-section); text-transform: uppercase; letter-spacing: .04em; color: var(--bc-color-text-tertiary); }
.ci-pop-actions { display: flex; gap: 8px; }
.ci-pop-sel { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; padding: 0 0 12px; border-bottom: 1px solid var(--bc-color-border); margin-bottom: 12px; font: var(--bc-text-table-cell); }
.ci-sel-badge { gap: 6px; height: 24px; }
.ci-sel-badge button { border: 0; background: transparent; font: 700 14px/1 var(--bc-font-body); cursor: pointer; color: inherit; padding: 0 0 0 2px; }
.ci-pop-search { width: 100%; margin-bottom: 12px; }
.ci-pop-body { max-height: 440px; overflow: auto; }
.ci-check-list, .ci-radio-list { list-style: none; margin: 0; padding: 0; }
.ci-check-list li label { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 8px; border-radius: var(--bc-radius-md); font: var(--bc-text-table-cell); cursor: pointer; }
.ci-check-list li label:hover { background: var(--bc-color-bg-subtle); }
.ci-check-list li label > span:first-of-type { flex: 1; }
.ci-radio-list li button { display: block; width: 100%; text-align: left; height: 40px; padding: 0 12px; border: 0; background: transparent; border-radius: var(--bc-radius-md); font: var(--bc-text-table-cell); color: var(--bc-color-text); cursor: pointer; }
.ci-radio-list li button:hover { background: var(--bc-color-bg-subtle); }
.ci-radio-list li button.is-active { background: var(--bc-color-brand-tint); color: var(--bc-color-brand); font-weight: 700; }
.ci-time-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; }
.ci-time-weeks label { display: flex; flex-direction: column; gap: 6px; font: var(--bc-text-stat-label); margin-top: 8px; }
.ci-time-weeks select, .ci-select select, .ci-colf { height: 36px; border-radius: var(--bc-radius-lg); border: 0; box-shadow: var(--bc-ring-input); background: #fff; font: 400 14px/20px var(--bc-font-body); color: var(--bc-color-text); padding: 0 8px; }
.ci-time-weeks p { margin: 4px 0 0; font: var(--bc-text-table-cell); }
.ci-quick { display: flex; gap: 8px; margin-top: 12px; }
.ci-mini-chip { height: 28px; padding: 0 12px; font: 600 14px/20px var(--bc-font-body); }
.ci-pop-groups { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; font: var(--bc-text-table-cell); }
.ci-pick-table th { vertical-align: top; }
.ci-pick-table .ci-colf { display: block; margin-top: 4px; max-width: 160px; }
.ci-cell-pick { border: 0; background: transparent; font: var(--bc-text-table-cell); color: var(--bc-color-text); text-align: left; cursor: pointer; padding: 4px 8px; border-radius: var(--bc-radius-md); max-width: 260px; }
.ci-cell-pick:hover { background: var(--bc-color-bg-subtle); }
.ci-cell-pick.is-picked { background: var(--bc-color-brand-tint); color: var(--bc-color-brand); font-weight: 600; }

/* Cards and panels ---------------------------------------------------------- */
.ci-card { margin-top: 0; }
.ci-card + .ci-card, .ci-grid-2-cards + .ci-card, .ci-card + .ci-grid-2-cards, .ci-report-switch + .ci-card { margin-top: var(--bc-card-gap); }
.ci-card-head { margin-bottom: 16px; }
.ci-card-flush { padding: 0; }
.ci-card-pad { padding: 24px 24px 0; }
.ci-aud-foot { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px 24px; font: var(--bc-text-table-cell); }
.ci-table-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 8px; flex-wrap: wrap; }
.ci-panel { margin-top: 16px; }
.ci-panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ci-panel-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.ci-panel-title { font: var(--bc-text-stat-label); color: var(--bc-color-text); }
.ci-panel-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.ci-export { height: var(--bc-button-height-lg); }
.ci-panel-body { min-width: 0; }
.ci-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.ci-grid-2 > .ci-panel, .ci-grid-3 > .ci-panel { margin-top: 16px; min-width: 0; }
.ci-grid-2-wide { grid-template-columns: 1.4fr 1fr; }
.ci-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.ci-grid-2-cards > .bc-card { margin-top: var(--bc-card-gap); }
.bc-card-toolbar > .bc-page-actions { display: flex; gap: 8px; }
.ci-stat-small { font: var(--bc-text-table-cell); color: var(--bc-color-text-secondary); }
.bc-stat .bc-badge-row { margin-bottom: 6px; }
.ci-note { margin: 12px 0 0; font: var(--bc-text-table-cell); }
.ci-small { font: var(--bc-text-table-cell); }
.ci-page-foot { margin: 32px 0 0; }
.ci-callouts { margin: 0 0 8px; padding-left: 20px; font: var(--bc-text-table-cell); line-height: 24px; }
.ci-callout { padding: 12px 16px; border-radius: var(--bc-radius-md); background: var(--bc-color-bg-subtle); font: var(--bc-text-table-cell); }

/* Deltas ------------------------------------------------------------------- */
.ci-pos, .ci-up { color: var(--bc-badge-success-text); }
.ci-neg, .ci-down { color: var(--bc-badge-danger-text); }
.ci-flat { color: var(--bc-color-text-secondary); }
.ci-up, .ci-down, .ci-flat { font-weight: 700; }
.ci-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); margin-right: 8px; vertical-align: -1px; }
.ci-sw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.ci-sw-focus { background: var(--bc-viz-series-2); }
.ci-sw-comp { background: var(--bc-viz-series-1); }
.ci-sw-delta { background: #858585; }
.ci-sw-dpct { background: var(--bc-badge-info-text); }

/* Charts ------------------------------------------------------------------- */
.ci-chart { display: block; max-width: 100%; height: auto; overflow: visible; }
.ci-chart text { font: 500 12px var(--bc-font-body); fill: var(--bc-viz-axis-text); }
.ci-chart .ci-axis-strong { fill: var(--bc-color-text); font-weight: 600; }
.ci-grid { stroke: var(--bc-viz-grid); stroke-dasharray: 2 3; }
.ci-tick, .ci-baseline { stroke: #C7C7C7; }
.ci-connector { stroke: #858585; stroke-dasharray: 2 2; }
.ci-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ci-partial { stroke-dasharray: 4 4; }
.ci-direct { font-weight: 700; }
.ci-hover { fill: transparent; }
.ci-hover:hover { fill: rgba(24, 24, 24, .04); }
.ci-hit { fill: transparent; }
.ci-brush { fill: transparent; cursor: crosshair; }
.ci-brush-sel { fill: rgba(102, 203, 240, .25); pointer-events: none; }
.ci-marker { pointer-events: none; }
.ci-bar-group.is-click { cursor: pointer; }
.ci-bar-group.is-click:hover .ci-hit { fill: rgba(24, 24, 24, .04); }
.ci-bar-group.is-dim .ci-bar { opacity: .35; }
.ci-legend span { cursor: default; }
.ci-legend span[role=button] { cursor: pointer; }
.ci-legend span.is-off { opacity: .4; text-decoration: line-through; }
.ci-flow-link { fill: none; stroke: #858585; stroke-opacity: .22; }
.ci-flow-link:hover { stroke-opacity: .5; }
.ci-centroid { stroke: #fff; stroke-width: 2; }
.ci-centroid-label { fill: var(--bc-color-text); font-weight: 700; }
.ci-venn-title { fill: var(--bc-color-text); font: 600 14px var(--bc-font-body); }
.ci-venn-num { fill: var(--bc-color-text); font-weight: 600; }
.ci-venn-pct { fill: var(--bc-color-text-secondary); font-style: italic; }

/* Heatmap ------------------------------------------------------------------ */
.ci-hm-grid { display: grid; grid-template-columns: 44px repeat(24, 1fr); gap: 3px; align-items: center; }
.ci-hm-hour { font: 500 12px var(--bc-font-body); color: var(--bc-viz-axis-text); text-align: center; white-space: nowrap; }
.ci-hm-day { font: 500 12px var(--bc-font-body); color: var(--bc-color-text); }
.ci-hm-cell { height: 26px; border-radius: 3px; }
.ci-hm-legend { margin-top: 12px; width: 360px; max-width: 100%; }
.ci-hm-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; }
.ci-hm-bar span { flex: 1; }
.ci-hm-ends { display: flex; justify-content: space-between; font: 700 12px/18px var(--bc-font-body); margin-top: 4px; }

/* Tables ------------------------------------------------------------------- */
.ci-table-wrap { overflow-x: auto; }
.bc-table th[data-set] { cursor: pointer; }
.bc-table tr.is-link { cursor: pointer; }
.bc-table tr.is-on td { background: var(--bc-color-bg-subtle); }
.bc-table tr.is-cut td { color: var(--bc-color-text-secondary); }
.ci-th-check, .ci-td-check { width: 36px; padding-right: 0 !important; }
.ci-row-chev { width: 32px; text-align: right; color: var(--bc-color-text); }
.ci-row-chev .ci-chev { vertical-align: middle; }
.ci-mono { font: 500 12px/18px ui-monospace, SFMono-Regular, Menlo, monospace; }
.ci-linkish { border: 0; background: transparent; padding: 0; font: var(--bc-text-table-cell); color: var(--bc-color-text); cursor: pointer; text-align: left; }
.ci-linkish:hover { text-decoration: underline; }
.ci-linkish.is-active { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ci-pager { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.ci-page-count { font: var(--bc-text-table-cell); color: var(--bc-color-text-secondary); }
.ci-select { display: inline-flex; align-items: center; gap: 8px; font: var(--bc-text-stat-label); }
.ci-mini-table { width: auto; }
.ci-mini-table th, .ci-mini-table td { height: auto; padding: 6px 10px; }
.ci-matrix td.is-on { background: var(--bc-color-bg-subtle); outline: 2px solid var(--bc-color-text); outline-offset: -2px; }
.ci-segment-sm > button { height: 24px; padding: 0 10px; font: 600 13px/18px var(--bc-font-body); }
.ci-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin: 12px 0 0; }
.ci-kv div { display: flex; flex-direction: column; }
.ci-kv dt { font: var(--bc-text-table-header); color: var(--bc-color-text-tertiary); }
.ci-kv dd { margin: 0; font: var(--bc-text-table-cell); }
.ci-kv-row { grid-template-columns: repeat(6, auto); justify-content: start; gap: 12px 32px; margin-bottom: 8px; }

/* Scorecard layout ---------------------------------------------------------- */
.ci-sc-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.ci-sc-layout.ci-hp-rail { grid-template-columns: 48px 1fr; }
.ci-sc-layout.ci-hp-hidden { grid-template-columns: 1fr; }
.ci-sc-main { min-width: 0; }
.ci-sc-main > .bc-stat-row { margin-bottom: 0; }
.ci-sc-main > .ci-panel:first-of-type { margin-top: 16px; }
.ci-hier { padding: 16px; position: sticky; top: calc(var(--bc-topbar-height) + 16px); max-height: calc(100vh - var(--bc-topbar-height) - 32px); overflow: auto; box-sizing: border-box; }
.ci-hier-rail { padding: 4px; width: 48px; display: flex; justify-content: center; }
.ci-hier-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ci-hier-tools { display: flex; }
.ci-hier-tools .bc-btn-icon { width: 32px; height: 32px; }
.ci-hier .bc-segment { margin-bottom: 12px; }
.ci-hier-sel { margin: 0 0 8px; padding-bottom: 8px; }
.ci-hier-section { padding: 12px 0 4px; }
.ci-htree { list-style: none; margin: 0; padding: 0; }
.ci-hrow { display: flex; align-items: center; gap: 4px; height: 32px; padding-left: calc(var(--depth) * 14px); border-radius: var(--bc-radius-md); }
.ci-hrow:hover { background: var(--bc-color-bg-subtle); }
.ci-hrow.is-picked { background: var(--bc-color-brand-tint); }
.ci-hrow.is-picked .ci-hlabel { color: var(--bc-color-brand); font-weight: 700; }
.ci-tree-chev { width: 24px; height: 24px; border: 0; background: transparent; padding: 0; color: var(--bc-color-text-tertiary); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ci-tree-chev.is-open { transform: rotate(90deg); }
.ci-tree-chev-pad { width: 24px; flex: none; }
.ci-hlabel { flex: 1; min-width: 0; border: 0; background: transparent; text-align: left; font: var(--bc-text-table-cell); color: var(--bc-color-text); cursor: pointer; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.ci-hcheck { width: 14px; height: 14px; border: 2px solid var(--bc-color-border-strong); border-radius: 3px; flex: none; box-sizing: border-box; }
.ci-hcheck.is-on { background: var(--bc-color-text); border-color: var(--bc-color-text); }
.ci-hdelta { width: 24px; text-align: center; flex: none; }

/* Range control (comparison / focus weeks) ---------------------------------- */
.ci-range { margin-top: 12px; }
.ci-range-track { position: relative; height: 24px; }
.ci-range-track input[type=range] { position: absolute; left: 0; right: 0; top: 0; width: 100%; margin: 0; appearance: none; background: transparent; pointer-events: none; height: 24px; }
.ci-range-track input[type=range]::-webkit-slider-runnable-track { height: 4px; background: var(--bc-color-bg-control); border-radius: 2px; }
.ci-range-track input[type=range]::-moz-range-track { height: 4px; background: var(--bc-color-bg-control); border-radius: 2px; }
.ci-range-track input[type=range]::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; margin-top: -7px; pointer-events: auto; cursor: pointer; box-shadow: var(--bc-shadow-raised); }
.ci-range-track input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; pointer-events: auto; cursor: pointer; }
.ci-range-c::-webkit-slider-thumb { background: var(--bc-viz-series-1); }
.ci-range-c::-moz-range-thumb { background: var(--bc-viz-series-1); }
.ci-range-f::-webkit-slider-thumb { background: var(--bc-viz-series-2); }
.ci-range-f::-moz-range-thumb { background: var(--bc-viz-series-2); }
.ci-range-labels { display: flex; justify-content: space-between; font: var(--bc-text-table-cell); color: var(--bc-color-text-secondary); margin-top: 4px; }
.ci-kslider { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; font: var(--bc-text-stat-label); }
.ci-kslider label { display: flex; align-items: center; gap: 12px; }
.ci-kslider input[type=range] { width: 260px; accent-color: var(--bc-color-text); }

/* Sales tree ---------------------------------------------------------------- */
.ci-tree { overflow-x: auto; padding: 8px 0; }
.ci-tree-branch { display: flex; flex-direction: column; align-items: center; }
.ci-tree-kids { display: flex; gap: 16px; margin-top: 24px; position: relative; align-items: flex-start; }
.ci-tree-kids::before { content: ""; position: absolute; top: -12px; left: 50%; width: 1px; height: 12px; background: #C7C7C7; }
.ci-tree-node { width: 188px; border: 1px solid var(--bc-color-border); border-radius: var(--bc-radius-md); padding: 12px; box-sizing: border-box; background: #fff; }
.ci-tree-label { font: var(--bc-text-stat-label); margin-bottom: 8px; }
.ci-tree-vals { margin: 0; }
.ci-tree-vals div { display: flex; justify-content: space-between; gap: 8px; font: var(--bc-text-table-cell); }
.ci-tree-vals dt { color: var(--bc-color-text-secondary); font-weight: 500; }
.ci-tree-vals dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Lists ---------------------------------------------------------------------- */
.ci-qlist { list-style: none; margin: 0; padding: 0; }
.ci-qlist li a { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--bc-color-border); text-decoration: none; font: var(--bc-text-table-strong); }
.ci-qlist li a > span:first-child { flex: 1; }
.ci-qlist li a:hover { background: var(--bc-color-bg-subtle); }
.ci-qlist li:last-child a { border-bottom: 0; }
.ci-tier-list { margin: 0; padding: 0 0 0 4px; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ci-tier-list li { display: flex; gap: 10px; font: var(--bc-text-table-cell); }
.ci-tier-list li .ci-dot { margin-top: 5px; flex: none; }
.ci-tier-list p { margin: 2px 0 0; color: var(--bc-color-text-secondary); }
.ci-style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ci-style-card { padding: 16px; font: var(--bc-text-table-cell); }
.ci-style-card p { margin: 6px 0 0; color: var(--bc-color-text-secondary); min-height: 40px; }
.ci-field { display: flex; flex-direction: column; gap: 6px; font: var(--bc-text-stat-label); margin: 16px 0 12px; }
.ci-input { height: 36px; border-radius: var(--bc-radius-lg); border: 0; box-shadow: var(--bc-ring-input); font: 400 16px/22px var(--bc-font-body); padding: 0 12px; color: var(--bc-color-text); }
.ci-glossary div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--bc-color-border); font: var(--bc-text-table-cell); }
.ci-glossary dt { font-weight: 700; }
.ci-glossary dd { margin: 0; }

/* Drawer, modal, toast -------------------------------------------------------- */
.ci-scrim { position: fixed; inset: 0; background: rgba(24, 24, 24, .35); z-index: 40; }
.ci-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--bc-color-bg-surface); z-index: 41; padding: 24px; box-sizing: border-box; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.ci-drawer-body { font: 400 14px/22px var(--bc-font-body); }
.ci-drawer-body p, .ci-drawer-body ul, .ci-drawer-body ol { margin: 0 0 12px; }
.ci-drawer-body li { margin-bottom: 6px; }
.ci-drawer-h { font: var(--bc-text-stat-label); margin: 20px 0 8px; }
.ci-drawer-tabs { flex-wrap: wrap; }
.ci-demo { list-style: none; padding: 0; margin: 0 0 8px; }
.ci-demo li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--bc-color-border); }
.ci-demo li a { font-weight: 700; }
.ci-demo li p { margin: 2px 0 0; color: var(--bc-color-text-secondary); }
.ci-modal-head { display: flex; align-items: center; justify-content: space-between; }
.ci-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(720px, calc(100% - 32px)); max-height: calc(100vh - 48px); background: var(--bc-color-bg-surface); border-radius: var(--bc-radius-xl); padding: 24px; box-sizing: border-box; z-index: 42; display: flex; flex-direction: column; gap: 8px; }
.ci-modal-search { width: 100%; }
.ci-modal-list { overflow: auto; max-height: 40vh; border: 1px solid var(--bc-color-border); border-radius: var(--bc-radius-md); padding: 4px; }
.ci-modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; font: var(--bc-text-table-cell); }
.ci-modal-foot > div { display: flex; gap: 8px; }
.ci-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--bc-color-text); color: var(--bc-color-text-inverse); padding: 10px 16px; border-radius: var(--bc-radius-pill); font: var(--bc-text-button); z-index: 50; }

/* Maximized panel ---------------------------------------------------------- */
body.ci-has-max { overflow: hidden; }
.ci-panel.is-max { position: fixed; inset: 16px; z-index: 35; background: var(--bc-color-bg-surface); overflow: auto; margin: 0; padding: 24px; }
.ci-panel.is-max .ci-chart { width: 100%; }

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 1280px) {
  .ci-grid-3 { grid-template-columns: 1fr; }
  .ci-style-grid { grid-template-columns: repeat(2, 1fr); }
  .ci-kv-row { grid-template-columns: repeat(3, auto); }
}
@media (max-width: 960px) {
  .ci-shell { grid-template-columns: 1fr; }
  .ci-sidebar { display: none; }
  .ci-grid-2, .ci-grid-2-wide { grid-template-columns: 1fr; }
  .ci-sc-layout, .ci-sc-layout.ci-hp-rail { grid-template-columns: 1fr; }
  .ci-hier { position: static; max-height: none; }
  .ci-time-grid { grid-template-columns: 1fr; }
  .bc-page-header { flex-direction: column; }
  .ci-style-grid { grid-template-columns: 1fr; }
}

/* Print ------------------------------------------------------------------------ */
@media print {
  .ci-topbar, .ci-sidebar, .ci-filterbar, .ci-report-switch, .bc-page-actions, .ci-panel-actions, .ci-popover, .ci-scrim, .ci-drawer, .ci-toast, .ci-range, .ci-kslider { display: none !important; }
  .ci-shell { display: block; }
  .bc-main { padding: 0; }
  .bc-card { break-inside: avoid; border: 1px solid var(--bc-color-border); }
  .ci-grid-2, .ci-grid-3 { grid-template-columns: 1fr; }
}
