/* Copilot 4.0: high-contrast cards, simple responsive editorial layouts. */
.mrk40-copilot,.mrk40-library,.mrk40-studies,.mrk40-method{margin:2rem 0;padding:clamp(1rem,2.8vw,2rem);border-radius:18px;background:#f9f1df!important;color:#243329!important;border:1px solid #c9ad73}
.mrk40-copilot *,.mrk40-library *,.mrk40-studies *,.mrk40-method *{color:inherit}
.mrk40-copilot p,.mrk40-essay p,.mrk40-study p,.mrk40-method p{font-size:1rem;line-height:1.7;color:#26372e!important}
.mrk40-copilot h3,.mrk40-library h2,.mrk40-studies h2,.mrk40-method h2{color:#182b21!important}
.mrk40-grid,.mrk40-essay-grid,.mrk40-studies-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:1rem}
.mrk40-grid article,.mrk40-history-box,.mrk40-essay,.mrk40-study{background:#fffaf0!important;color:#26332b!important;border:1px solid #d6c2a2;border-radius:12px;padding:1.1rem}
.mrk40-grid article p,.mrk40-grid article h4,.mrk40-grid article li,.mrk40-grid article small{color:#26332b!important}
.mrk40-copilot article small,.mrk40-copilot article code,.mrk40-essay summary span{color:#5b4730!important;font-size:.86rem}
.mrk40-essay summary,.mrk40-study summary{cursor:pointer;display:flex;flex-direction:column;gap:.3rem;line-height:1.5;color:#182b21!important}
.mrk40-essay summary strong,.mrk40-study summary strong{font-size:1.08rem}
.mrk40-essay-inner,.mrk40-study>div{padding-top:1rem}
.mrk40-essay-cards,.mrk40-study-cards{display:flex;gap:.75rem;flex-wrap:wrap;margin:1rem 0}
.mrk40-essay-cards figure,.mrk40-study-cards figure{margin:0;flex:0 1 115px;min-width:90px;max-width:130px}
.mrk40-essay-cards img,.mrk40-study-cards img{max-width:100%;height:auto;display:block;border-radius:9px}
.mrk40-essay-cards figcaption,.mrk40-study-cards figcaption{font-size:.78rem;line-height:1.4;margin-top:.3rem}
.mrk40-grid article h4,.mrk40-essay h3,.mrk40-study h3{font-size:1.05rem;color:#213526!important}
.mrk40-history-controls{margin-top:1.3rem;padding:1rem;border:1px solid #d6c2a2;border-radius:12px;background:#fffaf0;color:#182b21}
.mrk40-history-controls label{display:flex;gap:.75rem;align-items:flex-start;cursor:pointer}
.mrk40-history-controls input[type=checkbox]{width:18px;height:18px;flex:none;margin-top:.23rem;accent-color:#24523e}
.mrk40-history-box{margin-top:1rem;min-height:2rem}
.mrk40-history-box[hidden]{display:none!important}
.mrk40-note{font-size:.9rem;color:#4d594b!important;line-height:1.6}
@media(max-width:650px){.mrk40-copilot,.mrk40-library,.mrk40-studies{padding:1rem}.mrk40-grid,.mrk40-essay-grid,.mrk40-studies-list{display:block}.mrk40-grid article,.mrk40-essay,.mrk40-study{margin:.8rem 0}}
