@import url("https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@3.44.0/dist/tabler-icons.min.css");

:root {
    --bg: #eef3f8;
    --panel: #ffffff;
    --ink: #07152f;
    --muted: #64748b;
    --line: #d8e2ee;
    --primary: #14213d;
    --blue: #28679d;
    --gold: #c7932c;
    --green: #078546;
    --red: #b42318;
    --shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

/* Mobile LMS navigation: stronger contrast and colorful icons. */
@media (max-width: 900px) {
    .student-actions .support-action-button {
        display: none !important;
    }

    .mobile-tabbar,
    .program-fixed-tabbar.is-visible,
    body:has(main.program-dashboard) .mobile-tabbar,
    body:has(main.module-content-page) .mobile-tabbar {
        border: 2px solid rgba(37, 99, 235, .28) !important;
        border-radius: 20px !important;
        background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%) !important;
        box-shadow: 0 18px 44px rgba(15, 23, 42, .2), 0 0 0 4px rgba(59, 130, 246, .08) !important;
    }

    .mobile-tabbar a,
    .program-fixed-tabbar.is-visible a,
    body:has(main.program-dashboard) .mobile-tabbar a,
    body:has(main.module-content-page) .mobile-tabbar a {
        border: 1px solid transparent !important;
        border-radius: 14px !important;
        color: #12345f !important;
    }

    .mobile-tabbar a:first-child,
    .program-fixed-tabbar.is-visible a:first-child {
        border-color: rgba(37, 99, 235, .18) !important;
        background: #dbeafe !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7) !important;
    }

    .mobile-tabbar .nav-mini,
    .program-fixed-tabbar.is-visible .nav-mini {
        width: 23px !important;
        height: 23px !important;
        margin: 0 !important;
        border-radius: 9px !important;
        color: #fff !important;
        box-shadow: 0 8px 16px rgba(15, 23, 42, .15), inset 0 0 0 1px rgba(255, 255, 255, .35) !important;
    }

    .mobile-tabbar .nav-programs,
    .program-fixed-tabbar.is-visible .nav-programs {
        background: linear-gradient(135deg, #2563eb, #38bdf8) !important;
    }

    .mobile-tabbar .nav-payments,
    .program-fixed-tabbar.is-visible .nav-payments {
        background: linear-gradient(135deg, #0f766e, #22c55e) !important;
    }

    .mobile-tabbar .nav-certificates,
    .program-fixed-tabbar.is-visible .nav-certificates {
        background: linear-gradient(135deg, #7c3aed, #f59e0b) !important;
    }

    .mobile-tabbar .nav-support,
    .program-fixed-tabbar.is-visible .nav-support {
        background: linear-gradient(135deg, #0284c7, #64748b) !important;
    }

    .mobile-tabbar .nav-live,
    .program-fixed-tabbar.is-visible .nav-live,
    .mobile-tabbar .live-tab-link .nav-mini,
    .program-fixed-tabbar .live-tab-link .nav-mini {
        background: linear-gradient(135deg, #0ea5e9, #2563eb 58%, #22c55e) !important;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; }

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        linear-gradient(90deg, rgba(20,33,61,.92), rgba(20,33,61,.68)),
        url("../img/logo.png") 96% 8% / 180px auto no-repeat,
        #101a2d;
}

.login-shell {
    width: min(1080px, 100%);
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 430px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    box-shadow: 0 26px 70px rgba(0,0,0,.28);
}

.login-hero {
    display: grid;
    align-content: space-between;
    padding: 34px;
    color: #fff;
}

.login-brand img {
    width: 190px;
    max-width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: #fff;
}

.hero-copy {
    max-width: 620px;
}

.eyebrow {
    display: block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
}

.hero-copy h1,
.welcome-panel h1,
.program-hero h1 {
    margin: 8px 0 12px;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.02;
}

.hero-copy p,
.welcome-panel p,
.program-hero p {
    max-width: 780px;
    margin: 0;
    color: #d6e1ef;
    font-size: 17px;
    line-height: 1.55;
}

.login-card {
    display: grid;
    align-content: center;
    gap: 14px;
    padding: 38px;
    background: #fff;
}

.card-icon {
    width: 42px;
    height: 42px;
    position: relative;
    border-radius: 10px;
    background: #e9f2fb;
}

.card-icon::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 8px;
    width: 18px;
    height: 11px;
    background: var(--blue);
    clip-path: polygon(50% 0, 100% 35%, 50% 72%, 0 35%);
}

.card-icon::after {
    content: "";
    position: absolute;
    left: 15px;
    bottom: 9px;
    width: 12px;
    height: 10px;
    border-radius: 10px 10px 4px 4px;
    background: var(--blue);
}

.login-card h2 {
    margin: 0;
    font-size: 28px;
}

.login-card p {
    margin: 0;
    color: var(--muted);
}

.login-card form {
    display: grid;
    gap: 14px;
    margin-top: 6px;
}

label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: 13px;
    font-weight: 900;
}

input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #cfd9e7;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
}

.primary-button,
.program-action,
.module-action,
.logout-button,
.back-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.alert {
    padding: 11px 13px;
    border-radius: 8px;
    font-weight: 800;
}

.alert.error {
    border: 1px solid #ffb4ad;
    background: #fff0ef;
    color: var(--red);
}

.student-topbar {
    height: 74px;
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
}

.brand-area {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 900;
}

.brand img {
    width: auto;
    height: 40px;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}

.brand-title {
    position: relative;
    display: grid;
    gap: 1px;
    padding-left: 14px;
    color: #07152f;
}

.brand-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2f7dcc, #3ab54a);
}

.brand-title strong {
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0;
}

.brand-title small {
    width: max-content;
    border-radius: 999px;
    padding: 3px 8px;
    background: #edf8ee;
    color: #32823b;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
}

.brand-more-courses {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 2px;
    padding: 0 17px 0 13px;
    border: 1px solid rgba(37, 99, 235, .22);
    border-radius: 999px;
    background: linear-gradient(135deg, #e0f7ff 0%, #e7fff1 100%);
    color: #075caa;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .13);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.brand-more-courses:hover {
    border-color: rgba(14, 165, 233, .45);
    box-shadow: 0 14px 26px rgba(37, 99, 235, .18);
    transform: translateY(-1px);
}

.top-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.top-nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 8px;
    color: #42526e;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.top-nav a:hover {
    background: #edf4fb;
    color: var(--primary);
}

.student-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.student-actions {
    display: inline-flex;
    align-items: center;
    justify-content: end;
    gap: 8px;
}

.topbar-logout {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #f1c3c3;
    border-radius: 10px;
    background: #fff7f7;
    color: #b42318;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.topbar-logout:hover {
    background: #fee4e2;
}

.student-chip > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f6ead4;
    color: #9b6a0f;
    font-weight: 900;
}

.student-chip strong,
.student-chip small {
    display: block;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-chip small {
    color: var(--muted);
    font-size: 12px;
}

.mobile-tabbar {
    display: none;
}

.nav-mini {
    width: 18px;
    height: 18px;
    position: relative;
    display: inline-block;
    flex: 0 0 18px;
    margin-right: 7px;
    border-radius: 5px;
    background: #edf4fb;
    color: #3678bd;
}

.nav-mini::before,
.nav-mini::after {
    content: "";
    position: absolute;
    background: currentColor;
}

.nav-programs::before {
    inset: 4px;
    border: 2px solid currentColor;
    border-radius: 2px;
    background: transparent;
}

.nav-payments::before {
    left: 4px;
    top: 5px;
    width: 10px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 2px;
    background: transparent;
}

.nav-certificates::before {
    left: 5px;
    top: 3px;
    width: 8px;
    height: 11px;
    border: 2px solid currentColor;
    border-radius: 2px;
    background: transparent;
}

.nav-support::before {
    left: 4px;
    top: 5px;
    width: 10px;
    height: 8px;
    border-radius: 8px 8px 8px 2px;
}

.top-nav .nav-mini,
.mobile-tabbar .nav-mini {
    border-radius: 7px;
    background: #eaf4ff;
}

.top-nav .nav-mini::before,
.top-nav .nav-mini::after,
.mobile-tabbar .nav-mini::before,
.mobile-tabbar .nav-mini::after {
    box-sizing: border-box;
}

.nav-programs::before {
    left: 4px;
    top: 5px;
    width: 10px;
    height: 9px;
    border: 2px solid currentColor;
    border-top-width: 3px;
    border-radius: 2px;
    background: transparent;
}

.nav-programs::after {
    left: 7px;
    top: 3px;
    width: 4px;
    height: 3px;
    border-radius: 2px 2px 0 0;
}

.nav-payments::before {
    left: 4px;
    top: 4px;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: transparent;
}

.nav-payments::after {
    left: 8px;
    top: 6px;
    width: 2px;
    height: 6px;
    border-radius: 1px;
    box-shadow: -2px 2px 0 -1px currentColor, 2px 2px 0 -1px currentColor;
}

.nav-certificates::before {
    left: 5px;
    top: 3px;
    width: 8px;
    height: 11px;
    border: 2px solid currentColor;
    border-radius: 2px;
    background: transparent;
}

.nav-certificates::after {
    right: 4px;
    bottom: 3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c7932c;
}

.nav-live::before {
    left: 3px;
    top: 5px;
    width: 11px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 3px;
    background: transparent;
}

.nav-live::after {
    right: 2px;
    top: 7px;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid currentColor;
    background: transparent;
}

.mobile-tabbar .live-tab-link,
.program-fixed-tabbar .live-tab-link {
    color: #0f3fb8;
    background: linear-gradient(180deg, #e0f2fe 0%, #bfdbfe 100%);
    box-shadow: inset 0 0 0 1px rgba(37,99,235,.18);
}

.mobile-tabbar .live-tab-link .nav-mini,
.program-fixed-tabbar .live-tab-link .nav-mini {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    box-shadow: 0 8px 18px rgba(37,99,235,.34), 0 0 0 3px rgba(14,165,233,.14);
}

.mobile-tabbar .live-tab-link .nav-live::before,
.program-fixed-tabbar .live-tab-link .nav-live::before {
    left: 4px;
    top: 6px;
    width: 13px;
    height: 9px;
}

.mobile-tabbar .live-tab-link .nav-live::after,
.program-fixed-tabbar .live-tab-link .nav-live::after {
    right: 3px;
    top: 8px;
    border-top-width: 5px;
    border-bottom-width: 5px;
    border-left-width: 7px;
}

.nav-support::before {
    left: 4px;
    top: 6px;
    width: 10px;
    height: 7px;
    border-radius: 8px 8px 8px 2px;
}

.nav-support::after {
    right: 3px;
    top: 4px;
    width: 4px;
    height: 4px;
    border: 2px solid currentColor;
    border-left: 0;
    border-bottom: 0;
    border-radius: 0 5px 0 0;
    background: transparent;
}

.nav-more-courses {
    width: 25px;
    height: 25px;
    color: #fff;
    background: linear-gradient(135deg, #16a34a 0%, #2563eb 100%);
    border-radius: 9px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}

.nav-more-courses::before {
    left: 5px;
    top: 7px;
    width: 15px;
    height: 8px;
    border-radius: 2px 2px 5px 5px;
    background: currentColor;
    transform: skewX(-16deg);
}

.nav-more-courses::after {
    left: 4px;
    top: 5px;
    width: 17px;
    height: 7px;
    border-radius: 2px;
    background: currentColor;
    clip-path: polygon(50% 0, 100% 45%, 50% 100%, 0 45%);
    box-shadow: 13px 5px 0 -5px currentColor;
}

.nav-logout {
    color: #b42318;
    background: #fff1f1;
}

.nav-logout::before {
    left: 3px;
    top: 3px;
    width: 8px;
    height: 12px;
    border: 2px solid currentColor;
    border-right: 0;
    border-radius: 2px 0 0 2px;
    background: transparent;
}

.nav-logout::after {
    right: 3px;
    top: 6px;
    width: 6px;
    height: 6px;
    border: 2px solid currentColor;
    border-left: 0;
    border-bottom: 0;
    transform: rotate(45deg);
    background: transparent;
    box-shadow: none;
}

.icon-button {
    gap: 8px;
}

.btn-icon {
    width: 18px;
    height: 18px;
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 18px;
    border-radius: 6px;
    background: rgba(255,255,255,.24);
}

.ghost-button .btn-icon {
    background: #eaf4ff;
    color: #3678bd;
}

.btn-icon::before,
.btn-icon::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
    background: currentColor;
}

.btn-icon-play::before {
    left: 7px;
    top: 5px;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid currentColor;
    background: transparent;
}

.btn-icon-programs::before {
    left: 4px;
    top: 4px;
    width: 11px;
    height: 10px;
    border: 2px solid currentColor;
    border-left-width: 4px;
    border-radius: 2px;
    background: transparent;
}

.btn-icon-programs::after {
    left: 10px;
    top: 7px;
    width: 4px;
    height: 2px;
    border-radius: 2px;
    box-shadow: 0 4px 0 currentColor;
}

.btn-icon-certificate::before {
    left: 4px;
    top: 4px;
    width: 10px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 2px;
    background: transparent;
}

.btn-icon-certificate::after {
    left: 7px;
    top: 8px;
    width: 4px;
    height: 2px;
    border-radius: 2px;
    box-shadow: 0 4px 0 currentColor;
}

.btn-icon-live::before {
    left: 3px;
    top: 5px;
    width: 12px;
    height: 9px;
    border: 2px solid currentColor;
    border-radius: 3px;
    background: transparent;
}

.btn-icon-live::after {
    right: 2px;
    top: 7px;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid currentColor;
    background: transparent;
}

.btn-icon-payments::before {
    left: 4px;
    top: 5px;
    width: 10px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 2px;
    background: transparent;
}

.btn-icon-payments::after {
    left: 7px;
    top: 7px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

.btn-icon-announcements::before {
    left: 4px;
    top: 5px;
    width: 10px;
    height: 8px;
    border-radius: 2px;
    background: currentColor;
}

.btn-icon-announcements::after {
    right: 2px;
    bottom: 3px;
    width: 5px;
    height: 2px;
    transform: rotate(35deg);
    border-radius: 2px;
    background: currentColor;
}

.announcement-trigger {
    position: relative;
}

.announcement-badge,
.event-badge,
.support-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    display: inline-grid;
    place-items: center;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 16px rgba(220, 38, 38, .25);
}

.lms-live-alert {
    position: fixed;
    top: 86px;
    right: 22px;
    z-index: 55;
}

.lms-live-alert-button {
    width: 54px;
    height: 54px;
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid #bfdbfe;
    border-radius: 50%;
    background: #fff;
    color: #1d5f9e;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .14);
}

.lms-live-alert.has-alerts .lms-live-alert-button {
    animation: liveBellPulse 1.8s ease-in-out infinite;
}

.lms-live-alert-icon {
    width: 26px;
    height: 26px;
    position: relative;
}

.lms-live-alert-icon::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 13px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 9px 9px 5px 5px;
    border-bottom-width: 3px;
}

.lms-live-alert-icon::after {
    content: "";
    position: absolute;
    left: 10px;
    bottom: 3px;
    width: 7px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
}

.lms-live-alert-button strong {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
}

.lms-live-alert-panel {
    width: 210px;
    position: absolute;
    top: 62px;
    right: 0;
    display: grid;
    gap: 7px;
    border: 1px solid #d8e4f2;
    border-radius: 14px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, .16);
}

.lms-live-alert-panel[hidden] {
    display: none;
}

.lms-live-alert-panel strong {
    color: #07152f;
    font-size: 15px;
}

.lms-live-alert-panel a,
.lms-live-alert-panel button {
    min-height: 36px;
    display: grid;
    grid-template-columns: 24px 22px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    padding: 0 10px;
    background: #f8fbff;
    color: #153e75;
    text-decoration: none;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    text-align: left;
}

.lms-live-alert-panel span {
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #eaf4ff;
    color: #1d5f9e;
    font-size: 12px;
    font-weight: 950;
}

.live-menu-icon {
    width: 22px;
    height: 22px;
    position: relative;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf4ff;
    color: #1f6fc9;
}

.live-menu-icon::before,
.live-menu-icon::after {
    content: "";
    position: absolute;
}

.live-menu-icon.support::before {
    width: 12px;
    height: 9px;
    border: 2px solid currentColor;
    border-radius: 8px 8px 8px 2px;
}

.live-menu-icon.support::after {
    width: 5px;
    height: 2px;
    left: 6px;
    bottom: 4px;
    background: currentColor;
    transform: rotate(30deg);
}

.live-menu-icon.announcements::before {
    width: 12px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.live-menu-icon.announcements::after {
    width: 7px;
    height: 2px;
    top: 8px;
    background: currentColor;
    box-shadow: 0 4px 0 currentColor;
}

.live-menu-icon.events::before {
    width: 13px;
    height: 12px;
    border: 2px solid currentColor;
    border-top-width: 4px;
    border-radius: 3px;
}

.live-menu-icon.events::after {
    width: 2px;
    height: 2px;
    top: 10px;
    left: 8px;
    background: currentColor;
    box-shadow: 5px 0 0 currentColor;
}

@keyframes liveBellPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(54, 120, 189, .22); }
}

.event-trigger {
    position: relative;
}

.support-trigger {
    position: relative;
}

.support-action-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eef6ff;
    color: #174a82;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.support-action-button:hover {
    background: #dbeafe;
}

.btn-icon-events::before {
    left: 4px;
    top: 5px;
    width: 10px;
    height: 9px;
    border: 2px solid currentColor;
    border-top-width: 4px;
    border-radius: 2px;
    background: transparent;
}

.btn-icon-events::after {
    left: 7px;
    top: 9px;
    width: 2px;
    height: 2px;
    box-shadow: 4px 0 0 currentColor;
}

.btn-icon-tasks::before {
    left: 4px;
    top: 4px;
    width: 10px;
    height: 11px;
    border: 2px solid currentColor;
    border-radius: 2px;
    background: transparent;
}

.btn-icon-tasks::after {
    left: 7px;
    top: 7px;
    width: 5px;
    height: 2px;
    border-radius: 2px;
    box-shadow: 0 4px 0 currentColor;
}

.btn-icon-recordings::before {
    left: 4px;
    top: 4px;
    width: 12px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 3px;
    background: transparent;
}

.btn-icon-recordings::after {
    left: 8px;
    top: 7px;
    width: 0;
    height: 0;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 5px solid currentColor;
    background: transparent;
}

.btn-icon-support::before {
    left: 3px;
    top: 4px;
    width: 12px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 4px;
    background: transparent;
}

.btn-icon-support::after {
    left: 8px;
    top: 13px;
    width: 6px;
    height: 6px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-20deg);
    background: transparent;
}

.btn-icon-help::before {
    left: 5px;
    top: 4px;
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: transparent;
}

.btn-icon-help::after {
    left: 8px;
    bottom: 3px;
    width: 2px;
    height: 2px;
    border-radius: 50%;
}

.dashboard {
    display: grid;
    gap: 16px;
    padding: 22px;
}

.welcome-panel,
.program-hero,
.program-section,
.empty-state {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.welcome-panel {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
}

.welcome-panel p,
.program-hero p {
    color: #52637a;
}

.logout-button,
.back-link {
    background: #edf4fb;
    color: var(--primary);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.kpi-grid article {
    display: grid;
    gap: 7px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.kpi-grid span,
.program-meta,
dt,
.progress-row,
.result-pill {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.kpi-grid strong {
    font-size: 28px;
}

.program-section {
    padding: 18px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.section-head h2 {
    margin: 3px 0 0;
    font-size: 28px;
}

.result-pill {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: #edf2f8;
    color: #475569;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.program-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.program-media {
    min-height: 92px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #10203f, #315f86);
}

.program-media span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.program-body {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.program-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.status {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.status.active {
    border: 1px solid #9ee8bf;
    background: #eafff2;
    color: var(--green);
}

.status.locked {
    border: 1px solid #ffb4ad;
    background: #fff0ef;
    color: var(--red);
}

.program-body h3 {
    min-height: 46px;
    margin: 0;
    font-size: 20px;
    line-height: 1.15;
}

.program-body p {
    margin: 0;
    color: var(--muted);
}

dl {
    display: grid;
    gap: 7px;
    margin: 0;
}

dl div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 7px;
}

dd {
    margin: 0;
    text-align: right;
    font-weight: 800;
}

.progress-row {
    display: flex;
    justify-content: space-between;
}

.progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef7;
}

.progress-track span {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--gold));
}

.program-action {
    width: 100%;
}

.program-action.inline {
    width: auto;
    margin-top: 12px;
}

.program-hero {
    padding: 20px;
}

.program-dashboard {
    width: min(1320px, calc(100% - 24px));
    margin: 0 auto;
    gap: 12px;
    padding: 14px 0 24px;
}

.program-dashboard .program-hero,
.program-dashboard .program-section {
    border-radius: 14px;
}

.program-dashboard .program-hero {
    padding: 12px 14px;
}

.program-dashboard .back-link {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
}

.program-dashboard .program-hero h1 {
    max-width: 860px;
    margin: 6px 0 5px;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.02;
}

.program-dashboard .program-hero p {
    font-size: 14px;
    line-height: 1.35;
}

.program-dashboard .program-quick-actions {
    margin-top: 12px;
    gap: 7px;
}

.program-dashboard .primary-button,
.program-dashboard .ghost-button,
.program-dashboard .module-action {
    min-height: 34px;
    border-radius: 8px;
    font-size: 13px;
}

.program-hero-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 18px;
    align-items: stretch;
    margin-top: 14px;
}

.program-finance {
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fbff;
}

.program-finance span,
.program-finance small {
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
}

.program-finance strong {
    font-size: 30px;
}

.program-dashboard .program-hero-grid {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 12px;
    margin-top: 8px;
}

.program-dashboard .program-finance {
    padding: 10px 12px;
}

.program-dashboard .program-finance strong {
    font-size: 21px;
}

.program-dashboard .program-section {
    padding: 12px 14px;
}

.program-dashboard .section-head {
    margin-bottom: 12px;
}

.program-dashboard .section-head h2 {
    font-size: 22px;
}

.program-dashboard .result-pill {
    min-height: 28px;
}

.module-list {
    display: grid;
    gap: 10px;
}

.module-row {
    display: grid;
    grid-template-columns: 48px 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.program-dashboard .module-list {
    gap: 8px;
}

.program-dashboard .module-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 9px;
}

.program-dashboard .module-icon {
    display: none;
}

.module-row.locked-row {
    opacity: .78;
}

.module-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #edf4fb;
    color: #315f86;
    font-weight: 900;
}

.program-dashboard .module-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 14px;
}

.module-row h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.program-dashboard .module-row h3 {
    margin-bottom: 2px;
    font-size: 16px;
}

.module-row p {
    margin: 0;
    color: var(--muted);
}

.program-dashboard .module-row p {
    font-size: 14px;
}

.module-action {
    min-height: 36px;
    background: var(--primary);
}

.module-action.disabled {
    pointer-events: none;
    background: #edf2f7;
    color: #64748b;
}

.empty-state {
    padding: 22px;
}

.empty-state p {
    margin: 8px 0 0;
    color: var(--muted);
}

@media (max-width: 1040px) {
    .login-shell,
    .program-hero-grid {
        grid-template-columns: 1fr;
    }

    .program-grid,
    .kpi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .top-nav {
        display: none;
    }
}

@media (min-width: 1041px) and (max-width: 1400px) {
    .student-topbar {
        grid-template-columns: minmax(350px, auto) minmax(0, 1fr) auto;
        gap: 10px;
        padding: 0 18px;
    }

    .brand-area {
        gap: 9px;
    }

    .brand {
        gap: 8px;
    }

    .brand img {
        height: 36px;
        padding: 6px;
    }

    .brand-title {
        padding-left: 10px;
    }

    .brand-title strong {
        font-size: 17px;
    }

    .brand-more-courses {
        min-height: 36px;
        padding: 0 12px;
        font-size: 12px;
    }

    .top-nav {
        min-width: 0;
        gap: 2px;
        justify-content: center;
    }

    .top-nav a {
        min-height: 36px;
        gap: 4px;
        padding: 0 8px;
        font-size: 13px;
    }

    .top-nav .nav-mini {
        margin-right: 2px;
    }

    .student-actions {
        gap: 6px;
    }

    .student-chip {
        min-width: 0;
        width: 240px;
        padding: 8px 10px;
    }

    .student-chip > span {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .student-chip strong,
    .student-chip small {
        max-width: 160px;
    }

    .topbar-logout {
        min-height: 36px;
        padding: 0 10px;
        font-size: 12px;
    }
}

@media (max-width: 720px) {
    .login-page {
        padding: 12px;
    }

    .login-shell,
    .program-grid,
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .login-hero,
    .login-card,
    .dashboard {
        padding: 16px;
    }

    .student-topbar {
        height: auto;
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .student-chip {
        width: 100%;
    }

    .welcome-panel,
    .section-head {
        display: grid;
    }

    .module-row {
        grid-template-columns: 42px 1fr;
    }

    .module-row .status,
    .module-action {
        grid-column: 2;
        justify-self: start;
    }

    .program-dashboard {
        width: calc(100% - 16px);
        max-width: none;
        gap: 10px;
        padding: 12px 0 82px;
    }

    .program-dashboard .program-hero,
    .program-dashboard .program-section {
        padding: 12px;
        border-radius: 14px;
    }

    .program-dashboard .program-hero-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 10px;
    }

    .program-dashboard .program-hero h1 {
        max-width: none;
        margin: 7px 0 6px;
        font-size: 29px;
        line-height: 1.02;
    }

    .program-dashboard .program-hero p {
        font-size: 14px;
        line-height: 1.32;
    }

    .program-dashboard .program-finance {
        display: grid;
        min-height: auto;
        padding: 10px;
    }

    .program-dashboard .program-finance strong {
        font-size: 22px;
    }

    .program-dashboard .program-quick-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin-top: 12px;
        align-items: stretch;
    }

    .program-dashboard .program-quick-actions .ghost-button {
        width: 100%;
        justify-content: center;
        min-height: 36px;
        padding: 0 8px;
        border-radius: 9px;
        font-size: 12px;
    }

    .program-dashboard .program-quick-actions .ghost-button:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .program-dashboard .section-head {
        display: grid;
        gap: 8px;
        margin-bottom: 10px;
    }

    .program-dashboard .section-head h2 {
        font-size: 22px;
    }

    .program-dashboard .result-pill {
        width: 100%;
        justify-content: center;
    }

    .program-dashboard .module-row {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .program-dashboard .module-icon {
        width: 34px;
        height: 34px;
    }

    .program-dashboard .module-row h3 {
        font-size: 15px;
    }

    .program-dashboard .module-row p {
        font-size: 12px;
    }

    .program-dashboard .module-row .status,
    .program-dashboard .module-action {
        grid-column: 2;
        justify-self: start;
    }

    .program-dashboard .module-action {
        width: auto;
        min-height: 34px;
        padding: 0 16px;
    }
}

/* Public LMS home */
.public-home {
    min-height: 100vh;
    display: block;
    padding: 0;
    background:
        linear-gradient(180deg, rgba(7,21,47,.94) 0%, rgba(20,33,61,.82) 42%, rgba(238,243,248,1) 42%),
        #eef3f8;
}

.public-header {
    width: min(1180px, calc(100% - 28px));
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 auto;
    color: #fff;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.public-brand img {
    width: 156px;
    padding: 9px;
    border-radius: 10px;
    background: #fff;
}

.public-header nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.public-header nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    color: #dce8f6;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.public-header nav a:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.public-main {
    width: min(1180px, calc(100% - 28px));
    display: grid;
    gap: 18px;
    margin: 0 auto;
    padding: 12px 0 40px;
}

.public-hero {
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 24px;
    align-items: center;
    padding: 32px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 22px;
    background:
        radial-gradient(circle at 12% 10%, rgba(212,154,34,.22), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(40,103,157,.32), transparent 30%),
        linear-gradient(135deg, #101d35, #172946 62%, #203f5e);
    box-shadow: 0 34px 90px rgba(10, 22, 42, .26);
}

.public-hero .hero-copy {
    max-width: 720px;
}

.public-hero h1 {
    margin: 10px 0 14px;
    color: #fff;
    font-size: clamp(42px, 7vw, 78px);
    line-height: .96;
}

.public-hero p {
    max-width: 620px;
    color: #d7e3f2;
    font-size: 18px;
}

.public-hero-actions,
.welcome-actions,
.program-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.ghost-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid #cfd9e7;
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    font-weight: 900;
    text-decoration: none;
}

.ghost-button.light {
    border-color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.1);
    color: #fff;
}

.public-login-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0,0,0,.26);
}

.public-login-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), #2f7eb9);
}

.public-section {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.public-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.public-section-head.compact {
    margin-bottom: 10px;
}

.public-section-head h2 {
    margin: 4px 0 0;
    font-size: clamp(26px, 4vw, 38px);
}

.public-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.public-course-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f9fbfe;
}

.course-thumb {
    height: 150px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #13213b, #2f6f9c);
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-thumb span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 25px;
    font-weight: 900;
}

.public-course-card > div:last-child {
    display: grid;
    gap: 9px;
    padding: 14px;
}

.course-type {
    width: max-content;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #f8efd9;
    color: #815b10;
    font-size: 12px;
    font-weight: 900;
}

.public-course-card h3,
.public-list h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.18;
}

.public-course-card p,
.public-list p,
.muted-copy {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid #e7eef6;
}

.course-card-footer small {
    color: var(--muted);
    font-weight: 800;
}

.course-card-footer strong {
    color: var(--primary);
}

.public-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.public-list {
    display: grid;
    gap: 10px;
}

.public-list article {
    display: grid;
    gap: 7px;
    padding: 14px;
    border: 1px solid #e4edf7;
    border-radius: 12px;
    background: #f9fbfe;
}

.public-list article span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.faq-grid details {
    border: 1px solid #e4edf7;
    border-radius: 12px;
    background: #f9fbfe;
}

.faq-grid summary {
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: var(--primary);
    font-weight: 900;
    cursor: pointer;
}

.faq-grid p {
    margin: 0;
    padding: 0 14px 14px;
    color: var(--muted);
    line-height: 1.5;
}

@media (max-width: 980px) {
    .public-hero,
    .public-split,
    .public-course-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .public-hero {
        min-height: 0;
        padding: 20px;
    }
}

@media (max-width: 720px) {
    .public-home {
        background:
            linear-gradient(180deg, rgba(7,21,47,.96) 0%, rgba(20,33,61,.88) 34%, rgba(238,243,248,1) 34%),
            #eef3f8;
    }

    .public-header {
        width: calc(100% - 20px);
        display: grid;
        gap: 10px;
        padding: 12px 0;
    }

    .public-brand {
        justify-content: space-between;
    }

    .public-brand img {
        width: 138px;
    }

    .public-header nav {
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .public-header nav a {
        flex: 0 0 auto;
        background: rgba(255,255,255,.08);
    }

    .public-main {
        width: calc(100% - 20px);
        gap: 12px;
        padding-top: 0;
    }

    .public-hero {
        gap: 18px;
        padding: 18px;
        border-radius: 18px;
    }

    .public-hero h1 {
        font-size: 42px;
    }

    .public-hero p {
        font-size: 16px;
    }

    .public-login-card {
        padding: 20px;
    }

    .public-section {
        padding: 16px;
        border-radius: 16px;
    }

    .public-section-head {
        display: grid;
    }

    .course-thumb {
        height: 128px;
    }

    .public-hero-actions .primary-button,
    .public-hero-actions .ghost-button,
    .public-login-card .primary-button {
        width: 100%;
    }
}

/* Compact public LMS login */
.compact-home {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 0;
    background:
        radial-gradient(circle at 8% 12%, rgba(13, 128, 100, .16), transparent 28%),
        radial-gradient(circle at 92% 8%, rgba(31, 111, 201, .16), transparent 24%),
        linear-gradient(135deg, #f7fafc 0%, #eef3f8 45%, #e7eef6 100%);
}

.compact-home .public-main {
    width: min(1160px, calc(100% - 32px));
    padding: 0;
}

.compact-board {
    display: grid;
    grid-template-columns: minmax(330px, 420px) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(216, 226, 238, .92);
    border-radius: 26px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .14);
    backdrop-filter: blur(18px);
}

.compact-panel,
.compact-login {
    height: min(680px, calc(100vh - 48px));
    min-height: 0;
    border-radius: 0;
}

.compact-login {
    align-content: start;
    gap: 18px;
    padding: 34px 34px 28px;
    border: 0;
    border-right: 1px solid #dde7f2;
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfdff 64%, #f2f7fc 100%);
    box-shadow: none;
}

.login-brand-mark {
    display: grid;
    gap: 10px;
    margin-bottom: 8px;
}

.login-brand-mark img {
    width: 178px;
    height: auto;
}

.login-brand-mark span {
    width: max-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef6ff;
    color: #1e5f8f;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.compact-login h2 {
    margin-top: 4px;
    font-size: 34px;
    letter-spacing: -0.02em;
}

.login-intro {
    margin: -8px 0 4px;
    color: #5d6b7d;
    font-size: 14px;
    line-height: 1.5;
}

.compact-login form {
    gap: 16px;
}

.compact-login input {
    min-height: 46px;
    background: #f4f8ff;
    border-color: #d6e4f6;
}

.compact-login .primary-button {
    min-height: 48px;
    background: linear-gradient(135deg, #0b1e33, #126f5b);
    box-shadow: 0 14px 26px rgba(11, 30, 51, .18);
}

.forgot-link {
    color: #075ca8;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    text-align: center;
}

.faq-inline-button {
    width: max-content;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 0 12px;
    border: 1px solid #d6e4f6;
    border-radius: 999px;
    background: #fff;
    color: #1e5f8f;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
}

.faq-inline-button span {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    margin-right: 7px;
    border-radius: 50%;
    background: #eaf3ff;
    color: #1f6fc9;
    font-size: 12px;
    line-height: 1;
}

.compact-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 32px;
    border: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(247,250,252,.86)),
        radial-gradient(circle at 90% 10%, rgba(13, 128, 100, .13), transparent 24%);
    box-shadow: none;
}

.compact-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2ebf5;
}

.compact-section-head h2 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -0.02em;
}

.compact-section-head .result-pill {
    min-height: 24px;
    font-size: 11px;
    text-transform: none;
}

