/* EN4U LMS — instructor dashboard. Scoped to .en4ulms; uses the EN4U Academy theme colours when present. */
.en4ulms {
	--l-primary: var(--color-primary, #070235);
	--l-accent: var(--color-brand, #ea580c);
	--l-accent-dark: var(--color-brand-dark, #c2410c);
	--l-blue: var(--color-secondary, #0051d5);
	--l-text: #1f2937;
	--l-muted: #64748b;
	--l-line: #e5e7eb;
	--l-soft: #f6f7fb;
	--l-good: #047857;
	--l-bad: #b91c1c;
	color: var(--l-text);
	font-size: 15px;
	line-height: 1.55;
	max-width: 1180px;
	margin: 0 auto;
}
.en4ulms *, .en4ulms *::before, .en4ulms *::after { box-sizing: border-box; }
.en4ulms h2 { font-size: 1.6rem; font-weight: 800; color: var(--l-primary); margin: 0 0 .25rem; line-height: 1.2; }
.en4ulms h3 { font-size: 1.1rem; font-weight: 800; color: var(--l-primary); margin: 0 0 .75rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.en4ulms a { color: var(--l-blue); }
.en4ulms-kicker { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--l-accent); }
.en4ulms-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; }
.en4ulms-muted { color: var(--l-muted); font-size: .85em; }
.en4ulms-help { color: var(--l-muted); font-size: .85rem; margin: .35rem 0 0; }
.en4ulms-mt { margin-top: 1.5rem !important; }
.en4ulms-center { text-align: center; max-width: 560px; margin: 2rem auto; }

/* Tabs */
.en4ulms-tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 2px solid var(--l-line); margin: 0 0 1.25rem; scrollbar-width: none; }
.en4ulms-tabs::-webkit-scrollbar { display: none; }
.en4ulms-tabs a { flex: 0 0 auto; padding: .7rem 1rem; font-weight: 700; font-size: .92rem; color: var(--l-muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.en4ulms-tabs a:hover { color: var(--l-primary); }
.en4ulms-tabs a.is-active { color: var(--l-primary); border-bottom-color: var(--l-accent); }
.en4ulms-badge { display: inline-flex; min-width: 1.3em; height: 1.3em; padding: 0 .35em; align-items: center; justify-content: center; border-radius: 999px; background: var(--l-accent); color: #fff; font-size: .72rem; }

/* Cards, layout */
.en4ulms-card { background: #fff; border: 1px solid var(--l-line); border-radius: 16px; padding: 1.25rem; margin: 0 0 1rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.en4ulms-card.is-highlight { border-color: #fdba74; background: #fff7ed; }
.en4ulms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.en4ulms-grid.is-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.en4ulms-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.en4ulms-split > * { min-width: 0; }
@media (max-width: 860px) { .en4ulms-split { grid-template-columns: 1fr; } }
.en4ulms-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin: 0 0 .75rem; }
.en4ulms-toolbar h3 { margin: 0; }
.en4ulms-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.en4ulms-row input { flex: 1 1 220px; }
.en4ulms-empty { padding: 2rem 1rem; text-align: center; color: var(--l-muted); background: var(--l-soft); border: 1px dashed var(--l-line); border-radius: 14px; margin: 0 0 1rem; }

/* Stats */
.en4ulms-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; margin: 0 0 1rem; }
.en4ulms-stat { background: #fff; border: 1px solid var(--l-line); border-radius: 14px; padding: .9rem 1rem; color: var(--l-muted); font-size: .85rem; font-weight: 600; }
.en4ulms-stat span { display: block; font-size: 1.6rem; font-weight: 800; color: var(--l-primary); line-height: 1.2; }
.en4ulms-stat.is-good span { color: var(--l-good); }
.en4ulms-stat.is-bad span { color: var(--l-bad); }

/* Forms */
.en4ulms-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.en4ulms-fieldset { border: 1px solid var(--l-line) !important; border-radius: 16px; padding: 1rem 1.25rem !important; margin: 0 0 1rem !important; background: #fff; }
.en4ulms-fieldset legend { font-weight: 800; color: var(--l-primary); padding: 0 .4rem; }
.en4ulms-field { margin: 0 0 .9rem; min-width: 0; }
.en4ulms-field.is-wide { grid-column: 1 / -1; }
.en4ulms-field > label, .en4ulms-label { display: block; font-weight: 700; font-size: .88rem; margin: 0 0 .3rem; color: var(--l-primary); }
.en4ulms .req { color: var(--l-bad); }
.en4ulms input[type="text"], .en4ulms input[type="email"], .en4ulms input[type="url"], .en4ulms input[type="tel"], .en4ulms input[type="number"], .en4ulms input[type="search"], .en4ulms input[type="password"], .en4ulms input[type="datetime-local"], .en4ulms select, .en4ulms textarea {
	width: 100%; max-width: 100%; padding: .6rem .75rem; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; font: inherit; font-size: .95rem; color: var(--l-text); min-height: 42px;
}
.en4ulms textarea { min-height: 0; resize: vertical; }
.en4ulms input:focus, .en4ulms select:focus, .en4ulms textarea:focus { outline: 2px solid var(--l-blue); outline-offset: 1px; border-color: var(--l-blue); }
.en4ulms input[type="file"] { font-size: .9rem; max-width: 100%; }
.en4ulms-check { display: flex; align-items: flex-start; gap: .5rem; font-size: .92rem; margin: .35rem 0; cursor: pointer; }
.en4ulms-check input { margin-top: .25rem; flex: 0 0 auto; }
.en4ulms-check.is-tall { margin-top: 1.7rem; }
.en4ulms-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .75rem 0 0; }
.en4ulms-inline { display: inline-flex; gap: .35rem; align-items: center; margin: 0; flex-wrap: wrap; }
.en4ulms fieldset[disabled] { opacity: .6; }

/* Buttons */
.en4ulms-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .62rem 1.1rem; border-radius: 11px; border: 1px solid var(--l-accent); background: var(--l-accent); color: #fff !important; font-weight: 700; font-size: .92rem; line-height: 1.2; text-decoration: none !important; cursor: pointer; min-height: 42px; }
.en4ulms-btn:hover { background: var(--l-accent-dark); border-color: var(--l-accent-dark); }
.en4ulms-btn.is-ghost { background: #fff; color: var(--l-primary) !important; border-color: #d1d5db; }
.en4ulms-btn.is-ghost:hover { border-color: var(--l-primary); background: var(--l-soft); }
.en4ulms-btn.is-small { padding: .4rem .75rem; min-height: 34px; font-size: .85rem; }
.en4ulms-btn.is-danger { background: #fff; border-color: #fecaca; color: var(--l-bad) !important; }
.en4ulms-btn.is-danger:hover { background: #fef2f2; }
.en4ulms-link { background: none; border: 0; padding: 0; color: var(--l-blue); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; text-decoration: underline; }
.en4ulms-icon { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--l-line); background: #fff; color: var(--l-primary); cursor: pointer; font-size: 1rem; line-height: 1; }
.en4ulms-icon:hover { border-color: var(--l-primary); }
.en4ulms-icon.is-danger { color: var(--l-bad); }
.en4ulms-danger { text-align: right; margin: -.25rem 0 1rem; }

/* Notices and pills */
.en4ulms-notice { padding: .75rem 1rem; border-radius: 12px; margin: 0 0 1rem; font-weight: 600; font-size: .92rem; border: 1px solid; }
.en4ulms-notice.is-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.en4ulms-notice.is-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.en4ulms-notice.is-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.en4ulms-pill { display: inline-block; padding: .15rem .55rem; border-radius: 999px; background: var(--l-soft); border: 1px solid var(--l-line); font-size: .74rem; font-weight: 700; color: var(--l-muted); white-space: nowrap; }
.en4ulms-pill.is-shared { background: #f5f3ff; border-color: #ddd6fe; color: #5b21b6; }
.en4ulms-pill.is-approved, .en4ulms-pill.is-publish { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.en4ulms-pill.is-submitted, .en4ulms-pill.is-pending { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.en4ulms-pill.is-rejected { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* Lists and tables */
.en4ulms-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.en4ulms-list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--l-line); flex-wrap: wrap; }
.en4ulms-ticks { margin: 0; padding-left: 1.2rem; }
.en4ulms-ticks li { margin: .25rem 0; }
.en4ulms-steps { margin: 0; padding-left: 1.2rem; }
.en4ulms-steps li { margin: .4rem 0; }
.en4ulms-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--l-line); border-radius: 14px; margin: 0 0 1rem; background: #fff; }
.en4ulms-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; margin: 0; }
.en4ulms > .en4ulms-body > .en4ulms-table, .en4ulms-body > .en4ulms-table { border: 1px solid var(--l-line); border-radius: 14px; overflow: hidden; display: table; }
.en4ulms-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--l-muted); background: var(--l-soft); padding: .6rem .75rem; border-bottom: 1px solid var(--l-line); white-space: nowrap; }
.en4ulms-table td { padding: .65rem .75rem; border-bottom: 1px solid var(--l-line); vertical-align: top; }
.en4ulms-table tr:last-child td { border-bottom: 0; }
.en4ulms-table .cb { width: 32px; }
.en4ulms-table tr.is-muted td { opacity: .55; }
.en4ulms-table tr.is-error td { background: #fef2f2; }
.en4ulms-table.is-compact td { padding: .45rem .6rem; font-size: .85rem; }
.en4ulms-qtext { display: block; font-weight: 600; color: var(--l-text); }
.en4ulms-nowrap { white-space: nowrap; }

/* Filters and bulk */
.en4ulms-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; align-items: center; }
.en4ulms-filters input[type="search"] { flex: 1 1 220px; width: auto; }
.en4ulms-filters select { width: auto; flex: 0 1 auto; }
.en4ulms-bulkbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .6rem .75rem; background: var(--l-soft); border: 1px solid var(--l-line); border-radius: 12px; margin: 0 0 .6rem; }
.en4ulms-bulkbar select, .en4ulms-bulkbar input[type="text"] { width: auto; min-height: 34px; padding: .35rem .6rem; }
.en4ulms-bulkbar .en4ulms-check { margin: 0 .5rem 0 0; }
.en4ulms-pager { display: flex; gap: .3rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.en4ulms-pager a, .en4ulms-pager span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--l-line); border-radius: 9px; text-decoration: none; color: var(--l-primary); font-weight: 700; font-size: .88rem; background: #fff; }
.en4ulms-pager a.is-active { background: var(--l-primary); color: #fff; border-color: var(--l-primary); }

/* Question editor */
.en4ulms-typebox { border: 1px solid var(--l-line); border-radius: 14px; padding: 1rem; margin: 0 0 1rem; background: var(--l-soft); }
.en4ulms-option { display: flex; gap: .5rem; align-items: center; margin: 0 0 .5rem; }
.en4ulms-option input[type="text"] { flex: 1 1 auto; }
.en4ulms-option select { width: auto; flex: 0 0 auto; }
.en4ulms-option.is-extra { display: none; }
.en4ulms-letter { flex: 0 0 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: #fff; border: 1px solid var(--l-line); font-weight: 800; color: var(--l-primary); }
.en4ulms-correct { display: inline-flex; gap: .3rem; align-items: center; font-size: .82rem; font-weight: 700; color: var(--l-good); white-space: nowrap; }
.en4ulms-match { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .en4ulms-match { grid-template-columns: 1fr; } }
.en4ulms-passage { background: var(--l-soft); border-left: 4px solid var(--l-accent); padding: .75rem 1rem; border-radius: 0 12px 12px 0; margin: 0 0 1rem; }
.en4ulms-opts li.is-correct { color: var(--l-good); font-weight: 700; }
.en4ulms-qimg { max-width: 100%; border-radius: 10px; }
.en4ulms-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; display: block; margin: 0 0 .5rem; }
.en4ulms-signature { max-width: 220px; height: auto; display: block; background: #fff; border: 1px solid var(--l-line); border-radius: 8px; padding: .25rem; margin: 0 0 .25rem; }

/* Test builder */
.en4ulms-qlist { list-style: decimal; margin: 0 0 1rem; padding-left: 1.6rem; }
.en4ulms-qlist li { padding: .6rem 0; border-bottom: 1px solid var(--l-line); }
.en4ulms-qlist li > * { vertical-align: middle; }
.en4ulms-qlist li { display: list-item; }
.en4ulms-qlist li .en4ulms-qmain { display: inline-block; width: calc(100% - 130px); }
.en4ulms-qlist li form { float: right; }
.en4ulms-qlist li::after { content: ""; display: block; clear: both; }
.en4ulms-picklist { list-style: none; margin: 0 0 1rem; padding: 0; border: 1px solid var(--l-line); border-radius: 14px; overflow: hidden; }
.en4ulms-picklist li { border-bottom: 1px solid var(--l-line); background: #fff; }
.en4ulms-picklist li:last-child { border-bottom: 0; }
.en4ulms-picklist label { display: flex; gap: .65rem; align-items: flex-start; padding: .65rem .85rem; cursor: pointer; }
.en4ulms-picklist label:hover { background: var(--l-soft); }
.en4ulms-picklist input { margin-top: .3rem; }
@media (max-width: 640px) {
	.en4ulms { font-size: 14px; }
	.en4ulms-card { padding: 1rem; border-radius: 14px; }
	.en4ulms-qlist li .en4ulms-qmain { width: 100%; }
	.en4ulms-qlist li form { float: none; margin-top: .4rem; }
	.en4ulms-table { font-size: .84rem; }
}

/* Question list on phones: one card per question (type, subject and marks under the text). */
@media (max-width: 640px) {
	.en4ulms-qtable thead { display: none; }
	.en4ulms-qtable, .en4ulms-qtable tbody { display: block; }
	.en4ulms-qtable tr { display: grid; grid-template-columns: 28px 1fr auto; gap: 2px 8px; padding: .7rem .6rem; border-bottom: 1px solid var(--l-line); }
	.en4ulms-qtable td { display: block; border: 0; padding: 0; }
	.en4ulms-qtable td.cb { grid-row: 1 / span 3; padding-top: 2px; }
	.en4ulms-qtable td:nth-child(2) { grid-column: 2 / span 2; }
	.en4ulms-qtable td:nth-child(3), .en4ulms-qtable td:nth-child(4), .en4ulms-qtable td:nth-child(5) { grid-column: 2; display: inline; font-size: .78rem; color: var(--l-muted); }
	.en4ulms-qtable td:nth-child(6) { grid-column: 2; }
	.en4ulms-qtable td:last-child { grid-column: 3; grid-row: 4; align-self: end; }
}
@media (max-width: 640px) {
	.en4ulms-qtable td:nth-child(5)::before { content: attr(data-label) " "; }
	.en4ulms-qtable td .en4ulms-pill, .en4ulms-qtable td [class*="pill"], .en4ulms-qtable td [class*="tag"] { white-space: normal; max-width: 100%; }
}

/* ===================== Phase 2: students, player, results ===================== */
.en4ulms-btn.is-big { padding: .85rem 1.6rem; font-size: 1rem; min-height: 50px; width: 100%; }
.en4ulms-ico { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; color: var(--l-accent); }
.en4ulms-facts { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .5rem; }
.en4ulms-facts li { display: flex; align-items: center; gap: .5rem; background: var(--l-soft); border-radius: 12px; padding: .55rem .75rem; font-weight: 700; font-size: .9rem; color: var(--l-primary); }
.en4ulms-facts.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: .5rem 0; }
.en4ulms-facts.is-compact li { font-size: .82rem; padding: .45rem .6rem; }
.en4ulms-prose p { margin: 0 0 .75rem; }
.en4ulms-prose img { max-width: 100%; height: auto; }
.en4ulms-attempts { list-style: none; margin: 0; padding: 0; }
.en4ulms-attempts li { display: flex; justify-content: space-between; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--l-line); font-size: .9rem; }
.en4ulms-attempts li:last-child { border-bottom: 0; }
.en4ulms-mytests { display: grid; gap: .75rem; }
.en4ulms-mytest { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0; }
.en4ulms-mytest h3 { margin: 0 0 .2rem; }
.en4ulms-mytest.is-expired { opacity: .65; }
.en4ulms-pbox { margin: .75rem 0 0; padding: .9rem; border: 1px solid #fecdd3; background: #fff1f2; border-radius: 16px; max-width: none; }
.en4ulms-pbox-own { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding: 0 0 .6rem; margin: 0 0 .6rem; border-bottom: 1px solid #fecdd3; }
.en4ulms-pbox-own p { margin: 0; }
.en4ulms-pbox p.en4ulms-muted { margin: .25rem 0 0; }

/* Player */
body.en4ulms-taking .en4u-chat-fab, body.en4ulms-taking .en4u-chat-panel, body.en4ulms-taking [data-en4u-bnav], body.en4ulms-taking .en4u-announcement { display: none !important; }
.en4ulms-player { --pbar: 64px; border: 1px solid var(--l-line); border-radius: 18px; background: #fff; overflow: hidden; }
.en4ulms-pbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1rem; background: var(--l-primary); color: #fff; }
.en4ulms-pbar-title { display: flex; align-items: center; gap: .5rem; min-width: 0; flex-wrap: wrap; }
.en4ulms-pbar-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 48vw; }
.en4ulms-pbar-right { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.en4ulms-timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.15rem; background: rgba(255,255,255,.12); padding: .3rem .7rem; border-radius: 10px; min-width: 4.5em; text-align: center; }
.en4ulms-timer.is-low { background: #dc2626; animation: en4ulmsPulse 1s ease-in-out infinite; }
@keyframes en4ulmsPulse { 50% { opacity: .75; } }
.en4ulms-save { font-size: .78rem; opacity: .85; }
.en4ulms-save.is-ok::before { content: '✓ '; }
.en4ulms-save.is-bad { color: #fecaca; opacity: 1; }
.en4ulms-pbody { display: grid; grid-template-columns: minmax(0, 1fr) 260px; min-height: 420px; }
.en4ulms-pmain { padding: 1.25rem 1.25rem 1rem; min-width: 0; scroll-margin-top: 90px; }
.en4ulms-qhead { display: flex; justify-content: space-between; gap: .5rem; font-weight: 800; color: var(--l-primary); margin: 0 0 .75rem; font-size: .92rem; }
.en4ulms-qbody { font-size: 1.05rem; color: var(--l-text); margin: 0 0 1rem; }
.en4ulms-qimg { max-width: 100%; height: auto; border-radius: 12px; margin: 0 0 1rem; display: block; }
.en4ulms-passage { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: .75rem 1rem; margin: 0 0 1rem; max-height: 340px; overflow: auto; }
.en4ulms-passage summary { font-weight: 800; cursor: pointer; color: #92400e; }
.en4ulms-opts { display: grid; gap: .55rem; }
.en4ulms-opt { display: flex; align-items: flex-start; gap: .7rem; border: 2px solid var(--l-line); border-radius: 14px; padding: .75rem .85rem; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.en4ulms-opt:hover { border-color: #c7d2fe; }
.en4ulms-opt.is-on { border-color: var(--l-blue); background: #eff6ff; }
.en4ulms-opt input { position: absolute; opacity: 0; pointer-events: none; }
.en4ulms-opt:focus-within { outline: 3px solid #93c5fd; outline-offset: 2px; }
.en4ulms-opt-k { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: var(--l-soft); color: var(--l-primary); }
.en4ulms-opt.is-on .en4ulms-opt-k { background: var(--l-blue); color: #fff; }
.en4ulms-opt-t { padding-top: .2rem; }
.en4ulms-num input { width: 100%; max-width: 320px; font-size: 1.2rem; padding: .7rem .9rem; border: 2px solid var(--l-line); border-radius: 12px; }
.en4ulms-match-play { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.en4ulms-match-right { list-style: none; margin: 0; padding: .75rem; background: var(--l-soft); border-radius: 12px; }
.en4ulms-match-right li { padding: .3rem 0; }
.en4ulms-match-left { display: grid; gap: .5rem; }
.en4ulms-match-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; border: 1px solid var(--l-line); border-radius: 12px; padding: .55rem .7rem; }
.en4ulms-match-row select { min-width: 90px; padding: .4rem; border-radius: 8px; border: 1px solid #cbd5e1; }
.en4ulms-palette { border-left: 1px solid var(--l-line); background: var(--l-soft); padding: 1rem; }
.en4ulms-palette-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; }
.en4ulms-qbtn { aspect-ratio: 1; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font-weight: 800; color: var(--l-primary); cursor: pointer; font-size: .85rem; position: relative; }
.en4ulms-qbtn.is-answered { background: #059669; border-color: #059669; color: #fff; }
.en4ulms-qbtn.is-flagged::after { content: ''; position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 2px #fff; }
.en4ulms-qbtn.is-current { outline: 3px solid var(--l-accent); outline-offset: 1px; }
.en4ulms-legend { list-style: none; margin: 1rem 0 0; padding: 0; font-size: .78rem; color: var(--l-muted); display: grid; gap: .3rem; }
.en4ulms-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid #cbd5e1; background: #fff; margin-right: .4rem; vertical-align: -2px; position: relative; }
.en4ulms-legend i.is-answered { background: #059669; border-color: #059669; }
.en4ulms-legend i.is-flagged { background: #f59e0b; border-color: #f59e0b; border-radius: 50%; }
.en4ulms-pfoot { display: flex; gap: .5rem; justify-content: space-between; flex-wrap: wrap; padding: .8rem 1rem; border-top: 1px solid var(--l-line); background: #fff; position: sticky; bottom: 0; z-index: 20; }
.en4ulms-pfoot [data-en4ulms-flag].is-on { background: #fffbeb; border-color: #f59e0b; color: #92400e !important; }
.en4ulms-only-mobile { display: none !important; }
.en4ulms-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(15, 23, 42, .55); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.en4ulms-modal[hidden] { display: none; }
.en4ulms-modal-box { background: #fff; border-radius: 18px; padding: 1.4rem; max-width: 440px; width: 100%; box-shadow: 0 25px 60px rgba(0,0,0,.3); }
@media (max-width: 900px) {
	.en4ulms-pbody { grid-template-columns: 1fr; }
	.en4ulms-palette { display: none; border-left: 0; border-top: 1px solid var(--l-line); }
	.en4ulms-player.is-palette .en4ulms-palette { display: block; position: fixed; inset: auto 0 0 0; max-height: 60vh; overflow: auto; z-index: 99990; box-shadow: 0 -10px 30px rgba(0,0,0,.2); border-radius: 18px 18px 0 0; }
	.en4ulms-palette-grid { grid-template-columns: repeat(8, 1fr); }
	.en4ulms-only-mobile { display: inline-flex !important; }
	.en4ulms-pbar { padding: .6rem .75rem; }
	.en4ulms-pbar-title strong { max-width: 34vw; font-size: .9rem; }
	.en4ulms-pmain { padding: 1rem .9rem; }
	.en4ulms-pfoot { padding: .6rem; }
	.en4ulms-pfoot .en4ulms-btn { flex: 1 1 45%; padding: .55rem .5rem; font-size: .85rem; }
	.en4ulms-match-play { grid-template-columns: 1fr; }
}

/* Results */
.en4ulms-rq { border-left-width: 4px; }
.en4ulms-rq.is-correct { border-left-color: #059669; }
.en4ulms-rq.is-wrong { border-left-color: #dc2626; }
.en4ulms-rq.is-partial { border-left-color: #f59e0b; }
.en4ulms-rq-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0 0 .5rem; }
.en4ulms-pill.is-correct { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.en4ulms-pill.is-wrong { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.en4ulms-pill.is-partial { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.en4ulms-ans { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .75rem; margin: .5rem 0; font-size: .92rem; }
.en4ulms-ans dt { font-weight: 800; color: var(--l-muted); }
.en4ulms-ans dd { margin: 0; }
.en4ulms-explain { background: #f0f9ff; border-radius: 12px; padding: .75rem 1rem; margin-top: .5rem; font-size: .92rem; }
.en4ulms-explain strong { display: block; margin-bottom: .25rem; color: #075985; }

/* Selling section + earnings */
.en4ulms-sell { border-top: 1px dashed var(--l-line); margin-top: 1rem; padding-top: 1rem; }
.en4ulms-money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.en4ulms-money.is-neg { color: var(--l-bad); }
.en4ulms-thumb { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; margin: 0 0 .4rem; }
.en4ulms .en4u-shopcats { max-height: 240px; overflow-y: auto; border: 1px solid var(--l-line); border-radius: 12px; padding: 8px 10px; background: #fff; display: grid; gap: 2px; }
.en4ulms .en4u-shopcats__item { display: flex; align-items: center; gap: 10px; padding: 5px 4px 5px calc(4px + var(--depth, 0) * 20px); border-radius: 8px; font-size: 14px; margin: 0; font-weight: 400; cursor: pointer; }
.en4ulms .en4u-shopcats__item:hover { background: var(--l-soft); }
.en4ulms .en4u-shopcats__item.is-stream { font-weight: 700; }

/* ===================== 0.3.0: Student Dashboard, dashboard switcher ===================== */
.en4ulms-switch { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1rem; }
.en4ulms-switch-label { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--l-muted); margin-right: .25rem; }
.en4ulms-switch a { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border: 1px solid var(--l-line); border-radius: 999px; font-weight: 700; font-size: .85rem; text-decoration: none; color: var(--l-primary); background: #fff; }
.en4ulms-switch a:hover { border-color: var(--l-primary); }
.en4ulms-switch a.is-active { background: var(--l-primary); border-color: var(--l-primary); color: #fff; }
.en4ulms-switch a .en4ulms-ico { font-size: 18px; color: inherit; }
.en4ulms h3 .en4ulms-ico { font-size: 22px; }
.en4ulms-links { list-style: none; margin: 0; padding: 0; }
.en4ulms-links li { border-bottom: 1px solid var(--l-line); }
.en4ulms-links li:last-child { border-bottom: 0; }
.en4ulms-links a { display: flex; align-items: center; gap: .6rem; padding: .65rem 0; font-weight: 700; color: var(--l-primary); text-decoration: none; }
.en4ulms-links a:hover { color: var(--l-accent); }
.en4ulms-portal .en4ulms-list li > div { min-width: 0; }
.en4ulms-portal .en4ulms-list li > div .en4ulms-muted { display: block; }
.en4ulms-score { font-weight: 800; color: var(--l-good) !important; text-decoration: none; white-space: nowrap; }
.en4ulms-score.is-pending { color: var(--l-muted) !important; font-weight: 600; font-size: .85rem; }
.en4ulms-card.en4ulms-flush { padding: 0; overflow: hidden; }
.en4ulms-pager { display: flex; align-items: center; justify-content: center; gap: .75rem; margin: 0 0 1rem; }
.en4ulms-teach { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--l-soft); }
.en4ulms-teach h3 { margin-bottom: .25rem; }
.en4ulms-teach p { margin: 0; }
.en4ulms-pill.is-completed { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.en4ulms-pill.is-processing, .en4ulms-pill.is-on-hold { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.en4ulms-pill.is-cancelled, .en4ulms-pill.is-failed, .en4ulms-pill.is-refunded { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.en4ulms-accountcard { margin: 0 0 1.25rem; max-width: none; }
.en4ulms-accountcard .en4ulms-btn .en4ulms-ico { font-size: 18px; }
.en4ulms-ebooks { min-width: 0; }
@media (max-width: 640px) {
	.en4ulms-results thead { display: none; }
	.en4ulms-results, .en4ulms-results tbody { display: block; }
	.en4ulms-results tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: .75rem .85rem; border-bottom: 1px solid var(--l-line); }
	.en4ulms-results tr:last-child { border-bottom: 0; }
	.en4ulms-results td { display: block; border: 0 !important; padding: 0; grid-column: 1; font-size: .85rem; }
	.en4ulms-results td:first-child { font-size: .95rem; }
	.en4ulms-results td:last-child { grid-column: 2; grid-row: 1 / span 5; align-self: center; }
	.en4ulms-results td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--l-muted); font-weight: 600; }
	.en4ulms-switch-label { width: 100%; }
}
/* Let EN4U Publish style its own library inside the eBooks tab. */
.en4ulms .en4ulms-ebooks .en4u-btn { color: var(--marigold-ink, #1f1300); }
.en4ulms .en4ulms-ebooks .en4u-btn--ghost { color: var(--indigo, #070235); }
/* Tables inside a flush card: full width, row lines only (overrides theme cell borders). */
.en4ulms .en4ulms-flush > .en4ulms-table { display: table; width: 100%; table-layout: auto; border: 0; }
.en4ulms .en4ulms-flush > .en4ulms-table th, .en4ulms .en4ulms-flush > .en4ulms-table td { border-left: 0; border-right: 0; border-top: 0; }
.en4ulms .en4ulms-flush > .en4ulms-table td:last-child { text-align: right; }

/* ===================== 0.4.0: courses, curriculum builder, bundles ===================== */
.en4ulms-subtabs { display: flex; gap: .35rem; flex-wrap: wrap; margin: 0 0 1rem; }
.en4ulms-subtabs a { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--l-line); background: #fff; color: var(--l-primary); font-weight: 700; font-size: .88rem; text-decoration: none; }
.en4ulms-subtabs a.is-active { background: var(--l-primary); border-color: var(--l-primary); color: #fff; }
.en4ulms-progress { height: 8px; border-radius: 999px; background: #e9edf5; overflow: hidden; margin: .5rem 0 .35rem; }
.en4ulms-progress span { display: block; height: 100%; background: var(--l-good); border-radius: inherit; }
.en4ulms-progress.is-thin { height: 5px; margin: .35rem 0 0; max-width: 260px; }
/* Builder */
.en4ulms-builder-section { border: 1px solid var(--l-line); border-radius: 14px; margin: 0 0 .9rem; overflow: hidden; }
.en4ulms-builder-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; padding: .6rem .85rem; background: var(--l-soft); border-bottom: 1px solid var(--l-line); color: var(--l-primary); }
.en4ulms-builder-empty { padding: .6rem .85rem; margin: 0; }
.en4ulms-builder-list { list-style: none; margin: 0; padding: 0; }
.en4ulms-builder-list li { display: flex; align-items: center; gap: .6rem; padding: .6rem .85rem; border-bottom: 1px solid var(--l-line); background: #fff; }
.en4ulms-builder-list li:last-child { border-bottom: 0; }
.en4ulms-builder-list li.is-gone { opacity: .55; }
.en4ulms-builder-main { flex: 1 1 auto; min-width: 0; }
.en4ulms-builder-main strong { display: block; color: var(--l-primary); }
.en4ulms-builder-main .en4ulms-muted { display: block; }
.en4ulms-builder-actions { flex: 0 0 auto; gap: .3rem; }
.en4ulms-inline { display: inline-flex; align-items: center; gap: .35rem; margin: 0; }
.en4ulms-inline select { max-width: 150px; }
.en4ulms-rename { position: relative; }
.en4ulms-rename summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; }
.en4ulms-rename summary::-webkit-details-marker { display: none; }
.en4ulms-rename[open] form { position: absolute; right: 0; top: 40px; z-index: 5; background: #fff; border: 1px solid var(--l-line); border-radius: 12px; padding: .5rem; box-shadow: 0 10px 30px rgba(15,23,42,.12); width: 300px; }
.en4ulms-picklist2 li { align-items: center; }
/* Course cards */
.en4ulms-coursegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.en4ulms-coursecard { background: #fff; border: 1px solid var(--l-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.en4ulms-coursecard.is-expired { opacity: .65; }
.en4ulms-coursecard-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--l-primary), #1e3a8a) center / cover no-repeat; text-decoration: none; }
.en4ulms-coursecard-img .en4ulms-ico { font-size: 48px; color: #fff; opacity: .85; }
.en4ulms-coursecard-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.en4ulms-coursecard-body h3 { margin: 0; font-size: 1.02rem; }
.en4ulms-coursecard-body h3 a { color: var(--l-primary); text-decoration: none; }
.en4ulms-coursecard-body p { margin: 0; }
.en4ulms-coursecard-body .en4ulms-btn { margin-top: .6rem; align-self: flex-start; }
/* Course overview */
.en4ulms-coursehero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; margin: 0 0 1rem; }
.en4ulms-coursehero h2 { font-size: 1.9rem; }
.en4ulms-lead { font-size: 1.05rem; color: var(--l-text); margin: .35rem 0 .5rem; }
.en4ulms-buybox { position: sticky; top: 90px; }
.en4ulms-buyimg { width: 100%; border-radius: 12px; margin: 0 0 .75rem; aspect-ratio: 16 / 9; object-fit: cover; }
.en4ulms-price { font-size: 1.6rem; font-weight: 800; color: var(--l-primary); margin: 0 0 .6rem; }
.en4ulms-price del { font-size: 1rem; color: var(--l-muted); font-weight: 600; }
.en4ulms-price ins { text-decoration: none; }
.en4ulms-outline { margin: 0 0 .9rem; }
.en4ulms-outline-title { font-weight: 800; color: var(--l-primary); margin: .75rem 0 .35rem; font-size: .95rem; }
.en4ulms-outline ol, .en4ulms-learnnav ol { list-style: none; margin: 0; padding: 0; border: 1px solid var(--l-line); border-radius: 12px; overflow: hidden; }
.en4ulms-outline li, .en4ulms-learnnav li { display: flex; align-items: center; gap: .55rem; padding: .55rem .75rem; border-bottom: 1px solid var(--l-line); background: #fff; font-size: .93rem; }
.en4ulms-outline li:last-child, .en4ulms-learnnav li:last-child { border-bottom: 0; }
.en4ulms-outline li > a, .en4ulms-outline li > span:not(.en4ulms-ico):not(.en4ulms-outline-meta) { flex: 1 1 auto; min-width: 0; color: var(--l-primary); font-weight: 600; text-decoration: none; }
.en4ulms-outline li.is-done .en4ulms-ico, .en4ulms-learnnav li.is-done > .en4ulms-ico { color: var(--l-good); }
.en4ulms-outline-meta { flex: 0 0 auto; font-size: .8rem; color: var(--l-muted); display: inline-flex; gap: .3rem; align-items: center; }
.en4ulms-ico.is-lock { font-size: 16px; color: var(--l-muted); }
/* Lesson player */
.en4ulms-crumb { margin: 0 0 .75rem; font-weight: 700; }
.en4ulms-crumb a { text-decoration: none; }
.en4ulms-learnwrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.en4ulms-learnside { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; }
.en4ulms-learnnav summary { font-weight: 800; color: var(--l-primary); cursor: pointer; margin: 0 0 .5rem; }
.en4ulms-learnnav li > a, .en4ulms-learnnav li > span:not(.en4ulms-ico) { flex: 1 1 auto; min-width: 0; color: var(--l-primary); text-decoration: none; font-size: .88rem; }
.en4ulms-learnnav li.is-here { background: #fff7ed; box-shadow: inset 3px 0 0 var(--l-accent); }
.en4ulms-learnnav li.is-here > a { font-weight: 800; }
.en4ulms-lesson h2 { margin-bottom: .75rem; }
.en4ulms-video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; margin: 0 0 1rem; }
.en4ulms-video iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.en4ulms-lessonnav { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; border-top: 1px solid var(--l-line); padding-top: 1rem; margin-top: 1.25rem; }
.en4ulms-ebookcard { display: flex; gap: 1rem; align-items: flex-start; }
.en4ulms-ebookcover { width: 110px; height: auto; border-radius: 8px; flex: 0 0 auto; }
/* Product page boxes */
.en4ulms-productbox { margin: 1rem 0; max-width: none; }
.en4ulms-save { display: flex; align-items: center; gap: .4rem; font-weight: 800; color: var(--l-good); margin: .25rem 0 .5rem; }
.en4ulms-save .en4ulms-ico { color: var(--l-good); }
.en4ulms-links li > span { display: flex; align-items: center; gap: .5rem; padding: .55rem 0; color: var(--l-primary); font-weight: 600; }
body.en4ulms-learning .en4u-chat-fab, body.en4ulms-learning .en4u-chat-panel { display: none !important; }
@media (max-width: 900px) {
	.en4ulms-coursehero, .en4ulms-learnwrap { grid-template-columns: 1fr; }
	.en4ulms-buybox, .en4ulms-learnside { position: static; max-height: none; }
	.en4ulms-coursehero h2 { font-size: 1.5rem; }
}
@media (max-width: 640px) {
	.en4ulms-builder-list li { flex-wrap: wrap; }
	.en4ulms-builder-actions { width: 100%; justify-content: flex-end; }
	.en4ulms-ebookcard { flex-direction: column; }
	.en4ulms-inline select { max-width: 120px; }
}
.en4ulms-earnsplit { table-layout: fixed; }
.en4ulms-earnsplit th, .en4ulms-earnsplit td { white-space: normal; word-break: break-word; padding: .55rem .6rem; }
.en4ulms-earnsplit th:first-child { width: 46%; }
.en4ulms-picklist2 li > div { flex: 1 1 200px; min-width: 0; }
.en4ulms-picklist2 li > div .en4ulms-muted { display: block; }

/* ===================== Phase 5 ===================== */
.en4ulms-small { font-size: .8rem; }
.en4ulms-linkbtn { background: none; border: 0; padding: 0; color: var(--l-blue); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; text-decoration: underline; }
.en4ulms-linkbtn.is-danger, .en4ulms-btn.is-danger { color: var(--l-bad) !important; }
.en4ulms-sechead { margin: 1.75rem 0 .75rem !important; }
.en4ulms-bullets { margin: 0 0 1rem; padding-left: 1.1rem; }
.en4ulms-bullets li { margin: 0 0 .4rem; }

/* Notifications */
.en4ulms-pushbox { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .85rem 1rem; border-radius: 14px; background: #fff7ed; border: 1px solid #fed7aa; margin: 0 0 1rem; }
.en4ulms-pushbox > .en4ulms-ico { font-size: 26px; }
.en4ulms-pushbox p { margin: 0; flex: 1 1 220px; font-weight: 600; color: var(--l-primary); font-size: .9rem; }
.en4ulms-pushbox.is-on { background: #ecfdf5; border-color: #a7f3d0; }
.en4ulms-pushbox.is-on > .en4ulms-ico { color: var(--l-good); }
.en4ulms-inbox { list-style: none; margin: 0; padding: 0; }
.en4ulms-inbox li { display: flex; gap: .75rem; padding: .8rem .25rem; border-bottom: 1px solid var(--l-line); }
.en4ulms-inbox li:last-child { border-bottom: 0; }
.en4ulms-inbox li > .en4ulms-ico { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--l-soft); display: inline-flex; align-items: center; justify-content: center; }
.en4ulms-inbox li.is-unread { background: linear-gradient(90deg, #fff7ed, transparent); }
.en4ulms-inbox li.is-unread strong::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--l-accent); margin-right: .4rem; vertical-align: middle; }
.en4ulms-inbox p { margin: .15rem 0; font-size: .88rem; }
.en4ulms-inbox a { text-decoration: none; color: var(--l-primary); }

/* Protected player */
.en4ulms-pplayer { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; margin: 0 0 1rem; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; outline: none; }
.en4ulms-pplayer:focus-visible { box-shadow: 0 0 0 3px var(--l-accent); }
.en4ulms-pp-stage, .en4ulms-pp-stage > *, .en4ulms-pp-stage iframe, .en4ulms-pp-stage video { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.en4ulms-pp-stage video { object-fit: contain; background: #000; }
.en4ulms-pplayer.has-bar .en4ulms-pp-stage iframe { pointer-events: none; }
.en4ulms-pp-shield { position: absolute; inset: 0 0 52px 0; z-index: 2; cursor: pointer; background: transparent; }
.en4ulms-pplayer .en4ulms-pp-big { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px !important; height: 76px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border-radius: 50% !important; border: 0 !important; background: rgba(234, 88, 12, .92) !important; color: #fff !important; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.en4ulms-pplayer .en4ulms-pp-big svg { width: 40px; height: 40px; margin-left: 4px; }
.en4ulms-pplayer.is-playing .en4ulms-pp-big { display: none; }
.en4ulms-pplayer .en4ulms-pp-bar { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .25rem; padding: 1.4rem .6rem .5rem; margin: 0; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); color: #fff; transition: opacity .25s; }
.en4ulms-pplayer.is-playing:not(:hover):not(:focus-within) .en4ulms-pp-bar { opacity: 0; }
.en4ulms-pplayer .en4ulms-pp-bar button, .en4ulms-pplayer .en4ulms-pp-bar select { -webkit-appearance: none; appearance: none; flex: 0 0 auto; width: auto !important; min-width: 34px; height: 34px !important; min-height: 0 !important; margin: 0 !important; padding: 0 .4rem !important; border: 0 !important; border-radius: 8px !important; background: transparent !important; color: #fff !important; box-shadow: none !important; font: 700 13px/1 system-ui, sans-serif !important; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.en4ulms-pplayer .en4ulms-pp-bar select { background: rgba(255, 255, 255, .14) !important; padding: 0 .5rem !important; text-align: center; }
.en4ulms-pplayer .en4ulms-pp-bar button:hover, .en4ulms-pplayer .en4ulms-pp-bar button:focus-visible { background: rgba(255, 255, 255, .2) !important; }
.en4ulms-pplayer .en4ulms-pp-bar select option { color: #000; background: #fff; }
.en4ulms-pplayer .en4ulms-pp-bar input[type=range] { -webkit-appearance: auto; appearance: auto; flex: 1 1 auto; width: auto !important; min-width: 50px; height: 4px; margin: 0 .4rem !important; padding: 0 !important; border: 0 !important; background: transparent; accent-color: var(--l-accent); box-shadow: none !important; }
.en4ulms-pp-i { display: block; }
.en4ulms-pplayer .en4ulms-pp-i.is-pause, .en4ulms-pplayer.is-playing [data-pp="play"] .en4ulms-pp-i.is-play, .en4ulms-pplayer .en4ulms-pp-i.is-mute, .en4ulms-pplayer.is-muted .en4ulms-pp-i.is-vol { display: none; }
.en4ulms-pplayer.is-playing [data-pp="play"] .en4ulms-pp-i.is-pause, .en4ulms-pplayer.is-muted .en4ulms-pp-i.is-mute { display: block; }
.en4ulms-pp-time { font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; opacity: .9; }
.en4ulms-pp-wm { position: absolute; z-index: 5; pointer-events: none; color: rgba(255, 255, 255, .55); text-shadow: 0 0 2px rgba(0, 0, 0, .8); font-size: clamp(11px, 1.6vw, 15px); font-weight: 700; white-space: nowrap; transition: left 1.2s ease, top 1.2s ease; mix-blend-mode: difference; }
.en4ulms-pp-guard { position: absolute; inset: 0; z-index: 6; background: #0b1020; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; gap: .75rem; }
.en4ulms-pp-guard[hidden], .en4ulms-pp-msg[hidden] { display: none; }
.en4ulms-pp-guard p { margin: 0; max-width: 420px; font-weight: 600; }
.en4ulms-pp-msg { position: absolute; z-index: 6; left: 1rem; right: 1rem; top: 1rem; background: rgba(0, 0, 0, .75); color: #fff; padding: .6rem .8rem; border-radius: 10px; font-size: .9rem; }
.en4ulms-pplayer.is-pseudo-fs { position: fixed; inset: 0; z-index: 99999; border-radius: 0; aspect-ratio: auto; }
.en4ulms-pplayer:fullscreen { border-radius: 0; }
.en4ulms-pplayer.is-embed .en4ulms-pp-wm { font-size: clamp(11px, 1.4vw, 14px); }
@media (max-width: 600px) { .en4ulms-pplayer .en4ulms-pp-bar [data-pp="back"], .en4ulms-pplayer .en4ulms-pp-bar [data-pp="fwd"], .en4ulms-pplayer .en4ulms-pp-bar [data-pp="rate"] { display: none !important; } .en4ulms-pplayer .en4ulms-pp-big { width: 60px !important; height: 60px !important; } .en4ulms-pplayer { border-radius: 10px; } }
@media print { .en4ulms-pplayer { visibility: hidden !important; } }

/* Lesson attachment and Q&A */
.en4ulms-attach { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border: 1px solid var(--l-line); border-radius: 14px; background: var(--l-soft); text-decoration: none !important; color: var(--l-primary) !important; margin: 0 0 1rem; }
.en4ulms-attach:hover { border-color: var(--l-accent); }
.en4ulms-attach > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.en4ulms-attach strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.en4ulms-attach small { color: var(--l-muted); }
.en4ulms-attach .en4ulms-ico { font-size: 26px; }
.en4ulms-qa { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--l-line); }
.en4ulms-qa-ask textarea, .en4ulms-qa-replybox textarea { width: 100%; }
.en4ulms-qa-item { border: 1px solid var(--l-line); border-radius: 14px; padding: .9rem 1rem; margin: 0 0 .75rem; background: #fff; }
.en4ulms-qa-item.is-hidden { opacity: .6; }
.en4ulms-qa-item header { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.en4ulms-qa-body p { margin: .35rem 0; }
.en4ulms-qa-reply { margin: .6rem 0 0 1rem; padding: .6rem .8rem; border-left: 3px solid var(--l-line); background: var(--l-soft); border-radius: 0 10px 10px 0; }
.en4ulms-qa-reply.is-staff { border-left-color: var(--l-accent); background: #fff7ed; }
.en4ulms-qa-replybox { margin-top: .5rem; }
.en4ulms-qa-replybox summary { cursor: pointer; color: var(--l-blue); font-weight: 600; font-size: .88rem; }
.en4ulms-qa-mod { display: flex; gap: .75rem; justify-content: flex-end; margin-top: .25rem; }

/* Live classes */
.en4ulms-livelist { list-style: none; margin: 0; padding: 0; }
.en4ulms-livelist li { display: flex; align-items: center; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid var(--l-line); flex-wrap: wrap; }
.en4ulms-livelist li:last-child { border-bottom: 0; }
.en4ulms-livelist li.is-cancelled { opacity: .55; }
.en4ulms-livelist li.is-live .en4ulms-livedate { background: var(--l-accent); color: #fff; }
.en4ulms-livedate { flex: 0 0 56px; height: 56px; border-radius: 12px; background: var(--l-soft); border: 1px solid var(--l-line); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--l-primary); line-height: 1.05; }
.en4ulms-livedate strong { font-size: 1.3rem; }
.en4ulms-livedate span { font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.en4ulms-livebody { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.en4ulms-livedesc { font-size: .86rem; color: var(--l-text); }
.en4ulms-pill.is-live { background: #fef2f2; border-color: #fecaca; color: #b91c1c; animation: en4ulms-pulse 1.6s infinite; }
@keyframes en4ulms-pulse { 50% { opacity: .55; } }
.en4ulms-reclist { list-style: none; padding: 0; margin: 0; }
.en4ulms-reclist li { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; flex-wrap: wrap; }

/* Certificates */
.en4ulms-certready { display: flex; gap: 1rem; align-items: center; background: linear-gradient(135deg, #fff7ed, #fff); border-color: #fdba74; }
.en4ulms-certready > .en4ulms-ico { font-size: 44px; }
.en4ulms-certready p { margin: .5rem 0 0; }
.en4ulms-certnote { display: flex; gap: .5rem; align-items: center; color: var(--l-muted); font-size: .9rem; margin: 0 0 1rem; }
.en4ulms-certgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.en4ulms-certcard { display: flex; border: 1px solid var(--l-line); border-radius: 14px; overflow: hidden; background: #fff; }
.en4ulms-certcard.is-revoked { opacity: .6; }
.en4ulms-certcard-art { flex: 0 0 76px; display: flex; align-items: center; justify-content: center; background: #fdf6e3; border-right: 4px double #ea580c; }
.en4ulms-certcard.is-modern .en4ulms-certcard-art { background: #070235; border-right: 4px solid #ea580c; }
.en4ulms-certcard.is-modern .en4ulms-certcard-art .en4ulms-ico { color: #fff; }
.en4ulms-certcard.is-elegant .en4ulms-certcard-art { background: #0b1437; border-right: 4px double #c8a24a; }
.en4ulms-certcard.is-elegant .en4ulms-certcard-art .en4ulms-ico { color: #c8a24a; }
.en4ulms-certcard-art .en4ulms-ico { font-size: 34px; }
.en4ulms-certcard-body { padding: .85rem 1rem; min-width: 0; }
.en4ulms-certcard-body h4 { margin: .2rem 0 .3rem; font-size: 1rem; color: var(--l-primary); }
.en4ulms-certcard-body p { margin: 0 0 .4rem; }
.en4ulms-designs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin: .4rem 0 1rem; }
.en4ulms-design { position: relative; display: flex; flex-direction: column; gap: .2rem; border: 2px solid var(--l-line); border-radius: 14px; padding: .6rem; cursor: pointer; background: #fff; }
.en4ulms-design:has(input:checked) { border-color: var(--l-accent); box-shadow: 0 0 0 3px #fed7aa; }
.en4ulms-design input { position: absolute; top: .7rem; right: .7rem; }
.en4ulms-design small { color: var(--l-muted); font-size: .78rem; }
.en4ulms-design a { font-size: .8rem; }
.en4ulms-design-art { position: relative; display: block; aspect-ratio: 297 / 210; border-radius: 8px; margin-bottom: .3rem; overflow: hidden; }
.en4ulms-design-art i, .en4ulms-design-art b, .en4ulms-design-art em { position: absolute; display: block; }
.en4ulms-design.is-classic .en4ulms-design-art { background: #fdf6e3; border: 3px double #ea580c; }
.en4ulms-design.is-classic .en4ulms-design-art i { left: 25%; right: 25%; top: 30%; height: 10%; background: #070235; border-radius: 3px; }
.en4ulms-design.is-classic .en4ulms-design-art b { left: 35%; right: 35%; top: 48%; height: 5%; background: #ea580c; }
.en4ulms-design.is-classic .en4ulms-design-art em { left: 15%; width: 22%; bottom: 14%; height: 3%; background: #070235; box-shadow: 120px 0 0 #070235; }
.en4ulms-design.is-modern .en4ulms-design-art { background: #fff; border: 1px solid var(--l-line); }
.en4ulms-design.is-modern .en4ulms-design-art i { left: 0; top: 0; bottom: 0; width: 18%; background: #070235; border-right: 4px solid #ea580c; }
.en4ulms-design.is-modern .en4ulms-design-art b { left: 28%; right: 12%; top: 34%; height: 10%; background: #070235; border-radius: 3px; }
.en4ulms-design.is-modern .en4ulms-design-art em { left: 28%; width: 30%; top: 52%; height: 4%; background: #ea580c; }
.en4ulms-design.is-elegant .en4ulms-design-art { background: #0b1437; border: 3px double #c8a24a; }
.en4ulms-design.is-elegant .en4ulms-design-art i { left: 22%; right: 22%; top: 32%; height: 10%; background: #c8a24a; border-radius: 3px; }
.en4ulms-design.is-elegant .en4ulms-design-art b { left: 38%; right: 38%; top: 50%; height: 4%; background: #e5e7eb; }
.en4ulms-design.is-elegant .en4ulms-design-art em { left: 44%; width: 12%; bottom: 12%; aspect-ratio: 1; border-radius: 50%; background: #c8a24a; }
.en4ulms-sigprev { max-height: 60px; background: #fff; border: 1px solid var(--l-line); border-radius: 8px; padding: .3rem; }

/* Verification page */
.en4ulms-verify { max-width: 720px; }
.en4ulms-verifyform h2 { display: flex; gap: .5rem; align-items: center; }
.en4ulms-verifyform input { font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; }
.en4ulms-verifyresult.is-valid { border: 2px solid #10b981; }
.en4ulms-verifyresult.is-revoked { border: 2px solid #ef4444; }
.en4ulms-verifybadge { display: flex; align-items: center; gap: .5rem; font-size: 1.2rem; font-weight: 800; margin: 0 0 1rem; color: var(--l-good); }
.en4ulms-verifyresult.is-revoked .en4ulms-verifybadge, .en4ulms-verifyresult.is-revoked .en4ulms-verifybadge .en4ulms-ico { color: var(--l-bad); }
.en4ulms-verifybadge .en4ulms-ico { font-size: 30px; color: var(--l-good); }
.en4ulms-dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: 0 0 1rem; }
.en4ulms-dl dt { color: var(--l-muted); font-size: .88rem; }
.en4ulms-dl dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .en4ulms-dl { grid-template-columns: 1fr; gap: .1rem; } .en4ulms-dl dd { margin-bottom: .5rem; } }

/* Catalogue */
.en4ulms-catalog { margin-bottom: 2rem; }
.en4ulms-cathead { margin: 0 0 1rem; }
.en4ulms-catbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: 0 0 1.25rem; }
.en4ulms-catbar input[type=search] { flex: 1 1 220px; min-height: 42px; padding: .5rem .8rem; border: 1px solid #d1d5db; border-radius: 11px; font-size: .95rem; }
.en4ulms-chips { display: flex; gap: .4rem; flex-wrap: wrap; flex: 1 1 100%; }
.en4ulms-chips a { padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--l-line); background: #fff; text-decoration: none; font-weight: 700; font-size: .85rem; color: var(--l-primary); }
.en4ulms-chips a.is-active { background: var(--l-primary); color: #fff; border-color: var(--l-primary); }
.en4ulms-catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.en4ulms-catcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--l-line); border-radius: 16px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.en4ulms-catcard:hover { box-shadow: 0 10px 30px rgba(15, 23, 42, .1); transform: translateY(-2px); }
.en4ulms-catimg { text-decoration: none !important; position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #070235, #1e1b4b); overflow: hidden; }
.en4ulms-catcard.is-test .en4ulms-catimg { background: linear-gradient(135deg, #9d174d, #db2777); }
.en4ulms-catcard.is-bundle .en4ulms-catimg { background: linear-gradient(135deg, #c2410c, #f97316); }
.en4ulms-catimg img { width: 100%; height: 100%; object-fit: cover; }
.en4ulms-catimg > .en4ulms-ico { font-size: 54px; color: rgba(255, 255, 255, .9); }
.en4ulms-catbadge { position: absolute; top: .6rem; left: .6rem; padding: .2rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: #0284c7; }
.en4ulms-catbadge.is-test { background: #db2777; }
.en4ulms-catbadge.is-series { background: #be185d; }
.en4ulms-catbadge.is-bundle { background: #ea580c; }
.en4ulms-catbody { display: flex; flex-direction: column; gap: .3rem; padding: .9rem 1rem 1rem; flex: 1 1 auto; }
.en4ulms-catbody h3 { font-size: 1.02rem; margin: 0; line-height: 1.3; }
.en4ulms-catbody h3 a { color: var(--l-primary); text-decoration: none; }
.en4ulms-catbody p { margin: 0; }
.en4ulms-catfacts { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .8rem; margin: .2rem 0 0; padding: 0; font-size: .82rem; color: var(--l-muted); }
.en4ulms-catfacts li { display: inline-flex; align-items: center; gap: .25rem; }
.en4ulms-catfacts .en4ulms-ico { font-size: 17px; }
.en4ulms-catsave { color: var(--l-good); font-weight: 800; font-size: .85rem; }
.en4ulms-catfoot { margin-top: auto; padding-top: .7rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.en4ulms-catprice { font-weight: 800; color: var(--l-primary); font-size: 1.05rem; }
.en4ulms-catprice del { color: var(--l-muted); font-weight: 500; font-size: .85rem; }
.en4ulms-catprice ins { text-decoration: none; }
.en4ulms-pager { display: flex; gap: .35rem; justify-content: center; margin: 1.5rem 0 0; flex-wrap: wrap; }
.en4ulms-pager a, .en4ulms-pager span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--l-line); text-decoration: none; font-weight: 700; }
.en4ulms-pager span { background: var(--l-primary); color: #fff; border-color: var(--l-primary); }
.en4ulms-catgrid.is-people { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.en4ulms-percard { text-align: center; background: #fff; border: 1px solid var(--l-line); border-radius: 16px; padding: 1.25rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.en4ulms-percard h3 { justify-content: center; margin: .4rem 0 0; font-size: 1.02rem; }
.en4ulms-percard h3 a { color: var(--l-primary); text-decoration: none; }
.en4ulms-percard p { margin: 0; }
.en4ulms-perphoto img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 3px #fed7aa; }
.en4ulms-persub { font-size: .82rem; color: var(--l-text); }
.en4ulms-percount { display: flex; gap: .75rem; justify-content: center; font-size: .8rem; color: var(--l-muted); margin-top: .35rem !important; }
.en4ulms-percount > span { display: inline-flex; align-items: center; gap: .2rem; }
.en4ulms-percount .en4ulms-ico { font-size: 16px; }
.en4ulms-profhead { display: flex; gap: 1.5rem; align-items: center; margin: 0 0 1.25rem; flex-wrap: wrap; }
.en4ulms-profphoto { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 0 0 7px #fed7aa; }
.en4ulms-profhead > div { flex: 1 1 280px; min-width: 0; }
.en4ulms-lead { font-size: 1.05rem; margin: .2rem 0 .6rem; }
@media (max-width: 600px) { .en4ulms-profhead { flex-direction: column; text-align: center; } .en4ulms-profhead .en4ulms-facts, .en4ulms-profhead .en4ulms-row { justify-content: center; } .en4ulms-catgrid { grid-template-columns: 1fr; } .en4ulms-catgrid.is-people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; } .en4ulms-perphoto img { width: 80px; height: 80px; } }
.en4ulms-progress.is-small { height: 6px; width: 80px; display: inline-block; vertical-align: middle; }

.en4ulms-profile aside p + h3 { margin-top: 1.1rem; }
.en4ulms-avatar-i { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, #070235, #312e81); color: #fff; font-weight: 800; letter-spacing: .02em; }
.en4ulms-perphoto .en4ulms-avatar-i { width: 104px; height: 104px; font-size: 2rem; box-shadow: 0 0 0 3px #fed7aa; }
.en4ulms-profhead .en4ulms-avatar-i { width: 150px; height: 150px; font-size: 3rem; box-shadow: 0 0 0 4px #fff, 0 0 0 7px #fed7aa; flex: 0 0 auto; }
@media (max-width: 600px) { .en4ulms-perphoto .en4ulms-avatar-i { width: 80px; height: 80px; font-size: 1.5rem; } }

/* ===================== Phase 6 ===================== */
.en4ulms [hidden], .en4ulms[hidden] { display: none !important; }
/* Lesson editor */
.en4ulms-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; }
.en4ulms-kind { position: relative; display: flex; flex-direction: column; gap: .15rem; padding: .75rem .85rem; border: 2px solid var(--l-line); border-radius: 14px; cursor: pointer; background: #fff; }
.en4ulms-kind:has(input:checked) { border-color: var(--l-accent); box-shadow: 0 0 0 3px #fed7aa; }
.en4ulms-kind:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.en4ulms-kind input { position: absolute; top: .7rem; right: .7rem; }
.en4ulms-kind .en4ulms-ico { font-size: 24px; }
.en4ulms-kind small { color: var(--l-muted); font-size: .78rem; }
.en4ulms-assignbox { border: 1px dashed #fdba74 !important; background: #fffaf5; border-radius: 14px; padding: .9rem 1rem !important; margin: 0 0 1rem !important; }
.en4ulms-assignbox legend { font-weight: 800; color: var(--l-primary); padding: 0 .4rem; }
.en4ulms-types { gap: .25rem .9rem !important; margin: .35rem 0 .6rem; }
.en4ulms-lessonform .wp-editor-wrap { border: 1px solid var(--l-line); border-radius: 10px; overflow: hidden; }
.en4ulms-lessonform .wp-editor-container textarea { border: 0; }
/* Assignment (student) */
.en4ulms-assignfacts li.is-late { color: var(--l-bad); }
.en4ulms-subcard.is-graded { border-color: #a7f3d0; background: #f6fffb; }
.en4ulms-subcard.is-returned { border-color: #fecaca; background: #fffafa; }
.en4ulms-score { font-size: 1.4rem; font-weight: 800; padding: .2rem .8rem; border-radius: 12px; }
.en4ulms-score.is-pass { color: var(--l-good); background: #ecfdf5; }
.en4ulms-score.is-fail { color: var(--l-bad); background: #fef2f2; }
.en4ulms-feedback { border-left: 4px solid var(--l-accent); background: #fff7ed; padding: .6rem .85rem; border-radius: 0 10px 10px 0; margin: .6rem 0; }
.en4ulms-feedback p { margin: .25rem 0 0; }
/* Assignment (instructor) */
.en4ulms-subrow { border: 1px solid var(--l-line); border-radius: 14px; padding: .85rem 1rem; margin: 0 0 .75rem; background: #fff; }
.en4ulms-subrow header { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; justify-content: space-between; }
.en4ulms-subrow header > div { display: flex; flex-direction: column; }
.en4ulms-subbody { max-height: 260px; overflow: auto; background: var(--l-soft); border-radius: 10px; padding: .5rem .8rem; margin: .5rem 0; }
.en4ulms-gradebox summary { cursor: pointer; font-weight: 700; color: var(--l-blue); margin: .4rem 0; }
/* Reviews */
.en4ulms-stars { position: relative; display: inline-block; color: #d1d5db; letter-spacing: 1px; line-height: 1; font-size: 1rem; white-space: nowrap; vertical-align: middle; font-family: Arial, sans-serif; }
.en4ulms-stars-on { position: absolute; left: 0; top: 0; overflow: hidden; color: #f59e0b; white-space: nowrap; }
.en4ulms-ratingnum { font-size: .85rem; color: var(--l-muted); vertical-align: middle; }
.en4ulms-ratingnum strong { color: var(--l-text); }
.en4ulms-herorating { margin: .25rem 0 .5rem; }
.en4ulms-herorating a { text-decoration: none; }
.en4ulms-catrating { margin: 0 0 .1rem !important; }
.en4ulms-catrating .en4ulms-stars { font-size: .9rem; }
.en4ulms-revsum { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin: 0 0 1rem; }
.en4ulms-revavg { display: flex; flex-direction: column; align-items: center; min-width: 120px; }
.en4ulms-revavg strong { font-size: 2.6rem; line-height: 1; color: var(--l-primary); }
.en4ulms-revavg .en4ulms-stars { font-size: 1.15rem; margin: .25rem 0; }
.en4ulms-revdist { list-style: none; margin: 0; padding: 0; flex: 1 1 220px; max-width: 420px; }
.en4ulms-revdist li { display: grid; grid-template-columns: 2.2rem 1fr 2rem; gap: .5rem; align-items: center; font-size: .85rem; margin: .15rem 0; }
.en4ulms-revbar { height: 8px; background: var(--l-soft); border-radius: 99px; overflow: hidden; }
.en4ulms-revbar i { display: block; height: 100%; background: #f59e0b; border-radius: 99px; }
.en4ulms-revform { border: 1px solid #fed7aa; background: #fffaf5; border-radius: 14px; padding: .75rem 1rem; margin: 0 0 1rem; }
.en4ulms-revform summary { cursor: pointer; font-weight: 800; color: var(--l-primary); }
.en4ulms-revform textarea { width: 100%; }
.en4ulms-starpick { border: 0; padding: 0; margin: .5rem 0; display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.en4ulms-starpick legend { float: left; width: 100%; font-weight: 700; font-size: .9rem; margin-bottom: .2rem; }
.en4ulms-starpick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.en4ulms-starpick label { font-size: 2rem; line-height: 1; color: #d1d5db; cursor: pointer; padding: 0 .1rem; font-family: Arial, sans-serif; }
.en4ulms-starpick label:hover, .en4ulms-starpick label:hover ~ label, .en4ulms-starpick input:checked ~ label { color: #f59e0b; }
.en4ulms-starpick input:focus-visible + label { outline: 2px solid var(--l-accent); border-radius: 4px; }
.en4ulms-revlist { list-style: none; margin: 0; padding: 0; }
.en4ulms-revlist > li { border-top: 1px solid var(--l-line); padding: .9rem 0; }
.en4ulms-revlist header { display: flex; gap: .7rem; align-items: center; }
.en4ulms-revavatar { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--l-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; }
.en4ulms-revtext p { margin: .4rem 0 0; }
.en4ulms-revreply { margin: .6rem 0 0 2.8rem; padding: .55rem .8rem; background: var(--l-soft); border-left: 3px solid var(--l-accent); border-radius: 0 10px 10px 0; font-size: .9rem; }
.en4ulms-revreply p { margin: .2rem 0 0; }
/* Protected PDF viewer */
.en4ulms-pdfview { border: 1px solid var(--l-line); border-radius: 14px; overflow: hidden; margin: 0 0 1rem; background: #eef0f5; user-select: none; -webkit-user-select: none; }
.en4ulms-pdfbar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .45rem .7rem; background: var(--l-primary); color: #fff; font-size: .85rem; }
.en4ulms-pdfname { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.en4ulms-pdfname .en4ulms-ico { color: #fdba74; }
.en4ulms-pdfctl { display: inline-flex; align-items: center; gap: .35rem; }
.en4ulms-pdfview .en4ulms-pdfctl button { width: 30px !important; height: 30px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 8px !important; background: rgba(255, 255, 255, .15) !important; color: #fff !important; font: 700 15px/1 system-ui, sans-serif !important; cursor: pointer; box-shadow: none !important; }
.en4ulms-pdfpages { max-height: 78vh; overflow: auto; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; -webkit-overflow-scrolling: touch; }
.en4ulms-pdfview:fullscreen .en4ulms-pdfpages, .en4ulms-pdfview.is-pseudo-fs .en4ulms-pdfpages { max-height: calc(100vh - 46px); }
.en4ulms-pdfview.is-pseudo-fs { position: fixed; inset: 0; z-index: 99999; border-radius: 0; }
.en4ulms-pdfpage { position: relative; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); max-width: 100%; }
.en4ulms-pdfpage canvas { display: block; max-width: none; pointer-events: none; }
.en4ulms-pdfwm { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-28deg); font-size: clamp(12px, 2.4vw, 22px); font-weight: 800; color: rgba(7, 2, 53, .11); white-space: nowrap; pointer-events: none; z-index: 2; }
@media print { .en4ulms-pdfview { display: none !important; } }

/* Course & test categories (0.8.0) */
.en4ulms-catlist { display: flex; flex-direction: column; gap: .15rem; max-height: 15rem; overflow-y: auto; padding: .55rem .75rem; border: 1px solid var(--l-line); border-radius: 12px; background: #fff; }
.en4ulms-catlist .en4ulms-check { margin: 0; padding: .2rem 0; font-weight: 600; }
.en4ulms-chips.is-cats { margin-top: .1rem; }
.en4ulms-chips.is-cats a { font-weight: 600; font-size: .8rem; padding: .3rem .8rem; }
