.htk-learning-page {
    max-width: 1240px;
    min-height: 60vh;
    margin: 0 auto;
    padding: var(--ds-space-4) var(--ds-space-6) var(--ds-space-8);
    font-family: var(--ds-font-family);
    color: var(--ds-text);
}

.htk-main.htk-learning-page {
    max-width: none;
    min-height: 0;
    margin: 0;
}

@media (min-width: 1201px) {
    .htk-dashboard-grid.htk-lesson-dashboard-grid {
        grid-template-columns: var(--ds-sidebar-left) minmax(0, 1fr) 420px;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .htk-dashboard-grid.htk-lesson-dashboard-grid {
        grid-template-columns: var(--ds-sidebar-left) minmax(0, 1fr);
    }

    .htk-dashboard-grid.htk-lesson-dashboard-grid .htk-main,
    .htk-dashboard-grid.htk-lesson-dashboard-grid .htk-lesson-sidebar {
        grid-column: 2;
    }
}

.htk-learning-return {
    display: inline-flex;
    margin-bottom: var(--ds-space-4);
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-300);
}
.htk-lesson-top-nav {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--ds-space-3);
    flex-wrap: wrap;
    margin-bottom: var(--ds-space-4);
}
.htk-lesson-top-nav .htk-learning-return {
    margin-bottom: 0;
    flex: 0 0 100%;
}
.htk-lesson-path-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ds-space-2);
    width: 100%;
}
.htk-lesson-path-switch .htk-path-nav-btn {
    min-width: 0;
    max-width: none;
    padding: var(--ds-space-3);
}

.htk-course-hero {
    margin-bottom: var(--ds-space-6);
    padding: clamp(26px, 5vw, 48px);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-2xl);
    background:
        radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.08), transparent 50%),
        linear-gradient(180deg, var(--ds-white) 0%, var(--ds-blue-50) 100%);
    box-shadow: var(--ds-shadow-1);
    color: var(--ds-text);
}

.htk-course-hero .htk-learning-return,
.htk-course-hero p {
    color: var(--ds-text-soft);
}

.htk-course-hero-description {
    position: relative;
    margin: 0;
    max-width: 760px;
}

.htk-course-hero-description-text {
    margin: 0;
    color: var(--ds-text-soft);
    line-height: 1.65;
    max-height: calc(1.65em * 3);
    overflow: hidden;
}

.htk-course-hero-description-text > :first-child {
    margin-top: 0;
}

.htk-course-hero-description-text > :last-child {
    margin-bottom: 0;
}

.htk-course-hero-description-text :where(p, ul, ol, blockquote) {
    margin: 0 0 0.9em;
}

.htk-course-hero-description-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.8rem;
    height: 2.8rem;
    background: linear-gradient(180deg, rgba(238, 245, 255, 0) 0%, var(--ds-blue-50) 95%);
    pointer-events: none;
}

.htk-course-hero-description-toggle {
    display: inline-flex;
    margin-top: var(--ds-space-2);
    font-size: var(--ds-fs-300);
    font-weight: var(--ds-fw-semibold);
    color: var(--ds-accent);
    text-decoration: none;
}

.htk-course-hero-description-toggle:hover,
.htk-course-hero-description-toggle:focus {
    color: var(--ds-accent-hover);
    text-decoration: none;
}

.htk-course-hero-description.is-expanded .htk-course-hero-description-text {
    max-height: none;
}

.htk-course-hero-description.is-expanded .htk-course-hero-description-fade {
    display: none;
}

.htk-course-hero-description.is-short .htk-course-hero-description-text {
    max-height: none;
}

.htk-course-hero h1 {
    margin: 0 0 var(--ds-space-3);
    font-size: clamp(2rem, 4vw, 3rem);
}

.htk-course-hero p {
    max-width: 640px;
    margin: 0;
}

.htk-course-hero.is-course-detail p,
.htk-course-hero.is-course-detail .htk-course-hero-description,
.htk-course-hero.is-course-detail .htk-course-hero-description-text {
    max-width: none;
}

.htk-course-hero-meta {
    margin-top: var(--ds-space-4);
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-space-2);
}

.htk-course-hero-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 var(--ds-space-3);
    border: 1px solid var(--ds-border-strong);
    border-radius: var(--ds-radius-pill);
    background: var(--ds-surface);
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-semibold);
}

.htk-path-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 272px;
    align-items: start;
    gap: var(--ds-space-6);
}

.htk-path-hero-main {
    min-width: 0;
}

.htk-path-hero-nav {
    display: grid;
    gap: var(--ds-space-3);
    padding-top: var(--ds-space-5);
}

.htk-learning-progress {
    margin: 0 0 var(--ds-space-4);
}

.htk-learning-progress-hero {
    max-width: 560px;
    margin-top: var(--ds-space-5);
    margin-bottom: 0;
}

.htk-learning-progress-head {
    display: flex;
    justify-content: space-between;
    gap: var(--ds-space-3);
    margin-bottom: var(--ds-space-2);
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-200);
}

.htk-learning-progress-head strong {
    color: var(--ds-text);
}

.htk-learning-progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: var(--ds-radius-pill);
    background: var(--ds-primary-soft);
}

.htk-learning-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ds-success);
}

.htk-learning-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: var(--ds-space-5);
    align-items: start;
}

.htk-account-header {
    margin-bottom: var(--ds-space-4);
}

.htk-account-header h1 {
    margin: 0 0 var(--ds-space-2);
}

.htk-account-header p {
    margin: 0;
    color: var(--ds-text-soft);
}

.htk-account-surface {
    display: grid;
    gap: var(--ds-space-4);
}

.htk-account-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-space-2);
}

.htk-account-tab {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 var(--ds-space-3);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-pill);
    color: var(--ds-text-soft);
    text-decoration: none;
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-semibold);
}

.htk-account-tab:hover,
.htk-account-tab:focus {
    text-decoration: none;
    color: var(--ds-text);
    border-color: var(--ds-border-strong);
}

.htk-account-tab.is-active {
    color: var(--ds-text-inverse);
    background: var(--ds-accent);
    border-color: var(--ds-accent);
}

.htk-account-tab.is-active:hover,
.htk-account-tab.is-active:focus {
    color: var(--ds-text-inverse);
}

.htk-account-panel h2 {
    margin: 0 0 var(--ds-space-3);
}

.htk-account-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--ds-text-soft);
    display: grid;
    gap: 6px;
}

.htk-account-notice {
    padding: var(--ds-space-3) var(--ds-space-4);
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-md);
    background: var(--ds-surface-soft);
    color: var(--ds-text);
    font-size: var(--ds-fs-300);
    font-weight: var(--ds-fw-semibold);
}

.htk-account-notice-link {
    color: inherit;
    text-decoration: underline;
}

.htk-account-zalo-reminder {
    margin: var(--ds-space-4) 0 0;
    color: var(--ds-text-soft);
}

.htk-account-zalo-reminder a {
    font-weight: var(--ds-fw-semibold);
}

.htk-account-notice-saved {
    border-color: var(--ds-success);
    background: var(--ds-success-soft);
    color: var(--ds-success-text);
}

.htk-account-notice-missing {
    border-color: var(--ds-warning);
    background: var(--ds-warning-soft);
    color: var(--ds-warning);
}

.htk-zalo-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: var(--ds-space-4);
}

.htk-zalo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
}

.htk-zalo-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    padding: var(--ds-space-5);
    border-radius: var(--ds-radius-lg);
    border: 1px solid var(--ds-border-soft);
    background: var(--ds-surface);
    box-shadow: var(--ds-shadow-3);
}

.htk-zalo-modal-card h2 {
    margin: 0 0 var(--ds-space-2);
}

.htk-zalo-modal-card p {
    margin: 0 0 var(--ds-space-4);
    color: var(--ds-text-soft);
    line-height: 1.55;
}

.htk-zalo-modal-field {
    display: grid;
    gap: var(--ds-space-2);
    margin-bottom: var(--ds-space-4);
    color: var(--ds-text);
    font-weight: var(--ds-fw-semibold);
}

.htk-zalo-modal-field input {
    width: 100%;
    min-height: 44px;
    padding: 0 var(--ds-space-3);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    background: var(--ds-surface);
    color: var(--ds-text);
    font: inherit;
}

.htk-zalo-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--ds-space-2);
    flex-wrap: wrap;
}

.htk-account-plans {
    margin-top: var(--ds-space-6);
    padding-top: var(--ds-space-5);
    border-top: 1px solid var(--ds-border-soft);
}

.htk-account-plans-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--ds-space-4);
    margin-bottom: var(--ds-space-4);
}

.htk-account-plans-head h2 {
    margin-bottom: var(--ds-space-2);
}

.htk-account-plans-head p {
    margin: 0;
    color: var(--ds-text-soft);
}

.htk-account-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ds-space-3);
}

.htk-account-plan,
.htk-account-plan-empty {
    padding: var(--ds-space-4);
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-surface-soft);
}

.htk-account-plan-empty strong {
    display: block;
    margin-bottom: var(--ds-space-2);
}

.htk-account-plan-empty p {
    margin: 0;
    color: var(--ds-text-soft);
}

.htk-account-plan-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--ds-space-2);
    margin-bottom: var(--ds-space-2);
}

.htk-account-plan-head h3 {
    margin: 0;
    font-size: var(--ds-fs-500);
}

.htk-account-plan-head span {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: var(--ds-radius-pill);
    background: var(--ds-success-soft);
    color: var(--ds-success-text);
    font-size: var(--ds-fs-100);
    font-weight: var(--ds-fw-semibold);
}

.htk-account-plan-name {
    display: block;
    margin-bottom: var(--ds-space-3);
    color: var(--ds-accent);
}

.htk-account-plan dl {
    display: grid;
    gap: var(--ds-space-2);
    margin: 0 0 var(--ds-space-3);
}

.htk-account-plan dl div {
    display: flex;
    justify-content: space-between;
    gap: var(--ds-space-2);
}

.htk-account-plan dt {
    color: var(--ds-text-soft);
}

.htk-account-plan dd {
    margin: 0;
    font-weight: var(--ds-fw-semibold);
}

.htk-account-plan-remaining {
    margin: 0;
    padding: var(--ds-space-2) var(--ds-space-3);
    border-radius: var(--ds-radius-md);
    background: var(--ds-success-soft);
    color: var(--ds-success-text);
    font-weight: var(--ds-fw-semibold);
}

.htk-account-cards,
.htk-account-history {
    display: grid;
    gap: var(--ds-space-2);
}

.htk-account-card,
.htk-account-history-item {
    display: grid;
    gap: 4px;
    padding: var(--ds-space-3);
    border-radius: var(--ds-radius-md);
    border: 1px solid var(--ds-border-soft);
    background: var(--ds-surface-soft);
    color: var(--ds-text);
    text-decoration: none;
}

.htk-account-card {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: var(--ds-space-3);
}

.htk-account-card-thumb {
    width: 72px;
    height: calc(72px * 9 / 16);
    aspect-ratio: 16 / 9;
    border-radius: var(--ds-radius-sm);
    object-fit: contain;
    object-position: center;
    background: var(--ds-primary-soft);
}

.htk-account-card-thumb.is-empty {
    display: block;
}

.htk-account-card-main {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.htk-account-history-item {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: var(--ds-space-3);
}

.htk-account-history-thumb {
    width: 72px;
    height: calc(72px * 9 / 16);
    aspect-ratio: 16 / 9;
    border-radius: var(--ds-radius-sm);
    object-fit: contain;
    object-position: center;
    background: var(--ds-primary-soft);
}

.htk-account-history-thumb.is-empty {
    display: block;
}

.htk-account-history-main {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.htk-account-card:hover,
.htk-account-card:focus,
.htk-account-history-item:hover,
.htk-account-history-item:focus {
    text-decoration: none;
    border-color: var(--ds-border-strong);
    background: var(--ds-surface);
}

.htk-account-card small,
.htk-account-history-item small,
.htk-account-history-item span {
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-200);
}

.htk-learning-surface {
    padding: var(--ds-space-6);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-xl);
    background: var(--ds-surface);
    box-shadow: var(--ds-shadow-1);
}

.htk-dashboard-grid.htk-community-grid {
    grid-template-columns: var(--ds-sidebar-left, 250px) minmax(0, 650px) var(--ds-sidebar-right, 320px);
    justify-content: space-between;
}

