html,
body {
    height: 100%;
    background: #f3f4f6;
    font-family: "Public Sans", sans-serif;
    color: #4b5563;
}

body.larkon-app {
    min-height: 100vh;
    background: #f3f4f6;
}

html[data-bs-theme="dark"] body,
html[data-bs-theme="dark"] body.larkon-app {
    background: #22282e;
    color: #cbd5e1;
}

:root {
    --larkon-main-nav-width: 280px;
    --larkon-main-nav-width-sm: 75px;
    --larkon-topbar-height: 100px;
    --larkon-menu-bg: #f3f8ff;
    --larkon-topbar-bg: #f7fbff;
    --larkon-border: #dce9f7;
    --larkon-text: #58718f;
    --larkon-heading: #173055;
    --larkon-primary: #0b45f0;
    --larkon-secondary: #08b8d8;
    --larkon-success: #08d866;
    --larkon-page-bg: #f3f4f6;
    --larkon-card-bg: #ffffff;
    --larkon-card-footer-bg: #f5f7fb;
}

.wrapper {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background: var(--larkon-page-bg);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1005;
    height: var(--larkon-topbar-height);
    padding-left: var(--larkon-main-nav-width);
    background: var(--larkon-topbar-bg);
    border-bottom: 1px solid var(--larkon-border);
    transition: all .3s ease-in-out;
}

.topbar .container-fluid,
.page-content > .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.navbar-header {
    min-height: var(--larkon-topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar .topbar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--larkon-topbar-height);
}

.button-toggle-menu,
.topbar-button {
    border: none;
    background: transparent;
    color: #707793;
    transition: all .2s ease-in-out;
}

.button-toggle-menu:hover,
.topbar-button:hover,
.topbar-button.show {
    color: var(--larkon-primary);
}

.topbar-button {
    border-radius: 999px;
    padding: .5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topbar-profile-button {
    padding: .35rem .65rem .35rem .35rem;
}

.topbar-profile-copy {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.1;
    min-width: 0;
}

.topbar-profile-copy strong {
    max-width: 150px;
    color: var(--larkon-heading);
    font-size: .86rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-profile-copy small {
    max-width: 150px;
    color: #8a96ad;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-button.pe-none {
    border-radius: 0;
    color: var(--larkon-heading);
    padding-left: 0;
    padding-right: 0;
    font-size: 1rem;
    letter-spacing: .05em;
}

.topbar-badge {
    right: -7px;
    top: 7px !important;
}

.app-search .form-control {
    border: none;
    height: 42px;
    min-width: 220px;
    padding-left: 40px;
    background: #e9f4ff;
    box-shadow: none;
}

.app-search .search-widget-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
}

.dropdown-lg {
    width: min(400px, calc(100vw - 2rem));
    border: 1px solid var(--larkon-border);
    border-radius: 1rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    background: #ffffff;
}

.topbar-notification-list {
    max-height: 320px;
    overflow: auto;
}

.topbar-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 184, 216, 0.14);
}

.topbar-meta {
    color: #94a3b8;
    font-size: .75rem;
}

.main-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 1010;
    width: var(--larkon-main-nav-width);
    min-width: var(--larkon-main-nav-width);
    background: var(--larkon-menu-bg);
    border-right: 1px solid var(--larkon-border);
    box-shadow: inset -8px 0 8px -8px rgba(134, 110, 110, 0.25);
    transition: all .3s ease-in-out;
}

.logo-box {
    height: var(--larkon-topbar-height);
    padding: 0 25px;
    display: flex;
    align-items: center;
}

.logo-box a {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    text-decoration: none;
}

.logo-brand {
    max-width: calc(100% - 40px);
}

.logo-sm {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-sm.business-logo-sm {
    width: 101px;
    height: 40px;
    object-fit: contain;
}

.logo-lg {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.button-sm-hover {
    position: absolute;
    top: calc(var(--larkon-topbar-height) / 2);
    right: 16px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--larkon-text);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button-sm-hover:hover {
    color: var(--larkon-primary);
}

.button-sm-hover iconify-icon,
.button-sm-hover svg {
    width: 2em;
    height: 2em;
    font-size: 2em;
    line-height: 1;
}

.scrollbar {
    height: calc(100% - var(--larkon-topbar-height));
    overflow-y: auto;
    padding: 1rem 0 1rem;
}

.main-nav .navbar-nav {
    padding: 0;
    margin: 0;
}

.main-nav .menu-title {
    list-style: none;
    cursor: default;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--larkon-text);
    opacity: .6;
    font-weight: 600;
    padding: 10px 31px;
}

.main-nav .nav-item,
.main-nav .sub-nav-item {
    list-style: none;
}

.main-nav .nav-link,
.main-nav .sub-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    color: var(--larkon-text);
    padding: 10px 25px;
    border-left: 3px solid transparent;
    transition: all .2s ease-in-out;
    position: relative;
}

.main-nav .nav-link.active,
.main-nav .nav-item.active > .nav-link,
.main-nav .nav-link:hover,
.main-nav .sub-nav-link.active,
.main-nav .sub-nav-link:hover {
    color: var(--larkon-primary);
    border-left-color: var(--larkon-primary);
    background: transparent;
}

.main-nav .nav-icon {
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.main-nav .nav-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-nav .menu-arrow::after {
    content: "\ea4a";
    font-family: boxicons;
    margin-left: auto;
    color: currentColor;
    opacity: .6;
    transition: transform .2s ease;
}

.main-nav .menu-arrow[aria-expanded="true"]::after {
    transform: rotate(-180deg);
}

.main-nav .sub-navbar-nav {
    padding: .25rem 0 .4rem 0;
    display: block;
    flex-direction: column;
    flex-wrap: nowrap;
}

.main-nav .sub-nav-link {
    padding: 7px 25px 7px 57px;
    font-size: .95rem;
    width: 100%;
}

.main-nav .sub-nav-item {
    display: block;
    width: 100%;
}

.larkon-sidebar-foot {
    padding: 1rem 1rem 0;
}

.larkon-side-card {
    background: linear-gradient(135deg, rgba(8, 184, 216, 0.12), rgba(8, 216, 102, 0.12));
    border: 1px solid var(--larkon-border);
    border-radius: 1rem;
    padding: 1rem;
    color: var(--larkon-heading);
}

.larkon-side-card small,
.larkon-side-card span {
    color: var(--larkon-text);
}

.app-surface {
    border: 1px solid var(--larkon-border) !important;
    border-radius: 1rem !important;
    box-shadow: none !important;
    background: var(--larkon-card-bg);
}

.app-surface .card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--larkon-border);
    background: transparent;
}

.app-surface .card-body {
    padding: 1.25rem;
}

.page-content {
    position: relative;
    min-height: calc(100vh - var(--larkon-topbar-height));
    margin-left: var(--larkon-main-nav-width);
    display: flex;
    flex-direction: column;
    transition: all .3s ease-in-out;
    background: var(--larkon-page-bg);
}