.compact-news-list,
.mini-course-list {
    min-height: 0;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 12px;
    padding: 18px 4px 4px 0;
    scrollbar-width: thin;
}

.compact-news-list article,
.mini-course-card,
.access-list article {
    border: 1px solid #e2ebf5;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #f9fbfe);
}

.compact-news-list article {
    display: grid;
    gap: 7px;
    padding: 13px;
}

.compact-news-list article span {
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.compact-news-list h3,
.mini-course-card h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
}

.compact-news-list p,
.mini-course-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.empty-public-card {
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 20px;
    border: 1px solid #e2ebf5;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    text-align: center;
}

.mini-course-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    transition: transform .16s, border-color .16s, box-shadow .16s;
}

.mini-course-card:hover {
    border-color: rgba(13, 128, 100, .30);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .10);
    transform: translateY(-1px);
}

.mini-course-thumb {
    width: 100%;
    height: 132px;
    overflow: hidden;
    display: grid;
    place-items: center;
    align-self: stretch;
    border-radius: 0;
    background: linear-gradient(135deg, #dff2e5, #edf6ff);
    box-shadow: inset 0 0 0 1px rgba(7, 21, 47, .04);
}

.mini-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-course-thumb span {
    color: #087244;
    font-size: 16px;
    font-weight: 900;
}

.mini-course-card > div:last-child {
    min-width: 0;
    display: grid;
    align-content: start;
    padding: 13px;
}

.mini-course-card h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: 38px;
    font-size: 14px;
}

.mini-course-card p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 4px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: 34px;
}

.mini-course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.mini-course-meta small {
    min-width: 0;
    overflow: hidden;
    color: #98a6ba;
    font-size: 10px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-course-meta strong {
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}

.compact-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .8fr);
    gap: 12px;
}

.public-faq-modal {
    width: min(760px, calc(100vw - 28px));
    max-height: calc(100vh - 32px);
    border: 0;
    border-radius: 18px;
    padding: 0;
    background: transparent;
}

.public-faq-modal::backdrop {
    background: rgba(7, 21, 47, .66);
    backdrop-filter: blur(4px);
}

.public-faq-card {
    position: relative;
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 22px;
    border: 1px solid #dce6f1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(7, 21, 47, .22);
}

.public-modal-x {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 34px;
    height: 34px;
    border: 1px solid #dce6f1;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    cursor: pointer;
    font-weight: 900;
}

.compact-bottom-grid .compact-panel {
    height: 162px;
    min-height: 0;
    overflow: hidden;
}

.compact-faq {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 12px;
    overflow: auto;
}

.compact-faq details {
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.compact-faq summary {
    min-height: 44px;
    display: grid;
    grid-template-columns: 1fr 28px;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    list-style: none;
}

.compact-faq summary::-webkit-details-marker {
    display: none;
}

.compact-faq summary::after {
    content: "+";
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eaf3ff;
    color: #1f6fc9;
    font-size: 18px;
    font-weight: 900;
    transition: transform .16s, background .16s, color .16s;
}

.compact-faq details[open] {
    border-color: rgba(31, 111, 201, .28);
}

.compact-faq details[open] summary {
    background: #f7fbff;
}

.compact-faq details[open] summary::after {
    content: "-";
    background: #0b1e33;
    color: #fff;
}

.compact-faq details p {
    margin: 0 12px 12px;
    padding: 12px;
    border-radius: 12px;
    background: #f6f9fd;
    color: #5d6b7d;
}

/* Final recommended-course cards */
.compact-home #programas .feed-static {
    padding-top: 12px;
    padding-bottom: 0;
    overflow: hidden;
}

.compact-home #programas .mini-course-list {
    gap: 12px;
    overflow: visible;
    max-height: none;
}

.compact-home #programas .mini-course-card {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 112px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.compact-home #programas .mini-course-thumb {
    width: 72px;
    height: 86px;
    border-radius: 14px;
}

.compact-home #programas .mini-course-card h3 {
    min-height: 0;
    font-size: 14px;
    line-height: 1.16;
    -webkit-line-clamp: 2;
}

.compact-home #programas .mini-course-card p {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.3;
    -webkit-line-clamp: 2;
}

.compact-home #programas .mini-course-meta {
    margin-top: 9px;
}

.compact-home #programas .mini-course-meta small {
    width: max-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: #edf3fb;
    color: #64748b;
    font-size: 10px;
    line-height: 1;
}

.compact-home #programas .mini-course-meta strong {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e9f8ef;
    color: #007a45;
    font-size: 12px;
    line-height: 1;
}

@media (max-width: 720px) {
    .compact-home #programas .mini-course-card {
        grid-template-columns: 76px minmax(0, 1fr);
        min-height: 104px;
    }

    .compact-home #programas .mini-course-thumb {
        width: 66px;
        height: 78px;
    }

    .compact-home #programas .mini-course-card p {
        -webkit-line-clamp: 1;
    }
}

/* Polished LMS access screen */
.compact-home {
    background:
        radial-gradient(circle at 12% 12%, rgba(13, 128, 100, .14), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(31, 111, 201, .15), transparent 30%),
        linear-gradient(135deg, #f7fbff 0%, #eef4f9 48%, #e7eef6 100%);
}

.compact-home::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255,255,255,.58), transparent 36%, rgba(255,255,255,.28)),
        radial-gradient(circle at 50% 110%, rgba(11,30,51,.08), transparent 34%);
}

.compact-home .public-main {
    position: relative;
    z-index: 1;
    width: min(1320px, calc(100% - 44px));
}

.compact-home .compact-board {
    grid-template-columns: 415px minmax(390px, 1fr) minmax(390px, 1fr);
    gap: 24px;
    align-items: stretch;
}

.compact-home .compact-login,
.compact-home .compact-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(207, 219, 234, .9);
    border-radius: 28px;
    background: rgba(255,255,255,.82);
    box-shadow:
        0 28px 80px rgba(15, 23, 42, .12),
        inset 0 1px 0 rgba(255,255,255,.9);
    backdrop-filter: blur(18px);
}

.compact-home .compact-login::before,
.compact-home .compact-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #c7932c, #0d8064, #28679d);
}

.compact-home .compact-login {
    display: grid;
    min-height: 558px;
    padding: 34px;
    background:
        radial-gradient(circle at 92% 8%, rgba(13,128,100,.08), transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,251,255,.90));
}

.login-brand-mark {
    margin-bottom: 12px;
}

.login-brand-mark img {
    width: 170px;
    padding: 0;
    background: transparent;
}

.login-brand-mark span {
    margin-top: 10px;
    background: #edf6ff;
    color: #1f5f8e;
}

.compact-login h2 {
    margin: 10px 0 8px;
    font-size: 38px;
    line-height: .95;
}

.compact-login form {
    gap: 17px;
}

.compact-login label {
    gap: 8px;
}

.compact-login input {
    min-height: 48px;
    border: 1px solid #d2ddec;
    border-radius: 10px;
    background: #f4f8ff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.compact-login input:focus {
    border-color: #28679d;
    box-shadow: 0 0 0 4px rgba(40,103,157,.12);
    outline: none;
}

.compact-login .primary-button {
    min-height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #092236, #0d8064);
    box-shadow: 0 18px 36px rgba(9,34,54,.20);
}

.forgot-link {
    color: #0b5ea8;
}

.faq-inline-button {
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15,23,42,.06);
}

.compact-home .compact-panel {
    min-height: 558px;
    padding: 22px;
}

.compact-home .compact-section-head {
    min-height: 70px;
    padding-bottom: 16px;
}

.compact-home .compact-section-head .eyebrow {
    color: #b98217;
}

.compact-home .compact-section-head h2 {
    margin-top: 3px;
    font-size: 25px;
    line-height: 1.02;
}

.compact-home .result-pill {
    min-height: 30px;
    padding: 0 12px;
    background: #edf3fb;
    color: #4a5b72;
    border-radius: 999px;
}

.feed-static {
    overflow-y: auto;
    padding: 14px 4px 2px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(40,103,157,.28) transparent;
}

.feed-static::-webkit-scrollbar {
    width: 5px;
}

.feed-static::-webkit-scrollbar-track {
    background: transparent;
}

.feed-static::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(40,103,157,.26);
}

.compact-home #programas .mini-course-list,
.compact-home #noticias .news-list {
    gap: 10px;
}

.compact-home #programas .mini-course-card {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 101px;
    padding: 11px;
    border: 1px solid rgba(213,225,239,.95);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    box-shadow: 0 14px 32px rgba(15,23,42,.06);
}

.compact-home #programas .mini-course-thumb {
    width: 70px;
    height: 78px;
    border-radius: 14px;
}

.compact-home #programas .mini-course-card h3 {
    font-size: 14px;
    line-height: 1.13;
}

.compact-home #programas .mini-course-card p {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.25;
    -webkit-line-clamp: 2;
}

.compact-home #programas .mini-course-meta {
    margin-top: 8px;
}

.compact-home #noticias .feed-static {
    padding-top: 14px;
}

.compact-home #noticias .news-list {
    padding-bottom: 0;
}

.compact-home #noticias .news-card {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid rgba(213,225,239,.95);
    border-radius: 17px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    box-shadow: 0 14px 32px rgba(15,23,42,.06);
}

.compact-home #noticias .news-thumb {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.compact-home #noticias .news-card h3 {
    font-size: 13px;
    line-height: 1.14;
    -webkit-line-clamp: 1;
}

.compact-home #noticias .news-card p {
    font-size: 11px;
    line-height: 1.24;
    -webkit-line-clamp: 2;
}

@media (max-width: 1120px) {
    .compact-home .compact-board {
        grid-template-columns: 1fr;
    }

    .compact-home .compact-login,
    .compact-home .compact-panel {
        min-height: 0;
    }
}

@media (max-width: 720px) {
    .compact-home .public-main {
        width: calc(100% - 18px);
    }

    .compact-home .compact-login,
    .compact-home .compact-panel {
        border-radius: 20px;
        padding: 18px;
    }

    .compact-login h2 {
        font-size: 32px;
    }
}

.access-list {
    display: grid;
    gap: 8px;
    padding-top: 12px;
    overflow: auto;
}

.access-list article {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 11px;
}

.access-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #eaf3ff;
    color: #1f6fc9;
    font-size: 13px;
    font-weight: 900;
}

.access-list strong {
    display: block;
    font-size: 13px;
}

.access-list small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

@media (max-width: 1050px) {
    .compact-board {
        grid-template-columns: 1fr;
    }

    .compact-panel,
    .compact-login {
        height: auto;
        min-height: 0;
    }

    .mini-course-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 340px;
    }
}

@media (max-width: 720px) {
    .compact-home .public-main {
        width: calc(100% - 20px);
        padding: 10px 0 18px;
    }

    .compact-board {
        border-radius: 18px;
    }

    .compact-login,
    .compact-panel {
        padding: 20px;
    }

    .mini-course-card {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .mini-course-thumb {
        width: 100%;
        height: 118px;
    }
}

@media (max-width: 560px) {
    .mini-course-list {
        grid-template-columns: 1fr;
    }
}

/* LMS public access: login + live feeds */
.compact-home .public-main {
    width: min(1320px, calc(100% - 28px));
}

.compact-home .compact-board {
    grid-template-columns: minmax(310px, 416px) minmax(320px, 1fr) minmax(340px, 1fr);
    gap: 24px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.compact-home .compact-login,
.compact-home .compact-panel {
    height: auto;
    min-height: 0;
    border: 1px solid rgba(216, 226, 238, .95);
    border-radius: 24px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .10);
    backdrop-filter: blur(14px);
}

.compact-home .compact-login {
    border-right: 1px solid rgba(216, 226, 238, .95);
}

.compact-home .compact-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.compact-home .compact-section-head {
    padding-bottom: 14px;
}

.compact-home .compact-section-head h2 {
    font-size: 22px;
    letter-spacing: 0;
}

.feed-scroll,
.feed-static {
    position: relative;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 6px 0 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #2b7dd1 #edf3fb;
}

.feed-static::after {
    content: none;
}

.feed-scroll::-webkit-scrollbar {
    width: 8px;
}

.feed-scroll::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #edf3fb;
}

.feed-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #2b7dd1;
}

.news-list,
.compact-home .mini-course-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 0 10px;
}

.news-card,
.compact-home .mini-course-card {
    border: 1px solid #dfe8f3;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,253,255,.96));
    box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}

.news-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 0;
    padding: 10px 12px;
}

.news-thumb {
    width: 50px;
    height: 56px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #eaf3ff, #e9f8ef);
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-thumb span {
    color: #1f6fc9;
    font-weight: 900;
}

/* Compact six-news layout */
.compact-home #noticias .feed-static {
    padding: 10px 2px 0 0;
    overflow: hidden;
}

.compact-home #noticias .news-list {
    gap: 6px;
    padding-bottom: 0;
}

.compact-home #noticias .news-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 8px;
    min-height: 58px;
    padding: 7px 10px;
    border-radius: 13px;
}

.compact-home #noticias .news-thumb {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.compact-home #noticias .news-card span {
    font-size: 10px;
    line-height: 1;
}

.compact-home #noticias .news-card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.12;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.compact-home #noticias .news-card p {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.18;
    -webkit-line-clamp: 1;
}

.news-card span {
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.news-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.2;
}

.news-card p {
    margin: 0;
    color: #5d6b7d;
    font-size: 12px;
    line-height: 1.32;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.compact-home .mini-course-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 11px;
    min-height: 0;
    overflow: hidden;
    padding: 10px;
}

.compact-home .mini-course-thumb {
    width: 66px;
    height: 72px;
    border-radius: 12px;
}

.compact-home .mini-course-card > div:last-child {
    padding: 0;
}

.compact-home .mini-course-card h3 {
    min-height: 0;
    font-size: 14px;
    line-height: 1.15;
}

.compact-home .mini-course-card p {
    min-height: 0;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.28;
}

.compact-home .mini-course-meta {
    margin-top: 7px;
}

.compact-home .mini-course-meta strong {
    color: #007a45;
}

@media (max-width: 1120px) {
    .compact-home .compact-board {
        grid-template-columns: 1fr;
    }

    .compact-home .compact-login,
    .compact-home .compact-panel {
        height: auto;
        min-height: 0;
    }

    .feed-scroll,
    .feed-static {
        max-height: 360px;
    }
}

@media (max-width: 720px) {
    .compact-home .public-main {
        width: calc(100% - 18px);
    }

    .compact-home .compact-login,
    .compact-home .compact-panel {
        border-radius: 18px;
        padding: 18px;
    }

    .compact-home .mini-course-card {
        grid-template-columns: 74px minmax(0, 1fr);
        min-height: 124px;
        padding: 12px;
    }

    .compact-home .mini-course-thumb {
        width: 64px;
        height: 76px;
    }
}

/* Final premium polish for the LMS access screen */
.compact-home {
    min-height: 100vh;
    padding: 34px 18px;
    background:
        radial-gradient(circle at 9% 18%, rgba(6, 120, 91, .18), transparent 31%),
        radial-gradient(circle at 86% 14%, rgba(41, 111, 170, .19), transparent 32%),
        linear-gradient(135deg, #f6fbff 0%, #edf4fb 48%, #e1ebf4 100%);
}

.compact-home::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(255,255,255,.72), rgba(255,255,255,.15) 42%, rgba(255,255,255,.58)),
        repeating-linear-gradient(135deg, rgba(13, 128, 100, .045) 0 1px, transparent 1px 18px);
}

.compact-home .public-main {
    position: relative;
    z-index: 1;
    width: min(1328px, calc(100% - 34px));
}

.compact-home .compact-board {
    display: grid;
    grid-template-columns: minmax(330px, 414px) minmax(360px, 1fr) minmax(360px, 1fr);
    gap: 26px;
    align-items: stretch;
}

.compact-home .compact-login,
.compact-home .compact-panel {
    position: relative;
    min-height: 558px;
    overflow: hidden;
    border: 1px solid rgba(203, 216, 232, .86);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.90));
    box-shadow:
        0 34px 90px rgba(11, 27, 48, .14),
        0 1px 0 rgba(255,255,255,.95) inset;
    backdrop-filter: blur(18px);
}

.compact-home .compact-login::before,
.compact-home .compact-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #c99328, #0b8562 46%, #2673b6);
}

.compact-home .compact-login::after {
    content: "";
    position: absolute;
    right: -86px;
    bottom: -92px;
    width: 235px;
    height: 235px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(11,133,98,.16), transparent 65%);
}

.compact-home .compact-login {
    display: grid;
    align-content: center;
    gap: 16px;
    padding: 38px 34px;
}

.compact-home .login-brand-mark,
.compact-home .compact-login form,
.compact-home .compact-login h2,
.compact-home .faq-inline-button,
.compact-home .alert {
    position: relative;
    z-index: 1;
}

.compact-home .login-brand-mark {
    margin: 0 0 8px;
}

.compact-home .login-brand-mark img {
    width: 174px;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, .08));
}

.compact-home .login-brand-mark span {
    display: inline-flex;
    width: max-content;
    margin-top: 14px;
    padding: 8px 13px;
    border: 1px solid rgba(31, 111, 201, .08);
    border-radius: 999px;
    background: linear-gradient(180deg, #eef7ff, #e7f1fb);
    color: #155b8f;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.compact-home .compact-login h2 {
    margin: 16px 0 6px;
    color: #07152f;
    font-size: clamp(34px, 3vw, 43px);
    line-height: .95;
}

.compact-home .compact-login label span {
    color: #35435a;
    font-size: 13px;
    font-weight: 900;
}

.compact-home .compact-login input {
    min-height: 52px;
    border: 1px solid #cfdbeb;
    border-radius: 14px;
    background:
        linear-gradient(180deg, #f8fbff, #eff5fd);
    color: #07152f;
    font-size: 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
}

.compact-home .compact-login input:focus {
    border-color: #2673b6;
    box-shadow:
        0 0 0 4px rgba(38, 115, 182, .13),
        inset 0 1px 0 rgba(255,255,255,.95);
    outline: 0;
}

.compact-home .compact-login .primary-button {
    min-height: 52px;
    margin-top: 2px;
    border-radius: 14px;
    background: linear-gradient(135deg, #071f33 0%, #0b594d 58%, #0b8562 100%);
    box-shadow: 0 18px 36px rgba(7, 31, 51, .22);
    transform: translateZ(0);
}

.compact-home .compact-login .primary-button:hover {
    filter: brightness(1.06);
}

.compact-home .forgot-link {
    width: max-content;
    justify-self: center;
    color: #075aa4;
    font-size: 13px;
    font-weight: 900;
}

.compact-home .faq-inline-button {
    justify-self: start;
    margin-top: 6px;
    border: 1px solid #cfe0f2;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    color: #155b8f;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .08);
}

.compact-home .compact-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 24px 22px 22px;
}

.compact-home .compact-section-head {
    min-height: 76px;
    padding: 0 0 16px;
    border-bottom: 1px solid rgba(207, 219, 234, .92);
}

.compact-home .compact-section-head .eyebrow {
    color: #b98217;
    font-size: 12px;
    font-weight: 1000;
}

.compact-home .compact-section-head h2 {
    max-width: 280px;
    margin: 4px 0 0;
    color: #07152f;
    font-size: clamp(24px, 2vw, 30px);
    line-height: .98;
}

.compact-home .result-pill {
    min-height: 32px;
    padding: 0 14px;
    border: 1px solid rgba(203, 216, 232, .7);
    background: linear-gradient(180deg, #f1f6fb, #e7eff8);
    color: #46576d;
    font-size: 12px;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.compact-home .feed-static {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 6px 0 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(38, 115, 182, .55) transparent;
}

.compact-home .feed-static::-webkit-scrollbar {
    width: 6px;
}

.compact-home .feed-static::-webkit-scrollbar-track {
    background: transparent;
}

.compact-home .feed-static::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(38,115,182,.55), rgba(11,133,98,.55));
}

.compact-home #programas .mini-course-list,
.compact-home #noticias .news-list {
    display: grid;
    gap: 13px;
    padding-bottom: 2px;
}

.compact-home #programas .mini-course-card,
.compact-home #noticias .news-card {
    border: 1px solid rgba(211, 224, 239, .96);
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.94));
    box-shadow:
        0 16px 34px rgba(15, 23, 42, .075),
        inset 0 1px 0 rgba(255,255,255,.95);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.compact-home #programas .mini-course-card:hover,
.compact-home #noticias .news-card:hover {
    border-color: rgba(38, 115, 182, .28);
    box-shadow: 0 22px 42px rgba(15, 23, 42, .105);
    transform: translateY(-2px);
}

.compact-home #programas .mini-course-card {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 116px;
    padding: 12px;
    border-radius: 20px;
}

.compact-home #programas .mini-course-thumb {
    width: 80px;
    height: 92px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e6f5ef, #e8f2ff);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

.compact-home #programas .mini-course-card h3 {
    color: #07152f;
    font-size: 14px;
    line-height: 1.14;
}

.compact-home #programas .mini-course-card p {
    color: #50617a;
    font-size: 12px;
    line-height: 1.32;
    -webkit-line-clamp: 2;
}

.compact-home #programas .mini-course-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    margin-top: 9px;
}

.compact-home #programas .mini-course-meta small {
    max-width: 120px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf3fb;
    color: #65758d;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.compact-home #programas .mini-course-meta strong {
    padding: 5px 10px;
    border-radius: 999px;
    background: #e8f8ef;
    color: #007a45;
    font-size: 13px;
}

.compact-home #noticias .news-card {
    grid-template-columns: 66px minmax(0, 1fr);
    min-height: 75px;
    padding: 10px 12px;
    border-radius: 18px;
}

.compact-home #noticias .news-thumb {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background:
        #eef7f3 url("../img/news-thumbs/default-news.png") center / cover no-repeat;
}

.compact-home #noticias .news-thumb span {
    display: none;
}

.compact-home #noticias .news-thumb:has(img) {
    background: #eef7f3;
}

.compact-home #noticias .news-card span {
    color: #bd8618;
    font-size: 11px;
    font-weight: 1000;
}

.compact-home #noticias .news-card h3 {
    margin-top: 2px;
    color: #07152f;
    font-size: 13px;
    line-height: 1.12;
    -webkit-line-clamp: 1;
}

.compact-home #noticias .news-card p {
    color: #50617a;
    font-size: 11px;
    line-height: 1.25;
    -webkit-line-clamp: 2;
}

@media (max-width: 1180px) {
    .compact-home {
        place-items: start center;
    }

    .compact-home .compact-board {
        grid-template-columns: 1fr;
    }

    .compact-home .compact-login,
    .compact-home .compact-panel {
        min-height: 0;
    }
}

@media (max-width: 720px) {
    .support-modal {
        padding: 16px;
    }

    .support-create-form,
    .support-reply-form,
    .support-ticket-card summary {
        grid-template-columns: 1fr;
    }

    .support-message div:first-child {
        display: grid;
    }

    .compact-home {
        padding: 10px;
    }

    .compact-home .public-main {
        width: 100%;
    }

    .compact-home .compact-board {
        gap: 12px;
    }

    .compact-home .compact-login,
    .compact-home .compact-panel {
        border-radius: 22px;
        padding: 20px 16px;
    }

    .compact-home .compact-login h2 {
        font-size: 34px;
    }

    .compact-home .login-brand-mark img {
        width: 150px;
    }

    .compact-home .compact-section-head {
        min-height: 62px;
    }

    .compact-home .compact-section-head h2 {
        max-width: 220px;
        font-size: 25px;
    }

    .compact-home #programas .mini-course-card {
        grid-template-columns: 84px minmax(0, 1fr);
        min-height: 108px;
    }

    .compact-home #programas .mini-course-thumb {
        width: 72px;
        height: 84px;
    }

    .compact-home #noticias .news-card {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .compact-home #noticias .news-thumb {
        width: 48px;
        height: 48px;
    }
}

/* Simple LMS login screen */
.lms-login-only {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(120deg, rgba(8, 24, 42, .92), rgba(10, 78, 67, .76)),
        url("../img/logo.png") calc(100% - 46px) 42px / 210px auto no-repeat,
        #101a2d;
}

.login-only-shell {
    width: min(430px, 100%);
}

.login-only-card {
    display: grid;
    gap: 15px;
    width: 100%;
    padding: 38px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 28px 70px rgba(0,0,0,.32);
}

.login-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    min-height: 38px;
    padding: 8px 13px 8px 12px;
    border: 1px solid #b9d8f5;
    border-radius: 999px;
    background: #f7fbff;
    color: #145ca3;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.login-home-link svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-home-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
    line-height: 1.12;
}

.login-home-copy strong,
.login-home-copy small {
    display: block;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-home-copy strong {
    color: inherit;
    font-size: 13px;
    font-weight: 950;
}

.login-home-copy small {
    color: #426987;
    font-size: 11px;
    font-weight: 850;
}

.login-home-link:hover {
    background: #eef7ff;
    color: #0b5f9e;
    border-color: #8fc4f3;
}

.login-only-card .login-brand-mark {
    margin: 0 0 8px;
}

.login-brand-logo {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    text-decoration: none;
}

.login-only-card .login-brand-mark img {
    width: 178px;
    display: block;
}

.login-only-card .login-brand-mark span {
    display: inline-flex;
    width: max-content;
    margin-top: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eaf4ff;
    color: #155b8f;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.login-only-card h2 {
    margin: 12px 0 4px;
    font-size: 34px;
    line-height: 1;
}

.login-only-card form {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.login-only-card label {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.login-only-card label span {
    color: #344258;
    font-size: 13px;
    font-weight: 900;
}

.login-only-card input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    border: 1px solid #cfdbeb;
    border-radius: 10px;
    background: #f3f7fd;
}

.login-only-card input:focus {
    border-color: #28679d;
    box-shadow: 0 0 0 4px rgba(40, 103, 157, .14);
    outline: none;
}

.login-only-card .primary-button {
    min-height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3e82c9, #3678bd);
    box-shadow: 0 14px 28px rgba(54, 120, 189, .24);
}

.login-only-card .secondary-button,
.login-only-card .site-return-button {
    width: 100%;
}

.login-only-card .secondary-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid #cfe0f2;
    border-radius: 10px;
    background: #f4f8fd;
    color: #174a82;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}

.login-only-card .secondary-button:hover {
    border-color: #3678bd;
    background: #eaf4ff;
    color: #0f3c70;
}

.login-only-card .secondary-button::before {
    content: "↻";
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #e4edf7;
    color: #174a82;
    font-size: 13px;
    line-height: 1;
}

.login-only-card .forgot-link {
    justify-self: center;
    color: #075aa4;
    font-size: 13px;
    font-weight: 900;
}

.site-return-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 2px;
    border: 1px solid #bdd6f1;
    border-radius: 10px;
    background: #fff;
    color: #2f73bd;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(15,23,42,.06);
}

.site-return-button span {
    font-size: 15px;
    line-height: 1;
}

.site-return-button:hover {
    border-color: #3678bd;
    background: #f2f8ff;
}

@media (max-width: 520px) {
    .lms-login-only {
        padding: 14px;
        background:
            linear-gradient(120deg, rgba(8, 24, 42, .94), rgba(10, 78, 67, .82)),
            #101a2d;
    }

    .login-only-card {
        padding: 26px 22px;
        border-radius: 16px;
    }

    .login-only-card h2 {
        font-size: 30px;
    }
}

/* LMS login with recommended courses */
.lms-login-showcase {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 22px;
    background:
        linear-gradient(135deg, rgba(8, 25, 45, .76), rgba(32, 91, 145, .64)),
        url("../img/backgrounds/natural-capsules-bg.jpg") center / cover no-repeat,
        #244f78;
}

.lms-access-shell {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.lms-access-login {
    min-height: 612px;
    align-content: center;
}

.lms-recommended-panel {
    min-height: 612px;
    padding: 18px;
    border: 1px solid #d8e4f1;
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 26px 70px rgba(15,23,42,.12);
    overflow: hidden;
}

.lms-recommended-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d9e5f1;
}

.lms-recommended-head h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 4px 0 0;
    color: #07152f;
    font-size: 28px;
    line-height: 1;
}

.section-title-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(135deg, #eaf4ff, #edf5ff);
    color: #3678bd;
    font-size: 15px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.lms-recommended-head > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #edf3fb;
    color: #4b5c72;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.lms-recommended-head > span span {
    color: #d92727;
    font-size: 15px;
    line-height: 1;
}

.lms-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding-top: 14px;
}

.lms-course-tile {
    overflow: hidden;
    border: 1px solid #d9e5f1;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15,23,42,.07);
    transition: transform .18s ease, box-shadow .18s ease;
}

.lms-course-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(15,23,42,.11);
}

.lms-course-cover {
    position: relative;
    height: 112px;
    overflow: hidden;
    background: #edf3f7;
}

.lms-course-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lms-course-cover picture {
    width: 100%;
    height: 100%;
    display: block;
}

.promo-badge-mobile {
    display: none;
}

.promo-badge-desktop:empty,
.promo-badge-mobile:empty {
    display: none;
}

.promo-overlay {
    position: absolute;
    left: 50%;
    bottom: 8px;
    z-index: 4;
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas: "tag time" "copy time";
    align-items: center;
    gap: 2px 7px;
    width: max-content;
    max-width: calc(100% - 16px);
    padding: 7px 8px;
    border-radius: 9px;
    background: rgba(198,40,40,.96);
    color: #fff;
    box-shadow: 0 12px 22px rgba(198,40,40,.28);
    backdrop-filter: blur(2px);
    transform: translateX(-50%);
}

.promo-overlay strong {
    grid-area: tag;
    font-size: 13px;
    font-weight: 950;
    line-height: 1;
}

.promo-countdown-copy {
    grid-area: copy;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    opacity: .95;
}

.promo-overlay small {
    grid-area: time;
    display: flex;
    gap: 4px;
    margin: 0;
    color: inherit;
    font-size: 12px;
    font-weight: 950;
}

.promo-overlay b {
    min-width: 34px;
    padding: 5px 6px;
    border-radius: 6px;
    background: #fff;
    color: #c62828;
    font-size: 13px;
    font-weight: 950;
    line-height: 1;
    text-align: center;
}

.promo-overlay em {
    margin-left: auto;
    padding: 4px 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    font-size: 10px;
    font-style: normal;
    font-weight: 950;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .promo-badge-desktop {
        display: none;
    }

    .promo-badge-mobile {
        display: block;
    }

    .promo-overlay {
        position: static;
        left: auto;
        bottom: auto;
        max-width: 100%;
        gap: 2px 6px;
        padding: 5px 6px;
        box-shadow: none;
        transform: none;
    }

    .promo-overlay strong {
        font-size: 12px;
    }

    .promo-overlay small {
        font-size: 11px;
    }

    .promo-overlay b {
        min-width: 29px;
        padding: 4px 5px;
        font-size: 12.5px;
    }

    .promo-overlay em {
        display: none;
    }

    .lms-promo-price .promo-discount-label {
        padding: 2px 5px;
        font-size: 10.5px;
    }

    .lms-promo-price del {
        font-size: 13.5px;
    }

    .lms-promo-price strong {
        font-size: 13.5px;
    }
}

.lms-promo-price {
    display: grid;
    gap: 3px;
    align-items: start;
}

.lms-promo-price .promo-discount-label {
    width: max-content;
    padding: 3px 7px;
    border: 1px solid #ffc9c9;
    border-radius: 999px;
    background: #fff1f1;
    color: #b42318;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
}

.lms-promo-price del {
    color: #c62828;
    display: block;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    text-decoration-color: #c62828;
    text-decoration-thickness: 2px;
}

.lms-promo-price strong {
    display: block;
    color: #00825a;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.05;
}

.lms-course-body {
    display: grid;
    grid-template-rows: 34px 34px 34px 20px;
    gap: 7px;
    padding: 10px 11px 10px;
    min-height: 142px;
}

.lms-course-body h3 {
    position: relative;
    padding-left: 13px;
    margin: 0;
    color: #174a82;
    font-size: 13px;
    line-height: 1.16;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.lms-course-body h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: .42em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #c7932c;
    box-shadow: 0 0 0 4px rgba(199, 147, 44, .16);
}

.lms-course-body p {
    margin: 0;
    color: #5b6b82;
    font-size: 11px;
    line-height: 1.22;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.lms-course-author {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 7px;
    align-items: center;
    min-height: 34px;
}

.lms-course-author > span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #246bff, #4c75ff);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.lms-course-author strong,
.lms-course-author small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lms-course-author strong {
    color: #07152f;
    font-size: 11px;
}

.lms-course-author small {
    color: #4e6078;
    font-size: 10px;
}

.lms-course-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding-top: 0;
}

.lms-course-foot strong {
    color: #006fe8;
    font-size: 12px;
}

.lms-course-foot small {
    min-width: 0;
    color: #344258;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lms-course-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid #bfd7f1;
    background: #f4f9ff;
    color: #2f73bd;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
}

.lms-course-more:hover {
    border-color: #3678bd;
    background: #eaf4ff;
}

@media (max-width: 1120px) {
    .lms-access-shell {
        grid-template-columns: 360px minmax(0, 1fr);
    }

    .lms-course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .lms-login-showcase {
        place-items: start center;
        padding: 12px;
    }

    .lms-access-shell {
        grid-template-columns: 1fr;
    }

    .lms-access-login,
    .lms-recommended-panel {
        min-height: 0;
    }
}

