/* Keep modal interactions within the active window. */
html.staff-modal-locked,html.staff-modal-locked body{overflow:hidden!important;overscroll-behavior:none!important}
html.staff-modal-locked{scrollbar-gutter:stable}
[role="dialog"],[aria-modal="true"],dialog[open]{overscroll-behavior:contain}
/* Opening the online panel must not move or resize the toolbar. */
body .staff-v3 .staff-header-actions,body .staff-v3 .account-hub,body .staff-v3 .hub-anchor{align-items:center;flex-shrink:0;min-height:44px}
body .staff-v3 .hub-online,body .staff-v3 .hub-account{margin:0!important;translate:none!important;transform:none!important;vertical-align:middle;transition:background-color .16s,border-color .16s,color .16s!important}
body .staff-v3 .hub-online svg,body .staff-v3 .hub-account svg{flex:none;transform:none!important}
body .staff-v3 #staff-online-panel{position:fixed!important;right:auto!important;max-height:min(430px,calc(100dvh - 100px));overscroll-behavior:contain}
/* A conversation starts immediately beneath the toolbar, with an independent message scroll. */
body .staff-v3[data-staff-page=communications] .staff-page-heading{display:none!important}
body .staff-v3[data-staff-page=communications] .staff-page-content{margin-top:12px!important}
body .staff-v3[data-staff-page=communications] .messages-shell{height:calc(100dvh - 130px)!important;min-height:430px!important;align-items:stretch}
body .staff-v3[data-staff-page=communications] .messages-shell>section{min-height:0!important;height:100%;display:flex;flex-direction:column;overflow:hidden}
body .staff-v3[data-staff-page=communications] .messages-shell>aside{min-height:0!important}
body .staff-v3 .staff-bot-quick-bar{display:flex;gap:6px;align-items:center;overflow-x:auto;overscroll-behavior-inline:contain;white-space:nowrap;padding:0 0 10px;scrollbar-width:thin}
body .staff-v3 .staff-bot-quick-bar span{flex:none;color:#4d747b;font-size:11px;font-weight:700;margin-right:4px}
body .staff-v3 .staff-bot-quick-bar button{flex:none;border:1px solid #cde5e1;border-radius:8px;background:#f5faf8;padding:7px 10px;color:#0b6170;font-size:11px;font-weight:650}
body .staff-v3 .staff-bot-quick-bar button:hover{background:#e5f4f0;border-color:#90c9c3}
body .staff-v3 .staff-bot-quick-bar button:disabled{opacity:.45}
/* Standards: a concise library and a full-height document reading area. */
body .nik87-shell{inset:clamp(8px,2vh,22px) clamp(8px,2vw,28px)!important;border:1px solid #d8e6e5!important;border-radius:18px!important;background:#fff!important;box-shadow:0 32px 90px #092e3852!important}
body .nik87-header{padding:15px 22px!important;align-items:center;background:#fff!important;border-bottom:1px solid #dfebea!important}
body .nik87-header h2{font-size:20px!important;margin:4px 0 0!important;color:#17343d!important}
body .nik87-header p{margin:3px 0 0!important;font-size:12px!important}
body .nik87-header>div>span{padding:0!important;background:none!important;color:#087e8c!important;letter-spacing:.13em!important}
body .nik87-close{width:36px;height:36px;border-radius:9px;border:1px solid #d4e6e3;background:white;font-size:22px;line-height:1}
body .nik87-content{grid-template-columns:minmax(245px,285px) minmax(0,1fr)!important;overflow:hidden!important;min-height:0!important;height:100%!important}
body .nik87-side{padding:16px!important;background:#f7faf9!important;border-color:#dce9e7!important;overscroll-behavior:contain!important;scrollbar-width:thin}
body .staff-standard-list{margin:0 0 16px!important;gap:5px!important}
body .staff-standard-list button{padding:10px 12px!important;border-radius:9px!important;line-height:1.4}
body .staff-standard-list button[aria-current=true]{border-color:#a7d0cb!important;background:#e8f5f1!important;color:#125e69!important}
body .nik87-card{gap:9px!important}
body .nik87-card h3{font-size:14px!important;line-height:1.35!important;color:#183a42}
body .nik87-card p{font-size:11px!important;line-height:1.55!important}
body .nik87-card dl{gap:5px!important}
body .nik87-card dl div{padding:7px 9px!important;border-radius:8px!important}
body .nik87-card dt,body .nik87-card dd{font-size:10px!important}
body .nik87-viewer{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;overflow:hidden!important;background:#e8eef0!important}
body .nik87-viewer-top{padding:11px 16px!important;gap:12px!important}
body .nik87-viewer iframe{display:block!important;width:100%!important;height:100%!important;min-height:0!important}
@media(max-width:700px){body .staff-v3[data-staff-page=communications] .messages-shell{height:auto!important;min-height:0!important}body .staff-v3[data-staff-page=communications] .messages-shell>section{height:min(650px,calc(100dvh - 115px));min-height:390px!important}body .staff-v3[data-staff-page=communications] .messages-shell>aside{max-height:200px!important;min-height:150px!important}body .nik87-shell{inset:6px!important}body .nik87-content{display:flex!important;flex-direction:column!important;overflow:hidden!important}body .nik87-side{max-height:35%!important;flex:0 0 auto!important}body .nik87-viewer{min-height:0!important;flex:1 1 auto!important}body .nik87-viewer-top{flex-direction:row!important;align-items:center!important}body .nik87-open-new{max-width:120px!important}}
