/* GreenVoice — BATCO Sheet panel.
   Phone / narrow window: slides up over the radio, with a slim PTT bar.
   Wide screen (>= 900px): docks as a column beside the radio. */

:root {
  --bp-bg: #111;
  --bp-bg2: #0a0a0a;
  --bp-line: #2a3a30;
  --bp-green: #00ff66;
  --bp-green-dim: #2fa363;
  --bp-ink: #d8ffe8;
  --bp-muted: #7a8a80;
  --bp-cream: #e8dcb0;
  --bp-cream-ink: #1a1a14;
  --bp-amber: #ffaa00;
  --bp-red: #ff0055;
  --bp-dock-w: min(760px, calc(100vw - 400px));
}


/* ---- Panel shell ---- */
#batcoPanel {
  position: fixed;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: var(--bp-bg);
  color: var(--bp-ink);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  font-variant-numeric: slashed-zero;
  font-feature-settings: "zero" 1;
  box-sizing: border-box;
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}
#batcoPanel *, #batcoPanel *::before, #batcoPanel *::after { box-sizing: border-box; }
#batcoPanel.open {
  visibility: visible;
  transform: none;
  transition: transform 0.25s ease, visibility 0s;
}

/* Overlay mode (phones, narrow windows) */
#batcoPanel.mode-overlay {
  left: 0; right: 0; bottom: 0;
  top: 2.25rem;
  border-top: 2px solid var(--bp-green);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.6);
  transform: translateY(105%);
}
body.batco-overlay-open { overflow: hidden; }

/* Docked mode (wide screens) */
#batcoPanel.mode-docked {
  top: 0; right: 0; bottom: 0;
  width: var(--bp-dock-w);
  border-left: 2px solid var(--bp-green);
  transform: translateX(105%);
}
body.batco-docked { padding-right: var(--bp-dock-w); box-sizing: border-box; }
#batcoPanel.mode-docked .bp-ptt { display: none; }

#batcoPanel.open.mode-overlay,
#batcoPanel.open.mode-docked { transform: none; }

@media (prefers-reduced-motion: reduce) {
  #batcoPanel, #batcoPanel.open { transition: none; }
}

.bp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 6px 16px;
  border-bottom: 1px solid var(--bp-line);
  flex-shrink: 0;
}
.bp-head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--bp-green);
  letter-spacing: 0.08em;
}
.bp-close {
  min-width: 44px; min-height: 44px;
  background: none;
  border: none;
  color: var(--bp-muted);
  font-size: 1.4rem;
  cursor: pointer;
}
.bp-close:hover { color: var(--bp-ink); }

/* ---- Buttons: BATCO / SPELL / AUTH, then cards 001–011 ---- */
.bp-tabs {
  flex-shrink: 0;
  padding: 8px 12px 6px;
  border-bottom: 1px solid var(--bp-line);
}
.bp-tabrow { display: flex; gap: 6px; }
.bp-tabrow + .bp-tabrow {
  margin-top: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}
.bp-tab {
  flex: 1 1 0;
  min-height: 44px;
  background: #1c1c1c;
  color: var(--bp-green-dim);
  border: 1px solid var(--bp-green-dim);
  border-radius: 4px;
  font: inherit;
  font-weight: bold;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0 6px;
}
.bp-tab.card {
  flex: 0 0 auto;
  min-width: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  font-size: 0.85rem;
}
.bp-tab.card small { font-size: 0.55rem; font-weight: normal; opacity: 0.85; white-space: nowrap; }
.bp-tab:hover { color: var(--bp-green); border-color: var(--bp-green); }
.bp-tab[aria-pressed="true"] { background: var(--bp-green); color: #001100; border-color: var(--bp-green); }
.bp-tab:focus-visible, .bp-close:focus-visible, .bp-btn:focus-visible { outline: 2px solid var(--bp-amber); outline-offset: 2px; }

.bp-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.bp-view { flex: 1 1 auto; min-height: 0; display: none; flex-direction: column; }
.bp-view.active { display: flex; }

.bp-btn {
  min-width: 44px; min-height: 40px;
  background: #1c1c1c;
  color: var(--bp-green-dim);
  border: 1px solid var(--bp-green-dim);
  border-radius: 4px;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 10px;
}
.bp-btn:hover { color: var(--bp-green); border-color: var(--bp-green); }

/* ---- BATCO sheet view ---- */
.bp-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--bp-muted);
}
.bp-toolbar .spacer { flex: 1; }
.bp-kbd-hint { text-align: right; }
@media (max-width: 520px) { .bp-kbd-hint { display: none; } }

