@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap");

.ace-lms {
    --ace-radius-xs: 10px;
    --ace-radius-sm: 14px;
    --ace-radius-md: 18px;
    --ace-radius-lg: 24px;
    --ace-radius-xl: 30px;

    --ace-shadow-1: 0 8px 24px rgba(15, 23, 20, 0.06);
    --ace-shadow-2: 0 18px 46px rgba(15, 23, 20, 0.10);
    --ace-shadow-3: 0 28px 72px rgba(15, 23, 20, 0.14);
    --ace-shadow-glow: 0 12px 34px rgba(233, 79, 55, 0.18);
    --ace-shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.55);

    --ace-bg: #f7f5f1;
    --ace-bg-2: #fffaf4;
    --ace-panel: rgba(255, 255, 255, 0.72);
    --ace-panel-solid: #ffffff;
    --ace-panel-soft: rgba(255, 248, 242, 0.84);
    --ace-panel-deep: rgba(255, 244, 235, 0.92);
    --ace-glass-border: rgba(255, 255, 255, 0.42);
    --ace-line: rgba(120, 98, 82, 0.14);
    --ace-line-strong: rgba(120, 98, 82, 0.22);
    --ace-ink: #171310;
    --ace-ink-soft: #312924;
    --ace-muted: #75675e;
    --ace-muted-2: #9b8d83;

    --ace-accent: #e94f37;
    --ace-accent-2: #ff7a18;
    --ace-accent-3: #ffb15c;
    --ace-accent-soft: rgba(233, 79, 55, 0.10);
    --ace-accent-soft-2: rgba(255, 122, 24, 0.10);

    --ace-teal: #139a8f;
    --ace-gold: #d9a441;
    --ace-success: #19a37e;
    --ace-danger: #df4b43;

    --ace-gradient-accent: linear-gradient(135deg, #ff7a18 0%, #ff5d36 38%, #e94f37 100%);
    --ace-gradient-accent-soft: linear-gradient(135deg, rgba(255, 122, 24, 0.18) 0%, rgba(233, 79, 55, 0.08) 100%);
    --ace-gradient-hero: radial-gradient(circle at top left, rgba(255, 136, 66, 0.22), transparent 34%), radial-gradient(circle at bottom right, rgba(233, 79, 55, 0.12), transparent 28%), linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 248, 243, 0.72) 48%, rgba(255, 238, 226, 0.76) 100%);
    --ace-gradient-glow: radial-gradient(circle at center, rgba(255, 122, 24, 0.28), transparent 65%);

    --ace-sticky-top: 60px;
    --ace-progress-bottom: 18px;
    --ace-max-content: 100%;

    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ace-ink);
    position: relative;
    max-width: var(--ace-max-content);
    margin: 0 auto;
    padding: clamp(18px, 3vw, 32px);
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 143, 82, 0.08), transparent 24%),
        radial-gradient(circle at 100% 15%, rgba(255, 179, 92, 0.08), transparent 22%),
        linear-gradient(180deg, var(--ace-bg) 0%, var(--ace-bg-2) 100%);
    isolation: isolate;
}

.ace-lms::before,
.ace-lms::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ace-lms-promise{display:none;}
.ace-lms::before {
    background:
        radial-gradient(circle at 8% 4%, rgba(255, 122, 24, 0.10), transparent 18%),
        radial-gradient(circle at 92% 10%, rgba(233, 79, 55, 0.07), transparent 18%),
        radial-gradient(circle at 50% 100%, rgba(255, 177, 92, 0.06), transparent 24%);
}

.ace-lms::after {
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.18), transparent 70%);
}

.ace-lms > * {
    position: relative;
    z-index: 1;
}

.ace-lms * {
    box-sizing: border-box;
   
}

.ace-lms a {
    color: inherit;
    transition:
        color 0.24s ease,
        background-color 0.24s ease,
        border-color 0.24s ease,
        box-shadow 0.28s ease,
        transform 0.28s ease,
        opacity 0.24s ease;
}

.ace-lms button,
.ace-lms summary,
.ace-lms [role="button"] {
    transition:
        color 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.28s ease,
        transform 0.28s ease,
        opacity 0.22s ease;
}

.ace-lms button:focus-visible,
.ace-lms a:focus-visible,
.ace-lms summary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.18), 0 0 0 1px rgba(255, 122, 24, 0.5);
}

.ace-lms-empty {
    border: 1px solid var(--ace-line);
    border-radius: var(--ace-radius-lg);
    padding: 24px 26px;
    background: linear-gradient(135deg, rgba(255,255,255,0.76), rgba(255,247,240,0.85));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: var(--ace-muted);
    font: 700 15px DM Sans, system-ui, sans-serif;
    box-shadow: var(--ace-shadow-1), var(--ace-shadow-inset);
}

.ace-lms-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 28px;
    align-items: end;
    margin-bottom: 24px;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--ace-line);
    border-radius: var(--ace-radius-xl);
    background: var(--ace-gradient-hero);
    box-shadow: var(--ace-shadow-3), var(--ace-shadow-inset);
    overflow: hidden;
    position: relative;
}

.ace-lms-hero::before {
    content: "";
    position: absolute;
    inset: -20% auto auto -12%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 134, 62, 0.18) 0%, transparent 68%);
    pointer-events: none;
}

.ace-lms-hero::after {
    content: "";
    position: absolute;
    inset: auto -5% -22% auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 79, 55, 0.16) 0%, transparent 70%);
    pointer-events: none;
}

.ace-lms-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 122, 24, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--ace-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: var(--ace-shadow-inset);
}

.ace-lms-hero h1 {
    max-width: 860px;
    margin: 0;
    color: var(--ace-ink);
    font-size: clamp(40px, 6.4vw, 82px);
    line-height: 0.96;
    font-weight: 800;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.ace-lms-hero p:not(.ace-lms-eyebrow) {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--ace-muted);
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.72;
    font-weight: 500;
}

.ace-course-progress-value{margin-bottom: 15px !important;}

.ace-lms-progress-card {
    display: grid;
    gap: 14px;
    
    border: 1px solid var(--ace-glass-border);
    border-radius: calc(var(--ace-radius-lg) - 2px);
    padding: 22px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.54), rgba(255,245,238,0.34));
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: var(--ace-shadow-2), var(--ace-shadow-inset);
    position: relative;
    overflow: hidden;
}

.ace-lms-progress-card::before {
    content: "";
    position: absolute;
    inset: -30% auto auto -22%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 24, 0.18), transparent 68%);
}

.ace-lms-progress-card span {
    color: var(--ace-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ace-lms-progress-card strong {
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--ace-ink);
}

.ace-lms-progress-card div {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(120, 98, 82, 0.12);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

.ace-lms-progress-card i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ace-gradient-accent);
    box-shadow: 0 0 22px rgba(255, 122, 24, 0.35);
}

.ace-lms-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 268px);
    gap: 22px;
    align-items: start;
}

.ace-lms-modules,
.ace-lms-sections {
    border: 1px solid var(--ace-line);
    border-radius: var(--ace-radius-lg);
    padding: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.70), rgba(255,248,242,0.62));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--ace-shadow-1), var(--ace-shadow-inset);
}

.ace-lms-modules {
    position: sticky;
    top: 20px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding: 12px;
    overflow: visible;
    scrollbar-width: none;
}

.ace-lms-modules::-webkit-scrollbar {
    display: none;
}

