:root {
  --bg: #c4e4ff;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --ink: #173c35;
  --muted: #4f6b78;
  --line: #a8cde6;
  --accent: #c4e4ff;
  --accent-soft: #edf8ff;
  --accent-deep: #245d7c;
  --shadow: 0 22px 50px rgba(36, 93, 124, 0.12);
  --site-font: "Century Gothic", "Avenir Next", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--site-font);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 234, 189, 0.8), transparent 28%),
    linear-gradient(140deg, #f6ecdc 0%, #efe9de 45%, #f8f5ef 100%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fffdfa;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  padding: 30px;
  align-items: start;
}

.hero-copy h1,
.topbar h1,
.main-card h2,
.side-card h3 {
  margin: 0 0 10px;
  line-height: 1.04;
}

.hero-copy h1 {
  font-size: 3rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
}

.helper,
.hero-copy p,
.notice,
.decision-card p,
.side-block p,
.next-box p {
  color: var(--muted);
}

.notice {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #d7c8b7;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
}

.inset {
  padding: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.stack {
  display: grid;
  gap: 14px;
}

.stack.compact {
  gap: 10px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.topbar h1 {
  font-size: 2.7rem;
}

.progress-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.progress-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  text-align: left;
}

.progress-card span {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 4px;
}

.progress-card strong {
  display: block;
}

.progress-card.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}

.progress-card.is-done {
  border-color: #8db8b2;
}

.progress-card.is-clickable {
  cursor: pointer;
}

.progress-card:disabled {
  cursor: default;
  opacity: 1;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.7fr);
  gap: 22px;
  align-items: start;
}

.main-card,
.side-card {
  padding: 24px;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.source-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.source-upload {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 24px;
  border: 1px dashed var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}

.source-upload input {
  width: auto;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.source-upload span,
.source-file-list span,
.source-analysis span {
  color: var(--muted);
  font-size: 0.9rem;
}

.source-file-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.source-file-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.source-analysis {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
}

.source-analysis .illustration-loader {
  margin: 0 0 6px;
}

.source-proposal {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.source-proposal-list {
  display: grid;
  gap: 12px;
}

.source-proposal-section {
  display: grid;
  gap: 8px;
}

.source-error {
  margin: 16px 0 0;
  color: #a63222;
  font-weight: 700;
}

.source-warning {
  margin: 1rem 0;
  padding: .8rem 1rem;
  border-left: 3px solid #976d3c;
  background: #fbf7f1;
  color: #5e452a;
}

.decision-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(252, 247, 241, 0.9));
  text-align: left;
}

.decision-card.is-selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(215, 239, 232, 0.92), rgba(255, 255, 255, 0.92));
}

.decision-card span,
.summary-row span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
}

