/* ==========================================================================
   results-courses.css — Workstream F · result content for the course menus
   `el` (แนะนำวิชาเอกเลือก), `fe` (แนะนำวิชาเลือกเสรี), `qq` (แจ้งปัญหา,ติชม,feedback)
   plus the tables built by compass.js createTable (#detail-table) and the elective summary table.

   Presentation only. Every behavioural id / class / inline style written by compass.js, coursecard.js
   and treechart.js is kept; results-courses.js adds wrappers and decorations (all `imm-` prefixed).
   Cascade: unlayered rules here beat every legacy (layer `legacy`) normal declaration. `!important` is used
   only to beat inline styles written by JS (each one is commented); legacy `!important` is beaten from
   `@layer imm-force` at the end of the file.

   Sections
     1  shared bits (keyframes, small helpers)
     2  el · S0 "Choose Your Path" photo cards
     3  el · S1/S2 swiper layout (header, progress bar, deck, controls, AI reading panel, empty stack)
     4  el · course card (paper card, stacked peeks, drag / swipe / hint states, stamps)
     5  el · S3 summary (celebration + liked-course list)
     6  el · nothing-to-recommend fallback
     7  fe · tab 0 skill search console, suggestions, chips, ranked results with coverage meters
     8  fe · tab 1 tree-chart figure
     9  qq · questionnaire frame + status cards
    10  tables built by createTable (#detail-table): paper table → stacked cards on phones
    11  reduced motion · 12 high contrast · 13 large text · 14 imm-force (legacy !important)
   ========================================================================== */

