.rslms-course-card,
.rslms-item,
.rslms-empty {
    background: #2b1a0f;
    border: 1px solid rgba(212, 175, 55, .72);
    border-radius: 8px;
    color: #f7eadc;
    margin: 18px 0;
    padding: 18px;
}

.rslms-course-card h2,
.rslms-course-card h3,
.rslms-item h2,
.rslms-my-courses h2 {
    color: #d4af37;
    margin: 0 0 10px;
}

.rslms-course-description,
.rslms-course-meta,
.rslms-price {
    line-height: 1.55;
}

.rslms-notice {
    border-radius: 7px;
    font-weight: 700;
    margin: 12px 0;
    padding: 12px 14px;
}

.rslms-info {
    background: #24384f;
    color: #fff;
}

.rslms-success {
    background: #dff7e6;
    color: #145a2c;
}

.rslms-warning {
    background: #4b3414;
    border-left: 4px solid #d4af37;
    color: #ffd966;
}

.rslms-error {
    background: #8b1d1d;
    border-left: 4px solid #ffb3b3;
    color: #fff;
}

.rslms-btn {
    align-items: center;
    background: #d4af37;
    border: 0;
    border-radius: 7px;
    color: #1f140b !important;
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    text-decoration: none;
}

.rslms-btn.alt {
    background: #1f140b;
    border: 1px solid rgba(255, 255, 255, .72);
    color: #fff !important;
    margin-left: 8px;
}

.rslms-item-head {
    border-bottom: 1px solid rgba(212, 175, 55, .35);
    margin-bottom: 16px;
    padding-bottom: 12px;
}

.rslms-item-head span {
    color: #ffd966;
    display: block;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.rslms-content {
    line-height: 1.65;
}

.rslms-complete-form {
    border-top: 1px solid rgba(212, 175, 55, .35);
    margin-top: 18px;
    padding-top: 16px;
}

.rslms-item-nav {
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, .22);
    border-top: 1px solid rgba(212, 175, 55, .22);
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    margin: 14px 0 18px;
    padding: 12px 0;
}

.rslms-nav-course {
    grid-column: 1 / -1;
}

.rslms-item-nav .rslms-btn:last-child,
.rslms-item-nav .rslms-nav-locked:last-child {
    justify-self: end;
    text-align: right;
}

.rslms-nav-locked {
    color: #d8c6a8;
    font-weight: 800;
}

.rslms-score-label {
    color: #ffd966;
    display: block;
    font-weight: 800;
    margin: 0 0 12px;
}

.rslms-score-label input {
    display: block;
    margin-top: 6px;
    max-width: 180px;
}

.rslms-quiz-passmark {
    color: #ffd966;
    font-weight: 900;
    margin: 0 0 14px;
}

.rslms-quiz-question {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(212, 175, 55, .35);
    border-radius: 8px;
    margin: 0 0 14px;
    padding: 14px;
}

.rslms-quiz-question legend {
    color: #ffd966;
    font-weight: 900;
    padding: 0 6px;
}

.rslms-quiz-question label {
    display: inline-flex;
    gap: 6px;
    margin: 10px 18px 0 0;
}

.rslms-final-warning {
    background: rgba(255, 217, 102, .12);
    border: 1px solid rgba(212, 175, 55, .72);
    border-radius: 8px;
    color: #f7eadc;
    margin: 18px 0;
    padding: 16px;
}

.rslms-final-warning h3 {
    color: #ffd966;
    margin: 0 0 8px;
}

.rslms-watch-required-message {
    background: rgba(255, 217, 102, .12);
    border: 1px solid rgba(212, 175, 55, .45);
    border-radius: 8px;
    color: #ffd966;
    font-weight: 900;
    margin: 14px 0;
    padding: 12px 14px;
}

.rslms-certificate-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.rslms-certificate-card {
    background: #f8f2e8;
    border: 1px solid rgba(31, 20, 11, .25);
    border-radius: 8px;
    color: #1f140b;
    overflow: hidden;
}

.rslms-certificate-head {
    background: #1f140b;
    color: #f7eadc;
    padding: 16px 18px;
}

