/*
 * EDAIC & FRCA Examiner – candidate app.
 *
 * Design notes
 *   Idea      The anaesthetic record: a ruled sheet with a time scale, printed questions in ink
 *             and the candidate's own words in biro blue. Not a chat.
 *   Type      One family, Archivo, self-hosted. Width does the work: condensed for headings,
 *             labels and numerals; normal width for reading.
 *   Colour    Ink on white paper over a pale chart-green ground. Yellow marks what is live
 *             (now on the time scale, the open microphone, the main action). Green, amber and
 *             red appear only as marks. Blue is only ever the candidate.
 *   Geometry  Square, like a printed form. Rules carry structure; nothing has a shadow.
 */

@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url(../fonts/archivo-latin-ext-standard-normal.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url(../fonts/archivo-latin-standard-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.edx-app {
	--edx-ink: #14233b;
	--edx-paper: #ffffff;
	--edx-ground: #edf1ee;
	--edx-rule: #c4d0c9;
	--edx-muted: #55647a;
	--edx-signal: #f4c430;
	--edx-on-signal: #14233b;
	--edx-biro: #1f4fbf;
	--edx-pass: #1e7f4f;
	--edx-mid: #e39b1f;
	--edx-fail: #b4262a;
	--edx-text: 16px;
	--edx-gutter: clamp(18px, 4vw, 56px);
	--edx-inset: max(var(--edx-gutter), calc((100% - 1080px) / 2));

	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	position: relative;
	/* The layout answers to the width of the app, not of the window: the shortcode puts it in a column. */
	container: edx / inline-size;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
	background: var(--edx-ground);
	color: var(--edx-ink);
	font-family: "Archivo", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: var(--edx-text);
	font-stretch: 100%;
	line-height: 1.55;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

.edx-app.edx-dark {
	--edx-ink: #e9eef2;
	--edx-paper: #17232f;
	--edx-ground: #101a24;
	--edx-rule: #2f4051;
	--edx-muted: #9bacbc;
	--edx-biro: #8fb2ff;
	--edx-pass: #3fa776;
	--edx-fail: #dd5b56;
}

.edx-app.edx-embed {
	border: 1px solid var(--edx-rule);
}

/* ---------- reset inside the app (themes style these elements too) ---------- */

.edx-app *,
.edx-app *::before,
.edx-app *::after {
	box-sizing: border-box;
}

.edx-app h1,
.edx-app h2,
.edx-app h3,
.edx-app h4,
.edx-app h5,
.edx-app p,
.edx-app ul,
.edx-app ol,
.edx-app dl,
.edx-app dd,
.edx-app figure {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
}

.edx-app button,
.edx-app input,
.edx-app select,
.edx-app textarea {
	font: inherit;
	font-stretch: inherit;
	color: inherit;
	margin: 0;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: none;
}

.edx-app button {
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
	border-radius: 0;
	min-height: 0;
	line-height: inherit;
	text-align: inherit;
}

.edx-app button:disabled {
	cursor: default;
	opacity: .45;
}

.edx-app a {
	color: inherit;
}

.edx-app :focus-visible {
	outline: 2px solid var(--edx-ink);
	outline-offset: 2px;
}

.edx-app img {
	max-width: 100%;
	height: auto;
}

.edx-hide {
	display: none !important;
}

.edx-icon {
	display: inline-flex;
	flex: none;
}

/* ---------- type roles ---------- */

.edx-app h1 {
	font-size: clamp(39px, 5.4vw, 61px);
	line-height: .98;
	font-weight: 700;
	font-stretch: 68%;
	letter-spacing: -.01em;
}

.edx-app h2 {
	font-size: 25px;
	line-height: 1.1;
	font-weight: 650;
	font-stretch: 75%;
}

.edx-app h3 {
	font-size: 20px;
	line-height: 1.2;
	font-weight: 650;
	font-stretch: 80%;
}

.edx-app .edx-lead {
	font-size: 18px;
	line-height: 1.5;
	max-width: 62ch;
	margin-top: 20px;
}

.edx-label,
.edx-app dt,
.edx-app th {
	font-size: 14px;
	font-weight: 600;
	font-stretch: 85%;
	color: var(--edx-muted);
}

.edx-fine {
	font-size: 14px;
	color: var(--edx-muted);
	max-width: 70ch;
}

.edx-num {
	font-variant-numeric: tabular-nums;
}

/* ---------- buttons ---------- */

.edx-app .edx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1.5px solid var(--edx-ink);
	border-radius: 3px;
	background: transparent;
	color: var(--edx-ink);
	font-weight: 650;
	font-stretch: 88%;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.edx-app .edx-btn:hover {
	background: var(--edx-ink);
	color: var(--edx-paper);
}

.edx-app .edx-btn-primary {
	background: var(--edx-signal);
	border-color: var(--edx-signal);
	color: var(--edx-on-signal);
}

.edx-app .edx-btn-primary:hover {
	background: var(--edx-ink);
	border-color: var(--edx-ink);
	color: var(--edx-paper);
}

.edx-app .edx-btn-danger {
	border-color: var(--edx-fail);
	color: var(--edx-fail);
}

.edx-app .edx-btn-danger:hover {
	background: var(--edx-fail);
	color: #fff;
}

.edx-app .edx-btn-lg {
	padding: 14px 24px;
	font-size: 18px;
}

.edx-app .edx-btn-sm {
	padding: 6px 12px;
	font-size: 14px;
}

.edx-app .edx-link {
	font-weight: 600;
	font-stretch: 88%;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

.edx-app .edx-link:hover {
	text-decoration-color: var(--edx-signal);
	text-decoration-thickness: 3px;
}

.edx-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
}

/* ---------- top bar ---------- */

.edx-bar {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 60px;
	padding: 0 var(--edx-inset);
	background: var(--edx-paper);
	border-bottom: 1px solid var(--edx-rule);
}

.edx-brand {
	display: flex;
	align-items: center;
	flex: none;
	font-weight: 700;
	font-stretch: 68%;
	font-size: 22px;
	text-decoration: none;
}

.edx-brand img {
	display: block;
	max-height: 30px;
	width: auto;
}

.edx-brand .edx-logo-dark,
.edx-dark .edx-brand .edx-logo-light {
	display: none;
}

.edx-dark .edx-brand .edx-logo-dark {
	display: block;
}

.edx-nav {
	display: flex;
	align-items: stretch;
	gap: 24px;
	align-self: stretch;
	flex: 1;
	min-width: 0;
}

.edx-app .edx-nav > * {
	display: flex;
	align-items: center;
	font-weight: 600;
	font-stretch: 88%;
	text-decoration: none;
	border-bottom: 3px solid transparent;
	border-top: 3px solid transparent;
	white-space: nowrap;
}

.edx-app .edx-nav > *:hover,
.edx-app .edx-nav > .edx-on {
	border-bottom-color: var(--edx-signal);
}

.edx-sessionhead {
	display: none;
	flex: 1;
	min-width: 0;
	align-items: baseline;
	gap: 14px;
}

.edx-sessionhead strong {
	font-weight: 700;
	font-stretch: 75%;
	font-size: 20px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.edx-sessionhead span {
	color: var(--edx-muted);
	font-weight: 600;
	font-stretch: 85%;
	white-space: nowrap;
}

.edx-in-session .edx-nav {
	display: none;
}

.edx-in-session .edx-sessionhead {
	display: flex;
}

.edx-tools {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
}

.edx-app:not(.edx-in-session) .edx-only-session {
	display: none;
}

.edx-app .edx-tool {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 10px;
	border-radius: 3px;
	font-weight: 600;
	font-stretch: 88%;
	font-size: 15px;
}

.edx-app .edx-tool:hover {
	background: var(--edx-ground);
}

.edx-app .edx-tool.edx-danger {
	color: var(--edx-fail);
}

.edx-menu-btn {
	display: none !important;
}

.edx-account {
	position: relative;
}

.edx-account > summary {
	list-style: none;
	cursor: pointer;
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border: 1.5px solid var(--edx-ink);
	border-radius: 50%;
	font-weight: 700;
	font-stretch: 80%;
	font-size: 14px;
}

.edx-account > summary::-webkit-details-marker {
	display: none;
}

.edx-account-menu {
	position: absolute;
	right: 0;
	top: 44px;
	z-index: 20;
	width: 240px;
	padding: 14px 16px;
	background: var(--edx-paper);
	border: 1px solid var(--edx-ink);
	display: grid;
	gap: 6px;
	font-size: 15px;
}

.edx-account-menu strong {
	font-weight: 650;
}

.edx-account-menu span {
	color: var(--edx-muted);
	font-size: 14px;
}

.edx-account-menu a {
	margin-top: 4px;
}

/* ---------- stage and views ---------- */

.edx-stage {
	min-height: 0;
	min-width: 0;
	position: relative;
}

.edx-view {
	display: none;
	height: 100%;
	overflow-y: auto;
	padding: clamp(28px, 5vw, 64px) var(--edx-inset) 72px;
}

.edx-view.edx-on {
	display: block;
}

.edx-app .edx-back {
	display: inline-block;
	margin-bottom: 30px;
}

.edx-notice {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px 24px;
	margin-top: 28px;
	padding: 14px 18px;
	background: var(--edx-paper);
	border-left: 6px solid var(--edx-signal);
}

.edx-notice p {
	max-width: 70ch;
}

/* ---------- examination timetable ---------- */

.edx-timetable {
	margin-top: 36px;
	border-top: 2px solid var(--edx-ink);
}

.edx-tt-head,
.edx-tt-row {
	display: grid;
	grid-template-columns: minmax(220px, 1.1fr) minmax(0, 2fr) auto;
	gap: 16px 36px;
	align-items: center;
	padding: 26px 0;
	border-bottom: 1px solid var(--edx-rule);
}

.edx-tt-head {
	padding: 10px 0 8px;
}

.edx-tt-head .edx-tt-facts {
	gap: 0 24px;
}

.edx-tt-head .edx-tt-actions {
	visibility: hidden;
	height: 0;
	overflow: hidden;
}

.edx-tt-row dt {
	display: none;
}

.edx-app .edx-tt-name h2 {
	font-size: clamp(31px, 3.4vw, 39px);
	line-height: 1;
	font-weight: 700;
	font-stretch: 68%;
}

.edx-tt-name p {
	margin-top: 8px;
	color: var(--edx-muted);
	font-size: 14px;
	font-weight: 600;
	font-stretch: 85%;
}

.edx-tt-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px 24px;
}

.edx-tt-facts dd {
	font-size: 15px;
	line-height: 1.4;
}

.edx-tt-actions {
	display: flex;
	gap: 10px;
}

.edx-home .edx-fine {
	margin-top: 18px;
}

.edx-block-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin-top: 64px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--edx-ink);
}

/* ---------- tables (logbook) ---------- */

.edx-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.edx-app .edx-table th {
	text-align: left;
	padding: 10px 16px 8px 0;
	border-bottom: 1px solid var(--edx-rule);
	font-weight: 600;
}

.edx-table td {
	padding: 12px 16px 12px 0;
	border-bottom: 1px solid var(--edx-rule);
	vertical-align: middle;
}

.edx-table td:last-child,
.edx-table th:last-child {
	padding-right: 0;
	text-align: right;
}

.edx-table tbody tr:hover {
	background: var(--edx-paper);
}

.edx-table .edx-cell-title {
	font-weight: 600;
}

.edx-table .edx-cell-sub {
	display: block;
	color: var(--edx-muted);
	font-size: 14px;
	font-weight: 400;
}

.edx-result {
	display: inline-block;
	padding: 1px 8px 2px;
	font-weight: 650;
	font-stretch: 85%;
	font-size: 14px;
}

.edx-result-pass {
	background: var(--edx-pass);
	color: #fff;
}

.edx-result-borderline {
	background: var(--edx-mid);
	color: #14233b;
}

.edx-result-fail {
	background: var(--edx-fail);
	color: #fff;
}

.edx-result-open {
	border: 1.5px solid var(--edx-ink);
}

.edx-logbook-tools {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 18px;
}

/* ---------- practice picker ---------- */

.edx-pick {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 0 48px;
	margin-top: 36px;
	border-top: 2px solid var(--edx-ink);
}

.edx-pick-col > .edx-label {
	display: block;
	padding: 12px 0 8px;
	border-bottom: 1px solid var(--edx-rule);
}

.edx-app .edx-topic,
.edx-app .edx-scenario {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 12px 0;
	border-bottom: 1px solid var(--edx-rule);
}

.edx-app .edx-topic {
	font-weight: 600;
	font-stretch: 88%;
	padding-left: 12px;
	border-left: 4px solid transparent;
}

.edx-app .edx-topic:hover {
	border-left-color: var(--edx-rule);
}

.edx-app .edx-topic.edx-on {
	border-left-color: var(--edx-signal);
	background: var(--edx-paper);
}

.edx-app [hidden] {
	display: none !important;
}

.edx-app .edx-search {
	display: block;
	width: 100%;
	min-height: 46px;
	margin: 0 0 4px;
	padding: 10px 2px 8px;
	border: 0;
	border-bottom: 2px solid var(--edx-ink);
	border-radius: 0;
	background: transparent;
	color: var(--edx-ink);
	font: inherit;
	outline: 0;
	appearance: none;
	-webkit-appearance: none;
}

.edx-app .edx-search::placeholder {
	color: var(--edx-muted);
	opacity: 1;
}

.edx-app .edx-search:focus-visible {
	border-bottom-color: var(--edx-biro);
	box-shadow: 0 2px 0 0 var(--edx-biro);
}

.edx-app .edx-scenario:hover {
	background: var(--edx-paper);
}

.edx-scenario strong {
	font-weight: 600;
}

.edx-scenario span {
	flex: none;
	font-weight: 650;
	font-stretch: 88%;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

.edx-app .edx-scenario:hover span {
	text-decoration-color: var(--edx-signal);
	text-decoration-thickness: 3px;
}

/* ---------- briefing ---------- */

.edx-app .edx-brief {
	margin: 36px 0 32px;
	border-top: 2px solid var(--edx-ink);
}

.edx-brief > div {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 8px 36px;
	padding: 16px 0;
	border-bottom: 1px solid var(--edx-rule);
}

.edx-app .edx-brief dt {
	font-size: 18px;
	color: var(--edx-ink);
	font-weight: 650;
	font-stretch: 80%;
}

.edx-brief dd {
	max-width: 62ch;
}

/* ---------- the time strip ---------- */

.edx-strip {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0 36px;
	align-items: center;
	padding: 16px var(--edx-inset) 10px;
	background: var(--edx-paper);
	border-bottom: 1px solid var(--edx-rule);
}

.edx-strip-track {
	position: relative;
	height: 34px;
	border-left: 1.5px solid var(--edx-ink);
	border-right: 1.5px solid var(--edx-ink);
	border-bottom: 1.5px solid var(--edx-ink);
	background-image: linear-gradient(to right, var(--edx-rule) 1px, transparent 1px);
	background-size: calc(100% / var(--edx-minutes, 25)) 10px;
	background-repeat: repeat-x;
	background-position: left bottom;
}

.edx-strip-part {
	position: absolute;
	top: 0;
	bottom: 10px;
	min-width: 2px;
	background: color-mix(in srgb, var(--edx-ink) 16%, transparent);
	border-right: 2px solid var(--edx-paper);
	overflow: hidden;
	font-size: 13px;
	font-weight: 650;
	font-stretch: 80%;
	line-height: 24px;
	padding-left: 6px;
	white-space: nowrap;
}

.edx-strip-part.edx-live {
	background: var(--edx-signal);
	color: var(--edx-on-signal);
	border-right: 0;
}

.edx-strip-due {
	position: absolute;
	top: -4px;
	bottom: 0;
	width: 0;
	border-left: 1.5px dashed var(--edx-ink);
}

.edx-strip-cursor {
	position: absolute;
	top: -6px;
	bottom: -1px;
	width: 2px;
	margin-left: -1px;
	background: var(--edx-ink);
}

.edx-strip-cursor::before {
	content: "";
	position: absolute;
	top: -1px;
	left: -4px;
	border: 5px solid transparent;
	border-top-color: var(--edx-ink);
	border-bottom: 0;
}

.edx-strip-scale {
	position: relative;
	height: 20px;
	margin-top: 3px;
	font-size: 13px;
	color: var(--edx-muted);
	font-variant-numeric: tabular-nums;
}

.edx-strip-scale span {
	position: absolute;
	transform: translateX(-50%);
	white-space: nowrap;
}

.edx-strip-scale span:first-child {
	transform: none;
}

.edx-strip-scale span:last-child {
	transform: translateX(-100%);
}

.edx-strip-clock {
	text-align: right;
	min-width: 150px;
}

.edx-strip-clock b {
	display: block;
	font-size: 49px;
	line-height: .95;
	font-weight: 700;
	font-stretch: 62%;
	font-variant-numeric: tabular-nums;
}

.edx-strip-clock.edx-low b {
	color: var(--edx-fail);
}

.edx-strip-clock span {
	display: block;
	font-size: 14px;
	color: var(--edx-muted);
	font-weight: 600;
	font-stretch: 85%;
}

.edx-strip-clock .edx-over {
	color: var(--edx-fail);
}

/* ---------- reading time ---------- */

.edx-view.edx-prep.edx-on,
.edx-view.edx-room.edx-on {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
}

.edx-prep-body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: clamp(24px, 4vw, 48px) var(--edx-inset) 56px;
}

.edx-sheet {
	margin-top: 26px;
	padding: clamp(22px, 3.4vw, 44px);
	background: var(--edx-paper);
	border-top: 2px solid var(--edx-ink);
	font-size: calc(var(--edx-text) + 3px);
	line-height: 1.6;
}

.edx-sheet p {
	max-width: 66ch;
}

.edx-sheet p + p {
	margin-top: 14px;
}

.edx-prep-body .edx-row {
	margin-top: 26px;
}

/* ---------- the record ---------- */

.edx-record {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 26px var(--edx-inset) 20px;
}

.edx-entry {
	display: grid;
	grid-template-columns: 62px 104px minmax(0, 1fr);
	gap: 0 14px;
	padding: 9px 0;
}

.edx-entry time {
	color: var(--edx-muted);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	padding-top: 3px;
}

.edx-who {
	font-weight: 650;
	font-stretch: 85%;
	padding-top: 1px;
}

.edx-says {
	max-width: 68ch;
	overflow-wrap: anywhere;
}

.edx-says p + p {
	margin-top: 8px;
}

.edx-entry-you .edx-says,
.edx-entry-you .edx-who {
	color: var(--edx-biro);
}

.edx-entry-examiner.edx-current {
	padding: 18px 0 14px;
}

.edx-entry-examiner.edx-current .edx-says {
	font-size: clamp(22px, 2.3vw, 28px);
	line-height: 1.3;
	font-weight: 500;
	font-stretch: 92%;
	max-width: 30em;
}

.edx-entry-case .edx-says {
	padding: 14px 18px;
	background: var(--edx-paper);
	border-left: 4px solid var(--edx-ink);
}

.edx-says.edx-veiled p {
	color: transparent;
	background: repeating-linear-gradient(to bottom, transparent 0 .45em, color-mix(in srgb, var(--edx-ink) 22%, transparent) .45em 1.1em, transparent 1.1em 1.55em);
	cursor: pointer;
	user-select: none;
}

.edx-app .edx-figure {
	display: block;
	margin-top: 14px;
	border: 1px solid var(--edx-rule);
	background: var(--edx-paper);
	line-height: 0;
}

.edx-figure img {
	display: block;
	max-height: 300px;
}

.edx-note-row {
	padding: 10px 0 10px 76px;
	color: var(--edx-muted);
	font-size: 14px;
}

.edx-note-row .edx-link {
	margin-left: 12px;
}

.edx-waiting::after {
	content: "";
	display: inline-block;
	width: 1.2em;
	text-align: left;
	animation: edx-dots 1.4s steps(4, end) infinite;
}

@keyframes edx-dots {
	0% { content: ""; }
	25% { content: "."; }
	50% { content: ".."; }
	75% { content: "..."; }
}

/* ---------- answer line ---------- */

.edx-composer {
	flex: none;
	padding: 14px var(--edx-inset) 16px;
	background: var(--edx-paper);
	border-top: 1px solid var(--edx-rule);
}

.edx-composer.edx-off {
	display: none;
}

.edx-answer {
	display: flex;
	align-items: flex-end;
	gap: 12px;
}

.edx-app .edx-mic {
	flex: none;
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border: 1.5px solid var(--edx-ink);
	border-radius: 3px;
}

.edx-app .edx-mic.edx-live {
	background: var(--edx-signal);
	border-color: var(--edx-signal);
	color: var(--edx-on-signal);
}

.edx-app .edx-mic.edx-hearing {
	outline: 3px solid color-mix(in srgb, var(--edx-signal) 45%, transparent);
	outline-offset: 2px;
}

.edx-app .edx-input {
	flex: 1;
	min-width: 0;
	min-height: 46px;
	max-height: 180px;
	padding: 10px 2px 8px;
	border: 0;
	border-bottom: 2px solid var(--edx-ink);
	border-radius: 0;
	background: transparent;
	color: var(--edx-biro);
	resize: none;
	outline: 0;
	line-height: 1.5;
}

.edx-app .edx-input::placeholder {
	color: var(--edx-muted);
}

.edx-app .edx-input:focus {
	border-bottom-color: var(--edx-biro);
}

.edx-composer-foot {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	min-height: 22px;
	margin-top: 8px;
	padding-left: 58px;
	font-size: 14px;
	color: var(--edx-muted);
}

.edx-voiceline {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.edx-voiceline.edx-interim {
	color: var(--edx-biro);
}

/* ---------- debrief (marking sheet) ---------- */

.edx-debrief {
	margin-top: 18px;
	margin-bottom: 8px;
	padding: 22px clamp(18px, 3vw, 30px) 24px;
	background: var(--edx-paper);
	border-top: 2px solid var(--edx-ink);
}

.edx-debrief > header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 14px;
	margin-bottom: 12px;
}

.edx-debrief-score {
	font-weight: 700;
	font-stretch: 75%;
	font-size: 20px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.edx-ex {
	display: grid;
	grid-template-columns: 92px 84px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding: 8px 0;
	border-top: 1px solid var(--edx-rule);
}

.edx-ex > span {
	padding-top: 2px;
}

.edx-ex p {
	max-width: 62ch;
}

.edx-boxes {
	display: inline-flex;
	gap: 3px;
}

.edx-boxes i {
	font-style: normal;
	width: 24px;
	height: 24px;
	display: grid;
	place-items: center;
	border: 1px solid var(--edx-rule);
	font-size: 13px;
	font-weight: 600;
	color: var(--edx-muted);
	font-variant-numeric: tabular-nums;
}

.edx-boxes i.edx-on {
	border-color: transparent;
	color: #fff;
}

.edx-boxes i.edx-m2 {
	background: var(--edx-pass);
}

.edx-boxes i.edx-m1 {
	background: var(--edx-mid);
	color: #14233b;
}

.edx-boxes i.edx-m0 {
	background: var(--edx-fail);
}

.edx-debrief-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	padding: 14px 0 4px;
	border-top: 1px solid var(--edx-rule);
}

.edx-app .edx-debrief ul {
	padding-left: 18px;
	margin-top: 4px;
}

.edx-debrief-danger {
	margin: 10px 0;
	padding-left: 14px;
	border-left: 4px solid var(--edx-fail);
}

.edx-debrief-rows > div {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 8px 0;
	border-top: 1px solid var(--edx-rule);
	font-size: 15px;
}

.edx-debrief-rows em {
	display: block;
	font-style: normal;
	color: var(--edx-muted);
	font-size: 14px;
}

.edx-model {
	margin-top: 14px;
	padding: 2px 0 2px 14px;
	border-left: 4px solid var(--edx-ink);
}

.edx-model p {
	max-width: 66ch;
	margin-top: 4px;
}

.edx-debrief .edx-row {
	margin-top: 20px;
}

/* ---------- between parts, marking ---------- */

.edx-panel-body {
	max-width: 760px;
}

.edx-panel-body .edx-row {
	margin-top: 30px;
}

.edx-cells {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 26px;
}

.edx-cells i {
	width: 26px;
	height: 26px;
	border: 1px solid var(--edx-rule);
	background: var(--edx-paper);
}

.edx-cells i.edx-on {
	background: var(--edx-ink);
	border-color: var(--edx-ink);
}

.edx-panel-body .edx-fine {
	margin-top: 14px;
}

/* ---------- result sheet ---------- */

.edx-report-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	max-width: 960px;
	margin-bottom: 18px;
}

