/* The academy's one stylesheet (docs/academy/academy-spec.md §2): the NDMX identity,
   IBM Plex Sans and IBM Plex Sans Arabic self-hosted, logical properties throughout so
   the Arabic pages mirror without a second sheet. No inline style anywhere: the strict
   content policy refuses it. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap;
  src: url("/shared/fonts/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap;
  src: url("/shared/fonts/IBMPlexSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap;
  src: url("/shared/fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap;
  src: url("/shared/fonts/IBMPlexSansArabic-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 500; font-display: swap;
  src: url("/shared/fonts/IBMPlexSansArabic-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap;
  src: url("/shared/fonts/IBMPlexSansArabic-SemiBold.woff2") format("woff2"); }

:root {
  --navy: #0b2a57;
  --royal: #135393;
  --ink: #0e1726;
  --muted: #4a5a70;
  --paper: #f6f8fb;
  --line: #dce5ee;
  --tint: #eaf1f8;
  --ok: #23734f;
  --amber: #9a6508;
  --white: #ffffff;
  --deep: #071a36;
  --soft-line: #b5cfe1;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink);
  font-family: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  font-size: 16px; line-height: 1.5;
}
[lang="ar"] body, body:lang(ar) { font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif; }
a { color: var(--royal); }
a:hover { color: var(--navy); }
img { max-width: 100%; }

.skip { position: absolute; inset-inline-start: -9999px; top: 8px; background: var(--white);
  padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { inset-inline-start: 8px; }

/* --- the bar (design 1's header) ------------------------------------------------ */
.bar {
  min-height: 72px; display: flex; align-items: center; gap: 28px; padding: 0 48px;
  background: var(--white); border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.bar-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.bar-logo { height: 30px; display: block; }
.bar-academy { font-size: 15px; font-weight: 600; color: var(--royal);
  padding-inline-start: 16px; border-inline-start: 1px solid var(--line); }
.bar-nav { display: flex; gap: 28px; margin-inline-start: 16px; align-self: stretch; font-size: 15px; }
.bar-nav a { display: flex; align-items: center; color: var(--muted); text-decoration: none;
  border-bottom: 3px solid transparent; padding-top: 3px; }
.bar-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--royal); }
.bar-end { margin-inline-start: auto; display: flex; align-items: center; gap: 18px; }
.bar-icon { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: 20px; color: var(--muted); }
.bar-icon:hover { background: var(--tint); }

.lang { margin: 0; }
.lang-button { height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--white); font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.lang-button:hover { border-color: var(--soft-line); }
.lang-on { color: var(--ink); font-weight: 600; }

