:root {
    --dk-primary: #1f6fff;
    --dk-primary-dark: #0b4edb;
    --dk-primary-soft: #eef5ff;
    --dk-text: #0b1f3a;
    --dk-muted: #6b7a90;
    --dk-border: #e8edf6;
    --dk-bg: #f6f8fc;
    --dk-green: #16a36a;
    --dk-orange: #ff7a1a;
    --dk-purple: #8057ff;
}

.dktic-dashboard-body {
    margin: 0;
    background: var(--dk-bg);
}

.dktic-dashboard-page {
    min-height: 100vh;
    background: var(--dk-bg);
    color: var(--dk-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

.dktic-dashboard-page * {
    box-sizing: border-box;
}

.dktic-dashboard-topbar {
    height: 76px;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 0 28px;
    border-bottom: 1px solid var(--dk-border);
    background: rgba(255, 255, 255, .96);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 10px 28px rgba(24, 51, 100, .04);
}

.dktic-dashboard-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dk-text);
    text-decoration: none;
}

.dktic-dashboard-logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.dktic-dashboard-logo strong {
    font-size: 20px;
    font-weight: 900;
    white-space: nowrap;
}

.dashboard-main-nav {
    display: flex;
    justify-content: center;
    gap: 34px;
    align-items: center;
    min-width: 0;
}

.dashboard-main-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 76px;
    color: #172b4d;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-main-nav a.is-active,
.dashboard-main-nav a:hover {
    color: var(--dk-primary);
}

.dashboard-main-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--dk-primary);
}

.dashboard-user-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.notice-btn {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--dk-text);
    text-decoration: none;
    border-radius: 50%;
    background: #fff;
}

.notice-btn span {
    position: absolute;
    top: -2px;
    right: 0;
    min-width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ff3b30;
    color: #fff;
    border: 2px solid #fff;
    font-size: 10px;
    line-height: 1;
}

.user-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dk-text);
    text-decoration: none;
}

.user-mini img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.user-mini span {
    display: flex;
    flex-direction: column;
    line-height: 1.18;
}

.user-mini strong {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.user-mini small {
    color: var(--dk-muted);
    font-size: 12px;
}

.dktic-dashboard-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: calc(100vh - 76px);
}

.dktic-student-sidebar {
    background: #fff;
    border-right: 1px solid var(--dk-border);
    padding: 18px;
    position: sticky;
    top: 76px;
    height: calc(100vh - 76px);
    overflow-y: auto;
}

.dktic-sidebar-menu {
    display: grid;
    gap: 8px;
}

.dktic-sidebar-link {
    min-height: 48px;
    border-radius: 8px;
    padding: 0 12px;
    display: grid;
    grid-template-columns: 24px 1fr 12px;
    gap: 10px;
    align-items: center;
    color: #344563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.dktic-sidebar-link:hover,
.dktic-sidebar-link.is-active {
    background: linear-gradient(180deg, #2f80ff 0%, var(--dk-primary) 100%);
    color: #fff;
    box-shadow: 0 12px 26px rgba(31, 111, 255, .24);
    text-decoration: none;
}

.dktic-sidebar-icon {
    display: grid;
    place-items: center;
}

.dktic-sidebar-arrow {
    opacity: .7;
    font-size: 12px;
}

.dktic-advisor-card {
    margin-top: 34px;
    padding: 18px;
    border: 1px solid var(--dk-border);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .04);
    text-align: center;
}

.advisor-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--dk-primary-soft);
    color: var(--dk-primary);
    font-size: 22px;
}

.dktic-advisor-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

.dktic-advisor-card p {
    margin: 0 0 14px;
    color: var(--dk-muted);
    font-size: 13px;
}

.dktic-advisor-card a {
    display: flex;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--dk-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.dktic-dashboard-main {
    min-width: 0;
    padding: 26px 34px 38px;
}

.dktic-welcome-panel {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(235, 244, 255, .92) 55%, rgba(218, 235, 255, .9) 100%),
        url("../../img/pattern-light.jpg") center/cover no-repeat;
    border: 1px solid var(--dk-border);
    border-radius: 8px;
    padding: 34px 30px 24px;
    margin-bottom: 20px;
    box-shadow: 0 16px 40px rgba(30, 75, 130, .08);
    overflow: hidden;
    position: relative;
}

.dktic-welcome-panel::after {
    content: "";
    position: absolute;
    right: 70px;
    top: 18px;
    width: 300px;
    height: 150px;
    background: radial-gradient(circle, rgba(31, 111, 255, .2), transparent 65%);
    pointer-events: none;
}

.welcome-head {
    position: relative;
    z-index: 1;
}

.welcome-head h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 900;
}

.welcome-head p {
    margin: 0;
    color: #344563;
    font-size: 16px;
}

.membership-badge {
    display: inline-flex;
    margin-top: 12px;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #dbe7ff;
    border-radius: 999px;
    color: var(--dk-primary);
    font-weight: 800;
    font-size: 13px;
    font-style: normal;
}

.stats-grid {
    position: relative;
    z-index: 1;
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 8px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid #dce7f6;
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(25, 61, 112, .06);
}

.stat-card {
    position: relative;
    min-height: 86px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 4px 12px;
    align-items: center;
    box-shadow: none;
}

.stat-card:not(:last-child) {
    border-right: 1px solid #e2ebf7;
}

.stat-icon {
    grid-row: span 3;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 16px;
}

.stat-card.blue .stat-icon {
    background: #e8f1ff;
    color: var(--dk-primary);
}

.stat-card.green .stat-icon {
    background: #e8f8f0;
    color: var(--dk-green);
}

.stat-card.orange .stat-icon {
    background: #fff0e5;
    color: var(--dk-orange);
}

.stat-card.purple .stat-icon {
    background: #f0eaff;
    color: var(--dk-purple);
}

.stat-card p {
    margin: 0;
    color: #53657d;
    font-size: 13px;
    font-weight: 800;
}

.stat-card div {
    display: flex;
    align-items: baseline;
    min-width: 0;
}

.stat-card strong {
    margin-right: 6px;
    color: #10284d;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
}

.stat-card em {
    color: #344563;
    font-style: normal;
    font-size: 13px;
}

.stat-card small {
    overflow: hidden;
    color: #6a7890;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.dktic-dashboard-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.dktic-grid-main {
    grid-template-columns: minmax(0, 2fr) minmax(330px, .95fr);
}

.dktic-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-card {
    background: #fff;
    border: 1px solid var(--dk-border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .05);
}

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

.section-head h2,
.dashboard-card h2 {
    margin: 0;
    color: var(--dk-text);
    font-size: 18px;
    font-weight: 900;
}

.section-head h3 {
    margin: 0;
    font-size: 15px;
}

.section-head a {
    color: var(--dk-primary);
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
}

.course-list {
    display: grid;
    gap: 18px;
}

.course-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 110px;
    align-items: center;
    gap: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--dk-border);
}

.course-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.course-thumb {
    width: 120px;
    height: 74px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--course-bg, linear-gradient(135deg, #eaf2ff, #d9e9ff));
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

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

.course-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-title-line h3 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
}

.course-title-line span {
    flex: 0 0 auto;
    background: #e8f1ff;
    color: var(--dk-primary);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

.course-info p,
.course-info small {
    color: var(--dk-muted);
    margin: 6px 0;
    font-size: 13px;
}

.progress-wrap {
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 12px;
    align-items: center;
}

.progress-bar,
.plan-bar {
    height: 6px;
    border-radius: 999px;
    background: #e8edf5;
    overflow: hidden;
}

.progress-bar i,
.plan-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--dk-green), #47d193);
}

