/* Hamzi LMS student portal. Visual spec: docs/ui-reference-spec.md (Emerge-identical look). */
:root {
	--hp-primary: #3182ce;
	--hp-primary-25: #f5f9fd;
	--hp-primary-50: #eef5fc;
	--hp-line: #d1e3f4;
	--hp-navy: #101828;
	--hp-text: #101828;
	--hp-text-2: #344054;
	--hp-title: #232a37;
	--hp-muted: #98a2b3;
	--hp-muted-2: #667085;
	--hp-border: #eaecf0;
	--hp-gray-50: #f2f4f7;
	--hp-remain: #e1e4ea;
	--hp-green: #52c41a;
	--hp-bar-bg: #f6f6f6;
	--hp-side-w: 380px;
	--hp-top-h: 56px;
	--hp-bar-h: 74px;
	--hp-safe-b: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.hp-lms-portal { margin: 0; background: #fff; color: var(--hp-text); font-family: Poppins, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.hp-lms-portal img { max-width: 100%; }
.hp-lms-portal a { color: var(--hp-primary); }
.hp-lms-portal button { font-family: inherit; }
.hp-lms-portal :focus-visible { outline: 2px solid var(--hp-primary); outline-offset: 2px; }
.hp-lms-portal .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp-ico { display: inline-block; flex: none; vertical-align: middle; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.hp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 8px; border: 1px solid transparent; font-size: 16px; font-weight: 500; line-height: 24px; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.hp-btn--primary { background: var(--hp-primary); border-color: var(--hp-primary); color: #fff !important; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.hp-btn--primary:hover { background: #2b74b8; border-color: #2b74b8; }
.hp-btn--outline { background: #fff; border-color: #000; color: #000 !important; border-radius: 6px; min-height: 40px; padding: 0 16px; box-shadow: 0 2px 0 rgba(0, 0, 0, .016); }
.hp-btn--outline:hover { border-color: var(--hp-primary); color: var(--hp-primary) !important; }
.hp-btn--bar { min-height: 33px; height: 33px; padding: 0 20px; border-radius: 3px; line-height: 20px; box-shadow: 0 2px 0 rgba(0, 0, 0, .016); }
.hp-btn[disabled], .hp-btn.is-busy { opacity: .7; cursor: progress; }

/* ---------- Rings ---------- */
.hp-ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.hp-ring svg { transform: rotate(-90deg); display: block; }
.hp-ring circle { fill: none; }
.hp-ring__track { stroke: #b0cfec; }
.hp-ring__bar { stroke: var(--hp-primary); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.hp-ring.is-full .hp-ring__bar { stroke: var(--hp-green); }
.hp-ring__txt { position: absolute; font-size: 8px; line-height: 1; font-weight: 500; color: rgba(0, 0, 0, .85); }
.hp-ring--top .hp-ring__track { stroke: rgba(255, 255, 255, .25); }
.hp-ring--top .hp-ring__bar { stroke: #fff; }
.hp-ring--top .hp-ring__txt { color: #fff; font-size: 10px; }
.hp-ring--top.is-full .hp-ring__bar { stroke: var(--hp-green); }

/* ---------- Top bar (watch page) ---------- */
.hp-topbar { position: sticky; top: 0; z-index: 110; display: flex; align-items: center; gap: 16px; height: var(--hp-top-h); padding: 8px 24px; background: var(--hp-navy); color: #fff; }
.hp-topbar__close { display: inline-grid; place-items: center; width: 32px; height: 32px; color: #fff; border-radius: 6px; }
.hp-topbar__close:hover { background: rgba(255, 255, 255, .1); }
.hp-topbar__divider { width: 1px; height: 32px; background: rgba(255, 255, 255, .2); }
.hp-topbar__title { margin: 0; flex: 1; min-width: 0; font-size: 18px; font-weight: 500; line-height: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-topbar__right { display: flex; align-items: center; gap: 12px; }
.hp-topbar__about { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; background: transparent; color: rgba(255, 255, 255, .88); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.hp-topbar__about:hover, .hp-topbar__about:focus-visible { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); color: #fff; }
.hp-topbar__about:focus-visible { outline: 2px solid var(--hp-primary); outline-offset: 2px; }

/* About this course: side panel (desktop) / bottom sheet (phone) */
.hp-about { position: fixed; inset: 0 0 0 auto; width: min(460px, 100vw); max-width: 100vw; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: var(--hp-text); overflow: visible; }
.hp-about::backdrop { background: rgba(16, 24, 40, .45); animation: hp-about-fade .2s ease; }
.hp-about[open] .hp-about__card { animation: hp-about-in .24s cubic-bezier(.2, .8, .2, 1); }
.hp-about.is-closing .hp-about__card { animation: hp-about-out .18s ease forwards; }
.hp-about.is-closing::backdrop { opacity: 0; transition: opacity .18s; }
.hp-about__card { display: flex; flex-direction: column; height: 100%; background: #fff; box-shadow: -12px 0 40px rgba(16, 24, 40, .18); }
.hp-about__head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--hp-border); }
.hp-about__badge { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #ebf4fc; color: var(--hp-primary); }
.hp-about__heading { flex: 1; min-width: 0; }
.hp-about__eyebrow { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--hp-primary); }
.hp-about__title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--hp-title); }
.hp-about__x { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #667085; cursor: pointer; }
.hp-about__x:hover { background: #f2f4f7; color: var(--hp-title); }
.hp-about__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px calc(24px + var(--hp-safe-b)); }
.hp-about__intro { padding: 16px 0 4px; }
.hp-about__intro p { margin: 0; color: #475467; font-size: 15px; line-height: 1.6; }
.hp-about__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.hp-about__chips li { padding: 4px 10px; border-radius: 999px; background: #f2f4f7; color: #344054; font-size: 13px; font-weight: 500; }
.hp-about__sec { padding: 18px 0 2px; }
.hp-about__sec + .hp-about__sec { border-top: 1px solid var(--hp-border); margin-top: 14px; }
.hp-about__sec h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--hp-title); }
.hp-about__checks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hp-about__checks li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.5; color: #344054; }
.hp-about__checks svg { flex: none; margin-top: 1px; color: var(--hp-primary); }
.hp-about__checks--soft svg { color: var(--hp-green); }
.hp-about__bullets { margin: 0; padding-left: 20px; color: #344054; font-size: 14.5px; line-height: 1.8; }
.hp-about__faq { border-top: 1px solid var(--hp-border); }
.hp-about__faq:first-of-type { border-top: 0; }
.hp-about__faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 14.5px; font-weight: 500; color: var(--hp-title); cursor: pointer; list-style: none; }
.hp-about__faq summary::-webkit-details-marker { display: none; }
.hp-about__faq summary svg { flex: none; color: #667085; transition: transform .2s; }
.hp-about__faq[open] summary svg { transform: rotate(180deg); }
.hp-about__faq p { margin: 0 0 12px; color: #475467; font-size: 14px; line-height: 1.6; }
body.hp-about-open { overflow: hidden; }
@keyframes hp-about-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes hp-about-out { from { transform: none; } to { transform: translateX(100%); } }
@keyframes hp-about-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 640px) {
	.hp-about { inset: auto 0 0 0; width: 100vw; height: auto; max-height: 88vh; }
	.hp-about__card { height: auto; max-height: 88vh; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px rgba(16, 24, 40, .18); }
	.hp-about__head { position: relative; padding-top: 22px; }
	.hp-about__head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #d0d5dd; }
	@keyframes hp-about-in { from { transform: translateY(100%); } to { transform: none; } }
	@keyframes hp-about-out { from { transform: none; } to { transform: translateY(100%); } }
}
@media (prefers-reduced-motion: reduce) {
	.hp-about[open] .hp-about__card, .hp-about.is-closing .hp-about__card, .hp-about::backdrop { animation: none; }
}

/* ---------- Watch layout ---------- */
.hp-watch { display: flex; align-items: flex-start; min-height: calc(100vh - var(--hp-top-h)); }
.hp-sidebar { position: sticky; top: var(--hp-top-h); z-index: 101; flex: none; width: var(--hp-side-w); height: calc(100vh - var(--hp-top-h)); display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--hp-border); transition: margin-left .25s ease, transform .25s ease; }
.hp-sidebar__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; background: var(--hp-gray-50); padding-bottom: calc(var(--hp-bar-h) + 8px); }
.hp-sidebar__scroll::-webkit-scrollbar { width: 7px; }
.hp-sidebar__scroll::-webkit-scrollbar-thumb { background: #c7ccd4; border-radius: 4px; }
body.hp-side-collapsed .hp-sidebar { margin-left: calc(var(--hp-side-w) * -1); }

.hp-tabs { display: flex; }
.hp-tabs--side { flex: none; height: 48px; background: var(--hp-gray-50); padding: 0 8px; }
.hp-tab { position: relative; flex: none; border: 0; background: none; padding: 12px 13px; font-size: 16px; font-weight: 400; line-height: 24px; color: var(--hp-text-2); cursor: pointer; }
.hp-tab.is-active { color: var(--hp-primary); }
.hp-tab.is-active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 2px; background: var(--hp-primary); }
.hp-tabs--side .hp-tab:first-child { padding-left: 13px; }

/* Modules */
.hp-modules { display: flex; flex-direction: column; gap: 4px; }
.hp-module { background: #fff; }
.hp-module__head { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 16px; border: 0; background: #fff; text-align: left; cursor: pointer; }
.hp-module__head .hp-ring { margin-top: -2px; }
.hp-module__title { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: .02em; color: var(--hp-title); overflow-wrap: anywhere; user-select: none; }
.hp-module__count { font-weight: 400; color: var(--hp-muted); }
.hp-module__chev { flex: none; color: rgba(0, 0, 0, .85); display: grid; place-items: center; width: 26px; height: 26px; margin-top: -2px; }
.hp-module .hp-chev-down { display: none; }
.hp-module.is-open .hp-chev-down { display: inline-block; }
.hp-module.is-open .hp-chev-right { display: none; }
.hp-module.is-open .hp-module__head { background: var(--hp-primary); }
.hp-module.is-open .hp-module__title, .hp-module.is-open .hp-module__chev { color: #fff; }
.hp-module.is-open .hp-module__count { color: #d0d5dd; }
.hp-module.is-open .hp-ring__track { stroke: rgba(255, 255, 255, .27); }
.hp-module.is-open .hp-ring__bar { stroke: #f2f7fc; }
.hp-module.is-open .hp-ring.is-full .hp-ring__bar { stroke: var(--hp-green); }
.hp-module.is-open .hp-ring__txt { color: #fff; }

/* Lessons */
.hp-module__lessons { background: #fff; }
.hp-lms-portal .hp-lesson { position: relative; display: flex; padding-right: 16px; background: #fff; color: var(--hp-text); text-decoration: none; cursor: pointer; transition: background-color .15s; }
.hp-lesson:hover { background: var(--hp-primary-25); }
.hp-lesson.is-active { background: var(--hp-primary-50); }
.hp-lesson__status { position: relative; flex: none; padding: 16px 8px 16px 24px; color: var(--hp-remain); line-height: 0; }
.hp-lesson:not(.is-last) .hp-lesson__status::after { content: ""; position: absolute; left: 35px; top: 40px; z-index: 1; width: 2px; height: calc(100% - 24px); background: var(--hp-line); }
.hp-lesson.is-completed .hp-lesson__status::after { background: var(--hp-primary); }
.hp-lesson.is-completed .hp-lesson__status, .hp-lesson.is-current .hp-lesson__status { color: var(--hp-primary); }
.hp-lesson__content { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 16px 0 16px 8px; border-bottom: 1px solid var(--hp-gray-50); }
.hp-lesson__name { margin-bottom: 8px; font-size: 16px; font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; user-select: none; }
.hp-lesson.is-completed .hp-lesson__name, .hp-lesson.is-current .hp-lesson__name { color: var(--hp-primary); }
.hp-lesson__type { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 22px; color: var(--hp-muted-2); }
.hp-lesson.is-locked { cursor: not-allowed; }
.hp-lesson.is-locked .hp-lesson__name { color: var(--hp-muted); }
.hp-lesson.is-locked:hover { background: #fff; }
.hp-draft-tag { font-style: normal; font-size: 11px; font-weight: 600; color: #b54708; background: #fffaeb; border: 1px solid #fedf89; border-radius: 4px; padding: 0 5px; margin-left: 4px; }

/* Transcript */
.hp-panel-side { background: #fff; min-height: 100%; }
#hp-panel-transcript { padding: 12px; }
.hp-tsearch { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid #d0d5dd; border-radius: 8px; color: var(--hp-muted); }
.hp-tsearch input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 14px; color: var(--hp-text); background: transparent; }
.hp-transcript { list-style: none; margin: 12px 0 0; padding: 0; }
.hp-transcript li { display: flex; gap: 10px; padding: 8px 6px; border-radius: 6px; font-size: 14px; line-height: 1.55; }
.hp-transcript li:hover { background: var(--hp-primary-25); }
.hp-transcript__time { flex: none; border: 0; background: #e8f1fb; color: var(--hp-primary); font-weight: 600; font-size: 12px; border-radius: 4px; padding: 2px 6px; height: fit-content; cursor: pointer; }
.hp-transcript mark { background: #fff1b8; color: inherit; padding: 0; }
.hp-transcript li.is-now { background: var(--hp-primary-50); }
.hp-transcript__none { color: var(--hp-muted-2); font-size: 14px; margin: 16px 4px; }

/* Sidebar pill */
.hp-pill { position: fixed; top: calc(var(--hp-top-h) + 2px); left: var(--hp-side-w); z-index: 105; display: inline-flex; align-items: center; height: 26px; padding: 6px 10px; border: 0; border-radius: 0 9999px 9999px 0; background: var(--hp-primary); color: #fff; font-size: 14px; line-height: 14px; cursor: pointer; transition: left .25s ease; }
body.hp-side-collapsed .hp-pill { left: 0; }
.hp-drawer-backdrop { display: none; }

/* Main */
.hp-main { flex: 1; min-width: 0; padding-bottom: calc(var(--hp-bar-h) + 24px + var(--hp-safe-b)); }
body.hp-bar-hidden .hp-main { padding-bottom: 64px; }
.hp-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; padding: 0 20px; background: rgba(224, 224, 224, .35); }
.hp-titlebar__title { margin: 0; padding-left: 40px; font-size: 16px; font-weight: 600; line-height: 19.2px; color: var(--hp-text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-copy { flex: none; display: inline-grid; place-items: center; width: 54px; height: 36px; border: 1px solid var(--hp-primary); border-radius: 8px; background: var(--hp-primary); color: #fff; cursor: pointer; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.hp-copy:hover { background: #2b74b8; }

/* Player */
.hp-player { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - var(--hp-top-h) - 56px - var(--hp-bar-h) - 24px); min-height: 220px; background: var(--hp-navy); overflow: hidden; user-select: none; -webkit-user-select: none; outline: none; }
.hp-player__video, .hp-player__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.hp-player:fullscreen { max-height: none; aspect-ratio: auto; width: 100vw; height: 100vh; }
.hp-player:-webkit-full-screen { max-height: none; width: 100vw; height: 100vh; }
.hp-player.hp-pseudo-fs { position: fixed; inset: 0; z-index: 2000; width: 100vw; height: 100vh; height: 100dvh; max-height: none; aspect-ratio: auto; }
.hp-player__big { position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%, -50%); display: grid; place-items: center; width: 64px; height: 64px; padding-left: 5px; border: 0; border-radius: 50%; background: var(--hp-primary); color: #fff; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); transition: transform .2s, opacity .2s; }
.hp-player__big:hover { transform: translate(-50%, -50%) scale(1.06); }
.hp-player.is-playing .hp-player__big { opacity: 0; pointer-events: none; }
.hp-player__spinner { position: absolute; left: 50%; top: 50%; z-index: 3; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; opacity: 0; pointer-events: none; animation: hp-spin .8s linear infinite; }
.hp-player.is-waiting .hp-player__spinner { opacity: 1; }
.hp-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 30px 12px 6px; background: linear-gradient(0deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0)); color: #fff; transition: opacity .25s; }
.hp-player.is-playing.is-idle .hp-controls { opacity: 0; pointer-events: none; }
.hp-player.is-playing.is-idle { cursor: none; }
.hp-seek { position: relative; height: 16px; display: flex; align-items: center; }
.hp-seek__track { position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hp-seek:hover .hp-seek__track { height: 6px; }
.hp-seek__buffer, .hp-seek__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.hp-seek__buffer { background: rgba(255, 255, 255, .45); }
.hp-seek__fill { background: var(--hp-primary); }
.hp-seek__input { position: relative; z-index: 2; width: 100%; height: 16px; margin: 0; opacity: 0; cursor: pointer; }
.hp-controls__row { display: flex; align-items: center; gap: 4px; height: 40px; }
.hp-cbtn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 6px; background: transparent; color: #fff; cursor: pointer; }
.hp-cbtn:hover { background: rgba(255, 255, 255, .12); }
.hp-player .hp-i-pause, .hp-player.is-playing .hp-i-play, .hp-i-muted, .hp-player.is-muted .hp-i-vol, .hp-i-exit-fs, .hp-player.is-fs .hp-i-fs { display: none; }
.hp-player.is-playing .hp-i-pause, .hp-player.is-muted .hp-i-muted, .hp-player.is-fs .hp-i-exit-fs { display: inline-block; }
.hp-time { margin-left: 6px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hp-controls__spacer { flex: 1; }
.hp-vol { display: flex; align-items: center; }
.hp-vol__input { width: 90px; accent-color: #fff; cursor: pointer; }
.hp-speed { position: relative; }
.hp-speed__menu { position: absolute; right: 0; bottom: 46px; min-width: 130px; padding: 6px; border-radius: 8px; background: rgba(16, 24, 40, .95); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.hp-speed__menu button { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 4px; background: none; color: #fff; font-size: 14px; text-align: left; cursor: pointer; }
.hp-speed__menu button:hover, .hp-speed__menu button[aria-checked="true"] { background: rgba(49, 130, 206, .45); }
.hp-player__fs { position: absolute; right: 12px; bottom: 12px; z-index: 7; background: rgba(16, 24, 40, .6); }

/* Watermark: jumps between random positions inside the frame, never over the controls. */
.hp-wm { position: absolute; left: 0; top: 0; z-index: 5; font-size: 18px; font-weight: 700; line-height: 1.2; white-space: nowrap; pointer-events: none; user-select: none; opacity: 0; transition: opacity .6s ease; will-change: transform; }
.hp-wm.is-on { opacity: var(--hp-wm-opacity, .6); }

/* Under-video tabs */
.hp-under { padding: 20px 20px 0; }
.hp-tabs--under { gap: 4px; border-bottom: 1px solid var(--hp-border); }
.hp-tabs--under .hp-tab { padding: 0 10px 10px; font-weight: 500; color: var(--hp-text-2); }
.hp-tabs--under .hp-tab.is-active { color: var(--hp-primary); }
.hp-tabs--under .hp-tab.is-active::after { left: 0; right: 0; }
.hp-under__panel { padding: 20px 0; }
.hp-desc { max-width: 900px; border: 1px solid var(--hp-border); border-radius: 8px; padding: 16px; }
.hp-prose { font-size: 16px; line-height: 1.65; color: var(--hp-text); overflow-wrap: anywhere; }
.hp-prose h1 { font-size: 32px; line-height: 1.25; margin: 12px 0; font-weight: 700; }
.hp-prose h2 { font-size: 24px; line-height: 1.3; margin: 20px 0 10px; font-weight: 700; }
.hp-prose h3 { font-size: 20px; margin: 18px 0 8px; font-weight: 600; }
.hp-prose p { margin: 0 0 14px; }
.hp-prose ul, .hp-prose ol { margin: 0 0 14px; padding-left: 28px; }
.hp-prose li { margin: 4px 0; }
.hp-prose a { font-weight: 600; text-decoration: underline; }
.hp-prose img { height: auto; border-radius: 8px; }
.hp-prose > :last-child { margin-bottom: 0; }
.hp-resource { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hp-border); }
.hp-desc > .hp-resource:first-child { border-top: 0; }
.hp-prose + .hp-resource { margin-top: 16px; }
.hp-resource__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--hp-primary-50); color: var(--hp-primary); flex: none; }
.hp-resource__name { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.hp-resource__name small { display: block; font-size: 12px; font-weight: 400; color: var(--hp-muted-2); }
.hp-resource__link { font-weight: 700; text-decoration: underline; white-space: nowrap; }
.hp-muted-text { color: var(--hp-muted-2); margin: 0; }

/* Discussion */
.hp-composer { display: flex; align-items: center; gap: 8px; max-width: 900px; padding: 8px 12px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; }
.hp-composer:focus-within { border-color: var(--hp-primary); box-shadow: 0 0 0 3px rgba(49, 130, 206, .15); }
.hp-composer__avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.hp-composer textarea { flex: 1; min-width: 0; min-height: 24px; max-height: 160px; border: 0; outline: 0; resize: none; font: inherit; font-size: 15px; line-height: 24px; color: var(--hp-text); background: transparent; }
.hp-composer__btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 6px; background: none; color: var(--hp-muted); cursor: pointer; }
.hp-composer__btn:hover { color: var(--hp-primary); background: var(--hp-primary-25); }
.hp-composer__send { order: 3; }
.hp-emoji { position: relative; order: 2; }
.hp-emoji__panel { position: absolute; right: 0; bottom: 42px; z-index: 20; display: grid; grid-template-columns: repeat(8, 32px); gap: 2px; padding: 8px; border: 1px solid var(--hp-border); border-radius: 10px; background: #fff; box-shadow: 0 12px 32px rgba(16, 24, 40, .15); }
.hp-emoji__panel button { width: 32px; height: 32px; border: 0; background: none; border-radius: 6px; font-size: 20px; cursor: pointer; }
.hp-emoji__panel button:hover { background: var(--hp-gray-50); }
.hp-comments { max-width: 900px; margin-top: 18px; }
.hp-comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hp-border); }
.hp-comment__avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.hp-comment__body { flex: 1; min-width: 0; }
.hp-comment__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.hp-comment__meta strong { font-weight: 600; }
.hp-comment__meta time { color: var(--hp-muted); font-size: 12px; }
.hp-comment__team { font-size: 11px; font-weight: 600; color: #fff; background: var(--hp-primary); border-radius: 4px; padding: 0 6px; }
.hp-comment__text { margin: 4px 0 6px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.hp-comment__reply { border: 0; background: none; padding: 0; color: var(--hp-primary); font-size: 13px; font-weight: 600; cursor: pointer; }
.hp-comment__replies { margin-top: 6px; padding-left: 14px; border-left: 2px solid var(--hp-gray-50); }
.hp-comment__replies .hp-comment { border-bottom: 0; padding: 10px 0; }
.hp-comment__replies .hp-comment__avatar { width: 28px; height: 28px; }
.hp-comments__empty { color: var(--hp-muted-2); font-size: 14px; }
.hp-comments__more { margin-top: 12px; }
.hp-reply-form { display: flex; gap: 8px; margin-top: 8px; }
.hp-reply-form textarea { flex: 1; min-height: 38px; padding: 8px 10px; border: 1px solid #d0d5dd; border-radius: 6px; font: inherit; font-size: 14px; resize: vertical; }
.hp-reply-form .hp-btn { min-height: 38px; padding: 0 14px; }

/* Bottom action bar */
.hp-actionbar { position: fixed; left: var(--hp-side-w); right: 0; bottom: 0; z-index: 100; height: calc(var(--hp-bar-h) + var(--hp-safe-b)); padding-bottom: var(--hp-safe-b); background: var(--hp-bar-bg); border-top: 1px solid rgba(0, 51, 102, .07); transition: left .25s ease; }
body.hp-side-collapsed .hp-actionbar { left: 0; }
.hp-actionbar__inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; padding: 0 140px; }
.hp-actionbar__buttons { display: flex; justify-content: center; gap: 12px; }
.hp-actionbar__course { display: none !important; }
.hp-hidebar { position: fixed; right: 0; bottom: 0; z-index: 106; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 128px; height: calc(var(--hp-bar-h) + var(--hp-safe-b)); padding: 0 12px var(--hp-safe-b); border: 0; background: var(--hp-primary); color: #fff; font-size: 16px; line-height: 24px; cursor: pointer; }
.hp-i-show { display: none; }
body.hp-bar-hidden .hp-actionbar { height: 0; border: 0; background: transparent; }
body.hp-bar-hidden .hp-actionbar__inner { display: none; }
body.hp-bar-hidden .hp-hidebar { height: calc(40px + var(--hp-safe-b)); }
body.hp-bar-hidden .hp-i-hide { display: none; }
body.hp-bar-hidden .hp-i-show { display: inline-block; }

/* Toast */
.hp-toast { position: fixed; left: 50%; bottom: calc(var(--hp-bar-h) + 20px + var(--hp-safe-b)); z-index: 1200; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px)); padding: 10px 16px; border-radius: 8px; background: var(--hp-navy); color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(16, 24, 40, .3); text-align: center; animation: hp-toast .25s ease; }
.hp-toast.is-error { background: #b42318; }

/* Celebration popup */
.hp-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: start center; padding: 76px 16px 16px; overflow-y: auto; }
.hp-modal__backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); animation: hp-fade .2s ease; }
.hp-modal__card { position: relative; width: 720px; max-width: 100%; padding: 36px 32px 34px; border-radius: 10px; background: #fff; text-align: center; animation: hp-pop-card .3s cubic-bezier(.2, .9, .3, 1.2); }
.hp-modal__x { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: #101828; cursor: pointer; }
.hp-modal__x:hover { background: var(--hp-gray-50); }
.hp-gift { height: 0; overflow: hidden; transition: height .45s cubic-bezier(.2, .9, .3, 1.2); }
.hp-modal.is-gift .hp-gift { height: 178px; }
.hp-gift svg { display: block; margin: 0 auto 8px; }
.hp-modal.is-gift .hp-gift svg { animation: hp-gift-in .6s cubic-bezier(.2, .9, .3, 1.35) both; }
.hp-modal.is-gift .hp-gift__lid { transform-origin: 85px 76px; animation: hp-lid 1.6s ease-in-out .6s infinite; }
.hp-modal.is-gift .hp-gift__sparkles { animation: hp-sparkle 1.6s ease-in-out .5s infinite; transform-origin: center; }
.hp-modal__title { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.35; color: var(--hp-primary); }
.hp-modal__text { margin: 12px 0 0; font-size: 14px; color: var(--hp-text); }
.hp-modal__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.hp-modal__actions:empty { display: none; }
.hp-confetti { position: fixed; inset: 0; z-index: 1100; width: 100vw; height: 100vh; pointer-events: none; }

/* ---------- Dashboard & courses ---------- */
.hp-container { width: 100%; max-width: 1392px; margin: 0 auto; padding: 0 16px; }
.hp-dhead { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 #eaecf0; }
.hp-dhead__inner { display: flex; align-items: center; justify-content: space-between; height: 75px; padding-top: 8px; padding-bottom: 8px; }
.hp-logo { display: inline-flex; align-items: center; height: 100%; text-decoration: none; }
.hp-logo__img { max-height: 48px; width: auto; }
.hp-logo__text { font-size: 22px; font-weight: 700; color: var(--hp-navy); }
.hp-dhead__right { display: flex; align-items: center; gap: 14px; }
.hp-dhead__site { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; color: var(--hp-text-2) !important; text-decoration: none; font-size: 14px; font-weight: 500; }
.hp-dhead__site:hover { background: var(--hp-gray-50); }
.hp-usermenu { position: relative; }
.hp-usermenu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.hp-usermenu summary::-webkit-details-marker { display: none; }
.hp-usermenu summary img { display: block; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #eaecf0; }
.hp-usermenu__panel { position: absolute; right: 0; top: 50px; z-index: 60; width: 250px; padding: 12px; border: 1px solid #eaecf0; border-radius: 10px; background: #fff; box-shadow: 0 16px 40px rgba(16, 24, 40, .12); }
.hp-usermenu__panel strong { display: block; font-size: 15px; }
.hp-usermenu__panel > span { display: block; margin-bottom: 8px; font-size: 13px; color: var(--hp-muted-2); overflow: hidden; text-overflow: ellipsis; }
.hp-usermenu__panel a { display: flex; align-items: center; gap: 8px; padding: 9px 8px; border-radius: 6px; color: var(--hp-text) !important; text-decoration: none; font-size: 14px; }
.hp-usermenu__panel a:hover { background: var(--hp-gray-50); }

.hp-dash { display: flex; align-items: flex-start; gap: 36px; padding-top: 36px; padding-bottom: 60px; }
.hp-dash__side { flex: none; width: 326px; position: sticky; top: 111px; }
.hp-dash__main { flex: 1; min-width: 0; }
.hp-profile { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding-bottom: 24px; border: 1px solid #e5e5e5; border-radius: 10px; background: #fff; box-shadow: 0 4px 40px rgba(35, 35, 99, .06); text-align: center; }
.hp-profile__cover { align-self: stretch; height: 108px; background: radial-gradient(120% 140% at 10% 0%, #4b9be3 0%, #3182ce 45%, #1b4f86 100%); }
.hp-profile__avatar { width: 120px; height: 120px; margin-top: -78px; border-radius: 50%; border: 4px solid #fff; background: #fff; object-fit: cover; }
.hp-profile__name { margin: 14px 16px 2px; font-size: 20px; font-weight: 600; line-height: 1.3; color: #000; overflow-wrap: anywhere; }
.hp-profile__role { margin: 0 0 14px; font-size: 14px; color: var(--hp-text); }
.hp-profile .hp-btn { min-width: 112px; }
.hp-dnav { margin-top: 24px; overflow: hidden; border-radius: 6px; background: #f5f7fa; }
.hp-dnav__item { display: block; height: 44px; padding: 10px 0 10px 20px; font-size: 16px; font-weight: 500; line-height: 24px; color: var(--hp-text) !important; text-decoration: none; }
.hp-dnav__item:hover { background: #e9eef5; }
.hp-dnav__item.is-active { background: var(--hp-primary); color: #fff !important; }

.hp-sec + .hp-sec { margin-top: 48px; }
.hp-sec__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.hp-sec__head h2 { margin: 0; font-size: 25px; font-weight: 600; color: #000; }
.hp-sec__all { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; text-decoration: none; }
.hp-sec__head { gap: 12px; }
.hp-sec__head h2 { min-width: 0; }
.hp-sec__all { flex: none; white-space: nowrap; }
.hp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.hp-carousel { position: relative; }
.hp-carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 40px) / 3)); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.hp-carousel__track::-webkit-scrollbar { display: none; }
.hp-carousel__track > * { scroll-snap-align: start; }
.hp-carousel__arrow { position: absolute; top: 40%; z-index: 3; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #7c86ea; color: #fff; box-shadow: 0 4px 12px rgba(16, 24, 40, .2); cursor: pointer; }
.hp-carousel__arrow--prev { left: -16px; }
.hp-carousel__arrow--next { right: -16px; }
.hp-carousel__arrow[disabled] { opacity: 0; pointer-events: none; }

.hp-ccard { display: flex; flex-direction: column; min-width: 0; border: 1px solid #e5e5e5; border-radius: 6px; background: #fff; overflow: hidden; transition: box-shadow .2s; }
.hp-ccard:hover { box-shadow: 0 8px 28px rgba(16, 24, 40, .08); }
.hp-ccard__thumb { display: block; text-decoration: none; margin: 11px 11px 0; aspect-ratio: 292 / 164; border-radius: 4px; overflow: hidden; background: #101828; }
.hp-ccard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-ccard__placeholder { display: grid; place-items: center; width: 100%; height: 100%; padding: 16px; background: radial-gradient(120% 120% at 0% 0%, #1f3b63 0%, #101828 60%); color: #fff; font-size: 22px; font-weight: 700; line-height: 1.2; text-align: center; text-transform: uppercase; letter-spacing: .02em; }
.hp-ccard__placeholder span { background: linear-gradient(90deg, #fff, #9cc6ef); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hp-ccard__body { flex: 1; padding: 14px 15px 16px; }
.hp-badge { display: inline-block; margin-bottom: 10px; padding: 2px 8px; border-radius: 3px; font-size: 14px; font-weight: 500; line-height: 22px; }
.hp-badge--green { background: #d9f7be; color: #73d13d; }
.hp-badge--grey { background: var(--hp-gray-50); color: var(--hp-muted-2); }
.hp-ccard__title { margin: 0 0 16px; font-size: 20px; font-weight: 600; line-height: 1.3; color: #000; overflow-wrap: anywhere; }
.hp-pbar { height: 8px; border-radius: 6px; background: #e7e7e7; overflow: hidden; }
.hp-pbar > span { display: block; height: 100%; border-radius: 6px; background: var(--hp-primary); transition: width .6s ease; }
.hp-ccard__foot { display: flex; justify-content: center; padding: 14px 15px; border-top: 1px solid #e5e5e5; }
.hp-ccard__foot .hp-btn { min-width: 100px; }
.hp-free-form { margin: 0; }
.hp-landing__buybody .hp-free-form, .hp-shop__box .hp-free-form { display: block; }
.hp-ccard--plain .hp-ccard__body { padding: 14px; }
.hp-ccard--plain .hp-ccard__title { display: -webkit-box; min-height: 2.6em; margin: 16px 0 16px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* A bundle on My Courses looks like a small stack of cards (Emerge). */
.hp-ccard-stack { display: flex; min-width: 0; padding: 4px 0 0 4px; border: 1px solid #d9d9d9; border-right-color: #f5f5f5; border-bottom-color: #f5f5f5; border-radius: 6px; }
.hp-ccard-stack > .hp-ccard { flex: 1; }
.hp-ccard-stack[hidden] { display: none; }

.hp-panel { padding: 20px; border: 1px solid #e5e5e5; border-radius: 10px; background: #fff; box-shadow: 0 4px 40px rgba(35, 35, 99, .06); }
.hp-panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.hp-panel__head h1 { margin: 0; font-size: 22px; font-weight: 600; }
.hp-search input { width: 360px; max-width: 100%; height: 40px; padding: 0 14px; border: 1px solid #d0d5dd; border-radius: 6px; font: inherit; font-size: 14px; }
.hp-search input:focus { outline: 0; border-color: var(--hp-primary); box-shadow: 0 0 0 3px rgba(49, 130, 206, .15); }
.hp-grid--panel { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.hp-empty { padding: 40px 24px; border: 1px dashed #d0d5dd; border-radius: 10px; text-align: center; background: #fcfcfd; }
.hp-empty h2 { margin: 0 0 8px; font-size: 22px; font-weight: 600; }
.hp-empty p { margin: 0 auto 18px; max-width: 520px; color: var(--hp-muted-2); }
.hp-empty--inline { border: 0; background: none; padding: 20px 0 0; }

.hp-denied { display: grid; place-items: center; min-height: calc(100vh - 75px); padding-top: 40px; padding-bottom: 40px; }
.hp-denied__card { width: 560px; max-width: 100%; padding: 40px 32px; border: 1px solid #e5e5e5; border-radius: 10px; background: #fff; box-shadow: 0 4px 40px rgba(35, 35, 99, .06); text-align: center; }
.hp-denied__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 16px; border-radius: 50%; background: var(--hp-primary-50); color: var(--hp-primary); }
.hp-denied__card h1 { margin: 0 0 10px; font-size: 24px; font-weight: 600; }
.hp-denied__card p { margin: 0 0 24px; color: var(--hp-muted-2); }
.hp-denied__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Profile page ---------- */
.hp-profile__cover { background-size: cover; background-position: center; }
.hp-profile-page { display: flex; flex-direction: column; gap: 24px; }
.hp-pcard { position: relative; overflow: hidden; border: 1px solid #e5e5e5; border-radius: 10px; background: #fff; box-shadow: 0 4px 40px rgba(35, 35, 99, .06); animation: hp-rise .35s ease both; }
.hp-pcard--plain { animation-delay: .06s; }
.hp-pcard { padding: 24px; }
.hp-pcard__cover { position: relative; height: 160px; background: radial-gradient(120% 140% at 10% 0%, #4b9be3 0%, #3182ce 45%, #1b4f86 100%); background-size: cover; background-position: center; }
.hp-pcard__avatar { position: relative; width: 120px; height: 120px; margin: -40px auto 0; }
.hp-pcard__avatar img { display: block; width: 120px; height: 120px; border-radius: 50%; border: 1px solid #f2f4f7; background: #fff; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 6px 18px rgba(16, 24, 40, .12); }
.hp-pcard__body { padding-top: 30px; }
.hp-pcard--plain .hp-pcard__body { padding-top: 0; }
.hp-pcard__title { margin: 0 0 22px; font-size: 24px; font-weight: 500; line-height: 1.3; color: #000; }
.hp-photo-form { position: absolute; display: flex; gap: 8px; }
.hp-photo-form--cover { right: 12px; bottom: 12px; }
.hp-photo-form--avatar { right: 0; bottom: 4px; flex-direction: column-reverse; }
.hp-camera { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #101828; box-shadow: 0 2px 8px rgba(16, 24, 40, .18); cursor: pointer; transition: transform .15s, background-color .15s, color .15s; }
.hp-photo-form--avatar .hp-camera { width: 32px; height: 32px; background: var(--hp-primary); color: #fff; border: 2px solid #fff; }
.hp-camera:hover { transform: scale(1.08); }
.hp-camera:focus-within { outline: 2px solid var(--hp-primary); outline-offset: 2px; }
.hp-camera input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.hp-cover-move { position: absolute; top: 12px; right: 12px; z-index: 2; }
.hp-pcard__cover.is-moving { cursor: grab; touch-action: none; user-select: none; }
.hp-pcard__cover.is-moving:active { cursor: grabbing; }
.hp-pcard__cover.is-moving .hp-photo-form, .hp-pcard__cover.is-moving .hp-cover-move { display: none; }
.hp-cover-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 8px; }
.hp-cover-bar[hidden] { display: none; }
.hp-cover-bar__hint { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; padding: 6px 10px; border-radius: 999px; background: rgba(16, 24, 40, .6); color: #fff; font-size: 13px; font-weight: 500; }
.hp-cover-bar .hp-btn { min-height: 34px; padding: 6px 14px; }
.hp-cover-bar .hp-btn--outline { background: #fff; }
.hp-camera--remove { background: rgba(255, 255, 255, .92) !important; color: #b42318 !important; }
.hp-photo-form.is-busy .hp-camera { pointer-events: none; opacity: .7; }
.hp-photo-form.is-busy .hp-camera:first-of-type::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--hp-primary); animation: hp-spin .8s linear infinite; }
.hp-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.hp-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hp-field--wide { grid-column: 1 / -1; }
.hp-field > label { font-size: 15px; font-weight: 500; line-height: 22px; color: var(--hp-text); }
.hp-field input, .hp-field select, .hp-field textarea { width: 100%; height: 44px; padding: 4px 16px; border: 1px solid #e5e5e5; border-radius: 6px; background: #fff; color: var(--hp-text); font: inherit; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.hp-field textarea { height: 118px; min-height: 90px; padding: 10px 16px; resize: vertical; line-height: 1.6; }
.hp-field input::placeholder, .hp-field textarea::placeholder { color: #bfbfbf; }
.hp-field input:hover, .hp-field select:hover, .hp-field textarea:hover { border-color: #4096ff; }
.hp-field input:focus, .hp-field select:focus, .hp-field textarea:focus { outline: 0; border-color: var(--hp-primary); box-shadow: 0 0 0 3px rgba(49, 130, 206, .15); }
.hp-field input[readonly] { background: #f5f5f5; color: var(--hp-muted-2); cursor: not-allowed; }
.hp-field input[readonly]:hover { border-color: #e5e5e5; }
.hp-field small { font-size: 13px; color: var(--hp-muted-2); }
.hp-field small.hp-count { align-self: flex-end; margin-top: -4px; color: #8c8c8c; }
.hp-field--hint { justify-content: flex-end; padding-bottom: 11px; font-size: 14px; }
.hp-field--hint a { text-decoration: none; }
.hp-field--hint a:hover { text-decoration: underline; }
.hp-phone { display: flex; gap: 8px; max-width: calc(50% - 12px); }
.hp-phone select { flex: none; width: 156px; padding: 4px 28px 4px 12px; appearance: none; background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%23667085' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center; cursor: pointer; }
.hp-pass { position: relative; }
.hp-pass input { padding-right: 48px; }
.hp-pass__eye { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--hp-muted-2); cursor: pointer; border-radius: 0 6px 6px 0; }
.hp-pass__eye:hover { color: var(--hp-primary); }
.hp-pass__eye .is-off, .hp-pass__eye[aria-pressed="true"] .hp-ico:not(.is-off) { display: none; }
.hp-pass__eye[aria-pressed="true"] .is-off { display: inline-block; }
.hp-pass-rules { margin: -8px 0 0; font-size: 13px; color: var(--hp-muted-2); }
.hp-pass-rules.is-bad { color: #b42318; }
.hp-pass-rules.is-good { color: #237804; }
.hp-form__actions { display: flex; justify-content: flex-start; margin-top: 24px; }
.hp-btn--save { min-width: 148px; min-height: 44px; padding: 0 20px; border-radius: 6px; font-size: 16px; font-weight: 500; }
.hp-btn--save.is-busy { opacity: .75; }
.hp-notice { margin: 0 0 20px; padding: 12px 16px; border: 1px solid; border-radius: 8px; font-size: 14px; animation: hp-rise .3s ease both; }
.hp-notice:focus { outline: 0; }
.hp-notice p { margin: 0; }
.hp-notice p + p { margin-top: 4px; }
.hp-notice--ok { border-color: #b7eb8f; background: #f6ffed; color: #237804; }
.hp-notice--error { border-color: #ffccc7; background: #fff2f0; color: #b42318; }
/* One-time result of a save or upload: floats at the top (nothing moves) and fades out by itself (portal.js). */
.hp-notice--toast { position: fixed; top: 16px; left: 50%; z-index: 10000; width: max-content; max-width: min(420px, calc(100vw - 32px)); margin: 0; padding: 8px 14px; font-size: 14px; box-shadow: 0 8px 24px rgba(16, 24, 40, .14); transform: translateX(-50%); animation: hp-toast-in .2s ease both; transition: opacity .3s ease, transform .3s ease; }
.hp-notice--toast.is-leaving { opacity: 0; transform: translate(-50%, -8px); }
@keyframes hp-toast-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.hp-pcard__body > .hp-notice:first-child { margin-top: 0; }

/* ---------- Tablet & mobile ---------- */
@media (max-width: 1100px) {
	.hp-carousel__track { grid-auto-columns: minmax(250px, calc((100% - 20px) / 2)); }
}
@media (max-width: 991px) {
	:root { --hp-bar-h: 96px; }
	.hp-topbar { gap: 10px; padding: 8px 12px; }
	.hp-topbar__title { font-size: 16px; }
	.hp-topbar__divider { height: 24px; }
	.hp-watch { display: block; }
	.hp-sidebar { position: fixed; left: 0; top: var(--hp-top-h); bottom: 0; height: auto; width: min(85vw, var(--hp-side-w)); transform: translateX(-100%); box-shadow: none; }
	body.hp-drawer-open .hp-sidebar { transform: none; box-shadow: 8px 0 30px rgba(16, 24, 40, .12); }
	body.hp-side-collapsed .hp-sidebar { margin-left: 0; }
	.hp-drawer-backdrop { display: block; position: fixed; inset: var(--hp-top-h) 0 0 0; z-index: 100; background: transparent; }
	.hp-pill { left: 0; top: calc(var(--hp-top-h) + 15px); }
	body.hp-drawer-open .hp-pill { left: min(85vw, var(--hp-side-w)); }
	.hp-titlebar { padding: 0 12px; }
	.hp-titlebar__title { padding-left: 58px; }
	.hp-player { max-height: none; min-height: 0; }
	.hp-under { padding: 16px 12px 0; }
	.hp-actionbar { left: 0; }
	.hp-actionbar__inner { padding: 8px 12px; gap: 8px; }
	.hp-actionbar__course { display: inline-flex !important; min-width: 180px; border-radius: 3px; }
	.hp-actionbar__buttons { width: 100%; max-width: 420px; }
	.hp-actionbar__buttons .hp-btn { flex: 1; white-space: nowrap; padding: 0 14px; }
	.hp-hidebar { width: auto; height: 32px !important; padding: 0 10px; font-size: 14px; border-radius: 6px 0 0 0; bottom: var(--hp-safe-b); }
	.hp-vol__input { display: none; }
	.hp-dash { flex-direction: column; gap: 24px; padding-top: 20px; }
	.hp-dash__side { position: static; width: 100%; }
	.hp-dash__main { width: 100%; }
	.hp-dhead__site span { display: none; }
}
@media (max-width: 600px) {
	.hp-controls { padding: 24px 6px 2px; }
	.hp-controls__row { height: 34px; gap: 0; }
	.hp-cbtn { width: 32px; height: 32px; }
	.hp-time { font-size: 12px; margin-left: 2px; }
	.hp-wm { font-size: 13px; }
	.hp-player__big { width: 52px; height: 52px; }
	.hp-modal { padding-top: 60px; }
	.hp-modal__card { padding: 30px 18px 26px; }
	.hp-modal__title { font-size: 20px; }
	.hp-sec__head h2 { font-size: 22px; }
	.hp-carousel__track { grid-auto-columns: 85%; }
	.hp-carousel__arrow { display: none; }
	.hp-search input { width: 100%; }
	.hp-panel__head { flex-direction: column; align-items: stretch; }
	.hp-pcard { padding: 16px; }
	.hp-pcard__cover { height: 120px; }
	.hp-pcard__avatar, .hp-pcard__avatar img { width: 100px; height: 100px; }
	.hp-pcard__body { padding-top: 22px; }
	.hp-phone { max-width: none; }
	.hp-phone select { width: 120px; }
	.hp-pcard__title { font-size: 20px; margin-bottom: 16px; }
	.hp-form__grid { grid-template-columns: 1fr; gap: 16px; }
	.hp-field--hint { order: 0; padding-bottom: 0; }
	.hp-form__actions .hp-btn { width: 100%; }
}

@keyframes hp-spin { to { transform: rotate(360deg); } }
@keyframes hp-fade { from { opacity: 0; } }
@keyframes hp-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes hp-toast { from { opacity: 0; transform: translate(-50%, 8px); } }
@keyframes hp-pop-card { from { opacity: 0; transform: translateY(-12px) scale(.97); } }
@keyframes hp-gift-in { 0% { transform: scale(0) rotate(-12deg); } 70% { transform: scale(1.12) rotate(4deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes hp-lid { 0%, 60%, 100% { transform: translateY(0) rotate(0); } 70% { transform: translateY(-14px) rotate(-6deg); } 80% { transform: translateY(0) rotate(0); } 88% { transform: translateY(-6px) rotate(3deg); } }
@keyframes hp-sparkle { 0%, 100% { opacity: .5; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
	.hp-lms-portal *, .hp-lms-portal *::before, .hp-lms-portal *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Your devices (profile, v0.8.0) ---------- */
.hp-devices__intro { margin: 0 0 16px; color: #475467; font-size: 14px; line-height: 1.6; }
.hp-devices { margin: 0 0 16px; padding: 0; list-style: none; border: 1px solid #e5e5e5; border-radius: 10px; }
.hp-devices__item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.hp-devices__item + .hp-devices__item { border-top: 1px solid #e5e5e5; }
.hp-devices__icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--hp-primary-50); color: var(--hp-primary); }
.hp-devices__text { display: flex; flex-direction: column; min-width: 0; }
.hp-devices__text strong { font-size: 15px; font-weight: 600; }
.hp-devices__this { display: inline-block; margin-top: 2px; padding: 1px 8px; width: max-content; border-radius: 999px; background: #ecfdf3; color: #067647; font-size: 12px; font-weight: 500; }
.hp-devices__meta { margin: 0; color: #667085; font-size: 13px; }
.hp-devices__form { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- Course page for students who do not have the course yet (v0.9.0) ---------- */
.hp-landing { padding-top: 32px; padding-bottom: 64px; }
.hp-landing__hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; margin-bottom: 32px; }
.hp-landing__back { display: flex; width: max-content; align-items: center; gap: 4px; margin-bottom: 18px; color: var(--hp-muted-2); font-size: 14px; text-decoration: none; }
.hp-landing__back:hover { color: var(--hp-primary); }
.hp-landing__cat { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; background: var(--hp-primary-50); color: var(--hp-primary); font-size: 13px; font-weight: 500; }
.hp-landing__intro h1 { margin: 0 0 12px; font-size: 34px; font-weight: 700; line-height: 1.2; color: #000; }
.hp-landing__lead { margin: 0 0 16px; max-width: 70ch; color: #475467; font-size: 17px; line-height: 1.6; }
.hp-landing__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; color: #475467; font-size: 14px; }
.hp-landing__meta li + li::before { content: "·"; margin-right: 18px; color: #98a2b3; }
.hp-landing__buy { overflow: hidden; border: 1px solid #e5e5e5; border-radius: 12px; background: #fff; box-shadow: 0 4px 40px rgba(35, 35, 99, .08); }
.hp-landing__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--hp-primary-50); }
.hp-landing__img--empty { display: grid; place-items: center; padding: 20px; color: var(--hp-primary); font-size: 20px; font-weight: 600; text-align: center; }
.hp-landing__buybody { padding: 20px; }
.hp-landing__price { margin: 0 0 14px; font-size: 15px; color: #475467; }
.hp-landing__price strong { color: #000; font-size: 28px; font-weight: 700; }
.hp-landing__price del { color: #98a2b3; font-size: 18px; }
.hp-landing__note, .hp-landing__seats, .hp-landing__full { margin: 12px 0 0; color: #667085; font-size: 13px; text-align: center; }
.hp-landing__seats { color: #b54708; font-weight: 500; }
.hp-landing__full { color: #b42318; font-size: 15px; font-weight: 600; }
.hp-btn--block { display: flex; width: 100%; justify-content: center; gap: 8px; }
.hp-landing__cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.hp-landing__box { margin-bottom: 24px; padding: 24px; border: 1px solid #e5e5e5; border-radius: 12px; background: #fff; }
.hp-landing__box h2 { margin: 0 0 16px; font-size: 21px; font-weight: 600; color: #000; }
.hp-landing__sub { margin: -8px 0 14px; color: #667085; font-size: 14px; }
.hp-landing__checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; padding: 0; list-style: none; }
.hp-landing__checks--plain { grid-template-columns: minmax(0, 1fr); }
.hp-landing__checks li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; }
.hp-landing__checks svg { flex: none; margin-top: 2px; color: var(--hp-primary); }
.hp-landing__module { border: 1px solid #eaecf0; border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.hp-landing__module summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #f9fafb; font-weight: 600; cursor: pointer; list-style: none; }
.hp-landing__module summary::-webkit-details-marker { display: none; }
.hp-landing__count { color: #667085; font-size: 13px; font-weight: 400; }
.hp-landing__module ul { margin: 0; padding: 4px 0; list-style: none; }
.hp-landing__module li { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 15px; }
.hp-landing__module li > span:first-of-type { flex: 1; }
.hp-landing__module li svg { color: #667085; }
.hp-landing__preview { color: var(--hp-primary); font-size: 14px; font-weight: 500; }
.hp-landing__lock { color: #98a2b3; }
.hp-landing__bullets { margin: 0; padding-left: 20px; line-height: 1.8; }
.hp-landing__desc { line-height: 1.7; color: #344054; }
.hp-landing__desc h2 { color: #000; }
.hp-landing__faq { border-top: 1px solid #eaecf0; }
.hp-landing__faq:first-of-type { border-top: 0; }
.hp-landing__faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font-weight: 500; cursor: pointer; list-style: none; }
.hp-landing__faq summary::-webkit-details-marker { display: none; }
.hp-landing__faq[open] summary svg { transform: rotate(180deg); }
.hp-landing__faq p { margin: 0 0 14px; color: #475467; line-height: 1.6; }
@media (max-width: 991px) {
	.hp-landing__hero, .hp-landing__cols { grid-template-columns: minmax(0, 1fr); }
	.hp-landing__buy { order: -1; }
	.hp-landing__intro h1 { font-size: 26px; }
	.hp-landing__checks { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Lesson types (v0.10.0): PDF, audio, embed, live, quiz, survey, assignment ---------- */
.hp-player--doc { aspect-ratio: auto; height: min(80vh, 900px); background: #525659; }
.hp-player__doc { display: block; width: 100%; height: 100%; border: 0; }
.hp-typeblock { margin: 0 0 24px; padding: 24px; border: 1px solid #e5e5e5; border-radius: 10px; background: #fff; }
.hp-typeblock--empty { color: #667085; text-align: center; }
.hp-audio { display: flex; align-items: center; gap: 16px; }
.hp-audio__icon { display: inline-grid; flex: none; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--hp-primary-50); color: var(--hp-primary); }
.hp-audio audio { flex: 1; width: 100%; min-width: 0; }
.hp-embed { padding: 0; overflow: hidden; }
.hp-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.hp-live { text-align: center; }
.hp-live h2 { margin: 10px 0 8px; font-size: 22px; font-weight: 600; }
.hp-live__badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #eef4ff; color: #3538cd; font-size: 13px; font-weight: 600; }
.hp-live__badge.is-live { background: #fef3f2; color: #d92d20; }
.hp-live__badge.is-live::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: currentColor; animation: hp-pulse 1.2s ease-in-out infinite; vertical-align: 1px; }
.hp-live__when { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; color: #475467; }
.hp-live__count { margin: 8px 0 0; font-size: 18px; font-weight: 600; color: var(--hp-primary); }
.hp-live__actions { display: flex; justify-content: center; gap: 10px; margin: 18px 0 10px; }
.hp-live__actions [aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
@keyframes hp-pulse { 50% { opacity: .35; } }
.hp-actionbar__hint { color: #475467; font-size: 14px; }
.hp-choice { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; padding: 12px 14px; border: 1px solid #e5e5e5; border-radius: 8px; cursor: pointer; }
.hp-choice:hover { border-color: var(--hp-primary); }
.hp-choice input { margin-top: 3px; accent-color: var(--hp-primary); }
.hp-choice:has(input:checked) { border-color: var(--hp-primary); background: var(--hp-primary-25); }
.hp-input { width: 100%; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 8px; font: inherit; }
.hp-input:focus { outline: 0; border-color: var(--hp-primary); box-shadow: 0 0 0 3px var(--hp-primary-50); }
.hp-label { display: block; margin: 14px 0 6px; font-weight: 500; }
.hp-req { color: #d92d20; }
.hp-quiz__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.hp-quiz__meta li { padding: 6px 12px; border-radius: 999px; background: #f2f4f7; font-size: 14px; }
.hp-quiz__ok { padding: 10px 14px; border-radius: 8px; background: #ecfdf3; color: #067647; }
.hp-quiz__sub { margin: 18px 0 8px; font-size: 16px; }
.hp-quiz__history { margin: 0 0 16px; padding: 0; list-style: none; }
.hp-quiz__history li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f2f4f7; font-size: 14px; }
.hp-quiz__history li.is-pass strong { color: #067647; }
.hp-quiz__history li.is-fail strong { color: #b42318; }
.hp-quiz__history em { flex-basis: 100%; color: #475467; }
.hp-quiz__clock { position: sticky; top: 8px; z-index: 2; width: max-content; margin: 0 0 12px auto; padding: 6px 12px; border-radius: 8px; background: #f2f4f7; font-weight: 600; }
.hp-quiz__clock.is-low { background: #fef3f2; color: #b42318; }
.hp-quiz__q { margin: 0 0 18px; padding: 0; border: 0; }
.hp-quiz__q legend { display: flex; gap: 8px; margin-bottom: 6px; font-size: 16px; font-weight: 600; }
.hp-quiz__n { color: var(--hp-primary); }
.hp-quiz__result { margin-bottom: 18px; padding: 20px; border-radius: 10px; text-align: center; }
.hp-quiz__result.is-pass { background: #ecfdf3; color: #067647; }
.hp-quiz__result.is-fail { background: #fef3f2; color: #b42318; }
.hp-quiz__big { margin: 0; font-size: 42px; font-weight: 700; line-height: 1.1; }
.hp-quiz__verdict { margin: 6px 0 0; font-weight: 600; }
.hp-quiz__rev { margin: 0 0 10px; padding: 12px 14px; border-left: 4px solid; border-radius: 6px; background: #f9fafb; }
.hp-quiz__rev.is-right { border-color: #16a34a; }
.hp-quiz__rev.is-wrong { border-color: #d92d20; }
.hp-quiz__revq, .hp-quiz__right { margin: 0 0 4px; }
.hp-quiz__right { color: #067647; }
.hp-survey__q { margin: 0 0 18px; padding: 0; border: 0; }
.hp-survey__q legend { margin-bottom: 6px; font-weight: 600; }
.hp-survey__done { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; background: #ecfdf3; color: #067647; }
.hp-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.hp-stars input { position: absolute; opacity: 0; }
.hp-stars label { color: #d0d5dd; font-size: 28px; cursor: pointer; }
.hp-stars label:hover, .hp-stars label:hover ~ label, .hp-stars label:has(input:checked), .hp-stars label:has(input:checked) ~ label { color: #f5a623; }
.hp-assign__status { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 16px; padding: 12px 14px; border-radius: 8px; background: #f2f4f7; font-size: 14px; }
.hp-assign__status.is-approved { background: #ecfdf3; color: #067647; }
.hp-assign__status.is-rejected { background: #fffaeb; color: #93370d; }
.hp-assign__feedback { flex-basis: 100%; margin: 6px 0 0; }
.hp-assign__files { margin: 12px 0 0; padding: 0; list-style: none; }
.hp-assign__files li { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.hp-assign__rm { margin-left: auto; font-size: 13px; color: #667085; }
.hp-assign__form .hp-btn { margin-top: 16px; }
@media print {
	.hp-topbar, .hp-sidebar, .hp-pill, .hp-actionbar, .hp-tabs--under, #hp-panel-disc, .hp-copy, .hp-toast, .hp-about { display: none !important; }
	.hp-watch, .hp-main { display: block !important; margin: 0 !important; padding: 0 !important; }
	body { background: #fff !important; }
}

/* ---------- Certificates and reviews (v0.10.0) ---------- */
.hp-cert-page { margin: 0; background: #eef2f6; font-family: Poppins, system-ui, sans-serif; color: #101828; }
.hp-cert { max-width: 1180px; margin: 0 auto; padding: 24px 16px 48px; }
.hp-cert__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 18px; padding: 14px 18px; border-radius: 10px; background: #fff; box-shadow: 0 2px 10px rgba(16, 24, 40, .06); }
.hp-cert__bar span { flex: 1; min-width: 240px; color: #475467; font-size: 14px; }
.hp-cert__bar.is-ok strong { color: #067647; }
.hp-cert__bar.is-ok strong::before { content: "✓ "; }
.hp-cert__bar.is-bad strong { color: #b42318; }
.hp-cert__sheet { overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 10px 40px rgba(16, 24, 40, .14); }
.hp-cert__svg { display: block; width: 100%; height: auto; }
.hp-cert-page.is-portrait .hp-cert { max-width: 820px; }
@media print {
	@page { size: A4 landscape; margin: 0; }
	.hp-cert-page.is-portrait { }
	.hp-cert-page { background: #fff; }
	.hp-cert { max-width: none; padding: 0; }
	.hp-cert__bar { display: none; }
	.hp-cert__sheet { box-shadow: none; border-radius: 0; }
	.hp-cert__svg { width: 100vw; height: 100vh; }
}
.hp-certlist { margin: 0; padding: 0; list-style: none; }
.hp-certlist__item { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid #e5e5e5; }
.hp-certlist__icon { display: inline-grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #ecfdf3; color: #16a34a; }
.hp-certlist__text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.hp-certlist__text span { color: #667085; font-size: 13px; }
.hp-review { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 24px; padding: 16px 44px 16px 18px; border: 1px solid #fedf89; border-radius: 10px; background: #fffcf5; }
.hp-review > div:first-child { flex: 1; min-width: 200px; }
.hp-review p { margin: 2px 0 0; }
.hp-review textarea { flex-basis: 100%; }
.hp-review__x { position: absolute; top: 8px; right: 10px; border: 0; background: none; color: #667085; font-size: 22px; cursor: pointer; }
.hp-review__thanks { margin: 0; color: #067647; font-weight: 600; }
.hp-reviews { margin: 0; padding: 0; list-style: none; }
.hp-reviews li { padding: 12px 0; border-bottom: 1px solid #eaecf0; }
.hp-reviews li:last-child { border-bottom: 0; }
.hp-reviews__stars { color: #f5a623; letter-spacing: 2px; }
.hp-reviews p { margin: 4px 0; }

/* Checkout and My Purchases (v0.12.0) */
.hp-shop__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.hp-shop__item { display: flex; gap: 16px; align-items: flex-start; }
.hp-shop__thumb { width: 160px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; flex: none; }
.hp-shop__type { margin: 0 0 4px; font-size: 13px; font-weight: 500; color: var(--hp-primary); text-transform: uppercase; letter-spacing: .04em; }
.hp-shop__title { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.hp-shop__lead, .hp-shop__fine { margin: 0; color: var(--hp-muted-2); font-size: 14px; }
.hp-shop__fine { margin-top: 12px; font-size: 13px; }
.hp-shop__why { margin: 0 0 14px; }
.hp-shop__sum { margin: 0 0 16px; }
.hp-shop__sum div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.hp-shop__sum dt { color: #475467; }
.hp-shop__sum dd { margin: 0; font-weight: 500; }
.hp-shop__sum del { color: #98a2b3; font-weight: 400; }
.hp-shop__sum .is-discount dd { color: #237804; }
.hp-shop__sum .is-total { margin-top: 6px; padding-top: 12px; border-top: 1px solid #eaecf0; }
.hp-shop__sum .is-total dd { font-size: 24px; font-weight: 700; color: #000; }
.hp-shop__coupon { display: flex; gap: 8px; margin-bottom: 8px; }
.hp-shop__coupon .hp-input { min-width: 0; text-transform: uppercase; }
.hp-shop__err { margin: 0 0 10px; color: #b42318; font-size: 14px; }
.hp-shop__box form + form { margin-top: 12px; }
.hp-orders { margin: 0; padding: 0; list-style: none; }
.hp-orders__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 0; border-bottom: 1px solid #eaecf0; }
.hp-orders__item:last-child { border-bottom: 0; }
.hp-orders__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 280px; }
.hp-orders__title { font-size: 16px; font-weight: 600; }
.hp-orders__meta, .hp-orders__reason { font-size: 13px; color: var(--hp-muted-2); overflow-wrap: anywhere; }
.hp-orders__status { align-self: flex-start; padding: 2px 8px; border-radius: 3px; font-size: 13px; font-weight: 500; background: var(--hp-gray-50); color: var(--hp-muted-2); }
.hp-orders__status.is-green { background: #d9f7be; color: #237804; }
.hp-orders__status.is-orange { background: #fff1d6; color: #ad6800; }
.hp-orders__status.is-red { background: #fff1f0; color: #b42318; }
.hp-orders__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .hp-shop__grid { grid-template-columns: 1fr; } .hp-shop .hp-landing__buy { order: 0; } .hp-shop__item { flex-direction: column; } .hp-shop__thumb { width: 100%; } }

/* Store and products (v0.13.0) */
.hp-store { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.hp-store__card { display: flex; border: 1px solid #e5e5e5; border-radius: 10px; overflow: hidden; background: #fff; transition: box-shadow .2s; }
.hp-store__card:hover { box-shadow: 0 6px 24px rgba(35, 35, 99, .1); }
.hp-store__link { display: flex; flex-direction: column; width: 100%; color: inherit; text-decoration: none; }
.hp-store__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--hp-primary-50, #ebf4fb); }
.hp-store__img--none { display: flex; align-items: center; justify-content: center; color: var(--hp-primary); }
.hp-store__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px; }
.hp-store__type { font-size: 12px; font-weight: 500; color: var(--hp-primary); text-transform: uppercase; letter-spacing: .04em; }
.hp-store__title { font-size: 17px; font-weight: 600; }
.hp-store__sum { font-size: 14px; color: var(--hp-muted-2); }
.hp-store__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.hp-store__price del { color: #98a2b3; font-size: 14px; }
.hp-store__price strong { font-size: 18px; }
.hp-product__img { display: block; width: 100%; max-height: 360px; object-fit: cover; margin-bottom: 16px; border-radius: 10px; }
.hp-product__h { margin: 20px 0 12px; font-size: 18px; font-weight: 600; }
.hp-product__desc { margin-top: 20px; line-height: 1.7; }
.hp-product__incl { margin: 0 0 16px; padding: 0 0 0 18px; color: #475467; font-size: 14px; }
.hp-product__incl li + li { margin-top: 4px; }
.hp-player--lib { position: relative; overflow: hidden; border-radius: 10px; background: #000; }
.hp-player--lib video { display: block; width: 100%; aspect-ratio: 16 / 9; }
.hp-player--audio { padding: 16px; background: var(--hp-primary-50, #ebf4fb); }
.hp-player--audio audio { display: block; width: 100%; }
.hp-playlist { margin: 12px 0 0; padding: 0; list-style: none; border: 1px solid #eaecf0; border-radius: 10px; overflow: hidden; }
.hp-playlist li + li { border-top: 1px solid #eaecf0; }
.hp-playlist__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.hp-playlist__item:hover, .hp-playlist__item.is-current { background: var(--hp-primary-50, #ebf4fb); }
.hp-playlist__item.is-current .hp-playlist__t { color: var(--hp-primary); font-weight: 600; }
.hp-playlist__n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #f2f4f7; font-size: 13px; line-height: 26px; text-align: center; }
.hp-playlist__t { flex: 1; min-width: 0; }
.hp-playlist__m { font-size: 13px; color: var(--hp-muted-2); }
.hp-slots__day { margin: 0 0 14px; padding: 0; border: 0; }
.hp-slots__day legend { margin-bottom: 8px; font-weight: 600; }
.hp-slots__times { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-slot input { position: absolute; opacity: 0; pointer-events: none; }
.hp-slot span { display: inline-block; padding: 8px 12px; border: 1px solid #d0d5dd; border-radius: 6px; font-size: 14px; cursor: pointer; }
.hp-slot input:checked + span { border-color: var(--hp-primary); background: var(--hp-primary); color: #fff; }
.hp-slot input:focus-visible + span { box-shadow: 0 0 0 3px var(--hp-primary-50, #ebf4fb); }
.hp-slots__label { display: block; margin: 8px 0 6px; font-size: 14px; font-weight: 500; }
.hp-slots .hp-shop__coupon { margin: 12px 0; }

/* Two-step login for students (v0.17.0) */
.hp-form.hp-2fa__form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.hp-2fa__form .hp-input.hp-2fa__code { width: 180px; max-width: 100%; flex: none; }
.hp-2fa__steps { margin: 0; padding-left: 20px; }
.hp-2fa__steps li + li { margin-top: 12px; }
.hp-2fa__qr { display: block; width: fit-content; margin: 12px 0 6px; padding: 10px; border: 1px solid #eaecf0; border-radius: 8px; background: #fff; }
.hp-2fa__key { font-size: 13px; letter-spacing: .04em; }
.hp-2fa__on { display: inline-block; padding: 1px 8px; border-radius: 3px; background: #d9f7be; color: #237804; font-size: 13px; font-weight: 600; }
.hp-2fa__codes { margin: 0 0 16px; padding: 14px 16px; border: 1px dashed #d0d5dd; border-radius: 8px; background: #fcfcfd; }
.hp-2fa__codes ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; margin: 10px 0 12px; padding: 0; list-style: none; }
.hp-2fa__codes code { font-size: 15px; letter-spacing: .05em; }
.hp-2fa-gate { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 24px 16px; background: #f5f7fb; }
.hp-2fa-gate__card { width: 100%; max-width: 400px; padding: 32px 28px; border: 1px solid #e5e5e5; border-radius: 12px; background: #fff; box-shadow: 0 4px 40px rgba(35, 35, 99, .08); text-align: center; }
.hp-2fa-gate__logo { margin-bottom: 18px; }
.hp-2fa-gate__logo img { max-height: 40px; width: auto; }
.hp-2fa-gate__icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; margin-bottom: 10px; border-radius: 50%; background: var(--hp-primary-50, #ebf4fb); color: var(--hp-primary); }
.hp-2fa-gate h1 { margin: 0 0 8px; font-size: 22px; }
.hp-2fa-gate p { margin: 0 0 16px; color: var(--hp-muted-2); font-size: 14px; }
.hp-2fa-gate form { display: flex; flex-direction: column; gap: 12px; }
.hp-2fa-gate .hp-input { text-align: center; font-size: 20px; letter-spacing: .2em; }
.hp-2fa-gate__foot { margin: 16px 0 0 !important; font-size: 13px !important; }

/* Badges and email updates (v0.17.0) */
.hp-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.hp-badge-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border: 1px solid #eaecf0; border-radius: 10px; text-align: center; opacity: .55; filter: grayscale(1); }
.hp-badge-item.is-earned { opacity: 1; filter: none; border-color: color-mix(in srgb, var(--bc, #F79009) 35%, #fff); }
.hp-badge-item__icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 50%; background: color-mix(in srgb, var(--bc, #F79009) 14%, #fff); color: var(--bc, #F79009); }
.hp-badge-item strong { font-size: 14px; }
.hp-badge-item__hint { font-size: 12px; color: var(--hp-muted-2); }
.hp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.hp-check input { margin-top: 4px; }

/* Academy pages (v0.18.0) */
.hp-cpage__embed { position: relative; margin: 0 0 20px; overflow: hidden; border-radius: 10px; background: #000; aspect-ratio: 16 / 9; }
.hp-cpage__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hp-cpage__body { font-size: 16px; line-height: 1.75; color: #1d2939; overflow-wrap: anywhere; }
.hp-cpage__body h2 { margin: 28px 0 10px; font-size: 22px; }
.hp-cpage__body h3 { margin: 22px 0 8px; font-size: 18px; }
.hp-cpage__body p { margin: 0 0 14px; }
.hp-cpage__body ul, .hp-cpage__body ol { margin: 0 0 14px; padding-left: 22px; }
.hp-cpage__body img { max-width: 100%; height: auto; border-radius: 8px; }
.hp-cpage__body a { color: var(--hp-primary); }
.hp-photo-hint { margin: -6px 0 16px; font-size: 13px; color: var(--hp-muted-2); text-align: center; }

/* ---------- App layout on phones, account page, dark mode and language controls (v0.25.0) ---------- */
:root { --hp-app-bg: #f7f8fc; --hp-soft: #eef1f8; --hp-surface: #fff; --hp-card-shadow: 0 2px 12px rgba(16, 24, 40, .07); }
.hp-tabbar, .hp-mhome, .hp-mtabs, .hp-mpanel, .hp-fab, .hp-dhead__me, .hp-acc-hero, .hp-account__title { display: none; }
.hp-ccard__title a { color: inherit !important; text-decoration: none; }
.hp-ccard__title a:hover { color: var(--hp-primary) !important; }
.hp-ccard__meta { display: flex; align-items: center; gap: 6px; margin: -8px 0 14px; font-size: 14px; color: var(--hp-muted-2); }
.hp-pbar__txt { display: none; }
.hp-watchnow { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--hp-primary) !important; font-size: 14px; font-weight: 500; text-decoration: none; }
.hp-watchnow .hp-ico { display: grid; place-items: center; width: 26px; height: 26px; padding: 6px 5px 6px 7px; border-radius: 50%; background: var(--hp-primary); color: #fff; box-shadow: 0 0 0 4px rgba(49, 130, 206, .18); }
.hp-ccard--bundle .hp-badge { margin: 0 0 6px; }
.hp-ccard--bundle .hp-ccard__title { margin-bottom: 10px; }
.hp-ccard--bundle .hp-ccard__meta { margin: 0 0 6px; }

/* Switch (dark mode) */
/* Settings (email switches) */
.hp-set__tabs { display: flex; gap: 28px; margin: -4px 0 18px; border-bottom: 1px solid var(--hp-border); }
.hp-set__tab { margin-bottom: -1px; padding: 10px 2px 12px; border-bottom: 2px solid transparent; color: var(--hp-muted-2) !important; font-size: 15px; font-weight: 500; text-decoration: none; }
.hp-set__tab.is-active { border-color: var(--hp-primary); color: var(--hp-primary) !important; }
.hp-set__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hp-set__row label { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--hp-border); border-radius: 8px; background: var(--hp-surface, #fff); cursor: pointer; }
.hp-set__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hp-set__text strong { font-size: 14px; font-weight: 600; color: var(--hp-title); }
.hp-set__text span { font-size: 13px; color: var(--hp-muted-2); }
.hp-set__cb { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hp-set__cb:checked + .hp-switch { background: var(--hp-primary); }
.hp-set__cb:checked + .hp-switch span { transform: translateX(18px); }
.hp-set__cb:focus-visible + .hp-switch { outline: 2px solid var(--hp-primary); outline-offset: 2px; }
.hp-set__foot { display: flex; justify-content: flex-end; margin-top: 18px; }
.hp-set__empty { color: var(--hp-muted-2); }
.hp-switch { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: #d0d5dd; transition: background-color .2s; }
.hp-switch span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .25); transition: transform .2s; }
[aria-checked="true"] > .hp-switch { background: var(--hp-primary); }
[aria-checked="true"] > .hp-switch span { transform: translateX(18px); }
.hp-themeform { margin: 0; }
.hp-themeform__btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 8px; border: 0; border-radius: 6px; background: none; color: var(--hp-text); font: inherit; font-size: 14px; text-align: start; cursor: pointer; }
.hp-themeform__btn > span:not(.hp-switch) { flex: 1; }
.hp-themeform__btn:hover { background: var(--hp-gray-50); }
.hp-usermenu__panel a em { margin-inline-start: auto; font-style: normal; font-size: 13px; color: var(--hp-muted-2); }

/* Language sheet */
.hp-sheet { width: min(440px, 100vw); max-width: 100vw; margin: auto; padding: 0; border: 0; border-radius: 16px; background: transparent; color: var(--hp-text); }
.hp-sheet::backdrop { background: rgba(16, 24, 40, .45); }
.hp-sheet__card { margin: 0; padding: 8px 0 12px; border-radius: 16px; background: var(--hp-surface); box-shadow: 0 20px 50px rgba(16, 24, 40, .25); }
.hp-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px 8px; }
.hp-sheet__head h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--hp-title); }
.hp-sheet__x { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--hp-muted-2); cursor: pointer; }
.hp-sheet__x:hover { background: var(--hp-gray-50); }
.hp-sheet__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: min(62vh, 520px); padding: 6px 16px 8px; overflow-y: auto; overscroll-behavior: contain; }
.hp-sheet { width: min(560px, 100vw); }
.hp-sheet__opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 16px; border: 1px solid var(--hp-border); border-radius: 12px; background: var(--hp-surface); color: var(--hp-title); font: inherit; cursor: pointer; text-align: start; }
.hp-sheet__opt:hover { border-color: var(--hp-primary); }
.hp-sheet__opt.is-on { border-color: var(--hp-primary); background: var(--hp-primary-50); }
.hp-sheet__own { flex: 1; font-size: 18px; font-weight: 600; }
.hp-sheet__opt[dir="rtl"] .hp-sheet__own { font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif; font-size: 20px; }
.hp-sheet__opt { min-width: 0; }
.hp-sheet__own, .hp-sheet__en { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-sheet__names { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.hp-sheet__own { flex: none; }
@media (max-width: 420px) { .hp-sheet__list { grid-template-columns: minmax(0, 1fr); } }
.hp-sheet__en { font-size: 13px; color: var(--hp-muted-2); }
.hp-sheet__opt .hp-ico { color: var(--hp-primary); }
.hp-sheet__dot { flex: none; width: 20px; height: 20px; border: 2px solid #d0d5dd; border-radius: 50%; }

/* Account page (all screens) */
.hp-account { display: flex; flex-direction: column; gap: 16px; }
.hp-acc-card, .hp-acc-list { border-radius: 16px; background: var(--hp-surface); border: 1px solid #e5e5e5; box-shadow: 0 4px 40px rgba(35, 35, 99, .06); }
.hp-acc-card { padding: 4px 22px; }
.hp-acc-card__row { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 40px 16px 0; }
.hp-acc-card__row + .hp-acc-card__row { border-top: 1px solid var(--hp-border); }
.hp-acc-card__label { font-size: 16px; font-weight: 500; color: var(--hp-title); }
.hp-acc-card__value { font-size: 15px; color: var(--hp-muted-2); overflow-wrap: anywhere; }
.hp-acc-card__edit { position: absolute; right: 0; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -18px; border-radius: 8px; color: var(--hp-title) !important; }
.hp-acc-card__edit:hover { background: var(--hp-gray-50); }
.hp-acc-list { padding: 6px 22px; }
.hp-acc-item, .hp-acc-list .hp-themeform__btn { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 60px; padding: 12px 0; border: 0; border-radius: 0; background: none; color: var(--hp-title) !important; font: inherit; font-size: 17px; font-weight: 500; text-decoration: none; cursor: pointer; }
.hp-acc-list > * + * { border-top: 1px solid var(--hp-border); }
.hp-acc-list .hp-themeform__btn:hover { background: none; }
.hp-acc-item > span, .hp-acc-list .hp-themeform__btn > span:not(.hp-switch) { flex: 1; text-align: start; }
.hp-acc-item .hp-ico, .hp-acc-list .hp-themeform__btn > .hp-ico { flex: none; width: 22px; height: 22px; }
.hp-acc-item__chev { color: var(--hp-title); }
.hp-acc-item__value { font-style: normal; font-size: 14px; color: var(--hp-muted-2); }
.hp-acc-item--logout { color: #e5484d !important; }
.hp-acc-item:hover > span { color: var(--hp-primary); }
.hp-acc-item--logout:hover > span { color: #c9353a; }

@media (max-width: 767px) {
	body.hp-lms-portal { background: var(--hp-app-bg); }
	body.hp-lms-portal:has(.hp-tabbar) { padding-bottom: calc(70px + var(--hp-safe-b)); }
	.hp-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 130; display: flex; align-items: stretch; height: calc(70px + var(--hp-safe-b)); padding-bottom: var(--hp-safe-b); background: var(--hp-soft); border-top: 1px solid var(--hp-border); box-shadow: 0 -4px 18px rgba(16, 24, 40, .06); }
	.hp-tabbar__item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #3b4254 !important; font-size: 13px; font-weight: 600; text-decoration: none; -webkit-tap-highlight-color: transparent; }
	.hp-tabbar__item span { display: none; }
	.hp-tabbar__item.is-active { color: var(--hp-primary) !important; }
	.hp-tabbar__item.is-active span { display: block; }
	.hp-tabbar__item:active .hp-ico { transform: scale(.92); }

	.hp-dhead { background: var(--hp-app-bg); box-shadow: none; }
	.hp-dhead__inner { height: 76px; }
	.hp-dhead__site, .hp-usermenu { display: none; }
	.hp-page-dashboard .hp-logo { display: none; }
	.hp-dhead__inner { gap: 12px; }
	.hp-page-dashboard .hp-dhead__me { display: flex; flex: 1 1 auto; align-items: center; gap: 12px; min-width: 0; color: var(--hp-title) !important; text-decoration: none; font-size: 17px; font-weight: 600; line-height: 1.25; }
	.hp-dhead__me img { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
	.hp-dhead__me span { flex: 1 1 auto; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
	.hp-dhead__right { flex: none; gap: 10px; }
	.hp-dhead .hp-hicon { width: 44px; height: 44px; border: 0; background: var(--hp-primary-50); color: var(--hp-primary); box-shadow: 0 4px 12px rgba(49, 130, 206, .18); }
	.hp-dhead .hp-hicon .hp-ico { width: 21px; height: 21px; }

	.hp-dash { gap: 0; padding-top: 6px; padding-bottom: 24px; }
	.hp-dash__side { display: none; }
	.hp-mhome { display: block; margin-bottom: 28px; }
	.hp-mstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
	.hp-mstat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 6px 16px; border-radius: 14px; background: var(--hp-soft); color: var(--hp-title) !important; text-decoration: none; box-shadow: 0 1px 3px rgba(16, 24, 40, .08); }
	.hp-mstat__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px; border-radius: 50%; }
	.hp-mstat.is-a .hp-mstat__icon { background: #dcebf8; color: #3182ce; }
	.hp-mstat.is-b .hp-mstat__icon { background: #e4e5f7; color: #5a5fd0; }
	.hp-mstat.is-c .hp-mstat__icon { background: #dcefe4; color: #2e9a5b; }
	.hp-mstat strong { font-size: 24px; font-weight: 600; line-height: 1.1; }
	.hp-mstat > span:last-child { font-size: 15px; }
	.hp-msearch { margin-top: 16px; }
	.hp-msearch label { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border: 1px solid var(--hp-border); border-radius: 23px; background: var(--hp-surface); color: var(--hp-muted-2); }
	.hp-msearch .hp-ico { width: 18px; height: 18px; }
	.hp-msearch input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--hp-text); font: inherit; font-size: 16px; }
	.hp-msearch input::placeholder { font-size: 15px; color: var(--hp-muted); }
	.hp-msearch label:focus-within { border-color: var(--hp-primary); box-shadow: 0 0 0 3px rgba(49, 130, 206, .15); }

	.hp-sec + .hp-sec { margin-top: 30px; }
	.hp-sec__head { margin-bottom: 14px; }
	.hp-sec__head h2 { font-size: 23px; font-weight: 600; color: var(--hp-title); }
	.hp-sec__all { font-size: 16px; }
	.hp-page-dashboard .hp-grid, .hp-page-dashboard .hp-carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: 68%; grid-template-columns: none; gap: 14px; margin: 0 -16px; padding: 4px 16px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.hp-page-dashboard .hp-grid::-webkit-scrollbar { display: none; }
	.hp-page-dashboard .hp-grid > * { scroll-snap-align: start; }
	.hp-ccard { border: 0; border-radius: 12px; box-shadow: var(--hp-card-shadow); }
	.hp-ccard__thumb { margin: 0; border-radius: 0; aspect-ratio: 16 / 10; }
	.hp-ccard__body { padding: 14px 12px 16px; }
	.hp-ccard__title { margin: 0 0 12px; font-size: 18px; font-weight: 500; color: var(--hp-title); }
	.hp-ccard__meta { margin: -4px 0 12px; }
	.hp-ccard--has .hp-ccard__foot { display: none; }
	.hp-ccard__foot { padding: 10px 12px; }
	.hp-pbar { position: relative; height: 16px; border-radius: 8px; background: #d9e8f6; }
	.hp-pbar > span { border-radius: 8px; }
	.hp-pbar__txt { display: block; position: absolute; inset: 0; font-style: normal; font-size: 11px; font-weight: 500; line-height: 16px; text-align: center; color: var(--hp-title); }
	.hp-badge { margin-bottom: 8px; padding: 3px 10px; border-radius: 6px; }
	.hp-badge--green { background: #e3f5e1; color: #3aa53a; }

	/* My Courses */
	.hp-mycourses.hp-panel { padding: 0; border: 0; background: transparent; box-shadow: none; }
	.hp-mycourses .hp-panel__head { display: none; }
	body.hp-search-open .hp-mycourses .hp-panel__head { display: flex; margin-bottom: 14px; }
	.hp-mycourses .hp-panel__head h1 { display: none; }
	.hp-mycourses [data-hp-course-grid] { display: none; }
	.hp-mtabs { display: flex; margin: -6px -16px 16px; border-bottom: 1px solid var(--hp-border); }
	.hp-mtabs__tab { flex: 1; padding: 14px 8px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--hp-muted-2); font: inherit; font-size: 17px; font-weight: 500; cursor: pointer; }
	.hp-mtabs__tab.is-active { border-color: var(--hp-title); color: var(--hp-title); }
	.hp-mpanel { display: block; }
	.hp-mlist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
	.hp-mrow a { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; background: var(--hp-surface); color: var(--hp-title) !important; text-decoration: none; box-shadow: var(--hp-card-shadow); }
	.hp-mrow__thumb { flex: none; width: 40%; aspect-ratio: 7 / 6; border-radius: 8px; overflow: hidden; background: #101828; }
	.hp-mrow__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
	.hp-mrow__thumb .hp-ccard__placeholder { font-size: 13px; padding: 8px; }
	.hp-mrow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
	.hp-mrow__body strong { font-size: 16px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
	.hp-mrow__meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--hp-muted-2); }
	.hp-mrow .hp-badge { margin: 4px 0 0; }
	.hp-mrow .hp-watchnow { gap: 8px; margin-top: 2px; font-size: 15px; line-height: 22px; }
	/* Play dot sits flush with the text above it (no outer halo pushing it out of line). */
	.hp-mrow .hp-watchnow .hp-ico { width: 22px; height: 22px; padding: 5px 4px 5px 6px; box-shadow: none; background: radial-gradient(circle, var(--hp-primary) 55%, #8fbde8 56%); }
	.hp-mrow__ring { flex: none; align-self: center; }
	.hp-mrow__ring .hp-ring__txt { font-size: 12px; font-weight: 500; }
	.hp-fab { position: fixed; right: 16px; bottom: calc(86px + var(--hp-safe-b)); z-index: 125; display: grid; place-items: center; width: 60px; height: 60px; border: 0; border-radius: 50%; background: var(--hp-primary); color: #fff; box-shadow: 0 10px 24px rgba(49, 130, 206, .4); cursor: pointer; }

	/* Account */
	.hp-page-account .hp-dhead, .hp-page-courses .hp-dhead { display: none; }
	.hp-page-courses .hp-mtabs { margin-top: 0; }
	.hp-account { gap: 14px; }
	.hp-account__title { display: block; margin: 0 -16px; padding: 18px 16px 14px; font-size: 20px; font-weight: 600; color: var(--hp-title); border-bottom: 1px solid var(--hp-border); }
	.hp-acc-hero { display: block; margin: -14px -16px 0; text-align: center; }
	.hp-acc-hero__cover { height: 140px; background: radial-gradient(120% 140% at 10% 0%, #4b9be3 0%, #3182ce 45%, #1b4f86 100%); background-size: cover; background-position: center; }
	.hp-acc-hero__avatar { display: block; width: 112px; height: 112px; margin: -56px auto 0; border-radius: 50%; border: 4px solid var(--hp-app-bg); object-fit: cover; background: var(--hp-surface); }
	.hp-acc-hero h2 { margin: 12px 16px 6px; font-size: 21px; font-weight: 600; color: var(--hp-title); }
	.hp-acc-card, .hp-acc-list { border: 0; background: var(--hp-soft); box-shadow: none; }
	.hp-sheet { margin: auto 0 0; width: 100vw; border-radius: 18px 18px 0 0; }
	.hp-sheet__card { border-radius: 18px 18px 0 0; padding-bottom: calc(16px + var(--hp-safe-b)); }

	/* Community: group chat full height minus the tab bar; an open chat hides the tab bar */
	.hp-msgr { height: calc(100vh - 57px - 70px); height: calc(100dvh - 57px - 70px - var(--hp-safe-b)); }
	body:has(.hp-msgr.has-chat) .hp-tabbar { display: none; }
	body:has(.hp-msgr.has-chat) { padding-bottom: 0; }
	body:has(.hp-msgr.has-chat) .hp-msgr { height: calc(100vh - 57px); height: calc(100dvh - 57px); }
}

/* ---------- Course player on phones (v0.25.0): app-style, outline under the video ---------- */
.hp-i-back, .hp-only-m, .hp-mprog, .hp-mprog__lesson { display: none; }
@media (max-width: 767px) {
	:root { --hp-bar-h: 68px; --hp-top-h: 56px; }
	.hp-page-watch .hp-topbar { background: var(--hp-surface); color: var(--hp-title); box-shadow: 0 1px 0 var(--hp-border); padding: 8px 10px; gap: 8px; }
	.hp-page-watch .hp-topbar__close { color: var(--hp-title); }
	.hp-page-watch .hp-topbar__close:hover { background: var(--hp-gray-50); }
	.hp-i-close { display: none; }
	.hp-i-back { display: inline-block; }
	.hp-page-watch .hp-topbar__divider { display: none; }
	.hp-page-watch .hp-topbar__title { color: var(--hp-title); font-size: 18px; font-weight: 500; }
	.hp-page-watch .hp-topbar__about { border-color: var(--hp-border); color: var(--hp-title); }
	.hp-page-watch .hp-ring--top .hp-ring__track { stroke: #d6e4f2; }
	.hp-page-watch .hp-ring--top .hp-ring__bar { stroke: var(--hp-primary); }
	.hp-page-watch .hp-ring--top .hp-ring__txt { color: var(--hp-title); }
	.hp-page-watch .hp-sidebar, .hp-page-watch .hp-pill, .hp-page-watch .hp-drawer-backdrop { display: none !important; }
	.hp-page-watch .hp-titlebar { display: none; }
	.hp-page-watch .hp-main { padding-bottom: calc(var(--hp-bar-h) + 20px + var(--hp-safe-b)); }
	body.hp-auto-complete .hp-main { padding-bottom: calc(24px + var(--hp-safe-b)); }
	body.hp-auto-complete .hp-actionbar, body.hp-auto-complete .hp-hidebar { display: none !important; }
	.hp-actionbar__course, .hp-hidebar { display: none !important; }
	body.hp-bar-hidden .hp-actionbar { height: calc(var(--hp-bar-h) + var(--hp-safe-b)); border-top: 1px solid var(--hp-border); background: var(--hp-bar-bg); }
	body.hp-bar-hidden .hp-actionbar__inner { display: flex; }
	.hp-actionbar__inner { padding: 10px 16px; }
	.hp-actionbar__buttons { max-width: none; }
	.hp-actionbar .hp-btn--bar { height: 46px; min-height: 46px; border-radius: 10px; font-size: 16px; }
	.hp-toast { bottom: calc(var(--hp-bar-h) + 16px + var(--hp-safe-b)); }
	body.hp-auto-complete .hp-toast { bottom: calc(24px + var(--hp-safe-b)); }

	.hp-mprog { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 16px 4px; }
	.hp-mprog .hp-pbar { flex: 1; min-width: 55%; }
	.hp-mprog__state { font-size: 16px; font-weight: 500; color: var(--hp-primary); }
	.hp-mprog__state.is-done { color: #2e9a5b; }
	.hp-mprog__next { flex-basis: 100%; min-height: 46px; border-radius: 10px; }
	.hp-mprog__lesson { display: block; margin: 8px 16px 0; font-size: 15px; font-weight: 600; color: var(--hp-title); }

	.hp-page-watch .hp-under { padding: 6px 0 0; }
	.hp-page-watch .hp-tabs--under { gap: 0; }
	.hp-page-watch .hp-tabs--under .hp-tab { flex: 1; padding: 14px 8px; font-size: 16px; text-align: center; color: var(--hp-muted-2); }
	.hp-page-watch .hp-tabs--under .hp-tab.is-active { color: var(--hp-title); }
	.hp-page-watch .hp-tabs--under .hp-tab.is-active::after { height: 3px; background: var(--hp-title); }
	.hp-tab.hp-only-m { display: inline-block; }
	.hp-page-watch .hp-under__panel { padding: 14px 16px; }
	.hp-page-watch .hp-under__panel--lessons { padding: 0; }
	.hp-under .hp-modules { gap: 0; }
	.hp-under .hp-module { border-bottom: 1px solid var(--hp-border); }
	.hp-under .hp-module__head, .hp-under .hp-module.is-open .hp-module__head { padding: 18px 16px; background: var(--hp-surface); }
	.hp-under .hp-module.is-open .hp-module__title, .hp-under .hp-module.is-open .hp-module__chev { color: var(--hp-title); }
	.hp-under .hp-module.is-open .hp-module__count { color: var(--hp-muted); }
	.hp-under .hp-module__head .hp-ring { display: none; }
	.hp-under .hp-module__title { font-size: 17px; font-weight: 500; letter-spacing: 0; }
	.hp-under .hp-lesson__status { padding: 16px 8px 16px 18px; }
	.hp-under .hp-lesson:not(.is-last) .hp-lesson__status::after { left: 29px; }
	.hp-under .hp-lesson__type { text-transform: uppercase; font-size: 13px; letter-spacing: .02em; }
	.hp-page-watch .hp-desc { border: 0; padding: 0; }
}
@media (max-width: 360px) {
	.hp-page-dashboard .hp-dhead__me { font-size: 15px; gap: 10px; }
	.hp-dhead__me img { width: 44px; height: 44px; }
	.hp-dhead .hp-hicon { width: 40px; height: 40px; }
	.hp-dhead__right { gap: 8px; }
}

/* Bundle page: its courses as rows with progress rings (all screens), app header on phones (v0.25) */
.hp-mback { display: none; }
/* community.css also has a .hp-mrow (member rows): keep its flex, padding and line off the course lists. */
.hp-mlist .hp-mrow { display: block; padding: 0; border: 0; }
/* Bundle page for owners: phones show the course rows, computers a grid of course cards. */
.hp-bundle-grid { display: none; }
@media (min-width: 768px) {
	.hp-product--bundle .hp-shop__grid { display: block; }
	.hp-product--bundle .hp-product__img, .hp-product--bundle .hp-shop__type, .hp-product--bundle .hp-shop__box, .hp-product--bundle .hp-mlist--bundle { display: none; }
	.hp-product--bundle .hp-bundle-grid { display: grid; margin-bottom: 20px; }
	.hp-product--bundle .hp-product__h { margin: 0 0 16px; }
}
.hp-mlist--bundle { display: grid; gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
.hp-mlist--bundle .hp-mrow a { display: flex; align-items: center; gap: 16px; padding: 10px; border: 1px solid var(--hp-border); border-radius: 12px; background: var(--hp-surface, #fff); color: var(--hp-title) !important; text-decoration: none; transition: box-shadow .15s; }
.hp-mlist--bundle .hp-mrow a:hover { box-shadow: var(--hp-card-shadow); }
.hp-mlist--bundle .hp-mrow__thumb { flex: none; width: 200px; max-width: 42%; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #101828; }
.hp-mlist--bundle .hp-mrow__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hp-mlist--bundle .hp-mrow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hp-mlist--bundle .hp-mrow__body strong { font-size: 17px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.hp-mlist--bundle .hp-mrow__meta { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--hp-muted-2); }
.hp-mlist--bundle .hp-badge { margin: 0; }
.hp-mlist--bundle .hp-mrow__ring { flex: none; }
@media (max-width: 767px) {
	body:has(.hp-product--bundle) .hp-dhead { display: none; }
	.hp-mback { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 10px; margin: 0 -16px 12px; height: 64px; padding: 0 12px; background: var(--hp-app-bg, #f7f8fc); border-bottom: 1px solid var(--hp-border); }
	.hp-mback__btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--hp-gray-50); color: var(--hp-title) !important; }
	.hp-mback h1 { flex: 1; min-width: 0; margin: 0 44px 0 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; font-size: 18px; font-weight: 500; color: var(--hp-title); }
	.hp-product--bundle.hp-panel { padding: 0; border: 0; background: transparent; box-shadow: none; }
	.hp-product--bundle .hp-panel__head, .hp-product--bundle .hp-product__img, .hp-product--bundle .hp-shop__type, .hp-product--bundle .hp-shop__box, .hp-product--bundle .hp-product__h { display: none; }
	.hp-product--bundle .hp-shop__grid { display: block; }
	.hp-mlist--bundle .hp-mrow a { align-items: center; border: 0; box-shadow: var(--hp-card-shadow); }
	.hp-mlist--bundle .hp-mrow__thumb { width: 40%; max-width: none; aspect-ratio: 7 / 6; }
	.hp-mlist--bundle .hp-mrow__body strong { font-size: 16px; }
	.hp-mlist--bundle .hp-mrow__ring { align-self: center; margin-top: 0; }
}

/* Phones: no automatic zoom (v0.38.4). A browser zooms in when a text field under 16px gets focus and does not
   zoom back; double-tap zoom is turned off too. Pinch-zoom stays available. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { touch-action: manipulation; }
@media (max-width: 767px) {
	input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
	select, textarea, [contenteditable="true"] { font-size: 16px !important; }
}

/* Course rows on phones: a snapped card keeps the page's 16px side space instead of touching the edge (v0.38.4). */
@media (max-width: 767px) {
	.hp-carousel__track, .hp-page-dashboard .hp-grid { scroll-padding-inline: 16px; }
}

/* Lesson notes (Ubaidoo fork 0.39.10.6). No left/right properties, so the same rules serve the RTL file. */
#hp-panel-notes { padding: 12px; }
.hp-notes__scope { display: flex; gap: 4px; padding: 3px; background: var(--hp-gray-50); border-radius: 8px; margin-bottom: 12px; }
.hp-notes__scope button { flex: 1; border: 0; background: none; border-radius: 6px; padding: 7px 8px; font: inherit; font-size: 13px; font-weight: 500; color: var(--hp-muted-2); cursor: pointer; }
.hp-notes__scope button.is-active { background: #fff; color: var(--hp-text); box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
.hp-notes__form textarea, .hp-note__edit { display: block; width: 100%; min-height: 84px; resize: vertical; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 8px; font: inherit; font-size: 14px; line-height: 1.5; color: var(--hp-text); background: #fff; }
.hp-notes__form textarea:focus, .hp-note__edit:focus { outline: 0; border-color: var(--hp-primary); box-shadow: 0 0 0 3px var(--hp-primary-50); }
.hp-notes__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.hp-notes__bar .hp-btn { margin-inline-start: auto; min-height: 36px; padding: 0 18px; }
.hp-notes__at { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--hp-muted-2); cursor: pointer; }
.hp-notes__at b { font-weight: 600; color: var(--hp-primary); font-variant-numeric: tabular-nums; }
.hp-notes__private { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 12px; color: var(--hp-muted); }
.hp-notes__list { margin-top: 14px; }
.hp-notes__empty { color: var(--hp-muted-2); font-size: 14px; margin: 16px 4px; }
.hp-notes__group { margin-bottom: 16px; }
.hp-notes__lesson { margin: 0 0 8px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--hp-title); }
.hp-notes__lesson a { color: var(--hp-primary); text-decoration: none; }
.hp-notes__lesson a:hover { text-decoration: underline; }
.hp-notes__module { display: block; font-size: 12px; font-weight: 500; color: var(--hp-muted-2); }
.hp-note { padding: 10px 12px; border: 1px solid var(--hp-border); border-radius: 8px; background: #fff; margin-bottom: 8px; }
.hp-note__head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.hp-note__time { flex: none; border: 0; background: #e8f1fb; color: var(--hp-primary); font-weight: 600; font-size: 12px; border-radius: 4px; padding: 2px 6px; font-variant-numeric: tabular-nums; }
button.hp-note__time { cursor: pointer; }
.hp-note__date { font-size: 12px; color: var(--hp-muted); }
.hp-note__text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--hp-text); white-space: pre-wrap; overflow-wrap: anywhere; }
.hp-note__actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.hp-note__btn { border: 0; background: none; padding: 2px 0; font: inherit; font-size: 13px; font-weight: 500; color: var(--hp-muted-2); cursor: pointer; }
.hp-note__btn:hover { color: var(--hp-primary); }
.hp-note__btn--danger:hover { color: #d92d20; }
.hp-note .hp-btn--sm { min-height: 32px; padding: 0 14px; font-size: 13px; }
.hp-notes__download { display: inline-flex; align-items: center; gap: 8px; width: 100%; justify-content: center; margin-top: 4px; }

/* Grade and marksheet (Ubaidoo fork 0.39.10.7). Logical properties only, so the same rules serve the RTL file. */
.hp-gradebtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 4px 0 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; background: transparent; color: rgba(255, 255, 255, .88); font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
.hp-gradebtn strong { color: #fff; font-weight: 600; }
.hp-gradebtn__more { margin-inline-start: 6px; padding: 5px 10px; border-radius: 6px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 500; }
.hp-gradebtn:hover .hp-gradebtn__more, .hp-gradebtn:focus-visible .hp-gradebtn__more { background: rgba(255, 255, 255, .22); }
.hp-gradebtn:focus-visible { outline: 2px solid var(--hp-primary); outline-offset: 2px; }
.hp-ccard__grade { margin: 8px 0 0; font-size: 13px; color: var(--hp-muted-2); }
.hp-ccard__grade strong { color: var(--hp-title); font-weight: 600; }
.hp-assign__marks { margin: 0 0 12px; }
.hp-msheet { grid-template-columns: minmax(0, 1fr); }
.hp-msheet__card { width: 100%; max-width: 760px; justify-self: center; text-align: start; padding: 28px 28px 24px; }
.hp-msheet bdi { unicode-bidi: isolate; }
.hp-msheet__title { margin: 0; font-size: 22px; font-weight: 600; color: var(--hp-title); }
.hp-msheet__sub { margin: 4px 0 18px; color: var(--hp-muted-2); font-size: 14px; padding-inline-end: 40px; }
.hp-msheet__sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.hp-msheet__sum > div { padding: 12px; border: 1px solid var(--hp-border); border-radius: 10px; background: var(--hp-primary-25); }
.hp-msheet__sum span { display: block; font-size: 12px; color: var(--hp-muted-2); }
.hp-msheet__sum strong { display: block; margin-top: 2px; font-size: 20px; font-weight: 600; color: var(--hp-title); font-variant-numeric: tabular-nums; }
.hp-msheet__wrap { overflow-x: auto; border: 1px solid var(--hp-border); border-radius: 10px; }
.hp-msheet__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hp-msheet__table th, .hp-msheet__table td { padding: 10px 12px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--hp-border); }
.hp-msheet__table thead th { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--hp-muted-2); background: var(--hp-gray-50); }
.hp-msheet__table tbody tr:last-child td { border-bottom: 0; }
.hp-msheet__module th { font-size: 13px; font-weight: 600; color: var(--hp-title); background: var(--hp-primary-25); }
.hp-msheet__item { display: block; font-weight: 500; color: var(--hp-text); }
.hp-msheet__table small { display: block; margin-top: 2px; font-size: 12px; color: var(--hp-muted); }
.hp-msheet__table .hp-msheet__num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hp-msheet__st { display: inline-block; padding: 2px 8px; border-radius: 9999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--hp-gray-50); color: var(--hp-muted-2); }
.hp-msheet__st.is-passed { background: #ecfdf3; color: #067647; }
.hp-msheet__st.is-not_passed { background: #fef3f2; color: #b42318; }
.hp-msheet__st.is-waiting { background: #fffaeb; color: #b54708; }
.hp-msheet__st.is-needs_changes { background: #fff4ed; color: #c4320a; }
.hp-msheet__fb { margin-top: 6px; font-size: 13px; }
.hp-msheet__fb summary { color: var(--hp-primary); cursor: pointer; }
.hp-msheet__fb p { margin: 4px 0 0; color: var(--hp-text-2); white-space: normal; }
.hp-msheet__note { margin: 12px 0 0; font-size: 13px; color: var(--hp-muted-2); }
.hp-msheet__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.hp-msheet__actions .hp-btn { display: inline-flex; align-items: center; gap: 8px; }
body.hp-msheet-open { overflow: hidden; }
@media (max-width: 767px) {
	.hp-page-watch .hp-gradebtn { height: 32px; padding: 0 10px; border-color: var(--hp-border); color: var(--hp-muted-2); font-size: 13px; }
	.hp-page-watch .hp-gradebtn strong { color: var(--hp-title); }
	.hp-gradebtn__label, .hp-gradebtn__more { display: none; }
	.hp-msheet__card { padding: 24px 16px 18px; }
	.hp-msheet__sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hp-msheet__table th, .hp-msheet__table td { padding: 8px; }
	.hp-msheet__actions { flex-direction: column-reverse; }
	.hp-msheet__actions .hp-btn { justify-content: center; }
}
@media print {
	body.hp-print-msheet * { visibility: hidden !important; }
	body.hp-print-msheet .hp-msheet, body.hp-print-msheet .hp-msheet * { visibility: visible !important; }
	body.hp-print-msheet .hp-msheet { position: absolute; inset: 0 auto auto 0; display: block; padding: 0; overflow: visible; }
	body.hp-print-msheet .hp-modal__backdrop, body.hp-print-msheet .hp-modal__x, body.hp-print-msheet .hp-msheet__actions { display: none !important; }
	body.hp-print-msheet .hp-msheet__card { width: 100%; box-shadow: none; animation: none; padding: 0; }
	body.hp-print-msheet .hp-msheet__wrap { overflow: visible; }
	body.hp-print-msheet .hp-msheet__table tr { break-inside: avoid; }
}

/* Delete account card and logo watermark (Ubaidoo fork 0.39.10.9). Logical properties only, so this also serves RTL. */
.hp-btn--danger { background: #d92d20; border-color: #d92d20; color: #fff !important; }
.hp-btn--danger:hover { background: #b42318; border-color: #b42318; }
.hp-btn--danger-outline { background: transparent; border-color: #fda29b; color: #b42318 !important; }
.hp-btn--danger-outline:hover { background: #fef3f2; border-color: #d92d20; }
.hp-del .hp-pcard__title { color: #b42318; }
.hp-del__what { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 14px; }
.hp-del__what > div { padding: 12px 14px; border: 1px solid var(--hp-border); border-radius: 10px; font-size: 14px; }
.hp-del__what > div:first-child { border-color: #fecdca; background: #fffbfa; }
.hp-del__what strong { display: block; margin-bottom: 4px; color: var(--hp-title); }
.hp-del__what ul { margin: 0; padding-inline-start: 18px; color: var(--hp-text-2); line-height: 1.6; }
.hp-del__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 8px; }
.hp-del__fields { display: grid; grid-template-columns: auto minmax(0, 220px); align-items: center; gap: 8px 12px; }
.hp-del__fields .hp-label { margin: 0; }
@media (max-width: 600px) {
	.hp-del__what { grid-template-columns: 1fr; }
	.hp-del__fields { grid-template-columns: 1fr; width: 100%; }
	.hp-del__form .hp-btn { width: 100%; }
}
.hp-wmlogo { position: absolute; z-index: 6; height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.hp-wmlogo.is-sm { width: 56px; }
.hp-wmlogo.is-md { width: 84px; }
.hp-wmlogo.is-lg { width: 120px; }
.hp-wmlogo.is-tl { top: 12px; inset-inline-start: 12px; }
.hp-wmlogo.is-tr { top: 12px; inset-inline-end: 12px; }
.hp-wmlogo.is-bl { bottom: 56px; inset-inline-start: 12px; }
.hp-wmlogo.is-br { bottom: 56px; inset-inline-end: 12px; }
@media (max-width: 767px) {
	.hp-wmlogo.is-sm { width: 40px; }
	.hp-wmlogo.is-md { width: 60px; }
	.hp-wmlogo.is-lg { width: 84px; }
	.hp-wmlogo.is-bl, .hp-wmlogo.is-br { bottom: 46px; }
}

/* Site search (Ubaidoo fork 0.39.10.10). Logical properties only, so this also serves RTL. */
.hp-hsearch { display: flex; align-items: center; gap: 8px; width: 280px; height: 40px; padding: 0 14px; border: 1px solid var(--hp-border); border-radius: 999px; background: var(--hp-gray-50); color: var(--hp-muted-2); }
.hp-hsearch:focus-within { border-color: var(--hp-primary); background: #fff; box-shadow: 0 0 0 3px var(--hp-primary-50); }
.hp-hsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--hp-text); }
.hp-dhead .hp-hsearch-m { display: none; }
@media (max-width: 991px) {
	.hp-dhead .hp-hsearch { display: none; }
	.hp-dhead .hp-hsearch-m { display: inline-grid; }
}
.hp-search__title { margin: 0 0 14px; font-size: 24px; font-weight: 600; color: var(--hp-title); }
.hp-search__form { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; padding-inline: 16px 6px; border: 1px solid #d0d5dd; border-radius: 12px; background: #fff; color: var(--hp-muted-2); }
.hp-search__form:focus-within { border-color: var(--hp-primary); box-shadow: 0 0 0 3px var(--hp-primary-50); }
.hp-search__form input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--hp-text); }
.hp-search__form .hp-btn { min-height: 40px; }
.hp-search__scope { margin: 8px 2px 0; font-size: 13px; color: var(--hp-muted); }
.hp-search__empty { margin: 24px 2px; color: var(--hp-muted-2); }
.hp-search__count { margin: 20px 2px 4px; font-weight: 600; color: var(--hp-title); }
.hp-sgroup { margin-top: 18px; }
.hp-sgroup__title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--hp-title); }
.hp-sgroup__title em { font-style: normal; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--hp-primary-50); color: var(--hp-primary); }
.hp-sgroup__list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--hp-border); border-radius: 12px; overflow: hidden; background: #fff; }
.hp-sitem { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; border-bottom: 1px solid var(--hp-border); }
.hp-sitem:last-child { border-bottom: 0; }
.hp-sitem__where { font-size: 12px; color: var(--hp-muted); }
.hp-sitem__title { font-size: 15px; font-weight: 600; color: var(--hp-title); text-decoration: none; }
a.hp-sitem__title:hover, .hp-sitem__link:hover { color: var(--hp-primary); text-decoration: underline; }
.hp-sitem__title.is-locked { display: inline-flex; align-items: center; gap: 6px; color: var(--hp-muted-2); }
.hp-sitem__text { font-size: 14px; line-height: 1.5; color: var(--hp-text-2); overflow-wrap: anywhere; }
.hp-sitem__link { text-decoration: none; }
.hp-sitem__row { display: flex; align-items: flex-start; gap: 10px; }
.hp-sitem__time { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; background: #e8f1fb; color: var(--hp-primary); font-size: 12px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.hp-sitem__time:hover { background: var(--hp-primary); color: #fff; }
.hp-search mark, .hp-sitem mark { background: #fff1b8; color: inherit; padding: 0 1px; border-radius: 2px; }
@media (max-width: 600px) {
	.hp-search__form { flex-wrap: wrap; padding: 8px 12px; }
	.hp-search__form .hp-btn { width: 100%; }
}

/* 0.39.10.22: screen-capture shield and tiled watermark */
.hp-wmtile { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; user-select: none; opacity: var(--hp-wmtile-opacity, .15); }
.hp-wmtile__in { position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around; gap: 48px 72px; transform: rotate(-24deg); font-size: 14px; font-weight: 600; white-space: nowrap; }
.hp-shield { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 24px; border: 0; background: #000; color: #fff; font: inherit; font-size: 16px; font-weight: 600; text-align: center; cursor: pointer; }
.hp-shield[hidden] { display: none; }
.hp-player.is-shielded video, .hp-player.is-shielded iframe { filter: blur(40px); visibility: hidden; }
@media (max-width: 767px) { .hp-wmtile__in { font-size: 11px; gap: 36px 48px; } }

.hp-wmflash { position: absolute; left: 0; right: 0; z-index: 6; padding: 0 16px; text-align: center; font-size: clamp(16px, 3.2vw, 34px); font-weight: 800; line-height: 1.2; pointer-events: none; user-select: none; opacity: 0; transform: translateY(-50%); transition: opacity .3s ease; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.hp-wmflash.is-on { opacity: .85; }
.hp-shield:disabled { cursor: default; }
