*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--background-all, #222);
  color: #e0e0e0;
  font-family: 'Inter', sans-serif;
  display: flex;
  height: 100vh;
  overflow: hidden;
}

p { margin: 0; }
button { background: none; border: none; cursor: pointer; color: inherit; font-family: inherit; }

#cr-sidebar {
  width: 300px;
  height: 100vh;
  background-color: #292929;
  border-right: 1px solid #333;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

#cr-sidebar-top {
  padding: 22px 24px 18px;
  border-bottom: 1px solid #333;
}

#cr-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
  margin-bottom: 18px;
  padding: 0;
}

#cr-back-btn:hover {
  color: #aaa;
  transition: color 0.15s ease;
}

#cr-back-btn svg {
  flex-shrink: 0;
}

#cr-course-title {
  font-size: 17px;
  color: #d0d0d0;
  margin-bottom: 6px;
  outline: none;
}

#cr-course-title h2:focus {
  outline: none;
  border: none;
}

#cr-course-title:empty::before {
  content: attr(data-placeholder);
  color: #444;
  pointer-events: none;
}

#cr-course-meta {
  font-size: 13px;
  color: #555;
}

#cr-progress-wrap {
  padding: 16px 24px;
  border-bottom: 1px solid #333;
  flex-direction: column;
  gap: 8px;
  display: none;
}

#cr-progress-bar {
  width: 100%;
  height: 3px;
  background: #373737;
}

#cr-course-progress-fill {
  height: 100%;
  width: 33%;
  background: #3d6ba0;
  transition: width 0.4s ease;
}

#cr-progress-label {
  font-size: 13px;
  color: #555;
}

#cr-modules {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 16px;
}

#cr-modules::-webkit-scrollbar { width: 6px; }
#cr-modules::-webkit-scrollbar-track { background: transparent; }
#cr-modules::-webkit-scrollbar-thumb { background: #2e2e2e; }
#cr-modules::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

.cr-module {
  margin-bottom: 2px;
}

.cr-module-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 12px 18px;
  cursor: pointer;
  user-select: none;
  background: #242424;
}

.cr-module-header:hover .cr-module-label { color: #888; }

.cr-module-label {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #787878;
  outline: none;
  cursor: pointer;
}

.cr-module-label[contenteditable="plaintext-only"] {
  cursor: text;
}

.cr-module-label:empty::before,
.cr-step-label:empty::before {
  content: attr(data-placeholder);
  color: #383838;
  pointer-events: none;
  font-style: italic;
}

.cr-module-count {
  font-size: 11px;
  color: #484848;
  font-weight: 400;
}

.cr-chevron {
  flex-shrink: 0;
  color: #484848;
  transition: transform 0.15s ease;
}

.cr-module.collapsed .cr-chevron { transform: rotate(-90deg); }
.cr-module.collapsed .cr-steps { display: none; }

.cr-steps {
  display: flex;
  flex-direction: column;
  padding: 0 0 4px;
}

.cr-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 20px;
  cursor: pointer;
  transition: background 0.1s;
}

.cr-step:hover { background: #272727; }
.cr-step.active { background: #2d2d2d; }

.cr-check {
  width: 12px;
  height: 12px;
  border: 1.5px solid #404040;
  background: transparent;
  flex-shrink: 0;
  position: relative;
  transition: background 0.12s, border-color 0.12s;
}

.cr-step.done .cr-check {
  background: var(--a-button-bg, #16457a);
  border-color: var(--a-button-bd, #195396);
}

.cr-step.done .cr-check::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 9px 9px;
}

.cr-step.active .cr-check {
  border-color: #404040;
}

.cr-step-label {
  flex: 1;
  font-size: 13px;
  color: #909090;
  line-height: 1.4;
  outline: none;
  cursor: pointer;
}

.cr-step-label[contenteditable="plaintext-only"] {
  cursor: text;
}

.cr-step.done .cr-step-label { color: #505050; }
.cr-step.active .cr-step-label { color: #e0e0e0; font-weight: 500; }

.cr-step-num { display: none; }

#cr-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#cr-banner {
  width: 100%;
  height: 200px;
  flex-shrink: 0;
  background-color: #0d2a4a;
  overflow: hidden;
  position: relative;

  position: relative;
  cursor: pointer;
}

#cr-banner-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

#cr-banner:hover #cr-banner-upload-overlay {
  opacity: 1;
}

#cr-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#cr-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(34,34,34,0.92) 100%);
}

#cr-scroll-area {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

#cr-content {
  padding: 36px 52px 48px;
  display: flex;
  flex-direction: column;
}

.show-modal {
  display: flex !important;
}

/* imported, to filter */
.style-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.style-panel-content {
  background: var(--background-all);
  border: 1px solid #444;
  padding: 20px;
  width: 400px;
  max-width: 90vw;
  color: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0; /* Remove gap to control spacing manually */
}

.style-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid #444;
  padding-bottom: 15px;
  order: 0; /* Header appears first */
}