.edx-report-holder {
	max-width: 960px;
	padding: clamp(20px, 4vw, 44px);
	background: var(--edx-paper);
	border-top: 2px solid var(--edx-ink);
}

/* ---------- dialogs and messages ---------- */

.edx-modal {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 40;
	place-items: center;
	padding: 20px;
	background: color-mix(in srgb, var(--edx-ink) 55%, transparent);
}

.edx-dark .edx-modal {
	background: rgba(0, 0, 0, .6);
}

.edx-modal.edx-on {
	display: grid;
}

.edx-dialog {
	width: 100%;
	max-width: 580px;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	background: var(--edx-paper);
	border-top: 4px solid var(--edx-ink);
}

.edx-dialog > header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 18px 16px 10px 26px;
}

.edx-app .edx-dialog h2 {
	font-size: 31px;
	font-weight: 700;
	font-stretch: 68%;
	line-height: 1;
}

.edx-dialog-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 6px 26px 22px;
	overflow-y: auto;
}

.edx-dialog-body > * {
	flex: none;
}

.edx-dialog-body > .edx-btn {
	align-self: flex-start;
}

.edx-dialog-body p {
	max-width: 62ch;
}

.edx-app .edx-dialog-body h3 {
	margin-top: 10px;
	padding-top: 14px;
	border-top: 1px solid var(--edx-rule);
}

