/* الورشة التفاعلية — v5.2-workshop. Uses the atlas tokens only (atlas.css / atlas5.css); no new colours, no restyling of shared parts. */
.ws-num { unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.ws-entry { gap: 10px; }
.ws-entry .pill { font-size: 11.5px; }

/* ---- journey rail */
.ws-rail { position: sticky; top: var(--ws-top, 61px); z-index: 15; margin: -8px 0 22px; background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 10px 0; }
.ws-rail__in { display: flex; align-items: center; gap: 20px; }
.ws-rail__list { list-style: none; margin: 0; padding: 0; display: flex; flex: 1; min-width: 0; }
/* stepper: node on the line, label under it; the segment to the previous node turns green once that node is done */
.ws-rail__i { flex: 1 1 0; min-width: 0; position: relative; }
.ws-rail__i > a, .ws-rail__i > span { display: grid; justify-items: center; gap: 5px; text-decoration: none; color: var(--muted); padding: 2px 2px 0; border-radius: 10px; }
.ws-rail__i > a:hover .ws-rail__t { color: var(--ink); }
.ws-rail__i:not(:first-child)::before { content: ""; position: absolute; top: 15px; inset-inline-start: -50%; inset-inline-end: 50%; height: 2px; background: var(--line); z-index: 0; }
.ws-rail__i.is-reached::before { background: var(--green); }
.ws-rail__n { position: relative; z-index: 1; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600;
  background: var(--surface); border: 1.5px solid var(--line-2); color: var(--muted); }
.ws-rail__t { font-size: 12.5px; line-height: 1.35; text-align: center; max-width: 100%; }
.ws-rail__i--quiz .ws-rail__n { width: 22px; height: 22px; margin-top: 2px; font-size: 11px; border-style: dashed; }
.ws-rail__i--quiz.is-done .ws-rail__n, .ws-rail__i--quiz.is-on .ws-rail__n { border-style: solid; }
.ws-rail__i--quiz .ws-rail__t { font-size: 12px; }
.ws-rail__i.is-done .ws-rail__n { background: var(--green); border-color: var(--green); color: #fff; }
.ws-rail__i.is-done > a { color: var(--ink-2); }
.ws-rail__i.is-next .ws-rail__n { border-color: var(--jac); color: var(--jac-ink); }
.ws-rail__i.is-on .ws-rail__n { background: var(--jac-ink); border-color: var(--jac-ink); color: var(--paper); box-shadow: 0 0 0 4px var(--jac-soft); }
.ws-rail__i.is-on > a { color: var(--ink); }
.ws-rail__i.is-on .ws-rail__t { font-weight: 600; }
.ws-rail__i.is-locked > span { cursor: not-allowed; }
.ws-rail__i.is-locked .ws-rail__t { opacity: .6; }
.ws-rail__i.is-locked .ws-rail__n { color: var(--faint); border-color: var(--line); }
.ws-rail__side { flex: none; display: flex; align-items: center; gap: 10px; }
.ws-score { font-size: 13.5px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.ws-score__k { color: var(--muted); }
.ws-score .ws-num { font-weight: 700; color: var(--ink); }
.ws-score__t { color: var(--muted); font-size: 12px; }
.ws-dev { position: relative; font-size: 12.5px; }
.ws-dev > summary { cursor: pointer; color: var(--muted); list-style: none; padding: 4px 8px; border-radius: 8px; border: 1px dashed var(--line-2); white-space: nowrap; }
.ws-dev > summary::-webkit-details-marker { display: none; }
.ws-dev[open] > summary { color: var(--ink); }
.ws-dev__pop { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; width: 250px; background: var(--surface); border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.16); padding: 10px 14px; z-index: 30; }
.ws-dev__row { display: flex; gap: 6px; align-items: center; margin: 4px 0; font-size: 13px; color: var(--ink); }
.ws-dev__note { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.ws-rail--dev { border-bottom-color: var(--sand-ink, var(--line)); }

/* ---- generic */
.ws-h { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.ws-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 18px; }
.ws-lock { max-width: 640px; padding: 32px 0; }

/* ---- start */
.ws-start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 8px; }
.ws-start__text h1.title { font-size: clamp(30px, 3.6vw, 48px); }
.ws-start__note { font-size: 13.5px; color: var(--muted); margin-top: 16px; max-width: 52ch; }
.ws-start__over { background: var(--surface); border-radius: 20px; padding: 22px 24px; }
.ws-over { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ws-over__i { display: grid; grid-template-columns: 30px auto 1fr; column-gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ws-over__i:last-child { border-bottom: 0; }
.ws-over__n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; background: var(--jac-soft); color: var(--jac-ink); align-self: center; }
.ws-over__i.is-done .ws-over__n { background: var(--green); color: #fff; }
.ws-over__t { font-weight: 600; font-size: 15px; white-space: nowrap; }
.ws-over__d { font-size: 13.5px; color: var(--muted); }

/* ---- intro video */
.ws-intro { max-width: 900px; }
.ws-video { border-radius: 18px; overflow: hidden; background: #161616; color: #fff; margin-top: 8px; }
.ws-video__screen { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; align-content: center; gap: 14px;
  background: radial-gradient(90% 80% at 50% 40%, #2a2c30 0%, #161616 75%); }
.ws-video__play { width: 76px; height: 76px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; cursor: pointer; display: grid; place-items: center; }
.ws-video__play:hover, .ws-video__play:focus-visible { background: var(--green); }
.ws-video__ph { font-size: 15px; color: rgba(255,255,255,.8); }
.ws-video__msg { position: absolute; bottom: 14px; margin: 0; font-size: 13px; background: rgba(255,255,255,.12); border-radius: 999px; padding: 4px 12px; }
.ws-video__bar { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: #1f2023; }
.ws-video__bar .tool { color: #fff; }
.ws-video__bar .tool:hover { background: rgba(255,255,255,.12); color: #fff; }
.ws-video__track { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); overflow: hidden; }
.ws-video__fill { display: block; width: 0; height: 100%; background: var(--green); }
.ws-video__time { font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.85); }

/* ---- stage template (reuses .studio / .stage / .tools / .p3d) */
.ws-studio .studio__head { margin-bottom: 12px; }
.ws-studio .studio__head h1.title { font-size: clamp(26px, 2.6vw, 36px); }
.ws-studio .stage { height: calc(100vh - 300px); min-height: 440px; }
.ws-studio .p3d { max-height: calc(100vh - 300px); top: 140px; }
.ws-stage__ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; padding: 24px; color: var(--muted); }
.ws-stage__ph strong { font-size: 20px; font-weight: 600; color: var(--ink-2); }
.ws-stage__ph span { font-size: 14px; max-width: 46ch; }
.ws-stage__icon { width: 120px; height: 120px; border-radius: 22px; border: 2px dashed var(--line-2); margin-bottom: 6px;
  background: repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px), linear-gradient(transparent, transparent); }
.ws-stage .stage__note { top: 12px; inset-inline-end: 12px; inset-inline-start: auto; }
.ws-tool { opacity: .78; }
.ws-tool[aria-disabled="true"] { cursor: default; }
.ws-tool__soon { font-size: 10.5px; color: var(--muted); background: var(--stone); border-radius: 999px; padding: 0 6px; margin-inline-start: 6px; }
.ws-panel .p3d__title--home { font-size: 20px; }
.ws-meter { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin: 2px 0 12px; }
.ws-meter > span { display: block; height: 100%; background: var(--green); }
.ws-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ws-points__i .lbtn { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; text-decoration: none; }
.ws-points__n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--stone); color: var(--muted); font-weight: 600; }
.ws-points__t { font-size: 14.5px; }
.ws-points__s { font-size: 12px; color: var(--muted); font-weight: 500; }
.ws-points__i.is-done .ws-points__n { background: var(--green); color: #fff; }
.ws-points__i.is-done .ws-points__s { color: var(--green-ink); }
.ws-points__i.is-locked .lbtn { opacity: .55; cursor: not-allowed; }
.ws-points__i.is-locked .lbtn:hover { border-color: var(--line); background: var(--raised); }
.ws-after { display: grid; gap: 6px; }
.ws-steps { display: flex; flex-wrap: wrap; gap: 2px; background: var(--stone); border-radius: 12px; padding: 3px; margin: 6px 0 12px; }
.ws-steps__i { flex: 1; display: flex; gap: 6px; align-items: center; justify-content: center; text-decoration: none; font-size: 13px; padding: 6px 8px; border-radius: 10px; color: var(--muted); white-space: nowrap; }
.ws-steps__i[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); font-weight: 500; }
.ws-steps__n { width: 18px; height: 18px; border-radius: 50%; font-size: 11px; display: grid; place-items: center; background: var(--surface); color: var(--muted); }
.ws-steps__i.is-seen .ws-steps__n { background: var(--green); color: #fff; }
.ws-ph { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 14px 16px; background: var(--surface); }
.ws-ph__k { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 15px; }
.ws-ph p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.ws-ph .ws-ph__m { font-size: 13px; color: var(--muted); }
.ws-actions--panel { margin-top: 14px; }
.ws-actions--panel .btn--primary { flex: 1; justify-content: center; }

/* ---- differences summary */
.ws-diff__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.ws-diff__c { display: grid; gap: 6px; border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 14px 16px; background: var(--surface); }
.ws-diff__ph { font-size: 13px; color: var(--muted); }

/* ---- quiz */
.ws-quiz { max-width: 820px; }
.ws-quiz__top { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; margin: 6px 0 14px; }
.ws-quiz__count { font-weight: 600; font-size: 15px; }
.ws-quiz__score { font-size: 13.5px; color: var(--muted); }
.ws-quiz__bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ws-quiz__bar > span { display: block; height: 100%; background: var(--green); transition: width .3s; }
.ws-quiz__card { background: var(--surface); border-radius: 18px; padding: 22px 24px; }
.ws-quiz__tags { margin-bottom: 8px; }
.ws-quiz__q { font-size: 18px; line-height: 1.8; margin: 0 0 14px; font-weight: 500; }
.ws-quiz__opts { display: grid; gap: 8px; }
.ws-opt { display: grid; grid-template-columns: auto 30px 1fr; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; background: var(--paper); font-size: 15px; }
.ws-opt:hover { border-color: var(--jac); }
.ws-opt:has(input:checked) { border-color: var(--jac-ink); background: var(--jac-soft); }
.ws-opt input { accent-color: var(--jac-ink); margin: 0; }
.ws-opt__k { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--stone); font-size: 13px; font-weight: 600; }
.ws-opt.is-right, .ws-opt.is-right:has(input:checked) { border-color: var(--green); background: color-mix(in srgb, var(--green) 10%, var(--surface)); }
.ws-opt.is-wrong, .ws-opt.is-wrong:has(input:checked) { border-color: var(--req); background: color-mix(in srgb, var(--req) 9%, var(--surface)); }
.ws-opt:has(input:disabled) { cursor: default; }
.ws-quiz__fb { margin-top: 12px; font-size: 14.5px; min-height: 1px; }
.ws-quiz__fb.is-right strong { color: var(--green-ink); }
.ws-quiz__fb.is-wrong strong { color: var(--req); }
.ws-quiz__fb.is-hint { color: var(--muted); }
.ws-quiz__big { font-size: 22px; font-weight: 600; margin: 8px 0 0; }

/* ---- certificate */
.ws-certpage__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 32px; align-items: start; }
.ws-cert { border-radius: 20px; padding: 14px; background: linear-gradient(160deg, var(--jac-soft), var(--stone) 80%); }
.ws-cert__in { border: 1.5px solid var(--jac); border-radius: 14px; background: var(--surface); padding: 30px 28px; text-align: center; display: grid; gap: 4px; justify-items: center; }
.ws-cert__mark .symimg, .ws-cert__mark img { width: 64px; height: 64px; }
.ws-cert__k { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.ws-cert__t { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.4; }
.ws-cert__to { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.ws-cert__name { margin: 0; font-size: 24px; font-weight: 600; border-bottom: 1px solid var(--line-2); padding: 0 24px 6px; min-width: 60%; }
.ws-cert__lv { margin: 12px 0 0; font-size: 16px; } .ws-cert__lv strong { color: var(--jac-ink); }
.ws-cert__sc, .ws-cert__date { margin: 0; font-size: 14px; color: var(--ink-2); }
.ws-cert__proto { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.ws-cert--fail .ws-cert__in { border-color: var(--line-2); }
.ws-cert__form { margin-top: 18px; }
.ws-name { font: inherit; font-size: 16px; width: 100%; max-width: 420px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.ws-name[aria-invalid="true"] { border-color: var(--req); }
.ws-levels { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; }
.ws-levels caption { text-align: start; font-weight: 600; padding: 0 0 8px; }
.ws-levels th, .ws-levels td { text-align: start; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.ws-levels th { font-weight: 600; }
.ws-levels tr.is-on { background: var(--jac-soft); }
.ws-levels tr.is-fail { background: color-mix(in srgb, var(--req) 8%, var(--surface)); }
.ws-devscore { margin-top: 16px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.ws-devscore label { grid-column: 1 / -1; color: var(--ink-2); }
.ws-devscore input[type=range] { width: 100%; accent-color: var(--jac-ink); }
.ws-devscore output { font-weight: 700; min-width: 2.5em; text-align: center; }
.ws-devscore .linkbtn { grid-column: 1 / -1; justify-self: start; font-size: 13px; }

/* ---- sources */
.ws-src__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.ws-src__c { background: var(--surface); border-radius: 16px; padding: 18px; display: grid; gap: 8px; align-content: start; justify-items: start; }
.ws-src__t { font-size: 16px; font-weight: 600; margin: 0; }
.ws-src__c p { margin: 0; font-size: 14px; color: var(--muted); }
.ws-end { margin-top: 28px; padding: 22px 24px; border-radius: 18px; background: var(--jac-soft); }
.ws-end p { margin: 0; color: var(--ink-2); }

/* ---- responsive */
@media (max-width: 1000px) {
  .ws-start, .ws-certpage__grid { grid-template-columns: 1fr; gap: 24px; }
  .ws-src__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ws-rail__in { gap: 10px; }
  .ws-rail__i:not(.is-on) .ws-rail__t { display: none; }
  .ws-rail__i.is-on { flex: 2.6 1 0; }
  .ws-rail__i > a, .ws-rail__i > span { padding: 3px; }
}
@media (max-width: 1000px) { .ws-studio .stage { height: 58vh; min-height: 360px; } .ws-studio .p3d { max-height: none; } }
@media (max-width: 720px) {
  .ws-rail { margin-top: -6px; padding: 8px 0; }
  .ws-rail__in { flex-wrap: wrap; row-gap: 8px; }
  .ws-rail__list { flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
  .ws-rail__side { width: 100%; justify-content: space-between; }
  .ws-rail__n { width: 24px; height: 24px; font-size: 12px; }
  .ws-src__grid { grid-template-columns: 1fr; }
  .ws-quiz__card { padding: 18px 16px; }
  .ws-quiz__q { font-size: 16.5px; }
  .ws-opt { padding: 9px 12px; font-size: 14.5px; }
  .ws-cert__in { padding: 22px 16px; }
  .ws-stage .stage__toolbar { flex-wrap: wrap; justify-content: center; row-gap: 6px; }
  .ws-stage .stage__toolbar .tools { flex-wrap: wrap; }
  .ws-stage .stage__toolbar .tools--tour { display: flex; }
  .ws-tool__soon { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ws-quiz__bar > span { transition: none; } }

/* ---- schema 2 (2026-10-20): 12 stations, context media container, «تحقّق من فهمك» and review timers */
.ws-rail__t { overflow-wrap: anywhere; }
.ws-rail__i--cert .ws-rail__n, .ws-rail__i--src .ws-rail__n { border-radius: 8px; }
@media (max-width: 1100px) { .ws-rail__t { font-size: 11.5px; } .ws-rail__i--quiz .ws-rail__t { font-size: 11px; } }
.ws-broken { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 600; }
.ws-media__icon { width: 120px; height: 84px; border-radius: 14px; border: 2px dashed var(--line-2); margin-bottom: 6px; position: relative; }
.ws-media__icon.is-video::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-block: 14px solid transparent; border-inline-start: 22px solid var(--line-2); transform: translateX(-4px); }
[dir="rtl"] .ws-media__icon.is-video::after { transform: translateX(4px) scaleX(-1); }
.ws-points__i.is-active .ws-points__n { background: var(--jac-soft); color: var(--jac-ink); }
.ws-points__i.is-active .ws-points__s { color: var(--jac-ink); }
.ws-points__prog { margin-bottom: 2px; font-weight: 500; color: var(--ink-2); }
.ws-steps__i.is-locked { opacity: .5; cursor: not-allowed; }
.ws-timer { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
.ws-timer__v { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); min-width: 5ch; text-align: center; }
.ws-timer.is-low { border-color: var(--jac); }
.ws-timer.is-low .ws-timer__v { color: var(--jac-ink); }
.ws-check { padding: 14px 16px; border: 1px solid var(--line); }
.ws-check__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ws-check__k { font-weight: 600; font-size: 15px; }
.ws-check .ws-quiz__q { font-size: 15.5px; margin-bottom: 10px; }
.ws-check .ws-opt { padding-block: 8px; }
.ws-quiz__n { font-size: .55em; font-weight: 500; color: var(--muted); }
.ws-quiz__card--start p { margin: 0 0 14px; line-height: 1.9; }
/* station 1 copy (2026-10-20) */
.ws-s1 { max-width: 760px; }
.ws-s1 p { margin: 0 0 12px; line-height: 1.9; color: var(--ink-2); }
.ws-s1 .lede { color: var(--ink); }
.ws-s1__l { margin: 0 0 14px; padding-inline-start: 22px; display: grid; gap: 6px; line-height: 1.9; color: var(--ink-2); }

/* «استكشف» 3D (2026-10-20): the shared viewer in an iframe that fills the stage box (no inner scroll, no gaps) */
.ws-stage.ws-3d { padding: 0; background: #F3F0EA; }
.ws-3d__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #F3F0EA; }
.ws-ph--3d { border-style: solid; }
/* «تعرّف» guided 3D (proof of concept, 2026-10-20): a little shorter than the standard stage so the play/pause bar is in view at 900 px */
.ws-studio .stage.ws-3d--guided { height: calc(100vh - 330px); min-height: 420px; }
@media (max-width: 1000px) { .ws-studio .stage.ws-3d--guided { height: 56vh; min-height: 340px; } }

/* «تحقّق من فهمك» assessment mode (2026-10-20 22:40): one shared state for the large panel on every point of every station.
   The learning media is not rendered; the countdown ring is the focus. Atlas tokens only (jac = Hejazi Coastal accent). */
.ws-studio .stage.ws-assess { display: grid; place-items: center; padding: 32px 24px; border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--jac-soft) 55%, transparent), transparent 70%),
    var(--surface); }
/* restrained lattice band (roshan screen rhythm) along the top and bottom edges */
.ws-assess::before, .ws-assess::after { content: ""; position: absolute; inset-inline: 0; height: 44px; pointer-events: none; opacity: .55;
  background:
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--jac) 22%, transparent) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(-45deg, color-mix(in srgb, var(--jac) 22%, transparent) 0 1px, transparent 1px 14px); }
.ws-assess::before { top: 0; -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
.ws-assess::after { bottom: 0; -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent); }
.ws-assess__in-wrap { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 6px; max-width: 420px; }
.ws-assess__id { width: 46px; height: 46px; margin-bottom: 6px; display: grid; place-items: center; }
.ws-assess__id img, .ws-assess__id svg { max-width: 100%; max-height: 100%; }
.ws-assess__eyebrow { margin: 0; font-size: 13px; color: var(--muted); }
.ws-assess__t { margin: 2px 0 0; font-size: 26px; font-weight: 700; color: var(--jac-ink); }
.ws-assess__p { margin: 0 0 18px; font-size: 15px; color: var(--ink-2); }
.ws-assess__clock { position: relative; width: 220px; height: 220px; display: grid; place-items: center; }
.ws-assess__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ws-assess__track { fill: none; stroke: var(--line); stroke-width: 5; }
.ws-assess__arc { fill: none; stroke: var(--jac-ink); stroke-width: 5; stroke-linecap: round;
  stroke-dashoffset: calc(var(--c) * (1 - var(--frac, 1))); transition: stroke-dashoffset .25s linear, stroke .3s; }
.ws-assess__in { position: relative; display: grid; justify-items: center; gap: 4px; }
.ws-assess__k { font-size: 13px; color: var(--muted); }
.ws-assess__v { font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: .03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.ws-assess__clock.is-low .ws-assess__arc { stroke: var(--jac); }
.ws-assess__clock.is-low .ws-assess__v { color: var(--jac-ink); }
.ws-assess__hint { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.ws-assess__done { display: grid; justify-items: center; gap: 6px; padding: 18px 26px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); }
.ws-assess__mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 700; color: #fff; background: var(--muted); }
.ws-assess__done.is-right .ws-assess__mark { background: var(--green); }
.ws-assess__done.is-wrong .ws-assess__mark { background: var(--jac-ink); }
.ws-assess__done strong { font-size: 17px; }
.ws-assess__done span:last-child { font-size: 13.5px; color: var(--muted); }
/* small screens: a compact band above the question (no tall stage) */
@media (max-width: 1000px) {
  .ws-studio .stage.ws-assess { height: auto; min-height: 0; padding: 16px 16px; }
  .ws-assess::before, .ws-assess::after { height: 24px; }
  .ws-assess__in-wrap { grid-template-columns: auto 1fr; grid-template-areas: "clock t" "clock p" "clock e"; justify-items: start; text-align: start; column-gap: 16px; row-gap: 2px; max-width: none; width: 100%; align-items: center; }
  .ws-assess__id, .ws-assess__hint { display: none; }
  .ws-assess__eyebrow { grid-area: e; font-size: 12px; }
  .ws-assess__t { grid-area: t; font-size: 20px; margin: 0; }
  .ws-assess__p { grid-area: p; margin: 0; font-size: 14px; }
  .ws-assess__clock, .ws-assess__done { grid-area: clock; }
  .ws-assess__clock { width: 112px; height: 112px; }
  .ws-assess__v { font-size: 26px; }
  .ws-assess__k { font-size: 11px; }
  .ws-assess__done { padding: 10px 14px; }
  .ws-assess__mark { width: 36px; height: 36px; font-size: 18px; }
}

/* motion-graphic points (2026-10-21): the final video fills the stage box */
.ws-studio .stage.ws-video { padding: 0; background: #1d1a17; }
.ws-video__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: #1d1a17; }

/* ---- video framing fix (2026-10-21): no player letterbox on any workshop video ----
   The box takes the video's own shape (--ws-ar / --ws-arn set from the file's real size in workshop.js; 16 / 9 until then),
   so the whole picture shows with no crop, stretch or container bars. Desktop: capped by the screen height and centred;
   tablet / mobile: full column width. Controls, audio, seeking and steps are unchanged. */
.ws-studio .stage.ws-video { height: auto; min-height: 0; max-height: none; aspect-ratio: var(--ws-ar, 16 / 9);
  width: min(100%, max(420px, calc((100vh - 300px) * var(--ws-arn, 1.7778)))); margin-inline: auto; background: #000; }
@supports (height: 100svh) { .ws-studio .stage.ws-video { width: min(100%, max(420px, calc((100svh - 300px) * var(--ws-arn, 1.7778)))); } }
.ws-studio .stage.ws-video .ws-video__v { background: #000; }
@media (max-width: 1000px) { .ws-studio .stage.ws-video { width: 100%; height: auto; min-height: 0; } }
.ws-player .ws-player__screen { aspect-ratio: var(--ws-ar, 16 / 9); }

/* ---- station 3 overview cover (2026-10-21): official Hejazi Coastal style image on its own background colour (#b095c0, sampled
   from the file) so the picture shows whole; title band above it. Subtle entrance: fade + 10–14 px rise; off for reduced motion. */
.ws-studio .stage.ws-cover { padding: 0; overflow: hidden; display: flex; flex-direction: column; background: #b095c0; }
.ws-cover__text { flex: none; padding: clamp(18px, 3.2vw, 34px) clamp(18px, 3.2vw, 36px) 6px; color: #2a1f33; text-align: start; }
.ws-cover__eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #3d2d4a; opacity: .9; }
.ws-cover__t { margin: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.35; font-weight: 700; color: #241a2d; }
.ws-cover__sub { margin: 8px 0 0; font-size: 14.5px; color: #3a2b46; }
.ws-cover__sub::before { content: ""; display: block; width: 44px; height: 3px; border-radius: 2px; background: #fff; opacity: .85; margin: 0 0 10px; }
.ws-cover__fig { flex: 1 1 auto; min-height: 0; margin: 0; display: flex; align-items: flex-end; justify-content: left; } /* the building runs off the image's left edge: keep that edge on the panel edge */
.ws-cover__img { display: block; width: auto; height: auto; max-width: min(100%, 820px); max-height: 100%; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
  .ws-cover__text { animation: ws-cover-in .6s cubic-bezier(.2, .7, .2, 1) .08s both; }
  .ws-cover__img { animation: ws-cover-in .8s cubic-bezier(.2, .7, .2, 1) .18s both; --ws-rise: 14px; }
}
@keyframes ws-cover-in { from { opacity: 0; transform: translateY(var(--ws-rise, 10px)); } to { opacity: 1; transform: none; } }

/* ---- station 4 (Traditional) overview cover (2026-10-21, v3): same family as the Context cover — lilac title band, the official
   Traditional render (Low-Rise Handbook p.21; file unaltered) filling the lower part edge to edge, framed by CSS on the main
   crenellated block and its roshans. The official white roshan symbol straddles the seam (lilac above, sky below) the way the white
   roshan meets the building on the Context cover; the source credit sits in a small plaster-beige tab (#e0dad5, sampled from
   the render's sunlit lime plaster; text #2a1f33, contrast 11.3:1) at the image's bottom corner.
   No gradients, overlays or invented shapes. */
.ws-studio .stage.ws-cover--photo { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.ws-cover--photo .ws-cover__text { grid-column: 1; grid-row: 1; padding-bottom: clamp(18px, 2.4vw, 28px); }
.ws-cover--photo .ws-cover__fig { grid-column: 1; grid-row: 2; position: relative; padding: 0; display: block; min-height: 0; overflow: hidden; }
.ws-cover--photo .ws-cover__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  object-fit: cover; object-position: 54% 62%; scale: 1.24; transform-origin: 54% 58%; }
/* short, wide bands (laptops): no zoom — the frame runs exactly from the roofline to the street */
@media (min-width: 1001px) and (max-height: 820px) { .ws-cover--photo .ws-cover__img { object-position: 54% 58%; scale: 1; } }
.ws-cover--photo .ws-cover__sym { grid-column: 1; grid-row: 2; justify-self: end; align-self: start; position: relative; z-index: 2;
  width: clamp(78px, 8.4vw, 118px); height: auto; margin-inline-end: clamp(26px, 4.4vw, 56px); margin-top: calc(clamp(78px, 8.4vw, 118px) * -0.74); }
.ws-cover--photo .ws-cover__cap { position: absolute; bottom: 0; inset-inline-end: 0; inset-inline-start: auto; z-index: 2; margin: 0; max-width: min(72%, 520px);
  padding: 8px 16px 10px clamp(16px, 2.6vw, 24px); background: #e0dad5; border-start-start-radius: 12px;
  font-size: 12px; line-height: 1.6; color: #2a1f33; opacity: 1; text-align: start; }
@media (max-width: 640px) {
  .ws-cover--photo .ws-cover__img { object-position: 55% 40%; scale: 1.08; transform-origin: 55% 40%; }
  .ws-cover--photo .ws-cover__sym { width: 58px; margin-inline-end: 20px; margin-top: calc(58px * -0.74); }
  .ws-cover--photo .ws-cover__cap { max-width: 88%; font-size: 11.5px; padding: 7px 12px 8px 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .ws-cover--photo .ws-cover__img { animation: ws-cover-photo .9s cubic-bezier(.2, .7, .2, 1) .12s both; }
  .ws-cover--photo .ws-cover__sym { animation: ws-cover-in .7s cubic-bezier(.2, .7, .2, 1) .3s both; --ws-rise: 8px; }
  .ws-cover--photo .ws-cover__cap { animation: ws-cover-fade .6s ease .5s both; }
}
@keyframes ws-cover-photo { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes ws-cover-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---- station 11 learner certificate = non-issued sample (2026-10-22): calm notice above the card + a more visible
   non-official line on the card. Card design, typography, colours and layout unchanged. */
.ws-cert__notice { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #f4f0f7; border-inline-start: 3px solid #b095c0;
  font-size: 14px; line-height: 1.7; font-weight: 500; color: #3a2b46; }
.ws-cert__proto { display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: 999px; border: 1px solid #cdbfd8; background: #f8f5fa;
  font-size: 13px; font-weight: 600; color: #4a3a57; opacity: 1; }
