/* PCSAR Business Meeting packet — Paligo-aligned, scoped under .bm */
.bm {
  --primary: #1976d2;
  --primary-dark: #004ba0;
  --primary-hover: #11508e;
  --accent: #F57C00;
  --accent-hover: #dc6f00;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --line: #e6e9ee;
  --ink: #333333;
  --mute: #6b7280;
  --ok: #2e7d32;
  --warn: #f9a825;
  --info: #1976d2;
  --bad: #c62828;
  --shadow: 0 3px 15px rgba(0, 0, 0, 0.09);
  --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.16);
  background: var(--bg);
  color: var(--ink);
  font-family: 'Roboto', system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
.bm * { box-sizing: border-box; }
.bm a { color: var(--primary); text-decoration: none; }
.bm a:hover, .bm a:focus { color: var(--primary-hover); text-decoration: underline; }

/* Portal-style header (matches Guiding Documents portal-header) */
.bm .bm-portal-header {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 28px 20px 36px;
  overflow: hidden;
  z-index: 0;
}
.bm .bm-portal-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--primary-dark);
  z-index: -2;
}
.bm .bm-portal-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../../../css/image/portal-bg.jpg) no-repeat center center;
  background-size: cover;
  opacity: 0.12;
  z-index: -1;
}
.bm .bm-portal-header .inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.bm .bm-portal-header .logo-link {
  display: block;
  text-decoration: none;
}
@media (min-width: 768px) {
  .bm .bm-portal-header .logo-link { text-align: left; }
}
.bm .bm-portal-header .logo {
  height: 36px;
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .bm .bm-portal-header .logo { height: 44px; margin-bottom: 8px; }
}
.bm .bm-portal-header h1 {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 500;
  margin: 8px 0 6px;
  color: #fff;
  line-height: 1.25;
}
.bm .bm-portal-header h1 .em { color: #ffcc80; font-weight: 500; }
.bm .bm-portal-header .bm-portal-sub {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
}
.bm .bm-portal-header.compact {
  padding: 20px 20px 24px;
  text-align: left;
}
.bm .bm-portal-header.compact h1 {
  font-size: clamp(20px, 3.2vw, 28px);
  margin-top: 4px;
}

.bm .wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.bm .topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mute);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
}
.bm .topbar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.2);
  flex-shrink: 0;
}

.bm h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; margin: 14px 0 6px; font-weight: 500; color: var(--ink); }
.bm h1 .em { color: var(--primary); }
.bm h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
}
.bm h3 { font-size: 18px; font-weight: 500; margin: 18px 0 8px; color: var(--ink); }
.bm .sub { font-size: 18px; color: var(--mute); margin: 0 0 26px; font-weight: 300; }
.bm .meta { color: var(--mute); font-size: 14px; }

