/* PrepSettle mock engine + hub styles (MET & CELPIP share this layout) */
.tm-runner { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; margin: 24px 0; }
.tm-runner h2 { margin-top: 0; }
.tm-picker select, .tm-picker button { font-size: 1rem; padding: 10px 14px; border-radius: 8px; border: 1px solid #cbd5e1; }
.tm-picker button { background: #0ea5e9; color: #fff; border: none; cursor: pointer; margin-left: 8px; font-weight: 600; }
.tm-picker button:hover { background: #0284c7; }
#tmHeader { display: none; border-bottom: 2px solid #e2e8f0; padding-bottom: 12px; margin-bottom: 16px; }
#tmHeader .tm-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
#tmSecName { font-size: 1.15rem; font-weight: 700; color: #0f172a; }
#tmClock { font-size: 1.6rem; font-weight: 800; color: #dc2626; font-variant-numeric: tabular-nums; }
.tm-intro { background: #f0f9ff; border-left: 4px solid #0ea5e9; padding: 12px 16px; border-radius: 0 8px 8px 0; margin-bottom: 18px; }
.tm-intro p { margin: 0; }
.tm-part { margin: 26px 0 10px; color: #0f172a; border-bottom: 1px solid #e2e8f0; padding-bottom: 6px; }
.tm-script { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px 16px; margin: 10px 0 18px; font-size: 0.95rem; line-height: 1.55; }
.tm-script h4 { margin: 0 0 6px; color: #475569; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.tm-q { margin-bottom: 22px; padding: 16px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.tm-qstem { font-weight: 600; color: #0f172a; margin: 0 0 10px; }
.tm-qno { color: #0ea5e9; }
.tm-opt { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 8px; margin: 6px 0; cursor: pointer; }
.tm-opt:hover { background: #f8fafc; }
.tm-opt.picked { border-color: #0ea5e9; background: #f0f9ff; }
.tm-opt input { margin-top: 3px; }
.tm-ol { font-weight: 700; color: #0ea5e9; min-width: 18px; }
.tm-flag { margin-top: 8px; font-size: .82rem; border: 1px solid #cbd5e1; background: #fff; border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.tm-flag.on { background: #fef3c7; border-color: #f59e0b; }
.tm-navwrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.tm-navcount { color: #475569; }
.tm-navcount em { font-style: normal; color: #b45309; }
#tmSubmit, .tm-modal button, #tmGo { background: #0ea5e9; border: none; color: #fff; font-weight: 700; padding: 12px 22px; border-radius: 8px; cursor: pointer; font-size: 1rem; }
.tm-modal { background: #fefce8; border: 1px solid #fde047; padding: 16px 20px; border-radius: 10px; margin-top: 14px; }
.tm-warn { color: #b45309; font-weight: 600; }
.tm-wtask, .tm-stask { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 18px; margin-bottom: 20px; }
.tm-wprompt { line-height: 1.6; }
.tm-wlimit { color: #64748b; font-size: .9rem; }
.tm-wguidance { background: #f8fafc; border-radius: 6px; padding: 8px 12px; color: #475569; font-size: .92rem; }
.tm-wtask textarea { width: 100%; box-sizing: border-box; border: 1px solid #cbd5e1; border-radius: 8px; padding: 12px; font: inherit; }
.tm-wcount { color: #64748b; font-size: .9rem; }
.tm-simg img { max-width: 340px; border-radius: 10px; border: 1px solid #e2e8f0; }
.tm-speak { margin-top: 10px; display: flex; gap: 12px; align-items: center; }
.tm-prep { background: #10b981; border: none; color: #fff; padding: 10px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.tm-prep:disabled { background: #94a3b8; cursor: default; }
.tm-prept { font-weight: 700; color: #dc2626; font-variant-numeric: tabular-nums; min-width: 80px; }
.tm-report { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; }
.tm-bigscore { font-size: 1.5rem; font-weight: 800; color: #0f172a; }
.tm-stable { width: 100%; border-collapse: collapse; margin: 16px 0; }
.tm-stable th, .tm-stable td { border: 1px solid #e2e8f0; padding: 10px 12px; text-align: left; }
.tm-stable th { background: #f8fafc; }
.tm-review { border: 1px solid #e2e8f0; border-left-width: 4px; border-radius: 8px; padding: 12px 14px; margin: 10px 0; }
.tm-review.ok { border-left-color: #10b981; }
.tm-review.no { border-left-color: #dc2626; }
.tm-rexpl { color: #475569; font-size: .92rem; }
.tm-again { margin-top: 20px; display: flex; gap: 12px; }
.tm-again button { background: #0ea5e9; color: #fff; border: none; padding: 12px 20px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.tm-err { color: #dc2626; font-weight: 600; }
/* hub pages */
.mock-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin: 22px 0; }
.mock-card { border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; background: #fff; }
.mock-card h3 { margin: 0 0 6px; }
.mock-card ul { margin: 8px 0 14px; padding-left: 18px; color: #475569; font-size: .92rem; }
.mock-card a { color: #0ea5e9; font-weight: 600; text-decoration: none; }
@media (max-width: 640px) {
  .tm-row { flex-direction: column; align-items: flex-start; }
  .tm-navwrap { flex-direction: column; align-items: stretch; }
}
/* Mock listening audio player (matches the sectional listening pattern) */
.tm-audio { margin: 10px 0 16px; padding: 12px 16px; background: #f1f5f9; border: 1px solid var(--border, #e2e8f0); border-radius: 10px; }
.tm-audio-label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary, #0369a1); margin-bottom: 6px; }
.tm-audio audio { width: 100%; }
.tm-transbtn { margin-top: 8px; font-size: .82rem; padding: 5px 12px; border: 1px solid var(--border, #cbd5e1); background: #fff; color: #334155; border-radius: 6px; cursor: pointer; }
.tm-transbtn:hover { background: #f8fafc; }
.tm-trans { margin-top: 8px; padding: 10px 12px; background: #fff; border-radius: 8px; }
.tm-trans p { margin: 0; font-size: .9rem; color: #475569; line-height: 1.55; }
.tm-note { font-size: .9rem; color: #475569; }

/* One-question-at-a-time pager (matches the TEAS mock layout) */
.tm-pagebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 10px; flex-wrap: wrap; }
.tm-pbtn { padding: 9px 18px; border: 1px solid var(--border, #cbd5e1); background: #fff; border-radius: 8px; font-weight: 600; font-size: .92rem; cursor: pointer; color: inherit; }
.tm-pbtn:hover:not([disabled]) { background: #f8fafc; }
.tm-pbtn[disabled] { opacity: .45; cursor: not-allowed; }
.tm-pnext { background: var(--primary, #0369a1); border-color: var(--primary, #0369a1); color: #fff; }
.tm-pnext:hover:not([disabled]) { background: #075985; }
.tm-pcount { font-size: .92rem; color: #475569; }
.tm-navgrid { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.tm-navnum { width: 34px; height: 34px; border: 1px solid #cbd5e1; background: #fff; border-radius: 6px; cursor: pointer; font-size: .82rem; color: inherit; }
.tm-navnum.done { background: #dcfce7; border-color: #86efac; }
.tm-navnum.cur { outline: 2px solid var(--primary, #0369a1); font-weight: 700; }
.tm-navnum.flag { box-shadow: inset 0 0 0 2px #f59e0b; }
.tm-pagewrap { padding-bottom: 8px; }
.play-btn.playing { background: var(--primary, #0369a1); color: #fff; }
