/*
 * MACTEP course player (ADR-011 release 1). Layout from the approved prototype: course outline rail | lesson stage with
 * controls, then key points, transcript and check. The stage stays dark. Theme tokens (--m-*) and the theme's
 * self-hosted fonts; logical properties throughout (RTL-ready); works from 320px.
 */
.mcp {
	--mcp-hl: #FFD479;
	--mcp-done: #1F7A4D;
	--mcp-done-soft: #E3F2EA;
	--mcp-warn: #8A5A00;
	--mcp-stage-muted: #B9C0E6;
	/* Figure parts not being talked about turn gray instead of fading (owner 2026-11-22, option C). Measured: text
	   #9AA0B8 is 6.0:1 on the dimmed box fill, 5.0:1 to 6.7:1 across the stage gradient (#262A6B to #14163A); lines and
	   arrowheads #7F849C are 3.49:1 to 4.7:1 on the stage and 4.2:1 on the dimmed box fill (WCAG 1.4.3 and 1.4.11). */
	--mcp-fig-dim-text: #9AA0B8;
	--mcp-fig-dim-line: #7F849C;
	--mcp-fig-dim-fill: #1C1F4C;
	padding-block: 32px 64px;
	min-width: 0;
}
.m-article:has(> .mcp) { display: block; }
.mcp *, .mcp *::before, .mcp *::after { box-sizing: border-box; }
.mcp button { font: inherit; color: inherit; }
.mcp [hidden] { display: none !important; }

.mcp-pilot { margin: 0 0 20px; padding: 8px 12px; font-size: 14px; color: var(--mcp-warn); border: 1px dashed currentColor; border-radius: 8px; }
.mcp-pilot a { color: var(--m-link); }
.mcp-test-note { margin: -8px 0 20px; padding: 8px 12px; font-size: 14px; color: var(--m-ink); background: #FFF4D6; border: 1px solid #8A5A00; border-radius: 8px; }
.mcp-course .mcp-test-note { margin: 12px 0 0; }

.mcp-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .mcp-layout { grid-template-columns: minmax(0, 1fr); } .mcp-rail { order: 2; } }

/* Outline rail */
.mcp-rail { background: var(--m-white); border: 1px solid var(--m-line); border-radius: 14px; padding: 12px; font-size: 15px; }
.mcp-rail h2 { font: 600 12px/1.3 var(--m-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--m-slate); margin: 16px 10px 6px; }
.mcp-rail-course { margin: 4px 10px 0; font-weight: 600; line-height: 1.35; }
.mcp-rail-course a { color: var(--m-ink); text-decoration: none; }
.mcp-rail-course a:hover { color: var(--m-link); text-decoration: underline; }
.mcp-cp { margin: 8px 10px 0; font-size: 14px; color: var(--m-slate); min-height: 1.4em; }
.mcp-bar { display: block; block-size: 6px; border-radius: 3px; background: var(--m-line); overflow: hidden; margin-block-start: 6px; }
.mcp-bar i { display: block; block-size: 100%; inline-size: 0; background: var(--mcp-done); }
.mcp-lessons { list-style: none; margin: 0; padding: 0; }
.mcp-lesson { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px; border-radius: 10px; line-height: 1.35; }
.mcp-lesson a { color: var(--m-ink); text-decoration: none; font-weight: 600; }
.mcp-lesson a:hover { color: var(--m-link); text-decoration: underline; }
.mcp-lesson small { display: block; color: var(--m-slate); font-size: 13px; margin-block-start: 2px; }
.mcp-st { inline-size: 24px; block-size: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--m-mono); border: 1.5px solid var(--m-line); color: var(--m-slate); }
.mcp-lesson.is-current { background: var(--m-tint); }
.mcp-lesson.is-current .mcp-st { border-color: var(--m-link); color: var(--m-link); }
.mcp-lesson.is-done .mcp-st { background: var(--mcp-done-soft); border-color: var(--mcp-done); color: var(--mcp-done); }
.mcp-lesson.is-locked a { color: var(--m-slate); font-weight: 500; }

.mcp-main { display: grid; gap: 16px; min-width: 0; }