.page-content > .container-fluid {
    flex: 1 0 auto;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.page-content .card,
.auth-larkon-shell .card {
    border: 1px solid var(--larkon-border);
    border-radius: .75rem;
    box-shadow: none;
    background: var(--larkon-card-bg);
    margin-bottom: 1.5rem;
}

.card-footer.bg-light,
.table thead.bg-light,
.table thead[class*="bg-light"] {
    background: var(--larkon-card-footer-bg) !important;
}

.page-content .card-title,
.auth-larkon-shell h2,
.auth-larkon-shell h3 {
    color: var(--larkon-heading);
}

.avatar-md {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.avatar-title {
    line-height: 1;
}

.bg-soft-primary {
    background: rgba(8, 184, 216, 0.16) !important;
}

.text-primary {
    color: var(--larkon-primary) !important;
}

.btn-soft-primary {
    color: var(--larkon-primary);
    background: rgba(8, 184, 216, 0.14);
    border-color: rgba(8, 184, 216, 0.14);
}

.btn-soft-primary:hover,
.btn-soft-primary:focus {
    color: #fff;
    background: linear-gradient(90deg, var(--larkon-secondary), var(--larkon-primary));
    border-color: transparent;
}

.btn-soft-dark {
    color: var(--larkon-heading);
    background: #eef2f7;
    border-color: #eef2f7;
}

.btn-primary {
    background: linear-gradient(90deg, var(--larkon-secondary), var(--larkon-primary));
    border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(90deg, var(--larkon-primary), var(--larkon-secondary));
    border-color: transparent;
}

.btn-outline-light {
    border-color: #e5e7eb;
    color: #6b7280;
    background: #fff;
}

.btn-outline-light.active,
.btn-outline-light:hover {
    border-color: var(--larkon-primary);
    color: var(--larkon-primary);
    background: rgba(8, 184, 216, 0.12);
}

.badge-soft-success {
    background: rgba(8, 216, 102, 0.14);
    color: var(--larkon-success);
}

.badge-soft-danger {
    background: rgba(239, 68, 68, 0.14);
    color: #ef4444;
}

.form-control,
.form-select,
.bootstrap-select .dropdown-toggle {
    min-height: 46px;
    width: 100%;
    border: 1px solid var(--larkon-border);
    border-radius: .85rem;
    background: #ffffff;
    color: var(--larkon-heading);
    box-shadow: none;
}

.form-select {
    min-width: 220px;
    padding-left: 1rem;
    padding-right: 2.75rem;
    text-overflow: ellipsis;
}

.bootstrap-select {
    width: 100% !important;
    min-width: 220px;
}

.bootstrap-select.form-select {
    min-height: 0 !important;
    min-width: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.bootstrap-select .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 1rem;
    padding-right: 1rem;
}

.bootstrap-select.form-select > .dropdown-toggle {
    min-height: 46px;
    border: 1px solid var(--larkon-border) !important;
    border-radius: .85rem !important;
    background: var(--larkon-card-bg, #fff) !important;
    color: var(--larkon-heading) !important;
    box-shadow: none !important;
}

.bootstrap-select .filter-option,
.bootstrap-select .filter-option-inner,
.bootstrap-select .filter-option-inner-inner {
    width: 100%;
    min-width: 0;
}

.bootstrap-select .filter-option-inner-inner {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

textarea.form-control {
    min-height: auto;
}

.form-control:focus,
.form-select:focus,
.bootstrap-select .dropdown-toggle:focus,
.bootstrap-select > select.mobile-device:focus + .dropdown-toggle {
    border-color: rgba(8, 184, 216, 0.45);
    box-shadow: 0 0 0 .2rem rgba(8, 184, 216, 0.12) !important;
}

.table {
    color: var(--larkon-heading);
    margin-bottom: 0;
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(8, 184, 216, 0.05);
}

.table > :not(caption) > * > * {
    padding: 1rem 1.25rem;
    border-bottom-color: var(--larkon-border);
    vertical-align: middle;
}

.table thead th {
    background: #f8f9fb;
    color: var(--larkon-text);
    font-size: .88rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    border-bottom-width: 1px;
}

.table tbody td {
    font-size: .92rem;
    font-weight: 600;
    color: #5d6f86;
}

.table-hover tbody tr:hover {
    background: rgba(8, 184, 216, 0.05);
}

.app-table {
    border: 1px solid var(--larkon-border);
    border-radius: .5rem;
    overflow-x: auto;
    overflow-y: hidden;
    background: var(--larkon-card-bg);
    -webkit-overflow-scrolling: touch;
}

.app-table .table {
    min-width: 980px;
    margin-bottom: 0;
}

.app-table::-webkit-scrollbar {
    height: 8px;
}

.app-table::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}

.app-table::-webkit-scrollbar-thumb {
    background: #c8d4e4;
    border-radius: 999px;
}

.app-table::-webkit-scrollbar-thumb:hover {
    background: #9fb0c7;
}

.app-table .table > :not(caption) > * > * {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.table-action-group {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    white-space: nowrap;
}

.table-action-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: .5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.15rem;
    line-height: 1;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.table-action-btn:hover {
    transform: translateY(-1px);
}

.table-action-view {
    background: #eef2f7;
    color: #334155;
}

.table-action-edit {
    background: rgba(8, 184, 216, 0.12);
    color: var(--larkon-secondary);
}

.table-action-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.table .btn-sm {
    min-height: 38px;
    padding: .45rem .8rem;
    border-radius: .5rem;
    font-size: .82rem;
}

.table .badge {
    border-radius: .45rem;
    padding: .38rem .6rem;
    font-size: .75rem;
}

.app-datatable-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-datatable-title {
    min-width: 220px;
    flex: 1 1 auto;
}

.app-datatable-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
    flex-wrap: nowrap;
    margin-left: auto;
}

.app-datatable-search {
    width: 260px;
    min-height: 44px;
    border-radius: .65rem;
}

.app-toolbar-btn {
    min-height: 44px;
    padding: .58rem .95rem;
    border-radius: .65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    white-space: nowrap;
    line-height: 1;
    font-size: .9rem;
    font-weight: 700;
}

.app-toolbar-btn-sm {
    min-height: 40px;
    padding: .52rem .85rem;
    border-radius: .6rem;
    font-size: .86rem;
}

.app-toolbar-btn i {
    font-size: 1.15rem;
    line-height: 1;
}

.app-table-actions-col {
    width: 1%;
    white-space: nowrap;
}

.app-table-actions-cell .table-action-group {
    justify-content: flex-end;
}

.app-datatable-toolbar .btn-primary {
    background: var(--larkon-primary);
    border-color: var(--larkon-primary);
    box-shadow: none;
}

.app-datatable-toolbar .btn-primary:hover,
.app-datatable-toolbar .btn-primary:focus {
    background: #083bd0;
    border-color: #083bd0;
}

.app-builder-section {
    border: 1px solid var(--larkon-border);
    border-radius: 1rem;
    padding: 1rem;
    background: #fbfdff;
}

.app-builder-block {
    border: 1px solid var(--larkon-border);
    border-radius: .95rem;
    padding: 1rem;
    background: #ffffff;
}

.app-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.app-page-intro .card-body {
    padding: 1.35rem 1.5rem;
}

.app-page-intro-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-page-intro h2 {
    color: var(--larkon-heading);
    font-size: 1.65rem;
    line-height: 1.15;
    margin-bottom: .35rem !important;
}

.app-page-intro p {
    max-width: 680px;
    color: #8b98aa !important;
    font-size: .95rem;
    line-height: 1.45;
}

.app-page-intro .test-question-step {
    margin-bottom: .25rem;
    font-size: .78rem;
}

.app-page-intro .btn,
.wizard-topbar .btn,
.group-form-actions .btn,
.wizard-footer-actions .btn,
.modal-footer .btn {
    min-height: 40px;
    padding: .55rem .9rem;
    border-radius: .65rem;
    font-size: .9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    line-height: 1;
}

.app-page-intro .btn i,
.wizard-topbar .btn i,
.group-form-actions .btn i,
.wizard-footer-actions .btn i,
.modal-footer .btn i {
    margin-right: 0 !important;
}

.wizard-topbar {
    align-items: center !important;
}

.wizard-topbar > div:first-child {
    min-width: 0;
}

.wizard-topbar p {
    max-width: 720px;
    color: #8b98aa !important;
    font-size: .95rem;
    line-height: 1.45;
}

.wizard-panel {
    background: transparent;
}

.wizard-panel-body {
    padding: 0;
}

.lesson-builder-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.15rem;
    margin-bottom: 1.15rem;
    border-bottom: 1px solid var(--larkon-border);
}

.lesson-builder {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1rem;
}

.lesson-sidebar,
.lesson-editor,
.lesson-preview-panel {
    min-width: 0;
    border: 1px solid var(--larkon-border);
    border-radius: 1rem;
    background: #fff;
}

.lesson-sidebar {
    padding: 1rem;
}

.lesson-editor {
    padding: 1.1rem;
}

.lesson-list {
    display: grid;
    gap: .65rem;
    max-height: 560px;
    overflow: auto;
    padding-right: .25rem;
}

.lesson-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    gap: .45rem;
    border: 1px solid var(--larkon-border);
    border-radius: .85rem;
    background: #f8fbff;
}

.lesson-list-item > a {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .75rem;
    color: inherit;
}

.lesson-list-item > a > span:last-child {
    min-width: 0;
}

.lesson-list-item strong,
.lesson-list-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lesson-list-item strong {
    color: var(--larkon-heading);
    font-size: .95rem;
}

.lesson-list-item small {
    margin-top: .15rem;
    color: #8b98aa;
    font-weight: 700;
}

.lesson-list-item form {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding-right: .45rem;
}

.lesson-list-item.is-active {
    border-color: rgba(18, 188, 228, .45);
    background: linear-gradient(135deg, rgba(17, 196, 231, .12), rgba(18, 84, 255, .1));
}

.lesson-order {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .75rem;
    background: rgba(17, 196, 231, .13);
    color: var(--larkon-primary);
    font-weight: 900;
}

.lesson-icon-btn {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: .6rem;
    background: rgba(255, 94, 94, .1);
    color: #ff5e5e;
    font-size: 1rem;
    line-height: 1;
}

.lesson-empty {
    min-height: 190px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .45rem;
    color: #8b98aa;
    text-align: center;
}

.lesson-empty i {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(17, 196, 231, .12);
    color: var(--larkon-primary);
}

.lesson-type-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin: 1rem 0;
}

.lesson-type-card {
    min-height: 96px;
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .85rem;
    border: 1px solid var(--larkon-border);
    border-radius: .9rem;
    background: #f8fbff;
    color: var(--larkon-heading);
    text-align: left;
}

.lesson-type-card iconify-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .85rem;
    background: rgba(17, 196, 231, .13);
    color: var(--larkon-primary);
    font-size: 1.35rem;
}

.lesson-type-card strong,
.lesson-type-card small {
    display: block;
}

.lesson-type-card strong {
    font-size: .98rem;
}

.lesson-type-card small {
    margin-top: .15rem;
    color: #8b98aa;
    line-height: 1.25;
}

.lesson-type-card.is-active {
    border-color: rgba(18, 84, 255, .45);
    background: linear-gradient(135deg, rgba(17, 196, 231, .13), rgba(18, 84, 255, .1));
    box-shadow: 0 10px 24px rgba(18, 84, 255, .08);
}

.lesson-upload-pane,
.lesson-preview-panel {
    padding: 1rem;
    margin-top: 1rem;
}

.lesson-editor-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: .65rem;
    color: #8b98aa;
    font-size: .85rem;
    font-weight: 700;
}

.lesson-editor .ck.ck-editor {
    margin-top: .25rem;
    overflow: hidden;
    border-radius: .85rem;
}

.lesson-editor .ck.ck-editor__main > .ck-editor__editable {
    height: 360px;
    min-height: 360px;
    max-height: 360px;
    overflow-y: auto;
    border-color: var(--larkon-border);
    border-radius: 0 0 .85rem .85rem;
    color: var(--larkon-heading);
    box-shadow: none;
}

.lesson-editor .ck.ck-toolbar {
    border-color: var(--larkon-border);
    border-radius: .85rem .85rem 0 0;
}

.lesson-html-source-visible {
    height: 360px;
    min-height: 360px;
    max-height: 360px;
    overflow-y: auto;
    margin-top: .25rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .9rem;
}

.lesson-editor textarea#lessonText:not(.lesson-html-source-visible) {
    height: 360px;
    min-height: 360px;
    max-height: 360px;
    overflow-y: auto;
}

.lesson-preview-panel {
    overflow: hidden;
}

.lesson-preview-panel .wizard-preview-text {
    max-height: 320px;
    overflow-y: auto;
}

.lesson-content-body,
.wizard-preview-text {
    overflow-wrap: anywhere;
}

.course-player-shell {
    display: grid;
    gap: 1.25rem;
}

.course-player-hero,
.course-lesson-card,
.course-path-card,
.course-action-card,
.course-materials-card {
    border: 1px solid var(--larkon-border);
    border-radius: 1.15rem;
    background: var(--larkon-card-bg);
    box-shadow: none;
}

.course-player-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem;
}