.ace-lms-sections {
    position: sticky;
    top: 144px;
    display: grid;
    gap: 10px;
}

.ace-lms-nav-trail {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
}

.ace-lms-nav-dropdown {
    position: relative;
    min-width: 0;
    width: min(520px, 100%);
}

.ace-lms-nav-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 58px;
    padding: 10px 14px;
    border: 1px solid rgba(255,122,24,0.12);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,247,240,0.88));
    box-shadow: var(--ace-shadow-1), var(--ace-shadow-inset), 0 12px 30px rgba(255,122,24,0.08);
    color: var(--ace-ink);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.ace-lms-nav-trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(255,122,24,0.24);
    box-shadow: var(--ace-shadow-2), 0 0 0 1px rgba(255,122,24,0.08), 0 16px 40px rgba(255,122,24,0.10);
}

.ace-lms-nav-trigger-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.ace-lms-nav-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,122,24,0.16), rgba(233,79,55,0.12));
    color: var(--ace-accent);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 8px 20px rgba(255,122,24,0.12);
    flex: 0 0 auto;
}

.ace-lms-nav-trigger-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: left;
}

.ace-lms-nav-trigger-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 800;
    color: var(--ace-ink);
}

.ace-lms-nav-trigger-meta {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ace-muted);
}

.ace-lms-nav-trigger-end {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ace-muted);
    flex: 0 0 auto;
}

.ace-lms-nav-dropdown.is-open .ace-lms-nav-trigger-end i {
    transform: rotate(180deg);
}

.ace-lms-nav-dropdown.is-open .ace-lms-nav-trigger {
    border-color: rgba(255,122,24,0.22);
    box-shadow: var(--ace-shadow-2), 0 0 0 1px rgba(255,122,24,0.08), 0 18px 44px rgba(255,122,24,0.12);
}

.ace-lms-nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    display: none;
    grid-template-columns: 280px minmax(320px, 1fr);
    width: min(1240px, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
    border: 1px solid rgba(255,122,24,0.12);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,248,242,0.96)),
        radial-gradient(circle at top left, rgba(255,122,24,0.10), transparent 40%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 24px 60px rgba(16,18,27,0.14), inset 0 1px 0 rgba(255,255,255,0.5);
    overflow: hidden;
    z-index: 50;
}

.ace-lms-nav-dropdown.is-open .ace-lms-nav-menu {
    display: grid;
    animation: aceFadeUp 0.22s ease;
}

.ace-lms-nav-menu-modules {
    display: grid;
    align-content: start;
    border-right: 1px solid rgba(120,98,82,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.10));
}

.ace-lms-nav-menu-lessons {
    display: grid;
    min-width: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.30), rgba(255,247,240,0.12));
}

.ace-lms-nav-back {
    display: none;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    border: 0;
    border-bottom: 1px solid rgba(120,98,82,0.08);
    padding: 10px 12px;
    background: rgba(255,122,24,0.06);
    color: var(--ace-ink);
    text-align: left;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.ace-lms-nav-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(120,98,82,0.08);
    padding: 14px 16px;
    background: transparent;
    color: var(--ace-ink-soft);
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.ace-lms-nav-menu-item-copy {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ace-lms-nav-menu-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(255,122,24,0.14), rgba(233,79,55,0.10));
    color: var(--ace-accent);
    flex: 0 0 auto;
}

.ace-lms-nav-menu-item-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ace-lms-nav-menu-item-text strong {
    color: var(--ace-ink);
    font-size: 14px;
    line-height: 1.3;
}

.ace-lms-nav-menu-item-text small {
    margin-top: 2px;
    color: var(--ace-muted);
    font-size: 12px;
    font-weight: 700;
}

.ace-lms-nav-menu-item:hover,
.ace-lms-nav-menu-item.is-active {
    background: linear-gradient(135deg, rgba(255,122,24,0.10), rgba(233,79,55,0.06));
    color: var(--ace-ink);
}

.ace-lms-nav-menu-item:hover {
    transform: translateX(2px);
}

.ace-lms-nav-submenu {
    display: none;
    min-width: 0;
    padding: 16px;
}

.ace-lms-nav-submenu.is-active {
    display: grid;
    gap: 12px;
}

.ace-lms-nav-submenu-head {
    display: grid;
    gap: 3px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(120,98,82,0.08);
}

.ace-lms-nav-submenu-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ace-muted);
}

.ace-lms-nav-submenu-head strong {
    display: inline-flex;
    align-items: top;
    gap: 10px;
    color: var(--ace-ink);
    font-size: 26px;
}

.ace-lms-nav-submenu-head strong i {
    color: var(--ace-accent);
}

.ace-lms-nav-submenu-list {
    display: grid;
    gap: 8px;
}

.ace-lms-nav-lesson {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 11px 12px;
    color: var(--ace-muted);
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}

.ace-lms-nav-lesson-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ace-lms-nav-lesson-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255,122,24,0.10);
    color: var(--ace-accent);
    font-size: 12px;
    font-weight: 800;
    flex: 0 0 auto;
}

.ace-lms-nav-lesson-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    color: currentColor;
}

.ace-lms-nav-lesson small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    color: var(--ace-muted);
}

.ace-lms-nav-lesson:hover {
    transform: translateY(-1px);
    border-color: rgba(255,122,24,0.16);
    background: linear-gradient(135deg, rgba(255,255,255,0.74), rgba(255,243,234,0.84));
    color: var(--ace-ink);
    box-shadow: var(--ace-shadow-1);
}

.ace-lms-nav-lesson.active {
    border-color: rgba(255,122,24,0.24);
    background: linear-gradient(135deg, rgba(255,122,24,0.16), rgba(233,79,55,0.10));
    color: var(--ace-ink);
    box-shadow: 0 0 0 1px rgba(255,122,24,0.08), 0 14px 28px rgba(255,122,24,0.08);
}

.ace-lms-nav-lesson.active .ace-lms-nav-lesson-index {
    background: var(--ace-accent);
    color: #fff;
}

.ace-lms-nav-lesson.locked {
    width:90%;
    opacity: 0.58;
    pointer-events: none;
    background: rgba(120,98,82,0.04);
    border-color: rgba(120,98,82,0.06);
    box-shadow: none;
}

.ace-lms-nav-lesson.locked .ace-lms-nav-lesson-index {
    background: rgba(120,98,82,0.08);
    color: var(--ace-muted);
}

.ace-lms-module {
    position: relative;
    display: block;
    flex: 0 0 auto;
}

.ace-lms-module h2,
.ace-lms-sections h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    color: var(--ace-ink-soft);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ace-lms-module h2 i {
    color: var(--ace-accent);
}

.ace-lms-module button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 10px 14px;
    background: transparent;
    color: var(--ace-ink);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    position: relative;
    box-shadow: none;
}

.ace-lms-module button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 122, 24, 0.14);
    background: rgba(255, 122, 24, 0.06);
    box-shadow: 0 8px 20px rgba(15, 23, 20, 0.06);
}

.ace-lms-module button i:first-child {
    color: var(--ace-accent);
    filter: drop-shadow(0 0 10px rgba(255, 122, 24, 0.18));
}

.ace-lms-module button i:last-child {
    opacity: 0.55;
    font-size: 12px;
}

.ace-lms-module-lessons {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 40;
    display: none;
    width: min(360px, 88vw);
    max-height: none;
    overflow: visible;
    border: 1px solid var(--ace-line);
    border-radius: 18px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,248,242,0.90));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--ace-shadow-3), var(--ace-shadow-inset);
}