/* ------------------------------------------------------------------ 1 · shared bits */
@keyframes imm-rc-rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes imm-rc-pop { from { opacity: 0; transform: translate3d(0, -6px, 0) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes imm-rc-caret { 0%, 45% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes imm-rc-burst { from { opacity: 0; transform: scale(0.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes imm-rc-spark { 0% { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.4); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate3d(0, -26px, 0) scale(1); } }
@keyframes imm-rc-hint-calm { 0%, 100% { box-shadow: var(--imm-rc-card-shadow); } 50% { box-shadow: 0 0 0 3px rgba(250, 172, 30, 0.55), var(--imm-rc-card-shadow); } }

#resultsModal {
  /* photo sources for the two elective paths (phones get the 640px variants) */
  --imm-rc-advance: url('../../images/immersive/path-advance-640.webp');
  --imm-rc-new: url('../../images/immersive/path-new-640.webp');
  --imm-rc-card-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 4px 10px rgba(27, 24, 56, 0.07), 0 22px 46px rgba(43, 39, 91, 0.17);
}
@media (min-width: 768px) {
  #resultsModal {
    --imm-rc-advance: image-set(url('../../images/immersive/path-advance-640.webp') 1x, url('../../images/immersive/path-advance.webp') 2x);
    --imm-rc-new: image-set(url('../../images/immersive/path-new-640.webp') 1x, url('../../images/immersive/path-new.webp') 2x);
  }
}

/* ------------------------------------------------------------------ 2 · el · S0 "Choose Your Path" */
.stack-card-container { width: 100%; max-width: none; }
.stack-selection { width: min(100%, 1120px); margin: 0 auto; animation: imm-rc-rise 0.7s var(--imm-ease-out) backwards; }

.stack-selection > .header {
  display: grid; justify-items: center; gap: 0.35rem;
  width: min(100%, 46rem); margin: clamp(4px, 1.5vw, 16px) auto clamp(20px, 3vw, 34px); text-align: center;
}
.stack-selection > .header::before { /* ornament eyebrow */
  content: 'Two trails ahead';
  display: inline-flex; align-items: center; gap: 0.7em;
  font-size: var(--imm-fs-xs); font-weight: 500; letter-spacing: var(--imm-track-eyebrow); text-transform: uppercase; color: var(--imm-gold-600);
}
.stack-selection > .header h1 {
  margin: 0; font-size: var(--imm-fs-3xl); font-weight: 600; line-height: var(--imm-lh-tight); letter-spacing: -0.005em;
  background: var(--imm-grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.stack-selection > .header p { max-width: none; margin: 0; }
.stack-selection > .header p:nth-of-type(1) { font-size: var(--imm-fs-lg); font-weight: 300; line-height: 1.6; color: var(--imm-ink-2); }
.stack-selection > .header p:nth-of-type(2) {
  display: inline-flex; align-items: flex-start; gap: 0.6em; margin-top: 0.5rem; padding: 0.55em 1em;
  border: 1px solid var(--imm-line); border-radius: var(--imm-r-md); background: rgba(104, 104, 172, 0.05);
  font-size: var(--imm-fs-sm); font-weight: 300; line-height: 1.6; color: var(--imm-ink-3); text-align: left;
}
.stack-selection > .header p:nth-of-type(2)::before {
  content: 'i'; flex: none; display: grid; place-items: center; width: 1.45em; height: 1.45em; margin-top: 0.1em; border-radius: 50%;
  border: 1px solid var(--imm-line-gold); color: var(--imm-gold-600); font-size: 0.8em; font-weight: 600; font-style: normal;
}

.stack-options {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 28px);
  margin: 0; padding-bottom: 6px;
}

/* the photo card */
.stack-option {
  --_photo: var(--imm-rc-advance);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.55rem;
  /* the top padding keeps flowing text clear of the absolutely placed count chip / numeral */
  min-height: clamp(300px, 36vw, 460px); padding: clamp(70px, 7vw, 92px) clamp(20px, 2.6vw, 34px) clamp(20px, 2.6vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: var(--imm-r-lg);
  background: var(--imm-violet-950);
  color: #fff; text-align: left; cursor: pointer; outline: none;
  box-shadow: 0 2px 6px rgba(13, 11, 39, 0.12), 0 26px 60px rgba(13, 11, 39, 0.28);
  transform: perspective(1100px) rotateX(var(--imm-rx, 0deg)) rotateY(var(--imm-ry, 0deg));
  transition: transform 0.7s var(--imm-ease-out), translate 0.6s var(--imm-ease-out), box-shadow 0.6s var(--imm-ease-out);
  -webkit-tap-highlight-color: transparent;
  animation: imm-rc-rise 0.8s var(--imm-ease-out) backwards;
}
.stack-option.new { --_photo: var(--imm-rc-new); animation-delay: 0.12s; }
.stack-option.is-tilting { transition: transform 0.18s linear, translate 0.6s var(--imm-ease-out), box-shadow 0.6s var(--imm-ease-out); }
.stack-option::before { /* photograph + scrim: text never sits on a raw photo */
  content: ''; position: absolute; inset: -2%; z-index: -2;
  background:
    linear-gradient(180deg, rgba(10, 9, 32, 0.08) 0%, rgba(10, 9, 32, 0.12) 30%, rgba(13, 11, 39, 0.72) 66%, rgba(13, 11, 39, 0.94) 100%),
    var(--_photo) 50% 42% / cover no-repeat;
  transform: scale(1.04); transition: transform 1.4s var(--imm-ease-out), filter 0.8s ease;
}
.stack-option.new::before { background-position: 50% 50%, 50% 30%; }
.stack-option::after { /* pointer glare + gold hairline frame */
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--imm-gx, 50%) var(--imm-gy, 30%), rgba(255, 233, 186, 0.26), rgba(255, 233, 186, 0) 46%);
  box-shadow: inset 0 0 0 1px rgba(250, 172, 30, 0);
  opacity: 0; transition: opacity 0.5s ease, box-shadow 0.6s ease;
}
@media (hover: hover) {
  .stack-option:hover { translate: 0 -6px; box-shadow: 0 4px 10px rgba(13, 11, 39, 0.14), 0 36px 80px rgba(13, 11, 39, 0.36); }
  .stack-option:hover::before { transform: scale(1.1); }
  .stack-option:hover::after { opacity: 1; box-shadow: inset 0 0 0 1px rgba(250, 172, 30, 0.55); }
}
.stack-option:focus-visible { box-shadow: 0 0 0 3px var(--imm-paper), 0 0 0 6px var(--imm-gold-400), 0 26px 60px rgba(13, 11, 39, 0.3); }
.stack-option:focus-visible::after { opacity: 1; box-shadow: inset 0 0 0 1px rgba(250, 172, 30, 0.55); }
.stack-option:active { translate: 0 -2px; }

/* text on the photo */
.stack-option .imm-path__eyebrow {
  margin: 0 0 0.15rem; font-size: var(--imm-fs-xs); font-weight: 500; line-height: 1.4;
  letter-spacing: var(--imm-track-eyebrow); text-transform: uppercase; color: var(--imm-gold-200);
}
.stack-option .imm-path__num { /* huge thin waypoint numeral, top-right */
  position: absolute; top: clamp(10px, 1.6vw, 18px); right: clamp(16px, 2.2vw, 28px); z-index: 0;
  font-size: clamp(3.4rem, 2.4rem + 4vw, 6.4rem); font-weight: 200; line-height: 1; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55); pointer-events: none;
}
.stack-option .stack-title {
  margin: 0; font-size: var(--imm-fs-xl); font-weight: 600; line-height: var(--imm-lh-snug); color: #fff;
  text-shadow: 0 2px 18px rgba(13, 11, 39, 0.45); text-wrap: balance;
}
.stack-option .stack-description {
  max-width: 30rem; margin: 0; font-size: var(--imm-fs-sm); font-weight: 300; line-height: 1.65; color: rgba(255, 255, 255, 0.86);
}
.stack-option .stack-count { /* course count as a glass chip, top-left */
  position: absolute; top: clamp(14px, 2vw, 22px); left: clamp(14px, 2vw, 22px); z-index: 1;
  display: inline-flex; align-items: center; gap: 0.55em; margin: 0; padding: 0.38em 0.95em 0.38em 0.75em;
  border: 1px solid rgba(255, 255, 255, 0.34); border-radius: var(--imm-r-pill);
  background: rgba(13, 11, 39, 0.42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: var(--imm-fs-xs); font-weight: 500; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
}
.stack-option .stack-count::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--imm-gold-400); box-shadow: 0 0 0 3px rgba(250, 172, 30, 0.25); }
.stack-option .imm-path__cue {
  display: inline-flex; align-items: center; gap: 0.7em; align-self: flex-start;
  margin-top: 0.55rem; padding: 0.5em 0.6em 0.5em 1.15em; border-radius: var(--imm-r-pill);
  background: rgba(255, 253, 248, 0.94); color: var(--imm-violet-800);
  font-size: var(--imm-fs-sm); font-weight: 500; line-height: 1.2;
  box-shadow: 0 10px 26px rgba(13, 11, 39, 0.28);
  transition: background-color 0.4s ease, color 0.4s ease;
}
.stack-option .imm-path__cue-arrow {
  display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%;
  background: var(--imm-grad-gold); color: #2b1d00;
  transition: transform 0.6s var(--imm-ease-spring);
}
.stack-option .imm-path__cue-arrow svg { width: 1em; height: 1em; }
@media (hover: hover) {
  .stack-option:hover .imm-path__cue { background: #fff; }
  .stack-option:hover .imm-path__cue-arrow { transform: translateX(4px); }
}
/* a path with no course this term: still clickable (logging stays as it is), visibly quiet */
.stack-option.imm-path--empty::before { filter: grayscale(0.75) brightness(0.8); }
.stack-option.imm-path--empty .imm-path__cue { background: rgba(255, 255, 255, 0.16); color: #fff; border: 1px solid rgba(255, 255, 255, 0.34); box-shadow: none; }
.stack-option.imm-path--empty .imm-path__cue-arrow { display: none; }

@media (max-width: 719px) {
  .stack-options { grid-template-columns: minmax(0, 1fr); }
  .stack-option { min-height: clamp(250px, 72vw, 330px); }
}
@media (max-width: 400px) {
  .stack-option .imm-path__num { font-size: 2.8rem; }
  .stack-option .stack-count { letter-spacing: 0.03em; padding-inline: 0.6em 0.8em; }
}
@media (max-width: 340px) { .stack-option .imm-path__num { display: none; } }
@media (max-height: 520px) and (min-width: 560px) { /* landscape phones: keep both trails side by side */
  .stack-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-option { min-height: 250px; padding: 64px 18px 18px; }
  .stack-option .stack-description { display: none; }
}

/* ------------------------------------------------------------------ 3 · el · swiper layout */
.card-swiper { /* legacy forces a GPU layer + perspective on this box (blurry text, odd containing block) */
  width: 100%; transform: none; will-change: auto; perspective: none; backface-visibility: visible;
  animation: imm-rc-rise 0.6s var(--imm-ease-out) backwards;
}
.imm-swipe {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'head' 'bar' 'deck' 'reader' 'empty';
  gap: clamp(14px, 2vw, 22px); width: min(100%, 480px); margin: 0 auto;
}
.imm-swipe > .stack-header { grid-area: head; }
.imm-swipe__bar { grid-area: bar; }
.imm-swipe__deck { grid-area: deck; }
.imm-swipe__reader { grid-area: reader; }
.imm-swipe__empty { grid-area: empty; }

@media (min-width: 900px), (min-width: 700px) and (max-height: 520px) {
  .imm-swipe {
    width: min(100%, 1100px);
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    grid-template-areas: 'head reader' 'bar reader' 'deck reader' 'empty empty';
    grid-template-rows: auto auto 1fr auto; column-gap: clamp(28px, 4.4vw, 72px); align-items: start;
  }
  .imm-swipe.is-empty { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'head' 'bar' 'empty'; width: min(100%, 640px); }
}

/* header of the swiper */
.imm-swipe > .stack-header { margin: 0; text-align: left; }
.imm-swipe > .stack-header::before {
  content: 'Course finder'; display: block; margin-bottom: 0.35rem;
  font-size: var(--imm-fs-xs); font-weight: 500; letter-spacing: var(--imm-track-eyebrow); text-transform: uppercase; color: var(--imm-gold-600);
}
.imm-swipe > .stack-header h1 {
  margin: 0; font-size: var(--imm-fs-2xl); font-weight: 600; line-height: var(--imm-lh-snug); color: var(--imm-ink); text-align: left;
}
.imm-swipe > .stack-header h1:focus { outline: none; }
.imm-swipe > .stack-header p {
  margin: 0.35rem 0 0; font-size: var(--imm-fs-sm); font-weight: 300; line-height: 1.6; color: var(--imm-ink-3); opacity: 1;
}

/* back + progress */
.imm-swipe__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.imm-swipe__back {
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; padding: 0.4em 1em 0.4em 0.55em;
  border: 1px solid var(--imm-line); border-radius: var(--imm-r-pill); background: var(--imm-surface);
  font: inherit; font-size: var(--imm-fs-sm); font-weight: 500; line-height: 1.2; color: var(--imm-violet-700); cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.4s var(--imm-ease-out);
}
.imm-swipe__back svg { width: 1.9em; height: 1.9em; padding: 0.42em; border-radius: 50%; background: var(--imm-violet-50); transition: transform 0.5s var(--imm-ease-spring); }
@media (hover: hover) {
  .imm-swipe__back:hover { border-color: var(--imm-violet-300); background: #fff; }
  .imm-swipe__back:hover svg { transform: translateX(-3px); }
}
.imm-swipe__back[aria-disabled='true'] { opacity: 0.55; cursor: progress; }
.imm-swipe__progress { flex: 1 1 180px; display: grid; gap: 6px; min-width: 0; max-width: 260px; margin-left: auto; }
.imm-swipe__count { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; font-size: var(--imm-fs-xs); line-height: 1.4; color: var(--imm-ink-3); }
.imm-swipe__count b { font-size: var(--imm-fs-md); font-weight: 600; color: var(--imm-ink); font-variant-numeric: tabular-nums; }
.imm-swipe__tally { white-space: nowrap; }
.imm-swipe__track { display: flex; gap: 3px; height: 6px; }
.imm-swipe__track > i { flex: 1 1 0; min-width: 2px; border-radius: 3px; background: rgba(104, 104, 172, 0.16); transition: background-color 0.4s ease, transform 0.5s var(--imm-ease-spring); }
.imm-swipe__track > i[data-s='like'] { background: var(--imm-gold-400); }
.imm-swipe__track > i[data-s='skip'] { background: var(--imm-violet-300); }
.imm-swipe__track > i[data-s='now'] { background: var(--imm-violet-600); transform: scaleY(1.5); }

/* deck: the stack + the decision controls */
.imm-swipe__deck { display: grid; justify-items: center; gap: clamp(18px, 2.4vw, 26px); min-width: 0; }
.card-stack {
  /* !important: coursecard.js writes inline display:flex on #cardStack (never display:none) — a single-cell grid
     lets the three stacked cards share one height, so nothing overflows the stack box any more. */
  display: grid !important;
  grid-template-columns: minmax(0, 1fr); grid-template-rows: auto;
  position: relative; width: 100%; height: auto; min-height: 0; padding-bottom: 36px;
  /* own stacking context: the dragged card gets an inline z-index:99 — keep it under the sticky tab bar (6),
     yet above the reading panel so a card flying out to the right passes over it */
  z-index: 3;
}
/* waiting for /api/generate-log/cards: a quiet placeholder card */
.card-stack:not(:has(.course-card))::before {
  content: ''; grid-area: 1 / 1; height: clamp(360px, 60vh, 480px); border-radius: var(--imm-r-lg);
  border: 1px solid var(--imm-line);
  background:
    linear-gradient(100deg, rgba(104, 104, 172, 0) 30%, rgba(250, 172, 30, 0.16) 48%, rgba(104, 104, 172, 0) 66%) 0 0 / 220% 100% no-repeat,
    linear-gradient(180deg, rgba(104, 104, 172, 0.14) 0 112px, transparent 112px),
    var(--imm-surface);
  box-shadow: var(--imm-rc-card-shadow);
  animation: imm-shimmer 1.9s linear infinite;
}
.imm-swipe.is-empty .card-stack::before { display: none; }

.imm-swipe__controls { display: flex; align-items: flex-start; justify-content: center; gap: clamp(22px, 6vw, 44px); }
.imm-swipe__btn {
  display: grid; justify-items: center; gap: 0.45rem; min-width: 64px; padding: 0; border: 0; background: none;
  font: inherit; font-size: var(--imm-fs-sm); font-weight: 500; line-height: 1.2; color: var(--imm-ink-2); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.imm-swipe__btn-icon {
  display: grid; place-items: center; width: clamp(58px, 15vw, 68px); aspect-ratio: 1; border-radius: 50%;
  transition: transform 0.45s var(--imm-ease-spring), box-shadow 0.45s var(--imm-ease-out), background-color 0.3s ease;
}
.imm-swipe__btn-icon svg { width: 42%; height: 42%; }
.imm-swipe__btn--skip .imm-swipe__btn-icon {
  background: var(--imm-surface); color: var(--imm-danger); border: 1px solid rgba(201, 58, 85, 0.3);
  box-shadow: 0 10px 24px rgba(43, 39, 91, 0.12);
}
.imm-swipe__btn--like .imm-swipe__btn-icon {
  background: var(--imm-grad-gold); color: #3a2400; border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 30px rgba(250, 172, 30, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
@media (hover: hover) {
  .imm-swipe__btn:hover .imm-swipe__btn-icon { transform: translateY(-3px) scale(1.06); }
  .imm-swipe__btn--skip:hover .imm-swipe__btn-icon { box-shadow: 0 16px 30px rgba(201, 58, 85, 0.2); }
}
.imm-swipe__btn:active .imm-swipe__btn-icon { transform: scale(0.92); }
.imm-swipe__btn:focus-visible { outline: none; }
.imm-swipe__btn:focus-visible .imm-swipe__btn-icon { box-shadow: 0 0 0 3px var(--imm-paper), 0 0 0 6px var(--imm-gold-400); }
.imm-swipe__btn[aria-disabled='true'] { cursor: progress; }
.imm-swipe__keys {
  display: none; align-self: center; margin-top: -1.4rem; gap: 0.4em;
  font-size: var(--imm-fs-2xs); line-height: 1; color: var(--imm-ink-3);
}
.imm-swipe__keys kbd {
  display: inline-grid; place-items: center; min-width: 1.9em; height: 1.9em; padding: 0 0.35em; border-radius: 6px;
  border: 1px solid var(--imm-line-strong); border-bottom-width: 2px; background: var(--imm-surface);
  font: inherit; font-size: 1.05em; color: var(--imm-ink-2);
}
@media (hover: hover) and (pointer: fine) { .imm-swipe__keys { display: inline-flex; } }

/* the calm AI reading panel (mirrors the explanation streamed into the top card) */
.imm-swipe__reader {
  position: relative; margin: 0; padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--imm-line); border-radius: var(--imm-r-lg);
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(250, 172, 30, 0.09), rgba(250, 172, 30, 0) 60%),
    linear-gradient(180deg, #fffef9, var(--imm-surface));
  box-shadow: var(--imm-shadow-2);
  color: var(--imm-ink-2); text-align: left;
}
@media (min-width: 900px) and (min-height: 600px) {
  /* beside the deck the reading panel follows the reader down the stage (never on short landscape screens,
     where it would be taller than the view) */
  .imm-swipe > .imm-swipe__reader { position: sticky; top: calc(var(--imm-modal-sticky-top, 0px) + 18px); align-self: start; }
}
.imm-swipe__reader::before { /* gold reading rule */
  content: ''; position: absolute; left: 0; top: clamp(22px, 3vw, 34px); bottom: clamp(22px, 3vw, 34px); width: 3px;
  border-radius: 0 3px 3px 0; background: var(--imm-grad-gold); opacity: 0.85;
}
.imm-swipe__reader-head { display: flex; align-items: center; gap: 12px; margin-bottom: 0.9rem; }
/* AI explanations switched off until the new token (owner 2026-11-19, results-courses.js / coursecard.js): the panel is
   greyed like a disabled control and says "coming soon" */
.imm-swipe__reader-soon { display: none; }
.imm-swipe__reader.is-soon { filter: grayscale(1); opacity: 0.72; }
.imm-swipe__reader.is-soon .imm-swipe__reader-soon {
  display: inline-flex; align-items: center; margin-left: auto; padding: 0.2em 0.8em; border-radius: var(--imm-r-pill);
  background: rgba(27, 24, 56, 0.08); font-size: var(--imm-fs-xs); font-weight: 500; line-height: 1.4; color: var(--imm-ink-3); white-space: nowrap;
}
.imm-swipe__reader-soontext { margin: 0; font-size: var(--imm-fs-sm); line-height: 1.7; color: var(--imm-ink-3); }
.card-ai-soon { font-size: var(--imm-fs-sm); color: var(--imm-ink-3); }
.imm-swipe__reader-mark {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--imm-violet-50); color: var(--imm-violet-600); border: 1px solid var(--imm-line);
}
.imm-swipe__reader-mark svg { width: 22px; height: 22px; }
.imm-swipe__reader-titles { min-width: 0; }
.imm-swipe__reader-eyebrow { margin: 0; font-size: var(--imm-fs-2xs); font-weight: 500; letter-spacing: var(--imm-track-eyebrow); text-transform: uppercase; color: var(--imm-gold-600); }
.imm-swipe__reader-title { margin: 0; font-size: var(--imm-fs-lg); font-weight: 600; line-height: 1.35; color: var(--imm-ink); }
.imm-swipe__reader-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 0.9rem; padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--imm-line); font-size: var(--imm-fs-sm); line-height: 1.5; color: var(--imm-ink-3);
}
.imm-swipe__reader-meta:empty { display: none; }
.imm-swipe__reader-code { font-weight: 600; color: var(--imm-violet-700); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.imm-swipe__reader-body {
  margin: 0; font-size: var(--imm-fs-md); font-weight: 300; line-height: 1.85; color: var(--imm-ink-2);
  white-space: pre-line; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text;
}
.imm-swipe__reader-body strong { font-weight: 500; color: var(--imm-ink); }
.imm-swipe__reader-body u { text-decoration: none; background: linear-gradient(transparent 62%, rgba(250, 172, 30, 0.34) 62%); border-radius: 2px; }
.imm-swipe__reader.is-swapping .imm-swipe__reader-body,
.imm-swipe__reader.is-swapping .imm-swipe__reader-meta { animation: imm-rc-rise 0.55s var(--imm-ease-out) backwards; }
.imm-swipe__reader.is-streaming .imm-swipe__reader-body::after {
  content: ''; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.15em;
  background: var(--imm-gold-500); animation: imm-rc-caret 1s steps(1) infinite;
}
.imm-swipe__reader-wait { display: none; margin: 0; }
.imm-swipe__reader.is-waiting .imm-swipe__reader-body { display: none; }
.imm-swipe__reader.is-waiting .imm-swipe__reader-wait { display: grid; gap: 12px; }
.imm-swipe__reader-wait .imm-skeleton-row { height: 9px; }
.imm-swipe__reader-wait p { margin: 4px 0 0; font-size: var(--imm-fs-sm); color: var(--imm-ink-3); }
.imm-swipe__reader.is-stalled .imm-skeleton-row { animation: none; opacity: 0.5; }
.imm-swipe__reader-stall { display: none; }
.imm-swipe__reader.is-stalled .imm-swipe__reader-stall { display: block; }
.imm-swipe__reader.is-stalled .imm-swipe__reader-wait p:not(.imm-swipe__reader-stall) { display: none; }
.imm-swipe.is-empty .imm-swipe__deck,
.imm-swipe.is-empty .imm-swipe__reader,
.imm-swipe.is-empty .imm-swipe__bar,
.imm-swipe:not(.is-empty) .imm-swipe__empty { display: none; }
.imm-swipe__empty { margin: 0 auto; }
.imm-swipe__empty .imm-btn { margin-top: 10px; }

/* the in-card explanation is shown in the reading panel instead (only once the panel exists) */
.imm-swipe.has-reader .course-card > [id^='course-stream-'],
.course-card > hr { display: none; }

/* ------------------------------------------------------------------ 4 · el · course card */
.course-card {
  --_photo: var(--imm-rc-advance);
  --_tint: var(--imm-violet-500);
  grid-area: 1 / 1; align-self: stretch; position: relative;
  display: flex; flex-direction: column;
  width: 100%; max-width: none; margin: 0; padding: 0 0 clamp(18px, 2.4vw, 22px);
  border: 1px solid var(--imm-line); border-radius: var(--imm-r-lg); overflow: hidden;
  background:
    radial-gradient(130% 60% at 50% 100%, rgba(250, 172, 30, 0.06), rgba(250, 172, 30, 0) 70%),
    var(--imm-paper);
  box-shadow: var(--imm-rc-card-shadow);
  color: var(--imm-ink-2); font-size: var(--imm-fs-md); line-height: 1.6; text-align: left;
  cursor: grab; user-select: none; -webkit-user-select: none;
  transform-origin: 50% 90%;
  transition: transform 0.5s var(--imm-ease-out), opacity 0.3s ease, box-shadow 0.5s var(--imm-ease-out), filter 0.5s ease;
}
.course-card.new { --_photo: var(--imm-rc-new); --_tint: var(--imm-gold-500); }
.course-card:hover { box-shadow: var(--imm-rc-card-shadow); }
.course-card:active { cursor: grabbing; }

/* stacked peeks behind the top card */
.card-stack > .course-card:nth-child(1) { z-index: 3; }
.card-stack > .course-card:nth-child(2) { z-index: 2; transform: translate3d(0, 18px, 0) scale(0.95); filter: brightness(0.975); }
.card-stack > .course-card:nth-child(3) { z-index: 1; transform: translate3d(0, 34px, 0) scale(0.9); filter: brightness(0.94); }
.card-stack > .course-card:nth-child(n+4) { visibility: hidden; }
/* covered cards hide their content (also keeps their links out of the tab order) and reveal it as they move up */
.card-stack > .course-card > * { transition: opacity 0.45s ease 0.08s, visibility 0s; }
.card-stack > .course-card:nth-child(n+2) > * { opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0s 0.2s; }
/* the next card rises as soon as the top one is decided (not 300 ms later when it is removed) */
.card-stack > .course-card:is(.swiped-left, .swiped-right) + .course-card { z-index: 2; transform: none; filter: none; }
.card-stack > .course-card:is(.swiped-left, .swiped-right) + .course-card > * { opacity: 1; visibility: visible; transition: opacity 0.45s ease 0.1s, visibility 0s; }
.card-stack > .course-card:is(.swiped-left, .swiped-right) + .course-card + .course-card { transform: translate3d(0, 18px, 0) scale(0.95); filter: brightness(0.975); }
/* anticipation while the top card is dragged: the next course already shows through */
.card-stack > .course-card.dragging + .course-card { transform: translate3d(0, 10px, 0) scale(0.975); filter: none; }
.card-stack > .course-card.dragging + .course-card > * { opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0s; }

.course-card.dragging {
  transition: none; cursor: grabbing;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 10px 20px rgba(27, 24, 56, 0.1), 0 34px 70px rgba(43, 39, 91, 0.26);
}
/* fly-out. !important: after a drag commit coursecard.js leaves its inline translateX/rotate on the card,
   which would otherwise freeze the card in place while it fades (contract viz-a §6.2). */
html:not(.imm-reduced) .course-card.swiped-right { transform: translate3d(135%, -6%, 0) rotate(20deg) !important; }
html:not(.imm-reduced) .course-card.swiped-left { transform: translate3d(-135%, -6%, 0) rotate(-20deg) !important; }
.course-card.swiped-left,
.course-card.swiped-right {
  opacity: 0; pointer-events: none;
  /* must finish inside coursecard.js' 300 ms removal timer */
  transition: transform 0.3s cubic-bezier(0.55, 0, 0.75, 0.2), opacity 0.3s ease-in;
}

/* header: themed photo band (the chosen trail) + course code chip */
.course-card .course-header {
  position: relative; display: block; margin: 0; padding: clamp(84px, 11vw, 100px) clamp(18px, 2.6vw, 24px) 0;
  border-radius: 0; background: none; line-height: 1.35; text-align: left;
}
/* the photo itself fades out (a mask): an opaque paper-coloured fade never quite matched the card's own background
   and drew a hairline under the English title (owner, 2026-11-18) */
.course-card .course-header::before {
  content: ''; position: absolute; inset: 0 0 auto; height: clamp(104px, 13vw, 122px); z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 11, 39, 0.28) 0%, rgba(13, 11, 39, 0.04) 38%, rgba(13, 11, 39, 0) 50%),
    var(--_photo) 50% 46% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, rgba(0, 0, 0, 0.14) 80%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 50%, rgba(0, 0, 0, 0.14) 80%, transparent 100%);
}
.course-card.new .course-header::before { background-position: 0 0, 50% 22%; }
/* course photos (results-courses.js, owner request 2026-11-18): the course's subject group at its level replaces the
   trail photo; until it is known the band is a quiet dusk wash, so the trail photo never flashes first */
