/* Dedicated-page rules and iframe/embedded isolation. */
body.bms-plugin-fullscreen{margin:0!important;padding:0!important;overflow:hidden!important;background:#f6f4ee}
body.bms-plugin-fullscreen #bms-app{position:fixed;inset:0;width:100%;height:100vh;height:100dvh;max-width:none;margin:0;z-index:10;}
#bms-app{--bg:#f6f4ee;--paper:#fffefa;--muted-bg:#f0f0e9;--text:#1d2b29;--muted:#7e8881;--line:#e6e9df;--accent:#16745e;--accent-light:#e5f3ed;--red:#bf6250;--shadow:0 20px 42px #24382a12;--r:13px;--sidebar:266px;--ease:cubic-bezier(.16,1,.3,1);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);color-scheme:light;isolation:isolate;display:block;position:relative;max-width:100%;height:min(100dvh,960px);min-height:440px;overflow:hidden;background:var(--bg);font-size:14px;line-height:normal;text-align:left;}
#bms-app.bms-dark{color-scheme:dark}
#bms-app *,#bms-app *:before,#bms-app *:after{box-sizing:border-box}
#bms-app a{text-decoration:none}
#bms-app button,#bms-app input,#bms-app textarea,#bms-app select{font-family:inherit;letter-spacing:normal}
#bms-app .bms-shell,#bms-app .bms-auth{height:100%;}
#bms-app .bms-overlay,#bms-app .bms-detail-overlay{z-index:100;}
#bms-app .bms-toast-wrap{z-index:110;}
@media (max-width:850px){#bms-app .bms-sidebar{position:absolute}}

/* Research Desk within the active WordPress theme, preserving site header and navigation. */
body:has(#bms-app) { overflow-x:hidden; }
body:has(#bms-app) :is(.site-main,.site-content,.content-area,.entry-content,.page-content,.wp-block-post-content,.ast-container,.site-container,.container,.content-wrap,.inside-article,.inside-page,.wp-site-blocks main) { max-width:none; }
body:has(#bms-app) :is(.entry-content,.page-content,.wp-block-post-content) { width:100%; margin:0; padding:0; }
body:has(#bms-app) :is(.entry-header,.page-header,.entry-title,.post-title) { display:none; }
body:has(#bms-app) #bms-app { width:100%; max-width:none; height:calc(100dvh - var(--bms-top-offset, 100px)); min-height:440px; margin:0; border:0; }
body:has(#bms-app) #bms-app .bms-shell { min-height:0; }