.ace-lms-module-lessons a {
    min-height: 44px;
    border-radius: 12px;
    padding: 11px 12px;
}

.ace-lms-module:hover .ace-lms-module-lessons,
.ace-lms-module:focus-within .ace-lms-module-lessons {
    display: grid;
    gap: 8px;
    animation: aceFadeUp 0.22s ease;
}

.ace-lms-module a,
.ace-lms-sections a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: var(--ace-radius-sm);
    padding: 12px 13px;
    color: var(--ace-muted);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.ace-lms-module a:hover,
.ace-lms-sections a:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 122, 24, 0.14);
    background: linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,243,234,0.78));
    color: var(--ace-ink);
    box-shadow: var(--ace-shadow-1);
}

.ace-lms-module a.active,
.ace-lms-sections a.active {
    border-color: rgba(255, 122, 24, 0.22);
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.15), rgba(233, 79, 55, 0.10));
    color: var(--ace-accent);
    box-shadow: 0 0 0 1px rgba(255, 122, 24, 0.08), var(--ace-shadow-1);
}

.ace-lms-module a.locked {
    opacity: 0.52;
    pointer-events: none;
}

.ace-lms-module small {
    white-space: nowrap;
    color: var(--ace-teal);
    font-weight: 800;
    font-size: 12px;
}

.ace-lms-lesson article {
    border: 1px solid var(--ace-line);
    border-radius: var(--ace-radius-xl);
    background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,251,247,0.88) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--ace-shadow-3), var(--ace-shadow-inset);
    overflow: hidden;
}

.ace-lms-lesson-head {
    padding: clamp(28px, 5vw, 52px);
    border-bottom: 1px solid var(--ace-line);
    background:
        radial-gradient(circle at top right, rgba(255, 122, 24, 0.10), transparent 28%),
        linear-gradient(180deg, rgba(255,249,244,0.92), rgba(255,255,255,0.76));
    position: relative;
}

.ace-lms-lesson-head::after {
    content: "";
    position: absolute;
    inset: auto -8% -42px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 79, 55, 0.10), transparent 66%);
    pointer-events: none;
}

.ace-lms-lesson-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 122, 24, 0.14);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255,255,255,0.66);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--ace-teal);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.58);
}

.ace-lms-lesson-head h2 {
    font-family: 'Source Serif 4';
    max-width: 80%;
    margin: 0;
    font-size: clamp(34px, 4.4vw, 62px);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: #fb7701 !important;
    text-wrap: balance;
}

.ace-lms-promise {
    max-width: 860px;
    margin: 18px 0 0;
    color: var(--ace-accent);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.52;
    letter-spacing: -0.02em;
}

.ace-lms-intro {
    max-width: 760px;
    margin-top: 20px;
    color: var(--ace-muted);
    font-size: clamp(16px, 1.3vw, 18px);
    line-height: 1.85;
    font-weight: 500;
}

.ace-lms-intro p {
    margin: 0 0 1em;
}

.ace-lms-section {
    padding: clamp(28px, 5vw, 52px);
    border-bottom: 1px solid var(--ace-line);
    scroll-margin-top: 130px;
    position: relative;
}

.ace-lms-section:last-child {
    border-bottom: 0;
}

.ace-lms-section h3 {
    max-width: 80%;
    margin: 0 0 22px;
    color: var(--ace-ink);
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.3;
    letter-spacing: -0.035em;
    font-weight: 600;
    text-wrap: balance;
    font-family: 'DM Sans';
}

.ace-lms-section-blocks {
    display: grid;
    grid-template-columns: repeat(var(--ace-cols-desktop, 1), minmax(0, 1fr));
    gap: 18px;
}

.ace-lms-layout-rows {
    display: grid;
    gap: 22px;
}

.ace-lms-layout-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 18px;
}

.ace-lms-layout-column {
    display: grid;
    align-content: center;
    flex: 1 1 calc(var(--ace-col-desktop, 100%) - 18px);
    min-width: 0;
    max-width: 100%;
    gap: 18px;
}

.ace-lms-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 8px;
    padding: 0 18px;
    background: var(--ace-accent);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.ace-lms-divider {
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(23, 32, 27, 0.16);
}

.ace-lms-block {
    margin: 0;
    width: var(--ace-block-desktop, 100%);
    max-width: 100%;
    min-width: 0;
    color: var(--ace-ink);
    font-size: 16px;
    line-height: 1.78;
    overflow-wrap: anywhere;
    word-break: normal;
}

.ace-lms-block *,
.ace-lms-intro,
.ace-lms-promise,
.ace-lms-lesson,
.ace-lms-lesson article,
.ace-lms-section,
.ace-lms-layout-rows,
.ace-lms-layout-row,
.ace-lms-layout-column {
    max-width: 100%;
    min-width: 0;
}

.ace-lms-block-rich_text,
.ace-lms-block-rich_text p,
.ace-lms-block-rich_text li,
.ace-lms-block-rich_text div {
    overflow-wrap: anywhere;
    word-break: normal;
}

.ace-lms-layout-column.has-cover-image {
    align-content: stretch;
}

.ace-lms-block-image_block {
    line-height: 1;
    overflow: hidden;
}

.ace-lms-block-image-cover {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
}

.ace-lms-block-image_block .ace-lms-image-block-img,
.ace-lms-block-image_block img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
}

.ace-lms-block-image-cover .ace-lms-image-block-img,
.ace-lms-block-image-cover img {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    object-fit: cover;
    object-position: var(--ace-image-position-desktop, left center);
}

.ace-lms-block-image_block .ace-caption {
    margin-top: 10px;
    line-height: 1.55;
}

.ace-lms-block h2,
.ace-lms-block h3,
.ace-lms-block h4 {
    margin: 0 0 12px;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--ace-ink);
}

.ace-lms-block h2 {
    font-size: clamp(24px, 3vw, 34px);
}

.ace-lms-block h3 {
    font-size: clamp(20px, 2.4vw, 28px);
}

.ace-lms-block h4 {
    font-size: 18px;
}

.ace-lms-block p {
    margin: 0 0 1em;
    color: var(--ace-muted);
}

.ace-callout,
.ace-next-bridge,
.ace-reveal-panel > div,
.ace-accordion,
.ace-learn-card,
.ace-flow-node,
.ace-failure-map > div,
.ace-conflict-split > div,
.ace-table-wrap,
.ace-code-block,
.ace-lms-block blockquote {
    position: relative;
    overflow: hidden;
}

.ace-callout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    border: 1px solid rgba(255, 122, 24, 0.14);
    border-radius: var(--ace-radius-md);
    padding: 18px 18px 18px 16px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,245,238,0.86)),
        var(--ace-gradient-accent-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--ace-shadow-1), var(--ace-shadow-inset);
}

.ace-callout::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--ace-gradient-accent);
}

.ace-callout i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255,255,255,0.72);
    color: var(--ace-accent);
    font-size: 18px;
    box-shadow: var(--ace-shadow-1);
}

.ace-callout strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ace-ink);
    font-size: 16px;
}

.ace-callout p {
    margin: 0;
    color: var(--ace-muted);
}

.ace-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--ace-line);
    border-radius: var(--ace-radius-md);
    background: linear-gradient(135deg, rgba(255,255,255,0.76), rgba(255,250,247,0.84));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--ace-shadow-1), var(--ace-shadow-inset);
}