.course-card[data-imm-photo] .course-header::before { background-position: 0 0, 50% 50%; }
html.imm-js .course-card:not([data-imm-photo]) .course-header::before {
  background: linear-gradient(180deg, rgba(13, 11, 39, 0.28) 0%, rgba(13, 11, 39, 0) 50%),
    linear-gradient(120deg, var(--imm-violet-800), var(--imm-violet-600) 55%, #c98a5a);
}
.course-card .course-header::after { /* ornament: which trail */
  content: 'Level up'; position: absolute; top: 18px; right: 18px; z-index: 1;
  font-size: var(--imm-fs-2xs); font-weight: 500; letter-spacing: var(--imm-track-eyebrow); text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 8px rgba(13, 11, 39, 0.5);
}
.course-card.new .course-header::after { content: 'New ground'; }
.course-card .course-header > div:not(.course-icon) { position: relative; z-index: 1; }
.course-card .course-icon {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  display: inline-flex; align-items: center; width: auto; height: auto; margin: 0; padding: 0.32em 0.85em;
  border: 1px solid rgba(255, 255, 255, 0.36); border-radius: var(--imm-r-pill);
  background: rgba(13, 11, 39, 0.46); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: var(--imm-fs-sm); font-weight: 500; line-height: 1.3; letter-spacing: 0.08em; color: #fff; font-variant-numeric: tabular-nums;
}
.course-card .course-title-en {
  margin: 0 0 2px; font-size: var(--imm-fs-lg); font-weight: 600; line-height: 1.3; color: var(--imm-ink); overflow-wrap: anywhere;
}
.course-card .course-title-th { margin: 0; font-size: var(--imm-fs-md); font-weight: 400; line-height: 1.5; color: var(--imm-ink-2); }
.course-card .course-category {
  display: inline-flex; align-items: center; gap: 0.5em; margin: 0.45rem 0 0;
  font-size: var(--imm-fs-xs); font-weight: 400; line-height: 1.4; color: var(--imm-ink-3);
}
.course-card .course-category::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--_tint); }

.course-card .course-description {
  margin: 0; padding: 0.85rem clamp(18px, 2.6vw, 24px) 0;
  font-size: var(--imm-fs-sm); font-style: normal; font-weight: 300; line-height: 1.7; color: var(--imm-ink-2);
}
.course-card .read-more-btn {
  display: inline; margin: 0 0 0 0.2em; padding: 0.35em 0.3em; border: 0; border-radius: 6px; background: none;
  font: inherit; font-size: var(--imm-fs-xs); font-weight: 500; color: var(--imm-violet-600);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; cursor: pointer;
}
.course-card .course-skills { display: block; height: auto; overflow: visible; padding: 0.95rem clamp(18px, 2.6vw, 24px) 0; }
.course-card .course-skills::before {
  content: 'ทักษะในวิชานี้'; display: block; margin-bottom: 0.45rem;
  font-size: var(--imm-fs-xs); font-weight: 500; line-height: 1.4; color: var(--imm-ink-3);
}
.course-card .skills-wrapper { display: flex; flex-wrap: wrap; gap: 6px; }
.course-card .skills-wrapper .skill {
  /* inline-block (not flex) so a long Thai skill name wraps inside the chip instead of running off the card */
  display: inline-block; max-width: 100%; padding: 0.3em 0.8em 0.3em 0.65em; overflow-wrap: anywhere;
  border: 1px solid var(--imm-line); border-radius: var(--imm-r-pill);
  /* !important: coursecard.js paints every chip with an inline pastel from SKILL_COLOR_PALETTE (by position only) */
  background: rgba(104, 104, 172, 0.07) !important; color: var(--imm-violet-800) !important;
  font-size: var(--imm-fs-xs); font-weight: 500; line-height: 1.4; text-transform: none; letter-spacing: 0;
}
.course-card.new .skills-wrapper .skill { background: rgba(250, 172, 30, 0.1) !important; color: var(--imm-gold-700) !important; border-color: rgba(250, 172, 30, 0.32); }
.course-card .skills-wrapper .skill::before { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 0.5em 0.15em 0; border-radius: 50%; background: currentColor; opacity: 0.55; vertical-align: middle; }