.edx-dialog-body h3:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.edx-dialog > footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 26px 20px;
	border-top: 1px solid var(--edx-rule);
}

.edx-field {
	display: grid;
	gap: 5px;
}

.edx-field small,
.edx-check small {
	display: block;
	color: var(--edx-muted);
	font-size: 14px;
	font-weight: 400;
	font-stretch: 100%;
}

.edx-app .edx-field select,
.edx-app .edx-field input[type="number"] {
	width: 100%;
	height: auto;
	padding: 9px 10px;
	border: 1.5px solid var(--edx-ink);
	border-radius: 3px;
	background: var(--edx-paper);
}

.edx-field input[type="range"] {
	width: 100%;
	accent-color: var(--edx-ink);
}

.edx-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	cursor: pointer;
}

.edx-check input {
	width: 18px;
	height: 18px;
	margin-top: 3px;
	accent-color: var(--edx-ink);
}

.edx-check strong {
	font-weight: 600;
}

.edx-fullimg {
	display: block;
	margin: 0 auto;
	max-height: 70vh;
}

.edx-toast {
	position: absolute;
	left: var(--edx-gutter);
	bottom: 24px;
	z-index: 50;
	max-width: min(560px, calc(100% - 2 * var(--edx-gutter)));
	padding: 12px 18px;
	background: var(--edx-ink);
	color: var(--edx-paper);
	font-weight: 500;
	transform: translateY(16px);
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s, transform .18s;
}