.htk-community-page {
    width: 100%;
    max-width: 650px;
    min-height: calc(100vh - 96px);
    margin: 0;
    border: 0;
    background: transparent;
}

.htk-community-header {
    margin-bottom: var(--ds-space-5);
    padding: var(--ds-space-4) var(--ds-space-5);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-xl);
    background: var(--ds-surface);
}

.htk-community-header h1 {
    margin: 0 0 var(--ds-space-2);
}

.htk-community-header p,
.htk-community-empty p {
    margin: 0;
    color: var(--ds-text-soft);
}

.htk-community-empty {
    padding: var(--ds-space-7) var(--ds-space-5);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-xl);
    background: var(--ds-surface);
    text-align: center;
}

.htk-community-empty h2 {
    margin: 0 0 var(--ds-space-2);
}

.htk-community-feed {
    display: grid;
    gap: var(--ds-space-4);
}

.htk-community-post {
    overflow: hidden;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-xl);
    background: var(--ds-surface);
    box-shadow: var(--ds-shadow-1);
}

.htk-community-post:target {
    scroll-margin-top: var(--ds-space-5);
    border-color: var(--ds-primary);
    box-shadow: 0 0 0 3px var(--ds-primary-soft), var(--ds-shadow-1);
}

.htk-community-post-head {
    display: flex;
    align-items: center;
    gap: var(--ds-space-3);
    padding: var(--ds-space-4) var(--ds-space-5) var(--ds-space-3);
}

.htk-community-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    object-fit: cover;
}

.htk-community-post-head div {
    display: grid;
    gap: 2px;
}

.htk-community-post-head strong {
    color: var(--ds-text);
}

.htk-community-post-head time {
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-200);
}

.htk-community-trail {
    display: grid;
    gap: 6px;
    padding: 0 var(--ds-space-5) var(--ds-space-4);
}

.htk-community-trail-context {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    color: var(--ds-text-muted);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-semibold);
    line-height: 1.35;
}

.htk-community-trail-context a,
.htk-community-trail-context span {
    flex: 0 0 auto;
    color: inherit;
    text-decoration: none;
}

.htk-community-trail-context .htk-community-assignment-title {
    flex: 1 1 auto;
    min-width: 0;
}

.htk-community-trail-context a:hover,
.htk-community-trail-context a:focus {
    color: var(--ds-accent);
    text-decoration: none;
}

.htk-community-assignment-title {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-semibold);
    line-height: 1.4;
    color: var(--ds-text);
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.htk-community-trail-separator {
    color: var(--ds-text-muted);
    font-weight: var(--ds-fw-regular);
}

.htk-community-assignment-title:hover,
.htk-community-assignment-title:focus {
    color: var(--ds-accent);
    text-decoration: none;
}

.htk-community-trail-item {
    display: inline;
}

.htk-community-trail-node {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
}

.htk-community-trail-node > span {
    display: none;
}

.htk-community-trail-node > strong {
    color: inherit;
    font-size: inherit;
    font-weight: var(--ds-fw-semibold);
    line-height: inherit;
}

.htk-community-trail-item.is-assignment {
    display: block;
    margin-top: 6px;
}

.htk-community-trail-item.is-assignment .htk-community-trail-node {
    color: var(--ds-text);
}

.htk-community-trail-item.is-assignment .htk-community-trail-node:hover,
.htk-community-trail-item.is-assignment .htk-community-trail-node:focus {
    color: var(--ds-accent);
}

.htk-sample-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    color: #6941c6;
    font-size: 12px;
    font-weight: 700;
    background: #f4ebff;
    border-radius: 999px;
}

.htk-community-post-head .htk-sample-badge {
    margin-left: auto;
}

.htk-community-post-head small,
.htk-sample-member small {
    display: block;
    color: #6941c6;
    font-size: 12px;
    font-weight: 600;
}

.htk-community-sample-note,
.htk-submission-sample-note {
    margin: var(--ds-space-3) 0 0;
    color: #6941c6;
    font-size: var(--ds-fs-200);
}

.htk-community-media {
    position: relative;
    display: block;
    overflow: hidden;
    border-top: 1px solid var(--ds-border-soft);
    border-bottom: 1px solid var(--ds-border-soft);
    background: var(--ds-surface-soft);
}

.htk-community-media img {
    display: block;
    width: 100%;
    max-height: 650px;
    object-fit: contain;
}

.htk-community-media.is-video img {
    max-height: 445px;
    object-fit: cover;
}

.htk-community-media.is-video::after {
    content: "\25B6";
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    padding-left: 4px;
    box-sizing: border-box;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ds-primary);
    font-size: 26px;
    transform: translate(-50%, -50%);
}

.htk-community-discussion {
    padding: var(--ds-space-4) var(--ds-space-5);
}

.htk-community-discussion summary {
    display: inline-flex;
    color: var(--ds-accent);
    font-weight: var(--ds-fw-semibold);
    list-style: none;
    cursor: pointer;
}

.htk-community-discussion summary::-webkit-details-marker {
    display: none;
}

.htk-community-discussion summary:hover,
.htk-community-discussion summary:focus {
    color: var(--ds-accent-hover);
}

.htk-community-discussion[open] summary {
    margin-bottom: var(--ds-space-4);
}

.htk-course-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ds-space-4);
    margin-bottom: var(--ds-space-5);
}

.htk-course-archive-grid .htk-course-card {
    margin: 0;
}

.htk-learning-page .pagination,
.htk-learning-page .nav-links {
    display: flex;
    gap: var(--ds-space-2);
    flex-wrap: wrap;
}

.htk-learning-page .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--ds-space-3);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    color: var(--ds-text);
    background: var(--ds-surface);
}

.htk-learning-page .page-numbers.current {
    border-color: var(--ds-primary);
    color: var(--ds-text-inverse);
    background: var(--ds-primary);
}

.htk-learning-surface h2 {
    margin: 0 0 var(--ds-space-4);
}

.htk-learning-muted {
    color: var(--ds-text-soft);
}

.htk-path-block + .htk-path-block {
    margin-top: var(--ds-space-5);
    padding-top: var(--ds-space-5);
    border-top: 1px solid var(--ds-border);
}

.htk-path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ds-space-4);
}

.htk-path-grid .htk-path-block {
    margin: 0;
    padding: var(--ds-space-4);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-surface);
    box-shadow: var(--ds-shadow-1);
}

.htk-path-grid .htk-path-block.is-locked {
    background: var(--ds-surface-soft);
}

.htk-path-grid .htk-path-block.is-locked .htk-path-cover {
    opacity: 0.64;
}

.htk-path-grid .htk-path-block + .htk-path-block {
    margin-top: 0;
    padding-top: var(--ds-space-4);
    border-top: 0;
}

.htk-path-block h3 {
    margin: 0 0 var(--ds-space-2);
    font-size: var(--ds-fs-600);
}

.htk-path-cover-link,
.htk-path-title-link,
.htk-path-open-link {
    text-decoration: none;
}

.htk-path-title-link {
    color: var(--ds-text);
}

.htk-path-title-link:hover,
.htk-path-title-link:focus {
    color: var(--ds-accent);
    text-decoration: none;
}

.htk-path-cover {
    display: block;
    width: 100%;
    margin-bottom: var(--ds-space-4);
    border-radius: var(--ds-radius-lg);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.htk-path-cover-link:hover .htk-path-cover,
.htk-path-cover-link:focus .htk-path-cover {
    transform: translateY(-1px);
    box-shadow: var(--ds-shadow-2);
}

.htk-path-block p {
    margin: 0 0 var(--ds-space-3);
    color: var(--ds-text-soft);
}

.htk-path-lessons {
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-2);
}

.htk-path-lessons a {
    display: flex;
    align-items: center;
    gap: var(--ds-space-3);
    padding: var(--ds-space-3);
    border-radius: var(--ds-radius-md);
    border: 1px solid var(--ds-border-soft);
    background: var(--ds-surface-soft);
    text-decoration: none;
}

.htk-path-lessons a:hover,
.htk-path-lessons a:focus {
    border-color: var(--ds-border-strong);
    background: var(--ds-surface);
    text-decoration: none;
}

.htk-path-lessons a.is-completed {
    border-color: var(--ds-success-soft);
    background: var(--ds-green-50);
}

.htk-path-lessons a.is-completed .htk-path-lesson-title,
.htk-path-lesson-item.is-completed .htk-path-lesson-item-main strong {
    color: var(--ds-success-text);
}

.htk-path-lesson-index {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ds-primary-soft);
    color: var(--ds-text);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-bold);
}

.htk-path-lesson-title {
    min-width: 0;
    flex: 1;
    color: var(--ds-text);
    font-size: var(--ds-fs-300);
    font-weight: var(--ds-fw-medium);
}

.htk-path-card-head {
    margin-bottom: var(--ds-space-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ds-space-3);
}

.htk-path-card-head > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.htk-path-order {
    color: var(--ds-accent);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.htk-path-count {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 var(--ds-space-2);
    border-radius: var(--ds-radius-pill);
    background: var(--ds-primary-soft);
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-semibold);
}

.htk-path-detail-link {
    color: var(--ds-accent);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-semibold);
    text-decoration: none;
}

.htk-path-detail-link:hover,
.htk-path-detail-link:focus {
    color: var(--ds-accent-hover);
    text-decoration: none;
}

.htk-path-detail-link.is-disabled {
    color: var(--ds-text-muted);
}

.htk-path-lock-note {
    padding: var(--ds-space-3);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    background: var(--ds-white);
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-300);
}

.htk-path-more {
    margin: var(--ds-space-4) 0 var(--ds-space-3);
    color: var(--ds-text-muted);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-medium);
    line-height: 1.6;
}

.htk-path-lessons + .htk-path-more {
    margin-top: var(--ds-space-5);
    padding-top: var(--ds-space-3);
    border-top: 1px dashed var(--ds-border-soft);
}

.htk-path-open-link {
    display: inline-flex;
    align-items: center;
    margin-top: var(--ds-space-2);
    color: var(--ds-accent);
    font-size: var(--ds-fs-300);
    font-weight: var(--ds-fw-semibold);
}

.htk-path-open-link:hover,
.htk-path-open-link:focus {
    color: var(--ds-accent-hover);
    text-decoration: none;
}

.htk-path-lesson-list {
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-3);
}

.htk-path-lesson-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    align-items: stretch;
    gap: var(--ds-space-4);
    padding: var(--ds-space-3) var(--ds-space-4);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-surface);
    box-shadow: var(--ds-shadow-1);
    text-decoration: none;
}

.htk-path-lesson-item-cover {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: var(--ds-space-4);
    color: inherit;
    text-decoration: none;
}

.htk-path-lesson-item:hover,
.htk-path-lesson-item:focus {
    border-color: var(--ds-border-strong);
    background: var(--ds-surface);
    text-decoration: none;
}

.htk-path-lesson-item.is-completed {
    border-color: var(--ds-success-soft);
    background: var(--ds-green-50);
}

.htk-path-lesson-item.is-assignment {
    border-color: #f0c58a;
    background:
        linear-gradient(90deg, rgba(255, 244, 222, 0.94), rgba(255, 255, 255, 0.98) 42%),
        var(--ds-surface);
    box-shadow: inset 4px 0 0 #f59e0b, var(--ds-shadow-1);
}

.htk-path-lesson-item.is-assignment:hover,
.htk-path-lesson-item.is-assignment:focus {
    border-color: #e4ae60;
}

.htk-path-lesson-item.is-assignment-file {
    border-color: #9dbcf6;
    background:
        linear-gradient(90deg, rgba(232, 241, 255, 0.96), rgba(255, 255, 255, 0.98) 42%),
        var(--ds-surface);
    box-shadow: inset 4px 0 0 #2563eb, var(--ds-shadow-1);
}

.htk-path-lesson-item.is-assignment-file:hover,
.htk-path-lesson-item.is-assignment-file:focus {
    border-color: #6f98ea;
}

.htk-path-lesson-item-index {
    align-self: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ds-primary-soft);
    color: var(--ds-text);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-bold);
}

.htk-path-lesson-item-thumb {
    width: 112px;
    aspect-ratio: 16 / 9;
    height: auto;
    align-self: center;
    flex: 0 0 112px;
    border-radius: var(--ds-radius-md);
    object-fit: cover;
    background: var(--ds-primary-soft);
}

.htk-path-lesson-type-icon {
    width: 112px;
    aspect-ratio: 16 / 9;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ds-radius-md);
}