.progress-wrap strong {
    color: #52627a;
    font-size: 13px;
}

.course-action {
    height: 40px;
    border-radius: 6px;
    background: var(--dk-primary);
    color: #fff;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.course-action.is-outline {
    border: 1px solid var(--dk-primary);
    background: #fff;
    color: var(--dk-primary);
}

.course-action.is-certificate {
    background: linear-gradient(135deg, #f0a92f, #d88a10);
}

.calendar-arrows {
    display: flex;
    gap: 18px;
    align-items: center;
    font-weight: 900;
}

.calendar-arrows button {
    border: 0;
    background: transparent;
    color: #1b2b4a;
    cursor: pointer;
}

.calendar-week,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 10px;
}

.calendar-week {
    color: var(--dk-muted);
    margin-bottom: 12px;
    font-size: 13px;
}

.calendar-days span {
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 800;
    color: #253858;
}

.calendar-days .is-muted {
    visibility: hidden;
}

.calendar-days .is-current {
    background: var(--dk-primary);
    color: #fff;
    box-shadow: 0 10px 18px rgba(31, 111, 255, .24);
}

.today-plan {
    margin-top: 24px;
}

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

.today-task {
    display: grid;
    grid-template-columns: 1fr 60px;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--dk-border);
    color: #354762;
    font-size: 13px;
}

.today-task i {
    color: var(--dk-primary);
    margin-right: 8px;
}

.today-task a,
.live-row a,
.material-item a {
    border: 1px solid #9dbdff;
    color: var(--dk-primary);
    border-radius: 6px;
    min-height: 30px;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.plan-progress {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #344563;
    margin: 22px 0 10px;
    font-size: 14px;
}

.plan-progress span {
    text-align: right;
    color: var(--dk-muted);
}

.task-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 14px;
}

.task-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #344563;
    font-size: 14px;
}

.task-list em {
    flex: 0 0 auto;
    align-self: flex-start;
    font-style: normal;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 800;
}

.task-list em.done {
    color: var(--dk-green);
    background: #e8f8f0;
}

.task-list em.doing {
    color: var(--dk-primary);
    background: #e8f1ff;
}

.task-list em.todo {
    color: var(--dk-muted);
    background: #f1f3f7;
}

.live-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 56px;
    gap: 14px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--dk-border);
}

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

.teacher-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #e8f1ff;
    color: var(--dk-primary);
    font-weight: 900;
}

.live-row h3 {
    margin: 0 0 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.live-row p,
.live-row small {
    margin: 0;
    color: var(--dk-muted);
    font-size: 12px;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    text-align: center;
}

.achievement-grid .badge {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    font-size: 24px;
}

.badge.blue {
    background: #e8f1ff;
    color: var(--dk-primary);
}

.badge.gold {
    background: #fff5d6;
    color: #d79b0b;
}

.badge.orange {
    background: #fff0e5;
    color: var(--dk-orange);
}

.achievement-grid strong {
    display: block;
    font-size: 14px;
}

.achievement-grid p {
    margin: 5px 0 0;
    color: var(--dk-muted);
    font-size: 12px;
    line-height: 1.55;
}

.achievement-total {
    border-top: 1px solid var(--dk-border);
    margin: 20px 0 0;
    padding-top: 16px;
    color: #344563;
    font-size: 14px;
}

.achievement-total a {
    float: right;
    color: var(--dk-primary);
    text-decoration: none;
    font-weight: 800;
}

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

.material-item {
    background: #f7faff;
    border: 1px solid var(--dk-border);
    border-radius: 8px;
    padding: 18px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 70px;
    align-items: center;
    gap: 14px;
}

.file-icon {
    width: 38px;
    height: 44px;
    border-radius: 6px;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 12px;
}

.file-icon.pdf {
    background: #ff4655;
}

.file-icon.ppt {
    background: #ff8a00;
}

.file-icon.doc {
    background: #2f7dff;
}

.material-item h3 {
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.material-item p {
    margin: 0;
    color: var(--dk-muted);
    font-size: 12px;
}

@media (max-width: 1280px) {
    .dashboard-main-nav {
        gap: 20px;
    }

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

    .stat-card:nth-child(2n) {
        border-right: 0;
    }

    .stat-card:nth-child(-n+2) {
        border-bottom: 1px solid #e2ebf7;
    }

    .dktic-grid-main,
    .dktic-grid-three {
        grid-template-columns: 1fr;
    }

    .edu-section-overview .dktic-overview-grid {
        grid-template-columns: 1fr;
    }

    .edu-section-overview .dktic-overview-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .dktic-dashboard-topbar {
        grid-template-columns: 1fr auto;
    }

    .dashboard-main-nav {
        display: none;
    }

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

    .dktic-student-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--dk-border);
    }

    .dktic-sidebar-menu {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dktic-advisor-card {
        display: none;
    }

    .dktic-dashboard-main {
        padding: 18px;
    }

    .edu-section-overview .dktic-overview-side {
        grid-template-columns: 1fr;
    }

    .course-row {
        grid-template-columns: 96px minmax(0, 1fr);
    }

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

    .course-action {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .dktic-dashboard-topbar {
        height: auto;
        min-height: 70px;
        padding: 14px;
    }

    .dktic-dashboard-logo strong,
    .user-mini span,
    .user-mini .fa-angle-down {
        display: none;
    }

    .dktic-sidebar-menu,
    .stats-grid,
    .materials-grid,
    .achievement-grid {
        grid-template-columns: 1fr;
    }

    .dktic-welcome-panel {
        padding: 24px 18px;
    }

    .welcome-head h1 {
        font-size: 24px;
    }

    .stat-card {
        min-height: 110px;
    }

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

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

    .material-item {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .material-item a {
        grid-column: 1 / -1;
    }
}

/* Edu student dashboard shell and routed feature pages */
.edu-student-dashboard {
    background: #f4f7fb;
    min-height: 100vh;
}

.edu-student-dashboard .dktic-dashboard-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: calc(100vh - 78px);
}

.edu-student-dashboard .dktic-student-sidebar {
    position: sticky;
    top: 78px;
    align-self: start;
    height: calc(100vh - 78px);
    overflow-y: auto;
}

.edu-student-dashboard .dktic-dashboard-main {
    min-width: 0;
}

.dktic-empty {
    margin: 0;
    padding: 22px;
    color: #63728a;
    background: #f8fbff;
    border: 1px dashed #cfe0f6;
    border-radius: 10px;
    line-height: 1.7;
}

.dktic-section-page {
    padding: 24px;
}

.dktic-section-page > .dashboard-card,
.dktic-section-page > .materials-card {
    box-shadow: none;
    border: 0;
    padding: 0;
}

.dktic-list-panel {
    display: grid;
    gap: 14px;
}

.dktic-list-panel a {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    color: #092653;
    text-decoration: none;
    background: #f8fbff;
    border: 1px solid #d8e6f7;
    border-radius: 10px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.dktic-list-panel a:hover {
    border-color: #2b7cff;
    box-shadow: 0 14px 32px rgba(20, 92, 190, .12);
    transform: translateY(-1px);
}

.dktic-list-panel strong {
    font-size: 16px;
    font-weight: 800;
}

.dktic-list-panel span {
    color: #5f6f87;
    line-height: 1.7;
}

.dktic-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.dktic-info-row {
    display: grid;
    gap: 6px;
    padding: 16px;
    background: #f8fbff;
    border: 1px solid #dce8f8;
    border-radius: 10px;
}

.dktic-info-row strong {
    color: #64748b;
    font-size: 13px;
}

.dktic-info-row span {
    color: #10284d;
    font-weight: 900;
}

.dktic-profile-extra-grid .dktic-info-row:last-child {
    grid-column: 1 / -1;
}

.dktic-settings-card {
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid #dce8f8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(18, 43, 82, .05);
}

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

.dktic-settings-card-head h3 {
    margin: 0;
    color: #071d40;
    font-size: 18px;
    font-weight: 900;
}

.dktic-profile-compact {
    gap: 14px;
}

.dktic-profile-compact .dktic-settings-card-head button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    min-width: 86px;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 8px;
    background: #2b7cff;
    box-shadow: none;
}

.dktic-profile-compact .dktic-settings-card-head button:hover,
.dktic-profile-compact .dktic-settings-card-head button:focus {
    background: #1f6fff;
    color: #fff;
    box-shadow: none;
    outline: none;
}

.dktic-settings-action-list {
    display: grid;
    gap: 10px;
}

.dktic-settings-action {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 62px;
    padding: 10px 12px;
    border: 1px solid #edf2fa;
    border-radius: 9px;
    background: #f8fbff;
}

.dktic-action-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #2b7cff;
    background: #edf5ff;
    font-size: 17px;
}

.dktic-action-icon.is-wechat {
    color: #07c160;
    background: #ecfdf3;
}

.dktic-settings-action strong,
.dktic-settings-action em {
    display: block;
}

.dktic-settings-action strong {
    color: #10284d;
    font-size: 15px;
    font-weight: 900;
}

.dktic-settings-action em {
    overflow: hidden;
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dktic-action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dktic-action-buttons form {
    margin: 0;
}

.dktic-settings-action > .dktic-action-button {
    justify-self: end;
}

.dktic-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 72px;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid #cfe0f5;
    border-radius: 8px;
    background: #fff;
    color: #2b7cff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.dktic-action-button:hover {
    background: #eef5ff;
    color: #145edb;
    border-color: #b9d3ff;
    text-decoration: none;
    box-shadow: none;
}

.dktic-action-button.is-light {
    color: #2b7cff;
    background: #fff;
    border: 1px solid #cfe0f5;
}

.dktic-action-button.is-light:hover {
    color: #145edb;
    background: #eef5ff;
}

.dktic-action-avatar {
    width: 34px;
    height: 34px;
    display: block;
    margin-top: 8px;
    border-radius: 50%;
    object-fit: cover;
}

.dktic-security-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.dktic-security-item {
    display: grid;
    gap: 7px;
    align-content: start;
    padding: 16px;
    background: #f8fbff;
    border: 1px solid #dce8f8;
    border-radius: 10px;
}

.dktic-security-item strong {
    color: #64748b;
    font-size: 13px;
}

.dktic-security-item span,
.dktic-security-item span a {
    color: #10284d;
    font-weight: 900;
    text-decoration: none;
}

.dktic-security-item span a:hover {
    color: #2b7cff;
}

.dktic-security-form {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.dktic-security-form input {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    color: #10284d;
    background: #fff;
    border: 1px solid #cfe0f5;
    border-radius: 8px;
    outline: none;
}

.dktic-security-form input:focus {
    border-color: #2b7cff;
    box-shadow: 0 0 0 3px rgba(43, 124, 255, .12);
}

.dktic-security-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 8px;
}

.dktic-security-form button,
.dktic-security-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: #2b7cff;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.dktic-security-form button:hover,
.dktic-security-link:hover {
    background: #1f6fff;
    color: #fff;
    text-decoration: none;
    box-shadow: none;
}

.dktic-security-form button.is-outline,
.dktic-security-link.is-outline,
.dktic-security-code-row button {
    color: #2b7cff;
    background: #fff;
    border: 1px solid #b9d3ff;
}

.dktic-security-form button.is-outline:hover,
.dktic-security-link.is-outline:hover,
.dktic-security-code-row button:hover {
    color: #145edb;
    background: #eef5ff;
}

.dktic-security-avatar {
    width: 44px;
    height: 44px;
    margin-top: 4px;
    border-radius: 50%;
    object-fit: cover;
}

.dktic-bind-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .55);
}

