body.bk-modal-open{overflow:hidden!important}
/* Typing fields stay at 16px (Walt, Dec 2): smaller text makes an iPhone zoom the whole page in when the field is tapped, and the pop-up was left cut off. */
body.bk-modal-open input:not([type=checkbox]):not([type=radio]):not([type=file]),body.bk-modal-open textarea,body.bk-modal-open select{font-size:16px!important}
body.bk-modal-open:not(.bk-modal-ready) #liveApp{visibility:hidden!important}
#bk-overview-snapshot{position:fixed;inset:0;z-index:9990;overflow:hidden;pointer-events:none;padding:15px}
#bk-messages-shade{position:fixed;inset:0;z-index:9991;background:rgba(0,0,0,.66)}
body.bk-modal-open #liveApp{position:fixed!important;z-index:9992!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;width:min(93vw,660px)!important;height:min(68dvh,720px)!important;overflow:hidden!important;background:#fffaf3!important;border-radius:24px!important;padding:14px!important;box-sizing:border-box!important;box-shadow:0 16px 50px #0005!important}
body.bk-modal-open #liveApp.bk-feed-open{height:min(68dvh,720px)!important}
body.bk-modal-open #liveApp>.cf-shell{position:relative!important;inset:auto!important;width:100%!important;height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
#bk-modal-header{display:flex;align-items:center;gap:10px;flex:none;background:#fffaf3;padding:4px 4px 16px;color:#111;font-size:23px}
#bk-modal-header .bk-bubbles{display:inline-flex;align-items:center;color:#073c56}#bk-modal-header .bk-bubbles svg{width:42px;height:42px;stroke:#073c56;stroke-width:2.1;stroke-linejoin:round;fill:#fffaf3}
#bk-modal-header button{margin-left:auto;border:0;background:transparent;font-size:31px;color:#111;line-height:1;min-width:42px;min-height:42px;cursor:pointer}
body.bk-modal-open .cf-intro,body.bk-modal-open .cf-header{display:none!important}
body.bk-modal-open .cf-tabs{position:relative!important;top:auto!important;display:flex!important;flex:none!important;padding:0 0 14px!important;margin:0!important;background:transparent!important;gap:8px!important}
body.bk-modal-open .cf-tabs button{flex:1!important;min-width:0!important;background:#fffaf3!important;border:1px solid #9bbac5!important;border-radius:13px!important;color:#073c56!important;font-size:14px!important;font-weight:700!important;padding:10px 5px!important;min-height:40px!important}
body.bk-modal-open .cf-tabs button[aria-pressed=true]{background:#c9e1eb!important;border:2px solid #073c56!important}
body.bk-modal-open .dm-list{position:relative!important;flex:1!important;min-height:0!important;overflow:auto!important;padding:0!important;background:transparent!important}
body.bk-modal-open .dm-pinned{display:flex!important;align-items:center!important;gap:10px!important;padding:5px 0 10px!important;min-height:0!important;border-bottom:1px solid #cad2d1}
body.bk-modal-open .cf-pin-header{flex:none!important}
body.bk-modal-open .cf-pin-header .dm-edit{width:auto!important;min-height:36px!important;border:0!important;background:transparent!important;font-size:13px!important;padding:4px!important}
body.bk-modal-open .cf-pinned-avatars{display:flex!important;gap:9px!important;overflow-x:auto!important;min-width:0!important}
body.bk-modal-open .cf-pinned-avatars>button{width:55px!important;min-width:55px!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:2px!important;font-size:10px!important}
body.bk-modal-open .cf-pinned-avatars .u172-avatar{width:37px!important;height:37px!important;font-size:15px!important}
body.bk-modal-open .cf-inbox-tools{flex:none!important;width:min(63%,270px)!important;margin:10px 0!important;padding:0!important;min-height:40px!important}
body.bk-modal-open .cf-inbox-tools input{font-size:16px!important}
body.bk-modal-open .dm-row{border-radius:13px!important;background:#073c56!important;color:white!important;margin:0 0 8px!important;padding:5px!important;min-height:68px!important}
body.bk-modal-open .dm-row .u172-open-chat,body.bk-modal-open .dm-row .u172-inbox-copy strong,body.bk-modal-open .dm-row .u172-inbox-copy small{background:transparent!important;color:white!important}
body.bk-modal-open .dm-row .u172-open-chat{min-height:58px!important;padding:5px!important}
body.bk-modal-open .dm-row .u172-open-chat:after{display:none!important}
body.bk-modal-open .dm-row .u172-avatar{width:40px!important;height:40px!important}
body.bk-modal-open .cf-feed-list{flex:1!important;min-height:0!important;overflow:auto!important;padding:0!important}
@media(max-width:700px){body.bk-modal-open #liveApp{height:min(68dvh,720px)!important;padding:13px!important}body.bk-modal-open #liveApp.bk-feed-open{height:min(68dvh,720px)!important}}

/* Only the conversations scroll (Walt, Dec 1): the heading, tabs, pins and search stay put. */
body.bk-modal-open .dm-list{display:flex!important;flex-direction:column!important;overflow:hidden!important}
body.bk-modal-open .dm-list>*{flex:none!important}
body.bk-modal-open .dm-list>#u8InboxRows{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
/* Unread count on each conversation (Walt, Dec 1: Molly's 5 unread were in her Dispatch Hub conversation, but the row only
   showed a tiny dot behind the picture). Same red count bubble as the home screen's Messages tile, on the picture's corner. */
body.bk-modal-open .dm-row{position:relative!important}
body.bk-modal-open .dm-row>[data-unread-thread]{position:absolute!important;left:42px!important;top:2px!important;z-index:3!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;background:none!important;border:0!important;pointer-events:none}
body.bk-modal-open .dm-row>[data-unread-thread]:empty{display:none!important}
body.bk-modal-open .dm-row .message-unread{display:inline-grid!important;place-items:center!important;min-width:24px!important;height:24px!important;padding:0 6px!important;box-sizing:border-box!important;border-radius:12px!important;background:#c0262d!important;color:#fff!important;font:800 13px/1 system-ui,-apple-system,sans-serif!important;border:2px solid #fff!important;box-shadow:0 1px 3px rgba(0,0,0,.3)!important}

/* Company Feed (Walt, Dec 1 night): the posts scroll under a fixed Share an update box; the photo button is a navy circle with a plus on the left, away from Post/Send. */
body.bk-modal-open .dm-list.cf-feed-list{overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
body.bk-modal-open .cf-feed-list>.cf-composer{position:sticky;top:0;z-index:3;box-shadow:0 -10px 0 #fffaf3}
body.bk-modal-open .cf-composer{grid-template-columns:44px minmax(0,1fr) auto!important;align-items:center!important}
body.bk-modal-open .cf-composer .cf-photo-control{order:-1;width:44px!important;height:44px!important;min-height:0!important;padding:0!important;border:2px solid #073c56!important;border-radius:50%!important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23073c56' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/22px no-repeat!important;box-sizing:border-box!important;display:flex!important;align-items:center;justify-content:center;box-shadow:none!important}
body.bk-modal-open .cf-composer .cf-photo-control>svg{display:none!important}