.htk-path-lesson-type-icon svg {
    width: 36px;
    height: 36px;
    fill: currentColor;
}

.htk-path-lesson-type-icon.is-assignment {
    border: 1px solid #f4c16f;
    background: #fff4de;
    color: #b35b00;
}

.htk-path-lesson-type-icon.is-assignment-file {
    border: 1px solid #a9c4f8;
    background: #e8f1ff;
    color: #1f4ea8;
}

.htk-path-lesson-item-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.htk-path-lesson-item-main strong {
    color: var(--ds-text);
    font-size: var(--ds-fs-400);
}

.htk-path-lesson-item-main small {
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-200);
    line-height: 1.45;
}

.htk-path-lesson-kind {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 9px;
    border-radius: var(--ds-radius-pill);
    font-size: var(--ds-fs-100);
    font-weight: var(--ds-fw-bold);
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.htk-path-lesson-kind.is-assignment {
    background: #fff4de;
    color: #9a4a00;
}

.htk-path-lesson-kind.is-assignment-file {
    background: #e8f1ff;
    color: #1f4ea8;
}

.htk-path-lesson-item-time {
    color: var(--ds-text-muted);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-semibold);
}

.htk-path-lesson-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: var(--ds-space-2);
}

.htk-path-lesson-save {
    position: static;
    width: 28px;
    height: 28px;
    border-color: var(--ds-border-strong);
}

.htk-path-lesson-save svg {
    width: 12px;
    height: 12px;
}

.htk-lesson-completed-pill {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: var(--ds-radius-pill);
    background: var(--ds-success-soft);
    color: var(--ds-success-text);
    font-size: var(--ds-fs-100);
    font-weight: var(--ds-fw-bold);
}

.htk-path-lessons small,
.htk-lesson-access {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: var(--ds-radius-pill);
    font-size: var(--ds-fs-100);
    font-weight: var(--ds-fw-bold);
}

.htk-path-lessons .is-free,
.htk-lesson-access.is-free {
    background: var(--ds-success-soft);
    color: var(--ds-success-text);
}

.htk-path-lessons .is-pro,
.htk-lesson-access.is-pro {
    background: var(--ds-primary);
    color: var(--ds-text-inverse);
}

.htk-path-lesson-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: var(--ds-radius-pill);
    font-size: var(--ds-fs-100);
    font-weight: var(--ds-fw-semibold);
    line-height: 1.2;
}

.htk-path-lesson-type-pill svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
    flex: 0 0 auto;
}

.htk-path-lesson-type-pill.is-assignment {
    background: #fff4de;
    color: #b35b00;
}

.htk-path-lesson-type-pill.is-assignment-file {
    background: #e8f1ff;
    color: #1f4ea8;
}

@media (max-width: 1200px) {
    .htk-course-cover {
        min-height: 0;
    }

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

@media (max-width: 900px) {
    .htk-path-grid {
        grid-template-columns: 1fr;
    }

    .htk-path-lesson-item {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: var(--ds-space-2);
    }

    .htk-path-lesson-item-cover {
        grid-column: 1 / -1;
        grid-template-columns: 88px minmax(0, 1fr);
        gap: var(--ds-space-2);
    }

    .htk-path-lesson-item-time {
        display: none;
    }

    .htk-path-lesson-item-thumb {
        width: 88px;
        aspect-ratio: 16 / 9;
        height: auto;
        flex-basis: 88px;
    }

    .htk-path-lesson-type-icon {
        width: 88px;
    }

    .htk-path-lesson-type-icon svg {
        width: 30px;
        height: 30px;
    }

    .htk-path-lesson-item-meta {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding-top: var(--ds-space-1);
    }
}

.htk-plan-item + .htk-plan-item {
    margin-top: var(--ds-space-4);
    padding-top: var(--ds-space-4);
    border-top: 1px solid var(--ds-border);
}

.htk-plan-item strong,
.htk-plan-item span {
    display: block;
}

.htk-plan-item span,
.htk-plan-item p {
    color: var(--ds-text-soft);
}

.htk-learning-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 var(--ds-space-4);
    border: 0;
    border-radius: var(--ds-radius-md);
    background: var(--ds-primary);
    color: var(--ds-text-inverse) !important;
    font-weight: var(--ds-fw-semibold);
    cursor: pointer;
}

.htk-lesson-page {
    max-width: none;
}

.htk-lesson-view {
    min-height: calc(100vh - 180px);
}

.htk-lesson-heading {
    display: block;
    margin-bottom: var(--ds-space-5);
}

.htk-lesson-heading-main {
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-3);
}

.htk-lesson-path-title {
    margin: 0;
    color: var(--ds-accent);
    font-size: var(--ds-fs-300);
    font-weight: var(--ds-fw-semibold);
}

.htk-lesson-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--ds-space-4);
}

.htk-lesson-heading h1 {
    margin: 0;
}

.htk-lesson-live-count {
    flex: 0 0 auto;
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-300);
    font-weight: var(--ds-fw-semibold);
}

.htk-lesson-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ds-space-4);
    flex-wrap: wrap;
}

.htk-lesson-meta-left {
    display: flex;
    align-items: center;
    gap: var(--ds-space-2);
    flex-wrap: wrap;
}

.htk-lesson-meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 var(--ds-space-3);
    border-radius: var(--ds-radius-pill);
    background: var(--ds-primary-soft);
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-semibold);
}

.htk-lesson-meta-pill.is-assignment {
    background: #fff1e6;
    color: #c2410c;
}

.htk-lesson-meta-pill.is-assignment-file {
    background: #e8f3ff;
    color: #1d4ed8;
}

.htk-lesson-actions-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--ds-space-2);
    flex-wrap: wrap;
}

.htk-lesson-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 var(--ds-space-3);
    border: 1px solid var(--ds-border-strong);
    border-radius: var(--ds-radius-pill);
    background: var(--ds-surface);
    color: var(--ds-text);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-semibold);
    text-decoration: none;
    cursor: pointer;
}

.htk-lesson-action-link:hover,
.htk-lesson-action-link:focus {
    border-color: var(--ds-gray-400);
    background: var(--ds-surface-soft);
    color: var(--ds-text);
    text-decoration: none;
}

.htk-lesson-action-link.is-primary {
    border-color: var(--ds-accent);
    background: var(--ds-accent);
    color: var(--ds-text-inverse);
}

.htk-lesson-action-link.is-primary:hover,
.htk-lesson-action-link.is-primary:focus {
    border-color: var(--ds-accent-hover);
    background: var(--ds-accent-hover);
    color: var(--ds-text-inverse);
}

.htk-lesson-action-link.is-complete-toggle.is-active {
    border-color: var(--ds-success-soft);
    background: var(--ds-success-soft);
    color: var(--ds-success-text);
}

.htk-lesson-action-link.is-save-toggle.is-active {
    border-color: var(--ds-success-soft);
    background: var(--ds-success-soft);
    color: var(--ds-success-text);
}

.htk-lesson-action-link.is-waiting {
    cursor: default;
    border-color: var(--ds-border);
    background: var(--ds-surface-soft);
    color: var(--ds-text-soft);
}

.htk-lesson-action-link[disabled] {
    opacity: 0.65;
    cursor: wait;
}

.htk-lesson-zalo-cta {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 40;
    align-items: center;
    gap: var(--ds-space-3);
    width: min(420px, calc(100vw - 32px));
    padding: 14px 16px;
    border: 1px solid var(--ds-border-soft);
    border-radius: 18px;
    background: linear-gradient(135deg, var(--ds-surface) 0%, var(--ds-surface-soft) 100%);
    box-shadow: var(--ds-shadow-2);
    text-align: center;
    backdrop-filter: blur(10px);
}

.htk-lesson-zalo-cta[hidden] {
    display: none !important;
}

.htk-lesson-zalo-cta-inner {
    display: grid;
    gap: 10px;
    min-width: 0;
    width: 100%;
    justify-items: center;
    padding-right: 28px;
}

.htk-lesson-zalo-cta-link,
.htk-lesson-zalo-cta-link:link,
.htk-lesson-zalo-cta-link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 38px;
    padding: 0 16px;
    border-radius: var(--ds-radius-pill);
    background: var(--ds-primary);
    color: #fff !important;
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-semibold);
    text-decoration: none;
    box-shadow: var(--ds-shadow-1);
}

.htk-lesson-zalo-cta-link:hover,
.htk-lesson-zalo-cta-link:focus,
.htk-lesson-zalo-cta-link:active {
    background: var(--ds-primary-hover);
    color: #fff !important;
    text-decoration: none;
}

.htk-lesson-zalo-cta p {
    margin: 0;
    max-width: 100%;
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-200);
    line-height: 1.45;
}

.htk-lesson-zalo-cta-dismiss {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--ds-border-soft);
    border-radius: 999px;
    background: var(--ds-surface);
    color: var(--ds-text-soft);
    font-size: 18px;
    font-weight: var(--ds-fw-semibold);
    line-height: 1;
    cursor: pointer;
}

.htk-lesson-zalo-cta-dismiss:hover,
.htk-lesson-zalo-cta-dismiss:focus {
    color: var(--ds-text);
    border-color: var(--ds-border);
    background: var(--ds-surface-soft);
}

.htk-lesson-duration {
    color: var(--ds-text-soft);
    white-space: nowrap;
}

.htk-learning-alert {
    margin-bottom: var(--ds-space-4);
    padding: var(--ds-space-3);
    border-radius: var(--ds-radius-md);
}

.htk-learning-alert.is-success {
    background: var(--ds-success-soft);
    color: var(--ds-success-text);
}

.htk-learning-alert.is-error {
    background: #fee2e2;
    color: #991b1b;
}

.htk-lesson-locked {
    padding: var(--ds-space-8) var(--ds-space-5);
    border-radius: var(--ds-radius-xl);
    background: var(--ds-surface-soft);
    text-align: center;
}

.htk-lesson-locked h2 {
    margin: 0 0 var(--ds-space-3);
}

.htk-lesson-locked p {
    max-width: 520px;
    margin: 0 auto var(--ds-space-5);
    color: var(--ds-text-soft);
}

.htk-prerequisite-modal[hidden] {
    display: none;
}

.htk-prerequisite-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: var(--ds-space-4);
}

.htk-prerequisite-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.52);
    cursor: pointer;
}

.htk-prerequisite-modal-dialog {
    position: relative;
    width: min(500px, 100%);
    padding: var(--ds-space-8) var(--ds-space-8) var(--ds-space-6);
    border-radius: var(--ds-radius-xl);
    background: var(--ds-white);
    box-shadow: var(--ds-shadow-3);
    text-align: center;
}

.htk-prerequisite-modal-dialog h2 {
    margin: 0 var(--ds-space-6) var(--ds-space-3);
    color: var(--ds-text);
    font-size: var(--ds-fs-600);
    line-height: 1.35;
}

.htk-prerequisite-modal-dialog p {
    margin: 0 0 var(--ds-space-6);
    color: var(--ds-text-soft);
    line-height: 1.6;
}

.htk-prerequisite-modal-dialog .htk-learning-primary {
    min-height: 46px;
    padding: 0 var(--ds-space-6);
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.htk-prerequisite-modal-dialog .htk-learning-primary:hover,
.htk-prerequisite-modal-dialog .htk-learning-primary:focus {
    background: var(--ds-primary-hover);
    color: var(--ds-text-inverse) !important;
    text-decoration: none;
}

.htk-prerequisite-modal-dialog .htk-learning-primary:hover {
    transform: translateY(-1px);
}

.htk-prerequisite-modal-close {
    position: absolute;
    top: var(--ds-space-3);
    right: var(--ds-space-3);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: var(--ds-radius-pill);
    background: var(--ds-surface-soft);
    color: var(--ds-text-soft);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.htk-prerequisite-modal-close:hover,
.htk-prerequisite-modal-close:focus {
    color: var(--ds-text);
    background: var(--ds-border-soft);
}

body.htk-prerequisite-modal-open {
    overflow: hidden;
}

@media (max-width: 520px) {
    .htk-prerequisite-modal-dialog {
        padding: var(--ds-space-8) var(--ds-space-5) var(--ds-space-6);
    }

    .htk-prerequisite-modal-dialog .htk-learning-primary {
        width: 100%;
    }
}

.htk-lesson-video {
    position: relative;
    margin-bottom: var(--ds-space-5);
    overflow: hidden;
    border-radius: var(--ds-radius-lg);
    background: var(--ds-primary);
    aspect-ratio: 16 / 9;
}

.htk-lesson-lights-backdrop {
    position: fixed;
    z-index: 900;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(4, 11, 29, 0.88);
    cursor: pointer;
}

.htk-lesson-lights-backdrop[hidden] {
    display: none;
}

body.htk-lesson-lights-off .htk-lesson-video {
    z-index: 902;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.48);
}

.htk-lesson-lights-toggle {
    position: absolute;
    z-index: 3;
    top: var(--ds-space-4);
    right: var(--ds-space-4);
    min-height: 36px;
    padding: 0 var(--ds-space-4);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: var(--ds-radius-pill);
    background: rgba(4, 11, 29, 0.72);
    color: #fff;
    font: inherit;
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-semibold);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 180ms ease, visibility 0s linear 180ms, transform 180ms ease;
}

