/**
 * Learner pages.
 *
 * Everything is scoped under .tsr and prefixed tsr-, with its own reset, so
 * no theme's styles (an Elementor table grid, for one) can reach in. A
 * client's branding changes the custom properties below and nothing else.
 */

.tsr {
	--tsr-brand: var(--tsr-brand-color, #1f4bd8);
	--tsr-brand-strong: var(--tsr-brand-color-strong, #173aa9);
	--tsr-brand-soft: var(--tsr-brand-color-soft, #eaf0ff);
	--tsr-brand-ink: var(--tsr-brand-ink-color, #ffffff);
	/* The dark bands on My learning, the brand as it reads on them, and the brand as text on white. */
	--tsr-deep: var(--tsr-brand-color-deep, #0d1220);
	--tsr-glow: var(--tsr-brand-color-glow, #8aa4ff);
	--tsr-brand-text: var(--tsr-brand-color-text, #1f4bd8);

	--tsr-bg: #f5f6f8;
	--tsr-surface: #ffffff;
	--tsr-ink: #1a1e24;
	--tsr-muted: #5c6674;
	--tsr-faint: #8a93a0;
	--tsr-line: #e2e5ea;
	--tsr-line-strong: #cfd4db;

	--tsr-done: #177245;
	--tsr-done-soft: #e7f4ec;
	--tsr-warn: #9a5b0b;
	--tsr-warn-soft: #fcf1df;
	--tsr-danger: #b42318;
	--tsr-danger-soft: #fdeceb;

	--tsr-radius: 12px;
	--tsr-radius-sm: 8px;
	--tsr-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
	--tsr-shadow-lg: 0 10px 30px -12px rgba(16, 24, 40, .22);
	--tsr-font: var(--tsr-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	--tsr-sticky-top: var(--tsr-header-height, 0px);

	font-family: var(--tsr-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--tsr-ink);
	background: var(--tsr-bg);
	-webkit-font-smoothing: antialiased;
}

/* Scoped reset: nothing inherited from a theme changes layout or spacing. */
.tsr *,
.tsr *::before,
.tsr *::after { box-sizing: border-box; }
/* :where() keeps these at the lowest specificity, so any component class below wins. */
:where(.tsr) :where(h1, h2, h3, h4, p, ol, ul, figure) { margin: 0; padding: 0; }
:where(.tsr) :where(ol, ul) { list-style: none; }
:where(.tsr) a { color: var(--tsr-brand); text-decoration: none; }
:where(.tsr) a:hover { text-decoration: underline; }
:where(.tsr) button { font: inherit; }
:where(.tsr) img { max-width: 100%; height: auto; display: block; }
/* A component's own display (flex, grid) would otherwise override [hidden]. */
.tsr [hidden] { display: none !important; }
.tsr :focus-visible { outline: 3px solid var(--tsr-brand); outline-offset: 2px; border-radius: 4px; }
.tsr .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.tsr-icon { flex: 0 0 auto; vertical-align: middle; }

/* --- Layout -------------------------------------------------------------- */

.tsr-wrap { max-width: 1180px; margin: 0 auto; padding: 36px 24px 72px; }
.tsr-wrap--narrow { max-width: 640px; }

.tsr-title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.15rem); line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.tsr-lead { font-size: 1.1rem; color: var(--tsr-muted); margin-top: 10px; max-width: 64ch; }
.tsr-eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tsr-muted); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.tsr-section-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; }

.tsr-card { background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); box-shadow: var(--tsr-shadow); }

.tsr-banner { background: var(--tsr-warn-soft); color: var(--tsr-warn); padding: 10px 24px; font-size: .92rem; font-weight: 500; text-align: center; }

.tsr-back { display: inline-flex; align-items: center; gap: 6px; color: var(--tsr-muted); font-size: .92rem; font-weight: 500; margin-bottom: 20px; }
.tsr-back:hover { color: var(--tsr-ink); text-decoration: none; }

/* --- Buttons and chips --------------------------------------------------- */

.tsr-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 20px; border-radius: var(--tsr-radius-sm);
	border: 1px solid var(--tsr-line-strong); background: var(--tsr-surface); color: var(--tsr-ink);
	font-weight: 600; font-size: .98rem; line-height: 1.2; cursor: pointer;
	transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.tsr .tsr-button:hover { text-decoration: none; border-color: var(--tsr-faint); }
.tsr-button--primary { background: var(--tsr-brand); border-color: var(--tsr-brand); color: var(--tsr-brand-ink); }
.tsr .tsr-button--primary:hover { background: var(--tsr-brand-strong); border-color: var(--tsr-brand-strong); color: var(--tsr-brand-ink); }
.tsr-button--quiet { background: transparent; }
.tsr-button--block { width: 100%; }
.tsr-button[aria-disabled="true"], .tsr-button:disabled { opacity: .5; cursor: not-allowed; }

.tsr-chip {
	display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600;
	padding: 3px 10px; border-radius: 999px; background: #eef0f3; color: var(--tsr-muted);
}
.tsr-chip--active { background: var(--tsr-brand-soft); color: var(--tsr-brand-strong); }
.tsr-chip--done { background: var(--tsr-done-soft); color: var(--tsr-done); }
.tsr-chip--overdue { background: var(--tsr-danger-soft); color: var(--tsr-danger); }
.tsr-chip--locked { background: #eef0f3; color: var(--tsr-muted); }

/* --- Progress ------------------------------------------------------------ */

.tsr-progress { display: flex; flex-direction: column; gap: 6px; }
.tsr-progress__bar { height: 8px; border-radius: 999px; background: #e7eaee; overflow: hidden; }
.tsr-progress__bar span { display: block; height: 100%; border-radius: inherit; background: var(--tsr-brand); transition: width .4s ease; }
.tsr-progress__text { display: flex; gap: 8px; align-items: baseline; font-size: .88rem; color: var(--tsr-muted); }
.tsr-progress__text strong { color: var(--tsr-ink); font-size: .95rem; }

/* --- Dashboard ----------------------------------------------------------- */

.tsr-page-head { margin-bottom: 28px; }
.tsr-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; color: var(--tsr-muted); font-size: .95rem; }
.tsr-stats strong { color: var(--tsr-ink); font-size: 1.05rem; margin-right: 2px; }
.tsr-stats .is-overdue, .tsr-stats .is-overdue strong { color: var(--tsr-danger); }

.tsr-empty { text-align: center; padding: 64px 24px; color: var(--tsr-muted); background: var(--tsr-surface); border: 1px dashed var(--tsr-line-strong); border-radius: var(--tsr-radius); }
.tsr-empty .tsr-icon { width: 40px; height: 40px; color: var(--tsr-faint); margin-bottom: 12px; }
.tsr-empty h2 { color: var(--tsr-ink); font-size: 1.2rem; margin-bottom: 6px; }
.tsr-empty-inline { color: var(--tsr-muted); }

/* --- Course page --------------------------------------------------------- */

.tsr-course-hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; margin-bottom: 36px; }
.tsr-course-hero__text .tsr-chip { margin-bottom: 12px; }
.tsr-course-hero__due { display: flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--tsr-muted); font-weight: 500; }
.tsr-course-hero__due.is-overdue { color: var(--tsr-danger); }
.tsr-course-hero__renewal { margin-top: 14px; padding: 10px 14px; border-radius: var(--tsr-radius-sm); background: var(--tsr-brand-soft); color: var(--tsr-brand-strong); max-width: 64ch; }
.tsr-course-hero__side { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.tsr-course-hero__next { font-size: .88rem; color: var(--tsr-muted); }
.tsr-locked-note { display: flex; gap: 8px; color: var(--tsr-muted); }
.tsr-course-about { margin-bottom: 36px; max-width: 72ch; }

/* --- Outline ------------------------------------------------------------- */

.tsr-outline { display: flex; flex-direction: column; gap: 18px; }
.tsr-outline__section { display: flex; flex-direction: column; gap: 8px; }
.tsr-outline__heading { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tsr-muted); padding: 0 4px; }
.tsr-outline__section.is-completed .tsr-outline__heading .tsr-icon { color: var(--tsr-done); }
.tsr-steps { display: flex; flex-direction: column; gap: 8px; }

.tsr-step__link {
	display: flex; align-items: center; gap: 14px; padding: 14px 16px;
	background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius-sm);
	color: var(--tsr-ink);
}
.tsr .tsr-step a.tsr-step__link:hover { border-color: var(--tsr-brand); text-decoration: none; box-shadow: var(--tsr-shadow); }
.tsr-step__icon {
	flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 50%; background: var(--tsr-brand-soft); color: var(--tsr-brand);
}
.tsr-step__text { display: flex; flex-direction: column; min-width: 0; }
.tsr-step__title { font-weight: 600; line-height: 1.35; }
.tsr-step__meta, .tsr-step__reason { font-size: .85rem; color: var(--tsr-muted); }
.tsr-step__reason { color: var(--tsr-warn); }

.tsr-step.is-completed .tsr-step__icon { background: var(--tsr-done); color: #fff; }
.tsr-step.is-locked .tsr-step__link { background: #fafbfc; color: var(--tsr-muted); cursor: default; }
.tsr-step.is-locked .tsr-step__icon { background: #eceef1; color: var(--tsr-faint); }
.tsr-step.is-current .tsr-step__link { border-color: var(--tsr-brand); box-shadow: inset 3px 0 0 var(--tsr-brand); }

/* Compact outline, in the lesson sidebar. */
.tsr-outline--compact { gap: 14px; }
.tsr-outline--compact .tsr-steps { gap: 2px; }
.tsr-outline--compact .tsr-step__link { padding: 8px 10px; gap: 10px; border-color: transparent; background: transparent; font-size: .92rem; }
.tsr .tsr-outline--compact .tsr-step a.tsr-step__link:hover { background: var(--tsr-bg); box-shadow: none; border-color: transparent; }
.tsr-outline--compact .tsr-step__icon { width: 26px; height: 26px; }
.tsr-outline--compact .tsr-step__icon .tsr-icon { width: 16px; height: 16px; }
.tsr-outline--compact .tsr-step__title { font-weight: 500; }
.tsr-outline--compact .tsr-step.is-locked .tsr-step__link { background: transparent; }
.tsr-outline--compact .tsr-step.is-current .tsr-step__link { background: var(--tsr-brand-soft); box-shadow: none; border-color: transparent; }
.tsr-outline--compact .tsr-step.is-current .tsr-step__title { font-weight: 700; }

/* --- Lesson / quiz layout ------------------------------------------------ */

.tsr-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; max-width: 1320px; margin: 0 auto; padding: 32px 24px 72px; align-items: start; }

.tsr-sidebar { position: sticky; top: calc(var(--tsr-sticky-top) + 20px); max-height: calc(100vh - var(--tsr-sticky-top) - 40px); overflow-y: auto; }
.tsr-sidebar__toggle { display: none; }
.tsr-sidebar__body { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); }
.tsr-sidebar__course { font-weight: 700; font-size: 1.02rem; line-height: 1.35; color: var(--tsr-ink); }

.tsr-main { min-width: 0; max-width: 880px; }
.tsr-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--tsr-faint); margin-bottom: 18px; }
.tsr-crumbs a { color: var(--tsr-muted); }
.tsr-step-head { margin-bottom: 24px; }

/* --- Video --------------------------------------------------------------- */

.tsr-video { margin-bottom: 28px; }
.tsr-video__frame { position: relative; aspect-ratio: 16 / 9; background: #0b0d10; border-radius: var(--tsr-radius); overflow: hidden; box-shadow: var(--tsr-shadow-lg); }
.tsr-video__player, .tsr-video__frame iframe, .tsr-video__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tsr-video__frame video { background: #000; }
.tsr-video__meter { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.tsr-video__bar { position: relative; flex: 1 1 auto; height: 6px; border-radius: 999px; background: #e3e6ea; }
.tsr-video__bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--tsr-brand); transition: width .5s ease; }
.tsr-video__bar i { position: absolute; top: -4px; width: 2px; height: 14px; background: var(--tsr-ink); opacity: .35; border-radius: 1px; }
.tsr-video__meter[data-reached] .tsr-video__bar span { background: var(--tsr-done); }
.tsr-video__label { flex: 0 0 auto; font-size: .88rem; color: var(--tsr-muted); }
.tsr-video__meter[data-reached] .tsr-video__label { color: var(--tsr-done); font-weight: 600; }
.tsr-video__notice { margin-top: 10px; padding: 10px 14px; border-radius: var(--tsr-radius-sm); background: var(--tsr-warn-soft); color: var(--tsr-warn); font-size: .92rem; }
.tsr-video__notice button { background: none; border: 0; padding: 0; margin-left: 6px; color: inherit; text-decoration: underline; cursor: pointer; }

/* --- Prose --------------------------------------------------------------- */

.tsr-prose { font-size: 1.05rem; line-height: 1.75; }
.tsr-prose > * + * { margin-top: 1.1em; }
.tsr-prose h2 { font-size: 1.45rem; line-height: 1.3; margin-top: 1.8em; }
.tsr-prose h3 { font-size: 1.2rem; line-height: 1.35; margin-top: 1.6em; }
.tsr-prose ul { list-style: disc; padding-left: 1.4em; }
.tsr-prose ol { list-style: decimal; padding-left: 1.4em; }
.tsr-prose li + li { margin-top: .35em; }
.tsr-prose a { text-decoration: underline; }
.tsr-prose img, .tsr-prose figure { border-radius: var(--tsr-radius-sm); }
.tsr-prose blockquote { border-left: 3px solid var(--tsr-brand); padding: 4px 0 4px 18px; color: var(--tsr-muted); margin: 1.4em 0; }
.tsr-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tsr-prose th, .tsr-prose td { border: 0; border-bottom: 1px solid var(--tsr-line); padding: 10px 12px; text-align: left; }
.tsr-prose th { font-weight: 700; background: var(--tsr-bg); }

/* --- Completion ---------------------------------------------------------- */

.tsr-complete { margin-top: 36px; padding: 22px 24px; border-radius: var(--tsr-radius); background: var(--tsr-surface); border: 1px solid var(--tsr-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.tsr-complete.is-done { background: var(--tsr-done-soft); border-color: transparent; }
.tsr-complete__done { display: flex; align-items: center; gap: 10px; color: var(--tsr-done); font-weight: 600; }
.tsr-complete__done .tsr-icon { background: var(--tsr-done); color: #fff; border-radius: 50%; padding: 3px; width: 24px; height: 24px; }
.tsr-complete__hint { color: var(--tsr-muted); }
.tsr-complete__need { color: var(--tsr-muted); font-size: .95rem; display: flex; flex-direction: column; gap: 4px; }
.tsr-complete__need li::before { content: "•"; margin-right: 8px; color: var(--tsr-warn); }
.tsr-complete__error { width: 100%; color: var(--tsr-danger); font-size: .95rem; }

.tsr-finish { margin-top: 24px; padding: 24px; border-radius: var(--tsr-radius); background: var(--tsr-surface); border: 1px solid var(--tsr-done); box-shadow: var(--tsr-shadow); display: flex; align-items: center; gap: 18px 20px; }
.tsr-finish:focus { outline: none; }
.tsr-finish__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--tsr-done); color: #fff; flex: 0 0 auto; }
.tsr-finish__icon .tsr-icon { width: 26px; height: 26px; }
.tsr-finish__text { flex: 1 1 auto; min-width: 0; }
.tsr-finish__text h2 { font-size: 1.15rem; font-weight: 700; }
.tsr-finish__text p { color: var(--tsr-muted); margin-top: 2px; }

/* --- Pager --------------------------------------------------------------- */

.tsr-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--tsr-line); }
.tsr-pager a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--tsr-radius-sm); border: 1px solid var(--tsr-line); background: var(--tsr-surface); color: var(--tsr-ink); font-weight: 600; min-width: 0; }
.tsr .tsr-pager a:hover { border-color: var(--tsr-brand); text-decoration: none; }
.tsr-pager span { display: flex; flex-direction: column; min-width: 0; }
.tsr-pager small { font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--tsr-muted); }
.tsr-pager__next { justify-content: flex-end; text-align: right; grid-column: 2; }
.tsr-pager__next.is-locked { color: var(--tsr-faint); background: #fafbfc; pointer-events: none; }

/* --- Locked and message pages -------------------------------------------- */

.tsr-locked, .tsr-message { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tsr-locked .tsr-lead, .tsr-message .tsr-lead { margin: 0 0 10px; }
.tsr-locked__icon, .tsr-message__icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #eceef1; color: var(--tsr-muted); }
.tsr-locked__icon .tsr-icon, .tsr-message__icon .tsr-icon { width: 30px; height: 30px; }

/* --- Small screens ------------------------------------------------------- */

/* --- Quizzes ------------------------------------------------------------- */

.tsr-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 24px 0; }
.tsr-facts li { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius-sm); }
.tsr-facts strong { font-size: 1.35rem; line-height: 1.2; }
.tsr-facts span { color: var(--tsr-muted); font-size: .9rem; }

