.htk-dashboard {
    min-height: 100vh;
    background: #ffffff;
    color: #0f1115;
}

.htk-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 300px minmax(300px, 1fr) auto;
    gap: 1.2rem;
    align-items: center;
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid #e9e9e9;
    background: #ffffff;
}

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

.htk-brand {
    color: #0f1115;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.htk-brand:hover,
.htk-brand:focus {
    text-decoration: none;
}

.htk-brand-text strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1;
    letter-spacing: 0.04em;
}

.htk-brand small {
    display: block;
    color: #545454;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.htk-search {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    padding: 0 0.35rem 0 0.6rem;
    height: 48px;
}

.htk-search input {
    flex: 1;
    border: 0;
    font-size: 0.95rem;
    outline: none;
    padding: 0 0.5rem;
    background: transparent;
}

.htk-search button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #1a1a1a;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.htk-search svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.htk-search-results {
    position: absolute;
    z-index: 80;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    max-height: min(420px, 70vh);
    overflow-y: auto;
    padding: 0.4rem;
    border: 1px solid #e4e7eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(15, 17, 21, 0.13);
}

.htk-search-results[hidden] {
    display: none;
}

.htk-search-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 64px;
    padding: 0.45rem;
    border-radius: 10px;
    color: #0f1115;
    text-decoration: none;
}

.htk-search-result:hover,
.htk-search-result:focus,
.htk-search-result.is-active {
    background: #f4f6f8;
    text-decoration: none;
}

.htk-search-result-thumb {
    flex: 0 0 76px;
    width: 76px;
    height: 50px;
    overflow: hidden;
    border-radius: 8px;
    background: #e9edf2;
}

.htk-search-result-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.htk-search-result-content {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.htk-search-result-content strong,
.htk-search-result-content small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.htk-search-result-content strong {
    font-size: 0.9rem;
    line-height: 1.35;
}

.htk-search-result-content small,
.htk-search-results-status {
    color: #687385;
    font-size: 0.82rem;
}

.htk-search-results-status {
    margin: 0;
    padding: 0.85rem 0.75rem;
}

.htk-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    justify-content: flex-end;
}

.htk-upgrade-btn {
    background: #0f1115;
    color: #ffffff;
    min-height: 44px;
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.htk-upgrade-btn svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.htk-upgrade-btn:hover,
.htk-upgrade-btn:focus {
    text-decoration: none;
    opacity: 0.92;
}

.htk-notify {
    width: 34px;
    height: 34px;
    color: #1a1a1a;
    border: 0;
    background: transparent;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.htk-notify svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.htk-notify-dot {
    position: absolute;
    top: -5px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #0f1115;
    color: #ffffff;
    font-size: 0.66rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #ffffff;
}

.htk-notify-dot.is-hidden {
    display: none;
}

.htk-notify-wrap {
    position: relative;
}

.htk-notify-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: -8px;
    width: min(92vw, 360px);
    border-radius: 14px;
    border: 1px solid #ececec;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(18, 22, 28, 0.14);
    padding: 0.85rem;
    z-index: 90;
}

.htk-notify-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}

.htk-notify-panel-header strong {
    font-size: 0.98rem;
}

.htk-notify-mark-read {
    border: 0;
    background: transparent;
    color: #0057d9;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.htk-notify-mark-read:disabled {
    opacity: 0.55;
    cursor: wait;
}

.htk-notify-list {
    display: grid;
    gap: 0.5rem;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.htk-notify-item {
    display: block;
    border-radius: 12px;
    padding: 0.62rem 0.68rem;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    color: #1a1a1a;
}

.htk-notify-item:hover,
.htk-notify-item:focus {
    text-decoration: none;
    border-color: #dae7ff;
    background: #f3f8ff;
}

.htk-notify-item.is-unread {
    border-color: #cfe0ff;
    background: #eef4ff;
}

.htk-notify-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.htk-notify-item-message {
    font-size: 0.84rem;
    color: #334155;
    line-height: 1.4;
}

.htk-notify-item-time {
    margin-top: 0.36rem;
    font-size: 0.77rem;
    color: #64748b;
}

.htk-notify-empty {
    margin: 0;
    padding: 0.5rem 0.25rem;
    color: #64748b;
    font-size: 0.88rem;
}

.htk-user-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #111111;
}