.edx-toast.edx-on {
	opacity: 1;
	transform: none;
}

/* ---------- small screens ---------- */

/* ---------- dashboard, planner, progress ---------- */

.edx-gauge {
	position: relative;
	height: 10px;
	background: var(--edx-rule);
}

.edx-gauge-fill {
	position: absolute;
	inset: 0 auto 0 0;
	background: var(--edx-ink);
}

.edx-gauge-below .edx-gauge-fill {
	background: var(--edx-fail);
}

.edx-gauge-near .edx-gauge-fill {
	background: var(--edx-mid);
}

.edx-gauge-above .edx-gauge-fill {
	background: var(--edx-pass);
}

.edx-gauge-pass {
	position: absolute;
	top: -5px;
	bottom: -5px;
	width: 2px;
	margin-left: -1px;
	background: var(--edx-ink);
}

.edx-next {
	margin-top: 36px;
	padding: 22px 26px 26px;
	background: var(--edx-paper);
	border-left: 6px solid var(--edx-signal);
}

.edx-app .edx-next h2 {
	margin-top: 6px;
}

.edx-app .edx-next p {
	margin-top: 8px;
	max-width: 62ch;
}

.edx-app .edx-next .edx-row {
	margin-top: 20px;
}

.edx-exam-ready {
	display: grid;
	gap: 10px;
	max-width: 460px;
}

