/* Shared help respects the application's theme and remains optional. */
.bh-launcher { font-weight:700; font-size:18px; }
.bh-marker { display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; min-width:26px; margin:3px 5px; padding:0; border:1px solid var(--border); border-radius:50%; color:var(--text2); background:var(--surface2); font:600 13px/1 inherit; vertical-align:middle; cursor:help; }
.bh-marker:hover,.bh-marker:focus-visible { color:var(--accent); border-color:var(--accent); }
.bh-marker[hidden],.biotnea-help-off .bh-marker,.biotnea-help-off .dash-ops-help { display:none!important; }
.bh-popover { position:fixed; z-index:2147483000; box-sizing:border-box; width:340px; max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); overflow:auto; padding:18px; border:1px solid var(--border); border-radius:14px; background:var(--surface); color:var(--text); box-shadow:0 12px 40px #0004; font-size:14px; line-height:1.55; }
.bh-popover h2,.bh-popover strong { display:block; font-size:15px; font-weight:650; margin:0 0 10px; color:var(--text); overflow-wrap:anywhere; }
.bh-popover p { margin:10px 0; white-space:pre-line; overflow-wrap:anywhere; color:var(--text2); }
.bh-popover .bh-step { font-size:12px; color:var(--text2); margin-bottom:8px; }
.bh-setting { display:flex; align-items:center; gap:10px; cursor:pointer; min-height:44px; }
.bh-setting input { accent-color:var(--accent); width:20px; height:20px; }
.bh-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; }
.bh-actions button,.bh-profile { min-height:40px; padding:8px 12px; border-radius:8px; border:1px solid var(--border); color:var(--text); background:var(--surface2); cursor:pointer; }
.bh-actions .bh-primary { background:var(--accent); color:#fff; border-color:var(--accent); }
.bh-actions button:disabled { opacity:.45; cursor:default; }
.bh-popover button:focus-visible,.bh-marker:focus-visible,.bh-launcher:focus-visible,.bh-profile:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.bh-highlight { outline:3px solid var(--accent)!important; outline-offset:5px; scroll-margin:90px 20px; }
.bh-profile { display:block; width:100%; margin-bottom:12px; text-align:left; }
@media(max-width:640px) {
 .bh-launcher { position:fixed; bottom:20px; right:16px; z-index:100; width:44px; height:44px; border-radius:50%; background:var(--surface)!important; box-shadow:0 4px 16px #0003; }
 .bh-marker { width:32px; height:32px; }
 .bh-actions button { min-height:44px; }
}
@media print { .bh-marker,.bh-popover,.bh-launcher,.bh-profile { display:none!important; } }
/* Keep form assistance out of field rows and compact action groups. */
.bh-modal-help { flex:0 0 auto; width:36px; height:36px; border:1px solid var(--border); border-radius:50%; color:var(--text2); background:var(--surface); cursor:pointer; }
.modal-header > :first-child { min-width:0; flex:1 1 auto; }
.modal-header > button { flex-shrink:0; }
.bh-modal-help:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