.dktic-bind-modal[hidden] {
    display: none;
}

.dktic-bind-dialog {
    position: relative;
    width: min(360px, 100%);
    padding: 30px 28px 26px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
    text-align: center;
}

.dktic-bind-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
    color: #334155;
    font-size: 17px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    box-shadow: none;
}

.dktic-bind-close:hover,
.dktic-bind-close:focus {
    background: #f1f5f9;
    color: #0f172a;
    box-shadow: none;
    outline: none;
}

.dktic-bind-dialog h3 {
    margin: 0 0 18px;
    color: #10284d;
    font-size: 22px;
}

.dktic-bind-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 206px;
    height: 206px;
    margin: 0 auto 16px;
    padding: 13px;
    border: 1px solid #dce8f8;
    border-radius: 8px;
    background: #fff;
}

.dktic-bind-qr.is-fallback {
    background: #f8fbff;
}

.dktic-bind-fallback {
    display: grid;
    gap: 9px;
    justify-items: center;
    color: #60708a;
    font-size: 13px;
}

.dktic-bind-fallback i {
    color: #07c160;
    font-size: 34px;
}

.dktic-bind-fallback a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 6px;
    background: #1167f1;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.dktic-bind-dialog p {
    margin: 0;
    color: #64748b;
}

.dktic-bind-tip {
    margin: 0;
    color: #2b7cff;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.dktic-settings-wechat {
    margin-top: 0;
}

.dktic-table-card {
    overflow-x: auto;
    border: 1px solid #dce8f8;
    border-radius: 12px;
}

.dktic-table-card table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.dktic-table-card th,
.dktic-table-card td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #edf2fa;
}

.dktic-table-card th {
    color: #60718a;
    background: #f8fbff;
    font-size: 13px;
    font-weight: 900;
}

.dktic-table-card td {
    color: #10284d;
}

.dktic-table-card tr:last-child td {
    border-bottom: 0;
}

.dktic-status {
    display: inline-flex;
    padding: 4px 9px;
    color: #1f6fff;
    background: #edf5ff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.dktic-auth-page {
    min-height: calc(100vh - 78px);
    padding: 56px 24px;
    background:
        linear-gradient(120deg, rgba(244, 248, 255, .96), rgba(235, 245, 255, .92)),
        url("../../img/pattern-light.jpg") center/cover no-repeat;
}

.dktic-auth-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 440px);
    gap: 34px;
    align-items: stretch;
}

.dktic-auth-visual,
.dktic-auth-card {
    background: rgba(255, 255, 255, .88);
    border: 1px solid #dce8f8;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(20, 55, 105, .1);
}

.dktic-auth-visual {
    position: relative;
    overflow: hidden;
    padding: 48px;
}

.dktic-auth-visual::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -80px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(43, 124, 255, .18), transparent 68%);
}