.course-player-hero h2 {
    margin: .25rem 0 .5rem;
    color: var(--larkon-heading);
    font-size: clamp(1.5rem, 2vw, 2.1rem);
}

.course-player-hero p {
    max-width: 820px;
    margin: 0;
    color: #8b98aa;
    line-height: 1.55;
}

.course-progress-card {
    min-width: 190px;
    padding: .9rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(17, 196, 231, .14), rgba(18, 84, 255, .1));
}

.course-progress-card span,
.course-progress-card strong {
    display: block;
}

.course-progress-card span {
    color: #7d8aa0;
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.course-progress-card strong {
    margin: .25rem 0 .6rem;
    color: var(--larkon-heading);
    font-size: 1.8rem;
}

.course-player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.25rem;
    align-items: start;
}

.course-player-main {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.course-lesson-card,
.course-path-card,
.course-action-card,
.course-materials-card {
    padding: 1.15rem;
}

.course-lesson-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--larkon-border);
}

.course-lesson-head h3 {
    margin: .5rem 0 .25rem;
    color: var(--larkon-heading);
    font-size: clamp(1.35rem, 1.8vw, 1.8rem);
}

.course-lesson-head p {
    margin: 0;
    color: #8b98aa;
    font-weight: 700;
}

.course-audio-card {
    display: grid;
    gap: .55rem;
    justify-items: end;
    padding: .75rem;
    border: 1px solid var(--larkon-border);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(17, 196, 231, .10), rgba(18, 84, 255, .08));
}

.course-audio-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--larkon-heading);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.course-audio-label iconify-icon,
.course-test-icon iconify-icon,
.course-path-status iconify-icon,
.course-material-item iconify-icon,
.course-lesson-nav iconify-icon,
.course-test-widget .btn iconify-icon {
    font-size: 1.15rem;
}

.course-audio-controls {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.course-lesson-nav .btn {
    min-height: 40px;
    padding: .55rem .85rem;
    border-radius: .7rem;
    font-size: .9rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.course-audio-btn {
    min-height: 36px;
    padding: .45rem .7rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid var(--larkon-border);
    border-radius: .75rem;
    color: var(--larkon-heading);
    background: rgba(255, 255, 255, .84);
    font-size: .84rem;
    font-weight: 900;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.course-audio-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(18, 84, 255, .35);
    box-shadow: 0 10px 24px rgba(18, 84, 255, .12);
}

.course-audio-btn.is-primary {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, var(--larkon-primary), var(--larkon-secondary));
}

.course-media-frame {
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: #0b1220;
}

.course-media-frame iframe,
.course-media-frame video {
    width: 100%;
    border: 0;
}

.course-readable-content {
    color: #4f5f73 !important;
    font-size: 1.02rem;
    line-height: 1.85;
}

.course-readable-content p {
    margin: 0 0 1rem;
}

.course-readable-content ul,
.course-readable-content ol {
    margin: .85rem 0 1rem;
    padding-left: 1.35rem;
}

.course-readable-content li + li {
    margin-top: .35rem;
}

.course-readable-content blockquote {
    margin: 1rem 0;
    padding: .85rem 1rem;
    border-left: 4px solid var(--larkon-primary);
    border-radius: .75rem;
    background: rgba(17, 196, 231, .08);
}

.course-readable-content h1,
.course-readable-content h2,
.course-readable-content h3,
.course-readable-content h4,
.course-readable-content h5 {
    color: var(--larkon-heading);
    margin-top: 1rem;
}

.tts-segment,
.tts-word {
    border-radius: .35rem;
    transition: background-color .2s ease, color .2s ease;
}

.tts-segment.is-reading,
.course-readable-content .tts-word.is-reading,
.course-readable-content .is-reading {
    background: linear-gradient(135deg, rgba(17, 196, 231, .24), rgba(18, 84, 255, .18));
    color: var(--larkon-heading);
    box-shadow: 0 0 0 3px rgba(17, 196, 231, .10);
}

.course-lesson-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--larkon-border);
}

.course-player-sidebar {
    position: sticky;
    top: calc(var(--larkon-topbar-height) + 1rem);
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.course-path-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.course-path-head h4,
.course-action-card h4,
.course-materials-card h4 {
    margin: 0;
    color: var(--larkon-heading);
}

.course-path-head small {
    display: block;
    margin-top: .2rem;
    color: #8b98aa;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.35;
}

.course-path-head span {
    color: #8b98aa;
    font-size: .85rem;
    font-weight: 800;
}

.course-path-list {
    display: grid;
    gap: 1rem;
    max-height: 620px;
    overflow: auto;
    padding-right: .25rem;
}

.course-path-module h6 {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin: 0 0 .55rem;
    padding: .3rem .55rem;
    border-radius: 999px;
    color: var(--larkon-heading);
    background: rgba(17, 196, 231, .10);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.course-path-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: .65rem;
    align-items: center;
    padding: .7rem;
    border: 1px solid var(--larkon-border);
    border-radius: .85rem;
    color: inherit;
    background: #f8fbff;
}

.course-path-item + .course-path-item {
    margin-top: .5rem;
}

.course-path-status {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .75rem;
    background: rgba(17, 196, 231, .12);
    color: var(--larkon-primary);
}

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

.course-path-item strong {
    color: var(--larkon-heading);
}

.course-path-item small {
    margin-top: .15rem;
    color: #8b98aa;
    font-weight: 700;
}

.course-path-item.is-active {
    border-color: rgba(18, 84, 255, .42);
    background: linear-gradient(135deg, rgba(17, 196, 231, .14), rgba(18, 84, 255, .1));
}

.course-path-item.is-completed .course-path-status {
    background: rgba(37, 201, 122, .14);
    color: #18a665;
}

.course-action-card p {
    color: #8b98aa;
    font-weight: 700;
}

.course-test-widget {
    text-align: center;
}

.course-test-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .75rem;
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--larkon-primary), var(--larkon-secondary));
    box-shadow: 0 16px 34px rgba(18, 84, 255, .18);
}

.course-test-icon iconify-icon {
    font-size: 1.65rem;
}

.course-test-widget .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border-radius: .8rem;
    font-weight: 900;
}

.course-test-locked {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: .85rem 0;
    padding: .8rem;
    border-radius: .85rem;
    color: #8b98aa;
    background: rgba(148, 163, 184, .10);
    font-weight: 800;
    text-align: left;
}

.course-test-locked iconify-icon {
    flex: 0 0 auto;
    color: var(--larkon-primary);
    font-size: 1.25rem;
}

.course-material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .75rem;
    margin-top: .9rem;
}

.course-material-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: .65rem;
    align-items: center;
    padding: .75rem;
    border: 1px solid var(--larkon-border);
    border-radius: .85rem;
    color: inherit;
    background: #f8fbff;
}

.course-material-item span {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .85rem;
    background: rgba(17, 196, 231, .12);
    color: var(--larkon-primary);
}

.course-material-item strong,
.course-material-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-bs-theme="dark"] .course-audio-card,
body[data-bs-theme="dark"] .course-path-item,
body[data-bs-theme="dark"] .course-material-item {
    background: rgba(255, 255, 255, .035);
}

body[data-bs-theme="dark"] .course-audio-btn {
    color: #dce6f3;
    background: rgba(255, 255, 255, .06);
}

body[data-bs-theme="dark"] .course-readable-content {
    color: #b8c4d4 !important;
}

.employee-dash {
    display: grid;
    gap: 1rem;
}

.employee-hero,
.employee-panel,
.employee-empty-state {
    border: 1px solid var(--larkon-border);
    border-radius: 1.15rem;
    background: var(--larkon-card-bg);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .045);
}

.employee-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.2rem;
    align-items: center;
    padding: clamp(1.2rem, 2.2vw, 2rem);
}

.employee-hero::after {
    content: "";
    position: absolute;
    right: -110px;
    top: -140px;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(17, 196, 231, .26), transparent 68%);
    pointer-events: none;
}

.employee-hero-copy,
.employee-hero-meter {
    position: relative;
    z-index: 1;
}

.employee-kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .55rem;
    color: var(--larkon-primary);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.employee-kicker iconify-icon {
    font-size: 1.1rem;
}

.employee-hero h2 {
    max-width: 820px;
    margin: 0 0 .65rem;
    color: var(--larkon-heading);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.07;
}

.employee-hero p {
    max-width: 700px;
    margin: 0;
    color: #6f7f95;
    font-weight: 750;
    line-height: 1.6;
}

.employee-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.25rem;
}

.employee-hero-actions .btn,
.employee-course-actions .btn,
.employee-next-card .btn,
.employee-empty-actions .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border-radius: .78rem;
    font-weight: 900;
}

.employee-hero-meter {
    padding: 1rem;
    border: 1px solid rgba(17, 196, 231, .24);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(17, 196, 231, .12), rgba(18, 84, 255, .08));
}

.employee-hero-meter span,
.employee-hero-meter small {
    color: #8b98aa;
    font-weight: 850;
}

.employee-hero-meter span {
    display: block;
    font-size: .78rem;
    text-transform: uppercase;
}

.employee-hero-meter strong {
    display: block;
    margin: .35rem 0 .7rem;
    color: var(--larkon-heading);
    font-size: 2.4rem;
    line-height: 1;
}

.employee-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.employee-stat-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: .75rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--larkon-border);
    border-radius: 1rem;
    background: var(--larkon-card-bg);
}

.employee-stat-card span {
    grid-row: span 2;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .95rem;
    color: var(--larkon-primary);
    background: rgba(17, 196, 231, .12);
}

.employee-stat-card iconify-icon {
    font-size: 1.45rem;
}

.employee-stat-card strong {
    color: var(--larkon-heading);
    font-size: 1.6rem;
    line-height: 1;
}

.employee-stat-card small {
    color: #8b98aa;
    font-weight: 800;
}

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

.employee-panel {
    padding: 1rem;
}

.employee-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.employee-panel-head h3 {
    margin: 0;
    color: var(--larkon-heading);
}

.employee-panel-head > span {
    color: #8b98aa;
    font-weight: 850;
}

.employee-course-list,
.employee-side-stack,
.employee-certificate-list {
    display: grid;
    gap: .8rem;
}