.edx-exam-figure,
.edx-ready-figure {
	display: flex;
	align-items: baseline;
	gap: 12px;
}

.edx-exam-figure b {
	font-size: 31px;
	font-stretch: 75%;
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.edx-exam-figure span {
	font-size: 14px;
	color: var(--edx-muted);
}

.edx-app .edx-choice {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.edx-app .edx-choice button {
	display: grid;
	gap: 2px;
	align-content: start;
	flex: 1 1 170px;
	max-width: 290px;
	min-height: 52px;
	padding: 10px 14px 11px;
	border: 1px solid var(--edx-rule);
	background: var(--edx-paper);
	text-align: left;
}

.edx-app .edx-choice button:hover {
	border-color: var(--edx-ink);
}

.edx-app .edx-choice button.edx-on {
	border-color: var(--edx-ink);
	background: var(--edx-ink);
	color: var(--edx-paper);
}

.edx-choice strong {
	font-stretch: 88%;
}

.edx-choice small {
	font-size: 13px;
	line-height: 1.35;
	color: var(--edx-muted);
}

.edx-choice .edx-on small {
	color: inherit;
	opacity: 0.8;
}

.edx-planner {
	margin-top: 36px;
	border-top: 2px solid var(--edx-ink);
}

.edx-plan-row {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	gap: 12px 32px;
	padding: 20px 0;
	border-bottom: 1px solid var(--edx-rule);
}

.edx-plan-label {
	display: grid;
	gap: 4px;
	align-content: start;
	padding-top: 6px;
}

.edx-plan-label strong {
	font-stretch: 88%;
}

.edx-topicrow {
	display: grid;
	grid-template-columns: 22px minmax(150px, 1.4fr) minmax(90px, 0.8fr) minmax(150px, 1fr) 84px;
	gap: 14px;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--edx-rule);
	cursor: pointer;
}

.edx-topicrow:first-child {
	padding-top: 2px;
}

.edx-topicrow input {
	width: 18px;
	height: 18px;
	accent-color: var(--edx-ink);
}

.edx-topic-avg {
	display: grid;
	grid-template-columns: minmax(60px, 1fr) 44px;
	gap: 10px;
	align-items: center;
}

.edx-topic-avg .edx-num {
	font-size: 14px;
	text-align: right;
}

.edx-scenlist {
	max-height: 340px;
	overflow-y: auto;
	border-bottom: 1px solid var(--edx-rule);
}

.edx-app .edx-scenlist .edx-scenario.edx-on {
	padding-left: 10px;
	border-left: 4px solid var(--edx-signal);
	background: var(--edx-paper);
}

.edx-plan-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 24px;
	margin-top: 28px;
}