.tsr-quiz-start { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 22px 24px; margin-bottom: 36px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); }
.tsr-quiz-start__lead { color: var(--tsr-muted); max-width: 52ch; }
.tsr-quiz-start__status { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--tsr-muted); }
.tsr-quiz-start__status.is-passed { color: var(--tsr-done); }
.tsr-quiz-start__status.is-passed .tsr-icon { background: var(--tsr-done); color: #fff; border-radius: 50%; padding: 3px; }

.tsr-attempts { display: flex; flex-direction: column; gap: 8px; }
.tsr-attempt { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 12px 20px; padding: 14px 18px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius-sm); }
.tsr-attempt__n { display: flex; flex-direction: column; font-weight: 600; }
.tsr-attempt__n small { font-weight: 400; color: var(--tsr-muted); font-size: .85rem; }
.tsr-attempt__score { font-weight: 700; font-variant-numeric: tabular-nums; }

/* The attempt */
.tsr-quiz__bar {
	position: sticky; top: calc(var(--tsr-sticky-top) + 12px); z-index: 5;
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
	margin-bottom: 20px; padding: 12px 18px;
	background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius-sm); box-shadow: var(--tsr-shadow);
	font-size: .92rem;
}
.tsr-quiz__count { font-weight: 600; }
.tsr-quiz__saved { color: var(--tsr-muted); flex: 1 1 auto; }
.tsr-quiz__saved.is-bad { color: var(--tsr-danger); }
.tsr-quiz__timer { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 4px 12px; border-radius: 999px; background: var(--tsr-brand-soft); color: var(--tsr-brand-strong); }
.tsr-quiz__timer.is-low { background: var(--tsr-danger-soft); color: var(--tsr-danger); }

.tsr-questions { display: flex; flex-direction: column; gap: 16px; }
.tsr-q { padding: 22px 24px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); }
.tsr-q.is-right { border-left: 4px solid var(--tsr-done); }
.tsr-q.is-wrong { border-left: 4px solid var(--tsr-danger); }
.tsr-q.is-partial { border-left: 4px solid var(--tsr-warn); }
.tsr-q.is-pending { border-left: 4px solid var(--tsr-line-strong); }
.tsr-q__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-bottom: 10px; font-size: .82rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--tsr-muted); }
.tsr-q__head :focus { outline: none; }
.tsr-q__prompt { font-size: 1.05rem; margin-bottom: 16px; }
.tsr-q__prompt > * + * { margin-top: .6em; }
.tsr-q__hint { color: var(--tsr-muted); font-size: .9rem; margin: -6px 0 12px; }
.tsr-q__hint.is-bad { color: var(--tsr-danger); font-weight: 600; }
.tsr-q__feedback,
.tsr-q__explain { margin-top: 16px; padding: 12px 16px; border-radius: var(--tsr-radius-sm); background: var(--tsr-bg); font-size: .95rem; }
.tsr-q__feedback strong,
.tsr-q__explain strong { display: block; margin-bottom: 4px; }

.tsr-options { display: flex; flex-direction: column; gap: 8px; }
.tsr-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 48px; border: 1px solid var(--tsr-line-strong); border-radius: var(--tsr-radius-sm); cursor: pointer; transition: border-color .15s, background-color .15s; }
.tsr-option:hover { border-color: var(--tsr-brand); }
.tsr-option input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: var(--tsr-brand); }
.tsr-option:has(input:checked) { border-color: var(--tsr-brand); background: var(--tsr-brand-soft); }
.tsr-option__text { flex: 1 1 auto; }
.tsr-option.is-review { cursor: default; }
.tsr-option.is-review:hover { border-color: var(--tsr-line-strong); }
.tsr-option.is-chosen { border-color: var(--tsr-brand); background: var(--tsr-brand-soft); }
.tsr-option.is-solution { border-color: var(--tsr-done); background: var(--tsr-done-soft); }
.tsr-option__box { width: 18px; height: 18px; flex: 0 0 auto; border: 2px solid var(--tsr-line-strong); background: #fff; }
.tsr-option__box.is-radio { border-radius: 50%; }
.tsr-option__box.is-check { border-radius: 4px; }
.tsr-option.is-chosen .tsr-option__box { border-color: var(--tsr-brand); box-shadow: inset 0 0 0 3px #fff; background: var(--tsr-brand); }
.tsr-option__tag { font-size: .78rem; font-weight: 600; color: var(--tsr-brand-strong); white-space: nowrap; }
.tsr-option__tag.is-solution { color: var(--tsr-done); }

.tsr-input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--tsr-line-strong); border-radius: var(--tsr-radius-sm); background: #fff; font: inherit; color: var(--tsr-ink); }
.tsr-input:focus { border-color: var(--tsr-brand); box-shadow: 0 0 0 3px var(--tsr-brand-soft); outline: none; }
.tsr-essay { min-height: 180px; resize: vertical; line-height: 1.55; }
.tsr-q .tsr-essay + .tsr-q__hint { margin: 8px 0 0; }

.tsr-q__prompt--fill { line-height: 2.4; }
.tsr-blank { display: inline-block; width: 11ch; min-height: 36px; margin: 0 4px; padding: 4px 8px; border: 0; border-bottom: 2px solid var(--tsr-brand); background: var(--tsr-brand-soft); border-radius: 4px 4px 0 0; font: inherit; color: var(--tsr-ink); text-align: center; line-height: 1.4; }
.tsr-blank:focus { outline: 2px solid var(--tsr-brand); outline-offset: 1px; }
.tsr-blank.is-review { width: auto; min-width: 6ch; background: var(--tsr-bg); border-bottom-color: var(--tsr-line-strong); }
.tsr-blank__solution { color: var(--tsr-done); font-weight: 600; }

.tsr-answer { padding: 12px 14px; border-radius: var(--tsr-radius-sm); background: var(--tsr-bg); }
.tsr-answer + .tsr-answer { margin-top: 8px; }
.tsr-answer > span:first-child { font-weight: 600; margin-right: 4px; }
.tsr-answer.is-solution { background: var(--tsr-done-soft); color: var(--tsr-done); }
.tsr-answer--essay > * + * { margin-top: .6em; }

.tsr-sort { display: flex; flex-direction: column; gap: 8px; }
.tsr-sort__item { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 6px; min-height: 52px; background: #fff; border: 1px solid var(--tsr-line-strong); border-radius: var(--tsr-radius-sm); transition: box-shadow .2s, background-color .4s; }
.tsr-sort__item.is-dragging { box-shadow: var(--tsr-shadow-lg); border-color: var(--tsr-brand); }
.tsr-sort__item.is-moved { background: var(--tsr-brand-soft); }
.tsr-sort__handle { display: grid; place-items: center; width: 32px; height: 36px; color: var(--tsr-faint); cursor: grab; touch-action: none; flex: 0 0 auto; }
.tsr-sort__text { flex: 1 1 auto; }
.tsr-sort__tools { display: flex; gap: 4px; flex: 0 0 auto; }
.tsr-icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius-sm); background: var(--tsr-surface); color: var(--tsr-ink); cursor: pointer; }
.tsr-icon-button:hover { border-color: var(--tsr-brand); color: var(--tsr-brand); }
.tsr-icon-button .tsr-icon { width: 18px; height: 18px; }
.tsr-sort.is-review .tsr-sort__item { padding-left: 14px; min-height: 44px; }
.tsr-sort.is-solution .tsr-sort__item { border-color: var(--tsr-done); background: var(--tsr-done-soft); }
.tsr-sort-review { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.tsr-pairs { display: flex; flex-direction: column; gap: 10px; }
.tsr-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px 16px; padding: 10px 14px; border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius-sm); }
.tsr-pair__left { font-weight: 600; }
.tsr-pair__right { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.tsr-pair__solution { width: 100%; color: var(--tsr-done); font-size: .9rem; font-weight: 600; }

.tsr-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; vertical-align: middle; margin-left: 4px; }
.tsr-mark .tsr-icon { width: 14px; height: 14px; }
.tsr-mark.is-right { background: var(--tsr-done); }
.tsr-mark.is-wrong { background: var(--tsr-danger); }
.tsr-sort__item .tsr-mark { margin-left: auto; }

.tsr-quiz__pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.tsr-quiz__submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 20px; margin-top: 24px; padding: 20px 24px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); }
.tsr-quiz__confirm { flex: 1 1 260px; font-weight: 600; color: var(--tsr-warn); }

