/* The training page's look, copied from the interview page: the same colours, radii and shadows, spacing in 8 px steps,
   type 16 / 20 / 28 / 36 px, weights 400 and 600, motion 150-200 ms ease-out and none under reduced motion. */
:root {
	--bg: #f6f7f9;
	--surface: #ffffff;
	--text: #1b1f24;
	--muted: #5b6470;
	--line: #e3e6ea;
	--brand: #2b59c3;
	--brand-soft: #eaf0fb;
	--brand-strong: #21479e;
	--ok: #1f7a4d;
	--ok-soft: #e9f4ee;
	--warn: #9a5b00;
	--warn-soft: #fbf2e5;
	--bad: #b3261e;
	--bad-soft: #fbeceb;
	--radius: 12px;
	--radius-lg: 16px;
	--shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 12px rgba(16,24,40,.06);
	--font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	--ease: 180ms ease-out;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 400 18px/1.5 var(--font); color: var(--text); background: var(--bg); }
h2 { font-size: 28px; line-height: 1.2; font-weight: 600; margin: 0 0 8px; overflow-wrap: anywhere; }
h3 { font-size: 20px; line-height: 1.2; font-weight: 600; margin: 32px 0 16px; }
p { margin: 0 0 16px; overflow-wrap: anywhere; }
b, strong { font-weight: 600; }
video { max-width: 100%; }
#root > section { animation: fade-in 200ms ease-out both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } }

.top { max-width: 760px; margin: 0 auto; padding: 16px 16px 0; }
.brand-line { margin: 0; font-weight: 600; }
main { max-width: 760px; margin: 16px auto 48px; padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin: 0; padding: 0 24px; font: 600 16px/1.2 var(--font); color: var(--surface); background: var(--brand); border: 1px solid var(--brand); border-radius: var(--radius); cursor: pointer; transition: background-color var(--ease), border-color var(--ease), color var(--ease); }
button:hover:not(:disabled) { background: var(--brand-strong); border-color: var(--brand-strong); }
button.secondary { color: var(--brand); background: var(--surface); border-color: var(--line); }
button.secondary:hover:not(:disabled) { background: var(--brand-soft); border-color: var(--brand-soft); }
button:disabled { color: var(--muted); background: var(--line); border-color: var(--line); cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.msg { margin: 16px 0 0; }
.msg:empty { margin: 0; }
.msg.ok, .msg.warn, .msg.bad { padding: 8px 16px; color: var(--text); border-left: 4px solid; border-radius: var(--radius); }
.msg.ok { background: var(--ok-soft); border-color: var(--ok); }
.msg.warn { background: var(--warn-soft); border-color: var(--warn); }
.msg.bad { background: var(--bad-soft); border-color: var(--bad); }
.calm { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The home screen. */
.count { font-weight: 600; color: var(--brand); }
.now { margin: 24px 0; padding: 16px 24px; border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; background: var(--brand-soft); }
.now p { margin: 0 0 8px; }
.modules { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.modules li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.modules li.open { border-color: var(--brand); font-weight: 600; }
.modules li.locked { color: var(--muted); }
.modules .state { color: var(--muted); font-weight: 400; }

/* A drill or a pretend call. */
.line { font-size: 28px; line-height: 1.3; font-weight: 600; }
.line.hidden-line { color: var(--muted); font-weight: 400; font-size: 20px; }
.card { margin: 0 0 16px; padding: 16px 24px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.card p { margin: 0; }
.they-say { font-size: 20px; font-weight: 600; }
.stage { position: relative; max-width: 640px; margin: 0 auto 16px; overflow: hidden; border-radius: var(--radius-lg); background: var(--text); }
.stage video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.missed { font-weight: 600; }

@media (max-width: 600px) {
	main { margin: 8px 8px 32px; padding: 24px 16px; }
	.line { font-size: 24px; }
	.actions button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}
