/* Facility Settings > Resources: the course editor preview (resources-settings.js). Shown, not usable. */
.rp svg { width: 18px; height: 18px; flex: none; }
.rp-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.rp-top h1 { margin: 6px 0 0; font-size: 30px; }
.rp-crumb { margin: 0; font-size: 14px; color: #6b7280; }
.rp-crumb span { color: #2563eb; }
.rp-acts { display: flex; gap: 10px; }
.rp-acts .st-btn, .rp-drop-b .st-btn { display: inline-flex; align-items: center; gap: 8px; }
.rp-grid { display: grid; grid-template-columns: minmax(270px, 0.8fr) minmax(0, 2fr); gap: 18px; align-items: start; pointer-events: none; user-select: none; }
.rp-side { display: grid; gap: 10px; padding: 0 0 14px; }
.rp-side-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 4px; }
.rp-side-h h2 { margin: 0; font-size: 19px; }
.rp-sq { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #e0e3e8; border-radius: 9px; }
.rp-sq svg { width: 16px; height: 16px; }
.rp-course { display: flex; align-items: center; gap: 12px; margin: 0 12px; padding: 12px 14px; border: 1px solid #e8eaee; border-radius: 12px; }
.rp-course b { flex: 1; }
.rp-li { color: #374151; display: inline-flex; }
.rp-li svg { width: 20px; height: 20px; }
.rp-dots { color: #6b7280; display: inline-flex; }
.rp-mod { margin: 0 12px; border: 1px solid #e8eaee; border-radius: 12px; overflow: hidden; }
.rp-mod-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.rp-mod-h svg { width: 16px; height: 16px; color: #374151; }
.rp-mod ul { list-style: none; margin: 0 8px; padding: 0; display: grid; }
.rp-l { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border-left: 3px solid transparent; }
.rp-l + .rp-l { border-top: 1px solid #f1f3f6; }
.rp-l.on { background: #eef3ff; border-left-color: #2563eb; }
.rp-l > div { flex: 1; display: grid; gap: 2px; }
.rp-l small { color: #6b7280; font-size: 13px; }
.rp-grip { color: #b6bcc6; letter-spacing: -2px; }
.rp-add { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px; padding: 10px; border: 1px solid #e0e3e8; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: #111; }
.rp-add svg { width: 14px; height: 14px; }
.rp-add-mod { margin: 0 12px; border: 0; background: #eef0f3; }
.rp-main { display: grid; gap: 18px; }
.rp-main-h { display: flex; align-items: center; justify-content: space-between; }
.rp-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #374151; }
.rp-draft { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: #f1f3f6; font-size: 13px; font-weight: 600; }
.rp-draft i { width: 8px; height: 8px; border-radius: 50%; background: #9aa1ac; }
.rp-main input, .rp-main textarea { width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1px solid #d9dde3; border-radius: 10px; font: inherit; font-size: 15px; background: #fff; resize: vertical; }
.rp-title { font-size: 17px !important; font-weight: 600; margin-top: -8px; }
.rp-main .st-f > span i { font-style: normal; color: #6b7280; font-weight: 400; }
.rp-drop { display: grid; justify-items: center; gap: 4px; padding: 28px 16px; border: 1.5px dashed #c9cfd8; border-radius: 14px; text-align: center; }
.rp-cloud svg { width: 38px; height: 38px; color: #374151; }
.rp-drop b { font-size: 17px; }
.rp-drop small { color: #6b7280; font-size: 13px; }
.rp-drop-b { display: flex; gap: 10px; margin-top: 10px; }
.rp-rte { border: 1px solid #d9dde3; border-radius: 10px; overflow: hidden; }
.rp-tools { display: flex; align-items: center; gap: 16px; padding: 9px 14px; border-bottom: 1px solid #eef0f3; color: #374151; font-size: 16px; }
.rp-tools em { font-style: italic; } .rp-tools u { text-decoration: underline; }
.rp-sep { width: 1px; height: 18px; background: #e0e3e8; }
.rp-rte textarea { border: 0 !important; border-radius: 0 !important; }
.rp-attach { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 13px; border: 1px solid #d9dde3; border-radius: 10px; font-size: 15px; }
.rp-attach svg { width: 16px; height: 16px; }
.rp-attach small { color: #6b7280; }
@media (max-width: 860px) { .rp-grid { grid-template-columns: 1fr; } .rp-top { flex-direction: column; align-items: flex-start; } }

/* The "Coming soon" note sits beside the title instead of a banner row of its own. */
.rp-soon { display: inline-block; margin-left: 10px; padding: 4px 10px; border-radius: 999px; background: #fff4e0; color: #9a5b00; font-size: 12px; font-weight: 700; vertical-align: middle; letter-spacing: 0; }
.rp-cols { display: grid; gap: 14px; }
.rp-col2 { display: grid; gap: 14px; align-content: start; }
/* The outline's rows never shrink to fit (that clipped Add Lesson); the outline scrolls instead. */
.rp-side { align-content: start; grid-auto-rows: max-content; }
.rp-l { padding: 8px 10px; }

/* Desktop: the page never scrolls (facility-ui.css app shell). Header in one row; the outline and the editor fill the rest and scroll inside themselves if needed.
   On a wide screen the editor puts the video beside the notes and attachments, so it all fits. */
@media (min-width: 1100px) {
  .cw-main:has(.rp) { display: flex; flex-direction: column; }
  .rp { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .rp-top { margin: 0 0 14px; align-items: center; }
  .rp-top h1 { font-size: 26px; margin-top: 2px; }
  .rp-grid { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .rp-side, .rp-main { min-height: 0; overflow-y: auto; }
  .rp-main { gap: 14px; align-content: start; }
  .rp-drop { padding: 20px 16px; }
  .rp-rte textarea { min-height: 84px; }
}
@media (min-width: 1400px) {
  .rp-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.rp-mod .rp-add { width: calc(100% - 16px); box-sizing: border-box; }

/* Lesson | Course settings switch: the only thing that works in the preview. */
.rp-view { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: #f1f3f6; pointer-events: auto; }
.rp-view button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; cursor: pointer; }
.rp-view button.on { background: #fff; color: #111; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.rp-grid .rp-main { pointer-events: none; }
.rp-grid .rp-main .rp-view { pointer-events: auto; }
.rp-pane { display: grid; gap: 14px; }
.rp-pane[hidden] { display: none; }
/* Course settings: one short column. */
.rp-cs { display: grid; gap: 16px; max-width: 560px; }
.rp-cs select { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid #d9dde3; border-radius: 10px; font: inherit; font-size: 15px; background: #fff; color: #111; }
.rp-hint { font-size: 13px; color: #6b7280; }
.rp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.rp-main input[type=radio], .rp-main input[type=checkbox] { width: 16px; height: 16px; min-height: 0; padding: 0; margin: 3px 0 0; border: 0; flex: none; }