/* The result */
.tsr-result { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; padding: 26px 28px; margin-bottom: 32px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-top: 5px solid var(--tsr-line-strong); border-radius: var(--tsr-radius); box-shadow: var(--tsr-shadow); }
.tsr-result.is-passed { border-top-color: var(--tsr-done); }
.tsr-result.is-failed { border-top-color: var(--tsr-danger); }
.tsr-result__score { display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; background: var(--tsr-bg); flex: 0 0 auto; }
.tsr-result.is-passed .tsr-result__score { background: var(--tsr-done-soft); color: var(--tsr-done); }
.tsr-result.is-failed .tsr-result__score { background: var(--tsr-danger-soft); color: var(--tsr-danger); }
.tsr-result__big { font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tsr-result__big .tsr-icon { width: 40px; height: 40px; }
.tsr-result__text { flex: 1 1 260px; }
.tsr-result__text h2 { font-size: 1.35rem; font-weight: 700; }
.tsr-result__text p { color: var(--tsr-muted); margin-top: 4px; }
.tsr-result__meta { font-size: .88rem; }
.tsr-result__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tsr-review-title { margin-top: 8px; }
.tsr-review-note { color: var(--tsr-muted); margin: -6px 0 16px; }

/* --- Certificates ------------------------------------------------------------ */

.tsr-account__facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin-bottom: 12px; }
.tsr-account__facts div { display: contents; }
.tsr-account__facts dt { color: var(--tsr-muted); }
.tsr-account__facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.tsr-account__form { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.tsr-account__form .tsr-button { align-self: flex-start; }
.tsr-account__hint { font-size: .88rem; margin-top: 2px; }
.tsr-account__data { display: flex; flex-wrap: wrap; gap: 10px; }
.tsr-account__pending { flex-basis: 100%; padding: 10px 14px; border-radius: var(--tsr-radius-sm); background: var(--tsr-brand-soft); color: var(--tsr-brand-strong); }
.tsr-account .tsr-flash { margin-bottom: 16px; }

/* --- My learning, in bands ---------------------------------------------------- */

.tsr-home { padding-bottom: 0; }
.tsr-home__inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.tsr-home-band { padding-top: 44px; }
.tsr-home__label { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tsr-muted); margin-bottom: 16px; }
.tsr-home__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.tsr-home__more { font-weight: 600; color: var(--tsr-brand-text); }
.tsr-home__chip { display: inline-block; padding: 5px 12px; border: 1px solid var(--tsr-glow); border-radius: 6px; color: var(--tsr-glow); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.tsr-home__bar { display: block; height: 8px; border-radius: 999px; background: #e8ebef; overflow: hidden; }
.tsr-home__bar i { display: block; height: 100%; border-radius: inherit; background: var(--tsr-brand); }
.tsr-home__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: 8px; border: 1px solid var(--tsr-brand); background: var(--tsr-brand); color: var(--tsr-brand-ink); font-weight: 700; }
.tsr-home__btn:hover { background: var(--tsr-brand-strong); border-color: var(--tsr-brand-strong); color: var(--tsr-brand-ink); text-decoration: none; }
.tsr-home__btn.is-ghost { background: transparent; border-color: rgba(255, 255, 255, .32); color: #fff; }
.tsr-home__btn.is-ghost:hover { border-color: #fff; }
.tsr-home__btn.is-outline { background: transparent; border-color: var(--tsr-ink); color: var(--tsr-ink); }
.tsr-home__btn.is-outline:hover { background: var(--tsr-ink); color: #fff; }

.tsr-home-resume { background: var(--tsr-deep); color: #fff; padding: 64px 0 68px; }
.tsr-home-resume__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.tsr-home-resume__title { font-size: clamp(1.75rem, 1.15rem + 2.1vw, 2.75rem); line-height: 1.15; font-weight: 700; letter-spacing: -.015em; color: #fff; }
.tsr-home-resume__lead { margin-top: 18px; font-size: 1.08rem; color: rgba(255, 255, 255, .68); }
.tsr-home-resume__step { color: #fff; }
.tsr-home-resume__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tsr-home-resume__card { padding: 28px; border-radius: var(--tsr-radius); border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); }
.tsr-home-resume__card-label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.tsr-home-resume__figure { margin: 12px 0 16px; font-size: 1.4rem; color: rgba(255, 255, 255, .62); }
.tsr-home-resume__figure span { font-size: 3.1rem; font-weight: 800; line-height: 1; color: #fff; margin-right: 4px; }
.tsr-home-resume .tsr-home__bar { background: rgba(255, 255, 255, .12); }
.tsr-home-resume .tsr-home__bar i { background: var(--tsr-glow); }
.tsr-home-resume__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: .92rem; color: rgba(255, 255, 255, .62); }

.tsr-home-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.tsr-home-stats__tile { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); }
.tsr-home-stats__num { font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--tsr-brand-text); font-variant-numeric: tabular-nums; }
.tsr-home-stats__label { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tsr-muted); }
.tsr-home-stats__tile.is-alert { border-color: var(--tsr-danger); background: var(--tsr-danger-soft); }
.tsr-home-stats__tile.is-alert .tsr-home-stats__num { color: var(--tsr-danger); }

.tsr-home-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.tsr-home-course { --tone: var(--tsr-brand); --tone-soft: var(--tsr-brand-soft); --tone-text: var(--tsr-brand-text); display: flex; flex-direction: column; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-top: 6px solid var(--tone); border-radius: var(--tsr-radius); overflow: hidden; }
.tsr-home-course.is-done { --tone: var(--tsr-done); --tone-soft: var(--tsr-done-soft); --tone-text: var(--tsr-done); }
.tsr-home-course.is-overdue { --tone: var(--tsr-danger); --tone-soft: var(--tsr-danger-soft); --tone-text: var(--tsr-danger); }
.tsr-home-course.is-locked { --tone: var(--tsr-line-strong); --tone-soft: #eef0f3; --tone-text: var(--tsr-muted); background: #f8f9fa; }
.tsr-home-course.is-active { border-color: var(--tsr-brand); border-top-color: var(--tone); box-shadow: var(--tsr-shadow-lg); }
.tsr-home-course__media img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.tsr-home-course__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 22px 24px 24px; }
.tsr-home-course__pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--tone-soft); color: var(--tone-text); font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.tsr-home-course__pill .tsr-icon { width: 13px; height: 13px; }
.tsr-home-course__title { margin-top: 14px; font-size: 1.28rem; line-height: 1.3; font-weight: 700; }
.tsr-home-course__title a { color: var(--tsr-ink); }
.tsr-home-course.is-locked .tsr-home-course__title a { color: var(--tsr-muted); }
.tsr-home-course__desc { margin-top: 10px; color: var(--tsr-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tsr-home-course__foot { margin-top: auto; padding-top: 20px; }
.tsr-home-course__numbers { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; color: var(--tsr-muted); font-size: .92rem; }
.tsr-home-course__numbers strong { font-size: 1.3rem; color: var(--tsr-ink); }
.tsr-home-course .tsr-home__bar i { background: var(--tone); }
.tsr-home-course__due { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .88rem; color: var(--tsr-muted); }
.tsr-home-course__due .tsr-icon { width: 15px; height: 15px; }
.tsr-home-course__due.is-overdue { color: var(--tsr-danger); font-weight: 600; }
.tsr-home-course__cta { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; margin-top: 18px; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.tsr-home-course__cta:hover { text-decoration: none; }
.tsr-home-course__cta.is-solid { background: var(--tsr-brand); color: var(--tsr-brand-ink); }
.tsr-home-course__cta.is-solid:hover { background: var(--tsr-brand-strong); }
.tsr-home-course__cta.is-outline { border: 1.5px solid var(--tsr-brand-text); color: var(--tsr-brand-text); }
.tsr-home-course__cta.is-outline:hover { background: var(--tsr-brand-soft); }
.tsr-home-course__cta.is-disabled { border: 1px solid var(--tsr-line-strong); color: var(--tsr-muted); font-weight: 600; background: var(--tsr-surface); }

.tsr-home-team { margin-top: 44px; padding: 26px 0; background: var(--tsr-surface); border-block: 1px solid var(--tsr-line); }
.tsr-home-team__row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.tsr-home-team__name { display: flex; flex-direction: column; padding-right: 40px; border-right: 1px solid var(--tsr-line); }
.tsr-home-team__title { font-size: 1.25rem; font-weight: 800; }
.tsr-home-team__cap { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tsr-muted); }
.tsr-home-team__figures { display: flex; flex-wrap: wrap; gap: 16px 36px; flex: 1 1 auto; }
.tsr-home-team__figures li { display: flex; flex-direction: column; }
.tsr-home-team__num { font-size: 1.6rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tsr-home-team__figures .is-alert .tsr-home-team__num { color: var(--tsr-danger); }

.tsr-home-support { margin-top: 56px; padding: 56px 0 64px; background: var(--tsr-deep); color: #fff; }
.tsr-home-support__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 36px; align-items: start; }
.tsr-home-support__title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); line-height: 1.2; font-weight: 700; color: #fff; }
.tsr-home-support__more { margin-top: 18px; }
.tsr-home-support__more a, .tsr-home-support__card-cta { color: var(--tsr-glow); font-weight: 600; }
.tsr-home-support__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tsr-home-support__card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--tsr-radius); border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); }
.tsr-home-support__card-title { font-size: 1.05rem; font-weight: 700; color: #fff; }
.tsr-home-support__card-body { color: rgba(255, 255, 255, .7); font-size: .95rem; flex: 1 1 auto; }


/* --- The home page (Front\Welcome) ---------------------------------------------- */

.tsr-welcome { background: var(--tsr-surface); }
.tsr-welcome-hero {
	position: relative; overflow: hidden; padding: 96px 0 104px; color: #fff;
	background: radial-gradient(120% 140% at 85% 0%, color-mix(in srgb, var(--tsr-brand) 42%, var(--tsr-deep)) 0%, var(--tsr-deep) 62%);
}
.tsr-welcome-hero.has-image {
	background:
		linear-gradient(90deg, color-mix(in srgb, var(--tsr-deep) 90%, transparent) 0%, color-mix(in srgb, var(--tsr-deep) 72%, transparent) 55%, color-mix(in srgb, var(--tsr-deep) 55%, transparent) 100%),
		var(--tsr-welcome-image) center / cover no-repeat,
		var(--tsr-deep);
}
/* A scatter of tiles behind the sign-in card when there is no photograph. */
.tsr-welcome-hero__tiles { position: absolute; top: -40px; right: -60px; width: 640px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; transform: rotate(-8deg); opacity: .55; pointer-events: none; }
.tsr-welcome-hero__tiles i { aspect-ratio: 1; border-radius: 16px; background: color-mix(in srgb, var(--tsr-glow) 22%, transparent); }
.tsr-welcome-hero__tiles i:nth-child(3n) { background: color-mix(in srgb, var(--tsr-glow) 10%, transparent); }
.tsr-welcome-hero__tiles i:nth-child(7), .tsr-welcome-hero__tiles i:nth-child(16) { background: #f4a21c; opacity: .8; }
.tsr-welcome-hero__tiles i:nth-child(5n+2) { visibility: hidden; }
.tsr-welcome-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.tsr-welcome-hero__chip { display: inline-block; padding: 6px 12px; border-radius: 6px; background: var(--tsr-brand); color: var(--tsr-brand-ink); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; }
.tsr-welcome-hero__title { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.7rem); line-height: 1.06; font-weight: 800; letter-spacing: -.025em; color: #fff; }
.tsr-welcome-hero__lead { margin-top: 22px; max-width: 54ch; font-size: 1.18rem; color: rgba(255, 255, 255, .8); }
.tsr-welcome-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tsr-welcome-signin { position: relative; padding: 32px; border-radius: var(--tsr-radius); background: color-mix(in srgb, var(--tsr-deep) 94%, #fff); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6); scroll-margin-top: 100px; }
.tsr-welcome-signin__title { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 18px; }
.tsr-welcome-signin__form { display: flex; flex-direction: column; }
.tsr-welcome-signin__label { font-size: .95rem; color: rgba(255, 255, 255, .88); margin-bottom: 6px; }
.tsr-welcome-signin__input { width: 100%; min-height: 48px; padding: 10px 14px; margin-bottom: 16px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: #f4f5f7; color: var(--tsr-ink); font: inherit; }
.tsr-welcome-signin__input:focus { outline: 3px solid var(--tsr-glow); outline-offset: 1px; }
.tsr-welcome-signin__remember { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: rgba(255, 255, 255, .75); margin: -2px 0 18px; }
.tsr-welcome-signin__button { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 0; border-radius: 8px; background: var(--tsr-brand); color: var(--tsr-brand-ink); font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.tsr-welcome-signin__button:hover { background: var(--tsr-brand-strong); color: var(--tsr-brand-ink); text-decoration: none; }
.tsr-welcome-signin__note { margin-top: 18px; font-size: .9rem; color: rgba(255, 255, 255, .62); }
.tsr-welcome-signin__note a { color: #fff; text-decoration: underline; }
.tsr-welcome-me__hello { font-size: 1.3rem; font-weight: 700; color: #fff; }
.tsr-welcome-me__figure { margin: 14px 0 12px; font-size: 1.4rem; color: rgba(255, 255, 255, .62); }
.tsr-welcome-me__figure span { font-size: 3.2rem; font-weight: 800; line-height: 1; color: #fff; margin-right: 4px; }
.tsr-welcome-me .tsr-home__bar { background: rgba(255, 255, 255, .12); }
.tsr-welcome-me .tsr-home__bar i { background: var(--tsr-glow); }
.tsr-welcome-me__meta { margin: 12px 0 18px; color: rgba(255, 255, 255, .7); }
.tsr-welcome-me__next { margin-bottom: 16px; color: rgba(255, 255, 255, .78); }
.tsr-welcome-me__next strong { color: #fff; }

.tsr-welcome-numbers { background: var(--tsr-deep); border-top: 1px solid rgba(255, 255, 255, .08); color: #fff; }
.tsr-welcome-numbers__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; padding-top: 26px !important; padding-bottom: 30px !important; }
.tsr-welcome-numbers__row li { display: flex; align-items: baseline; gap: 10px; }
.tsr-welcome-numbers__row strong { font-size: 2rem; font-weight: 800; color: var(--tsr-glow); font-variant-numeric: tabular-nums; }
.tsr-welcome-numbers__row span { color: rgba(255, 255, 255, .72); }

.tsr-welcome-section { padding: 80px 0; scroll-margin-top: 70px; }
.tsr-welcome-section.is-tinted { background: var(--tsr-bg); }
.tsr-welcome-section.is-deep { background: var(--tsr-deep); color: #fff; }
.tsr-welcome-section__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.15; font-weight: 800; letter-spacing: -.015em; margin-bottom: 12px; }
.tsr-welcome-section.is-deep .tsr-welcome-section__title { color: #fff; }
.tsr-welcome-section__lead { color: var(--tsr-muted); font-size: 1.1rem; margin-bottom: 8px; }
.tsr-welcome-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 36px; }
.tsr-welcome-feature { padding: 28px; border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); background: var(--tsr-surface); }
.tsr-welcome-feature__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--tsr-brand-soft); color: var(--tsr-brand-text); margin-bottom: 18px; }
.tsr-welcome-feature__title { font-size: 1.12rem; font-weight: 700; margin-bottom: 6px; }
.tsr-welcome-feature__text { color: var(--tsr-muted); }
.tsr-welcome-courses__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 32px; }
.tsr-welcome-course { display: flex; flex-direction: column; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); overflow: hidden; }
.tsr-welcome-course__image { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.tsr-welcome-course__num { padding: 22px 24px 0; font-size: 1.6rem; font-weight: 800; color: var(--tsr-brand-text); }
.tsr-welcome-course__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 20px 24px 22px; }
.tsr-welcome-course__title { font-size: 1.15rem; font-weight: 700; }
.tsr-welcome-course__title a { color: var(--tsr-ink); }
.tsr-welcome-course__summary { margin-top: 6px; color: var(--tsr-muted); flex: 1 1 auto; }
.tsr-welcome-course__meta { margin-top: 14px; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tsr-brand-text); }
.tsr-welcome-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 36px; counter-reset: none; }
.tsr-welcome-step { position: relative; padding: 28px 28px 26px; border-radius: var(--tsr-radius); background: var(--tsr-bg); }
.tsr-welcome-step__num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tsr-brand); color: var(--tsr-brand-ink); font-weight: 800; margin-bottom: 16px; }
.tsr-welcome-step__title { font-size: 1.12rem; font-weight: 700; margin-bottom: 6px; }
.tsr-welcome-step p { color: var(--tsr-muted); }
.tsr-welcome-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 36px; }
.tsr-welcome-quote { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 28px; border-radius: var(--tsr-radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.tsr-welcome-quote blockquote { margin: 0; font-size: 1.1rem; line-height: 1.55; color: #fff; }
.tsr-welcome-quote__who { color: rgba(255, 255, 255, .65); }
.tsr-welcome-quote__who strong { color: var(--tsr-glow); }
.tsr-welcome-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.tsr-welcome-verify { padding: 56px 0; }
.tsr-welcome-verify__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.tsr-welcome-verify__title { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.tsr-welcome-verify__row p { color: var(--tsr-muted); max-width: 56ch; }
.tsr-welcome-verify__form { display: flex; gap: 10px; flex: 0 1 460px; }
.tsr-welcome-verify__form .tsr-input { flex: 1 1 auto; text-transform: uppercase; letter-spacing: .06em; }
.tsr-welcome-closing { padding: 64px 0; background: var(--tsr-brand); color: var(--tsr-brand-ink); }
.tsr-welcome-closing__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.tsr-welcome-closing__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 800; color: inherit; }
.tsr-welcome-closing p { margin-top: 6px; opacity: .88; font-size: 1.1rem; }
.tsr-welcome-closing .tsr-home__btn { background: var(--tsr-brand-ink); color: var(--tsr-brand); border-color: var(--tsr-brand-ink); }
.tsr-welcome-closing .tsr-home__btn:hover { background: transparent; color: var(--tsr-brand-ink); }

/* --- My results --------------------------------------------------------------- */

.tsr-results-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); overflow: hidden; margin-bottom: 36px; }
.tsr-results-stats li { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-left: 1px solid var(--tsr-line); margin-left: -1px; }
.tsr-results-stats__num { font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--tsr-brand-text); font-variant-numeric: tabular-nums; }
.tsr-results-stats__label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tsr-muted); }
.tsr-results-section { margin-bottom: 36px; }
.tsr-results-courses { display: flex; flex-direction: column; gap: 12px; }
.tsr-results-course { --tone: var(--tsr-brand); display: flex; align-items: center; gap: 24px; padding: 18px 22px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); }
.tsr-results-course.is-done { --tone: var(--tsr-done); }
.tsr-results-course.is-overdue { --tone: var(--tsr-danger); }
.tsr-results-course.is-locked { --tone: var(--tsr-line-strong); }
.tsr-results-course .tsr-home__bar i { background: var(--tone); }
.tsr-results-course__main { flex: 1 1 auto; min-width: 0; }
.tsr-results-course__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.tsr-results-course__name a { font-weight: 700; color: var(--tsr-ink); }
.tsr-results-course__name .tsr-muted { font-size: .9rem; }
.tsr-results-course__pct { font-size: 1.3rem; font-variant-numeric: tabular-nums; }

