:root {
    --brand: #155eef;
    --brand-dark: #17315f;
    --accent: #0f766e;
    --warning: #f59e0b;
    --ink: #172033;
    --muted: #687385;
    --line: #d8e1ee;
    --surface: #ffffff;
    --soft: #f3f6fb;
    --sidebar: #13233a;
    --sidebar-soft: rgba(255, 255, 255, .09);
    --info-soft: #e0f2fe;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, #eef5ff 0, #f6f8fc 260px, #f4f7fb 100%),
        #f4f7fb;
    color: var(--ink);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand);
}

a:hover {
    color: var(--brand-dark);
}

.layout-frame {
    min-height: 100vh;
    display: flex;
}

.app-sidebar {
    width: 280px;
    min-height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    background:
        linear-gradient(180deg, rgba(29, 78, 216, .28), rgba(15, 118, 110, .1) 310px, transparent 620px),
        var(--sidebar);
    color: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 18px 0 40px rgba(15, 23, 42, .22);
}

.sidebar-brand {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: #fff;
    text-decoration: none;
}

.brand-lockup:hover {
    color: #fff;
    text-decoration: none;
}

.brand-lockup small {
    display: block;
    color: rgba(255, 255, 255, .65);
    font-size: .78rem;
    margin-top: 1px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff, #dbeafe);
    color: var(--brand-dark);
    font-weight: 800;
    font-size: .95rem;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .16);
}

.sidebar-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
}

.sidebar-nav {
    padding: 6px 14px 18px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.sidebar-section {
    color: rgba(255, 255, 255, .52);
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .08em;
    font-weight: 800;
    padding: 18px 20px 8px;
}

.sidebar-nav .sidebar-section {
    padding-left: 6px;
}

.sidebar-link {
    color: rgba(255, 255, 255, .8);
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 46px;
    padding: .62rem .76rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 5px;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;
    text-decoration: none;
    background: var(--sidebar-soft);
}

.sidebar-link.active {
    background: rgba(255, 255, 255, .13);
    box-shadow: inset 3px 0 0 #67e8f9;
}

.sidebar-link:hover {
    transform: translateX(2px);
}

.nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #dbeafe;
    background: rgba(255, 255, 255, .1);
    font-weight: 800;
    font-size: .82rem;
}

.sidebar-link.active .nav-icon {
    color: #0f172a;
    background: #bfdbfe;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.user-panel {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    margin-bottom: .8rem;
}

.user-panel strong,
.user-panel small {
    display: block;
}