.htk-user-profile:hover,
.htk-user-profile:focus {
    text-decoration: none;
}

.htk-user-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.htk-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffe2c6 20%, #f5c69d 55%, #d39c75 100%);
    border: 1px solid #d5d5d5;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.htk-user-avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.htk-user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.htk-user-meta strong {
    font-size: 0.98rem;
    font-weight: 600;
}

.htk-user-meta small {
    color: #5d5d5d;
    font-size: 0.92rem;
}

.htk-user-menu-toggle {
    color: #5f5f5f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
}

.htk-user-menu-toggle:hover,
.htk-user-menu-toggle:focus,
.htk-user-menu-toggle[aria-expanded="true"] {
    background: #f1f5f9;
    color: #111111;
}

.htk-user-menu-toggle svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    transition: transform 0.18s ease;
}

.htk-user-menu-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.htk-user-menu {
    position: absolute;
    top: calc(100% + 11px);
    right: 0;
    width: 205px;
    padding: 7px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    z-index: 95;
}

.htk-user-menu[hidden] {
    display: none;
}

.htk-user-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 10px;
    border-radius: 8px;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
}

.htk-user-menu a:hover,
.htk-user-menu a:focus {
    background: #f3f6fb;
    text-decoration: none;
}

.htk-user-menu a.is-logout {
    margin-top: 5px;
    border-top: 1px solid #eef2f7;
    border-radius: 0 0 8px 8px;
    color: #b42318;
}

.htk-user-menu svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.htk-lesson-presence-feed {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.htk-lesson-presence-toast {
    margin: 0;
    min-width: 280px;
    max-width: min(92vw, 420px);
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.94);
    color: #ffffff;
    font-size: 0.92rem;
    line-height: 1.35;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.htk-lesson-presence-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.htk-dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 1rem;
    padding: 1rem;
}

.htk-sidebar,
.htk-main {
    background: #ffffff;
    border: 1px solid #ededed;
    border-radius: 16px;
}

.htk-sidebar-left {
    padding: 1.1rem 0.95rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.htk-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.htk-sidebar-menu li + li {
    margin-top: 0.25rem;
}

.htk-sidebar-left a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    padding: 0.72rem 0.76rem;
    border-radius: 10px;
    color: #1f1f1f;
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.htk-sidebar-left a:hover,
.htk-sidebar-left a:focus {
    background: #f5f6f7;
    text-decoration: none;
}

.htk-sidebar-left a.is-active {
    background: #0f1115;
    color: #ffffff;
}

.htk-nav-main {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
}

.htk-nav-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.htk-nav-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.htk-nav-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.htk-nav-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.htk-nav-badge-free {
    height: 22px;
    border-radius: 7px;
    padding: 0 0.5rem;
    background: #c9f4d8;
    color: #1c9b58;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.htk-nav-badge-dot {
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #0f1115;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0 0.45rem;
}

.htk-sidebar-divider {
    height: 1px;
    background: #e7e7e7;
    margin: 0.3rem 0 0.1rem;
}

.htk-sidebar-account h3 {
    margin: 0 0 0.5rem;
    color: #8a8a8a;
    letter-spacing: 0.05em;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0 0.75rem;
}

.htk-pro-box {
    margin-top: auto;
    border-radius: 14px;
    padding: 0.95rem;
    background: #101216;
    color: #ffffff;
}

.htk-pro-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.5rem;
}

.htk-pro-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 196, 0, 0.2);
    color: #ffc400;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.htk-pro-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.htk-pro-box h3 {
    margin: 0;
    font-size: 1rem;
}