.bp-vp {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  background: var(--bp-bg2);
  border-top: 1px solid var(--bp-line);
  border-bottom: 1px solid var(--bp-line);
  touch-action: pan-x pan-y;
  overscroll-behavior: contain;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.bp-vp.panning { cursor: grabbing; }

/* Everything on the sheet is sized in em, so zoom = change font-size */
.bp-sheet {
  position: relative;
  display: inline-block;
  padding: 0.6em;
  line-height: 1;
  color: var(--bp-ink);
  white-space: nowrap;
}
.bp-sheet-title { text-align: center; color: var(--bp-green); font-weight: bold; font-size: 1.05em; margin-bottom: 0.35em; }
.bp-sheet-meta { display: flex; justify-content: space-between; color: var(--bp-muted); font-size: 0.8em; margin: 0 0.3em 0.25em; }

.bp-grid-row {
  display: grid;
  grid-template-columns: repeat(6, 1.3em) repeat(13, 2.15em);
  height: 1.6em;
  align-items: center;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: opacity 0.15s;
}
.bp-grid-row > span { display: block; }
.bp-grid-row .c7 { border-left: 1px solid var(--bp-muted); border-right: 1px solid var(--bp-muted); height: 100%; line-height: 1.6em; }
.bp-colhead { color: var(--bp-green); font-weight: bold; border-bottom: 1px solid var(--bp-muted); cursor: default; }
.bp-rows .bp-grid-row.dim { opacity: 0.55; }
.bp-rows .bp-grid-row.near { opacity: 0.35; }
.bp-rows .bp-grid-row.sel { background: rgba(0, 255, 102, 0.14); outline: 1px solid rgba(0, 255, 102, 0.5); color: #fff; font-weight: bold; }
.bp-rows .bp-grid-row:hover:not(.sel) { background: rgba(255, 255, 255, 0.05); }

/* The electronic slider — one face only */
.bp-slider {
  position: absolute;
  left: 0.35em; right: 0.35em;
  height: 1.6em;
  padding: 0 0.25em;
  background: var(--bp-cream);
  color: var(--bp-cream-ink);
  border-radius: 0.25em;
  box-shadow: 0 0.15em 0.4em rgba(0, 0, 0, 0.6);
  font-weight: bold;
  cursor: ns-resize;
  touch-action: none;
  transition: top 0.12s ease-out;
  z-index: 2;
}
.bp-slider.dragging { transition: none; }
.bp-slider .bp-grid-row { cursor: ns-resize; }
.bp-slider .c7 { border-color: rgba(0, 0, 0, 0.45); }
.bp-slider::before, .bp-slider::after {
  content: "";
  position: absolute;
  top: 0.35em; bottom: 0.35em;
  width: 0.35em;
  border-left: 2px solid rgba(0, 0, 0, 0.25);
  border-right: 2px solid rgba(0, 0, 0, 0.25);
}
.bp-slider::before { left: -0.05em; }
.bp-slider::after { right: -0.05em; }

.bp-lower {
  display: flex;
  gap: 1.2em;
  margin-top: 0.7em;
  padding-top: 0.5em;
  border-top: 1px solid var(--bp-muted);
  font-size: 0.95em;
}
.bp-mini { border-collapse: collapse; }
.bp-mini td, .bp-mini th { padding: 0.15em 0.35em; text-align: center; min-width: 1.4em; }
.bp-mini th { color: var(--bp-green); }
.bp-mini th.rl { border-right: 1px solid var(--bp-muted); }
.bp-mini thead th { border-bottom: 1px solid var(--bp-muted); }
.bp-lower-label { color: var(--bp-muted); font-size: 0.7em; margin-bottom: 0.2em; }

.bp-csi { display: flex; margin-top: 0.6em; padding-top: 0.4em; border-top: 1px solid var(--bp-muted); }
.bp-csi .grp { display: flex; border-left: 1px solid var(--bp-muted); }
.bp-csi .grp:first-child { border-left: none; }
.bp-csi .ci { display: flex; flex-direction: column; align-items: center; width: 1.6em; gap: 0.25em; }
.bp-csi .ci b { color: var(--bp-ink); }
.bp-csi .ci i { font-style: normal; color: var(--bp-muted); }

/* Magnifier strip: the selected row, large */
.bp-mag {
  flex-shrink: 0;
  padding: 8px 12px 10px;
  background: var(--bp-bg);
}
.bp-mag-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 0.75rem;
  color: var(--bp-muted);
  margin-bottom: 6px;
}
.bp-mag-info .keys b { color: var(--bp-cream); letter-spacing: 0.04em; }
.bp-mag-cells { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: thin; }
.bp-mag-cell {
  flex: 1 1 0;
  min-width: 25px;
  border: 1px solid var(--bp-line);
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
}
.bp-mag-cell .d {
  background: var(--bp-cream);
  color: var(--bp-cream-ink);
  font-weight: bold;
  font-size: 0.8rem;
  padding: 3px 0;
}
.bp-mag-cell .p {
  color: #fff;
  font-weight: bold;
  font-size: clamp(0.78rem, 3.4vw, 1.25rem);
  padding: 5px 0;
  letter-spacing: 0.02em;
}

/* ---- SPELL and AUTH views ---- */
.bp-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 14px 12px 16px; }
.bp-help { font-size: 0.78rem; color: var(--bp-muted); line-height: 1.45; margin: 0 0 12px; }
.bp-help b { color: var(--bp-ink); }
.bp-big { border-collapse: collapse; margin: 0 auto; font-size: clamp(1rem, 4.4vw, 1.45rem); }
.bp-big th, .bp-big td { text-align: center; padding: 0; }
.bp-big th { color: var(--bp-green); font-weight: bold; width: 2.3em; height: 2em; }
.bp-big thead th { border-bottom: 2px solid var(--bp-green-dim); }
.bp-big th.rl { border-right: 2px solid var(--bp-green-dim); }
.bp-big td button {
  width: 100%;
  min-width: 2.2em;
  min-height: 44px;
  height: 2.1em;
  background: none;
  border: none;
  color: #fff;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
}
.bp-big td button:disabled { cursor: default; }
.bp-big td button:not(:disabled):hover { background: rgba(0, 255, 102, 0.12); }
.bp-big td button:focus-visible { outline: 2px solid var(--bp-amber); }
.bp-big .hl-row, .bp-big .hl-col { background: rgba(232, 220, 176, 0.12); }
.bp-big th.hl-row, .bp-big th.hl-col { color: var(--bp-cream); background: rgba(232, 220, 176, 0.22); }
.bp-big td.pick button { background: var(--bp-cream); color: var(--bp-cream-ink); }
.bp-readout {
  text-align: center;
  margin: 16px 0 6px;
  min-height: 2.2em;
  font-size: clamp(1.2rem, 6vw, 1.8rem);
  color: var(--bp-cream);
  font-weight: bold;
  letter-spacing: 0.06em;
}
.bp-readout.empty { color: var(--bp-muted); font-size: 0.85rem; font-weight: normal; letter-spacing: 0; }