@media (max-width: 560px) {
    .lms-login-showcase {
        padding: 8px;
    }

    .lms-access-shell {
        gap: 10px;
    }

    .lms-access-login.login-only-card {
        gap: 10px;
        padding: 20px 16px;
        border-radius: 15px;
    }

    .lms-access-login .login-brand-mark {
        margin-bottom: 2px;
    }

    .lms-access-login .login-brand-mark img {
        width: 132px;
    }

    .lms-access-login .login-brand-mark span {
        margin-top: 8px;
        padding: 5px 9px;
        font-size: 10px;
    }

    .lms-access-login h2 {
        margin: 8px 0 2px;
        font-size: 26px;
    }

    .lms-access-login form {
        gap: 10px;
    }

    .lms-access-login label {
        gap: 5px;
    }

    .lms-access-login label span {
        font-size: 12px;
    }

    .lms-access-login input {
        min-height: 41px;
        padding: 9px 11px;
        font-size: 13px;
        border-radius: 9px;
    }

    .lms-access-login .primary-button {
        min-height: 44px;
        font-size: 13px;
        border-radius: 9px;
    }

    .lms-access-login .forgot-link {
        font-size: 12px;
    }

    .site-return-button {
        min-height: 39px;
        font-size: 12px;
        border-radius: 9px;
    }

    .lms-recommended-panel {
        padding: 14px;
        border-radius: 15px;
    }

    .lms-recommended-head {
        gap: 8px;
        padding-bottom: 10px;
    }

    .lms-recommended-head .eyebrow {
        font-size: 10px;
        line-height: 1.1;
    }

    .lms-recommended-head h2 {
        max-width: 190px;
        font-size: 23px;
    }

    .lms-recommended-head > span {
        padding: 6px 9px;
        font-size: 10px;
    }

    .lms-course-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-top: 10px;
    }

    .lms-course-tile {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        border-radius: 12px;
    }

    .lms-course-cover {
        height: 100%;
        min-height: 112px;
    }

    .lms-course-body {
        gap: 5px;
        padding: 9px 9px 8px;
    }

    .lms-course-body h3 {
        min-height: 0;
        font-size: 12px;
        line-height: 1.12;
    }

    .lms-course-body p {
        min-height: 0;
        font-size: 10px;
        line-height: 1.22;
        -webkit-line-clamp: 2;
    }

    .lms-course-author {
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 6px;
        min-height: 28px;
    }

    .lms-course-author > span {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .lms-course-author strong {
        font-size: 10px;
    }

    .lms-course-author small {
        font-size: 9px;
    }

    .lms-course-foot {
        padding-top: 2px;
    }

    .lms-course-foot strong {
        font-size: 10px;
    }

    .lms-course-foot small {
        max-width: 105px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 9px;
    }

    .lms-course-more {
        min-height: 22px;
        padding: 0 7px;
        font-size: 10px;
    }
}

.lms-reset-page {
    grid-template-columns: 1fr;
}

.lms-reset-page .login-only-shell {
    width: min(440px, 100%);
}

.reset-card {
    min-height: auto;
}

.reset-copy {
    margin: 0 0 4px;
    color: #4e6078;
    font-size: 14px;
    line-height: 1.45;
}

.reset-card form {
    gap: 12px;
}

.alert.success {
    border: 1px solid #b9ead0;
    background: #ecfff4;
    color: #096038;
}

.reset-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.password-field {
    position: relative;
    display: block;
}

.password-field input {
    width: 100%;
    padding-right: 48px;
}

.password-eye {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid #cfe0f2;
    border-radius: 999px;
    background: #ffffff;
    color: #2f73bd;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .08);
}

.password-eye:hover {
    border-color: #3678bd;
    background: #f2f8ff;
}

/* Student cockpit dashboard */
.learner-dashboard {
    width: min(1320px, calc(100% - 24px));
    margin: 0 auto;
    gap: 12px;
    padding: 14px 0 28px;
}

.learner-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

.learner-hero-copy,
.learner-profile-card,
.learner-panel,
.side-card {
    border: 1px solid rgba(207, 219, 234, .95);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.94));
    box-shadow: 0 20px 48px rgba(15, 23, 42, .08);
}

.learner-hero-copy {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    display: grid;
    align-content: center;
    padding: 20px 24px;
}

.learner-hero-copy::after {
    content: "";
    position: absolute;
    inset: auto -70px -120px auto;
    width: 310px;
    height: 310px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(54,120,189,.20), rgba(54,120,189,0) 68%);
    pointer-events: none;
}

.learner-hero-copy h1 {
    max-width: 760px;
    margin: 6px 0 8px;
    color: #07152f;
    font-size: clamp(30px, 3vw, 42px);
    line-height: .98;
}

.learner-hero-copy p {
    max-width: 620px;
    margin: 0;
    color: #50617a;
    font-size: 14px;
    line-height: 1.42;
}

.learner-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.learner-hero-actions .primary-button,
.learner-hero-actions .ghost-button {
    min-height: 36px;
    padding: 0 13px;
    border-radius: 9px;
    font-size: 14px;
}

.learner-hero-actions .primary-button {
    background: linear-gradient(135deg, #3678bd, #4b91d8);
    box-shadow: 0 14px 28px rgba(54, 120, 189, .18);
}

.learner-profile-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    align-content: center;
    padding: 16px;
}

.learner-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #eaf4ff, #d8eafb);
    color: #174a82;
    font-size: 19px;
    font-weight: 1000;
}

.learner-profile-card strong,
.learner-profile-card span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.learner-profile-card strong {
    margin-top: 3px;
    color: #07152f;
    font-size: 15px;
}

.learner-profile-card span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.learner-profile-card .logout-button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 36px;
    margin-top: 2px;
    border: 1px solid #cfe0f2;
    border-radius: 9px;
    background: #f4f9ff;
    color: #1d5f99;
    font-size: 14px;
}

.learner-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.learner-kpis article {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 72px;
    padding: 12px 14px;
    border: 1px solid rgba(207, 219, 234, .95);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.learner-kpis small,
.side-card small {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.learner-kpis strong {
    display: block;
    margin-top: 3px;
    color: #07152f;
    font-size: 22px;
    line-height: 1;
}

.mini-icon {
    width: 32px;
    height: 32px;
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 32px;
    border-radius: 10px;
    background: #edf4fb;
    color: #3678bd;
}

.mini-icon::before,
.mini-icon::after {
    content: "";
    position: absolute;
    background: currentColor;
}

.mini-icon-program::before {
    width: 19px;
    height: 14px;
    border-radius: 3px;
    background: transparent;
    border: 2px solid currentColor;
}

.mini-icon-program::after {
    width: 15px;
    height: 2px;
    top: 14px;
    left: 12px;
}

.mini-icon-progress::before {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: conic-gradient(currentColor 70%, rgba(54,120,189,.18) 0);
}

.mini-icon-progress::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #edf4fb;
}

.mini-icon-balance::before {
    width: 19px;
    height: 13px;
    border-radius: 3px;
    background: transparent;
    border: 2px solid currentColor;
}

.mini-icon-balance::after {
    width: 6px;
    height: 6px;
    right: 9px;
    border-radius: 50%;
}

.mini-icon-certificate::before {
    width: 18px;
    height: 21px;
    border-radius: 3px;
    background: transparent;
    border: 2px solid currentColor;
}

.mini-icon-certificate::after {
    width: 12px;
    height: 2px;
    top: 15px;
    left: 13px;
    box-shadow: 0 5px 0 currentColor;
}

.mini-icon-live::before {
    width: 18px;
    height: 13px;
    border-radius: 4px;
    background: transparent;
    border: 2px solid currentColor;
}

.mini-icon-live::after {
    right: 7px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid currentColor;
    background: transparent;
}

.mini-icon-support::before {
    width: 20px;
    height: 14px;
    border-radius: 10px 10px 10px 2px;
}

.mini-icon-support::after {
    width: 10px;
    height: 2px;
    left: 14px;
    top: 18px;
    box-shadow: 0 5px 0 currentColor;
    background: #edf4fb;
}

.learner-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 16px;
    align-items: start;
}

.learner-main-column {
    min-width: 0;
}

.learner-panel {
    padding: 18px;
}

.learner-section-head {
    margin-bottom: 14px;
}

.program-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 14px;
}

.program-search {
    gap: 6px;
}

.program-search input {
    min-height: 44px;
    border-radius: 12px;
    background: #f8fbff;
}

.program-filter-pills {
    display: inline-flex;
    gap: 7px;
    padding: 5px;
    border: 1px solid #d8e4f1;
    border-radius: 999px;
    background: #f4f8fd;
}

.program-filter-pills button {
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #50617a;
    font-weight: 900;
    cursor: pointer;
}

.program-filter-pills button.is-active {
    background: #3678bd;
    color: #fff;
    box-shadow: 0 8px 16px rgba(54, 120, 189, .18);
}

/* Dashboard programs header: keep the course list visible without wasting vertical space. */
.program-dashboard .program-section {
    padding: 12px 14px;
}

.program-dashboard .program-section .section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.program-dashboard .program-section .section-head h2 {
    font-size: 1.28rem;
    line-height: 1.05;
    margin: 2px 0 0;
}

.program-dashboard .program-section .section-head .eyebrow {
    font-size: .66rem;
    line-height: 1;
}

.program-dashboard .program-section .result-pill {
    min-height: 28px;
    padding: 0 11px;
    font-size: .72rem;
}

.program-dashboard .program-tools {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.program-dashboard .program-search {
    gap: 3px;
}

.program-dashboard .program-search span {
    font-size: .72rem;
    line-height: 1;
}

.program-dashboard .program-search input {
    min-height: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: .86rem;
    padding: 0 12px;
}

.program-dashboard .program-filter-pills {
    gap: 4px;
    padding: 3px;
}

.program-dashboard .program-filter-pills button {
    min-height: 28px;
    padding: 0 10px;
    font-size: .76rem;
}

.learner-program-list {
    display: grid;
    gap: 12px;
}

.learner-program-card {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid #dbe7f4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.learner-program-card[hidden] {
    display: none;
}

.program-timeline {
    display: grid;
    justify-items: center;
    padding-top: 8px;
}

.program-timeline span {
    width: 12px;
    height: 12px;
    border: 3px solid #d7e8fa;
    border-radius: 50%;
    background: #3678bd;
    box-shadow: 0 0 0 4px #f2f8ff;
}

.program-summary {
    min-width: 0;
    display: grid;
    gap: 12px;
}

.program-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.program-title-row h3 {
    margin: 6px 0 4px;
    color: #07152f;
    font-size: 20px;
    line-height: 1.12;
}

.program-title-row p {
    margin: 0;
    color: #5b6b82;
    font-size: 13px;
}

.program-title-row .program-start-date {
    margin-top: 4px;
    color: #174a82;
    font-size: 12px;
    font-weight: 900;
}

.course-type-pill {
    width: max-content;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #edf4fb;
    color: #174a82;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.integrated-cycle-pill {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px !important;
    padding: 5px 9px;
    border: 1px solid #b7ead0;
    border-radius: 999px;
    background: #ecfdf5;
    color: #00684a !important;
    font-size: 11px !important;
    font-weight: 950;
    line-height: 1.15 !important;
}

.integrated-cycle-pill span {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .14);
}

.integrated-cycle-pill strong {
    color: #00684a;
    font: inherit;
}

.integrated-cycle-pill small {
    color: #28745e;
    font-size: 10px;
    font-weight: 900;
}

.program-cycle-pill {
    margin-top: 10px !important;
}

.learner-progress-line {
    display: grid;
    gap: 7px;
}

.learner-progress-line > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.program-data-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid #e1ebf6;
    border-radius: 10px;
    overflow: hidden;
}

.program-data-row div {
    min-width: 0;
    padding: 8px 10px;
    border-right: 1px solid #e1ebf6;
    background: #f9fbfe;
}

.program-data-row div:last-child {
    border-right: 0;
}

.program-data-row small {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.program-data-row strong {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: #07152f;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.program-data-row .has-debt strong {
    color: #b42318;
}

.program-data-row .is-clear strong {
    color: #078546;
}

.program-card-actions {
    display: grid;
    grid-template-columns: minmax(150px, .8fr) repeat(2, minmax(112px, auto));
    gap: 8px;
    align-items: center;
}

.program-card-actions .program-action,
.program-card-actions .ghost-button {
    min-height: 38px;
    border-radius: 10px;
}

.program-card-actions .program-action {
    width: 100%;
    background: #3678bd;
}

.program-card-actions .ghost-button[aria-disabled="true"] {
    opacity: .72;
    cursor: default;
}

.finance-summary-section {
    scroll-margin-top: 92px;
}

.finance-summary-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.finance-summary-kpis article {
    min-width: 0;
    padding: 13px;
    border: 1px solid #e1ebf6;
    border-radius: 12px;
    background: #f9fbfe;
}

.finance-summary-kpis span,
.finance-program-row span {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.finance-summary-kpis strong {
    display: block;
    margin-top: 5px;
    color: #07152f;
    font-size: 18px;
    line-height: 1.15;
}

.finance-summary-kpis .has-debt strong,
.finance-program-row .has-debt strong {
    color: #b42318;
}

.finance-summary-kpis .is-clear strong,
.finance-program-row .is-clear strong {
    color: #078546;
}

.finance-program-list {
    display: grid;
    gap: 9px;
}

.finance-program-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(96px, .72fr));
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e1ebf6;
    border-radius: 12px;
    background: #fff;
}

.finance-program-row > div {
    min-width: 0;
}

.finance-program-row > div:first-child strong {
    display: block;
    color: #07152f;
    font-size: 14px;
    line-height: 1.2;
}

.finance-program-row small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.finance-program-row div:not(:first-child) strong {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: #07152f;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.finance-balance-action {
    display: grid;
    grid-template-columns: minmax(max-content, 1fr) auto;
    align-items: center;
    column-gap: 8px;
}

.finance-balance-action span {
    grid-column: 1 / -1;
}

.finance-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    min-height: 28px;
    padding: 0;
    border: 1px solid #cfe0f5;
    border-radius: 9px;
    background: #f5faff;
    color: #0b2a55;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.finance-detail-button .btn-icon {
    width: 14px;
    height: 14px;
}

.finance-balance-action strong {
    overflow: visible !important;
    text-overflow: clip !important;
}

@media (max-width: 980px) {
    .finance-program-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .finance-program-row > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .finance-summary-section {
        gap: 10px;
    }

    .finance-summary-section .learner-section-head {
        gap: 8px;
        align-items: center;
    }

    .finance-summary-section .learner-section-head h2 {
        font-size: 22px;
    }

    .finance-summary-section .result-pill {
        min-height: 28px;
        padding: 5px 9px;
        font-size: 10px;
    }

    .finance-summary-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin-bottom: 8px;
    }

    .finance-summary-kpis article {
        padding: 9px 8px;
        border-radius: 10px;
    }

    .finance-summary-kpis span,
    .finance-program-row span {
        font-size: 9px;
        line-height: 1.15;
    }

    .finance-summary-kpis strong {
        margin-top: 3px;
        font-size: 13px;
    }

    .finance-program-list {
        gap: 7px;
    }

    .finance-program-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        padding: 10px;
        border-radius: 12px;
    }

    .finance-program-row > div:first-child {
        grid-column: 1 / -1;
    }

    .finance-program-row > div:first-child strong {
        font-size: 13px;
        line-height: 1.15;
    }

    .finance-program-row small {
        margin-top: 2px;
        font-size: 10px;
    }

    .finance-program-row div:not(:first-child) strong {
        margin-top: 2px;
        font-size: 12px;
        line-height: 1.15;
    }

    .finance-program-row > div:nth-of-type(5) {
        display: none;
    }

    .finance-detail-button {
        width: 28px;
        min-height: 26px;
    }
}

.learner-side-menu {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 14px;
}

.side-card {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.side-card h2 {
    margin: -5px 0 0;
    color: #07152f;
    font-size: 21px;
}

.referral-wallet-card {
    gap: 6px;
    border: 1.5px solid rgba(16, 185, 129, .55);
    border-radius: 16px;
    background: #fff !important;
    box-shadow: 0 16px 34px rgba(6, 78, 59, .11);
    overflow: hidden;
}

.referral-earn-hero {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-height: 108px;
    margin: 0;
    padding: 6px 7px 0 8px;
    border: 0;
    border-radius: 16px;
    background: #fff !important;
    box-shadow: none;
    overflow: hidden;
}

.referral-earn-copy {
    align-self: center;
    min-width: 0;
    padding-bottom: 4px;
}

.referral-earn-top {
    display: grid;
    gap: 3px;
    margin-bottom: 5px;
}

.referral-earn-copy .eyebrow {
    color: #0b8b5b;
    font-size: 11px;
    line-height: 1.15;
}

.referral-earn-copy h2 {
    margin: 0;
    color: #064e3b;
    font-size: 19px;
    line-height: 1.02;
    letter-spacing: 0;
}

.referral-earn-copy p {
    margin: 3px 0 0;
    color: #0f6b4a;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.22;
}

.referral-earn-photo {
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 0 0 0 -2px;
    background: #fff !important;
    box-shadow: none;
}

.referral-earn-photo img {
    display: block;
    width: 90px;
    max-height: 108px;
    object-fit: contain;
    object-position: bottom center;
    background: #fff !important;
    filter: none;
    box-shadow: none;
}

.referral-earn-hero.no-photo {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 13px;
}

.referral-earn-hero.no-photo .referral-earn-copy {
    padding-bottom: 0;
}

.withdrawal-mini-form {
    display: grid;
    gap: 9px;
}

.withdrawal-mini-form summary {
    list-style: none;
    cursor: pointer;
}

.withdrawal-mini-form summary::-webkit-details-marker {
    display: none;
}

.withdrawal-mini-form summary.disabled {
    pointer-events: none;
    opacity: .62;
}

.withdrawal-mini-form form {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid #d7e6f4;
    border-radius: 13px;
    background: rgba(255,255,255,.72);
}

.withdrawal-mini-form label {
    display: grid;
    gap: 4px;
    color: #41536e;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.withdrawal-mini-form input,
.withdrawal-mini-form select,
.withdrawal-mini-form textarea {
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #cfe0f2;
    border-radius: 10px;
    background: #fff;
    color: #07152f;
    font-size: 13px;
    font-weight: 800;
    text-transform: none;
}

.withdrawal-mini-form textarea {
    min-height: 58px;
    padding-top: 9px;
    resize: vertical;
}

.referral-withdrawal-history {
    width: 100%;
    min-height: 36px;
    justify-content: center;
}

.referral-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}

.referral-action-grid > :only-child {
    grid-column: 1 / -1;
}

.referral-action-grid .ghost-button,
.referral-action-grid .program-action {
    min-height: 30px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
    gap: 6px;
}

.referral-action-grid .ghost-button {
    border-color: #bdebd8;
    background: #fff;
    color: #064e3b;
}

.referral-action-grid .withdrawal-mini-form > summary.program-action {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    border: 1px solid #10b981;
    background: #ecfdf5;
    color: #047857;
    box-shadow: none;
    text-align: center;
    text-decoration: none;
}

.referral-action-grid .withdrawal-mini-form > summary.program-action.disabled {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #64748b;
}

.referral-action-grid .withdrawal-mini-form[open] {
    grid-column: 1 / -1;
}

.referral-withdrawal-list article {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
}

.referral-card-head,
.referral-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.referral-help-button {
    min-height: 22px;
    width: fit-content;
    margin-top: 5px;
    padding: 0 8px;
    border: 1px solid #b7e4cf;
    border-radius: 999px;
    background: #f0fdf7;
    color: #087247;
    font-weight: 900;
    font-size: 10px;
    white-space: nowrap;
    cursor: pointer;
}

.referral-code-box {
    padding: 6px 7px;
    border: 1px dashed #22c990;
    border-radius: 12px;
    background: #fff;
}

.referral-code-box strong {
    color: #005b3b;
    font-size: 19px;
    letter-spacing: .04em;
}

.referral-view-button {
    min-height: 26px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #b9d7f3;
    border-radius: 9px;
    background: #eef6ff;
    color: #0b4f83;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.referral-view-button i {
    font-size: 14px;
}

.referral-view-button:hover {
    border-color: #76b7ec;
    background: #e1f0ff;
}

.referral-copy-button {
    width: 100%;
    min-height: 29px;
    font-size: 12px;
    justify-content: center;
    border-color: rgba(16, 185, 129, .45);
    background: #fff;
}

.referral-copy-button.copied {
    border-color: #8fd8b8;
    background: #ecfdf5;
    color: #087247;
}

.referral-share-hint,
.referral-copy-feedback {
    display: block;
    color: #53657d;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.referral-copy-feedback {
    min-height: 12px;
    color: #087247;
}

.wallet-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.wallet-mini-grid article {
    padding: 6px;
    border: 1px solid #cce8db;
    border-radius: 10px;
    background: #fff;
}

.wallet-mini-grid span,
.withdrawal-mini-form small {
    display: block;
    color: #64748b;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.wallet-mini-grid strong {
    display: block;
    margin-top: 2px;
    color: #07152f;
    font-size: 13px;
}

.withdrawal-mini-form {
    display: grid;
    gap: 5px;
}

.withdrawal-mini-form .program-action {
    width: 100%;
}

.withdrawal-mini-form .program-action:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.referral-pending-list {
    display: grid;
    gap: 5px;
    max-height: min(48vh, 360px);
    overflow: auto;
    padding-right: 3px;
    scrollbar-width: thin;
}

.referral-pending-head,
.referral-pending-list article {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) 110px 82px 92px;
    align-items: center;
    gap: 8px;
}

.referral-pending-head {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0 8px 4px;
    background: #fff;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.referral-pending-list article {
    min-height: 42px;
    padding: 7px 8px;
    border: 1px solid #d8e7f5;
    border-radius: 10px;
    background: #f8fbff;
}

.referral-pending-list strong,
.referral-pending-list span,
.referral-pending-list b {
    display: block;
    color: #07152f;
    font-weight: 900;
    font-size: 12px;
}

.referral-pending-list span {
    color: #0b5b8e;
}

.referral-pending-list small {
    display: block;
    margin-top: 1px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.2;
}

@media (max-width: 640px) {
    .referral-pending-head {
        display: none;
    }

    .referral-pending-list article {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .referral-pending-list article b {
        text-align: right;
    }
}

.side-progress {
    display: grid;
    gap: 8px;
}

.side-progress strong {
    color: #07152f;
    font-size: 36px;
    line-height: 1;
}

.side-full-button {
    width: 100%;
    background: #3678bd;
}

.student-tool-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.student-tool-list a,
.student-tool-list button {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-content: start;
    min-height: 104px;
    padding: 10px;
    border: 1px solid #e0eaf5;
    border-radius: 13px;
    background: #f9fbfe;
    color: #07152f;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.student-tool-list a[aria-disabled="true"] {
    opacity: .82;
    cursor: default;
}

.student-tool-list strong,
.student-tool-list small {
    display: block;
}

.student-tool-list strong {
    font-size: 14px;
}

.student-tool-list small {
    margin-top: 2px;
    font-size: 11px;
}

.help-launch-card p {
    margin: -4px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.help-modal-button {
    width: 100%;
    min-height: 38px;
    margin-top: 2px;
    border-radius: 10px;
}

.top-help-button {
    cursor: pointer;
}

body.modal-open {
    overflow: hidden;
}

.lms-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(7, 21, 47, .58);
    backdrop-filter: blur(8px);
}

.lms-modal-backdrop[hidden] {
    display: none;
}

.lms-help-modal {
    position: relative;
    width: min(560px, 100%);
    max-height: min(720px, calc(100vh - 36px));
    overflow: auto;
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid #d8e4f1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 78px rgba(7, 21, 47, .28);
}

.lms-help-modal h2 {
    margin: -5px 42px 0 0;
    color: #07152f;
    font-size: 28px;
}

.modal-muted {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.certificate-modal {
    width: min(680px, 100%);
}

.support-modal {
    width: min(880px, 100%);
}

.support-alert {
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 900;
}

.support-alert.success {
    border: 1px solid #bbf7d0;
    background: #ecfdf3;
    color: #047857;
}

.support-alert.error {
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

.support-new-ticket {
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #f8fbff;
    overflow: hidden;
}

.support-new-ticket > summary,
.support-reply-toggle > summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px;
    color: #153e75;
    cursor: pointer;
    font-weight: 900;
    list-style: none;
}

.support-new-ticket > summary::-webkit-details-marker,
.support-reply-toggle > summary::-webkit-details-marker {
    display: none;
}

.support-new-ticket > summary::after,
.support-reply-toggle > summary::after {
    content: "+";
    color: #3678bd;
    font-size: 18px;
    font-weight: 900;
}

.support-new-ticket[open] > summary::after,
.support-reply-toggle[open] > summary::after {
    content: "-";
}

.support-reply-toggle > summary {
    justify-content: center;
}

.support-reply-toggle > summary::after {
    display: none;
}

.support-reply-label-open {
    display: none;
}

.support-reply-toggle[open] .support-reply-label-closed {
    display: none;
}

.support-reply-toggle[open] .support-reply-label-open {
    display: inline;
}

.support-create-form,
.support-reply-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff, #fff);
}

.support-new-ticket .support-create-form {
    border-width: 1px 0 0;
    border-radius: 0;
}

.support-form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.support-form-actions.full {
    grid-column: 1 / -1;
}

.support-form-actions .primary-button,
.support-form-actions .ghost-button,
.support-form-actions .support-cancel-button {
    min-height: 42px;
    width: 100%;
}

.support-cancel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #d7e3f2;
    border-radius: 10px;
    background: #fff;
    color: #53657d;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
}

.support-cancel-button span {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #eef2f7;
    color: #64748b;
    line-height: 1;
}

.support-cancel-button:hover {
    border-color: #bfdbfe;
    color: #153e75;
    background: #f8fbff;
}

.support-create-form label,
.support-reply-form label {
    display: grid;
    gap: 6px;
    color: #344054;
    font-size: 13px;
    font-weight: 900;
}

.support-create-form .full,
.support-reply-form label {
    grid-column: 1 / -1;
}

.support-create-form input,
.support-create-form select,
.support-create-form textarea,
.support-reply-form textarea,
.support-reply-form input[type="file"] {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cfdae8;
    border-radius: 10px;
    background: #fff;
    padding: 10px 12px;
    color: #07152f;
}

.support-create-form textarea,
.support-reply-form textarea {
    min-height: 96px;
    resize: vertical;
}

.support-create-form small {
    color: #64748b;
    font-size: 12px;
}

.support-ticket-list {
    display: grid;
    gap: 10px;
}

.support-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

.support-list-head strong {
    color: #07152f;
    font-size: 18px;
}

.support-list-head span {
    border-radius: 999px;
    padding: 6px 10px;
    background: #edf3fb;
    color: #53657d;
    font-size: 12px;
    font-weight: 900;
}

.support-ticket-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.support-ticket-card summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    cursor: pointer;
}

.support-ticket-card summary::after {
    content: "Ver";
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 0 10px;
    background: #fff;
    color: #1d5f9e;
    font-size: 12px;
    font-weight: 900;
}

.support-ticket-card[open] summary::after {
    content: "Ocultar";
}

.support-ticket-card summary::-webkit-details-marker {
    display: none;
}

.support-ticket-card summary strong {
    display: block;
    color: #07152f;
    font-size: 15px;
}

.support-ticket-card summary small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.support-thread {
    display: grid;
    gap: 9px;
    padding: 0 14px 14px;
}

.support-reply-toggle {
    margin: 0 14px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #f8fbff;
    overflow: hidden;
}

.support-reply-toggle .support-reply-form {
    border-width: 1px 0 0;
    border-radius: 0;
}

@media (max-width: 640px) {
    .support-form-actions {
        grid-template-columns: 1fr;
    }
}

.support-message {
    border: 1px solid #e1eaf5;
    border-radius: 14px;
    padding: 11px;
    background: #f8fbff;
}

.support-message.from-admin {
    background: #eef6ff;
    border-color: #bfdbfe;
}

.support-message div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.support-message p {
    margin: 8px 0 0;
    color: #172033;
    line-height: 1.45;
}

.support-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.support-attachments a {
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 5px 9px;
    background: #fff;
    color: #1d5f9e;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.support-page {
    max-width: 1180px;
    padding-bottom: 110px;
}

.support-page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    background:
        linear-gradient(135deg, rgba(54, 120, 189, .12), rgba(34, 197, 94, .08)),
        #fff;
    box-shadow: var(--shadow-soft);
}

.support-page-hero h1 {
    margin: 8px 0 6px;
    color: #07152f;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: 0;
}

.support-page-hero p {
    max-width: 720px;
    margin: 0;
    color: #465b77;
    line-height: 1.45;
}

.support-back-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 8px 12px;
    background: #fff;
    color: #153e75;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.support-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(108px, 1fr));
    gap: 10px;
    align-content: center;
}

.support-steps article {
    display: grid;
    gap: 4px;
    border: 1px solid #d7e7fb;
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, .82);
}

.support-steps span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #eaf4ff;
    color: #1d5f9e;
    font-weight: 950;
}

.support-steps strong {
    color: #07152f;
}

.support-steps small {
    color: #64748b;
    font-weight: 800;
}

.support-create-panel {
    margin-bottom: 14px;
}

.support-create-panel .support-new-ticket > summary {
    min-height: 58px;
    padding: 0 18px;
    font-size: 18px;
}

.support-create-panel .support-new-ticket > summary span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.support-create-panel .support-new-ticket > summary small {
    color: #64748b;
    font-size: 13px;
}

.support-workspace {
    display: grid;
    grid-template-columns: minmax(330px, 38%) minmax(0, 1fr);
    gap: 14px;
}

.support-list-panel,
.support-detail-panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.support-list-title,
.support-detail-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.support-list-title h2,
.support-detail-head h2 {
    margin: 4px 0 0;
    color: #07152f;
    font-size: 24px;
    letter-spacing: 0;
}

.support-detail-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-weight: 800;
}

.support-search {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 14px;
    border: 1px solid #cfdae8;
    border-radius: 13px;
    padding: 0 12px;
    background: #f8fbff;
}

.support-search input {
    width: 100%;
    min-height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #07152f;
    font: inherit;
}

.support-ticket-list-crud {
    max-height: 610px;
    overflow: auto;
    padding: 0 14px 14px;
}

.support-ticket-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid #dbe7f5;
    border-radius: 14px;
    padding: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.support-ticket-row + .support-ticket-row {
    margin-top: 9px;
}

.support-ticket-row.is-selected {
    border-color: #2f7dcc;
    background: #eef6ff;
    box-shadow: inset 4px 0 0 #2f7dcc;
}

.support-row-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: #eaf4ff;
    position: relative;
}

.support-row-icon::before,
.support-row-icon::after {
    content: "";
    position: absolute;
    border: 2px solid #2f7dcc;
}

.support-row-icon::before {
    width: 17px;
    height: 13px;
    left: 10px;
    top: 10px;
    border-radius: 4px;
}

.support-row-icon::after {
    width: 7px;
    height: 7px;
    left: 15px;
    top: 22px;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
}

.support-ticket-row strong {
    display: block;
    color: #07152f;
    font-size: 14px;
}

.support-ticket-row small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.support-ticket-row .support-flow-status {
    width: fit-content;
    margin-top: 7px;
    border-radius: 999px;
    padding: 5px 9px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 11px;
    font-weight: 950;
}

.support-ticket-row .support-flow-status.answered {
    background: #ecfdf3;
    color: #047857;
}

.support-ticket-row .support-flow-status.closed {
    background: #eef2f7;
    color: #475569;
}

.support-ticket-row em.status {
    font-style: normal;
    white-space: nowrap;
}

.support-thread-page {
    padding: 18px;
}

.support-thread-page .support-message {
    padding: 14px;
}

.support-thread-page .support-message + .support-message {
    margin-top: 10px;
}

.support-reply-page {
    margin: 0 18px 18px;
}

.support-closed-note {
    margin: 0 18px 18px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    padding: 14px;
    background: #fff7ed;
    color: #7c2d12;
}

.support-closed-note p {
    margin: 4px 0 0;
}

.support-empty {
    margin: 18px;
}

@media (max-width: 900px) {
    .support-page-hero,
    .support-workspace {
        grid-template-columns: 1fr;
    }

    .support-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .support-page {
        padding-inline: 12px;
    }

    .support-page-hero {
        padding: 14px;
        border-radius: 16px;
    }

    .support-page-hero h1 {
        font-size: 28px;
    }

    .support-steps {
        grid-template-columns: 1fr;
    }

    .support-create-panel .support-new-ticket > summary {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        padding-block: 10px;
    }

    .support-list-title,
    .support-detail-head {
        padding: 14px;
    }

    .support-ticket-row {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .support-ticket-row em.status {
        grid-column: 2;
        width: fit-content;
    }

    .support-thread-page,
    .support-reply-page,
    .support-empty {
        margin: 0;
        padding: 14px;
    }

    .support-reply-page {
        margin: 0;
    }
}

.recording-modal {
    width: min(720px, 100%);
}

.program-panel-modal {
    width: min(560px, 100%);
}

.program-panel-empty-icon {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: #eaf4ff;
    color: #3678bd;
}

.program-panel-empty-icon::before {
    content: "";
    width: 18px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.announcement-modal {
    width: min(680px, 100%);
}

.announcement-list {
    max-height: min(62vh, 560px);
    display: grid;
    gap: 10px;
    margin-top: 16px;
    overflow: auto;
    padding-right: 4px;
}

.announcement-item {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .04);
}

.announcement-item.unread {
    border-color: #fecaca;
    background: linear-gradient(135deg, #fff, #fff7f7);
}

.announcement-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.announcement-item-head small {
    display: block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
}

.announcement-item-head strong {
    display: block;
    margin-top: 3px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.15;
}

.announcement-new {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border-radius: 999px;
    padding: 0 10px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 900;
}

.announcement-item p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.5;
    white-space: pre-line;
}

.announcement-read-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 0 14px;
    border: 1px solid #b7d6f3;
    border-radius: 10px;
    background: #edf6ff;
    color: #174a80;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
}

.announcement-read-button:disabled {
    opacity: .65;
    cursor: wait;
}

.announcement-read-note {
    display: inline-block;
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.event-modal {
    width: min(920px, 100%);
}

.event-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 14px;
    margin-top: 16px;
}

.event-list {
    max-height: min(62vh, 560px);
    display: grid;
    align-content: start;
    gap: 10px;
    overflow: auto;
    padding-right: 3px;
}

.event-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    background: #fff;
}

.event-item.unread {
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #fff, #eff6ff);
}

.event-date-box {
    width: 54px;
    min-height: 58px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #edf6ff;
    color: #1f65a8;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
}

.event-date-box small {
    font-size: 10px;
}

.event-date-box strong {
    margin-top: -7px;
    color: #07152f;
    font-size: 22px;
}

.event-item strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
}

.event-item small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.event-item p {
    margin: 6px 0 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.35;
}

.event-full-link {
    display: grid;
    gap: 4px;
    margin-top: 10px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 9px 10px;
    background: #f8fbff;
    color: #1d5f9e;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.event-full-link span {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.event-full-link strong {
    color: #1d5f9e;
    font-size: 13px;
    line-height: 1.3;
}

.event-calendar {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff, #fff);
    padding: 14px;
    align-self: start;
}

.event-calendar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.event-calendar-head strong {
    color: var(--ink);
    font-size: 16px;
    text-transform: capitalize;
}

