.acb {
  --acb-primary: var(--color-violet-600, #6D28D9);
  --acb-primary-hover: var(--color-violet-500, #8B5CF6);
  --acb-primary-deep: var(--color-violet-700, #5B21B6);
  --acb-primary-soft: var(--color-violet-100, #F3E8FF);
  --acb-bg: var(--bg, #FFFBFE);
  --acb-card: var(--bg-card, #FFFFFF);
  --acb-head: var(--fg, #111827);
  --acb-body: var(--fg-body, #334155);
  --acb-muted: var(--fg-muted, #64748B);
  --acb-border: var(--border-strong, #E2E8F0);
  --acb-ok: var(--color-emerald-600, #059669);
  --acb-ok-soft: var(--color-emerald-100, #D1FAE5);
  --acb-warn: var(--color-amber-600, #D97706);
  --acb-danger: #DC2626;
  --acb-r: var(--radius-lg, 16px);
  --acb-r-sm: var(--radius-md, 12px);
  --acb-shadow: var(--shadow-md, 0 4px 12px rgba(15,23,42,.05), 0 2px 4px rgba(15,23,42,.04));
  --acb-shadow-lg: var(--shadow-xl, 0 24px 56px rgba(15,23,42,.12), 0 8px 16px rgba(15,23,42,.06));
  --acb-fast: var(--dur-fast, 150ms);
  position: relative;
  background: var(--acb-card);
  border: 1px solid var(--acb-border);
  border-radius: var(--acb-r);
  box-shadow: var(--acb-shadow-lg);
  color: var(--acb-body);
  font-size: 14px;
  overflow: clip;
}
.acb h3, .acb h4 { color: var(--acb-head); font-family: var(--font-display); letter-spacing: -0.01em; }
.acb :focus-visible { outline: 3px solid var(--color-violet-500, #8B5CF6); outline-offset: 2px; border-radius: 8px; }
.acb .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.acb svg, .acb i[data-lucide] { width: 15px; height: 15px; flex: none; }

/* ---------- buttons ---------- */
.acb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: var(--font-sans); font-weight: 600; font-size: 13.5px;
  height: 40px; padding: 0 16px; border-radius: var(--acb-r-sm);
  transition: background var(--acb-fast) ease, border-color var(--acb-fast) ease, box-shadow var(--acb-fast) ease;
}
.acb-btn-sm { height: 34px; padding: 0 12px; font-size: 12.5px; }
.acb-btn-primary { background: var(--acb-primary); color: #fff; }
.acb-btn-primary:hover { background: var(--acb-primary-hover); }
.acb-btn-primary:disabled { background: var(--acb-border); color: var(--acb-muted); cursor: not-allowed; }
.acb-btn-secondary { background: var(--acb-card); color: var(--acb-head); border-color: var(--acb-border); }
.acb-btn-secondary:hover { border-color: var(--acb-primary); color: var(--acb-primary); }
.acb-btn-ghost { background: transparent; color: var(--acb-muted); }
.acb-btn-ghost:hover { color: var(--acb-head); background: var(--acb-bg); }
.acb-ibtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--acb-muted); cursor: pointer;
}
.acb-ibtn:hover { background: var(--acb-bg); color: var(--acb-head); border-color: var(--acb-border); }
.acb-ibtn:disabled { opacity: .35; cursor: default; }
.acb-ibtn.danger:hover { color: var(--acb-danger); border-color: currentColor; }
.acb-ibtn svg { width: 14px; height: 14px; }
.acb-linkbtn { background: none; border: 0; padding: 0; color: var(--acb-primary); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* ---------- badge / integrity labels ---------- */
.acb-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  padding: 3px 10px; border-radius: 999px;
  background: var(--acb-primary-soft); color: var(--acb-primary-deep);
  border: 1px solid color-mix(in srgb, var(--acb-primary) 25%, transparent);
}
.acb-generic-note {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--color-amber-100, #FEF3C7); color: #92400E;
  border: 1px solid #FDE68A; border-radius: var(--acb-r-sm);
  padding: 10px 12px; font-size: 13px; margin: 0 0 12px;
}
.acb-generic-note svg { margin-top: 2px; }

/* ---------- top bar ---------- */
.acb-topbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--acb-border);
  background: var(--acb-bg);
}
.acb-mark { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--acb-head); font-family: var(--font-display); }
.acb-mark svg { color: var(--acb-primary); }
.acb-coursename { font-weight: 600; color: var(--acb-muted); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acb-status {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 2px 9px; border-radius: 999px; background: var(--acb-border); color: var(--acb-body);
}
.acb-status.is-published { background: var(--acb-ok-soft); color: var(--acb-ok); }
.acb-topbar-actions { margin-left: auto; display: inline-flex; gap: 6px; }

/* ---------- step tabs ---------- */
.acb-steps-wrap { border-bottom: 1px solid var(--acb-border); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.acb-steps { display: flex; gap: 2px; padding: 8px 10px; min-width: max-content; }
.acb-step {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid transparent; background: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 13px; color: var(--acb-muted);
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
}
.acb-step i.n {
  font-style: normal; font-family: var(--font-mono); font-size: 10.5px;
  width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--acb-border); color: var(--acb-body);
}
.acb-step:hover { color: var(--acb-head); background: var(--acb-bg); }
.acb-step.on { background: var(--acb-primary-soft); color: var(--acb-primary-deep); border-color: color-mix(in srgb, var(--acb-primary) 25%, transparent); }
.acb-step.on i.n { background: var(--acb-primary); color: #fff; }
.acb-step.is-gated { opacity: .5; }

/* ---------- body layout ---------- */
.acb-body { display: grid; grid-template-columns: 230px minmax(0, 1fr) 230px; min-height: 540px; }
.acb-rail { border-right: 1px solid var(--acb-border); background: var(--acb-bg); padding: 14px; overflow-y: auto; max-height: 720px; }
.acb-rail-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--acb-muted); margin-bottom: 10px; }
.acb-rail-toggle { display: none; }
.acb-tree-empty { font-size: 12.5px; color: var(--acb-muted); }
.acb-tree-mod { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12.5px; color: var(--acb-head); margin: 12px 0 4px; }
.acb-tree-mod.asm { color: var(--acb-muted); font-weight: 600; }
.acb-tree-n { font-family: var(--font-mono); font-size: 10.5px; color: var(--acb-primary); }
.acb-tree-lessons { list-style: none; margin: 0; padding: 0 0 0 4px; }
.acb-tree-lesson {
  display: flex; align-items: center; gap: 7px; width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer; font: inherit; font-size: 12.5px;
  color: var(--acb-body); padding: 5px 7px; border-radius: 8px;
}
.acb-tree-lesson:hover { background: var(--acb-card); }
.acb-tree-lesson.on { background: var(--acb-primary-soft); color: var(--acb-primary-deep); font-weight: 600; }
.acb-tree-lesson svg { width: 13px; height: 13px; color: var(--acb-muted); }
.acb-tree-lesson.on svg { color: var(--acb-primary); }
.acb-tree-lesson span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.acb-main { padding: 20px 22px 26px; min-width: 0; }
.acb-main h3 { font-size: 19px; margin: 0 0 6px; }
.acb-panel-head { margin-bottom: 14px; }
.acb-panel-head p { margin: 2px 0 0; color: var(--acb-muted); font-size: 13px; }

.acb-side { border-left: 1px solid var(--acb-border); background: var(--acb-bg); padding: 16px 14px; display: flex; flex-direction: column; gap: 14px; }
.acb-side-body h4 { font-size: 14px; margin: 10px 0 6px; }
.acb-side-body p { margin: 0; font-size: 12.5px; color: var(--acb-muted); line-height: 1.55; }
.acb-side-ico {
  display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--acb-primary-soft); color: var(--acb-primary);
}
.acb-cta {
  margin-top: auto; background: var(--acb-card); border: 1px solid var(--acb-border);
  border-radius: var(--acb-r-sm); padding: 14px; box-shadow: var(--acb-shadow);
}
.acb-cta b { display: block; color: var(--acb-head); font-size: 13.5px; margin-bottom: 4px; }
.acb-cta p { margin: 0 0 10px; font-size: 12.5px; color: var(--acb-muted); line-height: 1.5; }

/* ---------- brief form ---------- */
.acb-form { display: grid; gap: 14px; max-width: 640px; }
.acb-field label, .acb-field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--acb-head); margin-bottom: 5px; }
.acb-field input[type="text"], .acb-field select, .acb-field textarea, .acb-rename, .acb-q-text, .acb-q-scenario, .acb-sec textarea {
  width: 100%; font: inherit; color: var(--acb-head);
  background: var(--acb-card); border: 1px solid var(--acb-border); border-radius: 10px;
  padding: 9px 11px;
}
.acb-field textarea, .acb-sec textarea { resize: vertical; line-height: 1.55; }
.acb-field input:focus, .acb-field select:focus, .acb-field textarea:focus { border-color: var(--acb-primary); }
.acb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acb-presets { display: flex; flex-wrap: wrap; gap: 7px; }
.acb-chip {
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  color: var(--acb-body); background: var(--acb-bg);
  border: 1px solid var(--acb-border); border-radius: 999px; padding: 6px 12px;
}
.acb-chip:hover { border-color: var(--acb-primary); color: var(--acb-primary); }
.acb-error { color: var(--acb-danger); font-size: 12.5px; font-weight: 600; margin: 6px 0 0; }
.acb-hint { font-size: 11.5px; color: var(--acb-muted); margin: 4px 0 0; }

/* ---------- generation feedback ---------- */
.acb-gen { display: grid; gap: 6px; padding: 14px 0 2px; }
.acb-gen-line { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--acb-body); }
.acb-gen-line.done { color: var(--acb-muted); }
.acb-gen-line svg { color: var(--acb-primary); }
.acb-spin { animation: acb-spin 0.9s linear infinite; }
@keyframes acb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .acb-spin { animation: none; }
  .acb * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- course card (outline meta) ---------- */
.acb-coursecard { border: 1px solid var(--acb-border); border-radius: var(--acb-r-sm); padding: 16px; margin-bottom: 16px; background: var(--acb-bg); }
.acb-coursecard h3 { margin: 10px 0 4px; }
.acb-coursedesc { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; }
.acb-objectives { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 5px; }
.acb-objectives li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.acb-objectives svg { color: var(--acb-primary); margin-top: 2px; width: 13px; height: 13px; }
.acb-meta-row { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--acb-muted); }
.acb-meta-row span { display: inline-flex; align-items: center; gap: 5px; }
.acb-meta-row svg { width: 13px; height: 13px; }
.acb-actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }

/* ---------- structure editor ---------- */
.acb-mod { border: 1px solid var(--acb-border); border-radius: var(--acb-r-sm); margin-bottom: 12px; background: var(--acb-card); }
.acb-mod-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--acb-border); background: var(--acb-bg); border-radius: var(--acb-r-sm) var(--acb-r-sm) 0 0; }
.acb-rename { font-weight: 700; color: var(--acb-head); background: transparent; border-color: transparent; padding: 6px 8px; min-width: 0; flex: 1; }
.acb-rename:hover, .acb-rename:focus { background: var(--acb-card); border-color: var(--acb-border); }
.acb-rename.sm { font-weight: 500; font-size: 13px; }
.acb-mod-actions { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; flex: none; }
.acb-mod-lessons { list-style: none; margin: 0; padding: 6px 10px 10px; display: grid; gap: 2px; }
.acb-lessonrow { display: flex; align-items: center; gap: 7px; padding: 2px 2px; }
.acb-lessonrow > svg { color: var(--acb-muted); width: 14px; height: 14px; }
.acb-moveto { font: inherit; font-size: 11.5px; color: var(--acb-muted); border: 1px solid var(--acb-border); border-radius: 8px; background: var(--acb-card); padding: 4px 5px; max-width: 92px; }
.acb-addbtn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--acb-primary);
  background: none; border: 1px dashed var(--acb-border); border-radius: 10px; padding: 7px 12px;
}
.acb-addbtn:hover { border-color: var(--acb-primary); background: var(--acb-primary-soft); }
.acb-addbtn.lg { width: 100%; justify-content: center; padding: 11px; }