.ace-table-wrap table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.ace-table-wrap th,
.ace-table-wrap td {
    padding: 15px 16px;
    border-bottom: 1px solid rgba(120, 98, 82, 0.10);
    text-align: left;
    vertical-align: top;
}

.ace-table-wrap tr:last-child td {
    border-bottom: 0;
}

.ace-table-wrap th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255,249,243,0.95), rgba(255,255,255,0.90));
    color: var(--ace-ink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ace-table-wrap td {
    color: var(--ace-muted);
    font-size: 15px;
    line-height: 1.65;
}

.ace-table-wrap tbody tr {
    transition: background-color 0.22s ease, transform 0.22s ease;
}

.ace-table-wrap tbody tr:hover {
    background: rgba(255, 122, 24, 0.04);
}

.ace-table-wrap tbody tr:nth-child(odd) {
    background: rgba(255,255,255,0.46);
}

.ace-table-wrap tbody tr:nth-child(even) {
    background: rgba(255,244,236,0.72);
}

.ace-lms-theme-dark .ace-table-wrap tbody tr:nth-child(odd),
.ace-lms-theme-auto .ace-table-wrap tbody tr:nth-child(odd) {
    background: rgba(255,255,255,0.02);
}

.ace-lms-theme-dark .ace-table-wrap tbody tr:nth-child(even),
.ace-lms-theme-auto .ace-table-wrap tbody tr:nth-child(even) {
    background: rgba(255,122,24,0.06);
}

.ace-toggle-reveal,
.ace-learn-card,
.ace-lms-complete-button {
    border: 0;
    border-radius: var(--ace-radius-md);
    cursor: pointer;
    font: inherit;
}

.ace-toggle-reveal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    min-height: 58px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(23, 19, 16, 0.96), rgba(52, 33, 24, 0.96));
    color: #fff7f2;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: var(--ace-shadow-2);
}

.ace-toggle-reveal:hover {
    transform: translateY(-1px);
    box-shadow: var(--ace-shadow-2), 0 0 0 1px rgba(255, 122, 24, 0.18), 0 0 24px rgba(255, 122, 24, 0.18);
}

.ace-toggle-reveal i {
    color: var(--ace-accent-3);
    filter: drop-shadow(0 0 10px rgba(255, 177, 92, 0.22));
}

.ace-reveal-panel {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.ace-reveal-panel.is-open {
    display: grid;
    animation: aceFadeUp 0.24s ease;
}

.ace-reveal-panel > div {
    border: 1px solid var(--ace-line);
    border-radius: var(--ace-radius-md);
    padding: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.74), rgba(255,248,243,0.84));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--ace-shadow-1), var(--ace-shadow-inset);
}

.ace-accordion {
    border: 1px solid var(--ace-line);
    border-radius: var(--ace-radius-md);
    margin: 12px 0;
    padding: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,248,242,0.82));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--ace-shadow-1), var(--ace-shadow-inset);
}

.ace-accordion[open] {
    border-color: rgba(255, 122, 24, 0.18);
    box-shadow: var(--ace-shadow-2), 0 0 0 1px rgba(255, 122, 24, 0.08);
}

.ace-accordion summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 800;
    color: var(--ace-ink);
    user-select: none;
}

.ace-accordion summary::-webkit-details-marker {
    display: none;
}

.ace-accordion summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.72);
    color: var(--ace-accent);
    font-size: 18px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.42);
}

.ace-accordion[open] summary::after {
    content: "−";
}

.ace-accordion > div {
    padding: 0 22px 18px;
    color: var(--ace-muted);
}

.ace-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ace-learn-card {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 160px;
    padding: 18px;
    border: 1px solid var(--ace-line);
    background: linear-gradient(135deg, rgba(255,255,255,0.74), rgba(255,250,246,0.86));
    color: var(--ace-ink);
    text-align: left;
    box-shadow: var(--ace-shadow-1), var(--ace-shadow-inset);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ace-learn-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,122,24,0), rgba(255,122,24,0.78), rgba(233,79,55,0));
    opacity: 0;
    transition: opacity 0.28s ease;
}

.ace-learn-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 122, 24, 0.18);
    box-shadow: var(--ace-shadow-2), 0 0 0 1px rgba(255, 122, 24, 0.08);
}

.ace-learn-card:hover::before,
.ace-learn-card.is-open::before {
    opacity: 1;
}

.ace-learn-card strong {
    font-size: 17px;
    line-height: 1.3;
    color: var(--ace-ink);
    letter-spacing: -0.02em;
}

.ace-learn-card span {
    color: var(--ace-muted);
    font-size: 14px;
    line-height: 1.65;
    font-weight: 500;
}

.ace-learn-card.is-open {
    border-color: rgba(19, 154, 143, 0.18);
    background: linear-gradient(135deg, rgba(242,255,252,0.94), rgba(234,252,248,0.92));
    box-shadow: var(--ace-shadow-2), 0 0 0 1px rgba(19,154,143,0.10);
}

.ace-checklist {
    display: grid;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.ace-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(120, 98, 82, 0.08);
    border-radius: var(--ace-radius-sm);
    padding: 14px 14px 14px 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.68), rgba(255,247,240,0.78));
    box-shadow: var(--ace-shadow-1), inset 0 1px 0 rgba(255,255,255,0.44);
}

.ace-checklist i {
    color: var(--ace-teal);
    margin-top: 4px;
    filter: drop-shadow(0 0 8px rgba(19, 154, 143, 0.14));
}

.ace-stepper {
    counter-reset: ace-step;
    display: grid;
    gap: 14px;
    padding: 0;
    list-style: none;
}

.ace-stepper li {
    position: relative;
    border-left: 2px solid rgba(255, 122, 24, 0.22);
    padding: 4px 0 4px 20px;
    min-height: 52px;
}

.ace-stepper li::before {
    counter-increment: ace-step;
    content: counter(ace-step);
    position: absolute;
    left: -14px;
    top: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ace-gradient-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(255, 122, 24, 0.22);
}

.ace-stepper strong {
    display: block;
    color: var(--ace-ink);
    margin-bottom: 4px;
}

.ace-stepper span {
    display: block;
    color: var(--ace-muted);
    font-size: 14px;
    line-height: 1.65;
}

.ace-flow {
    display: flex;
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.ace-flow-node,
.ace-failure-map > div,
.ace-conflict-split > div,
.ace-next-bridge {
    border: 1px solid var(--ace-line);
    border-radius: var(--ace-radius-md);
    padding: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.74), rgba(255,249,245,0.84));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--ace-shadow-1), var(--ace-shadow-inset);
}

.ace-flow i {
    align-self: center;
    color: var(--ace-accent);
    font-size: 16px;
    opacity: 0.7;
}

.ace-flow-node {
    display: grid;
    gap: 6px;
    min-width: 190px;
}