/* --- Support -------------------------------------------------------------------- */

.tsr-support__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.tsr-problem { background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: 10px; margin-bottom: 10px; scroll-margin-top: calc(var(--tsr-sticky-top, 0px) + 20px); }
.tsr-problem__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.tsr-problem__title::-webkit-details-marker { display: none; }
.tsr-problem__title::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--tsr-muted); border-bottom: 2px solid var(--tsr-muted); transform: rotate(45deg); transition: transform .15s; flex: 0 0 auto; margin-top: -4px; }
.tsr-problem[open] .tsr-problem__title::after { transform: rotate(-135deg); margin-top: 4px; }
.tsr-problem[open] { border-color: var(--tsr-line-strong); }
.tsr-problem__body { padding: 0 18px 16px; color: var(--tsr-ink); }
.tsr-problem__body p { margin-bottom: 10px; }
.tsr-problem__steps { list-style: decimal; padding-left: 22px; margin-bottom: 10px; }
.tsr-problem__steps li { margin-bottom: 6px; }
.tsr-problem__ask { font-weight: 600; color: var(--tsr-brand-text); }
.tsr-support__more { margin-top: 16px; font-weight: 600; }
.tsr-support__message, .tsr-support__guides { padding: 22px 24px; margin-bottom: 20px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); scroll-margin-top: calc(var(--tsr-sticky-top, 0px) + 20px); }
.tsr-support__message { border-left: 5px solid var(--tsr-brand); }
.tsr-support__card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; }
.tsr-support__form { display: flex; flex-direction: column; gap: 14px; }
.tsr-support__form .tsr-button { align-self: flex-start; }
.tsr-support__form textarea { resize: vertical; min-height: 96px; }
.tsr-support__to { font-size: .88rem; }
.tsr-support__sent { padding: 10px 14px; border-radius: var(--tsr-radius-sm); background: var(--tsr-done-soft); color: var(--tsr-done); font-weight: 600; }
.tsr-support__sent.is-error { background: var(--tsr-danger-soft); color: var(--tsr-danger); }
.tsr-guides { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.tsr-guides__item { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--tsr-line); border-radius: 10px; }
.tsr-guides__badge { flex: 0 0 auto; padding: 8px 9px; border-radius: 6px; background: var(--tsr-brand); color: var(--tsr-brand-ink); font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.tsr-guides__text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; font-size: .92rem; }
.tsr-link-button { background: none; border: 0; padding: 0; color: var(--tsr-brand-text); font-weight: 600; text-decoration: underline; cursor: pointer; }
.tsr-support__links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.tsr-support__links a { font-weight: 600; }
.tsr-support__team { font-size: .92rem; }

/* --- Guides (learner, and the manager's in My team) --------------------------- */

.tsr-guide { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; margin-bottom: 32px; }
.tsr-guide__toc { position: sticky; top: calc(var(--tsr-sticky-top, 0px) + 24px); padding: 18px 20px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); }
.tsr-guide__toc-title { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tsr-muted); margin-bottom: 10px; }
.tsr-guide__toc ol { margin: 0; padding-left: 22px; list-style: decimal; }
.tsr-guide__toc li { margin-bottom: 6px; }
.tsr-guide__toc li::marker { color: var(--tsr-faint); }
.tsr-guide__toc a { color: var(--tsr-ink); }
.tsr-guide__toc a:hover { color: var(--tsr-brand); }
.tsr-guide__body { max-width: 68ch; }
.tsr-guide__section { padding: 4px 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--tsr-line); scroll-margin-top: calc(var(--tsr-sticky-top, 0px) + 20px); }
.tsr-guide__section:last-child { border-bottom: 0; margin-bottom: 0; }
.tsr-guide__title { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.tsr-guide__section p { margin: 0 0 12px; line-height: 1.65; }
.tsr-guide__list, .tsr-guide__steps { margin: 0 0 14px; padding-left: 22px; line-height: 1.6; }
.tsr-guide__list { list-style: disc; }
.tsr-guide__steps { list-style: decimal; }
.tsr-guide__list li, .tsr-guide__steps li { margin-bottom: 6px; }
.tsr-guide__steps li::marker { font-weight: 700; color: var(--tsr-brand); }
.tsr-guide__terms { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; margin: 0 0 14px; }
.tsr-guide__terms div { display: contents; }
.tsr-guide__terms dt { font-weight: 600; }
.tsr-guide__terms dd { margin: 0; color: var(--tsr-muted); line-height: 1.55; }
.tsr-guide__note { padding: 12px 16px; border-radius: var(--tsr-radius-sm); background: var(--tsr-warn-soft); color: var(--tsr-warn); }
.tsr-guide__link a { font-weight: 600; overflow-wrap: anywhere; }
.tsr-verify-form { display: flex; gap: 10px; margin: 24px 0; }
.tsr-verify-form__input { flex: 1 1 auto; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.tsr-verify { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: var(--tsr-radius); background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-left: 5px solid var(--tsr-line-strong); }
.tsr-verify.is-valid { border-left-color: var(--tsr-done); }
.tsr-verify.is-expired { border-left-color: var(--tsr-warn); }
.tsr-verify.is-revoked, .tsr-verify.is-unknown { border-left-color: var(--tsr-danger); }
.tsr-verify__icon { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tsr-done-soft); color: var(--tsr-done); }
.tsr-verify.is-expired .tsr-verify__icon { background: var(--tsr-warn-soft); color: var(--tsr-warn); }
.tsr-verify.is-revoked .tsr-verify__icon { background: var(--tsr-danger-soft); color: var(--tsr-danger); }
.tsr-verify__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.tsr-verify__facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.tsr-verify__facts div { display: contents; }
.tsr-verify__facts dt { color: var(--tsr-muted); }
.tsr-verify__facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.tsr-verify__code { font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.tsr-certs { display: flex; flex-direction: column; gap: 8px; }
.tsr-cert { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 18px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius-sm); }
.tsr-cert__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tsr-brand-soft); color: var(--tsr-brand); flex: 0 0 auto; }
.tsr-cert__text { flex: 1 1 220px; min-width: 0; }
.tsr-cert__title { display: block; font-weight: 600; }
.tsr-cert__meta { display: block; color: var(--tsr-muted); font-size: .88rem; }

/* --- Assignments ------------------------------------------------------------ */

.tsr-result.is-waiting { border-top-color: var(--tsr-brand); }
.tsr-result.is-waiting .tsr-result__score { background: var(--tsr-brand-soft); color: var(--tsr-brand); }

.tsr-files { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.tsr-file { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius-sm); min-width: 0; }
.tsr-file .tsr-icon { flex: 0 0 auto; color: var(--tsr-muted); }
.tsr-file a, .tsr-file__name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.tsr-file__size { flex: 0 0 auto; color: var(--tsr-muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.tsr .tsr-file__remove { flex: 0 0 auto; border: 0; background: none; color: var(--tsr-danger); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; padding: 4px 6px; border-radius: 4px; }
.tsr .tsr-file__remove:hover { background: var(--tsr-danger-soft); }

.tsr-handin { margin-bottom: 36px; }
.tsr-handin-text { padding: 14px 16px; border-radius: var(--tsr-radius-sm); background: var(--tsr-surface); border: 1px solid var(--tsr-line); line-height: 1.65; overflow-wrap: anywhere; }

.tsr-handin-form { padding: 22px 24px; margin-bottom: 36px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); display: flex; flex-direction: column; gap: 18px; }
.tsr-handin-form .tsr-section-title { margin-bottom: 0; }
.tsr-handin-form .tsr-files { margin: 12px 0 0; }
.tsr-handin-form__text { min-height: 160px; resize: vertical; line-height: 1.6; }
.tsr-handin-form__submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 18px; }
.tsr-handin-form__progress { color: var(--tsr-muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.tsr-handin-form .tsr-complete__error:empty { display: none; }
.tsr-field { display: flex; flex-direction: column; gap: 6px; }
.tsr-field__label { font-weight: 600; }

.tsr-drop { position: relative; }
.tsr-drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.tsr-drop__label {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	min-height: 120px; padding: 20px; text-align: center; cursor: pointer; color: var(--tsr-muted);
	border: 2px dashed var(--tsr-line-strong); border-radius: var(--tsr-radius); background: var(--tsr-bg);
	transition: border-color .15s ease, background .15s ease;
}
.tsr-drop__label strong { color: var(--tsr-brand); }
.tsr-drop__label .tsr-icon { width: 28px; height: 28px; color: var(--tsr-brand); }
.tsr-drop__label:hover, .tsr-drop.is-over .tsr-drop__label { border-color: var(--tsr-brand); background: var(--tsr-brand-soft); }
.tsr-drop__input:focus-visible + .tsr-drop__label { outline: 3px solid var(--tsr-brand); outline-offset: 2px; }
.tsr-drop__hint { margin-top: 8px; color: var(--tsr-muted); font-size: .88rem; }
.tsr-drop__error { margin-top: 8px; }

.tsr-feedback { padding: 18px 22px; margin-bottom: 28px; border-radius: var(--tsr-radius); background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-left: 4px solid var(--tsr-done); }
.tsr-feedback.is-returned { border-left-color: var(--tsr-warn); background: var(--tsr-warn-soft); border-color: transparent; border-left-color: var(--tsr-warn); }
.tsr-feedback__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.tsr-feedback__meta { color: var(--tsr-muted); font-size: .88rem; margin-bottom: 8px; }
.tsr-feedback p { line-height: 1.65; overflow-wrap: anywhere; }

.tsr-handins { display: flex; flex-direction: column; gap: 8px; margin-bottom: 36px; }
.tsr-handins__item { background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius-sm); }
.tsr-handins__summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 14px 18px; cursor: pointer; list-style: none; }
.tsr-handins__summary::-webkit-details-marker { display: none; }
.tsr-handins__summary .tsr-attempt__n { flex: 1 1 auto; }
.tsr-handins__summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--tsr-faint); border-bottom: 2px solid var(--tsr-faint); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .15s ease; }
details[open] > .tsr-handins__summary::after { transform: rotate(-135deg); margin-top: 4px; }
.tsr-handins__body { padding: 0 18px 16px; }
.tsr-handins__feedback { color: var(--tsr-ink); line-height: 1.6; }