.employee-course-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: .9rem;
    align-items: center;
    padding: .95rem;
    border: 1px solid var(--larkon-border);
    border-radius: 1rem;
    background: #f8fbff;
}

.employee-course-card.is-complete {
    border-color: rgba(37, 201, 122, .35);
    background: rgba(37, 201, 122, .06);
}

.employee-course-card.is-warning {
    border-color: rgba(255, 183, 77, .38);
    background: rgba(255, 183, 77, .08);
}

.employee-course-card.is-danger {
    border-color: rgba(255, 94, 94, .38);
    background: rgba(255, 94, 94, .07);
}

.employee-course-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    color: var(--larkon-primary);
    background: rgba(17, 196, 231, .13);
}

.employee-course-icon iconify-icon {
    font-size: 1.55rem;
}

.employee-course-body {
    min-width: 0;
}

.employee-course-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.employee-course-top h4 {
    margin: 0;
    color: var(--larkon-heading);
    font-size: 1.05rem;
}

.employee-course-top small,
.employee-course-body p,
.employee-course-meta {
    color: #8b98aa;
    font-weight: 750;
}

.employee-course-top strong {
    color: var(--larkon-primary);
    font-size: 1.15rem;
}

.employee-course-body p {
    margin: .4rem 0 .75rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.employee-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem .9rem;
    margin-top: .7rem;
    font-size: .86rem;
}

.employee-course-meta span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.employee-course-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

.employee-next-card {
    display: grid;
    gap: .7rem;
    color: #8b98aa;
    font-weight: 750;
}

.employee-next-card > iconify-icon {
    width: 54px;
    height: 54px;
    padding: .85rem;
    border-radius: 1rem;
    color: var(--larkon-primary);
    background: rgba(17, 196, 231, .12);
}

.employee-next-card strong {
    color: var(--larkon-heading);
    font-size: 1.05rem;
}

.employee-certificate-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: .65rem;
    align-items: center;
    padding: .75rem;
    border: 1px solid var(--larkon-border);
    border-radius: .9rem;
    color: inherit;
    background: #f8fbff;
}

.employee-certificate-item iconify-icon {
    width: 42px;
    height: 42px;
    padding: .65rem;
    border-radius: .8rem;
    color: #18a665;
    background: rgba(37, 201, 122, .12);
}

.employee-certificate-item strong,
.employee-certificate-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-certificate-item strong {
    color: var(--larkon-heading);
}

.employee-certificate-item small,
.employee-mini-empty {
    color: #8b98aa;
    font-weight: 750;
}

.employee-empty-state {
    min-height: 360px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .75rem;
    padding: 2rem;
    text-align: center;
}

.employee-empty-icon {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.4rem;
    color: #fff;
    background: linear-gradient(135deg, var(--larkon-primary), var(--larkon-secondary));
    box-shadow: 0 18px 40px rgba(18, 84, 255, .16);
}

.employee-empty-icon iconify-icon {
    font-size: 2.3rem;
}

.employee-empty-state h3 {
    margin: .25rem 0 0;
    color: var(--larkon-heading);
}

.employee-empty-state p {
    max-width: 560px;
    margin: 0;
    color: #8b98aa;
    font-weight: 750;
    line-height: 1.6;
}

.employee-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem;
    margin-top: .4rem;
}

body[data-bs-theme="dark"] .employee-course-card,
body[data-bs-theme="dark"] .employee-certificate-item {
    background: rgba(255, 255, 255, .035);
}

@media (max-width: 1199.98px) {
    .employee-dashboard-grid,
    .employee-hero {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 767.98px) {
    .employee-stat-grid,
    .employee-course-card {
        grid-template-columns: 1fr;
    }

    .employee-course-actions {
        justify-content: flex-start;
    }
}

.test-intro-shell {
    display: grid;
    gap: 1rem;
}

.test-intro-hero,
.test-rules-card {
    border: 1px solid var(--larkon-border);
    border-radius: 1.15rem;
    background: var(--larkon-card-bg);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .05);
}

.test-intro-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.2rem;
    align-items: stretch;
    padding: clamp(1.25rem, 2vw, 2rem);
    overflow: hidden;
    position: relative;
}

.test-intro-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -120px;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(17, 196, 231, .22), rgba(18, 84, 255, .18));
    pointer-events: none;
}

.test-intro-copy,
.test-intro-panel {
    position: relative;
    z-index: 1;
}

.test-intro-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .7rem;
    color: var(--larkon-primary);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.test-intro-kicker iconify-icon {
    font-size: 1.1rem;
}

.test-intro-copy h2 {
    max-width: 760px;
    margin: 0 0 .75rem;
    color: var(--larkon-heading);
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 1.08;
}

.test-intro-copy p {
    max-width: 760px;
    margin: 0;
    color: #6f7f95;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.65;
}

.test-intro-muted {
    margin-top: .65rem !important;
    color: #8b98aa !important;
}

.test-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.35rem;
}

.test-intro-actions .btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: .85rem;
    font-weight: 900;
}

.test-intro-panel {
    display: grid;
    align-content: center;
    gap: .8rem;
    padding: 1rem;
    border: 1px solid rgba(17, 196, 231, .22);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(17, 196, 231, .12), rgba(18, 84, 255, .08));
}

.test-intro-score,
.test-intro-progress {
    padding: .95rem;
    border-radius: .9rem;
    background: rgba(255, 255, 255, .76);
}

.test-intro-score span,
.test-intro-progress span {
    display: block;
    color: #8b98aa;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.test-intro-score strong {
    display: block;
    margin-top: .25rem;
    color: var(--larkon-heading);
    font-size: 2.6rem;
    line-height: 1;
}

.test-intro-progress strong {
    display: block;
    margin-top: .35rem;
    color: var(--larkon-primary);
    font-weight: 900;
}

.test-intro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.test-info-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: .75rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--larkon-border);
    border-radius: 1rem;
    background: var(--larkon-card-bg);
}

.test-info-card span {
    grid-row: span 2;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .95rem;
    color: var(--larkon-primary);
    background: rgba(17, 196, 231, .12);
}

.test-info-card iconify-icon {
    font-size: 1.45rem;
}

.test-info-card strong {
    color: var(--larkon-heading);
    font-size: 1.45rem;
    line-height: 1;
}

.test-info-card small {
    color: #8b98aa;
    font-weight: 800;
}

.test-rules-card {
    padding: 1.2rem;
}

.test-rules-card h4 {
    margin: 0;
    color: var(--larkon-heading);
}

.test-rules-list {
    display: grid;
    gap: .65rem;
    margin-top: 1rem;
}

.test-rules-list div,
.test-intro-note,
.test-instructions-box {
    padding: .8rem .9rem;
    border: 1px solid var(--larkon-border);
    border-radius: .85rem;
    color: #6f7f95;
    background: #f8fbff;
    font-weight: 750;
}

.test-rules-list div {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
}

.test-rules-list iconify-icon {
    flex: 0 0 auto;
    color: var(--larkon-primary);
    font-size: 1.1rem;
    margin-top: .15rem;
}

.test-intro-note,
.test-instructions-box {
    margin-top: .8rem;
}

body[data-bs-theme="dark"] .test-intro-score,
body[data-bs-theme="dark"] .test-intro-progress,
body[data-bs-theme="dark"] .test-rules-list div,
body[data-bs-theme="dark"] .test-intro-note,
body[data-bs-theme="dark"] .test-instructions-box {
    background: rgba(255, 255, 255, .045);
}

@media (max-width: 991.98px) {
    .test-intro-hero,
    .test-intro-grid {
        grid-template-columns: 1fr;
    }
}

.test-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 1rem;
    align-items: start;
}

.test-taking-hero,
.test-question-stage,
.test-bottom-actions,
.test-side-card {
    border: 1px solid var(--larkon-border);
    border-radius: 1.1rem;
    background: var(--larkon-card-bg);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .045);
}

.test-taking-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
}

.test-taking-title {
    min-width: 0;
}

.test-taking-title h3 {
    margin: 0;
    color: var(--larkon-heading);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.test-taking-title p {
    max-width: 720px;
    margin: .35rem 0 0;
    color: #8b98aa;
    font-weight: 700;
    line-height: 1.45;
}

.test-taking-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex: 0 0 auto;
}

.test-taking-meta > div:not(.test-timer-badge) {
    min-width: 112px;
    padding: .75rem .9rem;
    border-radius: .9rem;
    background: rgba(17, 196, 231, .10);
}

.test-taking-meta span {
    display: block;
    color: #8b98aa;
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.test-taking-meta strong {
    color: var(--larkon-heading);
    font-size: 1.2rem;
}

.test-timer-badge {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem .9rem;
    border-radius: .9rem;
    color: var(--larkon-heading);
    background: linear-gradient(135deg, rgba(17, 196, 231, .14), rgba(18, 84, 255, .10));
    font-weight: 900;
}

.test-timer-badge .material-symbols-outlined {
    color: var(--larkon-primary);
}

.test-timer-badge.is-warning {
    background: rgba(255, 183, 77, .16);
}

.test-timer-badge.is-danger {
    color: #ff5e5e;
    background: rgba(255, 94, 94, .14);
}

.test-question-stage {
    padding: 1rem;
}

.test-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .6rem;
    color: #8b98aa;
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.test-progress-head strong {
    color: var(--larkon-primary);
}

.test-question-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--larkon-border);
    border-radius: 1rem;
    background: #fff;
}

.test-question-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--larkon-primary), var(--larkon-secondary));
}

.test-question-card.is-marked {
    border-color: rgba(255, 183, 77, .55);
    box-shadow: 0 16px 34px rgba(255, 183, 77, .12);
}

.test-question-card.is-marked::before {
    background: #ffb74d;
}

.test-question-inner {
    padding: clamp(1rem, 2vw, 1.35rem);
}

.test-question-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.test-question-title {
    min-width: 0;
}

.test-question-title h4 {
    margin: 0;
    color: var(--larkon-heading);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.28;
}

.test-question-title p {
    margin: .45rem 0 0;
    color: #8b98aa;
    font-weight: 700;
}