.ace-flow-node strong,
.ace-failure-map strong,
.ace-conflict-split strong,
.ace-next-bridge strong {
    color: var(--ace-ink);
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.ace-flow-node span,
.ace-failure-map span,
.ace-conflict-split span,
.ace-next-bridge span {
    color: var(--ace-muted-2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.ace-failure-map,
.ace-conflict-split {
    display: grid;
    gap: 12px;
}

.ace-failure-map {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ace-conflict-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ace-code-block {
    overflow-x: auto;
    border: 1px solid rgba(255, 122, 24, 0.14);
    border-radius: var(--ace-radius-md);
    padding: 20px;
    background:
        radial-gradient(circle at top right, rgba(255, 122, 24, 0.12), transparent 26%),
        linear-gradient(180deg, #131110 0%, #1b1614 100%);
    color: #fff6ef;
    font-size: 14px;
    line-height: 1.72;
    box-shadow: var(--ace-shadow-2);
}

.ace-next-bridge {
    border-color: rgba(255, 122, 24, 0.18);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,244,236,0.84)),
        var(--ace-gradient-accent-soft);
    cursor: default;
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease, opacity 0.22s ease;
}

.ace-next-bridge.is-clickable {
    cursor: pointer;
}

.ace-next-bridge.is-clickable:hover {
    transform: translateY(-2px);
    border-color: rgba(255,122,24,0.28);
    box-shadow: var(--ace-shadow-2), 0 0 0 1px rgba(255,122,24,0.08);
}

.ace-next-bridge.is-disabled {
    opacity: 0.68;
}

.ace-next-bridge strong {
    display: block;
    margin: 8px 0 6px;
    font-size: 22px;
}

.ace-next-bridge p {
    margin: 0;
    color: var(--ace-muted);
}

.ace-lms-block blockquote {
    margin: 0;
    border: 1px solid rgba(217, 164, 65, 0.18);
    border-left: 4px solid var(--ace-gold);
    border-radius: var(--ace-radius-md);
    padding: 20px;
    background: linear-gradient(135deg, rgba(255,250,240,0.94), rgba(255,245,226,0.90));
    box-shadow: var(--ace-shadow-1), var(--ace-shadow-inset);
    font-size: clamp(19px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.55;
    color: var(--ace-ink);
    letter-spacing: -0.02em;
}

.ace-lms-block cite {
    display: block;
    margin-top: 12px;
    color: var(--ace-muted);
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
}

.ace-caption {
    color: var(--ace-muted);
    font-size: 13px;
    line-height: 1.55;
}

.ace-lms-complete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px clamp(24px, 5vw, 46px);
    border-top: 1px solid var(--ace-line);
    background:
        radial-gradient(circle at top left, rgba(255, 122, 24, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(255,250,246,0.92), rgba(255,255,255,0.86));
}

.ace-lms-complete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    min-width: 220px;
    padding: 0 20px;
    background: var(--ace-gradient-accent);
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: var(--ace-shadow-glow), 0 14px 32px rgba(233, 79, 55, 0.18);
}

.ace-lms-complete-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(233, 79, 55, 0.24), 0 0 0 1px rgba(255,255,255,0.18);
}

.ace-lms-complete-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    filter: grayscale(0.08);
    transform: none;
    box-shadow: none;
}

.ace-lms-complete-button.is-complete {
    background: linear-gradient(135deg, #1aa782 0%, #158e72 100%);
    box-shadow: 0 12px 30px rgba(26, 167, 130, 0.22);
}

.ace-lms-complete p {
    margin: 0;
    color: var(--ace-muted);
    font-weight: 500;
}

.ace-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    border: 1px solid var(--ace-line);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.42);
    color: var(--ace-ink);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.46);
    flex: 0 0 auto;
}

.ace-theme-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 122, 24, 0.18);
    background: rgba(255,255,255,0.68);
    box-shadow: var(--ace-shadow-1);
}

.ace-theme-toggle-track {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: rgba(120, 98, 82, 0.18);
}

.ace-theme-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ace-gradient-accent);
    box-shadow: 0 3px 12px rgba(233, 79, 55, 0.26);
    transition: transform 0.18s ease;
}

.ace-theme-toggle[aria-pressed="true"] .ace-theme-toggle-thumb {
    transform: translateX(20px);
}

.ace-theme-toggle-text {
    min-width: 38px;
    text-align: left;
}

.ace-lms-theme-dark .ace-lms-nav-trigger {
    background: linear-gradient(135deg, rgba(25,27,36,0.84), rgba(15,17,24,0.92));
    border-color: rgba(255,122,24,0.14);
    color: rgba(255,255,255,0.92);
    box-shadow: 0 18px 38px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.04);
}

.ace-lms-theme-dark .ace-lms-nav-trigger-label {
    color: rgba(255,255,255,0.94);
}

.ace-lms-theme-dark .ace-lms-nav-trigger-meta,
.ace-lms-theme-dark .ace-lms-nav-trigger-end,
.ace-lms-theme-dark .ace-lms-nav-menu-item-text small,
.ace-lms-theme-dark .ace-lms-nav-lesson small,
.ace-lms-theme-dark .ace-lms-nav-submenu-kicker {
    color: rgba(214,217,228,0.64);
}

.ace-lms-theme-dark .ace-lms-nav-menu {
    background:
        linear-gradient(180deg, rgba(21,24,33,0.94), rgba(12,14,20,0.96)),
        radial-gradient(circle at top left, rgba(255,122,24,0.12), transparent 42%);
    border-color: rgba(255,122,24,0.12);
    box-shadow: 0 28px 70px rgba(0,0,0,0.44), inset 0 1px 0 rgba(255,255,255,0.03);
}

.ace-lms-theme-dark .ace-lms-nav-menu-modules {
    border-right-color: rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.ace-lms-theme-dark .ace-lms-nav-menu-lessons {
    background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,122,24,0.02));
}

.ace-lms-theme-dark .ace-lms-nav-menu-item {
    color: rgba(214,217,228,0.78);
    border-bottom-color: rgba(255,255,255,0.05);
}

.ace-lms-theme-dark .ace-lms-nav-menu-item-text strong,
.ace-lms-theme-dark .ace-lms-nav-submenu-head strong,
.ace-lms-theme-dark .ace-lms-nav-lesson:hover,
.ace-lms-theme-dark .ace-lms-nav-lesson.active {
    color: rgba(255,255,255,0.94);
}

.ace-lms-theme-dark .ace-lms-nav-menu-item:hover,
.ace-lms-theme-dark .ace-lms-nav-menu-item.is-active {
    background: linear-gradient(135deg, rgba(255,122,24,0.14), rgba(233,79,55,0.08));
}

.ace-lms-theme-dark .ace-lms-nav-lesson {
    color: rgba(214,217,228,0.72);
}

.ace-lms-theme-dark .ace-lms-nav-lesson:hover {
    border-color: rgba(255,122,24,0.18);
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,122,24,0.06));
    box-shadow: 0 12px 24px rgba(0,0,0,0.22);
}

.ace-lms-theme-dark .ace-lms-nav-lesson.active {
    border-color: rgba(255,122,24,0.24);
    background: linear-gradient(135deg, rgba(255,122,24,0.18), rgba(233,79,55,0.10));
    box-shadow: 0 14px 28px rgba(0,0,0,0.24);
}

.ace-lms-theme-dark .ace-lms-nav-lesson.locked {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.04);
}

.ace-lesson-progress {
    display: grid;
    grid-template-columns: auto auto minmax(120px, 1fr) auto;
    align-items: center;
    gap: 14px;
    position: fixed !important;
    left: 50%;
    bottom: var(--ace-progress-bottom);
    transform: translateX(-50%);
    transition: transform 0.22s ease, opacity 0.22s ease;
    z-index: 9999;
    width: min(760px, calc(100vw - 28px));
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 12px 16px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,248,242,0.66));
    backdrop-filter: blur(24px) saturate(1.15);
    -webkit-backdrop-filter: blur(24px) saturate(1.15);
    box-shadow: var(--ace-shadow-3), 0 0 0 1px rgba(255,255,255,0.18);
}