.tsr-grade-card__earlier { padding: 10px 14px; margin-bottom: 12px; border-radius: var(--tsr-radius-sm); background: var(--tsr-warn-soft); color: var(--tsr-warn); font-size: .92rem; }
.tsr-grade-card .tsr-files { margin-bottom: 10px; }
.tsr-grade-card__outcome { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; border: 0; padding: 0; margin: 0; }
.tsr-grade-card__outcome legend { font-weight: 600; font-size: .9rem; margin-bottom: 4px; width: 100%; }
.tsr-choice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--tsr-line-strong); border-radius: var(--tsr-radius-sm); cursor: pointer; font-weight: 500; }
.tsr-choice:has(input:checked) { border-color: var(--tsr-brand); background: var(--tsr-brand-soft); }
.tsr-grade-card__score { width: 110px; }

/* --- Manager area --------------------------------------------------------- */

.tsr-team-tabs {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px;
	margin: -12px 0 28px; padding: 6px; border-radius: var(--tsr-radius);
	background: var(--tsr-surface); border: 1px solid var(--tsr-line);
}
.tsr-team-tabs__label { padding: 0 12px 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tsr-muted); }
.tsr-team-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: var(--tsr-radius-sm); color: var(--tsr-ink); font-weight: 600; font-size: .95rem; }
.tsr .tsr-team-tab:hover { background: var(--tsr-bg); text-decoration: none; }
.tsr-team-tab.is-current { background: var(--tsr-brand-soft); color: var(--tsr-brand-strong); }
.tsr-team-tab__count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--tsr-danger); color: #fff; font-size: .75rem; text-align: center; }

.tsr-flash { margin: -12px 0 20px; padding: 12px 18px; border-radius: var(--tsr-radius-sm); background: var(--tsr-done-soft); color: var(--tsr-done); font-weight: 600; }

.tsr-team-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.tsr-team-head .tsr-lead { margin-top: 4px; }
.tsr-person-head__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tsr-back { display: inline-block; margin-bottom: 10px; color: var(--tsr-muted); font-weight: 600; font-size: .92rem; }
.tsr-muted { color: var(--tsr-muted); }

.tsr-unit-filter { display: flex; align-items: center; gap: 10px; }
.tsr-unit-filter label { font-weight: 600; font-size: .9rem; color: var(--tsr-muted); }
.tsr-unit-filter .tsr-input { width: auto; min-width: 220px; }

.tsr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 28px; }
.tsr-stat { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); }
.tsr-stat.is-alert { border-color: var(--tsr-danger); background: var(--tsr-danger-soft); }
.tsr-stat__link { display: flex; flex-direction: column; gap: 2px; color: inherit; }
.tsr .tsr-stat__link:hover { text-decoration: none; }
.tsr-stat__value { color: var(--tsr-ink); font-size: 1.9rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tsr-stat__value--text { font-size: 1.25rem; padding: 6px 0 4px; }
.tsr-stat.is-alert .tsr-stat__value { color: var(--tsr-danger); }
.tsr-stat__label { color: var(--tsr-muted); font-size: .9rem; }
.tsr-stat__sub { color: var(--tsr-faint); font-size: .82rem; }
.tsr-stats--compact .tsr-stat { padding: 14px 18px; }
.tsr-stats--compact .tsr-stat__value { font-size: 1.45rem; }

.tsr-team-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tsr-panel { background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); padding: 20px 22px; margin-bottom: 20px; }
.tsr-panel--flush { padding: 0; overflow: hidden; }
.tsr-schedule.is-paused { background: #fafbfc; }
.tsr-schedule__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.tsr-schedule__name { font-size: 1.1rem; font-weight: 700; }
.tsr-schedule__what { color: var(--tsr-muted); font-size: .92rem; margin-top: 2px; }
.tsr-schedule__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 20px; margin-bottom: 12px; }
.tsr-schedule__facts dt { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--tsr-muted); }
.tsr-schedule__facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.tsr-schedule__last { padding: 8px 12px; border-radius: var(--tsr-radius-sm); background: var(--tsr-done-soft); color: var(--tsr-done); font-size: .92rem; margin-bottom: 12px; }
.tsr-schedule__last.is-failed, .tsr-schedule__last.is-paused { background: var(--tsr-warn-soft); color: var(--tsr-warn); }
.tsr-schedule__history { margin-bottom: 12px; font-size: .92rem; color: var(--tsr-muted); }
.tsr-schedule__history summary { cursor: pointer; font-weight: 600; }
.tsr-schedule__history ul { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.tsr-schedule__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tsr-panel__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.tsr-panel__empty { color: var(--tsr-muted); }
.tsr-panel__more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: .92rem; }

/* Tables: space inside the cells, never against the border. */
.tsr-table-wrap { overflow-x: auto; }
.tsr-data { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tsr-data th,
.tsr-data td { padding: 12px 16px; text-align: left; vertical-align: middle; border-top: 1px solid var(--tsr-line); }
.tsr-data thead th { border-top: 0; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--tsr-muted); background: var(--tsr-bg); }
.tsr-data th:first-child,
.tsr-data td:first-child { padding-left: 20px; }
.tsr-data th:first-child { min-width: 12rem; }
.tsr-data th:last-child,
.tsr-data td:last-child { padding-right: 20px; }
.tsr-panel:not(.tsr-panel--flush) .tsr-data th:first-child,
.tsr-panel:not(.tsr-panel--flush) .tsr-data td:first-child { padding-left: 12px; }
.tsr-data .is-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tsr-data tbody tr:hover { background: #fafbfc; }
.tsr-data__name { font-weight: 700; color: var(--tsr-ink); }
.tsr-data__sub { display: block; font-size: .85rem; color: var(--tsr-muted); }
.tsr-data .tsr-chip { margin-top: 6px; }

.tsr-minibar { display: inline-flex; align-items: center; gap: 10px; min-width: 150px; }
.tsr-minibar__track { flex: 1 1 auto; height: 8px; min-width: 80px; border-radius: 999px; background: #e7eaee; overflow: hidden; }
.tsr-minibar__track span { display: block; height: 100%; border-radius: inherit; background: var(--tsr-brand); }
.tsr-minibar.is-done .tsr-minibar__track span { background: var(--tsr-done); }
.tsr-minibar__num { min-width: 38px; text-align: right; font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.tsr-late { display: flex; flex-direction: column; }
.tsr-late li { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--tsr-line); }
.tsr-late li:first-child { border-top: 0; padding-top: 0; }
.tsr-late a { font-weight: 700; }
.tsr-late__course { font-size: .9rem; }
.tsr-late__due { font-size: .85rem; color: var(--tsr-danger); font-weight: 600; }

.tsr-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 20px; padding: 16px 18px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); }
.tsr-filters__field { display: flex; flex-direction: column; gap: 4px; min-width: 170px; }
.tsr-filters__field--grow { flex: 1 1 240px; }
.tsr-filters__field label { font-size: .82rem; font-weight: 700; color: var(--tsr-muted); }
.tsr-filters__actions { display: flex; align-items: center; gap: 14px; }
.tsr-filters__clear { font-weight: 600; font-size: .92rem; }

.tsr-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tsr-pages a,
.tsr-pages span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--tsr-radius-sm); border: 1px solid var(--tsr-line); background: var(--tsr-surface); font-weight: 600; }
.tsr-pages__current { background: var(--tsr-brand) !important; border-color: var(--tsr-brand) !important; color: var(--tsr-brand-ink); }

/* One person */
.tsr-pcourse__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--tsr-line); }
.tsr-pcourse__title { font-size: 1.15rem; font-weight: 700; }
.tsr-pcourse__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 6px; font-size: .9rem; color: var(--tsr-muted); }
.tsr-pcourse__progress { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: .85rem; min-width: 200px; }
.tsr-psteps { display: flex; flex-direction: column; }
.tsr-psteps__section { padding: 14px 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tsr-muted); }
.tsr-pstep { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--tsr-line); }
.tsr-psteps__section + .tsr-pstep { border-top: 0; }
.tsr-pstep__icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; background: var(--tsr-brand-soft); color: var(--tsr-brand); }
.tsr-pstep__icon .tsr-icon { width: 18px; height: 18px; }
.tsr-pstep.is-completed .tsr-pstep__icon { background: var(--tsr-done); color: #fff; }
.tsr-pstep.is-locked .tsr-pstep__icon { background: #eef0f3; color: var(--tsr-faint); }
.tsr-pstep__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.tsr-pstep__title { font-weight: 600; }
.tsr-pstep__meta { font-size: .88rem; color: var(--tsr-muted); }
.tsr-pstep__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex: 0 0 auto; }
.tsr-button--small { min-height: 36px; padding: 6px 12px; font-size: .88rem; }
.tsr-digest-pref { margin-top: 24px; color: var(--tsr-muted); font-size: .92rem; }
.tsr .tsr-linkbutton { border: 0; background: none; padding: 0 0 0 6px; font: inherit; color: var(--tsr-brand); cursor: pointer; text-decoration: underline; }
.tsr-button--danger { background: var(--tsr-danger); border-color: var(--tsr-danger); color: #fff; }
.tsr .tsr-button--danger:hover { background: #8f1c13; border-color: #8f1c13; color: #fff; }

/* Dialogs */
.tsr-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: var(--tsr-radius); box-shadow: 0 30px 80px -20px rgba(16, 24, 40, .45); color: var(--tsr-ink); }
.tsr-dialog::backdrop { background: rgba(16, 24, 40, .45); }
.tsr-dialog__form { display: flex; flex-direction: column; gap: 14px; padding: 24px 26px; }
.tsr-dialog__title { font-size: 1.2rem; font-weight: 700; }
.tsr-dialog__text { color: var(--tsr-muted); }
.tsr-dialog__list { display: flex; flex-direction: column; gap: 4px; padding-left: 20px; list-style: disc; color: var(--tsr-muted); font-size: .95rem; }
.tsr-dialog__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tsr-dialog__field { display: flex; flex-direction: column; gap: 4px; }
.tsr-dialog__field label { font-weight: 600; font-size: .9rem; }
.tsr-dialog__field[hidden] { display: none; }
.tsr-dialog__row--3 { grid-template-columns: repeat(3, 1fr); }
.tsr-dialog__help { font-size: .85rem; color: var(--tsr-muted); }
.tsr-dialog__check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--tsr-radius-sm); background: var(--tsr-warn-soft); color: var(--tsr-warn); font-size: .92rem; font-weight: 600; }
.tsr-dialog__check input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
.tsr-dialog__error { padding: 10px 14px; border-radius: var(--tsr-radius-sm); background: var(--tsr-danger-soft); color: var(--tsr-danger); font-weight: 600; font-size: .92rem; }
.tsr-dialog__error.is-ok { background: var(--tsr-done-soft); color: var(--tsr-done); }
.tsr-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

/* Grading */
.tsr-grade-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--tsr-line); font-size: .92rem; }
.tsr-grade-card__prompt { font-weight: 700; margin-bottom: 10px; }
.tsr-grade-card__answer { padding: 14px 16px; border-radius: var(--tsr-radius-sm); background: var(--tsr-bg); line-height: 1.65; }
.tsr-grade-card__words { margin: 6px 0 14px; font-size: .85rem; }
.tsr-grade-card__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; }
.tsr-grade-card__points { display: flex; flex-direction: column; gap: 4px; }
.tsr-grade-card__points label,
.tsr-grade-card__feedback label { font-weight: 600; font-size: .9rem; }
.tsr-grade-card__quick { display: flex; align-items: center; gap: 6px; }
.tsr-grade-card__quick .tsr-input { width: 100px; }
.tsr-grade-card__feedback { display: flex; flex-direction: column; gap: 4px; flex: 1 1 280px; }
.tsr-grade-card__form .tsr-dialog__error { flex-basis: 100%; }
.tsr-grade-card__submit { flex: 0 0 auto; }

