.lms-body {
    margin: 0;
    background: var(--color-soft);
    color: #0f172a;
    font-family: var(--font-sans);
}
.lms-skip {
    position: absolute;
    left: -999px;
    top: 0;
    background: #fff;
    padding: .5rem 1rem;
    z-index: 20;
}
.lms-skip:focus { left: 1rem; top: 1rem; }
.lms-topbar {
    background: var(--color-navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 30;
}
.lms-topbar__inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0 1.25rem;
}
.lms-brand {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    gap: .6rem;
    align-items: center;
    white-space: nowrap;
}
.lms-brand:hover { color: #c7d2fe; }
.lms-topbar__title {
    font-weight: 600;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lms-topbar__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.lms-search {
    display: flex;
    background: rgba(255,255,255,.12);
    border-radius: 999px;
    overflow: hidden;
}
.lms-search input {
    border: 0;
    background: transparent;
    color: #fff;
    padding: .4rem .9rem;
    min-width: 180px;
}
.lms-search input::placeholder { color: #cbd5e1; }
.lms-search button {
    border: 0;
    background: transparent;
    color: #fff;
    padding: 0 .8rem;
}
.lms-link, .lms-user { color: #e2e8f0; text-decoration: none; font-size: .92rem; }
.lms-link:hover { color: #fff; }
.lms-logout { margin: 0; }
.lms-link-button {
    background: none;
    border: 0;
    padding: 0;
    color: #e2e8f0;
    font-size: .92rem;
    cursor: pointer;
}
.lms-link-button:hover { color: #fff; }
.lms-banner-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: .85rem 1rem;
    margin-bottom: 1rem;
}
.lms-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 3rem;
}
.lms-main--full {
    max-width: none;
    padding: 0;
    margin: 0;
}
.lms-nav {
    display: flex;
    gap: 1.1rem;
    flex: 1;
    justify-content: center;
}
.lms-nav__link {
    color: #dbe7f5;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.lms-nav__link:hover, .lms-nav__link.is-active { color: #fff; }
/* Painted by the shared gold button in theme.css; only its layout lives here. */
.lms-btn-gold, a.lms-btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.2rem;
    text-decoration: none;
}
.lms-btn-gold:disabled { opacity: .55; }
.lms-btn-navy {
    background: var(--color-navy);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: .55rem 1rem;
    font-weight: 600;
}
.lms-kicker {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: .35rem;
}
.lms-hero-banner {
    background:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 28%),
        linear-gradient(180deg, #0a2f5c 0%, #123a73 42%, #1d4f8a 100%);
    color: #fff;
    padding: 2.4rem 1.25rem 3.2rem;
    position: relative;
    overflow: hidden;
}
.lms-hero-banner::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 90px;
    background: linear-gradient(180deg, transparent, var(--color-soft));
}
.lms-hero-banner__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}
.lms-hero-banner h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 .7rem;
}
.lms-hero-banner h1 span { color: #f5c453; display: block; }
.lms-hero-banner p { max-width: 38rem; color: #dbeafe; }
.lms-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
    color: #e2e8f0;
    font-size: .9rem;
}
.lms-hero-points i { color: #f5c453; margin-right: .35rem; }
.lms-hero-path {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 24px;
    padding: 1.2rem 1.3rem;
}
.lms-hero-path__title { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.lms-hero-path ol { margin: 1rem 0; padding-left: 1.1rem; }
.lms-hero-path li { margin: .35rem 0; }
.lms-hero-path__aside { font-family: var(--font-sans); font-style: italic; color: #fde68a; }
.lms-home {
    max-width: 1280px;
    margin: -2.2rem auto 0;
    padding: 0 1.25rem 2rem;
    position: relative;
    z-index: 2;
}
.lms-home-status, .lms-home-filters, .lms-home-side, .lms-home-main section, .lms-study-main .lms-stage {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}
.lms-home-status {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
}
.lms-home-hello { display: flex; gap: .8rem; align-items: center; }
.lms-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--color-navy); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.lms-home-progress { min-width: 220px; }
.lms-home-stats { display: flex; gap: 1rem; font-size: .85rem; color: #475569; }
.lms-home-stats i { color: #f59e0b; }
.lms-home-quote {
    margin: 0;
    font-size: .82rem;
    color: #64748b;
    font-style: italic;
    max-width: 180px;
}
.lms-home-quote--wide { max-width: none; margin-top: 1rem; }
.lms-home-filters {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(120px, .7fr));
    gap: .6rem;
    padding: .8rem;
    margin-bottom: 1rem;
}
.lms-home-search {
    display: flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    padding: .2rem .2rem .2rem .8rem;
}
.lms-home-search input { border: 0; flex: 1; outline: none; background: transparent; }
.lms-home-filters select {
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    padding: .55rem .7rem;
    background: #fff;
}
.lms-home-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.1rem; }
.lms-home-side { padding: .9rem; height: fit-content; position: sticky; top: 84px; }
.lms-side-nav { display: grid; gap: .15rem; }
.lms-side-nav a {
    display: flex; gap: .6rem; align-items: center;
    padding: .45rem .55rem; border-radius: 10px;
    color: #334155; text-decoration: none; font-size: .9rem;
}
.lms-side-nav a.is-active, .lms-side-nav a:hover { background: #e8f0fb; color: var(--color-navy); }
.lms-goals { margin-top: 1rem; display: grid; gap: .4rem; font-size: .86rem; }
.lms-goals__title { font-weight: 700; color: #0f172a; margin-bottom: .2rem; }
.lms-section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; margin: 1.3rem 0 .8rem; }
.lms-section-head h2 { margin: 0; font-size: 1.2rem; }
.lms-section-head p, .lms-section-head a { color: #64748b; text-decoration: none; }
.lms-card-grid--home { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.lms-course-card--rich { min-height: 100%; }
.lms-course-card__thumb--empty { display: grid; place-items: center; font-size: 2rem; color: var(--color-navy); background: #e8f0fb; }
.lms-card-tags { display: flex; gap: .35rem; flex-wrap: wrap; }
.lms-pill--gold { background: #fef3c7; color: #92400e; padding: .1rem .45rem; border-radius: 999px; }
.lms-card-cta { color: var(--color-navy); font-weight: 700; font-size: .9rem; margin-top: auto; }
.lms-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .7rem; }
.lms-cat-tile {
    background: #fff; border-radius: 14px; padding: 1rem .8rem; text-align: center;
    text-decoration: none; color: #0f172a; box-shadow: 0 6px 18px rgba(15,23,42,.05);
}
.lms-cat-tile i { color: var(--color-navy); font-size: 1.2rem; display: block; margin-bottom: .4rem; }
.lms-path-list { display: grid; gap: .55rem; }
.lms-path-row {
    display: grid; grid-template-columns: 36px minmax(0,1fr) 16px; gap: .7rem; align-items: center;
    background: #fff; border-radius: 12px; padding: .75rem .9rem; text-decoration: none; color: inherit;
    box-shadow: 0 6px 18px rgba(15,23,42,.05);
}
.lms-path-row span { display: block; color: #64748b; font-size: .8rem; }
.lms-badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.lms-badge-tile {
    background: #fff; border-radius: 14px; padding: 1rem .6rem; text-align: center;
    color: #94a3b8; box-shadow: 0 6px 18px rgba(15,23,42,.05); font-size: .85rem;
}
.lms-badge-tile.is-earned { color: var(--color-navy); }
.lms-badge-tile i { display: block; font-size: 1.3rem; margin-bottom: .4rem; color: var(--color-gold); }
.lms-promo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.lms-promo { border-radius: 16px; padding: 1.1rem; text-decoration: none; color: inherit; min-height: 150px; }
.lms-promo h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.lms-promo span { color: var(--color-navy); font-weight: 700; }
.lms-promo--green { background: #ecfdf3; }
.lms-promo--gold { background: #fff7e6; }
.lms-promo--lilac { background: var(--color-tint); }
.lms-home-footer {
    background: linear-gradient(180deg, #0a2f5c, #123a73);
    color: #fff;
    padding: 2rem 1.25rem;
}
.lms-home-footer__inner {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 1.5rem; align-items: center;
}
.lms-home-footer__steps { display: flex; gap: 1.2rem; }
.lms-home-footer__mark { font-family: var(--font-sans); font-style: italic; color: #fde68a; }
.lms-study { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1rem; }
.lms-study-rail {
    background: var(--color-navy); color: #fff; border-radius: 18px; padding: 1rem .85rem; height: fit-content;
    position: sticky; top: 84px;
}
.lms-study-brand { margin-bottom: 1rem; }
.lms-study-brand .lms-progress { background: rgba(255,255,255,.2); margin: .5rem 0; }
.lms-study-brand .lms-progress > span { background: var(--color-gold); }
.lms-study-item {
    display: grid; grid-template-columns: 28px minmax(0,1fr); gap: .55rem; align-items: start;
    color: #e2e8f0; text-decoration: none; padding: .45rem .4rem; border-radius: 10px; margin-bottom: .25rem;
}
.lms-study-item.is-current { background: #fff; color: var(--color-navy); }
.lms-study-item.is-locked { opacity: .55; }
.lms-study-item small { display: block; font-size: .72rem; opacity: .8; }
.lms-study-rail blockquote { font-size: .85rem; opacity: .85; margin-top: 1rem; }
.lms-study-crumb { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .8rem; }
.lms-study-tabs { display: flex; gap: .4rem; margin: 1rem 0 .6rem; }
.lms-study-tabs button {
    border: 0; background: #e8f0fb; color: #334155; border-radius: 999px; padding: .4rem .8rem;
}
.lms-study-tabs button.is-active { background: var(--color-navy); color: #fff; }
.lms-study-panel { display: none; background: #fff; border-radius: 14px; padding: 1rem; }
.lms-study-panel.is-active { display: block; }
.lms-practice { background: #fff8e8; border-radius: 16px; padding: 1.1rem; margin-top: 1rem; }
.lms-practice__grid { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 1rem; margin-top: .8rem; }
.lms-practice__preview { background: #fff; border-radius: 12px; display: grid; place-items: center; font-size: 2.4rem; color: var(--color-navy); }
.lms-study-actions { display: flex; justify-content: space-between; gap: .8rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
@media (max-width: 1100px) {
    .lms-home-status, .lms-home-filters, .lms-home-layout, .lms-study, .lms-promo-row, .lms-badge-grid, .lms-hero-banner__inner, .lms-home-footer__inner {
        grid-template-columns: 1fr;
    }
    .lms-home-side { position: static; }
    .lms-study-rail { position: static; }
}
.lms-hero {
    margin-bottom: 1.5rem;
}
.lms-hero h1 { font-size: 1.85rem; font-weight: 700; margin-bottom: .35rem; }
.lms-hero p { color: #475569; margin: 0; }
.lms-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.lms-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.lms-course-card {
    background: #fff;
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(15,23,42,.08));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s ease, transform .2s ease;
}
.lms-course-card:hover { box-shadow: var(--shadow-md, 0 10px 24px rgba(15,23,42,.12)); transform: translateY(-2px); }
.lms-course-card__thumb {
    aspect-ratio: 16/9;
    background: #e2e8f0;
    object-fit: cover;
    width: 100%;
}
.lms-course-card__body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.lms-pill { font-size: .75rem; color: var(--color-blue); font-weight: 600; }
.lms-course-card h2 {
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lms-meta { color: #64748b; font-size: .82rem; }
.lms-progress { height: 6px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.lms-progress > span { display: block; height: 100%; background: var(--color-blue); }
.lms-empty { padding: 3rem 1.5rem; }
.lms-landing { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.lms-enroll {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(15,23,42,.08));
    position: sticky;
    top: 88px;
}
.lms-player { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.25rem; }
.lms-stage { background: #fff; border-radius: 12px; padding: 1.25rem; min-height: 420px; }
.lms-prose { max-width: 72ch; line-height: 1.7; font-size: 1.05rem; }
.lms-prose h1, .lms-prose h2, .lms-prose h3 { line-height: 1.3; }
.lms-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.lms-rail { background: #fff; border-radius: 12px; padding: .75rem; }
.lms-exam { max-width: 860px; margin: 0 auto; }
.lms-exam-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    position: sticky;
    top: 76px;
    z-index: 5;
}
.lms-timer.is-warn { color: #b45309; font-weight: 700; }
.lms-option {
    display: block;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: .9rem 1rem;
    margin: .55rem 0;
    cursor: pointer;
}
.lms-option.is-selected, .lms-option:has(input:checked) { border-color: var(--color-blue); background: var(--color-tint); }
.lms-palette { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.lms-palette button {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
}
.lms-palette button.is-answered { background: #dbeafe; }
.lms-palette button.is-current { outline: 2px solid var(--color-blue); }
.lms-result { background: #fff; border-radius: 16px; padding: 2rem; text-align: center; }
.lms-result.is-pass { box-shadow: inset 0 4px 0 var(--color-success, #16a34a); }
.lms-result.is-fail { box-shadow: inset 0 4px 0 #dc2626; }
.lms-review-card { background: #fff; border-radius: 12px; padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
@media (max-width: 991px) {
    .lms-landing, .lms-player { grid-template-columns: 1fr; }
    .lms-enroll, .lms-rail { position: static; }
    .lms-topbar__inner { flex-wrap: wrap; padding: .7rem 1rem; }
    .lms-topbar__title { order: 3; flex-basis: 100%; }
    .lms-palette { flex-wrap: nowrap; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .lms-course-card { transition: none; }
}
.lms-stage video, .lms-stage audio { width: 100%; border-radius: 10px; }
.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}
