 

#panel-bofm { align-items: stretch; justify-content: flex-start; }
.bofm-wrap { width: 100%; max-width: 820px; margin: 0 auto; padding: 4px 4px 88px; }
.bofm-hide { display: none !important; }

.bofm-headrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
 
.bofm-header { margin: 0; min-width: 0; }
.bofm-status { margin-top: 6px; color: var(--muted); font-size: var(--fs-base); }
.bofm-status.err { color: var(--accent-2); }

 
.bofm-picker { margin-top: 10px; }
.bofm-picker input[type="search"] {
  width: 100%; box-sizing: border-box; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-btn); font-size: var(--fs-base);
}
 
.bofm-pick-list {
  margin-top: 8px; max-height: 320px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: var(--radius-card);
}
.bofm-pick-row {
  display: block; width: 100%; text-align: left; appearance: none;
  background: transparent; border: 0; border-bottom: 1px solid var(--border);
  padding: 7px 12px; font-size: var(--fs-base); color: var(--text); cursor: pointer;
}
.bofm-pick-row:last-child { border-bottom: 0; }
.bofm-pick-row:hover { background: var(--bg-2); }
.bofm-pick-logged { color: var(--muted); }
.bofm-pick-current { font-weight: 700; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.bofm-pick-none { padding: 10px 12px; font-size: var(--fs-base); }

 
.bofm-lang-row { margin-top: 10px; flex-wrap: nowrap; gap: 5px; }
.bofm-lang-row .pill {
  flex: 1 1 0; min-width: 0; justify-content: center;
  padding-left: 7px; padding-right: 7px; gap: 4px; white-space: nowrap;
}

 
.bofm-swrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 4px; }
.bofm-sw { margin: 0; }
.bofm-audio { flex: 1 1 260px; min-width: 0; max-width: 420px; height: 34px; }
.bofm-audio[hidden] { display: none; }

 
.bofm-article-wrap {
  position: relative; margin-top: 8px;
  border: 1px solid var(--border); border-radius: var(--radius-card);
  background: var(--card); overflow: hidden;
}
.bofm-article-wrap.bofm-gated .bofm-article {
  filter: blur(7px); pointer-events: none; user-select: none;
}
.bofm-article-wrap.bofm-gated { max-height: 68vh; overflow: hidden; }
.bofm-start-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3;
  appearance: none; border: 0; cursor: pointer;
  background: var(--accent); color: var(--on-fill);
  font-size: var(--fs-lg); font-weight: 700; line-height: 1;
  padding: 13px 30px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-pop);
}
.bofm-start-btn:hover { filter: brightness(1.08); }
.bofm-start-btn:focus-visible { outline: 2px solid var(--on-fill); outline-offset: 2px; }
.bofm-start-btn[hidden] { display: none; }

.bofm-logcard { margin-top: 14px; }
.bofm-logactions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.bofm-logactions button[hidden] { display: none; }
.bofm-logmsg { font-size: var(--fs-base); }

 
.bofm-logform { margin-top: 4px; }
.bofm-listen { margin: 10px 0 2px; }
.bofm-listen-msg { font-size: var(--fs-base); color: var(--muted); margin-bottom: 8px; }
.bofm-listen-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.bofm-listen-btns .bofm-cat-on { background: var(--accent); color: var(--on-fill); }

@media (max-width: 640px) {
  .bofm-article { padding: 16px 16px 24px; font-size: var(--fs-lg); }
  .bofm-headrow { flex-wrap: wrap; }
}

 
.bofm-slides-row { flex: 0 0 auto; }
.bofm-article .bs-view { padding: 0; }
.bs-card { margin: 0; }
 
.bofm-article .bs-card { box-shadow: none; border-left: 0; border-radius: 0; background: transparent; padding: 0 0 8px; }
 
.bofm-ctx-off .bofm-card:has(> .bofm-status:empty) { display: none; }
.bs-text p { margin: 0; }
.bs-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.bs-count { font-size: var(--fs-base); }
.bofm-ctx-off .rp-progress { display: none; }
.bofm-ctx-off .bs-count { visibility: hidden; }
.bofm-ctx-off .bs-vnum { display: none; }
.bs-empty { padding: 16px; }
 
.bs-text blockquote {
  margin: 16px 0; padding: 6px 16px; border-left: 4px solid var(--accent);
  color: var(--muted); font-style: italic;
}