.ace-lesson-progress.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, calc(100% + 18px));
}

.ace-lesson-progress::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.42);
}

.ace-lesson-progress span {
    display: block;
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--ace-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ace-lesson-progress strong {
    font-size: 20px;
    line-height: 1;
    color: var(--ace-ink);
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.ace-lesson-progress-track {
    min-width: 0;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(120, 98, 82, 0.14);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.ace-lesson-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ace-gradient-accent);
    box-shadow: 0 0 18px rgba(255, 122, 24, 0.26);
    transition: width 0.22s ease;
}

.ace-lesson-progress-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(33, 28, 24, 0.08);
    color: var(--ace-ink);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ace-lesson-progress-close:hover {
    background: rgba(33, 28, 24, 0.14);
    transform: scale(1.04);
}

.ace-lms-theme-dark {
    --ace-bg: #0d0d0f;
    --ace-bg-2: #111214;
    --ace-panel: rgba(22, 22, 26, 0.68);
    --ace-panel-solid: #16161a;
    --ace-panel-soft: rgba(27, 27, 32, 0.80);
    --ace-panel-deep: rgba(20, 20, 24, 0.90);
    --ace-glass-border: rgba(255, 255, 255, 0.08);
    --ace-line: rgba(255, 255, 255, 0.08);
    --ace-line-strong: rgba(255, 255, 255, 0.14);

    --ace-ink: #fbf7f4;
    --ace-ink-soft: #efe7e2;
    --ace-muted: #b1a59d;
    --ace-muted-2: #8c8077;

    --ace-shadow-1: 0 12px 30px rgba(0, 0, 0, 0.22);
    --ace-shadow-2: 0 22px 52px rgba(0, 0, 0, 0.28);
    --ace-shadow-3: 0 34px 90px rgba(0, 0, 0, 0.34);
    --ace-shadow-glow: 0 14px 38px rgba(255, 122, 24, 0.18);
    --ace-gradient-hero:
        radial-gradient(circle at top left, rgba(255, 122, 24, 0.16), transparent 32%),
        radial-gradient(circle at bottom right, rgba(233, 79, 55, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(18,18,22,0.90) 0%, rgba(24,24,29,0.84) 52%, rgba(31,22,18,0.88) 100%);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    .ace-lms-theme-auto {
        --ace-bg: #0d0d0f;
        --ace-bg-2: #111214;
        --ace-panel: rgba(22, 22, 26, 0.68);
        --ace-panel-solid: #16161a;
        --ace-panel-soft: rgba(27, 27, 32, 0.80);
        --ace-panel-deep: rgba(20, 20, 24, 0.90);
        --ace-glass-border: rgba(255, 255, 255, 0.08);
        --ace-line: rgba(255, 255, 255, 0.08);
        --ace-line-strong: rgba(255, 255, 255, 0.14);

        --ace-ink: #fbf7f4;
        --ace-ink-soft: #efe7e2;
        --ace-muted: #b1a59d;
        --ace-muted-2: #8c8077;

        --ace-shadow-1: 0 12px 30px rgba(0, 0, 0, 0.22);
        --ace-shadow-2: 0 22px 52px rgba(0, 0, 0, 0.28);
        --ace-shadow-3: 0 34px 90px rgba(0, 0, 0, 0.34);
        --ace-shadow-glow: 0 14px 38px rgba(255, 122, 24, 0.18);
        --ace-gradient-hero:
            radial-gradient(circle at top left, rgba(255, 122, 24, 0.16), transparent 32%),
            radial-gradient(circle at bottom right, rgba(233, 79, 55, 0.12), transparent 30%),
            linear-gradient(135deg, rgba(18,18,22,0.90) 0%, rgba(24,24,29,0.84) 52%, rgba(31,22,18,0.88) 100%);
        color-scheme: dark;
    }
}

.ace-lms-theme-dark .ace-lms,
.ace-lms-theme-auto {
    color: var(--ace-ink);
}

.ace-lms-theme-dark .ace-lms-hero,
.ace-lms-theme-auto .ace-lms-hero {
    border-color: var(--ace-line);
}

.ace-lms-theme-dark .ace-lms-progress-card,
.ace-lms-theme-dark .ace-lms-lesson article,
.ace-lms-theme-dark .ace-lms-sections,
.ace-lms-theme-dark .ace-lms-modules,
.ace-lms-theme-dark .ace-reveal-panel > div,
.ace-lms-theme-dark .ace-accordion,
.ace-lms-theme-dark .ace-learn-card,
.ace-lms-theme-dark .ace-flow-node,
.ace-lms-theme-dark .ace-failure-map > div,
.ace-lms-theme-dark .ace-conflict-split > div,
.ace-lms-theme-dark .ace-table-wrap,
.ace-lms-theme-dark .ace-callout,
.ace-lms-theme-dark .ace-next-bridge,
.ace-lms-theme-dark .ace-lesson-progress,
.ace-lms-theme-auto .ace-lms-progress-card,
.ace-lms-theme-auto .ace-lms-lesson article,
.ace-lms-theme-auto .ace-lms-sections,
.ace-lms-theme-auto .ace-lms-modules,
.ace-lms-theme-auto .ace-reveal-panel > div,
.ace-lms-theme-auto .ace-accordion,
.ace-lms-theme-auto .ace-learn-card,
.ace-lms-theme-auto .ace-flow-node,
.ace-lms-theme-auto .ace-failure-map > div,
.ace-lms-theme-auto .ace-conflict-split > div,
.ace-lms-theme-auto .ace-table-wrap,
.ace-lms-theme-auto .ace-callout,
.ace-lms-theme-auto .ace-next-bridge,
.ace-lms-theme-auto .ace-lesson-progress {
    border-color: var(--ace-line);
    background:
        linear-gradient(135deg, rgba(22,22,26,0.72), rgba(28,28,34,0.82));
    box-shadow: var(--ace-shadow-2), inset 0 1px 0 rgba(255,255,255,0.04);
}

.ace-lms-theme-dark .ace-lms-lesson-head,
.ace-lms-theme-dark .ace-lms-complete,
.ace-lms-theme-dark .ace-checklist li,
.ace-lms-theme-auto .ace-lms-lesson-head,
.ace-lms-theme-auto .ace-lms-complete,
.ace-lms-theme-auto .ace-checklist li {
    background:
        radial-gradient(circle at top right, rgba(255, 122, 24, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(24,24,28,0.86), rgba(18,18,22,0.92));
}

.ace-lms-theme-dark .ace-lms-empty,
.ace-lms-theme-auto .ace-lms-empty {
    background: linear-gradient(135deg, rgba(24,24,28,0.74), rgba(18,18,22,0.84));
}

.ace-lms-theme-dark .ace-lms-eyebrow,
.ace-lms-theme-dark .ace-lms-lesson-head span,
.ace-lms-theme-dark .ace-theme-toggle,
.ace-lms-theme-dark .ace-accordion summary::after,
.ace-lms-theme-auto .ace-lms-eyebrow,
.ace-lms-theme-auto .ace-lms-lesson-head span,
.ace-lms-theme-auto .ace-theme-toggle,
.ace-lms-theme-auto .ace-accordion summary::after {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
    color: var(--ace-ink);
}

.ace-lms-theme-dark,
.ace-lms-theme-dark h1,
.ace-lms-theme-dark h2,
.ace-lms-theme-dark h3,
.ace-lms-theme-dark h4,
.ace-lms-theme-dark strong,
.ace-lms-theme-dark summary,
.ace-lms-theme-dark button,
.ace-lms-theme-auto h1,
.ace-lms-theme-auto h2,
.ace-lms-theme-auto h3,
.ace-lms-theme-auto h4,
.ace-lms-theme-auto strong {
    color: var(--ace-ink);
}

.ace-lms-theme-dark p,
.ace-lms-theme-dark li,
.ace-lms-theme-dark td,
.ace-lms-theme-dark th,
.ace-lms-theme-dark .ace-caption,
.ace-lms-theme-dark .ace-lms-intro,
.ace-lms-theme-dark .ace-lms-module a,
.ace-lms-theme-dark .ace-lms-complete p,
.ace-lms-theme-dark .ace-learn-card span,
.ace-lms-theme-auto p,
.ace-lms-theme-auto li,
.ace-lms-theme-auto td,
.ace-lms-theme-auto th,
.ace-lms-theme-auto .ace-caption,
.ace-lms-theme-auto .ace-lms-intro,
.ace-lms-theme-auto .ace-lms-module a,
.ace-lms-theme-auto .ace-lms-complete p,
.ace-lms-theme-auto .ace-learn-card span {
    color: var(--ace-muted);
}

.ace-lms-theme-dark .ace-toggle-reveal,
.ace-lms-theme-auto .ace-toggle-reveal {
    background: linear-gradient(135deg, rgba(255,122,24,0.18), rgba(17,17,20,0.96) 32%, rgba(30,22,18,0.96) 100%);
    color: #fff8f4;
}

.ace-lms-theme-dark .ace-table-wrap th,
.ace-lms-theme-auto .ace-table-wrap th {
    background: linear-gradient(180deg, rgba(28,28,34,0.96), rgba(22,22,26,0.96));
    color: var(--ace-ink);
}

.ace-lms-theme-dark .ace-table-wrap tbody tr:hover,
.ace-lms-theme-auto .ace-table-wrap tbody tr:hover {
    background: rgba(255, 122, 24, 0.05);
}

.ace-lms-theme-dark .ace-lms-module button,
.ace-lms-theme-auto .ace-lms-module button {
    background: transparent;
    color: var(--ace-ink);
    border-color: transparent;
}

.ace-lms-theme-dark .ace-lms-module button:hover,
.ace-lms-theme-auto .ace-lms-module button:hover {
    background: rgba(255, 122, 24, 0.10);
    border-color: rgba(255, 122, 24, 0.14);
    box-shadow: 0 10px 24px rgba(0,0,0,0.20);
}

.ace-lms-theme-dark .ace-lms-nav-trigger,
.ace-lms-theme-auto .ace-lms-nav-trigger,
.ace-lms-theme-dark .ace-lms-nav-menu,
.ace-lms-theme-auto .ace-lms-nav-menu,
.ace-lms-theme-dark .ace-lms-section-fab,
.ace-lms-theme-auto .ace-lms-section-fab,
.ace-lms-theme-dark .ace-lms-section-fab-menu,
.ace-lms-theme-auto .ace-lms-section-fab-menu {
    background: linear-gradient(135deg, rgba(22,22,26,0.96), rgba(28,28,34,0.97));
    border-color: var(--ace-line);
    box-shadow: var(--ace-shadow-2), inset 0 1px 0 rgba(255,255,255,0.04);
}

.ace-lms-theme-dark .ace-lms-nav-menu-item:hover,
.ace-lms-theme-dark .ace-lms-nav-menu-item.is-active,
.ace-lms-theme-auto .ace-lms-nav-menu-item:hover,
.ace-lms-theme-auto .ace-lms-nav-menu-item.is-active {
    background: rgba(255,122,24,0.12);
}

.ace-lms-theme-dark .ace-lms-nav-submenu,
.ace-lms-theme-auto .ace-lms-nav-submenu {
    background: rgba(255,255,255,0.02);
}
.ace-lms-sections a.is-active {
    border-color: rgba(255, 122, 24, 0.22);
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.15), rgba(233, 79, 55, 0.10));
    color: var(--ace-accent);
    box-shadow: 0 0 0 1px rgba(255, 122, 24, 0.08), var(--ace-shadow-1);
}
.ace-lms-section-fab {
    position: fixed;
    right: 14px;
    bottom: 88px;
    z-index: 9998;
    display: none;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--ace-line);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,248,242,0.90));
    color: var(--ace-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    box-shadow: var(--ace-shadow-2), var(--ace-shadow-inset);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    cursor: pointer;
}