.mark-review-btn {
    min-height: 42px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    padding: .55rem .8rem;
    border: 1px solid rgba(18, 84, 255, .22);
    border-radius: .8rem;
    color: var(--larkon-primary);
    background: rgba(18, 84, 255, .07);
    font-weight: 900;
}

.mark-review-btn iconify-icon {
    font-size: 1.15rem;
}

.mark-review-btn.is-marked {
    border-color: rgba(255, 183, 77, .60);
    color: #b76b00;
    background: rgba(255, 183, 77, .17);
}

.test-choice-option {
    min-height: 58px;
    display: grid;
    grid-template-columns: 22px 42px minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    padding: .85rem .95rem;
    border: 1px solid var(--larkon-border);
    border-radius: .95rem;
    color: var(--larkon-heading);
    background: #f8fbff;
    font-weight: 800;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.test-choice-option:hover {
    transform: translateY(-1px);
    border-color: rgba(18, 84, 255, .28);
    box-shadow: 0 12px 26px rgba(18, 84, 255, .07);
}

.test-choice-option input {
    accent-color: var(--larkon-primary);
}

.test-choice-option b {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .8rem;
    color: var(--larkon-primary);
    background: rgba(17, 196, 231, .12);
}

.test-choice-option:has(input:checked) {
    border-color: rgba(18, 84, 255, .45);
    background: linear-gradient(135deg, rgba(17, 196, 231, .14), rgba(18, 84, 255, .10));
}

.test-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem;
}

.test-bottom-actions .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: .75rem;
    font-weight: 900;
}

.test-sidebar {
    position: sticky;
    top: calc(var(--larkon-topbar-height) + 1rem);
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.test-side-card {
    padding: 1rem;
}

.test-side-card h4 {
    margin: 0 0 .85rem;
    color: var(--larkon-heading);
}

.test-side-head,
.test-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.test-side-head {
    margin-bottom: .85rem;
    color: var(--larkon-heading);
    font-weight: 900;
}

.test-side-head strong {
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--larkon-primary);
    background: rgba(17, 196, 231, .12);
}

.test-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .5rem;
}

.test-nav-grid button {
    height: 42px;
    border: 1px solid var(--larkon-border);
    border-radius: .75rem;
    color: #8b98aa;
    background: #f8fbff;
    font-weight: 900;
}

.test-nav-grid button.is-current {
    border-color: rgba(18, 84, 255, .45);
    color: #fff;
    background: linear-gradient(135deg, var(--larkon-primary), var(--larkon-secondary));
}

.test-nav-grid button.is-answered {
    border-color: rgba(37, 201, 122, .45);
    color: #159a58;
    background: rgba(37, 201, 122, .12);
}

.test-nav-grid button.is-flagged {
    border-color: rgba(255, 183, 77, .55);
    color: #b76b00;
    background: rgba(255, 183, 77, .16);
}

.test-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem .8rem;
    color: #8b98aa;
    font-size: .78rem;
    font-weight: 800;
}

.test-legend span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.test-legend i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #8b98aa;
}

.test-legend i.is-current {
    background: var(--larkon-primary);
}

.test-legend i.is-answered {
    background: #25c97a;
}

.test-legend i.is-flagged {
    background: #ffb74d;
}

.test-summary-row {
    padding: .65rem 0;
    border-bottom: 1px solid var(--larkon-border);
    color: #8b98aa;
    font-weight: 800;
}

.test-summary-row:last-child {
    border-bottom: 0;
}

.test-summary-row strong {
    color: var(--larkon-heading);
}

.test-help-card {
    display: flex;
    gap: .75rem;
    color: #8b98aa;
}

.test-help-card > iconify-icon {
    flex: 0 0 auto;
    color: var(--larkon-primary);
    font-size: 1.5rem;
}

.test-help-card strong {
    color: var(--larkon-heading);
}

.test-help-card p {
    margin: .2rem 0 0;
    font-weight: 700;
    line-height: 1.45;
}

.test-result-shell {
    display: grid;
    gap: 1rem;
}

.test-result-hero,
.test-result-next {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--larkon-border);
    border-radius: 1.25rem;
    background: var(--larkon-card-bg);
    box-shadow: 0 22px 55px rgba(15, 23, 42, .06);
}

.test-result-hero {
    min-height: 470px;
    display: grid;
    place-items: center;
    align-content: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    text-align: center;
}

.test-result-glow {
    position: absolute;
    top: -160px;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    opacity: .65;
    filter: blur(4px);
    pointer-events: none;
}

.test-result-shell.is-passed .test-result-glow {
    background: radial-gradient(circle, rgba(37, 201, 122, .28), transparent 68%);
}

.test-result-shell.is-failed .test-result-glow {
    background: radial-gradient(circle, rgba(255, 94, 94, .25), transparent 68%);
}

.test-result-shell.is-review .test-result-glow {
    background: radial-gradient(circle, rgba(255, 183, 77, .30), transparent 68%);
}

.test-result-icon {
    width: 92px;
    height: 92px;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 1.5rem;
    color: #fff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .14);
}

.test-result-shell.is-passed .test-result-icon {
    background: linear-gradient(135deg, #25c97a, var(--larkon-primary));
}

.test-result-shell.is-failed .test-result-icon {
    background: linear-gradient(135deg, #ff5e5e, #ff8a66);
}

.test-result-shell.is-review .test-result-icon {
    background: linear-gradient(135deg, #ffb74d, var(--larkon-secondary));
}

.test-result-icon iconify-icon {
    font-size: 2.65rem;
}

.test-result-hero h2,
.test-result-hero p,
.test-result-hero .test-question-step,
.test-result-score,
.test-result-actions {
    position: relative;
    z-index: 1;
}

.test-result-hero h2 {
    max-width: 820px;
    margin: .35rem 0 .7rem;
    color: var(--larkon-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}

.test-result-hero p {
    max-width: 700px;
    margin: 0;
    color: #6f7f95;
    font-size: 1.05rem;
    font-weight: 750;
    line-height: 1.65;
}

.test-result-score {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    width: min(520px, 100%);
    margin-top: 1.35rem;
}

.test-result-score div {
    padding: 1rem;
    border: 1px solid var(--larkon-border);
    border-radius: 1rem;
    background: #f8fbff;
}

.test-result-score span {
    display: block;
    color: #8b98aa;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.test-result-score strong {
    display: block;
    margin-top: .25rem;
    color: var(--larkon-heading);
    font-size: 2rem;
    line-height: 1;
}

.test-result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem;
    margin-top: 1.4rem;
}

.test-result-actions .btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: .85rem;
    font-weight: 900;
}

.test-result-next {
    padding: 1rem;
}

.test-result-next div {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: .25rem .75rem;
    align-items: center;
}

.test-result-next iconify-icon {
    grid-row: span 2;
    width: 48px;
    height: 48px;
    padding: .7rem;
    border-radius: .95rem;
    color: var(--larkon-primary);
    background: rgba(17, 196, 231, .12);
}

.test-result-next strong {
    color: var(--larkon-heading);
    font-size: 1rem;
}

.test-result-next span {
    color: #8b98aa;
    font-weight: 750;
}

body[data-bs-theme="dark"] .test-question-card,
body[data-bs-theme="dark"] .test-choice-option,
body[data-bs-theme="dark"] .test-nav-grid button,
body[data-bs-theme="dark"] .test-result-score div {
    background: rgba(255, 255, 255, .035);
}

@media (max-width: 991.98px) {
    .test-shell {
        grid-template-columns: 1fr;
    }

    .test-sidebar {
        position: static;
    }

    .test-taking-hero,
    .test-question-head,
    .test-bottom-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .test-taking-meta {
        flex-wrap: wrap;
    }
}

.lesson-content-body img,
.wizard-preview-text img {
    max-width: 100%;
    height: auto;
    border-radius: .85rem;
    display: block;
    margin: .75rem 0;
}

.lesson-content-body table,
.wizard-preview-text table {
    width: 100%;
    border-collapse: collapse;
    margin: .85rem 0;
}

.lesson-content-body td,
.lesson-content-body th,
.wizard-preview-text td,
.wizard-preview-text th {
    border: 1px solid var(--larkon-border);
    padding: .55rem;
}

.lesson-chapter-list {
    display: grid;
    gap: .65rem;
}

.lesson-video-chapter-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.15fr) 42px;
    align-items: center;
    gap: .65rem;
    padding: .65rem;
    border: 1px solid var(--larkon-border);
    border-radius: .8rem;
    background: #f8fbff;
}

body[data-bs-theme="dark"] .lesson-sidebar,
body[data-bs-theme="dark"] .lesson-editor,
body[data-bs-theme="dark"] .lesson-preview-panel {
    background: var(--larkon-card-bg);
}

body[data-bs-theme="dark"] .lesson-list-item,
body[data-bs-theme="dark"] .lesson-type-card,
body[data-bs-theme="dark"] .lesson-video-chapter-row {
    background: rgba(255, 255, 255, .035);
}

.quiz-builder-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.15rem;
    margin-bottom: 1.15rem;
    border-bottom: 1px solid var(--larkon-border);
}

.quiz-kicker {
    display: inline-flex;
    margin-bottom: .35rem;
    color: #7d8aa0;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.quiz-switch,
.quiz-pill,
.quiz-correct {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .8rem;
    border: 1px solid var(--larkon-border);
    border-radius: .65rem;
    background: #fff;
    color: var(--larkon-heading);
    font-weight: 700;
    cursor: pointer;
}

.quiz-switch input,
.quiz-pill input,
.quiz-correct input {
    accent-color: var(--larkon-primary);
}

.quiz-switch.is-muted {
    color: #7d8aa0;
}

.quiz-builder {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 1rem;
}

.quiz-sidebar,
.quiz-editor {
    min-width: 0;
}

.quiz-sidebar {
    overflow: hidden;
    padding: .9rem;
    border: 1px solid var(--larkon-border);
    border-radius: 1rem;
    background: #fff;
}

.quiz-sidebar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .85rem;
    color: var(--larkon-heading);
    font-weight: 800;
}

.quiz-sidebar-title strong {
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(17, 196, 231, .12);
    color: var(--larkon-primary);
}