.htk-lesson-video.is-controls-visible .htk-lesson-lights-toggle,
.htk-lesson-lights-toggle:focus-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}

.htk-lesson-lights-toggle:hover,
.htk-lesson-lights-toggle:focus {
    border-color: rgba(255, 255, 255, 0.74);
    background: rgba(4, 11, 29, 0.92);
}

.htk-lesson-video-cover {
    position: absolute;
    z-index: 1;
    inset: 0;
    opacity: 1;
    visibility: visible;
    transition: opacity 450ms ease, visibility 0s linear 0s;
}

.htk-lesson-video-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(4, 11, 29, 0.1), rgba(4, 11, 29, 0.32));
    pointer-events: none;
}

.htk-lesson-video-cover::after {
    content: "\25B6";
    display: grid;
    place-items: center;
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    padding-left: 4px;
    box-sizing: border-box;
    border-radius: 50%;
    color: var(--ds-primary);
    font-size: 28px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(4, 11, 29, 0.25);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.htk-lesson-video-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.htk-lesson-video-cover:hover img {
    transform: scale(1.015);
}

.htk-lesson-video-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition-delay: 0s, 450ms;
}

.htk-lesson-cover {
    display: block;
    width: 100%;
    margin-bottom: var(--ds-space-5);
    border-radius: var(--ds-radius-lg);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.htk-lesson-video iframe {
    display: block;
    width: 100%;
    height: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .htk-lesson-video-cover,
    .htk-lesson-lights-toggle {
        transition: none;
    }
}

@media (max-width: 520px) {
    .htk-lesson-lights-toggle {
        top: var(--ds-space-3);
        right: var(--ds-space-3);
        min-height: 32px;
        padding: 0 var(--ds-space-3);
    }
}

.htk-lesson-sidebar {
    padding: var(--ds-space-5);
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-4);
    align-self: start;
}

.htk-lesson-sidebar-head h2 {
    margin: 0 0 var(--ds-space-1);
    font-size: var(--ds-fs-600);
}

.htk-lesson-sidebar-head p {
    margin: 0;
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-300);
}

.htk-path-nav-actions {
    display: grid;
    gap: var(--ds-space-3);
}

.htk-path-nav-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: var(--ds-space-4);
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-surface-soft);
    color: var(--ds-text);
    text-decoration: none;
}

.htk-path-nav-btn:hover,
.htk-path-nav-btn:focus {
    border-color: var(--ds-border-strong);
    background: var(--ds-surface);
    text-decoration: none;
}

.htk-path-nav-btn.is-next {
    border-color: var(--ds-accent);
    background: var(--ds-blue-50);
}

.htk-path-nav-btn.is-disabled {
    opacity: 0.65;
    cursor: not-allowed;
    border-style: dashed;
}

.htk-path-nav-label {
    font-size: var(--ds-fs-200);
    color: var(--ds-text-soft);
}

.htk-path-nav-btn strong {
    font-size: var(--ds-fs-300);
    line-height: 1.4;
}

.htk-lesson-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-2);
}

@media (min-width: 901px) {
    .htk-lesson-sidebar-list {
        max-height: min(70vh, 720px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: var(--ds-space-2);
        scrollbar-gutter: stable;
    }
}

.htk-lesson-sidebar-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: var(--ds-space-3);
    padding: var(--ds-space-3);
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-md);
    background: var(--ds-surface-soft);
}

.htk-lesson-sidebar-item-cover {
    display: flex;
    align-items: flex-start;
    gap: var(--ds-space-3);
    color: inherit;
    text-decoration: none;
}

.htk-lesson-sidebar-item:hover,
.htk-lesson-sidebar-item:focus {
    border-color: var(--ds-border-strong);
    background: var(--ds-surface);
    text-decoration: none;
}

.htk-lesson-sidebar-item.is-current {
    border-color: var(--ds-accent);
    background: var(--ds-blue-50);
}

.htk-lesson-sidebar-item.is-assignment {
    border-color: #f0c58a;
    background:
        linear-gradient(90deg, rgba(255, 244, 222, 0.94), rgba(255, 255, 255, 0.98) 54%),
        var(--ds-surface-soft);
    box-shadow: inset 3px 0 0 #f59e0b;
}

.htk-lesson-sidebar-item.is-assignment-file {
    border-color: #9dbcf6;
    background:
        linear-gradient(90deg, rgba(232, 241, 255, 0.96), rgba(255, 255, 255, 0.98) 54%),
        var(--ds-surface-soft);
    box-shadow: inset 3px 0 0 #2563eb;
}

.htk-lesson-sidebar-item.is-current.is-assignment,
.htk-lesson-sidebar-item.is-current.is-assignment-file {
    border-color: var(--ds-accent);
}

.htk-lesson-sidebar-item-index {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    align-self: start;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ds-primary-soft);
    color: var(--ds-text);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-bold);
}

.htk-lesson-sidebar-item-thumb {
    width: 120px;
    aspect-ratio: 16 / 9;
    height: calc(120px * 9 / 16);
    display: block;
    flex: 0 0 120px;
    align-self: flex-start;
    border-radius: var(--ds-radius-md);
    object-fit: contain;
    object-position: center;
    background: var(--ds-primary-soft);
}

.htk-lesson-sidebar-type-icon {
    width: 120px;
    aspect-ratio: 16 / 9;
    display: inline-flex;
    flex: 0 0 120px;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    border-radius: var(--ds-radius-md);
}

.htk-lesson-sidebar-type-icon svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

.htk-lesson-sidebar-type-icon.is-assignment {
    border: 1px solid #f4c16f;
    background: #fff4de;
    color: #b35b00;
}

.htk-lesson-sidebar-type-icon.is-assignment-file {
    border: 1px solid #a9c4f8;
    background: #e8f1ff;
    color: #1f4ea8;
}

.htk-lesson-sidebar-item-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.htk-lesson-sidebar-item-main strong {
    color: var(--ds-text);
    font-size: var(--ds-fs-300);
    line-height: 1.4;
}

.htk-lesson-sidebar-kind {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 8px;
    border-radius: var(--ds-radius-pill);
    font-size: var(--ds-fs-100);
    font-weight: var(--ds-fw-bold);
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-transform: uppercase;
}

.htk-lesson-sidebar-kind.is-assignment {
    background: #fff4de;
    color: #9a4a00;
}

.htk-lesson-sidebar-kind.is-assignment-file {
    background: #e8f1ff;
    color: #1f4ea8;
}

.htk-lesson-sidebar-item-submeta {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-2);
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-200);
    line-height: 1.35;
}

.htk-lesson-sidebar-item-time {
    white-space: nowrap;
}

.htk-sidebar-lesson-save {
    position: static;
    width: 28px;
    height: 28px;
    border-color: var(--ds-border-strong);
}

.htk-sidebar-lesson-save svg {
    width: 12px;
    height: 12px;
}

.htk-lesson-article {
    position: relative;
    padding: var(--ds-space-5);
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-xl);
    background: linear-gradient(180deg, var(--ds-surface) 0%, var(--ds-surface-soft) 100%);
    color: var(--ds-text);
    line-height: var(--ds-lh-body);
}

.htk-lesson-article h2 {
    margin: 0 0 var(--ds-space-4);
}

.htk-lesson-article-content {
    max-height: 320px;
    overflow: hidden;
}

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

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

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

.htk-lesson-article-fade {
    position: absolute;
    left: var(--ds-space-5);
    right: var(--ds-space-5);
    bottom: 52px;
    height: 64px;
    background: linear-gradient(180deg, rgba(247, 250, 252, 0) 0%, rgba(247, 250, 252, 0.95) 75%, rgba(247, 250, 252, 1) 100%);
    pointer-events: none;
}

.htk-lesson-article-toggle {
    display: inline-flex;
    align-items: center;
    margin-top: var(--ds-space-4);
    color: var(--ds-accent);
    font-size: var(--ds-fs-300);
    font-weight: var(--ds-fw-semibold);
    text-decoration: none;
}

.htk-lesson-article-toggle:hover,
.htk-lesson-article-toggle:focus {
    color: var(--ds-accent-hover);
    text-decoration: none;
}

.htk-lesson-article.is-expanded .htk-lesson-article-content {
    max-height: none;
}

.htk-lesson-article.is-expanded .htk-lesson-article-fade {
    display: none;
}

.has-htk-lesson-popup {
    overflow: hidden;
}

.htk-lesson-article-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    padding: clamp(16px, 4vw, 48px);
    overflow: auto;
}

.htk-lesson-article-modal.is-open {
    display: grid;
    place-items: center;
}

.htk-lesson-article-modal-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.62);
}

.htk-lesson-article-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: min(86vh, 900px);
    overflow: auto;
    border-radius: var(--ds-radius-xl);
    background: var(--ds-surface);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.32);
}

.htk-lesson-article-modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ds-space-4);
    padding: var(--ds-space-4) var(--ds-space-5);
    border-bottom: 1px solid var(--ds-border-soft);
    background: var(--ds-surface);
}

.htk-lesson-article-modal-head h2 {
    margin: 0;
    font-size: var(--ds-fs-500);
    line-height: var(--ds-lh-heading);
}

.htk-lesson-article-modal-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--ds-border);
    border-radius: 999px;
    background: var(--ds-surface-soft);
    color: var(--ds-text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.htk-lesson-article-modal-content,
.htk-lesson-article-modal .htk-lesson-article-download {
    padding: var(--ds-space-5);
}

.htk-lesson-article-modal .htk-lesson-article-download {
    padding-bottom: 0;
}

.htk-lesson-article-modal-content > :first-child {
    margin-top: 0;
}

.htk-lesson-article-modal-content > :last-child {
    margin-bottom: 0;
}

.htk-lesson-article-modal-content img {
    max-width: 100%;
    height: auto;
}

.htk-lesson-download {
    margin-top: var(--ds-space-4);
    padding: var(--ds-space-4);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-xl);
    background: var(--ds-surface);
}

.htk-lesson-download h2 {
    margin: 0 0 var(--ds-space-3);
}

.htk-lesson-download-btn {
    gap: 8px;
    background: #f97316;
    color: #fff !important;
}

.htk-lesson-download-btn::before {
    content: "\2193";
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
}

.htk-lesson-download-btn:hover,
.htk-lesson-download-btn:focus {
    background: #ea580c;
    color: #fff !important;
}

.htk-lesson-article-download {
    margin-bottom: var(--ds-space-3);
}

.htk-lesson-article-download .htk-learning-muted {
    margin: 0;
}

.htk-assignment-submit,
.htk-approved-submissions {
    margin-top: var(--ds-space-5);
    padding: var(--ds-space-5);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-xl);
    background: var(--ds-surface);
}

.htk-assignment-submit-head {
    display: flex;
    justify-content: space-between;
    gap: var(--ds-space-4);
    margin-bottom: var(--ds-space-4);
}

.htk-assignment-submit-head h2,
.htk-approved-submissions h2 {
    margin: var(--ds-space-2) 0;
}

.htk-assignment-submit-head p {
    margin: 0;
    color: var(--ds-text-soft);
}

.htk-assignment-label {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: var(--ds-radius-pill);
    background: #fff1e6;
    color: #c2410c;
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-bold);
}

.htk-submission-status {
    flex: 0 0 auto;
    align-self: flex-start;
    padding: 7px 12px;
    border-radius: var(--ds-radius-pill);
    background: var(--ds-primary-soft);
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-semibold);
}

.htk-submission-status.is-approved {
    background: var(--ds-success-soft);
    color: var(--ds-success-text);
}

