/* ==========================================================================
   Product scenes: coded illustrations of the SKOOLES apps.
   Everything inside .skx-stage is sized in em, and the stage's font-size is
   derived from the container width, so each scene scales as one drawing.
   The product UI is light (as the real apps are); scenes sit on any surface.
   ========================================================================== */

.skx-scene {
  --u-bg: #F4F7FC;
  --u-card: #FFFFFF;
  --u-line: #E4EAF3;
  --u-text: #0E1B3D;
  --u-muted: #56627C;   /* 4.9:1 on the UI background */
  --u-blue: #1463F0;   /* 5:1 with white */
  --u-blue-soft: #E8F0FF;
  --u-green: #0B7A4B;
  --u-green-soft: #E3F7EE;
  --u-amber: #9A6200;
  --u-amber-soft: #FFF3DA;
  --u-red: #C8323A;
  --u-red-soft: #FDEBEC;
  --u-live: #1FBF75;
  --u-spark: #FFC933;
  --u-ease: cubic-bezier(0.22, 1, 0.36, 1);
  container-type: inline-size;
  position: relative;
  width: 100%;
  font-family: var(--font-sans, "Geist", system-ui, sans-serif);
  color: var(--u-text);
  line-height: 1.3;
  text-align: start;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
.skx-scene * { box-sizing: border-box; }
/* Astra pads every list in post content; scene lists are layout, not prose. */
.skx-scene .skx-stage :is(ul, ol) { padding: 0; list-style: none; }
.skx-scene p,
.skx-scene ul,
.skx-scene ol,
.skx-scene .skx-h { margin: 0; }
.skx-scene b { font-weight: 600; }
.skx-scene small { font-size: 0.85em; }
.skx-stage { position: relative; font-size: min(10px, calc(100cqw / 120)); }

.skx-i { width: 1.25em; height: 1.25em; flex: none; }
.skx-mark { width: 3.2em; height: auto; flex: none; }
.skx-muted { color: var(--u-muted); font-size: 1.15em; }

/* ---------- atoms ---------- */
.skx-live {
  position: relative;
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--u-live);
  flex: none;
}
.skx-live::after {
  content: "";
  position: absolute;
  inset: -0.35em;
  border-radius: 50%;
  border: 0.15em solid var(--u-live);
  animation: skx-ping 1.8s var(--u-ease) infinite;
}
@keyframes skx-ping { from { transform: scale(0.5); opacity: 0.9; } to { transform: scale(1.6); opacity: 0; } }

.skx-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.35em 0.8em;
  border-radius: 99em;
  font-size: 1.05em;
  font-weight: 600;
  white-space: nowrap;
  background: var(--u-bg);
  color: var(--u-muted);
}
.skx-chip--present { background: var(--u-green-soft); color: var(--u-green); }
.skx-chip--late { background: var(--u-amber-soft); color: var(--u-amber); }
.skx-chip--absent { background: var(--u-red-soft); color: var(--u-red); }
.skx-chip--blue { background: var(--u-blue-soft); color: var(--u-blue); }
.skx-chip--live { background: var(--u-green-soft); color: var(--u-green); }

.skx-avatar {
  display: inline-grid;
  place-items: center;
  width: 2.8em;
  height: 2.8em;
  border-radius: 50%;
  flex: none;
  background: hsl(var(--h) 70% 92%);
  color: hsl(var(--h) 60% 26%);
  font-size: 1em;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.skx-card {
  background: var(--u-card);
  border: 1px solid var(--u-line);
  border-radius: 1.2em;
  padding: 1.5em;
}
.skx-card > .skx-card__head,
.skx-mcard > .skx-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: 1.1em;
  font-size: 1.2em;
}
.skx-card > .skx-card__head b,
.skx-mcard > .skx-card__head b { display: inline-flex; align-items: center; gap: 0.5em; }