.decision-card strong,
.summary-row strong,
.next-box strong {
  display: block;
  margin-top: 4px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.subpanel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.subpanel.nested {
  margin-top: 0;
  background: rgba(255, 255, 255, 0.76);
}

.subpanel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.chip-row,
.action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action-row.compact {
  justify-content: flex-end;
}

.toggle-chip,
.primary,
.secondary,
.ghost {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.toggle-chip.is-selected,
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.secondary {
  background: #fffdf9;
}

.ghost {
  background: transparent;
}

.note-box,
.next-box {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.builder-stack {
  display: grid;
  gap: 14px;
}

.builder-stack.compact {
  gap: 12px;
}

.builder-section,
.builder-chapter {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.builder-heading span {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.builder-heading strong {
  display: block;
  margin-top: 3px;
}

.builder-readonly {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(246, 240, 230, 0.8);
  border: 1px solid var(--line);
}

.inline-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.inline-builder select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fffdfa;
  color: var(--ink);
}

.content-pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.content-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid #a6cfc4;
}

.pill-remove {
  width: auto;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  color: var(--accent-deep);
  font-size: 0.9rem;
  line-height: 1;
}

.upload-box {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px dashed var(--accent);
  border-radius: 18px;
  background: rgba(215, 239, 232, 0.6);
}

.file-list {
  display: grid;
  gap: 10px;
}

.file-row,
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.summary-card {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.side-card {
  display: grid;
  gap: 16px;
}

.side-block {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

.module-list,
.review-list {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.module-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.upload-box input {
  max-width: 100%;
}

.upload-box small {
  color: var(--muted);
}

.attached-file,
.review-section {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.attached-file {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
}

.attached-file strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.optional {
  color: var(--muted);
  font-size: 0.85rem;
}

.formation-view {
  align-content: start;
}

.course-outline {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.outline-module {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.outline-module.is-current {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.outline-section {
  display: grid;
  gap: 7px;
  padding-left: 10px;
  border-left: 2px solid #b8d7d0;
  font-size: 0.92rem;
}

.outline-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.outline-block {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #a6cfc4;
  color: var(--accent-deep);
  font-size: 0.76rem;
  cursor: grab;
}

.drag-handle {
  cursor: grab;
  color: var(--accent-deep);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[data-drop-block] {
  transition: border-color 160ms ease, transform 160ms ease;
}

[data-drop-block]:hover {
  border-color: var(--accent);
}

.learner-preview {
  background: #fff;
}

.learner-canvas {
  display: grid;
  gap: 28px;
  margin: 24px 0;
}

.learner-module {
  display: grid;
  gap: 10px;
}

.learner-module h3,
.learner-section h4 {
  margin: 0;
}

.learner-section {
  display: grid;
  gap: 14px;
}

.learner-block {
  display: grid;
  gap: 10px;
  padding: var(--block-padding, 18px);
  border: var(--block-border, 1px solid #e3e3e3);
  border-radius: var(--block-radius, 0);
  background: var(--block-background, #fff);
}

.learner-block > span {
  color: #5d5d5d;
  font-size: clamp(1.5rem, 1.7vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.learner-text {
  line-height: 1.6;
}

.text-size-2 { font-size: 0.85rem; }
.text-size-3 { font-size: 1rem; }
.text-size-4 { font-size: 1.25rem; }
.text-size-5 { font-size: 1.5rem; }
.learner-quote blockquote { font-size: 1.2em; }

.text-align-left { text-align: left; }
.text-align-center { text-align: center; }
.text-align-right { text-align: right; }
.text-align-justify { text-align: justify; }

.learner-text p,
.learner-mixed p,
.learner-callout p {
  margin: 0 0 1.1rem;
}

.learner-text p:last-child,
.learner-mixed p:last-child,
.learner-callout p:last-child {
  margin-bottom: 0;
}

.learner-text ul,
.learner-mixed ul,
.learner-callout ul {
  display: grid;
  gap: 0.55rem;
  margin: 0.35rem 0 1.1rem;
  padding-left: 1.4rem;
}

.learner-text ul:last-child,
.learner-mixed ul:last-child,
.learner-callout ul:last-child {
  margin-bottom: 0;
}

.learner-mixed {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: center;
  line-height: 1.6;
}

.learner-mixed.ratio-50-50 {
  grid-template-columns: 1fr 1fr;
}

.learner-mixed.ratio-66-34 {
  grid-template-columns: 2fr 1fr;
}

.learner-mixed.ratio-34-66 {
  grid-template-columns: 1fr 2fr;
}

.learner-mixed.image-right .learner-image,
.learner-mixed.image-right .media-placeholder {
  order: 2;
}

.learner-mixed.image-below {
  grid-template-columns: 1fr;
}

.learner-mixed.image-below .learner-image,
.learner-mixed.image-below .media-placeholder {
  order: 2;
  width: 100%;
}

.learner-mixed.image-right.ratio-66-34 {
  grid-template-columns: 1fr 2fr;
}

.learner-mixed.image-right.ratio-34-66 {
  grid-template-columns: 2fr 1fr;
}

.learner-mixed.image-right .media-placeholder {
  order: 2;
}

.media-placeholder,
.learner-media {
  display: grid;
  place-items: center;
  min-height: 100px;
  padding: 16px;
  border-radius: 10px;
  background: #f1f1f1;
  color: #555;
  text-align: center;
}

.learner-image {
  width: 100%;
  max-height: 420px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
}

.learner-video {
  width: 100%;
  max-height: 420px;
  border-radius: 10px;
  object-fit: contain;
  background: #f1f1f1;
}

.learner-document {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  width: min(100%, 420px);
  padding: 14px 16px;
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent-deep);
  text-decoration: none;
}

.learner-document span { grid-row: span 2; display: grid; place-items: center; min-width: 38px; min-height: 38px; background: var(--accent); color: var(--theme-primary-text, #fff); font-size: .7rem; font-weight: 800; }
.learner-document small { color: #66716d; }
.learner-document:hover { background: var(--accent-soft); }

.learner-media {
  gap: 7px;
}

.learner-quiz {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 10px;
  background: #f7faf9;
}

.learner-quiz label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 10px;
  border: 1px solid #d7e7e2;
  border-radius: 8px;
  box-sizing: border-box;
}

.learner-quiz label input {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin: 0;
}

.quiz-result {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
}

.quiz-result.is-success {
  background: #e6f5ec;
  color: #155b35;
}

.quiz-result.is-error {
  background: #fff0ec;
  color: #8a2d19;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.theme-option {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #d7e7e2;
  border-radius: 10px;
  background: #f7faf9;
}

.theme-option label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.theme-option input[type="color"] {
  width: 48px;
  min-height: 32px;
  padding: 2px;
}

.hex-color-control {
  display: grid;
  grid-template-columns: minmax(76px, 0.55fr) minmax(132px, 1fr);
  gap: 10px;
  align-items: end;
}

.hex-color-control label {
  display: grid;
  gap: 5px;
  color: var(--author-muted, #5f6b70);
  font-size: 0.78rem;
  font-weight: 700;
}

.hex-color-control input[type="color"] {
  width: 100%;
  min-height: 38px;
  padding: 2px;
}

.hex-color-control input[type="text"] {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  text-transform: uppercase;
}

.theme-stage {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  padding: 38px;
  background: var(--theme-bg, #fff);
}

.theme-preview.has-frame .theme-stage {
  border: 12px solid var(--theme-frame, #0f766e);
}

.theme-stage > :not(.theme-bar):not(.theme-logo) {
  position: relative;
  z-index: 1;
}

.theme-bar {
  position: absolute;
  z-index: 0;
}

.theme-top,
.theme-bottom {
  right: 0;
  left: 0;
  height: 28px;
}

.theme-top { top: 0; }
.theme-bottom { bottom: 0; }

.theme-left,
.theme-right {
  top: 0;
  bottom: 0;
  width: 28px;
}

.theme-left { left: 0; }
.theme-right { right: 0; }

.theme-logo {
  position: absolute;
  z-index: 2;
  top: 18px;
  width: 96px;
  max-width: calc(100% - 36px);
  max-height: 54px;
  object-fit: contain;
}

.theme-logo.logo-medium { width: 144px; max-height: 80px; }
.theme-logo.logo-large { width: 192px; max-height: 106px; }
.theme-logo.logo-xlarge { width: 240px; max-height: 132px; }

.theme-logo.top-left { left: 18px; }
.theme-logo.top-right { right: 18px; }

.theme-footer {
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1px solid rgba(32, 32, 32, 0.18);
  color: #58635f;
  font-size: 0.82rem;
}

.theme-color-sample {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.theme-color-sample span {
  display: block;
  width: 32px;
  height: 20px;
  background: var(--sample-color);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.theme-stage .primary {
  color: var(--theme-primary-text, #fff);
}

.ai-trigger {
  justify-self: start;
  border-color: var(--accent);
  color: var(--accent-deep);
}

.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 28, 30, 0.42);
}

.modal-card {
  width: min(620px, 100%);
  max-height: min(720px, 100%);
  overflow: auto;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--accent);
  box-shadow: 18px 18px 0 rgba(63, 119, 138, 0.17);
}

.ai-suggestion ul {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding-left: 22px;
}

.rich-field {
  display: grid;
  gap: 8px;
}

.field-label {
  font-weight: 700;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid #d7e7e2;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: #f7faf9;
}

.rich-toolbar button,
.rich-toolbar select {
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid #b8d5cc;
  border-radius: 6px;
  background: #fff;
  color: #184a3e;
  font: inherit;
}

.rich-toolbar button {
  cursor: pointer;
}

.rich-toolbar [data-rich-command="createLink"] {
  color: var(--accent-deep);
  text-decoration: underline;
}

.learner-canvas a,
.lms-scroll-main a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.rich-size-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #46645c;
  font-size: 0.88rem;
}

.rich-editor {
  min-height: 130px;
  padding: 14px;
  border: 1px solid #d7e7e2;
  border-radius: 0 0 9px 9px;
  background: #fff;
  line-height: 1.55;
  outline: none;
}

.rich-editor:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(63, 119, 138, 0.14);
}

.quiz-builder {
  display: grid;
  gap: 16px;
}

.quiz-question-editor,
.quiz-preview-question {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.quiz-options {
  display: grid;
  gap: 8px;
}

.quiz-question-editor > .ghost {
  justify-self: start;
}

.quiz-progress {
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quiz-navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.interactive-editor,.interactive-preview{display:grid;gap:12px}.interactive-item{display:grid;grid-template-columns:auto repeat(2,minmax(0,1fr));gap:10px;align-items:end;padding:12px;border:1px solid var(--line)}.flip-card,.accordion-item{min-height:90px;padding:16px;border:1px solid var(--accent);background:#fff;text-align:left}.flip-card.is-open{background:var(--accent-soft)}.accordion-item{display:grid;gap:8px}.matching label{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center}.matching-result{padding:12px;border:1px solid var(--line);text-align:center}.matching-result.is-success{border-color:var(--accent);background:var(--accent-soft)}.ordering-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}.ordering-list li{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid var(--line);background:#fff;cursor:grab}.ordering-list li:active{cursor:grabbing}.order-number{display:grid;place-items:center;width:28px;height:28px;background:var(--accent-soft);color:var(--accent);font-weight:700}
.flashcard-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px;border:1px solid var(--line)}.flashcard-editor>strong{grid-column:1/-1}.flash-face-editor{display:grid;gap:8px}.interactive-rich-field{grid-column:1/-1}.interactive-rich-editor{min-height:112px}.flashcards{grid-template-columns:repeat(var(--card-columns),minmax(0,1fr));perspective:1000px}.flip-card{display:block;min-height:180px;padding:0;overflow:hidden;aspect-ratio:1;border:1px solid var(--accent);background:#fff;color:var(--ink);perspective:1100px;text-align:center}.flip-card-inner{display:grid;min-height:100%;height:100%;transform-style:preserve-3d;transition:transform .52s cubic-bezier(.2,.72,.22,1)}.flip-card.is-open .flip-card-inner{transform:rotateY(180deg)}.flip-card-face{display:grid;grid-area:1/1;place-items:center;min-width:0;min-height:100%;padding:16px;backface-visibility:hidden;-webkit-backface-visibility:hidden}.flip-card-back{transform:rotateY(180deg);background:var(--accent-soft)}.flashcard-text{display:block;max-width:100%;line-height:1.45}.flashcard-text-front{text-align:center}.flashcard-text p{margin:0}.flashcard-text p+p{margin-top:.65rem}.flashcard-text ul{margin:.4rem 0 0;padding-left:1.2rem;text-align:left}.format-playing .flip-card{aspect-ratio:2.5/3.5}.flip-card img{width:100%;height:100%;object-fit:cover}@media(prefers-reduced-motion:reduce){.flip-card-inner{transition:none}}

.learner-quote{margin:0;padding:22px 28px;border-left:5px solid var(--quote-accent,var(--accent));background:var(--quote-background,var(--accent-soft))}.learner-quote blockquote{margin:0;font-size:1.2rem;line-height:1.55}.learner-quote figcaption{margin-top:14px;color:var(--muted);font-size:.9rem}.learner-callout{padding:18px 20px;border-left:5px solid var(--callout-accent,var(--accent));background:var(--callout-background,#f5f8f8)}.learner-callout.callout-tip{--callout-accent:#24755a;--callout-background:#eef8f1}.learner-callout.callout-warning{--callout-accent:#b65b23;--callout-background:#fff4eb}.tabs{gap:0;border:1px solid var(--line);background:#fff}.tab-list{display:flex;flex-wrap:wrap;border-bottom:1px solid var(--line)}.tab-button{padding:12px 16px;border:0;border-right:1px solid var(--line);background:#fff;color:var(--ink);font:inherit}.tab-button.is-active{background:var(--accent);color:var(--theme-primary-text)}.tab-panel{display:grid;gap:8px;padding:18px;min-height:94px}.tab-panel p{margin:0;line-height:1.6}.reveal-list{gap:8px}.reveal-item{border:1px solid var(--line);background:#fff}.reveal-item button{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;width:100%;padding:14px;border:0;background:#fff;color:var(--ink);text-align:left;font:inherit}.reveal-item button span{display:grid;place-items:center;width:26px;height:26px;background:var(--accent-soft);color:var(--accent);font-weight:700}.reveal-item button em{font-style:normal;color:var(--accent);font-size:.86rem}.reveal-item p{margin:0;padding:0 14px 14px 52px;line-height:1.6}.hotspot{gap:12px}.hotspot-stage{position:relative;display:grid;overflow:hidden;border:1px solid var(--line);background:#f4f5f4}.hotspot-stage img{display:block;width:100%;height:auto}.hotspot-marker{position:absolute;z-index:1;display:grid;place-items:center;width:32px;height:32px;padding:0;transform:translate(-50%,-50%);border:2px solid #fff;border-radius:50%;background:var(--accent);color:var(--theme-primary-text);font-weight:700}.hotspot-marker.is-active{outline:3px solid var(--accent-soft)}.hotspot-detail{display:grid;gap:6px;padding:15px 18px;border-left:4px solid var(--accent);background:var(--accent-soft)}.hotspot-detail span{line-height:1.55}.hotspot-editor .hotspot-item{grid-template-columns:auto minmax(0,1fr) minmax(0,1fr) 92px 92px}.quiz-options label span{display:flex;gap:7px;align-items:center;margin-top:8px;font-size:.88rem;color:var(--muted)}
.ai-action-row{display:flex;flex-wrap:wrap;gap:10px}.illustration-modal{width:min(980px,calc(100vw - 32px))}.illustration-style-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.illustration-style{display:grid;gap:8px;min-height:130px;padding:18px;border:1px solid var(--line);background:#fff;color:var(--ink);text-align:left;font:inherit}.illustration-style:hover,.illustration-candidate:hover{border-color:var(--accent);background:var(--accent-soft)}.illustration-style strong{font-size:1.05rem}.illustration-style span{line-height:1.45;color:var(--muted)}.illustration-candidates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}.illustration-candidate{display:grid;gap:10px;padding:0 0 14px;border:1px solid var(--line);background:#fff;color:var(--ink);font:inherit;text-align:left;overflow:hidden}.illustration-candidate img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;background:#f3f5f5}.illustration-candidate.format-square img{aspect-ratio:1}.illustration-candidate.format-portrait img{aspect-ratio:2/3}.illustration-candidate.format-landscape img{aspect-ratio:3/2}.illustration-candidate span{padding:0 14px;font-weight:700}.illustration-loader{width:42px;height:42px;margin:24px auto;border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:illustration-spin .8s linear infinite}@keyframes illustration-spin{to{transform:rotate(360deg)}}
.illustration-text-option{display:grid;grid-template-columns:auto minmax(0,1fr);gap:11px;align-items:start;margin-top:18px;padding:14px;border:1px solid var(--line);background:#fff;cursor:pointer}.illustration-text-option input{width:18px;height:18px;margin-top:2px;accent-color:var(--accent)}.illustration-text-option span{display:grid;gap:4px}.illustration-text-option small{color:var(--muted);line-height:1.45}.illustration-placement-options{display:grid;gap:12px;margin-top:22px;padding:18px;border:1px solid var(--accent);background:var(--accent-soft)}.illustration-placement-options>strong{font-size:1rem}.illustration-placement-options>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.illustration-placement-option{display:grid;gap:6px;min-height:102px;padding:14px;border:1px solid var(--line);background:#fff;color:var(--ink);font:inherit;text-align:left}.illustration-placement-option:hover,.illustration-placement-option.is-selected{border-color:var(--accent);background:#fff;box-shadow:inset 0 0 0 2px var(--accent)}.illustration-placement-option span{color:var(--muted);font-size:.9rem;line-height:1.4}
.illustration-source-preview{display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr);gap:16px;align-items:center;margin-top:18px;padding:16px;border:1px solid var(--line);background:#fff}.illustration-source-preview img{display:block;width:100%;max-height:220px;object-fit:contain;background:#f3f5f5}.illustration-source-preview strong{overflow-wrap:anywhere}.illustration-source-upload{margin-top:18px}
.illustration-mode-tabs{display:flex;margin:0 0 20px;border-bottom:1px solid var(--line)}.illustration-mode-tabs button{padding:12px 16px;border:0;border-bottom:3px solid transparent;background:#fff;color:var(--muted);font:inherit;font-weight:700}.illustration-mode-tabs button.is-selected{border-bottom-color:var(--accent);color:var(--ink)}
.illustration-brief-grid .illustration-style.is-selected{border-color:var(--accent);background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent)}.illustration-custom-prompt{display:grid;gap:8px;margin-top:18px}.illustration-custom-prompt textarea{min-height:140px;resize:vertical}.illustration-custom-prompt small{color:var(--muted);line-height:1.45}
.format-modal{width:min(1180px,calc(100vw - 32px))}.format-workspace{display:grid;grid-template-columns:minmax(290px,.9fr) minmax(0,1.1fr);gap:18px;margin-top:18px}.format-editor-panel,.format-preview-panel{display:grid;align-content:start;gap:13px;padding:18px;border:1px solid var(--line);background:#fff}.format-editor-panel>strong,.format-preview-panel>strong{color:var(--accent-deep);font-size:.84rem;letter-spacing:.04em;text-transform:uppercase}.format-editor-panel label{display:grid;gap:7px}.format-fields{display:grid;gap:12px}.format-rich-editor{min-height:140px;max-height:260px;overflow:auto}.format-preview{min-height:260px;padding:20px;border:1px solid var(--line);background:#fff}.format-preview .learner-quiz,.format-preview .interactive-preview{margin-top:0}
.block-preview-modal{width:min(860px,calc(100vw - 32px))}.block-preview-canvas{min-height:260px;margin-top:18px;padding:28px;border:1px solid var(--line);background:#fff}.block-preview-canvas .learner-quiz,.block-preview-canvas .interactive-preview{margin-top:0}
.template-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:16px 0;padding:14px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.template-row strong{margin-right:4px}.quality-list{display:grid;gap:10px;margin:18px 0}.quality-item{display:grid;grid-template-columns:120px 1fr auto;gap:12px;align-items:center;padding:13px 14px;border:1px solid var(--line);background:#fff}.quality-item strong{font-size:.82rem;text-transform:uppercase}.quality-error{border-left:4px solid #b65b23}.quality-warning{border-left:4px solid #9d7600}.quality-ok{padding:16px;border-left:4px solid #24755a;background:#eef8f1}.library-grid{display:grid;gap:12px;margin:18px 0}.library-card{display:grid;gap:9px;padding:18px;border:1px solid var(--line);background:#fff}.library-card>span{color:var(--muted);font-size:.9rem}.utility-workspace{grid-template-columns:minmax(0,1fr)}.outline-filter{display:grid;gap:6px;margin:14px 0}.outline-module{display:grid;gap:10px;padding:12px 0;border-top:1px solid var(--line)}.outline-module summary{cursor:pointer;font-weight:800}.lms-status{display:flex;justify-content:space-between;gap:12px;margin:14px 0;padding:12px 14px;border:1px solid var(--line);background:#fff;font-size:.9rem}.quiz-attempts{color:var(--muted);font-weight:700}

@media(max-width:720px){.hotspot-editor .hotspot-item{grid-template-columns:auto 1fr}.hotspot-marker{width:28px;height:28px}.tab-button{flex:1 1 auto}.learner-quote{padding:18px}.reveal-item p{padding-left:14px}.illustration-style-grid,.illustration-candidates,.illustration-placement-options>div,.illustration-source-preview,.format-workspace{grid-template-columns:1fr}.quality-item{grid-template-columns:1fr}.lms-status{display:grid}.template-row{align-items:stretch}}

.learner-image.appearance-framed,
.learner-video.appearance-framed,
.learner-audio.appearance-framed {
  border: 8px solid #fff;
  outline: 1px solid #c8dbe1;
}

.learner-image.appearance-shadow,
.learner-video.appearance-cinema {
  box-shadow: 14px 14px 0 #d9e8ed;
}

.learner-video.appearance-cinema {
  border: 8px solid #253d46;
}

.learner-audio.appearance-card {
  padding: 12px;
  background: #edf4f6;
  border-left: 5px solid var(--accent);
}

.learner-audio {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.block-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.block-actions label {
  margin: 0;
}

.block-actions select {
  min-width: 150px;
}

.lms-audio-player {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-sizing: border-box;
}

.lms-audio-player.appearance-framed {
  border: 8px solid #fff;
  outline: 1px solid var(--media-accent, var(--accent));
}

.lms-audio-player.appearance-card {
  border-left: 5px solid var(--media-accent, var(--accent));
  background: var(--media-accent-soft, var(--accent-soft));
}

.lms-audio-player audio {
  display: none;
}

.lms-audio-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 112px;
  padding: 9px 12px;
  border: 1px solid var(--media-accent, var(--accent));
  background: var(--media-accent, var(--accent));
  color: var(--media-primary-text, var(--theme-primary-text));
  font: inherit;
}

.lms-audio-toggle span {
  font-size: .75rem;
}

.lms-audio-player input[type="range"] {
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 0;
  background: linear-gradient(to right, var(--media-accent, var(--accent)) 0 var(--audio-progress, 0%), var(--line) var(--audio-progress, 0%) 100%);
  cursor: pointer;
}

.lms-audio-player input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--media-accent, var(--accent));
  box-shadow: 0 0 0 1px var(--media-accent, var(--accent));
}

.lms-audio-player input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--media-accent, var(--accent));
  box-shadow: 0 0 0 1px var(--media-accent, var(--accent));
}

.lms-audio-time {
  min-width: 94px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: .88rem;
  text-align: right;
}

@media (max-width: 620px) {
  .lms-audio-player {
    grid-template-columns: auto 1fr;
  }

  .lms-audio-time {
    grid-column: 2;
    text-align: left;
  }
}

.quiz-result.score-mode-circle,
.quiz-result.score-mode-gauge {
  width: 66.666%;
  margin-inline: auto;
  align-items: center;
}

.score-mode-circle .score-circle,
.score-mode-gauge .score-gauge {
  width: 100%;
}

.score-circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--score) * 1%), #dbe8ec 0);
}

.score-circle::before {
  content: "";
  position: absolute;
  width: 78px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
}

.score-circle strong {
  position: relative;
  z-index: 1;
  color: var(--accent-deep);
}

.score-gauge {
  position: relative;
  width: min(100%, 360px);
  height: 26px;
  overflow: hidden;
  background: #dbe8ec;
}

.score-gauge span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.score-gauge strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #173c35;
  font-size: 0.82rem;
}

.learner-text font[size="2"],
.learner-mixed font[size="2"] { font-size: 0.85em; }
.learner-text font[size="3"],
.learner-mixed font[size="3"] { font-size: 1em; }
.learner-text font[size="4"],
.learner-mixed font[size="4"] { font-size: 1.25em; }
.learner-text font[size="5"],
.learner-mixed font[size="5"] { font-size: 1.5em; }

.learner-quote font[size="2"],
.learner-callout font[size="2"] { font-size: 0.85em; }
.learner-quote font[size="3"],
.learner-callout font[size="3"] { font-size: 1em; }
.learner-quote font[size="4"],
.learner-callout font[size="4"] { font-size: 1.25em; }
.learner-quote font[size="5"],
.learner-callout font[size="5"] { font-size: 1.5em; }

.learner-quote blockquote { font-size: 1.2em; }
.learner-quote figcaption { font-size: 0.9em; }

/* The authoring workspace uses the product blue while course branding stays independent. */
body {
  background: var(--bg);
}

.panel,
.inset,
.notice,
.progress-card,
.progress-card.is-active,
.builder-section,
.builder-chapter,
.subpanel,
.summary-card,
.next-box,
.side-block,
.outline-module,
.theme-option {
  background: #fff;
  box-shadow: none;
}

.panel {
  border-color: #e3ebe8;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  min-height: 78px;
  margin: -28px -28px 0;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(36, 93, 124, 0.28);
  background: transparent;
}

.site-logo {
  width: 210px;
  height: 50px;
  object-fit: contain;
  object-position: left center;
}

.site-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.site-mark {
  display: block;
  width: clamp(42px, 4.2vw, 57px);
  height: clamp(42px, 4.2vw, 57px);
  flex: 0 0 auto;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.42));
}

.save-status {
  color: #63818b;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-title {
  margin: 0;
  color: #0a5491;
  font-family: var(--site-font);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  white-space: nowrap;
  text-align: left;
}

.site-account-name {
  color: #0a5491;
  font-family: var(--site-font);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  margin-left: auto;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.save-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  margin: 0 -28px 26px;
  padding: 7px 28px 0;
  background: transparent;
}

.save-action {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.save-action:hover,
.save-action:focus-visible {
  background: var(--accent-soft);
  outline: none;
}

/* The light primary blue needs dark text to remain accessible on filled actions. */
.primary,
.toggle-chip.is-selected {
  color: #173c35;
}

.progress-card.is-active {
  border-color: var(--accent);
  color: var(--accent-deep);
}

/* Flat authoring surfaces keep the product interface distinct from course templates. */
.panel,
.progress-card,
.decision-card,
.subpanel,
.note-box,
.next-box,
.builder-section,
.builder-chapter,
.summary-card,
.side-block,
.outline-module,
.theme-option,
.upload-box,
.attached-file,
.learner-block,
.learner-quiz,
.media-placeholder,
.learner-media,
.quiz-result,
.rich-toolbar,
.rich-editor,
.rich-toolbar button,
.rich-toolbar select {
  border-radius: 0;
}

input,
textarea,
select {
  border-radius: 0;
}

.inline-builder select {
  border-radius: 0;
}

button,
.toggle-chip,
.primary,
.secondary,
.ghost {
  border-radius: 0;
}

.header-actions button {
  position: relative;
  min-height: 34px;
  padding: 7px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #0a5491;
  font-size: 0.84rem;
  font-weight: 700;
}

.header-actions button:hover,
.header-actions button:focus-visible {
  border-bottom-color: var(--accent);
  color: #0a5491;
  outline: none;
}

.header-actions .secondary {
  color: #0a5491;
}

@media (max-width: 840px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
    margin: -18px -18px 0;
    padding: 14px 18px;
  }

  .site-title {
    text-align: left;
    font-size: 1rem;
    letter-spacing: 0.07em;
  }

  .site-account-name {
    font-size: 1rem;
    letter-spacing: 0.07em;
  }

  .site-logo {
    width: 148px;
    height: 42px;
  }

  .site-brand {
    gap: 9px;
  }

  .site-mark {
    width: 42px;
    height: 42px;
  }

  .save-status {
    font-size: 0.68rem;
  }

  .header-actions {
    flex-basis: 100%;
    justify-content: flex-end;
  }

  .save-status-row {
    margin: 0 -18px 20px;
    padding: 7px 18px 0;
  }
}

@media (max-width: 1040px) {
  .hero,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .progress-strip,
  .decision-grid,
  .form-grid.two-columns,
  .asset-grid,
  .theme-options {
    grid-template-columns: 1fr;
  }

  .subpanel-head,
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .action-row.compact {
    justify-content: flex-start;
  }

  .attached-file {
    grid-template-columns: 1fr;
  }

  .learner-mixed {
    grid-template-columns: 1fr;
  }

  .learner-mixed.image-right .media-placeholder {
    order: initial;
  }

  .learner-mixed.image-right .learner-image {
    order: initial;
  }
}

@media (max-width: 720px) {
  .shell {
    padding: 18px;
  }

  .hero-copy h1,
  .topbar h1 {
    font-size: 2.2rem;
  }

  .main-card,
  .side-card,
  .hero {
    padding: 20px;
  }
}

/* Functional UX mockup: a calm authoring canvas with a persistent course plan. */
:root { --author-canvas:#f5fbff; --author-ink:#0a5491; --author-muted:#0a5491; --author-line:#a8cde6; --author-tint:#edf8ff; --author-accent:#0a5491; }
.shell { max-width:min(96vw, 1880px); }
.author-journey{display:flex;align-items:center;justify-content:space-between;gap:28px;margin:0 0 24px;padding:15px 0;border-top:1px solid var(--author-line);border-bottom:1px solid var(--author-line)}
.journey-copy{display:grid;flex:0 0 auto;gap:3px;color:var(--author-muted);font-size:.74rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase}.journey-copy strong{color:var(--author-ink);font-size:.95rem;letter-spacing:0}
.progress-strip{display:flex;flex:1;justify-content:flex-end;gap:0;margin:0}.progress-card{display:grid;grid-template-columns:auto auto;gap:8px;align-items:center;min-width:auto;padding:7px 14px;border:0;border-right:1px solid var(--author-line);background:transparent;color:var(--author-muted);text-align:left}.progress-card:last-child{border-right:0}.progress-card span{display:grid;place-items:center;width:22px;height:22px;margin:0;border:1px solid currentColor;border-radius:50%;font-size:.66rem}.progress-card strong{font-size:.78rem}.progress-card.is-active,.progress-card.is-done{background:transparent;color:var(--author-ink)}.progress-card.is-active span{border-color:var(--accent);background:var(--accent);color:#fff}.progress-card.is-done span{border-color:#4b8276;background:#e0f1ec;color:#255c50}
.workspace-context{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 20px}.workspace-context>div:first-child{max-width:720px}.workspace-kicker,.field-label{color:var(--accent-deep);font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.workspace-context h2{margin:5px 0 6px;color:var(--author-ink);font-size:clamp(1.45rem,2.5vw,2.15rem);line-height:1.08}.workspace-context p{margin:0;color:var(--author-muted);line-height:1.5}.workspace-context.is-setup-context{display:block;margin:22px 0 30px;text-align:center}.workspace-context.is-setup-context>div:first-child{max-width:980px;margin:0 auto}.workspace-context.is-setup-context h2{margin:0;color:#eabdf2;font-size:clamp(2.2rem,3.75vw,3.23rem);line-height:1.08}.workspace-context.is-setup-context p{margin-top:12px}.context-actions,.module-head-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.workspace-grid{grid-template-columns:minmax(0,1fr) minmax(285px,340px);gap:28px}.main-card,.side-card{padding:30px}.main-card{border-color:var(--author-line)}
.workspace-grid.utility-workspace{grid-template-columns:minmax(0,1fr)}
.panel-heading,.module-workspace-head,.quality-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;padding-bottom:22px;border-bottom:1px solid var(--author-line)}.panel-heading h2,.module-workspace-head h2,.quality-head h2{margin:0;color:var(--author-ink);font-size:1.65rem}.panel-heading p,.module-workspace-head p,.quality-head p{margin:8px 0 0}.step-marker{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--author-line);background:var(--author-tint);color:var(--accent-deep);font-size:.9rem;font-weight:800}
.setup-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(280px,.92fr);gap:30px;margin-top:26px}.setup-form{align-content:start}.creation-mode{padding:20px;border-left:3px solid var(--accent);background:var(--author-canvas)}.creation-mode>p{margin:7px 0 18px;color:var(--author-muted);font-size:.9rem;line-height:1.5}.creation-mode .source-mode-grid{grid-template-columns:1fr;margin:0}.decision-card{min-height:0;padding:17px;border:1px solid var(--author-line);background:#fff}.decision-card.is-selected{border-color:var(--accent);box-shadow:inset 4px 0 0 var(--accent)}.decision-card span{color:var(--accent-deep);font-size:.7rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.decision-card strong{margin-top:5px;color:var(--author-ink);font-size:1rem}
.panel-footer,.composer-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:28px;padding-top:20px;border-top:1px solid var(--author-line)}.panel-footer>span{max-width:520px;color:var(--author-muted);font-size:.86rem;line-height:1.45}
.module-tabs{display:flex;gap:8px;margin:20px 0;padding:0;border:0;overflow-x:auto}.module-tabs .toggle-chip{display:grid;flex:0 0 auto;gap:3px;min-width:150px;padding:11px 13px;border:1px solid var(--author-line);background:#fff;color:var(--author-muted);text-align:left;cursor:grab}.module-tabs .toggle-chip span{font-size:.68rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase}.module-tabs .toggle-chip strong{max-width:180px;overflow:hidden;color:inherit;font-size:.84rem;text-overflow:ellipsis;white-space:nowrap}.module-tabs .toggle-chip.is-selected{border-color:var(--accent);background:var(--author-tint);color:var(--author-ink)}.module-tabs .toggle-chip.is-dragging{opacity:.45;cursor:grabbing}.module-tabs .toggle-chip.is-drop-target{border-color:var(--accent-deep);box-shadow:inset 0 0 0 2px var(--accent);background:var(--author-tint)}
.module-title-editor{display:grid;gap:6px;max-width:520px;margin-top:14px;color:var(--author-muted);font-size:.76rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.module-title-editor input{color:var(--author-ink);font-size:1rem;font-weight:700;letter-spacing:normal;text-transform:none}
.template-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 22px;padding:15px 0;border-top:1px solid var(--author-line);border-bottom:1px solid var(--author-line)}.template-row>div:first-child{display:grid;gap:3px}.template-row>div:first-child strong{color:var(--author-ink);font-size:.84rem}.template-row>div:first-child span{color:var(--author-muted);font-size:.76rem}.template-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.template-actions .ghost,.context-actions .ghost,.module-head-actions .ghost,.composer-footer .ghost{padding:7px 10px;border-color:var(--author-line);color:var(--author-ink);font-size:.78rem}
.section-editor-list{display:grid;gap:18px}.section-editor{padding:20px;border-color:var(--author-line)}.section-editor>.subpanel-head{margin-bottom:16px;padding-bottom:13px;border-bottom:1px solid var(--author-line)}.section-editor>.subpanel-head>div{display:flex;align-items:center;gap:10px}.section-editor>.subpanel-head span{color:var(--accent-deep);font-size:.72rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase}.section-editor>.subpanel-head strong{color:var(--author-muted);font-size:.75rem}.builder-chapter{border-color:var(--author-line);border-left:3px solid #c9dfda}.builder-chapter:focus-within{border-left-color:var(--accent)}.inline-builder{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:14px;padding:14px;border:1px dashed #b9d2cc;background:var(--author-canvas)}.inline-builder>div{display:grid;flex:1;gap:5px}.inline-builder>div>span{color:var(--author-muted);font-size:.73rem;font-weight:700}.danger-action{color:#9a3e30!important}.composer-footer>div{display:flex;flex-wrap:wrap;gap:8px}
.formation-view{position:sticky;top:18px;align-self:start;max-height:calc(100vh - 36px);overflow:auto;border-top:3px solid var(--accent)}.outline-head{padding-bottom:16px;border-bottom:1px solid var(--author-line)}.outline-head h3{margin:2px 0 14px;color:var(--author-ink);font-size:1.12rem;line-height:1.25}.outline-stats{display:flex;gap:18px}.outline-stats span{display:grid;gap:1px;color:var(--author-ink);font-size:1.1rem;font-weight:800}.outline-stats small{color:var(--author-muted);font-size:.68rem;font-weight:700}.outline-filter{margin:16px 0}.outline-filter>span{color:var(--author-muted);font-size:.73rem;font-weight:700}.outline-module{padding:13px 0;border-color:var(--author-line)}.outline-module summary{display:grid;grid-template-columns:auto 1fr;gap:8px;color:var(--author-ink)}.outline-module summary span{color:var(--accent-deep);font-size:.72rem;font-weight:800}.outline-module.is-current summary{color:var(--accent-deep)}.outline-section{margin-top:11px;padding-left:16px;border-left:1px solid #d1e2de}.outline-section>span{color:var(--author-ink);font-size:.78rem;font-weight:700}.outline-blocks{margin-top:7px}.outline-block{padding:5px 7px;border-color:#d7e5e1;background:#fff;color:#55726c;font-size:.7rem}.outline-footer{margin-top:18px;padding-top:14px;border-top:1px solid var(--author-line)}.outline-footer span{color:var(--accent-deep);font-size:.7rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase}.outline-footer p{margin:5px 0 0;color:var(--author-muted);font-size:.78rem;line-height:1.45}
.formation-view{box-sizing:border-box;padding-inline:12px}
.quality-head{align-items:center}.readiness-badge{display:grid;min-width:112px;gap:4px;padding:10px 14px;border-left:3px solid var(--accent);background:var(--author-tint);text-align:right}.readiness-badge span{color:var(--author-muted);font-size:.7rem;font-weight:800;text-transform:uppercase}.readiness-badge strong{color:var(--author-ink);font-size:1.25rem}.readiness-badge.has-errors{border-left-color:#b65b23;background:#fff3ea}.readiness-badge.has-warnings{border-left-color:#aa7b00;background:#fff9e7}.summary-dashboard{display:grid;grid-template-columns:minmax(0,2fr) repeat(4,minmax(90px,1fr));gap:0;margin-top:24px;padding:0;border:1px solid var(--author-line)}.summary-dashboard .summary-row{display:grid;align-content:start;gap:7px;min-height:86px;padding:16px;border-right:1px solid var(--author-line)}.summary-dashboard .summary-row:last-child{border-right:0}.summary-dashboard .summary-row span{color:var(--author-muted);font-size:.7rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.summary-dashboard .summary-row strong{color:var(--author-ink);font-size:1rem}.export-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:22px;padding:20px;border-left:3px solid var(--accent);background:var(--author-canvas)}.export-panel>div:first-child{max-width:430px}.export-panel p{margin:5px 0 0;color:var(--author-muted);font-size:.86rem;line-height:1.45}
@media(max-width:1160px){.author-journey,.workspace-context,.template-row,.export-panel{align-items:flex-start;flex-direction:column}.progress-strip,.context-actions,.template-actions,.export-panel .action-row{justify-content:flex-start}.setup-layout{grid-template-columns:1fr}.formation-view{position:static;max-height:none}.summary-dashboard{grid-template-columns:repeat(3,minmax(0,1fr))}.summary-dashboard .summary-row:nth-child(3){border-right:0}}
@media(max-width:720px){.main-card,.side-card{padding:20px}.progress-strip{width:100%;overflow-x:auto;justify-content:flex-start}.progress-card{flex:0 0 auto}.panel-heading,.module-workspace-head,.quality-head,.panel-footer,.composer-footer,.inline-builder{align-items:stretch;flex-direction:column}.module-head-actions,.context-actions{justify-content:flex-start}.summary-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-dashboard .summary-row,.summary-dashboard .summary-row:nth-child(3){border-right:1px solid var(--author-line);border-bottom:1px solid var(--author-line)}.summary-dashboard .summary-row:nth-child(2),.summary-dashboard .summary-row:last-child{border-right:0}.summary-dashboard .summary-row:last-child,.summary-dashboard .summary-row:nth-last-child(2){border-bottom:0}}

.progress-card .progress-index {
  position: static;
  inset: auto;
  display: flex;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  transform: none;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
}
.progress-card.is-active span { color: #0a5491; }

.outline-block.is-static {
  border-color: #d7e5e1;
  background: #fff;
  color: #55726c;
}

.outline-block.is-interactive {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 800;
}

/* V2 starts with an explicit creation intent instead of exposing the whole editor. */
.creation-setup {
  max-width: 1180px;
  margin-inline: auto;
}

.creation-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 26px;
  border: 1px solid var(--author-line);
  background: var(--author-line);
}

.creation-choice-card {
  display: grid;
  align-content: start;
  min-height: 290px;
  padding: 26px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--author-ink);
  text-align: left;
  transition: background .16s ease, box-shadow .16s ease;
}

.creation-choice-card:hover,
.creation-choice-card:focus-visible {
  background: var(--author-canvas);
  outline: 0;
}

.creation-choice-card.is-selected {
  box-shadow: inset 0 4px 0 var(--accent);
  background: var(--author-tint);
}

.choice-number,
.choice-type {
  color: var(--accent-deep);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.choice-number { margin-bottom: 22px; }
.choice-type { margin-bottom: 8px; }
.creation-choice-card strong { font-size: 1.18rem; line-height: 1.2; }
.creation-choice-card p { margin: 12px 0 20px; color: var(--author-muted); font-size: .9rem; line-height: 1.55; }
.creation-choice-card small { align-self: end; color: var(--author-ink); font-size: .75rem; font-weight: 700; }

.creation-start-hint,
.creation-brief,
.original-ai-upload,
.original-ai-brief,
.original-ai-roadmap,
.original-ai-pending {
  margin-top: 24px;
  border: 1px solid var(--author-line);
  background: #fff;
}

.creation-start-hint {
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  color: var(--author-muted);
}

.creation-start-hint strong { color: var(--author-ink); }
.creation-brief { padding: 24px; }
.creation-brief-heading { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--author-line); }
.creation-brief-heading span,
.original-ai-summary span { display: block; color: var(--author-muted); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.creation-brief-heading strong { display: block; margin-top: 5px; color: var(--author-ink); font-size: 1.2rem; }
.creation-brief-heading p { margin: 8px 0 0; color: var(--author-muted); font-size: .9rem; line-height: 1.45; }
.creation-details { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--author-line); }
.creation-details summary { cursor: pointer; color: var(--author-ink); font-size: .84rem; font-weight: 750; }
.creation-details summary span { color: var(--author-muted); font-weight: 500; }
.creation-details .form-grid { margin-top: 18px; }

.original-ai-screen { max-width: 940px; margin-inline: auto; }
.original-ai-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; border: 1px solid var(--author-line); }
.original-ai-summary > div { min-height: 92px; padding: 16px; border-right: 1px solid var(--author-line); }
.original-ai-summary > div:last-child { border-right: 0; }
.original-ai-summary strong { display: block; margin-top: 8px; color: var(--author-ink); font-size: .9rem; line-height: 1.35; }
.original-ai-upload { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 22px; }
.original-ai-upload h3 { margin: 6px 0; color: var(--author-ink); font-size: 1.05rem; }
.original-ai-upload p { max-width: 540px; margin: 0; color: var(--author-muted); font-size: .88rem; line-height: 1.5; }
.original-ai-upload ul { width: 100%; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--author-line); list-style: none; }
.original-ai-upload li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--author-ink); font-size: .84rem; }
.original-ai-upload li small { color: var(--author-muted); }
.original-ai-brief,
.original-ai-roadmap,
.original-ai-pending { padding: 22px; }
.original-ai-brief p { margin: 9px 0 0; color: var(--author-ink); line-height: 1.55; white-space: pre-wrap; }
.original-ai-roadmap ol { display: grid; gap: 9px; margin: 14px 0 0; padding-left: 22px; color: var(--author-ink); line-height: 1.45; }
.original-ai-pending { border-left: 3px solid #777; background: #f5f5f5; }
.original-ai-pending strong { color: var(--author-ink); }
.original-ai-pending p { margin: 6px 0 0; color: var(--author-muted); font-size: .88rem; line-height: 1.5; }

@media (max-width: 850px) {
  .creation-choice-grid { grid-template-columns: 1fr; }
  .creation-choice-card { min-height: 0; }
  .original-ai-summary { grid-template-columns: 1fr; }
  .original-ai-summary > div { border-right: 0; border-bottom: 1px solid var(--author-line); }
  .original-ai-summary > div:last-child { border-bottom: 0; }
}

/* V2 visual workshop: a focused authoring canvas inspired by modern site builders. */
.visual-authoring {
  overflow: hidden;
  border: 1px solid var(--author-line, #d9e6e3);
  border-radius: 12px;
  background: #eaf1f0;
  box-shadow: 0 18px 42px rgba(23, 60, 53, .10);
}

.visual-authoring-header {
  align-items: center;
  min-height: 74px;
  padding: 15px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .65);
  background: linear-gradient(100deg, #dbece8 0%, #f5faf9 62%, #dbece8 100%);
}

.visual-authoring-header .eyebrow { font-size: .62rem; }
.visual-authoring-header h2 { margin: 3px 0; font-size: 1.13rem; }
.visual-authoring-header p { display: none; }
.visual-mode-switch { padding: 3px; border: 1px solid var(--author-line, #d9e6e3); border-radius: 7px; background: rgba(255, 255, 255, .8); }
.visual-mode-switch button { min-height: 32px; padding: 6px 11px; font-size: .76rem; }

.canvas-module-tabs {
  gap: 6px;
  min-height: 68px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--author-line, #d9e6e3);
  background: #fff;
}

.canvas-module-tabs > button {
  flex-basis: 166px;
  min-height: 46px;
  padding: 7px 10px;
  border-radius: 7px;
  background: #f9fbfb;
}

.canvas-module-tabs > button.is-active {
  box-shadow: inset 3px 0 0 var(--accent, #111), 0 2px 8px rgba(23, 60, 53, .07);
  background: var(--author-tint, #eef6f4);
}

.visual-authoring-body {
  grid-template-columns: 54px 266px minmax(0, 1fr);
  min-height: min(760px, calc(100vh - 210px));
  background: #eaf1f0;
}

.visual-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  background: #173c35;
}

.visual-rail-logo,
.visual-rail-item {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 7px;
  color: #eff8f6;
  font-size: .82rem;
  font-weight: 800;
}

.visual-rail-logo { margin-bottom: 8px; background: rgba(255, 255, 255, .16); }
.visual-rail-item { border-color: transparent; color: #a9c3bd; }
.visual-rail-item.is-active { background: var(--accent, #111); color: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .18); }

.visual-toolbox {
  padding: 16px 10px;
  border-right: 1px solid var(--author-line, #d9e6e3);
  background: #fff;
  overflow: auto;
}

.visual-toolbox-heading { padding: 3px 8px 15px; }
.visual-toolbox-heading strong { font-size: 1.08rem; }
.visual-toolbox section { gap: 3px; padding: 13px 0; }
.visual-toolbox section button { min-height: 35px; padding: 7px 8px; border-radius: 6px; font-size: .8rem; }
.visual-toolbox section button:hover { box-shadow: inset 3px 0 0 var(--accent, #111); }
.visual-toolbox .tool-icon { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 5px; background: var(--author-tint, #eef6f4); color: var(--accent-deep, #173c35); font-size: .72rem; font-weight: 800; }

.visual-canvas { display: flex; flex-direction: column; min-height: 0; background: #eaf1f0; }
.visual-canvas-head { min-height: 58px; padding: 11px 22px; border-bottom: 1px solid var(--author-line, #d9e6e3); background: rgba(255, 255, 255, .92); }
.visual-canvas-head > div:first-child { grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; }
.visual-canvas-head span { grid-column: 1; font-size: .62rem; }
.visual-canvas-head strong { grid-column: 2; grid-row: 1 / span 2; font-size: .96rem; }
.visual-canvas-head small { grid-column: 1; font-size: .7rem; }
.visual-canvas-actions .ghost { min-height: 32px; border-radius: 6px; font-size: .75rem; }

.source-page-nav,
.canvas-section-nav { padding: 9px 20px; background: #f7faf9; }
.source-document-notice { padding: 11px 20px; background: #f7faf9; }
.source-document-stack { gap: 22px; padding: 26px clamp(18px, 3vw, 48px) 56px; overflow: auto; }
.source-document-page { max-width: 1220px; border-radius: 8px; box-shadow: 0 14px 30px rgba(23, 60, 53, .12); }
.source-document-page > header { padding: 11px 14px; background: #fff; }
.source-document-artboard { padding: 12px; background: #eef3f2; }
.source-document-artboard img { border-radius: 4px; box-shadow: 0 5px 15px rgba(23, 60, 53, .09); }
.source-element-list { background: #fff; }
.source-element { border-radius: 6px; }

@media (max-width: 900px) {
  .visual-authoring-body { grid-template-columns: 46px minmax(0, 1fr); }
  .visual-rail { grid-row: 1 / span 2; }
  .visual-toolbox { grid-column: 2; }
  .visual-canvas { grid-column: 2; }
}

@media (max-width: 620px) {
  .visual-authoring { border-radius: 0; }
  .visual-authoring-body { grid-template-columns: 1fr; }
  .visual-rail { display: none; }
  .visual-toolbox,
  .visual-canvas { grid-column: 1; }
}

.builder-heading {
  position: relative;
  min-height: 38px;
  padding-right: 150px;
}

.builder-heading .block-type {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid #d7e5e1;
  border-radius: 0;
  background: #fff;
  color: #55726c;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.builder-heading .block-type.is-interactive {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.detected-images {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.detected-audios {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.detected-image-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

.detected-image-card img {
  display: block;
  width: 118px;
  height: 82px;
  object-fit: cover;
  background: #fff;
}

.detected-image-card > div {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.detected-audio-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

.detected-audio-card > div:last-child {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.detected-audio-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--accent-deep);
  border: 1px solid var(--accent);
  background: #fff;
  font-size: 1.5rem;
  font-weight: 800;
}

.detected-audio-card p {
  margin: 0;
  color: var(--author-ink);
  font-size: 0.86rem;
  line-height: 1.45;
}

.detected-audio-card audio {
  display: block;
  width: min(100%, 520px);
}

.detected-image-label {
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detected-image-card p {
  margin: 0;
  color: var(--author-ink);
  font-size: 0.86rem;
  line-height: 1.45;
}

.detected-image-modal {
  width: min(760px, calc(100vw - 32px));
}

.detected-image-modal-preview {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.detected-image-modal-preview img {
  display: block;
  width: 180px;
  height: 120px;
  object-fit: cover;
  background: #f3f5f5;
}

.detected-image-modal-preview p {
  margin: 0;
  color: var(--author-ink);
  line-height: 1.5;
}

.detected-image-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 560px) {
  .detected-image-card {
    grid-template-columns: 1fr;
  }

  .detected-audio-card {
    grid-template-columns: 1fr;
  }

  .detected-image-card img {
    width: 100%;
    height: 150px;
  }

  .detected-image-modal-preview,
  .detected-image-choice-grid {
    grid-template-columns: 1fr;
  }

  .detected-image-modal-preview img {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 560px) {
  .builder-heading {
    min-height: 64px;
    padding-right: 0;
  }

  .builder-heading .block-type {
    top: auto;
    bottom: 0;
    left: 0;
    right: auto;
  }
}

/* LMS preview mirrors the scroll-based player exported in the SCORM package. */
.lms-theme-canvas {
  position: relative;
  overflow: hidden;
  background: var(--lms-background, #fff);
}

.lms-theme-canvas.has-frame {
  border: 12px solid var(--lms-frame, #111);
}

.lms-theme-canvas.has-top-bar .lms-scroll-layout { border-top: 28px solid var(--lms-top, #111); }
.lms-theme-canvas.has-bottom-bar .lms-scroll-layout { border-bottom: 28px solid var(--lms-bottom, #111); }
.lms-theme-canvas.has-left-bar .lms-scroll-sidebar { border-left: 28px solid var(--lms-left, #111); }
.lms-theme-canvas.has-right-bar .lms-scroll-main { border-right: 28px solid var(--lms-right, #111); }

.lms-theme-canvas .theme-logo {
  z-index: 4;
}

.lms-theme-footer {
  padding: 12px 28px;
  border-top: 1px solid rgba(32, 32, 32, 0.18);
  background: var(--lms-background, #fff);
  color: #58635f;
  font-size: 0.82rem;
}

.lms-scroll-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  height: var(--viewport-fit-height, clamp(640px, calc(100vh - 150px), 1120px));
  min-height: 0;
  margin-top: 18px;
  border: 1px solid var(--author-line);
  background: #fff;
}

.lms-scroll-sidebar {
  overflow: auto;
  border-right: 1px solid var(--author-line);
  background: #fbfcfc;
}

.lms-course-summary {
  display: grid;
  gap: 9px;
  padding: 22px;
  background: var(--accent);
  color: var(--theme-primary-text);
}

.lms-course-summary span,
.lms-course-summary b {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lms-course-summary strong {
  font-size: 1.1rem;
  line-height: 1.25;
}

.lms-nav-module {
  display: grid;
  padding: 14px 0 7px;
  border-bottom: 1px solid var(--author-line);
}

.lms-nav-module > strong {
  padding: 0 16px 8px;
  color: var(--author-muted);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lms-nav-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px 16px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--author-ink);
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.3;
  text-align: left;
}

.lms-nav-item span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.62rem;
}

.lms-nav-item.is-active {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 800;
}

.lms-nav-item.is-complete span {
  border-color: #24755a;
  background: #24755a;
  color: #fff;
}

.lms-scroll-main {
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: auto;
}

.lms-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}.lms-preview-toolbar .eyebrow{margin:0}.lms-test.is-expanded{position:fixed;inset:0;z-index:1000;display:grid;grid-template-rows:auto minmax(0,1fr);box-sizing:border-box;margin:0;padding:22px 28px;overflow:hidden;border:0;background:#fff}.lms-test.is-expanded .lms-theme-canvas{display:flex;min-height:0;height:100%;flex-direction:column}.lms-test.is-expanded .lms-scroll-layout{flex:1 1 auto;height:auto;min-height:0;margin-top:14px;grid-template-columns:minmax(0,1fr)}.lms-test.is-expanded .lms-scroll-sidebar{display:none}.lms-test.is-expanded .lms-scroll-main{height:100%;max-height:none}.lms-test.is-expanded .lms-scroll-content{padding:42px clamp(32px,6vw,110px)}

.lms-scroll-main > header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--author-line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--author-ink);
  font-size: 0.82rem;
}

.lms-scroll-content {
  max-width: none;
  margin: 0;
  padding: 48px clamp(32px, 5vw, 80px) 36px;
}

.lms-scroll-content h2 {
  margin: 0 0 84px;
  color: var(--author-ink);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

.lms-kicker {
  margin: 0 0 10px;
  color: var(--author-muted);
  font-size: 0.82rem;
  font-style: italic;
}

.lms-scroll-content .learner-block {
  margin-bottom: 52px;
  padding: 0;
  border: 0;
  background: transparent;
}

.lms-section-status {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 14px 0 0;
  color: #5f6664;
  font-size: 0.78rem;
  line-height: 1.4;
}

.lms-section-status > span {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--lms-status-icon, #2b2b2b);
  color: var(--lms-status-icon-text, #ffffff);
  font-size: 0.67rem;
  font-weight: 800;
}

.lms-section-status.is-pending > span {
  background: #606060;
  color: #ffffff;
}

.lms-module-announcement {
  display: grid;
  min-height: min(620px, calc(100vh - 240px));
  place-content: center;
  justify-items: center;
  gap: 20px;
  padding: 56px 32px;
  text-align: center;
}

.lms-module-announcement > span {
  color: var(--module-title-color, var(--accent-deep));
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lms-module-announcement h2 {
  max-width: 900px;
  margin: 0;
  color: var(--module-title-color, var(--author-ink));
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.05;
}

@media (max-width: 760px) {
  .lms-scroll-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .lms-scroll-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--author-line);
  }

  .lms-nav-module {
    border-right: 1px solid var(--author-line);
  }

  .lms-scroll-main {
    max-height: none;
  }

  .lms-scroll-main > header {
    position: static;
    padding: 14px 18px;
  }

  .lms-scroll-content {
    padding: 32px 20px;
  }
}

.ai-pending-backdrop {
  z-index: 40;
}

.ai-pending-modal {
  display: grid;
  justify-items: center;
  width: min(460px, calc(100vw - 32px));
  padding: 36px 30px;
  text-align: center;
}

.ai-pending-modal h3 {
  margin: 14px 0 8px;
}

.ai-pending-modal p {
  margin: 0;
  line-height: 1.55;
}

.ai-pending-modal .helper {
  margin-top: 12px;
}

.ai-thinking-wheel {
  width: 58px;
  height: 58px;
  border: 4px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  border-radius: 50%;
  animation: ai-thinking-spin 0.8s linear infinite;
}

@keyframes ai-thinking-spin {
  to { transform: rotate(360deg); }
}

.illustration-color-control {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
}

.illustration-color-control input {
  width: 46px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
}

.illustration-color-control strong {
  min-width: 74px;
  color: var(--author-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.illustration-candidate.is-selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
  background: var(--accent-soft);
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--author-line);
  background: #fff;
}

.history-item div { display: grid; gap: 4px; }
.history-item span { color: var(--author-muted); font-size: .86rem; }

@media (max-width: 640px) {
  .history-item { align-items: stretch; flex-direction: column; }
}

/* Title colors are chosen once per course and inherited by each learner view. */
.theme-stage .learner-module > h3 { color: var(--module-title-color, #000); }
.theme-stage .learner-section > h4 { color: var(--section-title-color, #000); }
.theme-stage .learner-block > span { color: var(--block-title-color, #000); }

.lms-test .lms-nav-module > strong,
.lms-test .lms-scroll-main > header > span,
.lms-test .lms-kicker { color: var(--module-title-color, #000); }

.lms-test .lms-scroll-content h2 { color: var(--section-title-color, #000); }
.lms-test .learner-block > span { color: var(--block-title-color, #000); }

/* Learner-facing defaults stay neutral until the course receives a design color. */
.learner-canvas .learner-quiz { background: var(--accent-soft); }
.learner-canvas .learner-quiz label { border-color: var(--line); background: #fff; }
.learner-canvas .quiz-result.is-success { border-left: 3px solid #111; background: #e7e7e7; color: #111; }
.learner-canvas .quiz-result.is-error { border-left: 3px solid #555; background: #f2f2f2; color: #222; }
.learner-canvas .learner-callout.callout-tip { --callout-accent:#444; --callout-background:#f2f2f2; }
.learner-canvas .learner-callout.callout-warning { --callout-accent:#222; --callout-background:#e9e9e9; }
.learner-canvas .hotspot-stage { background: #f2f2f2; }
.learner-canvas .score-circle { background: conic-gradient(var(--accent) calc(var(--score) * 1%), #dedede 0); }
.learner-canvas .score-gauge { background: #dedede; }
.learner-canvas .score-gauge strong { color: #222; }
.learner-canvas .learner-image.appearance-framed,
.learner-canvas .learner-video.appearance-framed,
.learner-canvas .learner-audio.appearance-framed { outline-color: var(--line); }
.learner-canvas .learner-image.appearance-shadow,
.learner-canvas .learner-video.appearance-cinema { box-shadow: 14px 14px 0 var(--media-accent-soft, var(--accent-soft)); }
.learner-canvas .learner-video.appearance-cinema { border-color: var(--media-accent, var(--accent)); }
.learner-canvas .learner-audio.appearance-card { background: var(--accent-soft); }
.lms-test .lms-nav-item.is-complete span { border-color: #222; background: #222; }
.lms-test .lms-section-status.is-complete { border-left-color: transparent; background: transparent; }

/* The hotspot editor mirrors the learner image so authors position markers visually. */
.hotspot-editor { gap: 16px; }
.hotspot-editor-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 14px; border: 1px solid var(--line); background: #f8f8f8; }
.hotspot-editor-toolbar > div { display: grid; gap: 4px; }
.hotspot-editor-toolbar p { margin: 0; }
.hotspot-editor-toolbar label { min-width: 150px; }
.hotspot-editor-stage { position: relative; overflow: hidden; min-height: 180px; border: 1px solid var(--line); background: #f2f2f2; cursor: crosshair; }
.hotspot-editor-stage img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.hotspot-editor-stage.is-empty { display: grid; place-items: center; }
.hotspot-editor-empty { display: grid; gap: 6px; padding: 34px; color: var(--muted); text-align: center; }
.hotspot-editor-marker { position: absolute; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 50%; background: var(--accent); color: var(--theme-primary-text); font: inherit; font-weight: 800; cursor: grab; touch-action: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .24); }
.hotspot-editor-marker:active { cursor: grabbing; }
.hotspot-editor-marker:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
.hotspot-editor .hotspot-item { grid-template-columns: minmax(150px, .65fr) auto minmax(0, 1fr) minmax(0, 1.3fr); align-items: end; }
.hotspot-item > strong { display: flex; align-items: center; gap: 8px; }
.hotspot-item-index { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: .8rem; }
.hotspot-position { align-self: center; color: var(--muted); font-size: .84rem; white-space: nowrap; }
@media (max-width: 720px) { .hotspot-editor-toolbar, .hotspot-editor .hotspot-item { display: grid; grid-template-columns: 1fr; align-items: stretch; } .hotspot-editor-toolbar label { min-width: 0; } }

/* Visual authoring workspace: a site-builder inspired layer above the existing SCORM blocks. */
.workspace-grid.visual-workspace { display: block; }
.visual-authoring { border: 1px solid var(--author-line, #d9e6e3); background: #fff; }
.visual-authoring-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 28px 30px 24px; border-bottom: 1px solid var(--author-line, #d9e6e3); }
.visual-authoring-header h2 { margin: 5px 0 8px; color: var(--author-ink, #173c35); font-size: clamp(1.45rem, 2.5vw, 2.2rem); line-height: 1.08; }
.visual-authoring-header p { max-width: 760px; margin: 0; color: var(--author-muted, #6e8380); line-height: 1.5; }
.visual-mode-switch { display: flex; flex: 0 0 auto; border: 1px solid var(--author-line, #d9e6e3); background: #fff; }
.visual-mode-switch button { padding: 10px 13px; border: 0; border-left: 1px solid var(--author-line, #d9e6e3); background: #fff; color: var(--author-muted, #6e8380); font: inherit; font-size: .84rem; cursor: pointer; }
.visual-mode-switch button:first-child { border-left: 0; }
.visual-mode-switch button.is-active { background: var(--author-tint, #eef6f4); color: var(--author-ink, #173c35); font-weight: 800; }
.canvas-module-tabs { display: flex; gap: 8px; padding: 14px 30px; overflow-x: auto; border-bottom: 1px solid var(--author-line, #d9e6e3); background: #fbfcfc; }
.canvas-module-tabs > button { display: grid; flex: 0 0 180px; gap: 3px; padding: 10px 12px; border: 1px solid var(--author-line, #d9e6e3); background: #fff; color: var(--author-muted, #6e8380); text-align: left; font: inherit; cursor: pointer; }
.canvas-module-tabs > button span { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.canvas-module-tabs > button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.canvas-module-tabs > button.is-active { border-color: var(--accent, #111); box-shadow: inset 3px 0 0 var(--accent, #111); color: var(--author-ink, #173c35); }
.canvas-module-tabs > .canvas-add-module { display: block; flex-basis: auto; align-self: stretch; color: var(--author-ink, #173c35); font-weight: 800; text-align: center; }
.visual-authoring-body { display: grid; grid-template-columns: 245px minmax(0, 1fr); min-height: 680px; background: #f7faf9; }
.visual-toolbox { padding: 18px 14px; border-right: 1px solid var(--author-line, #d9e6e3); background: #fff; }
.visual-toolbox-heading { padding: 0 8px 17px; border-bottom: 1px solid var(--author-line, #d9e6e3); }
.visual-toolbox-heading span, .visual-toolbox h3 { color: var(--author-muted, #6e8380); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.visual-toolbox-heading strong { display: block; margin-top: 4px; color: var(--author-ink, #173c35); font-size: 1rem; }
.visual-toolbox-heading p, .visual-toolbox-tip p { margin: 5px 0 0; color: var(--author-muted, #6e8380); font-size: .78rem; line-height: 1.45; }
.visual-toolbox section { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--author-line, #d9e6e3); }
.visual-toolbox h3 { margin: 0 8px 6px; }
.visual-toolbox section button { display: flex; align-items: center; gap: 9px; padding: 8px; border: 1px solid transparent; background: transparent; color: var(--author-ink, #173c35); text-align: left; font: inherit; font-size: .84rem; cursor: pointer; }
.visual-toolbox section button:hover { border-color: var(--author-line, #d9e6e3); background: var(--author-tint, #eef6f4); }
.tool-icon { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--author-line, #d9e6e3); color: var(--accent, #111); font-weight: 800; }
.visual-toolbox-tip { margin: 18px 8px 0; padding: 12px; border-left: 3px solid var(--accent, #111); background: var(--author-tint, #eef6f4); }
.visual-toolbox-tip strong { color: var(--author-ink, #173c35); font-size: .82rem; }
.visual-canvas { min-width: 0; }
.visual-canvas-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 28px; border-bottom: 1px solid var(--author-line, #d9e6e3); background: #fff; }
.visual-canvas-head > div:first-child { display: grid; gap: 3px; }
.visual-canvas-head span { color: var(--author-muted, #6e8380); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.visual-canvas-head strong { color: var(--author-ink, #173c35); font-size: 1.1rem; }
.visual-canvas-head small { color: var(--author-muted, #6e8380); }
.visual-canvas-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.canvas-section-nav { display: flex; gap: 6px; padding: 12px 28px; overflow-x: auto; border-bottom: 1px solid var(--author-line, #d9e6e3); background: #fff; }
.canvas-section-nav button { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 7px; min-height: 34px; padding: 6px 10px; border: 1px solid var(--author-line, #d9e6e3); background: #fff; color: var(--author-muted, #6e8380); font: inherit; font-size: .78rem; cursor: pointer; }
.canvas-section-nav button span { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 50%; font-size: .67rem; }
.canvas-section-nav button.is-active { border-color: var(--accent, #111); background: var(--author-tint, #eef6f4); color: var(--author-ink, #173c35); font-weight: 800; }
.visual-page-stack { display: grid; gap: 24px; padding: 30px clamp(20px, 4vw, 58px) 64px; }
.visual-page { max-width: 980px; margin: 0 auto; border: 1px solid var(--author-line, #d9e6e3); background: #fff; box-shadow: 0 14px 28px rgba(23, 60, 53, .06); }
.visual-page.is-current { border-top: 3px solid var(--accent, #111); }
.visual-page > header { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--author-line, #d9e6e3); background: #fcfdfd; }
.visual-page > header > span { color: var(--author-muted, #6e8380); font-size: .67rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.visual-page > header input { min-width: 0; padding: 0; border: 0; background: transparent; color: var(--author-ink, #173c35); font: inherit; font-size: 1.18rem; font-weight: 800; }
.visual-page > header input:focus { outline: 2px solid var(--accent, #111); outline-offset: 4px; }
.visual-page > header small { color: var(--author-muted, #6e8380); font-size: .76rem; white-space: nowrap; }
.visual-page-content { display: grid; gap: 16px; padding: 24px; }
.canvas-block-card { position: relative; overflow: hidden; border: 1px solid #e3e8e7; background: #fff; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
.canvas-block-card:focus-visible, .canvas-block-card:hover, .canvas-block-card.is-selected { border-color: var(--accent, #111); box-shadow: 0 0 0 3px var(--author-tint, #eef6f4); }
.canvas-block-card > header { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 14px; border-bottom: 1px solid #edf0ef; background: #fbfcfc; }
.canvas-block-index { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--author-line, #d9e6e3); color: var(--author-muted, #6e8380); font-size: .68rem; font-weight: 800; }
.canvas-block-card header strong, .canvas-block-card header small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.canvas-block-card header strong { color: var(--author-ink, #173c35); font-size: .9rem; }
.canvas-block-card header small { margin-top: 3px; color: var(--author-muted, #6e8380); font-size: .7rem; }
.canvas-block-preview { padding: 18px; background: #fff; }
.canvas-block-preview .learner-quiz, .canvas-block-preview .interactive-preview { margin-top: 0; }
.canvas-empty { display: grid; gap: 5px; min-height: 160px; place-content: center; border: 1px dashed var(--author-line, #d9e6e3); color: var(--author-muted, #6e8380); text-align: center; }
.canvas-empty strong { color: var(--author-ink, #173c35); }
.canvas-context-menu { position: fixed; z-index: 1500; display: grid; width: 278px; max-height: min(460px, calc(100vh - 24px)); overflow-y: auto; border: 1px solid var(--author-line, #d9e6e3); background: #fff; box-shadow: 0 18px 42px rgba(23, 60, 53, .2); }
.canvas-context-menu > div { display: grid; gap: 3px; padding: 13px 14px; border-bottom: 1px solid var(--author-line, #d9e6e3); background: var(--author-tint, #eef6f4); }
.canvas-context-menu > div span { color: var(--author-muted, #6e8380); font-size: .67rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.canvas-context-menu > div strong { overflow: hidden; color: var(--author-ink, #173c35); text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.canvas-context-menu button, .canvas-menu-upload { padding: 11px 14px; border: 0; border-bottom: 1px solid #edf0ef; background: #fff; color: var(--author-ink, #173c35); text-align: left; font: inherit; font-size: .84rem; cursor: pointer; }
.canvas-context-menu button:hover, .canvas-menu-upload:hover { background: var(--author-tint, #eef6f4); }
.canvas-menu-upload { display: block; }
.canvas-menu-upload input { display: block; width: 100%; margin-top: 7px; color: var(--author-muted, #6e8380); font-size: .72rem; }
.canvas-context-menu .canvas-menu-close { color: var(--author-muted, #6e8380); }
.text-transform-modal { width: min(720px, calc(100vw - 32px)); }
.text-transform-result { min-height: 160px; max-height: 52vh; margin: 18px 0; padding: 18px; overflow: auto; border: 1px solid var(--line, #d9d9d9); background: #fff; line-height: 1.6; }
.source-document-notice, .source-preview-unavailable { display: grid; gap: 4px; padding: 14px 28px; border-bottom: 1px solid var(--author-line, #d9e6e3); background: var(--author-tint, #eef6f4); }
.source-document-notice strong, .source-preview-unavailable strong { color: var(--author-ink, #173c35); font-size: .85rem; }
.source-document-notice span, .source-preview-unavailable span { color: var(--author-muted, #6e8380); font-size: .78rem; line-height: 1.4; }
.source-preview-unavailable { border-left: 3px solid #8a6a25; background: #fff9eb; }
.source-document-stack { display: grid; gap: 28px; padding: 30px clamp(20px, 4vw, 58px) 64px; }
.source-document-page { max-width: 1120px; margin: 0 auto; border: 1px solid var(--author-line, #d9e6e3); background: #fff; box-shadow: 0 14px 28px rgba(23, 60, 53, .06); scroll-margin-top: 18px; }
.source-document-page > header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 18px; border-bottom: 1px solid var(--author-line, #d9e6e3); background: #fcfdfd; }
.source-document-page > header span { grid-column: 1; color: var(--author-muted, #6e8380); font-size: .67rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.source-document-page > header strong { grid-column: 1; overflow: hidden; color: var(--author-ink, #173c35); text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.source-document-page > header small { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--author-muted, #6e8380); font-size: .74rem; white-space: nowrap; }
.source-document-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: start; }
.source-document-artboard { position: relative; padding: 18px; background: #f4f6f6; }
.source-document-artboard img { display: block; width: 100%; height: auto; border: 1px solid #e3e8e7; background: #fff; }
.source-region-layer { position: absolute; inset: 18px; pointer-events: none; }
.source-region-marker { position: absolute; z-index: 1; min-width: 18px; min-height: 18px; border: 1px solid color-mix(in srgb, var(--accent, #111) 72%, transparent); background: color-mix(in srgb, var(--accent, #111) 12%, transparent); cursor: pointer; pointer-events: auto; }
.source-region-marker:hover, .source-region-marker:focus-visible, .source-region-marker.is-selected { border: 2px solid var(--accent, #111); background: color-mix(in srgb, var(--accent, #111) 22%, transparent); outline: none; }
.source-image-marker { position: absolute; z-index: 2; min-width: 22px; min-height: 22px; border: 2px dashed #9b651b; background: rgba(255, 222, 164, .12); cursor: pointer; pointer-events: auto; }
.source-image-marker:hover, .source-image-marker:focus-visible, .source-image-marker.is-selected { border-style: solid; border-color: #71460d; background: rgba(255, 215, 140, .3); outline: none; }
.source-image-menu { width: min(292px, calc(100vw - 24px)); }
.source-image-menu > img { display: block; width: 100%; max-height: 150px; object-fit: contain; border: 1px solid #d9c5a6; background: #fffdf7; }
.source-image-menu > p { margin: 0; color: var(--author-muted, #6e8380); font-size: .76rem; line-height: 1.42; }
.source-element-list { display: grid; gap: 8px; padding: 15px; border-left: 1px solid var(--author-line, #d9e6e3); background: #fff; }
.source-element-list > div { padding: 2px 4px 8px; border-bottom: 1px solid var(--author-line, #d9e6e3); }
.source-element-list > div span { color: var(--author-muted, #6e8380); font-size: .67rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.source-element-list > div p { margin: 4px 0 0; color: var(--author-muted, #6e8380); font-size: .72rem; line-height: 1.4; }
.source-element { display: grid; gap: 4px; padding: 10px; border: 1px solid #e3e8e7; background: #fff; color: var(--author-ink, #173c35); text-align: left; font: inherit; cursor: context-menu; }
.source-element:hover, .source-element:focus-visible { border-color: var(--accent, #111); outline: none; box-shadow: 0 0 0 3px var(--author-tint, #eef6f4); }
.source-element.is-selected { border-color: var(--accent, #111); background: var(--author-tint, #eef6f4); box-shadow: inset 3px 0 0 var(--accent, #111); }
.source-element strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.source-element small { overflow: hidden; color: var(--author-muted, #6e8380); text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; }
.source-image-element { grid-template-columns: 44px minmax(0, 1fr); align-items: center; }
.source-image-element img { grid-row: 1 / span 3; display: block; width: 44px; height: 44px; object-fit: cover; border: 1px solid #d9c5a6; background: #fff; }
.source-image-element .block-type { justify-self: start; }
.source-element-inspector .detected-images { margin: 2px 0; }
.source-element-inspector .detected-image-card { grid-template-columns: 74px minmax(0, 1fr); gap: 10px; padding: 8px; }
.source-element-inspector .detected-image-card img { width: 74px; height: 58px; }
.source-element-inspector .detected-image-card p { font-size: .76rem; }
.source-element-inspector .detected-image-card .secondary { padding: 6px 7px; font-size: .7rem; }
.source-element-empty { margin: 0; color: var(--author-muted, #6e8380); font-size: .76rem; line-height: 1.45; }
.source-element-inspector { display: grid; gap: 6px; margin-top: 6px; padding: 12px; border: 1px solid var(--author-line, #d9e6e3); background: var(--author-tint, #eef6f4); }
.source-element-inspector > span { color: var(--author-muted, #6e8380); font-size: .64rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.source-element-inspector > strong { color: var(--author-ink, #173c35); font-size: .84rem; }
.source-element-inspector > small { color: var(--author-muted, #6e8380); font-size: .7rem; line-height: 1.35; }
.source-element-inspector > p { margin: 2px 0; color: var(--author-muted, #6e8380); font-size: .72rem; line-height: 1.42; }
.source-element-inspector > div { display: flex; flex-wrap: wrap; gap: 6px; }
.source-element-inspector .ghost { padding: 7px 8px; font-size: .72rem; }
@media (max-width: 900px) { .visual-authoring-header, .visual-canvas-head { align-items: flex-start; flex-direction: column; } .visual-authoring-body { grid-template-columns: 1fr; } .visual-toolbox { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-right: 0; border-bottom: 1px solid var(--author-line, #d9e6e3); } .visual-toolbox-heading, .visual-toolbox-tip { display: none; } .visual-toolbox section { padding: 0; border-bottom: 0; } }
@media (max-width: 720px) { .source-document-layout { grid-template-columns: 1fr; } .source-element-list { border-top: 1px solid var(--author-line, #d9e6e3); border-left: 0; } .source-element { grid-template-columns: auto minmax(0, 1fr); align-items: center; } .source-element small { grid-column: 2; } }
@media (max-width: 620px) { .visual-authoring-header, .canvas-module-tabs, .visual-canvas-head, .canvas-section-nav, .source-document-notice, .source-preview-unavailable { padding-right: 16px; padding-left: 16px; } .visual-mode-switch { width: 100%; } .visual-mode-switch button { flex: 1; } .visual-toolbox { grid-template-columns: 1fr; padding: 16px; } .visual-page-stack, .source-document-stack { padding: 16px 10px 40px; } .visual-page > header { grid-template-columns: 1fr; } .visual-page > header small { display: none; } .visual-page-content { padding: 14px; } .canvas-block-card > header { grid-template-columns: 28px minmax(0, 1fr); } .canvas-block-card .block-type { grid-column: 2; justify-self: start; } }

/* The learner explanation is anchored to its active marker instead of appearing below the image. */
.hotspot-stage { overflow: visible; isolation: isolate; }
.hotspot-detail-overlay { position: absolute; z-index: 3; width: min(260px, calc(100% - 28px)); box-sizing: border-box; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.hotspot-detail-overlay.is-right.is-below { left: calc(var(--hotspot-x) * 1%); top: calc(var(--hotspot-y) * 1%); transform: translate(18px, 18px); }
.hotspot-detail-overlay.is-left.is-below { left: calc(var(--hotspot-x) * 1%); top: calc(var(--hotspot-y) * 1%); transform: translate(calc(-100% - 18px), 18px); }
.hotspot-detail-overlay.is-right.is-above { left: calc(var(--hotspot-x) * 1%); top: calc(var(--hotspot-y) * 1%); transform: translate(18px, calc(-100% - 18px)); }
.hotspot-detail-overlay.is-left.is-above { left: calc(var(--hotspot-x) * 1%); top: calc(var(--hotspot-y) * 1%); transform: translate(calc(-100% - 18px), calc(-100% - 18px)); }
@media (max-width: 520px) { .hotspot-detail-overlay { width: min(220px, calc(100% - 20px)); } }

.quiz-settings { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); background: #f8f8f8; }
.quiz-settings > strong { font-size: 1rem; }
.quiz-direct-correction { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); cursor: pointer; }
.quiz-direct-correction input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.quiz-direct-correction span { display: grid; gap: 3px; }
.quiz-direct-correction small { color: var(--muted); line-height: 1.4; }
.quiz-question-image-fields { display: grid; gap: 10px; }
.quiz-question-image { display: block; width: min(100%, 620px); max-height: 440px; margin: 0 auto; object-fit: contain; border: 1px solid var(--line); background: #f5f5f5; }
.quiz-direct-feedback { display: grid; gap: 6px; padding: 14px 16px; border-left: 4px solid #333; background: #f2f2f2; }
.quiz-direct-feedback.is-success { border-left-color: #111; background: #e8e8e8; }
.quiz-direct-feedback.is-error { border-left-color: #555; background: #f4f4f4; }
.quiz-direct-feedback span, .quiz-intro { line-height: 1.55; }
.quiz-intro { margin: 0; color: var(--muted); }

.lms-standalone { min-height: 100vh; padding: 20px; background: #fff; }
.lms-standalone .lms-test { max-width: none; min-height: calc(100vh - 40px); margin: 0; }

.flashcard-layout { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); background: #f8f8f8; }
.flashcard-layout > div:first-child { display: grid; gap: 4px; }
.flashcard-layout p { margin: 0; }

.disclosure-editor { gap: 16px; }
.disclosure-editor-item { grid-template-columns: minmax(120px, .45fr) minmax(180px, .9fr) minmax(180px, .9fr); align-items: start; }
.disclosure-editor-item > strong { align-self: center; }
.disclosure-text-field { grid-column: 2 / -1; }
.disclosure-text-field textarea { min-height: 104px; resize: vertical; }
.disclosure-image-fields { display: grid; grid-column: 2 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.disclosure-editor-image { width: 100%; max-height: 220px; object-fit: contain; border: 1px solid var(--line); background: #f5f5f5; }
.disclosure-content { display: grid; gap: 14px; }
.disclosure-content-text { line-height: 1.6; }
.disclosure-content img { display: block; width: 100%; max-height: 420px; object-fit: contain; border: 1px solid var(--line); background: #f5f5f5; }
.disclosure-content.mixed { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.disclosure-content.mixed.image-right img { order: 2; }
.accordion-entry { border: 1px solid var(--line); background: #fff; }
.accordion-entry.is-open { border-color: var(--accent); }
.accordion-entry .accordion-item { width: 100%; min-height: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border: 0; }
.accordion-entry .accordion-item > span { color: var(--accent); font-size: 1.45rem; line-height: 1; }
.accordion-entry > .disclosure-content { padding: 0 16px 16px; }
@media (max-width: 720px) { .disclosure-editor-item, .disclosure-image-fields, .disclosure-content.mixed { grid-template-columns: 1fr; } .disclosure-text-field, .disclosure-image-fields { grid-column: 1; } .disclosure-content.mixed.image-right img { order: 0; } }

/* Keep the author-selected size visible in every learner rendering, including rich lists and quotes. */
.learner-canvas :is(.learner-text, .learner-mixed, .learner-callout, .learner-quote).text-size-2 { font-size: .875rem !important; }
.learner-canvas :is(.learner-text, .learner-mixed, .learner-callout, .learner-quote).text-size-3 { font-size: 1rem !important; }
.learner-canvas :is(.learner-text, .learner-mixed, .learner-callout, .learner-quote).text-size-4 { font-size: 1.25rem !important; }
.learner-canvas :is(.learner-text, .learner-mixed, .learner-callout, .learner-quote).text-size-5 { font-size: 1.5rem !important; }
.learner-canvas :is(.learner-text, .learner-mixed, .learner-callout, .learner-quote).text-size-2 :is(p, li, ul, ol),
.learner-canvas :is(.learner-text, .learner-mixed, .learner-callout, .learner-quote).text-size-3 :is(p, li, ul, ol),
.learner-canvas :is(.learner-text, .learner-mixed, .learner-callout, .learner-quote).text-size-4 :is(p, li, ul, ol),
.learner-canvas :is(.learner-text, .learner-mixed, .learner-callout, .learner-quote).text-size-5 :is(p, li, ul, ol) { font-size: inherit; }
.learner-canvas .learner-quote.text-size-2 blockquote,
.learner-canvas .learner-quote.text-size-3 blockquote,
.learner-canvas .learner-quote.text-size-4 blockquote,
.learner-canvas .learner-quote.text-size-5 blockquote { font-size: 1.2em; }

/* Final V2 workshop overrides: kept last because legacy authoring rules predate the new canvas. */
.visual-authoring { overflow:hidden; border:1px solid var(--author-line,#d9e6e3); border-radius:12px; background:#eaf1f0; box-shadow:0 18px 42px rgba(23,60,53,.10); }
.visual-authoring-header { align-items:center; min-height:74px; padding:15px 22px; border-bottom:1px solid rgba(255,255,255,.65); background:linear-gradient(100deg,#dbece8 0%,#f5faf9 62%,#dbece8 100%); }
.visual-authoring-header .eyebrow { font-size:.62rem; }.visual-authoring-header h2 { margin:3px 0; font-size:1.13rem; }.visual-authoring-header p { display:none; }
.visual-mode-switch { padding:3px; border:1px solid var(--author-line,#d9e6e3); border-radius:7px; background:rgba(255,255,255,.8); }.visual-mode-switch button { min-height:32px; padding:6px 11px; font-size:.76rem; }
.canvas-module-tabs { gap:6px; min-height:68px; padding:10px 18px; border-bottom:1px solid var(--author-line,#d9e6e3); background:#fff; }.canvas-module-tabs > button { flex-basis:166px; min-height:46px; padding:7px 10px; border-radius:7px; background:#f9fbfb; }.canvas-module-tabs > button.is-active { box-shadow:inset 3px 0 0 var(--accent,#111),0 2px 8px rgba(23,60,53,.07); background:var(--author-tint,#eef6f4); }
.visual-authoring-body { grid-template-columns:54px 266px minmax(0,1fr); min-height:min(760px,calc(100vh - 210px)); background:#eaf1f0; }
.visual-rail { display:flex; flex-direction:column; align-items:center; gap:12px; padding:12px 8px; background:#173c35; }.visual-rail-logo,.visual-rail-item { display:grid; width:30px; height:30px; place-items:center; border:1px solid rgba(255,255,255,.18); border-radius:7px; color:#eff8f6; font-size:.82rem; font-weight:800; }.visual-rail-logo { margin-bottom:8px; background:rgba(255,255,255,.16); }.visual-rail-item { border-color:transparent; color:#a9c3bd; }.visual-rail-item.is-active { background:var(--accent,#111); color:#fff; box-shadow:0 3px 8px rgba(0,0,0,.18); }
.visual-toolbox { padding:16px 10px; border-right:1px solid var(--author-line,#d9e6e3); background:#fff; overflow:auto; }.visual-toolbox-heading { padding:3px 8px 15px; }.visual-toolbox-heading strong { font-size:1.08rem; }.visual-toolbox section { gap:3px; padding:13px 0; }.visual-toolbox section button { min-height:35px; padding:7px 8px; border-radius:6px; font-size:.8rem; }.visual-toolbox section button:hover { box-shadow:inset 3px 0 0 var(--accent,#111); }.visual-toolbox .tool-icon { display:grid; width:22px; height:22px; place-items:center; border-radius:5px; background:var(--author-tint,#eef6f4); color:var(--accent-deep,#173c35); font-size:.72rem; font-weight:800; }
.visual-canvas { display:flex; flex-direction:column; min-height:0; background:#eaf1f0; }.visual-canvas-head { min-height:58px; padding:11px 22px; border-bottom:1px solid var(--author-line,#d9e6e3); background:rgba(255,255,255,.92); }.visual-canvas-head > div:first-child { grid-template-columns:auto auto; column-gap:8px; align-items:baseline; }.visual-canvas-head span { grid-column:1; font-size:.62rem; }.visual-canvas-head strong { grid-column:2; grid-row:1 / span 2; font-size:.96rem; }.visual-canvas-head small { grid-column:1; font-size:.7rem; }.visual-canvas-actions .ghost { min-height:32px; border-radius:6px; font-size:.75rem; }
.source-page-nav,.canvas-section-nav { padding:9px 20px; background:#f7faf9; }.source-document-notice { padding:11px 20px; background:#f7faf9; }.source-document-stack { gap:28px; padding:28px clamp(24px,4vw,72px) 72px; overflow:visible; }.source-document-page { width:min(100%, 1480px); max-width:none; border-radius:8px; box-shadow:0 14px 30px rgba(23,60,53,.12); }.source-document-page > header { padding:11px 14px; background:#fff; }.source-document-artboard { padding:16px; background:#eef3f2; }.source-document-artboard img { border-radius:4px; box-shadow:0 5px 15px rgba(23,60,53,.09); }.source-element-list { background:#fff; }.source-element { border-radius:6px; }
.source-page-nav { max-height:112px; overflow:auto; align-content:start; }.source-page-nav button.is-active { border-color:var(--author-accent,#3f778a); background:var(--author-accent,#3f778a); color:#fff; }.detailed-workspace-switch { display:flex; align-items:center; gap:12px; margin:0 0 14px; padding:10px 14px; border:1px solid var(--author-line,#d9e6e3); background:#f7faf9; color:var(--author-muted,#6e8380); font-size:.8rem; }
@media (max-width:900px) { .visual-authoring-body { grid-template-columns:46px minmax(0,1fr); }.visual-rail { grid-row:1 / span 2; }.visual-toolbox { display:block; grid-column:2; }.visual-canvas { grid-column:2; } }
@media (max-width:620px) { .visual-authoring { border-radius:0; }.visual-authoring-body { grid-template-columns:1fr; }.visual-rail { display:none; }.visual-toolbox,.visual-canvas { grid-column:1; } }

/* Keep the authoring palette available while the source deck scrolls. */
.visual-authoring { overflow: visible; }
.visual-rail { position: sticky; top: 12px; align-self: start; max-height: calc(100vh - 24px); }
.visual-toolbox { position: sticky; top: 12px; align-self: start; max-height: calc(100vh - 24px); overflow: auto; }
.source-unlinked-text-marker { position:absolute; z-index:3; min-width:18px; min-height:18px; border:2px dashed #6b7280; background:rgba(107,114,128,.12); cursor:pointer; pointer-events:auto; }
.source-unlinked-text-marker:hover,.source-unlinked-text-marker:focus-visible,.source-unlinked-text-marker.is-selected { border-style:solid; border-color:#374151; background:rgba(107,114,128,.24); outline:none; }
.source-image-marker.is-branding { border-color:#475569; border-style:dotted; background:rgba(71,85,105,.12); }
.source-audio-marker { position:absolute; z-index:4; display:grid; min-width:22px; min-height:22px; place-items:center; border:2px solid #0f766e; border-radius:50%; background:rgba(204,251,241,.88); color:#115e59; cursor:pointer; font-size:1rem; font-weight:800; line-height:1; pointer-events:auto; }
.source-audio-marker:hover,.source-audio-marker:focus-visible,.source-audio-marker.is-selected { border-color:#134e4a; background:#99f6e4; box-shadow:0 0 0 3px rgba(20,184,166,.22); outline:none; }
.source-video-marker { border-color:#7c3aed; background:rgba(237,233,254,.9); color:#5b21b6; }
.source-video-marker:hover,.source-video-marker:focus-visible,.source-video-marker.is-selected { border-color:#4c1d95; background:#ddd6fe; box-shadow:0 0 0 3px rgba(124,58,237,.2); }
.source-audio-menu { width:min(292px,calc(100vw - 24px)); }
.source-audio-menu > p { margin:0; color:var(--author-muted,#6e8380); font-size:.76rem; line-height:1.42; }
.source-audio-menu > audio,.source-audio-menu > video { width:100%; min-width:0; }

/* Page-level actions operate on the pedagogical plan, never on the uploaded file. */
.source-document-page > header { position:relative; grid-template-columns:minmax(0,1fr) auto auto; }
.source-page-actions { position:relative; z-index:12; grid-column:3; grid-row:1 / span 2; align-self:center; }
.source-page-actions > button { min-width:34px; min-height:32px; padding:4px 9px; font-size:1.05rem; line-height:1; }
.source-page-actions-menu { position:absolute; z-index:20; top:calc(100% + 5px); right:0; display:grid; width:224px; padding:5px; border:1px solid var(--author-line,#d9e6e3); background:#fff; box-shadow:0 10px 28px rgba(15,23,42,.16); }
.source-page-actions-menu button { min-height:34px; padding:7px 9px; border:0; background:transparent; color:var(--author-ink,#173c35); text-align:left; font:inherit; font-size:.77rem; cursor:pointer; }
.source-page-actions-menu button:hover:not(:disabled),.source-page-actions-menu button:focus-visible { background:var(--author-tint,#eef6f4); outline:none; }
.source-page-actions-menu button:disabled { color:#9ca3af; cursor:not-allowed; }
.source-page-actions-menu .danger-action { color:#991b1b; }
.page-target-list { display:grid; gap:7px; max-height:300px; overflow:auto; }
.page-target-list button { display:grid; gap:2px; padding:11px; border:1px solid var(--author-line,#d9e6e3); background:#fff; color:var(--author-ink,#173c35); text-align:left; font:inherit; cursor:pointer; }
.page-target-list button:hover:not(:disabled),.page-target-list button:focus-visible { border-color:var(--accent,#111); background:var(--author-tint,#eef6f4); outline:none; }
.page-target-list button:disabled { cursor:default; opacity:.55; }
.page-target-list span { color:var(--author-muted,#6e8380); font-size:.69rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.page-target-list strong { font-size:.84rem; }
.page-activity-modal { display:grid; gap:15px; }
.page-activity-replace { display:grid; grid-template-columns:auto minmax(0,1fr); gap:10px; align-items:start; padding:12px; border:1px solid var(--author-line,#d9e6e3); background:#f7faf9; cursor:pointer; }
.page-activity-replace input { width:17px; height:17px; margin-top:2px; }
.page-activity-replace span { display:grid; gap:3px; }
.page-activity-replace small { color:var(--author-muted,#6e8380); line-height:1.4; }

/* Composition view: the rendered slide is only a visual reference; editable
   course elements are separate layers stored in the SCORM draft. */
.composition-notice { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 20px; border-bottom:1px solid var(--author-line,#d9e6e3); background:#f7faf9; color:var(--author-muted,#6e8380); font-size:.78rem; line-height:1.4; }
.composition-notice strong { color:var(--author-ink,#173c35); }
.composition-workspace { padding:30px clamp(24px,4vw,72px) 72px; }
.composition-page { width:min(100%,1280px); margin:0 auto; border:1px solid var(--author-line,#d9e6e3); background:#fff; box-shadow:0 14px 30px rgba(23,60,53,.12); }
.composition-page > header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 16px; border-bottom:1px solid var(--author-line,#d9e6e3); color:var(--author-muted,#6e8380); }
.composition-page > header div { display:grid; gap:3px; }.composition-page > header span { font-size:.67rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }.composition-page > header strong { color:var(--author-ink,#173c35); font-size:.9rem; }.composition-page > header small { white-space:nowrap; font-size:.72rem; }
.composition-stage { position:relative; isolation:isolate; aspect-ratio:16 / 9; overflow:hidden; background:#f5f7f6; }
.composition-stage::after { position:absolute; z-index:1; inset:0; background:rgba(255,255,255,.82); content:""; pointer-events:none; }.composition-stage.is-drop-target::after { background:rgba(219,236,232,.62); box-shadow:inset 0 0 0 3px var(--accent,#111); }
.composition-reference { position:absolute; z-index:0; inset:0; display:block; width:100%; height:100%; object-fit:contain; background:#fff; }
.composition-layer { position:absolute; z-index:2; display:grid; align-content:start; gap:4px; box-sizing:border-box; min-width:112px; padding:8px 9px; border:1px solid #335c54; background:rgba(255,255,255,.96); box-shadow:0 4px 12px rgba(15,23,42,.12); color:#173c35; cursor:grab; user-select:none; }
.composition-layer:active,.composition-layer.is-dragging { cursor:grabbing; opacity:.62; }.composition-layer:hover,.composition-layer:focus-visible,.composition-layer.is-selected { z-index:3; border:2px solid var(--accent,#111); outline:none; box-shadow:0 0 0 3px rgba(23,60,53,.14),0 8px 18px rgba(15,23,42,.14); }
.composition-layer .block-type { justify-self:start; font-size:.59rem; }.composition-layer-text { overflow:hidden; color:var(--layer-text-color,#111); font-family:var(--layer-font-family,inherit); font-size:var(--layer-font-size,.9rem); font-style:var(--layer-font-style,normal); font-weight:var(--layer-font-weight,500); line-height:1.18; text-align:var(--layer-text-align,left); text-decoration:var(--layer-text-decoration,none); text-overflow:ellipsis; white-space:pre-wrap; }.composition-layer-text p,.composition-layer-text ul { margin:0; }.composition-layer-text p + p,.composition-layer-text ul + p { margin-top:.32em; }.composition-layer-text ul { padding-left:1.05em; }.composition-layer small { color:#60716e; font-size:.62rem; line-height:1.25; }.composition-empty { position:absolute; z-index:2; inset:0; display:grid; place-content:center; gap:7px; padding:30px; color:#60716e; text-align:center; }.composition-empty strong { color:#173c35; }
.composition-inspector { display:grid; gap:10px; margin:0; padding:18px; border-top:1px solid var(--author-line,#d9e6e3); background:#f8fbfa; color:var(--author-ink,#173c35); }.composition-inspector.is-empty { min-height:116px; place-content:center; text-align:center; color:var(--author-muted,#6e8380); }.composition-inspector header { display:flex; align-items:end; justify-content:space-between; gap:16px; }.composition-inspector header div { display:grid; gap:2px; }.composition-inspector header strong { font-size:1rem; }.composition-inspector header > span,.composition-inspector p { margin:0; color:var(--author-muted,#6e8380); font-size:.78rem; line-height:1.45; }.composition-rich-toolbar { align-items:center; flex-wrap:wrap; }.composition-rich-toolbar label { display:flex; align-items:center; gap:5px; color:var(--author-muted,#6e8380); font-size:.73rem; }.composition-rich-toolbar select { min-height:31px; padding:4px 6px; border:1px solid var(--author-line,#d9e6e3); border-radius:0; background:#fff; color:var(--author-ink,#173c35); font:inherit; }.composition-rich-toolbar input[type="color"] { width:32px; height:31px; padding:1px; border:1px solid var(--author-line,#d9e6e3); border-radius:0; background:#fff; cursor:pointer; }.composition-rich-editor { min-height:150px; max-height:360px; overflow:auto; background:#fff; font-size:1rem; line-height:1.55; }.composition-rich-editor:focus { border-color:var(--accent,#111); outline:2px solid color-mix(in srgb,var(--accent,#111) 18%,transparent); }
@media (max-width:720px) { .composition-notice { align-items:flex-start; flex-direction:column; }.composition-workspace { padding:16px 10px 40px; }.composition-page > header,.composition-inspector header { align-items:flex-start; flex-direction:column; }.composition-stage { min-height:440px; aspect-ratio:auto; }.composition-layer { min-width:96px; } }
.source-suggestion-heading { margin-top:10px; padding:10px 4px 4px; border-top:1px solid var(--author-line,#d9e6e3); color:var(--author-muted,#6e8380); font-size:.67rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }.source-pedagogical-suggestion { background:color-mix(in srgb,var(--author-tint,#eef6f4) 72%,#fff); }

/* Distinguish untouched source material from proposals that require author review. */
.fast-card-filters { display:flex; flex-wrap:wrap; gap:5px; padding:8px 10px; border-bottom:1px solid var(--author-line,#d9e6e3); background:#fff; }
.fast-card-filters button { display:inline-flex; gap:4px; align-items:center; min-height:26px; padding:4px 6px; border:1px solid #d5e1de; background:#fff; color:var(--author-muted,#6e8380); font:700 .64rem/1 inherit; cursor:pointer; }
.fast-card-filters button span { display:grid; min-width:15px; place-items:center; border-radius:50%; background:#edf3f1; color:inherit; font-size:.6rem; }
.fast-card-filters button:hover,.fast-card-filters button:focus-visible,.fast-card-filters button.is-active { border-color:var(--author-accent,#3f778a); background:var(--author-tint,#eef6f4); color:var(--author-accent,#3f778a); outline:none; }
.fast-card-origin,.fast-stage-origin { display:inline-flex; width:max-content; align-items:center; min-height:17px; padding:2px 5px; border:1px solid #d5e1de; color:#55726c; font-size:.58rem; font-style:normal; font-weight:800; letter-spacing:.03em; line-height:1.1; text-transform:uppercase; }
.fast-card-media-count { display:inline-flex; width:max-content; align-items:center; min-height:17px; margin-left:4px; padding:2px 5px; border:1px solid #0f766e; background:#f0fdfa; color:#115e59; font-size:.58rem; font-style:normal; font-weight:800; line-height:1.1; }
.fast-card-origin.is-ai,.fast-stage-origin.is-ai { border-color:#b8833e; background:#fff7e9; color:#7b551e; }
.fast-card-origin.is-source,.fast-stage-origin.is-source { border-color:#82a8a0; background:#f0f8f6; color:#2f695e; }
.fast-card-origin.is-manual,.fast-stage-origin.is-manual { border-color:#a9afb2; background:#f5f6f6; color:#4d585a; }
.fast-stage-origin { margin-right:7px; vertical-align:middle; }
.fast-card-no-result { padding:20px 14px; color:var(--author-muted,#6e8380); font-size:.78rem; line-height:1.45; }

/* The card index is a persistent outline; only its own list scrolls. */
.fast-editor.fast-editor { height:clamp(640px,calc(100vh - 100px),1120px); min-height:640px; }
.fast-editor .fast-card-list { position:sticky; top:12px; align-self:stretch; height:100%; min-height:0; max-height:100%; }
.fast-editor .fast-card-scroll { min-height:0; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; }
.fast-editor .fast-editor-stage { height:100%; min-height:0; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; }
.fast-editor .fast-card-section > header { display:block; padding:0; }
.fast-section-toggle { display:grid; grid-template-columns:minmax(0,1fr) auto; width:100%; gap:2px 9px; align-items:center; padding:12px 14px 8px; border:0; border-top:1px solid #edf2f0; background:#fff; color:var(--author-ink,#173c35); text-align:left; font:inherit; cursor:pointer; }
.fast-section-toggle:hover,.fast-section-toggle:focus-visible { background:#f4f9f7; outline:none; }
.fast-section-toggle > span,.fast-section-toggle > strong,.fast-section-toggle > small { grid-column:1; min-width:0; }
.fast-section-toggle > small { color:var(--author-muted,#6e8380); font-size:.66rem; }
.fast-section-toggle > b { grid-column:2; grid-row:1 / span 3; display:grid; width:20px; height:20px; place-items:center; border:1px solid #cbdad6; color:var(--author-accent,#3f778a); font-size:1rem; font-weight:500; line-height:1; }
.fast-card-section.is-collapsed .fast-section-toggle { padding-bottom:11px; }

/* Product flow: project brief, validated plan and card editor. */
.fast-setup,.fast-sources,.fast-plan,.fast-generation { display:grid; gap:24px; }
.workspace-grid.product-workspace { grid-template-columns:minmax(0,1fr); }
.fast-choice-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.fast-choice { position:relative; display:grid; align-content:start; gap:9px; min-height:240px; padding:22px; border:1px solid var(--author-line,#d9e6e3); border-radius:0; background:#fff; color:var(--author-ink,#173c35); text-align:left; font:inherit; cursor:pointer; transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease; }
.fast-choice:hover,.fast-choice:focus-visible { border-color:var(--author-accent,#3f778a); box-shadow:0 12px 28px rgba(23,60,53,.10); outline:none; transform:translateY(-2px); }
.fast-choice.is-selected { border-color:var(--author-accent,#3f778a); box-shadow:inset 4px 0 0 var(--author-accent,#3f778a),0 12px 28px rgba(23,60,53,.08); background:var(--author-tint,#eef6f4); }
.fast-choice > span { color:var(--author-accent,#3f778a); font-size:.72rem; font-weight:800; letter-spacing:.08em; }.fast-choice strong { font-size:1.08rem; }.fast-choice p { margin:0; color:var(--author-muted,#6e8380); line-height:1.52; }.fast-choice small { margin-top:auto; color:var(--author-accent,#3f778a); font-weight:700; }
.fast-brief-grid { display:grid; gap:15px; padding:22px; border:1px solid var(--author-line,#d9e6e3); background:#f8fbfa; }.fast-empty-brief { display:grid; gap:5px; min-height:122px; place-content:center; padding:20px; border:1px dashed var(--author-line,#d9e6e3); color:var(--author-muted,#6e8380); text-align:center; }.fast-empty-brief strong { color:var(--author-ink,#173c35); }
.fast-ai-controls { display:grid; gap:12px; margin-top:16px; padding:16px; border-left:4px solid var(--author-accent,#3f778a); background:#fff; }.fast-ai-controls > p { margin:0; }.fast-ai-controls .field-label { color:var(--author-accent,#3f778a); font-size:.72rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.module-count-control { display:grid; gap:10px; margin:2px 0 4px; padding:14px 16px; border:1px solid var(--author-line,#d9e6e3); background:#fff; }.module-count-toggle { display:flex; align-items:center; gap:10px; width:max-content; font-weight:700; cursor:pointer; }.module-count-toggle input { width:18px; height:18px; margin:0; accent-color:var(--author-accent,#3f778a); }.module-count-control .helper,.module-count-control small { margin:0; color:var(--author-muted,#6e8380); line-height:1.45; }
.scorm-version-selector { display:grid; gap:5px; min-width:170px; color:var(--author-muted,#6e8380); font-size:.74rem; font-weight:700; }.scorm-version-selector select { min-height:36px; border:1px solid var(--author-line,#d9e6e3); border-radius:0; background:#fff; color:var(--author-ink,#173c35); font:inherit; }
.fast-dropzone { display:grid; min-height:245px; place-content:center; justify-items:center; gap:9px; padding:30px; border:1px dashed #87a39c; background:linear-gradient(135deg,#f8fbfa,#edf5f3); color:var(--author-ink,#173c35); text-align:center; cursor:pointer; }.fast-dropzone:hover { border-color:var(--author-accent,#3f778a); background:#e6f1ee; }.fast-dropzone input { position:absolute; width:1px; height:1px; opacity:0; }.fast-dropzone strong { font-size:1.08rem; }.fast-dropzone small { color:var(--author-muted,#6e8380); }.fast-drop-icon { display:grid; width:42px; height:42px; place-items:center; border:1px solid var(--author-accent,#3f778a); color:var(--author-accent,#3f778a); font-size:1.8rem; font-weight:300; }
.fast-file-list { display:flex; flex-wrap:wrap; gap:9px; }.fast-file-list > span { display:grid; gap:2px; min-width:190px; padding:10px 12px; border:1px solid var(--author-line,#d9e6e3); background:#fff; }.fast-file-list strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.8rem; }.fast-file-list small { color:var(--author-muted,#6e8380); font-size:.7rem; }
.fast-analysis-summary,.fast-generation-preview { display:grid; gap:1px; border:1px solid var(--author-line,#d9e6e3); background:var(--author-line,#d9e6e3); }.fast-analysis-summary { grid-template-columns:repeat(4,minmax(0,1fr)); }.fast-generation-preview { grid-template-columns:repeat(3,minmax(0,1fr)); }.fast-analysis-summary > span,.fast-generation-preview > div { display:grid; gap:4px; min-height:70px; align-content:center; padding:13px 16px; background:#fff; color:var(--author-muted,#6e8380); font-size:.77rem; }.fast-analysis-summary > span { color:var(--author-ink,#173c35); font-weight:800; }.fast-analysis-summary p { grid-column:1 / -1; margin:0; padding:10px 16px; background:#f8fbfa; color:var(--author-muted,#6e8380); font-size:.78rem; }.fast-generation-preview span { font-size:.67rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }.fast-generation-preview strong { color:var(--author-ink,#173c35); font-size:.9rem; }
.fast-generation-state { display:flex; align-items:center; gap:16px; padding:22px; border:1px solid var(--author-line,#d9e6e3); background:#f8fbfa; }.fast-generation-state > div:last-child { display:grid; gap:5px; }.fast-generation-state span { color:var(--author-muted,#6e8380); line-height:1.45; }.fast-generation-explainer { padding:22px; border-left:4px solid var(--author-accent,#3f778a); background:#f8fbfa; }.fast-generation-explainer p { margin:7px 0 0; color:var(--author-muted,#6e8380); line-height:1.5; }
.fast-plan-metrics { display:flex; border-top:1px solid var(--author-line,#d9e6e3); border-bottom:1px solid var(--author-line,#d9e6e3); }.fast-plan-metrics span { display:flex; gap:6px; align-items:baseline; padding:13px 18px; border-right:1px solid var(--author-line,#d9e6e3); color:var(--author-muted,#6e8380); font-size:.8rem; }.fast-plan-metrics strong { color:var(--author-ink,#173c35); font-size:1.1rem; }
.fast-vigilance-report { display:grid; gap:6px; padding:15px 17px; border-left:4px solid var(--author-accent,#3f778a); background:#f8fbfa; color:var(--author-muted,#6e8380); font-size:.78rem; line-height:1.45; }.fast-vigilance-report strong { color:var(--author-ink,#173c35); }.fast-vigilance-report details { margin-top:3px; }.fast-vigilance-report summary { color:var(--author-accent,#3f778a); cursor:pointer; font-weight:800; }.fast-vigilance-report p { margin:10px 0 0; }.fast-vigilance-report ul { margin:8px 0 0; padding-left:18px; }.fast-vigilance-report a { color:var(--author-accent,#3f778a); }
.fast-plan-list { display:grid; gap:14px; }.fast-plan-module { display:grid; gap:13px; padding:18px; border:1px solid var(--author-line,#d9e6e3); background:#fff; }.fast-plan-module > header { display:flex; justify-content:space-between; gap:14px; align-items:center; color:var(--author-accent,#3f778a); font-size:.72rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }.fast-plan-actions { display:flex; gap:6px; }.fast-plan-actions .ghost { min-width:31px; min-height:30px; padding:4px; }.fast-plan-sections { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:12px; }.fast-plan-sections > section { display:grid; gap:8px; padding:12px; background:#f8fbfa; }.fast-plan-sections > section > header { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--author-accent,#3f778a); font-size:.66rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }.fast-plan-sections > section .fast-plan-actions { gap:3px; }.fast-plan-sections > section .fast-plan-actions .ghost { min-width:25px; min-height:24px; font-size:.7rem; }.fast-plan-sections label { gap:5px; color:var(--author-muted,#6e8380); font-size:.73rem; font-weight:700; }.fast-plan-sections input { min-height:34px; }.fast-add-section { display:grid; min-height:46px; place-content:center; border:1px dashed #87a39c; background:#fff; color:var(--author-accent,#3f778a); font:700 .75rem/1 inherit; cursor:pointer; }.fast-add-section:hover,.fast-add-section:focus-visible { border-color:var(--author-accent,#3f778a); background:var(--author-tint,#eef6f4); outline:none; }.fast-plan-blocks { display:flex; flex-wrap:wrap; gap:6px; }.fast-plan-blocks span { max-width:100%; overflow:hidden; padding:5px 8px; border:1px solid #d5e1de; background:#fff; color:var(--author-muted,#6e8380); font-size:.7rem; text-overflow:ellipsis; white-space:nowrap; }.fast-plan-blocks span.is-interactive { border-color:var(--author-accent,#3f778a); background:var(--author-tint,#eef6f4); color:var(--author-accent,#3f778a); }.fast-plan-blocks em { color:var(--author-muted,#6e8380); font-size:.74rem; }
.fast-editor { display:grid; grid-template-columns:52px 290px minmax(0,1fr); min-height:min(810px,calc(100vh - 180px)); border:1px solid var(--author-line,#d9e6e3); background:#edf3f1; box-shadow:0 18px 42px rgba(23,60,53,.10); }.fast-rail { display:flex; flex-direction:column; align-items:center; gap:12px; padding:13px 8px; background:#173c35; color:#a9c3bd; }.fast-rail span { display:grid; width:29px; height:29px; place-items:center; border:1px solid transparent; font-size:.78rem; font-weight:800; }.fast-rail .fast-rail-brand { margin-bottom:8px; border-color:rgba(255,255,255,.24); background:rgba(255,255,255,.15); color:#fff; }.fast-rail .is-active { background:var(--author-accent,#3f778a); color:#fff; box-shadow:0 3px 8px rgba(0,0,0,.18); }
.fast-card-list { display:flex; min-width:0; flex-direction:column; border-right:1px solid var(--author-line,#d9e6e3); background:#fff; }.fast-card-list > header { display:flex; justify-content:space-between; gap:8px; align-items:start; min-height:102px; padding:17px 14px 12px; border-bottom:1px solid var(--author-line,#d9e6e3); }.fast-card-list h2 { margin:3px 0; font-size:1.05rem; }.fast-card-list p { margin:0; color:var(--author-muted,#6e8380); font-size:.73rem; }.fast-card-list header .ghost { min-height:29px; padding:4px 7px; font-size:.7rem; }.fast-module-tabs { display:flex; gap:5px; overflow:auto; padding:9px 10px; border-bottom:1px solid var(--author-line,#d9e6e3); background:#f7faf9; }.fast-module-tabs button { display:flex; min-width:max-content; gap:5px; align-items:center; min-height:29px; padding:5px 7px; border:1px solid transparent; background:transparent; color:var(--author-muted,#6e8380); font:inherit; font-size:.72rem; cursor:pointer; }.fast-module-tabs button.is-active { border-color:var(--author-accent,#3f778a); background:#fff; color:var(--author-accent,#3f778a); font-weight:800; }.fast-module-tabs span { display:grid; width:16px; height:16px; place-items:center; border:1px solid currentColor; border-radius:50%; font-size:.6rem; }.fast-card-scroll { flex:1; overflow:auto; padding:8px 0 18px; }.fast-card-section > header { display:grid; gap:2px; padding:13px 14px 6px; }.fast-card-section > header span { color:var(--author-accent,#3f778a); font-size:.61rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }.fast-card-section > header strong { font-size:.78rem; }.fast-card { display:grid; grid-template-columns:25px minmax(0,1fr); width:100%; gap:8px; padding:8px 13px; border:0; border-left:3px solid transparent; background:#fff; color:var(--author-ink,#173c35); text-align:left; font:inherit; cursor:pointer; }.fast-card:hover,.fast-card:focus-visible { background:#f4f9f7; outline:none; }.fast-card.is-selected { border-left-color:var(--author-accent,#3f778a); background:var(--author-tint,#eef6f4); }.fast-card > span:last-child { display:grid; min-width:0; gap:2px; }.fast-card strong { overflow:hidden; font-size:.78rem; text-overflow:ellipsis; white-space:nowrap; }.fast-card small { color:var(--author-muted,#6e8380); font-size:.67rem; }.fast-card-icon { display:grid; width:21px; height:21px; place-items:center; border:1px solid #cad8d4; background:#fff; color:var(--author-muted,#6e8380); font-size:.7rem; font-weight:800; }.fast-card-icon.is-interactive { border-color:var(--author-accent,#3f778a); background:var(--author-tint,#eef6f4); color:var(--author-accent,#3f778a); }.fast-card-list > footer { display:grid; gap:7px; padding:12px; border-top:1px solid var(--author-line,#d9e6e3); background:#f7faf9; }.fast-card-list > footer label { display:grid; gap:4px; color:var(--author-muted,#6e8380); font-size:.7rem; }.fast-card-list > footer select { min-height:32px; }.fast-card-list > footer .primary { min-height:35px; font-size:.76rem; }
.fast-editor-stage { min-width:0; overflow:auto; background:#edf3f1; }.fast-stage-head { display:flex; justify-content:space-between; gap:18px; align-items:center; min-height:102px; padding:18px 24px; border-bottom:1px solid var(--author-line,#d9e6e3); background:#fff; }.fast-stage-head h2 { margin:4px 0; font-size:1.2rem; }.fast-stage-head p { margin:0; color:var(--author-muted,#6e8380); font-size:.78rem; }.fast-editor-block { width:min(900px,calc(100% - 48px)); margin:25px auto 56px; }.fast-editor-block .builder-chapter { padding:22px; border:1px solid var(--author-line,#d9e6e3); background:#fff; box-shadow:0 8px 22px rgba(23,60,53,.07); }.fast-editor-empty { display:grid; min-height:370px; place-content:center; padding:25px; color:var(--author-muted,#6e8380); text-align:center; }.fast-editor-empty h2 { color:var(--author-ink,#173c35); }
.fast-card-preview-panel { display:grid; width:min(980px,calc(100% - 48px)); gap:14px; margin:25px auto 56px; }.fast-card-preview-label { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 2px; color:var(--author-muted,#6e8380); font-size:.76rem; }.fast-card-preview-label .eyebrow { color:var(--author-accent,#3f778a); }.fast-card-preview-canvas { min-height:320px; padding:clamp(28px,5vw,64px); border:1px solid var(--author-line,#d9e6e3); background:#fff; box-shadow:0 12px 28px rgba(23,60,53,.08); }.fast-card-preview-canvas > .learner-text,.fast-card-preview-canvas > .learner-quote,.fast-card-preview-canvas > .learner-callout,.fast-card-preview-canvas > .learner-mixed,.fast-card-preview-canvas > .interactive-preview,.fast-card-preview-canvas > .learner-quiz,.fast-card-preview-canvas > .lms-audio-player,.fast-card-preview-canvas > .learner-video,.fast-card-preview-canvas > .learner-document { width:100%; max-width:100%; }.fast-card-visual-hint,.fast-card-source-media { display:grid; gap:7px; padding:15px 17px; border:1px dashed var(--author-accent,#3f778a); background:#f8fbfa; }.fast-card-visual-hint span,.fast-card-source-media span { color:var(--author-muted,#6e8380); font-size:.78rem; line-height:1.45; }.fast-card-visual-hint .ghost,.fast-card-source-media .ghost { justify-self:start; }.fast-card-source-media { border-color:#0f766e; background:#f0fdfa; }.fast-card-source-media strong { color:#115e59; }
.fast-source-media-action { min-height:36px; padding:7px 10px; border:1px solid #0f766e; background:#f0fdfa; color:#115e59; font:800 .72rem/1 inherit; cursor:pointer; }.fast-source-media-action:hover,.fast-source-media-action:focus-visible { background:#ccfbf1; outline:2px solid rgba(15,118,110,.2); outline-offset:2px; }
.fast-visual-direction { padding-top:4px; }.fast-visual-direction .helper { display:block; margin-top:5px; }.course-visual-proposal,.course-visual-status { display:grid; gap:11px; margin-top:16px; padding:17px; border:1px dashed var(--author-accent,#3f778a); background:#f8fbfa; }.course-visual-proposal > header { display:flex; align-items:start; justify-content:space-between; gap:12px; }.course-visual-proposal > header > span { padding:4px 7px; border:1px solid var(--author-line,#d9e6e3); background:#fff; color:var(--author-muted,#6e8380); font-size:.7rem; font-weight:700; }.course-visual-proposal strong,.course-visual-status strong { color:var(--author-ink,#173c35); }.course-visual-proposal textarea { min-height:86px; resize:vertical; }.course-visual-proposal .helper,.course-visual-status span { margin:0; color:var(--author-muted,#6e8380); font-size:.8rem; line-height:1.45; }.course-visual-status { border-style:solid; border-color:#bfd4ce; background:#fff; }.course-visual-status .ghost { justify-self:start; }
@media (max-width:1050px) { .fast-choice-grid { grid-template-columns:1fr; }.fast-choice { min-height:0; }.fast-analysis-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }.fast-editor { grid-template-columns:48px 255px minmax(0,1fr); }.fast-stage-head { align-items:flex-start; flex-direction:column; } }
@media (max-width:760px) { .fast-analysis-summary,.fast-generation-preview { grid-template-columns:1fr; }.fast-editor { grid-template-columns:1fr; }.fast-editor.fast-editor { height:auto; min-height:0; }.fast-rail { display:none; }.fast-editor .fast-card-list { position:static; height:auto; max-height:380px; border-right:0; border-bottom:1px solid var(--author-line,#d9e6e3); }.fast-editor .fast-editor-stage { height:auto; overflow:visible; }.fast-editor-block,.fast-card-preview-panel { width:calc(100% - 24px); margin:12px auto 30px; }.fast-card-preview-canvas { min-height:220px; padding:24px 18px; }.fast-card-preview-label { align-items:flex-start; flex-direction:column; }.fast-stage-head { padding:14px; }.fast-plan-sections { grid-template-columns:1fr; } }
.source-document-layout { grid-template-columns:minmax(0,1fr); }.source-region-layer [data-source-tooltip]::after { position:absolute; z-index:8; left:0; bottom:calc(100% + 6px); width:max-content; max-width:260px; padding:6px 8px; border:1px solid #334155; background:#fff; box-shadow:0 5px 14px rgba(15,23,42,.16); color:#111827; content:attr(data-source-tooltip); font:600 .72rem/1.3 inherit; opacity:0; pointer-events:none; transform:translateY(3px); transition:opacity .12s ease,transform .12s ease; }.source-region-layer [data-source-tooltip]:hover::after,.source-region-layer [data-source-tooltip]:focus-visible::after { opacity:1; transform:translateY(0); }

/* Dark authoring skin. Learner previews retain their own course styling. */
:root {
  --bg: #3d054a;
  --panel: rgba(255, 255, 255, 0.12);
  --panel-strong: rgba(255, 255, 255, 0.16);
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.82);
  --line: rgba(255, 255, 255, 0.35);
  --accent: #c4e4ff;
  --accent-soft: rgba(196, 228, 255, 0.18);
  --accent-deep: #ffffff;
  --author-canvas: rgba(255, 255, 255, 0.08);
  --author-ink: #ffffff;
  --author-muted: rgba(255, 255, 255, 0.82);
  --author-line: rgba(255, 255, 255, 0.35);
  --author-tint: rgba(255, 255, 255, 0.12);
  --author-accent: #c4e4ff;
}

body {
  background: linear-gradient(180deg, #3d054a 0%, #311061 42%, #0a5491 100%);
  color: #ffffff;
  isolation: isolate;
}

/* A subtle geometric watermark gives the authoring shell depth without
   competing with course content or the white LMS player. */
body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background: url("/assets/labyrinth-watermark.svg") center top / 360px 312px repeat;
  content: "";
  filter: none;
  mix-blend-mode: screen;
  opacity: 0.09;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.64) 52%, transparent 94%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.64) 52%, transparent 94%);
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}
.site-header { border-bottom-color: rgba(255, 255, 255, 0.38); }
.site-title,
.site-account-name,
.site-header a,
.site-header button,
.workspace-context.is-setup-context h2 { color: #ffffff; }

/* Keep header navigation distinct from the blue content accent. */
.site-header .header-actions button,
.site-header .header-actions .secondary {
  color: #eabdf2;
}

/* Header actions stay visually simple in both public and connected views. */
.site-header .header-actions button,
.site-header .header-actions button:hover,
.site-header .header-actions button:focus-visible {
  border-bottom-color: transparent;
  text-decoration: none;
}

.panel,
.inset,
.notice,
.progress-card,
.builder-section,
.decision-card,
.subpanel,
.summary-card,
.next-box,
.side-block,
.outline-module,
.theme-option,
.fast-choice,
.fast-brief-grid,
.fast-empty-brief,
.fast-editor,
.fast-card-list,
.fast-editor-stage {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.shell input,
.shell textarea,
.shell select {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.48);
  color: #ffffff;
}
.shell input::placeholder,
.shell textarea::placeholder { color: rgba(255, 255, 255, 0.66); }
.shell select option { background: #3d054a; color: #ffffff; }

.shell .primary,
.shell .secondary,
.shell .ghost,
.shell .toggle-chip {
  border-color: rgba(255, 255, 255, 0.58);
  color: #ffffff;
}
.shell .primary,
.shell .toggle-chip.is-selected {
  background: rgba(196, 228, 255, 0.26);
  border-color: #c4e4ff;
  color: #ffffff;
}

.workspace-context *,
.author-journey *,
.fast-setup * { color: #ffffff; }

/* Keep the first decision focused on the three creation paths. */
.fast-setup > .panel-heading,
.fast-choice > span { display: none; }
.fast-setup { border-radius: 20px; }
.fast-choice { border-radius: 16px; }
.fast-brief-grid,
.fast-empty-brief,
.fast-setup > .panel-footer { border-radius: 14px; }
.fast-choice.is-selected {
  border-color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.setup-stage-list { display: grid; gap: 12px; overflow-anchor: none; }
.setup-stage {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}
.setup-stage > header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 15px 18px;
}
.setup-stage-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 800;
}
.setup-stage > header > div { display: grid; gap: 3px; }
.setup-stage > header strong { font-size: 1rem; }
.setup-stage > header small { color: rgba(255, 255, 255, 0.78); font-size: .8rem; }
.setup-stage-status { color: rgba(255, 255, 255, 0.72); font-size: .72rem; font-weight: 700; }
.setup-stage.is-current { border-color: #ffffff; background: rgba(255, 255, 255, 0.13); }
.setup-stage.is-complete { background: rgba(255, 255, 255, 0.09); }
.setup-stage-edit { min-height: 34px; padding: 6px 11px; }
.setup-stage-body {
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: height 320ms cubic-bezier(.2,.8,.2,1), opacity 180ms ease, transform 320ms cubic-bezier(.2,.8,.2,1);
  will-change: height, opacity, transform;
}
.setup-stage-content { padding: 2px 18px 18px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.setup-stage-content > .form-grid { margin-top: 18px; }
.setup-stage-content footer { display: flex; justify-content: flex-end; margin-top: 20px; }
.setup-stage-body.is-collapsing { opacity: 0; transform: translateY(-8px); }
.fast-setup-final { margin-top: 4px; border-radius: 14px; }
.fast-setup .fast-ai-controls,
.fast-setup .module-count-control {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}
.fast-setup .fast-ai-controls { border-left-width: 4px; }
.fast-orientation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.fast-orientation-group {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 17px;
  border: 1px solid rgba(196, 228, 255, 0.38);
  border-radius: 14px;
  background: rgba(61, 5, 74, 0.42);
}
.fast-orientation-group h3 {
  margin: 0;
  color: #eabdf2;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.fast-orientation-group > label { display: grid; gap: 7px; }
.fast-orientation-group .module-count-control {
  margin: 0;
  border-color: rgba(196, 228, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}
@media (max-width: 760px) { .fast-orientation-grid { grid-template-columns: 1fr; margin-top: 22px; } }
.fast-setup .optional::before,
.fast-setup .optional::after { content: none; }
.fast-setup select { margin-inline-start: 14px; }
.fast-sources > .panel-heading .step-marker { display: none; }
.fast-sources .fast-dropzone {
  border-color: #c4e4ff;
  background: rgba(196, 228, 255, 0.22);
  color: #ffffff;
  border-radius: 16px;
}
.fast-sources { border-radius: 20px; }
.fast-sources .fast-dropzone:hover { background: rgba(196, 228, 255, 0.32); }
.fast-sources .fast-dropzone small,
.fast-sources .fast-drop-icon { color: #ffffff; }
.fast-sources .fast-drop-icon { border-color: #ffffff; }
.fast-sources .fast-dropzone input[type="file"] { display: none !important; }
.fast-sources .panel-footer {
  padding: 20px 0 0;
  border-top-color: rgba(255, 255, 255, 0.28);
  background: transparent;
}
.fast-sources .panel-footer > span,
.fast-sources .helper,
.fast-sources .fast-file-list small,
.fast-sources .fast-analysis-summary p,
.fast-sources .fast-generation-state span { color: rgba(255, 255, 255, 0.78); }
.fast-sources .fast-file-list > span,
.fast-sources .fast-analysis-summary,
.fast-sources .fast-analysis-summary > span,
.fast-sources .fast-analysis-summary p,
.fast-sources .fast-generation-state,
.fast-sources .source-warning,
.fast-sources .source-error {
  border-color: rgba(196, 228, 255, 0.42);
  background: rgba(196, 228, 255, 0.12);
  color: #ffffff;
}
.fast-sources .fast-file-list > span,
.fast-sources .fast-analysis-summary,
.fast-sources .fast-generation-state,
.fast-sources .source-warning,
.fast-sources .source-error { border-radius: 14px; }
.fast-sources .fast-analysis-summary { overflow: hidden; }
.fast-sources .fast-file-list strong,
.fast-sources .fast-analysis-summary > span { color: #ffffff; }
.fast-sources .fast-analysis-summary { background: rgba(196, 228, 255, 0.3); }
.fast-sources .fast-generation-state {
  justify-content: center;
  text-align: center;
}
.fast-sources .fast-generation-state > div:last-child { justify-items: center; }
.fast-sources button.primary,
.fast-sources button.secondary,
.fast-sources button.ghost {
  background: rgba(61, 5, 74, 0.6);
  border-color: rgba(196, 228, 255, 0.7);
  border-radius: 12px;
  color: #ffffff;
}
.fast-sources button.primary,
.fast-sources button.secondary { background: #6c1680; }
.fast-sources button.ghost:hover,
.fast-sources button.ghost:focus-visible,
.fast-sources button.primary:hover,
.fast-sources button.primary:focus-visible,
.fast-sources button.secondary:hover:not(:disabled),
.fast-sources button.secondary:focus-visible { background: #7c2a91; }
.fast-sources [data-fast-open-plan] {
  background: #6c1680;
  border-color: #c4e4ff;
  color: #ffffff;
}
.fast-sources [data-fast-open-plan]:hover,
.fast-sources [data-fast-open-plan]:focus-visible { background: #7c2a91; }
.fast-sources [data-source-analyse]:not(:disabled) {
  background: #6c1680;
  border-color: #c4e4ff;
  color: #ffffff;
}
.shell .fast-sources button.secondary[data-source-analyse]:disabled {
  appearance: none;
  opacity: 1;
  background: #542061 !important;
  border-color: rgba(196, 228, 255, 0.45) !important;
  color: rgba(255, 255, 255, 0.58) !important;
  cursor: not-allowed;
}

.fast-plan { border-radius: 20px; }
.fast-plan .fast-plan-metrics {
  overflow: hidden;
  border: 1px solid rgba(196, 228, 255, 0.42);
  border-radius: 14px;
  background: rgba(196, 228, 255, 0.16);
}
.fast-plan .fast-plan-metrics span {
  border-color: rgba(196, 228, 255, 0.3);
  color: rgba(255, 255, 255, 0.78);
}
.fast-plan .fast-plan-metrics strong { color: #ffffff; }
.fast-plan-list { gap: 14px; }
.fast-plan-module {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-color: rgba(196, 228, 255, 0.42);
  border-radius: 16px;
  background: rgba(196, 228, 255, 0.16);
  color: #ffffff;
}
.fast-plan-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(196, 228, 255, 0.28);
}
.fast-plan-module.is-collapsed .fast-plan-module-head { border-bottom: 0; }
.fast-plan-module-ident,
.fast-plan-section-ident { display: flex; min-width: 0; align-items: center; gap: 9px; }
.fast-plan-module-ident,
.fast-plan-section-ident { flex: 1 1 auto; }
.fast-plan-module-ident > input,
.fast-plan-section-ident > input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #c4e4ff;
}
.fast-plan-drag-handle {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(196, 228, 255, 0.48);
  border-radius: 9px;
  background: rgba(61, 5, 74, 0.58);
  color: #ffffff;
  cursor: grab;
  font: 800 1rem/1 inherit;
}
.fast-plan-drag-handle:active { cursor: grabbing; }
.fast-plan-toggle {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 9px;
  flex: 1 1 auto;
  min-width: 0;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.fast-plan-toggle-indicator {
  grid-column: 1;
  grid-row: 1 / span 3;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  align-self: center;
  margin: 0;
  border: 1px solid rgba(196, 228, 255, 0.78);
  border-radius: 8px;
  background: rgba(196, 228, 255, 0.52);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}
.fast-plan-toggle > span:not(.fast-plan-toggle-indicator),
.fast-plan-toggle > strong,
.fast-plan-toggle > small { grid-column: 2; }
.fast-plan-toggle > span:not(.fast-plan-toggle-indicator),
.fast-plan-section-ident span {
  color: #eabdf2;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.fast-plan-toggle strong { overflow: hidden; color: #ffffff; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.fast-plan-section-title-input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 2px 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}
.fast-plan-section-title-input:hover { border-color: rgba(196, 228, 255, 0.42); }
.fast-plan-section-title-input:focus {
  border-color: #c4e4ff;
  background: rgba(61, 5, 74, 0.68);
  outline: 2px solid rgba(196, 228, 255, 0.22);
  outline-offset: 1px;
}
.fast-plan-section-title-input::placeholder { color: rgba(255, 255, 255, 0.62); }
.fast-plan-toggle small { color: rgba(255, 255, 255, 0.72); font-size: .75rem; }
.fast-plan-module-head .danger-action,
.fast-plan-section .danger-action {
  border-color: rgba(255, 202, 218, 0.66);
  background: rgba(91, 16, 73, 0.42);
  color: #ffffff;
}
.fast-plan-module-body { display: grid; gap: 14px; padding: 16px; }
.fast-plan-module-title { display: grid; gap: 6px; color: rgba(255, 255, 255, 0.82); font-size: .74rem; font-weight: 700; }
.fast-plan-sections { grid-template-columns: 1fr; gap: 11px; }
.fast-plan-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(196, 228, 255, 0.34);
  border-radius: 13px;
  background: rgba(61, 5, 74, 0.34);
  color: #ffffff;
}
/* The legacy section selector used a light background and is more specific. */
.fast-plan-sections > .fast-plan-section {
  background: rgba(61, 5, 74, 0.58);
  border-color: rgba(196, 228, 255, 0.42);
}
.fast-plan-section > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fast-plan-section-ident > div { display: grid; min-width: 0; flex: 1 1 auto; gap: 2px; }
.fast-plan-section > p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: .84rem; line-height: 1.45; }
.fast-plan-types { display: flex; flex-wrap: wrap; gap: 6px; }
.fast-plan-types span {
  padding: 5px 8px;
  border: 1px solid rgba(196, 228, 255, 0.42);
  border-radius: 999px;
  background: rgba(196, 228, 255, 0.18);
  color: #ffffff;
  font-size: .72rem;
}
.fast-plan-types span.is-interactive { border-color: #eabdf2; background: rgba(234, 189, 242, 0.16); }
.fast-plan-types em,
.fast-plan-empty-section { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: .8rem; }
.fast-plan .fast-add-section {
  border-color: rgba(196, 228, 255, 0.58);
  border-radius: 11px;
  background: rgba(61, 5, 74, 0.58);
  color: #ffffff;
}
.fast-plan .fast-add-section:hover,
.fast-plan .fast-add-section:focus-visible { background: #6c1680; }
.fast-plan-bulk-menu {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(234, 189, 242, 0.68);
  border-radius: 14px;
  background: rgba(234, 189, 242, 0.13);
  color: #ffffff;
}
.fast-plan-bulk-menu strong { margin-right: auto; }
.fast-plan-bulk-menu label { display: grid; gap: 5px; color: rgba(255, 255, 255, 0.82); font-size: .72rem; font-weight: 700; }
.fast-plan-bulk-menu select { min-width: 175px; }
.fast-plan .fast-plan-module-title input,
.fast-plan .fast-plan-section-title-input,
.fast-plan .fast-plan-bulk-menu select {
  border-color: rgba(196, 228, 255, 0.52);
  background: rgba(61, 5, 74, 0.72);
  color: #ffffff;
}
.fast-plan .fast-plan-module-title input::placeholder,
.fast-plan .fast-plan-section-title-input::placeholder { color: rgba(255, 255, 255, 0.56); }
.fast-plan-bulk-menu .secondary,
.fast-plan .panel-footer .primary,
.fast-plan .panel-footer .ghost {
  border-color: rgba(196, 228, 255, 0.68);
  border-radius: 11px;
  background: rgba(61, 5, 74, 0.58);
  color: #ffffff;
}
.fast-plan-bulk-menu .secondary,
.fast-plan .panel-footer .primary { background: #6c1680; }
.fast-plan-drop-target { box-shadow: 0 0 0 2px #eabdf2 inset, 0 0 20px rgba(234, 189, 242, 0.2); }
.fast-plan .fast-vigilance-report {
  border-color: rgba(196, 228, 255, 0.5);
  border-left-color: #c4e4ff;
  border-radius: 14px;
  background: rgba(196, 228, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}
.fast-plan .fast-vigilance-report strong { color: #ffffff; }

.fast-generation {
  display: grid;
  gap: 18px;
  border-radius: 20px;
}
.fast-generation .fast-generation-preview {
  overflow: hidden;
  border: 1px solid rgba(196, 228, 255, 0.42);
  border-radius: 14px;
  background: rgba(196, 228, 255, 0.12);
}
.fast-generation .fast-generation-preview > div {
  border-color: rgba(196, 228, 255, 0.3);
  background: rgba(61, 5, 74, 0.26);
  color: #ffffff;
}
.fast-generation .fast-generation-preview span,
.fast-generation .fast-generation-preview strong { color: #ffffff; }
.fast-generation .fast-generation-preview span { color: rgba(255, 255, 255, 0.74); }
.fast-generation .fast-generation-state,
.fast-generation .fast-generation-explainer {
  border: 1px solid rgba(196, 228, 255, 0.42);
  border-radius: 14px;
  background: rgba(196, 228, 255, 0.12);
  color: #ffffff;
}
.fast-generation .fast-generation-state span,
.fast-generation .fast-generation-explainer p { color: rgba(255, 255, 255, 0.78); }
.fast-generation .fast-generation-explainer strong { color: #ffffff; }
.fast-course-progress {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(196, 228, 255, 0.54);
  border-radius: 14px;
  background: rgba(196, 228, 255, 0.12);
  color: #ffffff;
}
.fast-course-progress > header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.fast-course-progress header > div { display: grid; gap: 5px; }
.fast-course-progress header strong { font-size: 1.05rem; }
.fast-course-progress header b { color: #eabdf2; font-size: 1.15rem; }
.fast-course-progress-track {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(196, 228, 255, 0.54);
  border-radius: 999px;
  background: rgba(61, 5, 74, 0.7);
}
.fast-course-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c4e4ff, #eabdf2);
  box-shadow: 0 0 14px rgba(196, 228, 255, 0.55);
  transition: width .55s ease;
}
.fast-course-progress p { margin: 0; color: #ffffff; font-weight: 700; }
.fast-course-progress small { color: rgba(255, 255, 255, 0.76); line-height: 1.45; }
.fast-generation .panel-footer {
  padding: 20px 0 0;
  border-top-color: rgba(255, 255, 255, 0.28);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
}
.fast-generation .panel-footer button {
  border-color: rgba(196, 228, 255, 0.68);
  border-radius: 11px;
  background: rgba(61, 5, 74, 0.58);
  color: #ffffff;
}
.fast-generation .panel-footer .primary { background: #6c1680; }
.fast-generation .panel-footer button:hover,
.fast-generation .panel-footer button:focus-visible { background: #7c2a91; }

@media (max-width: 720px) {
  .fast-course-progress > header { align-items: start; flex-direction: column; gap: 8px; }
  .fast-plan-module-head,
  .fast-plan-section > header { align-items: flex-start; flex-direction: column; }
  .fast-plan-bulk-menu { align-items: stretch; flex-direction: column; }
  .fast-plan-bulk-menu strong { margin-right: 0; }
}

@media (max-width: 640px) {
  .setup-stage > header { grid-template-columns: 34px minmax(0, 1fr); padding: 14px; }
  .setup-stage-status,
  .setup-stage-edit { grid-column: 2; justify-self: start; }
  .setup-stage-content { padding: 2px 14px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .setup-stage-body,
  .setup-stage-content { transition: none; }
}

.workspace-context.is-sources-context > div:first-child { max-width: none; }
.workspace-context.is-sources-context p { white-space: nowrap; }

/* The page title uses the left half; the course context below may use up to
   three quarters of the header before it wraps. */
.workspace-context.is-content-context > div:first-child {
  flex: 0 1 75%;
  width: 75%;
  max-width: none;
}

.workspace-context.is-content-context h2 { max-width: 66.6667%; }

.content-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  max-width: 100%;
  margin: 10px 0 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(.9rem, 1.25vw, 1.08rem);
  line-height: 1.35;
}

.content-course-meta strong { color: #ffffff; font-size: 1em; }
.content-course-meta > span[aria-hidden="true"] { color: #c4e4ff; }

/* Deletion remains visually legible on every dark authoring surface. */
button.danger-action,
button[data-remove],
button[data-remove-section],
button[data-remove-module],
button[data-fast-plan-remove],
button[data-fast-plan-section-remove],
button[data-delete-design-template],
button[data-delete-course],
button[data-delete-course-permanent],
button[data-source-page-remove] {
  border-color: #ffffff !important;
  color: #ffffff !important;
}

button.danger-action:hover,
button.danger-action:focus-visible,
button[data-remove]:hover,
button[data-remove]:focus-visible,
button[data-remove-section]:hover,
button[data-remove-section]:focus-visible,
button[data-remove-module]:hover,
button[data-remove-module]:focus-visible,
button[data-fast-plan-remove]:hover,
button[data-fast-plan-remove]:focus-visible,
button[data-fast-plan-section-remove]:hover,
button[data-fast-plan-section-remove]:focus-visible,
button[data-delete-design-template]:hover,
button[data-delete-design-template]:focus-visible,
button[data-delete-course]:hover,
button[data-delete-course]:focus-visible,
button[data-delete-course-permanent]:hover,
button[data-delete-course-permanent]:focus-visible,
button[data-source-page-remove]:hover,
button[data-source-page-remove]:focus-visible {
  border-color: #ffffff !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

@media (max-width: 1000px) {
  .workspace-context.is-sources-context p { white-space: normal; }
}

@media (max-width: 1160px) {
  .workspace-context.is-content-context > div:first-child {
    flex-basis: auto;
    width: 100%;
  }

  .workspace-context.is-content-context h2 { max-width: none; }
}

/* The card editor belongs to the dark authoring interface. Legacy editor rules
   used a white product canvas, which became unreadable after the global theme
   switched to white typography. Keep learner/LMS rendering outside this scope. */
.product-workspace .fast-editor,
.product-workspace .fast-editor-stage,
.product-workspace .fast-card-list,
.product-workspace .fast-card-list > header,
.product-workspace .fast-card-scroll,
.product-workspace .fast-card-list > footer,
.product-workspace .fast-stage-head,
.product-workspace .fast-card-filters,
.product-workspace .fast-module-tabs,
.product-workspace .fast-module-list {
  background: rgba(61, 5, 74, 0.62);
  border-color: rgba(196, 228, 255, 0.38);
  color: #ffffff;
}

.product-workspace .fast-editor {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.product-workspace .fast-card-list > header,
.product-workspace .fast-stage-head {
  background: rgba(61, 5, 74, 0.82);
}

.product-workspace .fast-card-list h2,
.product-workspace .fast-card-list p,
.product-workspace .fast-stage-head h2,
.product-workspace .fast-stage-head p,
.product-workspace .fast-editor-empty,
.product-workspace .fast-editor-empty h2,
.product-workspace .fast-card-preview-label,
.product-workspace .fast-card-preview-label .eyebrow,
.product-workspace .fast-card-no-result,
.product-workspace .fast-card-list > footer label {
  color: #ffffff;
}

.product-workspace .fast-module-tabs button,
.product-workspace .fast-module-toggle,
.product-workspace .fast-module-section-link,
.product-workspace .fast-card-filters button,
.product-workspace .fast-card,
.product-workspace .fast-section-toggle {
  background: rgba(61, 5, 74, 0.52);
  border-color: rgba(196, 228, 255, 0.28);
  color: #ffffff;
}

.product-workspace .fast-module-tabs button.is-active,
.product-workspace .fast-module-menu.is-active > .fast-module-toggle,
.product-workspace .fast-module-section-link.is-current,
.product-workspace .fast-card-filters button.is-active,
.product-workspace .fast-card-filters button:hover,
.product-workspace .fast-card-filters button:focus-visible,
.product-workspace .fast-card:hover,
.product-workspace .fast-card:focus-visible,
.product-workspace .fast-card.is-selected,
.product-workspace .fast-section-toggle:hover,
.product-workspace .fast-section-toggle:focus-visible {
  background: rgba(196, 228, 255, 0.18);
  border-color: #c4e4ff;
  color: #ffffff;
}

.product-workspace .fast-module-tabs button span,
.product-workspace .fast-card-filters button span,
.product-workspace .fast-card-icon,
.product-workspace .fast-section-toggle > b {
  border-color: rgba(196, 228, 255, 0.58);
  background: rgba(61, 5, 74, 0.72);
  color: #ffffff;
}

.product-workspace .fast-card-icon.is-interactive,
.product-workspace .fast-card-filters button.is-active span {
  background: rgba(196, 228, 255, 0.18);
  color: #ffffff;
}

.product-workspace .fast-card small,
.product-workspace .fast-section-toggle > small,
.product-workspace .fast-card-preview-label > span:last-child {
  color: rgba(255, 255, 255, 0.76);
}

.product-workspace .fast-card-preview-panel {
  color: #ffffff;
}

.product-workspace .fast-card-preview-canvas {
  min-height: 320px;
  border-color: rgba(196, 228, 255, 0.4);
  background: rgba(61, 5, 74, 0.66);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  color: #ffffff;
}

.product-workspace .fast-card-preview-canvas .learner-text,
.product-workspace .fast-card-preview-canvas .learner-mixed,
.product-workspace .fast-card-preview-canvas .learner-quote,
.product-workspace .fast-card-preview-canvas .learner-callout,
.product-workspace .fast-card-preview-canvas .learner-quiz,
.product-workspace .fast-card-preview-canvas .interactive-preview,
.product-workspace .fast-card-preview-canvas .learner-document,
.product-workspace .fast-card-preview-canvas .learner-media,
.product-workspace .fast-card-preview-canvas .media-placeholder {
  color: #ffffff;
}

.product-workspace .fast-card-preview-canvas .learner-quiz,
.product-workspace .fast-card-preview-canvas .learner-callout,
.product-workspace .fast-card-preview-canvas .learner-quote,
.product-workspace .fast-card-preview-canvas .learner-document,
.product-workspace .fast-card-preview-canvas .learner-media,
.product-workspace .fast-card-preview-canvas .media-placeholder,
.product-workspace .fast-card-preview-canvas .tabs,
.product-workspace .fast-card-preview-canvas .reveal-item,
.product-workspace .fast-card-preview-canvas .accordion-item,
.product-workspace .fast-card-preview-canvas .flip-card,
.product-workspace .fast-card-preview-canvas .ordering-list li {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(196, 228, 255, 0.38) !important;
  color: #ffffff !important;
}

.product-workspace .fast-card-preview-canvas .learner-quiz label,
.product-workspace .fast-card-preview-canvas .tab-button,
.product-workspace .fast-card-preview-canvas .reveal-item button {
  background: rgba(61, 5, 74, 0.7) !important;
  border-color: rgba(196, 228, 255, 0.38) !important;
  color: #ffffff !important;
}

.product-workspace .fast-card-preview-canvas .learner-block,
.product-workspace .fast-card-preview-canvas .tab-panel,
.product-workspace .fast-card-preview-canvas .accordion-entry > span,
.product-workspace .fast-card-preview-canvas .reveal-item p,
.product-workspace .fast-card-preview-canvas .hotspot-stage {
  background: rgba(61, 5, 74, 0.54) !important;
  border-color: rgba(196, 228, 255, 0.35) !important;
  color: #ffffff !important;
}

.product-workspace .fast-card-visual-hint,
.product-workspace .fast-card-source-media,
.product-workspace .course-visual-proposal,
.product-workspace .course-visual-status {
  border-color: rgba(196, 228, 255, 0.62);
  background: rgba(196, 228, 255, 0.14);
  color: #ffffff;
}

.product-workspace .fast-card-visual-hint span,
.product-workspace .fast-card-source-media span,
.product-workspace .course-visual-proposal .helper,
.product-workspace .course-visual-status span,
.product-workspace .fast-card-source-media strong,
.product-workspace .course-visual-proposal strong,
.product-workspace .course-visual-status strong {
  color: #ffffff;
}

.product-workspace .fast-source-media-action,
.product-workspace .fast-editor button.primary,
.product-workspace .fast-editor button.secondary,
.product-workspace .fast-editor button.ghost {
  border-color: rgba(196, 228, 255, 0.72);
  background: rgba(61, 5, 74, 0.74);
  color: #ffffff;
}

.product-workspace .fast-editor button.primary,
.product-workspace .fast-source-media-action {
  background: #6c1680;
}

.product-workspace .fast-editor button:hover:not(:disabled),
.product-workspace .fast-editor button:focus-visible {
  background: #7c2a91;
  color: #ffffff;
}

.product-workspace .fast-editor button:disabled {
  background: rgba(61, 5, 74, 0.48);
  border-color: rgba(196, 228, 255, 0.28);
  color: rgba(255, 255, 255, 0.48);
}

.product-workspace .fast-editor select,
.product-workspace .fast-editor input,
.product-workspace .fast-editor textarea {
  border-color: rgba(196, 228, 255, 0.52);
  background: rgba(61, 5, 74, 0.74);
  color: #ffffff;
}

.product-workspace .fast-editor select option {
  background: #3d054a;
  color: #ffffff;
}

.product-workspace .fast-module-list {
  display: grid;
  gap: 7px;
  max-height: min(250px, 34%);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(196, 228, 255, 0.38);
}

.product-workspace .fast-module-menu {
  overflow: hidden;
  border: 1px solid rgba(196, 228, 255, 0.3);
  border-radius: 10px;
  background: rgba(61, 5, 74, 0.48);
}

.product-workspace .fast-module-toggle {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  width: 100%;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 0;
  border-radius: 0;
  text-align: left;
  font: inherit;
  cursor: default;
}

.product-workspace .fast-module-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.product-workspace .fast-module-expand {
  display: grid;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.product-workspace .fast-module-number,
.product-workspace .fast-module-expand-toggle > b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(196, 228, 255, 0.58);
  border-radius: 50%;
  background: rgba(61, 5, 74, 0.72);
  color: #ffffff;
  font-size: .69rem;
  font-weight: 800;
  line-height: 1;
}

.product-workspace .fast-module-title,
.product-workspace .fast-module-section-link strong {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: .75rem;
  font-weight: 700;
  text-align: left;
  overflow-wrap: anywhere;
}

.product-workspace .fast-module-title {
  cursor: text;
}

.product-workspace .fast-module-toggle small,
.product-workspace .fast-module-section-link small,
.product-workspace .fast-module-section-links > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: .66rem;
}

.product-workspace .fast-module-section-links {
  display: grid;
  gap: 1px;
  padding: 2px 5px 6px 38px;
  border-top: 1px solid rgba(196, 228, 255, 0.2);
}

.product-workspace .fast-module-section-link {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  width: 100%;
  padding: 7px 6px;
  border: 0;
  border-radius: 7px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.product-workspace .fast-module-section-link > span {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid rgba(196, 228, 255, 0.48);
  border-radius: 50%;
  color: #ffffff;
  font-size: .6rem;
}

.product-workspace .fast-module-section-link:hover,
.product-workspace .fast-module-section-link:focus-visible {
  background: rgba(196, 228, 255, 0.18);
  outline: none;
}

/* The simulator reproduces the neutral LMS player. It must never inherit
   the purple authoring interface or its white text defaults. */
.lms-test .lms-theme-canvas {
  color: var(--author-ink, #111111);
}

.lms-test .lms-scroll-main,
.lms-test .lms-scroll-content,
.lms-test .lms-scroll-content .learner-text,
.lms-test .lms-scroll-content .learner-mixed,
.lms-test .lms-scroll-content .learner-quote,
.lms-test .lms-scroll-content .learner-callout,
.lms-test .lms-scroll-content .learner-quiz,
.lms-test .lms-scroll-content .interactive-preview,
.lms-test .lms-scroll-content .learner-document,
.lms-test .lms-scroll-content .learner-media,
.lms-test .lms-scroll-content .media-placeholder {
  color: var(--author-ink, #111111);
}

.lms-test .lms-scroll-content .learner-quote figcaption,
.lms-test .lms-scroll-content .helper,
.lms-test .lms-scroll-content .quiz-intro {
  color: var(--author-muted, #555555);
}

/* Card editor: the left column is a course outline, not a second workspace.
   It stays compact and scrolls independently while the learner rendering flows
   through every card in the main panel. */
.product-workspace .fast-editor.fast-editor-overview {
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
  height: var(--viewport-fit-height, min(810px, calc(100vh - 180px)));
  min-height: 0;
}

.product-workspace .fast-editor-overview .fast-card-list {
  min-height: 0;
}

/* The navigator header no longer contains the course title: let its divider
   follow the cards summary instead of preserving the former empty height. */
.product-workspace .fast-editor-overview .fast-card-list > header {
  min-height: 0;
  padding-bottom: 14px;
}

.product-workspace .fast-editor-overview .fast-element-palette {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border-top: 1px solid rgba(196, 228, 255, 0.38);
  background: rgba(61, 5, 74, 0.82);
}

.product-workspace .fast-element-palette > .eyebrow {
  color: #c4e4ff;
}

.product-workspace .fast-element-palette-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.product-workspace .fast-element-palette-items button {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 42px;
  padding: 6px 4px;
  border: 1px solid rgba(196, 228, 255, 0.54);
  border-radius: 9px;
  background: rgba(108, 22, 128, 0.52);
  color: #ffffff;
  cursor: grab;
  font: inherit;
  text-align: left;
}

.product-workspace .fast-element-palette-items button:active {
  cursor: grabbing;
}

.product-workspace .fast-element-palette-items button.is-dragging {
  cursor: grabbing;
  opacity: .58;
  transform: scale(.98);
}

.product-workspace .fast-element-palette-items button:hover,
.product-workspace .fast-element-palette-items button:focus-visible {
  border-color: #ffffff;
  background: rgba(196, 228, 255, 0.18);
  outline: none;
}

.product-workspace .fast-element-palette-items strong {
  color: #ffffff;
  font-size: .68rem;
  line-height: 1.15;
  text-align: center;
}

.product-workspace .fast-editor-overview .fast-module-list {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  grid-auto-rows: max-content;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px;
}

.product-workspace .fast-editor-overview .fast-module-menu {
  height: auto;
  min-height: max-content;
  max-height: none;
  overflow: visible;
  border-color: rgba(196, 228, 255, 0.42);
  background: rgba(61, 5, 74, 0.68);
}

.product-workspace .fast-editor-overview .fast-module-toggle {
  grid-template-columns: 28px minmax(0, 1fr) 24px;
  min-height: 57px;
  padding: 10px;
}

.product-workspace .fast-editor-overview .fast-module-expand-toggle > b {
  font-size: 1rem;
}

.product-workspace .fast-editor-overview .fast-module-section-links {
  display: grid;
  gap: 7px;
  min-height: max-content;
  max-height: none;
  padding: 8px 8px 10px 42px;
}

.product-workspace .fast-editor-overview .fast-tree-section {
  height: auto;
  min-height: max-content;
  max-height: none;
  overflow: hidden;
  border: 1px solid rgba(196, 228, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.product-workspace .fast-editor-overview .fast-tree-section-heading {
  display: grid;
  gap: 2px;
  padding: 9px;
  color: #ffffff;
  text-align: left;
  font: inherit;
}

.product-workspace .fast-editor-overview .fast-tree-section-heading > span,
.product-workspace .fast-editor-overview .fast-tree-section-heading > small {
  color: rgba(255, 255, 255, 0.72);
  font-size: .65rem;
}

.product-workspace .fast-editor-overview .fast-tree-section-title {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: .74rem;
  font-weight: 700;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: text;
}

.product-workspace .fast-inline-title-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 27px;
  padding: 4px 6px;
  border: 1px solid rgba(196, 228, 255, 0.9);
  border-radius: 6px;
  outline: none;
  background: rgba(61, 5, 74, 0.82);
  color: #ffffff;
  font: 700 .75rem/1.2 var(--site-font, inherit);
}

.product-workspace .fast-inline-title-input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(196, 228, 255, 0.24);
}

.product-workspace .fast-editor-overview .fast-tree-cards {
  display: grid;
  gap: 1px;
  min-height: max-content;
  max-height: none;
  padding: 4px;
  border-top: 1px solid rgba(234, 189, 242, 0.9);
  background: rgba(217, 153, 229, 0.76);
}

.product-workspace .fast-editor-overview .fast-tree-card {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 7px;
  width: 100%;
  padding: 7px 6px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: #ffffff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.product-workspace .fast-editor-overview .fast-tree-card > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.product-workspace .fast-editor-overview .fast-tree-card strong {
  overflow: hidden;
  color: #ffffff;
  font-size: .71rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-workspace .fast-editor-overview .fast-tree-card small,
.product-workspace .fast-editor-overview .fast-tree-empty {
  color: rgba(255, 255, 255, 0.9);
  font-size: .66rem;
}

.product-workspace .fast-editor-overview .fast-tree-cards .fast-card-icon {
  border-color: rgba(61, 5, 74, 0.46);
  background: rgba(255, 255, 255, 0.42);
  color: #3d054a;
}

.product-workspace .fast-editor-overview .fast-tree-cards .fast-card-icon.is-interactive {
  border-color: rgba(61, 5, 74, 0.62);
  background: rgba(61, 5, 74, 0.14);
  color: #3d054a;
}

.product-workspace .fast-editor-overview .fast-tree-empty {
  margin: 0;
  padding: 9px;
}

.product-workspace .fast-editor-overview .fast-tree-card:hover,
.product-workspace .fast-editor-overview .fast-tree-card:focus-visible,
.product-workspace .fast-editor-overview .fast-tree-card.is-selected {
  border-left-color: #3d054a;
  background: rgba(255, 255, 255, 0.5);
  outline: none;
}

.product-workspace .fast-editor-overview .fast-editor-stage {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(61, 5, 74, 0.45);
}

.visual-guarantee-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(196, 228, 255, 0.55);
  border-radius: 12px;
  background: rgba(196, 228, 255, 0.1);
}

.visual-guarantee-control input { margin-top: 4px; }
.visual-guarantee-control span { display: grid; gap: 4px; }
.visual-guarantee-control small { color: rgba(255, 255, 255, 0.82); line-height: 1.45; }

.product-workspace .fast-editor-overview .fast-stage-head {
  position: sticky;
  z-index: 3;
  top: 0;
  min-height: 88px;
}

.product-workspace .fast-overview-stack {
  display: grid;
  gap: 44px;
  width: min(1220px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  min-width: 0;
  margin: 24px auto 70px;
}

.product-workspace .fast-overview-module {
  display: grid;
  gap: 28px;
  min-width: 0;
  max-width: 100%;
}

.product-workspace .fast-overview-module-heading {
  display: grid;
  gap: 4px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(196, 228, 255, 0.5);
}

.product-workspace .fast-overview-module-heading > span,
.product-workspace .fast-overview-section > header > span,
.product-workspace .fast-overview-type {
  color: #c4e4ff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.product-workspace .fast-overview-module-heading h2,
.product-workspace .fast-overview-section h3,
.product-workspace .fast-overview-block h4 {
  margin: 0;
  color: #ffffff;
}

.product-workspace .fast-overview-module-heading h2 { font-size: 1.38rem; }

.product-workspace .fast-overview-title-input {
  width: 100%;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid rgba(196, 228, 255, 0.58);
  border-radius: 7px;
  background: rgba(61, 5, 74, 0.72);
  color: #ffffff;
  font: 700 1.28rem/1.25 inherit;
}

.product-workspace .fast-overview-title-input.is-section {
  font-size: 1rem;
}

.product-workspace .fast-overview-title-input:focus {
  border-color: #ffffff;
  outline: 2px solid rgba(196, 228, 255, 0.38);
  outline-offset: 2px;
}

.product-workspace .fast-overview-section {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.product-workspace .fast-overview-section > header {
  display: grid;
  gap: 3px;
}

.product-workspace .fast-overview-section h3 { font-size: 1.02rem; }

.product-workspace .fast-overview-block {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(196, 228, 255, 0.36);
  border-radius: 13px;
  background: rgba(61, 5, 74, 0.66);
  scroll-margin-top: 105px;
  /* Keep long courses scrollable without laying out every off-screen card. */
  content-visibility: auto;
  contain-intrinsic-size: auto 380px;
}

.product-workspace .fast-overview-block.is-selected {
  border-color: #c4e4ff;
  box-shadow: 0 0 0 2px rgba(196, 228, 255, 0.32), 0 12px 28px rgba(0, 0, 0, 0.18);
}

.product-workspace .fast-palette-drop-target {
  box-shadow: 0 0 0 2px #c4e4ff inset, 0 0 22px rgba(196, 228, 255, 0.24);
}

.product-workspace .fast-card-list .fast-palette-drop-target {
  outline: 2px solid #ffffff;
  outline-offset: -2px;
}

.product-workspace .fast-overview-block > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.product-workspace .fast-overview-block > header > div:first-child {
  display: grid;
  gap: 5px;
}

.product-workspace .fast-overview-block h4 { font-size: 1rem; }

.product-workspace .fast-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.product-workspace .fast-overview-select {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(196, 228, 255, 0.62);
  border-radius: 7px;
  background: rgba(61, 5, 74, 0.76);
  color: #ffffff;
  font: 700 .72rem/1 inherit;
}

.product-workspace .fast-overview-select:hover,
.product-workspace .fast-overview-select:focus-visible,
.product-workspace .fast-overview-block.is-selected .fast-overview-select {
  border-color: #ffffff;
  background: rgba(196, 228, 255, 0.22);
  outline: none;
}

.product-workspace .fast-overview-canvas {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 0;
  padding: clamp(22px, 4vw, 48px);
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.product-workspace .fast-overview-canvas img,
.product-workspace .fast-overview-canvas video,
.product-workspace .fast-overview-canvas audio,
.product-workspace .fast-overview-canvas iframe,
.product-workspace .fast-overview-canvas .learner-image,
.product-workspace .fast-overview-canvas .learner-video,
.product-workspace .fast-overview-canvas .learner-mixed,
.product-workspace .fast-overview-canvas .interactive-preview,
.product-workspace .fast-overview-canvas .learner-quiz,
.product-workspace .fast-overview-canvas .lms-audio-player {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.product-workspace .fast-overview-editor,
.product-workspace .fast-overview-editor .builder-chapter,
.product-workspace .fast-overview-editor .form-grid,
.product-workspace .fast-overview-editor .interactive-editor,
.product-workspace .fast-overview-editor .course-visual-proposal,
.product-workspace .fast-overview-editor .course-visual-status {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.product-workspace .fast-overview-editor input,
.product-workspace .fast-overview-editor textarea,
.product-workspace .fast-overview-editor select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.product-workspace .fast-overview-editor .builder-chapter,
.product-workspace .fast-overview-editor .builder-heading,
.product-workspace .fast-overview-editor .block-actions {
  border-color: rgba(196, 228, 255, 0.38);
  background: rgba(61, 5, 74, 0.72);
  color: #ffffff;
}

.product-workspace .fast-overview-editor .builder-chapter label,
.product-workspace .fast-overview-editor .builder-heading strong,
.product-workspace .fast-overview-editor .optional {
  color: #ffffff;
}

/* Editing fields are intentionally light so authors never type white on white. */
.product-workspace .fast-overview-editor input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
.product-workspace .fast-overview-editor textarea,
.product-workspace .fast-overview-editor select,
.product-workspace .fast-overview-editor .rich-editor {
  border-color: rgba(10, 84, 145, 0.34);
  background: #eef4ff;
  color: #17233a;
}

.product-workspace .fast-overview-editor .rich-toolbar,
.product-workspace .fast-overview-editor .rich-toolbar button,
.product-workspace .fast-overview-editor .rich-toolbar select,
.product-workspace .fast-overview-editor .rich-size-label {
  border-color: rgba(10, 84, 145, 0.34);
  background: #dfeaff;
  color: #17233a;
}

.product-workspace .fast-overview-editor .rich-editor :is(p, ul, ol, li, strong, em, u, a, span) {
  color: inherit;
}

.product-workspace .fast-overview-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(196, 228, 255, 0.45);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.product-workspace .fast-overview-footer {
  display: flex;
  justify-content: flex-end;
  width: min(1220px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  margin: -34px auto 44px;
}

@media (max-width: 1050px) {
  .product-workspace .fast-editor.fast-editor-overview { grid-template-columns: 280px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .product-workspace .fast-editor.fast-editor-overview { display: grid; grid-template-columns: 1fr; height: auto; min-height: 0; }
  .product-workspace .fast-editor-overview .fast-card-list { max-height: 430px; }
  .product-workspace .fast-editor-overview .fast-module-list { max-height: 280px; }
  .product-workspace .fast-editor-overview .fast-editor-stage { overflow: visible; }
  .product-workspace .fast-overview-stack { width: calc(100% - 24px); margin: 16px auto 36px; }
  .product-workspace .fast-overview-block > header { align-items: stretch; flex-direction: column; }
  .product-workspace .fast-overview-actions { justify-content: flex-start; }
}

/* One authoring palette for every management screen. Learner previews and the
   LMS are deliberately excluded: their canvas represents the final course. */
.shell .panel:not(.lms-test):not(.learner-preview),
.shell .subpanel,
.shell .summary-card,
.shell .summary-row,
.shell .library-card,
.shell .history-item,
.shell .quality-item,
.shell .quality-ok,
.shell .next-box,
.shell .theme-option,
.shell .theme-color-sample,
.shell .attached-file,
.shell .source-error,
.shell .source-warning,
.shell .source-proposal,
.shell .source-proposal-section,
.shell .original-ai-summary > div,
.shell .original-ai-upload,
.shell .original-ai-brief,
.shell .original-ai-roadmap,
.shell .original-ai-pending,
.shell .decision-card,
.shell .creation-choice-card,
.shell .export-panel {
  border-color: rgba(196, 228, 255, 0.42);
  background: rgba(61, 5, 74, 0.62);
  color: #ffffff;
}

.shell .panel:not(.lms-test):not(.learner-preview) :is(h2, h3, h4, strong, p, span, small, label),
.shell .subpanel :is(h2, h3, h4, strong, p, span, small, label),
.shell .library-card :is(strong, p, span, small),
.shell .history-item :is(strong, p, span, small),
.shell .quality-item :is(strong, p, span, small),
.shell .next-box :is(strong, p, span, small),
.shell .theme-option :is(strong, p, span, small, label) {
  color: #ffffff;
}

.utility-workspace:not(.lms-workspace) :is(.library-card, .history-item, .quality-item, .quality-ok, .summary-card, .theme-option, .theme-color-sample, .attached-file) {
  border-radius: 14px;
}

.utility-workspace:not(.lms-workspace) button:not(:disabled),
.visual-workspace button:not(:disabled),
.shell .modal-card button:not(:disabled) {
  border-color: rgba(196, 228, 255, 0.72);
  background: rgba(61, 5, 74, 0.74);
  color: #ffffff;
}

.utility-workspace:not(.lms-workspace) button.primary,
.visual-workspace button.primary,
.shell .modal-card button.primary {
  background: #6c1680;
}

.utility-workspace:not(.lms-workspace) button:hover:not(:disabled),
.utility-workspace:not(.lms-workspace) button:focus-visible,
.visual-workspace button:hover:not(:disabled),
.visual-workspace button:focus-visible,
.shell .modal-card button:hover:not(:disabled),
.shell .modal-card button:focus-visible {
  background: #7c2a91;
  color: #ffffff;
}

.shell .modal-card,
.shell .format-editor-panel,
.shell .format-preview-panel,
.shell .format-preview,
.shell .block-preview-canvas,
.shell .illustration-style,
.shell .illustration-candidate,
.shell .illustration-text-option,
.shell .illustration-placement-option,
.shell .illustration-source-preview,
.shell .illustration-mode-tabs button {
  border-color: rgba(196, 228, 255, 0.45);
  background: #3d054a;
  color: #ffffff;
}

.shell .modal-card :is(h2, h3, h4, strong, p, span, small, label),
.shell .format-editor-panel > strong,
.shell .format-preview-panel > strong,
.shell .illustration-style span,
.shell .illustration-candidate span,
.shell .illustration-text-option small,
.shell .illustration-placement-option span {
  color: #ffffff;
}

/* The visual authoring chrome follows the same palette, while the imported
   document artboard retains its original appearance for faithful comparison. */
.visual-workspace .visual-authoring,
.visual-workspace .visual-toolbox,
.visual-workspace .visual-canvas-head,
.visual-workspace .canvas-section-nav,
.visual-workspace .canvas-module-tabs > button,
.visual-workspace .visual-mode-switch,
.visual-workspace .visual-mode-switch button,
.visual-workspace .canvas-block-card,
.visual-workspace .canvas-block-preview,
.visual-workspace .source-document-page > header,
.visual-workspace .source-element-list,
.visual-workspace .source-document-notice,
.visual-workspace .source-preview-unavailable,
.visual-workspace .composition-notice,
.visual-workspace .composition-inspector {
  border-color: rgba(196, 228, 255, 0.42);
  background: rgba(61, 5, 74, 0.62);
  color: #ffffff;
}

.visual-workspace :is(.visual-authoring, .visual-toolbox, .visual-canvas-head, .canvas-section-nav, .canvas-module-tabs, .canvas-block-card, .source-document-page > header, .source-element-list, .source-document-notice, .source-preview-unavailable, .composition-notice, .composition-inspector) :is(h2, h3, h4, strong, p, span, small, label) {
  color: #ffffff;
}

.workspace-context.is-content-context .ghost,
.workspace-context.is-content-context .secondary {
  border-color: rgba(196, 228, 255, 0.72);
  background: rgba(61, 5, 74, 0.74);
  color: #ffffff;
}

.workspace-context.is-content-context .secondary { background: #6c1680; }
.workspace-context.is-content-context button:hover,
.workspace-context.is-content-context button:focus-visible { background: #7c2a91; color: #ffffff; }

/* The LMS is a learner-facing, white-label player. Keep it independent from
   the dark authoring shell so a course without a design always stays legible. */
.shell:has(.lms-workspace) {
  position: relative;
}

.shell:has(.lms-workspace)::after {
  position: fixed;
  z-index: 10;
  inset: 0;
  background: rgba(2, 3, 12, 0.62);
  backdrop-filter: brightness(0.48) saturate(0.78);
  content: "";
  pointer-events: none;
}

.workspace-grid.utility-workspace.lms-workspace {
  position: relative;
  z-index: 11;
  align-items: start;
}

.shell .lms-test.panel.main-card {
  width: min(1480px, 100%);
  margin: 0 auto;
  --ink: #111111;
  --muted: #555555;
  --line: #d9d9d9;
  --author-ink: #111111;
  --author-muted: #555555;
  --author-line: #d9d9d9;
  background: #ffffff;
  border-color: #d9d9d9;
  color: #111111;
  box-shadow: 0 32px 88px rgba(0, 0, 0, 0.68);
}

.lms-test .lms-preview-toolbar,
.lms-test .lms-preview-toolbar .eyebrow,
.lms-test .lms-theme-canvas,
.lms-test .lms-scroll-layout,
.lms-test .lms-scroll-sidebar,
.lms-test .lms-scroll-main,
.lms-test .lms-scroll-content,
.lms-test .lms-scroll-main > header,
.lms-test .lms-theme-footer {
  color: #111111;
}

.lms-test .lms-preview-toolbar {
  padding-bottom: 14px;
  border-bottom: 1px solid #d9d9d9;
}

.lms-test .lms-preview-toolbar .eyebrow { color: #555555; }

.lms-test :is(.ghost, .secondary) {
  border-color: #555555;
  background: #ffffff;
  color: #111111;
}

.lms-test :is(.ghost, .secondary):hover:not(:disabled),
.lms-test :is(.ghost, .secondary):focus-visible {
  background: #f1f1f1;
  color: #111111;
}

.lms-test .primary {
  border-color: var(--accent, #111111);
  background: var(--accent, #111111);
  color: var(--theme-primary-text, #ffffff);
}

.lms-test .primary:hover:not(:disabled),
.lms-test .primary:focus-visible {
  background: var(--accent-deep, #111111);
  color: var(--theme-primary-text, #ffffff);
}

.lms-test :is(.primary, .lms-course-summary, .lms-audio-toggle) :is(span, strong, small, b) {
  color: inherit;
}

.lms-test :is(button, .lms-nav-item):disabled {
  border-color: #cccccc;
  background: #f3f3f3;
  color: #777777;
}

/* Matching activities use native selects. Reset the authoring form palette so
   both the selected answer and every proposed answer stay readable in LMS. */
.lms-test select,
.lms-test select option {
  border-color: #777777;
  background: #ffffff;
  color: #111111;
}

.lms-test .learner-block,
.lms-test .learner-block :is(.learner-text, .learner-mixed, .learner-quote, .learner-callout, .learner-quiz, .interactive-preview, .learner-document, .learner-media, .media-placeholder),
.lms-test .learner-quiz label,
.lms-test .tabs,
.lms-test .tab-panel,
.lms-test .reveal-item,
.lms-test .accordion-entry,
.lms-test .flip-card,
.lms-test .ordering-list li {
  color: #111111;
}

.lms-test .learner-quiz label,
.lms-test .tab-panel,
.lms-test .reveal-item,
.lms-test .accordion-entry,
.lms-test .flip-card,
.lms-test .ordering-list li {
  border-color: #d9d9d9;
  background: #ffffff;
}

.lms-test .helper,
.lms-test .quiz-intro,
.lms-test .learner-quote figcaption,
.lms-test .learner-document small {
  color: #555555;
}

/* All ordinary actions share the same softened shape. Round controls that
   convey a point on a visual remain circular so their meaning stays clear. */
button:not(.hotspot-marker):not(.source-audio-marker):not(.source-video-marker):not(.source-image-marker):not(.source-region-marker):not(.source-unlinked-text-marker) {
  border-radius: 10px !important;
}