.htk-submission-status.is-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.htk-assignment-form {
    display: grid;
    gap: var(--ds-space-3);
}

.htk-assignment-drop {
    position: relative;
    display: grid;
    place-items: center;
    gap: var(--ds-space-2);
    min-height: 150px;
    padding: var(--ds-space-4);
    border: 2px dashed var(--ds-border-strong);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-surface-soft);
    color: var(--ds-text-soft);
    text-align: center;
    cursor: pointer;
}

.htk-assignment-drop:hover,
.htk-assignment-drop:focus-within,
.htk-assignment-drop.has-file {
    border-color: var(--ds-accent);
    background: var(--ds-primary-soft);
}

.htk-assignment-drop input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.htk-assignment-drop strong {
    color: var(--ds-text);
}

.htk-assignment-or {
    position: relative;
    color: var(--ds-text-soft);
    text-align: center;
}

.htk-assignment-or::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid var(--ds-border);
}

.htk-assignment-or span {
    position: relative;
    padding: 0 var(--ds-space-3);
    background: var(--ds-surface);
}

.htk-assignment-youtube {
    display: grid;
    gap: var(--ds-space-2);
    font-weight: var(--ds-fw-semibold);
}

.htk-assignment-youtube input,
.htk-submission-comment-form textarea {
    width: 100%;
    padding: var(--ds-space-3);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    background: var(--ds-surface);
}

.htk-assignment-rule,
.htk-assignment-review-note {
    margin: 0;
    padding: var(--ds-space-3);
    border-radius: var(--ds-radius-md);
    background: var(--ds-surface-soft);
    color: var(--ds-text-soft);
}

.htk-assignment-review-note {
    color: var(--ds-text);
}

.htk-submission-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ds-space-3);
    margin-bottom: var(--ds-space-4);
    padding: var(--ds-space-3);
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-surface-soft);
}

.htk-submission-file-preview {
    position: relative;
    display: inline-flex;
    text-decoration: none;
}

.htk-submission-file-preview img {
    display: block;
    width: 58px;
    height: 58px;
    border-radius: var(--ds-radius-md);
    object-fit: cover;
}

.htk-submission-video-preview {
    position: relative;
    overflow: hidden;
    border-radius: var(--ds-radius-md);
}

.htk-submission-video-preview::after {
    content: "\25B6";
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding-left: 2px;
    box-sizing: border-box;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ds-primary);
    font-size: 14px;
    line-height: 1;
    transform: translate(-50%, -50%);
}

.htk-submission-video-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 var(--ds-space-3);
    border-radius: var(--ds-radius-md);
    background: var(--ds-primary-soft);
    color: var(--ds-accent);
    font-weight: var(--ds-fw-semibold);
    text-decoration: none;
}

.htk-submission-delete {
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: #b91c1c;
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-semibold);
    cursor: pointer;
}

.htk-submission-options {
    position: relative;
}

.htk-submission-options summary,
.htk-submission-discussion summary {
    display: inline-flex;
    color: var(--ds-accent);
    font-size: var(--ds-fs-300);
    font-weight: var(--ds-fw-semibold);
    list-style: none;
    cursor: pointer;
}

.htk-submission-options summary::-webkit-details-marker,
.htk-submission-discussion summary::-webkit-details-marker {
    display: none;
}

.htk-submission-options summary:hover,
.htk-submission-options summary:focus,
.htk-submission-discussion summary:hover,
.htk-submission-discussion summary:focus {
    color: var(--ds-accent-hover);
    text-decoration: none;
}

.htk-submission-options form {
    position: absolute;
    z-index: 1;
    right: 0;
    margin-top: var(--ds-space-2);
    padding: var(--ds-space-2);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    background: var(--ds-surface);
    box-shadow: var(--ds-shadow-1);
    white-space: nowrap;
}

.htk-approved-submission {
    margin-top: var(--ds-space-4);
    overflow: hidden;
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-lg);
}

.htk-approved-submission > header {
    display: flex;
    justify-content: space-between;
    gap: var(--ds-space-3);
    padding: var(--ds-space-3) var(--ds-space-4);
    color: var(--ds-text-soft);
}

.htk-approved-submission-image {
    display: block;
    width: 140px;
    height: 100px;
    border-radius: var(--ds-radius-md);
    object-fit: cover;
}

.htk-approved-submission-file {
    display: inline-flex;
    margin: 0 var(--ds-space-4);
    text-decoration: none;
}

.htk-sample-member,
.htk-submission-member {
    display: flex;
    align-items: center;
    gap: var(--ds-space-3);
}

.htk-sample-avatar,
.htk-submission-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.htk-submission-head-meta {
    display: flex;
    align-items: center;
    gap: var(--ds-space-2);
}

.htk-approved-video-link {
    margin: 0 var(--ds-space-4);
}

.htk-submission-discussion {
    display: grid;
    gap: var(--ds-space-4);
    padding: var(--ds-space-4);
}

.htk-submission-discussion:not([open]) {
    display: block;
}

.htk-submission-discussion[open] summary {
    margin-bottom: var(--ds-space-4);
}

.htk-submission-review-message {
    padding: var(--ds-space-3);
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-md);
    background: var(--ds-surface-soft);
}

.htk-submission-review-message strong {
    display: block;
    margin-bottom: var(--ds-space-2);
    color: var(--ds-text);
    font-size: var(--ds-fs-300);
}

.htk-submission-review-message p {
    margin: 0;
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-300);
    line-height: 1.55;
}

.htk-free-lessons-filter {
    display: grid;
    gap: var(--ds-space-2);
    margin-bottom: var(--ds-space-4);
}

.htk-free-lessons-filter label,
.htk-free-lessons-filter-label {
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-semibold);
}

.htk-free-lessons-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ds-space-2);
}

.htk-free-lessons-category-buttons {
    display: flex;
    flex: 1 1 420px;
    flex-wrap: wrap;
    gap: var(--ds-space-2);
    min-width: 0;
}

.htk-free-lessons-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 var(--ds-space-3);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    background: var(--ds-surface);
    color: var(--ds-text);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-semibold);
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.htk-free-lessons-category-logo {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 999px;
    object-fit: cover;
    background: #fff;
}

.htk-free-lessons-category:hover,
.htk-free-lessons-category:focus {
    border-color: var(--ds-gray-400);
    background: var(--ds-surface-soft);
    color: var(--ds-text);
}

.htk-free-lessons-category.is-active {
    border-color: var(--ds-accent);
    box-shadow: inset 0 0 0 1px var(--ds-accent);
}

.htk-free-lessons-filter-row .htk-learning-primary,
.htk-free-lessons-filter-row .htk-learning-secondary {
    flex: 0 0 auto;
}

.htk-free-lessons-order-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    background: var(--ds-surface);
    color: var(--ds-text-soft);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.htk-free-lessons-order-toggle:hover,
.htk-free-lessons-order-toggle:focus {
    border-color: var(--ds-gray-400);
    background: var(--ds-surface-soft);
    color: var(--ds-text);
}

.htk-free-lessons-order-toggle[aria-pressed="true"] {
    border-color: var(--ds-accent);
    color: var(--ds-accent);
}

.htk-learning-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 var(--ds-space-3);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    color: var(--ds-text-soft);
    text-decoration: none;
    background: var(--ds-surface);
    cursor: pointer;
}

.htk-free-lessons-summary {
    margin: 0 0 var(--ds-space-4);
    color: var(--ds-text-soft);
}

.htk-free-lessons-pagination ul {
    margin: var(--ds-space-5) 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-space-2);
}

.htk-free-lessons-pagination ul.page-numbers {
    min-width: 0;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.htk-free-lessons-pagination a,
.htk-free-lessons-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 var(--ds-space-3);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    text-decoration: none;
    color: var(--ds-text-soft);
}

.htk-free-lessons-pagination .current {
    border-color: var(--ds-primary);
    background: var(--ds-primary);
    color: #fff;
}

.htk-knowledge-pagination ul.page-numbers {
    min-width: 0;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.htk-articles-page {
    display: grid;
    width: 100%;
    max-width: 980px;
    justify-self: center;
    align-self: start;
    align-content: start;
    gap: var(--ds-space-5);
}

.htk-articles-page .htk-course-hero {
    margin-bottom: 0;
}

.htk-articles-hero {
    padding: clamp(24px, 3vw, 36px);
}

.htk-articles-filter {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) 220px auto auto;
    align-items: end;
    gap: var(--ds-space-3);
    margin-bottom: var(--ds-space-6);
}

.htk-articles-filter label {
    display: grid;
    gap: var(--ds-space-2);
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-semibold);
}

.htk-articles-filter input,
.htk-articles-filter select {
    width: 100%;
    height: 44px;
    padding: 0 var(--ds-space-3);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    color: var(--ds-text);
    background: var(--ds-surface);
    font: inherit;
    font-weight: 400;
}

.htk-articles-filter input:focus,
.htk-articles-filter select:focus {
    outline: 2px solid rgba( 123, 24, 209, 0.18 );
    border-color: var(--ds-primary);
}

.htk-articles-results-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--ds-space-3);
    margin-bottom: var(--ds-space-4);
}

.htk-articles-results-head h2,
.htk-articles-results-head p {
    margin: 0;
}

.htk-articles-results-head p {
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-300);
}

.htk-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ds-space-4);
}

.htk-knowledge-page {
    display: grid;
    width: 100%;
    max-width: 980px;
    justify-self: center;
    align-self: start;
    align-content: start;
    gap: var(--ds-space-5);
}

.htk-knowledge-page .htk-course-hero {
    margin-bottom: 0;
}

.htk-knowledge-term-filters {
    display: grid;
    gap: var(--ds-space-2);
    margin-bottom: var(--ds-space-3);
}

.htk-knowledge-term-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-space-2);
}

.htk-knowledge-term-row.is-child {
    align-items: center;
    padding-left: var(--ds-space-3);
    gap: var(--ds-space-1);
}

.htk-knowledge-term-row.is-child::before {
    width: 18px;
    height: 1px;
    margin-right: var(--ds-space-1);
    border-radius: var(--ds-radius-pill);
    background: var(--ds-border);
    content: "";
}

.htk-knowledge-term-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 var(--ds-space-3);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-pill);
    color: var(--ds-text-soft);
    background: var(--ds-surface);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-semibold);
    text-decoration: none;
}

.htk-knowledge-term-icon {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    margin-right: 8px;
    border: 1px solid color-mix(in srgb, var(--ds-primary) 32%, var(--ds-border));
    border-radius: 8px;
    color: var(--ds-primary-strong);
    background: color-mix(in srgb, var(--ds-primary) 10%, var(--ds-surface));
    font-size: 10px;
    font-weight: var(--ds-fw-bold);
    line-height: 1;
    text-transform: uppercase;
}

.htk-knowledge-term-pill:hover,
.htk-knowledge-term-pill:focus {
    color: var(--ds-text);
    border-color: var(--ds-border-strong);
    text-decoration: none;
}

.htk-knowledge-term-row:not(.is-child) .htk-knowledge-term-pill:hover,
.htk-knowledge-term-row:not(.is-child) .htk-knowledge-term-pill:focus {
    color: var(--ds-text);
    border-color: color-mix(in srgb, var(--ds-primary) 62%, var(--ds-border));
    background: color-mix(in srgb, var(--ds-primary) 14%, var(--ds-surface));
}

.htk-knowledge-term-row:not(.is-child) .htk-knowledge-term-pill:hover .htk-knowledge-term-icon,
.htk-knowledge-term-row:not(.is-child) .htk-knowledge-term-pill:focus .htk-knowledge-term-icon {
    border-color: color-mix(in srgb, var(--ds-primary) 70%, var(--ds-border));
    color: var(--ds-text);
    background: color-mix(in srgb, var(--ds-primary) 22%, var(--ds-surface));
}

.htk-knowledge-term-pill.is-active {
    color: var(--ds-text-inverse);
    border-color: var(--ds-accent);
    background: var(--ds-accent);
}

.htk-knowledge-term-row:not(.is-child) .htk-knowledge-term-pill.is-active .htk-knowledge-term-icon {
    border-color: color-mix(in srgb, var(--ds-text-inverse) 70%, transparent);
    color: var(--ds-text-inverse);
    background: color-mix(in srgb, var(--ds-text-inverse) 28%, transparent);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.24);
}