.quiz-question-tabs {
    display: grid;
    gap: .55rem;
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: .15rem;
}

.quiz-question-tab {
    display: block;
    width: calc(100% - .15rem);
    max-width: 100%;
    box-sizing: border-box;
    padding: .7rem .65rem;
    border: 1px solid var(--larkon-border);
    border-radius: .8rem;
    background: #f8fbff;
    color: #6f7f95;
    text-align: left;
    min-width: 0;
}

.quiz-sidebar .btn.w-100 {
    width: calc(100% - .15rem) !important;
}

.quiz-question-tab span,
.quiz-question-tab small {
    display: block;
}

.quiz-question-tab span {
    color: var(--larkon-heading);
    font-weight: 800;
}

.quiz-question-tab small {
    margin-top: .15rem;
    overflow: hidden;
    color: #8b98aa;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quiz-question-tab.is-active {
    border-color: rgba(18, 188, 228, .45);
    background: linear-gradient(135deg, rgba(17, 196, 231, .12), rgba(18, 84, 255, .1));
    box-shadow: 0 10px 24px rgba(18, 84, 255, .08);
}

.quiz-question-card {
    display: none;
    padding: 1.1rem;
    border: 1px solid var(--larkon-border);
    border-radius: 1rem;
    background: #fff;
}

.quiz-question-card.is-active {
    display: block;
}

.quiz-question-card-head,
.quiz-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quiz-answer-types {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.quiz-pill:has(input:checked),
.quiz-switch:has(input:checked),
.quiz-correct:has(input:checked) {
    border-color: rgba(18, 84, 255, .45);
    background: rgba(18, 84, 255, .08);
    color: var(--larkon-primary);
}

.quiz-pill.is-success:has(input:checked) {
    border-color: rgba(37, 201, 122, .5);
    background: rgba(37, 201, 122, .12);
    color: #159a58;
}

.quiz-pill.is-danger:has(input:checked) {
    border-color: rgba(255, 94, 94, .5);
    background: rgba(255, 94, 94, .1);
    color: #e24d4d;
}

.quiz-answer-pane {
    margin-top: 1rem;
}

.quiz-choice-list {
    display: grid;
    gap: .65rem;
}

.quiz-choice-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 48px 48px;
    align-items: center;
    gap: .65rem;
    padding: .65rem;
    border: 1px solid var(--larkon-border);
    border-radius: .8rem;
    background: #f8fbff;
}

.quiz-choice-key {
    text-align: center;
    font-weight: 800;
}

.quiz-icon-toggle,
.quiz-icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: .75rem;
}

.quiz-icon-toggle {
    gap: 0;
}

.quiz-icon-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.quiz-icon-toggle iconify-icon,
.quiz-icon-btn iconify-icon {
    font-size: 1.25rem;
}

.quiz-icon-toggle iconify-icon {
    color: #9aa8ba;
}

.quiz-icon-toggle:has(input:checked) {
    border-color: rgba(37, 201, 122, .55);
    background: rgba(37, 201, 122, .13);
}

.quiz-icon-toggle:has(input:checked) iconify-icon {
    color: #18a665;
}

.quiz-icon-btn {
    border: 1px solid rgba(255, 94, 94, .45);
    color: #ff5e5e;
    background: rgba(255, 94, 94, .08);
}

.quiz-icon-btn:hover {
    border-color: rgba(255, 94, 94, .7);
    color: #e24d4d;
    background: rgba(255, 94, 94, .14);
}

.quiz-question-remove {
    min-height: 38px;
}

.quiz-card-footer {
    padding-top: 1rem;
    margin: 1rem 0 0;
    border-top: 1px solid var(--larkon-border);
}

body[data-bs-theme="dark"] .quiz-sidebar,
body[data-bs-theme="dark"] .quiz-question-card,
body[data-bs-theme="dark"] .quiz-switch,
body[data-bs-theme="dark"] .quiz-pill,
body[data-bs-theme="dark"] .quiz-correct {
    background: var(--larkon-card-bg);
}

body[data-bs-theme="dark"] .quiz-question-tab,
body[data-bs-theme="dark"] .quiz-choice-row {
    background: rgba(255, 255, 255, .035);
}

body[data-bs-theme="dark"] .quiz-icon-btn {
    color: #ff8a8a;
    background: rgba(255, 94, 94, .10);
}

@media (max-width: 991.98px) {
    .course-player-layout,
    .lesson-builder,
    .quiz-builder,
    .lesson-type-picker,
    .lesson-video-chapter-row,
    .quiz-choice-row {
        grid-template-columns: 1fr;
    }

    .course-player-hero,
    .course-lesson-head,
    .course-lesson-nav,
    .lesson-builder-head,
    .quiz-builder-head,
    .quiz-question-card-head,
    .quiz-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .course-player-sidebar {
        position: static;
    }
}

.dashboard-activity-stream {
    position: relative;
}

.dashboard-activity-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-left: 1px dashed #d7dde6;
}

.dashboard-activity-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: var(--larkon-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer {
    position: relative;
    clear: both;
    flex: 0 0 auto;
    border-top: 1px solid var(--larkon-border);
    background: var(--larkon-topbar-bg);
    margin-top: auto;
}

.footer .copyright {
    padding: .85rem 1.5rem;
    text-align: center;
}

.footer .copyright p {
    margin: 0;
    color: #8b98aa;
    font-size: .9rem;
    font-weight: 700;
}

.footer .copyright a {
    color: var(--larkon-primary);
    font-weight: 800;
}

.app-help-canvas.offcanvas {
    position: fixed;
}

.app-help-chip {
    display: inline-flex;
    align-items: center;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: #eef2f7;
    color: #475569;
    font-size: .85rem;
}

.app-help-step {
    display: flex;
    gap: .85rem;
    margin-bottom: 1rem;
}

.app-help-step-index {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 999px;
    background: rgba(8, 184, 216, 0.14);
    color: var(--larkon-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.account-pages.auth-larkon-shell {
    height: 100vh;
    overflow: hidden;
    background: #f3f4f6;
}

.auth-login-frame {
    height: 100vh;
    padding: 1rem;
}

.auth-login-column,
.auth-login-panel {
    min-height: calc(100vh - 2rem);
}

.auth-login-content {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.authentication-form .form-control {
    min-height: 46px;
    border-color: #e5e7eb;
}

.authentication-form .form-control:focus {
    border-color: rgba(8, 184, 216, 0.45);
    box-shadow: 0 0 0 .2rem rgba(8, 184, 216, 0.12);
}

.auth-page-sidebar {
    position: relative;
    padding: 0;
    gap: 0;
    justify-content: stretch;
    align-items: stretch;
}

.auth-cover-image {
    object-fit: cover;
    border-radius: 0;
    min-height: 100%;
}

.auth-cover-video {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 2rem);
    object-fit: cover;
    display: block;
}

.auth-video-watermark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(520px, 72%);
    opacity: .34;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    text-decoration: none;
}

.brand-lockup-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-wordmark {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--larkon-heading);
}

.brand-wordmark-login {
    font-size: 2rem;
}

.brand-wordmark-light {
    color: #ffffff;
}

.brand-lockup-verify {
    justify-content: center;
}

p.no-span {
    display: table;
    white-space: nowrap;
    padding: 10px 0;
    width: 100%;
}

p.no-span::before,
p.no-span::after {
    border-top: 1px solid var(--larkon-border);
    content: "";
    display: table-cell;
    position: relative;
    top: .7em;
    width: 50%;
}

p.no-span::before {
    right: 1.5%;
}

p.no-span::after {
    left: 1.5%;
}

html[data-menu-size="condensed"] .topbar {
    padding-left: var(--larkon-main-nav-width-sm);
}

html[data-menu-size="condensed"] .main-nav {
    width: var(--larkon-main-nav-width-sm);
    min-width: var(--larkon-main-nav-width-sm);
}

html[data-menu-size="condensed"] .page-content {
    margin-left: var(--larkon-main-nav-width-sm);
}

html[data-menu-size="condensed"] .logo-box {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

html[data-menu-size="condensed"] .logo-brand {
    max-width: none;
}

html[data-menu-size="condensed"] .brand-wordmark,
html[data-menu-size="condensed"] .nav-text,
html[data-menu-size="condensed"] .menu-title,
html[data-menu-size="condensed"] .sub-navbar-nav,
html[data-menu-size="condensed"] .larkon-sidebar-foot {
    display: none !important;
}

html[data-menu-size="condensed"] .main-nav .nav-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

html[data-menu-size="condensed"] .main-nav .menu-arrow::after {
    display: none;
}

html[data-menu-size="condensed"] .logo-sm {
    width: 44px;
    height: 44px;
}

html[data-menu-size="condensed"] .main-nav:hover {
    width: var(--larkon-main-nav-width);
    min-width: var(--larkon-main-nav-width);
}

html[data-menu-size="condensed"] .main-nav:hover .logo-box {
    justify-content: flex-start;
    padding-left: 25px;
    padding-right: 25px;
}

html[data-menu-size="condensed"] .main-nav:hover .brand-wordmark,
html[data-menu-size="condensed"] .main-nav:hover .nav-text,
html[data-menu-size="condensed"] .main-nav:hover .menu-title,
html[data-menu-size="condensed"] .main-nav:hover .sub-navbar-nav,
html[data-menu-size="condensed"] .main-nav:hover .larkon-sidebar-foot {
    display: block !important;
}

html[data-menu-size="condensed"] .main-nav:hover .nav-link {
    justify-content: flex-start;
    padding-left: 25px;
    padding-right: 25px;
}

html[data-menu-size="condensed"] .main-nav:hover .menu-arrow::after {
    display: block;
}

html[data-menu-size="hidden"] .topbar {
    padding-left: 0;
}

html[data-menu-size="hidden"] .main-nav {
    margin-left: calc(var(--larkon-main-nav-width) * -1);
}

html[data-menu-size="hidden"] .page-content {
    margin-left: 0;
}

body.sidebar-enable .main-nav {
    margin-left: 0 !important;
}

body.sidebar-enable::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 1000;
}

body.sidebar-enable .main-nav,
body.sidebar-enable .topbar {
    z-index: 1011;
}

@media (max-width: 1140px) {
    .topbar {
        padding-left: 0;
    }

    .page-content {
        margin-left: 0;
    }

    .main-nav {
        margin-left: calc(var(--larkon-main-nav-width) * -1);
    }
}

html[data-bs-theme="dark"] {
    --larkon-menu-bg: #262d34;
    --larkon-topbar-bg: #22282e;
    --larkon-border: #2f3944;
    --larkon-text: #9097a7;
    --larkon-heading: #dee2e6;
    --larkon-page-bg: #22282e;
    --larkon-card-bg: #262d34;
    --larkon-card-footer-bg: #2c333b;
}

html[data-bs-theme="dark"],
html[data-bs-theme="dark"] body,
html[data-bs-theme="dark"] body.larkon-app,
html[data-bs-theme="dark"] .wrapper,
html[data-bs-theme="dark"] .page-content,
html[data-bs-theme="dark"] .page-content > .container-fluid {
    background: var(--larkon-page-bg) !important;
}

html[data-bs-theme="dark"] .page-content .row {
    background: transparent !important;
}

html[data-bs-theme="dark"] .topbar,
html[data-bs-theme="dark"] .main-nav,
html[data-bs-theme="dark"] .footer {
    box-shadow: none;
}

html[data-bs-theme="dark"] .page-content .card,
html[data-bs-theme="dark"] .auth-larkon-shell .card,
html[data-bs-theme="dark"] .dropdown-menu,
html[data-bs-theme="dark"] .app-search .form-control,
html[data-bs-theme="dark"] .btn-outline-light,
html[data-bs-theme="dark"] .btn-soft-dark,
html[data-bs-theme="dark"] .app-help-chip,
html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] .bootstrap-select .dropdown-toggle,
html[data-bs-theme="dark"] .table thead th,
html[data-bs-theme="dark"] .app-builder-section,
html[data-bs-theme="dark"] .app-builder-block,
html[data-bs-theme="dark"] .alert-light,
html[data-bs-theme="dark"] .app-surface {
    background: var(--larkon-card-bg);
    color: #dee2e6;
    border-color: var(--larkon-border);
}