/* ---------- lesson editor ---------- */
.acb-crumb { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--acb-primary); margin: 0 0 2px; }
.acb-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 0 14px; border-bottom: 1px solid var(--acb-border); margin-bottom: 14px; }
.acb-toolbar .lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--acb-muted); margin-right: 2px; display: inline-flex; align-items: center; gap: 5px; }
.acb-refine {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--acb-primary-deep);
  background: var(--acb-primary-soft); border: 1px solid transparent; border-radius: 999px; padding: 5px 11px;
}
.acb-refine:hover { border-color: var(--acb-primary); }
.acb-refine svg { width: 12px; height: 12px; }
.acb-toolbar .spacer { flex: 1; }
.acb-sec { margin-bottom: 14px; }
.acb-sec h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--acb-muted); margin: 0 0 6px; }
.acb-sec textarea { font-size: 13.5px; }
.acb-check { border: 1px solid var(--acb-border); border-radius: var(--acb-r-sm); padding: 12px 14px; background: var(--acb-bg); }
.acb-check-q { font-weight: 600; color: var(--acb-head); margin: 0 0 8px; }
.acb-check ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.acb-check li { font-size: 13px; padding: 6px 10px; border: 1px solid var(--acb-border); border-radius: 8px; background: var(--acb-card); }
.acb-check li.ok { border-color: var(--acb-ok); background: var(--acb-ok-soft); }
.acb-check li em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--acb-ok); margin-left: 6px; text-transform: uppercase; }

