/* Position is computed from the real article text column, not the browser edge. */
.hbm-fsm { display: none; }
@media (min-width: 1100px) {
  .hbm-fsm {
    position: fixed; left: var(--hbm-fsm-left, -9999px); right: auto; top: 50%; transform: translateY(-50%) translateX(10px);
    z-index: 9998; width: 75px; height: 250px;
    display: flex; flex-direction: column; justify-content: space-around;
    align-items: center; padding: 7px 0; box-sizing: border-box;
    background: #fff; color: #000; border: 1px solid #000;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
  }
  .hbm-fsm.hbm-fsm--visible.hbm-fsm--positioned {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(-50%) translateX(0);
  }
  .hbm-fsm__link {
    cursor: pointer; border: 0; padding: 0; font: inherit;
    display: flex; width: 44px; height: 44px; justify-content: center;
    align-items: center; color: #000; background: #fff;
    border-radius: 4px; text-decoration: none;
  }
  .hbm-fsm__link:hover, .hbm-fsm__link:focus-visible { color: #fff; background: #000; }
  .hbm-fsm__link:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
  .hbm-fsm__link svg { width: 30px; height: 30px; display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .hbm-fsm { transition: none !important; }
}

.hbm-fsm__notice { position: fixed; right: 20px; bottom: 25px; z-index: 10000; padding: 9px 12px; max-width: 290px; font: 14px/1.4 system-ui,sans-serif; background: #fff; color: #000; border: 1px solid #222; box-shadow: 0 2px 9px #0003; display: none; }
.hbm-fsm__notice.is-visible { display: block; }