.htk-pro-box p {
    margin: 0;
    font-size: 1rem;
    color: #d4d4d4;
    line-height: 1.45;
}

.htk-pro-box a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.88rem;
    background: #ffffff;
    color: #111111;
    border-radius: 8px;
    padding: 0.48rem 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.htk-pro-box a span svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.htk-main {
    padding: 0;
    border: 0;
}

.htk-page-article {
    border: 1px solid #ededed;
    border-radius: 16px;
    background: #ffffff;
    padding: 1.2rem 1.35rem;
}

.htk-page-content {
    margin-top: 1rem;
    color: #22262e;
    line-height: 1.7;
}

.htk-page-content > :first-child {
    margin-top: 0;
}

.htk-page-content > :last-child {
    margin-bottom: 0;
}

.htk-page-content :where(p, ul, ol, blockquote, pre, table, figure) {
    margin: 0 0 1rem;
}

.htk-page-content h1,
.htk-page-content h2,
.htk-page-content h3,
.htk-page-content h4,
.htk-page-content h5,
.htk-page-content h6 {
    margin: 1.25rem 0 0.6rem;
    line-height: 1.3;
}

.htk-page-content img {
    max-width: 100%;
    height: auto;
}

.htk-page-links {
    margin-top: 1rem;
    color: #5f636c;
    font-size: 0.95rem;
}

.htk-section-head h2 {
    margin: 0;
    font-size: 2rem;
}

.htk-section-head p {
    margin: 0.5rem 0 0;
    color: #5f636c;
    font-size: 1rem;
}

.htk-gap-top {
    margin-top: 2.1rem;
}

.htk-course-slider {
    position: relative;
    margin-top: 1rem;
}

.htk-course-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3rem) / 4);
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.htk-course-grid::-webkit-scrollbar {
    display: none;
}

.htk-course-card {
    border: 1px solid #e2e4e8;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(12, 12, 13, 0.04);
    scroll-snap-align: start;
}