.style-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.reset-style-btn, .close-style-btn {
  background: var(--background-all);
  color: #fff;
  border: 1px solid #444;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  height: 36px;
  min-width: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.reset-style-btn:hover, .close-style-btn:hover {
  background: #444;
}

.close-style-btn {
  width: 36px;
  padding: 6px;
  font-size: 18px;
  font-weight: bold;
}

.style-preview-container {
  margin-bottom: 20px;
  text-align: center;
  order: 1;
  width: 100%;
  display: block;
}

.style-preview-thought {
  position: relative !important;
  min-height: 0;
  width: auto;
  word-break: break-word;
  white-space: nowrap;
  background: #fff;
  border: 2px solid #666;
  padding: 6px 10px;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.2;
  color: #000;
  margin: 0 auto 10px auto;
  cursor: default;
  user-select: none;
  display: inline-block;
  max-width: 220px;
  min-width: 120px;
  text-align: center;
}

.style-text-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  align-items: center;
  justify-content: center;
  order: 2;
  width: 100%;
  flex-wrap: nowrap;
  clear: both;
}

.style-format-btn {
  background: var(--background-all);
  color: #fff;
  border: 1px solid #444;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.2s ease;
  height: 36px;
  min-width: 36px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.style-format-btn:hover {
  background: #444;
}

.style-format-btn.active {
  background: var(--background-all);
  color: #fff;
  border: 2px solid #fff;
}

.style-color-group {
  margin-bottom: 20px;
  order: 3;
  width: 100%;
  display: block;
  clear: both;
}

.style-color-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #fff;
}

.color-picker-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-display {
  width: 36px;
  height: 36px;
  border: 1px solid #444;
  cursor: pointer;
  transition: border-color 0.2s;
}

.color-picker-container input[type="color"] {
  position: absolute;
  visibility: hidden;
  width: 0;
  height: 0;
}

.color-picker-container input[type="text"] {
  background: var(--background-all);
  color: #fff;
  border: 1px solid #444;
  padding: 7px 12px;
  font-size: 15px;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
}

.color-picker-container input[type="text"]:focus {
  border: 2px solid #fff;
  outline: none;
  box-shadow: none;
}

.style-divider {
  height: 1px;
  background: #444;
  margin: 20px 0;
  order: 4;
  width: 100%;
  display: block;
  clear: both;
}

.style-pick-group {
  margin-bottom: 15px;
  order: 5;
  width: 100%;
  display: block;
  clear: both;
}

.pick-from-thought-btn {
  background: var(--background-all);
  color: #fff;
  border: 1px solid #444;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  height: 36px;
  min-width: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-bottom: 10px;
  width: 100%;
}

.pick-from-thought-btn:hover {
  background: #444;
}

.thought-id-input {
  background: var(--background-all);
  color: #fff;
  border: 1px solid #444;
  padding: 7px 12px;
  font-size: 15px;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.thought-id-input:focus {
  border: 2px solid #fff;
  outline: none;
  box-shadow: none;
}

.thought-id-input::placeholder {
  color: #888;
}


html body.picking-from-thought #canvas:hover {
  cursor: crosshair !important;
}

html body.picking-from-thought .thought[style*="cursor"],
html body.picking-from-thought #canvas[style*="cursor"],
html body.picking-from-thought #canvas.panning,
html body.picking-from-thought #canvas.panning:hover,
html body.picking-from-thought .thought:hover,
html body.picking-from-thought .thought[class*="thought"],
html body.picking-from-thought .thought.note-thought,
html body.picking-from-thought .thought.text-thought,
html body.picking-from-thought .thought.function-thought,
html body.picking-from-thought .thought.dragging,
html body.picking-from-thought div.thought,
html body.picking-from-thought div#canvas {
  cursor: crosshair !important;
}