.rslms-certificate-head h3 {
    color: #d4af37;
    font-size: 19px;
    margin: 0;
}

.rslms-certificate-head p {
    font-size: 13px;
    margin: 4px 0 0;
    opacity: .88;
}

.rslms-certificate-image {
    background: #fffaf0;
    border-bottom: 1px solid rgba(31, 20, 11, .12);
    padding: 16px;
}

.rslms-certificate-image img {
    border-radius: 4px;
    box-shadow: 0 8px 18px rgba(31, 20, 11, .25);
    display: block;
    height: auto;
    width: 100%;
}

.rslms-certificate-preview {
    background: linear-gradient(135deg, #fffaf0, #ead8b7);
    min-height: 230px;
    padding: 24px;
    position: relative;
}

.rslms-certificate-preview h2 {
    color: #9d6c12;
    font-size: 20px;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.rslms-certificate-preview h3 {
    color: #2b1a0f;
    font-size: 28px;
    margin: 14px 0;
}

.rslms-certificate-preview h4 {
    color: #d4a21f;
    font-size: 24px;
    margin: 12px 0;
}

.rslms-certificate-dates {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-weight: 800;
    margin-top: 18px;
}

.rslms-certificate-qr {
    background: #fff;
    border: 6px solid #fff;
    bottom: 18px;
    height: 92px;
    position: absolute;
    right: 18px;
    width: 92px;
}

.rslms-certificate-meta {
    display: grid;
    gap: 8px;
    padding: 16px 18px 0;
}

.rslms-certificate-meta div {
    display: grid;
    gap: 10px;
    grid-template-columns: 78px 1fr;
}

.rslms-certificate-meta span {
    color: #9d6c12;
    font-weight: 900;
}

.rslms-certificate-meta strong {
    color: #1f140b;
    font-weight: 900;
    word-break: break-word;
}

.rslms-certificate-actions {
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
}

.rslms-certificate-actions .rslms-btn.alt {
    margin-left: 0;
}

.rslms-certificate-warning {
    color: #8b1d1d;
    font-weight: 800;
    padding: 0 18px 16px;
}

.rslms-certificate-verify {
    background: #fff;
    border-radius: 8px;
    color: #1f140b;
    padding: 24px;
}

.rslms-course-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.rslms-section-title {
    color: #d4af37;
    margin: 22px 0 10px;
}

.rslms-complete {
    color: #b7f7c9;
    font-weight: 800;
}

.rslms-muted {
    color: #d8c6a8;
}

.rslms-progress {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(212, 175, 55, .45);
    border-radius: 999px;
    height: 12px;
    margin: 12px 0 6px;
    overflow: hidden;
}

.rslms-progress span {
    background: linear-gradient(90deg, #d4af37, #ffe08a);
    display: block;
    height: 100%;
}

.rslms-progress-text {
    color: #ffd966;
    font-size: 13px;
    font-weight: 900;
    margin: 0 0 12px;
}

.rslms-inline-form {
    display: inline-block;
    margin: 0 0 0 8px;
}

.rslms-paypal {
    margin-top: 14px;
    max-width: 420px;
}

.rslms-purchase-panel {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(212, 175, 55, .45);
    border-radius: 8px;
    margin-top: 18px;
    max-width: 780px;
    padding: 18px;
}

.rslms-purchase-panel h3 {
    color: #d4af37;
    margin: 0 0 10px;
}

.rslms-purchase-lead {
    margin: 0 0 12px;
}

.rslms-purchase-list {
    margin: 0 0 14px 18px;
}

.rslms-purchase-list li {
    margin: 5px 0;
}

.rslms-purchase-options {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.rslms-purchase-option {
    align-items: center;
    background: rgba(43, 26, 15, .72);
    border: 1px solid rgba(212, 175, 55, .45);
    border-radius: 8px;
    color: #f7eadc;
    cursor: pointer;
    display: grid;
    gap: 6px;
    grid-template-columns: auto 1fr auto;
    padding: 12px;
}

.rslms-purchase-option input {
    margin: 0;
}

.rslms-purchase-option span {
    color: #d8c6a8;
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.rslms-purchase-option em {
    color: #ffd966;
    font-style: normal;
    font-weight: 900;
}

.rslms-funnel-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rslms-btn-secondary {
    background: transparent;
    border: 1px solid #d4af37;
    color: #f7eadc;
}

.rslms-payment-note {
    color: #d8c6a8;
    font-size: 13px;
    margin: 8px 0 0;
}

.rslms-access-history {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(212, 175, 55, .28);
    border-radius: 8px;
    margin: 12px 0;
    padding: 12px;
}

.rslms-access-history ul {
    margin: 8px 0 0 18px;
}

.rslms-access-history li {
    margin: 4px 0;
}

.rslms-payment-message {
    color: #ffd966;
    font-weight: 800;
    margin-top: 10px;
}

.rslms-outline {
    background: #2b1a0f;
    border: 1px solid rgba(212, 175, 55, .72);
    border-radius: 8px;
    color: #f7eadc;
    margin: 18px 0;
    padding: 18px;
}

.rslms-outline h3 {
    color: #d4af37;
    margin: 0 0 12px;
}

.rslms-curriculum-head {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr auto;
    margin-bottom: 16px;
}

.rslms-curriculum-head p {
    margin: 0;
}

.rslms-curriculum-list {
    display: grid;
    gap: 12px;
}

.rslms-curriculum-item {
    align-items: center;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(212, 175, 55, .3);
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: 72px 1fr auto;
    padding: 14px;
}

.rslms-curriculum-item.complete {
    border-color: rgba(144, 238, 174, .55);
}

.rslms-curriculum-item.locked {
    opacity: .68;
}

.rslms-curriculum-number {
    align-items: center;
    background: #d4af37;
    border-radius: 8px;
    color: #1f140b;
    display: flex;
    font-size: 22px;
    font-weight: 900;
    height: 56px;
    justify-content: center;
}

.rslms-curriculum-body h4 {
    color: #ffd966;
    margin: 0 0 6px;
}

.rslms-curriculum-body p {
    margin: 0;
}

.rslms-curriculum-action {
    display: grid;
    gap: 8px;
    justify-items: end;
    min-width: 110px;
}

.rslms-curriculum-note {
    border-top: 1px solid rgba(212, 175, 55, .24);
    color: #ffd966;
    font-weight: 800;
    margin: 16px 0 0;
    padding-top: 14px;
}

.rslms-outline ol {
    margin: 0;
    padding-left: 22px;
}

.rslms-outline-item {
    border-top: 1px solid rgba(212, 175, 55, .24);
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr auto auto;
    padding: 10px 0;
}

.rslms-outline-item:first-child {
    border-top: 0;
}

.rslms-outline-item strong {
    color: #ffd966;
}

.rslms-outline-item.complete strong {
    color: #b7f7c9;
}

.rslms-outline-item.locked {
    opacity: .62;
}

.rslms-small-link {
    color: #ffd966;
    font-weight: 900;
}

.rslms-video-player {
    background: #152a27;
    border: 1px solid rgba(198, 170, 72, .58);
    border-radius: 8px;
    margin: 18px 0;
    padding: 14px;
}

.rslms-video-player h3 {
    color: #c9ad52;
    margin: 0 0 12px;
}

.rslms-video-frame {
    background: #0b1815;
    background-position: center;
    background-size: cover;
    border: 1px solid rgba(214, 222, 209, .16);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.rslms-video-frame::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.rslms-video {
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
    z-index: 1;
}

.rslms-video-start {
    background: #c9c842;
    border: 0;
    border-radius: 8px;
    color: #15231f;
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    left: 50%;
    padding: 14px 24px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.rslms-video-start:hover {
    background: #ddd95d;
}

.rslms-video-controls {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 12px;
}

.rslms-video-controls label {
    color: #d5dccc;
    font-size: 13px;
    font-weight: 900;
}

.rslms-video-controls select {
    background: #1c3732;
    border: 1px solid rgba(198, 170, 72, .72);
    border-radius: 6px;
    color: #fff;
    display: block;
    margin-top: 5px;
    min-height: 40px;
    padding: 6px 8px;
    width: 100%;
}

.rslms-video-status {
    color: #d2d9ca;
    font-weight: 800;
    margin: 10px 0 0;
}

.rslms-video-debug {
    background: rgba(198, 170, 72, .08);
    border: 1px solid rgba(198, 170, 72, .42);
    border-radius: 6px;
    color: #f7eadc;
    margin-top: 12px;
    padding: 10px 12px;
}

.rslms-video-debug summary {
    color: #c9ad52;
    cursor: pointer;
    font-weight: 900;
}

.rslms-video-debug a {
    color: #c9ad52;
    font-weight: 900;
}

.rslms-name-fields {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin: 16px 0;
}

.rslms-name-fields p {
    grid-column: 1 / -1;
    margin: 0;
}

.rslms-name-fields label {
    font-weight: 700;
}

.rslms-name-fields input {
    border: 1px solid #b9a17a;
    border-radius: 6px;
    box-sizing: border-box;
    display: block;
    margin-top: 5px;
    min-height: 42px;
    padding: 8px 10px;
    width: 100%;
}

.rslms-retake-form {
    margin-top: 16px;
}

/* Focused plugin-managed lesson template. */
body.rslms-focused-lesson-page {
    background: #102522;
    color: #e7eadf;
    margin: 0;
}

.rslms-lesson-shell {
    min-height: 100vh;
}

.rslms-lesson-shell-head,
.rslms-lesson-shell-foot {
    align-items: center;
    background: #0a1a18;
    border-color: rgba(198, 170, 72, .42);
    color: #e7eadf;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 14px max(20px, calc((100vw - 1180px) / 2));
}

.rslms-lesson-shell-head {
    border-bottom-style: solid;
    border-bottom-width: 1px;
}

.rslms-lesson-shell-foot {
    border-top-style: solid;
    border-top-width: 1px;
    justify-content: center;
}

.rslms-lesson-shell-head a,
.rslms-lesson-shell-foot a {
    color: #d8c267;
    font-weight: 800;
    text-decoration: none;
}

.rslms-lesson-brand {
    font-size: 18px;
}

.rslms-lesson-main {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1180px;
    min-height: calc(100vh - 118px);
    padding: 22px 20px 38px;
    width: 100%;
}

.rslms-focused-lesson-page .rslms-item {
    background: #152d29;
    border-color: rgba(198, 170, 72, .58);
    margin: 0;
    padding: clamp(18px, 3vw, 34px);
}

.rslms-public-lesson {
    background: #f4f5ee;
    border-radius: 10px;
    color: #18302c;
    overflow: hidden;
}

.rslms-public-lesson-head,
.rslms-public-content,
.rslms-public-return {
    padding: clamp(22px, 4vw, 48px);
}

.rslms-public-lesson-head {
    background: #18332f;
    color: #eef1e7;
    padding-bottom: clamp(26px, 5vw, 58px);
    padding-top: clamp(26px, 5vw, 58px);
}

.rslms-public-lesson-head h1 {
    color: #f0efe4;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.08;
    margin: 8px 0 0;
}

.rslms-public-eyebrow {
    color: #d4bd58;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    margin: 0;
    text-transform: uppercase;
}

.rslms-public-login {
    background: #203f39;
    color: #eef1e7;
    margin: -20px clamp(16px, 4vw, 48px) 0;
    padding: clamp(18px, 3vw, 30px);
    position: relative;
}

.rslms-public-login h2 {
    color: #d8c267;
    margin: 0 0 8px;
}

.rslms-public-login .rslms-btn {
    margin: 8px 8px 0 0;
}

.rslms-public-content {
    font-size: 17px;
    line-height: 1.75;
}

.rslms-public-content h2,
.rslms-public-content h3 {
    color: #173a34;
}

.rslms-public-return {
    border-top: 1px solid #cbd2c5;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    justify-content: space-between;
}

.rslms-public-return a {
    color: #24584f;
    font-weight: 900;
}

@media (max-width: 640px) {
    .rslms-lesson-shell-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .rslms-item-nav {
        grid-template-columns: 1fr;
    }

    .rslms-item-nav .rslms-btn:last-child,
    .rslms-item-nav .rslms-nav-locked:last-child {
        justify-self: stretch;
        text-align: left;
    }
}
