:root {
  --font: "Segoe UI", "Segoe UI Web", wf_segoe-ui_normal, Tahoma, Arial, sans-serif;
  --text: #252423;
  --muted: #605E5C;
  --line: #E1DFDD;
  --accent: #3257A8;
  --accent-2: #1F3B73;
  --page-bg: #F2F4F8;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; font-family: var(--font); color: var(--text); font-size: 13px; background: #fff; }
button { font-family: var(--font); cursor: pointer; }
.ico { display: inline-block; vertical-align: middle; flex: none; }

/* ---------- app bar ---------- */
.appbar { height: 40px; background: #252423; color: #fff; display: flex; align-items: center; padding: 0 8px 0 0; gap: 10px; }
.ab-waffle { width: 48px; height: 40px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
.ab-waffle:hover { background: #3B3A39; }
.ab-brand { font-weight: 600; font-size: 15px; letter-spacing: .1px; }
.ab-crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #F3F2F1; white-space: nowrap; overflow: hidden; }
.ab-crumb .sep { color: #A19F9D; }
.ab-search { margin-left: auto; width: 320px; height: 28px; background: #3B3A39; border-radius: 4px; display: flex; align-items: center; gap: 6px; padding: 0 8px; }
.ab-search input { background: transparent; border: 0; color: #fff; outline: none; font-family: var(--font); font-size: 13px; width: 100%; }
.ab-search input::placeholder { color: #C8C6C4; }
.ab-right { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.ab-ico { width: 34px; height: 34px; border: 0; background: transparent; color: #fff; border-radius: 2px; }
.ab-ico:hover { background: #3B3A39; }
.ab-avatar { width: 28px; height: 28px; border-radius: 50%; background: #6B91C9; color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; margin-left: 6px; }

.main { display: flex; height: calc(100% - 40px); }
.rail { width: 64px; background: #F5F5F5; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: stretch; padding-top: 4px; flex: none; }
.rail-item { border: 0; background: transparent; color: #424242; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; font-size: 10px; }
.rail-item:hover { background: #EBEBEB; }
.rail-item.active { background: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.rail-item span:last-child { max-width: 60px; text-align: center; line-height: 12px; }
.rail-sep { height: 1px; background: var(--line); margin: 6px 10px; }
.ws-tile { width: 22px; height: 22px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.workspace { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.actionbar { height: 40px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 8px; flex: none; }
.ac-left, .ac-right { display: flex; align-items: center; gap: 0; white-space: nowrap; }
.ac-btn { border: 0; background: transparent; color: var(--text); height: 32px; padding: 0 8px; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; border-radius: 2px; }
.ac-btn:hover { background: #F3F2F1; }
.ac-btn.on { background: #E1E8F5; color: var(--accent); }
.ac-btn .ico { color: var(--accent); }
.caret-ico { color: var(--muted) !important; }
.ac-updated { color: var(--muted); font-size: 12px; padding: 0 6px 0 10px; border-left: 1px solid var(--line); margin-left: 4px; }

.content { flex: 1; display: flex; min-height: 0; }
.pages-pane { width: 176px; background: #fff; border-right: 1px solid var(--line); flex: none; overflow: hidden; transition: width .15s; }
.pages-pane.collapsed { width: 34px; }
.pages-pane.collapsed #pages-list, .pages-pane.collapsed .pp-head span { display: none; }
.pp-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 8px 14px; font-weight: 600; font-size: 14px; }
.pp-collapse { border: 0; background: transparent; color: var(--muted); padding: 2px; }
.page-item { padding: 8px 14px; font-size: 13px; cursor: pointer; border-left: 3px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-item:hover { background: #F3F2F1; }
.page-item.active { background: #EDEBE9; border-left-color: var(--accent); font-weight: 600; }

.canvas-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.canvas { flex: 1; background: #EAEAEA; overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: 16px; }
#page-wrap { position: relative; flex: none; margin: auto; }
#page { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; background: var(--page-bg); box-shadow: 0 1px 4px rgba(0,0,0,.18); overflow: hidden; }
.statusbar { height: 28px; background: #fff; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 10px; font-size: 12px; color: var(--muted); flex: none; }
.sb-zoom { display: flex; align-items: center; gap: 6px; }
.sb-zoom button { border: 1px solid var(--line); background: #fff; width: 20px; height: 20px; line-height: 16px; padding: 0; color: var(--text); }
.sb-zoom select { font-family: var(--font); font-size: 12px; border: 1px solid var(--line); height: 22px; }

/* ---------- report page ---------- */
.band { position: absolute; left: 0; top: 0; width: 1280px; height: 56px; background: linear-gradient(90deg, #1F3B73 0%, #3257A8 70%, #4A6FBF 100%); color: #fff; display: flex; align-items: center; padding: 0 12px 0 16px; gap: 12px; }
.band-text { flex: 1; min-width: 0; }
.band-title { font-size: 19px; font-weight: 600; line-height: 22px; }
.band-sub { font-size: 11px; color: #D6E0F5; }
.band-slicers { display: flex; gap: 8px; }
.back-btn { border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.12); color: #fff; border-radius: 4px; height: 32px; padding: 0 12px; display: flex; align-items: center; gap: 6px; font-size: 12px; }
.back-btn:hover { background: rgba(255,255,255,.24); }
.slicer { width: 188px; background: #fff; border-radius: 6px; padding: 3px 8px 5px; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.sl-head { display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 600; color: var(--muted); height: 14px; }
.sl-clear { border: 0; background: transparent; padding: 0; color: var(--muted); visibility: hidden; }
.slicer.active .sl-clear { visibility: visible; }
.sl-box { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #8A8886; height: 20px; font-size: 12px; cursor: pointer; }
.sl-val { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slicer.active .sl-val { font-weight: 600; color: var(--accent); }
.sl-drop { position: absolute; z-index: 50; background: #fff; border: 1px solid #C8C6C4; box-shadow: 0 4px 12px rgba(0,0,0,.18); padding: 6px; border-radius: 2px; }
.sl-search { width: 100%; border: 1px solid #C8C6C4; height: 24px; font-family: var(--font); font-size: 12px; padding: 0 6px; margin-bottom: 4px; }
.sl-list { max-height: 300px; overflow: auto; }
.sl-opt, .fc-opt { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 2px; cursor: pointer; }
.sl-opt:hover, .fc-opt:hover { background: #F3F2F1; }
.sl-opt input, .fc-opt input { margin: 0; accent-color: var(--accent); }
.fc-opt span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-opt em { font-style: normal; color: var(--muted); font-size: 11px; }

.visual { position: absolute; background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(15,35,80,.12), 0 0 0 1px rgba(15,35,80,.04); display: flex; flex-direction: column; transition: opacity .15s; }
.visual:hover { box-shadow: 0 2px 8px rgba(15,35,80,.18), 0 0 0 1px rgba(15,35,80,.06); }
.visual.selected { box-shadow: 0 0 0 1px #8A8886, 0 2px 8px rgba(15,35,80,.18); }
.visual.dimmed { opacity: .25; }
.v-title { font-size: 13px; font-weight: 600; padding: 9px 12px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 150px; flex: none; }
.v-path { font-weight: 400; color: var(--muted); font-size: 11px; margin-left: 6px; }
.v-body { flex: 1; min-height: 0; position: relative; padding: 4px 10px 8px; }
.v-table { display: none; }
.vh { position: absolute; right: 6px; top: 4px; display: flex; gap: 1px; opacity: 0; transition: opacity .1s; z-index: 5; background: rgba(255,255,255,.94); border-radius: 3px; }
.visual:hover .vh, .visual.selected .vh, .visual.focused .vh { opacity: 1; }
.vh-btn { border: 0; background: transparent; width: 24px; height: 24px; padding: 0; color: #252423; display: flex; align-items: center; justify-content: center; border-radius: 2px; }
.vh-btn:hover { background: #EDEBE9; }
.vh-btn.on { background: #DEE5F3; color: var(--accent); }
.vh-btn.disabled { color: #C8C6C4; cursor: default; background: transparent; }
.v-error, .v-empty { color: var(--muted); font-size: 12px; padding: 16px; }
.page-foot { position: absolute; left: 16px; bottom: 7px; font-size: 10px; color: #8A8886; }
.focus-back { display: none; position: absolute; left: 12px; top: 64px; z-index: 6; border: 0; background: transparent; color: var(--accent); font-size: 13px; align-items: center; gap: 4px; padding: 4px 0; }
#page.focus-mode .visual:not(.focused) { display: none; }
#page.focus-mode .focus-back { display: flex; }
.visual.focused { z-index: 4; }
.visual.table-mode .v-body { flex: 0 0 52%; }
.visual.table-mode .v-table { display: block; flex: 1; overflow: auto; border-top: 1px solid var(--line); margin: 0 10px 8px; }

/* KPI cards */
.visual.kpi .v-body { padding: 10px 14px 6px; display: flex; flex-direction: column; }
.kpi-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi-val { font-size: 26px; font-weight: 600; color: var(--accent-2); line-height: 32px; }
.kpi-ref { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 4px; height: 14px; }
.kpi-ref.good { color: #107C10; }
.kpi-ref.bad { color: #A4262C; }
.kpi-spark { position: absolute; right: 12px; bottom: 10px; width: 78px; height: 30px; }

/* tables and matrix */
.tbl-wrap { position: absolute; inset: 2px 10px 8px; overflow: auto; }
.pbi-table, .data-table { border-collapse: collapse; width: 100%; font-size: 11px; }
.pbi-table th, .data-table th { position: sticky; top: 0; background: #fff; text-align: left; font-weight: 600; color: var(--text); padding: 5px 6px; border-bottom: 1px solid #8A8886; white-space: nowrap; cursor: pointer; z-index: 1; }
.pbi-table td, .data-table td { padding: 4px 6px; border-bottom: 1px solid #F3F2F1; white-space: nowrap; }
.pbi-table tbody tr { cursor: pointer; }
.pbi-table tbody tr:hover td { background-color: #F3F2F1; }
.pbi-table tbody tr:nth-child(even) td { background-color: #FAFAFA; }
.pbi-table tfoot td { position: sticky; bottom: 0; background: #fff; font-weight: 600; border-top: 1px solid #8A8886; }
.num { text-align: right !important; }
.data-table td { border-bottom: 1px solid #EDEBE9; }
.link { color: var(--accent); }
.pill { display: inline-block; font-size: 10px; padding: 0 6px; border-radius: 8px; line-height: 15px; }
.pill.open { background: #FDE7E9; color: #A4262C; }
.pill.closed { background: #EDEBE9; color: var(--muted); }
.dbar { display: inline-block; height: 8px; background: #8FA9DC; margin-right: 6px; vertical-align: middle; border-radius: 1px; }
.dbar.bad { background: #DD6B7F; }
.matrix td { padding: 4px 8px; }
.matrix th { white-space: normal; vertical-align: bottom; line-height: 13px; }
.matrix .mx-name { max-width: 210px; }
.matrix tr.d0 td.mx-name { font-weight: 600; }
.matrix tr.d1 td { font-size: 10.5px; color: #3B3A39; }
.mx-tog { display: inline-flex; width: 13px; height: 13px; border: 1px solid #8A8886; font-size: 11px; line-height: 10px; align-items: center; justify-content: center; margin-right: 6px; color: var(--text); cursor: pointer; vertical-align: -2px; }
.mx-pad { display: inline-block; width: 19px; }
.mx-name { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
.bar-cell { position: relative; min-width: 110px; }
.mbar { position: absolute; left: 4px; top: 4px; bottom: 4px; background: #B8C8EA; border-radius: 1px; max-width: calc(100% - 8px); }
.mtxt { position: relative; }
.kpi-ic { display: inline-block; margin-right: 5px; vertical-align: -1px; }

/* narrative */
.narrative { font-size: 12px; line-height: 17px; color: var(--text); overflow: auto; position: absolute; inset: 0 12px 8px; }
.narrative p { margin: 0 0 6px; }
.narrative b { color: var(--accent); font-weight: 600; }

/* batch record */
.visual.multicard .v-body { display: flex; align-items: stretch; padding: 10px 6px; }
.mc-item:nth-child(2), .mc-item:nth-child(3), .mc-item:nth-child(4) { flex: 1.7; }
.mc-item { flex: 1; padding: 4px 12px; border-left: 3px solid var(--accent); margin: 0 6px; min-width: 0; }
.mc-val { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--accent-2); }
.mc-label { font-size: 11px; color: var(--muted); }
.bullet { position: relative; display: inline-block; width: 120px; height: 10px; background: #F3F2F1; vertical-align: middle; border-radius: 2px; }
.bullet .spec { position: absolute; top: 0; bottom: 0; background: #C9E7DF; }
.bullet b { position: absolute; top: -2px; width: 3px; height: 14px; background: var(--accent-2); margin-left: -1px; }
.bullet b.bad { background: #D13438; }
.bullet.empty { background: repeating-linear-gradient(45deg, #F3F2F1 0 4px, #fff 4px 8px); }
.bad-txt { color: #A4262C; font-weight: 600; }
td.st { display: flex; align-items: center; gap: 5px; }
.rl-sum { font-size: 11px; color: var(--muted); padding: 0 12px 4px; }
.rl-list { position: absolute; inset: 20px 10px 8px; overflow: auto; }
.rl-item { display: flex; align-items: flex-start; gap: 8px; padding: 4px 2px; border-bottom: 1px solid #F3F2F1; font-size: 11.5px; }
.rl-ic { padding-top: 1px; }
.rl-txt { flex: 1; }
.rl-ref { font-size: 10px; color: var(--muted); }
.rl-st { text-align: right; white-space: nowrap; font-size: 11px; }

/* ---------- filters pane ---------- */
.filters-pane { width: 252px; background: #fff; border-left: 1px solid var(--line); flex: none; display: flex; flex-direction: column; min-height: 0; }
.filters-pane.hidden { display: none; }
.filters-pane.collapsed { width: 34px; }
.fp-expand { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 10px; color: var(--text); width: 100%; }
.fp-expand span { writing-mode: vertical-rl; font-size: 13px; font-weight: 600; }
.fp-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 6px 12px; font-size: 15px; font-weight: 600; }
.fp-collapse { border: 0; background: transparent; color: var(--muted); }
.fp-searchbox { margin: 0 12px 6px; height: 26px; border: 1px solid #C8C6C4; display: flex; align-items: center; gap: 6px; padding: 0 6px; color: var(--muted); }
.fp-searchbox input { border: 0; outline: none; font-family: var(--font); font-size: 12px; background: transparent; width: 100%; }
.fp-body { flex: 1; overflow: auto; padding: 0 12px 12px; background: #fff; }
.fp-sec-title { font-size: 12px; font-weight: 600; margin: 10px 0 6px; color: var(--text); }
.fp-empty { font-size: 11px; color: var(--muted); padding: 2px 0 6px; }
.fcard { background: #F6F6F6; border: 1px solid #E1DFDD; border-radius: 2px; margin-bottom: 6px; }
.fcard.active { background: #EEF2FA; border-color: #B8C8EA; }
.fc-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 6px 6px 6px 8px; cursor: pointer; }
.fc-titles { min-width: 0; }
.fc-title { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-sub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.fcard.active .fc-sub { color: var(--accent); }
.fc-tools { display: flex; gap: 2px; color: var(--muted); }
.fc-tool { border: 0; background: transparent; padding: 1px; color: var(--muted); display: inline-flex; }
.fc-body { padding: 0 8px 8px; }
.fc-note { font-size: 11px; color: var(--muted); margin: 4px 0 2px; }
.fc-mode, .fc-op, .fc-text, .fc-search, .fc-num { width: 100%; height: 24px; border: 1px solid #C8C6C4; font-family: var(--font); font-size: 12px; background: #fff; padding: 0 4px; margin-bottom: 4px; }
.fc-num { width: 60px; margin: 0; }
.fc-row { display: flex; align-items: center; gap: 6px; }
.fc-static { font-size: 12px; }
.fc-well { background: #fff; border: 1px solid #C8C6C4; padding: 2px 6px; }
.fc-list { max-height: 210px; overflow: auto; background: #fff; border: 1px solid #EDEBE9; padding: 2px 4px; }
.fc-apply { border: 0; background: transparent; color: var(--accent); font-size: 12px; padding: 6px 0 0; float: right; }
.fc-body::after { content: ""; display: block; clear: both; }

/* ---------- side panes ---------- */
.side-pane { width: 0; background: #fff; border-left: 1px solid var(--line); flex: none; overflow: hidden; display: flex; flex-direction: column; }
.side-pane.open { width: 330px; }
.sp-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 6px 14px; font-size: 15px; font-weight: 600; }
.sp-head span { display: flex; align-items: center; gap: 6px; }
.sp-x { border: 0; background: transparent; color: var(--muted); }
.sp-note { font-size: 11px; color: var(--muted); padding: 0 14px 8px; line-height: 15px; }
.sp-tabs { display: flex; gap: 2px; padding: 0 12px 6px; border-bottom: 1px solid var(--line); }
.sp-tab { border: 0; background: transparent; font-size: 12px; padding: 5px 7px; color: var(--muted); border-bottom: 2px solid transparent; }
.sp-tab.on { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.sp-body { flex: 1; overflow: auto; padding: 8px 12px; }
.ins-card { border: 1px solid var(--line); border-radius: 4px; padding: 10px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.ins-type { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 8px; background: #EEF2FA; color: var(--accent); margin-bottom: 6px; }
.ins-type.ins-Anomaly { background: #FDE7E9; color: #A4262C; }
.ins-type.ins-Trend { background: #E6F4F0; color: #1D6E5E; }
.ins-title { font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.ins-chart { height: 92px; margin: 2px -4px; }
.ins-chart.small { height: 70px; }
.ins-text { font-size: 11.5px; color: #3B3A39; line-height: 16px; }
.ins-foot { font-size: 10px; color: var(--muted); margin-top: 6px; }
.an-sum { padding: 4px 14px 10px; border-bottom: 1px solid var(--line); }
.an-label { font-size: 12px; color: var(--muted); }
.an-value { font-size: 26px; font-weight: 600; color: #A4262C; }
.an-range { font-size: 11px; color: var(--muted); }
.an-sec { font-size: 13px; font-weight: 600; padding: 10px 14px 0; }
.ex-head { display: flex; justify-content: space-between; font-size: 12px; gap: 8px; }
.ex-str { color: var(--muted); font-size: 11px; white-space: nowrap; }
.ex-bar { height: 4px; background: #EDEBE9; margin: 5px 0 2px; border-radius: 2px; overflow: hidden; }
.ex-bar i { display: block; height: 100%; background: var(--accent); }

/* ---------- menus, popovers, modal ---------- */
.menu { position: fixed; z-index: 1000; background: #fff; border: 1px solid #C8C6C4; box-shadow: 0 6px 16px rgba(0,0,0,.18); min-width: 180px; padding: 4px 0; font-size: 13px; }
.menu-item { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; cursor: pointer; white-space: nowrap; }
.menu-item:hover { background: #F3F2F1; }
.menu-item.disabled { color: #A19F9D; cursor: default; }
.mi-ico { width: 16px; display: inline-flex; color: var(--text); }
.mi-label { flex: 1; }
.menu-sep { height: 1px; background: var(--line); margin: 4px 0; }
.popover { position: fixed; z-index: 1000; background: #fff; border: 1px solid #C8C6C4; box-shadow: 0 6px 16px rgba(0,0,0,.18); width: 260px; padding: 10px 12px; font-size: 12px; }
.pop-title { font-weight: 600; margin-bottom: 6px; }
.pop-sec { font-size: 11px; color: var(--muted); margin: 8px 0 2px; text-transform: uppercase; letter-spacing: .3px; }
.pop-row { display: flex; flex-direction: column; padding: 3px 0; border-bottom: 1px solid #F3F2F1; }
.pop-row span { color: var(--muted); }
.pop-empty { color: var(--muted); }
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.modal { background: #fff; width: 620px; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-size: 16px; font-weight: 600; }
.modal-x { border: 0; background: transparent; }
.modal-body { overflow: auto; padding: 0 18px 18px; }
.dax-name { font-weight: 600; font-size: 12px; margin: 10px 0 4px; }
.dax { background: #FAF9F8; border: 1px solid var(--line); padding: 10px; font: 12px Consolas, "Courier New", monospace; color: #0F3D7A; margin: 0; white-space: pre; overflow: auto; }
.toast { position: fixed; right: 20px; bottom: 40px; background: #252423; color: #fff; padding: 10px 14px; font-size: 12px; z-index: 3000; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
#html-tip { position: fixed; z-index: 1500; background: #3B3A39; color: #fff; padding: 6px 10px; font-size: 11px; border-radius: 2px; pointer-events: none; display: none; box-shadow: 0 2px 8px rgba(0,0,0,.28); max-width: 520px; }
/* ---------- bookmarks ---------- */
.bm-menu { width: 380px; }
.menu-head { padding: 8px 12px 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.bm-item .mi-label { overflow: hidden; text-overflow: ellipsis; }
.bm-item.on { background: #EEF2FA; }
.bm-item.on .mi-ico { color: var(--accent); }
.bm-bar { display: none; flex: none; height: 40px; background: #fff; border-top: 1px solid var(--line); align-items: center; justify-content: center; }
.bm-bar.open { display: flex; }
.bm-bar-inner { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 14px; border: 1px solid #C8C6C4; border-radius: 2px; background: #FAF9F8; font-size: 13px; }
.bm-name { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; margin-right: 10px; }
.bm-count { min-width: 52px; text-align: center; color: var(--muted); font-size: 12px; }
.bm-nav { border: 0; background: transparent; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; color: var(--text); border-radius: 2px; }
.bm-nav:hover { background: #EDEBE9; }
.bm-close { margin-left: 6px; border-left: 1px solid var(--line); border-radius: 0; }
