/* RC-D5: foregrounds belong to their surface, including nested evidence. */
.cm-copyright{display:block;color:#d3e0ed;font:12px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:center;margin:14px 0;}
html body.cm-gateway-page .cm-flag{color:#71511d!important;}
html body.cm-gateway-page :is(.cm-lang-switch>span,.cm-status-tail,.cm-stat>span,.cm-footer>span){color:#c4d0df!important;}
html body #cmTrainBody .cm-train-question{color:#172b40!important;-webkit-text-fill-color:currentColor!important;}
html body #cmTrainBody :is(.cm-train-progress,.cm-train-stats span){background:#ece8dd!important;border-color:#9b9587!important;color:#253b50!important;}
html body #cmTrainBody :is(.cm-train-progress span,.cm-train-progress b,.cm-train-stats b){color:#644b16!important;-webkit-text-fill-color:currentColor!important;}
html body #cmTrainBody .cm-train-credit{color:#dce5ef!important;padding:10px 12px 38px;line-height:1.5;}
html body #cmTrainBody .cm-train-reveal :is(h3,p){color:#172b40!important;-webkit-text-fill-color:currentColor!important;}
html body #cmTrainBody :is(.cm-train-result,.cm-train-layer b){color:#644b16!important;}
/* Additional instances found in the rendered platform sweep. */
html body.cmc7 #app #dashBody .pi-study-entry{background:linear-gradient(135deg,#46586e,#26384c)!important;}
html body.cmc7 #app #dashBody .pi-study-entry :is(.tt,.ts),html body.cmc7 #app #dashBody .pi-study-entry::after{color:#f1f5fa!important;-webkit-text-fill-color:currentColor!important;}
html body.cmc7 #app #v-prog .stat :is(.k,.v){color:#233c52!important;-webkit-text-fill-color:currentColor!important;}
html body.cmc7 #app #v-prog .progress-settings>summary{color:#e8eff7!important;}
html body.cmc7 #app #v-prog :is(.segbar,.langsel) button{background:#102941!important;color:#e8eff7!important;-webkit-text-fill-color:currentColor!important;opacity:1!important;}
html body.cmc7 #app #v-prog :is(.segbar,.langsel) button.on{background:linear-gradient(135deg,#eddaaa,#cfad68)!important;color:#172b40!important;}
html body.cmc7 #app #v-prog [data-cm-click-id="cmh065"]{background:#fffaf0!important;color:#172b40!important;}
html body.cmc7 #app #v-hub .hub-search :is(span,small){color:#dce6f1!important;}
html body.cmc7 #app #v-hub .tile.t-slate{background:linear-gradient(135deg,#46586e,#26384c)!important;}
html body.cmc7 #app #v-hub .hub-result-icon{color:#735315!important;}
html body.cmc7 #app #v-casos .cm-case-search span{color:#344b60!important;}
html body.cmc7 #app #v-casos .cm-case-disclaimer{color:#c4d0df!important;}
/* Desktop shell is cream, unlike the phone shell. */
@media(min-width:1000px){
 html body.cmc7 #app #v-prog .progress-settings>summary,
 html body.cmc7 #app #v-prog .progress-settings>:is(.eyebrow,.note),
 html body.cmc7 #app #v-hub .hub-search :is(span,small),
 html body.cmc7 #app #v-casos .cm-case-disclaimer{color:#344b60!important;-webkit-text-fill-color:currentColor!important;}
}
/* The narrative panel is cream; its nested clinical cards remain dark. */
html body.cmc7 #app #scCorpo:has(#scNarra){--sc-txt:#172b40;--sc-txt-2:#344b60;--sc-txt-3:#435b70;--sc-line:#aeb9c2;--sc-line-2:#899aaa;--sc-crit:#9b2535;--sc-warn:#755614;--sc-gold:#755614;--sc-info:#284e77;color:#172b40;}
html body.cmc7 #app #scCorpo:has(#scNarra) :is(.sc-card:not(:has(#scNarra)),.sc-vitais,.sc-vt,.sc-q,.sc-prem){--sc-txt:#f1f5fa;--sc-txt-2:#c4d0df;--sc-txt-3:#b6cadd;--sc-line:#536b80;--sc-line-2:#70879c;--sc-crit:#ffaca4;--sc-warn:#f0cf7b;--sc-gold:#e7c766;--sc-info:#a3c6ed;color:#f1f5fa;}
html body.cmc7 #app #scCorpo:has(#scNarra) .sc-sec span{color:#344b60!important;-webkit-text-fill-color:currentColor!important;}
html body.cmc7 #app #scCorpo:has(#scNarra) .sc-sec .l{background:#aeb9c2!important;}
html body.cmc7 #app #scCorpo:has(#scNarra) .sc-rac{background:#fffaf0!important;border-color:#d5cbb8!important;border-left-color:#8c6c23!important;}
html body.cmc7 #app #scCorpo:has(#scNarra) .sc-rac :is(h4,p,.bd){color:#233c52!important;-webkit-text-fill-color:currentColor!important;}
html body.cmc7 #app #scCorpo:has(#scNarra) :is(.sc-naoperder,.sc-card.crit,.sc-vt.c){background:#f9e3df!important;color:#842333!important;--sc-txt:#842333;--sc-txt-2:#842333;--sc-txt-3:#842333;--sc-crit:#842333;}
html body.cmc7 #app #scCorpo:has(#scNarra) .sc-naoperder :is(.t,.i){color:#842333!important;-webkit-text-fill-color:currentColor!important;}
html body.cmc7 #app #scCorpo:has(#scNarra) .sc-naoperder .i::before{color:#842333!important;}
html body.cmc7 #app #scCorpo:has(#scNarra) :is(.sc-card.warn,.sc-vt.w){background:#f5e7c7!important;color:#644b16!important;--sc-txt:#644b16;--sc-txt-2:#644b16;--sc-txt-3:#644b16;--sc-warn:#644b16;}
/* Keep native page zoom available. */
html body .cm-zoomable-medical{touch-action:auto!important;}
/* Bound the compositor workload on touch devices: same bevel, no giant rotating mask. */
@media (any-pointer:coarse){
 html body .cm-sapphire-edge{padding:0!important;-webkit-mask:none!important;mask:none!important;border:1px solid #b8d7ef88!important;background:linear-gradient(120deg,#ffffff18,transparent 35%,#9fcaf010)!important;}
 html body .cm-sapphire-edge::before{display:none!important;animation:none!important;}
 html body :is(.sc-live,#cmc7Dock,#cmc7Toolbar,#cmc7Sidebar,.sheet-card,.cm-train-kicker){backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
}
html.cm-native-zoom body :is(.cm-sapphire-edge,.cm-sapphire-bevel){visibility:hidden!important;}
html.cm-native-zoom body,html.cm-native-zoom body *{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
