/* MEDSTERZ Study Notes — pre-practice presentation layer */
body.mpe-study-notes-open { overflow: hidden; }
.mpe-study-notes-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .58);
}
.mpe-study-notes-window {
  width: min(760px, 100%);
  max-height: min(86vh, 780px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}
.mpe-study-notes-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 20px;
  border-bottom: 1px solid #e8edf3;
}
.mpe-study-notes-header small {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}
.mpe-study-notes-header h2 {
  margin: 6px 0 6px;
  color: #163a5c;
  font-size: 27px;
}
.mpe-study-notes-header p {
  margin: 0;
  color: #718096;
}
.mpe-study-notes-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #52657a;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.mpe-study-notes-body {
  overflow: auto;
  padding: 20px 28px 10px;
}
.mpe-study-notes-section {
  margin: 0 0 18px;
  padding: 17px 18px;
  border: 1px solid #e5ebf2;
  border-radius: 15px;
  background: #f8fafc;
}
.mpe-study-notes-section h3 {
  margin: 0 0 9px;
  color: #1f3b56;
  font-size: 17px;
}
.mpe-study-notes-section ul {
  margin: 0;
  padding-left: 20px;
}
.mpe-study-notes-section li {
  margin: 7px 0;
  color: #52657a;
  line-height: 1.55;
}
.mpe-study-notes-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 28px 22px;
  border-top: 1px solid #e8edf3;
}
.mpe-study-notes-footer button {
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 11px;
  font-weight: 700;
  cursor: pointer;
}
.mpe-study-notes-skip {
  border: 1px solid #d8e0e8;
  background: #fff;
  color: #52657a;
}
.mpe-study-notes-start {
  border: 1px solid #163a5c;
  background: #163a5c;
  color: #fff;
}
@media (max-width: 600px) {
  .mpe-study-notes-overlay { padding: 10px; align-items: flex-end; }
  .mpe-study-notes-window { max-height: 92vh; border-radius: 20px 20px 14px 14px; }
  .mpe-study-notes-header { padding: 21px 20px 17px; }
  .mpe-study-notes-header h2 { font-size: 23px; }
  .mpe-study-notes-body { padding: 15px 20px 6px; }
  .mpe-study-notes-footer { padding: 14px 20px 18px; flex-direction: column-reverse; }
  .mpe-study-notes-footer button { width: 100%; }
}

.mpe-study-note-q{display:inline-flex;align-items:center;justify-content:center;margin-right:9px;min-width:34px;padding:3px 7px;border-radius:999px;background:#eef3f9;color:#58708a;font-size:10px;font-weight:800;vertical-align:middle;letter-spacing:.02em}
.mpe-study-notes-section li{line-height:1.65}
.mpe-study-notes-body{max-height:58vh;overflow:auto}

/* v4.10.25 Study Notes v3 — summarized study-sheet treatment */
.mpe-study-notes-summary{display:flex;align-items:baseline;gap:10px;margin:0 0 16px;padding:12px 15px;border-radius:12px;background:#eef4fb;color:#52657a;line-height:1.45}
.mpe-study-notes-summary strong{color:#1f3b56;white-space:nowrap}
.mpe-study-notes-summary span{font-size:13px}
.mpe-study-notes-section ul{padding-left:21px}
.mpe-study-notes-section li{margin:9px 0;padding-left:2px}
.mpe-study-notes-references{margin:0 0 18px;padding:16px 18px;border-top:1px solid #e5ebf2;color:#64748b}
.mpe-study-notes-references h3{margin:0 0 8px;color:#1f3b56;font-size:16px}
.mpe-study-notes-references ul{margin:0;padding-left:20px}
.mpe-study-notes-references li{margin:5px 0;line-height:1.45}
@media (max-width:600px){.mpe-study-notes-summary{display:block}.mpe-study-notes-summary strong{display:block;margin-bottom:2px}}
.mpe-study-notes-subtitle{margin:14px 0 6px;color:#6a7c92;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.mpe-study-notes-section ul{margin-top:4px}.mpe-study-notes-section li{margin:8px 0;line-height:1.58}.mpe-study-notes-summary{margin-bottom:14px}


/* v4.10.30 — Rapid-revision formatting */
.mpe-study-notes-section h3{font-size:20px;line-height:1.25;margin-bottom:12px}
.mpe-study-notes-subtitle{margin-top:16px;font-size:12px;letter-spacing:.08em}
.mpe-study-notes-section ul{list-style:none;padding:0;margin:6px 0 0}
.mpe-study-notes-section li{position:relative;margin:10px 0;padding:0 0 0 24px;color:#52657a;line-height:1.55}
.mpe-study-notes-section li:before{content:'✓';position:absolute;left:0;top:.08em;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eef4fb;color:#315c84;font-size:11px;font-weight:800}
.mpe-study-point{display:block}
.mpe-study-point strong{color:#1f3b56;font-weight:800}
@media (max-width:600px){.mpe-study-notes-section li{margin:11px 0;line-height:1.52;padding-left:23px}.mpe-study-notes-section h3{font-size:18px}}


/* v4.10.41 — Admin-curated Study Notes content */
.mpe-study-notes-admin-content h2,.mpe-study-notes-admin-content h3,.mpe-study-notes-admin-content h4{color:#1f3b56;line-height:1.3;margin:18px 0 8px}
.mpe-study-notes-admin-content h3{font-size:20px}
.mpe-study-notes-admin-content h4{font-size:16px}
.mpe-study-notes-admin-content p{margin:9px 0;color:#52657a;line-height:1.58}
.mpe-study-notes-admin-content ul,.mpe-study-notes-admin-content ol{margin:8px 0 14px;padding-left:22px;color:#52657a}
.mpe-study-notes-admin-content li{margin:8px 0;line-height:1.55}
.mpe-study-notes-admin-content strong{color:#1f3b56}
.mpe-study-notes-admin-content blockquote{margin:12px 0;padding:10px 14px;border-left:3px solid #d8e5f2;background:#f8fafc;color:#52657a}


/* v4.10.58 — Screenshot branding watermark for the complete Study Notes body.
 * One light watermark layer covers the full scrollable notes area. The previous
 * per-section overlays were intentionally removed because they stacked multiple
 * watermark layers and made the notes harder to read. */
.mpe-study-notes-body{
  position:relative;
  background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MjAiIGhlaWdodD0iMzAwIiB2aWV3Qm94PSIwIDAgNTIwIDMwMCI+PGcgdHJhbnNmb3JtPSJyb3RhdGUoLTI1IDI2MCAxNTApIj48dGV4dCB4PSIyNjAiIHk9IjE1OCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZm9udC1mYW1pbHk9IkFyaWFsLEhlbHZldGljYSxzYW5zLXNlcmlmIiBmb250LXNpemU9IjI4IiBmb250LXdlaWdodD0iNzAwIiBsZXR0ZXItc3BhY2luZz0iMiIgZmlsbD0iIzE2M2E1YyIgZmlsbC1vcGFjaXR5PSIwLjExIj5NRURTVEVSWi5DT008L3RleHQ+PC9nPjwvc3ZnPg==");
  background-repeat:repeat;
  background-position:center top;
  background-size:520px 300px;
}