.acb-empty { text-align: center; padding: 42px 18px; display: grid; justify-items: center; gap: 10px; color: var(--acb-muted); }
.acb-empty.sm { padding: 24px 14px; }
.acb-empty svg { width: 26px; height: 26px; color: var(--acb-primary); }
.acb-empty p { margin: 0; font-size: 13.5px; }

/* ---------- assessment ---------- */
.acb-q { border: 1px solid var(--acb-border); border-radius: var(--acb-r-sm); padding: 12px 14px; margin-bottom: 12px; display: grid; gap: 8px; }
.acb-q-head { display: flex; align-items: center; gap: 10px; }
.acb-q-head b { color: var(--acb-head); }
.acb-q-type { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--acb-muted); background: var(--acb-bg); border: 1px solid var(--acb-border); border-radius: 999px; padding: 2px 8px; }
.acb-q-scenario { background: var(--acb-bg); font-size: 13px; font-style: italic; }
.acb-q-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.acb-q-opts li { display: flex; align-items: center; gap: 8px; }
.acb-q-opts input[type="radio"] { width: 16px; height: 16px; accent-color: var(--acb-primary); }
.acb-q-opts input[type="text"] { flex: 1; font: inherit; font-size: 13px; border: 1px solid var(--acb-border); border-radius: 8px; padding: 7px 10px; min-width: 0; color: var(--acb-head); background: var(--acb-card); }
.acb-score-row { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; }
.acb-score-row label { font-size: 13px; font-weight: 600; color: var(--acb-head); }
.acb-score-row input { width: 76px; font: inherit; border: 1px solid var(--acb-border); border-radius: 8px; padding: 7px 9px; color: var(--acb-head); background: var(--acb-card); }
.acb-assess-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* ---------- settings ---------- */
.acb-settings { display: grid; gap: 14px; max-width: 640px; }
.acb-settings .acb-form-row label { display: block; }
.acb-checkrow { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--acb-head); font-weight: 600; }
.acb-checkrow input { width: 16px; height: 16px; accent-color: var(--acb-primary); }