.person { display: flex; align-items: center; gap: 10px; }
.person-initials { width: 36px; height: 36px; border-radius: 18px; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.person-text { display: flex; flex-direction: column; line-height: 1.25; }
.person-name { font-size: 14px; font-weight: 600; }
.person-where { font-size: 12px; color: var(--muted); }
.person-out { margin: 0; }
.link-button { background: none; border: 0; padding: 4px; font: inherit; font-size: 13px;
  color: var(--royal); cursor: pointer; text-decoration: underline; }

/* --- the page ------------------------------------------------------------------- */
.main { padding: 36px 48px; display: flex; flex-direction: column; gap: 28px; max-width: 1440px; }
/* A table of people uses the whole screen; reading pages keep the 1440 px measure. */
.main--wide { max-width: none; }
.main--narrow { max-width: 720px; margin: 64px auto; padding: 0 24px; gap: 16px; }
.main--split { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 48px; align-items: start; }
.main--lesson { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.h1 { margin: 0; font-size: 30px; font-weight: 600; line-height: 1.25; }
.h2 { margin: 0; font-size: 20px; font-weight: 600; }
.lead { margin: 0; font-size: 16px; color: var(--muted); max-width: 640px; }
.meta { margin: 0; font-size: 14px; color: var(--muted); }
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--royal); }
.aside-note { margin: 0; font-size: 14px; color: var(--muted); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.head-row > div { display: flex; flex-direction: column; gap: 6px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
[dir="rtl"] .eyebrow, [dir="rtl"] .kicker { letter-spacing: 0; }

.button { height: 44px; padding: 0 22px; border-radius: 8px; background: var(--royal); color: var(--white);
  font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; border: 0; font-family: inherit; cursor: pointer; }
.button:hover { background: var(--navy); color: var(--white); }
.button--quiet { background: var(--white); color: var(--royal); border: 1px solid var(--soft-line); }
.button--quiet:hover { background: var(--tint); color: var(--navy); }
.button--wide { width: 100%; justify-content: center; }
/* A reset (§1.15, A6) throws a practice company away: the one button drawn in the warning
   colour, on white so it never reads as the page's main action. */
.button--danger { background: var(--white); color: #a8413a; border: 1px solid #e3b9b4; }
.button--danger:hover { background: #fbe8e6; color: #8a2f28; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 2px; }

/* --- posters: drawn, until the recordings bring their own frames ------------------ */
.poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy), var(--royal)); overflow: hidden; }
.poster-mark { position: absolute; inset-inline-end: 14px; bottom: 12px; width: 40px; opacity: 0.35; }
.poster picture { display: block; width: 100%; height: 100%; }
.poster-still { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.poster.has-still { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.poster--welcome { background: linear-gradient(135deg, #0b2a57, #2d6fb0); }
.poster--from-old-ndm { background: linear-gradient(135deg, #3f2a05, #9a6508); }
.poster--booking-desk { background: linear-gradient(135deg, #071a36, #135393); }
.poster--master-control { background: linear-gradient(135deg, #0e1726, #34495e); }
.poster--finance { background: linear-gradient(135deg, #0f3d2a, #23734f); }
.poster--reports-documents { background: linear-gradient(135deg, #1f2f4d, #4a6fa5); }
.poster--administrator { background: linear-gradient(135deg, #2a2346, #5a4f8f); }
.poster--large { border-radius: 8px; }
.poster--thumb { width: 160px; flex-shrink: 0; border-radius: 6px; }
.poster--thumb .poster-mark { width: 24px; inset-inline-end: 8px; bottom: 6px; }

/* --- My learning ----------------------------------------------------------------- */
.hero { display: flex; gap: 32px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; }
.hero-poster { position: relative; width: 480px; max-width: 100%; flex-shrink: 0; display: block; }
.play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 36px;
  background: rgba(11, 42, 87, 0.88); display: flex; align-items: center; justify-content: center; }
.hero-text { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.hero-text p { margin: 0; }
.hero-title { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.25; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card:hover { border-color: var(--soft-line); color: var(--ink); }
.card .poster { aspect-ratio: auto; height: 150px; }
.card-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.card-title { font-size: 17px; font-weight: 600; }
.card-meta { font-size: 13px; color: var(--muted); }
.kicker { font-size: 12px; font-weight: 600; color: var(--royal); letter-spacing: 0.8px; text-transform: uppercase; }
.kicker--amber { color: var(--amber); }
.kicker--muted { color: var(--muted); }

/* --- a track --------------------------------------------------------------------- */
.track-head { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; }
.track-head p { margin: 0; }
.stats { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.stats strong { font-size: 22px; color: var(--ink); font-weight: 600; margin-inline-end: 4px; }
.lessons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lesson-row { display: flex; gap: 20px; align-items: center; padding: 14px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.lesson-row:hover { border-color: var(--soft-line); color: var(--ink); }
.lesson-row-text { display: flex; flex-direction: column; gap: 4px; }
.lesson-row-meta { font-size: 13px; color: var(--muted); }
.lesson-row-title { font-size: 17px; font-weight: 600; }
.lesson-row-summary { font-size: 14px; color: var(--muted); }

/* --- a lesson -------------------------------------------------------------------- */
.lesson-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lesson-main p { margin: 0; }
.crumb { font-size: 14px; color: var(--muted); }
.player { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--deep);
  container-type: inline-size; }
.player .poster { aspect-ratio: 16 / 9; }
.player-note { position: absolute; inset: auto 0 0 0; padding: 20px 24px; color: var(--white);
  background: linear-gradient(to top, rgba(7, 26, 54, 0.92), rgba(7, 26, 54, 0)); }
.player-note p { margin: 0; }
.player-note-title { font-size: 18px; font-weight: 600; }
.player-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--deep); }
.player:fullscreen { display: flex; flex-direction: column; justify-content: center; border-radius: 0; }
.player:fullscreen .player-video { height: 100%; aspect-ratio: auto; }
/* The captions (B1, J): centred, at most 86% of the picture and about 42 characters a
   line, 7% above its bottom, and lifted above the controls while they show. */
.player-cc { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); margin: 0;
  width: max-content; max-width: min(86%, 42em); padding: 4px 12px; border-radius: 4px;
  text-align: center; background: rgba(7, 26, 54, 0.82); color: var(--white); line-height: 1.35;
  pointer-events: none; font-size: clamp(13px, 2.2cqw, 34px); white-space: pre-line;
  transition: bottom 0.2s; }
.player:not(.is-playing) .player-cc,
.player.is-playing:hover .player-cc,
.player.is-playing:focus-within .player-cc { bottom: calc(7% + 64px); }
.player-big { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 36px;
  border: 0; background: rgba(11, 42, 87, 0.88); display: flex; align-items: center; justify-content: center;
  cursor: pointer; }
.player.is-playing .player-big { display: none; }
.player-toast { position: absolute; top: 14px; inset-inline-start: 14px; margin: 0; padding: 6px 12px;
  border-radius: 6px; background: rgba(7, 26, 54, 0.88); color: var(--white); font-size: 14px; }
.player-bar { position: absolute; inset: auto 0 0 0; padding: 18px 16px 10px; color: var(--white);
  background: linear-gradient(to top, rgba(7, 26, 54, 0.9), rgba(7, 26, 54, 0)); display: flex;
  flex-direction: column; gap: 8px; opacity: 1; transition: opacity 0.2s; }
.player.is-playing:not(:hover):not(:focus-within) .player-bar { opacity: 0; }
.player-seek { position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.35);
  cursor: pointer; touch-action: none; }
.player-seek:hover { height: 8px; margin-top: -2px; }
.player-seek-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; background: #e0a526; }
.player-mark { position: absolute; top: -2px; bottom: -2px; width: 3px; margin-left: -1px;
  background: var(--white); border-radius: 1px; display: none; }
.player-mark.is-placed { display: block; }
.player-row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.player-sp { flex: 1; }
.player-time { font-variant-numeric: tabular-nums; }
.player-chapter { color: #d2e2f2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-btn { height: 32px; min-width: 32px; padding: 0 8px; border: 0; border-radius: 6px;
  background: transparent; color: var(--white); font: inherit; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.player-btn:hover { background: rgba(255, 255, 255, 0.16); }
.player-text[aria-pressed="true"] { background: rgba(255, 255, 255, 0.24); }
.player-btn .icon-pause { display: none; }
.player.is-playing .player-btn .icon-pause { display: block; }
.player.is-playing .player-btn .icon-play { display: none; }
/* Volume (VO): the speaker's icon follows the level; the slider slides open beside it on
   hover, on focus and while dragging, and stays open on a touch screen (no hover there).
   It fills left to right in both languages, as the seek bar does; `--vol` is set by the
   script through the style object, which the content policy allows. */
.player-vol { display: inline-flex; align-items: center; }
.player-vol .player-btn svg { display: none; }
.player-vol[data-level="high"] .icon-vol-high,
.player-vol[data-level="low"] .icon-vol-low,
.player-vol[data-level="off"] .icon-vol-off,
.player-vol:not([data-level]) .icon-vol-high { display: block; }
.player-vol-range { --vol: 100%; width: 0; height: 32px; margin: 0; padding: 0; opacity: 0;
  background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: width 0.2s, opacity 0.2s, margin 0.2s; }
.player-vol:hover .player-vol-range, .player-vol:focus-within .player-vol-range,
.player-vol.is-dragging .player-vol-range { width: 64px; opacity: 1; margin-inline: 4px 6px; }
@media (hover: none) {
  .player-vol-range { width: 64px; opacity: 1; margin-inline: 4px 6px; }
}
.player-vol-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--white) var(--vol), rgba(255, 255, 255, 0.35) var(--vol)); }
.player-vol-range::-moz-range-track { height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--white) var(--vol), rgba(255, 255, 255, 0.35) var(--vol)); }
.player-vol-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px;
  height: 12px; margin-top: -4px; border: 0; border-radius: 50%; background: var(--white); }
.player-vol-range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%;
  background: var(--white); }

.chapters { display: flex; flex-direction: column; gap: 10px; }
.chapter-list { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; }
.chapter-list li + li { border-top: 1px solid var(--line); }
.chapter { width: 100%; display: flex; gap: 16px; align-items: baseline; padding: 12px 16px; border: 0;
  background: transparent; font: inherit; color: var(--ink); text-align: start; cursor: pointer; }
.chapter:hover { background: var(--tint); }
.chapter[aria-current="true"] { background: var(--tint); font-weight: 600; }
.chapter-at { color: var(--royal); font-variant-numeric: tabular-nums; min-width: 3.5em; }
.lesson-aside { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.lesson-aside p { margin: 0; }
.aside-title { font-size: 17px; font-weight: 600; }
.aside-meta { font-size: 13px; color: var(--muted); }
.aside-sub { margin-top: 8px !important; font-size: 13px; font-weight: 600; color: var(--muted); }
/* The practice company's note (§1.15, A6): under a track's head and at a lesson aside's
   foot, on the tint so it reads as an aside. */
.practice-note { margin-top: 16px; padding: 14px; border-radius: 8px; background: var(--tint); }
.practice-note .button { margin-top: 4px; }
.aside-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.aside-list a { text-decoration: none; display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.aside-mark { display: flex; flex-shrink: 0; color: #96bbd4; }
.aside-list a.is-done .aside-mark { color: var(--ok); }
.aside-list a[aria-current="page"] .aside-mark { color: var(--royal); }
.aside-list a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* --- progress (Round A3) ---------------------------------------------------------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; margin: -1px; padding: 0; border: 0; }
/* A bar drawn by the element itself, so the page carries no width of its own. */
.meter { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px;
  border: 0; border-radius: 3px; background: var(--tint); color: var(--royal); overflow: hidden; }
.meter::-webkit-progress-bar { background: var(--tint); border-radius: 3px; }
.meter::-webkit-progress-value { background: var(--royal); border-radius: 3px; }
.meter::-moz-progress-bar { background: var(--royal); border-radius: 3px; }
.card-status { font-size: 13px; color: var(--muted); }
.card-status.is-done { color: var(--ok); font-weight: 600; }
.kicker--ok { color: var(--ok); }
.badge { margin-inline-start: auto; flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--royal);
  white-space: nowrap; }
.badge--done { color: var(--ok); }
.badge--amber { color: var(--amber); }
.badge--muted { color: var(--muted); font-weight: 500; }
.hero--done { padding: 24px 28px; }
.lesson-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* --- the quiz (design 5) ------------------------------------------------------------ */
.main--quiz { align-items: center; }
.quiz { width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.quiz-head { display: flex; flex-direction: column; gap: 8px; }
.quiz-head p { margin: 0; }
.quiz-steps { display: flex; align-items: center; gap: 12px; }
.quiz-steps .meter { flex-grow: 1; }
.quiz-steps .meta { white-space: nowrap; }
.quiz-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.quiz-question { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.35; }
.quiz-form { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.quiz-answers { border: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.quiz-answer { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 18px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 16px; }
label.quiz-answer { cursor: pointer; }
label.quiz-answer:hover { border-color: var(--soft-line); background: var(--paper); }
.quiz-answer input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--royal); }
.quiz-answer.is-right { border: 2px solid var(--ok); background: #e6f2ec; }
.quiz-answer.is-wrong { border: 2px solid var(--amber); background: #fbf1e1; }
.quiz-dot { width: 18px; height: 18px; flex-shrink: 0; border-radius: 9px; border: 2px solid var(--soft-line); }
.quiz-dot.is-chosen { border: 5px solid var(--ink); }
.quiz-verdict { margin-inline-start: auto; font-size: 14px; font-weight: 600; }
.is-right .quiz-verdict { color: var(--ok); }
.is-wrong .quiz-verdict { color: var(--amber); }
.quiz-explain { margin: 0; padding: 14px 18px; border-radius: 8px; background: var(--paper); font-size: 15px;
  line-height: 1.55; color: #33435a; }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.quiz-foot form { margin: 0; }
.quiz-outcome { margin: 0; font-size: 16px; font-weight: 600; }
.quiz-outcome.is-right { color: var(--ok); }
.quiz-outcome.is-wrong { color: var(--amber); }
.quiz-history { margin: 0; padding: 0; list-style: none; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); }
.quiz-history li { display: flex; gap: 16px; align-items: baseline; padding: 12px 18px; }
.quiz-history li + li { border-top: 1px solid var(--line); }

/* --- team progress (design 6) ------------------------------------------------------- */
.head-row > .team-tools { display: flex; flex-direction: row; gap: 10px; align-items: center; flex-wrap: wrap; }
.team-filter { display: flex; gap: 8px; align-items: center; margin: 0; }
.team-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.select { height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit;
  font-size: 14px; background: var(--white); color: var(--ink); max-width: 220px; }
.team-tools .button { height: 40px; font-size: 14px; padding: 0 16px; }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.figure { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 18px;
  display: flex; flex-direction: column; gap: 4px; }
.figure-label { font-size: 14px; color: var(--muted); }
.figure-value { font-size: 30px; font-weight: 600; }
.figure-value--amber { color: var(--amber); }
.figure-unit { font-size: 16px; color: var(--muted); font-weight: 400; }
.table-wrap { position: relative; overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.team { width: 100%; border-collapse: collapse; font-size: 15px; }
.team th, .team td { padding: 14px 18px; text-align: start; border-bottom: 1px solid #e6ecf2; white-space: nowrap; }
.team thead th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px;
  font-weight: 600; border-bottom-color: var(--line); }
[dir="rtl"] .team thead th { letter-spacing: 0; }
.team tbody tr:last-child th, .team tbody tr:last-child td { border-bottom: 0; }
.team-name { font-weight: 600; }
.team .is-done { color: var(--ok); font-weight: 600; }
.team .is-muted { color: var(--muted); }

/* --- settings (design 8) ------------------------------------------------------------ */
.main--settings { max-width: 880px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.panel-head { display: flex; flex-direction: column; gap: 6px; }
.panel-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.panel-form--row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.panel-foot { margin: 6px 0 0; }
.choice { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.choice:hover { border-color: var(--soft-line); }
.choice.is-fixed { cursor: default; background: var(--paper); }
.choice input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--royal); }
.choice-label { font-weight: 600; }
.choice-note { margin-inline-start: auto; font-size: 13px; color: var(--muted); text-align: end; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-form { margin: 0; }
.chip { height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--soft-line);
  background: var(--white); color: var(--royal); font: inherit; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.chip:hover { background: var(--tint); }
.chip--own { background: var(--tint); border-color: var(--tint); color: var(--navy); cursor: default; }
.chip--added { background: var(--royal); border-color: var(--royal); color: var(--white); }
.chip--added:hover { background: var(--navy); }
.setting { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.setting .select { max-width: none; min-width: 200px; font-weight: 400; }

/* --- sign in (design 7) ---------------------------------------------------------- */
.signin { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.signin-hero { background: var(--navy); color: var(--white); padding: 56px 64px; display: flex;
  flex-direction: column; gap: 48px; }
.signin-logo { height: 34px; width: auto; align-self: flex-start; }
.signin-hero-text { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.signin-hero-text p { margin: 0; }
.signin-academy { font-size: 15px; font-weight: 600; color: #9cc3ea; }
.signin-hero-title { font-size: 34px; font-weight: 600; line-height: 1.25; }
.signin-hero-lead { font-size: 17px; color: #d2e2f2; }
.signin-side { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.signin-box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 22px; }
.signin-box p { margin: 0; }
.signin-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 14px; font-weight: 600; }
.field input { height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px;
  font: inherit; background: var(--white); color: var(--ink); }
.field input:focus { border-color: var(--royal); outline: none; box-shadow: 0 0 0 3px var(--tint); }
.field-hint { font-size: 13px; color: var(--muted); }
.field-error { color: #a4262c; font-size: 14px; font-weight: 500; }
.signin-lang { display: flex; justify-content: center; }
/* --- prospects (A7): the second half of the sign-in, the forms outside -------------- */
.h3 { margin: 0; font-size: 17px; font-weight: 600; }
.signin-part { display: flex; flex-direction: column; gap: 12px; padding-top: 22px;
  border-top: 1px solid var(--line); }
.signin-request .meta { margin: 0; }
.small-link { font-size: 14px; align-self: flex-start; }
.notice { padding: 12px 14px; border-radius: 8px; background: var(--tint); color: var(--navy);
  font-size: 14px; font-weight: 500; }
.select--field { height: 44px; width: 100%; min-width: 0; max-width: none; font-size: 16px;
  padding: 0 12px; }
.input { height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 14px; font-weight: 400; background: var(--white); color: var(--ink);
  min-width: 220px; }
.input:focus, .select--field:focus { border-color: var(--royal); outline: none;
  box-shadow: 0 0 0 3px var(--tint); }
.button[disabled] { opacity: 0.5; cursor: not-allowed; }
.team .badge { margin-inline-start: 8px; }
.people-actions { display: flex; gap: 16px; justify-content: flex-end; }
.plain-logo { height: 30px; width: auto; align-self: flex-start; margin-bottom: 16px; }

/* --- narrow screens --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main--lesson, .main--split { grid-template-columns: 1fr; }
  .track-head { position: static; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .bar { padding: 12px 16px; gap: 12px; }
  .bar-nav { margin-inline-start: 0; gap: 18px; order: 3; width: 100%; min-height: 40px; }
  .person-text, .bar-academy { display: none; }
  .main { padding: 24px 16px; }
  .hero { flex-direction: column; padding: 16px; }
  .hero-poster { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .signin { grid-template-columns: minmax(0, 1fr); }
  .signin-hero { padding: 32px 16px; gap: 24px; }
  .poster--thumb { width: 96px; }
  .player-chapter { display: none; }
  .player-row { gap: 4px; }
  .quiz-card { padding: 20px; }
  .quiz-question { font-size: 20px; }
  .lesson-row { flex-wrap: wrap; }
  .badge { margin-inline-start: 0; }
  .choice { flex-wrap: wrap; }
  .choice-note { margin-inline-start: 32px; text-align: start; }
  .setting .select { min-width: 0; width: 100%; }
  .setting { width: 100%; }
  .input { min-width: 0; width: 100%; }
  .people-actions { justify-content: flex-start; }
}

/* A colleague's practice roles on People (§1.15, A6): ticks that wrap in their cell. */
.role-picks { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }

/* The practice company's waiting page (PW): a bar that moves without a figure (the
   register says only "being prepared"), the steps in progress together, and the notes
   for a slow or a failed preparation. Still for whoever asks for less motion. */
.practice-wait { max-width: 720px; }
.practice-bar { position: relative; height: 6px; border-radius: 3px; overflow: hidden; background: var(--tint); }
.practice-bar span { position: absolute; inset-block: 0; inset-inline-start: 0; width: 35%;
  border-radius: 3px; background: var(--royal); animation: practice-slide 1.6s ease-in-out infinite; }
[dir="rtl"] .practice-bar span { animation-name: practice-slide-rtl; }
@keyframes practice-slide { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
@keyframes practice-slide-rtl { from { transform: translateX(100%); } to { transform: translateX(-290%); } }
.practice-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.practice-steps li { position: relative; padding-inline-start: 28px; color: var(--muted); }
.practice-steps li::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 16px;
  height: 16px; box-sizing: border-box; border: 2px solid var(--line); border-radius: 50%; }
.practice-steps li.is-active { color: var(--ink); }
.practice-steps li.is-active::before { border-color: var(--royal); border-top-color: transparent;
  animation: practice-turn 1s linear infinite; }
.practice-steps li.is-done { color: var(--ink); }
.practice-steps li.is-done::before { border-color: var(--ok); background: var(--ok); }
@keyframes practice-turn { to { transform: rotate(360deg); } }
.practice-note-box { display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 14px 16px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); }
.practice-note-box[hidden], .practice-bar[hidden], .practice-steps[hidden] { display: none; }
.practice-note-box form { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .practice-bar span { animation: none; width: 100%; opacity: 0.45; }
  .practice-steps li.is-active::before { animation: none; border-top-color: var(--royal); }
}

/* --- the end card (Round UN) ------------------------------------------------------ */
/* Over the picture when a lesson's video ends: what was done (and the quiz, first, when
   the lesson has one), then the next lesson with a gold ring sweeping round its still
   while the countdown runs. The controls stay above it, so a seek or a play is still
   there to stop the count. Its size follows the player (a container), not the window. */
.player.has-upnext .player-big, .player.has-upnext .player-cc { display: none; }
.player-bar { z-index: 3; }
.upnext { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  justify-content: center; gap: clamp(12px, 3cqw, 24px); padding: 20px clamp(16px, 6cqw, 56px) 76px;
  background: rgba(7, 26, 54, 0.93); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--white); outline: none; }
.upnext[hidden] { display: none; }
.upnext:focus-visible { box-shadow: inset 0 0 0 3px #e0a526; }
.upnext p { margin: 0; }
.upnext-done { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px; padding-bottom: clamp(12px, 3cqw, 22px); border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.upnext-title { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(16px, 2.6cqw, 22px);
  font-weight: 600; }
.upnext-check { color: #5fd39a; flex-shrink: 0; }
.upnext-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.upnext-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.08);
  color: var(--white); font: inherit; font-size: 15px; font-weight: 500; text-decoration: none;
  cursor: pointer; white-space: nowrap; }
.upnext-btn:hover { background: rgba(255, 255, 255, 0.18); color: var(--white); }
.upnext-btn--main { border-color: var(--white); background: var(--white); color: var(--navy); }
.upnext-btn--main:hover { background: var(--tint); color: var(--navy); }
.upnext-btn--quiet { border-color: transparent; background: transparent; color: #d2e2f2; }
.upnext-btn:focus-visible { outline: 3px solid #e0a526; outline-offset: 2px; }
.upnext-next { display: flex; align-items: center; gap: clamp(14px, 3cqw, 24px); }
.upnext-thumb { position: relative; flex-shrink: 0; display: block; width: clamp(160px, 30cqw, 240px);
  border-radius: 8px; overflow: hidden; }
.upnext-thumb .poster--thumb { width: 100%; border-radius: 8px; }
.upnext-dial { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--white);
  background: rgba(7, 26, 54, 0.72); }
.upnext-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.upnext-ring circle { fill: none; stroke-width: 3.5; }
.upnext-ring-track { stroke: rgba(255, 255, 255, 0.22); }
/* The sweep: 132 is the ring's length (2π × 21); the seconds come from the card. */
.upnext-ring-run { stroke: #e0a526; stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; }
.upnext.is-counting .upnext-ring-run { animation: upnext-sweep var(--upnext-seconds, 8s) linear forwards; }
@keyframes upnext-sweep { from { stroke-dashoffset: 132; } to { stroke-dashoffset: 0; } }
.upnext:not(.is-counting) .upnext-ring { display: none; }
.upnext-glyph { position: relative; }
.upnext-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.upnext-label { font-size: 13px; color: #d2e2f2; }
.upnext-lesson { font-size: clamp(16px, 2.6cqw, 21px); font-weight: 600; line-height: 1.3; }
.upnext-meta { font-size: 14px; color: #d2e2f2; }
.upnext-count { font-size: 14px; color: #f0c45a; font-variant-numeric: tabular-nums; }
.upnext:not(.is-counting) .upnext-count { display: none; }
.upnext-text .upnext-actions, .upnext-end .upnext-actions { margin-top: 8px; }
.upnext-end { display: flex; flex-direction: column; gap: 4px; }
/* The card's parts come and go by `hidden`; each part's own display must not win. */
.upnext [hidden] { display: none !important; }
.upnext-title-done { display: inline-flex; align-items: center; gap: 10px; }
.upnext-stage { display: flex; flex-direction: column; gap: 4px; }
.upnext-ask .upnext-actions { margin-top: 8px; }
.upnext-score { font-size: 15px; font-weight: 600; color: #f0c45a; }
.upnext-score.is-passed { color: #5fd39a; }
/* The quiz in place: the quiz page's own white sheet, a size smaller, scrolling with the
   card when a question and its explanation are taller than the picture. */
.upnext.is-quizzing { justify-content: flex-start; overflow-y: auto; z-index: 4; padding-bottom: 20px; }
.upnext-quiz .quiz-card { color: var(--ink); padding: 16px 20px; gap: 14px; }
.upnext-quiz .quiz-question { font-size: 18px; }
.upnext-quiz .quiz-answer { min-height: 44px; padding: 6px 14px; }
.upnext-quiz .quiz-form { gap: 14px; }
.upnext-quiz .button { height: 40px; }
/* A small player (a phone, a narrow window): the card leaves the picture and sits under
   it, in the page's flow, with a smaller still; the controls rest while it shows. */
@container (max-width: 560px) {
  .upnext { position: static; padding: 14px 16px 16px; gap: 12px; background: var(--navy);
    -webkit-backdrop-filter: none; backdrop-filter: none; }
  .upnext.is-quizzing { overflow: visible; }
  .upnext:not([hidden]) ~ .player-bar { display: none; }
  .upnext-done { padding-bottom: 10px; }
  .upnext-next { align-items: flex-start; gap: 12px; }
  .upnext-thumb { width: 112px; border-radius: 6px; }
  .upnext-dial { width: 40px; height: 40px; }
  .upnext-glyph { width: 14px; height: 14px; }
  .upnext-lesson { font-size: 16px; }
  .upnext-btn { height: 34px; padding: 0 12px; font-size: 14px; }
  .upnext-title { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .upnext.is-counting .upnext-ring-run { animation: none; stroke-dashoffset: 0; opacity: 0.6; }
}

/* The voice line under the player (owner, 2026-10-10): quiet, as a caption is. */
.voice-note { font-size: 13px; color: var(--muted); }

/* The legal links: a quiet footer under the signed-in pages, a row in the sign-in box. */
.foot { display: flex; gap: 20px; flex-wrap: wrap; padding: 20px 48px 28px; font-size: 13px;
  border-top: 1px solid var(--line); }
.foot a, .signin-legal a { color: var(--muted); }
.foot a:hover, .signin-legal a:hover { color: var(--navy); }
.signin-legal { display: flex; justify-content: center; gap: 20px; font-size: 13px; }
.request-agree a { color: var(--royal); }

/* The privacy notice and the terms: one reading column. */
.main--legal { max-width: 800px; gap: 20px; }
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.legal { display: flex; flex-direction: column; gap: 14px; }
.legal p, .legal ul { margin: 0; }
.legal ul { padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal .h2 { margin-top: 14px; font-size: 18px; }
.legal-table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--white); }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: start;
  vertical-align: top; }
.legal-table th { background: var(--tint); font-weight: 600; }
@media (max-width: 768px) {
  .foot { padding: 16px; }
}