.htk-course-cover {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    position: relative;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.htk-theme-ps {
    background: linear-gradient(120deg, #10243f 0%, #1b436f 45%, #2f6da1 100%);
}

.htk-theme-ai {
    background: radial-gradient(circle at 80% 20%, #ff7a1c 0%, #2a1d1a 35%, #17181d 100%);
}

.htk-theme-pr {
    background: linear-gradient(140deg, #111c41 0%, #16254f 44%, #0f1117 100%);
}

.htk-theme-af {
    background: linear-gradient(130deg, #0f2b64 0%, #0f3d85 45%, #052556 100%);
}

.htk-course-badge {
    width: 17px;
    height: 17px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #66b7ff;
    border: 1px solid rgba(102, 183, 255, 0.85);
    background: rgba(11, 18, 29, 0.5);
    font-size: 0.5rem;
    font-weight: 700;
}

.htk-course-cover h3 {
    margin: auto 0 0;
    color: #ffffff;
    font-size: 1.45rem;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.htk-course-body {
    padding: 0.9rem 0.85rem 0.8rem;
}

.htk-course-body p {
    margin: 0;
    color: #404249;
    font-size: 0.92rem;
}

.htk-course-progress-text {
    margin-top: 0.8rem;
    color: #181a1d;
    font-size: 0.96rem;
    font-weight: 600;
}

.htk-course-body .htk-progress {
    margin-top: 0.45rem;
    height: 4px;
    width: 100%;
    background: #e8ebef;
    border-radius: 999px;
    overflow: hidden;
}

.htk-course-body .htk-progress span {
    display: block;
    height: 100%;
    background: #111111;
}

.htk-course-btn {
    margin-top: 0.86rem;
    display: block;
    width: 100%;
    text-align: center;
    background: #0d0f13;
    color: #ffffff;
    border-radius: 9px;
    padding: 0.56rem 0.8rem;
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 600;
}

.htk-course-btn:hover,
.htk-course-btn:focus {
    text-decoration: none;
    opacity: 0.95;
}

.htk-course-next {
    position: absolute;
    right: -14px;
    top: 54px;
    width: 44px;
    height: 44px;
    border: 1px solid #e1e2e5;
    border-radius: 50%;
    background: #ffffff;
    color: #4d4f55;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(14, 16, 21, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.htk-course-next svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.htk-free-head h2 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.htk-free-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0.2rem 0.5rem;
    background: #c9f4d8;
    color: #22995a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.htk-filter-tabs {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.htk-filter-tabs button {
    border: 1px solid #dadddf;
    background: #ffffff;
    color: #2d2f35;
    border-radius: 10px;
    padding: 0.54rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.htk-filter-tabs button.is-active {
    border-color: #0f1115;
    background: #0f1115;
    color: #ffffff;
}

.htk-lessons-wrap {
    margin-top: 1rem;
}

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

.htk-lesson-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "thumb"
        "content"
        "action";
    gap: 0.9rem;
    align-content: start;
    padding: 1rem;
    border: 1px solid #eceef1;
    border-radius: 14px;
    background: #ffffff;
}

.htk-lesson-thumb {
    grid-area: thumb;
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    overflow: hidden;
}

.htk-lesson-thumb.has-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 14, 24, 0.08) 0%, rgba(10, 14, 24, 0.28) 100%);
    pointer-events: none;
}
.htk-lesson-thumb-mark {
    position: relative;
    z-index: 1;
    pointer-events: none;
    font-size: 2rem;
    font-weight: 800;
}

.htk-lesson-save {
    position: absolute;
    top: 0.55rem;
    z-index: 1;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

.htk-lesson-new-badge {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 0.58rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.96);
    color: #111722;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 22px rgba(17, 23, 34, 0.12);
}

.htk-lesson-tier-pill {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 0.26rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

.htk-lesson-tier-free {
    background: #c9f4d8;
    color: #16834b;
}

.htk-lesson-tier-pro {
    background: #111722;
    color: #ffffff;
}

.htk-lesson-save {
    right: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.96);
    color: #202733;
    cursor: pointer;
}

.htk-lesson-save svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
}

.htk-lesson-save:hover,
.htk-lesson-save:focus {
    background: #ffffff;
    border-color: #ffffff;
}

.htk-lesson-save.is-saved {
    background: #111722;
    color: #ffffff;
    border-color: #111722;
}

.htk-lesson-content small {
    display: block;
    color: #2c67ff;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.htk-lesson-course-link,
.htk-lesson-course-link:visited {
    color: inherit;
    text-decoration: none;
}

.htk-lesson-course-link:hover,
.htk-lesson-course-link:focus {
    color: #1f3fb7;
    text-decoration: none;
}

.htk-lesson-content {
    grid-area: content;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    justify-content: center;
}
.htk-lesson-card[hidden] {
    display: none;
}

.htk-lessons-empty {
    margin-top: 1rem;
    padding: 2.5rem 1rem;
    border: 1px dashed #d9dce1;
    border-radius: 14px;
    background: #ffffff;
    text-align: center;
}

.htk-lessons-empty[hidden] {
    display: none;
}

.htk-lessons-empty strong {
    display: block;
    margin-bottom: 0.35rem;
}

.htk-lessons-empty p {
    margin: 0;
}

.htk-lesson-content h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    overflow: hidden;
}

.htk-lesson-content h3 .htk-lesson-title-link {
    min-width: 0;
    flex: 1 1 auto;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.htk-lesson-content p {
    margin: 0;
    color: #63666f;
    font-size: 0.89rem;
    line-height: 1.35;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.htk-lesson-path-link,
.htk-lesson-path-link:visited {
    color: #63666f;
    text-decoration: none;
}

.htk-lesson-path-link:hover,
.htk-lesson-path-link:focus {
    color: #1f3fb7;
    text-decoration: none;
}

.htk-lesson-meta {
    margin-top: 0.15rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    color: #686b73;
    font-size: 0.84rem;
}

.htk-lesson-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.htk-lesson-meta span svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.htk-lesson-action {
    grid-area: action;
}

.htk-free-mini {
    background: #c9f4d8;
    color: #239a5b;
    border-radius: 6px;
    padding: 0 0.32rem;
    font-weight: 800;
}

.htk-lesson-action {
    grid-area: action;
    width: 100%;
    border: 1px solid #d9dce1;
    border-radius: 9px;
    padding: 0.48rem 0.75rem;
    color: #23262d;
    white-space: nowrap;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    align-self: end;
    justify-self: stretch;
}

.htk-lesson-action svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.htk-lessons-footer {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding: 0;
}

.htk-lessons-footer a {
    border: 1px solid #d8dbe0;
    border-radius: 10px;
    padding: 0.65rem 1.15rem;
    color: #24262c;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.96rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.htk-lessons-footer a span svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.htk-sidebar-right {
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.htk-panel {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1rem;
    background: #ffffff;
}

.htk-panel h3 {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.25;
}

.htk-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.htk-panel-head a {
    color: #25272d;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.htk-panel-head a span svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.htk-panel-item + .htk-panel-item {
    margin-top: 0.95rem;
}

.htk-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.htk-item-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.htk-item-app {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #66b7ff;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 700;
    flex-shrink: 0;
}

.htk-app-ps {
    background: linear-gradient(150deg, #0a1b37 0%, #103968 100%);
}

.htk-app-ai {
    background: linear-gradient(150deg, #2a1408 0%, #6f3307 100%);
    color: #f8a12a;
}

.htk-app-pr {
    background: linear-gradient(150deg, #190d5c 0%, #2b2a97 100%);
    color: #9fa5ff;
}

.htk-app-af {
    background: linear-gradient(150deg, #0e5f97 0%, #51bee9 100%);
    color: #ddf6ff;
}

.htk-item-title-wrap strong {
    font-size: 1.08rem;
    line-height: 1.25;
}

.htk-item-top small {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e2025;
}

.htk-progress-thin {
    margin-top: 0.55rem;
    height: 6px;
    border-radius: 99px;
    background: #ebedf0;
    overflow: hidden;
}

.htk-progress-thin span {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: #111111;
}

.htk-progress-green span {
    background: #30c55a;
}

.htk-panel-item p {
    margin: 0.45rem 0 0;
    color: #5f626b;
    font-size: 0.95rem;
}

.htk-note-list-2 {
    margin: 0;
    padding: 0;
    list-style: none;
}

.htk-note-list-2 li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0.7rem;
    align-items: flex-start;
}

.htk-note-list-2 li + li {
    margin-top: 0.95rem;
}

.htk-note-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.htk-note-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.htk-note-gold {
    background: #fff3df;
    color: #ffb300;
}

.htk-note-blue {
    background: #edf2ff;
    color: #2f54ff;
}

.htk-note-green {
    background: #e8f8ee;
    color: #1aa44a;
}

.htk-note-list-2 strong {
    display: block;
    font-size: 1.08rem;
    line-height: 1.3;
}

.htk-note-list-2 p {
    margin: 0.2rem 0;
    color: #35373d;
    font-size: 1rem;
    line-height: 1.4;
}

.htk-note-list-2 small {
    color: #5f626b;
    font-size: 0.95rem;
}

.htk-footer {
    margin-top: 1.25rem;
    border-top: 1px solid #ececec;
    padding: 1.25rem 0;
    background: #ffffff;
}

.htk-footer-inner {
    width: min(100%, 1400px);
    margin: 0 auto;
    padding: 0 1rem;
}

.htk-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.htk-footer h4 {
    margin: 0 0 0.8rem;
    color: #13151a;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 0.95rem;
    font-weight: 700;
}

.htk-footer-brand {
    max-width: 320px;
}

.htk-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #111111;
    text-decoration: none;
}

.htk-footer-logo-mark {
    font-size: 3.05rem;
    line-height: 0.9;
    font-weight: 800;
    letter-spacing: -2px;
}

.htk-footer-logo-mark span {
    font-size: 1.12rem;
    margin-left: 1px;
}

.htk-footer-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.htk-footer-brand p {
    margin: 0.65rem 0 0;
    color: #2a2d33;
    font-size: 0.95rem;
    line-height: 1.75;
}

.htk-footer p,
.htk-footer li,
.htk-footer small {
    color: #23262d;
    font-size: 0.95rem;
}

.htk-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.htk-footer li + li {
    margin-top: 0.62rem;
}

.htk-footer a {
    color: #23262d;
    text-decoration: none;
}

.htk-footer a:hover,
.htk-footer a:focus {
    color: #0f1115;
}

.htk-footer-socials {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.htk-footer-socials a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0f1115;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

.htk-footer-socials a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 1235px) {
    .htk-dashboard-grid {
        grid-template-columns: 220px 1fr;
    }

    .htk-sidebar-right {
        grid-column: 2;
    }
}

@media (max-width: 1200px) {

    .htk-course-grid {
        grid-auto-columns: calc((100% - 2rem) / 3);
    }

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

}

@media (max-width: 900px) {
    .htk-topbar {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.8rem 1rem;
    }

    .htk-topbar-left {
        justify-content: space-between;
    }

    .htk-brand-text strong {
        font-size: 1.1rem;
    }

    .htk-brand small {
        font-size: 0.78rem;
    }

    .htk-topbar-right {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .htk-notify-panel {
        right: auto;
        left: 0;
    }

    .htk-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .htk-sidebar-right {
        grid-column: 1;
    }

    .htk-course-grid {
        grid-auto-columns: calc((100% - 1rem) / 2);
    }

    .htk-course-next {
        display: none;
    }

    .htk-lessons-grid {
        grid-template-columns: 1fr;
    }

    .htk-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.35rem;
    }
}

@media (max-width: 640px) {
    .htk-user-meta {
        display: none;
    }

    .htk-section-head h2 {
        font-size: 1.6rem;
    }

    .htk-course-grid {
        grid-auto-columns: 100%;
    }

    .htk-course-badge {
        width: 15px;
        height: 15px;
        font-size: 0.45rem;
    }

    .htk-filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .htk-filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .htk-filter-tabs button {
        white-space: nowrap;
    }

    .htk-lesson-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "thumb"
            "content"
            "action";
        gap: 0.7rem;
    }

    .htk-lesson-thumb {
        width: 100%;
        height: auto;
    }

    .htk-footer-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .htk-footer-inner {
        padding: 0 0.75rem;
    }

    .htk-footer-logo-text {
        font-size: 1.25rem;
    }
}
body.htk-image-lightbox-open {
    overflow: hidden;
}

body.htk-course-start-prompt-open {
    overflow: hidden;
}

.htk-course-start-prompt[hidden] {
    display: none;
}

.htk-course-start-prompt {
    position: fixed;
    z-index: 10020;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
}

.htk-course-start-prompt-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(17, 23, 34, 0.58);
    cursor: pointer;
}

.htk-course-start-prompt-dialog {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-xl);
    padding: var(--ds-space-5);
    background: var(--ds-surface);
    color: var(--ds-text);
    font-family: var(--ds-font-family);
    box-shadow: var(--ds-shadow-3);
}

.htk-course-start-prompt-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--ds-border);
    border-radius: 50%;
    background: var(--ds-surface);
    color: var(--ds-text);
    font-family: var(--ds-font-family);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.htk-course-start-prompt-kicker {
    display: inline-flex;
    margin-bottom: var(--ds-space-3);
    border-radius: var(--ds-radius-pill);
    padding: 0.32rem 0.62rem;
    background: var(--ds-success-soft);
    color: var(--ds-success-text);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-bold);
    text-transform: uppercase;
}

.htk-course-start-prompt-dialog h2 {
    margin: 0;
    max-width: 360px;
    color: var(--ds-text);
    font-size: var(--ds-fs-800);
    font-weight: var(--ds-fw-bold);
    line-height: var(--ds-lh-tight);
}

.htk-course-start-prompt-dialog p {
    margin: var(--ds-space-3) 0 0;
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-500);
    line-height: var(--ds-lh-body);
}

.htk-course-start-prompt-free-count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: var(--ds-radius-md);
    padding: 0.55rem 0.7rem;
    background: var(--ds-surface-soft);
    color: var(--ds-text);
    font-weight: var(--ds-fw-medium);
}

