 

#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: 0.9rem; }
.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: 9px; font-size: 0.92rem;
}
 
.bofm-pick-list {
  margin-top: 8px; max-height: 320px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: 10px;
}
.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: 0.9rem; color: var(--text); cursor: pointer;
}
.bofm-pick-row:last-child { border-bottom: 0; }
.bofm-pick-row:hover { background: rgba(0,0,0,0.045); }
.bofm-pick-logged { color: var(--muted); }
.bofm-pick-current { font-weight: 700; background: rgba(79,126,248,0.10); }
.bofm-pick-none { padding: 10px 12px; font-size: 0.9rem; }

.bofm-sw { margin: 10px 0 4px; }

 
.bofm-article-wrap {
  position: relative; margin-top: 8px;
  border: 1px solid var(--border); border-radius: 14px;
  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: #fff;
  font-size: 15px; font-weight: 700; line-height: 1;
  padding: 13px 30px; border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.bofm-start-btn:hover { filter: brightness(1.08); }
.bofm-start-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bofm-start-btn[hidden] { display: none; }

.bofm-logcard { margin-top: 14px; }
.bofm-logactions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.bofm-logactions button { padding: 9px 18px; font-weight: 700; }
.bofm-logactions button[hidden] { display: none; }
.bofm-logmsg { font-size: 0.9rem; }

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