.course-card .course-info { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 1rem clamp(18px, 2.6vw, 24px) 0; }
.course-card .course-info > div {
  display: inline-flex; align-items: center; gap: 0.5em; padding: 0.3em 0.85em; border-radius: var(--imm-r-pill);
  border: 1px solid var(--imm-line); background: var(--imm-surface);
  font-size: var(--imm-fs-xs); font-weight: 500; line-height: 1.4; text-transform: none; letter-spacing: 0; color: var(--imm-ink-2);
}
.course-card .course-info > .difficulty::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--imm-ink-3); }
.course-card .course-info > .difficulty.beginner::before { background: var(--imm-success); }
.course-card .course-info > .difficulty.intermediate::before { background: var(--imm-gold-400); }
.course-card .course-info > .difficulty.advanced::before { background: #e07a2e; }
.course-card .course-info > .difficulty.expert::before { background: var(--imm-danger); }
.course-card .recommendation-selector { display: flex; justify-content: stretch; gap: 0; margin: 0; padding: 0.9rem clamp(18px, 2.6vw, 24px) 0; }
.course-card .selector-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; width: 100%; min-width: 0; min-height: 44px; margin: 0;
  padding: 0.55em 1.2em; border: 1px solid var(--imm-line-strong); border-radius: var(--imm-r-pill); background: transparent;
  font-size: var(--imm-fs-sm); font-weight: 500; line-height: 1.3; color: var(--imm-violet-700); text-decoration: none;
  transform: none; box-shadow: none; transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.course-card .selector-btn::after { /* external-link glyph */
  content: ''; width: 0.95em; height: 0.95em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (hover: hover) { .course-card .selector-btn:hover { background: var(--imm-violet-50); border-color: var(--imm-violet-400); color: var(--imm-violet-800); transform: none; box-shadow: none; } }

/* the explanation inside the card (only visible when the reading panel could not be built) */
.course-card > [id^='course-stream-'] {
  margin: 0.9rem clamp(18px, 2.6vw, 24px) 0; padding: 0.8rem 1rem; border-radius: var(--imm-r-sm);
  background: rgba(104, 104, 172, 0.05); font-size: var(--imm-fs-sm); font-weight: 300; line-height: 1.7; color: var(--imm-ink-2); text-align: left;
}

/* stamps (opacity / transform are written inline while dragging; positioned by left/top as the JS expects) */
.course-card .action-indicators { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.course-card .like-indicator,
.course-card .dislike-indicator {
  position: absolute; left: 50%; top: 38%; z-index: 1;
  padding: 0.12em 0.7em; border: 3px solid currentColor; border-radius: 16px;
  background: rgba(255, 253, 248, 0.9); mix-blend-mode: normal;
  font-size: var(--imm-fs-2xl); font-weight: 700; line-height: 1.3; letter-spacing: 0; white-space: nowrap; text-align: center;
  box-shadow: 0 12px 30px rgba(27, 24, 56, 0.16);
}
/* the legacy sheet drops this easing under the OS reduced-motion preference; here only the in-app switch does */
html.imm-js:not(.imm-reduced) .course-card :is(.like-indicator, .dislike-indicator) { transition: opacity 0.1s linear, transform 0.1s linear; }
.course-card .like-indicator { color: var(--imm-success); }
.course-card .dislike-indicator { color: var(--imm-danger); }

/* ------------------------------------------------------------------ 5 · el · S3 summary */
.no-more-cards {
  position: relative; isolation: isolate; width: min(100%, 46rem); margin: clamp(8px, 2vw, 20px) auto 0;
  padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 44px) clamp(24px, 4vw, 40px);
  color: var(--imm-ink-2); text-align: center;
  animation: imm-rc-rise 0.7s var(--imm-ease-out) backwards;
}
.no-more-cards::before { /* sunburst behind the headline */
  content: ''; position: absolute; left: 50%; top: clamp(8px, 2vw, 18px); z-index: -1;
  width: clamp(200px, 40vw, 300px); aspect-ratio: 1; margin-left: calc(clamp(200px, 40vw, 300px) / -2); border-radius: 50%;
  background:
    radial-gradient(circle, rgba(250, 172, 30, 0.34) 0%, rgba(250, 172, 30, 0.12) 36%, rgba(250, 172, 30, 0) 66%),
    repeating-conic-gradient(from 0deg, rgba(250, 172, 30, 0.22) 0 2.5deg, transparent 2.5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0 40%, transparent 70%); mask: radial-gradient(circle, #000 0 40%, transparent 70%);
  animation: imm-rc-burst 1.2s var(--imm-ease-out) 0.1s backwards;
}
.no-more-cards::after { /* a few rising sparks, played once */
  content: ''; position: absolute; left: 50%; top: clamp(30px, 5vw, 56px); z-index: -1; width: 220px; height: 120px; margin-left: -110px; pointer-events: none;
  background:
    radial-gradient(circle, var(--imm-gold-300) 0 2.5px, transparent 3px) 8% 70% / 40px 40px no-repeat,
    radial-gradient(circle, var(--imm-gold-400) 0 2px, transparent 2.5px) 92% 60% / 40px 40px no-repeat,
    radial-gradient(circle, var(--imm-violet-300) 0 2px, transparent 2.5px) 24% 18% / 40px 40px no-repeat,
    radial-gradient(circle, var(--imm-gold-200) 0 3px, transparent 3.5px) 78% 10% / 40px 40px no-repeat;
  opacity: 0; animation: imm-rc-spark 2.4s var(--imm-ease-out) 0.35s 1 both;
}
.no-more-cards h2 {
  width: auto; margin: 0.4em 0 0.3em; font-size: var(--imm-fs-3xl); font-weight: 600; line-height: var(--imm-lh-tight);
  background: linear-gradient(100deg, var(--imm-violet-800) 0%, var(--imm-violet-500) 45%, var(--imm-gold-600) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.no-more-cards h2::before {
  content: 'Summit reached'; display: block; margin-bottom: 0.6em;
  font-size: var(--imm-fs-xs); font-weight: 500; line-height: 1.4; letter-spacing: var(--imm-track-eyebrow); text-transform: uppercase;
  -webkit-text-fill-color: var(--imm-gold-600); color: var(--imm-gold-600);
}
.no-more-cards h2:focus { outline: none; }
.no-more-cards p { width: auto; max-width: 34rem; margin: 0 auto; font-size: var(--imm-fs-md); font-weight: 300; line-height: 1.9; color: var(--imm-ink-2); }
.no-more-cards #likedCount,
.no-more-cards #passedCount {
  display: inline-grid; place-items: center; min-width: 1.9em; height: 1.9em; margin: 0 0.25em; padding: 0 0.45em; border-radius: var(--imm-r-pill);
  font-size: 1.05em; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; vertical-align: 0.05em;
}
.no-more-cards #likedCount { background: var(--imm-grad-gold); color: #3a2400; box-shadow: 0 6px 16px rgba(250, 172, 30, 0.35); }
.no-more-cards #passedCount { background: var(--imm-violet-50); color: var(--imm-violet-700); border: 1px solid var(--imm-line); }
.no-more-cards .el-reselect-button {
  display: inline-flex; align-items: center; gap: 0.6em; min-height: 48px; margin-top: 1.4rem; padding: 0.6em 1.4em 0.6em 1.1em;
  border: 1px solid var(--imm-line-strong); border-radius: var(--imm-r-pill); background: var(--imm-surface);
  color: var(--imm-violet-700); font-size: var(--imm-fs-md); line-height: 1.2;
  box-shadow: var(--imm-shadow-1); transition: transform 0.4s var(--imm-ease-out), box-shadow 0.4s ease, border-color 0.3s ease;
}
.no-more-cards .el-reselect-button svg { transition: transform 0.7s var(--imm-ease-spring); }
@media (hover: hover) {
  .no-more-cards .el-reselect-button:hover { transform: translateY(-2px); border-color: var(--imm-violet-400); box-shadow: var(--imm-shadow-2); filter: none; }
  .no-more-cards .el-reselect-button:hover svg { transform: rotate(-200deg); }
}
.no-more-cards .el-reselect-button:focus-visible { outline: 2px solid var(--imm-gold-400); outline-offset: 3px; transform: none; }

/* liked courses — the table becomes a list of keepsake cards (8 fixed columns, no row spans) */
.elective-selected-table-container { width: min(100%, 60rem); margin: clamp(10px, 2vw, 20px) auto 0; overflow: visible; animation: imm-rc-rise 0.8s var(--imm-ease-out) 0.15s backwards; }
.imm-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.imm-summary-head h3 { margin: 0; font-size: var(--imm-fs-lg); font-weight: 600; color: var(--imm-ink); }
.imm-summary-head .imm-chip { font-variant-numeric: tabular-nums; }
.elective-selected-table { display: block; width: 100%; margin: 0; border: 0; border-collapse: separate; table-layout: auto; font-size: var(--imm-fs-sm); }
.elective-selected-table colgroup { display: none; }
.elective-selected-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.elective-selected-table tbody { display: grid; gap: 14px; counter-reset: imm-like; }
.elective-selected-table tbody tr {
  counter-increment: imm-like;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: 'num code level' 'num title title' 'num fac fac' 'num desc desc' 'num ai ai' 'num skill skill' 'num link link';
  column-gap: clamp(12px, 2vw, 22px); align-items: start;
  padding: clamp(16px, 2.4vw, 24px) clamp(16px, 2.6vw, 28px);
  border: 1px solid var(--imm-line); border-radius: var(--imm-r-lg);
  background: radial-gradient(90% 60% at 0% 0%, rgba(250, 172, 30, 0.08), rgba(250, 172, 30, 0) 60%), var(--imm-surface);
  box-shadow: var(--imm-shadow-1);
}
.elective-selected-table tbody tr::before {
  grid-area: num; content: counter(imm-like, decimal-leading-zero);
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); font-weight: 200; line-height: 1; color: var(--imm-gold-500); font-variant-numeric: tabular-nums;
}
/* !important on padding / text-align: coursecard.js writes them inline on every cell */
.elective-selected-table tbody td { display: block; min-width: 0; padding: 0 !important; border: 0; text-align: left !important; vertical-align: top; color: var(--imm-ink-2); }
.elective-selected-table tbody td:nth-child(1) { grid-area: code; align-self: center; font-weight: 600; letter-spacing: 0.06em; color: var(--imm-violet-700); font-variant-numeric: tabular-nums; }
.elective-selected-table tbody td:nth-child(2) { grid-area: title; margin-top: 0.15rem; font-size: var(--imm-fs-lg); font-weight: 600; line-height: 1.4; color: var(--imm-ink); }
.elective-selected-table tbody td:nth-child(3) { grid-area: fac; margin-top: 0.2rem; font-size: var(--imm-fs-xs); color: var(--imm-ink-3); }
.elective-selected-table tbody td:nth-child(4) { grid-area: desc; margin-top: 0.8rem; font-weight: 300; line-height: 1.7; }
.elective-selected-table tbody td:nth-child(5) { grid-area: ai; margin-top: 0.8rem; padding: 0.75rem 1rem !important; border-left: 3px solid var(--imm-gold-400); border-radius: 0 var(--imm-r-sm) var(--imm-r-sm) 0; background: rgba(250, 172, 30, 0.06); font-weight: 300; line-height: 1.75; }
.elective-selected-table tbody td:nth-child(5):empty { display: none; }
.elective-selected-table tbody td:nth-child(6) { grid-area: level; align-self: center; justify-self: end; }
.elective-selected-table tbody td:nth-child(6):not(:empty) { padding: 0.25em 0.85em !important; border: 1px solid var(--imm-line); border-radius: var(--imm-r-pill); font-size: var(--imm-fs-xs); font-weight: 500; }
.elective-selected-table tbody td:nth-child(7) { grid-area: skill; margin-top: 0.8rem; font-size: var(--imm-fs-xs); line-height: 1.7; color: var(--imm-violet-700); }
.elective-selected-table tbody td:nth-child(8) { grid-area: link; margin-top: 1rem; }
.elective-selected-table tbody td[data-label]:nth-child(4)::before,
.elective-selected-table tbody td[data-label]:nth-child(5)::before,
.elective-selected-table tbody td[data-label]:nth-child(7)::before {
  content: attr(data-label); display: block; margin-bottom: 0.2rem; font-size: var(--imm-fs-2xs); font-weight: 500; line-height: 1.4; color: var(--imm-ink-3);
}
.elective-selected-table .course-link {
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; padding: 0.5em 1.2em; border-radius: var(--imm-r-pill);
  background: var(--imm-grad-brand); color: #fff; font-size: var(--imm-fs-sm); font-weight: 500; text-decoration: none;
  box-shadow: var(--imm-shadow-violet); transition: transform 0.4s var(--imm-ease-out);
}
@media (hover: hover) { .elective-selected-table .course-link:hover { color: #fff; transform: translateY(-2px); } }
#resultsModal .elective-selected-table-container > .imm-empty { margin-top: 8px; }
.elective-selected-table-container.is-empty .elective-selected-table,
.elective-selected-table-container.is-empty .imm-summary-head { display: none; }
@media (max-width: 560px) {
  .elective-selected-table tbody tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'num level' 'code code' 'title title' 'fac fac' 'desc desc' 'ai ai' 'skill skill' 'link link'; }
  .elective-selected-table tbody tr::before { font-size: 1.8rem; }
  .elective-selected-table tbody td:nth-child(1) { margin-top: 0.6rem; }
}

/* ------------------------------------------------------------------ 6 · el · nothing to recommend */
/* !important on padding: compass.js writes `padding: 1em` inline on this fallback block */
#resultsModal .imm-empty--mascot { gap: 10px; padding: clamp(24px, 4vw, 44px) clamp(18px, 3vw, 34px) !important; }
.imm-empty--mascot .imm-empty__title { margin: 0; text-align: center; }
.imm-empty--mascot .imm-empty__text { margin: 0 auto; text-align: center; }
/* !important: compass.js writes width:300px / opacity:.5 / margin-top inline on the mascot image */
.imm-empty--mascot .imm-empty__mascot {
  order: -1; width: clamp(96px, 22vw, 132px) !important; height: auto; margin: 0 0 6px !important; opacity: 1 !important;
  padding: 10px; border-radius: 50%; background: radial-gradient(circle, var(--imm-gold-50) 0 58%, rgba(250, 172, 30, 0.18) 59% 62%, transparent 63%);
}

/* ------------------------------------------------------------------ 7 · fe · tab 0 skill search */
/* the title, the question and the search card share one centred axis (owner 2026-11-19: the title sat left of the
   centred question on a landscape tablet); the card stays compact on wide sheets */
.imm-fe > h1 { margin-bottom: 0.2em; margin-inline: auto; text-align: center; } /* the box is a 46rem measure: centre it too */
.imm-fe > .imm-fe__prompt {
  width: min(100%, 46rem); margin: 0 auto clamp(18px, 2.6vw, 28px); text-align: center;
  font-size: var(--imm-fs-xl); font-weight: 300; line-height: 1.5; color: var(--imm-ink-2); text-wrap: balance;
}
.free-elective-interest-container { display: block; width: min(100%, 600px); max-width: 600px; margin: 0 auto; gap: 0; }
.free-elective-interest-form {
  --_pad: clamp(14px, 2.2vw, 22px);
  /* block (not flex): the absolutely positioned suggestion list keeps its static position right under the field.
     z-index 2 (legacy .occupation-mapping-form says 30): above the results below, under the sticky tab bar (6). */
  position: relative; z-index: 2; display: block; width: 100%; padding: var(--_pad);
  border: 1px solid var(--imm-line); border-radius: var(--imm-r-lg);
  background: radial-gradient(110% 80% at 0% 0%, rgba(250, 172, 30, 0.08), rgba(250, 172, 30, 0) 55%), var(--imm-surface);
  box-shadow: var(--imm-shadow-2);
}
.free-elective-interest-form::before {
  content: 'Skill search'; display: block; margin: 0 0 0.6rem;
  font-size: var(--imm-fs-xs); font-weight: 500; letter-spacing: var(--imm-track-eyebrow); text-transform: uppercase; color: var(--imm-gold-600);
}
#fe-skill-query {
  flex: none; width: 100%; min-height: 48px; padding: 0.6em 1.1em 0.6em 3em;
  font: inherit; font-size: var(--imm-fs-md); color: var(--imm-ink);
  border: 1px solid var(--imm-line-strong); border-radius: var(--imm-r-md);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236868ac' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E") 1.05em 50% / 1.2em no-repeat;
  box-shadow: inset 0 1px 2px rgba(27, 24, 56, 0.05);
  user-select: text; -webkit-user-select: text;
  transition: border-color var(--imm-dur-2) ease, box-shadow var(--imm-dur-2) ease;
}
#fe-skill-query:focus { outline: none; border-color: var(--imm-gold-400); box-shadow: 0 0 0 4px rgba(250, 172, 30, 0.22); }
#fe-skill-query::placeholder { color: var(--imm-ink-3); opacity: 0.85; }

/* suggestions: a floating paper menu right under the field (stays absolutely positioned as the JS expects) */
.free-elective-interest-form #fe-skill-results {
  left: var(--_pad); right: var(--_pad); width: auto; max-width: none; margin: 0; padding: 6px;
  border: 1px solid var(--imm-line); border-radius: var(--imm-r-md);
  background: var(--imm-paper); box-shadow: var(--imm-shadow-3);
  scrollbar-width: thin; overscroll-behavior: contain;
  animation: imm-rc-pop 0.32s var(--imm-ease-out) backwards;
}
.free-elective-interest-form #fe-skill-results li {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; max-width: none; min-height: 46px; padding: 0.6em 0.9em; border: 0; border-radius: 12px;
  font-size: var(--imm-fs-md); line-height: 1.45; color: var(--imm-ink-2); cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.free-elective-interest-form #fe-skill-results li + li { margin-top: 2px; }
.free-elective-interest-form #fe-skill-results li::after { /* "add" glyph */
  content: '+'; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--imm-line-gold); color: var(--imm-gold-600); font-size: 1rem; font-weight: 500; line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.free-elective-interest-form #fe-skill-results li:hover { background: var(--imm-violet-50); color: var(--imm-ink); }
.free-elective-interest-form #fe-skill-results li:hover::after { background: var(--imm-gold-400); border-color: var(--imm-gold-400); color: #2b1d00; }
@media (hover: hover) and (pointer: fine) {
  .free-elective-interest-form #fe-skill-results li:first-child::after { content: 'Enter ↵'; width: auto; padding: 0 0.6em; border-radius: 6px; font-size: var(--imm-fs-2xs); }
}
.imm-fe-hint {
  display: flex; align-items: center; gap: 0.6em; margin: 0.6rem 0 0; padding: 0.55em 0.9em;
  border: 1px dashed var(--imm-line-strong); border-radius: var(--imm-r-sm); background: rgba(104, 104, 172, 0.04);
  font-size: var(--imm-fs-sm); line-height: 1.5; color: var(--imm-ink-3);
  animation: imm-rc-pop 0.3s var(--imm-ease-out) backwards;
}
.imm-fe-hint[hidden] { display: none; }
.imm-fe-hint::before { content: '?'; flex: none; display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--imm-violet-50); color: var(--imm-violet-600); font-weight: 600; }