.htk-knowledge-term-row:not(.is-child) .htk-knowledge-term-pill.is-active:hover .htk-knowledge-term-icon,
.htk-knowledge-term-row:not(.is-child) .htk-knowledge-term-pill.is-active:focus .htk-knowledge-term-icon {
    border-color: color-mix(in srgb, var(--ds-primary) 72%, var(--ds-border));
    color: var(--ds-primary-strong);
    background: color-mix(in srgb, var(--ds-primary) 16%, var(--ds-surface));
    text-shadow: none;
}

.htk-knowledge-term-row.is-child .htk-knowledge-term-pill {
    min-height: 28px;
    padding: 0 10px;
    border-color: var(--ds-border-soft);
    border-radius: var(--ds-radius-md);
    color: var(--ds-text-soft);
    background: var(--ds-surface-soft);
    font-size: calc(var(--ds-fs-200) - 1px);
    font-weight: var(--ds-fw-medium);
}

.htk-knowledge-term-row.is-child .htk-knowledge-term-pill::before {
    margin-right: 6px;
    color: color-mix(in srgb, var(--ds-primary) 56%, var(--ds-text-soft));
    font-size: 12px;
    line-height: 1;
    content: "↳";
}

.htk-knowledge-term-row.is-child .htk-knowledge-term-pill:hover,
.htk-knowledge-term-row.is-child .htk-knowledge-term-pill:focus {
    border-color: color-mix(in srgb, var(--ds-primary) 28%, var(--ds-border-soft));
    color: var(--ds-primary);
    background: color-mix(in srgb, var(--ds-primary) 8%, var(--ds-surface));
}

.htk-knowledge-term-row.is-child .htk-knowledge-term-pill.is-active {
    border-color: color-mix(in srgb, var(--ds-primary) 36%, var(--ds-border-soft));
    color: var(--ds-primary-strong);
    background: color-mix(in srgb, var(--ds-primary) 16%, var(--ds-surface));
}

.htk-knowledge-public-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ds-space-4);
}

.htk-knowledge-public-card {
    display: flex;
    flex-direction: column;
    padding: var(--ds-space-4);
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-surface);
}

.htk-knowledge-public-card h3 {
    display: -webkit-box;
    overflow: hidden;
    min-height: calc(1.35em * 2);
    margin: 0 0 var(--ds-space-2);
    font-size: var(--ds-fs-400);
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.htk-knowledge-public-card h3 a {
    color: var(--ds-text);
    text-decoration: none;
}

.htk-knowledge-public-card p {
    display: -webkit-box;
    min-height: calc(1.5em * 2);
    overflow: hidden;
    margin: 0 0 var(--ds-space-2);
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-300);
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.htk-knowledge-public-image {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-bottom: var(--ds-space-3);
    aspect-ratio: 1;
    border-radius: var(--ds-radius-md);
    background: var(--ds-surface-soft);
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-200);
    text-decoration: none;
}

.htk-knowledge-public-image.has-blur-bg::before {
    position: absolute;
    inset: -12px;
    background: var(--htk-knowledge-image-bg) center / cover no-repeat;
    filter: blur(12px);
    opacity: 0.68;
    content: "";
}

.htk-knowledge-public-image img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.htk-knowledge-public-meta {
    display: flex;
    justify-content: space-between;
    gap: var(--ds-space-2);
    margin-top: auto;
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-200);
}

.htk-knowledge-public-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.htk-knowledge-public-tags span {
    display: inline-flex;
    align-items: center;
    color: var(--ds-primary);
    font-weight: var(--ds-fw-semibold);
    white-space: nowrap;
}

.htk-knowledge-public-tags .is-category {
    color: var(--ds-text-soft);
}

.htk-knowledge-public-tags .is-soft {
    color: var(--ds-text-soft);
}

.htk-knowledge-public-meta span:first-child {
    color: var(--ds-primary);
    font-weight: var(--ds-fw-semibold);
}

.htk-article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-surface);
}

.htk-article-card-media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    color: var(--ds-primary);
    text-decoration: none;
    background: var(--ds-surface-soft);
}

.htk-article-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
}

.htk-article-card:hover .htk-article-card-media img {
    transform: scale(1.025);
}

.htk-article-card-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--ds-primary);
    font-size: var(--ds-fs-400);
    font-weight: var(--ds-fw-semibold);
}

.htk-article-card-body {
    display: grid;
    flex: 1;
    gap: var(--ds-space-3);
    padding: var(--ds-space-4);
}

.htk-article-card-meta {
    display: flex;
    align-items: center;
    gap: var(--ds-space-2);
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-200);
}

.htk-article-card-meta span {
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--ds-primary);
    background: var(--ds-primary-soft);
    font-weight: var(--ds-fw-semibold);
}

.htk-article-card h3,
.htk-article-card p {
    margin: 0;
}

.htk-article-card h3 {
    color: var(--ds-text);
    font-size: var(--ds-fs-400);
    line-height: 1.4;
}

.htk-article-card h3 a {
    color: inherit;
    text-decoration: none;
}

.htk-article-card h3 a:hover,
.htk-article-read:hover {
    color: var(--ds-primary);
}

.htk-article-card p {
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-300);
    line-height: 1.6;
}

.htk-article-read {
    align-self: end;
    margin-top: auto;
    color: var(--ds-primary);
    font-size: var(--ds-fs-300);
    font-weight: var(--ds-fw-semibold);
    text-decoration: none;
}

.htk-article-single {
    overflow: hidden;
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-xl);
    background: var(--ds-surface);
    box-shadow: var(--ds-shadow-1);
}

.htk-main.htk-article-page {
    width: 100%;
    max-width: 880px;
    justify-self: center;
    align-self: start;
}

.htk-article-header {
    padding: clamp(24px, 4vw, 48px);
}

.htk-knowledge-single-page .htk-article-header .htk-learning-return {
    margin-bottom: var(--ds-space-2);
}

.htk-article-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ds-space-3);
    margin: var(--ds-space-2) 0 var(--ds-space-3);
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-300);
}

.htk-article-single-meta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ds-primary);
    font-weight: var(--ds-fw-semibold);
    text-decoration: none;
}

.htk-article-single-meta a::before {
    color: currentColor;
    font-size: 0.9em;
    line-height: 1;
    opacity: 0.75;
}

.htk-article-single-meta .is-software {
    font-weight: var(--ds-fw-semibold);
}

.htk-article-single-meta .is-category {
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-medium);
}

.htk-article-single-meta .is-software::before {
    content: "●";
}

.htk-article-single-meta .is-category::before {
    content: "↳";
}

.htk-article-single-meta > span:last-child {
    color: var(--ds-text-soft);
    font-weight: var(--ds-fw-medium);
}

.htk-article-header h1 {
    max-width: 900px;
    margin: 0;
    color: var(--ds-text);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
}

.htk-article-intro {
    max-width: 760px;
    margin: var(--ds-space-4) 0 0;
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-400);
    line-height: 1.7;
}

.htk-article-featured {
    display: block;
    width: 100%;
    max-height: 520px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.htk-knowledge-single-page .htk-article-featured {
    max-height: none;
    height: auto;
    aspect-ratio: auto;
    object-fit: initial;
    object-position: initial;
    background: transparent;
    border-radius: var(--ds-radius-lg);
}

.htk-article-content {
    max-width: 840px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 52px);
    color: var(--ds-text);
    font-size: var(--ds-fs-400);
    line-height: 1.75;
}

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

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

.htk-article-content h2,
.htk-article-content h3,
.htk-article-content h4 {
    margin: 1.7em 0 0.6em;
    color: var(--ds-text);
    line-height: 1.35;
}

.htk-article-content p,
.htk-article-content ul,
.htk-article-content ol,
.htk-article-content blockquote,
.htk-article-content figure {
    margin: 0 0 var(--ds-space-4);
}

.htk-article-content ul,
.htk-article-content ol {
    padding-left: 1.4em;
}

.htk-article-content a {
    color: var(--ds-primary);
}

.htk-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--ds-radius-md);
}

.htk-article-content blockquote {
    padding: var(--ds-space-4);
    border-left: 3px solid var(--ds-primary);
    border-radius: 0 var(--ds-radius-md) var(--ds-radius-md) 0;
    color: var(--ds-text-soft);
    background: var(--ds-surface-soft);
}

.htk-article-content pre {
    overflow-x: auto;
    padding: var(--ds-space-4);
    border-radius: var(--ds-radius-md);
    color: #f5f4ff;
    background: #16162a;
}

.htk-article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.htk-article-content th,
.htk-article-content td {
    padding: var(--ds-space-2) var(--ds-space-3);
    border: 1px solid var(--ds-border-soft);
}

.htk-knowledge-related-lesson {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ds-space-4);
    width: calc(100% - clamp(48px, 10vw, 88px));
    max-width: 780px;
    margin: 0 auto clamp(24px, 5vw, 52px);
    box-sizing: border-box;
    padding: var(--ds-space-5);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-surface-soft);
}

.htk-knowledge-related-lesson span {
    color: var(--ds-text);
    font-size: var(--ds-fs-300);
    font-weight: var(--ds-fw-semibold);
}

.htk-knowledge-more {
    margin-top: clamp(24px, 5vw, 44px);
}

.htk-knowledge-more-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ds-space-4);
    margin-bottom: var(--ds-space-4);
}

.htk-knowledge-more-head h2 {
    margin: 0;
    color: var(--ds-text);
    font-size: var(--ds-fs-500);
}

.htk-knowledge-more-head a {
    color: var(--ds-primary);
    font-size: var(--ds-fs-300);
    font-weight: var(--ds-fw-semibold);
    text-decoration: none;
}

.htk-knowledge-more-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ds-space-4);
}

.htk-knowledge-more-card {
    overflow: hidden;
    padding: var(--ds-space-4);
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-surface);
}

.htk-knowledge-more-card h3 {
    margin: 0 0 var(--ds-space-2);
    color: var(--ds-text);
    font-size: var(--ds-fs-400);
    line-height: 1.4;
}

.htk-knowledge-more-card h3 a {
    color: inherit;
    text-decoration: none;
}

.htk-knowledge-more-card p {
    margin: 0;
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-300);
    line-height: 1.5;
}

.htk-student-submission-discussion {
    margin: 0 0 var(--ds-space-4);
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-surface);
}

.htk-submission-comment-form {
    display: grid;
    gap: var(--ds-space-3);
}

.htk-submission-comment-form label {
    display: grid;
    gap: var(--ds-space-2);
}

.htk-submission-review-message + .htk-lesson-comments-box,
.htk-submission-review-message + .htk-submission-comment-form,
.htk-lesson-comments-box + .htk-submission-comment-form {
    margin-top: var(--ds-space-4);
}

.htk-submission-reply-notice {
    margin: 0;
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-300);
}

.htk-submission-reply-notice button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ds-accent);
    font: inherit;
    font-weight: var(--ds-fw-semibold);
    cursor: pointer;
}

.htk-submission-reply-notice button:hover,
.htk-submission-reply-notice button:focus {
    color: var(--ds-accent-hover);
    text-decoration: underline;
}

.htk-lesson-comments {
    margin-top: var(--ds-space-6);
    padding-top: var(--ds-space-5);
    border-top: 1px solid var(--ds-border);
}

.htk-lesson-comments h2 {
    margin: 0 0 var(--ds-space-4);
}

.htk-lesson-comments-box {
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-4);
}

.htk-lesson-comments-box .comment {
    padding: var(--ds-space-4);
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-surface-soft);
}

.htk-lesson-comments-box .comment-author {
    display: flex;
    align-items: center;
    gap: var(--ds-space-2);
    margin-bottom: var(--ds-space-2);
}

.htk-lesson-comments-box .comment-author img {
    border-radius: 50%;
}

.htk-lesson-comments-box .comment-meta,
.htk-lesson-comments-box .logged-in-as,
.htk-lesson-comments-box .comment-notes {
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-200);
}

.htk-lesson-comments-box .comment-respond textarea,
.htk-lesson-comments-box .comment-respond input[type="text"],
.htk-lesson-comments-box .comment-respond input[type="email"],
.htk-lesson-comments-box .comment-respond input[type="url"] {
    width: 100%;
    padding: var(--ds-space-3);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    background: var(--ds-surface);
}

.htk-lesson-comments-box .comment-form-comment,
.htk-lesson-comments-box .comment-form-author,
.htk-lesson-comments-box .comment-form-email,
.htk-lesson-comments-box .comment-form-url {
    margin: 0 0 var(--ds-space-3);
}

