html.nxlms-player-html, .nxlms-player-body { margin: 0 !important; padding: 0 !important; background: var(--nxp-bg, #f6f7f9); }
.nxlms-player-body #wpadminbar { display: none !important; }
html.nxlms-player-html { margin-top: 0 !important; }
.nxlms-locked { overflow: hidden; }

.nxlms.nxlms-player {
	--nxp-bg: #f6f7f9;
	--nxp-surface: #fff;
	--nxp-side: #fff;
	--nxp-line: #e6e8ec;
	--nxp-ink: #000000;
	--nxp-text: #334155;
	--nxp-muted: #64748b;
	--nxp-hover: #f1f5f9;
	--nxp-active: var(--nxf-brand-soft);
	--nxf-ink: var(--nxp-ink);
	--nxf-text: var(--nxp-text);
	--nxf-muted: var(--nxp-muted);
	--nxf-line: var(--nxp-line);
	--nxf-surface: var(--nxp-surface);
	--nxf-canvas: var(--nxp-hover);
	position: fixed;
	inset: 0;
	display: flex;
	flex-direction: column;
	background: var(--nxp-bg);
	color: var(--nxp-text);
}
[data-nxlms-theme="dark"] .nxlms.nxlms-player, [data-nxlms-theme="dark"] .nxlms-player-body {
	--nxp-bg: #0b1120;
	--nxp-surface: #111827;
	--nxp-side: #0f172a;
	--nxp-line: #1f2937;
	--nxp-ink: #f1f5f9;
	--nxp-text: #cbd5e1;
	--nxp-muted: #94a3b8;
	--nxp-hover: #1e293b;
	--nxp-active: color-mix(in srgb, var(--nxf-brand) 18%, transparent);
	--nxf-brand-soft: color-mix(in srgb, var(--nxf-brand) 18%, transparent);
}
[data-nxlms-theme="dark"] .nxlms-player-body { background: #0b1120; }

/* Top bar */
.nxlms .nxlms-pbar { display: flex; align-items: center; gap: 8px; height: 60px; flex-shrink: 0; padding: 0 12px; border-bottom: 1px solid var(--nxp-line); background: var(--nxp-surface); }
.nxlms .nxlms-pbtn { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; box-shadow: none; color: var(--nxp-muted); cursor: pointer; transition: background .15s ease, color .15s ease; }
.nxlms .nxlms-pbtn:hover { background: var(--nxp-hover); color: var(--nxp-ink); }
.nxlms .nxlms-pbtn svg { width: 20px; height: 20px; }
.nxlms .nxlms-pbtn[aria-pressed="true"] { background: var(--nxp-active); color: var(--nxf-brand); }
[data-nxlms-theme="dark"] .nxlms .nxlms-pbtn .is-sun, [data-nxlms-theme="light"] .nxlms .nxlms-pbtn .is-moon { display: none; }
.nxlms .nxlms-pbar-title { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 0 6px; line-height: 1.3; }
.nxlms .nxlms-pbar-course { overflow: hidden; color: var(--nxp-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.nxlms .nxlms-pbar-item { overflow: hidden; color: var(--nxp-ink); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.nxlms .nxlms-ring { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; }
.nxlms .nxlms-ring svg { position: absolute; inset: 0; width: 40px; height: 40px; transform: rotate(-90deg); }
.nxlms .nxlms-ring circle { fill: none; stroke: var(--nxp-line); stroke-width: 3; }
.nxlms .nxlms-ring .nxlms-ring-bar { stroke: var(--nxf-brand); stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: calc(97.4 - 97.4 * var(--p, 0) / 100); transition: stroke-dashoffset .5s ease; }
.nxlms .nxlms-ring span { position: relative; color: var(--nxp-ink); font-size: 10px; font-weight: 700; }

/* Body */
.nxlms .nxlms-pbody { position: relative; display: flex; flex: 1; min-height: 0; }
.nxlms .nxlms-pside { display: flex; flex-direction: column; width: 340px; flex-shrink: 0; border-right: 1px solid var(--nxp-line); background: var(--nxp-side); transition: margin .25s ease; }
.nxlms-player.is-spotlight .nxlms-pside { margin-left: -340px; }
.nxlms .nxlms-pside-head { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--nxp-line); color: var(--nxp-ink); font-size: 14px; }
.nxlms .nxlms-pside-scroll { flex: 1; overflow-y: auto; scrollbar-width: thin; }
.nxlms .nxlms-ptopic { border-bottom: 1px solid var(--nxp-line); }
.nxlms .nxlms-ptopic-head { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 14px 16px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--nxp-ink); font: inherit; text-align: left; text-transform: none; cursor: pointer; }
.nxlms .nxlms-ptopic-head:hover { background: var(--nxp-hover); color: var(--nxp-ink); }
.nxlms .nxlms-ptopic-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.nxlms .nxlms-ptopic-text strong { font-size: 13.5px; font-weight: 600; }
.nxlms .nxlms-ptopic-text em { color: var(--nxp-muted); font-size: 12px; font-style: normal; }
.nxlms .nxlms-ptopic-head svg { color: var(--nxp-muted); transition: transform .25s ease; }
.nxlms .nxlms-ptopic.is-open .nxlms-ptopic-head svg { transform: rotate(180deg); }
.nxlms .nxlms-ptopic-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.nxlms .nxlms-ptopic.is-open .nxlms-ptopic-body { grid-template-rows: 1fr; }
.nxlms .nxlms-ptopic-inner { overflow: hidden; }
.nxlms .nxlms-plist { padding: 0 8px 10px; }
.nxlms .nxlms-plist li { margin: 0; }
.nxlms .nxlms-pitem { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--nxp-text); font-size: 13.5px; transition: background .15s ease; }
.nxlms .nxlms-pitem:hover { background: var(--nxp-hover); color: var(--nxp-ink); }
.nxlms .nxlms-pitem.is-active { background: var(--nxp-active); color: var(--nxp-ink); font-weight: 600; }
.nxlms .nxlms-pitem.is-locked { opacity: .55; }
.nxlms .nxlms-pitem-icon { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--nxp-line); color: var(--nxp-muted); }
.nxlms .nxlms-pitem-icon svg { width: 13px; height: 13px; }
.nxlms .nxlms-pitem.is-done .nxlms-pitem-icon { border-color: var(--nxf-brand); background: var(--nxf-brand); color: #fff; }
.nxlms .nxlms-pitem.is-active .nxlms-pitem-icon { border-color: var(--nxf-brand); color: var(--nxf-brand); }
.nxlms .nxlms-pitem.is-active.is-done .nxlms-pitem-icon { color: #fff; }
.nxlms .nxlms-pitem-title { flex: 1; min-width: 0; line-height: 1.4; }
.nxlms .nxlms-pitem-time { color: var(--nxp-muted); font-size: 11.5px; font-weight: 400; font-variant-numeric: tabular-nums; }
.nxlms .nxlms-pscrim { display: none; }

/* Main */
.nxlms .nxlms-pmain { flex: 1; min-width: 0; overflow-y: auto; }
.nxlms-player.is-loading .nxlms-pstage { opacity: .5; pointer-events: none; }
.nxlms .nxlms-pstage { display: flex; flex-direction: column; min-height: 100%; transition: opacity .2s ease; }
.nxlms .nxlms-pcontent { flex: 1; }
.nxlms .nxlms-lesson-media { background: #000; }
.nxlms .nxlms-media { position: relative; max-width: 1100px; margin: 0 auto; }
.nxlms .nxlms-media.is-video { aspect-ratio: 16 / 9; }
.nxlms .nxlms-media.is-video iframe, .nxlms .nxlms-media.is-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.nxlms .nxlms-lesson.is-pdf .nxlms-lesson-media, .nxlms .nxlms-lesson.is-embed .nxlms-lesson-media, .nxlms .nxlms-lesson.is-audio .nxlms-lesson-media { background: transparent; padding: 24px 24px 0; }
.nxlms .nxlms-media.is-pdf iframe { width: 100%; height: 75vh; border: 1px solid var(--nxp-line); border-radius: 12px; background: #fff; }
.nxlms .nxlms-media.is-embed { overflow: hidden; border-radius: 12px; }
.nxlms .nxlms-media.is-embed iframe { display: block; width: 100%; min-height: 480px; border: 0; }
.nxlms .nxlms-media.is-audio { display: flex; align-items: center; gap: 16px; max-width: 760px; padding: 20px; border: 1px solid var(--nxp-line); border-radius: 16px; background: var(--nxp-surface); }
.nxlms .nxlms-audio-art { display: grid; place-items: center; width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px; background: var(--nxf-brand-soft); color: var(--nxf-brand); }
.nxlms .nxlms-audio-art svg { width: 26px; height: 26px; }
.nxlms .nxlms-media.is-audio audio { flex: 1; min-width: 0; }
.nxlms .nxlms-pdf-download { margin: 12px auto 0; display: flex; width: max-content; }
.nxlms .nxlms-lesson-body, .nxlms .nxlms-quiz { max-width: 820px; margin: 0 auto; padding: 28px 24px 40px; }
.nxlms .nxlms-lesson-title { margin: 0 0 18px; color: var(--nxp-ink); font-size: 24px; letter-spacing: -.02em; }
.nxlms .nxlms-chapters { margin: 0 0 24px; padding: 16px; border: 1px solid var(--nxp-line); border-radius: 14px; background: var(--nxp-surface); }
.nxlms .nxlms-chapters > strong, .nxlms .nxlms-files > strong { display: block; margin-bottom: 10px; color: var(--nxp-ink); font-size: 14px; }
.nxlms .nxlms-chapters ol { display: grid; gap: 2px; }
.nxlms .nxlms-chapters li { margin: 0; }
.nxlms .nxlms-chapters button { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: var(--nxp-text); font: inherit; font-size: 14px; text-align: left; text-transform: none; cursor: pointer; }
.nxlms .nxlms-chapters button:hover { background: var(--nxp-hover); color: var(--nxp-ink); }
.nxlms .nxlms-chapters button span { min-width: 48px; color: var(--nxf-brand); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nxlms .nxlms-player .nxlms-prose { color: var(--nxp-text); }
.nxlms .nxlms-player .nxlms-prose.is-clamped::after { background: linear-gradient(transparent, var(--nxp-bg)); }
.nxlms .nxlms-files { margin-top: 28px; }
.nxlms .nxlms-files ul { display: grid; gap: 8px; }
.nxlms .nxlms-files li { margin: 0; }
.nxlms .nxlms-files a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--nxp-line); border-radius: 12px; background: var(--nxp-surface); color: var(--nxp-ink); transition: border-color .15s ease; }
.nxlms .nxlms-files a:hover { border-color: var(--nxf-brand); color: var(--nxp-ink); }
.nxlms .nxlms-file-icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--nxf-brand-soft); color: var(--nxf-brand); }
.nxlms .nxlms-file-name { display: flex; flex: 1; flex-direction: column; min-width: 0; font-size: 14px; font-weight: 500; }
.nxlms .nxlms-file-name em { color: var(--nxp-muted); font-size: 12px; font-style: normal; font-weight: 400; }
.nxlms .nxlms-files a > svg { color: var(--nxp-muted); }
.nxlms .nxlms-plock { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 460px; margin: 0 auto; padding: 96px 24px; text-align: center; }
.nxlms .nxlms-plock-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 20px; background: var(--nxp-hover); color: var(--nxp-muted); }
.nxlms .nxlms-plock-icon svg { width: 28px; height: 28px; }
.nxlms .nxlms-plock h1 { color: var(--nxp-ink); font-size: 20px; }
.nxlms .nxlms-plock p { color: var(--nxp-muted); }

/* Footer nav */
.nxlms .nxlms-pfoot { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--nxp-line); background: color-mix(in srgb, var(--nxp-surface) 92%, transparent); backdrop-filter: blur(10px); }
.nxlms .nxlms-pnav { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--nxp-text); }
.nxlms .nxlms-pnav.is-next { justify-self: end; text-align: right; }
.nxlms .nxlms-pnav span { display: flex; flex-direction: column; min-width: 0; overflow: hidden; font-size: 13.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.nxlms .nxlms-pnav em { color: var(--nxp-muted); font-size: 11.5px; font-style: normal; font-weight: 400; }
.nxlms .nxlms-pnav svg { width: 22px; height: 22px; flex-shrink: 0; padding: 4px; border-radius: 50%; border: 1px solid var(--nxp-line); box-sizing: content-box; }
.nxlms .nxlms-pnav:hover { color: var(--nxp-ink); }
.nxlms .nxlms-pnav:hover svg { border-color: var(--nxf-brand); color: var(--nxf-brand); }
.nxlms .nxlms-complete { gap: 8px; }
.nxlms .nxlms-complete.is-done { border-color: var(--nxf-brand); background: var(--nxf-brand-soft); color: var(--nxf-brand); opacity: 1; cursor: default; }

@media (max-width: 960px) {
	.nxlms .nxlms-pside { position: absolute; top: 0; bottom: 0; left: 0; z-index: 30; width: min(340px, 88vw); margin: 0 !important; transform: translateX(-100%); transition: transform .25s ease; }
	.nxlms-player.is-menu-open .nxlms-pside { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
	.nxlms .nxlms-pscrim { position: absolute; inset: 0; z-index: 20; display: block; margin: 0; padding: 0; border: 0; background: rgba(2, 6, 23, .5); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
	.nxlms-player.is-menu-open .nxlms-pscrim { opacity: 1; pointer-events: auto; }
	.nxlms .nxlms-hide-mobile { display: none; }
}
@media (min-width: 961px) {
	.nxlms .nxlms-show-mobile { display: none; }
}
@media (max-width: 640px) {
	.nxlms .nxlms-pbar { padding: 0 6px; gap: 2px; }
	.nxlms .nxlms-pbar-course { display: none; }
	.nxlms .nxlms-lesson-body, .nxlms .nxlms-quiz { padding: 20px 16px 32px; }
	.nxlms .nxlms-lesson-title { font-size: 20px; }
	.nxlms .nxlms-pfoot { grid-template-columns: auto 1fr auto; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
	.nxlms .nxlms-pnav span { display: none; }
	.nxlms .nxlms-complete { justify-self: center; }
	.nxlms .nxlms-lesson.is-pdf .nxlms-lesson-media, .nxlms .nxlms-lesson.is-embed .nxlms-lesson-media, .nxlms .nxlms-lesson.is-audio .nxlms-lesson-media { padding: 16px 16px 0; }
	.nxlms .nxlms-media.is-pdf iframe { height: 65vh; }
}

/* Quiz intro */
.nxlms .nxlms-quiz-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.nxlms .nxlms-quiz-intro .nxlms-lesson-title { margin: 0; }
.nxlms .nxlms-quiz-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--nxf-brand-soft); color: var(--nxf-brand); }
.nxlms .nxlms-quiz-badge svg { width: 24px; height: 24px; }
.nxlms .nxlms-quiz-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; }
.nxlms .nxlms-quiz-facts li { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 14px; border: 1px solid var(--nxp-line); border-radius: 14px; background: var(--nxp-surface); }
.nxlms .nxlms-quiz-facts strong { color: var(--nxp-ink); font-size: 18px; }
.nxlms .nxlms-quiz-facts span { color: var(--nxp-muted); font-size: 12.5px; }
.nxlms .nxlms-quiz-best { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 16px; border-radius: 12px; background: var(--nxp-hover); color: var(--nxp-text); font-size: 14px; }
.nxlms .nxlms-quiz-best.is-pass { background: var(--nxf-brand-soft); }
.nxlms .nxlms-link-btn { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; color: var(--nxf-brand); font: inherit; font-weight: 600; cursor: pointer; }

/* Quiz app */
.nxlms .nxlms-qtop { position: sticky; top: 0; z-index: 5; margin: -28px -24px 20px; padding: 14px 24px 0; border-bottom: 1px solid var(--nxp-line); background: color-mix(in srgb, var(--nxp-bg) 94%, transparent); backdrop-filter: blur(10px); }
.nxlms .nxlms-qtop-row { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; }
.nxlms .nxlms-qtitle { flex: 1; min-width: 0; overflow: hidden; color: var(--nxp-ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.nxlms .nxlms-qtimer { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: var(--nxp-hover); color: var(--nxp-ink); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nxlms .nxlms-qtimer svg { width: 16px; height: 16px; color: var(--nxp-muted); }
.nxlms .nxlms-qtimer.is-warning { background: #fee2e2; color: #b91c1c; animation: nxlms-pulse 1s ease-in-out infinite; }
.nxlms .nxlms-qtimer.is-warning svg { color: #b91c1c; }
@keyframes nxlms-pulse { 50% { opacity: .65; } }
.nxlms .nxlms-qnav-toggle, .nxlms .nxlms-qcount { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; border: 1px solid var(--nxp-line); border-radius: 20px; background: var(--nxp-surface); box-shadow: none; color: var(--nxp-text); font: inherit; font-size: 13px; text-transform: none; cursor: pointer; }
.nxlms .nxlms-qcount { border: 0; background: none; cursor: default; color: var(--nxp-muted); }
.nxlms .nxlms-qnav-toggle svg { width: 16px; height: 16px; }
.nxlms .nxlms-qprogress { height: 3px; margin: 0 -24px; background: var(--nxp-line); }
.nxlms .nxlms-qprogress span { display: block; width: 0; height: 100%; background: var(--nxf-brand); transition: width .3s ease; }
.nxlms .nxlms-qnav { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0; }
.nxlms .nxlms-qnav[hidden] { display: none; }
.nxlms .nxlms-qnav button { position: relative; width: 36px; height: 36px; margin: 0; padding: 0; border: 1px solid var(--nxp-line); border-radius: 10px; background: var(--nxp-surface); box-shadow: none; color: var(--nxp-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.nxlms .nxlms-qnav button.is-answered { border-color: var(--nxf-brand); background: var(--nxf-brand-soft); color: var(--nxf-brand); }
.nxlms .nxlms-qnav button.is-current { box-shadow: 0 0 0 2px var(--nxp-ink); }
.nxlms .nxlms-qnav button.is-flagged::after { content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border: 2px solid var(--nxp-bg); border-radius: 50%; background: #f59e0b; }

.nxlms .nxlms-qcard { margin: 0 0 18px; padding: 22px; border: 1px solid var(--nxp-line); border-radius: 18px; background: var(--nxp-surface); animation: nxlms-qin .25s ease; }
@keyframes nxlms-qin { from { opacity: 0; transform: translateY(6px); } }
.nxlms .nxlms-qcard-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; }
.nxlms .nxlms-qnum { color: var(--nxf-brand); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.nxlms .nxlms-qpts { color: var(--nxp-muted); font-size: 12.5px; }
.nxlms .nxlms-qflag { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 0 auto; padding: 5px 10px; border: 1px solid var(--nxp-line); border-radius: 20px; background: transparent; box-shadow: none; color: var(--nxp-muted); font: inherit; font-size: 12px; text-transform: none; cursor: pointer; }
.nxlms .nxlms-qflag svg { width: 14px; height: 14px; }
.nxlms .nxlms-qflag[aria-pressed="true"] { border-color: #f59e0b; background: #fffbeb; color: #b45309; }
.nxlms .nxlms-qcontent { margin-bottom: 18px; color: var(--nxp-ink); font-size: 17px; font-weight: 500; line-height: 1.55; }
.nxlms .nxlms-qcontent p { margin: 0 0 8px; }
.nxlms .nxlms-qcontent img { border-radius: 10px; }
.nxlms .nxlms-qfill { line-height: 2.4; }
.nxlms .nxlms-blank { display: inline-block; width: 150px; max-width: 100%; height: 36px; margin: 0 4px; padding: 0 10px; border: 0; border-bottom: 2px solid var(--nxf-brand); border-radius: 6px 6px 0 0; background: var(--nxf-brand-soft); box-shadow: none; color: var(--nxp-ink); font: inherit; font-size: 15px; text-align: center; vertical-align: middle; }
.nxlms .nxlms-blank:focus { outline: 2px solid var(--nxf-brand); outline-offset: 1px; }
.nxlms .nxlms-qmedia { margin: 0 0 18px; }
.nxlms .nxlms-qmedia img, .nxlms .nxlms-qmedia video { width: 100%; max-height: 380px; border-radius: 12px; object-fit: contain; background: #000; }
.nxlms .nxlms-qmedia audio { width: 100%; }
.nxlms .nxlms-qhint { margin: -8px 0 12px; color: var(--nxp-muted); font-size: 13px; }
.nxlms .nxlms-qopts { display: grid; gap: 10px; }
.nxlms .nxlms-qopts.is-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.nxlms .nxlms-qopt { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 14px 16px; border: 1.5px solid var(--nxp-line); border-radius: 14px; background: var(--nxp-surface); box-shadow: none; color: var(--nxp-ink); font: inherit; font-size: 15px; font-weight: 400; text-align: left; text-transform: none; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .1s ease; }
.nxlms .nxlms-qopt:hover { border-color: color-mix(in srgb, var(--nxf-brand) 50%, var(--nxp-line)); background: var(--nxp-surface); color: var(--nxp-ink); }
.nxlms .nxlms-qopt:active { transform: scale(.995); }
.nxlms .nxlms-qopt[aria-checked="true"] { border-color: var(--nxf-brand); background: var(--nxf-brand-soft); }
.nxlms .nxlms-qopt-mark { display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; border: 2px solid var(--nxp-line); border-radius: 6px; color: transparent; transition: all .15s ease; }
.nxlms .nxlms-qopt[role="radio"] .nxlms-qopt-mark { border-radius: 50%; }
.nxlms .nxlms-qopt-mark svg { width: 14px; height: 14px; }
.nxlms .nxlms-qopt[aria-checked="true"] .nxlms-qopt-mark { border-color: var(--nxf-brand); background: var(--nxf-brand); color: #fff; }
.nxlms .nxlms-qopt.is-image { flex-direction: column; align-items: stretch; padding: 8px; }
.nxlms .nxlms-qopt.is-image img { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; object-fit: cover; }
.nxlms .nxlms-qopt.is-image .nxlms-qopt-mark { position: absolute; top: 14px; right: 14px; background: var(--nxp-surface); }
.nxlms .nxlms-qopt.is-image .nxlms-qopt-text { padding: 4px 6px; text-align: center; }
.nxlms .nxlms-qmatch { display: grid; gap: 10px; }
.nxlms .nxlms-qmatch-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border: 1px solid var(--nxp-line); border-radius: 14px; }
.nxlms .nxlms-qmatch-row > span { color: var(--nxp-ink); font-weight: 500; }
.nxlms .nxlms-qsort { display: grid; gap: 8px; }
.nxlms .nxlms-qsort li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 10px 10px 8px; border: 1.5px solid var(--nxp-line); border-radius: 14px; background: var(--nxp-surface); transition: box-shadow .15s ease; }
.nxlms .nxlms-qsort li.is-dragging { border-color: var(--nxf-brand); box-shadow: 0 12px 30px rgba(15, 23, 42, .15); }
.nxlms .nxlms-qsort-handle { display: grid; place-items: center; width: 28px; height: 32px; color: var(--nxp-muted); cursor: grab; touch-action: none; }
.nxlms .nxlms-qsort-num { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; background: var(--nxp-hover); color: var(--nxp-muted); font-size: 12.5px; font-weight: 700; }
.nxlms .nxlms-qsort-text { flex: 1; color: var(--nxp-ink); }
.nxlms .nxlms-qsort-btns { display: flex; gap: 2px; }
.nxlms .nxlms-qsort-btns button { display: grid; place-items: center; width: 30px; height: 30px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: var(--nxp-muted); cursor: pointer; }
.nxlms .nxlms-qsort-btns button:hover { background: var(--nxp-hover); color: var(--nxp-ink); }
.nxlms .nxlms-qtext { width: 100%; }
.nxlms textarea.nxlms-qtext { min-height: 120px; }
.nxlms .nxlms-player .nxlms-input, .nxlms.nxlms-player .nxlms-input { border-color: var(--nxp-line); background: var(--nxp-surface); color: var(--nxp-ink); }
.nxlms .nxlms-qsteps { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; }
.nxlms .nxlms-qsteps.is-end { justify-content: center; margin-top: 24px; }

/* Confirm */
.nxlms-qconfirm { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(2, 6, 23, .55); animation: nxlms-fadein .15s ease; }
@keyframes nxlms-fadein { from { opacity: 0; } }
.nxlms-qconfirm-box { width: min(420px, 100%); padding: 24px; border-radius: 18px; background: var(--nxp-surface); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.nxlms-qconfirm-box h2 { margin: 0 0 8px; color: var(--nxp-ink); font-size: 18px; }
.nxlms-qconfirm-box p { margin: 0 0 20px; color: var(--nxp-muted); }
.nxlms-qconfirm-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Result */
.nxlms .nxlms-qresult { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 32px 24px; border: 1px solid var(--nxp-line); border-radius: 20px; background: var(--nxp-surface); text-align: center; }
.nxlms .nxlms-qscore { position: relative; display: grid; place-items: center; width: 120px; height: 120px; margin-bottom: 6px; }
.nxlms .nxlms-qscore svg { position: absolute; inset: 0; width: 120px; height: 120px; transform: rotate(-90deg); }
.nxlms .nxlms-qscore circle { fill: none; stroke: var(--nxp-line); stroke-width: 3; }
.nxlms .nxlms-qscore .nxlms-ring-bar { stroke: var(--nxf-brand); stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: calc(97.4 - 97.4 * var(--p, 0) / 100); transition: stroke-dashoffset 1s ease; }
.nxlms .nxlms-qresult.is-fail .nxlms-ring-bar { stroke: #ef4444; }
.nxlms .nxlms-qresult.is-pending .nxlms-ring-bar { stroke: #6366f1; }
.nxlms .nxlms-qscore strong { position: relative; color: var(--nxp-ink); font-size: 28px; }
.nxlms .nxlms-qresult h2 { margin: 0; color: var(--nxp-ink); font-size: 22px; }
.nxlms .nxlms-qresult p { max-width: 440px; color: var(--nxp-muted); }
.nxlms .nxlms-qresult-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.nxlms .nxlms-qresult-tags span { padding: 3px 10px; border-radius: 20px; background: var(--nxp-hover); color: var(--nxp-text); font-size: 12.5px; font-weight: 600; }
.nxlms .nxlms-qfeedback { width: 100%; margin: 6px 0 0; padding: 12px 16px; border-left: 3px solid var(--nxf-brand); border-radius: 8px; background: var(--nxp-hover); color: var(--nxp-text); text-align: left; }
.nxlms .nxlms-qfeedback strong { display: block; margin-bottom: 4px; color: var(--nxp-ink); font-size: 13px; }
.nxlms .nxlms-qresult-actions { display: flex; gap: 10px; margin-top: 8px; }
.nxlms .nxlms-qreview { margin-top: 28px; }
.nxlms .nxlms-qreview h3 { margin: 0 0 12px; color: var(--nxp-ink); font-size: 16px; }
.nxlms .nxlms-qreview ol { display: grid; gap: 10px; }
.nxlms .nxlms-qreview li { margin: 0; padding: 14px 16px; border: 1px solid var(--nxp-line); border-left-width: 3px; border-radius: 14px; background: var(--nxp-surface); }
.nxlms .nxlms-qreview li.is-correct { border-left-color: var(--nxf-brand); }
.nxlms .nxlms-qreview li.is-wrong, .nxlms .nxlms-qreview li.is-skipped { border-left-color: #ef4444; }
.nxlms .nxlms-qreview li.is-partial { border-left-color: #f59e0b; }
.nxlms .nxlms-qreview li.is-pending { border-left-color: #6366f1; }
.nxlms .nxlms-qreview-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.nxlms .nxlms-qreview-head strong { flex: 1; color: var(--nxp-ink); font-size: 14px; font-weight: 600; }
.nxlms .nxlms-qreview-head em { color: var(--nxp-muted); font-size: 12.5px; font-style: normal; }
.nxlms .nxlms-qreview-icon { display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: #fee2e2; color: #b91c1c; }
.nxlms .nxlms-qreview-icon svg { width: 13px; height: 13px; }
.nxlms .is-correct .nxlms-qreview-icon, .nxlms .is-partial .nxlms-qreview-icon { background: var(--nxf-brand-soft); color: var(--nxf-brand); }
.nxlms .is-pending .nxlms-qreview-icon { background: #e0e7ff; color: #4338ca; }
.nxlms .nxlms-qreview-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 4px 0 4px 32px; font-size: 13.5px; }
.nxlms .nxlms-qreview-row > span { color: var(--nxp-muted); }
.nxlms .nxlms-qreview-row > div { color: var(--nxp-text); }
.nxlms .nxlms-qreview-row.is-correct > div { color: var(--nxf-brand); font-weight: 500; }
.nxlms .nxlms-qreview-note { margin: 8px 0 0 32px; padding: 10px 12px; border-radius: 10px; background: var(--nxp-hover); color: var(--nxp-text); font-size: 13.5px; }
.nxlms .nxlms-faint { color: var(--nxp-muted); }

@media (max-width: 640px) {
	.nxlms .nxlms-quiz-facts { grid-template-columns: 1fr 1fr; }
	.nxlms .nxlms-qtop { margin: -20px -16px 16px; padding: 12px 16px 0; }
	.nxlms .nxlms-qprogress { margin: 0 -16px; }
	.nxlms .nxlms-qcard { padding: 16px; border-radius: 16px; }
	.nxlms .nxlms-qcontent { font-size: 16px; }
	.nxlms .nxlms-qmatch-row { grid-template-columns: 1fr; padding: 12px; }
	.nxlms .nxlms-qreview-row { grid-template-columns: 1fr; gap: 2px; padding-left: 0; }
	.nxlms .nxlms-qreview-note { margin-left: 0; }
	.nxlms .nxlms-qflag span { display: none; }
}

/* Notes and Q&A */
.nxlms .nxlms-extras { margin-top: 36px; }
.nxlms .nxlms-extra-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--nxp-line); }
.nxlms .nxlms-extra-tabs button { position: relative; margin: 0 0 -1px; padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; box-shadow: none; color: var(--nxp-muted); font: inherit; font-size: 14px; font-weight: 600; text-transform: none; cursor: pointer; }
.nxlms .nxlms-extra-tabs button:hover { color: var(--nxp-ink); }
.nxlms .nxlms-extra-tabs button[aria-selected="true"] { border-bottom-color: var(--nxf-brand); color: var(--nxp-ink); }
.nxlms .nxlms-note-form, .nxlms .nxlms-qa-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.nxlms .nxlms-note-form > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nxlms .nxlms-note-form textarea, .nxlms .nxlms-qa-form textarea { height: auto; min-height: 0; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.nxlms .nxlms-qa-form .nxlms-btn { align-self: flex-end; }
.nxlms .nxlms-note-at { color: var(--nxf-brand); font-size: 13px; font-weight: 600; }
.nxlms .nxlms-notes, .nxlms .nxlms-qa { display: grid; gap: 10px; }
.nxlms .nxlms-notes li { position: relative; display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 44px 12px 14px; border: 1px solid var(--nxp-line); border-radius: 12px; background: var(--nxp-surface); }
.nxlms .nxlms-notes p { margin: 0; color: var(--nxp-text); font-size: 14px; white-space: normal; }
.nxlms .nxlms-note-time { flex-shrink: 0; margin: 0; padding: 2px 8px; border: 0; border-radius: 6px; background: var(--nxf-brand-soft); box-shadow: none; color: var(--nxf-brand); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.nxlms .nxlms-note-del { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: none; box-shadow: none; color: var(--nxp-muted); cursor: pointer; opacity: 0; transition: opacity .15s ease, background .15s ease; }
.nxlms .nxlms-notes li:hover .nxlms-note-del, .nxlms .nxlms-note-del:focus { opacity: 1; }
.nxlms .nxlms-note-del:hover { background: #fee2e2; color: #b91c1c; }
.nxlms .nxlms-note-del svg { width: 16px; height: 16px; }
.nxlms .nxlms-extra-empty { padding: 24px; border: 1px dashed var(--nxp-line); border-radius: 12px; color: var(--nxp-muted); font-size: 14px; text-align: center; }
.nxlms .nxlms-qa-item { display: flex; gap: 12px; margin: 0; padding: 14px; border: 1px solid var(--nxp-line); border-radius: 14px; background: var(--nxp-surface); }
.nxlms .nxlms-qa-item.is-reply { padding: 12px 0 0; border: 0; border-top: 1px solid var(--nxp-line); border-radius: 0; background: none; }
.nxlms .nxlms-qa-main { flex: 1; min-width: 0; }
.nxlms .nxlms-qa-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 4px; }
.nxlms .nxlms-qa-meta strong { color: var(--nxp-ink); font-size: 14px; }
.nxlms .nxlms-qa-meta em { color: var(--nxp-muted); font-size: 12px; font-style: normal; }
.nxlms .nxlms-qa-badge { padding: 1px 8px; border-radius: 20px; background: var(--nxf-brand-soft); color: var(--nxf-brand); font-size: 11px; font-weight: 700; }
.nxlms .nxlms-qa-text { color: var(--nxp-text); font-size: 14px; line-height: 1.6; }
.nxlms .nxlms-qa-text p { margin: 0 0 6px; }
.nxlms .nxlms-qa-reply-btn { margin: 4px 0 0; padding: 0; border: 0; background: none; box-shadow: none; color: var(--nxp-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.nxlms .nxlms-qa-reply-btn:hover { color: var(--nxf-brand); }
.nxlms .nxlms-qa-replies { display: grid; gap: 0; margin-top: 10px; }
.nxlms .nxlms-qa-form.is-reply { margin: 10px 0 0; }
.nxlms .nxlms-qa-form.is-reply .nxlms-btn { min-height: 36px; }
@media (max-width: 640px) {
	.nxlms .nxlms-note-del { opacity: 1; }
	.nxlms .nxlms-qa-item { padding: 12px; }
}
[data-nxlms-theme="dark"] .nxlms, [data-nxlms-theme="dark"] .nxlms * { scrollbar-color: rgba(255, 255, 255, .2) transparent; }
[data-nxlms-theme="dark"] .nxlms ::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .2); }
