#bpp { --bpp-accent: #075caa; color: #203348; font-family: sans-serif; font-size: 15px; line-height: 1.6; }
/* One stacking context puts launcher, switcher and panel below the active overlay. */
#bpp.bpp-obscured { position: relative; z-index: 0; pointer-events: none; }
#bpp.bpp-obscured * { pointer-events: none !important; }
#bpp *, #bpp *::before, #bpp *::after { box-sizing: border-box; }
#bpp [hidden] { display: none !important; }
#bpp button { appearance: none; font: inherit; cursor: pointer; border: 1px solid #b4c1d0; border-radius: 5px; background: #fff; color: #203348; min-height: 44px; padding: 8px 12px; margin: 0; width: auto; }
#bpp button:focus-visible, #bpp a:focus-visible, #bpp select:focus-visible { outline: 3px solid var(--bpp-accent); outline-offset: 2px; }
#bpp .bpp-launch { position: fixed; bottom: 5em; right: 0; z-index: 100000; display: flex; align-items: center; padding: 5px; border: 1px solid #263238; border-radius: 3px 0 0 3px; background: rgba(0,0,0,.6); color: #fff; box-shadow: none; font-size: 16px; font-weight: bold; line-height: 1.6; }
#bpp .bpp-logo { display: block; width: 2.5rem; height: auto; padding: 0 5px 0 0; margin: 0; border: 0; }
#bpp .bpp-menu-cross { display: none; position: relative; width: 20px; height: 24px; }
#bpp .bpp-menu-cross::before, #bpp .bpp-menu-cross::after { content: ''; position: absolute; left: 9px; top: 2px; width: 2px; height: 20px; background: #e91e63; transform: rotate(45deg); }
#bpp .bpp-menu-cross::after { transform: rotate(-45deg); }
#bpp .bpp-launch[aria-expanded="true"] .bpp-menu-label { display: none; }
#bpp .bpp-launch[aria-expanded="true"] .bpp-menu-cross { display: block; }
#bpp .bpp-dialog { position: fixed; bottom: 8px; left: env(safe-area-inset-left, 0px); width: calc(35% + 8px); max-width: calc(100% - var(--bpp-rail-width, 80px) - 8px - env(safe-area-inset-left, 0px)); max-height: 60vh; max-height: 60dvh; background: white; border: 1px solid #bcc9d8; border-radius: 3px; box-shadow: 4px 4px 20px -8px #333; z-index: 100001; display: flex; flex-direction: column; overflow: hidden; }
#bpp .bpp-switcher { position: fixed; right: 0; bottom: calc(80px + var(--bpp-launch-height, 52px) + 8px); width: var(--bpp-rail-width, 80px); max-height: calc(100dvh - 80px - var(--bpp-launch-height, 52px) - 24px); overflow-y: auto; z-index: 100002; }
#bpp .bpp-dialog:not([hidden]) { animation: bpp-slide-in .3s ease; }
@keyframes bpp-slide-in { from { transform: translateX(calc(-100vw - 8px)); } to { transform: translateX(0); } }
#bpp .bpp-dialog.bpp-closing { animation: bpp-slide-out .3s ease forwards; pointer-events: none; }
@keyframes bpp-slide-out { from { transform: var(--bpp-exit-start, translateX(0)); } to { transform: translateX(calc(-100vw - 8px)); } }
#bpp .bpp-tabs { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#bpp .bpp-tabs button { white-space: normal; flex: 0 0 auto; width: 100%; min-width: 0; padding: 6px 4px; font-size: 13px; line-height: 1.4; border-radius: 3px 0 0 3px; }
#bpp .bpp-tabs [aria-selected="true"] { background: #e3f0ff; border-color: var(--bpp-accent); color: #075caa; }
#bpp .bpp-body { overflow-y: auto; overscroll-behavior: contain; padding: 6px; min-height: 0; }
#bpp .bpp-body ul { padding-left: 22px; margin: 0; }
#bpp .bpp-body a:not(:where(.benron-topic-navigation a)) { display: inline-block; padding: 7px 0; color: #075caa; }
#bpp [data-bpp-navigation] a:not(:where(.benron-topic-navigation a)) { color: #1a1a1a; }
#bpp .benron-topic-navigation { margin-top: 1rem; }
#bpp .bpp-body img { max-width: 100%; height: auto; }
#bpp [data-bpp-page-links] .wp-block-gallery { display: grid !important; grid-template-columns: repeat(var(--bpp-gallery-columns, 3), minmax(0, 1fr)); gap: 10px; margin: 0; }
#bpp [data-bpp-page-links] .wp-block-gallery figure { width: auto !important; margin: 0 !important; }
#bpp [data-bpp-page-links] .wp-block-gallery a { display: block; padding: 0; }
#bpp [data-bpp-page-links] .wp-block-gallery img { display: block; width: 100%; height: auto; border-radius: 8px; }
#bpp .benronMenu a { display: flex; align-items: center; gap: 8px; }
#bpp .benronMenu img { flex: 0 0 26px; width: 26px; height: 26px; object-fit: contain; }
#bpp .bpp-body .bpt-move-browser { margin: 0; }
#bpp .bpt-move-filter-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; }
#bpp .bpt-move-filter-label { padding-top: 0; }
#bpp .bpt-move-filters { padding: 10px; margin: 0 0 12px; }
#bpp .bpt-move-filters button[aria-pressed="true"] { border-color: #075caa; background: #e3f0ff; box-shadow: inset 0 0 0 2px #075caa; }
#bpp .bpt-move-types img { width: 26px; height: 26px; }
#bpp .bpp-result { position: sticky; bottom: 0; background: #075caa; color: white; width: 100%; }
#bpp .bpp-picker { width: 100%; min-height: 44px; margin-bottom: 12px; font: inherit; }
body.bpp-replaces-legacy .btn-menu, body.bpp-replaces-legacy .benkijinaimenu { display: none !important; }
.bpt-move-browser .bpp-inline-locked { position: relative; display: flow-root; }
.bpt-move-browser .bpp-inline-shade { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.58); border-radius: 6px; cursor: default; }
.bpt-move-browser .bpp-inline-shade p { margin: 0 !important; padding: 0 !important; color: #fff !important; text-align: center; font-size: 16px !important; font-weight: bold; line-height: 1.7 !important; }
@media (min-width: 600px) and (max-width: 959px) { #bpp .bpp-dialog { width: calc(50% + 8px); } }
@media (max-width: 599px) {
  #bpp .bpp-dialog { width: calc(100% - var(--bpp-rail-width, 80px) - 8px); }

}
@media (prefers-reduced-motion: reduce) { #bpp * { scroll-behavior: auto !important; } #bpp .bpp-dialog:not([hidden]) { animation: none; } }