.htk-auth-page {
    min-height: calc(100vh - 72px);
    display: grid;
    place-items: center;
    padding: clamp(28px, 6vw, 64px) var(--ds-space-4);
    background: var(--ds-surface-soft);
}

.htk-auth-card {
    width: min(460px, 100%);
    padding: clamp(24px, 5vw, 36px);
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-xl);
    background: var(--ds-surface);
    box-shadow: var(--ds-shadow-2);
}

.htk-auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ds-space-2);
    margin-bottom: var(--ds-space-6);
    padding: 4px;
    border-radius: var(--ds-radius-lg);
    background: var(--ds-surface-soft);
}

.htk-auth-tabs a {
    padding: 11px var(--ds-space-3);
    border-radius: var(--ds-radius-md);
    color: var(--ds-text-soft);
    font-weight: var(--ds-fw-semibold);
    text-align: center;
    text-decoration: none;
}

.htk-auth-tabs a.is-active {
    color: var(--ds-accent);
    background: var(--ds-surface);
    box-shadow: var(--ds-shadow-1);
}

.htk-auth-header {
    margin-bottom: var(--ds-space-5);
    text-align: center;
}

.htk-auth-header h1 {
    margin: 0 0 var(--ds-space-2);
    color: var(--ds-text);
    font-size: clamp(25px, 4vw, 30px);
}

.htk-auth-header p {
    margin: 0;
    color: var(--ds-text-soft);
    line-height: 1.55;
}

.htk-auth-alert {
    margin-bottom: var(--ds-space-4);
}

.htk-auth-social-only {
    display: grid;
    gap: var(--ds-space-4);
}

.htk-auth-page .htk-auth-social-only {
    margin-bottom: var(--ds-space-2);
}

.htk-auth-social-note {
    margin: 0;
    color: var(--ds-text-soft);
    text-align: center;
}

.htk-auth-social-action {
    display: grid;
    justify-items: center;
}

.htk-account-guest-auth {
    display: grid;
    justify-items: start;
    margin-top: var(--ds-space-3);
}

.htk-auth-social-action .kira-google-login-fallback,
.htk-account-guest-auth .kira-google-login-fallback {
    display: none !important;
}

.htk-auth-form {
    display: grid;
    gap: var(--ds-space-4);
}

.htk-auth-form-manual {
    margin-top: var(--ds-space-5);
    padding-top: var(--ds-space-4);
    border-top: 1px solid var(--ds-border-soft);
}

.htk-auth-form label > span:first-child {
    display: block;
    margin-bottom: var(--ds-space-2);
    color: var(--ds-text);
    font-weight: var(--ds-fw-medium);
}

.htk-auth-form input[type="text"],
.htk-auth-form input[type="email"],
.htk-auth-form input[type="password"] {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 var(--ds-space-4);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    color: var(--ds-text);
    background: var(--ds-surface);
}

.htk-auth-form input:focus {
    outline: none;
    border-color: var(--ds-accent);
    box-shadow: 0 0 0 3px rgba(114, 23, 192, 0.12);
}

.htk-auth-password {
    position: relative;
    display: block;
}

.htk-auth-password input[type="password"],
.htk-auth-password input[type="text"] {
    padding-right: 52px;
}

.htk-auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: var(--ds-radius-md);
    color: var(--ds-text-soft);
    background: transparent;
    cursor: pointer;
}

.htk-auth-password-toggle:hover,
.htk-auth-password-toggle:focus {
    color: var(--ds-accent);
    background: var(--ds-surface-soft);
}

.htk-auth-password-toggle svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.htk-auth-password-toggle.is-visible::after {
    content: "";
    position: absolute;
    width: 23px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: rotate(45deg);
}

.htk-auth-form-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--ds-space-3);
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-300);
}

.htk-auth-form-meta a,
.htk-auth-footer a {
    color: var(--ds-accent);
    font-weight: var(--ds-fw-semibold);
    text-decoration: none;
}

.htk-auth-form-meta a:hover,
.htk-auth-footer a:hover {
    color: var(--ds-accent-hover);
}

.htk-auth-form .htk-auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-2);
    cursor: pointer;
}

.htk-auth-checkbox input {
    margin: 0;
    accent-color: var(--ds-accent);
}

.htk-auth-form .htk-learning-primary {
    width: 100%;
    justify-content: center;
    margin-top: var(--ds-space-2);
}

.htk-auth-footer {
    margin: var(--ds-space-5) 0 0;
    color: var(--ds-text-soft);
    text-align: center;
}

.htk-upgrade-page {
    display: grid;
    align-self: start;
    align-content: start;
    gap: var(--ds-space-5);
}

.htk-upgrade-hero {
    padding: clamp(28px, 5vw, 46px);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-2xl);
    background:
        radial-gradient(circle at 90% 8%, rgba(37, 99, 235, 0.14), transparent 42%),
        linear-gradient(135deg, var(--ds-surface) 0%, var(--ds-blue-50) 100%);
    box-shadow: var(--ds-shadow-1);
}

.htk-upgrade-eyebrow {
    display: inline-flex;
    margin-bottom: var(--ds-space-3);
    padding: 7px 13px;
    border-radius: var(--ds-radius-pill);
    color: var(--ds-accent);
    background: var(--ds-primary-soft);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-semibold);
    text-transform: uppercase;
}

.htk-upgrade-hero h1 {
    max-width: 700px;
    margin: 0 0 var(--ds-space-3);
    font-size: clamp(1.75rem, 4vw, 2.6rem);
}

.htk-upgrade-hero p {
    max-width: 680px;
    margin: 0 0 var(--ds-space-5);
    color: var(--ds-text-soft);
    line-height: 1.65;
}

.htk-upgrade-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-space-2);
}

.htk-upgrade-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-pill);
    color: var(--ds-text-soft);
    background: var(--ds-surface);
    font-size: var(--ds-fs-300);
}

.htk-upgrade-benefits span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ds-success);
}

.htk-upgrade-courses {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: var(--ds-space-4);
}

.htk-upgrade-course-card {
    padding: var(--ds-space-5);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-xl);
    background: var(--ds-surface);
    box-shadow: var(--ds-shadow-1);
}

.htk-upgrade-course-head {
    display: flex;
    align-items: center;
    gap: var(--ds-space-4);
    margin-bottom: var(--ds-space-4);
}

.htk-upgrade-course-cover {
    flex: 0 0 112px;
    width: 112px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--ds-radius-lg);
    background: var(--ds-primary-soft);
}

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

.htk-upgrade-course-title h2 {
    margin: 0 0 5px;
    font-size: var(--ds-fs-600);
}

.htk-upgrade-course-title small {
    color: var(--ds-text-soft);
}

.htk-upgrade-course-title .htk-upgrade-current {
    color: var(--ds-success);
    font-weight: var(--ds-fw-semibold);
}

.htk-upgrade-plan-list {
    display: grid;
    gap: var(--ds-space-2);
}

.htk-upgrade-course-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ds-space-3);
    padding: var(--ds-space-3) var(--ds-space-4);
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-surface-soft);
}

.htk-upgrade-course-actions span {
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-300);
}

.htk-upgrade-open-plans {
    min-height: 36px;
    padding: 0 var(--ds-space-3);
    border-radius: var(--ds-radius-sm);
    white-space: nowrap;
}

.htk-upgrade-plan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    align-items: center;
    gap: var(--ds-space-3);
    padding: var(--ds-space-3) var(--ds-space-4);
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-surface-soft);
}

.htk-upgrade-plan.is-best-value {
    border-color: #fb923c;
    background: #fff7ed;
}

.htk-upgrade-plan-main {
    display: grid;
    gap: 4px;
}

.htk-upgrade-plan-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fed7aa;
    color: #9a3412;
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-semibold);
}

.htk-upgrade-plan-main strong {
    font-size: var(--ds-fs-500);
}

.htk-upgrade-plan-main small {
    color: var(--ds-text-soft);
}

.htk-upgrade-plan-daily {
    display: block;
    margin-top: 2px;
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-200);
}

.htk-upgrade-plan-price {
    margin-top: var(--ds-space-1);
    color: var(--ds-text);
    font-size: var(--ds-fs-500);
    font-weight: var(--ds-fw-bold);
    white-space: nowrap;
}

.htk-upgrade-plan-price del {
    display: block;
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-200);
    font-weight: var(--ds-fw-medium);
}

.htk-upgrade-plan-price ins {
    text-decoration: none;
}

.htk-upgrade-select {
    grid-column: 2;
    width: 100%;
    min-height: 36px;
    justify-content: center;
    padding: 0 var(--ds-space-2);
    border-radius: var(--ds-radius-sm);
    font-size: var(--ds-fs-300);
    box-shadow: var(--ds-shadow-1);
    text-decoration: none;
    transition:
        background-color var(--ds-motion-fast) var(--ds-ease),
        box-shadow var(--ds-motion-fast) var(--ds-ease),
        transform var(--ds-motion-fast) var(--ds-ease);
}

.htk-upgrade-select:hover,
.htk-upgrade-select:focus {
    background: var(--ds-primary-hover);
    box-shadow: var(--ds-shadow-2);
    transform: translateY(-1px);
    text-decoration: none;
}

.htk-upgrade-unavailable {
    grid-column: 2;
    width: 100%;
    text-align: center;
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-300);
}

.htk-upgrade-confirm {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--ds-space-5);
}

.htk-upgrade-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 15, 20, 0.48);
}

.htk-upgrade-confirm-dialog {
    position: relative;
    width: min(500px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: clamp(22px, 4vw, 30px);
    border-radius: var(--ds-radius-xl);
    background: var(--ds-surface);
    box-shadow: var(--ds-shadow-3);
}

.htk-upgrade-confirm-close {
    position: absolute;
    top: var(--ds-space-3);
    right: var(--ds-space-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--ds-text-soft);
    font-size: 25px;
    line-height: 1;
    text-decoration: none;
}

.htk-upgrade-confirm-dialog h2 {
    margin: 0 40px var(--ds-space-4) 0;
    font-size: var(--ds-fs-700);
}

.htk-upgrade-confirm-summary {
    display: grid;
    gap: var(--ds-space-2);
    margin: 0 0 var(--ds-space-4);
    padding: var(--ds-space-4);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-surface-soft);
}

.htk-upgrade-confirm-summary div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ds-space-3);
}

.htk-upgrade-confirm-summary dt {
    color: var(--ds-text-soft);
}

.htk-upgrade-confirm-summary dd {
    margin: 0;
    font-weight: var(--ds-fw-semibold);
    text-align: right;
}

.htk-upgrade-confirm-alert {
    margin-bottom: var(--ds-space-4);
    padding: var(--ds-space-4);
    border: 1px solid var(--ds-success-soft);
    border-radius: var(--ds-radius-lg);
    background: #effaf3;
}

.htk-upgrade-confirm-alert.is-warning {
    border-color: #f3d18a;
    background: #fff8e8;
}

.htk-upgrade-confirm-alert strong {
    display: block;
    margin-bottom: var(--ds-space-2);
}

.htk-upgrade-confirm-alert p {
    margin: 0;
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-300);
    line-height: 1.55;
}

.htk-upgrade-confirm-form {
    display: grid;
    gap: var(--ds-space-4);
}

.htk-upgrade-confirm-form label {
    display: grid;
    gap: var(--ds-space-2);
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-300);
    font-weight: var(--ds-fw-semibold);
}

.htk-upgrade-confirm-form input {
    height: 44px;
    padding: 0 var(--ds-space-3);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    font: inherit;
}

.htk-upgrade-login-note {
    margin: 0;
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-300);
}

.htk-upgrade-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--ds-space-2);
}

.htk-upgrade-confirm-actions .htk-learning-primary,
.htk-upgrade-confirm-actions .htk-learning-secondary {
    min-height: 42px;
}

.htk-main.htk-checkout-page {
    width: 100%;
    max-width: 980px;
    justify-self: center;
    align-self: start;
    display: grid;
    gap: var(--ds-space-5);
}

.htk-checkout-hero {
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-xl);
    background:
        radial-gradient(circle at 90% 8%, rgba(37, 99, 235, 0.13), transparent 42%),
        linear-gradient(135deg, var(--ds-surface) 0%, var(--ds-blue-50) 100%);
    box-shadow: var(--ds-shadow-1);
}