.user-panel strong {
    font-size: .9rem;
    max-width: 168px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-panel small {
    color: rgba(255, 255, 255, .65);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #e0f2fe;
    color: #075985;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.btn-sidebar {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
}

.btn-sidebar:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.sidebar-backdrop {
    display: none;
}

.main-panel {
    width: 100%;
    min-height: 100vh;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
}

.topbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 14px 30px;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(148, 163, 184, .26);
    position: sticky;
    top: 0;
    z-index: 1020;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.topbar-eyebrow {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.topbar-title {
    color: var(--ink);
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.25;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex: 0 0 auto;
}

.topbar-shortcut {
    align-items: center;
    min-height: 38px;
    padding: .45rem .85rem;
    color: var(--brand-dark);
    background: var(--info-soft);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.topbar-shortcut:hover {
    color: #0f172a;
    text-decoration: none;
    background: #dbeafe;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--muted);
    font-size: .9rem;
    min-height: 46px;
    padding: .38rem .55rem .38rem .42rem;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.topbar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    font-weight: 800;
    flex: 0 0 auto;
}

.topbar-user-meta {
    display: block;
    min-width: 0;
}

.topbar-user-meta span,
.topbar-user-meta strong {
    display: block;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-user strong {
    color: var(--brand-dark);
    font-size: .76rem;
    line-height: 1.2;
}

.menu-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
}

.app-shell {
    flex: 1 0 auto;
    padding: 30px;
}

.app-content {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.app-footer {
    color: var(--muted);
    font-size: .85rem;
    padding: 16px 28px 22px;
    text-align: right;
}

.page-heading {
    margin-bottom: 1.35rem;
    padding: 2px 2px 0;
}

.page-title {
    font-size: clamp(1.55rem, 2.2vw, 2.2rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: .38rem;
    letter-spacing: 0;
}

.page-subtitle {
    color: var(--muted);
    max-width: 780px;
    margin-bottom: 0;
}

.card {
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
    background: rgba(255, 255, 255, .98);
}

.card-header {
    background: linear-gradient(180deg, #fff, #fbfdff);
    border-bottom: 1px solid var(--line);
    font-weight: 800;
    color: #1f2a44;
    padding: .9rem 1rem;
}

.card-footer {
    background: #fbfdff;
    border-top: 1px solid var(--line);
}

.app-grid {
    margin-left: -8px;
    margin-right: -8px;
}

.app-grid > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 16px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 126px;
    border-top: 3px solid rgba(29, 78, 216, .72);
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -24px;
    top: -24px;
    width: 84px;
    height: 84px;
    border-radius: 8px;
    background: rgba(37, 99, 235, .08);
    transform: rotate(16deg);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin: .15rem 0 0;
}

.required::after {
    content: " *";
    color: #dc3545;
}

.form-section {
    border-left: 4px solid var(--brand);
}

label {
    font-weight: 700;
    color: #2b3445;
}

.form-control,
.custom-select {
    border-color: #ccd6e3;
    border-radius: 6px;
    min-height: 44px;
    background-color: #fff;
}

.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .14);
}

.captcha-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .7rem .75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.captcha-question {
    color: var(--brand-dark);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0;
}

.btn {
    border-radius: 6px;
    font-weight: 800;
    min-height: 40px;
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
}

.btn-primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.badge {
    border-radius: 999px;
    padding: .38rem .6rem;
}

.table {
    color: #253044;
    margin-bottom: 0;
}

.table thead th {
    border-top: 0;
    background: #f6f9fd;
    color: #526071;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
    border-color: #edf2f7;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #ccd6e3;
    border-radius: 6px;
    min-height: 38px;
}

.dataTables_wrapper .page-link {
    color: var(--brand);
    border-color: #d8e1ee;
}

.dataTables_wrapper .page-item.active .page-link {
    background: var(--brand);
    border-color: var(--brand);
}

.table-clean tbody tr:hover {
    background: #f8fbff;
}

.table-fixed-min {
    min-width: 900px;
}

.audit-event {
    font-weight: 800;
    color: #1f2a44;
}

.audit-meta {
    color: var(--muted);
    font-size: .86rem;
}

.empty-state {
    padding: 34px 18px;
    text-align: center;
    color: var(--muted);
}

.course-thumb {
    width: 118px;
    height: 74px;
    object-fit: cover;
    border-radius: 6px;
    background: linear-gradient(135deg, #dbeafe, #ccfbf1);
    flex: 0 0 auto;
}

.course-card-row {
    align-items: center;
}

.course-meta {
    color: var(--muted);
    font-size: .88rem;
}

.auth-wrap {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
}

.auth-panel {
    background: linear-gradient(135deg, #173b7a, #0f766e);
    color: #fff;
    border-radius: 8px 0 0 8px;
    min-height: 100%;
}

.auth-card {
    overflow: hidden;
}

.auth-card .card {
    box-shadow: none;
    border: 0;
}

.content-sidebar {
    max-height: 72vh;
    overflow-y: auto;
}

.lesson-pane {
    min-height: 430px;
}

.lesson-link {
    text-align: left;
    display: flex;
    align-items: center;
    gap: .65rem;
}

.lesson-link.active {
    color: #0f172a;
    background: #e0f2fe;
    border-color: #bfdbfe;
    font-weight: 800;
}

.lesson-link.lesson-completed .lesson-name {
    color: #516171;
}

.lesson-status {
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: .18rem .42rem;
    background: #eef2f7;
    color: #526071;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.lesson-completed .lesson-status {
    background: #dcfce7;
    color: #166534;
}

.learning-card {
    height: 100%;
}

.learning-card .progress {
    height: .7rem;
}

.player-content {
    background: #fbfdff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    min-height: 230px;
}

.certificate-box {
    border: 6px double var(--brand);
    background: #fff;
    border-radius: 8px;
}

.small-muted {
    color: var(--muted);
    font-size: .875rem;
}

.guide-step {
    display: flex;
    gap: .75rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
}

.guide-step:last-child {
    border-bottom: 0;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #075985;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex: 0 0 auto;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
        transition: transform .22s ease;
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1030;
        background: rgba(15, 23, 42, .48);
    }

    .main-panel {
        margin-left: 0;
    }

    .topbar,
    .app-shell {
        padding-left: 18px;
        padding-right: 18px;
    }

    .topbar {
        min-height: 74px;
    }

    .topbar-user-meta span,
    .topbar-user-meta strong {
        max-width: 150px;
    }
}

@media (max-width: 767.98px) {
    .app-shell {
        padding: 18px 12px 30px;
    }

    .topbar {
        min-height: 68px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .topbar-title {
        font-size: 1rem;
    }

    .topbar-eyebrow {
        font-size: .68rem;
    }

    .topbar-user {
        padding: .32rem;
    }

    .topbar-user-meta {
        display: none;
    }

    .topbar-avatar {
        width: 32px;
        height: 32px;
    }

    .page-title {
        font-size: 1.45rem;
    }

    .card-header {
        padding: .82rem .9rem;
    }

    .course-card-row {
        align-items: flex-start;
    }

    .course-thumb {
        width: 88px;
        height: 64px;
    }

    .auth-panel {
        border-radius: 8px 8px 0 0;
    }

    .content-sidebar {
        max-height: none;
        margin-bottom: 1rem;
    }

    .app-footer {
        text-align: center;
    }
}

/* Management analytics and audit workspace */
.management-chart-grid, .audit-chart-grid, .audit-stat-grid { margin-left: -8px; margin-right: -8px; }
.management-chart-grid > div, .audit-chart-grid > div, .audit-stat-grid > div { padding-left: 8px; padding-right: 8px; }
.management-chart-panel > header .workspace-eyebrow { margin-bottom: .3rem; font-size: .6rem; }
.management-chart-container { height: 285px; position: relative; padding: 18px 20px 12px; }
.management-chart-container.doughnut { height: 220px; max-width: 250px; margin: 0 auto; padding-bottom: 4px; }
.chart-text-legend { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 14px; padding: 2px 20px 20px; }
.chart-text-legend span { display: flex; align-items: center; gap: .4rem; min-width: 0; color: var(--muted); font-size: .66rem; }
.chart-text-legend span strong { margin-left: auto; color: var(--ink); }
.legend-color { width: 8px; height: 8px; display: inline-block; flex: 0 0 auto; border-radius: 2px; background: #155eef; }
.legend-1 { background: #087f73; }
.legend-2 { background: #d6a323; }
.legend-3 { background: #e85d4a; }
.legend-4 { background: #844f77; }
.legend-5 { background: #5f6b7c; }

.audit-page-heading { margin-bottom: 18px; }
.audit-scope { display: inline-flex; align-items: center; gap: .45rem; padding: .48rem .7rem; color: #17633a; border: 1px solid #bee0ca; border-radius: 6px; background: #eff9f2; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.audit-stat-card { min-height: 100px; display: flex; align-items: center; gap: .75rem; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 5px 18px rgba(23,35,58,.045); }
.audit-stat-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 7px; font-size: 1.05rem; }
.audit-stat-icon.blue { color: #155eef; background: #eaf1ff; }
.audit-stat-icon.teal { color: #087f73; background: #e8f7f4; }
.audit-stat-icon.green { color: #17633a; background: #e9f8ee; }
.audit-stat-icon.red { color: #b42318; background: #fff0ef; }
.audit-stat-card small, .audit-stat-card strong { display: block; }
.audit-stat-card small { color: var(--muted); font-size: .68rem; }
.audit-stat-card strong { color: var(--ink); font-size: 1.5rem; }
.audit-chart-panel > header { min-height: 76px; }
.audit-rate { color: var(--muted); font-size: .66rem; text-align: right; white-space: nowrap; }
.audit-rate strong { display: block; color: #17633a; font-size: 1rem; }
.audit-chart-container { height: 285px; position: relative; padding: 16px 20px 12px; }
.audit-chart-container.doughnut { height: 210px; max-width: 245px; margin: 0 auto; padding-bottom: 2px; }
.audit-chart-legend { max-height: 150px; overflow-y: auto; padding: 2px 18px 16px; }
.audit-chart-legend span { display: flex; align-items: center; gap: .45rem; padding: 4px 0; color: var(--muted); font-size: .64rem; }
.audit-chart-legend em { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.audit-chart-legend strong { color: var(--ink); }
.audit-section-nav { width: fit-content; display: flex; gap: .35rem; margin: 4px 0 16px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.audit-section-nav a { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .42rem .7rem; color: var(--muted); border-radius: 5px; font-size: .72rem; font-weight: 700; }
.audit-section-nav a:hover { color: #fff; background: #123261; text-decoration: none; }
.audit-table-panel { scroll-margin-top: 90px; }
.audit-table-panel > header { min-height: 70px; }
.audit-table-wrap { overflow-x: auto; }
.audit-table-panel table { min-width: 900px; }
.audit-table-panel thead th { padding: 11px 14px; color: #667387; background: #f7f9fc; font-size: .64rem; }
.audit-table-panel tbody td { padding: 12px 14px; font-size: .73rem; }
.audit-time strong, .audit-time small { display: block; white-space: nowrap; }
.audit-time strong { color: var(--ink); font-size: .72rem; }
.audit-time small, .audit-block-meta { color: var(--muted); font-size: .63rem; }
.audit-block-meta { display: block; margin-top: .15rem; }
.audit-event-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .5rem; color: #334e79; border-radius: 5px; background: #eef4ff; font-size: .66rem; font-weight: 700; white-space: nowrap; }
.audit-event-pill i { color: #155eef; font-size: .55rem; }
.audit-ip { padding: .25rem .4rem; color: #4c596d; border-radius: 4px; background: #f2f4f7; font-size: .66rem; }
.login-status { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .48rem; border-radius: 5px; font-size: .65rem; font-weight: 700; }
.login-status.success { color: #17633a; background: #eaf8ef; }
.login-status.failed { color: #b42318; background: #fff0ef; }
.audit-device { max-width: 260px; color: var(--muted); }
.audit-table-footer { display: flex; justify-content: flex-end; min-height: 62px; padding: 13px 16px; border-top: 1px solid #edf1f6; background: #fbfcfe; }
.audit-table-footer .pagination { margin-bottom: 0; }

@media (max-width: 767.98px) {
    .management-chart-container, .audit-chart-container { height: 245px; padding-left: 12px; padding-right: 12px; }
    .management-chart-container.doughnut, .audit-chart-container.doughnut { height: 200px; }
    .audit-scope { align-self: flex-start; }
    .audit-section-nav { width: 100%; }
    .audit-section-nav a { flex: 1; justify-content: center; }
    .audit-rate { display: none; }
}

/* Simplified student registration */
.simple-registration-page { padding: 38px 0 60px; }
.simple-registration-shell { max-width: 880px; margin: 0 auto; overflow: hidden; border: 1px solid #dbe2eb; border-radius: 8px; background: #fff; box-shadow: 0 14px 38px rgba(23,35,58,.09); }
.simple-registration-header { min-height: 100px; display: flex; align-items: center; gap: .8rem; padding: 22px 28px; color: #fff; background: #123261; }
.simple-registration-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #123261; border-radius: 7px; background: #fff; font-size: 1.1rem; }
.simple-registration-header > div { flex: 1; }
.simple-registration-header h1 { margin: 0 0 .25rem; font-size: 1.35rem; font-weight: 800; }
.simple-registration-header p { margin: 0; color: rgba(255,255,255,.7); font-size: .76rem; }
.simple-registration-header > a { color: #77e5d4; font-size: .75rem; font-weight: 700; }
.simple-registration-form { padding: 26px 28px 30px; }
.student-account-notice { display: flex; align-items: center; gap: .65rem; margin-bottom: 20px; padding: 10px 12px; color: #173b6f; border: 1px solid #d2def0; border-radius: 6px; background: #f5f8fd; }
.student-account-notice > i { color: var(--brand); font-size: 1.1rem; }
.student-account-notice strong, .student-account-notice small { display: block; }
.student-account-notice strong { font-size: .76rem; }
.student-account-notice small { color: var(--muted); font-size: .65rem; }
.simple-registration-form label { margin-bottom: .38rem; color: #4b576a; font-size: .72rem; }
.simple-registration-form .form-group { margin-bottom: 15px; }
.simple-registration-form .form-control { height: 42px; }
.simple-captcha-row { display: grid; grid-template-columns: 1fr 180px; align-items: end; gap: 14px; margin-top: 2px; padding: 14px; border: 1px solid #dce4ee; border-radius: 7px; background: #f8fafc; }
.simple-captcha-row .captcha-box { min-height: 42px; background: #fff; }
.simple-registration-consent { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin: 18px 0; }
.simple-registration-consent label { display: flex; align-items: center; gap: .45rem; margin: 0; cursor: pointer; }
.simple-registration-consent span { color: #5d687a; font-size: .7rem; }
.simple-registration-submit { min-width: 180px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; }
.simple-registration-login { display: inline-block; margin: 0 0 0 14px; color: var(--muted); font-size: .72rem; }

@media (max-width: 767.98px) {
    .simple-registration-page { padding: 18px 0 38px; }
    .simple-registration-shell { border-left: 0; border-right: 0; border-radius: 0; box-shadow: none; }
    .simple-registration-header { padding: 20px; }
    .simple-registration-header > a { display: none; }
    .simple-registration-form { padding: 22px 20px 26px; }
    .simple-captcha-row { grid-template-columns: 1fr; }
    .simple-registration-consent { display: block; }
    .simple-registration-consent label { margin-bottom: .65rem; }
    .simple-registration-submit { width: 100%; }
    .simple-registration-login { display: block; margin: 14px 0 0; text-align: center; }
}

/* Authenticated workspace navigation v1.41 */
.workspace-body { font-family: Inter, "Segoe UI", Arial, sans-serif; color: #172033; background: #f4f7fb; }
.workspace-body h1, .workspace-body h2, .workspace-body h3, .topbar-title, .brand-lockup strong { font-family: Inter, "Segoe UI", Arial, sans-serif; letter-spacing: 0; }
.app-sidebar { width: 268px; background: #10243e; border-right: 1px solid rgba(255,255,255,.06); box-shadow: 8px 0 28px rgba(17,38,66,.14); }
.main-panel { margin-left: 268px; }
.sidebar-brand { min-height: 76px; padding: 14px 16px; background: #0c1d33; }
.sidebar-nav { padding: 10px 12px 22px; }
.sidebar-section { padding: 13px 9px 7px; color: #7890aa; font-size: .62rem; letter-spacing: .08em; }
.sidebar-link, .sidebar-group-toggle { width: 100%; min-height: 43px; display: flex; align-items: center; gap: 10px; margin: 0 0 4px; padding: 7px 9px; border: 0; border-radius: 6px; color: #c2cede; background: transparent; font-size: .82rem; font-weight: 650; text-align: left; text-decoration: none; }
.sidebar-link:hover, .sidebar-group-toggle:hover { color: #fff; background: rgba(255,255,255,.07); text-decoration: none; }
.sidebar-link.active { color: #fff; background: #183b64; box-shadow: inset 3px 0 0 #4fd1bd; }
.sidebar-group-toggle .nav-icon, .sidebar-link .nav-icon { width: 28px; height: 28px; color: #8eabc9; background: transparent; font-size: .95rem; }
.sidebar-group-toggle .nav-label { flex: 1; }
.sidebar-chevron { margin-left: auto; color: #7188a2; font-size: .7rem; transition: transform .18s ease; }
.sidebar-menu-group.open > .sidebar-group-toggle { color: #fff; background: rgba(255,255,255,.055); }
.sidebar-menu-group.open .sidebar-chevron { transform: rotate(180deg); }
.sidebar-submenu { display: none; margin: 2px 0 8px 18px; padding: 3px 0 3px 19px; border-left: 1px solid rgba(255,255,255,.13); }
.sidebar-menu-group.open > .sidebar-submenu { display: block; }
.sidebar-sublink { position: relative; display: block; padding: 7px 9px; border-radius: 5px; color: #9eb0c4; font-size: .78rem; font-weight: 550; text-decoration: none; }
.sidebar-sublink::before { content: ""; position: absolute; left: -23px; top: 50%; width: 7px; height: 1px; background: rgba(255,255,255,.2); }
.sidebar-sublink:hover { color: #fff; background: rgba(255,255,255,.055); text-decoration: none; }
.sidebar-sublink.active { color: #74e2d1; background: rgba(79,209,189,.09); font-weight: 700; }
.topbar { min-height: 70px; padding: 10px 26px; border-bottom: 1px solid #e2e8f0; background: rgba(255,255,255,.98); }
.app-content { max-width: 1380px; padding-top: 24px; }
.workspace-page-heading h1, .page-heading h1 { color: #132238; font-weight: 750; }
@media (min-width: 992px) {
    body.sidebar-collapsed .app-sidebar { width: 78px; }
    body.sidebar-collapsed .main-panel { margin-left: 78px; }
    body.sidebar-collapsed .sidebar-group-toggle { justify-content: center; }
    body.sidebar-collapsed .sidebar-group-toggle .nav-label, body.sidebar-collapsed .sidebar-chevron, body.sidebar-collapsed .sidebar-submenu { display: none !important; }
}
@media (max-width: 991.98px) { .app-sidebar { width: min(286px, 88vw); } .main-panel { margin-left: 0; } .sidebar-submenu { margin-left: 17px; } }

/* Role-aware academic reports */
.report-heading { align-items: center; }
.report-scope { display: flex; align-items: center; gap: 12px; min-width: 190px; padding: 12px 16px; border: 1px solid #dbe3ef; border-radius: 8px; background: #fff; color: #155eef; }
.report-scope i { font-size: 1.35rem; }
.report-scope span { display: flex; flex-direction: column; color: #667085; font-size: .72rem; text-transform: uppercase; }
.report-scope strong { color: #182230; font-size: .88rem; text-transform: none; }
.report-filter-panel { margin-bottom: 20px; padding: 18px; border: 1px solid #dde4ee; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(15, 35, 65, .05); }
.report-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: end; }
.report-filter-grid .form-group { margin: 0; min-width: 0; }
.report-filter-grid label { margin-bottom: 6px; color: #344054; font-size: .78rem; font-weight: 700; }
.report-filter-actions { display: flex; gap: 8px; align-items: center; }
.report-filter-actions .btn { white-space: nowrap; }
.report-stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.report-stat { display: flex; align-items: center; gap: 12px; min-height: 92px; padding: 16px; border: 1px solid #e1e7ef; border-radius: 8px; background: #fff; }
.report-stat-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 8px; font-size: 1.15rem; }
.report-stat-icon.blue { color: #155eef; background: #eaf1ff; }
.report-stat-icon.green { color: #16845b; background: #e8f7f0; }
.report-stat-icon.amber { color: #a66a00; background: #fff5d9; }
.report-stat-icon.teal { color: #087f73; background: #e4f7f4; }
.report-stat-icon.coral { color: #c43d2d; background: #fff0ed; }
.report-stat strong { display: block; color: #101828; font-size: 1.35rem; line-height: 1.1; }
.report-stat span:last-child { color: #667085; font-size: .76rem; }
.report-section-nav { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 18px; padding-bottom: 2px; }
.report-section-nav a { flex: 0 0 auto; padding: 8px 13px; border: 1px solid #d8e0ea; border-radius: 6px; background: #fff; color: #344054; font-size: .8rem; font-weight: 700; }
.report-section-nav a:hover { border-color: #155eef; color: #155eef; text-decoration: none; }
.report-section { margin-bottom: 20px; border: 1px solid #dde4ee; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(15, 35, 65, .045); scroll-margin-top: 88px; }
.report-section > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid #e5eaf1; }
.report-section h2 { margin: 2px 0 0; color: #182230; font-size: 1.05rem; }
.report-count { padding: 5px 9px; border-radius: 5px; background: #f2f4f7; color: #475467; font-size: .73rem; font-weight: 700; white-space: nowrap; }
.report-table { margin: 0; min-width: 760px; }
.report-table thead th { border: 0; border-bottom: 1px solid #e5eaf1; background: #f8fafc; color: #475467; font-size: .7rem; text-transform: uppercase; }
.report-table tbody td { vertical-align: middle; border-color: #edf0f4; color: #344054; font-size: .8rem; }
.report-table td strong, .report-table td small { display: block; }
.report-table td small { margin-top: 3px; color: #7a8699; }
.report-status { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 5px; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.report-status.success { color: #067647; background: #ecfdf3; }
.report-status.danger { color: #b42318; background: #fef3f2; }
.report-status.info { color: #175cd3; background: #eff8ff; }
.report-status.muted { color: #475467; background: #f2f4f7; }
.report-progress { width: 92px; height: 6px; overflow: hidden; border-radius: 6px; background: #e8edf3; }
.report-progress span { display: block; height: 100%; border-radius: inherit; background: #155eef; }
.report-empty { padding: 30px !important; color: #667085 !important; text-align: center; }
.report-section > nav { padding: 12px 18px 4px; }
@media (max-width: 1199.98px) { .report-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .report-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .report-heading { align-items: flex-start; } .report-scope { width: 100%; } .report-filter-grid { grid-template-columns: 1fr; } .report-filter-actions { display: grid; grid-template-columns: 1fr 1fr; } .report-stat-grid { grid-template-columns: 1fr 1fr; } .report-section > header { align-items: flex-start; } }
@media (max-width: 479.98px) { .report-stat-grid { grid-template-columns: 1fr; } }

/* Student registration v1.39 */
.registration-screen { background: #eef2f7; }
.registration-page { padding: 42px 0 64px; }
.registration-shell { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.5fr); overflow: hidden; max-width: 1180px; margin: 0 auto; border: 1px solid #d9e1eb; border-radius: 8px; background: #fff; box-shadow: 0 20px 52px rgba(23,35,58,.12); }
.registration-intro { min-height: 100%; display: flex; flex-direction: column; padding: 34px; color: #fff; background: #123261; }
.registration-brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; width: fit-content; }
.registration-brand:hover { color: #fff; text-decoration: none; }
.registration-brand > span { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: #123261; border-radius: 6px; background: #fff; font-size: .78rem; font-weight: 800; }
.registration-brand strong { font-size: 1rem; }
.registration-intro-copy { margin: auto 0; padding: 54px 0 42px; }
.registration-kicker { color: #77e5d4; font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.registration-intro-copy h1 { margin: 14px 0 15px; font-size: 2rem; line-height: 1.18; font-weight: 800; }
.registration-intro-copy > p { color: rgba(255,255,255,.72); font-size: .88rem; line-height: 1.7; }
.registration-benefits { margin-top: 30px; }
.registration-benefits > div { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 19px; }
.registration-benefits > div > i { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #77e5d4; border-radius: 6px; background: rgba(255,255,255,.09); }
.registration-benefits strong, .registration-benefits small { display: block; }
.registration-benefits strong { font-size: .78rem; }
.registration-benefits small { margin-top: .18rem; color: #91a8c1; font-size: .67rem; line-height: 1.45; }
.registration-intro-footer { display: flex; align-items: flex-start; gap: .55rem; padding-top: 18px; color: #8fa7c1; border-top: 1px solid rgba(255,255,255,.1); font-size: .65rem; line-height: 1.5; }
.registration-intro-footer i { color: #77e5d4; }
.registration-form-panel { padding: 35px 40px 40px; }
.registration-form-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid #e8edf3; }
.registration-form-header > div > span { color: var(--accent); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.registration-form-header h2 { margin: .35rem 0 .35rem; font-size: 1.55rem; font-weight: 800; }
.registration-form-header p { margin: 0; color: var(--muted); font-size: .78rem; }
.registration-form-header > a { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.registration-form-header > a strong { color: var(--brand); }
.registration-section-title { display: flex; align-items: center; gap: .65rem; margin: 22px 0 15px; }
.registration-section-title:first-child { margin-top: 0; }
.registration-section-title > span { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #fff; border-radius: 6px; background: #173b6f; font-size: .7rem; font-weight: 800; }
.registration-section-title strong, .registration-section-title small { display: block; }
.registration-section-title strong { color: var(--ink); font-size: .78rem; }
.registration-section-title small { color: var(--muted); font-size: .65rem; }
.registration-form label { margin-bottom: .4rem; color: #455166; font-size: .72rem; }
.optional-label { color: #929dad; font-size: .62rem; font-weight: 500; }
.field-with-icon { position: relative; }
.field-with-icon > i { position: absolute; top: 50%; left: 13px; z-index: 2; color: #8491a4; transform: translateY(-50%); }
.field-with-icon .form-control { height: 44px; padding-left: 38px; color: var(--ink); border-color: #cfd8e4; font-size: .78rem; }
.field-with-icon .form-control::placeholder { color: #a1abba; }
.select-icon select { appearance: auto; }
.password-field .form-control { padding-right: 42px; }
.password-field > button { width: 38px; height: 40px; position: absolute; top: 2px; right: 2px; z-index: 3; color: #78869a; border: 0; border-left: 1px solid #e1e6ed; background: #fff; }
.registration-role { height: 44px; padding: .35rem .6rem; }
.registration-role > span { width: 30px; height: 30px; }
.registration-security-check { margin-top: 24px; padding: 16px 17px 1px; border: 1px solid #d9e4f1; border-radius: 7px; background: #f7faff; }
.registration-security-check .registration-section-title { margin-top: 0; }
.registration-security-check .registration-section-title > span { color: var(--brand); background: #e5edff; }
.registration-security-check .captcha-box { min-height: 44px; padding: .35rem .5rem .35rem .75rem; background: #fff; }
.captcha-refresh { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; color: var(--brand); border: 0; border-radius: 5px; background: #eaf1ff; }
.registration-consent { margin: 20px 0; padding: 14px 16px; border-radius: 7px; background: #f6f7f9; }
.registration-consent label { display: flex; align-items: flex-start; gap: .55rem; margin: 0 0 .55rem; cursor: pointer; }
.registration-consent label:last-child { margin-bottom: 0; }
.registration-consent input { margin-top: .16rem; }
.registration-consent span { color: #5d687a; font-size: .72rem; }
.registration-consent strong { color: var(--brand-dark); }
.registration-submit { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding-left: 18px; padding-right: 18px; }
.registration-signin-mobile { display: none; margin: 16px 0 0; color: var(--muted); font-size: .75rem; text-align: center; }

@media (max-width: 991.98px) {
    .registration-shell { grid-template-columns: 1fr; max-width: 760px; }
    .registration-intro { min-height: 0; padding: 28px 32px; }
    .registration-intro-copy { padding: 34px 0 12px; }
    .registration-intro-copy h1 { font-size: 1.75rem; }
    .registration-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
    .registration-benefits > div { margin: 0; }
    .registration-intro-footer { display: none; }
}

@media (max-width: 767.98px) {
    .registration-page { padding: 18px 0 38px; }
    .registration-shell { border-left: 0; border-right: 0; border-radius: 0; box-shadow: none; }
    .registration-intro { padding: 24px 20px; }
    .registration-intro-copy { padding: 28px 0 4px; }
    .registration-intro-copy h1 { font-size: 1.55rem; }
    .registration-intro-copy > p { font-size: .8rem; }
    .registration-benefits { grid-template-columns: 1fr; }
    .registration-benefits > div { display: none; }
    .registration-form-panel { padding: 26px 20px 30px; }
    .registration-form-header > a { display: none; }
    .registration-form-header h2 { font-size: 1.35rem; }
    .registration-signin-mobile { display: block; }
}

.registration-role { min-height: 44px; display: flex; align-items: center; gap: .7rem; padding: .42rem .7rem; color: #173b6f; border: 1px solid #c9d8ec; border-radius: 6px; background: #f4f8ff; }
.registration-role > span { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #fff; border-radius: 6px; background: var(--brand); }
.registration-role strong, .registration-role small { display: block; }
.registration-role strong { font-size: .8rem; }
.registration-role small { color: var(--muted); font-size: .66rem; }

/* Certificate and public verification */
.certificate-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 22px; }
.certificate-toolbar a { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .65rem; color: var(--muted); font-size: .8rem; font-weight: 700; }
.certificate-toolbar h1 { margin: 0 0 .25rem; font-size: 1.75rem; font-weight: 800; }
.certificate-toolbar p { margin: 0; color: var(--muted); }
.professional-certificate { padding: 12px; color: #17233a; border: 1px solid #c9d3e0; background: #fff; box-shadow: 0 16px 42px rgba(23,35,58,.12); }
.certificate-frame { min-height: 690px; display: flex; flex-direction: column; padding: 42px 50px; border: 2px solid #173b6f; position: relative; }
.certificate-frame::before { content: ""; position: absolute; inset: 8px; pointer-events: none; border: 1px solid #c3a75d; }
.certificate-header { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.certificate-brand { display: flex; align-items: center; gap: .7rem; }
.certificate-brand-mark { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; color: #fff; border-radius: 6px; background: #173b6f; font-weight: 800; }
.certificate-brand strong, .certificate-brand small { display: block; }
.certificate-brand small { color: var(--muted); font-size: .68rem; }
.certificate-award-icon { color: #b08b31; font-size: 2.8rem; }
.certificate-main { max-width: 850px; margin: auto; padding: 42px 20px 30px; position: relative; z-index: 1; text-align: center; }
.certificate-kicker { display: block; margin-bottom: 10px; color: #917326; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.certificate-main h2 { margin-bottom: 24px; color: #173b6f; font-family: Georgia, serif; font-size: 2.8rem; font-weight: 700; }
.certificate-presented, .certificate-statement { margin-bottom: 8px; color: var(--muted); }
.certificate-main h3 { display: inline-block; min-width: 60%; margin: 0 0 16px; padding: 0 18px 9px; color: #17233a; border-bottom: 1px solid #b99a4d; font-family: Georgia, serif; font-size: 2.25rem; }
.certificate-main h4 { margin: 12px 0 18px; color: #087f73; font-size: 1.45rem; font-weight: 800; }
.certificate-description { max-width: 680px; margin: 0 auto; color: #657187; font-size: .85rem; line-height: 1.7; }
.certificate-details { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; padding: 18px 22px; position: relative; z-index: 1; border-top: 1px solid #e1e6ed; border-bottom: 1px solid #e1e6ed; background: #f8fafc; }
.certificate-details > div { text-align: center; }
.certificate-details small, .certificate-details strong, .certificate-details span { display: block; }
.certificate-details small { margin-bottom: 3px; color: var(--muted); font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.certificate-details strong { color: #173b6f; font-size: .85rem; }
.certificate-details span { color: var(--muted); font-size: .7rem; }
.certificate-signatures { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: end; gap: 30px; margin-top: 34px; position: relative; z-index: 1; text-align: center; }
.certificate-signatures > div:not(.certificate-seal) strong, .certificate-signatures > div:not(.certificate-seal) small { display: block; }
.certificate-signatures small { color: var(--muted); font-size: .66rem; }
.signature-line { display: block; max-width: 220px; margin: 0 auto 8px; border-top: 1px solid #7c8797; }
.certificate-seal { width: 96px; height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; justify-self: center; color: #fff; border: 4px double #d9c178; border-radius: 50%; background: #173b6f; font-size: .58rem; font-weight: 700; text-transform: uppercase; }
.certificate-seal i { margin-bottom: 2px; color: #e1c872; font-size: 1.4rem; }
.certificate-number-note { display: flex; align-items: center; gap: .7rem; margin-top: 16px; padding: 13px 15px; color: #43516a; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: .82rem; }
.certificate-number-note > i { color: var(--accent); font-size: 1.2rem; }

.verification-hero { padding: 76px 0 70px; color: #fff; background: #123261; }
.verification-hero .container-xl { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 70px; }
.verification-intro > span { color: #77e5d4; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.verification-intro h1 { margin: 12px 0 14px; font-size: 2.5rem; line-height: 1.15; font-weight: 800; }
.verification-intro p { max-width: 520px; margin: 0; color: rgba(255,255,255,.75); line-height: 1.7; }
.verification-search { padding: 25px; color: var(--ink); border-radius: 8px; background: #fff; box-shadow: 0 18px 45px rgba(3,16,36,.22); }
.verification-search label { display: block; margin-bottom: .55rem; font-size: .82rem; }
.verification-input-group { display: flex; align-items: center; position: relative; }
.verification-input-group > i { position: absolute; left: 14px; z-index: 1; color: #7d899a; }
.verification-input-group input { flex: 1; min-width: 0; min-height: 48px; padding: .6rem .8rem .6rem 2.5rem; border: 1px solid #ccd6e3; border-right: 0; border-radius: 6px 0 0 6px; outline: 0; text-transform: uppercase; }
.verification-input-group input:focus { border-color: var(--brand); box-shadow: 0 0 0 .16rem rgba(21,94,239,.12); }
.verification-input-group .btn { min-height: 48px; border-radius: 0 6px 6px 0; white-space: nowrap; }
.verification-search > small { display: block; margin-top: .55rem; color: var(--muted); }
.verification-error { margin-top: .5rem; color: #b42318; font-size: .78rem; }
.verification-result-section { min-height: 350px; padding: 52px 0 78px; background: #f5f7fb; }
.verification-help { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.verification-help > div { display: flex; align-items: flex-start; gap: .8rem; padding: 24px; border-right: 1px solid var(--line); }
.verification-help > div:last-child { border-right: 0; }
.verification-help > div > i { color: var(--brand); font-size: 1.25rem; }
.verification-help strong, .verification-help small { display: block; }
.verification-help small { margin-top: .3rem; color: var(--muted); line-height: 1.5; }
.verification-result { max-width: 900px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 12px 34px rgba(23,35,58,.09); }
.verification-result > header { display: flex; align-items: center; gap: 1rem; padding: 24px 28px; color: #fff; background: #17633a; }
.verification-status-icon { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 7px; background: rgba(255,255,255,.14); font-size: 1.8rem; }
.verification-result header > div { flex: 1; }
.verification-result header span, .verification-result header h2, .verification-result header p { display: block; margin: 0; }
.verification-result header > div > span { color: rgba(255,255,255,.7); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.verification-result header h2 { margin: .15rem 0; font-size: 1.35rem; font-weight: 800; }
.verification-result header p { color: rgba(255,255,255,.78); font-size: .8rem; }
.verification-status { padding: .38rem .65rem; border: 1px solid rgba(255,255,255,.28); border-radius: 5px; font-size: .75rem; text-transform: uppercase; }
.verification-details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); padding: 10px 28px 24px; }
.verification-details > div { padding: 17px 0; border-bottom: 1px solid #edf1f6; }
.verification-details > div:nth-child(odd) { padding-right: 22px; }
.verification-details > div:nth-child(even) { padding-left: 22px; border-left: 1px solid #edf1f6; }
.verification-details small, .verification-details strong { display: block; }
.verification-details small { margin-bottom: .3rem; color: var(--muted); font-size: .67rem; font-weight: 700; text-transform: uppercase; }
.verification-details strong { color: var(--ink); }
.verification-details .verification-number { grid-column: 1 / -1; padding-right: 0; border-left: 0; }
.verification-result > footer { padding: 13px 28px; color: var(--muted); border-top: 1px solid var(--line); background: #f8fafc; font-size: .75rem; }
.verification-result > footer i { margin-right: .35rem; color: var(--accent); }
.verification-result.not-found { padding: 42px 28px; text-align: center; }
.verification-result.not-found .verification-status-icon { color: #b42318; background: #fff0ef; }
.verification-result.not-found h2 { margin: 16px 0 8px; font-size: 1.35rem; font-weight: 800; }
.verification-result.not-found p { color: var(--muted); }

@media (max-width: 767.98px) {
    .certificate-toolbar { align-items: flex-start; flex-direction: column; }
    .certificate-frame { min-height: 0; padding: 26px 20px; }
    .certificate-brand small, .certificate-award-icon { display: none; }
    .certificate-main { padding: 34px 0 24px; }
    .certificate-main h2 { font-size: 2rem; }
    .certificate-main h3 { min-width: 90%; font-size: 1.65rem; }
    .certificate-main h4 { font-size: 1.15rem; }
    .certificate-details { grid-template-columns: 1fr; }
    .certificate-signatures { grid-template-columns: 1fr; gap: 24px; }
    .certificate-seal { grid-row: 1; }
    .verification-hero { padding: 54px 0; }
    .verification-hero .container-xl { grid-template-columns: 1fr; gap: 28px; }
    .verification-intro h1 { font-size: 2rem; }
    .verification-input-group { display: block; }
    .verification-input-group > i { top: 16px; }
    .verification-input-group input { width: 100%; border: 1px solid #ccd6e3; border-radius: 6px; }
    .verification-input-group .btn { width: 100%; margin-top: 9px; border-radius: 6px; }
    .verification-help, .verification-details { grid-template-columns: 1fr; }
    .verification-help > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .verification-help > div:last-child { border-bottom: 0; }
    .verification-result > header { align-items: flex-start; flex-wrap: wrap; padding: 22px; }
    .verification-status { margin-left: 68px; }
    .verification-details { padding: 8px 22px 20px; }
    .verification-details > div:nth-child(odd), .verification-details > div:nth-child(even) { padding: 15px 0; border-left: 0; }
}

@media print {
    .certificate-screen .app-sidebar, .certificate-screen .topbar, .certificate-screen .app-footer, .certificate-screen .certificate-toolbar, .certificate-screen .certificate-number-note { display: none !important; }
    .certificate-screen .main-panel { margin: 0 !important; }
    .certificate-screen .app-shell { padding: 0 !important; }
    .certificate-screen .app-content { max-width: none !important; }
    .professional-certificate { padding: 0; border: 0; box-shadow: none; }
    .certificate-frame { min-height: 96vh; }
}

/* Authenticated workspace v1.36 */
.workspace-body { background: #f2f5f9; }
.app-sidebar { width: 272px; background: #0d2748; border-right: 1px solid rgba(255,255,255,.05); box-shadow: 8px 0 28px rgba(13,39,72,.13); }
.main-panel { margin-left: 272px; }
.sidebar-brand { min-height: 80px; border-bottom-color: rgba(255,255,255,.08); }
.sidebar-brand .brand-mark { width: 42px; height: 42px; color: #123261; background: #fff; }
.sidebar-brand .brand-lockup strong { font-size: 1rem; }
.sidebar-brand .brand-lockup small { color: #8ea5c0; font-size: .67rem; }
.sidebar-nav { padding: 8px 13px 20px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }
.sidebar-section { margin-top: 5px; padding: 16px 10px 7px; color: #7690ad; font-size: .63rem; letter-spacing: .11em; }
.sidebar-link { min-height: 42px; gap: .65rem; margin-bottom: 3px; padding: .52rem .65rem; color: #bdcada; border-radius: 6px; font-size: .83rem; font-weight: 600; }
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.07); transform: none; }
.sidebar-link.active { color: #fff; background: #173b67; box-shadow: inset 3px 0 0 #55d6c2; }
.sidebar-link .nav-icon { width: 28px; height: 28px; color: #86a5c6; background: transparent; }
.sidebar-link.active .nav-icon { color: #6ee7d6; }
.sidebar-footer { padding: 13px; border-top-color: rgba(255,255,255,.08); background: rgba(4,19,38,.18); }
.sidebar-footer .user-panel { margin-bottom: .6rem; padding: .62rem; background: rgba(255,255,255,.055); }
.sidebar-footer .user-avatar { color: #fff; background: #087f73; }
.sidebar-footer .user-panel small { display: flex; align-items: center; gap: .3rem; color: #8fa7c1; font-size: .66rem; }
.user-online-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #4ade80; }
.btn-sidebar { min-height: 36px; color: #b9c7d7; border-color: rgba(255,255,255,.1); background: transparent; font-size: .78rem; }
.topbar { min-height: 70px; padding: 10px 26px; border-bottom-color: #e2e7ef; background: rgba(255,255,255,.98); }
.topbar-eyebrow { color: #8190a4; font-size: .65rem; letter-spacing: .08em; }
.topbar-title { font-size: 1.03rem; }
.topbar-search { background: #f5f7fa; }
.app-shell { padding: 25px 26px 42px; }
.app-content { max-width: 1420px; }

.workspace-eyebrow { display: block; margin-bottom: .45rem; color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.workspace-welcome { min-height: 184px; display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-bottom: 22px; padding: 30px 34px; color: #fff; border-left: 5px solid #55d6c2; border-radius: 8px; background: #123261; }
.workspace-welcome .workspace-eyebrow { color: #77e5d4; }
.workspace-welcome h1 { margin: 0 0 .45rem; font-size: 2rem; font-weight: 800; }
.workspace-welcome p { max-width: 670px; margin: 0; color: rgba(255,255,255,.72); }
.workspace-welcome-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; flex: 0 0 auto; }
.workspace-welcome-actions .btn-light { color: #123261; }
.workspace-stat-grid { margin-left: -8px; margin-right: -8px; }
.workspace-stat-grid > div { padding-left: 8px; padding-right: 8px; }
.workspace-stat-card { min-height: 122px; display: flex; align-items: center; gap: 15px; padding: 20px; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 5px 18px rgba(23,35,58,.05); text-decoration: none; }
a.workspace-stat-card:hover { color: var(--ink); border-color: #bdcce0; box-shadow: 0 12px 28px rgba(23,35,58,.09); text-decoration: none; transform: translateY(-2px); }
.workspace-stat-icon { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 7px; font-size: 1.3rem; }
.workspace-stat-icon.blue { color: #155eef; background: #eaf1ff; }
.workspace-stat-icon.teal { color: #087f73; background: #e7f7f4; }
.workspace-stat-icon.gold { color: #916b12; background: #fff5d8; }
.workspace-stat-icon.coral { color: #b64637; background: #fff0ed; }
.workspace-stat-card > span:last-child { min-width: 0; }
.workspace-stat-card small, .workspace-stat-card strong, .workspace-stat-card em { display: block; }
.workspace-stat-card small { color: var(--muted); font-size: .72rem; font-weight: 600; }
.workspace-stat-card strong { margin: .05rem 0 .2rem; color: #17233a; font-size: 1.65rem; line-height: 1.2; font-style: normal; }
.workspace-stat-card strong.stat-role { font-size: 1rem; }
.workspace-stat-card em { color: #8290a4; font-size: .68rem; font-style: normal; }
.workspace-dashboard-grid { margin-left: -8px; margin-right: -8px; }
.workspace-dashboard-grid > div { padding-left: 8px; padding-right: 8px; }
.workspace-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 5px 18px rgba(23,35,58,.05); }
.workspace-panel > header { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 16px 20px; border-bottom: 1px solid #edf1f6; }
.workspace-panel > header h2 { margin: 0 0 .18rem; font-size: 1rem; font-weight: 800; }
.workspace-panel > header p { margin: 0; color: var(--muted); font-size: .72rem; }
.workspace-panel > header > a { font-size: .75rem; font-weight: 700; }
.dashboard-course-list > a { min-height: 68px; display: flex; align-items: center; gap: .75rem; padding: 11px 20px; color: var(--ink); border-bottom: 1px solid #edf1f6; }
.dashboard-course-list > a:last-child { border-bottom: 0; }
.dashboard-course-list > a:hover { color: var(--brand); background: #f8faff; text-decoration: none; }
.dashboard-course-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--brand); border-radius: 7px; background: #eaf1ff; }
.dashboard-course-copy { flex: 1; min-width: 0; }
.dashboard-course-copy strong, .dashboard-course-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-course-copy strong { font-size: .82rem; }
.dashboard-course-copy small { margin-top: .2rem; color: var(--muted); font-size: .68rem; }
.dashboard-course-list > a > .bi-chevron-right { color: #9da9ba; font-size: .75rem; }
.quick-action-list > a { min-height: 67px; display: flex; align-items: center; gap: .75rem; padding: 11px 18px; color: var(--ink); border-bottom: 1px solid #edf1f6; }
.quick-action-list > a:last-child { border-bottom: 0; }
.quick-action-list > a:hover { color: var(--brand); background: #f8faff; text-decoration: none; }
.quick-action-list > a > i:first-child { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); border-radius: 7px; background: #e8f7f4; }
.quick-action-list > a > span { flex: 1; min-width: 0; }
.quick-action-list strong, .quick-action-list small { display: block; }
.quick-action-list strong { font-size: .8rem; }
.quick-action-list small { color: var(--muted); font-size: .68rem; }
.quick-action-list .bi-chevron-right { color: #9da9ba; font-size: .7rem; }
.workspace-empty { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: 28px; color: var(--muted); text-align: center; }
.workspace-empty > i { color: #9eabbc; font-size: 2rem; }
.workspace-empty strong { color: var(--ink); }
.workspace-empty.large { min-height: 340px; border: 1px dashed #c7d0dc; border-radius: 8px; background: #fff; }
.workspace-empty.large .btn { margin-top: 12px; }

.workspace-page-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 22px; padding: 4px 2px; }
.workspace-page-heading h1 { margin: 0 0 .35rem; font-size: 1.85rem; font-weight: 800; }
.workspace-page-heading p { max-width: 760px; margin: 0; color: var(--muted); }
.learning-overview { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 20px; padding: 14px 18px; color: #43516a; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.learning-overview > div { display: flex; align-items: center; gap: .65rem; }
.learning-overview > div > i { color: var(--accent); font-size: 1.25rem; }
.learning-overview strong, .learning-overview small { display: block; }
.learning-overview strong { color: var(--ink); }
.learning-overview small, .learning-overview p { color: var(--muted); font-size: .75rem; }
.learning-overview p { margin: 0; }
.learning-grid { margin-left: -9px; margin-right: -9px; }
.learning-grid > div { padding-left: 9px; padding-right: 9px; }
.my-learning-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 6px 20px rgba(23,35,58,.055); transition: transform .18s ease, box-shadow .18s ease; }
.my-learning-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(23,35,58,.1); }
.my-learning-cover { height: 132px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; color: rgba(255,255,255,.78); background: #173b6f; }
.my-learning-cover > i { font-size: 2.5rem; }
.my-learning-cover img { width: 100%; height: 100%; object-fit: cover; }
.learning-status { position: absolute; top: 12px; right: 12px; padding: .3rem .55rem; color: #173b6f; border-radius: 5px; background: #fff; font-size: .66rem; font-weight: 800; }
.learning-status.complete { color: #17633a; }
.my-learning-body { flex: 1 1 auto; padding: 18px; }
.learning-course-meta { display: flex; gap: .45rem; color: var(--accent); font-size: .66rem; font-weight: 800; text-transform: uppercase; }
.learning-course-meta span + span::before { content: "|"; margin-right: .45rem; color: #b1bbc8; }
.my-learning-body h2 { min-height: 46px; margin: .55rem 0 .5rem; font-size: 1rem; line-height: 1.4; font-weight: 800; }
.learning-instructor { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .75rem; }
.learning-batch { display: flex; align-items: flex-start; gap: .55rem; margin-top: 15px; padding: 10px; color: #455269; border-radius: 6px; background: #f5f7fa; }
.learning-batch > i { color: var(--brand); }
.learning-batch strong, .learning-batch small { display: block; }
.learning-batch strong { font-size: .7rem; }
.learning-batch small { margin-top: .2rem; color: var(--muted); font-size: .63rem; }
.learning-progress-block { margin-top: 16px; }
.learning-progress-block > div:first-child { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--muted); font-size: .7rem; }
.learning-progress-block > div:first-child strong { color: var(--ink); }
.learning-progress-block .progress { height: 7px; background: #e7ebf1; }
.learning-progress-block .progress-bar { background: var(--brand); }
.my-learning-actions { padding: 0 18px 18px; }
.learning-locked-note { display: flex; justify-content: center; align-items: center; gap: .35rem; margin-top: 10px; color: var(--muted); font-size: .68rem; }
.workspace-pagination { display: flex; justify-content: center; margin-top: 8px; }

.directory-heading { margin-bottom: 16px; }
.directory-tabs { display: flex; gap: .35rem; margin-bottom: 16px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: fit-content; }
.directory-tabs a { min-height: 38px; display: inline-flex; align-items: center; gap: .4rem; padding: .48rem .8rem; color: var(--muted); border-radius: 5px; font-size: .76rem; font-weight: 700; }
.directory-tabs a:hover { color: var(--brand); text-decoration: none; }
.directory-tabs a.active { color: #fff; background: #123261; }
.directory-filter-panel { margin-bottom: 16px; padding: 16px 18px 1px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.directory-filter-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; padding-bottom: 11px; border-bottom: 1px solid #edf1f6; }
.directory-filter-title > span { display: flex; align-items: center; gap: .5rem; font-size: .8rem; }
.directory-filter-title > span i { color: var(--brand); }
.directory-filter-panel label { color: #5a6679; font-size: .72rem; }
.directory-filter-panel .form-control { min-height: 40px; font-size: .8rem; }
.directory-panel > header { min-height: 68px; }
.directory-server-status { color: var(--accent); font-size: .7rem; font-weight: 700; }
.directory-table-wrap { overflow-x: auto; padding: 16px 18px 20px; }
.directory-panel .dataTables_wrapper > .row:first-child { align-items: center; margin-bottom: 12px; }
.directory-panel .dataTables_filter input { width: min(300px, 65vw); margin-left: 0; padding: .42rem .7rem; }
.directory-panel .table { min-width: 1180px; }
.directory-panel .table thead th { padding: 11px 10px; color: #647185; background: #f7f9fc; font-size: .66rem; }
.directory-panel .table tbody td { padding: 11px 10px; font-size: .75rem; }
.directory-panel .table-striped tbody tr:nth-of-type(odd) { background: transparent; }
.directory-user { min-width: 150px; display: flex; align-items: center; gap: .55rem; }
.directory-avatar { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #173b6f; border-radius: 7px; background: #eaf1ff; font-size: .72rem; font-weight: 800; }
.directory-user strong, .directory-user small { display: block; }
.directory-user strong { max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; }
.directory-user small { color: var(--muted); font-size: .62rem; }
.directory-edit { display: inline-flex; align-items: center; gap: .3rem; }

@media (min-width: 992px) {
    body.sidebar-collapsed .app-sidebar { width: 76px; }
    body.sidebar-collapsed .main-panel { margin-left: 76px; }
}

@media (max-width: 991.98px) {
    .app-sidebar { width: 272px; }
    .main-panel { margin-left: 0; }
    .workspace-welcome { align-items: flex-start; flex-direction: column; }
    .workspace-welcome-actions { justify-content: flex-start; }
}

@media (max-width: 767.98px) {
    .app-shell { padding: 18px 13px 32px; }
    .workspace-welcome { min-height: 0; padding: 25px 21px; }
    .workspace-welcome h1 { font-size: 1.65rem; }
    .workspace-welcome-actions { width: 100%; }
    .workspace-welcome-actions .btn { flex: 1; }
    .workspace-page-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .workspace-page-heading .btn { width: 100%; }
    .learning-overview { align-items: flex-start; }
    .learning-overview p { display: none; }
    .directory-tabs { width: 100%; overflow-x: auto; }
    .directory-tabs a { flex: 1 0 auto; justify-content: center; }
    .directory-panel > header { align-items: flex-start; }
    .directory-server-status { display: none; }
    .directory-panel .dataTables_filter { margin-top: 10px; text-align: left; }
    .directory-panel .dataTables_filter input { width: 100%; }
}

/* Course detail v1.34 */
.course-detail-page { width: 100%; }
.course-breadcrumb { margin-bottom: 14px; }
.course-breadcrumb a { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .82rem; font-weight: 700; }
.course-breadcrumb a:hover { color: var(--brand); text-decoration: none; }
.course-detail-hero { min-height: 300px; display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-bottom: 28px; padding: 42px 46px; overflow: hidden; color: #fff; border-left: 6px solid #55d6c2; border-radius: 8px; background: #123261; }
.course-detail-summary { max-width: 830px; }
.course-detail-labels { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 16px; }
.course-detail-labels span { padding: .32rem .58rem; border: 1px solid rgba(255,255,255,.2); border-radius: 5px; background: rgba(255,255,255,.09); font-size: .72rem; font-weight: 700; }
.course-detail-summary h1 { margin-bottom: 14px; font-size: 2.45rem; line-height: 1.14; font-weight: 800; }
.course-detail-summary > p { max-width: 760px; margin-bottom: 22px; color: rgba(255,255,255,.78); font-size: 1rem; line-height: 1.7; }
.course-detail-facts { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; color: rgba(255,255,255,.82); font-size: .8rem; }
.course-detail-facts i { margin-right: .3rem; color: #77e5d4; }
.course-detail-mark { width: 170px; min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 auto; color: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.06); }
.course-detail-mark i { margin-bottom: .8rem; color: #77e5d4; font-size: 3.5rem; }
.course-detail-mark span { font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.course-detail-layout { align-items: flex-start; }
.course-section-card { margin-bottom: 20px; padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 5px 18px rgba(23,35,58,.05); }
.course-media-card { padding: 0; overflow: hidden; }
.course-section-heading { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 20px; padding-bottom: 17px; border-bottom: 1px solid #edf1f6; }
.course-section-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--brand); border-radius: 7px; background: #eaf1ff; font-size: 1.05rem; }
.course-section-heading h2 { margin: 0 0 .22rem; font-size: 1.15rem; font-weight: 800; }
.course-section-heading p { margin: 0; color: var(--muted); font-size: .78rem; }
.course-description { color: #46536a; line-height: 1.78; }
.objective-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 20px; }
.objective-grid > div { display: flex; align-items: flex-start; gap: .6rem; color: #46536a; font-size: .88rem; line-height: 1.55; }
.objective-grid i { margin-top: .18rem; color: var(--accent); flex: 0 0 auto; }
.curriculum-module { overflow: hidden; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 7px; }
.curriculum-module:last-child { margin-bottom: 0; }
.curriculum-module-title { min-height: 54px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 13px 16px; background: #f7f9fc; }
.curriculum-module-title > div { display: flex; align-items: center; gap: .55rem; }
.curriculum-module-title i { color: var(--brand); }
.curriculum-module-title > span { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.curriculum-lessons > div { min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 11px 16px; border-top: 1px solid #edf1f6; }
.curriculum-lessons > div > span { display: flex; align-items: center; gap: .55rem; font-size: .85rem; }
.curriculum-lessons i { color: #7b8799; }
.curriculum-lessons small { color: var(--muted); }
.course-empty-section { padding: 28px; color: var(--muted); text-align: center; border: 1px dashed #cbd4e0; border-radius: 7px; }
.assessment-summary-row { display: flex; align-items: center; gap: .75rem; padding: 13px 0; border-bottom: 1px solid #edf1f6; }
.assessment-summary-row:last-child { padding-bottom: 0; border-bottom: 0; }
.assessment-summary-icon { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--accent); border-radius: 7px; background: #e8f7f4; }
.assessment-summary-row > div { flex: 1; min-width: 0; }
.assessment-summary-row strong, .assessment-summary-row small { display: block; }
.assessment-summary-row small { color: var(--muted); }
.course-subheading { margin: 18px 0 8px; font-size: .85rem; font-weight: 800; text-transform: uppercase; color: #4e5a70; }
.course-subheading:first-of-type { margin-top: 0; }
.skill-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.skill-list span { padding: .36rem .62rem; color: var(--brand-dark); border: 1px solid #cfe0ff; border-radius: 5px; background: #f2f6ff; font-size: .76rem; font-weight: 700; }
.course-action-card { position: sticky; top: 92px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 14px 34px rgba(23,35,58,.11); }
.course-action-cover { width: 100%; height: 200px; display: block; object-fit: cover; }
.course-action-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; color: #fff; background: #173b6f; }
.course-action-placeholder i { color: #77e5d4; font-size: 2.8rem; }
.course-action-placeholder span { font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.course-action-body { padding: 22px; }
.course-price-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.course-price-line span { color: var(--muted); font-size: .8rem; }
.course-price-line strong { color: var(--brand-dark); font-size: 1.35rem; }
.course-spec-list { margin: 0 0 18px; padding: 7px 0; border-top: 1px solid #edf1f6; border-bottom: 1px solid #edf1f6; }
.course-spec-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: 8px 0; }
.course-spec-list dt, .course-spec-list dd { margin: 0; font-size: .78rem; }
.course-spec-list dt { color: var(--muted); font-weight: 600; }
.course-spec-list dt i { width: 20px; display: inline-block; color: #8694a8; }
.course-spec-list dd { color: var(--ink); font-weight: 700; text-align: right; }
.selected-batch { margin-bottom: 14px; padding: 12px 13px; border-left: 3px solid var(--accent); border-radius: 6px; background: #f1faf8; }
.selected-batch > * { display: block; }
.selected-batch small { color: var(--muted); }
.selected-batch strong { color: var(--accent); }
.selected-batch span { font-size: .75rem; }
.course-action-note { display: flex; align-items: flex-start; gap: .45rem; margin-top: 12px; padding: 10px; color: #785500; border-radius: 6px; background: #fff8df; font-size: .75rem; }
.course-login-note { margin: 12px 0 0; color: var(--muted); font-size: .78rem; text-align: center; }

@media (max-width: 991.98px) {
    .course-detail-mark { display: none; }
    .course-action-card { position: static; margin-top: 4px; }
}

@media (max-width: 767.98px) {
    .course-detail-hero { min-height: 0; padding: 28px 22px; }
    .course-detail-summary h1 { font-size: 1.85rem; }
    .course-detail-summary > p { font-size: .9rem; }
    .course-detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
    .course-section-card { padding: 20px 17px; }
    .course-media-card { padding: 0; }
    .objective-grid { grid-template-columns: 1fr; }
    .curriculum-module-title, .curriculum-lessons > div { align-items: flex-start; }
    .assessment-summary-row { align-items: flex-start; flex-wrap: wrap; }
    .assessment-summary-row .badge { margin-left: 48px; }
}

/* Learning completion workflow */
.course-completed-state { display: flex; align-items: center; gap: .75rem; margin-top: 16px; padding: 13px 15px; color: #17633a; border: 1px solid #b9e4ca; border-radius: 7px; background: #effaf3; }
.course-completed-state > i { font-size: 1.45rem; }
.course-completed-state strong, .course-completed-state small { display: block; }
.course-completed-state small { color: #46705a; }
.completion-modal { border: 0; border-radius: 8px; box-shadow: 0 24px 60px rgba(16,39,70,.24); }
.completion-modal .modal-header { align-items: flex-start; padding: 20px 22px; border-bottom-color: var(--line); }
.completion-modal .modal-header > div { display: flex; align-items: center; gap: .7rem; }
.completion-modal-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #17633a; border-radius: 7px; background: #e3f6ea; font-size: 1.2rem; }
.completion-modal .modal-title { margin: 0; align-self: center; font-weight: 800; }
.completion-modal .modal-body { padding: 22px; }
.completion-modal .modal-footer { padding: 14px 22px 20px; border-top: 0; }

/* EduEOMS v1.31 visual system */
:root {
    --brand: #155eef;
    --brand-dark: #123261;
    --accent: #087f73;
    --coral: #e85d4a;
    --ink: #17233a;
    --muted: #657187;
    --line: #dce3ed;
    --surface: #ffffff;
    --soft: #f5f7fb;
    --sidebar: #102746;
    --info-soft: #eaf1ff;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: #f5f7fb;
}

.workspace-body { background: #f5f7fb; }
.app-sidebar { width: 264px; background: var(--sidebar); box-shadow: 10px 0 30px rgba(16, 39, 70, .12); transition: width .2s ease, transform .2s ease; }
.main-panel { margin-left: 264px; transition: margin-left .2s ease; }
.sidebar-brand { min-height: 76px; padding: 15px 16px; }
.brand-mark { background: #fff; color: var(--brand-dark); box-shadow: none; }
.brand-lockup strong, .public-brand strong { letter-spacing: 0; }
.sidebar-collapse, .topbar-icon {
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.15); border-radius: 6px; background: transparent; color: #fff;
}
.sidebar-collapse:hover { background: rgba(255,255,255,.1); }
.sidebar-link { min-height: 43px; padding: .55rem .68rem; font-weight: 600; }
.nav-icon { width: 28px; height: 28px; background: transparent; font-size: 1rem; }
.sidebar-link.active { background: rgba(255,255,255,.11); box-shadow: inset 3px 0 0 #55d6c2; }
.sidebar-link.active .nav-icon { color: #8cf1df; background: transparent; }
.sidebar-section { letter-spacing: .08em; }

@media (min-width: 992px) {
    body.sidebar-collapsed .app-sidebar { width: 78px; }
    body.sidebar-collapsed .main-panel { margin-left: 78px; }
    body.sidebar-collapsed .sidebar-brand { justify-content: center; padding-left: 10px; padding-right: 10px; }
    body.sidebar-collapsed .brand-copy,
    body.sidebar-collapsed .nav-label,
    body.sidebar-collapsed .sidebar-section,
    body.sidebar-collapsed .sidebar-footer .user-panel { display: none; }
    body.sidebar-collapsed .sidebar-collapse { position: absolute; left: 58px; top: 19px; width: 30px; background: var(--sidebar); }
    body.sidebar-collapsed .sidebar-nav { padding-left: 10px; padding-right: 10px; padding-top: 18px; overflow: visible; }
    body.sidebar-collapsed .sidebar-link { justify-content: center; padding-left: 0; padding-right: 0; }
    body.sidebar-collapsed .sidebar-footer { padding: 12px; }
}

.topbar { min-height: 72px; padding: 11px 28px; background: rgba(255,255,255,.96); box-shadow: none; }
.topbar-search { width: min(380px, 32vw); align-items: center; gap: .6rem; padding: 0 .85rem; border: 1px solid var(--line); border-radius: 7px; background: #f8fafc; }
.topbar-search form { flex: 1; }
.topbar-search input { width: 100%; min-height: 40px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.topbar-icon { color: var(--muted); background: #fff; border-color: var(--line); text-decoration: none; }
.topbar-icon:hover { color: var(--brand); text-decoration: none; border-color: #a8c3fa; }
.profile-menu { min-width: 240px; padding: .45rem; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 45px rgba(23,35,58,.16); }
.profile-menu-head { padding: .65rem .75rem .8rem; border-bottom: 1px solid var(--line); margin-bottom: .35rem; }
.profile-menu-head strong, .profile-menu-head span { display: block; overflow: hidden; text-overflow: ellipsis; }
.profile-menu-head span { color: var(--muted); font-size: .8rem; }
.profile-menu .dropdown-item { border-radius: 5px; padding: .55rem .7rem; }
.profile-menu .dropdown-item i { width: 24px; display: inline-block; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; padding: 0; font-size: 1.35rem; }
.app-shell { padding: 26px 28px 40px; }
.app-content { max-width: 1360px; }
.app-footer { display: flex; justify-content: space-between; padding: 16px 28px 22px; }
.page-title { font-size: 1.9rem; }
.card { box-shadow: 0 6px 20px rgba(23,35,58,.055); }
.card-header { background: #fff; }
.stat-card { min-height: 120px; border-top: 0; border-left: 4px solid var(--brand); }
.stat-card::after { display: none; }
.stat-icon { color: #9db7df; font-size: 1.65rem; }
.btn { letter-spacing: 0; }
.btn-primary { background: var(--brand); border-color: var(--brand); box-shadow: none; }
.btn-primary:hover, .btn-primary:focus { background: #0f4dcc; border-color: #0f4dcc; }
.table thead th { letter-spacing: .03em; background: #f7f9fc; }
.course-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.course-meta span { white-space: nowrap; }
.course-thumb-placeholder { color: var(--brand-dark); font-size: 1.6rem; background: #eaf1ff; }
.course-cover-placeholder { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; border-radius: 7px; color: var(--brand-dark); background: #eaf1ff; font-weight: 700; }
.course-cover-placeholder i { font-size: 2.25rem; color: var(--brand); }
.course-detail-heading { padding: 18px 20px; border-left: 4px solid var(--accent); background: #fff; border-radius: 8px; box-shadow: 0 5px 18px rgba(23,35,58,.05); }

/* Public website */
.public-site { background: #fff; }
.public-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(220,227,237,.9); }
.public-navbar { min-height: 76px; padding-left: 15px; padding-right: 15px; }
.public-brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.public-brand:hover { color: var(--ink); text-decoration: none; }
.public-brand strong, .public-brand small { display: block; }
.public-brand strong { font-size: 1.15rem; }
.public-brand small { color: var(--muted); font-size: .72rem; }
.public-navbar .nav-link { color: #3f4b60 !important; font-weight: 600; padding: .7rem .8rem !important; }
.public-navbar .nav-link:hover { color: var(--brand) !important; }
.landing-hero { min-height: 680px; position: relative; overflow: hidden; background: #102746; }
.landing-hero-media { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(10,31,58,.96) 0%, rgba(10,31,58,.82) 42%, rgba(10,31,58,.18) 72%, rgba(10,31,58,.08) 100%), url('../images/edueoms-hero.webp'); background-position: center; background-size: cover; }
.landing-hero-content { position: relative; min-height: 680px; display: flex; align-items: center; padding-top: 70px; padding-bottom: 70px; }
.hero-copy { width: min(660px, 58%); color: #fff; }
.hero-kicker, .section-heading > span, .landing-cta span { display: block; color: #6ee7d6; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .85rem; }
.hero-copy h1 { font-size: 3.35rem; line-height: 1.08; font-weight: 800; letter-spacing: 0; margin-bottom: 1.25rem; }
.hero-copy p { max-width: 610px; color: rgba(255,255,255,.82); font-size: 1.08rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.landing-stat-band { position: relative; background: #fff; border-bottom: 1px solid var(--line); }
.landing-stat-band .container-xl { margin-top: -35px; position: relative; z-index: 2; background: #fff; border-radius: 8px; box-shadow: 0 16px 40px rgba(23,35,58,.12); }
.landing-stat-band .row > div { padding: 24px 28px; border-right: 1px solid var(--line); }
.landing-stat-band .row > div:last-child { border-right: 0; }
.landing-stat-band strong, .landing-stat-band span { display: block; }
.landing-stat-band strong { color: var(--brand-dark); font-size: 1.8rem; }
.landing-stat-band span { color: var(--muted); font-size: .85rem; }
.landing-section { padding: 88px 0; }
.section-heading { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.section-heading > span { color: var(--accent); }
.section-heading h2 { color: var(--ink); font-size: 2.25rem; line-height: 1.2; font-weight: 800; }
.section-heading p { color: var(--muted); line-height: 1.7; }
.section-heading-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 2rem; text-align: left; }
.section-heading-row p { margin-bottom: 0; }
.feature-grid > div { margin-bottom: 22px; }
.feature-item { height: 100%; padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.feature-item:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(23,35,58,.09); }
.feature-item > i { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; color: var(--brand); background: #eaf1ff; font-size: 1.35rem; }
.feature-item:nth-child(2n) > i { color: var(--accent); background: #e8f7f4; }
.feature-item h3, .landing-course-card h3, .audience-grid h3 { margin: 1.1rem 0 .55rem; font-size: 1.08rem; font-weight: 800; }
.feature-item p, .landing-course-card p, .audience-grid p { color: var(--muted); line-height: 1.65; margin: 0; }
.course-showcase { background: #f5f7fb; }
.landing-course-card { height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.landing-course-card:hover { transform: translateY(-3px); box-shadow: 0 15px 32px rgba(23,35,58,.1); }
.landing-course-cover { min-height: 170px; padding: 22px; display: flex; justify-content: space-between; align-items: flex-start; color: #fff; background: #173b6f; }
.landing-course-cover:nth-child(even) { background: #173b6f; }
.landing-course-cover span { padding: .3rem .55rem; border-radius: 5px; background: rgba(255,255,255,.14); font-size: .75rem; font-weight: 700; }
.landing-course-cover > i { align-self: flex-end; font-size: 2.6rem; color: #76e4d1; }
.landing-course-body { position: relative; padding: 22px; }
.landing-course-body h3 { padding-right: 40px; }
.landing-course-body h3 a { color: var(--ink); }
.course-label { color: var(--accent); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.landing-course-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; color: var(--muted); font-size: .78rem; margin-top: 1.1rem; }
.course-arrow { position: absolute; right: 20px; top: 18px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; }
.audience-grid article { height: 100%; padding: 28px; border-top: 3px solid var(--brand); background: #fff; box-shadow: 0 8px 24px rgba(23,35,58,.06); }
.audience-grid .col-md-4:nth-child(2) article { border-color: var(--accent); }
.audience-grid .col-md-4:nth-child(3) article { border-color: var(--coral); }
.audience-grid article > span { color: #a7b1c0; font-weight: 800; }
.how-section { background: #102746; color: #fff; }
.how-section .section-heading h2 { color: #fff; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.16); }
.how-step { min-height: 130px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; background: #102746; }
.how-step strong { color: #6ee7d6; }
.how-step span { font-weight: 700; }
.landing-cta { padding: 58px 0; color: #fff; background: var(--accent); }
.landing-cta .container-xl { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.landing-cta span { color: #d2fff7; }
.landing-cta h2 { font-size: 2rem; font-weight: 800; }
.landing-cta p { margin-bottom: 0; color: rgba(255,255,255,.82); }
.landing-cta .btn + .btn { margin-left: .5rem; }
.public-footer { padding: 56px 0 20px; color: rgba(255,255,255,.74); background: #0b1d35; }
.public-footer h2 { color: #fff; font-size: .9rem; font-weight: 800; text-transform: uppercase; }
.public-footer a { display: block; color: rgba(255,255,255,.72); margin: .6rem 0; }
.public-footer .public-brand { display: inline-flex; color: #fff; }
.public-footer .public-brand small { color: rgba(255,255,255,.6); }

/* EduEOMS supplied brand assets */
.brand-logo-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}
.public-brand .brand-logo-icon { width: 48px; height: 48px; flex-basis: 48px; }
.footer-brand .brand-logo-icon { width: 54px; height: 54px; flex-basis: 54px; }
.auth-brand-logo { display: block; width: min(260px, 100%); height: auto; border-radius: 6px; }
.certificate-brand-logo { display: block; width: 210px; max-width: 100%; height: auto; }

@media (min-width: 992px) {
    body.sidebar-collapsed .sidebar-brand .brand-logo-icon { width: 42px; height: 42px; flex-basis: 42px; }
}

@media (max-width: 575.98px) {
    .public-brand .brand-logo-icon { width: 42px; height: 42px; flex-basis: 42px; }
    .auth-brand-logo { width: 210px; }
    .certificate-brand-logo { width: 180px; }
}

@media print {
    .certificate-brand-logo { width: 190px; }
}
.public-footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }
.public-site .auth-wrap, .public-site > main > .container { padding-top: 45px; padding-bottom: 45px; }

@media (max-width: 991.98px) {
    .hero-copy { width: 72%; }
    .hero-copy h1 { font-size: 2.65rem; }
    .landing-hero, .landing-hero-content { min-height: 590px; }
    .how-grid { grid-template-columns: repeat(2, 1fr); }
    .landing-stat-band .row > div:nth-child(2) { border-right: 0; }
}

@media (max-width: 767.98px) {
    .app-footer, .public-footer-bottom, .landing-cta .container-xl, .section-heading-row { flex-direction: column; align-items: flex-start; }
    .app-footer { gap: .35rem; text-align: left; }
    .landing-hero, .landing-hero-content { min-height: 560px; }
    .landing-hero-media { background-image: linear-gradient(90deg, rgba(10,31,58,.96), rgba(10,31,58,.72)), url('../images/edueoms-hero.webp'); background-position: 62% center; }
    .hero-copy { width: 100%; }
    .hero-copy h1 { font-size: 2.2rem; }
    .hero-copy p { font-size: .98rem; }
    .landing-stat-band .container-xl { margin-top: 0; border-radius: 0; box-shadow: none; }
    .landing-stat-band .row > div { padding: 18px 20px; border-bottom: 1px solid var(--line); }
    .landing-section { padding: 60px 0; }
    .section-heading { text-align: left; margin-bottom: 30px; }
    .section-heading h2 { font-size: 1.8rem; }
    .audience-grid > div { margin-bottom: 16px; }
    .how-grid { grid-template-columns: 1fr; }
    .landing-cta .btn { display: block; width: 100%; margin: .5rem 0 0 !important; }
    .course-card-row { display: block; }
    .course-card-row .course-thumb { width: 100%; height: 150px; margin: 0 0 14px !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Course catalog v1.32 */
.public-inner-page { padding-top: 34px; padding-bottom: 70px; }
.course-catalog-page { width: 100%; }
.catalog-heading { min-height: 190px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 22px; padding: 34px 38px; overflow: hidden; color: #fff; border-left: 6px solid #55d6c2; border-radius: 8px; background: #123261; }
.catalog-heading h1 { margin: .25rem 0 .6rem; font-size: 2.2rem; line-height: 1.15; font-weight: 800; }
.catalog-heading p { max-width: 620px; margin: 0; color: rgba(255,255,255,.78); }
.catalog-eyebrow { color: #74e5d4; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.catalog-filter-panel { margin-bottom: 28px; padding: 20px 22px 5px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 6px 20px rgba(23,35,58,.05); }
.catalog-filter-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid #edf1f6; }
.catalog-filter-title > div { display: flex; align-items: center; gap: .75rem; }
.catalog-filter-title > div > i { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: var(--brand); border-radius: 7px; background: #eaf1ff; }
.catalog-filter-title strong, .catalog-filter-title small { display: block; }
.catalog-filter-title small { color: var(--muted); font-size: .78rem; }
.catalog-filter-panel label { font-size: .78rem; color: #4e5a70; }
.catalog-filter-panel label i { margin-right: .25rem; color: #8290a5; }
.catalog-filter-panel .form-control { min-height: 42px; font-size: .88rem; }
.catalog-results { padding: 0; }
.catalog-results-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 8px; }
.catalog-results-heading h2 { margin: 0 0 .3rem; font-size: 1.35rem; font-weight: 800; }
.catalog-results-heading p { margin: 0; color: var(--muted); font-size: .88rem; }
.catalog-table-wrap { overflow: visible; }
#courses-table { border-collapse: separate !important; border-spacing: 0; }
#courses-table thead { display: none; }
#courses-table tbody { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
#courses-table tbody tr, #courses-table tbody td { display: block; width: 100% !important; height: 100%; padding: 0; border: 0; background: transparent !important; }
#courses-table tbody tr:hover { background: transparent !important; }
.catalog-table-wrap .dataTables_wrapper > .row:first-child { align-items: center; margin-bottom: 18px; }
.catalog-table-wrap .dataTables_length label, .catalog-table-wrap .dataTables_filter label { margin-bottom: 0; color: var(--muted); font-size: .82rem; }
.catalog-table-wrap .dataTables_filter input { width: min(320px, 70vw); min-height: 42px; margin-left: 0; padding: .45rem .8rem .45rem 2.2rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23657187' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") no-repeat .75rem center; }
.catalog-table-wrap .dataTables_info { padding-top: 20px !important; color: var(--muted); font-size: .84rem; }
.catalog-table-wrap .dataTables_paginate { padding-top: 14px; }
.catalog-course-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 5px 18px rgba(23,35,58,.055); transition: transform .18s ease, box-shadow .18s ease; }
.catalog-course-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(23,35,58,.11); }
.catalog-course-cover { height: 166px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #fff; text-decoration: none; background: #173b6f; }
.catalog-course-cover:hover { color: #fff; text-decoration: none; }
.catalog-course-cover > i { font-size: 2.8rem; color: rgba(255,255,255,.76); }
.catalog-course-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-tone-2 { background: #087f73; }
.cover-tone-3 { background: #844f77; }
.cover-tone-4 { background: #a34a3e; }
.catalog-category, .catalog-price { position: absolute; top: 14px; padding: .3rem .52rem; border-radius: 5px; font-size: .7rem; font-weight: 700; }
.catalog-category { left: 14px; max-width: 68%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(8,24,45,.72); }
.catalog-price { right: 14px; color: #123261; background: #fff; }
.catalog-course-body { flex: 1 1 auto; padding: 19px 19px 15px; }
.catalog-course-level { display: flex; gap: .45rem; color: var(--accent); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.catalog-course-level span + span::before { content: "|"; margin-right: .45rem; color: #b5bfcc; }
.catalog-course-body h2 { min-height: 48px; margin: .6rem 0 .55rem; font-size: 1.05rem; line-height: 1.42; font-weight: 800; }
.catalog-course-body h2 a { color: var(--ink); }
.catalog-course-body h2 a:hover { color: var(--brand); text-decoration: none; }
.catalog-course-body > p { min-height: 63px; margin-bottom: 1rem; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.catalog-instructor { display: flex; align-items: center; gap: .55rem; padding-top: .85rem; border-top: 1px solid #edf1f6; }
.catalog-avatar { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--brand-dark); border-radius: 50%; background: #eaf1ff; font-size: .76rem; font-weight: 800; }
.catalog-instructor small, .catalog-instructor strong { display: block; }
.catalog-instructor small { color: var(--muted); font-size: .65rem; }
.catalog-instructor strong { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.catalog-course-footer { min-height: 48px; display: flex; align-items: center; gap: .8rem; padding: 10px 14px 10px 19px; color: var(--muted); border-top: 1px solid #edf1f6; background: #fbfcfe; font-size: .72rem; }
.catalog-course-footer > a { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; margin-left: auto; border-radius: 6px; color: #fff; background: var(--brand); }
.catalog-empty { grid-column: 1 / -1; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; color: var(--muted); }
.catalog-empty i { margin-bottom: .4rem; font-size: 2rem; color: #9aa8ba; }
.catalog-empty strong { color: var(--ink); }
.catalog-loading { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1rem; color: var(--brand-dark); border-radius: 7px; background: #fff; box-shadow: 0 8px 24px rgba(23,35,58,.12); }

@media (max-width: 1199.98px) {
    #courses-table tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .public-inner-page { padding-top: 18px; padding-bottom: 45px; }
    .catalog-heading { min-height: 220px; align-items: flex-start; flex-direction: column; justify-content: center; padding: 28px 24px; }
    .catalog-heading h1 { font-size: 1.8rem; }
    .catalog-filter-title { align-items: flex-start; }
    .catalog-filter-title small { display: none; }
    #courses-table tbody { grid-template-columns: 1fr; }
    .catalog-table-wrap .dataTables_wrapper > .row:first-child > div { width: 100%; }
    .catalog-table-wrap .dataTables_filter { margin-top: 10px; text-align: left; }
    .catalog-table-wrap .dataTables_filter input { width: 100%; }
    .catalog-table-wrap .dataTables_paginate { display: flex; justify-content: center; }
}

/* v1.46 shared workspace: final overrides intentionally follow legacy themes. */
:root {
    --primary: #155eef;
    --primary-hover: #124bc0;
    --brand: var(--primary);
    --soft: #f3f6fb;
    --success: #17633a;
    --warning: #875b00;
    --danger: #b42318;
    --surface: #fff;
    --line: #d8e1ee;
    --ink: #17233a;
    --muted: #56647a;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --radius-sm: 4px;
    --radius: 8px;
    --shadow: 0 3px 14px rgba(23,35,58,.06);
}
html { scroll-behavior: smooth; }
body, .workspace-body { background: var(--soft); color: var(--ink); }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.6; }
button, a, input, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.layout-frame { min-height: 100dvh; }
.main-panel { width: calc(100% - 264px); min-width: 0; min-height: 100dvh; }
.app-shell, .app-content, .workspace-panel, .directory-panel, .card, .row > [class*="col-"] { min-width: 0; }
.app-content { width: 100%; }
.topbar { padding-top: max(12px, env(safe-area-inset-top)); }
.topbar-left { flex: 1; gap: 8px; overflow: hidden; }
.topbar-left > div { min-width: 0; }
.topbar-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { flex-shrink: 0; gap: 8px; }
.topbar-icon, .menu-toggle, .sidebar-close, .sidebar-collapse { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
.topbar-user { min-height: 44px; }
.sidebar-link, .sidebar-group-toggle, .sidebar-sublink, .directory-tabs a { min-height: 44px; }
.sidebar-brand, .topbar, .mobile-tabs { user-select: none; }
.app-sidebar { height: 100dvh; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.app-footer { flex-wrap: wrap; gap: 8px; font-size: .8rem; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.page-title, .workspace-page-heading h1 { font-size: 1.75rem; line-height: 1.25; overflow-wrap: anywhere; }
.page-subtitle, .workspace-page-heading p { color: var(--muted); font-size: .95rem; }
.btn { min-height: 44px; border-radius: 6px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: normal; }
.btn-block { display: flex; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }
.form-control, select.form-control, .custom-select { min-height: 44px; font-size: 1rem; border-radius: 6px; color: var(--ink); }
label, .simple-registration-form label, .directory-filter-panel label { font-size: .875rem; color: var(--ink); }
.small-muted, .text-muted { color: var(--muted) !important; }
.card { border-radius: var(--radius); box-shadow: var(--shadow); }
.card-header, .card-body, .card-footer { overflow-wrap: anywhere; }
.card-body { padding: 24px; }
.badge { line-height: 1.4; white-space: normal; }
.progress { border-radius: 4px; }
.directory-tabs { max-width: 100%; flex-wrap: wrap; }
.directory-table-wrap, .report-table-container, .table-responsive, .ui-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.ui-table-scroll { position: relative; }
.ui-table-scroll th:first-child, .ui-table-scroll td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; }
.ui-table-scroll th:first-child { z-index: 2; background: var(--soft); }
.dataTables_wrapper { min-width: 0; max-width: 100%; }
.directory-panel .table tbody td, .directory-user strong { font-size: .875rem; }
.directory-user small { font-size: .75rem; }
.dataTables_wrapper .row { margin-left: 0; margin-right: 0; }
.dataTables_wrapper .dataTables_filter input { max-width: 100%; min-height: 44px; }
.pagination { flex-wrap: wrap; gap: 4px; }
.page-link { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.workspace-welcome, .workspace-page-heading { flex-wrap: wrap; gap: 16px; }
.workspace-welcome > div, .workspace-page-heading > div { min-width: 0; }
.workspace-welcome-actions { flex-wrap: wrap; }
.workspace-stat-card { height: 100%; }
.management-chart-container, .audit-chart-container { max-width: 100%; }
.catalog-course-cover { aspect-ratio: 16 / 9; }
.catalog-course-cover img { width: 100%; height: 100%; object-fit: cover; }
.catalog-instructor strong { max-width: 100%; }
.catalog-course-footer > a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.answer-tile { display: flex; align-items: center; position: relative; min-height: 56px; padding: 0; margin: 8px 0; }
.answer-tile input { position: absolute; left: 16px; top: 50%; margin: 0; transform: translateY(-50%); width: 20px; height: 20px; z-index: 1; accent-color: var(--primary); }
.answer-tile label { width: 100%; min-height: 56px; padding: 16px 16px 16px 52px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; line-height: 1.5; }
.answer-tile input:checked + label { border-color: var(--primary); background: #eaf1ff; color: #123261; }
.answer-tile input:focus-visible + label { outline: 3px solid var(--primary); outline-offset: 2px; }
.answer-tile input:disabled + label { cursor: default; opacity: .7; }
.lesson-backdrop, .mobile-tabs { display: none; }
.player-content { font-size: 1rem; line-height: 1.8; white-space: pre-wrap; }
.player-content .embed-responsive { white-space: normal; }
.lesson-pane .card-header { gap: 12px; }
.lesson-actions { gap: 8px; background: #fff; }
.lesson-actions .btn { flex: 1; }
.ui-snackbar { position: fixed; left: 16px; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 1095; margin: auto; max-width: 520px; padding: 14px 16px; border-radius: 8px; color: #fff; background: #17315f; box-shadow: var(--shadow); }
.ui-snackbar[data-kind="danger"] { background: #8e1c13; }
.ui-snackbar[hidden] { display: none; }
.ui-loading { height: 3px; background: var(--primary); position: fixed; top: 0; left: 0; right: 0; z-index: 1200; animation: ui-pulse 1s ease-in-out infinite alternate; }
@keyframes ui-pulse { from { opacity: .4; } to { opacity: 1; } }
.app-content { animation: ui-enter .18s ease-out; }
@keyframes ui-enter { from { opacity: .8; } to { opacity: 1; } }
@media (min-width: 992px) {
    body.sidebar-collapsed .main-panel { width: calc(100% - 78px); }
    .ui-snackbar { bottom: 24px; }
}
@media (max-width: 991.98px) {
    .main-panel, body.sidebar-collapsed .main-panel { width: 100%; margin-left: 0; }
    .app-sidebar { width: min(300px, 88%); z-index: 1040; }
    body.sidebar-open, body.lesson-drawer-open { overflow: hidden; }
    .app-shell { padding: 20px 16px 24px; }
    .topbar { min-height: 64px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); gap: 8px; }
    .topbar-eyebrow { display: none; }
    .topbar-title { font-size: 1rem; }
    .topbar-user-meta { display: none; }
    .mobile-tabs { position: fixed; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); bottom: 0; left: 0; right: 0; z-index: 1025; padding: 6px max(4px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left)); background: #fff; border-top: 1px solid var(--line); }
    .mobile-tabs a { min-height: 56px; min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; color: var(--muted); font-size: .65rem; line-height: 1.3; text-decoration: none; text-align: center; border-radius: 6px; }
    .mobile-tabs i { font-size: 1.25rem; }
    .mobile-tabs a.active { color: var(--primary); background: #eaf1ff; }
    .workspace-body:not(.immersive-screen) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    .immersive-screen { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
    .lesson-actions, .assessment-actions { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1025; padding: 12px 12px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
    .assessment-actions .btn { width: 100%; }
    .content-sidebar { position: fixed; inset: auto 0 0; max-height: 80dvh; z-index: 1050; transform: translateY(110%); transition: transform .2s; border-radius: 8px 8px 0 0; padding-bottom: env(safe-area-inset-bottom); visibility: hidden; }
    .content-sidebar .list-group { overflow-y: auto; max-height: 64dvh; overscroll-behavior: contain; }
    body.lesson-drawer-open .content-sidebar { transform: translateY(0); visibility: visible; }
    body.lesson-drawer-open .lesson-backdrop { display: block; position: fixed; inset: 0; z-index: 1045; background: #17233a80; }
    .learning-workspace > .col-lg-4 { height: 0; }
    .keyboard-open .mobile-tabs, .keyboard-open .lesson-actions, .keyboard-open .assessment-actions, .keyboard-open .ui-form-actions { display: none !important; }
    .keyboard-open .pwa-notice { display: none; }
    .ui-form-actions { position: sticky; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 10; padding: 12px; background: #fff; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
    .pwa-notice { bottom: calc(82px + env(safe-area-inset-bottom)); }
    .immersive-screen .pwa-notice { bottom: calc(90px + env(safe-area-inset-bottom)); }
}
@media (max-width: 767.98px) {
    .auth-panel { display: none !important; }
    .auth-wrap { min-height: 0; padding: 24px 16px; }
    .auth-wrap > .row { margin: 0; }
    .auth-wrap .col-lg-9 { padding: 0; }
    .auth-card .card-body { padding: 24px !important; }
    .public-navbar { min-height: 64px; padding-top: max(8px, env(safe-area-inset-top)); }
    .public-brand small { display: none; }
    .navbar-toggler { min-width: 44px; min-height: 44px; }
    .password-field > button, .captcha-refresh { width: 44px; height: 44px; }
    .password-field > button { top: 0; right: 0; }
    .registration-security-check .captcha-box { min-height: 52px; }
    .page-title, .workspace-page-heading h1 { font-size: 1.5rem; }
    .page-subtitle { font-size: .875rem; }
    .card-body { padding: 16px; }
    .app-footer { padding-left: 16px; padding-right: 16px; }
    .dataTables_filter, .dataTables_length { text-align: left !important; }
    .dataTables_filter input { width: 100% !important; margin-left: 0 !important; }
    .dataTables_wrapper .row > div { padding: 4px 0; }
    .modal-dialog { margin: 0; max-width: none; height: 100dvh; }
    .modal-content { height: 100%; border: 0; border-radius: 0; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
    .modal-body { overflow-y: auto; overscroll-behavior: contain; }
    .modal-header .close { min-width: 44px; min-height: 44px; }
    .certificate-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
    .certificate-frame { padding: 24px 14px; min-height: 0; }
    .certificate-main { padding: 24px 0; }
    .certificate-main h2 { font-size: 1.75rem; }
    .certificate-main h3 { font-size: 1.5rem; padding-left: 0; padding-right: 0; }
    .certificate-main h4 { font-size: 1.15rem; }
    .certificate-details { grid-template-columns: 1fr; padding: 16px 8px; }
    .certificate-signatures { grid-template-columns: 1fr 1fr; gap: 16px; }
    .certificate-seal { grid-column: 1 / -1; grid-row: 1; }
    .certificate-number-note, .certificate-details strong { overflow-wrap: anywhere; }
    .verification-input-group { flex-wrap: wrap; gap: 8px; }
    .verification-input-group input { flex-basis: 100%; border: 1px solid var(--line); border-radius: 6px; }
    .verification-input-group .btn { width: 100%; border-radius: 6px; }
    .verification-input-group > i { top: 16px; }
    .verification-details { grid-template-columns: 1fr; }
    .verification-result > header { flex-wrap: wrap; }
    .catalog-heading { min-height: 0; padding: 24px; }
    .catalog-heading h1 { font-size: 1.75rem; }
    .landing-hero, .landing-hero-content { min-height: 480px; }
    .hero-copy h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    .mobile-tabs, .app-back, .ui-snackbar, .pwa-notice { display: none !important; }
    .certificate-screen { padding: 0; }
    .certificate-screen .main-panel { width: 100%; }
}