.edx-app .edx-plan-summary {
	color: var(--edx-muted);
	max-width: 60ch;
}

.edx-app .edx-btn[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}

.edx-progress > .edx-choice {
	margin-top: 28px;
}

.edx-ready {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 24px 56px;
	align-items: end;
	margin-top: 32px;
	padding: 24px 0 28px;
	border-top: 2px solid var(--edx-ink);
	border-bottom: 1px solid var(--edx-rule);
}

.edx-ready-main {
	display: grid;
	gap: 12px;
}

.edx-ready-figure b {
	font-size: 76px;
	font-stretch: 70%;
	font-weight: 800;
	line-height: 0.9;
	font-variant-numeric: tabular-nums;
}

.edx-ready-figure span {
	font-size: 20px;
	font-stretch: 88%;
	font-weight: 600;
}

.edx-ready-facts {
	display: grid;
	gap: 0;
}

.edx-ready-facts div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 9px 0;
	border-top: 1px solid var(--edx-rule);
}

.edx-ready-facts dd {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.edx-progress-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px 56px;
	margin-top: 40px;
}

.edx-app .edx-progress-cols h2 {
	margin-bottom: 14px;
}

.edx-app .edx-progress-cols .edx-fine {
	margin-top: 10px;
}

.edx-trend {
	display: block;
	width: 100%;
	height: auto;
	max-width: 560px;
}

.edx-trend-grid {
	stroke: var(--edx-rule);
	stroke-width: 1;
}

.edx-trend-pass {
	stroke: var(--edx-ink);
	stroke-width: 1.5;
	stroke-dasharray: 5 4;
}

.edx-trend-line {
	fill: none;
	stroke: var(--edx-biro);
	stroke-width: 2;
}

.edx-trend-dot {
	fill: var(--edx-paper);
	stroke: var(--edx-biro);
	stroke-width: 2;
}

.edx-trend-strict {
	fill: var(--edx-biro);
}

.edx-trend-text {
	fill: var(--edx-muted);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.edx-skills {
	display: grid;
	gap: 14px;
}

.edx-skill {
	display: grid;
	grid-template-columns: 150px minmax(60px, 1fr) 44px;
	gap: 12px;
	align-items: center;
}

.edx-skill .edx-num {
	text-align: right;
	font-size: 14px;
}

.edx-app .edx-topics td {
	vertical-align: middle;
}

.edx-app .edx-topics .edx-result {
	margin-left: 12px;
}

.edx-app .edx-topics .edx-topic-avg {
	min-width: 170px;
}

.edx-app .edx-right {
	text-align: right;
}

.edx-note {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr) auto;
	gap: 8px 18px;
	align-items: start;
	padding: 14px 0;
	border-bottom: 1px solid var(--edx-rule);
}

.edx-note-text {
	display: grid;
	gap: 4px;
}