.bp-auth td.struck button { color: #555; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--bp-red); }
.bp-auth-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-size: 0.78rem; color: var(--bp-muted); }

/* ---- Vocabulary cards ---- */
.bp-cardhead { flex-shrink: 0; padding: 8px 12px; border-bottom: 1px solid var(--bp-line); }
.bp-search {
  width: 100%;
  min-height: 44px;
  background: #000;
  color: var(--bp-ink);
  border: 1px solid var(--bp-green-dim);
  border-radius: 4px;
  font: inherit;
  font-size: 1rem;
  padding: 8px 10px;
}
.bp-search::placeholder { color: #4d6b5a; }
.bp-search:focus { outline: none; border-color: var(--bp-green); }
.bp-cardtitle { margin-top: 8px; font-size: 0.85rem; color: var(--bp-green); font-weight: bold; letter-spacing: 0.05em; }
.bp-cardtitle span { color: var(--bp-muted); font-weight: normal; }

.bp-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 0 20px; }
.bp-common {
  margin: 10px 12px 4px;
  border: 1px dashed var(--bp-green-dim);
  border-radius: 6px;
  padding: 4px 0;
}
.bp-common-label { font-size: 0.65rem; color: var(--bp-muted); padding: 2px 10px 4px; letter-spacing: 0.06em; }
.bp-common .bp-item { border: none; min-height: 34px; padding: 4px 10px; }