.event-calendar-head span {
    border-radius: 999px;
    padding: 5px 9px;
    background: #edf2f7;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.event-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.event-calendar-grid b {
    color: #64748b;
    font-size: 11px;
    text-align: center;
}

.event-calendar-day {
    min-height: 34px;
    display: grid;
    place-items: center;
    position: relative;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

.event-calendar-day.has-event {
    background: #dbeafe;
    color: #1d4ed8;
    box-shadow: inset 0 0 0 1px #bfdbfe;
}

.event-calendar-day em {
    position: absolute;
    right: 3px;
    bottom: 2px;
    min-width: 14px;
    min-height: 14px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 9px;
    font-style: normal;
}

.event-calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
    table-layout: fixed;
}

.event-calendar-table th {
    padding: 3px 0 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.event-calendar-table td {
    height: 58px;
    padding: 5px;
    vertical-align: top;
    border-radius: 11px;
    background: #f8fbff;
    color: #334155;
    box-shadow: inset 0 0 0 1px #e2edf8;
}

.event-calendar-table td.calendar-empty {
    background: transparent;
    box-shadow: none;
}

.event-calendar-table td.has-event {
    background: #eaf3ff;
    box-shadow: inset 0 0 0 1px #bfdbfe, 0 8px 18px rgba(54, 120, 189, .12);
}

.calendar-day-number {
    display: block;
    margin-bottom: 4px;
    color: #07152f;
    font-size: 12px;
    font-weight: 900;
}

.calendar-event-link {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-top: 3px;
    border-radius: 999px;
    padding: 3px 5px;
    background: #3678bd;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    text-decoration: none;
}

.event-calendar-table td em {
    display: inline-flex;
    margin-top: 3px;
    border-radius: 999px;
    padding: 2px 5px;
    background: #dc2626;
    color: #fff;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
}

.event-empty-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #edf6ff;
    position: relative;
}

.event-empty-icon::before {
    content: "";
    position: absolute;
    inset: 12px 11px 10px;
    border: 2px solid #3678bd;
    border-radius: 4px;
}

.payment-modal {
    width: min(640px, 100%);
}

.payment-total-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.payment-total-grid article {
    padding: 12px;
    border: 1px solid #d8e4f1;
    border-radius: 14px;
    background: #f8fbff;
}

.payment-total-grid span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.payment-total-grid strong {
    display: block;
    margin-top: 5px;
    color: #07152f;
    font-size: 20px;
}

.student-payment-list {
    display: grid;
    gap: 8px;
}

.payment-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 14px 0 8px;
    color: #07152f;
}

.payment-list-head span {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.payment-list-head small {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.student-payment-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid #d8e4f1;
    border-radius: 13px;
    background: #fff;
}

.student-payment-list strong,
.student-payment-list small {
    display: block;
}

.student-payment-list strong {
    color: #07152f;
    font-size: 16px;
}

.student-payment-list small,
.student-payment-list time {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.lms-payment-request-form {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(120px, .8fr) minmax(150px, .8fr) auto;
    gap: 12px;
    align-items: end;
    margin: 16px 0;
    padding: 14px;
    border: 1px solid #cfe0f3;
    border-radius: 16px;
    background: #f8fbff;
}

.lms-payment-request-form strong,
.lms-payment-request-form small,
.lms-payment-request-form label {
    display: block;
}

.lms-payment-request-form small {
    color: #64748b;
    font-weight: 700;
}

.lms-payment-request-form label {
    color: #132855;
    font-size: 12px;
    font-weight: 900;
}

.lms-payment-request-form input,
.lms-payment-request-form select {
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid #cfe0f3;
    border-radius: 12px;
    background: #fff;
    color: #07152f;
    font: inherit;
    font-weight: 800;
}

.payment-confirmation-page {
    min-height: calc(100vh - 120px);
}

.payment-confirmation-card {
    max-width: 920px;
    margin-inline: auto;
}

.payment-confirmation-card h1 {
    margin: 10px 0;
    color: #07152f;
}

.direct-payment-instructions {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.direct-payment-instructions h2 {
    margin: 0;
    color: #07152f;
}

.direct-payment-instructions article {
    padding: 14px;
    border: 1px solid #d8e4f1;
    border-radius: 14px;
    background: #fff;
}

.direct-payment-instructions article strong {
    display: block;
    margin-bottom: 8px;
    color: #0f8b57;
}

.confirmation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lms-inline-alert {
    max-width: 1180px;
    margin: 18px auto 0;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 800;
}

.lms-inline-alert.error {
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #9f1239;
}

@media (max-width: 780px) {
    .lms-payment-request-form {
        grid-template-columns: 1fr;
    }

    .payment-confirmation-card {
        margin-inline: 0;
    }
}

.certificate-list {
    display: grid;
    gap: 10px;
}

.recording-list {
    display: grid;
    gap: 10px;
    max-height: min(56vh, 520px);
    overflow: auto;
    padding-right: 4px;
}

.certificate-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #d8e4f1;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}

.recording-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 11px;
    border: 1px solid #d8e4f1;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.certificate-item-icon {
    width: 44px;
    height: 44px;
    position: relative;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: #eaf4ff;
    color: #3678bd;
}

.recording-item-icon {
    width: 42px;
    height: 42px;
    position: relative;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    background: #eef6ff;
    color: #3678bd;
}

.certificate-item-icon::before,
.certificate-item-icon::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
}

.recording-item-icon::before,
.recording-item-icon::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
}

.certificate-item-icon::before {
    width: 18px;
    height: 22px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.certificate-item-icon::after {
    width: 9px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.live-class-icon::before {
    width: 22px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 5px;
}

.live-class-icon::after {
    right: 8px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid currentColor;
    background: transparent;
    box-shadow: none;
}

.recording-item-icon::before {
    width: 20px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 5px;
}

.recording-item-icon::after {
    left: 18px;
    top: 17px;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 7px solid currentColor;
}

.certificate-item strong {
    display: block;
    color: #07152f;
    font-size: 15px;
}

.recording-item strong {
    display: block;
    color: #07152f;
    font-size: 15px;
}

.certificate-item small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.certificate-download-note {
    max-width: 520px;
    margin-top: 7px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    padding: 7px 9px;
    background: #f8fbff;
    color: #31577d;
    line-height: 1.35;
}

.certificate-download-note.expired {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412;
}

.recording-item small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.certificate-download {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #f8fbff;
    color: #1f63a8;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.certificate-download:hover {
    background: #3678bd;
    color: #fff;
}

.certificate-download.disabled {
    opacity: .55;
    pointer-events: auto;
}

.certificate-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.certificate-download.secondary {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #14733b;
}

.certificate-download.secondary:hover {
    background: #16a34a;
    color: #fff;
}

.live-classes-page .dashboard-hero.compact {
    margin-bottom: 18px;
}

.live-full-list {
    display: grid;
    gap: 10px;
}

.live-program-groups {
    display: grid;
    gap: 10px;
}

.live-program-group {
    border: 1px solid #c9dcf1;
    border-radius: 12px;
    background: #fbfdff;
    overflow: hidden;
}

.live-program-head {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid #dbe7f4;
    background: #f3f8ff;
}

.live-program-head strong,
.live-program-head small {
    display: block;
}

.live-program-head strong {
    color: #07152f;
    font-size: 14px;
    line-height: 1.1;
}

.live-program-head small {
    margin-top: 2px;
    color: #52657f;
    font-size: 11px;
    font-weight: 850;
}

.live-program-head > span {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 9px;
    background: #eaf2fb;
    color: #315f86;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.live-program-group .live-full-list {
    gap: 0;
}

.live-program-group .live-full-item {
    border-width: 0 0 1px;
    border-radius: 0;
    background: #fff;
}

.live-program-group .live-full-item:last-child {
    border-bottom: 0;
}

.live-full-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid #d8e6f7;
    border-radius: 14px;
    background: #fff;
    padding: 12px;
}

.live-full-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.live-full-copy strong {
    color: #10203d;
    font-size: 15px;
}

.live-full-copy small {
    color: #60728c;
    font-size: 12px;
    font-weight: 800;
}

.live-session-state {
    width: max-content;
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 0 9px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d5f9e;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
}

.live-session-state::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
}

.live-session-state.is-ended {
    border-color: #fecaca;
    background: #fff1f2;
    color: #be123c;
}

.live-session-state.is-open {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d5f9e;
}