.dktic-auth-visual h1 {
    margin: 16px 0 14px;
    color: #071f48;
    font-size: 42px;
    line-height: 1.12;
}

.dktic-auth-visual p {
    max-width: 520px;
    margin: 0;
    color: #52637b;
    font-size: 17px;
    line-height: 1.8;
}

.dktic-auth-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.dktic-auth-points span {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 10px 13px;
    color: #1f6fff;
    background: #eef5ff;
    border-radius: 999px;
    font-weight: 900;
}

.dktic-auth-card {
    padding: 32px;
}

.dktic-auth-form,
.dktic-profile-form {
    display: grid;
    gap: 16px;
}

.dktic-auth-form label,
.dktic-profile-form label {
    display: grid;
    gap: 8px;
    color: #10284d;
    font-weight: 900;
}

.dktic-auth-form input,
.dktic-profile-form input,
.dktic-profile-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    color: #10284d;
    background: #f8fbff;
    border: 1px solid #cfe0f5;
    border-radius: 10px;
    outline: none;
}

.dktic-profile-form textarea {
    min-height: 92px;
    padding-top: 12px;
    line-height: 1.6;
    resize: vertical;
}

.dktic-auth-form input:focus,
.dktic-profile-form input:focus,
.dktic-profile-form textarea:focus {
    border-color: #2b7cff;
    box-shadow: 0 0 0 3px rgba(43, 124, 255, .12);
}

.dktic-avatar-field {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 16px;
    background: #f8fbff;
    border: 1px solid #dce8f8;
    border-radius: 12px;
}

.dktic-avatar-preview,
.dktic-avatar-preview img {
    width: 86px;
    height: 86px;
    border-radius: 50%;
}

.dktic-avatar-preview {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #eef5ff;
    border: 3px solid #fff;
    box-shadow: 0 10px 24px rgba(16, 40, 77, .12);
}

.dktic-avatar-preview img {
    object-fit: cover;
}

