/* My Metaphysical Connect - LMS front-end styles */
.mmc-lms .wpsp-card-head { display:flex; align-items:center; justify-content:space-between; }
.mmc-lms-form { background:#f7fbfd; border:1px solid #e3edf2; border-radius:8px; padding:16px; margin-bottom:18px; }
.mmc-lms-row { margin-bottom:12px; }
.mmc-lms-row label { display:block; font-weight:600; margin-bottom:4px; }
.mmc-lms-form .wpsp-form-control { width:100%; }
.mmc-quiz-opts-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:12px; }
@media (max-width:600px){ .mmc-quiz-opts-grid { grid-template-columns:1fr; } }

.mmc-lms-msg { margin-left:10px; font-size:13px; }
.mmc-lms-msg.is-error { color:#c0392b; }
.mmc-lms-msg.is-ok { color:#1e824c; }

.mmc-lms-empty, .mmc-lms-hint { color:#7b8a94; font-style:italic; }

.mmc-lms-item { display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
	border:1px solid #e6edf1; border-radius:8px; padding:14px 16px; margin-bottom:12px; background:#fff; flex-wrap:wrap; }
.mmc-lms-item-main { flex:1 1 60%; min-width:240px; }
.mmc-lms-item-main h4 { margin:0 0 4px; }
.mmc-lms-meta { display:inline-block; font-size:12px; color:#5a6b75; background:#eef4f7; padding:2px 8px; border-radius:10px; }
.mmc-lms-desc { margin-top:8px; color:#3a4a53; }
.mmc-lms-item-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.mmc-lms-del { color:#c0392b; }

/* Quiz */
.mmc-quiz-take, .mmc-quiz-admin { flex-basis:100%; margin-top:12px; border-top:1px dashed #dbe6ec; padding-top:12px; }
.mmc-quiz-q { margin-bottom:14px; }
.mmc-quiz-opt { display:block; padding:6px 8px; border:1px solid #e6edf1; border-radius:6px; margin:4px 0; cursor:pointer; }
.mmc-quiz-opt input { margin-right:8px; }
.mmc-quiz-qrow { display:flex; justify-content:space-between; align-items:center; padding:6px 0; border-bottom:1px solid #f0f4f6; }
.mmc-quiz-lastscore { color:#1e824c; font-weight:600; margin-top:6px; }

/* Resources grid */
.mmc-lms-resources { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:14px; }
.mmc-res-card { display:flex; gap:12px; border:1px solid #e6edf1; border-radius:10px; padding:14px; background:#fff; }
.mmc-res-icon { font-size:30px; color:#2b7bb9; flex:0 0 auto; }
.mmc-res-body { flex:1 1 auto; }
.mmc-res-body h4 { margin:0 0 4px; }
.mmc-res-desc { font-size:13px; color:#4a5a63; margin:0 0 6px; }
.mmc-res-actions { display:flex; flex-direction:column; gap:8px; align-items:flex-end; justify-content:flex-start; }
.mmc-lms-attach .mmc-attach-sep { color:#c3d0d8; margin:0 4px; }

/* In-app viewer modal */
body.mmc-viewer-open { overflow:hidden; }
.mmc-viewer { position:fixed; inset:0; z-index:100000; display:flex; align-items:center; justify-content:center; }
.mmc-viewer-backdrop { position:absolute; inset:0; background:rgba(15,32,42,.72); }
.mmc-viewer-box { position:relative; background:#fff; border-radius:10px; width:min(1000px,94vw); max-height:92vh;
	display:flex; flex-direction:column; box-shadow:0 18px 50px rgba(0,0,0,.35); overflow:hidden; }
.mmc-viewer-head { display:flex; align-items:center; justify-content:space-between; gap:12px;
	padding:12px 16px; border-bottom:1px solid #e6edf1; background:#f7fbfd; }
.mmc-viewer-title { margin:0; font-size:16px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mmc-viewer-tools { display:flex; align-items:center; gap:8px; flex:0 0 auto; }
.mmc-viewer-close { font-size:20px; line-height:1; padding:4px 12px; }
.mmc-viewer-body { padding:0; background:#20303a; flex:1 1 auto; overflow:auto; display:flex; align-items:center; justify-content:center; min-height:320px; }
.mmc-viewer-media { max-width:100%; max-height:86vh; display:block; }
.mmc-viewer-frame { width:100%; height:82vh; border:0; background:#fff; }
@media (max-width:600px){
	.mmc-viewer-head { flex-wrap:wrap; }
	.mmc-viewer-frame { height:70vh; }
}

/* Policies & Handbooks section headings */
.mmc-hb-section{margin:18px 0 8px;padding-bottom:6px;border-bottom:1px solid #e5e7eb;font-size:16px;font-weight:600}
.mmc-hb-section:first-of-type{margin-top:4px}