.bp-section h3 {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 8px 12px 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--bp-green);
  background: var(--bp-bg);
  border-bottom: 1px solid var(--bp-line);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bp-note { font-size: 0.72rem; color: var(--bp-muted); padding: 6px 12px 6px 58px; }

.bp-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border-bottom: 1px solid #1c241f;
  line-height: 1.35;
}
.bp-item .s {
  flex: 0 0 2.2em;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--bp-green);
  line-height: 1.2;
}
.bp-item .t { flex: 1; font-size: 0.95rem; color: #fff; padding-top: 1px; }
.bp-tag {
  display: inline-block;
  margin: 0 2px;
  padding: 0 5px;
  border-radius: 3px;
  background: #2b2a24;
  color: var(--bp-cream);
  border: 1px solid #5c573f;
  font-size: 0.72rem;
  line-height: 1.5;
  vertical-align: 1px;
  white-space: nowrap;
}
.bp-item.has-sub { cursor: pointer; }
.bp-item.has-sub .t::after { content: " ▸"; color: var(--bp-green-dim); }
.bp-item.has-sub.open .t::after { content: " ▾"; }
.bp-sub { display: none; margin-top: 5px; font-size: 0.8rem; color: var(--bp-cream); line-height: 1.5; }
.bp-item.open .bp-sub { display: block; }
.bp-item.flash { animation: bp-flash 1.6s ease-out; }
@keyframes bp-flash { 0%, 40% { background: rgba(232, 220, 176, 0.3); } 100% { background: transparent; } }

.bp-result { cursor: pointer; }
.bp-result .s { flex-basis: 4.6em; }
.bp-result .s small { display: block; font-size: 0.62rem; color: var(--bp-muted); font-weight: normal; }
.bp-result:hover { background: rgba(0, 255, 102, 0.06); }
.bp-empty { padding: 20px 12px; color: var(--bp-muted); font-size: 0.85rem; }
mark.bp-m { background: rgba(255, 170, 0, 0.35); color: inherit; border-radius: 2px; }

/* ---- Slim PTT bar (overlay mode only) ---- */
.bp-ptt {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--bp-line);
  background: #151515;
}
.bp-ptt-status { flex: 1; font-size: 0.72rem; color: var(--bp-green); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-ptt-btn {
  flex: 0 0 58%;
  height: 52px;
  background: #222;
  color: var(--bp-green);
  border: 2px solid var(--bp-green);
  border-radius: 4px;
  font: inherit;
  font-size: 1rem;
  font-weight: bold;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: pointer;
}
.bp-ptt-btn:active, .bp-ptt-btn.transmitting { background: var(--bp-red); border-color: var(--bp-red); color: #fff; }

/* The auth table has 10 columns — let it share the width evenly so it
   fits a phone without sideways scrolling. */
.bp-big.bp-auth { width: 100%; max-width: 560px; table-layout: fixed; font-size: clamp(0.9rem, 3.8vw, 1.4rem); }
.bp-big.bp-auth th { width: auto; }
.bp-big.bp-auth thead th.rl, .bp-big.bp-auth tbody th.rl { width: 1.6em; }
.bp-big.bp-auth td button { min-width: 0; padding: 0; }

/* ======================================================================
   Reference panel: BATCO | LUVM | PROWORDS
   ====================================================================== */

/* Three equal buttons on the radio screen */
#refBtns { display: flex; gap: 6px; margin-top: 1.1rem; }
#refBtns button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  padding: 0 4px;
  background: #222;
  color: var(--bp-cream);
  border: 2px solid var(--bp-cream);
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
}
#refBtns button:hover { background: #2b2a24; }
#refBtns button[aria-pressed="true"] { background: var(--bp-cream); color: var(--bp-cream-ink); }
#refBtns button:focus-visible { outline: 2px solid var(--bp-amber); outline-offset: 2px; }

/* Section switch in the panel header */
.bp-seg { display: flex; flex: 1; gap: 4px; margin-right: 6px; }
.bp-seg button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  background: #1c1c1c;
  color: var(--bp-muted);
  border: 1px solid var(--bp-line);
  border-radius: 4px;
  font: inherit;
  font-weight: bold;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0 4px;
}
.bp-seg button:hover { color: var(--bp-cream); border-color: var(--bp-cream); }
.bp-seg button[aria-pressed="true"] { background: var(--bp-cream); color: var(--bp-cream-ink); border-color: var(--bp-cream); }
.bp-seg button:focus-visible { outline: 2px solid var(--bp-amber); outline-offset: 2px; }
.bp-head { padding-left: 12px; }