.dktic-avatar-field label span {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.dktic-avatar-field.is-avatar-invalid {
    border-color: #ffd2ca;
    background: #fff7f5;
}

.dktic-avatar-field.is-avatar-invalid label span {
    color: #b42318;
}

.dktic-avatar-field input[type="file"] {
    padding: 10px 12px;
    cursor: pointer;
}

.dktic-auth-form button,
.dktic-profile-form button {
    min-height: 48px;
    color: #fff;
    background: linear-gradient(180deg, #2f80ff, #1f6fff);
    border: 0;
    border-radius: 10px;
    font-weight: 900;
    cursor: pointer;
}

.dktic-auth-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.dktic-auth-row a,
.dktic-auth-switch a {
    color: #1f6fff;
    font-weight: 900;
    text-decoration: none;
}

.dktic-auth-check {
    display: inline-flex !important;
    grid-template-columns: auto 1fr;
    gap: 8px !important;
    align-items: center;
    font-weight: 700 !important;
}

.dktic-auth-check input {
    width: auto;
    min-height: auto;
}

.dktic-auth-switch {
    margin: 18px 0 0;
    color: #63728a;
    text-align: center;
}

.dktic-auth-message {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 800;
}

.dktic-auth-message.is-error {
    color: #b42318;
    background: #fff0ed;
    border: 1px solid #ffd2ca;
}

.dktic-auth-message.is-notice {
    color: #16734d;
    background: #eaf8f1;
    border: 1px solid #c7efd9;
}

.dktic-form-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.achievement-grid-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.achievement-item p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.achievement-item span {
    display: inline-flex;
    margin-top: 10px;
    color: #2b7cff;
    font-size: 12px;
    font-weight: 700;
}

.achievement-item.is-locked {
    filter: grayscale(.15);
    opacity: .72;
}

.achievement-item.is-locked i {
    background: #eef2f7;
    color: #8a99ad;
}

.achievement-item.is-earned {
    border-color: #9fc3ff;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

.dktic-profile-panel {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 20px;
    background: linear-gradient(135deg, #eef6ff 0%, #ffffff 100%);
    border: 1px solid #d8e6f7;
    border-radius: 12px;
}

.dktic-profile-panel img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
}

.dktic-profile-panel div {
    display: grid;
    gap: 6px;
}

.dktic-profile-panel strong {
    color: #071d40;
    font-size: 22px;
    font-weight: 900;
}

.dktic-profile-panel span,
.dktic-profile-panel em {
    color: #60718a;
    font-style: normal;
}

.dktic-achievement-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(7, 29, 64, .48);
}

.dktic-achievement-dialog {
    position: relative;
    width: min(420px, 100%);
    padding: 34px 28px 28px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 28px 80px rgba(7, 29, 64, .24);
}

.dktic-achievement-dialog > i {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    color: #fff;
    font-size: 32px;
    background: linear-gradient(135deg, #2b7cff, #21b46f);
    border-radius: 50%;
}

.dktic-achievement-dialog span {
    display: block;
    margin-top: 16px;
    color: #2b7cff;
    font-size: 13px;
    font-weight: 800;
}

.dktic-achievement-dialog h2 {
    margin: 8px 0;
    color: #071d40;
    font-size: 26px;
}

.dktic-achievement-dialog p {
    color: #65758d;
    line-height: 1.7;
}

.dktic-achievement-dialog a {
    display: inline-flex;
    justify-content: center;
    min-width: 160px;
    margin-top: 12px;
    padding: 12px 18px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    background: #2b7cff;
    border-radius: 8px;
}

.dktic-achievement-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #53657d;
    font-size: 16px;
    line-height: 1;
    background: #f2f6fb;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.dktic-achievement-close:hover,
.dktic-achievement-close:focus {
    color: #10284d;
    background: #e8f0fb;
    box-shadow: none;
    outline: none;
}

@media (max-width: 1180px) {
    .achievement-grid-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .edu-student-dashboard .dktic-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .edu-student-dashboard .dktic-student-sidebar {
        position: static;
        height: auto;
    }
}

@media (max-width: 640px) {
    .achievement-grid-wide {
        grid-template-columns: 1fr;
    }

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

    .dktic-security-grid {
        grid-template-columns: 1fr;
    }

    .dktic-security-code-row {
        grid-template-columns: 1fr;
    }

    .dktic-settings-card {
        padding: 14px;
    }

    .dktic-settings-card-head {
        align-items: flex-start;
    }

    .dktic-settings-action {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .dktic-settings-action > .dktic-action-button,
    .dktic-settings-action > .dktic-action-buttons,
    .dktic-action-avatar {
        grid-column: 2;
    }

    .dktic-action-buttons {
        justify-content: flex-start;
    }

    .dktic-profile-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .dktic-avatar-field {
        grid-template-columns: 1fr;
    }

    .dktic-auth-shell,
    .dktic-form-split {
        grid-template-columns: 1fr;
    }

    .dktic-auth-visual,
    .dktic-auth-card {
        padding: 24px;
    }

    .dktic-auth-visual h1 {
        font-size: 32px;
    }
}

/* Learning center visual refinement */
.edu-student-dashboard .dashboard-card {
    border-color: #e5ecf7;
    border-radius: 12px;
    box-shadow: 0 16px 38px rgba(18, 45, 88, .06);
}

.edu-section-overview .dktic-overview-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    align-items: start;
    gap: 22px;
}

.edu-section-overview .dktic-overview-primary,
.edu-section-overview .dktic-overview-side {
    min-width: 0;
}

.edu-section-overview .dktic-overview-primary .my-courses-card {
    min-height: 100%;
}

.edu-section-overview .dktic-overview-side {
    display: grid;
    gap: 18px;
    align-content: start;
}

.edu-section-overview .dktic-overview-side .dashboard-card {
    padding: 20px;
    box-shadow: 0 12px 28px rgba(18, 45, 88, .05);
}

.edu-section-overview .dktic-overview-side .section-head,
.edu-section-overview .dktic-overview-side .dashboard-card > h2 {
    margin-bottom: 16px;
}

.edu-section-overview .dktic-overview-side .plan-card .plan-progress {
    margin: 14px 0 10px;
    font-size: 13px;
}

.edu-section-overview .dktic-overview-side .plan-card .task-list {
    margin-top: 14px;
    gap: 8px;
}

.edu-section-overview .dktic-overview-side .plan-card .task-list li {
    gap: 10px;
    padding: 10px 0;
}

.edu-section-overview .dktic-overview-side .plan-card .task-list li > span {
    grid-template-columns: 38px minmax(0, 1fr);
}

.edu-section-overview .dktic-overview-side .plan-card .task-list li > span em {
    padding: 4px 7px;
}

.edu-section-overview .dktic-overview-side .plan-card .task-list a {
    min-width: 64px;
    padding: 7px 8px;
}

.edu-section-overview .dktic-overview-side .achievement-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: left;
}

.edu-section-overview .dktic-overview-side .achievement-item {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    min-height: 0;
    padding: 13px 14px;
    gap: 4px 12px;
}

.edu-section-overview .dktic-overview-side .achievement-item::before {
    background: radial-gradient(circle at 0% 0%, rgba(43, 124, 255, .14), transparent 50%);
}

.edu-section-overview .dktic-overview-side .achievement-item i {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 17px;
}

.edu-section-overview .dktic-overview-side .achievement-item strong {
    font-size: 14px;
}

.edu-section-overview .dktic-overview-side .achievement-item span {
    color: #6a7890;
    font-size: 12px;
}

.edu-section-overview .dktic-overview-side .achievement-card > p {
    display: none;
}

.edu-student-dashboard:not(.edu-section-overview) .dashboard-card {
    border-color: #dce6f3;
    box-shadow: none;
}

.edu-student-dashboard:not(.edu-section-overview) .dktic-dashboard-main {
    padding-top: 24px;
}

.edu-student-dashboard:not(.edu-section-overview) .dashboard-card .section-head {
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid #eef3fa;
}

.edu-student-dashboard .section-head {
    margin-bottom: 20px;
}

.edu-student-dashboard .section-head h2,
.edu-student-dashboard .dashboard-card h2 {
    position: relative;
    font-size: 19px;
}

.edu-student-dashboard .section-head h2::after,
.edu-student-dashboard .dashboard-card > h2::after {
    content: "";
    display: block;
    width: 30px;
    height: 3px;
    margin-top: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2b7cff, #6ea8ff);
}

.edu-student-dashboard:not(.edu-section-overview) .dashboard-card > h2 {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef3fa;
}

.edu-student-dashboard:not(.edu-section-overview) .dashboard-card > h2::after {
    margin-top: 8px;
}

.edu-student-dashboard:not(.edu-section-overview) .my-courses-card,
.edu-student-dashboard:not(.edu-section-overview) .plan-card,
.edu-student-dashboard:not(.edu-section-overview) .live-card,
.edu-student-dashboard:not(.edu-section-overview) .materials-card {
    min-height: calc(100vh - 132px);
}

.edu-student-dashboard:not(.edu-section-overview) .my-courses-card .course-row,
.edu-student-dashboard:not(.edu-section-overview) .plan-card .task-list li,
.edu-student-dashboard:not(.edu-section-overview) .live-card .live-row {
    background: #fbfdff;
    border: 1px solid #edf2fa;
    border-radius: 12px;
    padding: 16px;
}

.edu-student-dashboard:not(.edu-section-overview) .my-courses-card .course-list,
.edu-student-dashboard:not(.edu-section-overview) .plan-card .task-list,
.edu-student-dashboard:not(.edu-section-overview) .live-card {
    gap: 12px;
}

.edu-student-dashboard:not(.edu-section-overview) .my-courses-card .course-row:last-child,
.edu-student-dashboard:not(.edu-section-overview) .live-card .live-row:last-child {
    border-bottom: 1px solid #edf2fa;
}

.edu-student-dashboard:not(.edu-section-overview) .materials-card .materials-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plan-card {
    overflow: hidden;
}

.plan-card .plan-progress {
    align-items: center;
    margin-top: 18px;
}

.plan-card .plan-bar {
    height: 7px;
    background: #edf2fa;
}

.plan-card .task-list {
    gap: 10px;
}

.plan-card .task-list li {
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #eef3fa;
}

.plan-card .task-list li:first-child {
    border-top: 0;
}

.plan-card .task-list li > span {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 4px 10px;
    min-width: 0;
}

.plan-card .task-list li > span em {
    grid-row: span 2;
    align-self: center;
    justify-self: start;
    padding: 5px 8px;
    color: #2b7cff;
    background: #eef5ff;
    border-radius: 999px;
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
}

.plan-card .task-list li > span strong {
    overflow: hidden;
    color: #10284d;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.plan-card .task-list li > span small {
    overflow: hidden;
    color: #6a7890;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.plan-card .task-list a {
    flex: 0 0 auto;
    min-width: 78px;
    padding: 7px 10px;
    color: #2b7cff;
    text-align: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid #9fc3ff;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 900;
}

.live-card .live-row {
    grid-template-columns: 116px minmax(0, 1fr) 72px 64px;
    padding: 16px 0;
}

.live-date {
    display: grid;
    gap: 5px;
    align-content: center;
    min-height: 62px;
    padding: 10px 12px;
    color: #2b7cff;
    background: linear-gradient(180deg, #eef5ff 0%, #e5efff 100%);
    border-radius: 12px;
}

.live-date strong {
    color: #10284d;
    font-size: 15px;
    font-weight: 900;
}

.live-date em {
    color: #5f75a0;
    font-size: 12px;
    font-style: normal;
}

.live-card .live-row h3 {
    color: #10284d;
    font-size: 16px;
    font-weight: 900;
}

.live-info p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
}

.live-info p i {
    color: #2b7cff;
}

.live-info p span {
    color: #718096;
}

.live-status {
    justify-self: start;
    padding: 5px 10px;
    color: #18a66f;
    background: #e9f8f1;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.live-card .live-row a {
    min-height: 34px;
    background: #f8fbff;
}

.achievement-card {
    overflow: hidden;
}

.achievement-card > p {
    margin: 18px 0 0;
    padding-top: 16px;
    color: #52637b;
    border-top: 1px solid #edf2fa;
    line-height: 1.7;
}

.achievement-card .achievement-grid .dktic-empty {
    grid-column: 1 / -1;
    text-align: left;
}

.achievement-grid {
    gap: 14px;
}

.achievement-item {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    min-height: 132px;
    padding: 18px 12px;
    overflow: hidden;
    background: #f8fbff;
    border: 1px solid #e1eaf7;
    border-radius: 12px;
}

.achievement-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% -20%, rgba(43, 124, 255, .16), transparent 48%);
    pointer-events: none;
}