/* Reports */
.tsr-subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tsr-subtab { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--tsr-line); background: var(--tsr-surface); color: var(--tsr-ink); font-weight: 600; font-size: .92rem; }
.tsr .tsr-subtab:hover { border-color: var(--tsr-brand); text-decoration: none; }
.tsr-subtab.is-current { background: var(--tsr-ink); border-color: var(--tsr-ink); color: #fff; }
.tsr-subtab--end { margin-left: auto; }
.tsr-panel__title--pad { padding: 18px 20px 0; margin-bottom: 14px; }
.tsr-panel__note { padding: 12px 20px 16px; color: var(--tsr-muted); font-size: .9rem; border-top: 1px solid var(--tsr-line); }
.tsr-data tr.is-selected td { background: var(--tsr-brand-soft); }
.tsr-print-only { display: none; }

.tsr-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 20px; }
.tsr-chart { margin: 0; padding: 16px 18px 12px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); }
.tsr-chart__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.tsr-chart__title { font-weight: 700; font-size: .95rem; }
.tsr-chart__total { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.tsr-chart__svg { display: block; width: 100%; height: 110px; }
.tsr-chart__bar { fill: var(--tsr-brand-soft); stroke: none; }
.tsr-chart__bar.is-current { fill: var(--tsr-brand); }
.tsr-chart__bar:hover { fill: var(--tsr-brand-strong); }
.tsr-chart__axis { stroke: var(--tsr-line-strong); stroke-width: 1; }
.tsr-chart__axis-labels { display: flex; justify-content: space-between; margin-top: 4px; font-size: .78rem; color: var(--tsr-muted); }

@media (max-width: 960px) {
	.tsr-team-grid { grid-template-columns: 1fr; }
	.tsr-guide { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.tsr-guide__toc { position: static; }
	.tsr-home-resume__grid, .tsr-home-support__grid, .tsr-support__grid, .tsr-welcome-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.tsr-welcome-hero { padding: 56px 0 64px; }
	.tsr-welcome-hero__tiles { width: 420px; opacity: .3; }
	.tsr-welcome-faq { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.tsr-welcome-section { padding: 56px 0; }
	.tsr-home-team__name { padding-right: 0; border-right: 0; flex-basis: 100%; }
}
@media (max-width: 640px) {
	.tsr-home__inner { padding: 0 16px; }
	.tsr-home-resume { padding: 40px 0 44px; }
	.tsr-home-resume__actions .tsr-home__btn { flex: 1 1 100%; }
	.tsr-home-courses { grid-template-columns: minmax(0, 1fr); }
	.tsr-home-support { padding: 40px 0 48px; }
	.tsr-home-team__row .tsr-home__btn { width: 100%; }
	.tsr-results-course { flex-direction: column; align-items: stretch; gap: 8px; }
	.tsr-results-course__pct { align-self: flex-end; }
	.tsr-guides__item { flex-wrap: wrap; }
}
@media (max-width: 640px) {
	.tsr-guide__terms { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.tsr-guide__terms dd { margin-bottom: 10px; }
}

/* Printing a report (or saving it as PDF): just the report. */
@media print {
	.site-header,
	.site-footer,
	#wpadminbar,
	.skip-link,
	.tsr-team-tabs,
	.tsr-no-print,
	.tsr-flash,
	.tsr-dialog { display: none !important; }
	.tsr-print-only { display: inline; }
	.tsr-guide { display: block; }
	.tsr-guide__toc { display: none !important; }
	html, body, .tsr { background: #fff !important; }
	.tsr-wrap { max-width: none; padding: 0; }
	.tsr-panel { box-shadow: none; }
	.tsr-chart, .tsr-stat { box-shadow: none; break-inside: avoid; }
	.tsr-panel__title { break-after: avoid; }
	.tsr-table-wrap { overflow: visible; }
	.tsr-data tr { break-inside: avoid; }
	.tsr-data .is-wide { display: table-cell !important; }
	.tsr-chart__bar { fill: #cfd8e3; }
	.tsr-chart__bar.is-current { fill: #555; }
	a { color: inherit !important; text-decoration: none !important; }
}

@media (max-width: 960px) {
	.tsr-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 16px; }
	.tsr-sidebar { position: static; max-height: none; overflow: visible; }
	.tsr-sidebar__toggle {
		display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px;
		background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius-sm);
		font-weight: 600; color: var(--tsr-ink); cursor: pointer;
	}
	.tsr-sidebar__pct { margin-left: auto; color: var(--tsr-muted); font-weight: 500; }
	.tsr-sidebar__body { display: none; margin-top: 8px; }
	.tsr-sidebar.is-open .tsr-sidebar__body { display: flex; }
	.tsr-course-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 640px) {
	.tsr-wrap { padding: 24px 16px 56px; }
	.tsr-layout { padding: 12px 16px 56px; }
	.tsr-pager { grid-template-columns: 1fr; }
	.tsr-pager__next { grid-column: 1; }
	.tsr-video__meter { flex-direction: column; align-items: stretch; gap: 8px; }
	.tsr-complete { flex-direction: column; align-items: stretch; }
	.tsr-complete .tsr-button { width: 100%; }
	.tsr-finish { flex-direction: column; align-items: flex-start; }
	.tsr-finish .tsr-button { width: 100%; }
	.tsr-q { padding: 18px 16px; }
	.tsr-data .is-wide { display: none; }
	.tsr-dialog__row { grid-template-columns: 1fr; }
	.tsr-pstep { flex-wrap: wrap; }
	.tsr-pstep__actions { width: 100%; justify-content: flex-start; padding-left: 44px; }
	.tsr-pcourse__progress { align-items: flex-start; }
	.tsr-unit-filter { width: 100%; }
	.tsr-unit-filter .tsr-input { flex: 1 1 auto; min-width: 0; }
	.tsr-filters__field { min-width: 0; flex: 1 1 100%; }
	.tsr-pair { grid-template-columns: 1fr; }
	.tsr-attempt { grid-template-columns: 1fr auto; }
	.tsr-attempt__link { grid-column: 1 / -1; }
	.tsr-quiz-start .tsr-button,
	.tsr-quiz__submit .tsr-button,
	.tsr-result__actions .tsr-button { width: 100%; }
	.tsr-result { padding: 22px 18px; }
	.tsr-result__score { width: 88px; height: 88px; }
}

/* --- Rewards (an add-on) ------------------------------------------------------ */

.tsr-rewards__wearing { margin-top: 6px; font-weight: 600; color: var(--tsr-brand-text); }
.tsr-rewards-hero { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr 1.4fr; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); overflow: hidden; margin-bottom: 36px; }
.tsr-rewards-hero li { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 22px 24px; border-left: 1px solid var(--tsr-line); }
.tsr-rewards-hero li:first-child { border-left: 0; }
.tsr-rewards-hero__main { background: var(--tsr-deep); color: #fff; }
.tsr-rewards-hero__num { font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.tsr-rewards-hero__name { font-size: 1.25rem; font-weight: 700; }
.tsr-rewards-hero__label { font-size: .88rem; color: var(--tsr-muted); }
.tsr-rewards-hero__main .tsr-rewards-hero__label { color: rgba(255, 255, 255, .78); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 600; }

.tsr-rewards-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.tsr-rewards-list { display: flex; flex-direction: column; }
.tsr-rewards-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--tsr-line); }
.tsr-rewards-list li:first-child { border-top: 0; padding-top: 0; }
.tsr-rewards-list strong { flex: 0 0 auto; color: var(--tsr-done); font-variant-numeric: tabular-nums; }
.tsr-rewards-list strong.is-out,
.tsr-rewards-amount.is-out { color: var(--tsr-muted); }
.tsr-rewards-amount { font-weight: 700; color: var(--tsr-done); font-variant-numeric: tabular-nums; }
.tsr-data .is-num { text-align: right; }
.tsr-rewards-wear { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tsr-rewards-wear__label { font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.tsr-rewards-wear__note { font-size: .88rem; margin-top: 10px; }
.tsr-rewards-give { border-color: var(--tsr-brand); background: var(--tsr-brand-soft); }
.tsr-rewards-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; }

/* Badges */
.tsr-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tsr-badge { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius-sm); }
.tsr-badge__icon { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #eef0f3; color: var(--tsr-faint); }
.tsr-badge.is-held { border-color: var(--tsr-brand); background: var(--tsr-brand-soft); }
.tsr-badge.is-held .tsr-badge__icon { background: var(--tsr-brand); color: var(--tsr-brand-ink); }
.tsr-badge__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; font-size: .92rem; }
.tsr-badge__when { font-size: .8rem; color: var(--tsr-muted); }
.tsr-badge.is-held .tsr-badge__when { color: var(--tsr-brand-strong); font-weight: 600; }

/* The shop */
.tsr-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tsr-shop__item { display: flex; flex-direction: column; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); overflow: hidden; box-shadow: var(--tsr-shadow); }
.tsr-shop__picture { display: grid; place-items: center; height: 150px; background: var(--tsr-brand-soft); color: var(--tsr-brand-strong); }
.tsr-shop__picture img { width: 100%; height: 150px; object-fit: cover; }
.tsr-shop__title { padding: 8px 18px; border-radius: 999px; background: var(--tsr-surface); font-weight: 700; box-shadow: var(--tsr-shadow); }
.tsr-shop__avatar { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--tsr-surface); font-weight: 700; font-size: 1.3rem; color: var(--tsr-ink); }
.tsr-shop__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 6px; flex: 1 1 auto; }
.tsr-shop__name { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.tsr-shop__how { font-size: .86rem; color: var(--tsr-muted); }
.tsr-shop__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 20px 18px; }
.tsr-shop__cost { font-weight: 800; font-size: 1.05rem; color: var(--tsr-brand-text); margin-right: auto; font-variant-numeric: tabular-nums; }
.tsr-shop__why { font-size: .88rem; font-weight: 600; color: var(--tsr-muted); }
.tsr-shop__item.is-out .tsr-shop__picture { filter: grayscale(1); opacity: .75; }

/* Orders */
.tsr-code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: .9rem; }
.tsr-code code { padding: 4px 10px; border-radius: 6px; background: var(--tsr-done-soft); color: var(--tsr-done); font-size: 1rem; font-weight: 700; letter-spacing: .04em; user-select: all; }
.tsr-code .tsr-button { min-height: 32px; padding: 2px 12px; font-size: .86rem; }
.tsr-order__reply { display: block; margin-top: 6px; padding-left: 10px; border-left: 3px solid var(--tsr-line-strong); color: var(--tsr-muted); font-size: .9rem; }

/* The leaderboard */
.tsr-board { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.tsr-board__row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius-sm); }
.tsr-board__row.is-me { border-color: var(--tsr-brand); background: var(--tsr-brand-soft); }
.tsr-board__place { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #eef0f3; font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.tsr-board__row.is-top .tsr-board__place { background: var(--tsr-deep); color: #fff; }
.tsr-board__avatar { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--tsr-brand-soft); color: var(--tsr-brand-strong); font-weight: 700; font-size: .9rem; }
.tsr-board__who { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.35; }
.tsr-board__who .tsr-muted { font-size: .85rem; }
.tsr-board__points { flex: 0 0 auto; font-weight: 800; font-size: 1.1rem; color: var(--tsr-brand-text); font-variant-numeric: tabular-nums; }
.tsr-board__me { font-weight: 600; margin-bottom: 14px; }