.thought-id-input::placeholder {
  color: #999;
}

html body.picking-from-thought * {
  cursor: crosshair !important;
}
html body.picking-from-thought .thought,
html body.picking-from-thought #canvas {
  cursor: crosshair !important;
}

html body.picking-from-thought, 
html body.picking-from-thought *, 
html body.picking-from-thought *:before, 
html body.picking-from-thought *:after, 
html body.picking-from-thought *:hover,
html body.picking-from-thought *:active,
html body.picking-from-thought *:focus {
  cursor: crosshair !important;
}

.form-editor-question {
  margin-bottom: 20px;
}

.form-editor-question-input {
  background: var(--background-all);
  color: #fff;
  border: 1px solid #444;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: bold;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  line-height: 1.4;
}

.form-editor-question-input:focus {
  border: 2px solid #fff;
  outline: none;
  box-shadow: none;
}

.form-editor-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-editor-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100px;
}

.form-editor-option-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-editor-option-input {
  flex: 1;
  background: var(--background-all);
  color: #fff;
  border: 1px solid #444;
  padding: 7px 12px;
  font-size: 15px;
  transition: border-color 0.2s;
  outline: none;
  box-sizing: border-box;
  min-height: 20px;
}

.form-editor-option-input:focus {
  border: 2px solid #fff;
  outline: none;
  box-shadow: none;
}

.form-editor-option-remove {
  background: transparent;
  color: #fff;
  border: none;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  margin-left: 8px;
}

.form-editor-option-remove:hover {
  color: #ccc;
}

.form-editor-add-option {
  background: var(--background-all);
  color: #fff;
  border: 1px solid #444;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  height: 36px;
  min-width: 120px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  align-self: flex-start;
}

.form-editor-add-option:hover {
  background: #444;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  color: white;
  filter: invert(1);
}

input[type="date"]::-moz-calendar-picker-indicator {
  color: white;
  filter: invert(1);
}

input[type="time"]::-webkit-calendar-picker-indicator {
  color: white;
  filter: invert(1);
}

input[type="time"]::-moz-calendar-picker-indicator {
  color: white;
  filter: invert(1);
}

/* */

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #444; }
::-webkit-scrollbar-thumb:hover { background: #555; }

#cr-video-container {
  width: 100%;
}

#cr-video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 0;

  margin: 20px 0px;
}

#cr-video-placeholder:hover {
  background-color: #1b1b1b;
}

#cr-video-placeholder span {
  font-size: 13px;
  pointer-events: none;
  color: #3a3a3a;
}

#cr-video-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

#cr-video-placeholder:hover #cr-video-upload-overlay {
  opacity: 1;
}

#cr-video-wrapper {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;

  margin: 20px 0px;
}

#cr-video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

#cr-video-player::-webkit-media-controls {
  display: none !important;
}

#cr-video-player::-webkit-media-controls-enclosure {
  display: none !important;
}

#cr-video-controls-overlay {
  position: absolute;
  inset: 0;
}

#cr-video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 30px;
  z-index: 10;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

#cr-video-play-overlay:hover {
  opacity: 0.7;
  pointer-events: auto;
}

#cr-video-wrapper:hover #cr-video-play-overlay:hover {
  opacity: 1;
}

#cr-video-bottom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#cr-video-wrapper:fullscreen #cr-video-bottom-controls,
#cr-video-wrapper:-webkit-full-screen #cr-video-bottom-controls,
#cr-video-wrapper:-moz-full-screen #cr-video-bottom-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

#cr-video-wrapper:fullscreen #cr-video-play-overlay,
#cr-video-wrapper:-webkit-full-screen #cr-video-play-overlay,
#cr-video-wrapper:-moz-full-screen #cr-video-play-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

#cr-video-player:fullscreen {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
}

#cr-video-player:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
}

#cr-video-player:-moz-full-screen {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
}

#cr-video-player:-ms-fullscreen {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
}

#cr-video-remove-filled {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  cursor: pointer;
  z-index: 20;
  padding: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
}

#cr-video-wrapper:hover #cr-video-remove-filled {
  opacity: 1;
}

#cr-video-remove-filled:hover {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

#cr-video-remove {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  cursor: pointer;
  z-index: 20;
  padding: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
}