/* selected skills: removable gold chips */
.fe-skill-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 2.4rem; width: 100%; max-width: 100%; margin: 0.7rem 0 0.5rem; overflow: visible; }
.fe-skill-tag {
  display: inline-flex; align-items: center; gap: 0.35em; max-width: 100%; min-width: 0; padding: 0.22em 0.25em 0.22em 0.95em;
  border: 1px solid rgba(250, 172, 30, 0.5); border-radius: var(--imm-r-pill);
  background: linear-gradient(135deg, var(--imm-gold-50), var(--imm-gold-100)); color: var(--imm-gold-700);
  box-shadow: 0 4px 12px rgba(250, 172, 30, 0.16); overflow: visible;
  animation: imm-rc-pop 0.35s var(--imm-ease-spring) backwards;
}
.fe-skill-tag-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--imm-fs-sm); font-weight: 500; line-height: 1.5; color: #6b4004; }
.fe-skill-tag-remove {
  position: relative; flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: rgba(140, 84, 7, 0.1); color: var(--imm-gold-700);
  font: inherit; font-size: 1.15rem; line-height: 1; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, transform 0.3s var(--imm-ease-spring);
}
.fe-skill-tag-remove::before { content: ''; position: absolute; inset: -7px; } /* 44px touch target */
@media (hover: hover) { .fe-skill-tag-remove:hover { background: var(--imm-danger); color: #fff; transform: rotate(90deg); } }
.fe-skill-tag-remove:focus-visible { outline: 2px solid var(--imm-gold-500); outline-offset: 2px; }
.fe-skill-tag-placeholder {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0.3em 1em; border: 1px dashed var(--imm-line-strong); border-radius: var(--imm-r-pill);
  font-size: var(--imm-fs-sm); font-weight: 300; line-height: 1.4; color: var(--imm-ink-3);
}

/* the search button (also gets .imm-btn from results-courses.js; this block is the no-JS fallback + layout) */
#search_from_fe_skill {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 46px; padding: 0.6em 1.6em; border: 0; border-radius: var(--imm-r-pill);
  font: inherit; font-size: var(--imm-fs-md); font-weight: 500; line-height: 1.2; color: #fff;
  background: var(--imm-grad-brand); box-shadow: var(--imm-shadow-violet), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
#search_from_fe_skill:not([aria-busy='true'])::before {
  content: ''; width: 1.1em; height: 1.1em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
#search_from_fe_skill:disabled { opacity: 0.5; filter: grayscale(0.4); cursor: not-allowed; box-shadow: none; transform: none; }
#search_from_fe_skill[aria-busy='true'] { cursor: progress; }
#search_from_fe_skill .spinner-border {
  display: inline-block; width: 1.05em; height: 1.05em; margin-right: 0.15em; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: imm-spin 0.8s linear infinite;
}
.free-elective-interest-selected { margin: 0.8rem 0 0; font-size: var(--imm-fs-sm); font-weight: 400; line-height: 1.5; color: var(--imm-ink-3); text-align: center; }
.free-elective-interest-selected:empty { display: none; }

/* results: ranked course cards (results-courses.js moves the block out of the search card) */
.fe-course-codes-container {
  display: flex; flex-direction: column; width: min(100%, 760px); margin: clamp(26px, 4vw, 44px) auto 0; padding: 0;
  border: 0; border-radius: 0; background: none; opacity: 1;
}
.fe-course-codes-container.d-none { display: none; }
.fe-course-codes-title { order: -3; margin: 0; font-size: var(--imm-fs-xl); font-weight: 600; line-height: 1.35; color: var(--imm-ink); text-align: left; }
.fe-course-codes-title::before {
  content: 'Ranked by skill match'; display: block; margin-bottom: 0.35rem;
  font-size: var(--imm-fs-xs); font-weight: 500; letter-spacing: var(--imm-track-eyebrow); text-transform: uppercase; color: var(--imm-gold-600);
}
.fe-course-codes-empty { order: -2; margin: 0.5rem 0 0; font-size: var(--imm-fs-sm); color: var(--imm-ink-3); text-align: left; }
.fe-course-codes-list { order: -1; display: grid; gap: 14px; margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: imm-rank; }
.fe-course-codes-list:empty { display: none; }
/* loading: two shimmering placeholder cards */
.fe-course-codes-container.is-loading .fe-course-codes-list { display: grid; }
.fe-course-codes-container.is-loading .fe-course-codes-list::before,
.fe-course-codes-container.is-loading .fe-course-codes-list::after {
  content: ''; height: 150px; border: 1px solid var(--imm-line); border-radius: var(--imm-r-lg);
  background:
    linear-gradient(100deg, rgba(104, 104, 172, 0) 30%, rgba(250, 172, 30, 0.16) 48%, rgba(104, 104, 172, 0) 66%) 0 0 / 220% 100% no-repeat,
    var(--imm-surface);
  animation: imm-shimmer 1.9s linear infinite;
}
.fe-course-codes-container.is-loading .fe-course-codes-list::after { height: 120px; opacity: 0.7; }
/* nothing found (or the lookup failed): a friendly empty card instead of a bare sentence */
.fe-course-codes-container:not(.is-loading):has(.fe-course-codes-list:empty) .fe-course-codes-empty:not(.d-none) {
  order: 0; display: grid; justify-items: center; gap: 10px; margin: 1rem 0 0; padding: clamp(22px, 4vw, 36px) clamp(18px, 3vw, 30px);
  border: 1px dashed var(--imm-line-strong); border-radius: var(--imm-r-lg);
  background: radial-gradient(120% 90% at 50% 0%, rgba(250, 172, 30, 0.1), rgba(250, 172, 30, 0) 62%), var(--imm-surface);
  font-size: var(--imm-fs-md); line-height: 1.65; color: var(--imm-ink-2); text-align: center;
}
.fe-course-codes-container:not(.is-loading):has(.fe-course-codes-list:empty) .fe-course-codes-empty:not(.d-none)::before {
  content: ''; width: 60px; height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'%3E%3Ccircle cx='32' cy='32' r='29' stroke='%23d2cbfb' stroke-width='1.5' stroke-dasharray='2 4'/%3E%3Ccircle cx='32' cy='32' r='21' stroke='%23faac1e' stroke-width='1.5'/%3E%3Cpath d='M32 15.5 36 32h-8z' fill='%23e0455c'/%3E%3Cpath d='M32 48.5 28 32h8z' fill='%23525094'/%3E%3Ccircle cx='32' cy='32' r='2.6' fill='%23fffdf8' stroke='%23525094' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* the count line once results exist */
.fe-course-codes-list:not(:empty) ~ .fe-course-codes-empty:not(.d-none) {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.5em; margin-top: 0.7rem; padding: 0.3em 0.9em;
  border: 1px solid rgba(250, 172, 30, 0.4); border-radius: var(--imm-r-pill); background: rgba(250, 172, 30, 0.12);
  font-size: var(--imm-fs-xs); font-weight: 500; color: var(--imm-gold-700);
}

.fe-course-result-card {
  counter-increment: imm-rank;
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(14px, 2.4vw, 24px); row-gap: 0;
  padding: clamp(18px, 2.6vw, 26px) clamp(16px, 2.8vw, 28px);
  border: 1px solid var(--imm-line); border-radius: var(--imm-r-lg);
  background: var(--imm-surface); box-shadow: var(--imm-shadow-1);
  animation: imm-rc-rise 0.6s var(--imm-ease-out) backwards; animation-delay: calc(min(var(--imm-rank-i, 0), 6) * 70ms);
  transition: box-shadow 0.4s ease, border-color 0.4s ease, translate 0.5s var(--imm-ease-out);
}
@media (hover: hover) { .fe-course-result-card:hover { translate: 0 -2px; box-shadow: var(--imm-shadow-2); border-color: var(--imm-line-strong); } }
.fe-course-result-card:first-child { border-color: rgba(250, 172, 30, 0.55); background: radial-gradient(100% 70% at 0% 0%, rgba(250, 172, 30, 0.12), rgba(250, 172, 30, 0) 60%), var(--imm-surface); }
.fe-course-result-card::before {
  grid-column: 1; grid-row: 1 / span 12; align-self: start;
  content: counter(imm-rank, decimal-leading-zero);
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); font-weight: 200; line-height: 0.95; color: var(--imm-violet-300); font-variant-numeric: tabular-nums;
}
.fe-course-result-card:first-child::before { color: var(--imm-gold-500); }
.fe-course-result-card > * { grid-column: 2; min-width: 0; }
/* course photo header (owner 2026-11-18, as on the swipe deck and the popular trail): results-courses.js puts
   .imm-fe-res__photo first and sets --_photo / --_photo-lg from the course number. The band bleeds to the card's
   top edges and the photo itself fades out (a mask: no colour seam over the card's own gradient) under the rank
   and the title, which paint above it. Until the photo is known: a dusk wash. */
.fe-course-result-card.has-photo { overflow: hidden; }
.fe-course-result-card > .imm-fe-res__photo {
  grid-column: 1 / -1; grid-row: 1; display: block; height: clamp(112px, 13vw, 168px); pointer-events: none;
  margin: calc(-1 * clamp(18px, 2.6vw, 26px)) calc(-1 * clamp(16px, 2.8vw, 28px)) -30px;
  background:
    linear-gradient(180deg, rgba(13, 11, 39, 0.22) 0%, rgba(13, 11, 39, 0) 40%),
    var(--_photo, none) 50% 50% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 48%, rgba(0, 0, 0, 0.2) 80%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 48%, rgba(0, 0, 0, 0.2) 80%, transparent 100%);
}
.fe-course-result-card:not([data-imm-photo]) > .imm-fe-res__photo,
.fe-course-result-card[data-imm-photo='fallback'] > .imm-fe-res__photo {
  background: linear-gradient(120deg, var(--imm-violet-800), var(--imm-violet-600) 55%, #c98a5a);
}
.fe-course-result-card.has-photo::before, .fe-course-result-card.has-photo > :not(.imm-fe-res__photo) { position: relative; z-index: 1; }
@media (min-width: 481px) {
  .fe-course-result-card.has-photo::before { grid-row: 2 / span 12; }
}
@media (min-width: 600px) {
  .fe-course-result-card[data-imm-photo]:not([data-imm-photo='fallback']) > .imm-fe-res__photo {
    background-image: linear-gradient(180deg, rgba(13, 11, 39, 0.22) 0%, rgba(13, 11, 39, 0) 40%), var(--_photo-lg, var(--_photo, none));
  }
}
html.a11y-high-contrast .fe-course-result-card > .imm-fe-res__photo { display: none; }
@media (min-width: 481px) { html.a11y-high-contrast .fe-course-result-card.has-photo::before { grid-row: 1 / span 12; } }
.fe-course-result-card .fe-course-title-th { margin: 0; font-size: var(--imm-fs-lg); font-weight: 600; line-height: 1.4; color: var(--imm-ink); text-align: left; overflow-wrap: anywhere; }
.fe-course-result-card .fe-course-title-en { margin: 0.1rem 0 0; font-size: var(--imm-fs-sm); font-weight: 400; line-height: 1.5; color: var(--imm-ink-3); text-align: left; }
.fe-course-result-card .fe-course-faculty {
  display: inline-flex; align-items: center; gap: 0.5em; margin: 0.45rem 0 0; font-size: var(--imm-fs-xs); font-weight: 400; color: var(--imm-ink-3);
}
.fe-course-result-card .fe-course-faculty::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--imm-violet-400); }
/* coverage meter (results-courses.js) */
.imm-cover { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; margin: 0.95rem 0 0.2rem; }
.imm-cover__label { font-size: var(--imm-fs-xs); font-weight: 500; line-height: 1.4; color: var(--imm-ink-2); }
.imm-cover__value { font-size: var(--imm-fs-sm); line-height: 1; color: var(--imm-ink-3); font-variant-numeric: tabular-nums; }
.imm-cover__value b { font-size: var(--imm-fs-lg); font-weight: 600; color: var(--imm-gold-600); }
.imm-cover__track { grid-column: 1 / -1; display: flex; gap: 4px; height: 8px; }
.imm-cover__track > i { flex: 1 1 0; border-radius: 4px; background: rgba(104, 104, 172, 0.14); }
.imm-cover__track > i.is-on { background: var(--imm-grad-gold); box-shadow: 0 2px 8px rgba(250, 172, 30, 0.3); }
.imm-cover--bar .imm-cover__track { position: relative; display: block; border-radius: 4px; background: rgba(104, 104, 172, 0.14); overflow: hidden; }
.imm-cover--bar .imm-cover__track > i { position: absolute; inset: 0; border-radius: 4px; background: var(--imm-grad-gold); transform-origin: 0 50%; transform: scaleX(var(--_p, 0)); }