.htk-course-start-prompt-free-count strong {
    color: var(--ds-success-text);
    font-size: 1.15em;
}

.htk-course-start-prompt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-space-3);
    margin-top: var(--ds-space-4);
}

.htk-course-start-prompt-actions .htk-learning-primary,
.htk-course-start-prompt-actions .htk-learning-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--ds-control-height);
    border-radius: var(--ds-radius-md);
    padding: 0.72rem var(--ds-space-4);
    font-family: var(--ds-font-family);
    font-size: var(--ds-fs-400);
    font-weight: var(--ds-fw-bold);
    line-height: 1.1;
    text-decoration: none;
    appearance: none;
    cursor: pointer;
}

.htk-course-start-prompt-actions .htk-learning-primary {
    border: 1px solid var(--ds-primary);
    background: var(--ds-primary);
    color: var(--ds-text-inverse);
}

.htk-course-start-prompt-actions .htk-learning-secondary {
    border: 1px solid var(--ds-border-strong);
    background: var(--ds-surface);
    color: var(--ds-text);
}

.htk-course-start-prompt-actions .htk-learning-primary:hover,
.htk-course-start-prompt-actions .htk-learning-primary:focus {
    background: var(--ds-primary-hover);
    color: var(--ds-text-inverse);
    text-decoration: none;
}