#cr-video-placeholder:hover #cr-video-remove {
  opacity: 1;
}

#cr-video-remove:hover {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Fields */

.cr-field {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.cr-field-body {
  margin-top: 20px;
}

.cr-field-body a {
  text-decoration: none;
  color: rgb(65, 112, 212);
}

#cr-field-content {
  margin-top: 0px;
}

#cr-field-title .cr-field-body {
  font-size: 30px;
  font-weight: 600;
  color: #d8d8d8;
  min-height: 48px;
}

#cr-field-content .cr-field-body {
  font-size: 16px;
  color: #c1c1c1;
  line-height: 1.8;
  min-height: 160px;
}

.cr-field-body:focus {
  outline: none;
}

.cr-field-body:empty::before {
  content: attr(data-placeholder);
  color: #444;
  pointer-events: none;
}

.cr-field-body:empty::before {
  content: attr(data-placeholder);
  color: #444;
  pointer-events: none;
}

#cr-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border: 1px solid #2a2a2a;
  background: #272727;
  flex-wrap: wrap;
}

#cr-editor-toolbar button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 13px;
  color: #888;
  background: none;
  border: 1px solid #3a3a3a;
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
}

#cr-editor-toolbar button:hover {
  color: #e0e0e0;
  background: #2e2e2e;
  border-color: #3a3a3a;
}

#cr-editor-toolbar button.active {
  color: #e0e0e0;
  background: #2e2e2e;
  border-color: rgb(107, 107, 107);
}

.cr-toolbar-sep {
  width: 1px;
  height: 18px;
  background: #333;
  margin: 0 4px;
  flex-shrink: 0;
}

#cr-fontsize-select {
  height: 28px;
  padding: 0 6px;
  font-size: 12px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  color: #888;
  cursor: pointer;
  font-family: inherit;
  outline: none;
}

#cr-fontsize-select:hover {
  color: #e0e0e0;
  border-color: #555;
}

#cr-color-picker {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #3a3a3a;
  background: #2a2a2a;
  cursor: pointer;
  flex-shrink: 0;
}

#cr-color-picker::-webkit-color-swatch-wrapper {
  padding: 3px;
}

#cr-color-picker::-webkit-color-swatch {
  border: none;
}

#cr-image-input {
  display: none;
}

#cr-desc-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 8px 0;
}

#cr-footer {
  border-top: 1px solid #2a2a2a;
  padding: 14px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background-color: #1e1e1e;
}

.cr-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  color: #aaa;
  background-color: var(--button-bg, #333);
  border: 1px solid var(--button-bd, #424242);
}

.cr-nav-btn:hover {
  background-color: #3a3a3a;
  color: #e0e0e0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cr-nav-btn.primary {
  background-color: var(--a-button-bg, #16457a);
  border-color: var(--a-button-bd, #195396);
  color: #e0e0e0;
}

.cr-nav-btn.primary:hover {
  background-color: #195396;
}

#cr-footer-step {
  font-size: 12px;
  color: #444;
}

.cr-add-lesson-btn {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #383838;
  border: 1px solid #484848;
  color: #aaa;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background 0.12s, color 0.12s;
}
.cr-add-lesson-btn:hover {
  background: #444;
  color: #ddd;
}

.cr-lesson-delete {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  color: #666;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
  padding: 0;
}
.cr-step:hover .cr-lesson-delete,
.cr-step.active .cr-lesson-delete {
  opacity: 1;
}
.cr-lesson-delete:hover {
  color: #505050;
  background-color: #383838;
  border: 1px solid #444444;
}

#cr-fab {
  position: fixed;
  top: 16px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1000;

  background-color: #222;
  border: 1px solid #424242;
  padding: 10px;
}

#cr-fab button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--button-bd, #424242);
  background: var(--button-bg, #333);
  color: #aaa;
  transition: background 0.15s, color 0.15s;
}

#cr-fab button:hover {
  background: #3a3a3a;
  color: #e0e0e0;
}

#cr-fab-publish {
  background: var(--a-button-bg, #16457a) !important;
  border-color: var(--a-button-bd, #195396) !important;
  color: #e0e0e0 !important;
}

#cr-fab-publish:hover {
  background: #195396 !important;
}

#cr-fab button#cr-fab-complete-lesson {
  display: none;
}

.crfcl-i {
  display: flex;
  justify-content: center;
  align-items: center;
}