.fe-course-result-card .fe-course-skill-section { display: grid; gap: 0.4rem; margin-top: 0.9rem; }
.fe-course-result-card .fe-course-skill-heading { margin: 0; font-size: var(--imm-fs-xs); font-weight: 500; line-height: 1.4; color: var(--imm-ink-3); }
.fe-course-result-card .fe-course-skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fe-course-result-card .fe-course-skill-tag {
  display: inline-flex; align-items: center; padding: 0.28em 0.8em; border: 1px solid var(--imm-line); border-radius: var(--imm-r-pill);
  background: rgba(104, 104, 172, 0.06); color: var(--imm-violet-800); font-size: var(--imm-fs-xs); font-weight: 400; line-height: 1.45;
}
.fe-course-result-card .fe-course-skill-heading-required + .fe-course-skill-tags .fe-course-skill-tag:not(.fe-course-skill-tag-empty) {
  border-color: rgba(250, 172, 30, 0.5); background: var(--imm-gold-50); color: #6b4004; font-weight: 500;
}
.fe-course-result-card .fe-course-skill-tag-empty { border-style: dashed; background: transparent; color: var(--imm-ink-3); }
.imm-fe-desc { margin-top: 0.9rem; border-top: 1px solid var(--imm-line); }
.imm-fe-desc > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0.4rem 0 0;
  font-size: var(--imm-fs-sm); font-weight: 500; color: var(--imm-violet-700); cursor: pointer; list-style: none;
}
.imm-fe-desc > summary::-webkit-details-marker { display: none; }
.imm-fe-desc > summary::after { content: ''; width: 0.55em; height: 0.55em; margin-right: 0.3em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-25%) rotate(45deg); transition: transform 0.5s var(--imm-ease-spring); }
.imm-fe-desc[open] > summary::after { transform: translateY(15%) rotate(225deg); }
.imm-fe-desc > summary:focus-visible { outline: 2px solid var(--imm-gold-400); outline-offset: 2px; border-radius: 6px; }
.fe-course-result-card .fe-course-desc-th { margin: 0.3rem 0 0; font-size: var(--imm-fs-sm); font-weight: 300; line-height: 1.75; color: var(--imm-ink-2); white-space: pre-wrap; user-select: text; -webkit-user-select: text; }
.imm-fe-desc[open] > .fe-course-desc-th { animation: imm-rc-pop 0.4s var(--imm-ease-out) backwards; }
.fe-course-result-card .fe-course-code-link {
  justify-self: start; display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; margin-top: 0.9rem; padding: 0.45em 1.15em;
  border: 1px solid var(--imm-line-strong); border-radius: var(--imm-r-pill);
  font-size: var(--imm-fs-sm); font-weight: 500; color: var(--imm-violet-700); text-decoration: none; transition: background-color 0.3s ease, border-color 0.3s ease;
}
.fe-course-result-card .fe-course-code-link::after {
  content: ''; width: 0.95em; height: 0.95em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (hover: hover) { .fe-course-result-card .fe-course-code-link:hover { background: var(--imm-violet-50); border-color: var(--imm-violet-400); color: var(--imm-violet-800); text-decoration: none; } }
@media (max-width: 480px) {
  .fe-course-result-card { grid-template-columns: minmax(0, 1fr); }
  .fe-course-result-card::before { grid-row: auto; margin-bottom: 0.3rem; font-size: 1.7rem; }
  .fe-course-result-card > * { grid-column: 1; }
}

/* ------------------------------------------------------------------ 8 · fe · tab 1 tree chart figure */
.imm-figure--tree { width: 100%; margin-top: clamp(10px, 2vw, 22px); padding: clamp(14px, 2vw, 26px); }
.imm-figure--tree .imm-figure__head { align-items: center; }
.imm-tree-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: var(--imm-fs-xs); color: var(--imm-ink-3); }
.imm-tree-legend li { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.imm-tree-legend li + li::before { content: '›'; color: var(--imm-gold-500); font-weight: 600; }
/* the marker mirrors a tree node: a ring in the node colour (palette slot 1, set by results-courses.js) on paper */
.imm-tree-legend i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--imm-tree-node, var(--imm-violet-500)); background: var(--imm-paper); }
.imm-figure--tree .imm-figure__tip { margin: 0; font-size: var(--imm-fs-xs); color: var(--imm-ink-3); }
.treechart-scroll-container { position: relative; width: 100%; padding: 0; border-radius: var(--imm-r-md); background: transparent; }
.imm-figure--tree .treechart-scroll-container { background: linear-gradient(180deg, rgba(104, 104, 172, 0.035), rgba(104, 104, 172, 0)); }
.treechart-note { display: none; }
@media (max-width: 992px) {
  .treechart-scroll-container .treechart-content { min-width: 940px; }
  /* the legacy note becomes the swipe hint pill, sticky at the left edge while the scroller overflows */
  .treechart-note {
    position: sticky; top: 8px; left: 8px; z-index: 4; display: inline-flex; align-items: center; gap: 0.5em; width: max-content; max-width: calc(100vw - 80px);
    margin: 8px 0 -40px 8px; padding: 0.4em 0.95em; border-radius: var(--imm-r-pill);
    background: var(--imm-glass-dark-bg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    font-size: var(--imm-fs-xs); font-weight: 400; line-height: 1.4; color: #fff; white-space: normal;
  }
  .imm-figure--tree.is-scrolled .treechart-note { opacity: 0; transition: opacity 0.4s ease; }
}
.imm-figure--tree .chart-accessibility-panel { margin-top: 14px; }
.imm-figure--tree.is-empty { padding: 0; background: none; border-color: transparent; box-shadow: none; } /* no frame around the empty card */
.imm-figure--tree.is-empty .treechart-scroll-container { background: none; }
.imm-figure--tree.is-empty .treechart-content { max-height: 0; overflow: hidden; visibility: hidden; }
.imm-figure--tree.is-empty .treechart-note,
.imm-figure--tree.is-empty .imm-figure__head { display: none; }
.imm-figure--tree:not(.is-empty) .imm-tree-empty { display: none; }
.imm-figure--tree .imm-tree-empty { margin: clamp(10px, 3vh, 30px) auto; }
.imm-tree-empty .imm-btn { margin-top: 10px; }

/* ------------------------------------------------------------------ free electives trail (treechart.js, HTML)
   owner decision 2026-11-16: the ECharts tree became a trail of course cards — level segments on a dashed gold path,
   category chips that highlight, a dot "constellation" per course. Text only (no pictures), one column on phones. */
.imm-figure--tree .treechart-scroll-container { overflow: visible; background: none; }
.imm-figure--tree .treechart-note { display: none !important; }
.treechart-content.imm-fe { height: auto !important; min-width: 0 !important; }
/* scoped to the trail itself: results-courses.js also marks the "by interest" TAB PANEL .imm-fe, and a bare
   `.imm-fe { display: grid }` kept that panel on screen after switching to the popular tab (owner report 2026-11-17) */
.treechart-content.imm-fe, .tab-panel.active.imm-fe { display: grid; gap: clamp(14px, 2vw, 22px); color: var(--imm-ink); }
.imm-fe__summary { margin: 0; font-size: var(--imm-fs-sm); line-height: 1.6; color: var(--imm-ink-3); }
.imm-fe__summary b { color: var(--imm-ink); font-weight: 600; }

.imm-fe__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.imm-fe__chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; padding: 0.3em 0.45em 0.3em 0.85em;
  border: 1px solid var(--imm-line); border-radius: var(--imm-r-pill); background: rgba(255, 255, 255, 0.72);
  font: inherit; font-size: var(--imm-fs-xs); line-height: 1.35; color: var(--imm-ink-2); white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.3s var(--imm-ease-out);
}
.imm-fe__chip i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--fe-c); box-shadow: 0 0 0 3px rgba(104, 104, 172, 0.12); }
.imm-fe__chip-n {
  min-width: 1.9em; padding: 0.1em 0.5em; border-radius: var(--imm-r-pill); background: rgba(104, 104, 172, 0.1);
  font-weight: 600; text-align: center; color: var(--imm-ink-2);
}
@media (hover: hover) { .imm-fe__chip:hover { border-color: var(--imm-violet-300, rgba(104, 104, 172, 0.45)); background: #fff; transform: translate3d(0, -1px, 0); } }
.imm-fe__chip:focus-visible { outline: 2px solid var(--imm-gold-400); outline-offset: 2px; }
.imm-fe__chip[aria-pressed='true'] { color: var(--imm-ink); background: #fff; border-color: var(--fe-c, var(--imm-violet-500)); box-shadow: 0 8px 18px -10px rgba(27, 24, 56, 0.45); }
.imm-fe__chip[aria-pressed='true'] .imm-fe__chip-n { color: #fff; background: var(--fe-c, var(--imm-violet-500)); }
.imm-fe__chip.is-all[aria-pressed='true'] { color: #fff; background: var(--imm-grad-brand); border-color: transparent; }
.imm-fe__chip.is-all[aria-pressed='true'] .imm-fe__chip-n { color: var(--imm-violet-800, #2b2768); background: rgba(255, 255, 255, 0.9); }

.imm-fe__levels, .imm-fe__courses, .imm-fe__skills { list-style: none; margin: 0; padding: 0; }
.imm-fe__level + .imm-fe__level { margin-top: clamp(16px, 2.6vw, 26px); }
.imm-fe__level-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.imm-fe__level-badge {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #fff4dc 70%);
  border: 1.5px solid var(--imm-gold-400); box-shadow: 0 0 0 5px rgba(250, 172, 30, 0.12);
  font-size: var(--imm-fs-xs); font-weight: 600; letter-spacing: 0.02em; color: var(--imm-gold-700);
}
.imm-fe__level-name { margin: 0; font-size: var(--imm-fs-md); font-weight: 600; line-height: 1.35; color: var(--imm-ink); }
.imm-fe__level-n { margin-left: auto; font-size: var(--imm-fs-xs); color: var(--imm-ink-3); white-space: nowrap; }

/* the trail: a dashed gold path from the level badge down along the cards, one waypoint dot per course */
.imm-fe__courses { position: relative; display: grid; gap: 12px; margin-left: 21px; padding-left: 26px; }
.imm-fe__courses::before {
  content: ''; position: absolute; left: 0; top: -10px; bottom: 26px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--imm-gold-400) 0 6px, transparent 6px 12px); opacity: 0.75;
}
.imm-fe__course { position: relative; }
.imm-fe__dot {
  position: absolute; left: -32px; top: 22px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--imm-paper); border: 2px solid var(--imm-gold-500); box-shadow: 0 0 0 4px rgba(250, 172, 30, 0.14);
  transition: opacity 0.35s ease, transform 0.35s var(--imm-ease-out);
}
.imm-fe__card {
  position: relative; display: grid; gap: 10px; padding: 14px 16px 15px;
  border: 1px solid var(--imm-line); border-radius: var(--imm-r-md); background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--imm-shadow-1); outline: none;
  transition: transform 0.35s var(--imm-ease-out), box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
}
@media (hover: hover) {
  .imm-fe__card:hover { transform: translate3d(0, -2px, 0); border-color: var(--imm-line-gold); box-shadow: var(--imm-shadow-2); }
  .imm-fe__course:hover .imm-fe__dot { transform: scale(1.15); }
}
.imm-fe__card:focus-visible { border-color: var(--imm-gold-400); box-shadow: 0 0 0 3px rgba(250, 172, 30, 0.35), var(--imm-shadow-1); }
/* course photo header (owner request 2026-11-18): the course's group photo at its level, as on the swipe cards
   (results-courses.js sets --_photo on the card). The band bleeds to the card's edges, the course number sits on it
   as a dark chip and the photo melts into the card's paper under the title. Until the photo is known: a dusk wash. */
.imm-fe__card { overflow: hidden; }
.imm-fe__main, .imm-fe__skills { position: relative; z-index: 1; }
/* the photo itself fades to transparent (a mask, not a paper-coloured overlay): an opaque fade colour never quite
   matched the translucent card and left a hairline across the title (owner, 2026-11-18) */
.imm-fe__photo {
  grid-column: 1 / -1; display: block; height: 112px; margin: -14px -16px -50px; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 11, 39, 0.24) 0%, rgba(13, 11, 39, 0) 36%),
    var(--_photo, none) 50% 50% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 46%, rgba(0, 0, 0, 0.18) 78%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 0%, #000 46%, rgba(0, 0, 0, 0.18) 78%, transparent 96%);
}
.imm-fe__card:not([data-imm-photo]) .imm-fe__photo,
.imm-fe__card[data-imm-photo='fallback'] .imm-fe__photo {
  background:
    linear-gradient(180deg, rgba(13, 11, 39, 0.24) 0%, rgba(13, 11, 39, 0) 46%),
    linear-gradient(120deg, var(--imm-violet-800), var(--imm-violet-600) 55%, #c98a5a);
}
.imm-fe__card .imm-fe__code { background: rgba(13, 11, 39, 0.72); color: #fff; box-shadow: 0 2px 10px rgba(13, 11, 39, 0.22); }
.imm-fe__main { display: grid; gap: 6px; min-width: 0; }
.imm-fe__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.imm-fe__code {
  padding: 0.15em 0.75em; border-radius: var(--imm-r-pill); background: rgba(104, 104, 172, 0.1);
  font-size: var(--imm-fs-xs); font-weight: 600; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; color: var(--imm-violet-700, #3b3584);
}
.imm-fe__stars { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.imm-fe__stars i { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(104, 104, 172, 0.28); }
.imm-fe__stars i.on { background: var(--fe-c); box-shadow: 0 0 7px var(--fe-c); }
.imm-fe__title { margin: 0; font-size: var(--imm-fs-md); font-weight: 500; line-height: 1.38; color: var(--imm-ink); overflow-wrap: anywhere; }
.imm-fe__breadth { font-size: var(--imm-fs-xs); color: var(--imm-ink-3); }
.imm-fe__skills { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.imm-fe__skills li {
  display: inline-flex; align-items: center; gap: 7px; padding: 0.25em 0.8em 0.25em 0.65em; border-radius: var(--imm-r-pill);
  background: rgba(104, 104, 172, 0.06); font-size: var(--imm-fs-xs); line-height: 1.45; color: var(--imm-ink-2);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.imm-fe__skills li i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--fe-c); }
.imm-fe__skills li.is-hit { color: var(--imm-ink); background: #fff; box-shadow: inset 0 0 0 1.5px var(--fe-c); }

/* highlighting one category: the other courses step back */
.imm-fe.is-filtered .imm-fe__course.is-dim .imm-fe__card { opacity: 0.38; filter: saturate(0.35); box-shadow: none; }
.imm-fe.is-filtered .imm-fe__course.is-dim .imm-fe__dot { opacity: 0.35; }
.imm-fe.is-filtered .imm-fe__course:not(.is-dim) .imm-fe__dot { border-color: var(--imm-gold-600); background: var(--imm-gold-300); }

/* wide screens: the course on the left, its categories on the right */
@media (min-width: 900px) {
  .imm-fe__card { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; column-gap: 22px; }
  .imm-fe__skills { padding-left: 18px; border-left: 1px solid var(--imm-line); }
  /* the photo heads the course column only (a full-width band would be a thin, blurred sliver), melting into the
     paper downward and toward the categories */
  .imm-fe__photo { grid-column: 1; grid-row: 1; margin-right: 0; }
  .imm-fe__photo {
    -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 100%), linear-gradient(180deg, #000 0%, #000 46%, rgba(0, 0, 0, 0.18) 78%, transparent 96%);
    mask-image: linear-gradient(90deg, #000 62%, transparent 100%), linear-gradient(180deg, #000 0%, #000 46%, rgba(0, 0, 0, 0.18) 78%, transparent 96%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  .imm-fe__main { grid-column: 1; grid-row: 2; }
  .imm-fe__skills { grid-column: 2; grid-row: 1 / span 2; }
}
/* phones: the chips become one swipeable row */
@media (max-width: 640px) {
  .imm-fe__filters { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity; padding-bottom: 2px; }
  .imm-fe__filters::-webkit-scrollbar { display: none; }
  .imm-fe__chip { scroll-snap-align: start; }
  .imm-fe__courses { margin-left: 15px; padding-left: 20px; }
  .imm-fe__dot { left: -26px; }
  .imm-fe__level-badge { width: 32px; height: 32px; box-shadow: 0 0 0 4px rgba(250, 172, 30, 0.12); font-size: 0.8rem; }
}

html.imm-js .imm-fe__course { animation: imm-fe-in 0.6s var(--imm-ease-out) calc(min(var(--i, 0), 12) * 55ms) backwards; }
html.imm-js .imm-fe__level-head { animation: imm-fe-in 0.6s var(--imm-ease-out) backwards; }
@keyframes imm-fe-in { from { opacity: 0; transform: translate3d(0, 12px, 0); } }
html.imm-reduced .imm-fe__course, html.imm-reduced .imm-fe__level-head { animation: none; }
html.imm-reduced .imm-fe__card, html.imm-reduced .imm-fe__chip, html.imm-reduced .imm-fe__dot { transition: none; }

html.a11y-high-contrast .imm-fe__chip, html.a11y-high-contrast .imm-fe__card { background: #fff; border: 2px solid var(--imm-ink); box-shadow: none; color: var(--imm-ink); }
html.a11y-high-contrast .imm-fe__photo { display: none; }
html.a11y-high-contrast .imm-fe__card .imm-fe__code { background: var(--imm-ink); color: #fff; box-shadow: none; }
html.a11y-high-contrast .imm-fe__chip[aria-pressed='true'], html.a11y-high-contrast .imm-fe__chip.is-all[aria-pressed='true'] { background: var(--imm-ink); color: #fff; }
html.a11y-high-contrast .imm-fe__skills li { background: #fff; box-shadow: inset 0 0 0 1px var(--imm-ink); color: var(--imm-ink); }
html.a11y-high-contrast .imm-fe__courses::before { background: var(--imm-ink); opacity: 1; }
html.a11y-high-contrast .imm-fe.is-filtered .imm-fe__course.is-dim .imm-fe__card { opacity: 0.45; filter: none; }

/* ------------------------------------------------------------------ 9 · qq · questionnaire */
.imm-qframe {
  width: min(100%, 980px); margin: clamp(4px, 1vw, 12px) auto 0;
  border: 1px solid var(--imm-line); border-radius: var(--imm-r-lg); overflow: hidden;
  background: var(--imm-surface); box-shadow: var(--imm-shadow-2);
  animation: imm-rc-rise 0.7s var(--imm-ease-out) backwards;
}
.imm-qframe__bar {
  display: flex; align-items: center; gap: 14px; padding: clamp(14px, 2vw, 20px) clamp(16px, 2.6vw, 26px);
  border-bottom: 1px solid var(--imm-line);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.97) 0%, rgba(255, 253, 248, 0.9) 55%, rgba(255, 253, 248, 0.55) 100%),
    url('../../images/immersive/dest-qq-768.webp') 50% 62% / cover no-repeat;
}
.imm-qframe__icon {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--imm-grad-gold); color: #3a2400; box-shadow: 0 8px 20px rgba(250, 172, 30, 0.35);
}
.imm-qframe__icon svg { width: 22px; height: 22px; }
.imm-qframe__titles { min-width: 0; }
.imm-qframe__eyebrow { margin: 0; font-size: var(--imm-fs-2xs); font-weight: 500; letter-spacing: var(--imm-track-eyebrow); text-transform: uppercase; color: var(--imm-gold-600); }
.imm-qframe__title { margin: 0; font-size: var(--imm-fs-lg); font-weight: 600; line-height: 1.35; color: var(--imm-ink); text-align: left; }
.imm-qframe__note { margin: 0.1rem 0 0; font-size: var(--imm-fs-sm); font-weight: 300; line-height: 1.5; color: var(--imm-ink-2); }
.questionnaire-panel { width: 100%; min-height: 70vh; height: auto; border: 0; background: #fff; }
.imm-qframe .questionnaire-panel { min-height: 60vh; }
/* status variants: no frame chrome, the friendly card stands on its own */
.imm-qframe.is-message { width: 100%; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.imm-qframe.is-message .imm-qframe__bar { display: none; }
.questionnaire-panel--message { display: flex; justify-content: center; align-items: flex-start; min-height: 0; height: auto; padding: clamp(6px, 2vw, 20px) 0; background: none; }

.questionnaire-status-card {
  position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; gap: 0.6rem;
  width: min(100%, 36rem); margin: 0 auto; padding: clamp(118px, 18vw, 150px) clamp(20px, 4vw, 40px) clamp(26px, 4vw, 38px);
  border: 1px solid rgba(250, 172, 30, 0.42); border-radius: var(--imm-r-lg);
  background: var(--imm-surface); box-shadow: var(--imm-shadow-3); text-align: center;
  animation: imm-rc-rise 0.7s var(--imm-ease-out) backwards;
}
.questionnaire-status-card::before { /* illustration: the campfire at dusk, fading into paper */
  content: ''; position: absolute; inset: 0 0 auto; height: clamp(150px, 22vw, 190px); z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 11, 39, 0.05) 0%, rgba(255, 253, 248, 0) 50%, var(--imm-surface) 96%),
    url('../../images/immersive/dest-qq-768.webp') 50% 66% / cover no-repeat;
}
.questionnaire-status-icon {
  /* the ✓ character stays in the DOM (read by screen readers); a drawn check mark replaces its glyph */
  display: grid; place-items: center; width: 74px; height: 74px; margin: -38px 0 0.3rem; border-radius: 50%;
  background: var(--imm-grad-gold); color: #3a2400; font-size: 0; line-height: 0;
  box-shadow: 0 0 0 6px var(--imm-surface), 0 0 0 7px rgba(250, 172, 30, 0.45), 0 18px 40px rgba(250, 172, 30, 0.4);
}
.questionnaire-status-icon::before {
  content: ''; width: 34px; height: 34px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.questionnaire-status-title { margin: 0; font-size: var(--imm-fs-xl); font-weight: 600; line-height: 1.35; color: var(--imm-ink); text-align: center; }
.questionnaire-status-message { max-width: 28rem; margin: 0; font-size: var(--imm-fs-md); font-weight: 300; line-height: 1.7; color: var(--imm-ink-2); }
.questionnaire-status-no {
  display: inline-flex; align-items: center; gap: 0.5em; margin-top: 0.5rem; padding: 0.4em 1.1em; border-radius: var(--imm-r-pill);
  border: 1px dashed var(--imm-line-gold); background: var(--imm-gold-50);
  font-size: var(--imm-fs-sm); font-weight: 500; letter-spacing: 0.02em; color: var(--imm-gold-700); font-variant-numeric: tabular-nums;
  user-select: text; -webkit-user-select: text;
}
.questionnaire-status-card--error { border-color: rgba(201, 58, 85, 0.3); }
.questionnaire-status-card--error::before { filter: grayscale(0.6) brightness(0.95); }
.questionnaire-status-card--error::after { /* a compass that lost its bearing */
  content: ''; order: -1; width: 74px; height: 74px; margin: -38px 0 0.3rem; border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c93a55' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m15.6 8.4-2.1 5.1-5.1 2.1 2.1-5.1z'/%3E%3C/svg%3E") center / 54% no-repeat,
    var(--imm-surface);
  box-shadow: 0 0 0 6px var(--imm-surface), 0 0 0 7px rgba(201, 58, 85, 0.3), 0 18px 40px rgba(201, 58, 85, 0.18);
}
.questionnaire-status-card--error .questionnaire-status-title { color: #9b2740; }

/* ------------------------------------------------------------------ 10 · createTable tables (#detail-table) */
#tableContainer {
  /* !important: compass.js writes width:100% / overflow-x:auto inline; the paper frame keeps both behaviours */
  width: 100% !important; overflow-x: auto !important; margin: clamp(10px, 2vw, 20px) 0 0;
  border: 1px solid var(--imm-line); border-radius: var(--imm-r-lg); background: var(--imm-surface); box-shadow: var(--imm-shadow-2);
  scrollbar-width: thin; overscroll-behavior-x: contain;
}
.detail-table-note {
  position: sticky; top: 0; left: 0; z-index: 3; display: none; margin: 0; padding: 0.7em 1.1em;
  background: var(--imm-violet-50); font-size: var(--imm-fs-xs); font-weight: 400; line-height: 1.5; color: var(--imm-violet-700);
}
@media (max-width: 1100px) and (min-width: 641px) { .detail-table-note { display: block; } }
.detail-table {
  width: 100%; min-width: 860px; margin: 0; border: 0; border-radius: 0; border-collapse: separate; border-spacing: 0;
  font-size: var(--imm-fs-sm); line-height: 1.55; font-variant-numeric: tabular-nums; overflow: visible;
}
.detail-table th {
  padding: 0.85em 1em; border: 0; border-bottom: 1px solid var(--imm-line-strong);
  background: linear-gradient(180deg, var(--imm-violet-50), rgba(245, 243, 255, 0.6));
  font-size: var(--imm-fs-xs); font-weight: 500; line-height: 1.4; color: var(--imm-violet-800); text-align: left; white-space: nowrap; vertical-align: bottom;
}
/* every cell wears the same warm tint and every column its divider (owner 2026-11-18: the per-row skill column used
   to stay white and unruled next to the row-spanning course cells) */
.detail-table td { padding: 0.75em 1em; border: 0; border-bottom: 1px solid var(--imm-line); background: rgba(250, 172, 30, 0.04); color: var(--imm-ink-2); vertical-align: top; }
@media (min-width: 641px) { .detail-table td[data-col]:not([data-col='0']) { border-left: 1px solid var(--imm-line); } } /* the table only: phone cards have no columns */
.detail-table td[data-col='0'] { font-weight: 600; color: var(--imm-violet-700); letter-spacing: 0.04em; }
.detail-table td[data-col='1'] { font-weight: 500; color: var(--imm-ink); }
.detail-table td[data-col='5'], .detail-table td[data-col='6'], .detail-table td[data-col='7'] { text-align: center; }
.detail-table tbody tr.imm-row-start td { border-top: 1px solid var(--imm-line-strong); }
.detail-table tbody tr:first-child td { border-top: 0; }
.detail-table tbody tr:last-child td { border-bottom: 0; }
@media (hover: hover) { .detail-table tbody tr:hover td:not([rowspan]) { background: rgba(104, 104, 172, 0.04); } }

/* phones: each course becomes one card; its skill rows are stacked label / value blocks inside it */
@media (max-width: 640px) {
  #tableContainer { overflow: visible !important; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .detail-table, .detail-table tbody { display: block; min-width: 0; }
  .detail-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .detail-table tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 14px; padding: 12px 16px;
    border-inline: 1px solid var(--imm-line); background: var(--imm-surface);
  }
  .detail-table tbody tr:not(.imm-row-start) { border-top: 1px dashed var(--imm-line); }
  .detail-table tbody tr.imm-row-start { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--imm-line); border-radius: var(--imm-r-md) var(--imm-r-md) 0 0; box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.6) inset; }
  .detail-table tbody tr.imm-row-start:first-child { margin-top: 0; }
  .detail-table tbody tr.imm-row-end { padding-bottom: 16px; border-bottom: 1px solid var(--imm-line); border-radius: 0 0 var(--imm-r-md) var(--imm-r-md); }
  .detail-table tbody tr.imm-row-start.imm-row-end { border-radius: var(--imm-r-md); }
  .detail-table tbody td { display: block; min-width: 0; padding: 0; border: 0; background: none; text-align: left; overflow-wrap: anywhere; }
  .detail-table tbody td[rowspan] { border: 0; background: none; }
  .detail-table tbody td::before { content: attr(data-label); display: block; font-size: var(--imm-fs-2xs); font-weight: 500; line-height: 1.4; color: var(--imm-ink-3); }
  .detail-table td[data-col='0'], .detail-table td[data-col='1'], .detail-table td[data-col='2'] { grid-column: 1 / -1; }
  .detail-table td[data-col='0']::before, .detail-table td[data-col='1']::before { content: none; }
  .detail-table tbody td[data-col='0'] { display: inline-flex; justify-self: start; padding: 0.15em 0.7em; border-radius: var(--imm-r-pill); background: var(--imm-violet-50); font-size: var(--imm-fs-xs); }
  .detail-table td[data-col='1'] { font-size: var(--imm-fs-md); font-weight: 600; line-height: 1.4; padding-bottom: 6px; }
  .detail-table td[data-col='2'] { font-weight: 500; color: var(--imm-ink); }
  .detail-table td[data-col='5'], .detail-table td[data-col='6'], .detail-table td[data-col='7'] { text-align: left; }
  /* folding cards (owner 2026-11-19: "too long"): results-courses.js folds every course to its code, title and a
     skills-count button; unfolding animates the height (WAAPI) */
  .detail-table tbody tr { box-sizing: border-box; }
  .detail-table tbody tr.imm-row-start td { border-top: 0; } /* the table's course divider is the card edge here */
  .detail-table tbody tr.imm-row-start { position: relative; }
  .detail-table tbody tr.imm-row-start > td[data-col='1'] { padding-right: 0; }
  .detail-table tbody tr.is-folded > td:not([data-col='0']):not([data-col='1']) { display: none; }
  .detail-table tbody tr.is-folded-tail { display: none; }
  .detail-table tbody tr.imm-row-start.is-folded { padding-bottom: 14px; border-bottom: 1px solid var(--imm-line); border-radius: var(--imm-r-md); }
  .detail-table tbody tr.imm-row-start.is-folded > td[data-col='1'] { padding-bottom: 0; }
  .imm-dt-fold {
    position: absolute; top: 12px; right: 12px; z-index: 1;
    display: inline-flex; align-items: center; gap: 0.4em; min-height: 36px; padding: 0.2em 0.75em 0.2em 0.85em;
    border: 1px solid var(--imm-line); border-radius: var(--imm-r-pill); background: #fff;
    font: inherit; font-size: var(--imm-fs-xs); font-weight: 500; line-height: 1.2; color: var(--imm-violet-700); cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: background-color 0.25s ease, border-color 0.25s ease;
  }
  .imm-dt-fold__n { font-weight: 600; font-variant-numeric: tabular-nums; }
  .imm-dt-fold__chev { width: 0.5em; height: 0.5em; margin-left: 0.15em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-20%) rotate(45deg); transition: transform 0.4s var(--imm-ease-out); }
  .imm-dt-fold[aria-expanded='true'] .imm-dt-fold__chev { transform: translateY(15%) rotate(225deg); }
  .imm-dt-fold:focus-visible { outline: 2px solid var(--imm-gold-400); outline-offset: 2px; }
  .detail-table tbody tr.imm-row-start > td[data-col='0'], .detail-table tbody tr.imm-row-start > td[data-col='1'] { cursor: pointer; }
  .detail-table tbody tr.imm-row-start > td[data-col='1'] { margin-right: 0; }
  .detail-table tbody tr.imm-row-start > td[data-col='0'] { margin-right: 96px; } /* room for the fold button */
}
.imm-dt-fold { display: none; } /* phones only (above) */
@media (max-width: 640px) { .imm-dt-fold { display: inline-flex; } }
html.a11y-high-contrast .imm-dt-fold { border: 2px solid var(--imm-ink); color: var(--imm-ink); }
html.imm-reduced .imm-dt-fold, html.imm-reduced .imm-dt-fold__chev { transition: none; }

/* ------------------------------------------------------------------ 11 · reduced motion */
html.imm-reduced .stack-selection,
html.imm-reduced .stack-option,
html.imm-reduced .card-swiper,
html.imm-reduced .no-more-cards,
html.imm-reduced .no-more-cards::before,
html.imm-reduced .elective-selected-table-container,
html.imm-reduced .imm-swipe__reader.is-swapping .imm-swipe__reader-body,
html.imm-reduced .imm-swipe__reader.is-swapping .imm-swipe__reader-meta,
html.imm-reduced .free-elective-interest-form #fe-skill-results,
html.imm-reduced .imm-fe-hint,
html.imm-reduced .fe-skill-tag,
html.imm-reduced .fe-course-result-card,
html.imm-reduced .imm-fe-desc[open] > .fe-course-desc-th,
html.imm-reduced .imm-qframe,
html.imm-reduced .questionnaire-status-card,
html.imm-reduced .card-stack:not(:has(.course-card))::before,
html.imm-reduced .fe-course-codes-container.is-loading .fe-course-codes-list::before,
html.imm-reduced .fe-course-codes-container.is-loading .fe-course-codes-list::after { animation: none; }
html.imm-reduced .no-more-cards::after { display: none; }
html.imm-reduced .imm-swipe__reader.is-streaming .imm-swipe__reader-body::after { animation: none; opacity: 0.6; }
html.imm-reduced .stack-option,
html.imm-reduced .stack-option::before,
html.imm-reduced .stack-option .imm-path__cue-arrow { transition: none; transform: none; translate: none; }
html.imm-reduced .course-card,
html.imm-reduced .card-stack > .course-card > * { transition: opacity 0.2s ease; }
html.imm-reduced .course-card.swiped-left,
html.imm-reduced .course-card.swiped-right { transform: none; transition: opacity 0.2s ease; }
html.imm-reduced .imm-swipe__btn-icon,
html.imm-reduced .imm-swipe__back svg,
html.imm-reduced .no-more-cards .el-reselect-button,
html.imm-reduced .no-more-cards .el-reselect-button svg,
html.imm-reduced .fe-skill-tag-remove,
html.imm-reduced .fe-course-result-card,
html.imm-reduced .elective-selected-table .course-link { transition: none; transform: none; translate: none; }
html.imm-reduced .fe-course-result-card:hover { translate: none; }

/* ------------------------------------------------------------------ 12 · high contrast */
html.a11y-high-contrast .stack-selection > .header h1,
html.a11y-high-contrast .no-more-cards h2 { background: none; -webkit-text-fill-color: currentColor; color: var(--imm-ink); }
html.a11y-high-contrast .no-more-cards::before,
html.a11y-high-contrast .no-more-cards::after { display: none; }
/* photo cards: the photo becomes a band at the top, text sits on an opaque plate */
html.a11y-high-contrast .stack-option { padding-top: calc(clamp(120px, 15vw, 170px) + 18px); background: #fff; color: var(--imm-ink); border: 2px solid var(--imm-ink); box-shadow: none; }
html.a11y-high-contrast .stack-option::before { inset: 0 0 auto; height: clamp(120px, 15vw, 170px); background: var(--_photo) 50% 42% / cover no-repeat; transform: none; }
html.a11y-high-contrast .stack-option::after { display: none; }
html.a11y-high-contrast .stack-option .stack-title,
html.a11y-high-contrast .stack-option .stack-description { color: var(--imm-ink); text-shadow: none; }
html.a11y-high-contrast .stack-option .imm-path__eyebrow { color: var(--imm-ink-2); }
html.a11y-high-contrast .stack-option .imm-path__num { -webkit-text-stroke: 1px #fff; }
html.a11y-high-contrast .stack-option .stack-count { background: #05050c; border-color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.a11y-high-contrast .stack-option .imm-path__cue { background: var(--imm-accent-strong); color: #fff; box-shadow: none; }
html.a11y-high-contrast .stack-option.imm-path--empty .imm-path__cue { background: #fff; color: var(--imm-ink); border: 2px solid var(--imm-ink); }
html.a11y-high-contrast .course-card,
html.a11y-high-contrast .imm-swipe__reader,
html.a11y-high-contrast .imm-swipe__back,
html.a11y-high-contrast .free-elective-interest-form,
html.a11y-high-contrast .fe-course-result-card,
html.a11y-high-contrast .elective-selected-table tbody tr,
html.a11y-high-contrast .imm-qframe,
html.a11y-high-contrast .questionnaire-status-card,
html.a11y-high-contrast #tableContainer { background: #fff; border: 2px solid var(--imm-ink); box-shadow: none; }
html.a11y-high-contrast .course-card .course-header::before { background: var(--_photo) 50% 46% / cover no-repeat; height: clamp(76px, 10vw, 88px); -webkit-mask-image: none; mask-image: none; }
html.a11y-high-contrast .course-card .course-header { padding-top: clamp(92px, 12vw, 104px); }
html.a11y-high-contrast .course-card .course-icon,
html.a11y-high-contrast .imm-figure--tree .treechart-note { background: #05050c; border-color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.a11y-high-contrast .course-card .course-header::after { background: #05050c; padding: 0.2em 0.6em; border-radius: 6px; text-shadow: none; }
html.a11y-high-contrast .course-card .skills-wrapper .skill { background: #fff !important; color: var(--imm-ink) !important; border: 1px solid var(--imm-ink); }
html.a11y-high-contrast .course-card .course-info > div,
html.a11y-high-contrast .course-card .selector-btn,
html.a11y-high-contrast .fe-course-result-card .fe-course-skill-tag,
html.a11y-high-contrast .fe-course-result-card .fe-course-code-link,
html.a11y-high-contrast .fe-skill-tag { background: #fff; border: 2px solid var(--imm-ink); color: var(--imm-ink); box-shadow: none; }
html.a11y-high-contrast .fe-skill-tag-label { color: var(--imm-ink); }
html.a11y-high-contrast .imm-swipe__btn--skip .imm-swipe__btn-icon { background: #fff; color: #8c1d33; border: 2px solid var(--imm-ink); box-shadow: none; }
html.a11y-high-contrast .imm-swipe__btn--like .imm-swipe__btn-icon { background: var(--imm-accent-strong); color: #fff; border: 2px solid var(--imm-ink); box-shadow: none; }
html.a11y-high-contrast .imm-swipe__btn { color: var(--imm-ink); }
html.a11y-high-contrast .imm-swipe__track > i { background: rgba(11, 11, 18, 0.18); }
html.a11y-high-contrast .imm-swipe__track > i[data-s='like'] { background: var(--imm-highlight); }
html.a11y-high-contrast .imm-swipe__track > i[data-s='skip'] { background: var(--imm-ink-3); }
html.a11y-high-contrast .imm-swipe__track > i[data-s='now'] { background: var(--imm-ink); }
html.a11y-high-contrast .course-card .like-indicator,
html.a11y-high-contrast .course-card .dislike-indicator { background: #fff; box-shadow: none; }
html.a11y-high-contrast .imm-swipe__reader-body u { background: none; text-decoration: underline; text-decoration-thickness: 2px; }
html.a11y-high-contrast #fe-skill-query { border: 2px solid var(--imm-ink); }
html.a11y-high-contrast .free-elective-interest-form #fe-skill-results { border: 2px solid var(--imm-ink); box-shadow: none; }
html.a11y-high-contrast #search_from_fe_skill { background: var(--imm-accent-strong); border: 2px solid var(--imm-ink); box-shadow: none; }
html.a11y-high-contrast .imm-cover__track > i,
html.a11y-high-contrast .imm-cover--bar .imm-cover__track { background: rgba(11, 11, 18, 0.16); }
html.a11y-high-contrast .imm-cover__track > i.is-on,
html.a11y-high-contrast .imm-cover--bar .imm-cover__track > i { background: var(--imm-highlight); box-shadow: none; }
html.a11y-high-contrast .imm-qframe__bar { background: #f4ecd3; border-bottom: 2px solid var(--imm-ink); }
html.a11y-high-contrast .questionnaire-status-card::before { height: clamp(96px, 14vw, 120px); background: url('../../images/immersive/dest-qq-768.webp') 50% 66% / cover no-repeat; }
html.a11y-high-contrast .questionnaire-status-card { padding-top: clamp(130px, 18vw, 150px); }
html.a11y-high-contrast .questionnaire-status-icon { background: var(--imm-accent-strong); color: #fff; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--imm-ink); }
/* small gold ornament text would fall under 4.5:1 on white */
html.a11y-high-contrast .stack-selection > .header::before,
html.a11y-high-contrast .imm-swipe > .stack-header::before,
html.a11y-high-contrast .imm-swipe__reader-eyebrow,
html.a11y-high-contrast .free-elective-interest-form::before,
html.a11y-high-contrast .fe-course-codes-title::before,
html.a11y-high-contrast .imm-qframe__eyebrow,
html.a11y-high-contrast .stack-selection > .header p:nth-of-type(2)::before { color: var(--imm-ink-2); }
html.a11y-high-contrast .no-more-cards h2::before { -webkit-text-fill-color: var(--imm-ink-2); color: var(--imm-ink-2); }
html.a11y-high-contrast .fe-course-codes-list:not(:empty) ~ .fe-course-codes-empty:not(.d-none),
html.a11y-high-contrast .imm-summary-head .imm-chip { background: #fff; border: 2px solid var(--imm-ink); color: var(--imm-ink); }
html.a11y-high-contrast .fe-course-result-card::before,
html.a11y-high-contrast .elective-selected-table tbody tr::before { color: var(--imm-highlight); }
html.a11y-high-contrast .fe-course-result-card .fe-course-skill-heading-required + .fe-course-skill-tags .fe-course-skill-tag:not(.fe-course-skill-tag-empty) { background: #fff7e0; border: 2px solid var(--imm-ink); color: var(--imm-ink); }
html.a11y-high-contrast .detail-table th { background: #f4ecd3; color: var(--imm-ink); border-bottom: 2px solid var(--imm-ink); }
html.a11y-high-contrast .detail-table td { border-bottom-color: var(--imm-ink); border-left-color: var(--imm-ink); background: #fff; }
html.a11y-high-contrast .elective-selected-table tbody td:nth-child(5) { background: #fff; border-left-color: var(--imm-ink); }

/* ------------------------------------------------------------------ 13 · large text (116%) */
html.a11y-font-xlarge .imm-swipe__progress { flex-basis: 100%; max-width: none; }
html.a11y-font-xlarge .stack-option { min-height: clamp(320px, 40vw, 500px); }
@media (max-width: 400px) {
  html.a11y-font-xlarge .imm-swipe__controls { gap: 18px; }
  html.a11y-font-xlarge .course-card .course-header::after { display: none; }
}

/* ------------------------------------------------------------------ 14 · imm-force: beating legacy !important
   The legacy sheet sets `.course-card.hint { animation: none !important }` (and the stamp flashes) under
   prefers-reduced-motion. That leaves coursecard.js' isHintPlaying flag waiting for an animationend that never
   comes. With reduced motion we play a calm, motionless glow of the same length instead, so the hint keeps its
   timing contract without any movement. */
@layer imm-force {
  /* motion policy (boot.js): the OS preference no longer counts, so give back the full legacy hint that the
     legacy sheet kills under prefers-reduced-motion — unless the in-app switch asked for stillness */
  @media (prefers-reduced-motion: reduce) {
    html.imm-js:not(.imm-reduced) .course-card.hint { animation: swipeHint 1.6s ease-in-out 0.6s 1 both !important; }
    html.imm-js:not(.imm-reduced) .course-card.hint .like-indicator { animation: hintLike 1.6s ease-in-out 0.6s 1 both !important; }
    html.imm-js:not(.imm-reduced) .course-card.hint .dislike-indicator { animation: hintDislike 1.6s ease-in-out 0.6s 1 both !important; }
  }
  html.imm-reduced .course-card.hint { animation: imm-rc-hint-calm 1.6s ease-in-out 0.6s 1 both !important; }
  html.imm-reduced .course-card.hint .like-indicator,
  html.imm-reduced .course-card.hint .dislike-indicator { animation: none !important; }
}
