/* Jrise LMS – catalog, course page, student platform. Colours come from Kursy → Ustawienia (--jlms-accent, --jlms-ink). */

.jlms {
    --jlms-text: var(--jlms-ink, #15171c);
    --jlms-muted: #5d6370;
    --jlms-line: #e3e5ea;
    --jlms-soft: #f5f6f8;
    --jlms-ok: #0e6e4f;
    --jlms-warn: #a15c00;
    --jlms-error: #b42318;
    --jlms-r: var(--jlms-radius, 12px);
    --jlms-r-sm: calc(var(--jlms-r) * .6);
    color: var(--jlms-text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
.jlms *, .jlms *::before, .jlms *::after { box-sizing: border-box; }
.jlms img { max-width: 100%; height: auto; }
.jlms a { color: inherit; }
.jlms h1, .jlms h2, .jlms h3 { color: inherit; letter-spacing: -0.01em; }
.jlms .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.jlms-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.jlms-main { display: block; }
.jlms-icon { flex: none; }

/* Buttons */
.jlms .jlms-btn,
.jlms-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 10px 22px; border: 1px solid var(--jlms-accent, #cc4a00); border-radius: var(--jlms-r-sm, 8px);
    background: var(--jlms-accent, #cc4a00); color: var(--jlms-accent-text, #fff);
    font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: filter .15s, background-color .15s, color .15s, border-color .15s;
}
.jlms .jlms-btn:hover { filter: brightness(1.06); color: var(--jlms-accent-text, #fff); text-decoration: none; }
.jlms .jlms-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--jlms-accent, #cc4a00) 45%, transparent); outline-offset: 2px; }
.jlms .jlms-btn--ghost { background: transparent; color: var(--jlms-text); border-color: var(--jlms-line); }
.jlms .jlms-btn--ghost:hover { background: var(--jlms-soft); color: var(--jlms-text); filter: none; }
.jlms .jlms-btn--sm { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.jlms .jlms-btn--block { display: flex; width: 100%; }
.jlms-link { background: none; border: 0; padding: 0; color: var(--jlms-muted); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; gap: 6px; align-items: center; }
.jlms-link:hover { color: var(--jlms-text); }

/* Progress */
.jlms-progress { position: relative; height: 8px; border-radius: 999px; background: var(--jlms-line); overflow: hidden; }
.jlms-progress span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--jlms-accent, #cc4a00); transition: width .4s ease; }
.jlms-progress--sm { height: 6px; }

.jlms-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--jlms-accent, #cc4a00) 12%, #fff); color: color-mix(in srgb, var(--jlms-accent, #cc4a00) 70%, #000); font-size: 12px; font-weight: 600; }
.jlms-notice { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--jlms-r-sm); background: var(--jlms-soft); border: 1px solid var(--jlms-line); font-size: 14px; }
.jlms-notice--error { background: #fef3f2; border-color: #fecdca; color: var(--jlms-error); }
.jlms-muted { color: var(--jlms-muted); }
.jlms-empty { color: var(--jlms-muted); padding: 32px 0; }
.jlms-empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 48px 20px; border: 1px dashed var(--jlms-line); border-radius: var(--jlms-r); color: var(--jlms-muted); }
.jlms-empty-state p { margin: 0; }
.jlms-status { display: inline-flex; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--jlms-soft); color: var(--jlms-muted); }
.jlms-status--active, .jlms-status--approved { background: #e8f6ef; color: var(--jlms-ok); }
.jlms-status--on-hold, .jlms-status--pending { background: #fff4e5; color: var(--jlms-warn); }
.jlms-status--rejected { background: #fef3f2; color: var(--jlms-error); }

/* ---------- Catalog ---------- */
.jlms-catalog { padding: 40px 0 64px; }
.jlms-catalog__head { margin-bottom: 28px; }
.jlms-catalog__title { margin: 0 0 8px; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.jlms-catalog__desc { color: var(--jlms-muted); max-width: 720px; }
.jlms-catalog__tools { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-top: 20px; }
.jlms-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jlms .jlms-chip { display: inline-flex; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--jlms-line); text-decoration: none; font-size: 14px; color: var(--jlms-text); background: #fff; }
.jlms .jlms-chip:hover { border-color: var(--jlms-text); }
.jlms .jlms-chip.is-active { background: var(--jlms-ink, #15171c); border-color: var(--jlms-ink, #15171c); color: #fff; }
.jlms-search { position: relative; display: flex; align-items: center; min-width: min(320px, 100%); }
.jlms-search .jlms-icon { position: absolute; left: 14px; color: var(--jlms-muted); pointer-events: none; }
.jlms-search input { width: 100%; height: 44px; padding: 0 14px 0 42px; border: 1px solid var(--jlms-line); border-radius: 999px; background: #fff; font: inherit; font-size: 15px; color: var(--jlms-text); }
.jlms-search input:focus { outline: none; border-color: var(--jlms-text); }

.jlms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.jlms-card { display: flex; flex-direction: column; border: 1px solid var(--jlms-line); border-radius: var(--jlms-r); background: #fff; overflow: hidden; transition: box-shadow .2s, transform .2s; position: relative; }
.jlms-card:hover { box-shadow: 0 14px 34px -18px rgba(16, 24, 40, .35); transform: translateY(-2px); }
.jlms-card__media { display: block; aspect-ratio: 16 / 9; background: var(--jlms-soft); overflow: hidden; }
.jlms-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jlms-card__placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--jlms-muted); background: linear-gradient(135deg, var(--jlms-soft), var(--jlms-line)); }
.jlms-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.jlms-card__cat { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--jlms-muted); }
.jlms-card__title { margin: 0; font-size: 19px; line-height: 1.3; }
.jlms .jlms-card__title a { text-decoration: none; }
.jlms-card__title a::after { content: ""; position: absolute; inset: 0; }
.jlms-card__title a:focus-visible { outline: none; }
.jlms-card:focus-within { outline: 3px solid color-mix(in srgb, var(--jlms-accent, #cc4a00) 45%, transparent); outline-offset: 2px; }
.jlms-card__subtitle { margin: 0; color: var(--jlms-muted); font-size: 14px; }
.jlms-card__meta { margin: 4px 0 0; font-size: 13px; color: var(--jlms-muted); }
.jlms-card__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; }
.jlms-card__foot .jlms-progress { flex: 1; }
.jlms-card__percent { font-size: 13px; font-weight: 600; }
.jlms-card__price { font-size: 17px; font-weight: 700; }
.jlms-card__price del { color: var(--jlms-muted); font-weight: 400; font-size: 14px; }
.jlms-price-period { font-size: .8em; font-weight: 400; color: var(--jlms-muted); }

.jlms-pagination { margin-top: 36px; }
.jlms-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.jlms .jlms-pagination a, .jlms-pagination span { display: inline-flex; min-width: 40px; height: 40px; padding: 0 12px; align-items: center; justify-content: center; border: 1px solid var(--jlms-line); border-radius: var(--jlms-r-sm); text-decoration: none; }
.jlms-pagination .current { background: var(--jlms-ink, #15171c); color: #fff; border-color: var(--jlms-ink, #15171c); }

/* ---------- Course page ---------- */
.jlms-course { padding-bottom: 72px; }
.jlms-course__hero { background: var(--jlms-ink, #15171c); color: #fff; padding: 44px 0 48px; }
.jlms-crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: rgba(255, 255, 255, .7); margin-bottom: 14px; }
.jlms .jlms-crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.jlms .jlms-crumbs a:hover { color: #fff; text-decoration: underline; }
.jlms-course__title { margin: 0; max-width: 820px; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; color: #fff; }
.jlms-course__subtitle { margin: 14px 0 0; max-width: 720px; font-size: 18px; color: rgba(255, 255, 255, .82); }
.jlms-course__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 22px 0 0; padding: 0; font-size: 15px; color: rgba(255, 255, 255, .9); }
.jlms-course__facts li { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.jlms-course__facts .jlms-icon { color: var(--jlms-accent, #cc4a00); }
.jlms-course__by { display: flex; gap: 10px; align-items: center; margin: 22px 0 0; font-size: 15px; }
.jlms-avatar { border-radius: 50%; display: block; }

.jlms-course__layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; margin-top: 36px; }
.jlms-course__aside { grid-column: 2; grid-row: 1; position: sticky; top: 24px; }
.jlms-course__main { grid-column: 1; grid-row: 1; min-width: 0; }
.admin-bar .jlms-course__aside { top: 56px; }

.jlms-buy { border: 1px solid var(--jlms-line); border-radius: var(--jlms-r); background: #fff; overflow: hidden; box-shadow: 0 18px 40px -28px rgba(16, 24, 40, .45); }
.jlms-buy__media { aspect-ratio: 16 / 9; background: var(--jlms-soft); }
.jlms-buy__media .jlms-video { border-radius: 0; }
.jlms-buy__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jlms-buy__placeholder { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--jlms-muted); }
.jlms-buy__body { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.jlms-buy__price { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.1; }
.jlms-buy__price del { font-size: 18px; color: var(--jlms-muted); font-weight: 400; }
.jlms-buy__price ins { text-decoration: none; }
.jlms-buy__note { margin: 0; font-size: 14px; color: var(--jlms-muted); }
.jlms-buy__note--warn { color: var(--jlms-warn); }
.jlms-buy__login { margin: 0; font-size: 14px; color: var(--jlms-muted); text-align: center; }
.jlms-buy form { margin: 0; }

.jlms-options { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.jlms-option { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--jlms-line); border-radius: var(--jlms-r-sm); cursor: pointer; transition: border-color .15s, background-color .15s; }
.jlms-option:hover { border-color: var(--jlms-muted); }
.jlms-option input { accent-color: var(--jlms-accent, #cc4a00); width: 18px; height: 18px; margin: 0; flex: none; }
.jlms-option:has(input:checked) { border-color: var(--jlms-accent, #cc4a00); background: color-mix(in srgb, var(--jlms-accent, #cc4a00) 6%, #fff); }
.jlms-option__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.jlms-option__name { font-weight: 600; font-size: 15px; }
.jlms-option__desc { font-size: 13px; color: var(--jlms-muted); }
.jlms-option__price { font-weight: 700; white-space: nowrap; text-align: right; }

.jlms-includes { list-style: none; margin: 6px 0 0; padding: 16px 0 0; border-top: 1px solid var(--jlms-line); display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.jlms-includes li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.jlms-includes .jlms-icon { color: var(--jlms-muted); margin-top: 1px; }

.jlms-box { border: 1px solid var(--jlms-line); border-radius: var(--jlms-r); padding: 26px 28px; margin-bottom: 40px; background: #fff; }
.jlms-section { margin-bottom: 44px; }
.jlms-section > h2, .jlms-box > h2 { margin: 0 0 18px; font-size: 24px; line-height: 1.25; }
.jlms-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.jlms-section__head h2 { margin: 0; font-size: 24px; }
.jlms-outcomes ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; list-style: none; margin: 0; padding: 0; }
.jlms-outcomes li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.jlms-outcomes .jlms-icon { color: var(--jlms-ok); margin-top: 2px; }
.jlms-content { font-size: 17px; }
.jlms-content > *:first-child { margin-top: 0; }
.jlms-list { padding-left: 20px; }
.jlms-list li { margin: 6px 0; }

.jlms-curriculum { border: 1px solid var(--jlms-line); border-radius: var(--jlms-r); overflow: hidden; }
.jlms-module + .jlms-module { border-top: 1px solid var(--jlms-line); }
.jlms-module summary { display: flex; gap: 12px; align-items: center; padding: 16px 20px; cursor: pointer; list-style: none; background: var(--jlms-soft); }
.jlms-module summary::-webkit-details-marker { display: none; }
.jlms-module summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--jlms-accent, #cc4a00) 45%, transparent); outline-offset: -3px; }
.jlms-module__title { flex: 1; font-weight: 600; font-size: 16px; }
.jlms-module__meta { font-size: 14px; color: var(--jlms-muted); white-space: nowrap; }
.jlms-module summary .jlms-icon { transition: transform .2s; color: var(--jlms-muted); }
.jlms-module[open] summary .jlms-icon { transform: rotate(180deg); }
.jlms-module__lessons { list-style: none; margin: 0; padding: 6px 0; }
.jlms-lesson-row { display: flex; gap: 12px; align-items: center; padding: 10px 20px; margin: 0; font-size: 15px; }
.jlms-lesson-row__icon { color: var(--jlms-muted); display: inline-flex; }
.jlms-lesson-row.is-done .jlms-lesson-row__icon { color: var(--jlms-ok); }
.jlms-lesson-row__title { flex: 1; min-width: 0; }
.jlms .jlms-lesson-row a.jlms-lesson-row__title { text-decoration: underline; text-decoration-color: var(--jlms-line); text-underline-offset: 4px; }
.jlms .jlms-lesson-row a.jlms-lesson-row__title:hover { text-decoration-color: currentColor; }
.jlms-lesson-row__meta { font-size: 13px; color: var(--jlms-muted); white-space: nowrap; }

.jlms-instructor__card { display: flex; gap: 20px; align-items: flex-start; }
.jlms-instructor__name { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.jlms-instructor__bio { color: var(--jlms-muted); font-size: 15px; }
.jlms-instructor__bio p { margin: 0 0 10px; }

/* Video (shared with the player) */
.jlms-video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.jlms-video iframe, .jlms-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Platform ---------- */
.jlms-platform { max-width: 1040px; margin: 0 auto; padding: 8px 0 48px; }
.jlms-platform__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.jlms-platform__hello { display: flex; gap: 14px; align-items: center; }
.jlms-platform__eyebrow { margin: 0 0 2px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--jlms-muted); }
.jlms-platform__title { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
.jlms .jlms-platform__logout { text-decoration: none; }
.jlms-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--jlms-line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.jlms .jlms-tab { position: relative; padding: 12px 16px; font-size: 16px; text-decoration: none; color: var(--jlms-muted); font-weight: 500; white-space: nowrap; }
.jlms .jlms-tab:hover { color: var(--jlms-text); }
.jlms .jlms-tab.is-active { color: var(--jlms-text); }
.jlms-tab.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--jlms-accent, #cc4a00); border-radius: 2px; }

.jlms-mycourses, .jlms-certs, .jlms-subs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.jlms-mycourse, .jlms-cert, .jlms-sub { display: flex; gap: 18px; align-items: center; padding: 14px; border: 1px solid var(--jlms-line); border-radius: var(--jlms-r); background: #fff; margin: 0; }
.jlms-mycourse__media { flex: none; width: 168px; aspect-ratio: 16 / 9; border-radius: var(--jlms-r-sm); overflow: hidden; background: var(--jlms-soft); display: block; }
.jlms-mycourse__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jlms-mycourse__body, .jlms-cert__body, .jlms-sub__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.jlms-mycourse__title, .jlms-cert__title, .jlms-sub__title { margin: 0; font-size: 18px; line-height: 1.3; }
.jlms .jlms-mycourse__title a { text-decoration: none; }
.jlms .jlms-mycourse__title a:hover { text-decoration: underline; }
.jlms-mycourse__progress { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--jlms-muted); }
.jlms-mycourse__progress .jlms-progress { flex: 1; max-width: 280px; }
.jlms-mycourse__note, .jlms-cert__meta, .jlms-sub__dates { margin: 0; font-size: 13px; color: var(--jlms-muted); }
.jlms-mycourse__actions, .jlms-cert__actions, .jlms-sub__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.jlms-mycourse.is-expired { background: var(--jlms-soft); }
.jlms-mycourse.is-expired .jlms-mycourse__media { opacity: .6; }
.jlms-mycourses.is-compact .jlms-mycourse__media { width: 120px; }
.jlms-cert__icon { flex: none; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--jlms-accent, #cc4a00) 12%, #fff); color: var(--jlms-accent, #cc4a00); }
.jlms-sub__meta { display: flex; gap: 12px; align-items: center; margin: 0; flex-wrap: wrap; }

.jlms-form { max-width: 620px; display: flex; flex-direction: column; gap: 16px; }
.jlms-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.jlms-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.jlms-field label { font-size: 14px; font-weight: 600; }
.jlms-field input, .jlms-field textarea, .jlms-input {
    width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #cfd3da; border-radius: var(--jlms-r-sm);
    background: #fff; font: inherit; font-size: 16px; color: var(--jlms-text);
}
.jlms-field input:focus, .jlms-field textarea:focus, .jlms-input:focus { outline: none; border-color: var(--jlms-accent, #cc4a00); box-shadow: 0 0 0 3px color-mix(in srgb, var(--jlms-accent, #cc4a00) 18%, transparent); }
.jlms-field input:disabled { background: var(--jlms-soft); color: var(--jlms-muted); }
.jlms-field__help { font-size: 13px; color: var(--jlms-muted); }
.jlms-form__actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

.jlms-login { display: flex; justify-content: center; padding: 24px 0 56px; }
.jlms-login__box { width: 100%; max-width: 440px; padding: 36px 32px; border: 1px solid var(--jlms-line); border-radius: var(--jlms-r); background: #fff; box-shadow: 0 24px 48px -32px rgba(16, 24, 40, .4); }
.jlms-login__title { margin: 0 0 6px; font-size: 26px; line-height: 1.2; }
.jlms-login__lead { margin: 0 0 22px; color: var(--jlms-muted); font-size: 16px; line-height: 1.5; }
.jlms-login form p { margin: 0 0 14px; }
.jlms-login label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.jlms-login input[type=text], .jlms-login input[type=password] { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #cfd3da; border-radius: var(--jlms-r-sm); font: inherit; font-size: 16px; background: #fff; color: var(--jlms-text); }
.jlms-login input[type=text]:focus, .jlms-login input[type=password]:focus { outline: none; border-color: var(--jlms-accent, #cc4a00); box-shadow: 0 0 0 3px color-mix(in srgb, var(--jlms-accent, #cc4a00) 18%, transparent); }
.jlms-login .login-remember label { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; }
.jlms-login .button-primary, .jlms-login input[type=submit] { width: 100%; min-height: 48px; border: 0; border-radius: var(--jlms-r-sm); background: var(--jlms-accent, #cc4a00); color: var(--jlms-accent-text, #fff); font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; }
.jlms-login__links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 0; font-size: 14px; }

/* Certificate check */
.jlms-verify { display: flex; justify-content: center; padding: 56px 0 72px; }
.jlms-verify__card { width: 100%; max-width: 560px; padding: 36px; border: 1px solid var(--jlms-line); border-radius: var(--jlms-r); background: #fff; text-align: center; }
.jlms-verify__card > .jlms-icon { margin: 0 auto 12px; display: block; }
.jlms-verify__card.is-valid > .jlms-icon { color: var(--jlms-ok); }
.jlms-verify__card.is-invalid > .jlms-icon { color: var(--jlms-error); }
.jlms-verify__card h1 { margin: 0 0 18px; font-size: 26px; }
.jlms-verify__data { text-align: left; margin: 0 0 24px; border-top: 1px solid var(--jlms-line); }
.jlms-verify__data div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--jlms-line); }
.jlms-verify__data dt { color: var(--jlms-muted); }
.jlms-verify__data dd { margin: 0; font-weight: 600; text-align: right; }

/* WooCommerce bits */
.jlms-product-info { margin: 0 0 18px; }
.jlms-product-info__access { font-weight: 600; margin: 0 0 6px; }
.jlms-product-info__courses { margin: 0; padding-left: 18px; }
.jlms-thankyou { margin: 0 0 24px; padding: 18px 20px; border: 1px solid var(--jlms-line, #e3e5ea); border-radius: 10px; background: #f5f6f8; }
.jlms-thankyou p:last-child { margin-bottom: 0; }
.jlms-account .jlms-mycourse { padding: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .jlms-course__layout { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 0; }
    .jlms-course__aside { grid-column: 1; grid-row: 1; position: static; margin-top: -24px; }
    .jlms-course__main { grid-row: 2; }
    .jlms-buy { max-width: 560px; }
}
@media (max-width: 720px) {
    .jlms-course__hero { padding: 32px 0 44px; }
    .jlms-course__subtitle { font-size: 16px; }
    .jlms-outcomes ul { grid-template-columns: minmax(0, 1fr); }
    .jlms-box { padding: 20px; }
    .jlms-section > h2, .jlms-box > h2, .jlms-section__head h2 { font-size: 21px; }
    .jlms-lesson-row { padding: 10px 14px; }
    .jlms-module summary { padding: 14px; }
    .jlms-mycourse, .jlms-cert, .jlms-sub { flex-wrap: wrap; }
    .jlms-mycourse__media { width: 112px; }
    .jlms-mycourse__actions, .jlms-cert__actions, .jlms-sub__actions { width: 100%; justify-content: stretch; }
    .jlms-mycourse__actions .jlms-btn, .jlms-cert__actions .jlms-btn, .jlms-sub__actions .jlms-btn { flex: 1; }
    .jlms-form__row { grid-template-columns: minmax(0, 1fr); }
    .jlms-platform__head { align-items: flex-start; }
    .jlms-instructor__card { flex-direction: column; }
    .jlms-login__box { padding: 28px 20px; }
    .jlms-verify__card { padding: 28px 20px; }
    .jlms-search { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .jlms *, .jlms *::before, .jlms *::after { transition: none !important; animation: none !important; }
}
.jlms-badge--muted { background: var(--jlms-soft); color: var(--jlms-muted); }

/* ---------- Platform 2.0: welcome, continue, live, course grid, notes ---------- */
.jlms-platform { max-width: 1120px; }
.jlms-hero { position: relative; margin: 0 0 22px; padding: 26px 28px 22px; overflow: hidden; border-radius: calc(var(--jlms-r) + 6px); background: radial-gradient(900px 340px at 100% 0%, color-mix(in srgb, var(--jlms-accent, #cc4a00) 34%, transparent), transparent 62%), var(--jlms-ink, #15171c); color: #fff; }
.jlms-hero__hello { display: flex; gap: 18px; align-items: center; }
.jlms-hero__text { flex: 1; min-width: 0; }
.jlms-hero__ava { display: grid; flex: none; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--jlms-accent, #cc4a00); color: var(--jlms-accent-text, #fff); font-size: 22px; font-weight: 700; letter-spacing: .02em; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.jlms-hero .jlms-platform__eyebrow { color: rgba(255, 255, 255, .65); }
.jlms-hero .jlms-platform__title { color: #fff; }
.jlms-hero__lead { margin: 4px 0 0; color: rgba(255, 255, 255, .8); font-size: 15px; }
.jlms .jlms-hero .jlms-platform__logout { align-self: flex-start; color: rgba(255, 255, 255, .8); }
.jlms .jlms-hero .jlms-platform__logout:hover { color: #fff; }
.jlms-hero__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.jlms-hero__stats li { display: flex; gap: 12px; align-items: center; margin: 0; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--jlms-r); background: rgba(255, 255, 255, .05); }
.jlms-hero__icon { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .1); color: #fff; }
.jlms-hero__stats b { display: block; font-size: 20px; line-height: 1.1; }
.jlms-hero__stats li > span:last-child > span { display: block; color: rgba(255, 255, 255, .68); font-size: 13px; }

.jlms .jlms-livecard { display: flex; gap: 16px; align-items: center; margin: 0 0 22px; padding: 14px 16px; border: 1px solid var(--jlms-line); border-radius: var(--jlms-r); background: #fff; color: var(--jlms-text); text-decoration: none; transition: border-color .15s; }
.jlms .jlms-livecard:hover { border-color: var(--jlms-accent, #cc4a00); }
.jlms .jlms-livecard.is-live { border-color: #fecdd3; background: linear-gradient(100deg, #fff1f2, #fff 60%); }
.jlms-livecard__date { display: grid; flex: none; place-items: center; align-content: center; width: 56px; height: 60px; border-radius: 12px; background: color-mix(in srgb, var(--jlms-accent, #cc4a00) 12%, #fff); color: var(--jlms-accent, #cc4a00); line-height: 1.05; text-align: center; }
.jlms-livecard__date b { display: block; font-size: 21px; }
.jlms-livecard__date span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.is-live .jlms-livecard__date { background: #ffe4e6; color: #e11d48; }
.jlms-livecard__body { flex: 1; min-width: 0; }
.jlms-livecard__kicker { display: flex; gap: 8px; align-items: center; color: var(--jlms-muted); font-size: 13px; font-weight: 600; }
.is-live .jlms-livecard__kicker { color: #e11d48; }
.jlms-livecard__title { display: block; overflow: hidden; font-size: 17px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.jlms-live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #e11d48; vertical-align: middle; animation: jlms-live-pulse 1.6s ease-out infinite; }
@keyframes jlms-live-pulse { 0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, .5); } 70% { box-shadow: 0 0 0 8px rgba(225, 29, 72, 0); } 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); } }

.jlms-resume { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; margin: 0 0 26px; overflow: hidden; border: 1px solid var(--jlms-line); border-radius: calc(var(--jlms-r) + 4px); background: #fff; }
.jlms .jlms-resume__media { position: relative; display: block; min-height: 220px; background: var(--jlms-soft); }
.jlms-resume__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jlms-resume__media .jlms-card__placeholder { position: absolute; inset: 0; }
.jlms-resume__play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 68px; height: 68px; padding-left: 4px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--jlms-accent, #cc4a00); transform: translate(-50%, -50%); transition: transform .2s; }
.jlms-resume__media:hover .jlms-resume__play { transform: translate(-50%, -50%) scale(1.08); }
.jlms-resume__body { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; justify-content: center; padding: 26px 28px; }
.jlms-resume__kicker { margin: 0; color: var(--jlms-accent, #cc4a00); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.jlms-resume__title { margin: 0; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }
.jlms-resume__next { display: flex; gap: 8px; align-items: center; margin: 0; color: var(--jlms-muted); }
.jlms-resume__progress { display: flex; gap: 12px; align-items: center; width: 100%; color: var(--jlms-muted); font-size: 13px; }
.jlms-resume__progress .jlms-progress { flex: 1; }

.jlms-cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.jlms-cgrid .jlms-ccard { display: flex; flex-direction: column; margin: 0; overflow: hidden; border: 1px solid var(--jlms-line); border-radius: var(--jlms-r); background: #fff; transition: border-color .15s, transform .2s; }
.jlms-cgrid .jlms-ccard:hover { border-color: color-mix(in srgb, var(--jlms-accent, #cc4a00) 45%, var(--jlms-line)); transform: translateY(-2px); }
.jlms .jlms-ccard__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--jlms-soft); }
.jlms-ccard__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jlms-ccard__media .jlms-card__placeholder { position: absolute; inset: 0; }
.jlms-ccard__badge { position: absolute; top: 10px; left: 10px; display: inline-flex; gap: 5px; align-items: center; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--jlms-ok); font-size: 12px; font-weight: 700; }
.jlms-ccard__body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 14px 16px 16px; }
.jlms-ccard__title { margin: 0; font-size: 17px; line-height: 1.3; }
.jlms .jlms-ccard__title a { text-decoration: none; }
.jlms .jlms-ccard__title a:hover { text-decoration: underline; }
.jlms-ccard__row { display: flex; gap: 12px; align-items: center; }
.jlms-ccard__meta { display: flex; flex-direction: column; gap: 2px; margin: 0; color: var(--jlms-muted); font-size: 13px; }
.jlms-ccard__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.jlms-ring { position: relative; display: grid; flex: none; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: conic-gradient(var(--jlms-accent, #cc4a00) calc(var(--p, 0) * 1%), var(--jlms-line) 0); }
.jlms-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.jlms-ring b { position: relative; font-size: 13px; }
.jlms-ccard.is-done .jlms-ring { background: var(--jlms-ok); }
.jlms-ccard.is-expired { background: var(--jlms-soft); }
.jlms-ccard.is-expired .jlms-ccard__media { opacity: .55; }
.jlms-cgrid .jlms-ccard--more { justify-content: center; border-style: dashed; background: transparent; }
.jlms .jlms-ccard--more a { display: flex; flex: 1; flex-direction: column; gap: 10px; align-items: center; justify-content: center; min-height: 200px; padding: 20px; color: var(--jlms-muted); font-weight: 600; text-decoration: none; }
.jlms .jlms-ccard--more a:hover { color: var(--jlms-accent, #cc4a00); }

.jlms-section-title { display: flex; gap: 8px; align-items: center; margin: 4px 0 14px; font-size: 18px; }
.jlms-section-title span { padding: 1px 9px; border-radius: 999px; background: var(--jlms-soft); color: var(--jlms-muted); font-size: 13px; }
.jlms-sessions-list { display: flex; flex-direction: column; gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.jlms-session-item { display: flex; gap: 16px; align-items: center; margin: 0; padding: 14px; border: 1px solid var(--jlms-line); border-radius: var(--jlms-r); background: #fff; }
.jlms-session-item.is-live { border-color: #fecdd3; background: linear-gradient(100deg, #fff1f2, #fff 60%); }
.jlms-session-item.is-live .jlms-livecard__date { background: #ffe4e6; color: #e11d48; }
.jlms-session-item.is-past .jlms-livecard__date { background: var(--jlms-soft); color: var(--jlms-text); }
.jlms-session-item__body { flex: 1; min-width: 0; }
.jlms-session-item__title { margin: 0 0 4px; font-size: 17px; }
.jlms .jlms-session-item__title a { text-decoration: none; }
.jlms .jlms-session-item__title a:hover { text-decoration: underline; }
.jlms-session-item__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 0; color: var(--jlms-muted); font-size: 13px; }
.jlms-session-item__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.jlms-live-badge { display: inline-flex; gap: 6px; align-items: center; color: #e11d48; font-weight: 700; }

.jlms-notes-course { margin-bottom: 26px; }
.jlms-notes-course ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.jlms-note-card { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 16px; border: 1px solid #f3e7b5; border-radius: var(--jlms-r); background: #fffdf3; }
.jlms .jlms-note-card__lesson { display: inline-flex; gap: 8px; align-items: center; color: var(--jlms-text); font-weight: 700; text-decoration: none; }
.jlms .jlms-note-card__lesson:hover { color: var(--jlms-accent, #cc4a00); }
.jlms-note-card__text { color: var(--jlms-text); font-size: 15px; }
.jlms-note-card__text p { margin: 0 0 8px; }
.jlms-note-card__time { margin-top: auto; color: var(--jlms-muted); font-size: 12px; }

@media (max-width: 860px) {
    .jlms-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jlms-resume { grid-template-columns: minmax(0, 1fr); }
    .jlms .jlms-resume__media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
    .jlms-hero { padding: 20px 18px 18px; }
    .jlms-hero__hello { flex-wrap: wrap; }
    .jlms-hero__ava { width: 52px; height: 52px; font-size: 18px; }
    .jlms .jlms-hero .jlms-platform__logout { position: absolute; top: 16px; right: 16px; }
    .jlms-hero__stats { gap: 8px; }
    .jlms-hero__stats li { padding: 10px; gap: 10px; }
    .jlms-hero__icon { width: 32px; height: 32px; }
    .jlms-hero__stats b { font-size: 17px; }
    .jlms .jlms-livecard, .jlms-session-item { flex-wrap: wrap; }
    .jlms .jlms-livecard .jlms-btn, .jlms-session-item__actions { width: 100%; }
    .jlms-session-item__actions .jlms-btn { flex: 1; }
    .jlms-resume__body { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .jlms-live-dot { animation: none; }
    .jlms-cgrid .jlms-ccard:hover { transform: none; }
}
.jlms-platform { container-type: inline-size; }
.jlms .jlms-ccard--more a { font-size: 15px; line-height: 1.4; }
@container (max-width: 760px) {
    .jlms-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jlms-resume { grid-template-columns: minmax(0, 1fr); }
    .jlms .jlms-resume__media { min-height: 0; aspect-ratio: 16 / 9; }
}
.jlms-resume__next { font-size: 15px; }
.jlms-livecard__date { color: color-mix(in srgb, var(--jlms-accent, #cc4a00) 68%, #000); }
.is-live .jlms-livecard__date, .jlms-session-item.is-live .jlms-livecard__date { color: #9f1239; }

.jlms-muted-note { margin: 10px 0 0; color: var(--jlms-muted); font-size: 14px; }
.jlms .jlms-list { font-size: 16px; line-height: 1.6; }
.jlms .jlms-list li { font-size: inherit; }