.htk-checkout-hero .htk-learning-return {
    margin-bottom: var(--ds-space-3);
}

.htk-checkout-hero h1 {
    margin: 0 0 var(--ds-space-2);
    font-size: clamp(1.6rem, 3vw, 2rem);
}

.htk-checkout-hero p {
    max-width: 660px;
    margin: 0;
    color: var(--ds-text-soft);
    line-height: 1.6;
}

.htk-checkout-surface {
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-xl);
    background: var(--ds-surface);
    box-shadow: var(--ds-shadow-1);
}

.htk-checkout-page .woocommerce-notices-wrapper:not(:empty),
.htk-checkout-page .woocommerce-form-coupon-toggle,
.htk-checkout-page .woocommerce-form-login-toggle {
    margin-bottom: var(--ds-space-4);
}

.htk-checkout-page .woocommerce-info,
.htk-checkout-page .woocommerce-error,
.htk-checkout-page .woocommerce-message {
    margin: 0 0 var(--ds-space-4);
    padding: var(--ds-space-3) var(--ds-space-4);
    border: 1px solid var(--ds-border);
    border-left: 3px solid var(--ds-primary);
    border-radius: var(--ds-radius-md);
    list-style: none;
    color: var(--ds-text);
    background: var(--ds-surface-soft);
}

.htk-checkout-page .woocommerce-info::before,
.htk-checkout-page .woocommerce-error::before,
.htk-checkout-page .woocommerce-message::before {
    content: none !important;
}

.htk-checkout-page .woocommerce-error {
    border-left-color: #d63638;
    background: #fff3f3;
}

.htk-checkout-page .woocommerce-info a,
.htk-checkout-page .woocommerce-message a {
    color: var(--ds-primary);
    font-weight: var(--ds-fw-semibold);
}

.htk-checkout-page form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    align-items: start;
    gap: var(--ds-space-5);
}

.htk-checkout-page form.checkout > #customer_details {
    grid-column: 1;
    grid-row: 1 / span 3;
}

.htk-checkout-page form.checkout > #order_review_heading,
.htk-checkout-page form.checkout > #order_review {
    grid-column: 2;
}

.htk-checkout-page form.checkout > #order_review_heading {
    margin: 0;
}

.htk-checkout-page .col2-set .col-1,
.htk-checkout-page .col2-set .col-2 {
    width: 100%;
    float: none;
}

.htk-checkout-page .woocommerce-billing-fields h3,
.htk-checkout-page .woocommerce-shipping-fields h3,
.htk-checkout-page .woocommerce-additional-fields h3,
.htk-checkout-page #order_review_heading {
    margin: 0 0 var(--ds-space-4);
    font-size: var(--ds-fs-600);
}

.htk-checkout-page .form-row {
    margin: 0 0 var(--ds-space-3);
}

.htk-checkout-page .form-row label {
    display: block;
    margin-bottom: var(--ds-space-2);
    color: var(--ds-text-soft);
    font-size: var(--ds-fs-300);
    font-weight: var(--ds-fw-semibold);
}

.htk-checkout-page .input-text,
.htk-checkout-page select,
.htk-checkout-page .select2-container .select2-selection--single {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 0 var(--ds-space-3);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    background: var(--ds-surface);
    font: inherit;
}

.htk-checkout-page textarea.input-text {
    min-height: 86px;
    padding-block: var(--ds-space-3);
}

.htk-checkout-page .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 42px;
    padding-left: 0;
}

.htk-checkout-page .select2-container .select2-selection--single .select2-selection__arrow {
    height: 42px;
}

.htk-checkout-page .woocommerce-checkout-review-order {
    padding: var(--ds-space-4);
    border: 1px solid var(--ds-border-soft);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-surface-soft);
}

.htk-checkout-page table.shop_table {
    width: 100%;
    margin: 0 0 var(--ds-space-4);
    border-collapse: collapse;
    table-layout: auto;
}

.htk-checkout-page table.shop_table th,
.htk-checkout-page table.shop_table td {
    padding: var(--ds-space-3) 0;
    border-bottom: 1px solid var(--ds-border-soft);
    text-align: left;
    vertical-align: top;
}

.htk-checkout-page table.shop_table .product-total,
.htk-checkout-page table.shop_table td:last-child {
    text-align: right;
    white-space: nowrap;
    width: 1%;
}

.htk-checkout-page table.shop_table .product-name {
    padding-right: var(--ds-space-3);
    word-break: normal;
}

.htk-checkout-page table.shop_table .product-name dl.variation {
    margin: 6px 0 0;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 8px;
    row-gap: 4px;
}

.htk-checkout-page table.shop_table .product-name dl.variation dt,
.htk-checkout-page table.shop_table .product-name dl.variation dd {
    float: none;
    margin: 0;
}

.htk-checkout-page table.shop_table .product-name dl.variation dt {
    font-weight: var(--ds-fw-semibold);
}

.htk-checkout-page table.shop_table .product-name dl.variation dd p {
    margin: 0;
}

.htk-checkout-page table.shop_table .order-total th,
.htk-checkout-page table.shop_table .order-total td {
    color: var(--ds-text);
    font-size: var(--ds-fs-500);
    font-weight: var(--ds-fw-bold);
}

.htk-checkout-page .wc_payment_methods {
    margin: 0 0 var(--ds-space-4);
    padding: 0;
    list-style: none;
}

.htk-checkout-page .wc_payment_method {
    padding: var(--ds-space-3) 0;
    border-bottom: 1px solid var(--ds-border-soft);
}

.htk-checkout-page .payment_box {
    margin-top: var(--ds-space-2);
    padding: var(--ds-space-3);
    border-radius: var(--ds-radius-md);
    color: var(--ds-text-soft);
    background: var(--ds-surface);
}

.htk-checkout-page .payment_box::before,
.htk-checkout-page .payment_box::after {
    content: none !important;
}

.htk-checkout-page .payment_box p {
    margin: 0;
}

.htk-checkout-page #place_order {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: var(--ds-radius-md);
    color: var(--ds-text-inverse);
    background: var(--ds-primary);
    font-size: var(--ds-fs-400);
    font-weight: var(--ds-fw-semibold);
    cursor: pointer;
}

.htk-checkout-page #place_order:hover {
    background: var(--ds-primary-hover);
}

@media (max-width: 1200px) {
    .htk-upgrade-courses {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .htk-dashboard-grid.htk-community-grid {
        grid-template-columns: 245px minmax(0, 650px);
    }

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

@media (max-width: 900px) {
    .htk-dashboard-grid.htk-community-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .htk-community-page {
        min-height: 0;
    }

    .htk-learning-page {
        padding: var(--ds-space-5) var(--ds-mobile-page-gutter);
    }

    .htk-articles-filter {
        grid-template-columns: minmax(0, 1fr) minmax(180px, 1fr);
    }

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

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

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

    .htk-path-hero-layout {
        grid-template-columns: 1fr;
        gap: var(--ds-space-4);
    }

    .htk-path-hero-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-top: 0;
    }

    .htk-lesson-title-row,
    .htk-lesson-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .htk-lesson-heading h1 {
        font-size: clamp(24px, 7vw, 30px);
        line-height: 1.25;
    }

    .htk-lesson-actions-row {
        justify-content: flex-start;
    }
    .htk-lesson-top-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .htk-lesson-path-switch {
        width: 100%;
        justify-content: flex-start;
    }

    .htk-lesson-sidebar {
        grid-column: 1 / -1;
    }

    .htk-lesson-sidebar-item {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .htk-lesson-sidebar-item-cover {
        gap: var(--ds-space-2);
    }

    .htk-lesson-sidebar-item-thumb {
        width: 88px;
        flex-basis: 88px;
        aspect-ratio: 16 / 9;
        height: calc(88px * 9 / 16);
    }

    .htk-lesson-sidebar-type-icon {
        width: 88px;
        flex-basis: 88px;
    }

    .htk-lesson-sidebar-type-icon svg {
        width: 30px;
        height: 30px;
    }

    .htk-checkout-page form.checkout {
        grid-template-columns: 1fr;
    }

    .htk-checkout-page form.checkout > #customer_details,
    .htk-checkout-page form.checkout > #order_review_heading,
    .htk-checkout-page form.checkout > #order_review {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (min-width: 1024px), (min-width: 768px) and (orientation: landscape) {
    .htk-lesson-zalo-cta {
        display: flex;
    }
}

@media (max-width: 640px) {
    .htk-path-nav-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .htk-path-nav-actions .htk-path-nav-btn {
        min-width: 0;
    }

    .htk-path-hero-nav {
        grid-template-columns: 1fr;
    }

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

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

    .htk-articles-filter,
    .htk-articles-grid,
    .htk-knowledge-public-grid {
        grid-template-columns: 1fr;
    }

    .htk-knowledge-term-row.is-child {
        padding-left: 0;
    }

    .htk-knowledge-term-row.is-child::before {
        display: none;
    }

    .htk-articles-results-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .htk-knowledge-related-lesson {
        align-items: stretch;
        flex-direction: column;
        width: auto;
        margin-right: var(--ds-space-4);
        margin-left: var(--ds-space-4);
    }

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

    .htk-assignment-submit,
    .htk-approved-submissions {
        padding: var(--ds-space-4);
    }

    .htk-assignment-submit-head {
        flex-direction: column;
    }

    .htk-submission-current {
        align-items: flex-start;
        flex-direction: column;
    }

    .htk-account-history-item {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .htk-account-card {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .htk-account-card-thumb {
        width: 60px;
        height: auto;
    }

    .htk-account-history-thumb {
        width: 60px;
        height: auto;
    }

    .htk-account-plans-head {
        flex-direction: column;
    }

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

    .htk-upgrade-course-card {
        padding: var(--ds-space-4);
    }

    .htk-upgrade-confirm {
        padding: var(--ds-space-3);
    }

    .htk-upgrade-confirm-actions {
        flex-direction: column-reverse;
    }

    .htk-upgrade-confirm-actions .htk-learning-primary,
    .htk-upgrade-confirm-actions .htk-learning-secondary {
        width: 100%;
    }

}

.htk-security-gate {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    background: var(--ds-bg, #f6f8fb);
}

.htk-security-gate-card {
    width: min(560px, 100%);
    padding: 32px;
    border: 1px solid var(--ds-border, #e1e6ee);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(17, 23, 34, 0.08);
    color: var(--ds-text, #111722);
}

.htk-security-eyebrow {
    margin: 0 0 10px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.htk-security-gate-card h1 {
    margin: 0 0 14px;
    font-size: 29px;
}

.htk-security-gate-card p,
.htk-security-gate-card li {
    line-height: 1.55;
}

.htk-security-gate-card ol {
    margin: 22px 0;
    padding-left: 22px;
}

.htk-security-gate-notice {
    margin: 20px 0;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 14px;
}

.htk-security-gate-notice.is-success,
.htk-security-gate-notice.is-info {
    background: #eff6ff;
    color: #1d4ed8;
}

.htk-security-gate-notice.is-error {
    background: #fff1f2;
    color: #be123c;
}

.htk-security-gate-card button {
    min-height: 46px;
    margin-top: 18px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    background: var(--ds-primary, #111722);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.htk-security-return {
    display: inline-block;
    margin-top: 20px;
    color: var(--ds-text-soft, #4b5565);
}

body.htk-security-warning-is-open {
    overflow: hidden;
}

.htk-security-warning-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.htk-security-warning-modal[hidden] {
    display: none;
}

.htk-security-warning-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.64);
}

.htk-security-warning-dialog {
    position: relative;
    width: min(490px, 100%);
    padding: 28px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 56px rgba(15, 23, 42, 0.26);
    color: var(--ds-text, #111722);
}

.htk-security-warning-eyebrow {
    margin: 0 0 10px;
    color: #b45309;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.htk-security-warning-dialog h2 {
    margin: 0 0 14px;
    font-size: clamp(22px, 3vw, 25px);
    line-height: 1.3;
}

.htk-security-warning-dialog p {
    margin: 0 0 15px;
    line-height: 1.6;
    color: var(--ds-text-soft, #4b5565);
}

.htk-security-warning-dialog p strong {
    color: #b45309;
}

.htk-security-warning-dialog .htk-security-warning-note {
    margin-bottom: 23px;
    padding: 11px 13px;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
}

.htk-security-warning-dialog button {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 9px;
    background: var(--ds-primary, #111722);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
