/* Platform journey: the How Capyo works card built from real platform screens
   (syllabus upload, processing, course curriculum, unit editor, invite students).
   Layout and components come from the platform; colours are the site's, so the
   workplaces world turns every accent green through --orange. */
.pj {
  --pj-ring: rgba(18, 24, 21, 0.09);
  --pj-fill: #f3f1ed;
  --pj-soft: color-mix(in srgb, var(--orange) 7%, #fff);
}
.pj .jr-stage {
  height: calc(344px * var(--s, 1));
}
/* no stage label: the step list below already names each screen */
.pj .anim-tag {
  display: none;
}
/* one busy screen at a time: the old scene leaves quickly, the new one waits for it */
.pj .jr-stage .scene {
  transition:
    opacity 0.22s ease,
    transform 0.5s var(--ease);
}
.pj .jr-stage .scene.on {
  transition:
    opacity 0.4s ease 0.26s,
    transform 0.6s var(--ease) 0.26s;
}
.pj .pj-canvas {
  position: absolute;
  left: 50%;
  top: calc(30px * var(--s, 1));
  width: 560px;
  height: 284px;
  margin-left: -280px;
  transform-origin: 50% 0;
  transform: scale(var(--s, 1));
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink);
}
.pj .pj-canvas img {
  display: block;
}
.pj .pj-i {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pj .pj-spin {
  animation: pj-spin 1s linear infinite;
}
@keyframes pj-spin {
  to {
    transform: rotate(360deg);
  }
}
.jr-paused .pj *,
.jr-paused .pj *::before,
.jr-paused .pj *::after {
  animation-play-state: paused !important;
}

/* a platform window */
.pj .pj-win {
  position: absolute;
  inset: 0;
  padding: 18px 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--pj-ring),
    0 22px 40px -30px rgba(80, 35, 0, 0.35);
  overflow: hidden;
}
.pj .pj-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(18, 24, 21, 0.16);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  background: #fff;
}
.pj .pj-btn.pri {
  background: var(--orange);
  color: #fff;
  box-shadow: none;
}
.pj .pj-btn.sm {
  height: 28px;
  padding: 0 10px;
  font-size: 11.5px;
  border-radius: 7px;
  gap: 5px;
}
.pj .pj-btn.sm .pj-i {
  width: 12px;
  height: 12px;
}
.pj .pj-press {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.pj .pj-btn:has(.pj-press.is-in) {
  animation: pj-press 0.45s var(--ease);
}
.pj .pj-code:has(.pj-press.is-in) {
  animation: pj-press 0.45s var(--ease);
}
@keyframes pj-press {
  35% {
    transform: scale(0.95);
  }
}

/* headers: the upload card and the app pages */
.pj .pj-uph {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pj .pj-uph img {
  width: 42px;
  height: 42px;
}
.pj .pj-uph b {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.pj .pj-uph small,
.pj .pj-apph small {
  display: grid;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}
.pj small > [class^='pj-sub'] {
  grid-area: 1/1;
  transition: opacity 0.18s ease;
}
.pj small > .pj-sub1.is-in {
  transition: opacity 0.3s ease 0.2s;
}
.pj .pj-sub1 {
  opacity: 0;
}
.pj .pj-sub1.is-in {
  opacity: 1;
}
.pj small:has(.pj-sub1.is-in) .pj-sub0 {
  opacity: 0;
}
.pj .pj-apph {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pj .pj-apph img {
  width: 34px;
  height: 34px;
}
.pj .pj-apph b {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.pj .pj-apph small {
  margin-top: 2px;
  font-size: 10.5px;
}
.pj .pj-hb {
  margin-left: auto;
}

/* 1. upload: files drop into the real dropzone, then list and upload */
.pj .pj-body {
  position: relative;
  height: 142px;
  margin: 12px 0;
}
.pj .pj-drop {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1.5px dashed color-mix(in srgb, var(--orange) 32%, transparent);
  background:
    radial-gradient(rgba(18, 24, 21, 0.06) 1px, transparent 1.2px) 0 0/14px 14px,
    color-mix(in srgb, var(--orange) 3%, #fffefb);
  transition:
    opacity 0.35s ease,
    transform 0.45s var(--ease);
}
.pj .pj-drop.is-in {
  opacity: 0;
  transform: scale(0.98);
}
.pj .pj-drop img {
  width: 38px;
  height: 38px;
}
.pj .pj-drop b {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
}
.pj .pj-drop small {
  font-size: 12px;
  color: var(--muted);
}
.pj .pj-fmt {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.pj .pj-fmt span {
  padding: 2px 8px;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--pj-ring);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted);
}
.pj .pj-hit {
  position: absolute;
  inset: -1.5px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px var(--orange);
  background: color-mix(in srgb, var(--orange) 5%, transparent);
  opacity: 0;
}
.pj .pj-hit.is-in {
  animation: pj-hit 0.55s ease-out;
}
@keyframes pj-hit {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.pj .pj-files {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pj .pj-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pj .pj-count.is-in {
  opacity: 1;
}
.pj .pj-file {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 6px 0 9px;
  border-radius: 12px;
  background: #fbfaf8;
  box-shadow: inset 0 0 0 1px var(--pj-ring);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease,
    transform 0.5s var(--ease);
}
.pj .pj-file.is-in {
  opacity: 1;
  transform: none;
}
.pj .pj-file img {
  width: 24px;
  height: 24px;
}
.pj .pj-file div {
  flex: 1;
  min-width: 0;
}
.pj .pj-file b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}
.pj .pj-file small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.2;
}
.pj .pj-st {
  display: grid;
  justify-items: end;
  align-items: center;
  min-width: 70px;
  padding-right: 6px;
  color: var(--orange);
}
.pj .pj-st > span {
  grid-area: 1/1;
  display: flex;
  transition: opacity 0.25s ease;
}
.pj .pj-ld,
.pj .pj-ok {
  opacity: 0;
}
.pj .pj-ld.is-in,
.pj .pj-ok.is-in {
  opacity: 1;
}
.pj .pj-st:has(.pj-ld.is-in) .pj-x,
.pj .pj-st:has(.pj-ok.is-in) .pj-ld {
  opacity: 0;
}
.pj .pj-x {
  color: var(--muted);
}
.pj .pj-ok {
  font-size: 11px;
  font-weight: 600;
}
.pj .pj-acts {
  display: flex;
  gap: 8px;
}
.pj .pj-acts .pj-btn:nth-child(2) {
  margin-left: auto;
}
.pj .pj-acts .pri {
  width: 168px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.pj .pj-acts .pri.is-in {
  opacity: 1;
}
.pj .pj-doc {
  position: absolute;
  left: 186px;
  top: 84px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 7px;
  border-radius: 10px;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--pj-ring),
    0 16px 28px -16px rgba(80, 35, 0, 0.45);
  white-space: nowrap;
  opacity: 0;
}
.pj .pj-doc img {
  width: 22px;
  height: 22px;
}
.pj .pj-doc b {
  font-size: 11.5px;
  font-weight: 600;
}
.pj .pj-doc1 {
  --fx: 190px;
  --fy: -150px;
  --fr: 9deg;
}
.pj .pj-doc2 {
  --fx: 240px;
  --fy: -110px;
  --fr: -6deg;
}
.pj .pj-doc3 {
  --fx: 150px;
  --fy: -170px;
  --fr: 5deg;
}
.pj .pj-doc.is-in {
  animation: pj-fly 0.75s cubic-bezier(0.45, 0.05, 0.35, 1) forwards;
}
@keyframes pj-fly {
  0% {
    opacity: 0;
    transform: translate(var(--fx), var(--fy)) rotate(var(--fr));
  }
  18% {
    opacity: 1;
  }
  72% {
    opacity: 1;
    transform: translate(0, -4px) rotate(-1deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(0, 16px) scale(0.62);
  }
}

/* 2. build: the real processing panel, then the course curriculum map */
.pj .pj-procwin {
  transition:
    opacity 0.4s ease,
    transform 0.5s var(--ease);
}
.pj .pj-procwin.is-in {
  opacity: 0;
  transform: scale(0.98);
}
.pj .pj-steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 14px 0 12px;
}
.pj .pj-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.pj .pj-step i {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pj-fill);
  box-shadow: inset 0 0 0 1.5px rgba(18, 24, 21, 0.1);
  color: var(--muted);
  transition:
    background 0.4s ease,
    color 0.4s ease,
    box-shadow 0.4s ease;
}
.pj .pj-step i > span {
  grid-area: 1/1;
  display: flex;
  transition: opacity 0.3s ease;
}
.pj .pj-step .d {
  opacity: 0;
}
.pj .pj-step small {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.4s ease;
}
.pj .pj-step.s1 i,
.pj .pj-step.is-in i {
  background: var(--orange);
  color: #fff;
  box-shadow: none;
}
.pj .pj-step.s1 small,
.pj .pj-step.is-in small {
  color: var(--ink);
}
.pj .pj-step i::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--orange);
  opacity: 0;
}
.pj .pj-step.s1 i::after,
.pj .pj-step.is-in i::after {
  animation: pj-ring 1.8s ease-out infinite;
}
.pj .pj-step:has(.d.is-in) i::after {
  animation: none;
}
.pj .pj-step:has(.d.is-in) .d {
  opacity: 1;
}
.pj .pj-step:has(.d.is-in) .a {
  opacity: 0;
}
@keyframes pj-ring {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}
.pj .pj-link {
  position: relative;
  width: 46px;
  height: 2px;
  margin: 14px 10px 0;
  border-radius: 2px;
  background: rgba(18, 24, 21, 0.1);
  overflow: hidden;
}
.pj .pj-link span {
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.6s var(--ease);
}
.pj .pj-link span.is-in {
  transform: none;
}
.pj .pj-proc {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 16px 16px 14px;
  border-radius: 14px;
  background: var(--pj-soft);
  overflow: hidden;
}
.pj .pj-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  overflow: hidden;
}
.pj .pj-bar i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  animation: pj-sweep 2.5s ease-in-out infinite;
}
@keyframes pj-sweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}
.pj .pj-pico {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #fff;
  color: var(--orange);
}
.pj .pj-pico .pj-i {
  width: 20px;
  height: 20px;
}
.pj .pj-pico::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--orange) 35%, transparent);
  opacity: 0;
  animation: pj-ring 2.4s ease-out infinite;
}
.pj .pj-ptxt {
  flex: 1;
  min-width: 0;
}
.pj .pj-swap,
.pj .pj-tips {
  display: grid;
}
.pj .pj-swap > *,
.pj .pj-tips > * {
  grid-area: 1/1;
  transition: opacity 0.18s ease;
}
.pj .pj-swap > .is-in,
.pj .pj-tips > .is-in {
  transition: opacity 0.3s ease 0.2s;
}
.pj .pj-swap b {
  font-size: 14.5px;
  font-weight: 700;
}
.pj .pj-swap .v1,
.pj .pj-tips .t1,
.pj .pj-tips .t2 {
  opacity: 0;
}
.pj .pj-swap .v1.is-in,
.pj .pj-tips .is-in {
  opacity: 1;
}
.pj .pj-swap:has(.v1.is-in) .v0,
.pj .pj-tips:has(.t1.is-in) .t0,
.pj .pj-tips:has(.t2.is-in) .t1 {
  opacity: 0;
}
.pj .pj-ptxt > small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}
.pj .pj-tip {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff;
  font-size: 11.5px;
  font-weight: 500;
  color: color-mix(in srgb, var(--orange) 80%, var(--ink));
}
.pj .pj-tip .pj-i {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}
.pj .pj-time {
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pj .pj-cur {
  padding: 14px 16px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.45s ease,
    transform 0.6s var(--ease);
}
.pj .pj-cur.is-in {
  opacity: 1;
  transform: none;
}
.pj .pj-map {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 70px;
  height: 198px;
}
.pj .pj-unit {
  position: absolute;
  top: 10px;
  width: 158px;
  height: 84px;
  padding: 12px 11px 0;
  border-radius: 10px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(18, 24, 21, 0.1),
    0 1px 2px rgba(18, 24, 21, 0.05);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition:
    opacity 0.4s ease,
    transform 0.55s var(--ease);
}
.pj .pj-unit.is-in {
  opacity: 1;
  transform: none;
}
.pj .pj-u1 {
  left: 0;
}
.pj .pj-u2 {
  left: 185px;
}
.pj .pj-u3 {
  left: 370px;
}
.pj .pj-u4 {
  left: 185px;
  top: 122px;
}
.pj .pj-num {
  position: absolute;
  left: -8px;
  top: -8px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(18, 24, 21, 0.13);
  font-size: 10px;
  font-weight: 600;
}
.pj .pj-unit b {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pj .pj-unit p {
  margin: 3px 0 0;
  font-size: 9.5px;
  line-height: 1.4;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pj .pj-tags {
  display: flex;
  gap: 3px;
  margin-top: 6px;
}
.pj .pj-tags span {
  max-width: 62px;
  padding: 1px 5px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px var(--pj-ring);
  font-size: 8px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pj .pj-tags .more {
  box-shadow: none;
  padding: 1px 2px;
}
.pj .pj-path {
  position: absolute;
  border: 0 dashed color-mix(in srgb, var(--orange) 70%, transparent);
  transition: transform 0.45s var(--ease);
}
.pj .p12,
.pj .p23 {
  top: 51px;
  width: 27px;
  border-top-width: 1.5px;
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.pj .p12 {
  left: 158px;
}
.pj .p23 {
  left: 343px;
}
.pj .p3d {
  left: 448px;
  top: 94px;
  height: 14px;
  border-left-width: 1.5px;
  transform: scaleY(0);
  transform-origin: 50% 0;
}
.pj .p3h {
  left: 264px;
  top: 108px;
  width: 185px;
  border-top-width: 1.5px;
  transform: scaleX(0);
  transform-origin: 100% 50%;
}
.pj .p4u {
  left: 264px;
  top: 108px;
  height: 14px;
  border-left-width: 1.5px;
  transform: scaleY(0);
  transform-origin: 50% 0;
}
.pj .pj-path.is-in {
  transform: none;
}
.pj .pj-badge {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.3s ease,
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pj .pj-badge.is-in {
  opacity: 1;
  transform: none;
}
.pj .pj-badge img {
  width: 22px;
  height: 22px;
}
.pj .pj-badge em {
  position: absolute;
  right: -6px;
  top: -6px;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px var(--pj-ring);
  font-style: normal;
  font-size: 8px;
  font-weight: 700;
  color: var(--orange);
}
.pj .b1 {
  left: 160px;
  top: 41px;
}
.pj .b2 {
  left: 345px;
  top: 41px;
}
.pj .b3 {
  left: 345px;
  top: 97px;
}

/* 3. make it yours: the real unit editor, a topic typed in and saved */
.pj .pj-edit {
  padding: 14px 16px;
}
.pj .pj-tabs {
  display: inline-flex;
  gap: 2px;
  margin-top: 12px;
  padding: 3px;
  border-radius: 10px;
  background: var(--pj-fill);
}
.pj .pj-tabs span {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.pj .pj-tabs .on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(18, 24, 21, 0.08);
}
.pj .pj-topics {
  margin-top: 14px;
  padding: 0 4px;
}
.pj .pj-th {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.pj .pj-th > div {
  flex: 1;
}
.pj .pj-th b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
}
.pj .pj-th small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
}
.pj .pj-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.pj .pj-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 9px 0 11px;
  border-radius: 7px;
  background: var(--pj-fill);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.pj .pj-chip .pj-i {
  width: 12px;
  height: 12px;
  color: var(--muted);
}
.pj .pj-new {
  width: 170px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--orange);
  gap: 0;
  opacity: 0;
  transform: scale(0.9);
  transform-origin: 0 50%;
  transition:
    opacity 0.3s ease,
    transform 0.45s var(--ease),
    background 0.3s ease,
    box-shadow 0.3s ease;
}
.pj .pj-new.is-in {
  opacity: 1;
  transform: none;
}
.pj .pj-caret {
  width: 1.5px;
  height: 14px;
  margin-left: 1px;
  background: var(--orange);
  animation: pj-blink 1s steps(1) infinite;
}
@keyframes pj-blink {
  50% {
    opacity: 0;
  }
}
.pj .pj-tr {
  display: flex;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pj .pj-tr.is-in {
  opacity: 1;
}
.pj .pj-new:has(.pj-tr.is-in) {
  background: var(--pj-fill);
  box-shadow: none;
}
.pj .pj-new:has(.pj-tr.is-in) .pj-caret {
  display: none;
}
.pj .pj-mat {
  display: none;
}
.pj .pj-mat b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
}
.pj .pj-mat small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
}
.pj .pj-mdrop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 12px 0 30px;
  border-radius: 12px;
  border: 1.5px dashed rgba(18, 24, 21, 0.14);
  background:
    radial-gradient(rgba(18, 24, 21, 0.05) 1px, transparent 1.2px) 0 0/14px 14px,
    #fafaf8;
}
.pj .pj-mdrop img {
  width: 30px;
  height: 30px;
}
.pj .pj-mdrop span {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
}
.pj .pj-toast {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px 9px 11px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 14px 28px -14px rgba(18, 24, 21, 0.55);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.35s ease,
    transform 0.5s var(--ease);
}
.pj .pj-toast.is-in {
  opacity: 1;
  transform: none;
}
.pj .pj-toast .pj-i {
  color: var(--orange-soft);
}

/* 4. launch: the real invite dialog with the class code, students join */
.pj .pj-invite {
  right: auto;
  width: 272px;
  padding: 16px 18px;
  text-align: center;
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 0.35s ease,
    transform 0.5s var(--ease);
}
.pj .pj-invite.is-in {
  opacity: 1;
  transform: none;
}
.pj .pj-ih {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.pj .pj-ih b {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.pj .pj-ih .pj-i {
  width: 18px;
  height: 18px;
}
.pj .pj-invite > small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  text-align: left;
}
.pj .pj-qr {
  width: 136px;
  margin: 10px auto 0;
  padding: 9px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(18, 24, 21, 0.1);
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity 0.4s ease,
    transform 0.55s var(--ease);
}
.pj .pj-qr.is-in {
  opacity: 1;
  transform: none;
}
.pj .pj-qr-svg {
  display: block;
  width: 118px;
  height: 118px;
}
.pj .pj-code {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
  padding: 8px 12px 8px 14px;
  border-radius: 9px;
  background: var(--pj-fill);
  box-shadow: inset 0 0 0 1px var(--pj-ring);
}
.pj .pj-code b {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.pj .pj-cp {
  display: grid;
  font-size: 11px;
  font-weight: 600;
  color: var(--orange);
}
.pj .pj-cp > span {
  grid-area: 1/1;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.15s ease;
}
.pj .pj-cp .c1.is-in {
  transition: opacity 0.25s ease 0.15s;
}
.pj .pj-cp .pj-i {
  width: 12px;
  height: 12px;
}
.pj .pj-cp .c1 {
  opacity: 0;
}
.pj .pj-cp .c1.is-in {
  opacity: 1;
}
.pj .pj-cp:has(.c1.is-in) .c0 {
  opacity: 0;
}
.pj .pj-roster {
  left: 288px;
  padding: 16px;
  opacity: 0;
  transform: translateX(10px);
  transition:
    opacity 0.4s ease,
    transform 0.55s var(--ease);
}
.pj .pj-roster.is-in {
  opacity: 1;
  transform: none;
}
.pj .pj-rh {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pj .pj-rh b {
  font-size: 14px;
  font-weight: 700;
}
.pj .pj-n {
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--pj-fill);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pj .pj-search {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  margin-top: 12px;
  padding: 0 10px;
  border-radius: 9px;
  background: #f7f6f3;
  font-size: 11.5px;
  color: var(--muted);
}
.pj .pj-search .pj-i {
  width: 13px;
  height: 13px;
}
.pj .pj-kids {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.pj .pj-kid {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 10px 0 8px;
  border-radius: 10px;
  background: #fbfaf8;
  box-shadow: inset 0 0 0 1px var(--pj-ring);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease,
    transform 0.5s var(--ease);
}
.pj .pj-kid.is-in {
  opacity: 1;
  transform: none;
}
.pj .pj-kid .av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 12%;
  background: color-mix(in srgb, var(--orange) 12%, #fff);
}
.pj .pj-kid b {
  flex: 1;
  font-size: 12.5px;
  font-weight: 600;
}
.pj .pj-kid .lang {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--pj-fill);
  font-size: 10.5px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .pj .pj-doc {
    display: none;
  }
  .pj *,
  .pj *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* make it yours: the real Suggest flow. "Finding topics..." then dashed AI suggestions;
   the teacher accepts each one and it becomes a plain topic in the same place */
.pj .pj-sugbtn {
  overflow: hidden;
}
.pj .pj-think {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--orange) 16%, transparent),
    transparent
  );
  transform: translateX(-100%);
  opacity: 0;
}
.pj .pj-think.is-in {
  animation: pj-think 0.8s ease-in-out 1;
}
@keyframes pj-think {
  0% {
    opacity: 1;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(100%);
  }
}
.pj .pj-find,
.pj .pj-sug {
  display: none;
  opacity: 0;
  transform: scale(0.92);
  transform-origin: 0 50%;
}
.pj .pj-find.is-in,
.pj .pj-sug.is-in {
  display: inline-flex;
  animation: pj-pop 0.4s var(--ease) forwards;
}
@keyframes pj-pop {
  to {
    opacity: 1;
    transform: none;
  }
}
.pj .pj-find:has(.pj-fend.is-in) {
  display: none;
}
.pj .pj-find {
  gap: 6px;
  background: color-mix(in srgb, var(--pj-fill) 80%, transparent);
  box-shadow: inset 0 0 0 1px rgba(18, 24, 21, 0.14);
  color: var(--muted);
  border: 0;
  outline: 1px dashed rgba(18, 24, 21, 0.18);
  outline-offset: -1px;
  box-shadow: none;
}
.pj .pj-find .pj-i {
  color: var(--orange);
}
.pj .pj-fend,
.pj .pj-acc {
  display: none;
}
.pj .pj-sug {
  gap: 0;
  padding: 0 5px 0 9px;
  background: color-mix(in srgb, var(--orange) 5%, #fff);
  outline: 1px dashed color-mix(in srgb, var(--orange) 35%, transparent);
  outline-offset: -1px;
  color: color-mix(in srgb, var(--orange) 80%, var(--ink));
  transition:
    background 0.35s ease,
    color 0.35s ease,
    outline-color 0.35s ease;
}
.pj .pj-sp {
  display: flex;
  margin-right: 5px;
}
.pj .pj-sp .pj-i {
  width: 12px;
  height: 12px;
}
.pj .pj-yes,
.pj .pj-no {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: 3px;
  border-radius: 6px;
}
.pj .pj-yes {
  margin-left: 7px;
  color: #16a34a;
}
.pj .pj-no {
  color: #dc2626;
}
.pj .pj-yes .pj-i,
.pj .pj-no .pj-i {
  width: 13px;
  height: 13px;
}
.pj .pj-yes:has(.pj-press.is-in) {
  background: rgba(22, 163, 74, 0.12);
  animation: pj-press 0.45s var(--ease);
}
.pj .pj-tr2 {
  display: none;
  margin-left: 8px;
}
.pj .pj-tr2 .pj-i {
  color: var(--muted);
}
/* accepted: same chip, same spot, now a normal topic */
.pj .pj-sug:has(.pj-acc.is-in) {
  padding: 0 9px 0 11px;
  background: var(--pj-fill);
  outline-color: transparent;
  color: var(--ink);
}
.pj .pj-sug:has(.pj-acc.is-in) :is(.pj-sp, .pj-yes, .pj-no) {
  display: none;
}
.pj .pj-sug:has(.pj-acc.is-in) .pj-tr2 {
  display: flex;
}
/* the curriculum onboarding footer: Skip for Now + Continue */
.pj .pj-foot {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.pj .pj-skip {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
}
.pj .pj-cont {
  width: 150px;
  height: 34px;
}

/* launch: the real Create New Course dialog. Pick the class character, create, the class card pops up */
.pj .pj-cc {
  padding: 18px 20px 0;
  transition:
    opacity 0.3s ease,
    transform 0.45s var(--ease);
}
.pj .pj-cc.is-in {
  opacity: 0;
  transform: scale(0.97);
}
.pj .pj-cch {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pj .pj-cch img {
  width: 30px;
  height: 30px;
}
.pj .pj-cch div {
  flex: 1;
}
.pj .pj-cch b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.pj .pj-cch small {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
}
.pj .pj-cch > .pj-i {
  width: 16px;
  height: 16px;
}
.pj .pj-ccf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.pj .pj-cc label {
  display: block;
}
.pj .pj-cc label > span:first-child {
  display: block;
  margin-bottom: 4px;
  font-size: 10.5px;
  font-weight: 600;
}
.pj .pj-cc em {
  font-style: normal;
  color: #dc2626;
}
.pj .pj-in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(18, 24, 21, 0.14),
    0 1px 2px rgba(18, 24, 21, 0.05);
  font-size: 12.5px;
}
.pj .pj-in img {
  width: 20px;
  height: 20px;
}
.pj .pj-in b {
  flex: 1;
  font-weight: 500;
}
.pj .pj-in > .pj-i:last-child {
  margin-left: auto;
  width: 13px;
  height: 13px;
  color: var(--muted);
}
.pj .pj-ccc {
  margin-top: 14px;
}
.pj .pj-trig {
  height: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
}
.pj .pj-trig > span:not(.pj-press) {
  grid-area: 1/1;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: opacity 0.2s ease;
}
.pj .pj-ph {
  color: var(--muted);
}
.pj .pj-chosen {
  opacity: 0;
}

.pj .pj-chosen.is-in {
  opacity: 1;
}
.pj .pj-trig:has(.pj-chosen.is-in) .pj-ph {
  opacity: 0;
}
.pj .pj-chosen.is-in .av img {
  animation: pj-bump 0.5s var(--ease);
  transform-origin: 50% 100%;
}
@keyframes pj-bump {
  40% {
    transform: scale(1.25);
  }
}
.pj .pj-trig:has(.pj-press.is-in) {
  box-shadow: inset 0 0 0 1.5px var(--orange);
}
.pj .pj-ccfoot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 11px 20px;
  background: #f5f4f2;
}
.pj .pj-cancel,
.pj .pj-create {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
}
.pj .pj-cancel {
  background: #fde2e2;
  color: #b91c1c;
}
.pj .pj-create {
  background: #2b2b2b;
  color: #fff;
}
.pj .pj-create .pj-i {
  width: 13px;
  height: 13px;
}
.pj .pj-create:has(.pj-press.is-in) {
  animation: pj-press 0.45s var(--ease);
}
/* the character list opens above the field, as the real picker does near the bottom of a dialog */
.pj .pj-menu {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 134px;
  z-index: 4;
  padding: 5px;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(18, 24, 21, 0.1),
    0 18px 34px -18px rgba(18, 24, 21, 0.4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transform-origin: 50% 100%;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.3s var(--ease);
}
.pj .pj-menu.is-in {
  opacity: 1;
  transform: none;
}
.pj .pj-menu:has(.pj-mclose.is-in) {
  opacity: 0;
  transform: translateY(4px) scale(0.98);
}
.pj .pj-mclose {
  display: none;
}
.pj .pj-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.18s ease;
}

.pj .pj-opt.is-in:not(:has(~ .pj-opt.is-in)) {
  background: var(--pj-fill);
}
.pj .pj-tick {
  display: flex;
  margin-left: auto;
  color: var(--ink);
  opacity: 0;
}
.pj .pj-tick.is-in {
  opacity: 1;
}
/* the new class card, straight from Manage Courses: the class character in her classroom */
.pj .pj-card {
  position: absolute;
  left: 50%;
  top: 0;
  width: 290px;
  margin-left: -145px;
  padding: 6px 6px 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--pj-ring),
    0 22px 40px -26px rgba(80, 35, 0, 0.45);
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  transition:
    opacity 0.4s ease,
    transform 0.6s var(--ease);
}
.pj .pj-card.is-in {
  opacity: 1;
  transform: none;
}
.pj .pj-art {
  position: relative;
  height: 166px;
  border-radius: 11px;
  overflow: hidden;
}
.pj .pj-art .bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pj .pj-art .tutor {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 108%;
  width: auto;
  transform: translate(-50%, 30%);
  opacity: 0;
  transition:
    transform 0.7s var(--ease) 0.1s,
    opacity 0.3s ease 0.1s;
}
.pj .pj-card.is-in .tutor {
  transform: translate(-50%, 6%);
  opacity: 1;
}
.pj .pj-cbody {
  padding: 8px 6px 0;
}
.pj .pj-cbody > b {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
}
.pj .pj-cbody small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}
.pj .pj-launch {
  position: relative;
  display: grid;
  place-items: center;
  height: 36px;
  margin-top: 9px;
  border-radius: 9px;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s ease,
    transform 0.5s var(--ease),
    background 0.3s ease;
}
.pj .pj-launch.is-in {
  opacity: 1;
  transform: none;
}
.pj .pj-launch > span:not(.pj-press) {
  grid-area: 1/1;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: opacity 0.2s ease;
}
.pj .pj-launch .l1 {
  opacity: 0;
}
.pj .pj-launch .l1.is-in {
  opacity: 1;
}
.pj .pj-launch:has(.l1.is-in) .l0 {
  opacity: 0;
}
.pj .pj-launch:has(.l1.is-in) {
  background: var(--ink);
}
.pj .pj-launch:has(.pj-press.is-in) {
  animation: pj-press 0.45s var(--ease);
}
.pj .pj-launch .pj-i {
  width: 14px;
  height: 14px;
}

.pj .av {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--orange) 12%, #fff);
  clip-path: inset(-60% -20% 0 -20% round 0 0 18px 18px);
}
.pj .av img {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 48px;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
}
.pj .pj-opt {
  height: 50px;
}
.pj .pj-chosen .av {
  width: 28px;
  height: 28px;
  clip-path: inset(-60% -20% 0 -20% round 0 0 14px 14px);
}
.pj .pj-chosen .av img {
  height: 37px;
}