/* ---------- learner preview ---------- */
.acb-pv { border: 1px solid var(--acb-border); border-radius: var(--acb-r-sm); overflow: clip; }
.acb-pv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 11px 14px; background: var(--acb-head); color: #fff; }
.acb-pv-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-family: var(--font-display); font-size: 13.5px; }
.acb-pv-progress { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; font-size: 12px; }
.acb-pv-bar { width: 110px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.25); overflow: hidden; display: inline-block; }
.acb-pv-bar i { display: block; height: 100%; background: var(--acb-primary-hover); border-radius: inherit; transition: width .3s ease; }
.acb-pv-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.acb-pv-nav { border-right: 1px solid var(--acb-border); background: var(--acb-bg); padding: 12px; max-height: 520px; overflow-y: auto; }
.acb-pv-mod b { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--acb-muted); margin: 10px 0 4px; }
.acb-pv-mod ul { list-style: none; margin: 0; padding: 0; }
.acb-pv-lesson {
  display: flex; align-items: center; gap: 7px; width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer; font: inherit; font-size: 12.5px;
  color: var(--acb-body); padding: 6px 7px; border-radius: 8px;
}
.acb-pv-lesson:hover { background: var(--acb-card); }
.acb-pv-lesson.on { background: var(--acb-primary-soft); color: var(--acb-primary-deep); font-weight: 600; }
.acb-pv-lesson svg { width: 13px; height: 13px; flex: none; }
.acb-pv-main { padding: 18px 20px 24px; min-width: 0; max-height: 520px; overflow-y: auto; }
.acb-pv-main h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--acb-muted); margin: 16px 0 6px; }
.acb-pv-content p { font-size: 13.5px; line-height: 1.6; margin: 0 0 10px; }
.acb-pv-content ul { margin: 0 0 10px; padding-left: 18px; font-size: 13.5px; line-height: 1.6; }
.acb-pv-cover h3 { font-size: 21px; margin: 8px 0 6px; }
.acb-pv-cover p { font-size: 13.5px; line-height: 1.6; }
.acb-pv-cover ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 5px; }
.acb-pv-cover li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.acb-pv-cover li svg { color: var(--acb-ok); margin-top: 2px; width: 13px; height: 13px; }
.acb-pv-cat { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--acb-primary); margin-top: 8px; }
.acb-pv-pub { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--acb-ok); background: var(--acb-ok-soft); border-radius: 999px; padding: 3px 11px; }
.acb-pv-draftnote { display: inline-flex; font-size: 12px; font-weight: 700; color: var(--acb-muted); background: var(--acb-bg); border: 1px solid var(--acb-border); border-radius: 999px; padding: 3px 11px; }
.acb-pv-rules { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; background: var(--acb-bg); border: 1px solid var(--acb-border); border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; }
.acb-pv-rules svg { color: var(--acb-primary); margin-top: 2px; }
.acb-pv-check { border: 1px solid var(--acb-border); border-radius: var(--acb-r-sm); background: var(--acb-bg); padding: 12px 14px; margin-top: 14px; }
.acb-pv-check ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.acb-pv-opt {
  width: 100%; text-align: left; cursor: pointer; font: inherit; font-size: 13px;
  background: var(--acb-card); color: var(--acb-body);
  border: 1px solid var(--acb-border); border-radius: 8px; padding: 8px 11px;
}
.acb-pv-opt:hover { border-color: var(--acb-primary); }
.acb-pv-opt.picked { border-color: var(--acb-primary); background: var(--acb-primary-soft); }
.acb-pv-feedback { font-size: 13px; font-weight: 600; margin: 8px 0 0; min-height: 1em; }
.acb-pv-feedback.ok { color: var(--acb-ok); }
.acb-pv-feedback.bad { color: var(--acb-warn); }
.acb-pv-q { border: 1px solid var(--acb-border); border-radius: var(--acb-r-sm); padding: 12px 14px; margin: 0 0 12px; }
.acb-pv-q legend { font-size: 13.5px; padding: 0 4px; }
.acb-pv-scenario { font-style: italic; color: var(--acb-muted); }
.acb-pv-ansrow { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 5px 2px; cursor: pointer; }
.acb-pv-ansrow input { accent-color: var(--acb-primary); }

/* ---------- publish ---------- */
.acb-checklist { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; max-width: 640px; }
.acb-checklist li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; border: 1px solid var(--acb-border); border-radius: 10px; padding: 10px 12px; }
.acb-checklist li.ok { border-color: color-mix(in srgb, var(--acb-ok) 35%, transparent); }
.acb-checklist li.ok svg { color: var(--acb-ok); }
.acb-checklist li.todo svg { color: var(--acb-warn); }
.acb-checklist svg { margin-top: 1px; }
.acb-checklist em { display: block; font-style: normal; font-size: 12px; color: var(--acb-muted); margin-top: 2px; }
.acb-checklist .acb-linkbtn { margin-left: auto; flex: none; }
.acb-publish-done {
  display: grid; gap: 8px; justify-items: start; max-width: 640px;
  border: 1px solid color-mix(in srgb, var(--acb-ok) 35%, transparent);
  background: var(--acb-ok-soft); border-radius: var(--acb-r-sm); padding: 16px; margin-top: 16px;
}
.acb-publish-done b { color: var(--acb-head); display: inline-flex; gap: 8px; align-items: center; }
.acb-publish-done b svg { color: var(--acb-ok); }
.acb-publish-done p { margin: 0; font-size: 13px; }

/* ---------- toast ---------- */
.acb-toast {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: var(--acb-head); color: #fff; font-size: 13px; font-weight: 600;
  border-radius: 999px; padding: 10px 18px; box-shadow: var(--acb-shadow-lg);
  max-width: min(92%, 480px); text-align: center; z-index: 5;
}