.ace-lms-section-fab-menu {
    position: fixed;
    right: 14px;
    bottom: 142px;
    z-index: 9998;
    display: none;
    width: min(240px, calc(100vw - 28px));
    padding: 10px;
    border: 1px solid var(--ace-line);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,248,242,0.94));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--ace-shadow-3), var(--ace-shadow-inset);
}

.ace-lms-section-fab-menu.is-open {
    display: grid;
    gap: 8px;
}

.ace-lms-section-fab-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--ace-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.ace-lms-section-fab-menu a:hover,
.ace-lms-section-fab-menu a.is-active {
    background: rgba(255,122,24,0.08);
    border-color: rgba(255,122,24,0.14);
    color: var(--ace-ink);
}
.ace-lms-modules-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid var(--ace-line);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,248,242,0.82));
    color: var(--ace-ink);
    cursor: pointer;
    box-shadow: var(--ace-shadow-1), var(--ace-shadow-inset);
}

.ace-lms-modules-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 122, 24, 0.16);
    background: rgba(255, 122, 24, 0.06);
}

.lqd-page-not-loaded {
    overflow: visible !important;
}

.ace-lms,
.ace-lms-shell,
.ace-lms-lesson,
.ace-lms-lesson article {
    overflow: visible !important;
}

@keyframes aceFadeUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1240px) {
    .ace-lms-shell {
        grid-template-columns: 1fr;
    }

    .ace-lms-sections {
        position: static !important;
        order: 3;
    }
}

@media (max-width: 1100px) {
    .ace-lms-modules {
        top: 0;
        justify-content: space-between;
        padding: 10px;
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }

    .ace-lms-modules-toggle {
        display: inline-flex;
        order: 3;
    }

    .ace-theme-toggle {
        order: 2;
        margin-left: auto;
    }

    .ace-lms-nav-trail {
        display: none;
        width: 100%;
        max-width: 100%;
        order: 4;
    }

    .ace-lms-modules.is-open .ace-lms-nav-trail {
        display: flex;
    }

    .ace-lms-modules.is-open .ace-lms-nav-dropdown {
        width: 100%;
    }

    .ace-lms-modules.is-open .ace-lms-nav-menu {
        position: relative;
        top: 8px;
        left: 0;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        border-radius: 18px;
    }

    .ace-lms-modules.is-open .ace-lms-nav-menu-modules {
        border-right: 0;
        border-bottom: 1px solid rgba(120,98,82,0.08);
    }

    .ace-lms-modules.is-open .ace-lms-nav-submenu {
        display: none;
    }

    .ace-lms-modules.is-open .ace-lms-nav-submenu.is-active {
        display: grid;
    }

    .ace-lms-nav-trigger {
        min-height: 54px;
        max-width: 100%;
    }

    .ace-lms-layout-column {
        flex-basis: calc(var(--ace-col-tablet, 100%) - 18px);
    }

    .ace-lms-block {
        width: var(--ace-block-tablet, 100%);
    }

    .ace-lms-block-image-cover .ace-lms-image-block-img,
    .ace-lms-block-image-cover img {
        object-position: var(--ace-image-position-tablet, left center);
    }
}