.htk-course-start-prompt-actions .htk-learning-secondary:hover,
.htk-course-start-prompt-actions .htk-learning-secondary:focus {
    border-color: var(--ds-border-strong);
    background: var(--ds-surface-soft);
    color: var(--ds-text);
    text-decoration: none;
}

@media (max-width: 520px) {
    .htk-course-start-prompt {
        align-items: center;
        padding: 12px;
    }

    .htk-course-start-prompt-dialog {
        border-radius: 14px;
        padding: 1.15rem;
    }

    .htk-course-start-prompt-dialog h2 {
        padding-right: 2rem;
        font-size: 1.35rem;
    }

    .htk-course-start-prompt-actions {
        flex-direction: column;
    }

    .htk-course-start-prompt-actions .htk-learning-primary,
    .htk-course-start-prompt-actions .htk-learning-secondary {
        width: 100%;
        text-align: center;
    }
}

[data-htk-image-lightbox],
[data-htk-video-lightbox] {
    cursor: zoom-in;
}

.htk-image-lightbox[hidden] {
    display: none;
}

.htk-image-lightbox {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.htk-image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(3, 8, 20, 0.8);
    cursor: zoom-out;
}

.htk-image-lightbox-dialog {
    position: relative;
    z-index: 1;
    max-width: min(1100px, 100%);
    max-height: 100%;
}