@media (max-width: 760px) {
    .live-full-item {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .live-full-item .certificate-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .live-full-item .certificate-download {
        flex: 1 1 150px;
    }
}

/* Desktop density pass */
@media (min-width: 981px) {
    .student-topbar {
        height: 58px !important;
        gap: 10px !important;
        padding: 0 16px !important;
    }

    .student-topbar .brand {
        gap: 8px !important;
    }

    .student-topbar .brand img {
        height: 34px !important;
        padding: 5px !important;
        border-radius: 7px !important;
        box-shadow: none !important;
    }

    .student-topbar .brand-title {
        gap: 0 !important;
        padding-left: 10px !important;
    }

    .student-topbar .brand-title strong {
        font-size: 16px !important;
    }

    .student-topbar .brand-title small {
        padding: 2px 7px !important;
        font-size: 9px !important;
    }

    .student-topbar .brand-more-courses {
        min-height: 32px !important;
        padding: 0 11px !important;
        border-radius: 9px !important;
        font-size: 12px !important;
    }

    .top-nav {
        gap: 2px !important;
        justify-content: flex-start !important;
        overflow: hidden !important;
    }

    .top-nav a {
        min-height: 32px !important;
        padding: 0 8px !important;
        font-size: 12px !important;
        border-radius: 7px !important;
    }

    .top-nav .nav-mini,
    .student-topbar .nav-mini {
        width: 16px !important;
        height: 16px !important;
        flex-basis: 16px !important;
        margin-right: 5px !important;
    }

    .student-actions {
        gap: 6px !important;
    }

    .student-chip {
        min-width: 210px !important;
        max-width: 240px !important;
        gap: 8px !important;
        padding: 6px 9px !important;
        border-radius: 9px !important;
    }

    .student-chip > span {
        width: 34px !important;
        height: 34px !important;
        flex: 0 0 34px !important;
    }

    .student-chip strong {
        max-width: 150px !important;
        font-size: 13px !important;
        line-height: 1.1 !important;
    }

    .student-chip small {
        max-width: 150px !important;
        font-size: 10.5px !important;
        line-height: 1.15 !important;
    }

    .topbar-logout {
        min-height: 34px !important;
        padding: 0 10px !important;
        border-radius: 8px !important;
        font-size: 12px !important;
    }

    .learner-dashboard,
    .dashboard {
        width: min(1320px, calc(100% - 18px)) !important;
        gap: 10px !important;
        padding: 10px 0 22px !important;
    }

    .learner-hero {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    .learner-hero-copy {
        min-height: 116px !important;
        padding: 14px 22px !important;
        align-content: center !important;
        border-radius: 14px !important;
    }

    .learner-hero-copy h1 {
        margin: 4px 0 5px !important;
        font-size: clamp(24px, 2.45vw, 34px) !important;
        line-height: 1.02 !important;
    }

    .learner-hero-copy p {
        max-width: 720px !important;
        font-size: 13px !important;
        line-height: 1.32 !important;
    }

    .learner-hero-actions {
        gap: 7px !important;
        margin-top: 11px !important;
    }

    .learner-hero-actions .primary-button,
    .learner-hero-actions .ghost-button {
        min-height: 32px !important;
        padding: 0 11px !important;
        font-size: 12.5px !important;
        border-radius: 8px !important;
    }

    .learner-profile-card {
        grid-template-columns: 38px minmax(0, 1fr) !important;
        gap: 9px !important;
        padding: 12px 14px !important;
        border-radius: 14px !important;
    }

    .learner-avatar {
        width: 38px !important;
        height: 38px !important;
        border-radius: 12px !important;
        font-size: 17px !important;
    }

    .learner-profile-card strong {
        margin-top: 0 !important;
        font-size: 13px !important;
    }

    .learner-profile-card span {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .learner-profile-card .logout-button {
        min-height: 32px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
    }

    .learner-kpis {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .learner-kpis article {
        min-height: 58px !important;
        grid-template-columns: 30px minmax(0, 1fr) !important;
        gap: 9px !important;
        padding: 9px 12px !important;
        border-radius: 13px !important;
    }

    .learner-kpis .mini-icon {
        width: 30px !important;
        height: 30px !important;
        flex-basis: 30px !important;
        border-radius: 9px !important;
    }

    .learner-kpis small {
        font-size: 10px !important;
        line-height: 1.05 !important;
    }

    .learner-kpis strong {
        margin-top: 2px !important;
        font-size: 19px !important;
    }

    .learner-grid {
        gap: 12px !important;
    }

    .learner-panel {
        padding: 14px !important;
        border-radius: 14px !important;
    }
}

/* Dashboard density: keep programs visible in the first viewport. */
@media (min-width: 981px) {
    .learner-dashboard {
        padding-top: 6px !important;
        gap: 6px !important;
    }

    .learner-dashboard .learner-hero {
        display: block !important;
        margin: 0 !important;
    }

    .learner-dashboard .learner-profile-card {
        display: none !important;
    }

    .learner-dashboard .learner-hero-copy {
        min-height: 0 !important;
        padding: 9px 14px !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 20px rgba(15, 23, 42, .05) !important;
    }

    .learner-dashboard .learner-hero-copy::after {
        display: none !important;
    }

    .learner-dashboard .learner-hero-copy .eyebrow {
        font-size: 10px !important;
        line-height: 1 !important;
    }

    .learner-dashboard .learner-hero-copy h1 {
        margin: 2px 0 2px !important;
        font-size: 22px !important;
        line-height: 1.05 !important;
    }

    .learner-dashboard .learner-hero-copy p {
        max-width: none !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    .learner-dashboard .learner-hero-actions {
        margin-top: 6px !important;
        gap: 5px !important;
    }

    .learner-dashboard .learner-hero-actions .ghost-button {
        min-height: 26px !important;
        padding: 0 9px !important;
        border-radius: 8px !important;
        font-size: 11px !important;
    }

    .learner-dashboard .learner-kpis {
        gap: 6px !important;
    }

    .learner-dashboard .learner-kpis article {
        min-height: 42px !important;
        grid-template-columns: 24px minmax(0, 1fr) !important;
        gap: 6px !important;
        padding: 6px 9px !important;
        border-radius: 10px !important;
    }

    .learner-dashboard .learner-kpis small {
        font-size: 8.5px !important;
    }

    .learner-dashboard .learner-kpis strong {
        font-size: 17px !important;
    }

    .learner-dashboard .mini-icon {
        width: 23px !important;
        height: 23px !important;
        flex-basis: 23px !important;
        border-radius: 7px !important;
    }

    .learner-dashboard .learner-grid {
        margin-top: 2px !important;
        gap: 10px !important;
    }

    .learner-dashboard .learner-panel {
        padding: 12px !important;
    }
}

/* Absolute final LMS topbar overflow fix: visible actions on medium desktop monitors. */
@media (min-width: 981px) {
    .student-topbar {
        height: auto !important;
        min-height: 56px !important;
        grid-template-columns: minmax(220px, auto) minmax(0, 1fr) minmax(260px, auto) !important;
        align-items: center !important;
        overflow: visible !important;
    }

    .student-topbar .brand-area,
    .student-topbar .top-nav,
    .student-topbar .student-actions {
        min-width: 0 !important;
    }

    .student-topbar .top-nav {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        justify-content: flex-start !important;
        scrollbar-width: thin;
        scrollbar-color: #b9cfe6 transparent;
        padding-bottom: 2px !important;
    }

    .student-topbar .top-nav::-webkit-scrollbar {
        height: 4px;
    }

    .student-topbar .top-nav::-webkit-scrollbar-thumb {
        background: #b9cfe6;
        border-radius: 999px;
    }

    .student-topbar .top-nav a {
        flex: 0 0 auto !important;
    }

    .student-actions {
        display: grid !important;
        grid-template-columns: auto auto minmax(150px, 230px) auto !important;
        align-items: center !important;
        justify-content: end !important;
        min-width: 0 !important;
    }

    .student-actions .support-action-button,
    .student-actions .lms-pwa-install,
    .student-actions .topbar-logout {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    .student-actions .lms-pwa-install {
        max-width: 185px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .student-actions .student-chip {
        min-width: 0 !important;
        width: auto !important;
        max-width: 230px !important;
    }
}

@media (min-width: 981px) and (max-width: 1320px) {
    .student-topbar {
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "brand actions"
            "nav nav" !important;
        row-gap: 4px !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    .student-topbar .brand-area {
        grid-area: brand;
        justify-content: flex-start !important;
    }

    .student-topbar .top-nav {
        grid-area: nav;
        width: 100% !important;
        border-top: 1px solid #e3edf7;
        padding-top: 5px !important;
    }

    .student-topbar .student-actions {
        grid-area: actions;
        grid-template-columns: auto minmax(150px, 220px) auto !important;
    }

    .student-actions .support-action-button {
        display: none !important;
    }

    .student-actions .lms-pwa-install {
        max-width: 170px !important;
    }
}

@media (min-width: 981px) and (max-width: 1120px) {
    .student-actions {
        grid-template-columns: minmax(135px, 1fr) auto !important;
    }

    .student-actions .lms-pwa-install {
        display: none !important;
    }

    .student-actions .student-chip {
        max-width: 210px !important;
    }
}

/* Final LMS topbar overflow fix: keep actions visible on medium desktop monitors. */
@media (min-width: 981px) {
    .student-topbar {
        height: auto !important;
        min-height: 56px !important;
        grid-template-columns: minmax(220px, auto) minmax(0, 1fr) minmax(260px, auto) !important;
        align-items: center !important;
        overflow: visible !important;
    }

    .student-topbar .brand-area,
    .student-topbar .top-nav,
    .student-topbar .student-actions {
        min-width: 0 !important;
    }

    .student-topbar .top-nav {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        justify-content: flex-start !important;
        scrollbar-width: thin;
        scrollbar-color: #b9cfe6 transparent;
        padding-bottom: 2px !important;
    }

    .student-topbar .top-nav::-webkit-scrollbar {
        height: 4px;
    }

    .student-topbar .top-nav::-webkit-scrollbar-thumb {
        background: #b9cfe6;
        border-radius: 999px;
    }

    .student-topbar .top-nav a {
        flex: 0 0 auto !important;
    }

    .student-actions {
        display: grid !important;
        grid-template-columns: auto auto minmax(150px, 230px) auto !important;
        align-items: center !important;
        justify-content: end !important;
        min-width: 0 !important;
    }

    .student-actions .support-action-button,
    .student-actions .lms-pwa-install,
    .student-actions .topbar-logout {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    .student-actions .lms-pwa-install {
        max-width: 185px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .student-actions .student-chip {
        min-width: 0 !important;
        width: auto !important;
        max-width: 230px !important;
    }
}

@media (min-width: 981px) and (max-width: 1320px) {
    .student-topbar {
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "brand actions"
            "nav nav" !important;
        row-gap: 4px !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    .student-topbar .brand-area {
        grid-area: brand;
        justify-content: flex-start !important;
    }

    .student-topbar .top-nav {
        grid-area: nav;
        width: 100% !important;
        border-top: 1px solid #e3edf7;
        padding-top: 5px !important;
    }

    .student-topbar .student-actions {
        grid-area: actions;
        grid-template-columns: auto minmax(150px, 220px) auto !important;
    }

    .student-actions .support-action-button {
        display: none !important;
    }

    .student-actions .lms-pwa-install {
        max-width: 170px !important;
    }
}

@media (min-width: 981px) and (max-width: 1120px) {
    .student-actions {
        grid-template-columns: minmax(135px, 1fr) auto !important;
    }

    .student-actions .lms-pwa-install {
        display: none !important;
    }

    .student-actions .student-chip {
        max-width: 210px !important;
    }
}

.live-class-modal {
    width: min(520px, 100%);
}

.live-class-modal .certificate-list {
    gap: 8px;
}

.live-class-item {
    padding: 10px;
    gap: 10px;
}

.live-class-item .certificate-download {
    min-height: 34px;
    padding: 8px 14px;
}

.certificate-block-page {
    max-width: 780px;
}

.certificate-expired-card {
    display: grid;
    justify-items: start;
    gap: 12px;
    border: 1px solid #fed7aa;
    border-radius: 20px;
    padding: 24px;
    background:
        radial-gradient(circle at 94% 12%, rgba(251, 146, 60, .18), transparent 28%),
        #fff;
    box-shadow: var(--shadow-soft);
}

.certificate-expired-card h1 {
    margin: 0;
    color: #07152f;
    font-size: 30px;
    letter-spacing: 0;
}

.certificate-expired-card p {
    max-width: 620px;
    margin: 0;
    color: #465b77;
    line-height: 1.5;
}

.certificate-expired-data {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 7px 14px;
    border: 1px solid #e4ecf6;
    border-radius: 14px;
    padding: 12px;
    background: #f8fbff;
}

.certificate-expired-data span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.certificate-expired-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.certificate-empty-state {
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 26px 18px;
    border: 1px dashed #bcd1e8;
    border-radius: 16px;
    background: #f8fbff;
    text-align: center;
}

.certificate-empty-state strong {
    color: #07152f;
    font-size: 18px;
}

.certificate-empty-state p {
    max-width: 380px;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.modal-close-button {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid #d8e4f1;
    border-radius: 50%;
    background: #f8fbff;
    color: #07152f;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
}

.student-alert-list {
    display: grid;
    gap: 8px;
}

.student-alert-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid #e0eaf5;
    border-radius: 13px;
    background: #f9fbfe;
}

.student-alert-list strong {
    color: #07152f;
    font-size: 13px;
}

.student-alert-list span {
    color: #50617a;
    font-size: 12px;
    font-weight: 900;
}

.student-alert-list .warning {
    border-color: #ffd8ba;
    background: #fff7ed;
}

.student-alert-list .success {
    border-color: #b9ead0;
    background: #ecfff4;
}

.student-faq-list {
    display: grid;
    gap: 8px;
}

.student-faq-list details {
    border: 1px solid #e0eaf5;
    border-radius: 13px;
    background: #f9fbfe;
}

.student-faq-list summary {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 11px;
    color: #07152f;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.student-faq-list summary::-webkit-details-marker {
    display: none;
}

.student-faq-list summary::after {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-right: 2px solid #3678bd;
    border-bottom: 2px solid #3678bd;
    transform: rotate(45deg);
}

.student-faq-list details[open] summary::after {
    transform: rotate(225deg);
}

.student-faq-list p {
    margin: 0;
    padding: 0 11px 12px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.compact-empty {
    margin: 0;
    box-shadow: none;
}

@media (max-width: 1120px) {
    .learner-hero,
    .learner-grid {
        grid-template-columns: 1fr;
    }

    .learner-side-menu {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .learner-dashboard {
        width: min(100% - 18px, 760px);
        padding-top: 12px;
    }

    .certificate-item,
    .recording-item,
    .event-item {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .payment-total-grid {
        grid-template-columns: 1fr;
    }

    .certificate-item-icon,
    .recording-item-icon {
        width: 38px;
        height: 38px;
    }

    .certificate-download {
        grid-column: 1 / -1;
        width: 100%;
    }

    .event-modal-grid {
        grid-template-columns: 1fr;
    }

    .event-calendar {
        order: -1;
    }

    .event-calendar-table {
        border-spacing: 3px;
    }

    .event-calendar-table td {
        height: 45px;
        padding: 4px;
    }

    .calendar-event-link {
        font-size: 8px;
        padding: 2px 4px;
    }

    .event-date-box {
        width: 38px;
        min-height: 42px;
        border-radius: 11px;
    }

    .event-date-box strong {
        font-size: 17px;
    }

    .learner-kpis,
    .learner-side-menu {
        grid-template-columns: 1fr 1fr;
    }

    .program-tools,
    .program-data-row {
        grid-template-columns: 1fr;
    }

    .program-data-row div {
        border-right: 0;
        border-bottom: 1px solid #e1ebf6;
    }

    .program-data-row div:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 620px) {
    .live-class-modal {
        width: min(100% - 42px, 330px);
        padding: 14px 16px 16px;
        gap: 8px;
        border-radius: 14px;
        max-height: min(520px, calc(100vh - 120px));
    }

    .live-class-modal .eyebrow {
        font-size: 10px;
        line-height: 1.1;
    }

    .live-class-modal h2 {
        margin: -2px 34px 2px 0;
        font-size: 21px;
        line-height: 1.08;
    }

    .live-class-modal .modal-close-button {
        width: 30px;
        height: 30px;
    }

    .live-class-modal .certificate-list {
        gap: 7px;
    }

    .live-class-modal .live-class-item {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 8px;
        padding: 9px;
        border-radius: 12px;
    }

    .live-class-modal .certificate-item-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .live-class-modal .certificate-item strong {
        font-size: 13px;
        line-height: 1.18;
    }

    .live-class-modal .certificate-item small {
        font-size: 10.5px;
        line-height: 1.25;
        margin-top: 2px;
    }

    .live-class-modal .certificate-download {
        grid-column: 2;
        width: 100%;
        min-height: 30px;
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 620px) {
    body.lms-page {
        padding-bottom: 74px;
        background: #edf3f8;
    }

    .student-topbar {
        position: sticky;
        top: 0;
        z-index: 20;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px 10px;
        border-bottom: 1px solid #dbe7f4;
        background: rgba(255,255,255,.96);
        box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
    }

    .student-topbar .brand {
        min-height: 44px;
        justify-content: start;
        gap: 8px;
        flex: 0 1 auto;
        min-width: 0;
    }

    .student-topbar .brand-area {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .student-topbar .brand-more-courses {
        min-height: 38px;
        flex: 0 0 auto;
        margin-left: 0;
        padding: 0 12px;
        font-size: 11px;
        border-radius: 10px;
    }

    .student-topbar .brand-more-courses .nav-mini {
        margin-right: 2px;
    }

    .student-topbar .brand img {
        width: auto;
        height: 34px;
        padding: 6px;
        border-radius: 7px;
        box-shadow: none;
    }

    .student-topbar .brand-title {
        padding-left: 9px;
    }

    .student-topbar .brand-title strong {
        font-size: 17px;
    }

    .student-topbar .brand-title small {
        padding: 2px 6px;
        font-size: 9px;
    }

    .student-topbar .student-chip {
        min-width: 0;
        width: 100%;
        padding: 7px 9px;
        gap: 9px;
        border-radius: 11px;
        box-shadow: none;
    }

    .student-actions {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .topbar-logout {
        min-height: 48px;
        width: auto;
        justify-content: center;
        padding: 0 10px;
        font-size: 12px;
    }

    .topbar-logout .nav-mini {
        margin-right: 2px;
    }

    .student-chip > span {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
    }

    .student-chip strong {
        max-width: none;
        font-size: 13px;
    }

    .student-chip small {
        max-width: none;
        font-size: 11px;
    }

    .mobile-tabbar {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 1500;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
        padding: 7px;
        border: 1px solid rgba(199, 215, 232, .95);
        border-radius: 18px;
        background: rgba(255,255,255,.96);
        box-shadow: 0 18px 44px rgba(15, 23, 42, .18);
        backdrop-filter: blur(12px);
    }

    .mobile-tabbar a {
        min-height: 50px;
        display: grid;
        place-items: center;
        gap: 2px;
        border-radius: 13px;
        color: #174a82;
        font-size: 12.5px;
        font-weight: 900;
        text-decoration: none;
    }

    .mobile-tabbar a:first-child {
        background: #eaf4ff;
    }

    .mobile-tabbar .nav-mini {
        margin: 0;
    }

    .learner-hero-copy,
    .learner-panel,
    .side-card {
        padding: 14px;
        border-radius: 15px;
    }

    .learner-dashboard {
        width: calc(100% - 16px);
        gap: 10px;
        padding: 10px 0 18px;
    }

    .learner-hero {
        display: none;
    }

    .learner-kpis {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        order: 2;
    }

    .learner-side-menu,
    .program-title-row {
        grid-template-columns: 1fr;
    }

    .learner-kpis article {
        grid-template-columns: 32px minmax(0, 1fr);
        min-height: 64px;
        gap: 8px;
        padding: 10px;
        border-radius: 13px;
    }

    .learner-kpis strong {
        font-size: 18px;
    }

    .learner-kpis small {
        font-size: 10px;
    }

    .learner-kpis .mini-icon {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .learner-grid {
        gap: 10px;
        display: flex;
        flex-direction: column;
    }

    .learner-main-column {
        display: contents;
    }

    .program-section {
        order: 1;
    }

    .learner-side-menu {
        order: 2;
    }

    .finance-summary-section {
        order: 3;
    }

    .learner-section-head {
        display: flex;
        align-items: flex-end;
        margin-bottom: 10px;
    }

    .section-head h2,
    .learner-section-head h2 {
        font-size: 24px;
        line-height: 1.02;
    }

    .result-pill {
        min-height: 26px;
        padding: 0 10px;
        font-size: 11px;
    }

    .program-tools {
        gap: 8px;
        margin-bottom: 10px;
    }

    .program-search span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .program-search input {
        min-height: 42px;
        font-size: 14px;
        border-radius: 11px;
    }

    .program-filter-pills {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-radius: 14px;
    }

    .program-filter-pills button {
        padding: 0 8px;
        font-size: 12px;
    }

    .learner-program-card {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
        border-radius: 15px;
    }

    .program-timeline {
        display: none;
    }

    .program-title-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 8px;
    }

    .program-title-row h3 {
        margin: 5px 0 4px;
        font-size: 15px;
        line-height: 1.08;
    }

    .program-title-row p {
        font-size: 10px;
        line-height: 1.25;
    }

    .program-title-row .program-start-date {
        font-size: 10px;
    }

    .course-type-pill {
        min-height: 22px;
        font-size: 10px;
    }

    .integrated-cycle-pill {
        gap: 5px;
        margin-top: 6px !important;
        padding: 4px 7px;
        border-radius: 10px;
        font-size: 9px !important;
    }

    .integrated-cycle-pill small {
        display: none;
    }

    .program-title-row .status {
        align-self: start;
        min-height: 28px;
        padding: 0 9px;
        font-size: 11px;
        white-space: nowrap;
    }

    .learner-progress-line {
        gap: 5px;
    }

    .learner-progress-line > div:first-child {
        font-size: 11px;
    }

    .progress-track {
        height: 7px;
    }

    .program-data-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-radius: 10px;
    }

    .program-data-row div {
        padding: 7px 9px;
        border-right: 1px solid #e1ebf6;
        border-bottom: 1px solid #e1ebf6;
    }

    .program-data-row div:nth-child(2n) {
        border-right: 0;
    }

    .program-data-row div:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .program-data-row small {
        font-size: 9px;
    }

    .program-data-row strong {
        font-size: 11px;
    }

    .program-card-actions .program-action,
    .program-card-actions .ghost-button {
        width: 100%;
        min-height: 34px;
        padding: 0 8px;
        border-radius: 9px;
        font-size: 13px;
    }

    .learner-side-menu {
        margin-top: 0;
    }

    .learner-side-menu .current-plan {
        display: none;
    }

    .student-tool-list {
        grid-template-columns: 1fr;
    }

    .student-tool-list a,
    .student-tool-list button {
        grid-template-columns: 34px minmax(0, 1fr);
        min-height: 58px;
        padding: 9px;
    }

    .student-tool-list .mini-icon {
        width: 32px;
        height: 32px;
    }

    .student-tool-list strong {
        font-size: 13px;
    }

    .student-tool-list small {
        font-size: 10px;
        line-height: 1.1;
    }

    .student-alert-list article {
        min-height: 42px;
        padding: 8px 10px;
    }

    .student-faq-list summary {
        min-height: 46px;
        font-size: 13px;
    }
}

/* Dashboard density pass: more content above the fold */
@media (min-width: 621px) {
    .learner-dashboard {
        width: min(1320px, calc(100% - 24px));
        gap: 12px;
        padding-top: 14px;
    }

    .learner-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .learner-hero-copy {
        min-height: 150px;
        padding: 20px 24px;
    }

    .learner-hero-copy h1 {
        max-width: 720px;
        margin: 5px 0 7px;
        font-size: clamp(30px, 3vw, 42px);
        line-height: .98;
    }

    .learner-hero-copy p {
        max-width: 600px;
        font-size: 14px;
        line-height: 1.42;
    }

    .learner-hero-actions {
        gap: 8px;
        margin-top: 14px;
    }

    .learner-hero-actions .primary-button,
    .learner-hero-actions .ghost-button {
        min-height: 36px;
        padding: 0 13px;
        border-radius: 9px;
        font-size: 14px;
    }

    .learner-profile-card {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 11px;
        padding: 16px;
    }

    .learner-avatar {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 19px;
    }

    .learner-profile-card strong {
        font-size: 15px;
    }

    .learner-profile-card span {
        font-size: 12px;
        line-height: 1.35;
    }

    .learner-profile-card .logout-button {
        min-height: 36px;
        margin-top: 2px;
        border-radius: 9px;
        font-size: 14px;
    }

    .learner-kpis {
        gap: 10px;
    }

    .learner-kpis article {
        grid-template-columns: 32px minmax(0, 1fr);
        min-height: 72px;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 14px;
    }

    .learner-kpis small,
    .side-card small {
        font-size: 11px;
    }

    .learner-kpis strong {
        font-size: 22px;
    }

    .mini-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        border-radius: 10px;
    }

    .learner-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 12px;
    }

    .learner-panel,
    .side-card {
        padding: 14px;
    }

    .learner-section-head {
        margin-bottom: 10px;
    }

    .learner-section-head h2 {
        font-size: 25px;
    }

    .program-tools {
        gap: 10px;
        margin-bottom: 10px;
    }

    .program-search input {
        min-height: 39px;
        border-radius: 10px;
        font-size: 14px;
    }

    .program-filter-pills {
        gap: 5px;
        padding: 4px;
    }

    .program-filter-pills button {
        min-height: 31px;
        padding: 0 11px;
        font-size: 13px;
    }

    .learner-program-list {
        gap: 10px;
    }

    .learner-program-card {
        grid-template-columns: 18px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
        border-radius: 14px;
    }

    .program-timeline {
        padding-top: 7px;
    }

    .program-timeline span {
        width: 10px;
        height: 10px;
        border-width: 2px;
    }

    .program-title-row h3 {
        margin: 4px 0 3px;
        font-size: 15px;
    }

    .program-title-row p {
        font-size: 10px;
    }

    .course-type-pill {
        min-height: 21px;
        padding: 0 8px;
        font-size: 10px;
    }

    .learner-progress-line {
        gap: 5px;
    }

    .learner-progress-line > div:first-child {
        font-size: 11px;
    }

    .program-data-row {
        border-radius: 10px;
    }

    .program-data-row div {
        padding: 7px 9px;
    }

    .program-data-row small {
        font-size: 9px;
    }

    .program-data-row strong {
        margin-top: 2px;
        font-size: 11px;
    }

    .program-card-actions {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .program-card-actions .program-action,
    .program-card-actions .ghost-button {
        min-height: 34px;
        border-radius: 9px;
        padding: 0 8px;
        font-size: 13px;
    }

    .program-card-actions .program-action {
        grid-column: 1 / -1;
    }

    .side-card h2 {
        font-size: 19px;
    }

    .side-progress strong {
        font-size: 32px;
    }

    .student-tool-list a,
    .student-tool-list button {
        min-height: 86px;
        padding: 9px;
    }
}

@media (max-width: 620px) {
    .learner-program-card {
        padding: 10px;
        gap: 7px;
    }

    .program-title-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .program-title-row h3 {
        max-width: 190px;
        font-size: 16px;
        line-height: 1.05;
    }

    .program-title-row p {
        font-size: 10px;
        line-height: 1.2;
    }

    .program-title-row .status {
        min-height: 25px;
        padding: 0 8px;
        font-size: 10px;
    }

    .learner-progress-line > div:first-child {
        font-size: 10px;
    }

    .program-data-row div {
        padding: 7px 8px;
    }

    .program-data-row small {
        font-size: 9px;
    }

    .program-data-row strong {
        font-size: 11px;
    }

    .program-card-actions .program-action {
        min-height: 38px;
    }

    .program-card-actions {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .program-card-actions .program-action {
        grid-column: 1 / -1;
    }

    .student-tool-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .student-tool-list a,
    .student-tool-list button {
        grid-template-columns: 1fr;
        align-content: start;
        min-height: 98px;
        gap: 8px;
        padding: 10px;
    }

    .student-tool-list .mini-icon {
        width: 30px;
        height: 30px;
    }

    .student-tool-list strong {
        font-size: 12px;
        line-height: 1.15;
    }

    .student-tool-list small {
        margin-top: 0;
        font-size: 9px;
    }
}

@media (min-width: 621px) {
    .program-card-actions {
        grid-template-columns: minmax(150px, .9fr) minmax(116px, auto) minmax(132px, auto) !important;
    }

    .program-card-actions .program-action {
        grid-column: auto !important;
    }
}

/* Program detail: compact header and cleaner module list */
.program-dashboard {
    width: min(1280px, calc(100% - 28px));
    gap: 9px;
    padding: 10px 0 20px;
}

.program-dashboard .program-hero {
    padding: 11px 14px;
}

.program-dashboard .program-hero-grid {
    grid-template-columns: minmax(0, 1fr) 170px;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.program-dashboard .back-link {
    min-height: 30px;
    padding: 0 12px;
    font-size: 13px;
}

.program-dashboard .program-hero .eyebrow {
    display: none;
}

.program-dashboard .program-hero h1 {
    margin: 4px 0 4px;
    font-size: clamp(29px, 2.7vw, 38px);
    line-height: 1.02;
}

.program-dashboard .program-hero p {
    margin: 0;
    font-size: 13px;
}

.program-dashboard .program-quick-actions {
    margin-top: 10px;
    gap: 6px;
}

.program-dashboard .program-quick-actions .ghost-button,
.program-dashboard .program-quick-actions .primary-button {
    min-height: 32px;
    padding: 0 11px;
    font-size: 12px;
}

.program-dashboard .program-finance {
    min-height: 76px;
    padding: 9px 11px;
    border-radius: 9px;
}

.program-dashboard .program-finance strong {
    font-size: 20px;
}

.program-dashboard .program-finance small {
    display: none;
}

.program-dashboard .program-section {
    padding: 11px 14px;
}

.program-dashboard .section-head {
    margin-bottom: 9px;
}

.program-dashboard .section-head .eyebrow {
    display: none;
}

.program-dashboard .section-head h2 {
    font-size: 21px;
}

.program-dashboard .module-list {
    gap: 7px;
}

.program-dashboard .module-icon {
    display: none !important;
}

.program-dashboard .module-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 52px;
    gap: 8px;
    padding: 8px 10px;
}

.program-dashboard .module-row h3 {
    margin: 0 0 2px;
    font-size: 15px;
    line-height: 1.15;
}

.program-dashboard .module-row p {
    font-size: 12px;
}

.program-dashboard .module-row .status {
    min-height: 25px;
    padding: 0 10px;
    font-size: 12px;
}

.program-dashboard .module-action {
    min-height: 32px;
    padding: 0 15px;
    font-size: 13px;
}

@media (max-width: 720px) {
    .program-dashboard {
        width: calc(100% - 16px);
        max-width: none;
        padding-top: 8px;
    }

    .program-dashboard .program-hero {
        padding: 11px;
    }

    .program-dashboard .program-hero-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 8px;
    }

    .program-dashboard .program-hero h1 {
        font-size: 25px;
    }

    .program-dashboard .program-finance {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        min-height: auto;
        gap: 8px;
        padding: 8px 10px;
        background: #f7fbff;
    }

    .program-dashboard .program-finance span,
    .program-dashboard .program-finance small {
        font-size: 10px;
        line-height: 1.1;
    }

    .program-dashboard .program-finance span {
        max-width: 88px;
    }

    .program-dashboard .program-finance strong {
        font-size: 18px;
        white-space: nowrap;
    }

    .program-dashboard .program-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 9px;
    }

    .program-dashboard .program-quick-actions .ghost-button {
        width: 100%;
        justify-content: center;
    }

    .program-dashboard .program-quick-actions .ghost-button:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .program-dashboard .module-row {
        grid-template-columns: auto auto minmax(0, 1fr);
        min-height: auto;
        padding: 11px;
        align-items: center;
        gap: 8px;
        border-radius: 12px;
        background: linear-gradient(180deg, #fff, #f8fbff);
    }

    .program-dashboard .module-row > div:not(.module-icon) {
        grid-column: 1 / -1;
    }

    .program-dashboard .module-row h3 {
        font-size: 16px;
        line-height: 1.1;
    }

    .program-dashboard .module-row p {
        margin-top: 3px;
        font-size: 12px;
    }

    .program-dashboard .module-row .status,
    .program-dashboard .module-action {
        grid-column: auto;
        justify-self: start;
    }

    .program-dashboard .module-row .status {
        min-height: 27px;
        margin-top: 4px;
    }

    .program-dashboard .module-row .module-action {
        min-height: 31px;
        margin-top: 4px;
        padding: 0 14px;
    }
}

/* Program modules: visual cards on desktop */
.program-dashboard .module-showcase {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

.program-dashboard .module-summary-card {
    min-height: 100%;
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: end;
    gap: 12px;
    padding: 16px;
    border: 1px solid #cfe1f3;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(19,54,94,.16) 0%, rgba(19,54,94,.56) 56%, rgba(19,54,94,.96) 100%),
        linear-gradient(145deg, #17365e, #4f8fca);
    color: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .12);
}

.program-dashboard .module-summary-card .eyebrow,
.program-dashboard .module-summary-card p {
    color: rgba(255,255,255,.78);
}

.program-dashboard .module-summary-card strong {
    display: block;
    margin: 2px 0;
    font-size: 42px;
    line-height: 1;
}

.program-dashboard .module-summary-card p {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
}

.module-summary-art {
    display: grid;
    width: 108px;
    height: 108px;
    position: absolute;
    right: -12px;
    top: 12px;
    display: grid;
    place-items: center;
    border-radius: 32px;
    background: rgba(255,255,255,.14);
    transform: rotate(8deg);
}

.module-summary-art span {
    width: 54px;
    height: 42px;
    position: relative;
    display: block;
    border: 4px solid rgba(255,255,255,.76);
    border-radius: 10px;
}

.module-summary-art span::before,
.module-summary-art span::after {
    content: "";
    position: absolute;
    background: rgba(255,255,255,.76);
}

.module-summary-art span::before {
    left: 8px;
    right: 8px;
    top: 12px;
    height: 4px;
    border-radius: 4px;
}

.module-summary-art span::after {
    left: 8px;
    top: 22px;
    width: 22px;
    height: 4px;
    border-radius: 4px;
}

.module-summary-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.24);
}

.module-summary-bar span {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #f4bf45, #f97316);
}

.program-dashboard .module-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.program-dashboard .module-card-grid .module-row {
    min-height: 142px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 13px;
    border: 1px solid #d6e5f4;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.98)),
        radial-gradient(circle at right top, rgba(54,120,189,.14), transparent 42%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.program-dashboard .module-card-grid .module-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, .09);
}

.module-card-visual {
    width: 52px;
    height: 52px;
    position: relative;
    grid-row: 1 / span 2;
    border-radius: 16px;
    background: linear-gradient(145deg, #eaf4ff, #fff7e6);
    color: #3678bd;
}

.module-card-visual::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 14px;
    width: 25px;
    height: 18px;
    border: 3px solid currentColor;
    border-radius: 5px;
    background: transparent;
}

.module-card-visual::after {
    content: "";
    position: absolute;
    right: 11px;
    bottom: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c7932c;
    box-shadow: -14px -20px 0 -5px #8dd6ff;
}

.module-card-copy {
    min-width: 0;
}

.module-type-label {
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #edf4fb;
    color: #174a82;
    font-size: 10px;
    font-weight: 900;
}

.program-dashboard .module-card-grid .module-row h3 {
    margin: 7px 0 4px;
    font-size: 16px;
    line-height: 1.15;
}

.program-dashboard .module-card-grid .module-row p {
    color: #51627a;
    font-size: 12px;
}

.module-card-footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #edf3f8;
}

.program-dashboard .module-card-footer .status {
    min-height: 25px;
    width: auto;
    max-width: none;
    padding: 0 10px;
}

.program-dashboard .module-card-footer .module-action {
    min-height: 31px;
    background: #3678bd;
    color: #fff;
    border-color: #3678bd;
    box-shadow: 0 8px 16px rgba(54, 120, 189, .18);
}

.program-dashboard .module-card-footer .module-action:hover {
    background: #2d6da9;
    border-color: #2d6da9;
}

@media (max-width: 980px) {
    .program-dashboard .module-showcase {
        grid-template-columns: 1fr;
    }

    .program-dashboard .module-summary-card {
        min-height: 128px;
    }

    .program-dashboard .module-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .program-dashboard .module-summary-card {
        display: none;
    }

    .program-dashboard .module-card-grid .module-row {
        min-height: auto;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        gap: 8px;
        padding: 11px;
    }

    .program-dashboard .module-card-grid .module-card-visual {
        display: none;
    }

    .module-card-footer {
        grid-column: 1;
        justify-content: space-between;
        border-top: 0;
        padding-top: 8px;
        margin-top: 2px;
        width: 100%;
    }

    .program-dashboard .module-card-grid .module-row {
        position: relative;
        overflow: hidden;
        border-radius: 14px;
        background:
            linear-gradient(180deg, #fff, #f8fbff),
            radial-gradient(circle at right top, rgba(54,120,189,.12), transparent 42%);
    }

    .program-dashboard .module-card-grid .module-row::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, #3b82c4, #c7932c);
    }

    .module-card-copy {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 5px 8px;
        align-items: start;
    }

    .module-type-label {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .program-dashboard .module-card-grid .module-row h3 {
        grid-column: 1 / -1;
        margin: 2px 0 0;
        font-size: 16px;
    }

    .program-dashboard .module-card-grid .module-row p {
        grid-column: 1;
        margin: 0;
        font-size: 12px;
    }

    .program-dashboard .module-card-footer .status {
        display: inline-flex;
        min-height: 25px;
        width: auto;
    }

    .program-dashboard .module-card-footer .module-action {
        width: auto;
        min-height: 32px;
        justify-content: center;
        margin-top: 0;
        padding: 0 14px;
    }
}

/* Module content listing */
.module-content-page {
    width: min(1280px, calc(100% - 28px));
    margin: 0 auto;
    gap: 10px;
    padding: 10px 0 24px;
}

.module-content-hero,
.module-content-section {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.module-content-hero {
    padding: 13px 16px;
}

.module-content-title {
    margin-top: 10px;
}

.module-content-title h1 {
    margin: 4px 0 4px;
    font-size: clamp(28px, 2.7vw, 38px);
    line-height: 1.04;
}

.module-content-title p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.module-content-section {
    padding: 13px 16px;
}

.content-item-list {
    display: grid;
    gap: 8px;
}

.content-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.content-type-icon {
    width: 38px;
    height: 38px;
    position: relative;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: #eaf4ff;
    color: #3678bd;
}

.content-type-icon::before {
    content: "";
    width: 15px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.content-type-icon::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c7932c;
}

.content-item-main {
    min-width: 0;
}

.content-type-pill {
    min-height: 18px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef4fb;
    color: #174a82;
    font-size: 9px;
    font-weight: 900;
}

.content-item h3 {
    margin: 5px 0 2px;
    font-size: 15px;
    line-height: 1.2;
}

.content-item p {
    max-width: 680px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-actions {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.compact-download {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
}

.module-learning-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 14px;
    align-items: start;
}

.class-list {
    display: grid;
    gap: 8px;
}

.lesson-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(180deg, #fff, #f9fbff);
}

.module-quick-actions {
    margin-top: 11px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.module-quick-actions .ghost-button {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 12px;
}

.academy-lesson-card {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-height: 68px;
    padding: 10px 10px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 42, 76, .04);
}

.academy-lesson-card.seen {
    border-color: #9df1c3;
    background: linear-gradient(90deg, #f4fff8 0%, #fff 70%);
}

.lesson-video-icon {
    width: 38px;
    height: 38px;
    position: relative;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #eef7ff, #dbeafe);
    color: #2f7dcb;
}

.lesson-video-icon::before {
    content: "";
    width: 16px;
    height: 13px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.lesson-video-icon::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid currentColor;
}

.academy-lesson-card .content-type-pill {
    padding: 0 9px;
    background: #edf5ff;
    color: #1f65a8;
}

.academy-lesson-card .lesson-main h3 {
    margin-top: 4px;
    color: #071a38;
    font-size: 14px;
}

.academy-lesson-card .lesson-main small {
    display: block;
    margin-top: 2px;
    color: #637491;
    font-size: 11px;
    font-weight: 800;
}

.lesson-card.seen {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #fff, #f3fff8);
}

.lesson-number {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #eaf4ff;
    color: #174a82;
    font-size: 13px;
    font-weight: 900;
}

.lesson-main {
    min-width: 0;
}

.lesson-main h3 {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.18;
}

.lesson-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.lesson-tools span {
    min-height: 21px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #51627a;
    font-size: 10px;
    font-weight: 900;
}

.lesson-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.seen-pill {
    min-height: 23px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #fff7ed;
    color: #b45309;
    font-size: 11px;
    font-weight: 900;
}

.lesson-card.seen .seen-pill {
    background: #dcfce7;
    color: #047857;
}

.module-side-panel {
    display: grid;
    gap: 7px;
    position: sticky;
    top: 92px;
}

.course-tools-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 42, 76, .04);
    overflow: hidden;
}

.course-tools-trigger {
    width: 100%;
    min-height: 46px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    border: 0;
    padding: 9px 11px;
    background: linear-gradient(135deg, #ffffff, #f5f9ff);
    color: #0b1b36;
    text-align: left;
    cursor: pointer;
}

.course-tools-trigger strong {
    font-size: 12px;
}

.module-tool-card {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fbff;
}

.module-tool-card strong,
.module-tool-card small {
    grid-column: 2;
}

.module-tool-card strong {
    font-size: 12px;
}

.module-tool-card small {
    color: var(--muted);
    font-size: 10px;
}

.module-tool-icon {
    width: 30px;
    height: 30px;
    grid-row: span 2;
    position: relative;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: #eaf4ff;
    color: #3678bd;
}

.module-tool-icon::before,
.module-tool-icon::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
}

.module-tool-icon.quiz::before {
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.module-tool-icon.tasks::before {
    width: 15px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.module-tool-icon.tasks::after {
    width: 7px;
    height: 4px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.module-tool-icon.calendar::before {
    width: 16px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.module-tool-icon.calendar::after {
    top: 9px;
    width: 16px;
    height: 2px;
    background: currentColor;
}

.module-tool-icon.tools::before {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 5px;
}

.module-tool-icon.tools::after {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.resources-accordion {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.side-resources {
    margin-top: 0;
}

.side-resources summary {
    min-height: 112px;
    padding: 16px;
    font-size: 12px;
    align-items: center;
    background:
        radial-gradient(circle at 84% 18%, rgba(54, 120, 189, .16), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f1f7ff 100%);
}

.side-resources .resource-list {
    max-height: 360px;
    overflow: auto;
    padding: 4px 10px 10px;
}

.side-resources .resource-item {
    grid-template-columns: 1fr;
    gap: 5px;
    align-items: start;
    padding: 8px 0;
}

.side-resources .resource-kind {
    justify-self: start;
}

.side-resources .resource-item strong {
    font-size: 12px;
}

.side-resources .resource-item a,
.side-resources .muted-inline {
    font-size: 11px;
}

.resources-accordion summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 13px;
    color: #0b1b36;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.resources-thumb {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    position: relative;
    display: inline-grid;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(135deg, #dbeafe, #fef3c7);
    box-shadow: inset 0 0 0 1px rgba(54, 120, 189, .12);
}

.resources-thumb::before {
    content: "";
    width: 36px;
    height: 27px;
    border: 4px solid #2f7dcb;
    border-radius: 8px;
    background: rgba(255, 255, 255, .45);
}

.resources-thumb::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #c7932c;
    box-shadow: 0 0 0 3px rgba(199, 147, 44, .16);
}

.resources-summary-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.resources-summary-copy strong {
    color: #071a38;
    font-size: 18px;
    line-height: 1.08;
}

.resources-summary-copy small {
    color: #60708a;
    font-size: 13px;
    font-weight: 800;
}

.resources-accordion summary::-webkit-details-marker {
    display: none;
}

.resources-accordion summary::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid #3678bd;
    border-bottom: 2px solid #3678bd;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.resources-accordion[open] summary::after {
    transform: rotate(225deg);
}

.resources-accordion summary .resources-count {
    margin-left: auto;
    min-width: 40px;
    min-height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #edf4fb;
    color: #174a82;
    font-size: 15px;
    font-weight: 900;
}

.resource-list {
    display: grid;
    padding: 6px 13px 13px;
}

.resource-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 9px 0;
    border-top: 1px solid #eef3f8;
}

.resource-kind {
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 999px;
    background: #fff1f2;
    color: #e11d48;
    font-size: 10px;
    font-weight: 900;
}

.resource-item strong {
    font-size: 13px;
    line-height: 1.25;
}

.resource-item a,
.muted-inline {
    font-size: 12px;
    font-weight: 900;
}

.resource-item a {
    color: #2563eb;
    text-decoration: none;
}

.muted-inline {
    color: var(--muted);
}

.empty-mini {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.video-modal {
    width: min(920px, calc(100vw - 28px));
    max-height: calc(100vh - 36px);
    overflow: hidden;
    grid-template-rows: auto auto minmax(220px, 1fr) auto;
}

.video-frame {
    width: 100%;
    max-height: min(54vh, 430px);
    margin-top: 6px;
    overflow: hidden;
    border-radius: 14px;
    background: #08172c;
    aspect-ratio: 16 / 9;
    contain: layout paint;
}

.video-frame video,
.video-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #08172c;
    object-fit: contain;
}

.video-modal-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
    padding-top: 8px;
    background: #fff;
    z-index: 2;
}

.video-modal-actions .ghost-button.is-confirmed {
    border-color: #86efac;
    background: #dcfce7;
    color: #047857;
    cursor: pointer;
}

.video-modal-actions .ghost-button:disabled {
    opacity: 1;
}

@media (max-width: 720px) {
    .video-modal {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        padding: 16px;
        gap: 9px;
    }

    .video-modal h2 {
        margin-right: 34px;
        font-size: 20px;
        line-height: 1.15;
    }

    .video-frame {
        max-height: 42vh;
        margin-top: 2px;
        border-radius: 12px;
    }

    .video-modal-actions {
        justify-content: stretch;
    }

    .video-modal-actions .ghost-button {
        width: 100%;
        min-height: 42px;
    }
}

.btn-icon-check::before {
    width: 10px;
    height: 6px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    background: transparent;
}

@media (max-width: 720px) {
    .module-content-page {
        width: calc(100% - 16px);
        max-width: none;
        padding-top: 8px;
    }

    .module-content-hero,
    .module-content-section {
        padding: 11px;
    }

    .module-content-title {
        margin-top: 8px;
    }

    .module-content-title h1 {
        font-size: 25px;
    }

    .content-item {
        grid-template-columns: 34px minmax(0, 1fr);
        align-items: start;
    }

    .content-type-icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .content-actions {
        grid-column: 2;
        width: 100%;
    }

    .content-actions .module-action,
    .content-actions .compact-download {
        min-height: 34px;
    }

    .module-learning-grid {
        grid-template-columns: 1fr;
    }

    .module-quick-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .module-quick-actions .ghost-button {
        width: 100%;
        justify-content: center;
        min-height: 34px;
    }

    .module-quick-actions .ghost-button:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .lesson-card,
    .academy-lesson-card {
        grid-template-columns: 34px minmax(0, 1fr);
        align-items: start;
        padding: 9px;
    }

    .lesson-video-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .lesson-number {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        font-size: 12px;
    }

    .lesson-state {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: space-between;
    }

    .lesson-state .module-action {
        min-height: 34px;
    }

    .module-side-panel {
        position: static;
        grid-template-columns: 1fr;
    }

    .side-resources summary {
        min-height: 92px;
        padding: 12px;
    }

    .resources-thumb {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        border-radius: 17px;
    }

    .resources-thumb::before {
        width: 28px;
        height: 21px;
        border-width: 3px;
    }

    .resources-summary-copy strong {
        font-size: 15px;
    }

    .resources-summary-copy small {
        font-size: 11px;
    }

    .module-tool-card {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 9px;
    }

    .module-tool-card strong,
    .module-tool-card small {
        grid-column: 1;
    }

    .module-tool-icon {
        width: 30px;
        height: 30px;
        grid-row: auto;
    }

    .resource-item {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .resource-item a,
    .muted-inline {
        grid-column: 2;
    }
}

/* Final override: keep lesson video buttons aligned with the module open button. */
.academy-lesson-card .lesson-play-action {
    background: #3678bd;
    border-color: #3678bd;
    color: #fff;
    box-shadow: 0 8px 16px rgba(54, 120, 189, .18);
}

.academy-lesson-card .lesson-play-action:hover {
    background: #2d6da9;
    border-color: #2d6da9;
}

.academy-lesson-card .lesson-play-action .btn-icon {
    width: 18px;
    height: 18px;
    color: currentColor;
    background: rgba(255, 255, 255, .18);
    border-radius: 999px;
    margin-right: 6px;
}

.btn-icon-resources::before {
    left: 4px;
    top: 5px;
    width: 10px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 2px;
    background: transparent;
}

.btn-icon-resources::after {
    left: 7px;
    top: 13px;
    width: 8px;
    height: 2px;
    border-radius: 999px;
}

.mobile-resource-jump {
    display: none;
}

#module-resources {
    scroll-margin-top: 92px;
}

.side-resources summary {
    min-height: 124px;
    padding: 18px;
    gap: 14px;
}

.resources-summary-copy {
    gap: 5px;
}

.resources-summary-copy strong {
    font-size: 19px;
    line-height: 1.12;
}

.resources-summary-copy small {
    font-size: 13px;
    line-height: 1.25;
}

@media (max-width: 760px) {
    .mobile-resource-jump {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 10px 14px 0;
        padding: 12px 14px;
        border: 1px solid #c9ddf3;
        border-radius: 16px;
        background: linear-gradient(135deg, #ffffff 0%, #edf6ff 100%);
        color: #071a38;
        text-decoration: none;
        box-shadow: 0 10px 24px rgba(15, 42, 76, .08);
    }

    .mobile-resource-jump .btn-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 11px;
        color: #3678bd;
        background: #e5f1ff;
    }

    .mobile-resource-jump strong,
    .mobile-resource-jump small {
        display: block;
    }

    .mobile-resource-jump strong {
        font-size: 14px;
        line-height: 1.1;
        font-weight: 900;
    }

    .mobile-resource-jump small {
        margin-top: 2px;
        color: #60708a;
        font-size: 11px;
        font-weight: 800;
    }

    #module-resources {
        scroll-margin-top: 78px;
    }

    .side-resources summary {
        min-height: 104px;
        padding: 15px;
        gap: 12px;
    }

    .resources-thumb {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

    .resources-summary-copy strong {
        font-size: 16px;
        line-height: 1.12;
    }

    .resources-summary-copy small {
        font-size: 12px;
        line-height: 1.25;
    }
}

.btn-icon-quiz::before {
    left: 5px;
    top: 4px;
    width: 10px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.btn-icon-quiz::after {
    left: 9px;
    top: 7px;
    width: 4px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(35deg);
}

.btn-icon-refresh::before {
    left: 4px;
    top: 5px;
    width: 11px;
    height: 11px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
}

.btn-icon-refresh::after {
    left: 13px;
    top: 3px;
    width: 0;
    height: 0;
    border-left: 5px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.mini-status-dot.ok {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 0 0 4px #dcfce7;
}

.quiz-modal {
    width: min(760px, 100%);
    gap: 10px;
    padding: 14px;
}

.quiz-page {
    max-width: 980px;
    display: grid;
    gap: 14px;
    margin-inline: auto;
}

.quiz-list-page {
    max-width: 920px;
    padding-inline: 10px;
    margin-left: clamp(28px, 6vw, 96px);
    margin-right: auto;
}

.quiz-back-link {
    width: max-content;
    max-width: 100%;
    display: inline-grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 9px 13px 9px 9px;
    border: 1px solid #cfe0f4;
    border-radius: 14px;
    background: #fff;
    color: #07152f;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .055);
}

.quiz-back-link > span {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #edf6ff;
    color: #2f78c8;
}

.quiz-back-link > span::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 10px;
    width: 9px;
    height: 9px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.quiz-back-link strong,
.quiz-back-link small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quiz-back-link strong {
    font-size: 14px;
    font-weight: 900;
}

.quiz-back-link small {
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.quiz-list-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border: 1px solid #d8e4f2;
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 20%, rgba(47, 120, 200, .16), transparent 28%),
        linear-gradient(135deg, #ffffff, #f3f9ff);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .07);
}

.quiz-list-head h1 {
    margin: 3px 0 0;
    color: #07152f;
    font-size: 32px;
    line-height: 1.05;
}

.quiz-list-head p {
    margin: 5px 0 0;
    color: #526885;
    font-size: 13px;
    font-weight: 800;
}

.quiz-list-guide {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.quiz-list-guide span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #d8e4f2;
    border-radius: 999px;
    background: #fff;
    color: #174a80;
    font-size: 12px;
    font-weight: 900;
}

.quiz-list-guide .quiz-ui-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
}

.quiz-list-visual {
    min-height: 132px;
    display: grid;
    place-items: center;
    gap: 7px;
    border-radius: 20px;
    background: #edf6ff;
}

.quiz-list-visual img {
    width: 86px;
    height: 76px;
    object-fit: contain;
}

.quiz-list-visual span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    color: #174a80;
    font-size: 12px;
    font-weight: 900;
}

.quiz-list {
    display: grid;
    gap: 10px;
}

.quiz-list-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 16px;
    border: 1px solid #d8e4f2;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .055);
}

.quiz-list-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: #2f78c8;
}

.quiz-list-card.passed {
    border-color: #86efac;
    background: linear-gradient(135deg, #f0fdf4, #fff);
}

.quiz-list-card strong {
    display: block;
    color: #07152f;
    font-size: 17px;
    line-height: 1.2;
}

.quiz-list-icon {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #edf6ff;
    color: #2f78c8;
}

.quiz-list-icon::before {
    content: "";
    width: 17px;
    height: 17px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.quiz-list-icon::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 5px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.quiz-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.quiz-list-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #edf6ff;
    color: #174a80;
    font-size: 11px;
    font-weight: 900;
}

.quiz-list-status {
    display: block;
    margin-top: 8px;
    color: #526885;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.quiz-list-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 12px;
    background: #172033;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 18px rgba(23, 32, 51, .16);
}

.quiz-page-picker,
.quiz-page-hero,
.quiz-page-form,
.quiz-page .quiz-result-panel,
.quiz-page .quiz-review,
.quiz-page .quiz-retake-panel {
    box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
}

.quiz-page-hero {
    grid-template-columns: minmax(0, 1fr) 110px;
    padding: 14px;
}

.quiz-page-hero h1 {
    margin: 4px 0 0;
    color: #07152f;
    font-size: clamp(21px, 3vw, 30px);
    line-height: 1.12;
}

.quiz-take-hero {
    grid-template-columns: minmax(0, 1fr) 86px;
    padding: 12px 14px;
    border-radius: 16px;
}

.quiz-take-hero h1 {
    font-size: clamp(18px, 2.4vw, 24px);
    line-height: 1.18;
}

.quiz-take-hero .quiz-hero-copy p {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.3;
}

.quiz-take-hero .quiz-hero-facts {
    margin-top: 8px;
}

.quiz-take-hero .quiz-hero-facts span {
    min-height: 32px;
    padding: 5px 8px;
}

.quiz-take-hero .quiz-hero-visual {
    min-height: 70px;
    border-radius: 14px;
}

.quiz-take-hero .quiz-hero-visual img {
    width: 58px;
    height: 52px;
}

.quiz-page-form {
    padding: 18px;
    border: 1px solid #d8e4f2;
    border-radius: 18px;
    background: #fff;
}

.quiz-modal .eyebrow {
    font-size: 11px;
}

.quiz-modal h2 {
    margin: 3px 0 0;
    font-size: 24px;
    line-height: 1.1;
}

.quiz-modal .modal-muted {
    font-size: 12px;
    line-height: 1.25;
}

.quiz-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid #d8e4f2;
    border-radius: 18px;
    background: linear-gradient(135deg, #f4f9ff, #ffffff);
}

.quiz-hero-copy p {
    margin: 7px 0 0;
    color: #415777;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

.quiz-hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 10px;
}

.quiz-hero-facts span {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 9px;
    border-radius: 12px;
    background: #fff;
    color: #174a80;
    font-size: 11px;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px #d8e4f2;
}

.quiz-hero-facts b {
    color: #07152f;
}

.quiz-ui-icon,
.quiz-picker-icon,
.quiz-options label i {
    position: relative;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: #e8f3ff;
    color: #2f78c8;
}

.quiz-ui-icon::before,
.quiz-ui-icon::after,
.quiz-picker-icon::before,
.quiz-picker-icon::after,
.quiz-options label i::before,
.quiz-options label i::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
}

.quiz-ui-icon.questions::before {
    width: 12px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.quiz-ui-icon.questions::after {
    width: 6px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 4px 0 currentColor;
}

.quiz-ui-icon.target::before {
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.quiz-ui-icon.target::after {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.quiz-ui-icon.mode::before {
    width: 14px;
    height: 10px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    top: 11px;
}

.quiz-ui-icon.mode::after {
    width: 16px;
    height: 8px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    top: 5px;
}

.quiz-ui-icon.next {
    width: 22px;
    height: 22px;
    margin-right: 5px;
    vertical-align: middle;
}

.quiz-ui-icon.next::before {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    left: 6px;
}

.quiz-hero-visual {
    min-height: 94px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #eaf4ff;
}

.quiz-hero-visual img {
    width: 86px;
    height: 74px;
    object-fit: contain;
}

.quiz-picker-wrap {
    display: grid;
    gap: 7px;
    padding: 11px 12px;
    border: 1px solid #d8e4f2;
    border-radius: 14px;
    background: #fff;
}

.quiz-picker-wrap.prominent {
    border-color: #b8d7f5;
    background: linear-gradient(135deg, #f3f9ff, #ffffff);
    box-shadow: 0 10px 22px rgba(47, 120, 200, .08);
}

.quiz-picker-wrap.prominent > div:first-child strong {
    font-size: 15px;
}

.quiz-picker-wrap > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.quiz-picker-wrap strong {
    color: #07152f;
    font-size: 13px;
}

.quiz-picker-wrap small {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.quiz-picker {
    display: flex;
    gap: 8px;
    margin: 0;
    overflow-x: auto;
    padding-bottom: 2px;
}

.quiz-picker a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 2px 8px;
    min-width: 180px;
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
}

.quiz-picker a.active {
    border-color: #2f78c8;
    background: #edf6ff;
    box-shadow: inset 0 -3px 0 #2f78c8;
}

.quiz-picker-icon {
    grid-row: span 2;
    background: #edf6ff;
}

.quiz-picker a.active .quiz-picker-icon {
    background: #2f78c8;
    color: #fff;
}

.quiz-picker-icon::before {
    width: 13px;
    height: 13px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.quiz-picker-icon::after {
    width: 7px;
    height: 4px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.quiz-picker strong {
    font-size: 12px;
    line-height: 1.2;
}

.quiz-picker small {
    grid-column: 2;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.quiz-alert {
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 900;
}

.quiz-alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.quiz-result-panel {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
    margin: 6px 0;
    padding: 7px;
    border: 1px solid #d8e4f2;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff, #fff);
}

.quiz-result-panel.passed {
    border-color: #86efac;
    background: linear-gradient(135deg, #ecfdf3, #ffffff);
}

.quiz-result-panel.failed {
    border-color: #fed7aa;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.quiz-result-visual {
    min-height: 58px;
    display: grid;
    place-items: center;
    padding: 6px;
    border-radius: 10px;
    background: rgba(255,255,255,.72);
}

.quiz-result-visual img {
    width: 42px;
    height: 32px;
    object-fit: contain;
}

.quiz-result-visual span {
    margin-top: 0;
    color: #2466a6;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.quiz-result-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    align-content: stretch;
}

.quiz-result-card div {
    min-width: 0;
    display: grid;
    align-content: center;
    padding: 8px 10px;
    border: 1px solid #d8e4f2;
    border-radius: 10px;
    background: rgba(255,255,255,.82);
}

.quiz-result-card span {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.quiz-result-card strong {
    display: block;
    margin-top: 2px;
    color: #07152f;
    font-size: 17px;
    line-height: 1.1;
}

.quiz-form,
.quiz-review,
.quiz-reset-form {
    margin-top: 16px;
}

.quiz-stepper {
    display: grid;
    gap: 14px;
}

.quiz-stepper[hidden] {
    display: none !important;
}

.quiz-retake-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #d8e4f2;
    border-radius: 14px;
    background: #f8fbff;
}

.quiz-retake-panel[hidden] {
    display: none !important;
}

.quiz-retake-panel strong {
    display: block;
    color: #07152f;
    font-size: 15px;
}

.quiz-retake-panel p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.quiz-stepper-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #d8e4f2;
    border-radius: 14px;
    background: #edf6ff;
}

.quiz-stepper-head > div {
    display: grid;
    gap: 4px;
}

.quiz-stepper-head span {
    flex: 0 0 auto;
    width: max-content;
    border-radius: 999px;
    background: #fff;
    color: #2466a6;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
}

.quiz-stepper-head small {
    color: #4c617d;
    font-size: 11px;
    font-weight: 800;
}

.quiz-stepper-head strong {
    min-width: 0;
    color: #344767;
    font-size: 13px;
    line-height: 1.3;
    text-align: right;
}

.quiz-question-card {
    margin: 0 0 14px;
    padding: 15px;
    border: 1px solid #d8e4f2;
    border-radius: 18px;
    background: #fff;
}

.quiz-stepper .quiz-question-card {
    margin: 0;
}

.quiz-question-card[hidden] {
    display: none;
}

.quiz-question-card legend {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 0 0 10px;
    color: #07152f;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.3;
}

.quiz-question-card legend span {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #edf6ff;
    color: #3678bd;
}

.quiz-media {
    margin: 10px 0 14px;
}

.quiz-media img,
.quiz-media video {
    display: block;
    max-width: 100%;
    max-height: 320px;
    border-radius: 16px;
    border: 1px solid #d8e4f2;
    object-fit: contain;
    background: #f8fbff;
}

.quiz-options {
    display: grid;
    gap: 9px;
}

.quiz-options label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 54px;
    padding: 12px 14px;
    border: 1px solid #d8e4f2;
    border-radius: 12px;
    background: #f8fbff;
    cursor: pointer;
    text-align: left;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.quiz-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quiz-options label i {
    background: #fff;
    border: 1px solid #cfdced;
    border-radius: 50%;
}

.quiz-options label i::before {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
}

.quiz-options label:has(input:checked) i {
    border-color: #3678bd;
    background: #3678bd;
    color: #fff;
}

.quiz-options label:has(input:checked) i::before {
    width: 7px;
    height: 12px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    border-radius: 0;
    background: transparent;
    transform: rotate(45deg);
    top: 4px;
}

.quiz-options label:hover {
    border-color: #9fc6ed;
    background: #fff;
}

.quiz-options input {
    margin: 0;
    accent-color: #3678bd;
    cursor: pointer;
}

.quiz-options span {
    flex: 1 1 auto;
    min-width: 0;
    color: #10213d;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.quiz-options label:has(input:checked) {
    border-color: #3678bd;
    background: #edf6ff;
    box-shadow: 0 0 0 3px rgba(54, 120, 189, .12);
}

.quiz-stepper-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.quiz-stepper-actions [hidden] {
    display: none !important;
}

.quiz-step-button {
    min-width: 132px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid #cfdced;
    border-radius: 10px;
    background: #fff;
    color: #10213d;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.quiz-step-button:hover {
    border-color: #a8c5e7;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}

.quiz-step-button.primary {
    border-color: #17243d;
    background: #17243d;
    color: #fff;
}

.quiz-step-button.secondary {
    background: #f8fbff;
}

.quiz-step-button:focus-visible {
    outline: 3px solid rgba(54, 120, 189, .25);
    outline-offset: 2px;
}

.quiz-review {
    border: 1px solid #d8e4f2;
    border-radius: 12px;
    overflow: hidden;
}

.quiz-review summary {
    padding: 9px 12px;
    background: #edf6ff;
    color: #153e75;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.quiz-review article {
    display: grid;
    gap: 2px;
    padding: 8px 12px;
    border-top: 1px solid #d8e4f2;
    background: #fff;
}

.quiz-review article strong {
    font-size: 13px;
    line-height: 1.25;
}

.quiz-review article.correct {
    background: #f0fdf4;
}

.quiz-review article.wrong {
    background: #fff7ed;
}

.quiz-review p,
.quiz-review small {
    display: block;
    margin: 0;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.lms-whatsapp-float {
    position: fixed;
    left: 18px;
    bottom: 26px;
    z-index: 80;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: #10213d;
    text-decoration: none;
    filter: drop-shadow(0 16px 24px rgba(15, 23, 42, .22));
}

.lms-whatsapp-text {
    position: absolute;
    left: 68px;
    top: 50%;
    width: max-content;
    max-width: min(300px, calc(100vw - 104px));
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    transform: translateY(-50%);
    transition: opacity .2s ease, transform .2s ease, max-width .2s ease, padding .2s ease;
}

.lms-whatsapp-float.message-hidden .lms-whatsapp-text {
    max-width: 0 !important;
    opacity: 0;
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
    transform: translateY(-50%) translateX(-6px);
    pointer-events: none;
}

.lms-whatsapp-icon {
    width: 58px;
    height: 58px;
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 0 0 5px rgba(97, 232, 116, .72), inset 0 0 0 2px rgba(255,255,255,.16);
    transition: transform .16s ease;
}

.lms-whatsapp-icon img {
    width: 40px;
    height: 40px;
    display: block;
}

.lms-whatsapp-dot {
    position: absolute;
    right: -2px;
    top: -2px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .2);
}

.lms-whatsapp-float:hover .lms-whatsapp-icon {
    transform: translateY(-1px) scale(1.03);
}

.lms-ai-chat {
    position: fixed;
    right: 18px;
    bottom: 26px;
    z-index: 90;
    font-family: Arial, Helvetica, sans-serif;
}

.lms-ai-teaser {
    position: absolute;
    right: 0;
    bottom: 70px;
    width: max-content;
    max-width: 238px;
    border: 1px solid #bfdbfe;
    border-radius: 16px 16px 5px 16px;
    background: #fff;
    color: #0f376d;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .18);
    cursor: pointer;
    padding: 10px 13px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
    text-align: left;
    animation: ai-teaser-pop .38s ease both;
}

.lms-ai-teaser::after {
    content: "";
    position: absolute;
    right: 20px;
    bottom: -7px;
    width: 12px;
    height: 12px;
    border-left: 1px solid #bfdbfe;
    border-bottom: 1px solid #bfdbfe;
    background: #fff;
    transform: rotate(-45deg);
}

@keyframes ai-teaser-pop {
    from { opacity: 0; transform: translateY(8px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.lms-ai-toggle {
    width: 58px;
    height: 58px;
    position: relative;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 78%);
    color: #fff;
    box-shadow: 0 16px 30px rgba(37, 99, 235, .34);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
}

.lms-ai-toggle-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 16px;
    background: rgba(255,255,255,.2);
}

.lms-ai-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(37, 99, 235, .42);
}

.lms-ai-face {
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.28);
}

.lms-ai-face::before {
    content: "";
    position: absolute;
    left: 34%;
    top: 43%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 12px 0 0 currentColor;
}

.lms-ai-face::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 64%;
    width: 34%;
    height: 15%;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 0 0 999px 999px;
    transform: translateX(-50%);
}

.assistant-face {
    color: #fff;
    background: #eff6ff url("../img/ai-assistant-person-128.png") center/cover no-repeat;
    box-shadow:
        inset 0 0 0 2px rgba(255,255,255,.72),
        0 4px 12px rgba(15, 23, 42, .12);
}

.assistant-face::before {
    content: none;
}

.assistant-face::after {
    content: none;
}

.student-face {
    color: #174a82;
    background:
        radial-gradient(circle at 32% 30%, #fff7ed 0 16%, transparent 17%),
        linear-gradient(135deg, #fef3c7 0%, #bfdbfe 100%);
}

.lms-ai-toggle-dot {
    position: absolute;
    right: 3px;
    bottom: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .22);
}

.lms-ai-panel {
    width: min(332px, calc(100vw - 24px));
    height: min(508px, calc(100vh - 104px));
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: #f8fbff;
    box-shadow: 0 24px 54px rgba(15, 23, 42, .26);
}

.lms-ai-panel[hidden],
.lms-ai-toggle[hidden] {
    display: none;
}

.lms-ai-head {
    min-height: 70px;
    display: grid;
    grid-template-columns: 38px 1fr 32px;
    gap: 9px;
    align-items: center;
    padding: 10px 11px;
    background: linear-gradient(135deg, #1165c7 0%, #0ea5e9 100%);
    color: #fff;
}

.lms-ai-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 15px;
}

.lms-ai-head strong,
.lms-ai-head small {
    display: block;
}

.lms-ai-head strong {
    font-size: 14px;
    line-height: 1.1;
}

.lms-ai-head small {
    margin-top: 3px;
    font-size: 11px;
    font-weight: 800;
}

.lms-ai-close {
    width: 30px;
    height: 30px;
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    color: #fff;
    cursor: pointer;
    transition: background .16s ease, transform .16s ease;
}

.lms-ai-close:hover {
    background: rgba(255,255,255,.28);
    transform: scale(1.03);
}

.lms-ai-close span,
.lms-ai-close span::after {
    width: 14px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.lms-ai-close span {
    transform: rotate(45deg);
}

.lms-ai-close span::after {
    transform: rotate(90deg);
}

.lms-ai-messages {
    display: flex;
    flex-direction: column;
    gap: 7px;
    overflow-y: auto;
    padding: 10px;
    background:
        radial-gradient(circle at 24px 22px, rgba(14, 165, 233, .12), transparent 24px),
        linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.lms-ai-message {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 6px;
    align-items: start;
    max-width: 92%;
    padding: 4px 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #172033;
    font-size: 12.5px;
    line-height: 1.32;
    white-space: pre-wrap;
}

.lms-ai-message.user {
    align-self: flex-end;
    grid-template-columns: minmax(0, 1fr) 26px;
    color: #172033;
}

.lms-ai-message.user .lms-ai-bubble-avatar {
    grid-column: 2;
    grid-row: 1;
}

.lms-ai-message.user .lms-ai-bubble-text {
    grid-column: 1;
    grid-row: 1;
    border-radius: 14px 14px 5px 14px;
    background: #287bd8;
    color: #fff;
}

.lms-ai-message.loading {
    color: #64748b;
    font-weight: 800;
}

.lms-ai-bubble-avatar {
    width: 26px;
    height: 26px;
    border-radius: 10px;
    margin-top: 2px;
}

.lms-ai-bubble-text {
    display: block;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #d7e8ff;
    border-radius: 14px 14px 14px 5px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .06);
}

.lms-ai-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 10px 8px;
    background: #eef6ff;
}

.lms-ai-suggestions button {
    min-height: 27px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #fff;
    color: #145397;
    cursor: pointer;
    padding: 0 9px;
    font-size: 11px;
    font-weight: 900;
}

.lms-ai-suggestions button:hover {
    border-color: #60a5fa;
    background: #eff6ff;
}

.lms-ai-form {
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 7px;
    align-items: center;
    padding: 8px 10px 10px;
    background: #fff;
}

.lms-ai-form input {
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    background: #eef2f7;
    padding: 0 12px;
    font-size: 12.5px;
    outline: none;
}

.lms-ai-form button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #2376d2;
    color: #fff;
    cursor: pointer;
}

.lms-ai-form button span {
    width: 0;
    height: 0;
    display: block;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid currentColor;
    transform: translateX(2px);
}

.lms-ai-form.sending button {
    opacity: .75;
    pointer-events: none;
}

@media (max-width: 760px) {
    .quiz-modal {
        padding: 12px;
    }

    .quiz-list-page {
        margin-inline: auto;
        padding-inline: 10px;
    }

    .quiz-hero {
        grid-template-columns: minmax(0, 1fr) 72px;
        gap: 9px;
        padding: 11px;
        border-radius: 15px;
    }

    .quiz-list-head {
        display: grid;
        padding: 14px;
        grid-template-columns: minmax(0, 1fr) 74px;
        gap: 10px;
    }

    .quiz-list-head h1 {
        font-size: 24px;
    }

    .quiz-list-guide {
        display: grid;
        gap: 6px;
    }

    .quiz-list-guide span {
        width: 100%;
        justify-content: flex-start;
    }

    .quiz-list-visual {
        min-height: 88px;
        border-radius: 16px;
    }

    .quiz-list-visual img {
        width: 54px;
        height: 50px;
    }

    .quiz-list-visual span {
        display: none;
    }

    .quiz-list-count {
        width: max-content;
    }

    .quiz-list-card {
        grid-template-columns: 36px minmax(0, 1fr);
        align-items: start;
        padding: 14px;
    }

    .quiz-list-action {
        grid-column: 1 / -1;
        width: 100%;
    }

    .quiz-page-hero {
        grid-template-columns: minmax(0, 1fr) 62px;
    }

    .quiz-take-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .quiz-take-hero .quiz-hero-visual {
        display: none;
    }

    .quiz-hero h2 {
        font-size: 20px;
    }

    .quiz-page-hero h1 {
        font-size: 20px;
    }

    .quiz-hero-copy p {
        font-size: 12px;
    }

    .quiz-hero-visual {
        min-height: 72px;
        border-radius: 13px;
    }

    .quiz-hero-visual img {
        width: 58px;
        height: 54px;
    }

    .quiz-picker-wrap > div:first-child {
        display: grid;
        gap: 2px;
    }

    .quiz-result-panel {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 6px;
    }

    .quiz-result-visual {
        min-height: 52px;
        grid-template-columns: 1fr;
        justify-content: center;
        gap: 0;
    }

    .quiz-result-visual img {
        width: 34px;
        height: 28px;
    }

    .quiz-result-card {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .quiz-result-card div {
        padding: 7px 8px;
    }

    .quiz-result-card strong {
        font-size: 15px;
    }

    .quiz-question-card {
        padding: 12px;
        border-radius: 15px;
    }

    .quiz-question-card legend {
        font-size: 14px;
    }

    .quiz-stepper-head {
        display: grid;
        justify-items: start;
    }

    .quiz-stepper-head strong {
        text-align: left;
    }

    .quiz-retake-panel {
        display: grid;
    }

    .quiz-stepper-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .quiz-step-button {
        width: 100%;
    }

    .lms-live-alert {
        top: 112px !important;
        right: 12px !important;
        bottom: auto;
        z-index: 1400;
    }

    .lms-live-alert-button {
        width: 52px;
        height: 52px;
    }

    .lms-live-alert-panel {
        top: 62px;
        right: 0;
        bottom: auto;
    }

    .lms-page.lms-program-page .lms-live-alert,
    .lms-page.lms-module-page .lms-live-alert {
        right: 68px !important;
    }

    .lms-whatsapp-float {
        left: 12px;
        bottom: 86px;
        width: 54px;
        height: 54px;
    }

    .lms-whatsapp-text {
        min-width: 0;
        left: 64px;
        max-width: calc(100vw - 88px);
        font-size: 14px;
    }

    .lms-whatsapp-icon {
        width: 54px;
        height: 54px;
    }

    .login-page .lms-whatsapp-float {
        bottom: 16px;
        width: 50px;
        height: 50px;
    }

    .login-page .lms-whatsapp-text {
        left: 60px;
        max-width: calc(100vw - 90px);
        padding: 7px 11px;
        font-size: 13px;
    }

    .login-page .lms-whatsapp-icon {
        width: 50px;
        height: 50px;
    }

    .login-page .lms-whatsapp-icon img {
        width: 35px;
        height: 35px;
    }

    .lms-ai-chat {
        right: 12px;
        bottom: 86px;
    }

    .lms-ai-teaser {
        right: 0;
        bottom: 64px;
        max-width: min(190px, calc(100vw - 28px));
        padding: 7px 10px;
        font-size: 11.5px;
    }

    .lms-page.lms-program-page .lms-ai-chat,
    .lms-page.lms-module-page .lms-ai-chat {
        right: 58px;
    }

    .lms-page.lms-program-page .lms-ai-teaser,
    .lms-page.lms-module-page .lms-ai-teaser {
        right: 0;
        bottom: 64px;
        max-width: min(180px, calc(100vw - 28px));
    }

    .lms-ai-panel {
        width: calc(100vw - 24px);
        height: min(470px, calc(100vh - 138px));
    }
}

/* Login recommended courses: stronger hierarchy and warmer course cards. */
.login-page .lms-recommended-panel .lms-course-grid {
    gap: 16px;
}

.login-page .lms-recommended-panel .lms-course-tile {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(126px, auto);
    overflow: hidden;
    border: 1px solid #bfd8f4;
    border-radius: 15px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 38px rgba(20, 67, 116, .16);
}

.login-page .lms-recommended-panel .lms-course-tile.promo-active {
    border: 1px dashed rgba(198,40,40,.55);
    box-shadow: 0 16px 34px rgba(198,40,40,.10);
}

.login-page .lms-recommended-panel .lms-course-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
}

.login-page .lms-recommended-panel .lms-course-tile:hover {
    transform: translateY(-4px);
    border-color: #71aee8;
    box-shadow: 0 24px 48px rgba(20, 67, 116, .22);
}


.login-page .lms-recommended-panel .lms-course-cover {
    position: relative;
    display: block;
    height: auto;
    aspect-ratio: 489 / 250;
    overflow: hidden;
    border-bottom: 1px solid #d8e8f8;
    background: #fff;
}

.login-page .lms-recommended-panel .lms-course-cover img {
    object-fit: cover;
}

.login-page .lms-recommended-panel .lms-course-cover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36px;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.9));
}

.login-page .lms-recommended-panel .lms-course-body {
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: start;
    gap: 8px;
    padding: 10px 12px 11px;
    min-height: 126px;
}

.login-page .lms-recommended-panel .lms-course-body h3 {
    min-height: 34px;
    padding-left: 0;
    color: #073e73;
    font-size: 13.2px;
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: 0;
    -webkit-line-clamp: 2;
}

.login-page .lms-recommended-panel .lms-course-body h3 a {
    color: inherit;
    text-decoration: none;
}

.login-page .lms-recommended-panel .lms-course-body h3::before {
    display: none;
}

.login-page .lms-recommended-panel .lms-course-body p {
    display: none;
}

.login-page .lms-recommended-panel .lms-course-author {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 6px;
    min-height: 28px;
}

.login-page .lms-recommended-panel .lms-course-author > span {
    width: 24px;
    height: 24px;
    font-size: 11px;
    background: linear-gradient(135deg, #1f73ff, #5c8bff);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
}

.login-page .lms-recommended-panel .lms-course-author strong {
    font-size: 10.5px;
}

.login-page .lms-recommended-panel .lms-course-author small {
    font-size: 9.5px;
}

.login-page .lms-recommended-panel .lms-course-foot strong {
    color: #006eea;
    font-size: 13px;
}

.login-page .lms-recommended-panel .lms-course-more {
    padding: 7px 13px;
    border-color: #a8cdf5;
    background: #edf6ff;
    color: #075fae;
    font-weight: 900;
    box-shadow: 0 8px 16px rgba(37, 99, 235, .11);
}

.login-page .lms-recommended-panel .lms-course-more:hover {
    background: #1f6fc9;
    border-color: #1f6fc9;
    color: #fff;
}

@media (max-width: 720px) {
    .login-page .lms-recommended-panel .lms-course-tile {
        grid-template-columns: none;
        grid-template-rows: auto minmax(126px, auto);
    }

    .login-page .lms-recommended-panel .lms-course-cover {
        height: auto;
        min-height: 0;
    }

    .login-page .lms-recommended-panel .lms-course-body {
        min-height: 125px;
    }
}

/* Back navigation buttons */
.back-link,
.program-dashboard .back-link {
    position: relative;
    min-height: 40px;
    gap: 9px;
    padding: 0 16px 0 13px;
    border: 1px solid #c8ddf3;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #edf6ff 100%);
    color: #073e73;
    box-shadow: 0 10px 22px rgba(20, 67, 116, .11);
    font-size: 13px;
    font-weight: 900;
}

.back-link::before,
.program-dashboard .back-link::before {
    content: "";
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 10px;
    background: #dceeff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
}

.back-link::after,
.program-dashboard .back-link::after {
    content: "";
    position: absolute;
    left: 24px;
    width: 8px;
    height: 8px;
    border-left: 2px solid #1f6fc9;
    border-bottom: 2px solid #1f6fc9;
    transform: rotate(45deg);
}

.back-link:hover,
.program-dashboard .back-link:hover {
    border-color: #76b4ef;
    background: #eaf5ff;
    color: #06345f;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(20, 67, 116, .16);
}

@media (max-width: 640px) {
    .back-link,
    .program-dashboard .back-link {
        width: max-content;
        max-width: 100%;
    }

    .program-dashboard,
    .module-content-page {
        padding-bottom: 150px;
    }

    .program-dashboard .program-section:last-child,
    .module-content-page .module-content-section:last-child {
        margin-bottom: 28px;
    }
}

/* Login return button */
.login-page .site-return-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #86d59b;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #eafbf0 100%);
    color: #16803c;
    font-size: 15px;
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(22, 128, 60, .14);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.login-page .site-return-button span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #dff8e8;
    color: #16803c;
    font-size: 16px;
}

.login-page .site-return-button:hover {
    background: #dcfce7;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(22, 128, 60, .2);
}

/* Certificate validation page - migrated from valida_qr.php - 2026-06-07 */
:root{--nav:#183766;--ink:#10203d;--muted:#617089;--line:#dbe8f7;--soft:#f3f8fc;--green:#10915f;--green2:#13c783;--danger:#b42318;--blue:#0f5fa8;--shadow:0 24px 70px rgba(15,23,42,.13)}
        *{box-sizing:border-box}
        body{margin:0;font-family:"Inter","Segoe UI",Arial,sans-serif;color:var(--ink);background:linear-gradient(180deg,#eaf3f8 0%,#f7fbff 42%,#fff 100%);min-height:100vh}
        a{color:inherit;text-decoration:none}
        .topbar{background:rgba(24,55,102,.98);border-bottom:1px solid rgba(255,255,255,.1)}
        .topbar-inner{max-width:1120px;margin:auto;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:14px}
        .brand{display:flex;align-items:center;gap:12px;color:#fff;font-weight:900}
        .brand img{height:52px;display:block}
        .top-actions{display:flex;gap:10px;flex-wrap:wrap}
        .pill{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;border-radius:999px;font-weight:850;background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.12)}
        .hero{background:linear-gradient(135deg,#081321 0%,#183766 62%,#0d766c 100%);color:#fff;padding:54px 20px 104px}
        .hero-inner{max-width:1120px;margin:auto;display:grid;gap:14px}
        .hero small{display:inline-flex;align-items:center;width:max-content;padding:8px 12px;border-radius:999px;background:rgba(19,199,131,.12);border:1px solid rgba(130,255,207,.28);font-weight:900;color:#c7ffe6;text-transform:uppercase;letter-spacing:.03em}
        .hero h1{font-size:clamp(2rem,5vw,4rem);line-height:1;margin:0;max-width:820px}
        .hero p{margin:0;color:rgba(255,255,255,.8);font-size:1.04rem;max-width:760px;line-height:1.55}
        .wrap{max-width:1120px;margin:-70px auto 54px;padding:0 20px;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:22px;align-items:start}
        .card{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);overflow:hidden}
        .card-pad{padding:24px}
        .status{display:flex;gap:16px;align-items:flex-start}
        .status-icon{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;flex:0 0 auto;background:#e9fff5;color:var(--green)}
        .status-icon.invalid{background:#fff1f1;color:var(--danger)}
        .status-icon svg,.field-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
        h2{margin:0 0 7px;color:#09265a;font-size:1.35rem}
        .status p,.muted{margin:0;color:var(--muted);line-height:1.55}
        .student-box{margin-top:20px;padding:18px;border-radius:18px;background:#f4fbf7;border:1px solid #bcebd5;display:grid;gap:6px}
        .student-box strong{font-size:1.15rem;color:#066843}
        .cert-list{display:grid;gap:12px;margin-top:18px}
        .cert-item{border:1px solid var(--line);border-radius:18px;padding:16px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:13px;align-items:start;background:linear-gradient(180deg,#fff,#f8fbff)}
        .cert-badge{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#e9fff5;color:var(--green)}
        .cert-badge svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
        .cert-item h3{margin:0;color:#07366d;font-size:1rem;line-height:1.25}
        .cert-item p{margin:5px 0 0;color:#53657d;font-size:.92rem;line-height:1.42}
        .valid-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:7px 10px;background:#e9fff5;color:#06724a;font-weight:900;font-size:.82rem;white-space:nowrap}
        .code{font-weight:900;color:#0f5fa8}
        .manual-form{display:grid;gap:14px}
        label{display:grid;gap:8px;font-weight:900;color:#09265a}
        input{width:100%;min-height:48px;border:1px solid #cddff2;border-radius:14px;padding:10px 13px;font:inherit;color:var(--ink);background:#fff}
        input:focus{outline:none;border-color:#13c783;box-shadow:0 0 0 4px rgba(19,199,131,.14)}
        .captcha-row{display:grid;grid-template-columns:1fr 120px;gap:10px;align-items:end}
        .captcha-chip{min-height:48px;border-radius:14px;border:1px dashed #9cc5eb;background:#f2f8ff;display:flex;align-items:center;justify-content:center;font-weight:950;color:#0f5fa8}
        .btn{border:0;border-radius:999px;min-height:48px;padding:12px 18px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:950;cursor:pointer}
        .btn-primary{background:linear-gradient(135deg,var(--green2),#13a765);color:#041b12}
        .errors{display:grid;gap:8px;margin-bottom:14px}
        .error{padding:12px 14px;border-radius:14px;background:#fff1f1;border:1px solid #ffd2d2;color:#8a1f16;font-weight:800}
        .info-card{display:grid;gap:12px}
        .info-row{display:flex;gap:10px;align-items:flex-start;padding:12px;border-radius:14px;background:#f7fbff;border:1px solid var(--line)}
        .field-icon{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;color:var(--green);background:#e9fff5;flex:0 0 auto}
        @media(max-width:860px){.topbar-inner{display:grid}.brand img{height:46px}.wrap{grid-template-columns:1fr}.hero{padding-top:36px}.cert-item{grid-template-columns:auto minmax(0,1fr)}.valid-pill{grid-column:2}.captcha-row{grid-template-columns:1fr}}
.cert-errors-spaced{margin-top:18px}

/* LMS status pills override validation-page migrated styles */
.lms-page .status {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.lms-page .status::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: currentColor;
}

.course-review-panel {
    display: grid;
    gap: 16px;
}

.course-review-form {
    display: grid;
    gap: 16px;
}

.review-rating-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.review-rating-field {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 14px;
    border: 1px solid #d9e7f7;
    border-radius: 14px;
    background: #f8fbff;
}

.review-rating-field legend {
    padding: 0;
    color: #53657d;
    font-size: 13px;
    font-weight: 900;
}

.review-star-options {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 3px;
}

.review-star-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.review-star-options label {
    color: #cbd5e1;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: color .15s ease, transform .15s ease;
}

.review-star-options label:hover,
.review-star-options label:hover ~ label,
.review-star-options input:checked ~ label {
    color: #f5a400;
}

.review-star-options label:hover {
    transform: translateY(-1px);
}

.review-textarea {
    display: grid;
    gap: 8px;
    color: #09265a;
    font-weight: 900;
}

.review-textarea textarea {
    width: 100%;
    min-height: 118px;
    resize: vertical;
    border: 1px solid #cddff2;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.review-textarea textarea:focus {
    outline: none;
    border-color: #13c783;
    box-shadow: 0 0 0 4px rgba(19,199,131,.14);
}

.review-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid #d9e7f7;
    border-radius: 14px;
    background: #fff;
}

.review-submit-row p {
    margin: 4px 0 0;
    color: #667085;
}

.course-review-form button[disabled],
.course-review-form button.is-loading {
    opacity: .72;
    cursor: wait;
}

.review-invite-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid #cfe2f5;
    border-radius: 18px;
    background:
        linear-gradient(135deg, #f8fbff, #eef8ff);
    box-shadow: 0 16px 36px rgba(15, 38, 80, .06);
}

.review-disclosure {
    display: grid;
    gap: 12px;
}

.review-disclosure > summary {
    list-style: none;
    cursor: pointer;
}

.review-disclosure > summary::-webkit-details-marker {
    display: none;
}

.review-disclosure[open] .review-open-button {
    background: #eef6ff;
    color: #0a4f95;
    box-shadow: none;
}

.review-inline-form {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #d9e7f7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(15, 38, 80, .06);
}

.review-inline-form h3 {
    margin: 0;
    color: #06265a;
    font-size: 24px;
    line-height: 1.1;
}

.review-inline-form .course-review-form {
    margin-top: 2px;
}

.review-invite-icon {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #fff7df;
    color: #f5a400;
}

.review-invite-icon::before {
    content: "\2605";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 28px;
    line-height: 1;
}

.review-invite-card strong {
    display: block;
    color: #06265a;
    font-size: 17px;
}

.review-invite-card p {
    margin: 5px 0 0;
    color: #53657d;
    line-height: 1.45;
}

.review-invite-card small {
    display: block;
    margin-top: 5px;
    color: #53657d;
    font-size: 14px;
    line-height: 1.45;
}

.review-open-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    background: linear-gradient(135deg, #0f8f62, #13c783);
    color: #fff;
    cursor: pointer;
    font-weight: 950;
    box-shadow: 0 14px 28px rgba(19, 199, 131, .22);
}

.review-open-button:hover {
    transform: translateY(-1px);
}

.review-modal {
    width: min(980px, calc(100vw - 28px));
    max-height: min(760px, calc(100vh - 44px));
    overflow: auto;
}

.review-modal .course-review-form {
    margin-top: 14px;
}

.review-state-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px;
    border: 1px solid #b7efcf;
    border-radius: 16px;
    background: #ecfdf5;
    color: #064e3b;
}

.review-state-icon {
    position: relative;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #d1fae5;
    color: #047857;
}

.review-state-icon::before {
    content: "";
    width: 20px;
    height: 11px;
    border-left: 4px solid currentColor;
    border-bottom: 4px solid currentColor;
    transform: rotate(-45deg);
}

.review-state-card strong {
    display: block;
    color: #064e3b;
    font-size: 16px;
}

.review-state-card p {
    margin: 6px 0 0;
    color: #047857;
    font-weight: 850;
}

.review-state-stars {
    color: #f5a400;
    letter-spacing: 1px;
}

.review-state-card small {
    display: block;
    margin-top: 9px;
    color: #355f50;
    line-height: 1.45;
}

.review-alert {
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 850;
}

.review-alert.success {
    border: 1px solid #b7efcf;
    background: #ecfdf5;
    color: #047857;
}

.review-alert.error {
    border: 1px solid #fecaca;
    background: #fff1f1;
    color: #991b1b;
}

@media(max-width: 980px) {
    .review-rating-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .review-invite-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .review-open-button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media(max-width: 640px) {
    .review-rating-grid,
    .review-submit-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .review-invite-card {
        grid-template-columns: 1fr;
    }

    .review-inline-form {
        padding: 14px;
        border-radius: 16px;
        margin-bottom: 18px;
    }

    .review-inline-form h3 {
        font-size: 22px;
    }

    .review-invite-icon {
        width: 46px;
        height: 46px;
    }

    .review-modal {
        width: calc(100vw - 18px);
        max-height: calc(100vh - 22px);
        padding: 18px;
    }
}

@media (max-width: 620px) {
    .lms-page .mobile-tabbar {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        bottom: max(10px, env(safe-area-inset-bottom)) !important;
        z-index: 2147483000 !important;
        display: grid !important;
        transform: translateZ(0);
    }

    .lms-page.lms-program-page,
    .lms-page.lms-module-page {
        padding-bottom: 178px !important;
    }

    .lms-page.lms-program-page .mobile-tabbar,
    .lms-page.lms-module-page .mobile-tabbar {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        bottom: max(22px, calc(env(safe-area-inset-bottom) + 22px)) !important;
        width: auto !important;
        max-width: none !important;
        display: grid !important;
        transform: translateZ(0) !important;
    }

    .lms-page.lms-program-page .lms-ai-chat,
    .lms-page.lms-module-page .lms-ai-chat {
        right: 18px !important;
        bottom: 112px !important;
        z-index: 1200 !important;
    }

    .lms-page.lms-program-page .lms-whatsapp-float,
    .lms-page.lms-module-page .lms-whatsapp-float {
        left: 18px !important;
        bottom: 112px !important;
        z-index: 1100 !important;
    }

    .lms-page.lms-program-page .lms-live-alert,
    .lms-page.lms-module-page .lms-live-alert {
        top: 110px !important;
        right: 24px !important;
        z-index: 1300 !important;
    }
}

.program-badges-section {
    display: grid;
    gap: 16px;
}

.program-title-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.title-badge {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    border: 1px solid rgba(8, 138, 90, .32);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(236, 253, 245, .98), rgba(255,255,255,.96));
    color: #064e3b;
    padding: 5px 9px 5px 6px;
    box-shadow: 0 10px 24px rgba(8, 30, 68, .12);
}

.title-badge .badge-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 10px;
    background: radial-gradient(circle at 50% 42%, #d9fbe9 0 58%, #b7efcf 59% 100%);
    color: #078a5a;
    box-shadow: inset 0 0 0 1px rgba(8,138,90,.18);
}

.title-badge .badge-icon::after {
    filter: none;
}

.title-badge .badge-icon-seed::before {
    width: 9px;
    height: 14px;
}

.title-badge .badge-icon-seed::after {
    height: 15px;
}

.title-badge .badge-icon-leaf::before {
    width: 14px;
    height: 10px;
    border-width: 2px;
}

.title-badge .badge-icon-leaf::after {
    width: 13px;
    height: 2px;
}

.title-badge .badge-icon-shield::before {
    width: 14px;
    height: 16px;
    border-width: 2px;
}

.title-badge .badge-icon-shield::after {
    width: 7px;
    height: 4px;
    border-left-width: 2px;
    border-bottom-width: 2px;
}

.title-badge-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.title-badge-copy em {
    color: #c08a13;
    font-size: 9px;
    font-style: normal;
    font-weight: 950;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

.title-badge strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #064e3b;
    font-size: 12px;
    font-weight: 950;
}

.title-badge small {
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fff;
    color: #0f766e;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 950;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.badge-card,
.badge-celebration,
.badge-toast {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    border: 1px solid #d7e7fb;
    border-radius: 18px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 18px 40px rgba(8, 30, 68, .08);
}

.badge-card.earned {
    border-color: #a8efd0;
    background: linear-gradient(135deg, #ecfdf5, #ffffff 72%);
}

.badge-card.locked {
    background: #f8fbff;
    opacity: .78;
}

.badge-icon {
    position: relative;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #eaf4ff;
    color: #1f7bd2;
    box-shadow: inset 0 0 0 1px rgba(31, 123, 210, .14);
}

.badge-card.earned .badge-icon,
.badge-celebration .badge-icon,
.badge-toast .badge-icon {
    background: #d9fbe9;
    color: #078a5a;
}

.badge-icon::before,
.badge-icon::after {
    content: "";
    position: absolute;
}

.badge-icon-seed::before {
    width: 18px;
    height: 26px;
    border-radius: 60% 0 60% 0;
    background: currentColor;
    transform: rotate(-35deg);
}

.badge-icon-seed::after {
    width: 2px;
    height: 28px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(28deg);
    opacity: .55;
}

.badge-icon-leaf::before {
    width: 30px;
    height: 20px;
    border-radius: 100% 0 100% 0;
    border: 3px solid currentColor;
    transform: rotate(-18deg);
}

.badge-icon-leaf::after {
    width: 26px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(-22deg);
}

.badge-icon-shield::before {
    width: 28px;
    height: 32px;
    border: 3px solid currentColor;
    border-radius: 14px 14px 18px 18px;
    clip-path: polygon(0 0, 100% 0, 88% 72%, 50% 100%, 12% 72%);
}

.badge-icon-shield::after {
    width: 12px;
    height: 7px;
    border-left: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(-45deg);
}

.badge-card small,
.badge-toast small {
    display: block;
    color: #c08a13;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.badge-card h3 {
    margin: 5px 0 6px;
    color: #08255a;
    font-size: 18px;
}

.badge-card p,
.badge-celebration p,
.badge-toast p {
    margin: 0;
    color: #53657d;
    font-size: 14px;
    line-height: 1.45;
}

.badge-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.badge-meta span,
.badge-toast em {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 10px;
    background: #eef6ff;
    color: #164f86;
    font-size: 12px;
    font-style: normal;
    font-weight: 950;
}

.badge-card.earned .badge-meta span:first-child,
.badge-toast em {
    background: #dff8eb;
    color: #047857;
}

.badge-celebration {
    border-color: #a8efd0;
    background: #ecfdf5;
}

.badge-celebration strong,
.badge-toast strong {
    display: block;
    color: #064e3b;
    font-size: 17px;
}

.badge-toast-wrap {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1200;
    display: grid;
    gap: 10px;
    width: min(420px, calc(100vw - 28px));
    pointer-events: none;
}

.badge-toast {
    pointer-events: auto;
    border-color: #a8efd0;
    background: #fff;
    animation: badgeToastIn .24s ease-out both;
}

@keyframes badgeToastIn {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media(max-width: 980px) {
    .badge-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 640px) {
    .program-title-badges {
        gap: 6px;
        margin-top: 8px;
    }

    .title-badge {
        max-width: 100%;
        min-height: 34px;
        padding: 4px 7px 4px 5px;
        border-radius: 12px;
    }

    .title-badge .badge-icon {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }

    .title-badge strong {
        max-width: 170px;
        font-size: 11px;
    }

    .title-badge small {
        font-size: 10px;
    }

    .badge-card,
    .badge-celebration,
    .badge-toast {
        grid-template-columns: 46px minmax(0, 1fr);
        padding: 14px;
    }

    .badge-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .badge-toast-wrap {
        right: 14px;
        bottom: 14px;
    }
}

@media (max-width: 900px) {
    body:has(main.program-dashboard) .mobile-tabbar,
    body:has(main.module-content-page) .mobile-tabbar {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        width: auto !important;
        max-width: none !important;
        min-height: 64px !important;
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 6px !important;
        padding: 7px !important;
        border: 1px solid rgba(199, 215, 232, .95) !important;
        border-radius: 18px !important;
        background: rgba(255,255,255,.98) !important;
        box-shadow: 0 18px 44px rgba(15, 23, 42, .18) !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        z-index: 2147483640 !important;
    }

    body:has(main.program-dashboard) .mobile-tabbar a,
    body:has(main.module-content-page) .mobile-tabbar a {
        min-height: 50px !important;
    }

    body:has(main.program-dashboard) .lms-whatsapp-float,
    body:has(main.module-content-page) .lms-whatsapp-float,
    body:has(main.program-dashboard) .lms-ai-chat,
    body:has(main.module-content-page) .lms-ai-chat {
        bottom: 92px !important;
    }

    body:has(main.program-dashboard) .lms-ai-chat,
    body:has(main.module-content-page) .lms-ai-chat {
        right: 18px !important;
    }

    body:has(main.program-dashboard) .lms-live-alert,
    body:has(main.module-content-page) .lms-live-alert {
        right: 24px !important;
    }

    body:has(main.program-dashboard) .lms-whatsapp-float,
    body:has(main.module-content-page) .lms-whatsapp-float {
        left: 18px !important;
    }
}

/* LMS recommended course cards aligned with public store cards. */
.login-page .lms-recommended-panel .lms-course-tile {
    min-width: 0;
}

.login-page .lms-recommended-panel .lms-course-tile.promo-active {
    border: 1px dashed rgba(198,40,40,.55);
}

.login-page .lms-recommended-panel .lms-course-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
}

.login-page .lms-recommended-panel .lms-course-foot > span:first-child {
    min-width: 0;
}

.login-page .lms-recommended-panel .lms-course-foot > span:first-child > strong {
    color: #00825a;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.05;
}

.login-page .lms-recommended-panel .lms-course-foot > span:first-child > small,
.login-page .lms-recommended-panel .lms-course-foot > small {
    display: block;
    margin-top: 3px;
    color: #00825a;
    font-size: 11.5px;
    font-weight: 900;
    line-height: 1.05;
}

.login-page .lms-recommended-panel .lms-promo-price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-wrap: wrap;
}

.login-page .lms-recommended-panel .lms-promo-price .promo-discount-label {
    flex: 0 0 100%;
    width: max-content;
    max-width: max-content;
    padding: 3px 7px;
    border-radius: 999px;
    background: #fff1f1;
    color: #b42318;
    border: 1px solid #ffc9c9;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
}

.login-page .lms-recommended-panel .lms-promo-price del,
.login-page .lms-recommended-panel .lms-promo-price strong {
    display: inline-block;
    font-size: 15px;
    line-height: 1.05;
}

.login-page .lms-recommended-panel .lms-promo-price del {
    order: 3;
    color: #c62828;
    font-weight: 900;
    text-decoration-color: #c62828;
    text-decoration-thickness: 2px;
}

.login-page .lms-recommended-panel .lms-promo-price strong {
    order: 2;
    color: #00825a;
    font-weight: 950;
}

.login-page .lms-recommended-panel .lms-course-foot > .lms-promo-price + small {
    grid-column: 1;
    grid-row: 2;
}

@media (max-width: 560px) {
    .login-page .lms-recommended-panel .lms-course-tile {
        grid-template-columns: minmax(96px, 112px) minmax(0, 1fr);
        grid-template-rows: none;
        min-height: 164px;
        border-radius: 14px;
    }

    .login-page .lms-recommended-panel .lms-course-cover {
        height: 100%;
        min-height: 164px;
        aspect-ratio: auto;
        border-right: 1px solid #d8e8f8;
        border-bottom: 0;
    }

    .login-page .lms-recommended-panel .lms-course-cover img {
        height: 100%;
        object-fit: cover;
    }

    .login-page .lms-recommended-panel .lms-course-cover::after {
        display: none;
    }

    .login-page .lms-recommended-panel .lms-course-body {
        grid-template-rows: auto auto auto 1fr;
        gap: 5px;
        min-height: 164px;
        padding: 9px 10px;
    }

    .login-page .lms-recommended-panel .lms-course-body h3 {
        min-height: 0;
        font-size: 13.5px;
        line-height: 1.16;
    }

    .login-page .lms-recommended-panel .promo-badge-mobile .promo-overlay {
        width: max-content;
        max-width: 100%;
        gap: 2px 5px;
        padding: 5px 6px;
        border-radius: 8px;
        background: rgba(198,40,40,.96);
    }

    .login-page .lms-recommended-panel .promo-badge-mobile .promo-overlay strong {
        font-size: 11.5px;
    }

    .login-page .lms-recommended-panel .promo-badge-mobile .promo-countdown-copy {
        font-size: 10px;
    }

    .login-page .lms-recommended-panel .promo-badge-mobile .promo-overlay small {
        gap: 4px;
        font-size: 11px;
    }

    .login-page .lms-recommended-panel .promo-badge-mobile .promo-overlay b {
        min-width: 28px;
        padding: 4px 5px;
        font-size: 12px;
    }

    .login-page .lms-recommended-panel .lms-course-author {
        grid-template-columns: 24px minmax(0, 1fr);
        min-height: 28px;
    }

    .login-page .lms-recommended-panel .lms-course-author strong {
        font-size: 11px;
    }

    .login-page .lms-recommended-panel .lms-course-author small {
        font-size: 10px;
    }

    .login-page .lms-recommended-panel .lms-course-foot {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px;
        align-self: end;
    }

    .login-page .lms-recommended-panel .lms-promo-price {
        gap: 5px;
    }

    .login-page .lms-recommended-panel .lms-promo-price .promo-discount-label {
        padding: 2px 6px;
        font-size: 10.8px;
    }

    .login-page .lms-recommended-panel .lms-promo-price del,
    .login-page .lms-recommended-panel .lms-promo-price strong,
    .login-page .lms-recommended-panel .lms-course-foot > span:first-child > strong {
        font-size: 14px;
    }

    .login-page .lms-recommended-panel .lms-course-foot > span:first-child > small,
    .login-page .lms-recommended-panel .lms-course-foot > small {
        color: #00825a;
        font-size: 11px;
    }

    .login-page .lms-recommended-panel .lms-course-more {
        min-height: 32px;
        padding: 0 13px;
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .login-page .lms-recommended-panel .lms-course-tile {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .login-page .lms-recommended-panel .lms-course-body {
        padding: 8px 9px;
    }

    .login-page .lms-recommended-panel .lms-course-body h3 {
        font-size: 13px;
    }
}

/* Mobile cleanup for LMS recommended cards. Keeps the card readable as a compact list. */
@media (max-width: 560px) {
    .login-page .lms-recommended-panel .lms-course-grid {
        gap: 12px;
    }

    .login-page .lms-recommended-panel .lms-course-tile {
        display: grid;
        grid-template-columns: clamp(94px, 32vw, 118px) minmax(0, 1fr);
        min-height: 136px;
        overflow: hidden;
        align-items: stretch;
    }

    .login-page .lms-recommended-panel .lms-course-cover {
        height: 100%;
        min-height: 136px;
        border-right: 1px solid #d8e8f8;
    }

    .login-page .lms-recommended-panel .lms-course-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .login-page .lms-recommended-panel .lms-course-body {
        display: flex;
        flex-direction: column;
        min-width: 0;
        min-height: 136px;
        padding: 10px 10px 9px;
        gap: 6px;
    }

    .login-page .lms-recommended-panel .lms-course-body h3 {
        min-height: 0;
        max-height: 34px;
        padding-left: 0;
        font-size: 13.5px;
        line-height: 1.16;
        -webkit-line-clamp: 2;
    }

    .login-page .lms-recommended-panel .lms-course-body h3::before {
        display: none;
    }

    .login-page .lms-recommended-panel .promo-badge-mobile {
        order: 2;
    }

    .login-page .lms-recommended-panel .promo-badge-mobile .promo-overlay {
        max-width: 100%;
        padding: 4px 6px;
        gap: 2px 4px;
    }

    .login-page .lms-recommended-panel .promo-badge-mobile .promo-overlay b {
        min-width: 25px;
        padding: 3px 4px;
        font-size: 11.5px;
    }

    .login-page .lms-recommended-panel .lms-course-author {
        order: 3;
        grid-template-columns: 24px minmax(0, 1fr);
        min-height: 28px;
    }

    .login-page .lms-recommended-panel .lms-course-foot {
        order: 4;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 8px;
        margin-top: auto;
    }

    .login-page .lms-recommended-panel .lms-course-foot > .lms-promo-price {
        min-width: 0;
    }

    .login-page .lms-recommended-panel .lms-course-foot > .lms-promo-price > strong {
        display: block;
        color: #00825a;
        font-size: 14px;
        line-height: 1.05;
    }

    .login-page .lms-recommended-panel .lms-course-foot > .lms-promo-price > small,
    .login-page .lms-recommended-panel .lms-course-foot > .lms-promo-price + small {
        display: block;
        margin-top: 2px;
        color: #00825a;
        font-size: 11px;
        font-weight: 900;
        line-height: 1.05;
    }

    .login-page .lms-recommended-panel .lms-course-foot .lms-promo-price .lms-promo-price {
        display: flex;
        align-items: baseline;
        gap: 5px;
        flex-wrap: wrap;
    }

    .login-page .lms-recommended-panel .lms-course-foot .lms-promo-price .promo-discount-label {
        flex: 0 0 auto;
        padding: 2px 5px;
        font-size: 10.5px;
    }

    .login-page .lms-recommended-panel .lms-course-foot .lms-promo-price del,
    .login-page .lms-recommended-panel .lms-course-foot .lms-promo-price strong {
        font-size: 14px;
        line-height: 1.05;
    }

    .login-page .lms-recommended-panel .lms-course-more {
        min-width: 64px;
        min-height: 32px;
        padding: 0 11px;
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .login-page .lms-recommended-panel .lms-course-tile {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .login-page .lms-recommended-panel .lms-course-body {
        padding: 9px 8px;
    }

    .login-page .lms-recommended-panel .lms-course-more {
        min-width: 54px;
        padding: 0 8px;
    }
}

/* Attractive verified registration flow. */
.register-page {
    align-items: center;
    padding: 28px;
    background:
        linear-gradient(115deg, rgba(8, 25, 45, .92) 0%, rgba(7, 71, 68, .72) 58%, rgba(14, 134, 91, .62) 100%),
        url("../img/backgrounds/natural-capsules-bg.jpg") center / cover no-repeat,
        #14213d;
}

.register-shell {
    width: min(1180px, 100%);
    min-height: min(720px, calc(100vh - 56px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 18px;
    align-items: stretch;
}

.register-hero-panel,
.register-form-card {
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 28px 74px rgba(7, 21, 47, .28);
}

.register-hero-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: space-between;
    padding: 34px;
    color: #fff;
    background:
        linear-gradient(110deg, rgba(7, 21, 47, .9), rgba(7, 96, 79, .72)),
        url("../img/backgrounds/natural-capsules-bg.jpg") center / cover no-repeat;
}

.register-hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}

.register-brand-card {
    position: relative;
    z-index: 1;
    width: max-content;
    max-width: 100%;
    display: grid;
    gap: 12px;
}

.register-brand-card img {
    width: 190px;
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(0,0,0,.18);
}

.register-brand-card span,
.verify-card .login-brand-mark span {
    width: max-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(21, 198, 134, .16);
    color: #c9ffe9;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.register-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 34px 0;
}

.register-hero-copy h1 {
    max-width: 720px;
    margin: 8px 0 14px;
    color: #fff;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.02;
}

.register-hero-copy p {
    max-width: 660px;
    margin: 0;
    color: #e4f4f0;
    font-size: 18px;
    line-height: 1.55;
}

.register-benefit-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.register-benefit-grid article {
    min-height: 116px;
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 16px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
}

.register-benefit-grid strong {
    color: #fff;
    font-size: 15px;
}

.register-benefit-grid small {
    color: #d9f3eb;
    font-size: 12px;
    line-height: 1.35;
}

.register-form-card {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 30px;
    color: #07152f;
}

.register-form-card h1,
.register-form-card h2 {
    margin: 0;
    color: #07152f;
    font-size: 34px;
    line-height: 1.05;
}

.register-form-card p {
    margin: 0;
    color: #51627b;
    line-height: 1.45;
}

.register-form-card form {
    display: grid;
    gap: 13px;
    margin-top: 4px;
}

.register-form-card .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.register-form-card label {
    gap: 6px;
}

.register-form-card input {
    min-height: 44px;
    border-radius: 12px;
    background: #f7fbff;
}

.captcha-field > div {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.captcha-field strong {
    min-height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px dashed #29b179;
    border-radius: 12px;
    background: #ecfdf5;
    color: #047857;
    font-size: 18px;
    font-weight: 950;
}

.register-form-card .primary-button {
    min-height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #078546, #13c783);
    color: #07152f;
    box-shadow: 0 16px 30px rgba(19, 199, 131, .22);
}

.register-form-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
}

.verify-shell {
    width: min(520px, 100%);
}

.verify-card {
    min-height: 0;
}

.verify-card .login-brand-mark img {
    width: 168px;
}

.verify-card .login-brand-mark span {
    color: #057249;
    background: #e8fff4;
}

.alert.success {
    border: 1px solid #bbf7d0;
    background: #ecfdf3;
    color: #047857;
}

@media (max-width: 980px) {
    .register-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .register-hero-panel {
        min-height: 420px;
    }
}

@media (max-width: 560px) {
    .register-page {
        padding: 10px;
    }

    .register-hero-panel,
    .register-form-card {
        border-radius: 18px;
    }

    .register-hero-panel {
        min-height: 0;
        padding: 22px;
    }

    .register-hero-copy {
        padding: 28px 0 20px;
    }

    .register-hero-copy h1 {
        font-size: 34px;
    }

    .register-hero-copy p {
        font-size: 15px;
    }

    .register-benefit-grid,
    .register-form-card .form-grid,
    .register-form-links {
        grid-template-columns: 1fr;
    }

    .register-benefit-grid article {
        min-height: 0;
    }

    .register-form-card {
        padding: 22px;
    }

    .register-form-card h1,
    .register-form-card h2 {
        font-size: 28px;
    }
}

/* Final register layout: admin-login style, form left and image right. */
body.register-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 26px;
    background:
        linear-gradient(120deg, rgba(7, 21, 47, .82), rgba(8, 112, 88, .62)),
        #14213d;
}

body.register-page .register-shell {
    width: min(1120px, 100%);
    min-height: min(700px, calc(100vh - 52px));
    display: grid;
    grid-template-columns: 430px minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(7, 21, 47, .34);
}

body.register-page .register-form-card {
    width: 100%;
    min-height: 100%;
    display: grid;
    align-content: center;
    gap: 11px;
    padding: 32px 34px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

body.register-page .register-form-card .login-brand-mark {
    margin: 0 0 4px;
}

body.register-page .register-form-card .login-brand-mark img {
    width: 176px;
}

body.register-page .register-form-card .login-brand-mark span {
    display: inline-flex;
    width: max-content;
    margin-top: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eaf9f1;
    color: #047857;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

body.register-page .register-form-card h2 {
    margin: 0;
    color: #07152f;
    font-size: 32px;
}

body.register-page .register-form-card p {
    color: #52657d;
    font-size: 14px;
}

body.register-page .register-form-card form {
    gap: 11px;
}

body.register-page .register-form-card input {
    min-height: 42px;
}

body.register-page .register-form-card select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #cfdbeb;
    border-radius: 12px;
    background: #f7fbff;
    color: #07152f;
    font-size: 14px;
    font-weight: 800;
}

body.register-page .register-form-card select:focus {
    border-color: #28679d;
    box-shadow: 0 0 0 4px rgba(40, 103, 157, .14);
    outline: none;
}

body.register-page .register-terms-check {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px 14px;
    border: 1px solid #cfe0f2;
    border-radius: 14px;
    background: #f7fbff;
    color: #41526d;
    font-size: 13px;
    line-height: 1.35;
}

body.register-page .register-terms-check input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 1px 0 0;
    accent-color: #10b981;
}

body.register-page .register-terms-check a {
    color: #0f8b57;
    font-weight: 800;
    text-decoration: none;
}

body.register-page .register-terms-check a:hover {
    text-decoration: underline;
}

body.register-page .register-code-check {
    display: grid;
    gap: 7px;
    padding: 13px 14px;
    border: 1px dashed #9fd8bd;
    border-radius: 14px;
    background: #f0fff8;
}

body.register-page .register-code-check span {
    color: #0f6b47;
    font-weight: 900;
}

body.register-page .register-code-check input {
    text-align: center;
    letter-spacing: 7px;
    font-size: 20px;
    font-weight: 950;
    color: #047857;
    background: #fff;
}

body.register-page .secondary-button {
    min-height: 42px;
    border: 1px solid #cfe0f2;
    border-radius: 999px;
    background: #eef6ff;
    color: #125a9c;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

body.register-page .secondary-button:hover {
    background: #e1efff;
}

body.register-page .phone-grid {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 11px;
}

body.register-page .register-hero-panel {
    min-height: 100%;
    display: grid;
    align-content: end;
    gap: 22px;
    padding: 44px;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(7, 21, 47, .22), rgba(7, 21, 47, .88)),
        url("../img/backgrounds/natural-capsules-bg.jpg") center / cover no-repeat;
    box-shadow: none;
}

body.register-page .register-hero-copy {
    padding: 0;
}

body.register-page .register-hero-copy h1 {
    font-size: clamp(36px, 4.5vw, 58px);
}

body.register-page .register-benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 920px) {
    body.register-page .register-shell {
        grid-template-columns: 1fr;
    }

    body.register-page .register-hero-panel {
        min-height: 360px;
        order: -1;
    }
}

@media (max-width: 560px) {
    body.register-page {
        padding: 10px;
    }

    body.register-page .register-shell {
        border-radius: 18px;
    }

    body.register-page .register-form-card {
        padding: 22px;
    }

    body.register-page .register-form-card .form-grid,
    body.register-page .phone-grid,
    body.register-page .register-form-links,
    body.register-page .register-benefit-grid {
        grid-template-columns: 1fr;
    }

    body.register-page .register-hero-panel {
        min-height: 0;
        padding: 18px;
        gap: 12px;
        background:
            linear-gradient(0deg, rgba(7, 21, 47, .56), rgba(7, 21, 47, .56)),
            linear-gradient(180deg, rgba(7, 21, 47, .72), rgba(7, 21, 47, .95)),
            url("../img/backgrounds/natural-capsules-bg.jpg") center / cover no-repeat;
    }

    body.register-page .register-hero-panel .eyebrow {
        font-size: 9px;
        line-height: 1;
    }

    body.register-page .register-hero-copy h1 {
        font-size: 23px;
        line-height: 1.04;
        margin: 6px 0 7px;
    }

    body.register-page .register-hero-copy p {
        font-size: 12px;
        line-height: 1.34;
        max-width: 280px;
    }

    body.register-page .register-hero-copy {
        padding: 0;
    }

    body.register-page .register-benefit-grid {
        gap: 7px;
    }

    body.register-page .register-benefit-grid article {
        min-height: 0;
        padding: 9px 11px;
        gap: 3px;
        border-radius: 12px;
    }

    body.register-page .register-benefit-grid strong {
        font-size: 12px;
    }

    body.register-page .register-benefit-grid small {
        display: -webkit-box;
        overflow: hidden;
        font-size: 10px;
        line-height: 1.25;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
    }

    body.register-page .register-form-card .login-brand-mark {
        display: grid;
        gap: 10px;
    }

    body.register-page .register-form-card .login-brand-mark img {
        width: 138px;
    }

    body.register-page .register-form-card .login-brand-mark span {
        width: fit-content;
        max-width: 100%;
        margin-top: 0;
        padding: 6px 9px;
        font-size: 9.5px;
        white-space: normal;
        line-height: 1.15;
    }
}

/* Tabler icon system */
.ti{line-height:1}
.btn-icon.ti,.button-icon.ti{display:inline-grid;place-items:center}
.icon-only .ti{color:currentColor;font-size:18px;line-height:1}
.icon-only:has(.ti)::before,.icon-only:has(.ti)::after,.finance-detail-button:has(.ti)::before,.finance-detail-button:has(.ti)::after{content:none!important}

/* Login icon cleanup */
.login-page .login-button-icon,
.login-page .login-link-icon {
    width: 30px;
    min-width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 30px;
    overflow: hidden;
    border-radius: 999px;
}

.login-page .login-button-icon::before,
.login-page .login-button-icon::after,
.login-page .login-link-icon::before,
.login-page .login-link-icon::after,
.login-page .password-eye::before,
.login-page .password-eye::after {
    content: none !important;
    display: none !important;
}

.login-page .login-button-icon svg,
.login-page .login-link-icon svg,
.login-page .password-eye svg {
    width: 17px;
    height: 17px;
    display: block;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-page .lms-access-login form {
    gap: 11px;
}

.login-page .password-field {
    position: relative;
    display: block;
}

.login-page .password-field input {
    width: 100%;
    padding-right: 52px;
}

.login-page .password-eye {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid #cfe0f2;
    border-radius: 999px;
    background: #ffffff;
    color: #2f73bd;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .08);
}

.login-page .password-eye.is-visible {
    color: #16803c;
    background: #ecfdf3;
    border-color: #86d59b;
}

.login-memory-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: -4px;
}

.remember-login-option {
    display: inline-flex !important;
    gap: 7px;
    align-items: center;
    width: auto;
    min-height: 22px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}

.remember-login-option input {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: #2376d2;
    cursor: pointer;
}

.remember-login-option span {
    display: block;
    min-width: 0;
    color: #07152f;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1;
}

.remember-login-option small,
.login-user-help {
    color: #5b6d86;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.25;
}

.login-user-help {
    padding-left: 3px;
}

.login-page .forgot-link {
    width: auto;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    margin: 0;
    min-height: 22px;
    color: #17456f;
    font-size: 11.5px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.login-page .forgot-link:hover {
    color: #0b6bd3;
    text-decoration: underline;
}

.login-page .login-submit-button {
    margin-top: 2px;
}

.login-secondary-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 7px;
    margin-top: 1px;
    width: 100%;
}

.login-secondary-links a,
.login-secondary-links button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid #8fc4f3;
    border-radius: 999px;
    background: #eaf5ff;
    color: #074f92;
    font: inherit;
    font-size: 11.5px;
    font-weight: 900;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .12);
}

.login-secondary-links svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-secondary-links a:hover,
.login-secondary-links button:hover {
    color: #fff;
    background: #2376d2;
    border-color: #2376d2;
    text-decoration: none;
}

@media (max-width: 520px) {
    .login-page .lms-access-login form {
        gap: 10px;
    }

    .login-memory-row {
        align-items: flex-start;
    }

    .login-page .forgot-link,
    .remember-login-option span {
        font-size: 11px;
    }

    .login-secondary-links {
        gap: 8px;
    }

    .login-secondary-links a,
    .login-secondary-links button {
        min-height: 38px;
        padding: 8px 11px;
        font-size: 12.5px;
    }

    .login-secondary-links svg {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }
}

/* LMS desktop density: compact topbar, hero and dashboard cards for 1366x768 workspaces. */
@media (min-width: 981px) {
    .student-topbar {
        height: 56px !important;
        padding: 0 16px !important;
        gap: 10px !important;
    }

    .student-topbar .brand-area,
    .student-actions {
        gap: 8px !important;
    }

    .student-topbar .brand {
        gap: 8px !important;
    }

    .student-topbar .brand img {
        height: 34px !important;
        padding: 5px !important;
        border-radius: 7px !important;
    }

    .student-topbar .brand-title {
        padding-left: 10px !important;
    }

    .student-topbar .brand-title strong {
        font-size: 15px !important;
        line-height: 1 !important;
    }

    .student-topbar .brand-title small {
        width: fit-content !important;
        font-size: 8.5px !important;
        padding: 2px 6px !important;
    }

    .student-topbar .brand-more-courses {
        min-height: 34px !important;
        padding: 0 12px !important;
        border-radius: 10px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    .student-topbar .top-nav {
        gap: 2px !important;
        justify-content: flex-start !important;
        overflow: hidden !important;
    }

    .student-topbar .top-nav .top-support-link {
        display: none !important;
    }

    .student-topbar .top-nav a {
        min-height: 32px !important;
        padding: 0 8px !important;
        border-radius: 7px !important;
        font-size: 12.5px !important;
        white-space: nowrap !important;
    }

    .student-topbar .nav-mini {
        width: 16px !important;
        flex: 0 0 16px !important;
        height: 16px !important;
        margin-right: 5px !important;
    }

    .student-chip {
        min-width: 190px !important;
        max-width: 240px !important;
        padding: 6px 9px !important;
        border-radius: 9px !important;
    }

    .student-chip > span {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }

    .student-chip strong,
    .student-chip small {
        max-width: 150px !important;
    }

    .student-chip strong {
        font-size: 13px !important;
        line-height: 1.1 !important;
    }

    .student-chip small {
        font-size: 10.5px !important;
        line-height: 1.15 !important;
    }

    .topbar-logout {
        min-height: 34px !important;
        padding: 0 10px !important;
        border-radius: 9px !important;
        font-size: 12px !important;
    }

    .student-actions .support-action-button {
        min-height: 34px !important;
        padding: 0 10px !important;
        border-radius: 9px !important;
        font-size: 12px !important;
        flex: 0 0 auto !important;
    }

    .learner-dashboard {
        width: min(1320px, calc(100% - 32px)) !important;
        padding: 10px 0 22px !important;
        gap: 8px !important;
    }

    .learner-hero {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    .learner-hero-copy {
        min-height: 120px !important;
        padding: 14px 24px !important;
        align-content: center !important;
        border-radius: 14px !important;
    }

    .learner-hero-copy .eyebrow {
        font-size: 11px !important;
    }

    .learner-hero-copy h1 {
        margin: 4px 0 6px !important;
        font-size: clamp(25px, 2.45vw, 34px) !important;
        line-height: 1.02 !important;
    }

    .learner-hero-copy p {
        max-width: 720px !important;
        font-size: 13px !important;
        line-height: 1.25 !important;
    }

    .learner-hero-actions {
        margin-top: 10px !important;
        gap: 6px !important;
    }

    .learner-hero-actions .primary-button,
    .learner-hero-actions .ghost-button {
        min-height: 32px !important;
        padding: 0 11px !important;
        border-radius: 9px !important;
        font-size: 12.5px !important;
    }

    .learner-profile-card {
        grid-template-columns: 36px minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 12px 14px !important;
        align-content: center !important;
        border-radius: 14px !important;
    }

    .learner-avatar {
        width: 36px !important;
        height: 36px !important;
        border-radius: 12px !important;
        font-size: 15px !important;
    }

    .learner-profile-card strong {
        margin-top: 0 !important;
        font-size: 13px !important;
        line-height: 1.15 !important;
    }

    .learner-profile-card span {
        font-size: 11px !important;
        line-height: 1.25 !important;
    }

    .learner-profile-card .logout-button {
        min-height: 32px !important;
        font-size: 12px !important;
    }

    .learner-kpis {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .learner-kpis article {
        min-height: 58px !important;
        grid-template-columns: 30px minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 9px 12px !important;
        border-radius: 12px !important;
    }

    .learner-kpis small {
        font-size: 9.5px !important;
        line-height: 1.05 !important;
    }

    .learner-kpis strong {
        margin-top: 1px !important;
        font-size: 20px !important;
        line-height: 1 !important;
    }

    .mini-icon {
        width: 28px !important;
        flex-basis: 28px !important;
        height: 28px !important;
        border-radius: 8px !important;
    }

    .learner-grid {
        gap: 12px !important;
    }

    .learner-panel {
        padding: 14px !important;
        border-radius: 14px !important;
    }

    .learner-section-head {
        margin-bottom: 10px !important;
    }
}

@media (min-width: 981px) and (max-width: 1180px) {
    .student-topbar {
        grid-template-columns: auto minmax(0, 1fr) !important;
    }

    .student-actions {
        display: none !important;
    }

    .learner-hero {
        grid-template-columns: 1fr !important;
    }

    .learner-profile-card {
        display: none !important;
    }

    .learner-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* LMS program page density: keep course view usable on 1366x768 screens. */
@media (min-width: 981px) {
    .program-dashboard {
        width: min(1280px, calc(100% - 72px)) !important;
        padding: 10px 0 18px !important;
        gap: 10px !important;
    }

    .program-dashboard .program-hero {
        padding: 12px 14px !important;
        border-radius: 14px !important;
    }

    .program-dashboard .program-hero-grid {
        grid-template-columns: minmax(0, 1fr) 170px !important;
        gap: 12px !important;
        margin-top: 8px !important;
        align-items: center !important;
    }

    .program-dashboard .back-link {
        min-height: 30px !important;
        padding: 0 12px !important;
        border-radius: 9px !important;
        font-size: 12.5px !important;
    }

    .program-dashboard .program-hero h1 {
        margin: 5px 0 3px !important;
        max-width: 820px !important;
        font-size: clamp(28px, 2.7vw, 38px) !important;
        line-height: 1.02 !important;
    }

    .program-dashboard .program-hero p {
        font-size: 12.5px !important;
        line-height: 1.2 !important;
    }

    .program-dashboard .program-quick-actions {
        margin-top: 9px !important;
        gap: 6px !important;
    }

    .program-dashboard .program-quick-actions .ghost-button,
    .program-dashboard .program-quick-actions .primary-button {
        min-height: 31px !important;
        padding: 0 10px !important;
        border-radius: 8px !important;
        font-size: 12px !important;
    }

    .program-dashboard .program-quick-actions .btn-icon {
        width: 17px !important;
        height: 17px !important;
        margin-right: 6px !important;
    }

    .program-dashboard .program-finance {
        min-height: 76px !important;
        padding: 10px 12px !important;
        border-radius: 10px !important;
    }

    .program-dashboard .program-finance span {
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    .program-dashboard .program-finance strong {
        font-size: 22px !important;
        line-height: 1 !important;
    }

    .program-dashboard .program-section {
        padding: 12px 14px !important;
        border-radius: 14px !important;
    }

    .program-dashboard .section-head {
        margin-bottom: 9px !important;
    }

    .program-dashboard .section-head h2 {
        font-size: 23px !important;
        line-height: 1 !important;
    }

    .program-dashboard .result-pill {
        min-height: 29px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
    }

    .program-dashboard .module-showcase {
        grid-template-columns: 270px minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    .program-dashboard .module-summary-card {
        min-height: 312px !important;
        padding: 16px !important;
        border-radius: 14px !important;
    }

    .program-dashboard .module-summary-card strong {
        font-size: 42px !important;
    }

    .program-dashboard .module-summary-card p {
        font-size: 12.5px !important;
    }

    .module-summary-art {
        width: 98px !important;
        height: 98px !important;
        right: -8px !important;
        top: 10px !important;
        border-radius: 28px !important;
    }

    .program-dashboard .module-card-grid {
        gap: 10px !important;
    }

    .program-dashboard .module-card-grid .module-row {
        min-height: 134px !important;
        padding: 14px 13px !important;
        border-radius: 14px !important;
    }

    .module-card-visual {
        width: 52px !important;
        height: 52px !important;
        border-radius: 13px !important;
    }

    .program-dashboard .module-card-grid .module-row h3 {
        margin-top: 4px !important;
        font-size: 16px !important;
        line-height: 1.05 !important;
    }

    .program-dashboard .module-card-grid .module-row p {
        margin-top: 4px !important;
        font-size: 12px !important;
    }

    .module-type-label {
        min-height: 22px !important;
        padding: 0 9px !important;
        font-size: 10px !important;
    }

    .module-card-footer {
        padding-top: 8px !important;
    }

    .program-dashboard .module-card-footer .status {
        min-height: 25px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
    }

    .program-dashboard .module-card-footer .module-action {
        min-height: 31px !important;
        padding: 0 15px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
    }
}

/* LMS module page density: reduce vertical space in the class list view. */
@media (min-width: 981px) {
    .module-content-page {
        width: min(1280px, calc(100% - 72px)) !important;
        padding: 10px 0 18px !important;
        gap: 10px !important;
    }

    .module-content-hero {
        padding: 12px 14px !important;
        border-radius: 14px !important;
    }

    .module-content-title {
        margin-top: 8px !important;
    }

    .module-content-title .eyebrow {
        font-size: 11px !important;
    }

    .module-content-title h1 {
        margin: 4px 0 3px !important;
        font-size: clamp(28px, 2.6vw, 38px) !important;
        line-height: 1.02 !important;
    }

    .module-content-title p {
        font-size: 12.5px !important;
        line-height: 1.2 !important;
    }

    .module-content-page .back-link {
        min-height: 30px !important;
        padding: 0 12px !important;
        border-radius: 9px !important;
        font-size: 12.5px !important;
    }

    .module-quick-actions {
        margin-top: 9px !important;
        gap: 6px !important;
    }

    .module-quick-actions .ghost-button {
        min-height: 31px !important;
        padding: 0 10px !important;
        border-radius: 8px !important;
        font-size: 12px !important;
    }

    .module-quick-actions .btn-icon {
        width: 17px !important;
        height: 17px !important;
        margin-right: 6px !important;
    }

    .module-content-section {
        padding: 12px 14px !important;
        border-radius: 14px !important;
    }

    .module-content-section .section-head {
        margin-bottom: 9px !important;
    }

    .module-content-section .section-head h2 {
        font-size: 24px !important;
        line-height: 1 !important;
    }

    .module-content-section .result-pill {
        min-height: 29px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
    }

    .module-learning-grid {
        grid-template-columns: minmax(0, 1fr) 330px !important;
        gap: 14px !important;
    }

    .class-list {
        gap: 7px !important;
    }

    .academy-lesson-card {
        min-height: 64px !important;
        grid-template-columns: 38px minmax(0, 1fr) auto !important;
        gap: 9px !important;
        padding: 8px 10px !important;
        border-radius: 12px !important;
    }

    .lesson-video-icon {
        width: 34px !important;
        height: 34px !important;
        border-radius: 10px !important;
    }

    .academy-lesson-card .content-type-pill {
        min-height: 19px !important;
        padding: 0 8px !important;
        font-size: 9px !important;
    }

    .academy-lesson-card .lesson-main h3 {
        margin-top: 3px !important;
        font-size: 13.5px !important;
        line-height: 1.12 !important;
    }

    .academy-lesson-card .lesson-main small {
        margin-top: 1px !important;
        font-size: 10.5px !important;
        line-height: 1.1 !important;
    }

    .lesson-state {
        gap: 6px !important;
    }

    .seen-pill {
        min-height: 24px !important;
        padding: 0 9px !important;
        font-size: 11px !important;
    }

    .academy-lesson-card .lesson-play-action {
        min-height: 32px !important;
        padding: 0 14px !important;
        border-radius: 8px !important;
        font-size: 12.5px !important;
    }

    .module-side-panel {
        top: 70px !important;
        gap: 7px !important;
    }

    .resources-accordion summary {
        min-height: 86px !important;
        padding: 14px 16px !important;
        gap: 12px !important;
        border-radius: 12px !important;
    }

    .resources-thumb {
        width: 54px !important;
        height: 54px !important;
        border-radius: 14px !important;
    }

    .resources-summary-copy strong {
        font-size: 20px !important;
        line-height: 1.02 !important;
    }

    .resources-summary-copy small {
        font-size: 12px !important;
        line-height: 1.15 !important;
    }

    .resources-count {
        width: 42px !important;
        height: 42px !important;
        font-size: 13px !important;
    }
}

/* LMS program cards: stronger separation and lower height on dashboard. */
@media (min-width: 981px) {
    .learner-program-list {
        gap: 10px !important;
    }

    .learner-program-card {
        grid-template-columns: 18px minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 10px 12px !important;
        border: 1px solid #b8cbe2 !important;
        border-left: 3px solid #3678bd !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 20px rgba(15, 42, 76, .045) !important;
    }

    .program-timeline {
        padding-top: 6px !important;
    }

    .program-timeline span {
        width: 10px !important;
        height: 10px !important;
        border-width: 2px !important;
        box-shadow: 0 0 0 3px #edf6ff !important;
    }

    .program-summary {
        gap: 7px !important;
    }

    .program-title-row {
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .program-title-row h3 {
        margin: 3px 0 2px !important;
        font-size: 16px !important;
        line-height: 1.08 !important;
    }

    .program-title-row p {
        display: inline !important;
        margin: 0 !important;
        font-size: 11px !important;
        line-height: 1.18 !important;
    }

    .program-title-row .program-start-date {
        display: inline-block !important;
        margin: 0 8px 0 0 !important;
        font-size: 11px !important;
    }

    .program-title-row .program-start-date + p::before {
        content: "· ";
        color: #8a98aa;
        font-weight: 900;
    }

    .course-type-pill {
        min-height: 19px !important;
        padding: 0 7px !important;
        font-size: 9px !important;
    }

    .program-title-row .status {
        min-height: 25px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
    }

    .learner-progress-line {
        gap: 4px !important;
    }

    .learner-progress-line > div:first-child {
        font-size: 11px !important;
        line-height: 1.1 !important;
    }

    .progress-track {
        height: 7px !important;
    }

    .program-data-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        border-color: #d6e4f3 !important;
        border-radius: 8px !important;
    }

    .program-data-row div {
        padding: 6px 9px !important;
    }

    .program-data-row small {
        font-size: 9px !important;
    }

    .program-data-row strong {
        margin-top: 1px !important;
        font-size: 11px !important;
    }

    .program-card-actions {
        grid-template-columns: minmax(170px, 1fr) repeat(3, minmax(112px, auto)) !important;
        gap: 6px !important;
    }

    .program-card-actions .program-action,
    .program-card-actions .ghost-button {
        min-height: 34px !important;
        padding: 0 10px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
    }
}

/* LMS live classes page: restore centered dashboard layout. */
@media (min-width: 981px) {
    .live-classes-page {
        width: min(1280px, calc(100% - 72px)) !important;
        max-width: 1280px !important;
        margin: 0 auto !important;
        padding: 10px 0 20px !important;
        gap: 10px !important;
    }

    .live-classes-page .dashboard-hero.compact {
        min-height: 118px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 14px !important;
        margin: 0 !important;
        padding: 16px 18px !important;
        border: 1px solid #c9dcf1 !important;
        border-radius: 14px !important;
        background: #fff !important;
    }

    .live-classes-page .dashboard-hero.compact h1 {
        margin: 4px 0 5px !important;
        font-size: 30px !important;
        line-height: 1 !important;
    }

    .live-classes-page .dashboard-hero.compact p {
        max-width: 760px !important;
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    .live-classes-page .learner-panel {
        padding: 14px !important;
        border: 1px solid #c9dcf1 !important;
        border-radius: 14px !important;
    }

    .live-classes-page .learner-section-head {
        margin-bottom: 10px !important;
    }

    .live-classes-page .learner-section-head h2 {
        font-size: 24px !important;
        line-height: 1 !important;
    }

    .live-full-list {
        gap: 8px !important;
    }

    .live-full-item {
        grid-template-columns: 42px minmax(0, 1fr) auto !important;
        gap: 10px !important;
        padding: 10px 12px !important;
        border-color: #c7daf0 !important;
        border-radius: 12px !important;
    }

    .live-full-copy strong {
        font-size: 14px !important;
        line-height: 1.15 !important;
    }

    .live-full-copy small {
        font-size: 11px !important;
        line-height: 1.15 !important;
    }

    .live-classes-page .dashboard-hero.compact {
        min-height: 94px !important;
        padding: 12px 16px !important;
    }

    .live-classes-page .dashboard-hero.compact h1 {
        font-size: 27px !important;
    }

    .live-classes-page .learner-panel {
        padding: 12px !important;
    }

    .live-program-group .live-full-item {
        min-height: 58px !important;
        padding: 8px 10px !important;
    }

    .live-session-state {
        min-height: 18px !important;
        margin-top: 2px !important;
        padding: 0 7px !important;
        font-size: 10px !important;
    }
}

/* LMS support page: compact minimal layout. */
@media (min-width: 981px) {
    .support-page {
        width: min(1280px, calc(100% - 72px)) !important;
        max-width: 1280px !important;
        margin: 0 auto !important;
        padding: 10px 0 22px !important;
        gap: 10px !important;
    }

    .support-page-hero {
        min-height: 104px !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
        padding: 14px 16px !important;
        border-radius: 14px !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    .support-steps {
        display: none !important;
    }

    .support-back-link {
        min-height: 30px !important;
        padding: 0 11px !important;
        border-radius: 9px !important;
        font-size: 12px !important;
    }

    .support-page-hero .eyebrow {
        display: inline-block !important;
        margin-top: 7px !important;
        font-size: 11px !important;
    }

    .support-page-hero h1 {
        margin: 4px 0 4px !important;
        font-size: 30px !important;
        line-height: 1 !important;
    }

    .support-page-hero p {
        max-width: 760px !important;
        font-size: 13px !important;
        line-height: 1.32 !important;
    }

    .support-create-panel {
        margin-bottom: 10px !important;
    }

    .support-create-panel .support-new-ticket > summary {
        min-height: 42px !important;
        padding: 0 14px !important;
        border-radius: 12px !important;
        font-size: 15px !important;
    }

    .support-create-panel .support-new-ticket > summary small {
        font-size: 11px !important;
    }

    .support-create-form {
        padding: 12px !important;
        gap: 10px !important;
    }

    .support-workspace {
        grid-template-columns: 360px minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    .support-list-panel,
    .support-detail-panel {
        border-radius: 14px !important;
        box-shadow: none !important;
    }

    .support-list-title,
    .support-detail-head {
        padding: 12px 14px !important;
        align-items: center !important;
    }

    .support-list-title h2,
    .support-detail-head h2 {
        margin-top: 2px !important;
        font-size: 20px !important;
        line-height: 1.05 !important;
    }

    .support-detail-head p {
        margin-top: 3px !important;
        font-size: 11px !important;
    }

    .support-search {
        margin: 10px 12px !important;
        border-radius: 10px !important;
        padding: 0 10px !important;
    }

    .support-search input {
        min-height: 36px !important;
        font-size: 12px !important;
    }

    .support-ticket-list-crud {
        max-height: 430px !important;
        padding: 0 12px 12px !important;
    }

    .support-ticket-row {
        grid-template-columns: 28px minmax(0, 1fr) auto !important;
        gap: 8px !important;
        padding: 9px !important;
        border-radius: 10px !important;
    }

    .support-ticket-row + .support-ticket-row {
        margin-top: 7px !important;
    }

    .support-row-icon {
        width: 28px !important;
        height: 28px !important;
        border-radius: 9px !important;
    }

    .support-row-icon::before {
        width: 13px !important;
        height: 10px !important;
        left: 7px !important;
        top: 7px !important;
    }

    .support-row-icon::after {
        width: 5px !important;
        height: 5px !important;
        left: 11px !important;
        top: 17px !important;
    }

    .support-ticket-row strong {
        font-size: 12.5px !important;
        line-height: 1.15 !important;
    }

    .support-ticket-row small {
        margin-top: 1px !important;
        font-size: 10.5px !important;
        line-height: 1.15 !important;
    }

    .support-ticket-row .support-flow-status {
        min-height: 18px !important;
        margin-top: 4px !important;
        padding: 0 7px !important;
        font-size: 9.5px !important;
    }

    .support-ticket-row em.status {
        min-height: 23px !important;
        padding: 0 8px !important;
        font-size: 10.5px !important;
    }

    .support-thread-page {
        padding: 12px !important;
    }

    .support-thread-page .support-message {
        padding: 10px !important;
        border-radius: 10px !important;
    }

    .support-thread-page .support-message + .support-message {
        margin-top: 8px !important;
    }

    .support-reply-page {
        margin: 0 12px 12px !important;
        padding: 12px !important;
        border-radius: 10px !important;
    }

    .support-reply-page textarea {
        min-height: 82px !important;
    }

    .support-empty {
        min-height: 180px !important;
        margin: 12px !important;
        border-radius: 12px !important;
    }
}

/* Final override: mobile LMS navigation contrast and colorful icons. */
@media (max-width: 900px) {
    .mobile-tabbar,
    .program-fixed-tabbar.is-visible,
    body:has(main.program-dashboard) .mobile-tabbar,
    body:has(main.module-content-page) .mobile-tabbar {
        border: 2px solid rgba(37, 99, 235, .28) !important;
        border-radius: 20px !important;
        background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%) !important;
        box-shadow: 0 18px 44px rgba(15, 23, 42, .2), 0 0 0 4px rgba(59, 130, 246, .08) !important;
    }

    .mobile-tabbar a,
    .program-fixed-tabbar.is-visible a,
    body:has(main.program-dashboard) .mobile-tabbar a,
    body:has(main.module-content-page) .mobile-tabbar a {
        border: 1px solid transparent !important;
        border-radius: 14px !important;
        color: #12345f !important;
    }

    .mobile-tabbar a:first-child,
    .program-fixed-tabbar.is-visible a:first-child {
        border-color: rgba(37, 99, 235, .18) !important;
        background: #dbeafe !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7) !important;
    }

    .mobile-tabbar .nav-mini,
    .program-fixed-tabbar.is-visible .nav-mini {
        width: 23px !important;
        height: 23px !important;
        margin: 0 !important;
        border-radius: 9px !important;
        color: #fff !important;
        box-shadow: 0 8px 16px rgba(15, 23, 42, .15), inset 0 0 0 1px rgba(255, 255, 255, .35) !important;
    }

    .mobile-tabbar .nav-programs,
    .program-fixed-tabbar.is-visible .nav-programs {
        background: linear-gradient(135deg, #2563eb, #38bdf8) !important;
    }

    .mobile-tabbar .nav-payments,
    .program-fixed-tabbar.is-visible .nav-payments {
        background: linear-gradient(135deg, #0f766e, #22c55e) !important;
    }

    .mobile-tabbar .nav-certificates,
    .program-fixed-tabbar.is-visible .nav-certificates {
        background: linear-gradient(135deg, #7c3aed, #f59e0b) !important;
    }

    .mobile-tabbar .nav-support,
    .program-fixed-tabbar.is-visible .nav-support {
        background: linear-gradient(135deg, #0284c7, #64748b) !important;
    }

    .mobile-tabbar .nav-live,
    .program-fixed-tabbar.is-visible .nav-live,
    .mobile-tabbar .live-tab-link .nav-mini,
    .program-fixed-tabbar .live-tab-link .nav-mini {
        background: linear-gradient(135deg, #0ea5e9, #2563eb 58%, #22c55e) !important;
    }
}

.lms-pwa-install {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(19, 104, 67, .24);
    border-radius: 999px;
    background: linear-gradient(135deg, #e7fff1, #e0f2fe);
    color: #136843;
    cursor: pointer;
    padding: 0 9px 0 6px;
    font-size: 11.2px;
    font-weight: 950;
    white-space: nowrap;
}

.lms-pwa-install .nav-mini {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    border-radius: 8px !important;
}

.lms-pwa-install[hidden],
.lms-pwa-install-float[hidden] {
    display: none !important;
}

.lms-pwa-install.is-visible {
    display: inline-flex;
}

.lms-pwa-install-float {
    position: fixed;
    right: 18px;
    bottom: 96px;
    z-index: 92;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 999px;
    background: linear-gradient(135deg, #16a34a, #2563eb);
    color: #fff;
    box-shadow: 0 16px 34px rgba(37,99,235,.28);
    padding: 0;
    font-size: 12px;
    font-weight: 950;
}

.lms-pwa-install-float b {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

.lms-pwa-install-float.is-visible {
    display: none;
}

.lms-pwa-install-float span {
    width: 26px;
    height: 26px;
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #136843;
}

.lms-pwa-install-float span::before {
    content: "";
    width: 10px;
    height: 10px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg) translate(2px,-2px);
}

.lms-pwa-install-float span::after {
    content: "";
    position: absolute;
    bottom: 7px;
    width: 12px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.pwa-install-tip {
    position: fixed;
    right: 16px;
    bottom: 154px;
    z-index: 1600;
    width: min(330px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: #fff;
    color: #13223a;
    box-shadow: 0 22px 54px rgba(15,23,42,.24);
}

.pwa-install-tip strong {
    display: block;
    font-size: .98rem;
    font-weight: 950;
}

.pwa-install-tip p {
    margin: 7px 0 12px;
    color: #475569;
    line-height: 1.35;
}

.pwa-install-tip button {
    min-height: 34px;
    border: 0;
    border-radius: 10px;
    background: #136843;
    color: #fff;
    padding: 0 12px;
    font-weight: 900;
}

@media (max-width: 900px) {
    .student-topbar .lms-pwa-install {
        display: none !important;
    }

    .lms-pwa-install-float.is-visible {
        display: inline-flex;
        right: 132px;
        bottom: 92px;
    }

    .pwa-install-tip {
        right: 12px;
        bottom: 150px;
    }

    .mobile-tabbar a small,
    .program-fixed-tabbar.is-visible a small {
        display: block !important;
        width: 100% !important;
        max-width: 56px !important;
        margin: 0 auto !important;
        text-align: center !important;
        line-height: 1.05 !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
    }

    .mobile-tabbar a:first-child small,
    .program-fixed-tabbar.is-visible a:first-child small {
        max-width: 54px !important;
        font-size: 10.5px !important;
        transform: translateX(1px);
    }

    .mobile-tabbar a,
    .program-fixed-tabbar.is-visible a {
        justify-items: center !important;
        text-align: center !important;
    }

    .mobile-tabbar .nav-mini,
    .program-fixed-tabbar.is-visible .nav-mini {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
.lms-affiliation-page {
    max-width: 1120px;
}

.lms-affiliation-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.lms-affiliation-hero h1 {
    margin: 0 0 6px;
    color: #07152f;
    font-size: 30px;
}

.lms-affiliation-hero p,
.lms-affiliation-summary p {
    margin: 0;
    color: #465b77;
}

.lms-affiliation-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .8fr);
    gap: 14px;
    margin-bottom: 14px;
}

.lms-affiliation-card,
.lms-affiliation-summary,
.lms-affiliation-section {
    padding: 16px;
}

.lms-affiliation-request {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
    margin-bottom: 14px;
}

.lms-affiliation-request h2 {
    margin: 8px 0 6px;
    color: #07152f;
    font-size: 22px;
}

.lms-affiliation-request p {
    margin: 0;
    color: #465b77;
    line-height: 1.45;
}

.lms-affiliation-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.lms-affiliation-card-head h2,
.lms-affiliation-summary h2,
.lms-affiliation-section h2 {
    margin: 0;
    color: #07152f;
}

.lms-affiliation-card-head p {
    margin: 4px 0 0;
    color: #53657d;
    font-weight: 800;
}

.lms-affiliation-status {
    border: 1px solid #d7e3f2;
    border-radius: 999px;
    padding: 6px 11px;
    background: #f1f6fc;
    color: #31506f;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.lms-affiliation-status.active {
    border-color: #a8efc4;
    background: #eafff2;
    color: #05733f;
}

.lms-affiliation-status.due {
    border-color: #f7d589;
    background: #fff7df;
    color: #9a5b00;
}

.lms-affiliation-status.expired {
    border-color: #fecdca;
    background: #fff1f0;
    color: #b42318;
}

.lms-affiliation-code {
    border: 1px dashed #7cc8a2;
    border-radius: 12px;
    background: #f7fff9;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.lms-affiliation-code span,
.lms-affiliation-facts span,
.lms-affiliation-items span {
    display: block;
    color: #5d6b82;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.lms-affiliation-code strong {
    display: block;
    color: #075f3e;
    font-size: 26px;
    letter-spacing: .04em;
}

.lms-affiliation-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.lms-affiliation-facts div {
    border: 1px solid #d7e3f2;
    border-radius: 10px;
    padding: 9px 10px;
    background: #fff;
}

.lms-affiliation-facts strong {
    color: #07152f;
    font-size: 15px;
    word-break: break-word;
}

.lms-affiliation-download {
    width: 100%;
    justify-content: center;
}

.lms-affiliation-summary small {
    display: block;
    margin-top: 12px;
    color: #53657d;
    font-weight: 850;
}

.lms-affiliation-section {
    margin-bottom: 14px;
}

.lms-affiliation-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.lms-affiliation-items article,
.lms-affiliation-activities article {
    border: 1px solid #d7e3f2;
    border-radius: 11px;
    background: #fff;
    padding: 10px 12px;
}

.lms-affiliation-items strong {
    display: block;
    margin-top: 3px;
    color: #07152f;
}

.lms-affiliation-items p {
    margin: 5px 0 0;
    color: #53657d;
    font-size: 13px;
}

.lms-affiliation-activities {
    display: grid;
    gap: 8px;
}

.lms-affiliation-activities article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.lms-affiliation-activities strong {
    color: #07152f;
}

.lms-affiliation-activities small,
.lms-affiliation-activities span {
    color: #53657d;
    font-size: 12px;
    font-weight: 800;
}

.affiliation-status-card {
    display: grid;
    gap: 6px;
    padding: 10px 12px !important;
}

.affiliation-status-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
}

.affiliation-status-head h2 {
    margin: 1px 0 0;
    color: #07152f;
    font-size: 15px;
    line-height: 1;
}

.affiliation-status-card p {
    margin: 0;
    color: #53657d;
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.2;
}

.affiliation-status-data {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 7px;
    padding: 6px 8px;
    border: 1px solid #d7e3f2;
    border-radius: 8px;
    background: #f8fbff;
}

.affiliation-status-data span {
    color: #64748b;
    font-size: 9.5px;
    font-weight: 900;
    text-transform: uppercase;
}

.affiliation-status-data strong {
    color: #07152f;
    font-size: 11px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.affiliation-status-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}

.affiliation-status-actions .affiliation-status-action,
.affiliation-status-actions .affiliation-status-link {
    justify-content: center;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 9px;
    font-size: 11.5px;
}

@media (max-width: 860px) {
    .lms-affiliation-hero,
    .lms-affiliation-card-head,
    .lms-affiliation-request {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .lms-affiliation-grid,
    .lms-affiliation-items,
    .lms-affiliation-facts {
        grid-template-columns: 1fr;
    }

    .lms-affiliation-activities article {
        grid-template-columns: 1fr;
    }
}

/* Final dashboard compaction override. Must stay at the end of the stylesheet. */
@media (min-width: 981px) {
    .learner-dashboard {
        padding-top: 6px !important;
        gap: 6px !important;
    }

    .learner-dashboard .learner-hero {
        display: block !important;
        margin: 0 !important;
    }

    .learner-dashboard .learner-profile-card {
        display: none !important;
    }

    .learner-dashboard .learner-hero-copy {
        min-height: 0 !important;
        padding: 8px 14px !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 20px rgba(15, 23, 42, .05) !important;
    }

    .learner-dashboard .learner-hero-copy::after {
        display: none !important;
    }

    .learner-dashboard .learner-hero-copy .eyebrow {
        font-size: 10px !important;
        line-height: 1 !important;
    }

    .learner-dashboard .learner-hero-copy h1 {
        margin: 2px 0 !important;
        font-size: 22px !important;
        line-height: 1.05 !important;
    }

    .learner-dashboard .learner-hero-copy p {
        max-width: none !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    .learner-dashboard .learner-hero-actions {
        margin-top: 5px !important;
        gap: 5px !important;
    }

    .learner-dashboard .learner-hero-actions .ghost-button {
        min-height: 25px !important;
        padding: 0 8px !important;
        border-radius: 8px !important;
        font-size: 11px !important;
    }

    .learner-dashboard .learner-kpis {
        gap: 6px !important;
    }

    .learner-dashboard .learner-kpis article {
        min-height: 40px !important;
        grid-template-columns: 23px minmax(0, 1fr) !important;
        gap: 6px !important;
        padding: 5px 8px !important;
        border-radius: 10px !important;
    }

    .learner-dashboard .learner-kpis small {
        font-size: 8.5px !important;
        line-height: 1 !important;
    }

    .learner-dashboard .learner-kpis strong {
        margin-top: 0 !important;
        font-size: 17px !important;
        line-height: 1 !important;
    }

    .learner-dashboard .mini-icon {
        width: 23px !important;
        height: 23px !important;
        flex-basis: 23px !important;
        border-radius: 7px !important;
    }

    .learner-dashboard .learner-grid {
        margin-top: 2px !important;
        gap: 10px !important;
    }

    .learner-dashboard .learner-panel {
        padding: 12px !important;
    }
}

/* LMS 1366 safety pass: keep floating widgets and PWA prompt from covering the dashboard. */
.lms-page .pwa-install-prompt {
    position: fixed !important;
    left: auto !important;
    right: 92px !important;
    bottom: 18px !important;
    z-index: 86 !important;
    width: min(330px, calc(100vw - 132px)) !important;
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
    padding: 11px 40px 11px 11px !important;
    border: 1px solid #cfe0f2 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: #13223a !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .18) !important;
    opacity: 0 !important;
    transform: translateY(10px) !important;
    pointer-events: none !important;
    transition: opacity .18s ease, transform .18s ease !important;
}

.lms-page .pwa-install-prompt[hidden] {
    display: none !important;
}

.lms-page .pwa-install-prompt.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.lms-page .pwa-install-prompt-icon {
    width: 36px !important;
    height: 36px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #0f766e, #2563eb) !important;
    color: #ffffff !important;
}

.lms-page .pwa-install-prompt-icon svg {
    width: 20px !important;
    height: 20px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.4 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.lms-page .pwa-install-prompt-copy {
    min-width: 0 !important;
    padding-right: 0 !important;
}

.lms-page .pwa-install-prompt strong {
    display: block !important;
    color: #07152f !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    line-height: 1.15 !important;
}

.lms-page .pwa-install-prompt p {
    margin: 4px 0 8px !important;
    color: #50617a !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
}

.lms-page .pwa-install-prompt-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.lms-page .pwa-install-prompt button {
    min-height: 28px !important;
    border: 0 !important;
    border-radius: 8px !important;
    padding: 0 10px !important;
    font-size: 11.5px !important;
    font-weight: 950 !important;
    cursor: pointer !important;
}

.lms-page .pwa-install-primary {
    background: #13223a !important;
    color: #ffffff !important;
}

.lms-page .pwa-install-secondary {
    background: #eef4fb !important;
    color: #13223a !important;
}

.lms-page .pwa-install-close {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    border-radius: 999px !important;
    background: #eef4fb !important;
    color: #13223a !important;
    font-size: 15px !important;
    line-height: 1 !important;
}

.lms-page .lms-ai-chat,
.lms-page .sales-ai-chat,
.lms-page .lms-whatsapp-float,
.lms-page .lms-live-alert {
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 24px) !important;
}

.lms-page .lms-ai-panel,
.lms-page .sales-ai-panel {
    width: min(360px, calc(100vw - 32px)) !important;
    height: min(520px, calc(100vh - 110px)) !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 110px) !important;
    background: #ffffff !important;
}

.lms-page .lms-ai-panel[hidden] {
    display: none !important;
}

@media (min-width: 981px) and (max-width: 1400px) {
    .student-topbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 120 !important;
    }

    .learner-dashboard {
        width: min(1280px, calc(100% - 18px)) !important;
        padding-top: 8px !important;
    }

    .learner-dashboard .learner-grid {
        grid-template-columns: minmax(0, 1fr) 300px !important;
    }

    .learner-dashboard .side-card,
    .learner-dashboard .learner-panel {
        max-width: 100% !important;
    }
}

@media (max-width: 900px) {
    .lms-page .pwa-install-prompt {
        left: 72px !important;
        right: 72px !important;
        bottom: 12px !important;
        width: auto !important;
        min-width: 0 !important;
        grid-template-columns: minmax(0, 1fr) !important;
        padding: 9px 32px 9px 10px !important;
        border-radius: 12px !important;
    }

    .lms-page .pwa-install-prompt-icon,
    .lms-page .pwa-install-prompt p {
        display: none !important;
    }

    .lms-page .pwa-install-prompt strong {
        font-size: 12px !important;
    }

    .lms-page .pwa-install-prompt button {
        min-height: 26px !important;
        font-size: 11px !important;
    }
}

/* Clear vector symbols for the two primary header shortcuts. */
.lms-page .student-topbar .brand-more-courses .nav-more-courses,.lms-page .student-topbar .nav-support,.lms-page .student-topbar .nav-logout{display:inline-block!important;width:21px!important;height:21px!important;flex:0 0 21px!important;min-width:21px!important;position:relative!important;background:none!important;border:0!important;border-radius:0!important;color:inherit!important;box-shadow:none!important;transform:none!important;margin:0 8px 0 0!important}
.lms-page .student-topbar .brand-more-courses .nav-more-courses::after,.lms-page .student-topbar .nav-support::after,.lms-page .student-topbar .nav-logout::after{display:none!important;content:none!important}
.lms-page .student-topbar .brand-more-courses .nav-more-courses::before,.lms-page .student-topbar .nav-support::before,.lms-page .student-topbar .nav-logout::before{content:""!important;display:block!important;position:absolute!important;inset:0!important;width:21px!important;height:21px!important;background:currentColor!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important;-webkit-mask:var(--nav-vector) center/contain no-repeat!important;mask:var(--nav-vector) center/contain no-repeat!important}
.lms-page .student-topbar .brand-more-courses .nav-more-courses{--nav-vector:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22m16%208-2.5%205.5L8%2016l2.5-5.5L16%208Z%22%2F%3E%3C%2Fsvg%3E")}
.lms-page .student-topbar .nav-support{--nav-vector:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2014v-3a8%208%200%200%201%2016%200v6c0%203-2%204-5%204h-2%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2211%22%20width%3D%224%22%20height%3D%227%22%20rx%3D%222%22%2F%3E%3Crect%20x%3D%2217%22%20y%3D%2211%22%20width%3D%224%22%20height%3D%227%22%20rx%3D%222%22%2F%3E%3C%2Fsvg%3E")}
.lms-page .student-topbar .nav-logout{--nav-vector:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M10%204H4v16h6M9%2012h12m-4-4%204%204-4%204%22%2F%3E%3C%2Fsvg%3E")}

/* Module toolbar: meaningful symbols, matching the program actions. */
.lms-page .module-content-page .module-quick-actions .btn-icon{width:22px!important;height:22px!important;flex:0 0 22px!important;position:relative!important;background:none!important;border:0!important;border-radius:0!important;color:#246ca4!important;box-shadow:none!important;transform:none!important}
.lms-page .module-content-page .module-quick-actions .btn-icon::after{display:none!important;content:none!important}
.lms-page .module-content-page .module-quick-actions .btn-icon::before{content:""!important;display:block!important;position:absolute!important;inset:0!important;width:22px!important;height:22px!important;background:currentColor!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important;-webkit-mask:var(--module-action-vector) center/contain no-repeat!important;mask:var(--module-action-vector) center/contain no-repeat!important}
.lms-page .module-content-page .module-quick-actions .btn-icon.btn-icon-help{--module-action-vector:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%2011a8%208%200%200%201-8%208H8l-5%203%201-6a8%208%200%201%201%2017-5Z%22%2F%3E%3Cpath%20d%3D%22M8%2010h8m-8%204h5%22%2F%3E%3C%2Fsvg%3E")}
.lms-page .module-content-page .module-quick-actions .btn-icon.btn-icon-announcements{--module-action-vector:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2010v5h4l10%204V5L8%2010H4Zm4%205%202%206H7l-2-6M18%209c3%200%203%206%200%206%22%2F%3E%3C%2Fsvg%3E")}
.lms-page .module-content-page .module-quick-actions .btn-icon.btn-icon-events{--module-action-vector:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%203v4m10-4v4M3%2010h18m-13%205h2m4%200h2m-8%203h2%22%2F%3E%3C%2Fsvg%3E")}
.lms-page .module-content-page .module-quick-actions .btn-icon.btn-icon-certificate{--module-action-vector:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%2019H3V4h18v8M7%208h10M7%2012h4%22%2F%3E%3Ccircle%20cx%3D%2217%22%20cy%3D%2216%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22m15%2019-1%204%203-1%203%201-1-4%22%2F%3E%3C%2Fsvg%3E")}
.lms-page .student-topbar .top-nav .lms-topnav-icon{display:block!important;width:20px!important;height:20px!important;min-width:20px!important;flex:0 0 20px!important;fill:none!important;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:#246ca4;overflow:visible;transform:none!important}
.lms-page .student-topbar .top-nav a:has(.lms-topnav-icon){gap:6px}