/* ---------- section wrapper bits ---------- */
.acb-footnote { text-align: center; font-size: 12.5px; color: var(--fg-muted, #64748B); max-width: 720px; margin: 16px auto 0; }

/* ---------- gated embed (marketing page): Launch Live Demo ---------- */
.acb.is-gated { max-height: 720px; }
.acb-gate {
  position: absolute; inset: 0; z-index: 30; display: grid; place-items: center;
  background: rgba(82, 91, 117, .55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.acb-gated-content { filter: blur(2px); user-select: none; }
.acb-gate-btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  padding: 14px 28px; border: 1px solid var(--acb-border); border-radius: 10px;
  background: var(--acb-card); color: var(--acb-head);
  font: 600 18px var(--font-sans, inherit);
  box-shadow: 0 10px 30px -12px rgba(20, 24, 36, .45);
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease;
}
.acb-gate-btn:hover { color: var(--acb-primary); transform: translateY(-1px); box-shadow: 0 14px 36px -12px rgba(20, 24, 36, .55); }
.acb-gate-btn:focus-visible { outline: 3px solid rgba(255, 255, 255, .8); outline-offset: 3px; }
.acb-gate-btn svg { width: 16px; height: 16px; }

/* =========================================================================
   Live preview (/ai-course-builder/live-preview) — the same showcase system
   as the Compliance / Certification / Recertification live previews (their
   cps-/ccs- styles), scoped as acbs-. Dark violet header + hero, light card
   sections, CTA band.
   ========================================================================= */
body.acb-live #global-nav, body.acb-live #global-footer, body.acb-live .sl-nav,
body.acb-live .sl-mobile, body.acb-live .sl-foot, body.acb-live .sl-annc { display: none; }

.acbs { --as-primary: #6D28D9; --as-hover: #5B21B6; --as-soft: #F5F3FF; --as-soft-2: #DDD6FE; --as-ink: #0F172A; --as-text: #334155; --as-muted: #64748B; --as-line: #E2E8F0; --as-card: #FFFFFF; --as-bg: #F8FAFC; --as-navy: #081220;
  background: var(--as-bg); color: var(--as-text); font-family: "Inter", system-ui, sans-serif; font-size: 15px; line-height: 1.5; }
.acbs *, .acbs *::before, .acbs *::after { box-sizing: border-box; }
.acbs svg { width: 16px; height: 16px; flex: none; }
.acbs h1, .acbs h2 { margin: 0; font-family: inherit; letter-spacing: -.02em; }
.acbs p { margin: 0; }
.acbs :focus-visible { outline: 3px solid rgba(109, 40, 217, .5); outline-offset: 2px; }
.acbs-wrap { width: min(1600px, 100% - 64px); margin: 0 auto; }
.acbs-showcase-page { padding: 0; }

.acbs-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 18px; border: 1px solid transparent; border-radius: 8px; font-family: inherit; font-size: 13.5px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.acbs-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .6s ease; pointer-events: none; }
.acbs-btn:hover::after { left: 130%; }
.acbs-btn-lg { min-height: 48px; padding: 12px 22px; border-radius: 10px; font-size: 15px; }
.acbs-btn-light { background: #fff; color: var(--as-navy, #081220); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .6); }
.acbs-btn-light:hover { color: #6D28D9; transform: translateY(-1px); }
.acbs-btn-light::after, .acbs-btn-ghost::after { background: linear-gradient(100deg, transparent, rgba(109, 40, 217, .18), transparent); }
.acbs-btn-outline { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .32); }
.acbs-btn-outline:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); }
.acbs-btn-ghost { background: rgba(255, 255, 255, .04); color: #fff; border-color: rgba(255, 255, 255, .28); }
.acbs-btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }

/* ---------- dark sticky header (showcase + workspace) ---------- */
.acbs-top { position: sticky; top: 0; z-index: 50; background: linear-gradient(90deg, #081220 0%, #2E1065 60%, #4C1D95 100%); border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 10px 24px -18px rgba(46, 16, 101, .8); }
.acbs-top-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.acbs-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.acbs-brand b { display: block; font-size: 15px; font-weight: 800; line-height: 1.2; }
.acbs-brand small { display: block; font-size: 12px; font-weight: 600; color: #C4B5FD; }
.acbs-logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #8B5CF6, #5B21B6); color: #fff; box-shadow: 0 8px 18px -10px rgba(109, 40, 217, .9); }
.acbs-logo svg { width: 18px; height: 18px; }
.acbs-top-links { display: flex; gap: 4px; margin: 0 auto; }
.acbs-top-links a { padding: 8px 14px; border-radius: 8px; color: #DDD6FE; font-size: 14px; font-weight: 700; text-decoration: none; }
.acbs-top-links a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.acbs-top-actions { display: flex; align-items: center; gap: 8px; }
.acbs-top :focus-visible { outline-color: rgba(255, 255, 255, .8); }

/* ---------- dark hero ---------- */
.acbs-hero { position: relative; overflow: hidden; padding: 44px 0 40px; color: #fff; background: radial-gradient(900px 480px at 85% 10%, rgba(139, 92, 246, .55), transparent 60%), radial-gradient(700px 420px at 0% 100%, rgba(109, 40, 217, .45), transparent 60%), linear-gradient(160deg, #081220 0%, #2E1065 55%, #4C1D95 100%); }
.acbs-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 85%); -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 85%); pointer-events: none; }
.acbs-hero-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.acbs-hero-orbs span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: acbs-drift 18s ease-in-out infinite alternate; }
.acbs-hero-orbs span:nth-child(1) { left: -80px; top: 40%; width: 420px; height: 420px; background: #6D28D9; }
.acbs-hero-orbs span:nth-child(2) { right: 8%; top: -120px; width: 360px; height: 360px; background: #8B5CF6; animation-duration: 22s; animation-delay: -6s; }
.acbs-hero-orbs span:nth-child(3) { left: 45%; bottom: -140px; width: 260px; height: 260px; background: #22D3EE; opacity: .3; animation-duration: 26s; animation-delay: -12s; }
@keyframes acbs-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(40px, -30px, 0); } }
.acbs-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.acbs-hero h1 { margin: 0 0 12px; font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; line-height: 1.05; color: #fff; }
.acbs-hero h1 span { background-image: linear-gradient(90deg, #C4B5FD 0%, #C4B5FD 30%, #ffffff 50%, #C4B5FD 70%, #C4B5FD 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: acbs-shimmer 6s ease-in-out infinite; }
@keyframes acbs-shimmer { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.acbs-hero-copy > p { max-width: 560px; font-size: 17px; color: #DDD6FE; }
.acbs-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.acbs-stats { list-style: none; margin: 26px 0 0; padding: 18px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; border-top: 1px solid rgba(255, 255, 255, .14); }
.acbs-stats b { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.acbs-stats span { font-size: 13px; font-weight: 600; color: #C4B5FD; }

/* ---------- hero art: interactive fan of outline cards (cert-style) ---------- */
.acbs-hero-art { position: relative; height: 340px; }
.acbs-fan {
  position: absolute; width: 60%; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; border-radius: 14px;
  animation: acbs-deal 1s cubic-bezier(.2, .9, .25, 1.15) both;
  transition: left .75s cubic-bezier(.22, .9, .25, 1), top .75s cubic-bezier(.22, .9, .25, 1), transform .75s cubic-bezier(.22, .9, .25, 1), filter .5s ease;
}
.acbs-fan:focus-visible { outline: 3px solid rgba(255, 255, 255, .8); outline-offset: 4px; }
.acbs-fan[data-acbs-pos="left"]   { left: 0; top: 76px; z-index: 1; transform: rotate(-9deg); filter: brightness(.92); }
.acbs-fan[data-acbs-pos="right"]  { left: 38%; top: 56px; z-index: 1; transform: rotate(8deg); filter: brightness(.92); }
.acbs-fan[data-acbs-pos="center"] { left: 19%; top: 0; z-index: 3; transform: translateY(14px); filter: none; }
.acbs-hero-art:hover .acbs-fan[data-acbs-pos="left"]   { transform: rotate(-12deg) translateX(-10px); }
.acbs-hero-art:hover .acbs-fan[data-acbs-pos="right"]  { transform: rotate(11deg) translateX(10px); }
.acbs-hero-art:hover .acbs-fan[data-acbs-pos="center"] { transform: translateY(6px); }
.acbs-fan[data-acbs-pos="left"]:hover, .acbs-fan[data-acbs-pos="right"]:hover { filter: brightness(1.05); }
.acbs-fan.is-rising { z-index: 4; }
.acbs-fan.is-bump .acbs-outline-card { animation: acbs-bump .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes acbs-bump { 0% { scale: 1; } 40% { scale: 1.06; } 100% { scale: 1; } }
.acbs-fan-privacy       { animation-delay: .35s; --acbs-from: -120px 60px; }
.acbs-fan-leadership    { animation-delay: .5s;  --acbs-from: 120px 60px; }
.acbs-fan-cybersecurity { animation-delay: .2s;  --acbs-from: 0 90px; }
@keyframes acbs-deal { from { opacity: 0; translate: var(--acbs-from, 0 80px); } to { opacity: 1; translate: 0 0; } }
.acbs-fan .acbs-outline-card { animation: acbs-float 6s ease-in-out infinite; transition: box-shadow .5s ease; }
.acbs-fan-privacy .acbs-outline-card    { animation-delay: -2s; animation-duration: 7s; }
.acbs-fan-leadership .acbs-outline-card { animation-delay: -4s; animation-duration: 8s; }
@keyframes acbs-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.acbs-fan[data-acbs-pos="center"] .acbs-outline-card { box-shadow: 0 40px 70px -28px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); }
.acbs-fan[data-acbs-pos="center"] .acbs-outline-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%);
  background-size: 250% 100%; background-position: 150% 0; mix-blend-mode: soft-light;
  animation: acbs-gloss 5s ease-in-out 1.4s infinite;
}
@keyframes acbs-gloss { 0%, 60% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
.acbs-spark { position: absolute; z-index: 4; width: 18px; height: 18px; background: #fff; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); opacity: 0; animation: acbs-twinkle 3.2s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(196, 181, 253, .9)); pointer-events: none; }
.acbs-spark-1 { left: 14%; top: 4%; animation-delay: 1.2s; }
.acbs-spark-2 { right: 6%; top: 10%; width: 12px; height: 12px; animation-delay: 2s; background: #C4B5FD; }
.acbs-spark-3 { right: 22%; bottom: 14%; width: 14px; height: 14px; animation-delay: 2.7s; background: #C4B5FD; }
.acbs-spark-4 { left: 2%; bottom: 34%; width: 10px; height: 10px; animation-delay: 3.4s; }
@keyframes acbs-twinkle { 0%, 100% { opacity: 0; scale: .3; rotate: 0deg; } 50% { opacity: 1; scale: 1; rotate: 90deg; } }
.acbs-outline-card { position: relative; display: grid; gap: 7px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--as-line, #E2E8F0); box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .55); color: #0F172A; }
.acbs-outline-head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid #EEF2F7; }
.acbs-outline-head b { display: block; font-size: 13.5px; font-weight: 800; line-height: 1.25; color: #0F172A; }
.acbs-outline-head small { display: block; font-size: 11px; color: #64748B; }
.acbs-outline-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #F5F3FF; color: #6D28D9; flex: none; }
.acbs-outline-row { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #334155; }
.acbs-outline-row i { font-style: normal; font-family: var(--font-mono, ui-monospace, monospace); font-size: 10px; color: #8B5CF6; }
.acbs-outline-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 3px 9px; border-radius: 999px; background: #F5F3FF; color: #5B21B6; font-size: 10.5px; font-weight: 700; justify-self: start; }
.acbs-outline-tag svg { width: 11px; height: 11px; }
.acbs-chip { position: absolute; left: 4%; bottom: -6px; z-index: 5; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fff; color: #0F172A; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); animation: acbs-deal 1s .6s cubic-bezier(.2, .9, .25, 1.15) both; }
.acbs-chip b { display: block; font-size: 13px; font-weight: 800; }
.acbs-chip small { display: block; font-size: 11.5px; color: #64748B; }
.acbs-chip-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #ECFDF5; color: #047857; }

/* ---------- light sections ---------- */
.acbs-section { padding: 36px 0 0; }
.acbs-section-alt { margin-top: 36px; padding: 36px 0; background: #fff; border-block: 1px solid var(--as-line); }
.acbs-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 18px; }
.acbs-eyebrow { display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--as-primary); }
.acbs-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; line-height: 1.15; color: var(--as-ink); }
.acbs-head p { max-width: 520px; font-size: 14.5px; color: var(--as-muted); text-align: right; }
.acbs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.acbs-grid-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.acbs-grid-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.acbs-grid-views { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.acbs-card, .acbs-view, .acbs-step { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--as-line); border-radius: 14px; background: var(--as-card); color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(20, 24, 36, .04); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.acbs-card:hover, .acbs-view:hover, .acbs-step:hover { border-color: var(--as-soft-2); box-shadow: 0 26px 50px -30px rgba(20, 24, 60, .45); transform: translateY(-4px); }
.acbs-shot { position: relative; display: block; padding: 22px 18px; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #fff 0%, #F3EEFF 100%); border-bottom: 1px solid var(--as-line); }
.acbs-shot::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(109, 40, 217, .12) 1px, transparent 1px); background-size: 16px 16px; pointer-events: none; }
.acbs-shot .acbs-outline-card { box-shadow: 0 18px 30px -24px rgba(20, 24, 60, .55); transition: transform .3s ease; pointer-events: none; }
.acbs-card:hover .acbs-shot .acbs-outline-card { transform: scale(1.03); }
.acbs-shot-cta { position: absolute; left: 50%; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--as-ink); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; opacity: 0; transform: translate(-50%, 8px); transition: opacity .2s ease, transform .2s ease; }
.acbs-card:hover .acbs-shot-cta, .acbs-card:focus-visible .acbs-shot-cta { opacity: 1; transform: translate(-50%, 0); }
.acbs-body { display: grid; flex: 1; align-content: start; gap: 8px; padding: 18px 20px 20px; }
.acbs-body b, .acbs-step b { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; color: var(--as-ink); }
.acbs-body small, .acbs-step small { display: block; font-size: 14px; line-height: 1.55; color: var(--as-text); }
.acbs-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.acbs-tags span { padding: 3px 9px; border-radius: 999px; background: var(--as-soft); color: var(--as-hover); font-size: 11.5px; font-weight: 700; }
.acbs-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 800; color: var(--as-primary); }
.acbs-link svg { width: 15px; height: 15px; transition: transform .18s ease; }
.acbs-card:hover .acbs-link svg, .acbs-view:hover .acbs-link svg, .acbs-step:hover .acbs-link svg { transform: translateX(4px); }
.acbs-step { gap: 8px; padding: 20px; }
.acbs-step-top { display: flex; align-items: center; justify-content: space-between; }
.acbs-step-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--as-soft); color: var(--as-primary); }
.acbs-step-ico svg { width: 20px; height: 20px; }
.acbs-step-num { font-size: 26px; font-weight: 800; color: #EDE9FE; font-variant-numeric: tabular-nums; }
.acbs-step .acbs-link { margin-top: auto; padding-top: 4px; }
.acbs-view { flex-direction: row; align-items: flex-start; padding: 22px 0 0 22px; }
.acbs-view::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--acbs-tone); opacity: 0; transition: opacity .2s ease; }
.acbs-view:hover::after { opacity: 1; }
.acbs-view .acbs-body { padding-top: 0; }
.acbs-view-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--acbs-tone-bg); color: var(--acbs-tone); flex: none; }
.acbs-view-ico svg { width: 22px; height: 22px; }
.acbs-view.is-author { --acbs-tone: #6D28D9; --acbs-tone-bg: #F5F3FF; }
.acbs-view.is-learner { --acbs-tone: #047857; --acbs-tone-bg: #ECFDF5; }
.acbs-role { justify-self: start; padding: 2px 8px; border-radius: 4px; background: var(--acbs-tone-bg); color: var(--acbs-tone); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.acbs-section-cta { padding: 36px 0 32px; }
.acbs-band { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: 40px 44px; border-radius: 20px; color: #fff; background: radial-gradient(600px 300px at 100% 0%, rgba(139, 92, 246, .6), transparent 60%), linear-gradient(135deg, #081220, #4C1D95); box-shadow: 0 30px 60px -40px rgba(46, 16, 101, .8); }
.acbs-band h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; color: #fff; }
.acbs-band p { max-width: 560px; margin-top: 6px; color: #DDD6FE; }
.acbs-band-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.acbs-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px !important; font-size: 12.5px; color: var(--as-muted); }

/* ---------- workspace mode (?view=…): header + full-width builder ---------- */
.acbs-page { background: var(--bg, #F8FAFC); min-height: 100vh; }
.acbs-page .acb-section { padding: 0; }
.acbs-page .acb-section > .container { max-width: none; width: 100%; padding: 0; }
.acbs-page .acb { margin: 16px; width: auto; box-shadow: none; }
.acbs-page .acb-body { min-height: calc(100vh - 240px); }
.acbs-page .acbs-top { border-radius: 0; }

@media (prefers-reduced-motion: reduce) {
  .acbs-hero-orbs span, .acbs-fan, .acbs-chip, .acbs-hero h1 span,
  .acbs-fan .acbs-outline-card, .acbs-fan[data-acbs-pos="center"] .acbs-outline-card::after, .acbs-spark { animation: none; }
  .acbs-fan { transition: none; }
}
@media (max-width: 1080px) {
  .acbs-grid, .acbs-grid-topics, .acbs-grid-steps, .acbs-grid-views { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acbs-hero { padding: 36px 0; }
  .acbs-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .acbs-hero-art { width: 100%; max-width: 560px; height: 340px; margin: 0 auto; }
  .acbs-top-links { display: none; }
  .acbs-top-actions { margin-left: auto; }
  .acbs-top-actions .acbs-btn span { display: none; }
  .acbs-top-actions .acbs-btn { padding: 8px 11px; }
}
@media (max-width: 760px) {
  .acbs-wrap { width: calc(100% - 32px); }
  .acbs-grid, .acbs-grid-topics, .acbs-grid-steps, .acbs-grid-views { grid-template-columns: 1fr; }
  .acbs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acbs-head p { text-align: left; }
  .acbs-hero-art { height: 300px; }
  /* Inset the fanned cards so both edges keep an even margin on phones. */
  .acbs-fan[data-acbs-pos="left"] { left: 2%; }
  .acbs-fan[data-acbs-pos="right"] { left: 36%; }
  .acbs-band { padding: 28px 24px; }
  .acbs-band-ctas { width: 100%; }
  .acbs-band-ctas .acbs-btn { flex: 1 1 100%; }
  .acbs-page .acb { margin: 10px; }
}

/* =========================================================================
   Workspace responsive — tablet collapses the rails, mobile goes
   single-column (PRD §5/§19). Applies to the gated embed and the live
   workspace alike.
   ========================================================================= */
@media (max-width: 1100px) {
  .acb-body { grid-template-columns: minmax(0, 1fr); }
  .acb-rail {
    border-right: 0; border-bottom: 1px solid var(--acb-border);
    max-height: none; padding: 10px 14px;
  }
  .acb-rail-head { margin-bottom: 0; }
  .acb-rail [data-acb-outline-tree] { display: none; }
  .acb-rail.open [data-acb-outline-tree] { display: block; margin-top: 8px; }
  .acb-rail.open .acb-rail-toggle { transform: rotate(180deg); }
  .acb-rail-toggle { display: inline-flex; }
  .acb-side { border-left: 0; border-top: 1px solid var(--acb-border); flex-direction: row; align-items: flex-start; gap: 20px; }
  .acb-side-body { flex: 1; }
  .acb-cta { margin-top: 0; flex: 1; }
}

@media (max-width: 760px) {
  /* Same mobile breakpoint and 4px bleed as the certification demo, so the
     two gated embeds sit identically on phones. */
  .acb { font-size: 13.5px; margin-left: -4px; margin-right: -4px; border-radius: 10px; }
  .acb-main { padding: 14px; }
  .acb-form-row { grid-template-columns: 1fr; }
  .acb-topbar { padding: 10px 12px; gap: 8px; }
  .acb-coursename { display: none; }
  .acb-topbar .acb-badge { display: none; }
  .acb-topbar-actions { width: 100%; margin-left: 0; }
  .acb-topbar-actions .acb-btn { flex: 1; }
  .acb-pv-body { grid-template-columns: minmax(0, 1fr); }
  .acb-pv-nav { border-right: 0; border-bottom: 1px solid var(--acb-border); max-height: 220px; }
  .acb-pv-main { max-height: none; }
  .acb-pv-top { padding: 10px 12px; }
  .acb-pv-progress { width: 100%; margin-left: 0; }
  .acb-side { flex-direction: column; gap: 14px; }
  .acb-mod-head { flex-wrap: wrap; }
  .acb-lessonrow { flex-wrap: wrap; }
  .acb-mod-actions { margin-left: auto; }
  .acb-moveto { max-width: 80px; }
  .acb-toolbar { gap: 5px; }
  .acb-assess-foot .acb-btn, .acb-actions-row .acb-btn { flex: 1 1 auto; }
}