/* A frame someone bought: a ring round their initials, here and in the site's header. */
.tsr-frame { box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--tsr-ring, #c99a2e); }
.tsr-frame--gold { --tsr-ring: #c99a2e; }
.tsr-frame--silver { --tsr-ring: #8d98a5; }
.tsr-frame--bronze { --tsr-ring: #b0703a; }
.tsr-frame--emerald { --tsr-ring: #1f9d6b; }
.tsr-frame--ocean { --tsr-ring: #1f7ad8; }
.tsr-frame--violet { --tsr-ring: #7a5af8; }
.tsr-frame--rose { --tsr-ring: #e0457b; }
.tsr-frame-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--tsr-ring); box-shadow: none; }

/* What you just gained. Drawn outside the page's own frame, so its colours are its own. */
.tsr-gain {
	position: fixed; z-index: 9999; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 2px;
	padding: 14px 20px; border-radius: 12px; background: #0d1220; color: #fff; font: 700 1rem/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	box-shadow: 0 16px 40px -12px rgba(16, 24, 40, .5); animation: tsr-gain-in .35s ease-out;
}
.tsr-gain[hidden] { display: none; }
.tsr-gain span:first-child { font-size: 1.15rem; }
@keyframes tsr-gain-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* On a course's page: what finishing it is worth. */
.tsr-worth { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--tsr-done-soft); color: var(--tsr-done); font-size: .82rem; font-weight: 700; }

/* Giving points, on a person's page in My team. */
.tsr-points-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.tsr-points-line strong { font-size: 1.15rem; }

@media (max-width: 860px) {
	.tsr-rewards-hero { grid-template-columns: 1fr; }
	.tsr-rewards-hero li { border-left: 0; border-top: 1px solid var(--tsr-line); }
	.tsr-rewards-hero li:first-child { border-top: 0; }
	.tsr-rewards-cols { grid-template-columns: 1fr; }
	.tsr-gain { left: 16px; right: 16px; bottom: 16px; }
}

/* --- The Performance add-on: skills, reviews, the plan, goals ------------- */

/* A skill's colour is never the only sign: each has its own shape, and its words beside it. */
.tsr-dot { display: inline-block; flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; background: var(--tsr-line-strong); }
.tsr-dot--green { background: var(--tsr-done); }
.tsr-dot--amber { background: #d9920a; border-radius: 3px; transform: rotate(45deg) scale(.86); }
.tsr-dot--red { background: var(--tsr-danger); border-radius: 3px; }
.tsr-dot--none { background: transparent; border: 2px solid var(--tsr-line-strong); }

.tsr-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 28px; }
.tsr-skill { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-top: 4px solid var(--tsr-line-strong); border-radius: var(--tsr-radius); }
.tsr-skill.is-green { border-top-color: var(--tsr-done); }
.tsr-skill.is-amber { border-top-color: #d9920a; }
.tsr-skill.is-red { border-top-color: var(--tsr-danger); }
.tsr-skill__head { display: flex; align-items: center; gap: 10px; }
.tsr-skill__name { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.tsr-skill__name .tsr-muted { font-size: .82rem; }
.tsr-skill__status { flex: 0 0 auto; font-size: .82rem; font-weight: 700; color: var(--tsr-muted); }
.tsr-skill.is-green .tsr-skill__status { color: var(--tsr-done); }
.tsr-skill.is-amber .tsr-skill__status { color: var(--tsr-warn); }
.tsr-skill.is-red .tsr-skill__status { color: var(--tsr-danger); }
.tsr-skill__why { font-size: .92rem; color: var(--tsr-muted); }
.tsr-skill__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; }
.tsr-skill__facts li { display: flex; flex-direction: column; line-height: 1.35; }
.tsr-skill__facts .tsr-muted { font-size: .76rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.tsr-skill__move { font-size: .8rem; font-weight: 600; }
.tsr-skill__move.is-up { color: var(--tsr-done); }
.tsr-skill__move.is-down { color: var(--tsr-danger); }
.tsr-skill__courses { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--tsr-line); font-size: .92rem; }
.tsr-skill__courses li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Courses offered for a skill, a review or a goal */
.tsr-suggest { display: flex; flex-direction: column; }
.tsr-suggest > li { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 12px 0; border-top: 1px solid var(--tsr-line); }
.tsr-suggest > li:first-child { border-top: 0; padding-top: 0; }
.tsr-suggest > li:last-child { padding-bottom: 0; }
.tsr-suggest__what { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.tsr-suggest__what .tsr-muted { font-size: .88rem; }
.tsr-suggest form { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
.tsr-suggest__error { color: var(--tsr-danger); font-size: .86rem; font-weight: 600; }

/* What is open for you, at the top of My development */
.tsr .tsr-todo { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; border-color: var(--tsr-brand); background: var(--tsr-brand-soft); color: var(--tsr-ink); }
.tsr .tsr-todo:hover { text-decoration: none; box-shadow: var(--tsr-shadow); }
.tsr-todo > span:first-child { display: flex; flex-direction: column; gap: 2px; }

/* Rating a review */
.tsr-rate { display: flex; flex-direction: column; gap: 18px; }
.tsr-rate__intro { max-width: 72ch; }
.tsr-rate__scale { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 14px; border-radius: var(--tsr-radius-sm); background: var(--tsr-bg); font-size: .88rem; color: var(--tsr-muted); }
.tsr-rate__scale li { display: flex; align-items: center; gap: 8px; }
.tsr-rate__scale strong { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tsr-surface); border: 1px solid var(--tsr-line-strong); color: var(--tsr-ink); font-size: .8rem; }
.tsr-rate__skill { min-width: 0; margin: 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--tsr-line); }
/* Floated, so the fieldset's top line is not broken by it. */
.tsr-rate__skill legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; line-height: 1.4; }
.tsr-rate__skill legend strong { display: block; font-size: 1.02rem; }
.tsr-rate__skill legend .tsr-muted { display: block; font-size: .9rem; }
.tsr-rate__skill legend ~ * { clear: both; }
.tsr-rate__theirs { margin-bottom: 10px; padding: 8px 12px; border-left: 3px solid var(--tsr-brand); background: var(--tsr-brand-soft); border-radius: 0 var(--tsr-radius-sm) var(--tsr-radius-sm) 0; font-size: .9rem; }
.tsr-rate__points { display: flex; flex-wrap: wrap; gap: 8px; }
.tsr-rate__point { position: relative; cursor: pointer; }
.tsr-rate__point input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tsr-rate__point > span:not(.screen-reader-text) { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--tsr-line-strong); background: var(--tsr-surface); font-weight: 700; transition: background-color .15s, border-color .15s; }
.tsr-rate__point:hover > span:not(.screen-reader-text) { border-color: var(--tsr-brand); }
.tsr-rate__point input:checked + span { background: var(--tsr-brand); border-color: var(--tsr-brand); color: var(--tsr-brand-ink); }
.tsr-rate__point input:focus-visible + span { outline: 3px solid var(--tsr-brand); outline-offset: 2px; }
.tsr-rate__note { margin-top: 10px; }
.tsr-rate__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.tsr-rate__share { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; border-color: var(--tsr-brand); background: var(--tsr-brand-soft); }
.tsr-rate__share p { margin-top: 2px; max-width: 64ch; }

/* The two sides of a review, skill by skill */
.tsr-compare td, .tsr-compare th { vertical-align: top; }
.tsr-compare tbody th { font-weight: 600; }
.tsr-compare__gap { display: block; margin-top: 2px; font-size: .82rem; font-weight: 500; color: var(--tsr-warn); }
.tsr-compare__note { display: block; margin-top: 4px; font-size: .88rem; color: var(--tsr-muted); }
.tsr-level { display: inline-flex; align-items: center; gap: 8px; }
.tsr-level b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #eef0f3; font-size: .82rem; }
.tsr-level.is-short b { background: var(--tsr-danger-soft); color: var(--tsr-danger); }

.tsr-review-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 20px; }
.tsr-panel__hint { margin: -6px 0 14px; font-size: .9rem; }

/* The plan, and the lists of reviews waiting */
.tsr-plan { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.tsr-plan__item { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 18px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius-sm); }
.tsr-plan__item.is-done { background: #f8f9fa; }
.tsr-plan__item.is-done strong { color: var(--tsr-muted); font-weight: 600; }
.tsr-plan__what { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; line-height: 1.4; }
.tsr-plan__what .tsr-muted { font-size: .88rem; }
.tsr-plan__what .tsr-home__bar { max-width: 280px; margin-top: 4px; }
.tsr-plan__state { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
.tsr-plan__state .tsr-button, .tsr-suggest .tsr-button, .tsr-goal__actions .tsr-button { min-height: 38px; padding: 6px 14px; font-size: .92rem; }
.tsr-plan__add { display: flex; flex-wrap: wrap; gap: 8px; }
.tsr-panel .tsr-plan { gap: 0; margin-bottom: 0; }
.tsr-panel .tsr-plan__item { padding: 12px 0; border: 0; border-top: 1px solid var(--tsr-line); border-radius: 0; background: none; }
.tsr-panel .tsr-plan__item:first-child { border-top: 0; padding-top: 0; }
.tsr-panel .tsr-plan__item:last-child { padding-bottom: 0; }
/* A section's label with its buttons beside it. */
.tsr-development .tsr-home__head, .tsr-team .tsr-home__head { align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.tsr-development .tsr-home__head .tsr-home__label, .tsr-team .tsr-home__head .tsr-home__label { margin-bottom: 0; }

/* Goals and KPIs */
.tsr-goals { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.tsr-goal { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); }
.tsr-goal.is-closed { background: #f8f9fa; }
.tsr-goal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 20px; }
.tsr-goal__head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tsr-goal__head .tsr-muted { font-size: .88rem; }
.tsr-goal__head .tsr-chip { flex: 0 0 auto; }
.tsr-goal__title { font-size: 1.08rem; line-height: 1.35; }
.tsr-goal__detail { color: var(--tsr-muted); max-width: 80ch; }
.tsr-goal__figure { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; font-variant-numeric: tabular-nums; }
.tsr-goal__figure .tsr-home__bar { max-width: 420px; }
.tsr-goal__courses { padding: 14px 16px; border-radius: var(--tsr-radius-sm); background: var(--tsr-bg); }
.tsr-goal__courses > p { margin-bottom: 10px; font-size: .9rem; }
.tsr-goal__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tsr-goal-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 16px; max-height: 190px; overflow-x: hidden; overflow-y: auto; padding: 4px 2px; }
.tsr-goal-skills label { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: .95rem; }
.tsr-goal-skills input { width: 18px; height: 18px; flex: 0 0 auto; }
fieldset.tsr-dialog__field { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset.tsr-dialog__field > legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: .9rem; }
.tsr-dialog__row .tsr-dialog__field label { font-weight: 500; }

/* A team against its skills */
.tsr-heat th.tsr-heat__skill { min-width: 76px; max-width: 120px; padding-left: 8px; padding-right: 8px; text-align: center; white-space: normal; vertical-align: bottom; line-height: 1.3; }
.tsr-heat td.tsr-heat__cell { text-align: center; padding-left: 8px; padding-right: 8px; }
.tsr-heat tbody th { position: sticky; left: 0; z-index: 1; background: var(--tsr-surface); font-weight: 600; white-space: nowrap; }
.tsr-heat tbody tr:hover th { background: #fafbfc; }
.tsr-heat__key { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: -8px 0 28px; font-size: .86rem; }
.tsr-heat__key > span { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 640px) {
	.tsr-plan__item, .tsr-suggest > li, .tsr-rate__share, .tsr .tsr-todo, .tsr-goal__head { flex-direction: column; align-items: flex-start; }
	.tsr-plan__state, .tsr-suggest form { justify-content: flex-start; }
	.tsr-rate__point > span:not(.screen-reader-text) { width: 44px; height: 44px; }
	.tsr-skills { grid-template-columns: 1fr; }
}

@media print {
	.tsr-plan__state .tsr-button, .tsr-plan__add, .tsr-goal__actions, .tsr-suggest form, .tsr-rate__share { display: none !important; }
}

/* --- The Classroom add-on: sessions, signing in, the register ------------------ */

.tsr-classroom .tsr-home__head { align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.tsr-classroom .tsr-home__head .tsr-home__label { margin-bottom: 0; }
.tsr-sessions { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 28px; }
.tsr-session { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); }
.tsr-session__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.tsr-session__title { font-size: 1.08rem; line-height: 1.35; }
.tsr-session__head .tsr-chip { flex: 0 0 auto; }
.tsr-session__facts { display: flex; flex-direction: column; gap: 2px; font-size: .95rem; }
.tsr-session__course { font-size: .9rem; color: var(--tsr-done); font-weight: 600; }
.tsr-session__details { font-size: .92rem; color: var(--tsr-muted); }
.tsr-session__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.tsr-session__actions .tsr-button { min-height: 38px; padding: 6px 14px; font-size: .92rem; }

.tsr-signcode { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.tsr-signcode > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.tsr-signcode__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tsr-signcode__row .tsr-input { width: auto; flex: 1 1 200px; }
.tsr-signcode input[name="code"] { max-width: 220px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Signing in on a phone */
.tsr-sign__form { display: flex; flex-direction: column; gap: 12px; }
.tsr-sign__pad { width: 100%; height: auto; aspect-ratio: 600 / 220; border: 2px dashed var(--tsr-line-strong); border-radius: var(--tsr-radius-sm); background: #fff; touch-action: none; cursor: crosshair; }
.tsr-sign__actions { display: flex; justify-content: space-between; gap: 10px; }
.tsr-sign__actions .tsr-button--primary { flex: 1 1 auto; min-height: 52px; font-size: 1.05rem; }
.tsr-sign__note { font-size: .86rem; }
.tsr-sign__done { text-align: center; padding: 40px 24px; border-color: var(--tsr-done); background: var(--tsr-done-soft); }
.tsr-sign__done .tsr-title { color: var(--tsr-done); }

/* The register a facilitator runs */
.tsr-register__sign { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.tsr-register__code { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.tsr-register__code .tsr-panel__title { margin-bottom: 0; }
.tsr-register__digits { font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); font-weight: 800; letter-spacing: .14em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--tsr-ink); }
.tsr-register__code p:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tsr-register__qr { flex: 0 0 auto; width: 220px; height: 220px; background: #fff; border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius-sm); }
.tsr-register__qr svg { display: block; width: 100%; height: 100%; }
.tsr-register__table tbody th { font-weight: 600; }
.tsr-register__sig { min-width: 160px; }
.tsr-register__sig img { display: block; height: 44px; width: auto; max-width: 180px; }
.tsr-register__tools { text-align: right; white-space: nowrap; }
.tsr-register__tools .tsr-button { min-height: 38px; padding: 6px 14px; font-size: .92rem; }
.tsr-register__table tr[data-status="attended"] [data-tsr-mark="attended"] { background: var(--tsr-done); border-color: var(--tsr-done); color: #fff; }
.tsr-register__table tr[data-status="absent"] [data-tsr-mark="absent"] { background: var(--tsr-danger-soft); border-color: var(--tsr-danger); color: var(--tsr-danger); }
.tsr-register__found { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.tsr-register__found li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tsr-register__found .tsr-button { min-height: 36px; padding: 4px 12px; font-size: .9rem; }
.tsr-register__paper form { margin-top: 10px; }

@media (max-width: 640px) {
	.tsr-sessions { grid-template-columns: 1fr; }
	.tsr-register__qr { width: 180px; height: 180px; }
	.tsr-register__tools { white-space: normal; }
}

/* The register on paper: names, signatures and how each stood, and nothing to press. */
@media print {
	.tsr-register .tsr-back, .tsr-register .tsr-person-head__actions, .tsr-register__sign, .tsr-register__add, .tsr-register__paper, .tsr-register__tools, .tsr-register .tsr-flash { display: none !important; }
	.tsr-register .tsr-wrap { padding: 0; }
	.tsr-register__table th, .tsr-register__table td { border: 1px solid #999; }
	.tsr-register__sig { height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
	.tsr *, .tsr *::before, .tsr *::after { transition: none !important; animation: none !important; }
	.tsr-gain { animation: none; }
}

/* --- Things a person is asked to do that are not a course (My learning) ----------------------- */
.tsr-home__notices { padding-top: 20px; }
.tsr-home__notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 10px; padding: 14px 18px; background: var(--tsr-brand-soft); border-radius: var(--tsr-radius); color: var(--tsr-ink); }
.tsr-home__notice span { flex: 1 1 320px; }

/* --- Policies (the Policies add-on) ----------------------------------------------------------- */
.tsr-check { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; cursor: pointer; }
.tsr-check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--tsr-brand); }
.tsr-policy__text { padding: 28px; }
.tsr-policy__file { margin-top: 22px; }
.tsr-policy__changed { background: var(--tsr-brand-soft); border-color: transparent; }
.tsr-policy__changed ul { list-style: disc; padding-left: 1.3em; }
.tsr-policy__sign .tsr-account__form { max-width: 520px; margin: 14px 0; }
.tsr-policy__signed p { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.tsr-policy-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.tsr-policy-row .tsr-panel__title { margin-bottom: 2px; }
@media (max-width: 600px) {
	.tsr-policy__text { padding: 20px 18px; }
}

/* --- Assessments (the Assessments add-on) ------------------------------------------------------ */
.tsr-assess-card { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.tsr-assess-card__lines summary { cursor: pointer; font-weight: 600; color: var(--tsr-brand-strong); }
.tsr-assess-card__lines ul { list-style: disc; padding-left: 1.3em; margin-top: 8px; }
.tsr-assess-card__part { list-style: none; margin: 10px 0 2px -1.3em; font-weight: 700; }
.tsr-assess__form { display: flex; flex-direction: column; gap: 12px; }
.tsr-assess__part { margin: 14px 0 0; }
.tsr-assess__line { min-width: 0; margin: 0; border-left: 4px solid var(--tsr-line-strong); }
.tsr-assess__line[data-marked="met"] { border-left-color: var(--tsr-done); }
.tsr-assess__line[data-marked="not_met"] { border-left-color: var(--tsr-danger); }
.tsr-assess__line[data-marked="na"] { border-left-color: var(--tsr-muted); }
.tsr-assess__what { float: left; width: 100%; padding: 0; margin-bottom: 12px; font-weight: 600; font-size: 1.02rem; line-height: 1.4; }
.tsr-assess__marks { clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.tsr-assess__mark { position: relative; }
.tsr-assess__mark input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tsr-assess__mark span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 8px; border: 1px solid var(--tsr-line-strong); border-radius: var(--tsr-radius-sm); background: #fff; font-weight: 600; text-align: center; line-height: 1.25; }
.tsr-assess__mark input:focus-visible + span { box-shadow: 0 0 0 3px var(--tsr-brand-soft); }
.tsr-assess__mark--met input:checked + span { background: var(--tsr-done-soft); border-color: var(--tsr-done); color: var(--tsr-done); }
.tsr-assess__mark--not_met input:checked + span { background: var(--tsr-danger-soft); border-color: var(--tsr-danger); color: var(--tsr-danger); }
.tsr-assess__mark--na input:checked + span { background: #eef0f3; border-color: var(--tsr-muted); }
.tsr-assess__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.tsr-assess__outcome p { margin: 0 0 8px; }
.tsr-assess__outcome p:last-child { margin-bottom: 0; }
.tsr-assess__result { list-style: none; margin: 0; padding: 0; }
.tsr-assess__result li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--tsr-line); }
.tsr-assess__result li:first-child { border-top: 0; }
.tsr-assess__result li > div { display: flex; flex-direction: column; gap: 2px; }
.tsr-assess__result .tsr-chip { flex: 0 0 auto; }
.tsr-assess__result li.tsr-assess__result-part { padding: 10px 20px; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--tsr-muted); background: rgba(0, 0, 0, .025); }
.tsr-data__action { text-align: right; white-space: nowrap; }
@media (max-width: 480px) {
	.tsr-assess__mark span { font-size: .9rem; padding: 6px 4px; }
}
@media (max-width: 640px) {
	/* The list an assessor works from, on a phone: the name, where they stand, and the button, with nothing to scroll sideways for. */
	.tsr-data__action { padding-left: 0; }
	.tsr-data td .tsr-chip { white-space: normal; }
}

/* --- The Check-ins and praise add-on ------------------------------------------------------ */

.tsr-checkins .tsr-wrap--narrow { max-width: 820px; }
.tsr-checkins .tsr-panel { margin-bottom: 18px; }
.tsr-checkins__how { margin-top: 4px; max-width: 62ch; }
.tsr-input--short { max-width: 140px; }
.tsr-back { margin-bottom: 14px; font-weight: 600; }

/* Saying well done on one side, the wall on the other; one under the other on a narrow screen. */
.tsr-praise { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 28px; align-items: start; }
.tsr-praise__say { position: sticky; top: calc(var(--tsr-header-height, 64px) + 16px); }
.tsr-praise__find { display: flex; gap: 8px; margin-bottom: 16px; }
.tsr-praise__find .tsr-input { min-height: 40px; }
.tsr-praise__form { max-width: none; }
.tsr-praise__form textarea { resize: vertical; }
.tsr-praise__who { font-size: .9rem; }
.tsr-wall { display: grid; gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.tsr-wall__item { padding: 16px 18px; background: var(--tsr-surface); border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius); }
.tsr-wall__item.is-mine { border-color: var(--tsr-brand); box-shadow: inset 4px 0 0 var(--tsr-brand); }
.tsr-wall__who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 6px; font-size: .95rem; }
.tsr-wall__who span { color: var(--tsr-muted); font-size: .85rem; }
.tsr-wall__note { margin: 0; font-size: 1.02rem; line-height: 1.5; overflow-wrap: anywhere; }
.tsr-wall__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }

/* One check-in: the questions, the agenda, what was agreed. */
.tsr-checkin__q { padding: 14px 0; border-top: 1px solid var(--tsr-line); }
.tsr-checkin__q:first-of-type { border-top: 0; padding-top: 0; }
.tsr-checkin__ask { margin: 0 0 8px; font-size: 1rem; }
.tsr-checkin__said { margin: 0 0 10px; padding: 10px 14px; border-radius: var(--tsr-radius-sm); background: #f5f6f8; }
.tsr-checkin__said.is-mine { background: var(--tsr-brand-soft); }
.tsr-checkin__said p { margin: 2px 0 0; overflow-wrap: anywhere; }
.tsr-checkin__by { flex: 0 0 auto; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--tsr-muted); }
.tsr-checkin__answer { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.tsr-checkin__answer textarea { resize: vertical; }
.tsr-checkin__list { display: grid; gap: 0; margin: 0 0 14px; padding: 0; list-style: none; }
.tsr-checkin__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--tsr-line); }
.tsr-checkin__list li:first-child { border-top: 0; padding-top: 0; }
.tsr-checkin__list .tsr-checkin__by { min-width: 5.5rem; }
.tsr-checkin__text { flex: 1 1 14rem; overflow-wrap: anywhere; }
.tsr-checkin__text .tsr-chip { margin-left: 6px; }
.tsr-checkin__list li.is-done .tsr-checkin__text { color: var(--tsr-muted); }
.tsr-checkin__add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tsr-checkin__add .tsr-input { flex: 1 1 14rem; min-height: 40px; }
.tsr-checkin__add--action select.tsr-input,
.tsr-checkin__add--action input[type="date"],
.tsr-checkin__move input[type="date"] { flex: 0 1 11rem; }
.tsr-checkin__add .tsr-complete__error { flex: 1 0 100%; }
.tsr-checkin__notes { margin: 0 0 8px; font-size: 1.02rem; line-height: 1.55; overflow-wrap: anywhere; }
.tsr-checkin__wide { max-width: none; }
.tsr-checkin__move { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--tsr-line); }
.tsr-checkin__move label { font-weight: 600; }
.tsr-checkin__past { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.tsr-checkins__note { margin-top: 24px; }
.tsr-data__action .tsr-button + .tsr-button { margin-left: 6px; }

@media (max-width: 860px) {
	.tsr-praise { grid-template-columns: minmax(0, 1fr); }
	.tsr-praise__say { position: static; }
}

/* --- The 360 feedback add-on ------------------------------------------------------------------ */

.tsr-360__pad { padding: 0 20px 16px; margin: 0; }
.tsr-360__held { color: var(--tsr-muted); font-weight: 600; }
.tsr-360__bar { display: inline-block; width: 64px; height: 8px; margin-right: 8px; border-radius: 4px; background: var(--tsr-line); overflow: hidden; vertical-align: middle; }
.tsr-360__bar i { display: block; height: 100%; border-radius: 4px; background: var(--tsr-brand); }
.tsr-360__quotes { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.tsr-360__quotes li { padding: 10px 14px; border-left: 3px solid var(--tsr-brand); border-radius: 0 var(--tsr-radius-sm) var(--tsr-radius-sm) 0; background: #f5f6f8; overflow-wrap: anywhere; }
.tsr-360__ticks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 20px; }
.tsr-360__skill { margin: 0; padding: 16px 0; border: 0; border-top: 1px solid var(--tsr-line); }
.tsr-360__skill:first-of-type { border-top: 0; padding-top: 0; }
.tsr-360__skill legend { padding: 0; margin-bottom: 10px; font-weight: 700; }
.tsr-360__scale { display: flex; flex-wrap: wrap; gap: 8px; }
.tsr-360__scale label { position: relative; cursor: pointer; }
.tsr-360__scale input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tsr-360__scale span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--tsr-line-strong); border-radius: var(--tsr-radius-sm); background: var(--tsr-surface); font-size: .9rem; }
.tsr-360__scale b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--tsr-brand-soft); color: var(--tsr-brand-strong); font-size: .8rem; }
.tsr-360__scale input:checked + span { border-color: var(--tsr-brand); background: var(--tsr-brand-soft); box-shadow: inset 0 0 0 1px var(--tsr-brand); font-weight: 600; }
.tsr-360__scale input:focus-visible + span { outline: 3px solid var(--tsr-brand); outline-offset: 2px; }
.tsr-360__scale .is-none span { color: var(--tsr-muted); border-style: dashed; }
.tsr-360__words + .tsr-360__words { margin-top: 14px; }
.tsr-360__words textarea { resize: vertical; }
.tsr-360__send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.tsr-360__pass { margin-top: 18px; }
.tsr-360__progress { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.tsr-360__progress li { display: grid; gap: 2px; min-width: 120px; padding: 10px 14px; border: 1px solid var(--tsr-line); border-radius: var(--tsr-radius-sm); }
.tsr-360__progress span { color: var(--tsr-muted); font-size: .85rem; }

/* --- The Onboarding add-on --------------------------------------------------------------------- */

/* A journey: how far, then its steps down a line, each with its mark. */
.tsr-journey__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 28px; margin-bottom: 18px; }
.tsr-journey__head .tsr-panel__title { margin-bottom: 4px; }
.tsr-journey__head p { margin: 0; }
.tsr-journey__progress { flex: 0 1 220px; min-width: 160px; }
.tsr-journey__intro { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--tsr-radius-sm); background: var(--tsr-brand-soft); line-height: 1.55; }
.tsr-journey__steps { margin: 0; padding: 0; list-style: none; }
.tsr-journey__step { position: relative; display: flex; gap: 14px; padding: 0 0 20px; }
.tsr-journey__step:last-child { padding-bottom: 0; }
.tsr-journey__step::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: 0; width: 2px; background: var(--tsr-line); }
.tsr-journey__step:last-child::before { display: none; }
.tsr-journey__mark { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; border: 2px solid var(--tsr-line-strong, #c9ced6); border-radius: 6px; background: var(--tsr-surface); }
.tsr-journey__step.is-done .tsr-journey__mark { border-color: var(--tsr-brand); background: var(--tsr-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tsr-journey__step.is-late .tsr-journey__mark { border-color: var(--tsr-danger); }
.tsr-journey__body { flex: 1 1 auto; min-width: 0; }
.tsr-journey__title { margin: 0; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.tsr-journey__title .tsr-chip { margin-left: 6px; font-weight: 600; }
.tsr-journey__step.is-done .tsr-journey__title { color: var(--tsr-muted); font-weight: 500; }
.tsr-journey__note { margin: 4px 0 0; color: var(--tsr-muted); line-height: 1.5; overflow-wrap: anywhere; }
.tsr-journey__whose { margin: 4px 0 0; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--tsr-muted); }
.tsr-journey__do { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.tsr-journey__do:empty { display: none; }
.tsr-journey__upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 100%; }
.tsr-journey__upload .tsr-input { flex: 1 1 14rem; min-height: 40px; padding: 6px 8px; }
.tsr-journey__upload .tsr-complete__error,
.tsr-journey__help { flex: 1 0 100%; }
.tsr-journey__help { color: var(--tsr-muted); font-size: .85rem; }
.tsr-journey__run { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--tsr-line); }
.tsr-journey__run label { font-weight: 600; }
.tsr-journey__run select.tsr-input { flex: 0 1 16rem; }
.tsr-journey__run p { margin: 12px 0 0; }
.tsr-journey__people { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.tsr-journey__people li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--tsr-line); }
.tsr-journey__people li:first-child { border-top: 0; }
.tsr-journey__people a { font-weight: 600; }
.tsr-journey__pick { margin-bottom: 20px; }
.tsr-journey__pick label { font-weight: 600; }
.tsr-journey__pick select.tsr-input { flex: 0 1 18rem; }
.tsr-onboarding .tsr-journey + .tsr-journey { margin-top: 20px; }

/* --- The Surveys add-on ------------------------------------------------------------------------ */

.tsr-survey__terms { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--tsr-radius-sm); background: var(--tsr-brand-soft); line-height: 1.5; }
.tsr-survey__form { display: grid; gap: 14px; }
.tsr-survey__q { margin: 0; min-width: 0; }
/* A legend sits on its fieldset's border unless it is floated: inside the card, like any heading. */
.tsr-survey__ask { float: left; width: 100%; display: flex; gap: 10px; align-items: baseline; padding: 0; margin: 0 0 12px; font-size: 1.02rem; font-weight: 600; line-height: 1.4; }
.tsr-survey__ask span { flex: 0 0 auto; display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--tsr-brand-soft); color: var(--tsr-brand-strong); font-size: .8rem; }
.tsr-survey__ask + * { clear: both; }
.tsr-survey__q textarea { resize: vertical; }
.tsr-survey__ten { gap: 6px; }
.tsr-survey__ten span { justify-content: center; min-width: 40px; padding: 6px 8px; font-weight: 600; }
.tsr-survey__ends { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0 0; color: var(--tsr-muted); font-size: .85rem; }
.tsr-survey__options { display: grid; gap: 10px; }
.tsr-survey__options input[type="radio"] { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--tsr-brand); }
.tsr-survey__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tsr-survey__list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.tsr-survey__list .tsr-panel__title { margin-bottom: 4px; }
.tsr-survey__list p { margin: 0; }
.tsr-survey__list li > div { flex: 1 1 14rem; min-width: 0; }
.tsr-survey__list .tsr-button { flex: 0 0 auto; }

/* Rating a course that is finished. */
.tsr-rate { margin-bottom: 28px; scroll-margin-top: calc(var(--tsr-header-height, 64px) + 16px); }
.tsr-rate__form { display: grid; gap: 12px; justify-items: start; }
.tsr-rate__form textarea { resize: vertical; }
.tsr-rate__stars { margin: 0; padding: 0; border: 0; min-width: 0; }
.tsr-rate__stars i { font-style: normal; color: #d98a00; letter-spacing: 1px; }
