/* =====================================================================================================
   Version 3.0: mobile-first layer for the learner portal.
   Loaded after portal.css and smart.css. The rules below are written for a phone first; larger screens
   add to them with min-width queries. Where an earlier layer set a desktop-first value, it is replaced here.
   ===================================================================================================== */

/* ---------- foundations: nothing may push the page wider than the screen ---------- */
.ctms-app { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
.ctms-app *, .ctms-app *::before, .ctms-app *::after { box-sizing: border-box; }
.ctms-app .ctms-mainw, .ctms-app .ctms-page, .ctms-app .ctms-panel, .ctms-app .ctms-card { min-width: 0; }
.ctms-app .ctms-page { overflow-wrap: anywhere; }
.ctms-app img, .ctms-app svg, .ctms-app video, .ctms-app canvas { max-width: 100%; }
.ctms-app .ctms-page table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ctms-app button, .ctms-app .ctms-btn, .ctms-app a.ctms-link, .ctms-app summary { touch-action: manipulation; }

/* ---------- phone type and touch sizes (the 2.10 layer used 9 to 12 px text, too small to read on a phone) ---------- */
.ctms-layout--210 { font-size: 15px; }
.ctms-layout--210 .ctms-btn { font-size: 14px; min-height: 44px; padding: 10px 16px; border-radius: 10px; }
.ctms-layout--210 .ctms-btn--sm { font-size: 13px; min-height: 40px; }
.ctms-layout--210 .ctms-link { font-size: 14px; }
.ctms-layout--210 .ctms-small, .ctms-layout--210 .ctms-next-session__detail { font-size: 14px; line-height: 1.6; }
.ctms-layout--210 .ctms-eyebrow { font-size: 12px; letter-spacing: 1.3px; }
.ctms-layout--210 .ctms-sub { font-size: 14px; line-height: 1.5; }
.ctms-layout--210 .ctms-header h1 { font-size: 26px; letter-spacing: -.6px; margin: 4px 0 6px; }
.ctms-layout--210 h2 { font-size: 18px; }
.ctms-layout--210 .ctms-co-stat small, .ctms-layout--210 .ctms-priority-card__subject { font-size: 12px; }
.ctms-layout--210 .ctms-co-stat small:first-child { font-size: 12px; min-height: 0; }
.ctms-layout--210 .ctms-priority-card p, .ctms-layout--210 .ctms-co-row strong, .ctms-layout--210 .ctms-task__title { font-size: 14px; }
.ctms-layout--210 .ctms-task__meta, .ctms-layout--210 .ctms-task__why, .ctms-layout--210 .ctms-dash-evidence, .ctms-layout--210 .ctms-plan-evidence p, .ctms-layout--210 .ctms-co-row .ctms-small { font-size: 13px; }
.ctms-layout--210 .ctms-badge, .ctms-layout--210 .ctms-evidence-note, .ctms-layout--210 .ctms-priority-card__result span { font-size: 12px; }
.ctms-layout--210 .ctms-task-menu summary { font-size: 13px; min-height: 40px; display: flex; align-items: center; }
.ctms-layout--210 .ctms-task__act > .ctms-btn { font-size: 13px; min-height: 40px; }
.ctms-layout--210 .ctms-task > input { width: 22px; height: 22px; min-height: 22px; margin-top: 1px; }
.ctms-layout--210 .ctms-nav, .ctms-layout--210 .ctms-subnav { font-size: 15px !important; min-height: 46px; }
.ctms-layout--210 .ctms-crumb { font-size: 13px; }
.ctms-layout--210 .ctms-foot { font-size: 12px; }
.ctms-layout--210 .ctms-daytask small { font-size: 12px; }
.ctms-layout--210 .ctms-daytask span { font-size: 13px; }
.ctms-layout--210 .ctms-fourgrid p, .ctms-layout--210 .ctms-fourgrid h3 { font-size: 14px; }
.ctms-layout--210 .ctms-co-row { flex-wrap: wrap; }
/* A phone zooms the page when a field with text smaller than 16 px is touched; keep every field at 16 px. */
.ctms-app input, .ctms-app select, .ctms-app textarea { font-size: 16px; }
.ctms-layout--210 .ctms-select, .ctms-layout--210 .ctms-addtask input { font-size: 16px; min-height: 44px; }
.ctms-layout--210 .ctms-addtask { display: flex; gap: 8px; }
.ctms-layout--210 .ctms-addtask input { flex: 1; padding: 10px 12px; }

/* ---------- page frame on a phone ---------- */
@media (max-width: 750px) {
	.ctms-layout--210 .ctms-page { padding: 18px 14px calc(92px + env(safe-area-inset-bottom, 0px)); }
	.ctms-layout--210 .ctms-topbar { height: 56px; padding: 0 12px; position: sticky; top: 0; }
	.ctms-layout--210 .ctms-topbar__r { gap: 8px; }
	.ctms-layout--210 .ctms-date { display: none; }
	.ctms-layout--210 .ctms-statuschip { display: none; }
	.ctms-layout--210 .ctms-menubtn, .ctms-layout--210 .ctms-iconbtn, .ctms-layout--210 .ctms-avatar { min-width: 44px; min-height: 44px; }
	.ctms-layout--210 .ctms-header { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 18px; }
	.ctms-layout--210 .ctms-header > .ctms-btn { width: 100%; }
	.ctms-layout--210 .ctms-panel { padding: 16px; border-radius: 16px; }
	.ctms-layout--210 .ctms-panel__title { align-items: flex-start; margin-bottom: 12px; }
	.ctms-layout--210 .ctms-mnav { padding: 6px 4px max(6px, env(safe-area-inset-bottom)); }
	.ctms-layout--210 .ctms-mnav a { font-size: 12px; min-height: 52px; justify-content: center; flex: 1; }
	.ctms-layout--210 .ctms-mnav a span { font-size: 21px; line-height: 1.1; }
	.ctms-app .ctms-side { width: min(310px, 88vw); height: 100%; height: 100dvh; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
	.ctms-layout--210 .ctms-toast, .ctms-app .ctms-toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
	.ctms-layout--210 .ctms-co-controls > .ctms-btn { flex: 1 1 140px; }
	.ctms-layout--210 .ctms-co-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ctms-layout--210 .ctms-co-stat strong { font-size: 24px; }
	.ctms-layout--210 .ctms-modal__box, .ctms-app .ctms-modal__box { padding: 18px; max-height: 92vh; max-height: 92dvh; }
	.ctms-app .ctms-modal { align-items: end; padding: 10px; }
	.ctms-app .ctms-modal .ctms-btn { min-height: 44px; }
	.ctms-app .ctms-modal__actions .ctms-btn { flex: 1 1 140px; }
}
@media (max-width: 339px) {
	.ctms-layout--210 .ctms-co-stats { grid-template-columns: 1fr; }
}
.ctms-layout--210 .ctms-co-stat small:last-child { display: none; }
@media (min-width: 751px) { .ctms-layout--210 .ctms-co-stat small:last-child { display: block; } }

/* ---------- dashboard: the learning coach and the study planner come first ---------- */
.ctms-layout--210 .ctms-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0 0 22px; }
.ctms-layout--210 .ctms-hero-grid > * { min-width: 0; }

.ctms-layout--210 .ctms-coachcard--hero { margin: 0; padding: 20px 18px 18px; border: 0; border-radius: 20px; background: linear-gradient(150deg, #231f45 0%, #2f2460 60%, #2a3a6b 100%); box-shadow: 0 10px 30px rgba(35, 31, 69, .28); }
.ctms-layout--210 .ctms-coachcard--hero h2 { font-size: 21px; line-height: 1.3; font-weight: 650; letter-spacing: -.3px; margin-top: 6px; }
.ctms-layout--210 .ctms-coachcard--hero .ctms-eyebrow { color: #a8e6d3; }
.ctms-layout--210 .ctms-coachcard__script { font-size: 15px; line-height: 1.75; margin: 14px 0 6px; color: #ece8f7; }
.ctms-layout--210 .ctms-coachcard--hero .ctms-coachcard__script { font-size: 15px; line-height: 1.7; margin: 16px 0 4px; padding-top: 14px; border-top: 1px solid #ffffff26; }
.ctms-layout--210 .ctms-coachcard--hero .ctms-coachcard__top { margin-bottom: 4px; }
.ctms-say { border-radius: 5px; padding: 1px 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color .2s; }
.ctms-say.is-now { background: rgba(168, 230, 211, .26); color: #fff; }

.ctms-layout--210 .ctms-coachcard__ctl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; align-items: stretch; }
.ctms-layout--210 .ctms-cbtn { font-size: 14px; min-height: 46px; padding: 8px 10px; border-radius: 12px; font-weight: 600; white-space: nowrap; }
.ctms-layout--210 .ctms-cbtn--play { grid-column: 1 / -1; min-height: 56px; font-size: 17px; font-weight: 750; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; background: #dff5ec; color: #17473a; border-color: #dff5ec; }
.ctms-layout--210 .ctms-cbtn--play:hover:not(:disabled) { background: #fff; }
.ctms-speed { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #e3def2; font-size: 14px; }
.ctms-speed select { background: #ffffff1f; color: #fff; border: 1px solid #ffffff55; border-radius: 10px; padding: 8px 10px; min-height: 44px; min-width: 96px; font-size: 16px; }
.ctms-speed select option { color: #101936; background: #fff; }
.ctms-wave { display: none; grid-column: 1 / -1; height: 22px; align-items: flex-end; justify-content: center; gap: 4px; }
.ctms-wave i { display: block; width: 4px; height: 8px; border-radius: 2px; background: #a8e6d3; }
.ctms-coachcard.is-speaking .ctms-wave { display: flex; }
.ctms-coachcard.is-speaking .ctms-wave i { animation: ctms-wave 1s ease-in-out infinite; }
.ctms-coachcard.is-speaking .ctms-wave i:nth-child(2) { animation-delay: .15s; }
.ctms-coachcard.is-speaking .ctms-wave i:nth-child(3) { animation-delay: .3s; }
.ctms-coachcard.is-speaking .ctms-wave i:nth-child(4) { animation-delay: .45s; }
@keyframes ctms-wave { 0%, 100% { height: 6px; } 50% { height: 22px; } }
@media (prefers-reduced-motion: reduce) { .ctms-coachcard.is-speaking .ctms-wave i { animation: none; height: 14px; } .ctms-say { transition: none; } }
.ctms-layout--210 .ctms-voice-settings summary { font-size: 14px; min-height: 44px; display: flex; align-items: center; gap: 8px; width: auto; }
.ctms-layout--210 .ctms-voice-settings summary > span { font-size: 12px; }
.ctms-layout--210 .ctms-coachcard__opt { display: grid; grid-template-columns: 1fr; gap: 12px; font-size: 14px; }
.ctms-layout--210 .ctms-coachcard__opt label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ctms-layout--210 .ctms-coachcard__opt select { min-height: 44px; font-size: 16px; max-width: 100%; }
.ctms-layout--210 .ctms-coachcard__opt .ctms-cchk { justify-content: flex-start; }
.ctms-layout--210 .ctms-coachcard__opt input[type=checkbox] { width: 22px; height: 22px; }
.ctms-link--light { color: #bff0e0 !important; background: none; border: 0; text-align: left; padding: 8px 0; min-height: 44px; cursor: pointer; font: inherit; font-weight: 650; }
.ctms-layout--210 .ctms-coachcard__msg { font-size: 13px; color: #cfeae2; margin-top: 12px; line-height: 1.5; }
.ctms-layout--210 .ctms-coachcard__note { font-size: 12px; }

/* the study planner panel on the dashboard */
.ctms-today .ctms-weekstrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin: 2px 0 16px; }
.ctms-daychip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 6px 0; border: 1px solid var(--ctms-line); border-radius: 12px; background: var(--ctms-soft); color: var(--ctms-muted); text-decoration: none; font-size: 12px; font-weight: 650; }
.ctms-daychip b { font-size: 15px; font-weight: 750; color: var(--ctms-ink); line-height: 1.2; }
.ctms-daychip.is-none b { color: var(--ctms-muted); font-weight: 500; }
.ctms-daychip.is-done b { color: var(--ctms-good, #047857); }
.ctms-daychip.is-today { border-color: var(--ctms-accent); background: color-mix(in srgb, var(--ctms-accent) 11%, var(--ctms-panel)); color: var(--ctms-ink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ctms-accent) 22%, transparent); }
.ctms-today .ctms-bar { margin: 8px 0 14px; }
.ctms-today .ctms-tasks { margin: 4px 0 2px; }
.ctms-today .ctms-task { margin: 8px 0; }
.ctms-today .ctms-task .ctms-link { font-size: 13px; }
.ctms-today__late { display: block; text-decoration: none; margin: 0 0 12px; font-size: 14px; }
.ctms-today .ctms-addtask { margin: 14px 0; }
.ctms-today .ctms-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; }
.ctms-today .ctms-dash-empty { padding: 14px 6px; }
.ctms-layout--210 .ctms-today .ctms-dash-empty h3 { font-size: 16px; }
.ctms-layout--210 .ctms-today .ctms-dash-empty p { font-size: 14px; margin-bottom: 4px; }

/* the next best step, as a phone shows it */
.ctms-layout--210 .ctms-next-session { grid-template-columns: minmax(0, 1fr); border-radius: 18px; margin-bottom: 6px; }
.ctms-layout--210 .ctms-session-note { display: none; }
.ctms-layout--210 .ctms-next-session__copy { padding: 20px 18px; }
.ctms-layout--210 .ctms-next-session h2 { font-size: 22px; line-height: 1.3; }
.ctms-layout--210 .ctms-next-session .ctms-actions { display: grid; grid-template-columns: 1fr; gap: 6px; align-items: stretch; }
.ctms-layout--210 .ctms-next-session .ctms-actions .ctms-link { min-height: 44px; display: flex; align-items: center; }
.ctms-layout--210 .ctms-home-grid { grid-template-columns: minmax(0, 1fr); }
.ctms-layout--210 .ctms-dash-toolstrip { padding: 18px 0 4px; }
.ctms-layout--210 .ctms-dash-toolstrip .ctms-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.ctms-layout--210 .ctms-dash-toolstrip strong { font-size: 15px; }
.ctms-layout--210 .ctms-dash-toolstrip p { font-size: 14px; }

/* ---------- wider screens add to the phone layout ---------- */
@media (min-width: 640px) {
	.ctms-layout--210 .ctms-coachcard__ctl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ctms-today .ctms-actions { grid-template-columns: 1fr 1fr; }
	.ctms-layout--210 .ctms-coachcard__opt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ctms-layout--210 .ctms-next-session .ctms-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
}
@media (min-width: 751px) {
	.ctms-layout--210 { font-size: 14px; }
	.ctms-layout--210 .ctms-btn { font-size: 13px; min-height: 42px; }
	.ctms-layout--210 .ctms-btn--sm { font-size: 12px; min-height: 36px; }
	.ctms-layout--210 .ctms-link { font-size: 13px; }
	.ctms-layout--210 .ctms-small, .ctms-layout--210 .ctms-next-session__detail { font-size: 13px; }
	.ctms-layout--210 .ctms-nav, .ctms-layout--210 .ctms-subnav { font-size: 13px !important; min-height: 0; }
	.ctms-layout--210 .ctms-header h1 { font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -1px; }
	.ctms-layout--210 .ctms-task__title, .ctms-layout--210 .ctms-priority-card p, .ctms-layout--210 .ctms-co-row strong { font-size: 13px; }
	.ctms-layout--210 .ctms-task__meta, .ctms-layout--210 .ctms-task__why, .ctms-layout--210 .ctms-dash-evidence { font-size: 12px; }
	.ctms-layout--210 .ctms-coachcard--hero { padding: 26px 28px 22px; }
	.ctms-layout--210 .ctms-coachcard--hero h2 { font-size: 24px; }
	.ctms-layout--210 .ctms-co-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ctms-layout--210 .ctms-co-stat { flex-direction: row; }
	.ctms-layout--210 .ctms-next-session { grid-template-columns: minmax(0, 1fr) 220px; }
	.ctms-layout--210 .ctms-next-session__copy { padding: 28px 30px; }
	.ctms-layout--210 .ctms-next-session h2 { font-size: clamp(22px, 2.2vw, 28px); }
	.ctms-layout--210 .ctms-session-note { display: flex; }
	.ctms-layout--210 .ctms-dash-toolstrip .ctms-actions { display: flex; width: auto; }
}
@media (min-width: 1000px) {
	.ctms-layout--210 .ctms-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
	.ctms-layout--210 .ctms-home-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.ctms-layout--210 .ctms-coachcard__ctl { grid-template-columns: auto auto auto auto; justify-content: start; }
	.ctms-layout--210 .ctms-cbtn--play { grid-column: auto; min-height: 48px; font-size: 15px; padding: 8px 20px; }
	.ctms-layout--210 .ctms-coachcard--hero .ctms-coachcard__ctl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ctms-layout--210 .ctms-coachcard--hero .ctms-cbtn--play { grid-column: 1 / -1; min-height: 54px; font-size: 16px; }
	.ctms-speed { grid-column: auto; justify-content: flex-start; white-space: nowrap; }
	.ctms-wave { grid-column: auto; }
	.ctms-layout--210 .ctms-coachcard--hero .ctms-speed, .ctms-layout--210 .ctms-coachcard--hero .ctms-wave { grid-column: 1 / -1; }
}
@media (max-width: 999px) {
	.ctms-layout--210 .ctms-coachcard:not(.ctms-coachcard--hero) .ctms-cbtn--play { grid-column: 1 / -1; }
}

/* dark appearance */
html.ctms-dark .ctms-daychip { background: #25293a; }
html.ctms-dark .ctms-layout--210 .ctms-coachcard--hero { background: linear-gradient(150deg, #1d1a3a 0%, #2a2058 60%, #243360 100%); box-shadow: none; }

/* =====================================================================================================
   The examination / practice player: a slim, sticky top bar on phones and tablets.
   (The earlier layers stacked the title, the clock and the tools in separate rows, and on a phone that
   gave a tall dark band. Row 1 is now title + clock + Submit; row 2 is the save state and text size.)
   ===================================================================================================== */
@media (max-width: 860px) {
	.ctms-player .ctms-pbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "title mid submit" "save save size"; align-items: center; gap: 6px 8px; padding: 8px 10px calc(6px); width: 100%; max-width: 100%; border-radius: 0; }
	.ctms-player .ctms-pbar__title { grid-area: title; grid-column: auto; min-width: 0; font-size: 14px; text-align: left; gap: 6px; }
	.ctms-player .ctms-pbar__title .ctms-chip { display: none; }
	.ctms-player .ctms-pbar__title strong { max-width: 100%; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow: hidden; }
	.ctms-player .ctms-pbar__mid { grid-area: mid; justify-content: center; }
	.ctms-player .ctms-timer { font-size: 20px; line-height: 1; letter-spacing: .02em; min-width: 0; padding: 8px 10px; border-radius: 10px; }
	.ctms-player .ctms-timer--off { font-size: 12px; padding: 8px 10px; letter-spacing: 0; }
	/* the tools row dissolves into the bar's grid so Submit sits beside the clock and the rest drops to a thin second row */
	.ctms-player .ctms-pbar__tools { display: contents; }
	.ctms-player .ctms-pbar__tools > .ctms-btn { grid-area: submit; min-height: 40px; padding: 8px 14px; font-size: 14px; }
	.ctms-player .ctms-save { display: block; grid-area: save; min-width: 0; max-width: none; font-size: 12px; line-height: 1.2; color: #c4cbe6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.ctms-player .ctms-size { grid-area: size; justify-self: end; }
	.ctms-player .ctms-size button { padding: 4px 12px; min-height: 30px; font-size: 14px; }
	.ctms-player .ctms-fsbtn { display: none; }
}
@media (max-width: 860px) {
	/* the rest of the phone player: notices and the question navigator take less room so the question is in view */
	.ctms-player .ctms-paper-panel { padding: 8px 12px; }
	.ctms-player .ctms-deadline-rule { font-size: 13px; line-height: 1.45; padding: 8px 12px; }
	.ctms-player .ctms-pbody { padding: 10px 10px 96px; }
	.ctms-player .ctms-navpane { margin-bottom: 12px; }
	.ctms-player .ctms-navcard { padding: 12px 12px 10px; border-radius: 14px; }
	.ctms-player .ctms-navcard__h { font-size: 1rem; margin-bottom: 4px; }
	.ctms-player .ctms-navcard .ctms-navgrid { gap: 6px; margin-top: 8px; max-height: 94px; overflow-y: auto; padding: 3px; }
	.ctms-player .ctms-navcard .ctms-navgrid .ctms-navbtn { width: 40px; height: 40px; min-width: 40px; }
	.ctms-player .ctms-legend { font-size: 12px; gap: 6px 12px; margin-top: 8px; }
	.ctms-player .ctms-pagebar { font-size: 14px; }
	.ctms-player .ctms-pagebar select { min-height: 40px; font-size: 16px; }
	.ctms-player .ctms-question { padding: 14px; border-radius: 16px; }
	.ctms-player .ctms-tools { padding: 4px; gap: 2px; max-width: calc(100vw - 16px); overflow-x: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
	.ctms-player .ctms-tool { width: 44px; height: 44px; flex: none; }
}
@media (max-width: 359px) {
	.ctms-player .ctms-pbar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title submit" "mid mid" "save size"; }
	.ctms-player .ctms-pbar__mid { justify-content: flex-start; }
}
@media (min-width: 861px) {
	.ctms-player .ctms-pbar { max-width: 100%; }
}

/* =====================================================================================================
   Sign-in and registration page: the full-page rule removed the page gutter, so on a phone the text and the
   form touched the screen edges. Mobile-first gutters, with the form kept in easy reach.
   ===================================================================================================== */
body .ctms-app.ctms-app--full.ctms-auth { padding: 20px 16px calc(28px + env(safe-area-inset-bottom, 0px)); min-height: 100vh; min-height: 100dvh; }
.ctms-auth__wrap { gap: 18px; }
.ctms-auth h1 { font-size: 1.55rem; line-height: 1.25; overflow-wrap: anywhere; }
.ctms-auth__card { padding: 20px 18px; border-radius: 18px; }
.ctms-auth input[type=text], .ctms-auth input[type=email], .ctms-auth input[type=password], .ctms-auth select, .ctms-auth textarea { font-size: 16px; min-height: 48px; }
.ctms-auth label { font-size: 14px; }
.ctms-auth #wp-submit, .ctms-auth .button-primary, .ctms-auth .ctms-btn { min-height: 48px; font-size: 15px; }
.ctms-auth .ctms-tab { min-height: 44px; font-size: 15px; }
.ctms-auth .ctms-small, .ctms-auth__foot { font-size: 13px; line-height: 1.55; }
.ctms-auth .ctms-ticks { font-size: 15px; }
.ctms-auth .ctms-pickset input[type=checkbox], .ctms-auth input[type=checkbox] { width: 22px; height: 22px; flex: none; }
.ctms-auth label.ctms-pick { min-height: 44px; font-size: 15px; }
@media (min-width: 700px) {
	body .ctms-app.ctms-app--full.ctms-auth { padding: 28px; }
	.ctms-auth__wrap { gap: 28px; }
	.ctms-auth__card { padding: 26px; }
}

/* =====================================================================================================
   The paper-upload panel read light text on a white card in dark mode (it used a surface colour the portal never
   defined). It now follows the portal's own panel and text colours, in light and dark.
   ===================================================================================================== */
.ctms-paper-panel { background: var(--ctms-panel, #fff); color: var(--ctms-text, #173a38); border-bottom-color: var(--ctms-line, #d8e4e1); }
.ctms-paper-panel h2, .ctms-paper-panel summary, .ctms-paper-panel strong { color: var(--ctms-ink, inherit); }
.ctms-capture { background: color-mix(in srgb, var(--ctms-accent, #078c80) 7%, var(--ctms-panel, #fff)); color: var(--ctms-text, #173a38); border-color: color-mix(in srgb, var(--ctms-accent, #078c80) 55%, var(--ctms-panel, #fff)); }
.ctms-scan { border-color: var(--ctms-line, #c6d8d5); }
.ctms-scan img { background: var(--ctms-soft, #eef3f2); }
.ctms-scan select, .ctms-scan input { background: var(--ctms-panel, #fff); color: var(--ctms-text, inherit); border-color: var(--ctms-line2, #99b9b3); }
.ctms-paper-confirm { background: color-mix(in srgb, var(--ctms-accent, #078c80) 9%, var(--ctms-panel, #fff)); color: var(--ctms-text, #173a38); border-color: color-mix(in srgb, var(--ctms-accent, #078c80) 40%, var(--ctms-panel, #fff)); }
.ctms-qr { background: #fff; color: #173a38; }
.ctms-qr p, .ctms-qr strong { color: #173a38; }
.ctms-paper-panel .ctms-deadline-rule, .ctms-paper-panel .ctms-deadline-rule strong { color: #684514; }
.ctms-paper-panel .ctms-qr strong, .ctms-paper-panel .ctms-qr p { color: #173a38; }
@media (max-width: 600px) {
	/* the colour key under the question numbers is obvious on a phone and costs a whole screen row */
	.ctms-player .ctms-navcard .ctms-legend { display: none; }
	.ctms-player .ctms-navcard .ctms-navcard__calc { margin-top: 8px; font-size: .85rem; }
}

/* =====================================================================================================
   Version 3.1: My Exam Readiness. Written for a phone first; wider screens add columns.
   ===================================================================================================== */
.ctms-rd { display: grid; gap: 14px; margin-top: 14px; }
.ctms-rd-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.ctms-rd-pick { margin-top: 12px; }
.ctms-rd-pick label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 4px; color: var(--ctms-ink); }
.ctms-rd-pick select { width: 100%; max-width: 460px; min-height: 44px; }
.ctms-rd-intro { margin-top: 12px; }
.ctms-rd-hero { border-top: 4px solid var(--ctms-accent); }
.ctms-rd-hero__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 18px; }
.ctms-rd-hero__top h2 { font-size: 20px; margin-bottom: 0; }
.ctms-rd-score { text-align: left; }
.ctms-rd-score strong { display: block; font-size: 54px; line-height: 1; letter-spacing: -2px; color: var(--ctms-ink); font-weight: 800; }
.ctms-rd-score span { display: block; font-size: 12px; color: var(--ctms-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-top: 4px; }
.ctms-rd-score--none strong { color: var(--ctms-muted); }
.ctms-rd-evidence { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 8px; }
.ctms-rd-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.4; border: 1px solid transparent; background: var(--ctms-soft); color: var(--ctms-text); }
.ctms-rd-chip--good { background: var(--ctms-good-bg); color: var(--ctms-good); }
.ctms-rd-chip--mid { background: var(--ctms-mid-bg); color: var(--ctms-mid); }
.ctms-rd-chip--low { background: var(--ctms-low-bg); color: var(--ctms-low); }
.ctms-rd-chip--none { border-color: var(--ctms-line); }
.ctms-rd-pips { display: inline-flex; gap: 5px; }
.ctms-rd-pips i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--ctms-line2); background: transparent; display: inline-block; }
.ctms-rd-pips i.is-on { background: var(--ctms-accent); border-color: var(--ctms-accent); }
.ctms-rd-flag { margin: 8px 0; padding: 9px 12px; border-radius: 12px; background: var(--ctms-mid-bg); color: var(--ctms-mid); font-size: 13px; font-weight: 600; }
.ctms-rd-lines p { margin: 0 0 .5em; }
.ctms-rd-reasons { margin: 6px 0 8px; padding-left: 20px; color: var(--ctms-text); }
.ctms-rd-reasons li { margin-bottom: 4px; }
.ctms-rd-grade { margin-top: 8px; }
.ctms-rd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.ctms-rd-actions .ctms-btn { flex: 1 1 200px; justify-content: center; text-align: center; }
.ctms-rd-coach { flex: 1 1 200px; display: inline-flex; }
.ctms-rd-coach:empty { display: none; }
.ctms-rd-pending { background: var(--ctms-mid-bg); }
.ctms-rd-pending p { margin: 0 0 .6em; }
.ctms-rd-steps { margin: 6px 0 0; padding-left: 22px; }
.ctms-rd-steps li { margin-bottom: 10px; line-height: 1.5; }
.ctms-rd-steps li .ctms-btn { margin-left: 6px; vertical-align: middle; }
.ctms-rd-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 8px; }
.ctms-rd-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; display: table !important; }
.ctms-rd-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--ctms-muted); padding: 8px 10px; border-bottom: 2px solid var(--ctms-line); white-space: nowrap; }
.ctms-rd-table td { padding: 10px; border-bottom: 1px solid var(--ctms-rule); vertical-align: top; }
.ctms-rd-timeline { margin: 8px 0 4px; }
.ctms-rd-advice { margin: 4px 0 8px; padding-left: 20px; }
.ctms-rd-advice li { margin-bottom: 6px; }
.ctms-rd-tally { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.ctms-rd-topics { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
.ctms-rd-topic { border: 1px solid var(--ctms-line); border-left-width: 5px; border-radius: 14px; padding: 14px; background: var(--ctms-soft); }
.ctms-rd-topic--weak { border-left-color: var(--ctms-low); }
.ctms-rd-topic--developing { border-left-color: var(--ctms-mid); }
.ctms-rd-topic--strong { border-left-color: var(--ctms-good); }
.ctms-rd-topic--needs_evidence { border-left-color: var(--ctms-line2); }
.ctms-rd-topic__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; align-items: center; margin-bottom: 6px; }
.ctms-rd-topic__pct { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.ctms-rd-topic__pct strong { font-size: 24px; color: var(--ctms-ink); }
.ctms-rd-topic__act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ctms-rd-more { margin-top: 12px; }
.ctms-rd-more > summary { cursor: pointer; font-weight: 700; color: var(--ctms-accent); min-height: 44px; display: flex; align-items: center; }
.ctms-rd-mslist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.ctms-rd-ms { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--ctms-soft); border: 1px solid var(--ctms-line); }
.ctms-rd-ms > div { flex: 1; min-width: 0; }
.ctms-rd-ms__ico { color: var(--ctms-mid); font-size: 22px; line-height: 1; }
.ctms-rd-how > summary { cursor: pointer; font-weight: 700; color: var(--ctms-ink); min-height: 44px; display: flex; align-items: center; }
.ctms-rd-how ul { margin: 6px 0 0; padding-left: 20px; }
.ctms-rd-how li { margin-bottom: 8px; }
@media (min-width: 640px) {
	.ctms-rd-score { text-align: right; }
	.ctms-rd-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ctms-rd-actions .ctms-btn { flex: 0 1 auto; }
	.ctms-rd-hero__top h2 { font-size: 22px; }
}
@media (min-width: 900px) {
	.ctms-rd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.ctms-rd-score strong { font-size: 64px; }
}
@media (min-width: 1200px) {
	.ctms-rd-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media print {
	.ctms-rd-actions, .ctms-rd-topic__act, .ctms-rd-steps .ctms-btn { display: none !important; }
}

/* =====================================================================================================
   Version 3.1.1: the four-step learning journey above My Progress, Review Mistakes, Revision Plan and Exam Readiness.
   Phone first: the four steps scroll sideways inside their own strip, so the page itself never does.
   ===================================================================================================== */
.ctms-journey { margin: 0 0 14px; }
.ctms-journey ol { list-style: none; margin: 0; padding: 2px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.ctms-journey li { flex: 1 0 168px; scroll-snap-align: start; position: relative; }
.ctms-journey a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 1px solid var(--ctms-line); border-radius: 14px; background: var(--ctms-panel); color: var(--ctms-text) !important; text-decoration: none; }
.ctms-journey a:hover { border-color: var(--ctms-accent); }
.ctms-journey a:focus-visible { outline: 3px solid var(--ctms-accent); outline-offset: 2px; }
.ctms-journey__n { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; border: 1px solid var(--ctms-line2); color: var(--ctms-muted); background: var(--ctms-panel); }
.ctms-journey__t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ctms-journey__t b { font-size: 14px; font-weight: 700; color: var(--ctms-ink); }
.ctms-journey__t small { font-size: 12px; color: var(--ctms-muted); }
.ctms-journey li.is-current a { border-color: var(--ctms-accent); background: var(--ctms-soft); }
.ctms-journey li.is-current .ctms-journey__n { background: var(--ctms-accent); border-color: var(--ctms-accent); color: #fff; }
@media (min-width: 900px) {
	.ctms-journey ol { overflow: visible; }
	.ctms-journey li { flex: 1 1 0; }
	.ctms-journey li + li a:before { content: ""; position: absolute; left: -9px; top: 50%; width: 9px; border-top: 2px solid var(--ctms-line2); }
}
@media (prefers-reduced-motion: no-preference) {
	.ctms-journey a { transition: border-color .15s ease, background-color .15s ease; }
}

/* Version 3.1.2: the practice-evidence label and the one-line readiness summary on My Progress. */
.ctms-evidence-label { margin: 0 0 8px; }
.ctms-evidence-label .ctms-chip { font-size: 13px; padding: 4px 12px; }
.ctms-rd-mini { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--ctms-line); border-radius: 12px; background: var(--ctms-panel); }
.ctms-rd-mini ul { margin: 6px 0 8px; padding-left: 20px; }
.ctms-rd-mini li { margin-bottom: 3px; }

/* =====================================================================================================
   Version 3.1.2: easier to read and easier to tap.
   Text is never smaller than 12px, the grey secondary text has at least 4.5:1 contrast in both themes (see --ctms-muted), and
   the controls a learner presses are about 44px tall (the size of a fingertip). This file loads after portal.css, and the
   selectors are written to win over the compact desktop menu rules above.
   ===================================================================================================== */
.ctms-app .ctms-btn,
.ctms-app .ctms-layout--210 .ctms-btn { min-height: 44px; }
.ctms-app .ctms-btn--sm,
.ctms-app .ctms-layout--210 .ctms-btn--sm { min-height: 44px; font-size: 13px; padding-top: 8px; padding-bottom: 8px; }
.ctms-app .ctms-iconbtn,
.ctms-app .ctms-layout--210 .ctms-iconbtn,
.ctms-app .ctms-layout--210 .ctms-avatar { width: 44px; height: 44px; }
.ctms-app .ctms-layout--210 .ctms-nav,
.ctms-app .ctms-layout--210 .ctms-subnav,
.ctms-app .ctms-layout--210 .ctms-side .ctms-nav { min-height: 44px; display: flex; align-items: center; }
.ctms-app .ctms-select,
.ctms-app .ctms-field,
.ctms-app select,
.ctms-app input[type="text"],
.ctms-app input[type="email"],
.ctms-app input[type="password"],
.ctms-app input[type="number"] { min-height: 44px; }
.ctms-app .ctms-mnav a { min-height: 48px; justify-content: center; font-size: 12px; }
.ctms-app :focus-visible { outline: 3px solid var(--ctms-accent); outline-offset: 2px; }
.ctms-app small { font-size: max(12px, .8333em); }
.ctms-app button.ctms-link { min-height: 44px; display: inline-flex; align-items: center; }
.ctms-app input[type="checkbox"], .ctms-app input[type="radio"] { width: 22px; height: 22px; }
.ctms-app .ctms-cchk, .ctms-app label:has(> input[type="checkbox"]) { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.ctms-app summary { min-height: 44px; display: flex; align-items: center; }
.ctms-app .ctms-task input[type="checkbox"] { width: 28px; height: 28px; margin: 8px; }
.ctms-app .ctms-layout--210 .ctms-task-menu summary, .ctms-app .ctms-task-menu summary { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
/* A summary that is laid out as a flex row loses the browser's own open/closed arrow, so these draw one. */
.ctms-app details:not(.ctms-navbox) > summary { list-style: none; }
.ctms-app details:not(.ctms-navbox) > summary::-webkit-details-marker { display: none; }
.ctms-app details:not(.ctms-navbox) > summary::before { content: "\25B8"; display: inline-block; margin-right: 8px; color: var(--ctms-accent); transition: transform .15s ease; }
.ctms-app details[open]:not(.ctms-navbox) > summary::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .ctms-app details > summary::before { transition: none; } }
/* The exam player: text size buttons, full screen and the question buttons are about 44px too. */
.ctms-app .ctms-player .ctms-size button { min-height: 44px; min-width: 44px; }
.ctms-app .ctms-fsbtn { min-height: 44px; }
.ctms-app .ctms-navcard .ctms-navbtn,
.ctms-app .ctms-player .ctms-navcard .ctms-navgrid .ctms-navbtn { width: 44px; height: 44px; min-width: 44px; }
.ctms-app .ctms-legend .ctms-navbtn { width: 16px; height: 16px; min-width: 16px; }
.ctms-app .ctms-flag { min-height: 44px; }
.ctms-app .ctms-player .ctms-pbar__tools > .ctms-btn,
.ctms-app .ctms-player .ctms-pagebar select,
.ctms-app .ctms-modal .ctms-btn,
.ctms-app .ctms-tool,
.ctms-app .ctms-cbtn,
.ctms-app .ctms-layout--210 .ctms-task__act > .ctms-btn { min-height: 44px; }
.ctms-app .ctms-tool { min-width: 44px; }