/* Publication-panel style cards (portal-single-publication feel) */
.bm .cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.bm .card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--panel);
  border: 0;
  border-radius: 4px;
  padding: 28px 22px;
  text-decoration: none;
  color: var(--ink);
  min-height: 260px;
  box-shadow: var(--shadow);
  transition: box-shadow .15s ease-in-out, transform .15s ease-in-out;
  position: relative;
  overflow: hidden;
}
.bm .card:before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--primary);
}
.bm .card:hover, .bm .card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  outline: none;
  color: var(--ink);
  text-decoration: none;
}
.bm .card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.35);
}
@media (min-width: 992px) {
  .bm .card .icon { width: 72px; height: 72px; font-size: 32px; }
}
.bm .card .title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: #555;
  margin-top: 4px;
}
.bm .card:hover .title { color: var(--primary); }
.bm .card .who { color: var(--accent); font-weight: 500; font-size: 14px; }
.bm .card .blurb { color: var(--mute); font-size: 14px; flex: 1; font-weight: 300; line-height: 1.45; }
.bm .card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.bm .card .big { font-size: 20px; font-weight: 500; color: var(--ink); }
.bm .card .go { font-weight: 500; color: var(--primary); font-size: 14px; }
.bm .card.placeholder {
  border: 2px dashed #cfd5de;
  box-shadow: none;
  opacity: .7;
  min-height: 150px;
  background: #fafbfc;
}
.bm .card.placeholder:before { background: #cfd5de; }
.bm .card.placeholder:hover { transform: none; box-shadow: none; }

.bm .chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
}
.bm .chip.ready { color: var(--ok); border-color: #a5d6a7; background: #e8f5e9; }
.bm .chip.pending { color: #f57f17; border-color: #ffe082; background: #fff8e1; }
.bm .chip.proposal { color: var(--info); border-color: #90caf9; background: #e3f2fd; }
.bm .chip.act { color: var(--accent-hover); border-color: #ffcc80; background: #fff3e0; }

.bm .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
  color: var(--primary);
}
.bm .back:hover { text-decoration: underline; }

.bm .hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.bm .hero h1 { margin-top: 8px; }

.bm .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.bm .toc a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none;
  font-size: 13px;
  color: #555;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.bm .toc a:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.bm section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 24px;
  margin: 18px 0;
  box-shadow: var(--shadow);
}
.bm section p { margin: 8px 0; }
.bm ul { padding-left: 22px; margin: 8px 0; }
.bm li { margin: 4px 0; }

.bm .kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 6px 0;
}
.bm .kpi {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px;
}
.bm .kpi .v { font-size: 26px; font-weight: 500; color: var(--ink); }
.bm .kpi .l { color: var(--mute); font-size: 13px; margin-top: 4px; }
.bm .kpi.hl { border-color: var(--primary); background: #e3f2fd; }
.bm .kpi.hl .v { color: var(--primary-dark); }

.bm table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.bm th, .bm td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.bm th {
  color: var(--mute);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 500;
  background: #f8fafc;
}
.bm td.n, .bm th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bm tr.total td {
  font-weight: 700;
  border-top: 2px solid var(--primary);
  color: var(--ink);
  background: #e3f2fd;
}
.bm .tablewrap { overflow-x: auto; }

.bm .tbd {
  display: inline-block;
  background: #fff8e1;
  color: #f57f17;
  border: 1px dashed #ffe082;
  border-radius: 4px;
  padding: 1px 8px;
  font-weight: 500;
  font-size: .92em;
}
.bm .note {
  border-left: 4px solid var(--warn);
  background: #fff8e1;
  padding: 12px 16px;
  border-radius: 0 4px 4px 0;
  margin: 12px 0;
}
.bm .note.info { border-color: var(--info); background: #e3f2fd; }
.bm .note.bad { border-color: var(--bad); background: #ffebee; }

.bm .motion {
  border: 2px solid var(--accent);
  border-radius: 4px;
  padding: 16px 18px;
  background: #fff3e0;
  font-size: 17px;
}

.bm .links a { display: inline; }
.bm .btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.bm .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 500;
  text-decoration: none !important;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 15px;
  border: 1px solid var(--primary);
  cursor: pointer;
  font-family: inherit;
}
.bm .btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff !important; }
.bm .btn.ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.bm .btn.ghost:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  background: #e3f2fd;
}

.bm .frame {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.bm .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bm img.shot {
  max-width: 100%;
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.bm footer.bm-foot,
.bm > .wrap > footer,
.bm .wrap > footer {
  color: var(--mute);
  font-size: 14px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.bm .bm-site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 40px;
  color: var(--mute);
  font-size: 14px;
}
.bm .bm-site-footer .inner {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

@media (max-width: 720px) {
  .bm { font-size: 15px; }
  .bm .grid2 { grid-template-columns: 1fr; }
  .bm section { padding: 16px; }
  .bm .card { min-height: 0; }
  .bm .bm-portal-header { padding: 22px 16px 28px; }
}

@media print {
  .bm { background: #fff; color: #000; }
  .bm .bm-portal-header { background: #fff !important; color: #000; padding: 12px 0; }
  .bm .bm-portal-header::before,
  .bm .bm-portal-header::after { display: none; }
  .bm .bm-portal-header h1,
  .bm .bm-portal-header .bm-portal-sub { color: #000; }
  .bm section, .bm .card { background: #fff; color: #000; border-color: #999; box-shadow: none; }
  .bm .toc, .bm .btns { display: none; }
  .bm a { color: #000; }
}

/* ===== v2 components (Oct 6 rewrite) ===== */
.bm .hero .sub { margin-bottom: 8px; }
.bm .hero .who-line { font-size: 14px; color: var(--mute); margin: 6px 0 0; }
.bm .chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bm .lead { font-size: 16px; margin: 4px 0 14px; }

/* small inline link pills placed next to the thing that prompts a click */
.bm a.lnk {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500; line-height: 1.2;
  padding: 2px 8px; margin: 2px 2px 2px 0;
  border: 1px solid #90caf9; background: #e3f2fd; color: var(--primary-dark);
  border-radius: 999px; white-space: nowrap; vertical-align: middle;
}
.bm a.lnk:hover { background: var(--primary); border-color: var(--primary); color: #fff; text-decoration: none; }
.bm a.lnk.pdf { border-color: #ef9a9a; background: #ffebee; color: var(--bad); }
.bm a.lnk.pdf:hover { background: var(--bad); border-color: var(--bad); color: #fff; }
.bm a.lnk.mail { border-color: #ffcc80; background: #fff3e0; color: var(--accent-hover); }
.bm a.lnk.mail:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.bm .part { font-family: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--mute); background: #f1f3f6; border-radius: 3px; padding: 1px 6px; white-space: nowrap; }

/* Visual kit diagram: building blocks joined by "+" */
.bm .kit { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; margin: 10px 0 6px; }
.bm .kit .plus { align-self: center; font-size: 28px; font-weight: 300; color: var(--primary); }
.bm .kit-block {
  background: #f8fafc; border: 1px solid var(--line); border-top: 4px solid var(--primary);
  border-radius: 4px; padding: 14px 14px 12px; text-align: center; display: flex; flex-direction: column; gap: 6px;
}
.bm .kit-block .ico { font-size: 34px; line-height: 1; }
.bm .kit-block .name { font-weight: 500; font-size: 16px; color: var(--ink); }
.bm .kit-block .desc { font-size: 13px; color: var(--mute); }
.bm .kit-block.choose { border-top-color: var(--accent); }
.bm .kit-block .badge { align-self: center; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-hover); background: #fff3e0; border: 1px solid #ffcc80; border-radius: 999px; padding: 2px 8px; }
.bm .kit-eq { text-align: center; color: var(--mute); font-size: 14px; margin: 4px 0 0; }

/* Option cards (e.g. Slim vs XTREME) */
.bm .options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 12px 0; }
.bm .opt { border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; background: #fff; position: relative; }
.bm .opt h4 { margin: 0 0 4px; font-size: 17px; font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bm .opt ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.bm .opt.owned { border-color: #a5d6a7; background: #f1f8f1; }
.bm .opt.best { border-color: var(--primary); background: #f0f7ff; }
.bm .opt.muted { border-style: dashed; background: #fafbfc; color: var(--mute); }
.bm .tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; border: 1px solid; }
.bm .tag.ok { color: var(--ok); border-color: #a5d6a7; background: #e8f5e9; }
.bm .tag.blue { color: var(--primary-dark); border-color: #90caf9; background: #e3f2fd; }
.bm .tag.grey { color: var(--mute); border-color: #cfd5de; background: #f1f3f6; }
.bm .tag.bad { color: var(--bad); border-color: #ef9a9a; background: #ffebee; }
.bm .specline { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.bm .spec { background: #f8fafc; border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; font-size: 13px; }
.bm .spec b { color: var(--ink); font-weight: 500; }

/* Side-by-side comparison table */
.bm table.compare { table-layout: fixed; min-width: 720px; }
.bm table.compare th:first-child, .bm table.compare td:first-child { width: 20%; color: var(--mute); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; background: #fafbfc; }
.bm table.compare thead th { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); vertical-align: bottom; }
.bm table.compare thead th .colhead { display: flex; flex-direction: column; gap: 4px; }
.bm table.compare thead th .colhead .big { font-size: 16px; font-weight: 500; }
.bm table.compare td .amt { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); }
.bm table.compare td .sub2 { display: block; font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.bm table.compare .col-owned { background: #f1f8f1; }
.bm table.compare .col-best { background: #f0f7ff; }
.bm table.compare thead th.col-owned { border-top: 4px solid var(--ok); background: #e8f5e9; }
.bm table.compare thead th.col-best { border-top: 4px solid var(--primary); background: #e3f2fd; }
.bm table.compare thead th.col-plain { border-top: 4px solid #cfd5de; }
.bm table.compare tr.total td { font-size: 15px; }
.bm table.compare tr.total td .amt { font-size: 22px; color: var(--primary-dark); }
.bm table.compare tr.total td.col-owned .amt { color: var(--ok); }
.bm table.compare tr.related td { background: #fafbfc; font-size: 14px; }
.bm .delta { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ok); background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: 999px; padding: 1px 8px; margin-top: 4px; }
.bm .delta.up { color: var(--bad); background: #ffebee; border-color: #ef9a9a; }

/* Price bars (graphical comparison) */
.bm .bars { margin: 12px 0 4px; display: grid; gap: 8px; }
.bm .bar { display: grid; grid-template-columns: 170px 1fr 90px; align-items: center; gap: 10px; font-size: 14px; }
.bm .bar .track { background: #eef1f5; border-radius: 4px; height: 22px; position: relative; overflow: hidden; }
.bm .bar .fill { height: 100%; border-radius: 4px; background: #90caf9; }
.bm .bar .fill.best { background: var(--primary); }
.bm .bar .fill.owned { background: #81c784; }
.bm .bar .fill.warn { background: var(--accent); }
.bm .bar .val { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.bm .meter { position: relative; margin: 14px 0 28px; }
.bm .meter .track { background: #eef1f5; border-radius: 4px; height: 26px; position: relative; overflow: visible; }
.bm .meter .seg { position: absolute; top: 0; bottom: 0; border-radius: 4px 0 0 4px; }
.bm .meter .mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.bm .meter .mark span { position: absolute; top: 32px; left: 50%; transform: translateX(-50%); font-size: 12px; white-space: nowrap; color: var(--mute); }
.bm .legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--mute); }
.bm .legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* Product card */
.bm .product { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start; border: 1px solid var(--line); border-radius: 4px; padding: 16px; background: #f8fafc; }
.bm .product .pic { width: 120px; height: 120px; border-radius: 4px; background: #263238; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 44px; position: relative; }
.bm .product .pic .qty { position: absolute; top: -8px; right: -8px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; border-radius: 999px; padding: 4px 10px; box-shadow: var(--shadow); }
.bm .product .pic small { font-size: 11px; letter-spacing: .05em; opacity: .8; margin-top: 4px; }
.bm .product .pname { font-size: 18px; font-weight: 500; margin: 0 0 2px; }
.bm .plan { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 0; }
.bm .plan .slot { border: 1px dashed #90caf9; background: #f0f7ff; border-radius: 4px; padding: 10px 12px; font-size: 14px; }
.bm .plan .slot b { display: block; color: var(--primary-dark); }

/* Figures with captions */
.bm figure { margin: 14px 0; }
.bm figure img.shot { display: block; }
.bm figcaption { font-size: 13px; color: var(--mute); margin-top: 6px; }
.bm .split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.bm .split.r { grid-template-columns: 2fr 1fr; }

/* Full-bleed interactive chart pages */
.bm.chart-page { display: flex; flex-direction: column; height: 100vh; min-height: 0; }
.bm.chart-page .bm-portal-header.compact { padding: 12px 20px 14px; flex: 0 0 auto; }
.bm.chart-page .bm-portal-header .logo { height: 30px; margin-bottom: 0; }
.bm.chart-page .bm-portal-header .inner { max-width: none; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.bm.chart-page .bm-portal-header h1 { margin: 0; font-size: clamp(18px, 2.4vw, 24px); }
.bm.chart-page .bm-portal-header .bm-portal-sub { font-size: 14px; }
.bm .chart-bar { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 20px; background: #fff; border-bottom: 1px solid var(--line); font-size: 14px; }
.bm .chart-bar .back { margin: 0; }
.bm .chart-bar .stat { color: var(--mute); }
.bm .chart-bar .stat b { color: var(--ink); font-weight: 500; }
.bm .chart-bar .stat.grey b { color: var(--mute); }
.bm .chart-bar .sep { width: 1px; align-self: stretch; background: var(--line); }
.bm .chart-bar .pkgs { display: flex; flex-wrap: wrap; gap: 8px; }
.bm .chart-bar .pkg { border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 4px; padding: 3px 10px; background: #f8fafc; font-size: 13px; }
.bm .chart-bar .pkg b { color: var(--primary-dark); }
.bm iframe.chart-frame { flex: 1 1 auto; width: 100%; min-height: 560px; border: 0; display: block; background: #fff; }

@media (max-width: 720px) {
  .bm .kit { grid-template-columns: 1fr; }
  .bm .kit .plus { justify-self: center; }
  .bm .split, .bm .split.r, .bm .plan { grid-template-columns: 1fr; }
  .bm .product { grid-template-columns: 1fr; }
  .bm .bar { grid-template-columns: 110px 1fr 76px; font-size: 13px; }
  .bm.chart-page { height: auto; }
  .bm iframe.chart-frame { height: 85vh; flex: none; }
}
@media print {
  .bm.chart-page { height: auto; }
  .bm a.lnk { border: 0; background: none; padding: 0; }
}


/* Obvious packet-level back control on chart pages */
.bm .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--primary) !important;
  font-weight: 600;
  text-decoration: none !important;
  padding: 10px 16px;
  border-radius: 4px;
  border: 2px solid var(--primary);
  font-size: 15px;
  white-space: nowrap;
}
.bm .back-btn:hover {
  background: #e3f2fd;
  color: var(--primary-hover) !important;
}
.bm .kit-block .photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #f4f6f8;
  border-radius: 4px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.bm .kit-block .ico { display: none; }
.bm .kit-block.has-photo .ico { display: none; }
.bm .product .photo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  background: #f4f6f8;
  border-radius: 4px;
  border: 1px solid var(--line);
}