.edx-note-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.edx-goal {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.edx-app .edx-goal select,
.edx-app .edx-goal input {
	min-height: 40px;
	padding: 6px 10px;
	border: 1px solid var(--edx-rule);
	background: var(--edx-paper);
	color: var(--edx-ink);
}

@container edx (max-width: 900px) {
	.edx-plan-row,
	.edx-ready {
		grid-template-columns: 1fr;
	}

	.edx-topicrow {
		grid-template-columns: 22px minmax(0, 1fr) 84px;
	}

	.edx-topicrow > .edx-fine,
	.edx-topicrow > .edx-result,
	.edx-topicrow > span:last-child {
		display: none;
	}

	.edx-note {
		grid-template-columns: 1fr;
	}

	.edx-ready-figure b {
		font-size: 61px;
	}

	.edx-app .edx-choice button {
		max-width: none;
	}

	.edx-app > * {
		--edx-gutter: 18px;
		--edx-inset: 18px;
	}

	.edx-app h1 {
		font-size: 39px;
	}

	.edx-app .edx-tt-name h2 {
		font-size: 31px;
	}

	.edx-bar {
		gap: 12px;
		flex-wrap: wrap;
		padding-top: 8px;
		padding-bottom: 8px;
	}

	.edx-menu-btn {
		display: inline-flex !important;
	}

	.edx-nav {
		display: none;
		order: 9;
		flex-basis: 100%;
		flex-direction: column;
		gap: 0;
		border-top: 1px solid var(--edx-rule);
	}

	.edx-nav-open .edx-nav {
		display: flex;
	}

	.edx-app .edx-nav > * {
		padding: 10px 0;
		border-top: 0;
		border-bottom: 1px solid var(--edx-rule);
	}

	.edx-tools {
		margin-left: auto;
	}

	.edx-sessionhead {
		order: 9;
		flex-basis: 100%;
	}

	.edx-tt-row {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 22px 0;
	}

	.edx-tt-facts {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.edx-tt-head {
		display: none;
	}

	.edx-tt-row dt {
		display: block;
	}

	.edx-tt-facts > div {
		display: grid;
		grid-template-columns: 104px 1fr;
		gap: 10px;
	}

	.edx-tt-actions {
		flex-wrap: wrap;
	}

	.edx-pick {
		grid-template-columns: 1fr;
	}

	.edx-pick-col + .edx-pick-col {
		margin-top: 28px;
		border-top: 2px solid var(--edx-ink);
	}

	.edx-brief > div {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.edx-strip {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.edx-strip-clock {
		display: flex;
		align-items: baseline;
		gap: 10px;
		text-align: left;
		order: -1;
	}

	.edx-strip-clock b {
		font-size: 39px;
	}

	.edx-entry {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.edx-entry time {
		display: none;
	}

	.edx-note-row {
		padding-left: 0;
	}

	.edx-composer-foot {
		padding-left: 0;
	}

	.edx-ex {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.edx-debrief-cols {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.edx-table .edx-col-wide {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.edx-app * {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------- printing: the result sheet only ---------- */

@media print {
	body {
		background: #fff !important;
	}

	.edx-app {
		display: block;
		height: auto;
		overflow: visible;
		background: #fff;
		--edx-ink: #111;
		--edx-muted: #555;
		--edx-rule: #bbb;
		--edx-paper: #fff;
		--edx-ground: #f1f1f1;
		--edx-biro: #1f4fbf;
	}

	.edx-bar,
	.edx-report-actions,
	.edx-toast,
	.edx-modal {
		display: none !important;
	}

	.edx-stage,
	.edx-view {
		overflow: visible;
		height: auto;
		padding: 0;
	}

	.edx-report-holder {
		border: 0;
		padding: 0;
	}
}

/* Case material: traces, monitor screens, results and diagrams. */
.edx-dialog.edx-dialog-wide {
	max-width: min(1180px, 100%);
}

.edx-plates {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 18px;
	margin-top: 18px;
}

.edx-plate {
	margin: 0;
}

.edx-app .edx-plate .edx-figure {
	margin-top: 0;
	width: 100%;
	cursor: zoom-in;
}

.edx-plate .edx-figure img {
	width: 100%;
	max-height: 260px;
	object-fit: contain;
	background: #fff;
}

.edx-plate figcaption {
	margin-top: 6px;
	font-size: 14px;
	line-height: 1.35;
	color: var(--edx-muted);
}

.edx-zoomframe {
	overflow: auto;
	max-height: 72vh;
	background: #fff;
	border: 1px solid var(--edx-rule);
}

.edx-zoomframe .edx-fullimg {
	max-width: 100%;
	max-height: none;
	cursor: zoom-in;
}

.edx-zoomframe.edx-zoomed .edx-fullimg {
	max-width: none;
	cursor: zoom-out;
}

/* Marking scheme in the debrief. */
.edx-scheme {
	margin-top: 18px;
}

.edx-app .edx-scheme-q {
	margin: 12px 0 4px;
	font-weight: 600;
}

.edx-app .edx-scheme ul {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
}

.edx-scheme li {
	display: grid;
	grid-template-columns: 70px 1fr;
	gap: 10px;
	padding: 4px 0;
	border-top: 1px solid var(--edx-rule);
	font-size: 15px;
	line-height: 1.4;
}

.edx-scheme li > span:first-child {
	font-size: 13px;
	font-weight: 700;
	font-stretch: 85%;
	padding-top: 1px;
}

.edx-tick-covered > span:first-child { color: #1e7f4f; }
.edx-tick-partly > span:first-child { color: #8a6100; }
.edx-tick-missed > span:first-child,
.edx-tick-unsafe > span:first-child { color: #b4262a; }
.edx-tick-unsafe { font-weight: 600; }
.edx-tick-extra { color: var(--edx-muted); }
.edx-app .edx-scheme li.edx-scheme-sub {
	display: block;
	padding-top: 10px;
	color: var(--edx-muted);
	font-size: 13px;
	font-weight: 600;
}
.edx-tick-extra.edx-tick-missed > span:first-child { color: var(--edx-muted); }

.edx-reference {
	margin-top: 8px;
}

.edx-reference summary {
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: var(--edx-muted);
}

.edx-reference p {
	margin-top: 6px;
	max-width: 70ch;
}

/* ---------- statistics ---------- */

.edx-scroll {
	overflow-x: auto;
}

.edx-facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 0 32px;
	margin: 6px 0 0;
}

.edx-facts > div {
	display: grid;
	grid-template-rows: auto auto auto;
	align-content: start;
	padding: 14px 0 12px;
	border-bottom: 1px solid var(--edx-rule);
}

.edx-facts dt {
	color: var(--edx-muted);
	font-size: 14px;
	font-weight: 600;
	font-stretch: 88%;
}

.edx-facts dd {
	margin: 2px 0 0;
	font-size: 30px;
	font-weight: 750;
	font-stretch: 72%;
	line-height: 1.05;
	font-variant-numeric: tabular-nums;
}

.edx-facts small {
	margin-top: 3px;
	color: var(--edx-muted);
	font-size: 13px;
	line-height: 1.3;
}

.edx-statrows {
	display: grid;
	gap: 12px;
}

.edx-statrow {
	display: grid;
	grid-template-columns: minmax(110px, 170px) minmax(60px, 1fr) 44px 46px;
	gap: 12px;
	align-items: center;
	font-size: 15px;
}

.edx-statrow-pair {
	grid-template-columns: minmax(110px, 150px) 40px minmax(60px, 1fr) 44px;
}

.edx-statrow .edx-num {
	text-align: right;
}

.edx-change {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.edx-up {
	color: var(--edx-pass);
}

.edx-down {
	color: var(--edx-fail);
}

.edx-flat {
	color: var(--edx-muted);
}

.edx-columns {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 6px;
	align-items: end;
	height: 170px;
	max-width: 560px;
}

.edx-column {
	display: grid;
	grid-template-rows: 18px 1fr 18px;
	height: 100%;
	text-align: center;
}

.edx-column-track {
	position: relative;
	border-bottom: 1.5px solid var(--edx-ink);
}

.edx-column-bar {
	position: absolute;
	left: 12%;
	right: 12%;
	bottom: 0;
	min-height: 1px;
	background: var(--edx-biro);
}

.edx-column-value {
	align-self: end;
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.edx-column-label {
	padding-top: 3px;
	color: var(--edx-muted);
	font-size: 11px;
	white-space: nowrap;
	overflow: hidden;
}

.edx-app .edx-missed {
	margin: 14px 0 0;
	padding-left: 24px;
	max-width: 820px;
}

.edx-missed li {
	padding: 6px 0;
	border-bottom: 1px solid var(--edx-rule);
}

.edx-missed li > span:first-child {
	display: block;
	font-weight: 500;
}

.edx-stats-wait {
	margin-top: 32px;
}

.edx-reply {
	margin-top: 6px;
	padding-left: 12px;
	border-left: 3px solid var(--edx-biro);
}

/* ---------- instructor ---------- */

.edx-instructor > .edx-choice,
.edx-staff-filter {
	margin-top: 22px;
}

.edx-staff-tools {
	margin-top: 16px;
}

.edx-search,
.edx-reply-box {
	width: 100%;
	max-width: 560px;
	padding: 10px 12px;
	border: 1.5px solid var(--edx-ink);
	background: var(--edx-paper);
	color: var(--edx-ink);
	font: inherit;
}

.edx-reply-box {
	max-width: 760px;
	margin-top: 10px;
}

.edx-app .edx-back {
	margin-bottom: 14px;
}

.edx-staff-table td,
.edx-items td {
	vertical-align: top;
}

.edx-app .edx-flags {
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.edx-flags li {
	display: inline-block;
	margin: 0 6px 4px 0;
	padding: 1px 8px 2px;
	background: var(--edx-mid);
	color: #14233b;
	font-size: 13px;
	font-weight: 600;
}

.edx-unused {
	margin-top: 24px;
}

.edx-unused summary {
	cursor: pointer;
	font-weight: 600;
}

.edx-report-card {
	margin-top: 18px;
	padding: 18px 22px 20px;
	background: var(--edx-paper);
	border-left: 4px solid var(--edx-ink);
	max-width: 860px;
}

.edx-report-card > header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 16px;
}

.edx-app .edx-report-q {
	margin-top: 8px;
	font-weight: 500;
}

.edx-report-card blockquote {
	margin: 10px 0 0;
	padding-left: 12px;
	border-left: 3px solid var(--edx-rule);
}

.edx-report-card .edx-row {
	margin-top: 12px;
}

@media (max-width: 640px) {
	.edx-statrow {
		grid-template-columns: minmax(90px, 1fr) minmax(50px, 1fr) 40px;
	}
	.edx-statrow > :last-child {
		display: none;
	}
	.edx-statrow-pair > :last-child {
		display: inline;
	}
	.edx-facts dd {
		font-size: 25px;
	}
}

.edx-app .edx-table td.edx-num {
	white-space: nowrap;
}

/* ---------- top bar overflow: sections that do not fit move into "More" ---------- */

.edx-nav {
	overflow: hidden;
}

.edx-more {
	position: relative;
	flex: none;
	align-self: stretch;
	display: flex;
}

.edx-more[hidden] {
	display: none;
}

.edx-app .edx-more > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-stretch: 88%;
	white-space: nowrap;
	border-top: 3px solid transparent;
	border-bottom: 3px solid transparent;
}

.edx-more > summary::-webkit-details-marker {
	display: none;
}

.edx-more > summary::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-top: -4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

.edx-more[open] > summary::after {
	margin-top: 3px;
	transform: rotate(-135deg);
}

.edx-app .edx-more > summary:hover,
.edx-app .edx-more.edx-on > summary {
	border-bottom-color: var(--edx-signal);
}

.edx-more-menu {
	position: absolute;
	top: 100%;
	left: -14px;
	z-index: 30;
	min-width: 220px;
	padding: 6px 0;
	background: var(--edx-paper);
	border: 1px solid var(--edx-ink);
	display: grid;
}

.edx-app .edx-more-menu > * {
	display: block;
	width: 100%;
	padding: 9px 16px;
	text-align: left;
	font-weight: 600;
	font-stretch: 88%;
	text-decoration: none;
	white-space: nowrap;
	border-left: 3px solid transparent;
}

.edx-app .edx-more-menu > *:hover,
.edx-app .edx-more-menu > .edx-on {
	background: var(--edx-ground);
	border-left-color: var(--edx-signal);
}

.edx-app .edx-more-menu > :not(.edx-sitelink) + .edx-sitelink {
	margin-top: 6px;
	padding-top: 15px;
	border-top: 1px solid var(--edx-rule);
}

.edx-app .edx-nav {
	flex: 0 1 auto;
}

.edx-app .edx-tools {
	margin-left: auto;
}

/* The top bar spans the full width: logo at the left edge, tools and account at the right edge.
   The page content below keeps its centred column. */
.edx-app .edx-bar {
	padding-left: var(--edx-gutter);
	padding-right: var(--edx-gutter);
	gap: 40px;
}

@container edx (max-width: 900px) {
	.edx-app .edx-bar {
		gap: 12px;
	}
}

/* ---------- top bar layout: logo at the left edge, tools and account at the right edge ---------- */

.edx-app .edx-bar {
	min-height: 62px;
	padding-left: 24px;
	padding-right: 24px;
	gap: 28px;
}

.edx-app .edx-bar .edx-brand img {
	max-height: 32px;
}

.edx-app .edx-more-menu {
	left: 0;
	box-shadow: 0 12px 28px rgba(0, 20, 45, 0.12);
}

@container edx (max-width: 900px) {
	.edx-app .edx-bar {
		padding-left: 16px;
		padding-right: 16px;
		gap: 10px;
	}

	.edx-app .edx-nav {
		flex: 1 1 100%;
	}

	.edx-app .edx-nav > :not(.edx-sitelink) + .edx-sitelink {
		margin-top: 14px;
		border-top: 1px solid var(--edx-ink);
	}
}

/* ---------- language selectors ---------- */

.edx-app .edx-lang {
	font: inherit;
	font-size: 13px;
	max-width: 132px;
	min-height: 34px;
	padding: 4px 26px 4px 10px;
	border: 1px solid var(--edx-line, rgba(0, 20, 45, 0.18));
	border-radius: 6px;
	background-color: transparent;
	color: inherit;
	text-overflow: ellipsis;
}

.edx-app .edx-lang:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.edx-app .edx-examlang {
	margin-top: 18px;
	max-width: 360px;
}

.edx-app .edx-examlang select {
	width: 100%;
}

/* The interface language does not change mid-session; the session keeps the language it started in. */
.edx-app.edx-in-session .edx-lang:not(.edx-keep) {
	display: none;
}

@container edx (max-width: 600px) {
	.edx-app .edx-lang {
		max-width: 92px;
	}
}