.achievement-item i {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 23px;
    background: linear-gradient(145deg, #2b7cff, #7ab2ff);
    border-radius: 18px;
    box-shadow: 0 12px 22px rgba(43, 124, 255, .22);
}

.achievement-item strong,
.achievement-item span,
.achievement-item p {
    position: relative;
    z-index: 1;
}

.achievement-item strong {
    color: #10284d;
    font-weight: 900;
}

.achievement-tone-green i {
    background: linear-gradient(145deg, #20b978, #77dca9);
    box-shadow: 0 12px 22px rgba(32, 185, 120, .2);
}

.achievement-tone-gold i {
    background: linear-gradient(145deg, #f2b233, #ffd66f);
    box-shadow: 0 12px 22px rgba(242, 178, 51, .22);
}

.achievement-tone-teal i {
    background: linear-gradient(145deg, #17a8b8, #74d8e3);
    box-shadow: 0 12px 22px rgba(23, 168, 184, .2);
}

.achievement-tone-purple i {
    background: linear-gradient(145deg, #7a5cff, #b39dff);
    box-shadow: 0 12px 22px rgba(122, 92, 255, .2);
}

.achievement-tone-orange i {
    background: linear-gradient(145deg, #ff8a1f, #ffbf6a);
    box-shadow: 0 12px 22px rgba(255, 138, 31, .2);
}

.achievement-tone-red i {
    background: linear-gradient(145deg, #ff5d5d, #ff9a7b);
    box-shadow: 0 12px 22px rgba(255, 93, 93, .2);
}

.achievement-item.is-locked {
    filter: none;
    opacity: 1;
}

.achievement-item.is-locked i {
    color: #7f8da3;
    background: #eef2f7;
    box-shadow: none;
}

.achievement-item.is-locked strong,
.achievement-item.is-locked p {
    color: #76859a;
}

.achievement-item.is-earned {
    border-color: #b9d1ff;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.achievement-grid-wide {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.materials-card .materials-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.material-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px 14px;
    align-items: center;
    min-height: 88px;
    padding: 16px;
    color: #10284d;
    text-decoration: none;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
    border: 1px solid #e0e9f7;
    border-radius: 10px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.material-card:hover {
    border-color: #9fc3ff;
    box-shadow: 0 14px 28px rgba(43, 124, 255, .12);
    transform: translateY(-1px);
}

.material-card i {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #2b7cff;
    border-radius: 10px;
}

.material-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 900;
}

.material-card span {
    overflow: hidden;
    color: #63728a;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

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

.certificate-card {
    position: relative;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 90px;
    gap: 18px;
    align-items: center;
    min-height: 132px;
    padding: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
    border: 1px solid #dce8f8;
    border-radius: 14px;
}

.certificate-card::after {
    content: "";
    position: absolute;
    right: -36px;
    top: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(242, 178, 51, .18), transparent 68%);
}

.certificate-seal {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 28px;
    background: linear-gradient(145deg, #f2b233, #ffd66f);
    border-radius: 18px;
    box-shadow: 0 14px 24px rgba(242, 178, 51, .22);
}

.certificate-avatar {
    position: relative;
    width: 66px;
    height: 66px;
}

.certificate-avatar img {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 14px 24px rgba(20, 55, 105, .14);
}

.certificate-avatar span {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #f2b233, #ffd66f);
    border: 2px solid #fff;
    border-radius: 9px;
    box-shadow: 0 8px 18px rgba(242, 178, 51, .25);
}

.certificate-card strong {
    display: block;
    color: #10284d;
    font-size: 17px;
    font-weight: 900;
}

.certificate-card span,
.certificate-card small {
    display: block;
    margin-top: 6px;
    color: #63728a;
}

.certificate-card a {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 36px;
    color: #2b7cff;
    text-decoration: none;
    background: #fff;
    border: 1px solid #9fc3ff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
}

.certificate-actions {
    display: grid;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.certificate-card .certificate-actions .is-primary {
    color: #fff;
    border-color: #d99a1d;
    background: linear-gradient(135deg, #f0a92f, #d88a10);
}

.dktic-category-stack {
    display: grid;
    gap: 18px;
}

.dktic-category-block {
    padding: 18px;
    background: #f8fbff;
    border: 1px solid #dce8f8;
    border-radius: 12px;
}

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

.dktic-category-head span {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.dktic-category-head h3 {
    margin: 0;
    color: #10284d;
    font-size: 18px;
    font-weight: 900;
}

.dktic-category-head em {
    flex: 0 0 auto;
    padding: 6px 10px;
    color: #1f6fff;
    background: #edf5ff;
    border-radius: 999px;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.course-list.is-categorized .course-row {
    padding: 16px;
    background: #fff;
    border: 1px solid #edf2fa;
    border-radius: 10px;
}

.course-list.is-categorized .course-row:last-child {
    border-bottom: 1px solid #edf2fa;
}

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

.exam-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 150px 74px;
    gap: 14px;
    align-items: center;
    min-height: 74px;
    padding: 14px 16px;
    color: #10284d;
    text-decoration: none;
    background: #fff;
    border: 1px solid #edf2fa;
    border-radius: 10px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.exam-row:hover {
    border-color: #9fc3ff;
    box-shadow: 0 14px 28px rgba(43, 124, 255, .1);
    transform: translateY(-1px);
    text-decoration: none;
}

.exam-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #2b7cff, #17a8b8);
    border-radius: 12px;
}

.exam-info {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.exam-info strong,
.exam-info small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.exam-info strong {
    font-size: 16px;
    font-weight: 900;
}

.exam-info small {
    color: #64748b;
}

.exam-progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
    align-items: center;
}

.exam-progress i {
    height: 7px;
    overflow: hidden;
    background: #e8edf5;
    border-radius: 999px;
}

.exam-progress b {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #20b978, #7bdca9);
    border-radius: inherit;
}

.exam-progress em {
    color: #64748b;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.exam-status {
    justify-self: end;
    padding: 6px 10px;
    color: #8a5a00;
    background: #fff4d8;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.exam-status.is-ready {
    color: #0f8f5c;
    background: #e8f8f0;
}

.exam-status.is-passed {
    color: #0a6845;
    background: #dff8ec;
}

.exam-status.is-failed {
    color: #b42318;
    background: #fff1f0;
}

.exam-status.is-reviewing {
    color: #7c4d00;
    background: #fff2cc;
}

.exam-status.is-config,
.exam-status.is-locked {
    color: #64748b;
    background: #eef3f9;
}

.exam-row.is-passed {
    border-color: #b9ebd2;
    background: linear-gradient(180deg, #ffffff, #f4fff9);
}

.exam-row.is-failed {
    border-color: #ffd2cf;
}

.exam-row.is-config,
.exam-row.is-locked {
    color: #63728a;
}

.achievement-levels {
    display: grid;
    gap: 20px;
}

.achievement-earned-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #f8fbff;
    border: 1px solid #dce8f8;
    border-radius: 10px;
}

.achievement-earned-tools p {
    margin: 0;
    color: #52637b;
    line-height: 1.7;
}

.achievement-earned-tools a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    color: #fff;
    text-decoration: none;
    background: #2b7cff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
}

.achievement-level {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 14px;
    border: 1px solid #dce8f8;
}

.achievement-level::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.achievement-level-beginner {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.achievement-level-beginner::before {
    background: radial-gradient(circle at 92% 0, rgba(43, 124, 255, .14), transparent 38%);
}

.achievement-level-intermediate {
    background: linear-gradient(135deg, #fffdf7 0%, #f4fbff 100%);
}

.achievement-level-intermediate::before {
    background:
        radial-gradient(circle at 5% 0, rgba(32, 185, 120, .14), transparent 32%),
        radial-gradient(circle at 100% 20%, rgba(242, 178, 51, .14), transparent 36%);
}

.achievement-level-advanced {
    color: #f8fbff;
    background:
        linear-gradient(135deg, #10284d 0%, #1b365d 48%, #442b72 100%);
    border-color: rgba(255, 255, 255, .18);
    box-shadow: 0 22px 50px rgba(16, 40, 77, .18);
}

.achievement-level-advanced::before {
    background:
        radial-gradient(circle at 15% 12%, rgba(255, 214, 111, .22), transparent 28%),
        radial-gradient(circle at 86% 8%, rgba(122, 92, 255, .28), transparent 34%);
}

.achievement-level-head {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.achievement-level-head span {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.achievement-level-head h3 {
    margin: 0;
    color: #10284d;
    font-size: 22px;
    font-weight: 900;
}

.achievement-level-head em {
    align-self: flex-start;
    padding: 7px 11px;
    color: #1f6fff;
    background: #edf5ff;
    border-radius: 999px;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.achievement-level-advanced .achievement-level-head h3,
.achievement-level-advanced .achievement-level-head span,
.achievement-level-advanced .achievement-level-head em {
    color: #fff;
}

.achievement-level-advanced .achievement-level-head em {
    background: rgba(255, 255, 255, .14);
}

.achievement-level-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.achievement-level-beginner .achievement-level-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.achievement-level-intermediate .achievement-item {
    min-height: 150px;
}

.achievement-level-advanced .achievement-item {
    min-height: 166px;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.achievement-level-advanced .achievement-item strong,
.achievement-level-advanced .achievement-item p,
.achievement-level-advanced .achievement-item span {
    color: #fff;
}

.achievement-level-advanced .achievement-item.is-locked {
    opacity: .76;
}

@media (max-width: 1380px) {
    .achievement-grid-wide {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .achievement-level-grid,
    .achievement-level-beginner .achievement-level-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .materials-card .materials-grid,
    .achievement-grid-wide,
    .certificate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .exam-row {
        grid-template-columns: 46px minmax(0, 1fr) 90px;
    }

    .exam-status {
        grid-column: 2 / -1;
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .materials-card .materials-grid,
    .achievement-grid-wide,
    .certificate-grid,
    .achievement-level-grid,
    .achievement-level-beginner .achievement-level-grid {
        grid-template-columns: 1fr;
    }

    .live-card .live-row {
        grid-template-columns: 1fr;
    }

    .certificate-card {
        grid-template-columns: 1fr;
    }

    .dktic-category-head,
    .achievement-level-head,
    .achievement-earned-tools {
        display: grid;
    }

    .exam-row {
        grid-template-columns: 1fr;
    }

    .exam-icon,
    .exam-status {
        justify-self: start;
    }

    .exam-status {
        grid-column: auto;
    }

    .exam-info strong,
    .exam-info small {
        white-space: normal;
    }
}

@media (max-width: 720px) {
    html {
        scroll-padding-top: 124px;
    }

    .edu-student-dashboard {
        min-height: 100dvh;
        background: #f5f7fb;
    }

    .edu-student-dashboard .dktic-dashboard-layout {
        display: block;
        min-height: auto;
    }

    .edu-student-dashboard .dktic-student-sidebar {
        position: sticky;
        top: 68px;
        z-index: 30;
        height: auto;
        padding: 10px 12px;
        overflow: hidden;
        background: rgba(245, 247, 251, .96);
        border-right: 0;
        border-bottom: 1px solid #dfe8f5;
        box-shadow: 0 8px 20px rgba(12, 31, 62, .06);
        backdrop-filter: blur(12px);
    }

    .admin-bar .edu-student-dashboard .dktic-student-sidebar {
        top: 114px;
    }

    .edu-student-dashboard .dktic-sidebar-menu {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        padding: 0 2px 2px;
    }

    .edu-student-dashboard .dktic-sidebar-menu::-webkit-scrollbar {
        display: none;
    }

    .edu-student-dashboard .dktic-sidebar-link {
        display: inline-flex;
        flex: 0 0 auto;
        grid-template-columns: none;
        min-height: 38px;
        padding: 0 13px;
        gap: 7px;
        align-items: center;
        justify-content: center;
        color: #42536c;
        background: #fff;
        border: 1px solid #dfe8f5;
        border-radius: 999px;
        box-shadow: 0 4px 12px rgba(12, 31, 62, .04);
        font-size: 13px;
        scroll-snap-align: start;
        white-space: nowrap;
    }

    .edu-student-dashboard .dktic-sidebar-link:hover,
    .edu-student-dashboard .dktic-sidebar-link.is-active {
        color: #fff;
        background: #1f6fff;
        border-color: #1f6fff;
        box-shadow: 0 8px 18px rgba(31, 111, 255, .22);
        transform: none;
    }

    .edu-student-dashboard .dktic-sidebar-icon {
        font-size: 13px;
    }

    .edu-student-dashboard .dktic-sidebar-arrow,
    .edu-student-dashboard .dktic-advisor-card {
        display: none;
    }

    .edu-student-dashboard .dktic-dashboard-main,
    .edu-student-dashboard:not(.edu-section-overview) .dktic-dashboard-main {
        padding: 14px 12px 28px;
    }

    .dktic-dashboard-grid,
    .dktic-grid-main,
    .dktic-grid-three {
        gap: 12px;
        margin-bottom: 12px;
    }

    .edu-student-dashboard .dashboard-card,
    .dktic-settings-card,
    .dktic-category-block,
    .dktic-table-card,
    .dktic-list-panel a {
        border: 1px solid #e1e9f5;
        border-radius: 16px;
        box-shadow: 0 8px 22px rgba(12, 31, 62, .05);
    }

    .edu-student-dashboard .dashboard-card,
    .dktic-settings-card {
        padding: 16px;
    }

    .dktic-section-page {
        padding: 0;
    }

    .dktic-section-page > .dashboard-card,
    .dktic-section-page > .materials-card {
        padding: 16px;
        background: #fff;
    }

    .edu-student-dashboard:not(.edu-section-overview) .dashboard-card,
    .edu-student-dashboard:not(.edu-section-overview) .my-courses-card,
    .edu-student-dashboard:not(.edu-section-overview) .plan-card,
    .edu-student-dashboard:not(.edu-section-overview) .live-card,
    .edu-student-dashboard:not(.edu-section-overview) .materials-card {
        min-height: 0;
    }

    .edu-student-dashboard .section-head,
    .edu-student-dashboard:not(.edu-section-overview) .dashboard-card .section-head {
        align-items: flex-start;
        margin-bottom: 14px;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .edu-student-dashboard .section-head h2,
    .edu-student-dashboard .dashboard-card h2 {
        font-size: 18px;
        line-height: 1.3;
    }

    .edu-student-dashboard .section-head h2::after,
    .edu-student-dashboard .dashboard-card > h2::after {
        width: 24px;
        height: 3px;
        margin-top: 6px;
    }

    .dktic-welcome-panel {
        margin: 0 0 12px;
        padding: 20px 16px 16px;
        color: #fff;
        background: linear-gradient(145deg, #155bd8 0%, #2387ff 52%, #25b7a1 100%);
        border: 0;
        border-radius: 18px;
        box-shadow: 0 14px 30px rgba(21, 91, 216, .18);
    }

    .dktic-welcome-panel::after {
        display: none;
    }

    .welcome-head h1 {
        font-size: 22px;
        line-height: 1.25;
    }

    .welcome-head p,
    .welcome-head p strong {
        color: rgba(255, 255, 255, .9);
    }

    .membership-badge {
        color: #0b4dc3;
        background: rgba(255, 255, 255, .92);
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        margin-top: 16px;
        padding: 6px;
        background: rgba(255, 255, 255, .94);
    }

    .stat-card {
        min-height: 90px;
        padding: 12px;
        border-radius: 0;
        box-shadow: none;
    }

    .stat-card p {
        font-size: 12px;
    }

    .stat-card div strong {
        font-size: 25px;
    }

    .stat-card small {
        display: none;
    }

    .dktic-category-stack,
    .course-list,
    .dktic-list-panel,
    .materials-card .materials-grid,
    .achievement-grid-wide,
    .certificate-grid {
        gap: 12px;
    }

    .dktic-category-block {
        padding: 14px;
        background: #fff;
    }

    .dktic-category-head {
        display: flex;
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .dktic-category-head h3 {
        font-size: 16px;
        line-height: 1.35;
    }

    .course-row,
    .course-list.is-categorized .course-row,
    .edu-student-dashboard:not(.edu-section-overview) .my-courses-card .course-row {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        padding: 12px;
        background: #fff;
        border: 1px solid #edf2fa;
        border-radius: 14px;
    }

    .course-thumb {
        width: 88px;
        height: 66px;
        border-radius: 12px;
        font-size: 18px;
    }

    .course-title-line {
        align-items: flex-start;
        gap: 7px;
    }

    .course-title-line h3 {
        display: -webkit-box;
        overflow: hidden;
        font-size: 15px;
        line-height: 1.35;
        white-space: normal;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .course-title-line span {
        padding: 3px 7px;
        font-size: 11px;
    }

    .course-info p,
    .course-info small {
        margin: 5px 0;
        font-size: 12px;
    }

    .progress-wrap {
        grid-template-columns: 1fr 36px;
        gap: 8px;
    }

    .course-action {
        grid-column: 1 / -1;
        min-height: 42px;
        border-radius: 12px;
    }

    .material-item,
    .certificate-card,
    .exam-row,
    .live-card .live-row,
    .plan-card .task-list li {
        border-radius: 14px;
    }

    .exam-row {
        padding: 14px;
    }

    .dktic-account-grid,
    .dktic-security-grid,
    .dktic-form-split {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dktic-settings-card-head {
        align-items: center;
        gap: 10px;
    }

    .dktic-profile-compact .dktic-settings-card-head button {
        min-width: 74px;
        padding: 0 14px;
    }

    .dktic-settings-action {
        grid-template-columns: 38px minmax(0, 1fr);
        border-radius: 14px;
        background: #fff;
    }

    .dktic-settings-action > .dktic-action-button,
    .dktic-settings-action > .dktic-action-buttons,
    .dktic-action-avatar {
        grid-column: 1 / -1;
        margin-left: 50px;
    }

    .dktic-action-buttons {
        flex-wrap: wrap;
    }

    .dktic-action-button,
    .dktic-security-form button,
    .dktic-security-link {
        min-height: 40px;
        border-radius: 11px;
    }

    .dktic-security-code-row {
        grid-template-columns: 1fr;
    }

    .dktic-table-card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dktic-table-card table {
        min-width: 640px;
    }

    .dktic-bind-dialog,
    .dktic-achievement-dialog {
        width: calc(100vw - 28px);
        border-radius: 18px;
    }
}

/* Final mobile overrides for the learning center overview. Keep this at the end. */
@media (max-width: 720px) {
    html,
    body {
        overflow-x: hidden;
    }

    .edu-student-dashboard *,
    .edu-student-dashboard *::before,
    .edu-student-dashboard *::after {
        box-sizing: border-box;
    }

    .edu-student-dashboard,
    .edu-student-dashboard .dktic-dashboard-layout,
    .edu-student-dashboard .dktic-dashboard-main,
    .edu-section-overview .dktic-overview-grid,
    .edu-section-overview .dktic-overview-primary,
    .edu-section-overview .dktic-overview-side,
    .edu-student-dashboard .dashboard-card,
    .dktic-category-block {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .edu-section-overview .dktic-overview-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    .edu-section-overview .dktic-overview-side {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    .dktic-welcome-panel .membership-badge,
    .membership-badge {
        display: none !important;
    }

    .edu-student-dashboard .dktic-dashboard-main,
    .edu-student-dashboard:not(.edu-section-overview) .dktic-dashboard-main {
        padding: 12px 10px 72px !important;
    }

    .edu-student-dashboard .dashboard-card,
    .edu-section-overview .dktic-overview-side .dashboard-card,
    .dktic-category-block {
        padding: 14px !important;
        border-radius: 10px !important;
        box-shadow: none !important;
    }

    .dktic-welcome-panel {
        padding: 16px 14px !important;
        border-radius: 12px !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        margin-top: 12px !important;
        padding: 0 !important;
        overflow: hidden !important;
        border-radius: 10px !important;
    }

    .stat-card {
        min-height: 74px !important;
        padding: 10px !important;
        grid-template-columns: 32px minmax(0, 1fr) !important;
        gap: 3px 8px !important;
    }

    .stat-icon {
        width: 30px !important;
        height: 30px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
    }

    .stat-card div strong,
    .stat-card strong {
        font-size: 21px !important;
    }

    .course-list,
    .course-list.is-categorized,
    .dktic-category-stack,
    .materials-card .materials-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    .course-row,
    .course-list.is-categorized .course-row,
    .edu-student-dashboard:not(.edu-section-overview) .my-courses-card .course-row {
        grid-template-columns: 74px minmax(0, 1fr) !important;
        gap: 10px !important;
        padding: 10px !important;
        border-radius: 10px !important;
    }

    .course-thumb {
        width: 74px !important;
        height: 54px !important;
        border-radius: 8px !important;
    }

    .course-title-line {
        display: block !important;
    }

    .course-title-line h3 {
        margin-bottom: 4px !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }

    .course-action {
        grid-column: 2 !important;
        justify-self: start !important;
        min-width: 84px !important;
        min-height: 32px !important;
        height: 32px !important;
        padding: 0 12px !important;
        border-radius: 8px !important;
        font-size: 12px !important;
    }

    .plan-card .task-list li,
    .edu-section-overview .dktic-overview-side .plan-card .task-list li {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 8px !important;
        padding: 10px 0 !important;
    }

    .plan-card .task-list li > span,
    .edu-section-overview .dktic-overview-side .plan-card .task-list li > span {
        min-width: 0 !important;
        grid-template-columns: 38px minmax(0, 1fr) !important;
    }

    .plan-card .task-list li > span strong {
        white-space: normal !important;
        line-height: 1.35 !important;
    }
}