/* Player and stage */
.mcp-player { background: var(--m-midnight); color: var(--m-white); border-radius: 14px; overflow: hidden; overflow: clip; } /* clip, not a scroll container: phone controls can stick */
.mcp-stage { position: relative; aspect-ratio: 16 / 9; container-type: inline-size; background: linear-gradient(160deg, var(--m-midnight) 0%, var(--m-indigo) 100%); overflow: hidden; }
.mcp-slide { position: absolute; inset: 0; padding: 4.5cqw 7cqw 7cqw; /* bottom: one caption line, set low (caption-rules.md) */ display: flex; flex-direction: column; gap: 2cqw; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.mcp-slide.is-on { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.mcp-k { margin: 0; font: 500 max(10px, 1.4cqw)/1.3 var(--m-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--m-peri); }
.mcp-st-title { margin: 0; font: 600 max(16px, 3.6cqw)/1.15 var(--m-head); color: var(--m-white); max-inline-size: 85%; text-wrap: balance; }
.mcp-nb { white-space: nowrap; } /* SHA-1, SHA-256, add-on: no break at the hyphen (player.php mactep_cp_slide_html) */
.mcp-st-text { margin: 0; font-size: max(12px, 1.9cqw); color: var(--mcp-stage-muted); max-inline-size: 75%; }
/* List slides (points, summary, compare): one item per row, highlighted like the checklist rows (owner 2026-11-04:
   "one per line", the pills looked worse than the row layouts). */
.mcp-chips { list-style: none; margin: 0; padding: 0; display: grid; gap: .8cqw; }
.mcp-chip { position: relative; text-wrap: pretty; font: 500 max(11px, calc(1.75cqw * var(--k, 1)))/1.3 var(--m-body); padding: .6cqw 1.4cqw .6cqw 3.2cqw; border-radius: 1cqw; border: max(1px, .15cqw) solid transparent; color: var(--mcp-stage-muted); transition: background-color .3s, color .3s, border-color .3s; }
.mcp-chip::before { content: ""; position: absolute; inset-inline-start: 1.4cqw; inset-block-start: calc(.6cqw + .65em - max(3px, .45cqw)); inline-size: max(6px, .9cqw); block-size: max(6px, .9cqw); border-radius: 50%; border: max(1px, .15cqw) solid var(--m-peri); }
.mcp-chip.is-hl { background: rgba(255, 212, 121, .12); border-color: var(--mcp-hl); color: var(--m-white); }
.mcp-chip.is-hl::before { background: var(--mcp-hl); border-color: var(--mcp-hl); }
.mcp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw; }
.mcp-slide.mcp-l-compare { gap: 1.4cqw; } /* two boxes plus their notes fit the stage at 1024 px (owner: every slide on one screen) */
.mcp-col { border: max(1px, .15cqw) solid rgba(var(--m-peri-rgb), .3); border-radius: 1.2cqw; padding: 1.6cqw; transition: border-color .3s, background-color .3s; }
.mcp-col b { display: block; font: 600 max(12px, calc(2cqw * var(--k, 1)))/1.25 var(--m-head); margin-block-end: .8cqw; color: var(--m-white); }
.mcp-col > span { /* not the no-break span inside the heading (visual review 2026-11-22 A1) */  font-size: max(11px, calc(1.65cqw * var(--k, 1))); color: var(--mcp-stage-muted); }
.mcp-col.is-hl { background: rgba(255, 212, 121, .12); border-color: var(--mcp-hl); }
.mcp-col.is-hl > span { color: var(--m-white); }
.mcp-figure { flex: 1; min-block-size: 0; display: flex; }
.mcp-figure svg { inline-size: 100%; block-size: 100%; }
.mcp-figure svg [data-part] * { transition: fill .3s, stroke .3s; }
/* Inactive parts: gray, full opacity, so their labels stay readable; the lit part keeps its colors (owner 2026-11-22, C). */
.mcp-figure svg .is-dim text, .mcp-figure svg .is-dim tspan { fill: var(--mcp-fig-dim-text); }
.mcp-figure svg .is-dim [stroke]:not([stroke="none"]) { stroke: var(--mcp-fig-dim-line); }
.mcp-figure svg .is-dim :is(polygon, polyline, path, circle, line, g)[fill]:not([fill="none"]), .mcp-figure svg g.is-dim[fill]:not([fill="none"]) { fill: var(--mcp-fig-dim-line); }
.mcp-figure svg g.is-dim[stroke]:not([stroke="none"]) { stroke: var(--mcp-fig-dim-line); }
.mcp-figure svg .is-dim rect[fill]:not([fill="none"]) { fill: var(--mcp-fig-dim-fill); }
.mcp-figure-missing p { margin: 0; font-size: max(12px, 1.7cqw); color: var(--mcp-stage-muted); }

.mcp-cc { position: absolute; inset-inline: 0; inset-block-end: 1.5cqw; display: flex; flex-direction: column; align-items: center; gap: .15em; text-align: center; font-size: max(16px, 2.3cqw); line-height: 1.3; color: var(--m-white); pointer-events: none; }
/* Captions (player-core, docs/training/caption-rules.md): one full-width line on wide stages, two lines on narrow ones,
   each line on its own dark band. */
.mcp-cc > span { max-inline-size: calc(100% - 4cqw); background: rgba(var(--m-night-rgb), .85); padding: .2em .6em; border-radius: .3em; }
.mcp-cc:empty { display: none; }
.mcp-toast { position: absolute; inset-block-start: 3cqw; inset-inline: 0; margin-inline: auto; inline-size: max-content; max-inline-size: 90%; background: var(--m-white); color: var(--m-midnight); font-size: 14px; padding: 6px 12px; border-radius: 8px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.mcp-toast.is-show { opacity: 1; }
.mcp-gate { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(var(--m-night-rgb), .6); padding: 16px; }
.mcp-gate-in { display: grid; gap: 12px; justify-items: center; text-align: center; max-inline-size: 36rem; }
.mcp-gate-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.mcp-big-play { display: inline-flex; gap: 10px; align-items: center; min-block-size: 48px; background: var(--m-white); color: var(--m-midnight) !important; border: 0; border-radius: 999px; padding: 0 26px; font: 600 16px var(--m-head) !important; cursor: pointer; }
.mcp-big-play svg { inline-size: 14px; block-size: 14px; fill: currentColor; }
.mcp-big-play:disabled { opacity: .6; cursor: progress; }
.mcp-restart { min-block-size: 44px; background: transparent; border: 1px solid rgba(var(--m-peri-rgb), .6); color: var(--m-white); border-radius: 999px; padding: 0 18px; cursor: pointer; }
.mcp-gate-msg { margin: 0; font-size: 15px; color: var(--m-white); }
.mcp-gate-msg:empty { display: none; }
.mcp-gate-msg a { color: var(--m-peri); }
.mcp-end { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(var(--m-night-rgb), .82); padding: 16px; }
.mcp-end[hidden] { display: none; }
.mcp-end-in { display: grid; gap: 12px; justify-items: center; text-align: center; max-inline-size: 40rem; }
.mcp-end-msg { margin: 0; font: 600 max(16px, 2.2cqw)/1.3 var(--m-head); color: var(--m-white); }
.mcp-end-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.mcp-end-next, .mcp-end-test { display: inline-flex; align-items: center; min-block-size: 48px; background: var(--m-white); color: var(--m-midnight) !important; border: 0; border-radius: 999px; padding: 0 26px; font: 600 16px var(--m-head) !important; text-decoration: none; cursor: pointer; max-inline-size: 100%; }
.mcp-end-next[hidden], .mcp-end-test[hidden] { display: none; }
.mcp-end-next.is-closed { opacity: .55; cursor: not-allowed; }
.mcp-end-again { min-block-size: 44px; background: transparent; border: 1px solid rgba(var(--m-peri-rgb), .6); color: var(--m-white); border-radius: 999px; padding: 0 18px; cursor: pointer; }
.mcp-end-note { margin: 0; font-size: 14px; color: var(--m-white); }
.mcp-end-note:empty { display: none; }
@container (max-width: 560px) {
	.mcp-gate { background: rgba(var(--m-night-rgb), .9); padding: 8px; }
	.mcp-gate-in { gap: 6px; }
	.mcp-gate-msg { font-size: 13px; line-height: 1.35; }
	.mcp-big-play { min-block-size: 44px; padding: 0 20px; font-size: 15px !important; }
	.mcp-restart { min-block-size: 40px; font-size: 14px; }
}
.mcp-player :focus-visible { outline: 3px solid var(--m-peri); outline-offset: 2px; }

/* Controls */
/* Flex, not a fixed grid: the skip previous / next links exist only where there is a page to go to. */
.mcp-controls { display: flex; gap: 8px; align-items: center; padding: 10px 14px; }
.mcp-controls > .mcp-seek { flex: 1 1 60px; min-inline-size: 60px; }
.mcp-controls > .mcp-vol { flex: 0 0 90px; inline-size: 90px; }
.mcp-controls > .mcp-time { white-space: nowrap; }
.mcp-cbtn { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid rgba(var(--m-peri-rgb), .35); color: var(--m-white); border-radius: 8px; min-inline-size: 44px; block-size: 44px; padding: 0 10px; cursor: pointer; font-size: 13.5px; }
.mcp-cbtn:hover:not(:disabled) { border-color: var(--m-peri); }
.mcp-cbtn:disabled, .mcp-cbtn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; } /* also a Next that is not open yet (owner 2026-11-21: shown, only disabled) */
/* Skip previous / next page in the controls (links); a closed Next looks like a disabled button. */
a.mcp-cbtn { text-decoration: none; }
a.mcp-cbtn.is-closed { opacity: .45; cursor: not-allowed; }
.mcp-cbtn[aria-pressed="true"] { background: rgba(var(--m-peri-rgb), .18); border-color: var(--m-peri); }
.mcp-cbtn svg { inline-size: 16px; block-size: 16px; fill: currentColor; }
/* Subtitles button and language list (owner 2026-11-13, ADR-017): the button keeps one width for "CC", "EN" and "RU";
   the list is exactly as wide as the button, right above it (below with .is-below when there is no room), the codes in
   the button's font size; the selected language is filled. Off shows "CC" dimmed. */
.mcp-ccwrap { position: relative; display: inline-flex; }
.mcp-ccbtn { inline-size: 52px; min-inline-size: 52px; padding: 0; font-weight: 600; letter-spacing: .04em; }
.mcp-ccbtn[aria-expanded="true"] { background: rgba(var(--m-peri-rgb), .18); border-color: var(--m-peri); }
.mcp-ccbtn.is-off { color: var(--mcp-stage-muted); }
.mcp-cclist { position: absolute; inset-inline: 0; inset-block-end: calc(100% + 4px); z-index: 8; margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; background: var(--m-midnight); border: 1px solid rgba(var(--m-peri-rgb), .6); border-radius: 8px; overflow: hidden; box-shadow: 0 8px 24px rgba(var(--m-night-rgb), .5); }
.mcp-cclist.is-below { inset-block-end: auto; inset-block-start: calc(100% + 4px); }
.mcp-cclist[hidden] { display: none; }
.mcp-ccitem { display: block; inline-size: 100%; block-size: 44px; padding: 0; background: transparent; border: 0; color: var(--m-white); font: 600 13.5px var(--m-body); letter-spacing: .04em; text-align: center; cursor: pointer; }
.mcp-ccitem:hover { background: rgba(var(--m-peri-rgb), .22); }
.mcp-ccitem:focus-visible { outline: 3px solid var(--m-peri); outline-offset: -3px; }
.mcp-ccitem[aria-pressed="true"] { background: var(--m-indigo); color: var(--m-white); box-shadow: inset 0 0 0 2px var(--m-peri); }
@media (forced-colors: active) { .mcp-ccitem[aria-pressed="true"] { background: Highlight; color: HighlightText; } .mcp-cclist { border-color: CanvasText; } }
.mcp-time { font: 500 12.5px var(--m-mono); color: var(--mcp-stage-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mcp-vol { inline-size: 100%; accent-color: var(--m-peri); }
.mcp-seek { --mcp-played: 0%; --mcp-reached: 0%; position: relative; block-size: 44px; cursor: pointer; touch-action: none; border-radius: 6px; }
.mcp-seek[aria-disabled="true"] { cursor: not-allowed; opacity: .6; }
.mcp-seek > span { position: absolute; inset-block-start: 20px; block-size: 4px; border-radius: 2px; inset-inline-start: 0; }
.mcp-track { inset-inline-end: 0; background: repeating-linear-gradient(135deg, rgba(var(--m-peri-rgb), .2) 0 4px, rgba(var(--m-peri-rgb), .07) 4px 8px); }
.mcp-watched { inline-size: var(--mcp-reached); background: rgba(var(--m-peri-rgb), .45); }
.mcp-played { inline-size: var(--mcp-played); background: var(--m-peri); }
.mcp-seek > .mcp-knob { inset-block-start: 15px; inline-size: 14px; block-size: 14px; border-radius: 50%; background: var(--m-white); inset-inline-start: var(--mcp-played); margin-inline-start: -7px; }
@media (max-width: 640px) {
	/* Phones: the controls stay on screen while a tall stage scrolls (round 2, design condition). */
	/* Owner 2026-11-09: pinned only once playback has started, so the bar never covers the Start button of an unstarted lesson. */
	.mcp-player.is-started .mcp-controls { position: sticky; inset-block-end: 0; z-index: 3; box-shadow: 0 -1px 0 rgba(var(--m-peri-rgb), .25); }
	.mcp-controls { background: var(--m-midnight); }
	.mcp-controls { display: flex; flex-wrap: wrap; padding: 6px 10px 10px; }
	.mcp-controls > .mcp-seek { flex: 1 0 100%; order: -1; } /* own row above the buttons; the selector must match the base rule to win (2026-11-21) */
	.mcp-time { margin-inline-end: auto; }
	.mcp-vol { flex: 1 1 70px; min-inline-size: 60px; }
}

.mcp-under { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; font-size: 14px; color: var(--m-slate); }
.mcp-save { margin: 0; }
.mcp-save.is-failed { color: var(--mcp-warn); }
.mcp-pref { display: inline-flex; gap: 8px; align-items: center; min-block-size: 32px; cursor: pointer; }
.mcp-nojs { margin: 0; padding: 12px 16px; border: 1px solid var(--m-line); border-radius: 10px; }

/* Expanded (fullscreen fallback) and real fullscreen */
.mcp-player.is-expanded { position: fixed; inset: 0; z-index: 100000; border-radius: 0; display: flex; flex-direction: column; justify-content: center; }
.mcp-player:fullscreen { display: flex; flex-direction: column; justify-content: center; border-radius: 0; }
.mcp-player.is-expanded .mcp-stage, .mcp-player:fullscreen .mcp-stage { inline-size: min(100%, calc((100dvh - 140px) * 16 / 9)); margin-inline: auto; }
/* A growing stage in full screen: full width, capped to the viewport, scrolls (player.js makes it a focusable region). */
.mcp-player.is-expanded .mcp-stage.is-grow, .mcp-player:fullscreen .mcp-stage.is-grow { inline-size: 100%; max-block-size: calc(100dvh - 90px); overflow-y: auto; }
@media (max-width: 640px) { /* phones grow through CSS, without the class */
	.mcp-player.is-expanded .mcp-stage, .mcp-player:fullscreen .mcp-stage { inline-size: 100%; max-block-size: calc(100dvh - 130px); overflow-y: auto; }
}
html.mcp-noscroll, html.mcp-noscroll body { overflow: hidden; }
/* Full screen on wider screens (player.js adds mcp-overlay): the slide takes the whole height, the controls lie over
   its lower edge and hide while playing (is-idle); the caption moves up while the controls show (owner 2026-11-04). */
/* The whole screen is slide (owner 2026-11-04: a black band stayed when the controls hid): screens taller than 16:9
   stretch the stage to the full height, so the slide gets the extra room; wider screens keep the 16:9 stage centered on
   the slide's own background instead of black. */
.mcp-player.mcp-overlay { position: fixed; inset: 0; background: linear-gradient(160deg, var(--m-midnight) 0%, var(--m-indigo) 100%); }
.mcp-player.mcp-overlay .mcp-stage, .mcp-player.mcp-overlay .mcp-stage:not(.is-grow) { inline-size: min(100%, calc(100dvh * 16 / 9)); margin-inline: auto; }
@media (max-aspect-ratio: 16 / 9) {
	.mcp-player.mcp-overlay .mcp-stage, .mcp-player.mcp-overlay .mcp-stage:not(.is-grow) { inline-size: 100%; block-size: 100dvh; aspect-ratio: auto; }
}
.mcp-player.mcp-overlay .mcp-controls { position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 5; padding-block-start: 28px; background: linear-gradient(to bottom, transparent, rgba(var(--m-night-rgb), .92) 45%); transition: opacity .25s ease; }
.mcp-player.mcp-overlay.is-idle .mcp-controls { opacity: 0; pointer-events: none; }
.mcp-player.mcp-overlay.is-idle { cursor: none; }
.mcp-player.mcp-overlay .mcp-cc { transition: transform .25s ease; }
.mcp-player.mcp-overlay:not(.is-idle) .mcp-cc { transform: translateY(-64px); }
@media (prefers-reduced-motion: reduce) { .mcp-player.mcp-overlay .mcp-controls, .mcp-player.mcp-overlay .mcp-cc { transition: none; } }

/* Panel: key points, transcript, check */
.mcp-panel { background: var(--m-white); border: 1px solid var(--m-line); border-radius: 14px; padding: 18px 20px; }
.mcp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-block-end: 12px; }
.mcp-tab { min-block-size: 40px; background: transparent; border: 1px solid var(--m-line); border-radius: 999px; padding: 0 16px; font-size: 14.5px; cursor: pointer; color: var(--m-slate) !important; }
.mcp-tab[aria-selected="true"] { background: var(--m-tint); border-color: var(--m-link); color: var(--m-ink) !important; }
.mcp-ph { font: 600 17px/1.3 var(--m-head); margin: 20px 0 8px; }
.mcp-tp > .mcp-ph:first-child { margin-block-start: 0; }
.mcp.mcp-js .mcp-tp > .mcp-ph:first-child { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* tabs name the panels */
.mcp:not(.mcp-js) .mcp-tp + .mcp-tp { margin-block-start: 28px; }
.mcp-tp ul, .mcp-sources { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.mcp-sources { font-size: 15px; }
.mcp-sources a { color: var(--m-link); }
.mcp-sources-fold { margin-block: 0; }
.mcp-sources-fold > .mcp-sources { margin: 0; padding: 4px 16px 16px 36px; }
.mcp-tp .m-like { margin-block: 20px 4px; }
.mcp-small { font-size: 14px; color: var(--m-slate); margin: 14px 0 0; }
.mcp-details-lock { margin: 0; color: var(--m-slate); } /* owner 2026-11-09: key points and transcript open when the lesson is heard */
.mcp-transcript { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-inline-size: 72ch; }
.mcp-transcript li { padding: 4px 6px; border-radius: 6px; }
.mcp-tr-slide { margin-block-start: 10px; }
.mcp-tr-title { font-weight: 600; } /* the translated page title over a translated transcript */
.mcp-tr-fig { color: var(--m-slate); border-inline-start: 3px solid var(--m-line); }
.mcp-tr-label { font-weight: 600; }
.mcp-ts { font: 500 12.5px var(--m-mono); color: var(--m-link) !important; background: none; border: 0; padding: 2px 4px; min-inline-size: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.mcp:not(.mcp-js) .mcp-ts { pointer-events: none; text-decoration: none; color: var(--m-slate) !important; }
.mcp-check { display: grid; gap: 16px; }
.mcp-check fieldset { border: 1px solid var(--m-line); border-radius: 10px; padding: 12px 14px; margin: 0; }
.mcp-check legend { font-weight: 600; padding: 0 6px; }
.mcp-check label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 4px; cursor: pointer; }
.mcp-check input { margin-block-start: 5px; }
.mcp-fb { font-size: 14.5px; margin: 4px 0 0; }
.mcp-fb:empty { display: none; }
.mcp-fb.is-ok { color: var(--mcp-done); }
.mcp-fb.is-no { color: var(--mcp-warn); }
.mcp-check-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mcp-check .m-btn { cursor: pointer; }
.mcp-retry { min-block-size: 44px; padding: 0 18px; border: 1px solid var(--m-link); border-radius: 999px; background: transparent; color: var(--m-link) !important; cursor: pointer; }
.mcp-result { margin: 0; }
.mcp-result a { color: var(--m-link); }
.mcp-check-locked { margin: 0; color: var(--m-slate); }
.mcp-next-note { display: block; font-weight: 400; font-size: 13px; color: var(--m-slate); }
.mcp-next-note:empty { display: none; }
.mcp-pn { margin-block: 12px 0; }
.mcp-pn a.is-closed { color: var(--m-slate); border-style: dashed; cursor: not-allowed; }
.mcp-pn a.is-closed:hover { border-color: var(--m-line); color: var(--m-slate); }
.mcp-next-btn { margin-inline-start: 4px; }
.mcp-problems { border: 2px solid var(--m-error); border-radius: 12px; padding: 16px 20px; }

/* Final page: completion message, course like, feedback form */
.mcp-final-done { margin-block-start: 24px; border-block-start: 1px solid var(--m-line); padding-block-start: 8px; }
.mcp-final-msg { margin: 0; font-weight: 600; }
.mcp-fbk { margin-block-start: 24px; max-inline-size: 640px; }
.mcp-fbk-h { font: 600 18px/1.35 var(--m-body); margin: 0 0 12px; }
.mcp-fbk-form { display: grid; gap: 14px; }
.mcp-fbk-set { border: 1px solid var(--m-line); border-radius: 10px; padding: 10px 14px; margin: 0; }
.mcp-fbk-set legend { font-weight: 600; padding: 0 6px; }
.mcp-fbk-opts { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.mcp-fbk-opts label { display: flex; gap: 8px; align-items: center; min-block-size: 44px; cursor: pointer; }
.mcp-fbk-field { display: grid; gap: 6px; margin: 0; }
.mcp-fbk-field label { font-weight: 600; }
.mcp-fbk-field textarea { font: inherit; color: var(--m-ink); background: #fff; inline-size: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--m-slate); border-radius: 8px; resize: vertical; } /* #545A70 on white: 6.9:1 (review M2) */
.mcp-fbk-field textarea:focus-visible, .mcp-fbk-opts input:focus-visible, .mcp-fbk-thanks:focus-visible { outline: 3px solid var(--m-link); outline-offset: 2px; } /* #3B47C9 on white: 7:1 */
.mcp-fbk-note { margin: 0; }
.mcp-fbk .m-btn { cursor: pointer; }
.mcp-fbk-msg { margin: 8px 0 0; min-block-size: 1lh; }
.mcp-fbk-thanks { margin: 0; color: var(--mcp-done); font-weight: 600; }

/* Course page */
.mcp-course-progress { margin: 12px 0 0; font-size: 15px; color: var(--m-slate); max-inline-size: 360px; }
.mcp-course-progress .mcp-small { display: block; margin-block-start: 6px; }
.mcp-o-state { display: inline-block; margin-inline-start: 8px; font-size: 13px; color: var(--m-slate); }
.mcp-o-done .mcp-o-state { color: var(--mcp-done); font-weight: 600; }

/* Component badge, timeline, checklist, matrix (same cqw scale and highlight treatment as chips) */
/* Visual review 2026-11-06: the product pill is taller than the kicker line and pushed the kicker and title down on
   slides that have one, so titles jumped between slides. The top row is now exactly one kicker line high on every slide
   (also with a pill and no kicker); the pill sits centered on that line and its negative block margins keep it out of
   the line height (it reaches a little into the slide padding above and the gap below, never the title). The row does
   not wrap: a long kicker wraps inside its own column instead of pushing the pill onto the title. */
.mcp-top { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 2cqw; min-block-size: calc(max(10px, 1.4cqw) * 1.3); }
.mcp-top > .mcp-k { min-inline-size: 0; }
.mcp-comp { flex: none; margin-block: -3cqw; }
.mcp-comp { display: inline-flex; align-items: center; gap: .8cqw; margin-inline: 0; font: 500 max(11px, 1.45cqw)/1.2 var(--m-body); color: var(--m-white); padding: .5cqw 1.2cqw .5cqw .8cqw; border: max(1px, .12cqw) solid rgba(var(--m-peri-rgb), .4); border-radius: 99px; background: rgba(var(--m-night-rgb), .35); }
.mcp-comp-i { inline-size: max(16px, 2.4cqw); block-size: max(16px, 2.4cqw); color: var(--m-peri); flex: none; }

.mcp-tl { list-style: none; margin: 1cqw 0 0; padding: 2.4cqw 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1.6cqw; position: relative; }
.mcp-tl::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: .7cqw; block-size: max(1px, .2cqw); background: rgba(var(--m-peri-rgb), .45); }
.mcp-tl-item { position: relative; display: grid; gap: .6cqw; align-content: start; padding: 1cqw 1.2cqw; border-radius: 1cqw; border: max(1px, .15cqw) solid transparent; transition: background-color .3s, color .3s, border-color .3s; }
.mcp-tl-item::before { content: ""; position: absolute; inset-inline-start: 1.2cqw; inset-block-start: calc(-1.7cqw - max(4px, .6cqw)); inline-size: max(8px, 1.2cqw); block-size: max(8px, 1.2cqw); border-radius: 50%; background: var(--m-midnight); border: max(2px, .25cqw) solid var(--m-peri); }
.mcp-tl-date { font: 600 max(11px, calc(1.45cqw * var(--k, 1)))/1.25 var(--m-mono); color: var(--m-peri); letter-spacing: .02em; }
.mcp-tl-text { font-size: max(11px, calc(1.65cqw * var(--k, 1))); line-height: 1.3; color: var(--mcp-stage-muted); }
.mcp-tl-item.is-hl { background: var(--mcp-hl); border-color: var(--mcp-hl); }
.mcp-tl-item.is-hl .mcp-tl-date, .mcp-tl-item.is-hl .mcp-tl-text { color: var(--m-midnight); }
.mcp-tl-item.is-hl::before { background: var(--mcp-hl); border-color: var(--m-midnight); }

.mcp-ck { list-style: none; margin: 0; padding: 0; display: grid; gap: .8cqw; }
.mcp-ck-item { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2cqw; align-items: center; padding: .5cqw 1.2cqw; border-radius: 1cqw; border: max(1px, .15cqw) solid transparent; transition: background-color .3s, border-color .3s; }
.mcp-ck-text { font-size: max(11px, calc(1.75cqw * var(--k, 1))); line-height: 1.3; text-wrap: pretty; color: var(--mcp-stage-muted); transition: color .3s; }
/* P6 (owner 2026-11-04): every tag is as wide as the longest one, GOOD TO KNOW (12 monospace characters plus their
   letter spacing), so the tag column is even and the text starts after the same gap on every checklist. */
.mcp-tag { justify-self: stretch; box-sizing: content-box; min-inline-size: calc(12ch + .72em); text-align: center; font: 600 max(11px, calc(1.2cqw * var(--k, 1)))/1.2 var(--m-mono); letter-spacing: .06em; padding: .45cqw 1cqw; border-radius: 99px; white-space: nowrap; border: max(1px, .15cqw) solid var(--m-peri); color: var(--m-white); }
.mcp-tag[data-tag="must"] { background: var(--m-white); border-color: var(--m-white); color: var(--m-midnight); }
.mcp-tag[data-tag="if-used"] { border-style: solid; }
.mcp-tag[data-tag="good-to-know"] { border-style: dashed; border-color: rgba(var(--m-peri-rgb), .7); color: var(--mcp-stage-muted); font-weight: 500; }
.mcp-ck-item.is-hl { background: rgba(255, 212, 121, .12); border-color: var(--mcp-hl); }
.mcp-ck-item.is-hl .mcp-ck-text { color: var(--m-white); }

.mcp-mx-wrap { min-inline-size: 0; }
.mcp-mx.is-compact { font-size: max(11px, 1.5cqw); } /* set by player.js when the table would not fit one line per cell */
.mcp-mx { inline-size: 100%; border-collapse: separate; border-spacing: 0; table-layout: auto; /* columns sized by content: one line per cell when the table fits (owner 2026-11-04) */ font-size: max(12px, calc(1.75cqw * var(--k, 1))); line-height: 1.3; }
.mcp-mx th, .mcp-mx td { padding: calc(.65cqw * var(--pk, 1)) 1.1cqw; /* --pk: row padding grown by player.js (P8) */ text-align: start; vertical-align: top; border-block-end: max(1px, .12cqw) solid rgba(var(--m-peri-rgb), .25); transition: background-color .3s, color .3s; overflow-wrap: break-word; hyphens: auto; }
.mcp-mx.is-compact th, .mcp-mx.is-compact td { padding-inline: .6cqw; } /* A3: the stepped-down table also narrows its cell padding, so the 3-column VPC table fits one line per cell at 1024 px */
.mcp-mx thead th { font: 600 max(11px, calc(1.5cqw * var(--k, 1)))/1.25 var(--m-head); color: var(--m-white); border-block-end-color: rgba(var(--m-peri-rgb), .5); }
.mcp-mx tbody th { font-weight: 600; color: var(--m-white); }
.mcp-mx td { color: var(--mcp-stage-muted); }
.mcp-mx tr.is-hl > *, .mcp-mx th.is-hl, .mcp-mx td.is-hl { background: rgba(255, 212, 121, .14); color: var(--m-white); }
.mcp-mx thead th.is-hl { color: var(--mcp-hl); box-shadow: inset 0 calc(-1 * max(2px, .3cqw)) 0 var(--mcp-hl); }
.mcp-mx tr.is-hl > th { box-shadow: inset max(2px, .3cqw) 0 0 var(--mcp-hl); }
/* Narrow stages: each matrix row becomes a card, every cell labelled with its column head (round 2, design). */
@container (max-width: 480px) {
	.mcp-mx, .mcp-mx tbody, .mcp-mx tr, .mcp-mx th, .mcp-mx td { display: block; }
	.mcp-mx thead { display: none; }
	.mcp-mx tbody { display: grid; gap: 8px; }
	.mcp-mx tr { border: 1px solid rgba(var(--m-peri-rgb), .3); border-radius: 8px; padding: 6px 10px; transition: background-color .3s, border-color .3s; }
	.mcp-mx th, .mcp-mx td { padding: 2px 0; border: 0; font-size: 13px; }
	.mcp-mx tbody th { font: 600 14px/1.3 var(--m-head); margin-block-end: 2px; }
	.mcp-mx td::before { content: attr(data-head) ": "; font-weight: 600; color: var(--m-white); }
	.mcp-mx tr.is-hl { background: rgba(255, 212, 121, .14); border-color: var(--mcp-hl); }
	.mcp-mx tr.is-hl > *, .mcp-mx td.is-hl { background: transparent; }
	.mcp-mx td.is-hl { color: var(--m-white); box-shadow: inset 3px 0 0 var(--mcp-hl); padding-inline-start: 8px; }
	.mcp-mx tr.is-hl > th { box-shadow: none; }
}

/* Timelines turn vertical below a 720px stage (six dated items do not fit side by side legibly). */
@container (max-width: 720px) {
	.mcp-tl { grid-auto-flow: row; grid-auto-columns: auto; padding: 0 0 0 0; padding-inline-start: 18px; gap: 6px; }
	.mcp-tl::before { inset-block: 4px; inset-inline: 5px auto; inline-size: 2px; block-size: auto; }
	.mcp-tl-item { grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px; padding: 3px 6px; }
	.mcp-tl-item::before { inset-inline-start: -17px; inset-block-start: 6px; inline-size: 8px; block-size: 8px; }
}
@container (max-width: 560px) {
	.mcp-ck-item { grid-template-columns: max-content minmax(0, 1fr); gap: 10px; padding: 3px 6px; }
	.mcp-tag { font-size: 11px; padding: 2px 7px; }
}
/* Phones: the tag sits above its text, so the text keeps the full width. */
@container (max-width: 420px) {
	.mcp-ck-item { grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 4px 6px; }
	.mcp-tag { justify-self: start; }
	.mcp-ck-text { font-size: 13px; }
}

/* Phones: the stage grows to its tallest slide (slides stack in one grid cell, so the height does not jump between
   slides) and captions get their own band under the slide instead of covering it. */
@media (max-width: 640px) {
	.mcp-stage { aspect-ratio: auto; display: grid; grid-template-columns: minmax(0, 1fr); min-block-size: 56.25vw; }
	.mcp-slide { position: relative; inset: auto; grid-area: 1 / 1; padding: 16px 16px 12px; gap: 10px; }
	.mcp-cc { position: relative; grid-area: 2 / 1; inset: auto; margin: 0 12px 12px; max-inline-size: none; min-block-size: calc(2 * 1.3em + .5em); font-size: 16px; }
	.mcp-cc:empty { display: block; background: transparent; }
}
/* Wider screens: the same growing layout when a slide does not fit the 16:9 stage (set by player.js, review M2). */
.mcp-stage.is-grow { aspect-ratio: auto; display: grid; grid-template-columns: minmax(0, 1fr); }
.mcp-stage.is-grow > .mcp-slide { position: relative; inset: auto; grid-area: 1 / 1; padding-block-end: 3cqw; }
.mcp-stage.is-grow > .mcp-cc { position: relative; grid-area: 2 / 1; inset: auto; margin: 0 7% 3cqw; min-block-size: calc(2 * 1.3em + .5em); }
.mcp-stage.is-grow > .mcp-cc:empty { display: block; background: transparent; }

.mcp-figure { position: relative; }

/* Transcript: on-screen text of timeline, checklist and matrix slides (review M2). */
.mcp-tr-screen ul { margin: 4px 0 0; padding-inline-start: 20px; display: grid; gap: 2px; }
.mcp-tr-mx-wrap { overflow-x: auto; margin-block-start: 4px; }
.mcp-tr-mx { border-collapse: collapse; font-size: 14px; }
.mcp-tr-mx th, .mcp-tr-mx td { border: 1px solid var(--m-line); padding: 4px 8px; text-align: start; vertical-align: top; }
.mcp-tr-mx caption { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Course outline in modules */
/* A module folds (owner 2026-11-21): the summary is the module heading; a finished module is green and says "Complete". */
.mcp-modfold > summary { margin: 14px 10px 2px; cursor: pointer; color: var(--m-slate); }
.mcp-modfold > summary:focus-visible { outline: 2px solid var(--m-link); outline-offset: 3px; border-radius: 4px; }
.mcp-modfold + .mcp-modfold > summary, .mcp-lessons + .mcp-modfold > summary { border-block-start: 1px solid var(--m-line); padding-block-start: 12px; }
.mcp-mod { display: inline; font: 600 13px/1.35 var(--m-body); color: var(--m-ink); margin: 0; }
.mcp-mod-state { margin-inline-start: 8px; font-size: 12px; font-weight: 600; color: var(--mcp-done); white-space: nowrap; }
.mcp-modfold.is-done .mcp-mod { color: var(--mcp-done); }

@media (prefers-reduced-motion: reduce) {
	.mcp-slide, .mcp-slide.is-on, .mcp-chip, .mcp-col, .mcp-toast, .mcp-figure svg [data-part] *, .mcp-tl-item, .mcp-ck-item, .mcp-ck-text, .mcp-mx tr, .mcp-mx th, .mcp-mx td { transition: none; }
}

/* Press feedback (owner 2026-11-23, apple-design review): every player control answers on pointer-down, not on release.
   Transform only; closed or disabled controls do not move. */
:where(.mcp-cbtn, .mcp-big-play, .mcp-tab, .mcp-retry, .mcp-ccitem, .mcp-pn a) { transition-property: transform, background-color, border-color, color; transition-duration: .1s; transition-timing-function: ease-out; }
:where(.mcp-cbtn, .mcp-big-play, .mcp-tab, .mcp-retry, .mcp-ccitem, .mcp-pn a):active:not(:disabled):not([aria-disabled="true"]):not(.is-closed) { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { :where(.mcp-cbtn, .mcp-big-play, .mcp-tab, .mcp-retry, .mcp-ccitem, .mcp-pn a) { transition-duration: 0s; } }
/* More contrast when the visitor asks for it: solid control borders instead of faint ones. */
@media (prefers-contrast: more) {
	.mcp-cbtn { border-color: var(--m-peri); }
	.mcp-tab, .mcp-panel { border-color: var(--m-ink); }
	.mcp-cbtn:disabled, .mcp-cbtn[aria-disabled="true"], a.mcp-cbtn.is-closed { opacity: .6; }
}

/* Print: no player chrome. */
@media print {
	.mcp-player, .mcp-under, .mcp-rail, .mcp-tabs, .mcp-pn, .mcp-end, .mcp-pilot, .mcp-test-note, .mcp-check-btns { display: none !important; }
}

/* One row of controls (owner 2026-11-05): previous, play, next, position, length, captions, sound, full
   screen last. Narrower players drop the volume slider (mute stays), then tighten the buttons. Phones keep the position
   bar on its own row above the buttons. */
.mcp-player { container: mcp-player / inline-size; }
@container mcp-player (max-width: 900px) { .mcp-controls > .mcp-vol { display: none; } }
@container mcp-player (max-width: 720px) {
	.mcp-controls { gap: 5px; padding-inline: 8px; }
	.mcp-controls > .mcp-cbtn { min-inline-size: 38px; padding: 0 6px; }
	.mcp-controls > .mcp-time { font-size: 12px; }
}

/* Course page titles use the site's title size (owner 2026-11-05: every title band the same), which fits the longest
   lesson title on one line on desktop; the width matches the breadcrumb line. */
.single-mactep_lesson .m-titleband h1 { max-inline-size: 1140px; }

/* =====================================================================
   Design system 1.1 (owner-approved 2026-11-23, docs/reviews/redesign-2026-11-23/system): the live player parts in the
   new look. Rules above stay (the tests read some of them); this layer only restyles. Owner player rules hold: no speed,
   no back-10, no transcript, no status lines, prev-play-next always shown, modules fold, captions as text on the stage.
   ===================================================================== */
.mcp { --mcp-done: var(--m-sys-done, #23704f); --mcp-done-soft: var(--m-sys-done-soft, #e3f1ea); }
/* Content first in the document, the rail placed in the first column on wide screens (review M5) */
.mcp-layout { grid-template-columns: 19rem minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.mcp-layout > .mcp-main { grid-column: 2; grid-row: 1; }
.mcp-layout > .mcp-rail { grid-column: 1; grid-row: 1; position: sticky; inset-block-start: calc(4.5rem + var(--wp-admin--admin-bar--height, 0px)); max-block-size: calc(100vh - 5.5rem); overflow: auto; overscroll-behavior: contain; }
@media (max-width: 900px) {
	.mcp-layout { grid-template-columns: minmax(0, 1fr); }
	.mcp-layout > .mcp-main, .mcp-layout > .mcp-rail { grid-column: 1; grid-row: auto; }
	.mcp-layout > .mcp-rail { position: static; max-block-size: none; }
}
/* Outline rail: one surface, folded modules, state circles */
.mcp-rail { background: var(--m-sys-surface, #fff); border: 0; border-radius: var(--m-sys-r-l, 1.375rem); box-shadow: var(--m-sys-shadow-s); padding: 1rem 0.75rem; font-size: 0.9375rem; }
.mcp-rail h2 { font: 600 0.8125rem/1.3 var(--m-sys-font); letter-spacing: 0.01em; text-transform: none; color: var(--m-sys-ink-3); margin: 0.75rem 0.5rem 0.375rem; }
.mcp-rail-course { margin: 0.25rem 0.5rem 0; font: 650 1rem/1.3 var(--m-sys-font); }
.mcp-rail-course a { color: var(--m-sys-ink); }
.mcp-cp { margin: 0.5rem 0.5rem 0; font-size: 0.875rem; color: var(--m-sys-ink-3); }
.mcp-bar { block-size: 0.375rem; border-radius: 999px; background: var(--m-sys-bg-alt); }
.mcp-bar i { background: var(--m-sys-link); border-radius: inherit; }
.mcp-lesson { grid-template-columns: 1.625rem minmax(0, 1fr); gap: 0.625rem; padding: 0.5rem; border-radius: var(--m-sys-r-s, 0.625rem); transition: background-color var(--m-sys-press-t, 100ms) ease-out; }
.mcp-lesson:hover { background: color-mix(in srgb, var(--m-sys-press) 55%, transparent); }
.mcp-lesson a { color: var(--m-sys-ink); font-weight: 500; }
.mcp-lesson a:hover { color: var(--m-sys-ink); text-decoration: none; }
.mcp-lesson small { color: var(--m-sys-ink-3); font-size: 0.8125rem; }
.mcp-st { inline-size: 1.625rem; block-size: 1.625rem; font: 600 0.75rem/1 var(--m-sys-font); border: 1.5px solid var(--m-sys-hair-strong); color: var(--m-sys-ink-3); font-variant-numeric: tabular-nums; }
.mcp-lesson.is-current { background: var(--m-sys-brand-soft); }
.mcp-lesson.is-current a { font-weight: 650; }
.mcp-lesson.is-current .mcp-st { border-color: var(--m-sys-link); color: var(--m-sys-link); }
.mcp-lesson.is-done .mcp-st { background: var(--mcp-done-soft); border-color: var(--mcp-done); color: var(--mcp-done); }
.mcp-lesson.is-locked a { color: var(--m-sys-ink-3); }
.mcp-modfold > summary { display: flex; align-items: center; gap: 0.5rem; margin: 0.25rem 0 0; padding: 0.625rem 0.5rem; min-block-size: 2.75rem; border-radius: var(--m-sys-r-s, 0.625rem); list-style: none; color: var(--m-sys-ink); }
.mcp-modfold > summary::-webkit-details-marker { display: none; }
.mcp-modfold > summary::after { content: ""; flex: none; margin-inline-start: auto; inline-size: 0.45rem; block-size: 0.45rem; border-inline-end: 2px solid var(--m-sys-ink-3); border-block-end: 2px solid var(--m-sys-ink-3); transform: translateY(-0.1rem) rotate(45deg); transition: transform var(--m-sys-spring-t, 500ms) var(--m-sys-spring, ease-out); }
.mcp-modfold[open] > summary::after { transform: translateY(0.1rem) rotate(-135deg); }
.mcp-modfold > summary:hover { background: color-mix(in srgb, var(--m-sys-press) 55%, transparent); }
.mcp-modfold + .mcp-modfold > summary, .mcp-lessons + .mcp-modfold > summary { border-block-start: 0; padding-block-start: 0.625rem; }
.mcp-modfold + .mcp-modfold, .mcp-lessons + .mcp-modfold { border-block-start: 1px solid var(--m-sys-hair); margin-block-start: 0.25rem; padding-block-start: 0.25rem; }
.mcp-mod { font: 600 0.9375rem/1.3 var(--m-sys-font); color: var(--m-sys-ink); }
.mcp-mod-state { font-size: 0.8125rem; color: var(--mcp-done); }
/* Player: dark stage, control bar */
.mcp-main { gap: 1.25rem; }
.mcp-player { background: var(--m-sys-player, #14163a); border-radius: var(--m-sys-r-l, 1.375rem); box-shadow: var(--m-sys-shadow-l); }
.mcp-stage { background: linear-gradient(160deg, var(--m-sys-player, #14163a), var(--m-sys-player-2, #1d2052)); }
.mcp-controls { gap: 0.375rem; padding: 0.5rem 0.75rem; border-block-start: 1px solid rgb(255 255 255 / 0.08); }
.mcp-cbtn { border: 0; border-radius: 50%; min-inline-size: 2.75rem; block-size: 2.75rem; padding: 0; background: transparent; color: #fff; }
.mcp-cbtn:hover:not(:disabled) { background: rgb(255 255 255 / 0.1); }
.mcp-cbtn:active:not(:disabled):not([aria-disabled="true"]):not(.is-closed) { background: rgb(255 255 255 / 0.16); }
.mcp-cbtn svg { inline-size: 1.125rem; block-size: 1.125rem; }
.mcp-cbtn.mcp-play { background: #fff; color: var(--m-sys-player, #14163a); min-inline-size: 3rem; inline-size: 3rem; block-size: 3rem; }
.mcp-cbtn.mcp-play:hover:not(:disabled) { background: #e6eaf8; }
.mcp-cbtn[aria-pressed="true"] { background: rgb(255 255 255 / 0.16); }
.mcp-ccbtn { border-radius: 0.625rem; font: 700 0.75rem/1 var(--m-sys-font); }
.mcp-ccbtn:not(.is-off) { box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.7); }
.mcp-ccbtn[aria-expanded="true"] { background: rgb(255 255 255 / 0.16); }
.mcp-cclist { background: rgb(29 32 82 / 0.97); border: 0; border-radius: var(--m-sys-r-m, 1rem); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 16px 40px -12px rgb(0 0 0 / 0.6); padding: 0.25rem; transform-origin: bottom center; transition: opacity 160ms ease-out, transform var(--m-sys-spring-t, 500ms) var(--m-sys-spring, ease-out); }
.mcp-cclist.is-below { transform-origin: top center; }
@starting-style { .mcp-cclist:not([hidden]) { opacity: 0; transform: scale(0.92); } }
.mcp-ccitem { border-radius: 0.5rem; font: 600 0.8125rem var(--m-sys-font); }
.mcp-time { font: 500 0.8125rem/1 var(--m-sys-font); color: rgb(255 255 255 / 0.85); font-variant-numeric: tabular-nums; }
/* Seek: heard part bright, reached part dimmer, the unheard rest a plain track (no forward seeking) */
.mcp-track { background: rgb(255 255 255 / 0.18); }
.mcp-watched { background: rgb(184 195 232 / 0.55); }
.mcp-played { background: #b8c3e8; }
.mcp-seek > .mcp-knob { box-shadow: 0 1px 3px rgb(0 0 0 / 0.4); transition: transform var(--m-sys-press-t, 100ms) ease-out; }
.mcp-seek:active > .mcp-knob { transform: scale(1.3); }
.mcp-player :focus-visible { outline: 2px solid #b8c3e8; outline-offset: 2px; }
/* Captions: text over the stage, a soft dark band */
.mcp-cc > span { background: rgb(10 11 30 / 0.82); border-radius: 0.375rem; font-family: var(--m-sys-font); letter-spacing: 0; }
/* Start gate, end overlay, toast */
.mcp-gate { background: rgb(10 11 30 / 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.mcp-big-play, .mcp-end-next, .mcp-end-test { min-block-size: 3rem; padding: 0 1.5rem; font: 650 1rem/1 var(--m-sys-font); background: #fff; color: var(--m-sys-player, #14163a) !important; box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.6); }
.mcp-big-play:hover, .mcp-end-next:hover, .mcp-end-test:hover { background: #e6eaf8; }
.mcp-end { background: rgb(10 11 30 / 0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mcp-end-msg { font-family: var(--m-sys-display); letter-spacing: -0.01em; }
.mcp-end-again { border: 0; background: rgb(255 255 255 / 0.12); }
.mcp-end-again:hover { background: rgb(255 255 255 / 0.2); }
.mcp-toast { border-radius: 999px; font-family: var(--m-sys-font); box-shadow: var(--m-sys-shadow-l); }
/* Panels under the player: surface cards; key points, objectives and sources stay gated as live */
.mcp-panel { background: var(--m-sys-surface, #fff); border: 0; border-radius: var(--m-sys-r-l, 1.375rem); box-shadow: var(--m-sys-shadow-s); padding: 1.375rem 1.5rem; }
.mcp-panel h2, .mcp-panel h3 { font-family: var(--m-sys-font); letter-spacing: -0.01em; }
.mcp-tab { border: 0; background: var(--m-sys-bg-alt); color: var(--m-sys-ink-2) !important; font: 600 0.9375rem/1 var(--m-sys-font); }
.mcp-tab[aria-selected="true"] { background: var(--m-sys-btn); color: var(--m-sys-btn-ink) !important; }
.mcp-pn a.is-closed { border-style: dashed; }
/* Phones: slide text stays readable at 390 */
@media (max-width: 640px) {
	.mcp-st-text { font-size: max(13px, 1.9cqw); }
	.mcp-k { font-size: max(11px, 1.4cqw); }
}
@media (prefers-reduced-motion: reduce) {
	.mcp-modfold > summary::after, .mcp-cclist, .mcp-seek > .mcp-knob, .mcp-lesson { transition: none; }
	.mcp-seek:active > .mcp-knob { transform: none; }
	@starting-style { .mcp-cclist:not([hidden]) { opacity: 1; transform: none; } }
}
@media (prefers-reduced-transparency: reduce) {
	.mcp-cclist { background: #1d2052; }
	.mcp-gate, .mcp-end { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(10 11 30 / 0.9); }
}
@media (prefers-contrast: more) {
	.mcp-rail, .mcp-panel, .mcp-player { border: 1px solid var(--m-sys-ink); }
	.mcp-controls { background: #000; }
	.mcp-track { background: rgb(255 255 255 / 0.4); }
}
@media (forced-colors: active) {
	.mcp-lesson.is-current { outline: 2px solid CanvasText; outline-offset: -2px; }
	.mcp-lesson.is-current a { text-decoration: underline; }
	.mcp-st, .mcp-bar { border: 1px solid CanvasText; }
	.mcp-bar i, .mcp-played { background: Highlight; }
	.mcp-cbtn { border: 1px solid ButtonText; }
}

/* Build review fixes (2026-11-23). H2: light literal backgrounds keep a dark text in dark mode; the feedback field
   follows the surface. L5: heard, reached and unheard parts of the seek bar differ in lightness. L10: control buttons
   stay round in narrow players (the subtitles button keeps its fixed width). */
.mcp-test-note { color: #1d1d1f; }
.mcp-test-note a { color: #3a4fa3; }
@media (prefers-color-scheme: dark) {
	.mcp-fbk-field textarea { background: var(--m-sys-surface); color: var(--m-sys-ink); border-color: var(--m-sys-control); }
}
.mcp-track { background: rgb(255 255 255 / 0.14); }
.mcp-watched { background: rgb(255 255 255 / 0.42); }
.mcp-played { background: #b8c3e8; box-shadow: 0 0 0 1px rgb(184 195 232 / 0.6); }
@container mcp-player (max-width: 720px) {
	.mcp-controls > .mcp-cbtn:not(.mcp-ccbtn) { min-inline-size: 2.5rem; inline-size: 2.5rem; block-size: 2.5rem; padding: 0; }
	.mcp-controls > .mcp-cbtn.mcp-play { min-inline-size: 2.75rem; inline-size: 2.75rem; block-size: 2.75rem; }
}
@media (prefers-contrast: more) { .mcp-track { background: rgb(255 255 255 / 0.4); } .mcp-watched { background: rgb(255 255 255 / 0.7); } }
@media (forced-colors: active) { .mcp-played { background: Highlight; } .mcp-watched { background: GrayText; } .mcp-track { background: Canvas; outline: 1px solid CanvasText; } }