.htk-image-lightbox-dialog img {
    display: block;
    max-width: 100%;
    max-height: calc(80vh - 48px);
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
}

.htk-image-lightbox-dialog iframe {
    display: block;
    width: min(1000px, calc(100vw - 48px));
    aspect-ratio: 16 / 9;
    max-height: calc(80vh - 48px);
    border: 0;
    border-radius: 12px;
    background: #000;
}

.htk-image-lightbox-dialog iframe[hidden] {
    display: none;
}

.htk-image-lightbox-close {
    position: absolute;
    z-index: 1;
    top: -14px;
    right: -14px;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111722;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(3, 8, 20, 0.22);
}

.htk-new-lessons-popup[hidden] {
    display: none;
}

.htk-new-lessons-popup {
    position: fixed;
    z-index: 10020;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.htk-new-lessons-popup-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 12, 24, 0.58);
    cursor: pointer;
}

.htk-new-lessons-popup-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(86vh, 720px);
    overflow: auto;
    padding: 24px;
    border: 1px solid var(--ds-border-soft);
    border-radius: 16px;
    background: var(--ds-surface);
    box-shadow: 0 24px 72px rgba(7, 12, 24, 0.28);
}

.htk-new-lessons-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--ds-border);
    border-radius: 50%;
    background: var(--ds-surface-soft);
    color: var(--ds-text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.htk-new-lessons-popup-kicker {
    margin: 0 42px 8px 0;
    color: var(--ds-accent);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-semibold);
    text-transform: uppercase;
}