@media (max-width: 760px) {
    .ace-lms {
        padding: 14px;
        padding-bottom: 118px;
        overflow-x: clip !important;
    }

    .ace-lms-modules {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        border-radius: 18px;
        overflow: visible;
    }

    .ace-lms-modules-toggle {
        display: none !important;
    }

    .ace-theme-toggle {
        order: 2;
        margin-left: auto;
        flex: 0 0 auto;
    }

    .ace-lms-nav-trail {
        display: flex !important;
        flex: 1 1 auto;
        order: 1;
        min-width: 0;
        width: auto;
        max-width: 100%;
    }

    .ace-lms-modules.is-open .ace-lms-nav-trail {
        display: flex;
    }

    .ace-lms-nav-dropdown,
    .ace-lms-modules.is-open .ace-lms-nav-dropdown {
        display: block;
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }

    .ace-lms-nav-trigger {
        width: 100%;
        min-width: 0;
        min-height: 52px;
        border-radius: 14px;
        padding: 9px 11px;
    }

    .ace-lms-nav-trigger-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .ace-lms-nav-trigger-label,
    .ace-lms-nav-trigger-meta {
        max-width: 100%;
    }

    .ace-lms-nav-menu,
    .ace-lms-modules.is-open .ace-lms-nav-menu {
        position: fixed;
        inset: auto 14px auto 14px;
        top: calc(var(--wp-admin--admin-bar--height, 0px) + 76px);
        display: none;
        grid-template-columns: 1fr;
        width: auto !important;
        max-width: none;
        max-height: min(72vh, 620px);
        overflow-y: auto;
        overflow-x: hidden;
        border-radius: 16px;
        z-index: 10000;
    }

    .ace-lms-nav-dropdown.is-open .ace-lms-nav-menu,
    .ace-lms-modules.is-open .ace-lms-nav-dropdown.is-open .ace-lms-nav-menu {
        display: grid;
    }

    .ace-lms-nav-menu-modules,
    .ace-lms-modules.is-open .ace-lms-nav-menu-modules {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid rgba(120,98,82,0.08);
    }

    .ace-lms-nav-menu-lessons {
        display: none;
        width: 100%;
        min-width: 0;
    }

    .ace-lms-nav-menu.is-drilled .ace-lms-nav-menu-modules {
        display: none;
    }

    .ace-lms-nav-menu.is-drilled .ace-lms-nav-menu-lessons {
        display: block;
    }

    .ace-lms-nav-menu.is-drilled .ace-lms-nav-back {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex !important;
    }

    .ace-lms-nav-submenu,
    .ace-lms-modules.is-open .ace-lms-nav-submenu {
        display: none;
        width: 100%;
        padding: 12px;
    }

    .ace-lms-nav-submenu.is-active,
    .ace-lms-modules.is-open .ace-lms-nav-submenu.is-active {
        display: grid;
    }

    .ace-lms-nav-menu-item:hover {
        transform: none;
    }

    .ace-lms-nav-lesson {
        align-items: flex-start;
        width: 100%;
        max-width: 100%;
        min-height: auto;
        padding: 11px 12px;
    }

    .ace-lms-nav-lesson-copy {
        align-items: flex-start;
        min-width: 0;
        flex: 1 1 auto;
    }

    .ace-lms-nav-lesson-text {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
        line-height: 1.35;
    }

    .ace-lms-nav-lesson small {
        margin-top: 2px;
        white-space: nowrap;
    }

    .ace-lms-section-fab {
        left: 14px;
        right: auto;
        bottom: 64px;
        display: inline-flex;
        max-width: calc(100vw - 28px);
        padding: 15px 30px;
    }

    .ace-lms-section-fab-menu {
        left: 14px;
        right: auto;
        bottom: 134px;
        width: min(280px, calc(100vw - 28px));
    }

    .ace-lms .ace-lms-sections {
        display: none;
    }
    .ace-lms-hero,
    .ace-reveal-panel,
    .ace-card-grid,
    .ace-failure-map,
    .ace-conflict-split,
    .ace-lms-section-blocks {
        grid-template-columns: 1fr;
    }

    .ace-lms-layout-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ace-lms-layout-column {
        width: 100%;
        flex-basis: 100%;
    }

    .ace-lms-block {
        width: 100%;
    }

    .ace-lms-block-image_block {
        width: 100% !important;
    }

    .ace-lms-block-image-cover .ace-lms-image-block-img,
    .ace-lms-block-image-cover img {
        object-position: var(--ace-image-position-mobile, left center);
    }

    .ace-flow {
        flex-direction: column;
    }

    .ace-flow i {
        transform: rotate(90deg);
    }

    .ace-lms-complete {
        align-items: flex-start;
        flex-direction: column;
    }

    .ace-toggle-reveal {
        align-items: stretch;
        flex-direction: column;
    }

    .ace-lms-hero h1 {
        font-size: clamp(34px, 11vw, 54px);
    }

    .ace-lms-lesson-head h2 {
        font-size: clamp(30px, 9vw, 42px);
        max-width: 100%;
    }

    .ace-lms-section h3 {
        font-size: clamp(24px, 4vw, 34px);
        max-width: 100% !important;
        width: 100%;
    }

    .ace-lms .ace-lms-sections {
        position: static !important;
    }

    .ace-lesson-progress {
        grid-template-columns: auto auto minmax(70px, 1fr) auto;
        gap: 8px;
        border-radius: 18px 18px 0 0;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        bottom: 0;
        width: 100vw;
        max-width: 100vw;
    }

    .ace-lesson-progress span {
        font-size: 10px;
        white-space: nowrap;
    }

    .ace-lesson-progress strong {
        font-size: 16px;
    }

    .ace-lesson-progress-close {
        width: 30px;
        height: 30px;
    }

    .ace-lms-complete-button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .ace-lms-modules {
        padding: 8px;
        gap: 8px;
    }

    .ace-lms-nav-trigger {
        gap: 8px;
        padding: 8px 9px;
    }

    .ace-lms-nav-trigger-icon {
        display: none;
    }

    .ace-lms-nav-trigger-label {
        font-size: 13px;
    }

    .ace-lms-nav-trigger-meta {
        font-size: 11px;
    }

    .ace-theme-toggle {
        min-width: 0;
    }

    .ace-lms-modules,
    .ace-lms-sections,
    .ace-lms-lesson article,
    .ace-lms-progress-card,
    .ace-callout,
    .ace-reveal-panel > div,
    .ace-accordion,
    .ace-learn-card,
    .ace-flow-node,
    .ace-failure-map > div,
    .ace-conflict-split > div,
    .ace-next-bridge,
    .ace-table-wrap,
    .ace-code-block,
    .ace-lms-block blockquote {
        border-radius: 16px;
    }

    .ace-lms-hero,
    .ace-lms-lesson-head,
    .ace-lms-section,
    .ace-lms-complete {
        padding-left: 20px;
        padding-right: 20px;
    }
}
