/* Dialogs sit above the masthead and progress bar, with independent scrolling. */
body.cm138 .cm140-info-modal,body.cm138 .cm-modal{z-index:2147483400}
body.cm138 #consultModal{z-index:2147483400;padding:16px}
#consultModal .quote-modal{max-width:520px;width:100%;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}
#consultModal .qm-head{position:sticky;top:0;z-index:1;flex-wrap:wrap;gap:12px}
.cm140-info-modal{height:100vh;height:100dvh;overflow:hidden}
.cm140-info-sheet{height:100%;max-height:100%;min-width:0;min-height:0}
.cm140-info-sheet>header{position:static;flex:0 0 auto;height:auto;min-height:0;padding:20px 24px;background:#fff;color:#263c30;overflow-wrap:anywhere}
.cm140-info-sheet>header>div{min-width:0}
.cm140-info-sheet>header h2{font-size:22px;line-height:1.45;word-break:keep-all;overflow-wrap:anywhere}
.cm140-info-content{flex:1 1 auto;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;padding:20px 24px 32px;scrollbar-gutter:stable}
.cm140-info-content p,.cm140-info-content li{font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.cm140-info-content .cm161-block{margin:0 0 18px;padding:20px}
.cm140-info-content .cm161-block:last-child{margin-bottom:0}
.cm140-info-content .cm161-photo{height:auto;max-height:none;object-fit:contain}
.cm140-info-content .cm161-source{font-size:12px;line-height:1.6}
.cm140-info-content .cm161-zoom-note{font-size:13px;line-height:1.6}
#cm138 .cm140-option-more{max-width:calc(100% - 80px);white-space:normal;line-height:1.5!important;overflow-wrap:anywhere}
#cm138 #ruleMsg:empty,#cm138 #sourceNote:empty{display:none}
.cm-modal[hidden]{display:none!important}
.cm-modal-panel{min-width:0;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);overscroll-behavior:contain}
.cm-modal-top{gap:16px}.cm-modal-top button{flex-shrink:0}
.cm163-panel{min-height:0;max-height:calc(100vh - 44px);max-height:calc(100dvh - 44px)}
.cm163-top{flex:0 0 auto;min-width:0;gap:16px}.cm163-top>div{min-width:0}.cm163-top h2{overflow-wrap:anywhere}
.cm163-body{min-height:0;overflow:auto;overscroll-behavior:contain}
#cm161-image-lightbox{z-index:2147483646;height:100vh;height:100dvh}
.cm161-lightbox-toolbar{height:auto;min-height:58px;flex:0 0 auto;flex-wrap:wrap;padding:10px 18px}
.cm161-lightbox-title{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.cm161-lightbox-actions{flex-shrink:0;flex-wrap:wrap}
.cm161-lightbox-scroll{min-height:0;min-width:0;display:block;overflow:auto;overscroll-behavior:contain}
.cm161-lightbox-image{margin:0 auto}
.cm166-lightbox-panel{max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);overflow:auto}
.cm166-lightbox img{max-height:calc(100vh - 160px);max-height:calc(100dvh - 160px)}
.cm166-lightbox p{overflow-wrap:anywhere}
@media(max-width:650px){
 .cm140-info-sheet{width:100%}.cm140-info-sheet>header{padding:16px}.cm140-info-sheet>header h2{font-size:20px}
 .cm140-info-content{padding:16px 16px 28px}.cm140-info-content .cm161-block{padding:16px}
 .cm161-lightbox-toolbar{padding:10px}.cm161-lightbox-title{display:block;font-size:13px}.cm161-lightbox-actions{justify-content:flex-end}
 .cm163-panel{height:100dvh;max-height:100dvh}
 .cm-modal{padding:12px}.cm-modal-panel{max-height:calc(100dvh - 24px);padding:20px}
}