.htk-new-lessons-popup-dialog h2 {
    margin: 0 42px 18px 0;
    color: var(--ds-text);
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.2;
}

.htk-new-lessons-popup-list {
    display: grid;
    gap: 10px;
}

.htk-new-lessons-popup-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--ds-border-soft);
    border-radius: 12px;
    color: var(--ds-text);
    text-decoration: none;
    background: var(--ds-surface-soft);
}

.htk-new-lessons-popup-item:hover,
.htk-new-lessons-popup-item:focus {
    border-color: var(--ds-border-strong);
    color: var(--ds-text);
    text-decoration: none;
}

.htk-new-lessons-popup-item img,
.htk-new-lessons-popup-thumb {
    width: 64px;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    object-fit: cover;
    background: var(--ds-surface);
}

.htk-new-lessons-popup-thumb {
    display: inline-grid;
    place-items: center;
    color: var(--ds-accent);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-bold);
}

.htk-new-lessons-popup-item strong {
    display: block;
    color: var(--ds-text);
    font-size: var(--ds-fs-300);
    line-height: 1.35;
}

.htk-new-lessons-popup-item small {
    display: block;
    margin-top: 3px;
    color: var(--ds-text-muted);
    font-size: var(--ds-fs-200);
}

.htk-new-lessons-popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.htk-new-lessons-popup-actions .htk-learning-primary,
.htk-new-lessons-popup-actions .htk-learning-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: var(--ds-fs-300);
    font-weight: var(--ds-fw-semibold);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.htk-new-lessons-popup-actions .htk-learning-secondary {
    border: 1px solid var(--ds-border);
    background: var(--ds-surface);
    color: var(--ds-text);
}

.htk-new-lessons-popup-actions .htk-learning-primary {
    border: 1px solid var(--ds-primary);
    background: var(--ds-primary);
    color: var(--ds-text-inverse);
}

.htk-new-lessons-popup-actions .htk-learning-secondary:hover,
.htk-new-lessons-popup-actions .htk-learning-secondary:focus {
    border-color: var(--ds-border-strong);
    background: var(--ds-surface-soft);
    color: var(--ds-text);
    text-decoration: none;
}

.htk-new-lessons-popup-actions .htk-learning-primary:hover,
.htk-new-lessons-popup-actions .htk-learning-primary:focus {
    border-color: var(--ds-primary-hover);
    background: var(--ds-primary-hover);
    color: var(--ds-text-inverse);
    text-decoration: none;
}

body.htk-new-lessons-popup-open {
    overflow: hidden;
}

@media (max-width: 520px) {
    .htk-new-lessons-popup {
        padding: 12px;
    }

    .htk-new-lessons-popup-dialog {
        padding: 18px;
        border-radius: 14px;
    }

    .htk-new-lessons-popup-dialog h2 {
        font-size: 22px;
    }

    .htk-new-lessons-popup-actions {
        flex-direction: column-reverse;
    }

    .htk-new-lessons-popup-actions .htk-learning-primary,
    .htk-new-lessons-popup-actions .htk-learning-secondary {
        width: 100%;
    }
}