html[data-bs-theme="dark"] .table,
html[data-bs-theme="dark"] .table > :not(caption) > * > * {
    color: #dee2e6;
    border-bottom-color: var(--larkon-border);
}

html[data-bs-theme="dark"] .table tbody td {
    color: #aeb8c5;
}

html[data-bs-theme="dark"] .table-hover tbody tr:hover {
    background: rgba(8, 184, 216, 0.08);
}

html[data-bs-theme="dark"] .table-action-view {
    background: #2c333b;
    color: #dee2e6;
}

html[data-bs-theme="dark"] .table-action-edit {
    background: rgba(8, 184, 216, 0.14);
    color: #66e4fb;
}

html[data-bs-theme="dark"] .table-action-delete {
    background: rgba(239, 68, 68, 0.14);
    color: #fb7185;
}

html[data-bs-theme="dark"] .text-muted,
html[data-bs-theme="dark"] .topbar-meta,
html[data-bs-theme="dark"] .main-nav .menu-title,
html[data-bs-theme="dark"] .larkon-side-card small,
html[data-bs-theme="dark"] .larkon-side-card span,
html[data-bs-theme="dark"] .app-search .search-widget-icon {
    color: #9097a7 !important;
}

html[data-bs-theme="dark"] .main-nav .nav-link,
html[data-bs-theme="dark"] .main-nav .sub-nav-link,
html[data-bs-theme="dark"] .button-toggle-menu,
html[data-bs-theme="dark"] .topbar-button,
html[data-bs-theme="dark"] .brand-wordmark {
    color: #dee2e6;
}

html[data-bs-theme="dark"] .topbar-button.pe-none,
html[data-bs-theme="dark"] .topbar-profile-copy strong,
html[data-bs-theme="dark"] .page-content .card-title,
html[data-bs-theme="dark"] .auth-larkon-shell h2,
html[data-bs-theme="dark"] .auth-larkon-shell h3 {
    color: #dee2e6;
}

html[data-bs-theme="dark"] .topbar-profile-copy small {
    color: #9097a7;
}

html[data-bs-theme="dark"] .main-nav .nav-link.active,
html[data-bs-theme="dark"] .main-nav .nav-item.active > .nav-link,
html[data-bs-theme="dark"] .main-nav .nav-link:hover,
html[data-bs-theme="dark"] .main-nav .sub-nav-link.active,
html[data-bs-theme="dark"] .main-nav .sub-nav-link:hover,
html[data-bs-theme="dark"] .button-toggle-menu:hover,
html[data-bs-theme="dark"] .topbar-button:hover,
html[data-bs-theme="dark"] .topbar-button.show {
    color: #08b8d8;
    background: transparent;
}

html[data-bs-theme="dark"] .topbar-avatar-sm,
html[data-bs-theme="dark"] .bg-soft-primary {
    background: rgba(8, 184, 216, 0.16) !important;
}

html[data-bs-theme="dark"] .alert-primary {
    background: rgba(8, 184, 216, 0.16);
    border-color: rgba(8, 184, 216, 0.24);
    color: #8eeaff;
}

@media (max-width: 767px) {
    .navbar-header {
        align-items: center;
        flex-wrap: wrap;
        padding-top: 1rem;
        padding-bottom: 1rem;
        row-gap: .75rem;
    }

    .topbar {
        height: auto;
    }

    .topbar .container-fluid {
        min-width: 0;
    }

    .topbar .topbar-item {
        min-height: auto;
    }

    .topbar .topbar-button.pe-none {
        max-width: calc(100vw - 170px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-profile-copy {
        display: none !important;
    }

    .app-search .form-control {
        min-width: 0;
        width: min(190px, 42vw);
        min-height: 42px;
        padding-left: 2.6rem;
    }

    .app-datatable-header,
    .app-datatable-toolbar {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .app-datatable-search,
    .app-toolbar-btn {
        width: 100%;
    }

    .page-content > .container-fluid,
    .topbar .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .page-content .card,
    .app-surface {
        border-radius: 1rem;
    }

    .page-content .card-body,
    .page-content .card-header {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .app-datatable-title,
    .app-datatable-toolbar,
    .app-toolbar,
    .wizard-topbar,
    .wizard-footer-actions {
        min-width: 0;
        width: 100%;
    }

    .app-datatable-toolbar {
        margin-left: 0;
        gap: .65rem;
    }

    .app-toolbar-btn {
        min-height: 40px;
        padding: .55rem .85rem;
        white-space: normal;
    }

    .table-action-group {
        gap: .45rem;
    }

    .table-action-btn {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .app-table {
        border-radius: .85rem;
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
    }

    .app-table .table {
        min-width: 760px;
    }

    .app-table .table > :not(caption) > * > * {
        padding: .85rem;
    }

    .row {
        --bs-gutter-x: 1rem;
    }
}

@media (max-width: 991px) {
    .wizard-grid,
    .wizard-builder-grid,
    .course-layout-grid,
    .course-detail-layout,
    .student-course-layout,
    .settings-layout,
    .supplier-layout,
    .supplier-form-grid,
    .supplier-showcase-grid,
    .file-manager-layout,
    .calendar-shell,
    .assignment-form-grid,
    .assignment-target-grid,
    .employees-filter-toolbar,
    .business-grid,
    .lesson-editor-grid,
    .quiz-builder-grid,
    .cert-wizard-grid {
        grid-template-columns: 1fr !important;
    }

    .app-datatable-header {
        align-items: flex-start;
    }

    .app-datatable-toolbar {
        flex-wrap: wrap;
    }

    .app-datatable-search {
        width: min(100%, 340px);
    }
}

@media (max-width: 575px) {
    .page-content > .container-fluid,
    .topbar .container-fluid {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .navbar-header {
        gap: .5rem;
    }

    .topbar-button {
        padding: .4rem;
    }

    .app-search {
        order: 20;
        width: 100%;
    }

    .app-search .form-control {
        width: 100%;
    }

    .app-table {
        margin-left: -.75rem;
        margin-right: -.75rem;
        width: calc(100% + 1.5rem);
    }

    .app-table .table {
        min-width: 680px;
    }

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

    .btn,
    .form-control,
    .form-select,
    .bootstrap-select > .dropdown-toggle {
        min-height: 40px;
    }

    .app-kpi-card .card-body {
        padding: 1rem;
    }
}

.file-manager-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.file-manager-sidebar,
.file-manager-page .card {
    border: 1px solid var(--larkon-border);
    border-radius: 1rem;
    background: var(--larkon-card-bg);
    box-shadow: none;
}

.file-manager-storage {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.file-manager-storage h6,
.file-manager-stat strong,
.file-manager-folder h6,
.file-manager-file-name {
    color: var(--larkon-heading);
    font-weight: 700;
}

.file-manager-nav,
.file-manager-tree {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.file-manager-nav a,
.file-manager-tree a {
    min-height: 44px;
    padding: .65rem .75rem;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    color: var(--larkon-text);
    text-decoration: none;
    font-weight: 700;
    transition: all .2s ease;
}

.file-manager-nav a span,
.file-manager-tree a {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.file-manager-nav iconify-icon,
.file-manager-tree iconify-icon {
    font-size: 1.25rem;
    color: #8ba0b9;
}

.file-manager-nav a:hover,
.file-manager-nav a.active,
.file-manager-tree a:hover {
    background: rgba(8, 184, 216, .12);
    color: var(--larkon-primary);
}

.file-manager-nav a:hover iconify-icon,
.file-manager-nav a.active iconify-icon,
.file-manager-tree a:hover iconify-icon {
    color: var(--larkon-secondary);
}

.file-manager-kicker {
    color: #9aa9bb;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: .25rem;
}

.file-manager-stat .card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 118px;
}

.file-manager-stat span {
    color: #8b98aa;
    display: block;
    font-weight: 700;
    margin-bottom: .25rem;
}

.file-manager-stat strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1;
}

.fm-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: .8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 184, 216, .12);
    color: var(--larkon-secondary);
}

.fm-icon iconify-icon {
    font-size: 1.75rem;
}

.fm-icon-folder {
    background: rgba(8, 184, 216, .14);
    color: var(--larkon-secondary);
}

.fm-icon-doc {
    background: rgba(11, 69, 240, .1);
    color: var(--larkon-primary);
}

.fm-icon-secure {
    background: rgba(8, 216, 102, .14);
    color: var(--larkon-success);
}

.file-manager-breadcrumb {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: var(--larkon-text);
    font-weight: 700;
}

.file-manager-breadcrumb a {
    color: var(--larkon-primary);
    text-decoration: none;
}

.file-manager-folders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.file-manager-folder {
    min-height: 96px;
    padding: 1rem;
    border: 1px solid var(--larkon-border);
    border-radius: .95rem;
    display: flex;
    align-items: center;
    gap: .9rem;
    color: inherit;
    text-decoration: none;
    background: #fbfdff;
    transition: all .2s ease;
}

.file-manager-folder:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 184, 216, .35);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
}

.file-manager-folder h6 {
    margin: 0 0 .25rem;
}

.file-manager-folder span,
.file-manager-file-cell span {
    color: #8b98aa;
    font-size: .84rem;
    font-weight: 700;
}

.fm-folder-menu-btn {
    width: 20px;
    height: 20px;
    border: 1px solid var(--larkon-border);
    border-radius: .45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: #fff;
    transition: all .2s ease;
}

.fm-folder-menu-btn:hover,
.fm-folder-menu-btn:focus {
    color: var(--bs-primary);
    border-color: rgba(8, 184, 216, .35);
    background: rgba(8, 184, 216, .08);
}

.file-manager-file-cell {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 260px;
}

.fm-file-thumb {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: .75rem;
    background: #eff5fb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fm-file-thumb i {
    font-size: 1.8rem !important;
}

.fm-file-thumb .dz-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-manager-file-name {
    display: block;
    margin-bottom: .25rem;
    text-decoration: none;
}

.file-manager-page .app-table {
    overflow-x: auto;
    overflow-y: hidden;
}

.file-manager-page .app-table table {
    min-width: 980px;
}

.fm-path-truncate {
    display: inline-block;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.file-manager-empty {
    width: 100%;
    min-height: 90px;
    border: 1px dashed var(--larkon-border);
    border-radius: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    color: var(--larkon-text);
    font-weight: 700;
    background: #fbfdff;
}

.file-manager-empty iconify-icon {
    color: var(--larkon-secondary);
    font-size: 1.8rem;
}

.file-manager-page .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
}

.fm-certificate-grid,
.calendar-due-list {
    display: grid;
    gap: .85rem;
}

.fm-certificate-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.fm-certificate-card,
.calendar-due-item {
    display: grid;
    align-items: center;
    gap: .85rem;
    border: 1px solid var(--larkon-border);
    border-radius: .95rem;
    background: #fbfdff;
    color: var(--larkon-text);
    text-decoration: none;
    transition: all .2s ease;
}

.fm-certificate-card {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    padding: .95rem;
}

.calendar-due-item {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: .85rem;
}

.fm-certificate-card:hover,
.calendar-due-item:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 184, 216, .35);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
}

.fm-certificate-card > span,
.calendar-due-item > span {
    width: 46px;
    height: 46px;
    border-radius: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 184, 216, .14);
    color: var(--larkon-secondary);
}