/* Tints: timetable blocks, agenda rails, course icons */
.skx-tint--blue { --t: #2E7BFF; --t-soft: #E8F0FF; }
.skx-tint--spark { --t: #E0A100; --t-soft: #FFF5D6; }
.skx-tint--green { --t: #16A56B; --t-soft: #E2F6EC; }
.skx-tint--violet { --t: #6D5CE8; --t-soft: #EEEBFF; }
.skx-tint--rose { --t: #E0457B; --t-soft: #FDE8F0; }
.skx-tint--cyan { --t: #0FA3C9; --t-soft: #E0F6FB; }
.skx-tint--red { --t: #E5484D; --t-soft: #FDEBEC; }

/* ---------- browser window ---------- */
.skx-window {
  position: relative;
  overflow: hidden;
  background: var(--u-bg);
  border-radius: 1.6em;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.1),
    0 0 0 0.6em rgb(255 255 255 / 0.04),
    0 4em 10em -3em rgb(0 0 0 / 0.55),
    0 2em 5em -2em rgb(46 123 255 / 0.3);
}
.skx-window__bar {
  display: flex;
  align-items: center;
  gap: 1.6em;
  height: 3.8em;
  padding: 0 1.6em;
  background: #fff;
  border-bottom: 1px solid var(--u-line);
}
.skx-dots { display: flex; gap: 0.6em; }
.skx-dots i { width: 1.05em; height: 1.05em; border-radius: 50%; background: #E3E8F0; }
.skx-dots i:nth-child(1) { background: #FF6159; }
.skx-dots i:nth-child(2) { background: #FFBD2E; }
.skx-dots i:nth-child(3) { background: #28C941; }
.skx-url {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 auto;
  padding: 0.45em 1.4em;
  border-radius: 99em;
  background: var(--u-bg);
  color: var(--u-muted);
  font-size: 1.1em;
}
.skx-url .skx-i { width: 1em; height: 1em; }

/* App shell */
.skx-app { display: grid; grid-template-columns: 19em 1fr; min-height: 58em; }
.skx-side {
  display: flex;
  flex-direction: column;
  gap: 1.6em;
  padding: 1.8em 1.4em;
  background: #fff;
  border-right: 1px solid var(--u-line);
}
.skx-side__brand { display: flex; align-items: center; gap: 0.7em; font-size: 1.3em; letter-spacing: 0.02em; }
.skx-side__brand .skx-mark { width: 2.4em; }
.skx-side__school {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.8em;
  border: 1px solid var(--u-line);
  border-radius: 0.9em;
  font-size: 1.1em;
  font-weight: 600;
}
.skx-side__school small { display: block; font-weight: 400; color: var(--u-muted); }
.skx-side__crest {
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 0.6em;
  background: linear-gradient(135deg, #1463F0, #22B8FF);
  color: #fff;
  font-weight: 700;
}
.skx-side__nav { display: flex; flex-direction: column; gap: 0.2em; }
.skx-side__nav span {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.75em 0.9em;
  border-radius: 0.8em;
  color: var(--u-muted);
  font-size: 1.15em;
  font-weight: 500;
}
.skx-side__nav span.is-active { background: var(--u-blue-soft); color: var(--u-blue); }
.skx-side__nav em {
  margin-left: auto;
  padding: 0.1em 0.55em;
  border-radius: 99em;
  background: var(--u-blue);
  color: #fff;
  font-size: 0.85em;
  font-style: normal;
  font-weight: 600;
}
.skx-side__sync {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin-top: auto;
  padding: 0.9em;
  border-radius: 0.8em;
  background: var(--u-green-soft);
  color: var(--u-green);
  font-size: 1.05em;
  font-weight: 600;
}

.skx-main { display: flex; flex-direction: column; gap: 1.8em; padding: 2.2em 2.4em; }
.skx-main__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2em; }
.skx-main__head .skx-h { font-size: 2.2em; font-weight: 650; letter-spacing: -0.03em; margin-top: 0.15em; }
.skx-main__tools { display: flex; align-items: center; gap: 0.9em; }
.skx-search {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  width: 22em;
  padding: 0.75em 1em;
  border-radius: 0.8em;
  background: #fff;
  border: 1px solid var(--u-line);
  color: var(--u-muted);
  font-size: 1.1em;
}
.skx-iconbtn {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.3em;
  height: 3.3em;
  border-radius: 0.8em;
  background: #fff;
  border: 1px solid var(--u-line);
  color: var(--u-muted);
}
.skx-badge-dot { position: absolute; top: 0.7em; right: 0.8em; width: 0.6em; height: 0.6em; border-radius: 50%; background: #FF5A5F; }
.skx-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.3em;
  border-radius: 0.8em;
  background: var(--u-blue);
  color: #fff;
  font-size: 1.1em;
  font-weight: 600;
  box-shadow: 0 0.6em 1.4em -0.6em rgb(46 123 255 / 0.8);
}

.skx-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4em; }
.skx-kpi { display: flex; flex-direction: column; gap: 0.5em; }
.skx-kpi__value { font-size: 3.2em; font-weight: 650; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.skx-kpi__value small { font-size: 0.5em; color: var(--u-muted); font-weight: 500; }
.skx-kpi__note { display: flex; align-items: center; gap: 0.6em; color: var(--u-muted); font-size: 1.1em; }
.skx-spark { display: flex; align-items: flex-end; gap: 0.35em; height: 2.4em; }
.skx-spark i {
  flex: 1;
  height: calc(var(--v) * 1%);
  border-radius: 0.2em;
  background: linear-gradient(to top, #BFD6FF, var(--u-blue));
  transform-origin: bottom;
  animation: skx-bar 2.8s var(--u-ease) infinite alternate;
  animation-delay: calc(var(--v) * -40ms);
}
@keyframes skx-bar { from { transform: scaleY(0.55); } to { transform: scaleY(1); } }

.skx-panels { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.4em; }
.skx-roster ul { display: flex; flex-direction: column; gap: 0.35em; }
.skx-roster li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1em;
  padding: 0.55em 0.4em;
  border-radius: 0.8em;
  font-size: 1.1em;
  animation: skx-row 6s var(--u-ease) infinite;
  animation-delay: calc(var(--i) * 0.9s);
}
@keyframes skx-row {
  0%, 12% { background: transparent; }
  6% { background: var(--u-blue-soft); }
}
.skx-roster__name { font-weight: 550; }
.skx-roster__time { color: var(--u-muted); font-variant-numeric: tabular-nums; }

/* Maps */
.skx-map,
.skx-phone-map,
.skx-bus__map {
  position: relative;
  overflow: hidden;
  border-radius: 0.9em;
  background: #EEF3FA;
}
.skx-map { height: 14.5em; }
.skx-map svg,
.skx-phone-map svg,
.skx-bus__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.skx-map__street { stroke: #fff; stroke-width: 7; fill: none; }
.skx-map__route {
  fill: none;
  stroke: var(--u-blue);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 8 7;
  animation: skx-dash 1.4s linear infinite;
}
.skx-map__route--b { stroke: #9DB4D9; animation-duration: 2.2s; }
@keyframes skx-dash { to { stroke-dashoffset: -30; } }
.skx-map__bus,
.skx-phone-map__bus,
.skx-bus__vehicle {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  margin: -1.3em 0 0 -1.3em;
  border-radius: 50%;
  background: var(--u-spark);
  color: #0E1B3D;
  box-shadow: 0 0 0 0.35em rgb(255 201 51 / 0.35), 0 0.4em 1em rgb(0 0 0 / 0.2);
}
.skx-map__bus .skx-i,
.skx-phone-map__bus .skx-i,
.skx-bus__vehicle .skx-i { width: 1.4em; height: 1.4em; }
.skx-map__bus--a { animation: skx-route-a 9s ease-in-out infinite alternate; }
.skx-map__bus--b { animation: skx-route-b 12s ease-in-out infinite alternate; background: #fff; box-shadow: 0 0 0 0.35em rgb(157 180 217 / 0.4); }
@keyframes skx-route-a {
  0% { left: 6.7%; top: 17.6%; } 16% { left: 20%; top: 19%; } 33% { left: 33%; top: 41%; }
  50% { left: 50%; top: 65%; } 66% { left: 66.7%; top: 81%; } 83% { left: 83%; top: 86%; } 100% { left: 95%; top: 82%; }
}
@keyframes skx-route-b {
  0% { left: 6.7%; top: 88%; } 16% { left: 18%; top: 82%; } 33% { left: 27%; top: 59%; }
  50% { left: 40%; top: 53%; } 66% { left: 57%; top: 41%; } 83% { left: 73%; top: 26%; } 100% { left: 93%; top: 18%; }
}
.skx-map__school {
  position: absolute;
  right: 3%;
  top: 72%;
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 0.6em;
  background: var(--u-text);
  color: #fff;
}
.skx-transport__row { display: flex; align-items: center; gap: 1em; margin-top: 1em; font-size: 1.1em; }
.skx-transport__row span:not(.skx-chip) { color: var(--u-muted); flex: 1; }

/* ---------- phone ---------- */
.skx-phone {
  position: relative;
  width: 30em;
  padding: 0.9em;
  border-radius: 4.8em;
  background: linear-gradient(145deg, #2A3350, #0B1022 40%, #1C2440);
  box-shadow:
    inset 0 0 0 0.15em rgb(255 255 255 / 0.12),
    0 4em 8em -2em rgb(0 0 0 / 0.55),
    0 1.5em 4em -1.5em rgb(46 123 255 / 0.35);
}
.skx-phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  height: 60em;
  overflow: hidden;
  padding: 0 1.4em 1.4em;
  border-radius: 3.9em;
  background: var(--u-bg);
}
.skx-statusbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.4em;
  padding: 0 1.2em;
  font-size: 1.15em;
  font-weight: 650;
}
.skx-island {
  position: absolute;
  left: 50%;
  top: 0.9em;
  width: 8.2em;
  height: 2.3em;
  margin-left: -4.1em;
  border-radius: 99em;
  background: #05070F;
}
.skx-statusbar__icons { display: inline-flex; align-items: center; gap: 0.4em; }
.skx-statusbar__icons .skx-i { width: 1.1em; height: 1.1em; }
.skx-battery {
  width: 2em;
  height: 0.95em;
  border-radius: 0.3em;
  border: 0.12em solid currentColor;
  background: linear-gradient(90deg, currentColor 70%, transparent 70%) content-box;
  padding: 0.1em;
}

.skx-mcard {
  background: var(--u-card);
  border: 1px solid var(--u-line);
  border-radius: 1.6em;
  padding: 1.3em;
}
.skx-hub-hello { padding: 0.4em 0.3em 0; }
.skx-hub-hello__name { font-size: 2.3em; font-weight: 650; letter-spacing: -0.03em; }
.skx-hub-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0.3em; }
.skx-hub-head__title { display: inline-flex; align-items: center; gap: 0.5em; font-size: 1.8em; font-weight: 650; letter-spacing: -0.02em; }
.skx-phone-map { height: 22em; flex: none; }
.skx-phone-map__bus { animation: skx-route-p 8s ease-in-out infinite alternate; }
@keyframes skx-route-p {
  0% { left: 9%; top: 89%; } 16% { left: 22.5%; top: 83%; } 33% { left: 30%; top: 64%; }
  50% { left: 50%; top: 53%; } 66% { left: 67.5%; top: 39%; } 83% { left: 80%; top: 22%; } 100% { left: 92%; top: 12%; }
}
.skx-phone-map__pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  margin: -1.2em 0 0 -1.2em;
  border-radius: 0.7em;
  background: var(--u-text);
  color: #fff;
}
.skx-phone-map__pin--home { left: 9%; top: 89%; background: #fff; color: var(--u-text); box-shadow: 0 0.2em 0.6em rgb(0 0 0 / 0.15); }
.skx-phone-map__pin--school { left: 92%; top: 12%; }

.skx-sheet {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin: 0 -1.4em -1.4em;
  padding: 1.8em 1.8em 2em;
  flex: 1;
  border-radius: 2.4em 2.4em 0 0;
  background: #fff;
  box-shadow: 0 -0.6em 2em rgb(14 27 61 / 0.08);
}
.skx-sheet__title { font-size: 1.8em; font-weight: 650; letter-spacing: -0.02em; }
.skx-stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4em; margin: 0.4em 0; }
.skx-stepper li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  color: var(--u-muted);
  font-size: 1.05em;
  font-weight: 600;
}
.skx-stepper i { height: 0.5em; border-radius: 99em; background: var(--u-line); }
.skx-stepper .is-done i { background: var(--u-live); }
.skx-stepper .is-current { color: var(--u-text); }
.skx-stepper .is-current i {
  background: linear-gradient(90deg, var(--u-live) 0 50%, var(--u-line) 50%) 0 0 / 200% 100%;
  animation: skx-progress 2.4s ease-in-out infinite alternate;
}
@keyframes skx-progress { from { background-position: 100% 0; } to { background-position: 30% 0; } }
.skx-sheet__row { display: flex; align-items: center; gap: 0.7em; padding: 0.9em 1em; border-radius: 1em; background: var(--u-bg); font-size: 1.1em; }
.skx-sheet__sync { display: flex; align-items: center; gap: 0.7em; color: var(--u-green); font-size: 1.05em; font-weight: 600; }

.skx-tabbar {
  display: flex;
  justify-content: space-around;
  margin: auto -1.4em -1.4em;
  padding: 1.2em 1em 2em;
  background: #fff;
  border-top: 1px solid var(--u-line);
  color: var(--u-muted);
}
.skx-tabbar .skx-i { width: 2em; height: 2em; }
.skx-tabbar .is-on { color: var(--u-blue); }

/* Agenda */
.skx-agenda { display: flex; flex-direction: column; gap: 0.6em; }
.skx-agenda li {
  display: grid;
  grid-template-columns: 4.6em 1fr;
  align-items: center;
  gap: 0.8em;
  padding: 0.8em 1em;
  border-radius: 1em;
  background: var(--t-soft);
  border-left: 0.35em solid var(--t);
  font-size: 1.1em;
}
.skx-agenda time { color: var(--u-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.skx-agenda small,
.skx-courses small,
.skx-assign small,
.skx-grade small { display: block; color: var(--u-muted); }
.skx-grade { display: flex; align-items: center; gap: 1em; font-size: 1.1em; }
.skx-grade__icon,
.skx-assign__icon,
.skx-roles__card-icon {
  display: grid;
  place-items: center;
  width: 3.4em;
  height: 3.4em;
  border-radius: 1em;
  background: var(--u-blue-soft);
  color: var(--u-blue);
  flex: none;
}
.skx-grade__score { margin-left: auto; font-size: 1.8em; font-weight: 700; color: var(--u-green); letter-spacing: -0.02em; }

/* SkooBook */
.skx-offline-bar,
.skx-conn {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.9em 1.1em;
  border-radius: 1.1em;
  background: #0E1B3D;
  color: #fff;
  font-size: 1.1em;
  font-weight: 550;
}
.skx-courses { display: flex; flex-direction: column; gap: 0.8em; }
.skx-courses li { display: flex; align-items: center; gap: 1em; padding: 1.1em; font-size: 1.15em; }
.skx-courses__icon { display: grid; place-items: center; width: 3.2em; height: 3.2em; border-radius: 0.9em; background: var(--t-soft); color: var(--t); flex: none; }
.skx-courses__body { display: flex; flex-direction: column; gap: 0.6em; flex: 1; }
.skx-progress { height: 0.5em; border-radius: 99em; background: var(--u-line); overflow: hidden; }
.skx-progress i { display: block; width: var(--p); height: 100%; border-radius: inherit; background: var(--t); }
.skx-courses__badge { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--u-green-soft); color: var(--u-green); }
.skx-courses__badge .skx-i { width: 1.1em; height: 1.1em; }
.skx-assign { display: flex; align-items: center; gap: 1em; font-size: 1.1em; }

/* SkooNet */
.skx-chat { gap: 0.9em; }
.skx-chat__head { display: flex; align-items: center; gap: 1em; padding: 0 0.3em 0.9em; border-bottom: 1px solid var(--u-line); font-size: 1.15em; }
.skx-chat__head small { display: flex; align-items: center; gap: 0.35em; color: var(--u-green); font-weight: 550; }
.skx-chat__head small .skx-i { width: 1em; height: 1em; }
.skx-chat__room { display: grid; place-items: center; width: 3.4em; height: 3.4em; border-radius: 50%; background: linear-gradient(135deg, #6D5CE8, #2E7BFF); color: #fff; font-weight: 700; }
.skx-chat__pinned { display: flex; gap: 0.7em; padding: 1em; border-radius: 1.1em; background: var(--u-amber-soft); color: #5C3C00; font-size: 1.05em; }
.skx-chat__pinned b { display: block; }
.skx-chat__thread { display: flex; flex-direction: column; gap: 0.7em; flex: 1; }
.skx-bubble {
  max-width: 82%;
  padding: 0.9em 1.2em;
  border-radius: 1.5em;
  font-size: 1.15em;
  line-height: 1.35;
  animation: skx-bubble 9s var(--u-ease) infinite;
  animation-delay: calc(var(--i) * 1.1s);
}
.skx-bubble b { display: block; margin-bottom: 0.2em; font-size: 0.82em; color: var(--u-blue); }
.skx-bubble--in { align-self: flex-start; background: #fff; border: 1px solid var(--u-line); border-bottom-left-radius: 0.4em; }
.skx-bubble--in[dir="rtl"] { border-bottom-left-radius: 1.5em; border-bottom-right-radius: 0.4em; }
.skx-bubble--out { align-self: flex-end; background: var(--u-blue); color: #fff; border-bottom-right-radius: 0.4em; }
@keyframes skx-bubble {
  0% { opacity: 0; transform: translateY(0.8em) scale(0.96); }
  6%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}
.skx-typing { display: inline-flex; gap: 0.35em; align-self: flex-start; padding: 1em 1.2em; border-radius: 1.5em; background: #fff; border: 1px solid var(--u-line); animation: skx-bubble 9s var(--u-ease) infinite; animation-delay: 4.4s; }
.skx-typing i { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--u-muted); animation: skx-dot 1s ease-in-out infinite; }
.skx-typing i:nth-child(2) { animation-delay: 0.15s; }
.skx-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes skx-dot { 50% { transform: translateY(-0.35em); opacity: 0.4; } }
.skx-chat__compose { display: flex; align-items: center; justify-content: space-between; padding: 0.7em 0.7em 0.7em 1.4em; border-radius: 99em; background: #fff; border: 1px solid var(--u-line); color: var(--u-muted); font-size: 1.1em; }
.skx-chat__send { display: grid; place-items: center; width: 2.8em; height: 2.8em; border-radius: 50%; background: var(--u-blue); color: #fff; }

/* ---------- toasts (float on dark) ---------- */
.skx-toast {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 1.1em 1.6em 1.1em 1.1em;
  border-radius: 1.6em;
  background: rgb(14 24 52 / 0.72);
  backdrop-filter: blur(1.6em) saturate(1.4);
  -webkit-backdrop-filter: blur(1.6em) saturate(1.4);
  color: #fff;
  font-size: 1.2em;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 1.8em 4em -1.2em rgb(0 0 0 / 0.6);
}
.skx-toast[dir="rtl"] { padding: 1.1em 1.1em 1.1em 1.6em; }
.skx-toast b { display: block; font-weight: 600; }
.skx-toast small { display: block; color: #A7B3CF; }
.skx-toast__icon { display: grid; place-items: center; width: 2.8em; height: 2.8em; border-radius: 0.9em; flex: none; }
.skx-toast__icon--green { background: rgb(31 191 117 / 0.18); color: #52E3A4; }
.skx-toast__icon--blue { background: rgb(46 123 255 / 0.22); color: #8FB8FF; }
.skx-toast__icon--spark { background: rgb(255 201 51 / 0.18); color: #FFD76A; }

/* ---------- hero composition ---------- */
.skx-scene--hero .skx-stage { font-size: min(10.5px, calc(100cqw / 126)); }
.skx-hero { position: relative; width: 120em; height: 78em; margin: 0 auto; }
.skx-hero__window { position: absolute; left: 0; top: 0; width: 100em; }
.skx-hero__phone { position: absolute; right: 0; top: 14em; }
.skx-hero__phone .skx-phone__screen { height: 58em; }
.skx-hero__toast--a { left: -3em; top: 36em; }
.skx-hero__toast--b { left: 58em; top: -3.2em; }
.skx-hero__toast--c { right: 26em; bottom: 3em; }

/* Narrow containers: phone-led composition */
@container (max-width: 700px) {
  .skx-scene--hero .skx-stage { font-size: calc(100cqw / 64); }
  .skx-hero { width: 64em; height: 76em; }
  .skx-hero__window { width: 100em; left: -2em; top: 2em; transform: scale(0.58); transform-origin: top left; opacity: 0.9; }
  .skx-hero__phone { right: 1em; top: 12em; }
  .skx-hero__toast--a { left: 0; top: 44em; }
  .skx-hero__toast--b { left: auto; right: 4em; top: 5em; }
  .skx-hero__toast--c { display: none; }
}

/* ---------- SKOOLES Web timetable ---------- */
.skx-scene--web .skx-stage { font-size: min(10px, calc(100cqw / 100)); }
.skx-web { width: 100em; }
.skx-web__body { padding: 2.2em 2.4em 2.6em; }
.skx-web__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 1.8em; }
.skx-web__head .skx-h { font-size: 2.2em; font-weight: 650; letter-spacing: -0.03em; margin-top: 0.15em; }
.skx-seg { display: inline-flex; padding: 0.3em; border-radius: 0.9em; background: #fff; border: 1px solid var(--u-line); font-size: 1.1em; }
.skx-seg span { padding: 0.5em 1.1em; border-radius: 0.6em; color: var(--u-muted); font-weight: 550; }
.skx-seg .is-on { background: var(--u-text); color: #fff; }
.skx-tt { position: relative; display: grid; grid-template-columns: 5.5em repeat(5, 1fr); gap: 0.8em; }
.skx-tt__times { display: grid; grid-template-rows: 3em repeat(6, 7em); color: var(--u-muted); font-size: 1em; font-variant-numeric: tabular-nums; }
.skx-tt__times span:first-child { grid-row: 2; }
.skx-tt__day { display: grid; grid-template-rows: 3em 1fr; }
.skx-tt__label { font-size: 1.15em; font-weight: 600; color: var(--u-muted); }
.skx-tt__col {
  position: relative;
  display: grid;
  grid-template-rows: repeat(6, 7em);
  border-radius: 1em;
  background: repeating-linear-gradient(to bottom, #fff 0 6.9em, var(--u-line) 6.9em 7em);
}
.skx-tt__class {
  grid-row: calc(var(--row) + 1) / span var(--span);
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  margin: 0.35em;
  padding: 0.8em 0.9em;
  border-radius: 0.8em;
  background: var(--t-soft);
  border-left: 0.35em solid var(--t);
  font-size: 1.05em;
  animation: skx-pop 700ms var(--u-ease) both;
  animation-delay: calc(var(--i) * 60ms);
}
.skx-tt__class b { color: var(--u-text); }
.skx-tt__class small { color: var(--u-muted); }
@keyframes skx-pop { from { opacity: 0; transform: translateY(0.8em) scale(0.96); } }
.skx-tt__now { position: absolute; left: 5.5em; right: 0; top: 17.5em; height: 0; border-top: 0.2em solid #FF5A5F; }
.skx-tt__now i { position: absolute; left: -0.5em; top: -0.6em; width: 1em; height: 1em; border-radius: 50%; background: #FF5A5F; }

/* ---------- solo phone scenes ---------- */
.skx-scene--hub .skx-stage,
.skx-scene--book .skx-stage,
.skx-scene--net .skx-stage,
.skx-scene--roles .skx-phone,
.skx-scene--offline .skx-phone { font-size: min(10.5px, calc(100cqw / 32)); }
.skx-phone--solo { margin: 0 auto; }

/* ---------- offline demo ---------- */
.skx-scene--offline .skx-stage { font-size: 10px; }
.skx-offline { display: flex; flex-direction: column; align-items: center; gap: 2em; }
.skx-offline__controls {
  /* Real controls: readable size regardless of the scene's scaling. */
  font-size: clamp(8.5px, 2.6cqw, 10px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0.4em;
  border-radius: 99em;
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  width: min(100%, 56em);
}
.skx-offline__opt {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 4.4em;
  padding: 0 1em;
  border: 0;
  border-radius: 99em;
  background: none;
  color: #A7B3CF;
  font: inherit;
  font-size: 1.4em;
  font-weight: 550;
  cursor: pointer;
  transition: color 250ms var(--u-ease);
}
.skx-offline__opt[aria-checked="true"] { color: #0E1B3D; }
@container (max-width: 480px) {
  .skx-offline__opt .skx-i { display: none; }
  .skx-offline__opt { padding: 0 0.4em; font-size: 1.45em; }
}
.skx-offline__opt:hover { color: #fff; }
.skx-offline__opt[aria-checked="true"]:hover { color: #0E1B3D; }
.skx-offline__opt:focus-visible { outline: 2px solid #6BE3FF; outline-offset: 2px; }
.skx-offline__pill {
  position: absolute;
  top: 0.4em;
  bottom: 0.4em;
  left: 0.4em;
  width: calc((100% - 0.8em) / 4);
  border-radius: 99em;
  background: #fff;
  box-shadow: 0 0.4em 1.4em -0.4em rgb(0 0 0 / 0.5);
  transform: translateX(calc(var(--pos, 3) * 100%));
  transition: transform 400ms var(--u-ease);
}
.skx-offline__caption { min-height: 1.5em; color: #A7B3CF; font-size: 1.5em; text-align: center; }
.skx-offline__phone .skx-phone__screen { height: 56em; }

.skx-conn { transition: background-color 400ms var(--u-ease); }
.skx-offline[data-state="full"] .skx-conn { background: var(--u-green-soft); color: var(--u-green); }
.skx-offline[data-state="limited"] .skx-conn { background: var(--u-amber-soft); color: var(--u-amber); }

.skx-take { display: flex; flex-direction: column; gap: 0.5em; }
.skx-take li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1em;
  padding: 0.8em 1em;
  border-radius: 1.2em;
  background: #fff;
  border: 1px solid var(--u-line);
  font-size: 1.15em;
  transition: border-color 300ms var(--u-ease), background-color 300ms var(--u-ease);
}
.skx-take__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  border: 0.15em solid var(--u-line);
  color: transparent;
  transition: all 300ms var(--u-ease);
}
.skx-take__mark .skx-i { position: absolute; width: 1.3em; height: 1.3em; transition: opacity 250ms var(--u-ease), transform 350ms var(--u-ease); }
.skx-take__mark .skx-take__queued { opacity: 0; transform: scale(0.6); }
.skx-take li.is-marked .skx-take__mark { border-color: var(--u-green); background: var(--u-green); color: #fff; }
.skx-take li.is-marked.is-queued .skx-take__mark { border-color: #98A3B8; background: #fff; color: #5E6A80; }
.skx-take li.is-queued .skx-take__mark .skx-i:not(.skx-take__queued) { opacity: 0; transform: scale(0.6); }
.skx-take li.is-queued .skx-take__mark .skx-take__queued { opacity: 1; transform: none; }
.skx-take li.is-flash { background: var(--u-green-soft); border-color: #B8EBD2; }

.skx-queue {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  margin: auto -1.4em -1.4em;
  padding: 1.4em 1.8em 2em;
  background: #fff;
  border-top: 1px solid var(--u-line);
  font-size: 1.15em;
}
.skx-queue__count b { display: inline-block; min-width: 1ch; font-variant-numeric: tabular-nums; }
.skx-queue__fresh { color: var(--u-muted); font-size: 0.92em; }

/* ---------- bento minis ---------- */
.skx-mini { position: relative; font-size: min(10px, calc(100cqw / 40)); }
.skx-bus__map { height: 22em; border-radius: 1.4em; }
.skx-bus__vehicle { animation: skx-route-bento 10s ease-in-out infinite alternate; }
@keyframes skx-route-bento {
  0% { left: 6%; top: 89%; } 14% { left: 17.5%; top: 86%; } 28% { left: 24%; top: 64%; } 43% { left: 40%; top: 53%; }
  57% { left: 57.5%; top: 39%; } 71% { left: 75%; top: 32%; } 86% { left: 86%; top: 23%; } 100% { left: 95%; top: 11%; }
}
.skx-bus__stop {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 1.2em;
  height: 1.2em;
  margin: -0.6em 0 0 -0.6em;
  border-radius: 50%;
  background: #fff;
  border: 0.3em solid var(--u-blue);
}
.skx-bus__stop--school { display: grid; place-items: center; width: 2.6em; height: 2.6em; margin: -1.3em 0 0 -1.3em; border: 0; border-radius: 0.7em; background: var(--u-text); color: #fff; }
.skx-bus__status {
  position: absolute;
  left: 1.4em;
  bottom: 1.4em;
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.7em 0.8em 0.7em 1.2em;
  border-radius: 99em;
  background: #fff;
  box-shadow: 0 0.6em 1.6em -0.4em rgb(14 27 61 / 0.25);
  font-size: 1.3em;
}
.skx-bus__label { color: var(--u-muted); }
.skx-swap {
  display: inline-block;
  padding: 0.3em 0.8em;
  border-radius: 99em;
  background: var(--u-green-soft);
  color: var(--u-green);
  font-weight: 650;
}

.skx-bi { height: 22em; }
.skx-bi__toggle {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0.3em;
  border-radius: 99em;
  background: #fff;
  border: 1px solid var(--u-line);
  font-size: 1.2em;
  font-weight: 650;
}
.skx-bi__toggle span { position: relative; z-index: 1; padding: 0.3em 0.8em; text-align: center; color: var(--u-muted); transition: color 300ms var(--u-ease); }
.skx-bi__toggle i { position: absolute; top: 0.3em; bottom: 0.3em; left: 0.3em; width: calc(50% - 0.3em); border-radius: 99em; background: var(--u-text); transition: transform 450ms var(--u-ease); }
.skx-bi.is-ar .skx-bi__toggle i { transform: translateX(100%); }
.skx-bi__toggle span.is-on { color: #fff; }
.skx-bi__screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding-top: 0.6em;
  transition: opacity 500ms var(--u-ease), transform 600ms var(--u-ease), filter 500ms var(--u-ease);
}
.skx-bi__screen--ar { opacity: 0; transform: translateX(-2em); filter: blur(0.4em); pointer-events: none; }
.skx-bi.is-ar .skx-bi__screen--en { opacity: 0; transform: translateX(2em); filter: blur(0.4em); }
.skx-bi.is-ar .skx-bi__screen--ar { opacity: 1; transform: none; filter: none; }
.skx-bi__title { font-size: 1.6em; font-weight: 650; letter-spacing: -0.01em; }
.skx-bi__screen[dir="rtl"] .skx-bi__title { letter-spacing: 0; }
.skx-bi__screen ul { display: flex; flex-direction: column; gap: 0.6em; }
.skx-bi__screen li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1em;
  padding: 0.8em 1em;
  border-radius: 1.1em;
  background: #fff;
  border: 1px solid var(--u-line);
  font-size: 1.3em;
}

.skx-ai { display: flex; flex-direction: column; gap: 1.2em; height: 22em; }
.skx-ai__prompt {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 1em 1.2em;
  border-radius: 1.2em;
  background: #fff;
  border: 1px solid var(--u-line);
  font-size: 1.3em;
  font-weight: 550;
}
.skx-ai__prompt .skx-i { color: #6D5CE8; }
.skx-ai__out { display: flex; flex-direction: column; gap: 0.7em; padding: 0 0.4em; font-size: 1.25em; }
.skx-ai__status { color: var(--u-muted); font-weight: 600; }
.skx-shimmer {
  background: linear-gradient(90deg, #98A3B8 0%, #98A3B8 35%, #2E7BFF 50%, #98A3B8 65%, #98A3B8 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: skx-shimmer 1.6s linear infinite;
}
@keyframes skx-shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.skx-ai__line { animation: skx-ai-line 7s var(--u-ease) infinite; animation-delay: calc(0.6s + var(--i) * 0.7s); }
@keyframes skx-ai-line {
  0% { opacity: 0; transform: translateY(0.4em); filter: blur(0.25em); }
  6%, 88% { opacity: 1; transform: none; filter: none; }
  96%, 100% { opacity: 0; }
}
.skx-ai__review { display: inline-flex; align-items: center; gap: 0.5em; color: var(--u-green); font-weight: 600; animation: skx-ai-line 7s var(--u-ease) infinite; animation-delay: 2.9s; }

/* AI assistant window (home AI section): tools on the left take turns. */
.skx-studio__body { display: grid; grid-template-columns: 19em 1fr; min-height: 44em; }
.skx-studio__tools {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  padding: 1.8em 1.2em;
  background: #fff;
  border-right: 1px solid var(--u-line);
}
.skx-studio__tools li {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.85em 1em;
  border-radius: 0.9em;
  color: var(--u-muted);
  font-size: 1.2em;
  font-weight: 550;
  transition: background-color 400ms var(--u-ease), color 400ms var(--u-ease);
}
.skx-studio__tools li.is-active { background: #EEEBFF; color: #5B4AD6; }
.skx-studio__tools .skx-studio__note {
  margin-top: auto;
  align-items: flex-start;
  padding: 1em;
  border-radius: 0.9em;
  background: var(--u-green-soft);
  color: var(--u-green);
  font-size: 1.05em;
  font-weight: 600;
  line-height: 1.35;
}
.skx-studio__panels { display: grid; padding: 2.4em 2.6em; }
.skx-studio__panel { grid-area: 1 / 1; display: none; flex-direction: column; gap: 1.1em; }
.skx-studio__panel.is-active { display: flex; }
.skx-studio__panel .skx-ai__prompt { margin-bottom: 0.6em; }
.skx-studio__panel .skx-ai__status { font-size: 1.2em; }
.skx-studio__line {
  padding: 0.9em 1.1em;
  border-radius: 0.9em;
  background: #fff;
  border: 1px solid var(--u-line);
  font-size: 1.3em;
  line-height: 1.4;
  animation: skx-studio-in 600ms var(--u-ease) both;
  animation-delay: calc(0.5s + var(--i) * 0.6s);
}
.skx-studio__line [dir="rtl"] { display: block; text-align: right; font-size: 1.05em; }
.skx-studio__end {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.4em;
  color: var(--u-green);
  font-size: 1.25em;
  font-weight: 600;
  animation: skx-studio-in 600ms var(--u-ease) both;
  animation-delay: calc(0.5s + var(--i) * 0.6s);
}
@keyframes skx-studio-in { from { opacity: 0; transform: translateY(0.5em); filter: blur(0.2em); } }
@container (max-width: 560px) {
  .skx-studio__body { grid-template-columns: 1fr; }
  .skx-studio__tools { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--u-line); padding: 1.2em; }
  .skx-studio__tools .skx-studio__note { display: none; }
  .skx-studio__panels { padding: 1.8em 1.6em; }
}

.skx-sso { height: 22em; }
.skx-sso__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.skx-sso__lines path { fill: none; stroke: #C9D7F0; stroke-width: 1.5; stroke-dasharray: 5 6; animation: skx-dash 1.6s linear infinite; }
.skx-sso__core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 6.4em;
  height: 6.4em;
  margin: -3.2em 0 0 -3.2em;
  border-radius: 1.8em;
  background: linear-gradient(135deg, #1463F0, #22B8FF);
  color: #fff;
  box-shadow: 0 1em 2.4em -0.6em rgb(46 123 255 / 0.7);
  animation: skx-breathe 3s ease-in-out infinite;
}
.skx-sso__core .skx-i { width: 2.6em; height: 2.6em; }
@keyframes skx-breathe { 50% { transform: scale(1.06); } }
.skx-sso__app {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
  width: 7em;
  margin: -3em 0 0 -3.5em;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--u-muted);
}
.skx-sso__app .skx-i {
  width: 4.4em;
  height: 4.4em;
  padding: 1.1em;
  border-radius: 1.3em;
  background: #fff;
  border: 1px solid var(--u-line);
  color: var(--u-text);
  box-shadow: 0 0.6em 1.4em -0.8em rgb(14 27 61 / 0.3);
}
.skx-sso__app--0 { left: 16.7%; top: 20%; }
.skx-sso__app--1 { left: 83.3%; top: 20%; }
.skx-sso__app--2 { left: 16.7%; top: 80%; }
.skx-sso__app--3 { left: 83.3%; top: 80%; }

.skx-ring { display: grid; place-items: center; height: 22em; }
.skx-ring svg { width: 19em; height: 19em; transform: rotate(-90deg); }
.skx-ring__track { fill: none; stroke: var(--u-line); stroke-width: 10; }
.skx-ring__value {
  fill: none;
  stroke: var(--u-blue);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: var(--p) 100;
  animation: skx-ring 2.2s var(--u-ease) both;
}
@keyframes skx-ring { from { stroke-dasharray: 0 100; } }
.skx-ring__label { position: absolute; display: flex; align-items: baseline; flex-wrap: wrap; justify-content: center; width: 12em; }
.skx-ring__label b { font-size: 4.6em; font-weight: 650; letter-spacing: -0.04em; }
.skx-ring__label small { font-size: 1.8em; color: var(--u-muted); }
.skx-ring__label em { flex-basis: 100%; text-align: center; font-style: normal; color: var(--u-muted); font-size: 1.3em; }

/* ---------- roles ---------- */
.skx-scene--roles .skx-stage { font-size: 10px; }
.skx-roles { display: flex; flex-direction: column; align-items: center; gap: 3.2em; }
.skx-roles__tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2em;
  padding: 0.4em;
  border-radius: 99em;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--u-line), 0 0.8em 2em -1em rgb(14 27 61 / 0.2);
}
.skx-roles__tab {
  position: relative;
  z-index: 1;
  min-height: 4.4em;
  padding: 0 1.8em;
  border: 0;
  border-radius: 99em;
  background: none;
  color: var(--u-muted);
  font: inherit;
  font-size: 1.5em;
  font-weight: 550;
  cursor: pointer;
  transition: color 250ms var(--u-ease);
}
.skx-roles__tab:hover { color: var(--u-text); }
.skx-roles__tab[aria-selected="true"] { color: #fff; }
.skx-roles__tab:focus-visible { outline: 2px solid var(--u-blue); outline-offset: 2px; }
.skx-roles__pill {
  position: absolute;
  top: 0.4em;
  left: 0;
  height: 4.4em;
  border-radius: 99em;
  background: var(--u-text);
  transition: transform 350ms var(--u-ease), width 350ms var(--u-ease);
  width: var(--w, 0);
  transform: translateX(var(--x, 0));
}
.skx-roles__body { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5em; width: 100%; }
.skx-roles__lead { font-size: 2.6em; font-weight: 550; letter-spacing: -0.025em; line-height: 1.2; color: var(--u-text); max-width: 16em; animation: skx-lead 500ms var(--u-ease) both; }
@keyframes skx-lead { from { opacity: 0; transform: translateY(0.4em); filter: blur(0.15em); } }
/* The lead sits on the section, not inside a card: on night pages it takes the night text colour. */
.sk-night .skx-roles__lead { color: var(--text-on-night); }
.skx-roles__phone .skx-phone__screen { height: 54em; }
.skx-roles__screen { display: none; flex-direction: column; gap: 1.2em; }
.skx-roles__screen.is-active { display: flex; animation: skx-lead 450ms var(--u-ease) both; }
.skx-roles__card { display: flex; align-items: center; gap: 1em; font-size: 1.15em; }
.skx-roles__card small { display: block; }
.skx-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8em; }
.skx-tile {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  padding: 1.3em;
  border-radius: 1.4em;
  background: #fff;
  border: 1px solid var(--u-line);
  font-size: 1.1em;
  font-weight: 600;
  animation: skx-pop 500ms var(--u-ease) both;
  animation-delay: calc(var(--i) * 50ms);
}
.skx-tile .skx-i { width: 2.2em; height: 2.2em; padding: 0.45em; border-radius: 0.7em; background: var(--u-blue-soft); color: var(--u-blue); }
@container (max-width: 640px) {
  .skx-roles__body { grid-template-columns: 1fr; gap: 2.4em; justify-items: center; }
  .skx-roles__lead { font-size: 2em; text-align: center; }
  .skx-roles__tab { font-size: 1.3em; padding: 0 1.2em; min-height: 4em; }
  .skx-roles__pill { height: 4em; }
}

/* Motion off: freeze loops at a representative frame. */
@media (prefers-reduced-motion: reduce) {
  .skx-scene *,
  .skx-scene *::before,
  .skx-scene *::after {
    animation-play-state: paused !important;
    animation-delay: -1s !important;
    transition-duration: 0ms !important;
  }
  .skx-bubble, .skx-typing, .skx-ai__line, .skx-ai__review, .skx-studio__line, .skx-studio__end { animation: none !important; opacity: 1; }
}
/* Offscreen scenes pause (set by view.js) to save battery. */
.skx-scene.is-paused *,
.skx-scene.is-paused *::before,
.skx-scene.is-paused *::after { animation-play-state: paused !important; }

/* ---------- ecosystem (every module around one platform) ---------- */
.skx-scene--ecosystem .skx-stage { font-size: min(10px, calc(100cqw / 120)); }
.skx-eco { position: relative; width: 120em; height: 72em; margin: 0 auto; }
.skx-eco__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.skx-eco__line { fill: none; stroke: url(#skx-eco-line); stroke-width: 2.5; }
.skx-eco__pulse {
  fill: none;
  stroke: #22B8FF;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 5 95;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 5px rgb(34 184 255 / 0.9));
  animation: skx-eco-pulse 3.2s cubic-bezier(0.45, 0, 0.25, 1) infinite;
  animation-delay: calc(var(--i) * 0.32s);
}
@keyframes skx-eco-pulse {
  0% { stroke-dashoffset: 100; opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.skx-eco__tile {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9em;
  width: 13.5em;
  padding: 1.6em 1em 1.3em;
  border-radius: 2em;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(14 27 61 / 0.06), 0 1.4em 3em -1.4em rgb(14 27 61 / 0.35);
  transform: translate(-50%, -50%);
  transition: transform 350ms var(--u-ease), box-shadow 350ms var(--u-ease);
  animation: skx-eco-in 800ms cubic-bezier(0.34, 1.4, 0.64, 1) both;
  animation-delay: calc(200ms + var(--i) * 70ms);
}
.skx-eco__tile:hover { transform: translate(-50%, calc(-50% - 0.8em)); box-shadow: 0 0 0 1px rgb(14 27 61 / 0.06), 0 2em 4em -1.4em rgb(20 99 240 / 0.45); }
@keyframes skx-eco-in { from { opacity: 0; transform: translate(-50%, -30%) scale(0.8); } }
.skx-eco__icon {
  display: grid;
  place-items: center;
  width: 5.4em;
  height: 5.4em;
  border-radius: 1.6em;
  background: var(--t-soft);
  color: var(--t);
}
.skx-eco__icon .skx-i { width: 2.8em; height: 2.8em; stroke-width: 1.7; }
.skx-eco__label { font-size: 1.45em; font-weight: 650; letter-spacing: -0.02em; color: var(--u-text); white-space: nowrap; }
.skx-eco__hub {
  position: absolute;
  left: 50%;
  top: 84.7%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  transform: translate(-50%, -30%);
}
.skx-eco__base {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 1em;
  padding: 1.6em 3em;
  border-radius: 99em;
  background: linear-gradient(135deg, #0B4FD1, #1463F0 45%, #22B8FF);
  color: #fff;
  font-size: 1.2em;
  box-shadow: 0 0 0 0.5em rgb(255 255 255 / 0.9), 0 2em 4em -1em rgb(20 99 240 / 0.7);
}
.skx-eco__base b { font-size: 2.3em; font-weight: 750; letter-spacing: 0.02em; }
.skx-eco__base .skx-mark { width: 4.6em; filter: brightness(0) invert(1); }
.skx-eco__ring {
  position: absolute;
  left: 50%;
  top: 2.6em;
  width: 30em;
  height: 30em;
  margin: -15em 0 0 -15em;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(34 184 255 / 0.35), transparent 65%);
  animation: skx-breathe 3.2s ease-in-out infinite;
}
.skx-eco__hub small { position: relative; z-index: 1; color: var(--u-muted); font-size: 1.35em; font-weight: 550; }

.skx-eco__grid { display: none; }
.skx-eco__chip {
  display: flex;
  align-items: center;
  gap: 0.9em;
  padding: 0.9em 1.1em 0.9em 0.9em;
  border-radius: 1.4em;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(14 27 61 / 0.07), 0 0.8em 1.8em -1em rgb(14 27 61 / 0.3);
  font-size: 1.35em;
  font-weight: 650;
  letter-spacing: -0.015em;
  animation: skx-pop 600ms var(--u-ease) both;
  animation-delay: calc(var(--i) * 50ms);
}
.skx-eco__chip .skx-eco__icon { width: 2.6em; height: 2.6em; border-radius: 0.8em; }
.skx-eco__chip .skx-eco__icon .skx-i { width: 1.4em; height: 1.4em; }

/* Narrow containers: hub on top, modules as a tidy grid. */
@container (max-width: 640px) {
  .skx-scene--ecosystem .skx-stage { font-size: 10px; }
  .skx-eco { display: flex; flex-direction: column-reverse; gap: 2.2em; width: auto; height: auto; }
  .skx-eco__lines { display: none; }
  .skx-eco > .skx-eco__tile { display: none; }
  .skx-eco__hub { position: static; transform: none; }
  .skx-eco::before { content: none; }
  .skx-eco__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8em; }
}
/* One-shot entrances always finish; only infinite loops pause off screen. */
.skx-scene.is-paused :is(.skx-eco__tile, .skx-eco__chip, .skx-tt__class, .skx-tile) { animation-play-state: running !important; }

/* ---------- learner: a SkooBook lesson on a tablet (One More Learner) ---------- */
.skx-scene--learner .skx-stage { font-size: min(10px, calc(100cqw / 92)); padding-block: 2em 5em; }
.skx-learner { position: relative; width: 86em; margin-inline: auto; }
.skx-tablet {
  padding: 1.2em;
  border-radius: 3.4em;
  background: linear-gradient(145deg, #2A3350, #0B1022 40%, #1C2440);
  box-shadow:
    inset 0 0 0 0.15em rgb(255 255 255 / 0.12),
    0 4em 8em -2em rgb(0 0 0 / 0.55),
    0 1.5em 5em -1.5em rgb(46 123 255 / 0.4);
}
.skx-tablet__screen {
  display: grid;
  grid-template-columns: 21em minmax(0, 1fr);
  height: 52em;
  overflow: hidden;
  border-radius: 2.3em;
  background: var(--u-bg);
}
.skx-learner__side { display: flex; flex-direction: column; gap: 2.2em; padding: 2.4em 1.6em; background: var(--u-card); border-inline-end: 1px solid var(--u-line); }
.skx-learner__app { display: flex; align-items: center; gap: 0.7em; font-size: 1.5em; letter-spacing: -0.02em; }
.skx-learner__mark { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 0.6em; background: var(--u-blue); color: #fff; }
.skx-learner__mark .skx-i { width: 1.1em; height: 1.1em; }
.skx-learner__courses { display: flex; flex-direction: column; gap: 0.4em; }
.skx-learner__courses li { display: flex; align-items: center; gap: 0.8em; padding: 0.8em 0.9em; border-radius: 0.9em; font-size: 1.2em; color: var(--u-muted); }
.skx-learner__courses li i { width: 0.75em; height: 0.75em; border-radius: 50%; background: var(--t); flex: none; }
.skx-learner__courses li.is-on { background: var(--u-blue-soft); color: var(--u-text); font-weight: 600; }
.skx-learner__main { display: flex; flex-direction: column; gap: 1.6em; padding: 2.4em 2.6em; min-width: 0; }
.skx-learner__top { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.skx-learner__top .skx-i { width: 1.1em; height: 1.1em; }
.skx-learner__title { font-size: 3.2em; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; }
.skx-learner__progress { display: flex; align-items: center; gap: 1.2em; }
.skx-learner__progress .skx-muted { flex: none; }
.skx-learner__progress .skx-progress { flex: 1; }
.skx-learner__task { display: flex; flex-direction: column; gap: 1.8em; padding: 2.2em; }
.skx-fracs { display: flex; align-items: center; gap: 1.4em; font-size: 1.6em; color: var(--u-muted); }
.skx-frac { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 0.15em; width: 7em; height: 2.2em; padding: 0.15em; border-radius: 0.5em; background: var(--u-line); }
.skx-frac--sum { width: 10em; }
.skx-frac i { border-radius: 0.3em; background: var(--u-card); }
.skx-frac i:first-child,
.skx-frac--sum i:nth-child(-n + 5) { background: var(--t); } /* 1/2, 1/3 and 5/6 shaded */
.skx-learner__q { display: flex; align-items: center; gap: 0.5em; font-size: 1.7em; font-weight: 600; }
.skx-learner__q > span { display: inline-flex; align-items: center; gap: 0.4em; }
.skx-fr { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; font-variant-numeric: tabular-nums; }
.skx-fr span + span { margin-top: 0.12em; padding-top: 0.12em; border-top: 0.09em solid currentColor; }
.skx-learner__answers { display: flex; gap: 1em; }
.skx-learner__answers li {
  position: relative;
  display: grid;
  place-items: center;
  width: 5.4em;
  height: 5.4em;
  border-radius: 1.2em;
  border: 0.15em solid var(--u-line);
  background: var(--u-card);
  font-size: 1.5em;
  font-weight: 650;
}
.skx-learner__answers li.is-right { border-color: var(--u-green); background: var(--u-green-soft); color: var(--u-green); }
.skx-learner__answers li .skx-i { position: absolute; top: -0.55em; inset-inline-end: -0.55em; width: 1.3em; height: 1.3em; padding: 0.2em; border-radius: 50%; background: var(--u-green); color: #fff; }
.skx-learner__next { align-self: flex-end; display: inline-flex; align-items: center; gap: 0.6em; margin-top: auto; padding: 0.9em 1.6em; border-radius: 99em; background: var(--u-blue); color: #fff; font-size: 1.25em; font-weight: 600; }
[dir="rtl"] .skx-learner__arrow { transform: scaleX(-1); }
.skx-learner__skoova {
  position: absolute;
  inset-inline-start: -4em;
  bottom: 1em;
  display: flex;
  align-items: flex-start;
  gap: 1.1em;
  width: 36em;
  padding: 1.6em;
  box-shadow: 0 2.4em 5em -1.5em rgb(0 0 0 / 0.5);
}
.skx-learner__spark { display: grid; place-items: center; width: 3.4em; height: 3.4em; border-radius: 1em; flex: none; background: linear-gradient(135deg, var(--u-blue), #6D5CE8); color: #fff; }
.skx-learner__spark .skx-i { width: 1.6em; height: 1.6em; }
.skx-learner__say { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6em; font-size: 1.2em; line-height: 1.4; }
.skx-learner__say .skx-chip { font-size: 0.9em; }
.skx-learner__say .skx-chip .skx-i { width: 1.1em; height: 1.1em; }

/* Motion: the progress bar and the answer settle in once; nothing loops. */
@media (prefers-reduced-motion: no-preference) {
  .skx-scene--learner .skx-progress i { animation: skx-learner-fill 1.6s var(--u-ease) 0.4s both; }
  .skx-scene--learner .skx-frac--sum i { animation: skx-learner-pop 0.5s var(--u-ease) both; }
  .skx-scene--learner .skx-frac--sum i:nth-child(1) { animation-delay: 0.9s; }
  .skx-scene--learner .skx-frac--sum i:nth-child(2) { animation-delay: 1s; }
  .skx-scene--learner .skx-frac--sum i:nth-child(3) { animation-delay: 1.1s; }
  .skx-scene--learner .skx-frac--sum i:nth-child(4) { animation-delay: 1.2s; }
  .skx-scene--learner .skx-frac--sum i:nth-child(5) { animation-delay: 1.3s; }
  .skx-scene--learner .skx-learner__answers li.is-right .skx-i { animation: skx-learner-pop 0.5s var(--u-ease) 1.6s both; }
  .skx-scene--learner .skx-learner__skoova { animation: skx-learner-rise 0.9s var(--u-ease) 2s both; }
}
@keyframes skx-learner-fill { from { width: 0; } }
@keyframes skx-learner-pop { from { opacity: 0; transform: scale(0.6); } }
@keyframes skx-learner-rise { from { opacity: 0; transform: translateY(1.5em); } }

/* Narrow containers: no course list, Skoova's note sits under the tablet. */
@container (max-width: 520px) {
  .skx-scene--learner .skx-stage { font-size: calc(100cqw / 62); padding-block: 0; }
  .skx-learner { width: 60em; }
  .skx-tablet__screen { grid-template-columns: minmax(0, 1fr); height: auto; }
  .skx-learner__side { display: none; }
  .skx-learner__main { padding: 2em; }
  .skx-learner__skoova { position: relative; inset: auto; width: auto; margin: -2em 2em 0; }
}
/* ---------- classroom: a class lit by SKOOLES, one more learner joins (One More Learner) ---------- */
.skx-scene--classroom .skx-stage { font-size: min(10px, calc(100cqw / 110)); }
.skx-cls { position: relative; }
.skx-cls__art { display: block; width: 100%; height: auto; overflow: visible; }
.skx-cls__chip {
  position: absolute;
  left: 50%;
  top: 61%;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1em;
  border-radius: 99em;
  background: var(--u-card);
  color: var(--u-blue);
  font-size: max(11px, 1.5em);
  font-weight: 650;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  box-shadow: 0 0.6em 2em -0.4em rgb(46 123 255 / 0.7);
}
.skx-cls__chip .skx-i { width: 1.1em; height: 1.1em; }

/* Motion: tablets light up row by row, then the empty front seat fills and its
   tablet lights: one more learner. Screens then breathe softly. Paused off screen. */
@media (prefers-reduced-motion: no-preference) {
  .skx-cls__screen,
  .skx-cls__halo,
  .skx-cls__rim { animation: skx-cls-on 0.9s var(--u-ease) calc(0.25s + var(--d) * 0.14s) both; }
  .skx-cls__seat--new .skx-cls__kid { animation: skx-cls-join 1s var(--u-ease) 2.2s both; }
  .skx-cls__seat--new :is(.skx-cls__screen, .skx-cls__halo, .skx-cls__rim) { animation-delay: 2.9s; }
  .skx-cls__chip { animation: skx-cls-chip 0.8s var(--u-ease) 3.4s both; }
  .skx-cls__halo { animation: skx-cls-on 0.9s var(--u-ease) calc(0.25s + var(--d) * 0.14s) both, skx-cls-breathe 5s ease-in-out calc(4s + var(--d) * 0.4s) infinite; }
  .skx-cls__seat--new .skx-cls__halo { animation-delay: 2.9s, 4s; }
}
@keyframes skx-cls-on { from { opacity: 0; } }
@keyframes skx-cls-join { from { opacity: 0; transform: translateY(14px); } }
@keyframes skx-cls-chip { from { opacity: 0; transform: translate(-50%, -20%); } }
@keyframes skx-cls-breathe { 50% { opacity: 0.55; } }