.bp-sec { flex: 1 1 auto; min-height: 0; display: none; flex-direction: column; }
.bp-sec.active { display: flex; }
.bp-scrollcol { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: 20px; }
.bp-pad { padding: 12px 12px 0; }

/* ---- LUVM chooser ---- */
.bp-luvm-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  width: 100%;
  min-height: 56px;
  padding: 10px 12px;
  background: none;
  border: none;
  border-bottom: 1px solid #1c241f;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.bp-luvm-row:hover { background: rgba(0, 255, 102, 0.06); }
.bp-luvm-row:focus-visible { outline: 2px solid var(--bp-amber); outline-offset: -2px; }
.bp-luvm-code { color: var(--bp-green); font-weight: bold; font-size: 1rem; letter-spacing: 0.04em; }
.bp-luvm-name { color: #fff; font-size: 0.9rem; }
.bp-luvm-when {
  color: var(--bp-muted);
  font-size: 0.75rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- LUVM card ---- */
.bp-luvm-cardwrap { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.bp-luvm-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--bp-line); flex-shrink: 0; }
.bp-luvm-bartitle { color: var(--bp-green); font-weight: bold; letter-spacing: 0.05em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-back { font-size: 0.85rem; }
.bp-luvm-head { padding: 12px 12px 4px; }
.bp-luvm-head h3 { margin: 0 0 6px; font-size: 1.1rem; color: #fff; }
.bp-luvm-purpose { margin: 0 0 4px; font-size: 0.85rem; line-height: 1.45; color: var(--bp-ink); }
.bp-luvm-source { margin: 0; font-size: 0.68rem; color: var(--bp-muted); }
.bp-luvm-block { margin: 8px 12px; padding: 8px 10px; border: 1px dashed var(--bp-green-dim); border-radius: 6px; }
.bp-luvm-step + .bp-luvm-step { margin-top: 8px; }
.bp-luvm-steplabel { font-size: 0.68rem; color: var(--bp-muted); letter-spacing: 0.04em; margin-bottom: 2px; }
.bp-say { color: var(--bp-cream); font-weight: bold; font-size: 0.95rem; line-height: 1.4; }
.bp-luvm-memory { margin-top: 8px; font-size: 0.78rem; color: var(--bp-green); }

.bp-luvm-fields { margin-top: 6px; }
.bp-field { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #1c241f; }
.bp-field-k {
  flex: 0 0 2.4em;
  height: 2em;
  display: flex; align-items: center; justify-content: center;
  background: var(--bp-green);
  color: #001100;
  font-weight: bold;
  border-radius: 4px;
  font-size: 0.95rem;
}
.bp-field-main { flex: 1; min-width: 0; }
.bp-field-name { color: #fff; font-weight: bold; font-size: 0.95rem; line-height: 1.3; }
.bp-field-give { color: var(--bp-muted); font-size: 0.8rem; line-height: 1.4; margin-top: 2px; }
.bp-field-opts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.bp-field-opts span {
  font-size: 0.72rem;
  color: var(--bp-ink);
  border: 1px solid var(--bp-line);
  border-radius: 3px;
  padding: 1px 6px;
  line-height: 1.5;
}
.bp-field-eg {
  margin-top: 6px;
  padding: 5px 8px;
  background: #2b2a24;
  border-left: 3px solid var(--bp-cream);
  border-radius: 0 4px 4px 0;
  color: var(--bp-cream);
  font-size: 0.88rem;
  line-height: 1.4;
}
.bp-field-eg .lbl { color: #a89f7c; font-style: italic; }

.bp-luvm-notes { margin: 10px 12px 0; padding: 8px 10px; border-left: 3px solid var(--bp-amber); background: rgba(255, 170, 0, 0.07); }
.bp-luvm-notes p { margin: 0; font-size: 0.8rem; line-height: 1.45; color: var(--bp-ink); }
.bp-luvm-notes p + p { margin-top: 6px; }

.bp-luvm-full { margin: 14px 12px 0; }
.bp-luvm-full h4 { margin: 0 0 6px; font-size: 0.75rem; color: var(--bp-green); letter-spacing: 0.08em; }
.bp-tx { display: flex; gap: 8px; padding: 8px 0; border-top: 1px solid var(--bp-line); }
.bp-tx-cs { flex: 0 0 3.2em; color: var(--bp-green); font-weight: bold; font-size: 0.85rem; }
.bp-tx-text { flex: 1; color: #fff; font-size: 0.88rem; line-height: 1.5; }

/* ---- Prowords ---- */
.bp-pw { padding: 9px 12px; border-bottom: 1px solid #1c241f; }
.bp-pw-w { color: var(--bp-green); font-weight: bold; font-size: 0.95rem; letter-spacing: 0.03em; }
.bp-pw-m { color: #fff; font-size: 0.85rem; line-height: 1.45; margin-top: 2px; }
.bp-pw-x {
  margin-top: 6px;
  padding-left: 8px;
  border-left: 2px solid var(--bp-green-dim);
  color: #b9d9c6;
  font-size: 0.82rem;
  line-height: 1.5;
}
.bp-pw-egbtn {
  margin-top: 6px;
  min-height: 32px;
  padding: 0 10px;
  background: none;
  border: 1px solid #5c573f;
  border-radius: 4px;
  color: var(--bp-cream);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.bp-pw-egbtn:hover { background: #2b2a24; }
.bp-pw-egbtn:focus-visible { outline: 2px solid var(--bp-amber); outline-offset: 2px; }
.bp-pw-eg {
  margin-top: 6px;
  padding: 6px 8px;
  background: #2b2a24;
  border-left: 3px solid var(--bp-cream);
  border-radius: 0 4px 4px 0;
}
.bp-pw-eg[hidden] { display: none; }
.bp-pw-egline { color: var(--bp-cream); font-size: 0.82rem; line-height: 1.5; display: flex; gap: 8px; }
.bp-pw-egline + .bp-pw-egline { margin-top: 3px; }
.bp-pw-egline .cs { flex: 0 0 3.2em; color: var(--bp-green); font-weight: bold; }
.bp-pw-egline.note { color: #a89f7c; font-style: italic; }

/* Card 012 (SPEC OPS) — set per instructor; amber so it stands out */
.bp-tab.card.c12 { border-color: #ffaa00; color: #ffaa00; }
.bp-tab.card.c12[aria-pressed="true"] { background: #ffaa00; color: #111; }
.bp-cardtitle .bp-check { color: #ffaa00; font-weight: bold; letter-spacing: 0.1em; }