.fm-certificate-card > span iconify-icon,
.calendar-due-item > span iconify-icon {
    font-size: 1.45rem;
}

.fm-certificate-card strong,
.calendar-due-item strong {
    display: block;
    color: var(--larkon-heading);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fm-certificate-card small,
.calendar-due-item small {
    display: block;
    margin-top: .2rem;
    color: #8b98aa;
    font-weight: 700;
}

.calendar-due-item > span.is-warning {
    background: rgba(255, 183, 77, .16);
    color: #b76b00;
}

.calendar-due-item > span.is-danger {
    background: rgba(255, 94, 94, .13);
    color: #ff5e5e;
}

html[data-bs-theme="dark"] .file-manager-sidebar,
html[data-bs-theme="dark"] .file-manager-page .card,
html[data-bs-theme="dark"] .file-manager-folder,
html[data-bs-theme="dark"] .file-manager-empty,
html[data-bs-theme="dark"] .fm-file-thumb,
html[data-bs-theme="dark"] .fm-certificate-card,
html[data-bs-theme="dark"] .calendar-due-item {
    background: var(--larkon-card-bg);
    border-color: var(--larkon-border);
}

html[data-bs-theme="dark"] .file-manager-folder:hover {
    box-shadow: none;
}

html[data-bs-theme="dark"] .file-manager-storage h6,
html[data-bs-theme="dark"] .file-manager-stat strong,
html[data-bs-theme="dark"] .file-manager-folder h6,
html[data-bs-theme="dark"] .file-manager-file-name,
html[data-bs-theme="dark"] .fm-certificate-card strong,
html[data-bs-theme="dark"] .calendar-due-item strong {
    color: #dee2e6;
}

@media (max-width: 991px) {
    .file-manager-layout {
        grid-template-columns: 1fr;
    }
}

.app-header-filter {
    width: min(420px, 100%);
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.app-header-filter .form-select,
.app-header-filter .bootstrap-select {
    width: 100%;
    min-width: min(320px, 100%);
}

.app-header-filter .bootstrap-select.form-select {
    min-width: min(320px, 100%) !important;
}

.app-header-filter .form-select {
    min-height: 46px;
    padding-left: 1rem;
    padding-right: 2.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-focus-card .card-body {
    min-height: 170px;
}

.report-focus-card h2 {
    color: var(--larkon-heading);
    font-weight: 800;
}

html[data-bs-theme="dark"] .report-focus-card h2 {
    color: #dee2e6;
}

.log-stat-card .card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 118px;
}

.log-stat-card span {
    color: #8b98aa;
    display: block;
    font-weight: 700;
    margin-bottom: .25rem;
}

.log-stat-card strong {
    color: var(--larkon-heading);
    display: block;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.15;
}

.log-context-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.log-context-item {
    min-height: 50px;
    padding: .75rem .85rem;
    border: 1px solid var(--larkon-border);
    border-radius: .8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fbfdff;
}

.log-context-item span {
    color: var(--larkon-text);
    font-weight: 700;
    text-transform: capitalize;
}

.log-context-item strong {
    color: var(--larkon-primary);
    font-weight: 800;
}

html[data-bs-theme="dark"] .log-stat-card strong {
    color: #dee2e6;
}

html[data-bs-theme="dark"] .log-context-item {
    background: var(--larkon-card-bg);
    border-color: var(--larkon-border);
}

@media (max-width: 767px) {
    .app-header-filter {
        width: 100%;
        margin-left: 0;
    }

    .form-select,
    .bootstrap-select {
        min-width: 100%;
    }
}

.text-doc-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.25rem;
    align-items: start;
}

.text-doc-main,
.text-doc-side-box,
.text-doc-letterhead-card {
    border: 1px solid var(--larkon-border);
    border-radius: 1rem;
    background: #fbfdff;
    padding: 1rem;
}

.text-doc-side {
    display: grid;
    gap: 1rem;
}

.text-doc-editor-toolbar {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    padding: .75rem;
    border: 1px solid var(--larkon-border);
    border-bottom: 0;
    border-radius: 1rem 1rem 0 0;
    background: #f8fbff;
}

.text-doc-editor-toolbar button {
    min-width: 38px;
    min-height: 36px;
    border: 1px solid var(--larkon-border);
    border-radius: .65rem;
    background: #fff;
    color: var(--larkon-heading);
    font-weight: 800;
}

.text-doc-editor {
    min-height: 520px;
    max-height: 680px;
    overflow-y: auto;
    padding: 1.25rem;
    border: 1px solid var(--larkon-border);
    border-radius: 0 0 1rem 1rem;
    background: #fff;
    color: var(--larkon-heading);
    line-height: 1.65;
    outline: none;
}

.text-doc-format-option {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: .75rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--larkon-border);
    border-radius: 1rem;
    margin-bottom: .75rem;
    cursor: pointer;
}

.text-doc-format-option strong,
.text-doc-format-option small {
    display: block;
}

.text-doc-format-option small {
    color: #8390a5;
    font-weight: 700;
}

.text-doc-letterhead-card {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: .85rem;
    align-items: center;
    height: 100%;
}

.text-doc-letterhead-preview {
    width: 70px;
    height: 54px;
    border-radius: .8rem;
    background: #eef8fb;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.text-doc-letterhead-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-doc-letterhead-preview iconify-icon {
    font-size: 1.8rem;
    color: var(--larkon-primary);
}

.text-doc-letterhead-card strong,
.text-doc-letterhead-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-doc-letterhead-card small {
    color: #8390a5;
}

.text-doc-preview-wrap {
    overflow: auto;
    padding: 1.5rem;
    border-radius: 1rem;
    background: #e9eef5;
}

.text-doc-a4 {
    position: relative;
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    background: #fff;
    color: #173055;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .18);
    overflow: hidden;
}

.text-doc-letterhead-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.text-doc-page-content {
    position: relative;
    z-index: 1;
    padding: 42mm 24mm 28mm;
    min-height: 297mm;
}

.text-doc-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 14mm;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.text-doc-a4 h1 {
    margin: 0 0 12mm;
    color: #173055;
    font-size: 30px;
    line-height: 1.15;
}

.text-doc-rendered {
    color: #273b5a;
    font-size: 15px;
    line-height: 1.7;
}

.text-doc-rendered img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 991px) {
    .text-doc-form-grid {
        grid-template-columns: 1fr;
    }

    .text-doc-a4 {
        width: 100%;
        min-height: 0;
    }
}

@media (max-width: 575px) {
    .text-doc-preview-wrap {
        padding: .75rem;
        margin-left: -.75rem;
        margin-right: -.75rem;
        border-radius: 0;
    }

    .text-doc-page-content {
        padding: 32mm 12mm 20mm;
    }

    .text-doc-letterhead-card {
        grid-template-columns: 58px minmax(0, 1fr) auto;
    }
}
