.course-page,
.course-admin,
.course-learn,
.course-landing {
    --course-ink: #172033;
    --course-muted: #667085;
    --course-line: #e4e7ec;
    --course-bg: #f7f8fb;
    --course-soft: #f2f5f9;
    --course-primary: #0f766e;
    --course-primary-dark: #115e59;
    --course-danger: #b42318;
    color: var(--course-ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.course-landing {
    background: var(--course-bg);
    min-height: 100vh;
}

.course-landing-hero {
    background: #1c1d1f;
    color: #fff;
}

.course-landing-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 16px 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.course-landing-copy {
    padding: 18px 0 10px;
}

.course-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
    color: #d1d7dc;
    font-size: 14px;
}

.course-breadcrumb a {
    color: #cec0fc;
    text-decoration: none;
    font-weight: 800;
}

.course-landing-copy h1 {
    font-size: 38px;
    line-height: 1.12;
    margin: 0 0 14px;
    max-width: 820px;
    font-weight: 850;
}

.course-landing-copy p {
    max-width: 760px;
    color: #f7f9fa;
    font-size: 17px;
    line-height: 1.65;
}

.course-rating-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
    color: #f7f9fa;
}

.course-bestseller {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    background: #eceb98;
    color: #3d3c0a;
    font-weight: 800;
    font-size: 12px;
}

.course-rating {
    color: #fbbf24;
    font-weight: 900;
}

.course-stars {
    color: #fbbf24;
    font-size: 13px;
}

.course-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    color: #d1d7dc;
    font-size: 14px;
}

.course-purchase-card {
    position: fixed;
    top: 88px;
    right: max(16px, calc((100vw - 1180px) / 2 + 16px));
    width: 360px;
    max-height: calc(100vh - 108px);
    overflow: auto;
    z-index: 2;
    background: #fff;
    color: var(--course-ink);
    border: 1px solid #d1d7dc;
    border-radius: 0;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.course-preview {
    aspect-ratio: 16 / 9;
    background: #111827;
}

.course-preview iframe,
.course-preview video,
.course-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border: 0;
}

.course-price-box {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 18px 20px 4px;
}

.course-price-main {
    font-size: 31px;
    font-weight: 900;
    color: #1c1d1f;
}

.course-price-old {
    color: var(--course-muted);
    text-decoration: line-through;
}

.course-price-discount {
    color: #1c1d1f;
    font-weight: 700;
    font-size: 14px;
}

.course-sale-note {
    padding: 0 20px 10px;
    color: #b4690e;
    font-size: 13px;
    font-weight: 800;
}

.course-buy-form {
    padding: 8px 20px 10px;
    display: grid;
    gap: 8px;
}

.course-buy-btn {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
}

.course-landing .course-btn-primary {
    background: #a435f0;
    border-color: #a435f0;
    color: #fff;
}

.course-landing .course-btn-primary:hover {
    background: #8710d8;
    border-color: #8710d8;
}

.course-btn-outline {
    background: #fff;
    color: #1c1d1f;
    border: 1px solid #1c1d1f;
}

.course-guarantee {
    padding: 0 20px 12px;
    color: #6a6f73;
    font-size: 12px;
    text-align: center;
}

.course-payment-box {
    margin: 0 20px 14px;
    padding: 12px;
    border: 1px solid #fedf89;
    background: #fffbeb;
    border-radius: 8px;
    font-size: 14px;
}

.course-payment-box p {
    margin: 6px 0 0;
}

.course-includes {
    list-style: none;
    margin: 0;
    padding: 0 20px 20px;
    display: grid;
    gap: 9px;
    color: var(--course-muted);
}

.course-includes-title {
    color: #1c1d1f;
    font-weight: 850;
    margin-bottom: 2px;
}

.course-includes li {
    display: flex;
    gap: 9px;
    align-items: center;
}

.course-includes i {
    color: var(--course-primary);
}

.course-landing-body {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 16px 60px;
}

.course-main-column {
    width: calc(100% - 388px);
    max-width: 760px;
}

.course-info-panel {
    background: #fff;
    border: 1px solid var(--course-line);
    border-radius: 0;
    padding: 24px;
    margin-bottom: 18px;
}

.course-info-panel h2 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 850;
}

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

.course-outcomes div {
    display: flex;
    gap: 10px;
    line-height: 1.5;
}

.course-outcomes i {
    color: #1c1d1f;
    font-size: 18px;
    flex: 0 0 auto;
}

.course-requirements {
    margin: 0;
    padding-left: 20px;
    color: var(--course-muted);
}

.course-description-copy {
    color: #1c1d1f;
    line-height: 1.7;
}

.course-instructor-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.course-instructor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1c1d1f;
    color: #fff;
    font-weight: 900;
}

.course-instructor-box p {
    margin: 6px 0 0;
    color: var(--course-muted);
}

.course-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 16px 56px;
}

.course-hero,
.course-detail-hero {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 24px;
    padding: 26px;
    border: 1px solid var(--course-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(18, 33, 61, 0.06);
    margin-bottom: 22px;
}

.course-hero.compact {
    align-items: center;
}

.course-eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--course-primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.course-hero h1,
.course-detail-hero h1 {
    font-size: 34px;
    line-height: 1.15;
    margin: 0 0 10px;
    font-weight: 800;
}

.course-hero p,
.course-detail-hero p {
    margin: 0;
    color: var(--course-muted);
    max-width: 720px;
}

.course-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    background: #fff;
    color: var(--course-ink);
}

.course-btn-primary {
    background: var(--course-primary);
    color: #fff;
    border-color: var(--course-primary);
}

.course-btn-primary:hover {
    background: var(--course-primary-dark);
    color: #fff;
}

.course-btn-light {
    border-color: var(--course-line);
    background: #fff;
}

.course-btn-danger {
    color: var(--course-danger);
    border-color: #fecdca;
    background: #fff7f6;
}

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

.course-card {
    background: #fff;
    border: 1px solid var(--course-line);
    border-radius: 8px;
    overflow: hidden;
}

.course-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--course-soft);
}

.course-thumb img,
.course-detail-media img,
.course-detail-media video,
.course-detail-media iframe,
.course-media video,
.course-media iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
}

.course-thumb-fallback {
    width: 100%;
    height: 100%;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--course-primary);
    background: linear-gradient(135deg, #eef8f6, #f7f8fb);
    font-size: 44px;
}

.course-card-body {
    padding: 16px;
}

.course-meta,
.course-card-foot,
.course-detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--course-muted);
    font-size: 13px;
}

.course-card h2 {
    font-size: 18px;
    line-height: 1.35;
    margin: 8px 0;
}

.course-card h2 a,
.course-card-foot a {
    color: var(--course-ink);
    text-decoration: none;
}

.course-card p {
    color: var(--course-muted);
    min-height: 48px;
}

.course-card-foot {
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--course-line);
    padding-top: 12px;
}

.course-card-foot a {
    color: var(--course-primary);
    font-weight: 800;
}

.course-empty {
    grid-column: 1 / -1;
    display: flex;
    min-height: 240px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed var(--course-line);
    border-radius: 8px;
    background: #fff;
    color: var(--course-muted);
    text-align: center;
}

.course-empty i {
    color: var(--course-primary);
    font-size: 42px;
}

.course-empty strong {
    color: var(--course-ink);
}

.course-detail-copy {
    flex: 1;
}

.course-detail-media {
    width: min(420px, 38vw);
    border-radius: 8px;
    overflow: hidden;
    background: var(--course-soft);
}

.course-actions-row {
    margin-top: 18px;
}

.course-note {
    color: var(--course-muted);
    font-weight: 700;
}

.course-curriculum,
.course-resource-panel {
    background: #fff;
    border: 1px solid var(--course-line);
    border-radius: 8px;
    padding: 20px;
}

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

.course-section-head h2,
.course-resource-panel h2 {
    margin: 0;
    font-size: 22px;
}

.course-section,
.course-learn-section {
    border: 1px solid var(--course-line);
    border-radius: 7px;
    margin-bottom: 10px;
    background: #fff;
}

.course-section summary,
.course-learn-section summary {
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 800;
}

.course-section summary {
    display: flex;
    justify-content: space-between;
}

.course-section summary em,
.course-lesson-row em,
.course-resource-row em {
    color: var(--course-muted);
    font-style: normal;
    font-weight: 500;
}

.course-lesson-list {
    border-top: 1px solid var(--course-line);
}

.course-lesson-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    color: var(--course-ink);
    text-decoration: none;
}

.course-lesson-row.locked {
    color: #8a8f98;
    cursor: default;
}

.course-lesson-row em,
.course-learn-section a em {
    white-space: nowrap;
}

.course-lesson-row + .course-lesson-row {
    border-top: 1px solid var(--course-line);
}

.course-progress-line {
    width: 100%;
    height: 8px;
    background: var(--course-soft);
    border-radius: 99px;
    overflow: hidden;
    margin: 12px 0;
}

.course-progress-line span {
    display: block;
    height: 100%;
    background: var(--course-primary);
}

.course-learn {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    min-height: calc(100vh - 80px);
    background: var(--course-bg);
}

.course-learn-sidebar {
    background: #fff;
    border-right: 1px solid var(--course-line);
    padding: 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
}

.course-back {
    display: inline-flex;
    gap: 8px;
    color: var(--course-ink);
    text-decoration: none;
    font-weight: 800;
    margin-bottom: 16px;
}

.course-progress-box {
    border: 1px solid var(--course-line);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.course-learn-section {
    margin-bottom: 8px;
}

.course-learn-section a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    color: var(--course-ink);
    text-decoration: none;
    border-top: 1px solid var(--course-line);
}

.course-learn-section a span {
    flex: 1;
}

.course-learn-section a em {
    border: 1px solid #b7e2dc;
    border-radius: 999px;
    color: var(--course-primary-dark);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    padding: 2px 7px;
}

.course-learn-section a.locked {
    color: #8a8f98;
}

.course-learn-section a.active {
    background: #eef8f6;
    color: var(--course-primary-dark);
    font-weight: 800;
}

.course-learn-main {
    padding: 26px;
}

.course-learn-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.course-learn-head span {
    color: var(--course-primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
}

.course-learn-head h1 {
    margin: 4px 0 0;
    font-size: 30px;
}

.course-media {
    aspect-ratio: 16 / 9;
    background: #111827;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 18px;
}

.course-audio {
    background: #fff;
    border: 1px solid var(--course-line);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 18px;
}

.course-audio audio {
    width: 100%;
}

.course-content,
.course-resource-panel {
    background: #fff;
    border: 1px solid var(--course-line);
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 18px;
    line-height: 1.7;
}

.course-resource-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--course-line);
}

.course-resource-row:first-of-type {
    border-top: 0;
}

.course-resource-row a {
    margin-left: 10px;
    color: var(--course-primary);
    font-weight: 800;
    text-decoration: none;
}

body.course-learn-mode .hidden {
    display: none;
}

body.course-learn-mode .hidden-seoh {
    visibility: hidden;
    height: 0;
    margin: 0;
    overflow: hidden;
}

body.course-learn-mode {
    margin: 0;
    background: #fff;
    overflow-x: hidden;
    --background-static: #b8195b;
}

body.course-learn-mode .course-learn-wrap {
    padding: 0;
    margin: 0;
    max-width: none;
    width: 100%;
}

.course-learn-watch {
    --ud-ink: #1c1d1f;
    --ud-muted: #6a6f73;
    --ud-line: #d1d7dc;
    --ud-pale: #f7f9fa;
    --ud-dark: #2d2f31;
    --ud-purple: #a435f0;
    --ud-purple-dark: #8710d8;
    --ud-selected: #ede5f9;
    display: block;
    min-height: 100vh;
    background: #fff;
    color: var(--ud-ink);
    font-family: "Udemy Sans", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.course-learn-mode,
.course-learn-wrap {
    background: #fff;
}

.course-learn-wrap {
    padding: 0;
    margin: 0;
}

.course-watch-topbar {
    position: relative;
    z-index: 20;
    min-height: 72px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px 20px;
    background: linear-gradient(180deg, rgba(28, 29, 31, 0.96) 0%, rgba(28, 29, 31, 0.72) 55%, rgba(28, 29, 31, 0) 100%);
}

.course-watch-topbar-start {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.course-watch-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 0;
}

.course-watch-logo img {
    display: block;
    width: auto;
    max-width: min(140px, 22vw);
    height: 32px;
    max-height: 32px;
    object-fit: contain;
    object-position: left center;
}

.course-watch-back {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.course-watch-back:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.course-watch-title {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.course-watch-title strong,
.course-watch-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-watch-title strong {
    font-size: 14px;
    font-weight: 800;
}

.course-watch-title span {
    color: #d1d7dc;
    font-size: 13px;
}

.course-watch-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.course-watch-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.course-watch-nav-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.course-watch-nav-btn.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.course-watch-topbar-sep {
    width: 1px;
    height: 24px;
    background: #6a6f73;
    margin: 0 4px;
}

.course-watch-actions .course-btn {
    min-height: 40px;
    border-radius: 0.5rem;
    padding: 0 14px;
    font-weight: 700;
}

.course-learn-watch .course-btn-udemy {
    background: var(--ud-purple);
    border-color: var(--ud-purple);
    color: #fff;
}

.course-learn-watch .course-btn-udemy:hover {
    background: var(--ud-purple-dark);
    border-color: var(--ud-purple-dark);
    color: #fff;
}

.course-watch-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 112px;
    color: #d1d7dc;
    font-size: 13px;
    font-weight: 800;
}

.course-watch-progress div {
    width: 72px;
    height: 7px;
    background: #3b3c40;
    overflow: hidden;
}

.course-watch-progress b {
    display: block;
    height: 100%;
    background: #a435f0;
}

.course-watch-preview {
    border: 1px solid #6a6f73;
    color: #f7f9fa;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 9px;
    white-space: nowrap;
}

.course-watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: stretch;
    min-height: 100vh;
}

.course-learn-watch .course-learn-main {
    padding: 0;
    min-width: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.course-watch-player {
    background: var(--ud-dark);
    flex-shrink: 0;
}

.course-watch-stage {
    background: var(--ud-dark);
    min-height: min(56vh, 540px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px 24px;
}

.course-watch-stage iframe,
.course-watch-stage video {
    width: min(100%, 1120px);
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: min(56vh, 540px);
    border: 0;
    display: block;
    background: #000;
}

.course-watch-image {
    width: min(100%, 1120px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-watch-image img {
    display: block;
    max-height: min(56vh, 540px);
    max-width: 100%;
    object-fit: contain;
}

.course-watch-document {
    width: min(100%, 1120px);
    aspect-ratio: 16 / 10;
    height: auto;
    max-height: min(56vh, 540px);
    border: 0;
    background: #fff;
}

.course-watch-document-card {
    width: min(760px, calc(100% - 48px));
    min-height: 280px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.course-watch-document-card i {
    font-size: 2.5rem;
    opacity: 0.85;
}

.course-watch-document-card div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.course-watch-audio,
.course-watch-reading {
    width: min(760px, calc(100% - 48px));
    min-height: 280px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
}

.course-watch-audio i,
.course-watch-reading i {
    font-size: 56px;
}

.course-watch-audio audio {
    width: min(620px, 100%);
}

.course-watch-tabs {
    height: 56px;
    border-bottom: 1px solid var(--ud-line);
    display: flex;
    align-items: stretch;
    padding: 0 32px;
    gap: 28px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 15;
    flex-shrink: 0;
}

.course-watch-tabs button {
    display: inline-flex;
    align-items: center;
    color: var(--ud-ink);
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    padding: 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    font-family: inherit;
}

.course-watch-tabs button.active,
.course-watch-tabs button:hover {
    border-color: var(--ud-ink);
    color: var(--ud-ink);
}

.course-watch-panels {
    flex: 1;
    background: #fff;
}

.course-watch-panel {
    max-width: 860px;
    padding: 28px 32px 40px;
}

.course-watch-panel[hidden] {
    display: none !important;
}

.course-watch-panel.is-active {
    display: block;
}

.course-watch-panel h2 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 850;
}

.course-exercises-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.course-lesson-score-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f3f6ff;
    color: #1e293b;
    font-size: 14px;
}

.course-lesson-score-summary strong {
    font-size: 24px;
    line-height: 1;
    color: #2563eb;
}

.course-lesson-score-meta {
    color: #64748b;
    font-size: 13px;
}

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

.course-exercise-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    background: #fff;
}

.course-exercise-card__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.course-exercise-card__eyebrow {
    margin: 0 0 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.course-exercise-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 750;
    color: #0f172a;
}

.course-exercise-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.course-exercise-badge--listening { background: #dbeafe; color: #1d4ed8; }
.course-exercise-badge--reading { background: #dcfce7; color: #15803d; }
.course-exercise-badge--writing { background: #ffedd5; color: #c2410c; }
.course-exercise-badge--speaking { background: #fae8ff; color: #a21caf; }

.course-exercise-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 12px;
    font-size: 13px;
    color: #64748b;
}

.course-exercise-required {
    color: #b45309;
    font-weight: 600;
}

.course-exercise-progress {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.course-exercise-progress__bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    transition: width 0.25s ease;
}

.course-exercise-card.is-good .course-exercise-progress__bar {
    background: linear-gradient(90deg, #4ade80, #16a34a);
}

.course-exercise-card.is-mid .course-exercise-progress__bar {
    background: linear-gradient(90deg, #fbbf24, #d97706);
}

.course-exercise-card.is-low .course-exercise-progress__bar {
    background: linear-gradient(90deg, #f87171, #dc2626);
}

.course-exercise-card.is-pending .course-exercise-progress__bar {
    background: linear-gradient(90deg, #cbd5e1, #94a3b8);
    width: 35% !important;
}

.course-exercise-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.course-exercise-status {
    font-size: 15px;
    font-weight: 700;
}

.course-exercise-status.is-empty { color: #64748b; }
.course-exercise-status.is-pending { color: #475569; }
.course-exercise-status.is-good { color: #15803d; }
.course-exercise-status.is-mid { color: #b45309; }
.course-exercise-status.is-low { color: #dc2626; }

.course-exercise-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.course-exercise-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    background: #2563eb;
    color: #fff !important;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.course-exercise-btn:hover {
    background: #1d4ed8;
    color: #fff !important;
}

.course-exercise-btn--ghost {
    background: #fff;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
}

.course-exercise-btn--ghost:hover {
    background: #f8fafc;
    color: #0f172a !important;
}

.course-exercise-unlinked {
    font-size: 13px;
    color: #94a3b8;
    font-style: italic;
}

/* Udemy-style notes drawer */
.course-watch-panel--notes {
    min-height: 420px;
}

.course-notes-drawer {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 380px;
}

.course-notes-drawer--tab {
    min-height: 480px;
}

.course-notes-drawer--sidebar {
    min-height: 0;
    height: 100%;
}

.course-notes-drawer__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.course-notes-drawer__header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 40px;
    margin-bottom: 24px;
}

.course-notes-drawer__title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ud-ink);
}

.course-notes-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.course-notes-filter__chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid var(--ud-ink);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ud-ink);
    background: #fff;
    white-space: nowrap;
}

.course-notes-filter__chip.is-active {
    background: var(--ud-ink);
    color: #fff;
}

.course-notes-filter__chip.is-muted {
    border-color: var(--ud-line);
    color: var(--ud-muted);
    background: #fff;
    pointer-events: none;
}

.course-notes-drawer__content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.course-notes-drawer__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 12px;
}

.course-notes-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 200px;
    padding: 48px 24px;
    text-align: center;
    animation: course-notes-fade-in 0.3s ease;
}

.course-notes-empty[hidden],
.course-note-card[hidden],
.course-notes-create-form[hidden] {
    display: none !important;
}

@keyframes course-notes-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.course-notes-empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ud-pale) 80%, #e8ecef);
    color: var(--ud-muted);
    font-size: 40px;
}

.course-notes-empty__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--ud-ink);
}

.course-notes-empty__text {
    margin: 0;
    max-width: 24rem;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ud-muted);
}

.course-note-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: color-mix(in srgb, var(--ud-pale) 55%, #eef1f2);
    border: 2px solid transparent;
    border-radius: 16px;
}

.course-note-card.is-highlighted {
    animation: course-note-highlight 7s ease-out forwards;
}

@keyframes course-note-highlight {
    0%, 15% { border-color: var(--ud-purple); }
    to { border-color: transparent; }
}

.course-note-card__body {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ud-ink);
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
}

.course-note-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.course-note-timestamp {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 24px;
    background: #6a6f73;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.course-note-card__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.course-note-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--ud-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.course-note-card__action:hover {
    background: color-mix(in srgb, var(--ud-ink) 8%, transparent);
    color: var(--ud-ink);
}

.course-notes-drawer__create-overlay {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    padding-bottom: 0;
    background: var(--ud-pale);
}

.course-notes-drawer__create-overlay::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 64px;
    pointer-events: none;
    background: linear-gradient(to top, var(--ud-pale), transparent);
}

.course-notes-drawer--tab .course-notes-drawer__create-overlay {
    background: #fff;
}

.course-notes-drawer--tab .course-notes-drawer__create-overlay::before {
    background: linear-gradient(to top, #fff, transparent);
}

.course-notes-drawer--sidebar .course-notes-drawer__create-overlay {
    background: #fff;
}

.course-notes-drawer--sidebar .course-notes-drawer__create-overlay::before {
    background: linear-gradient(to top, #fff, transparent);
}

.course-notes-create-collapsed {
    padding-top: 8px;
}

.course-notes-create-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    padding-right: 48px;
    border: 1px solid var(--ud-line);
    border-radius: 4px;
    background: #fff;
    color: var(--ud-muted);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s;
    position: relative;
}

.course-notes-create-input:hover {
    border-color: var(--ud-ink);
    color: var(--ud-ink);
}

.course-notes-create-input__label {
    font-weight: 400;
}

.course-notes-create-input__icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--ud-muted);
    pointer-events: none;
}

.course-notes-create-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
    animation: course-notes-expand 0.2s ease;
}

@keyframes course-notes-expand {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-notes-create-form__editor {
    border: 1px solid var(--ud-line);
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.course-notes-textarea {
    display: block;
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    border: none;
    border-radius: 0;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ud-ink);
    background: transparent;
    resize: vertical;
}

.course-notes-textarea:focus {
    outline: none;
}

.course-notes-create-form__editor:focus-within {
    border-color: var(--ud-ink);
    box-shadow: 0 0 0 1px var(--ud-ink);
}

.course-notes-drawer--tab .course-notes-textarea {
    min-height: 160px;
}

.course-notes-create-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 4px;
}

.course-notes-create-form__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.course-btn-ghost {
    background: transparent;
    border: none;
    color: var(--ud-ink);
    font-weight: 600;
    min-height: 36px;
    padding: 8px 12px;
}

.course-btn-ghost:hover {
    background: color-mix(in srgb, var(--ud-ink) 6%, transparent);
}

.course-btn-secondary {
    background: var(--ud-ink);
    border: 1px solid var(--ud-ink);
    color: #fff;
    font-weight: 700;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 4px;
}

.course-btn-secondary:hover:not(:disabled) {
    background: #000;
    border-color: #000;
}

.course-btn-secondary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.course-notes-save {
    min-height: 36px;
    font-size: 13px;
}

.course-notes-cancel {
    min-height: 36px;
    font-size: 13px;
}

.course-notes-status {
    margin: 0;
    font-size: 12px;
    color: var(--ud-muted);
}

.course-notes-status.is-saving {
    color: var(--ud-ink);
}

.course-notes-status.is-saved {
    color: #1e6f50;
}

.course-notes-status.is-error {
    color: #b32d2e;
}

.course-notes-gate {
    padding: 20px 0 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.course-notes-gate p {
    margin: 0;
    color: var(--ud-muted);
    font-size: 15px;
    line-height: 1.5;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.course-watch-panel .course-content {
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

.course-learn-watch .course-learn-head {
    margin-bottom: 18px;
    align-items: flex-start;
}

.course-learn-watch .course-learn-head h1 {
    font-size: 28px;
    font-weight: 700;
}

.course-learn-watch .course-learn-head span {
    color: var(--ud-muted);
    text-transform: capitalize;
    font-size: 12px;
    font-weight: 600;
}

.course-learn-watch .course-learn-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 0;
    border-left: 1px solid var(--ud-line);
    padding: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.course-sidebar-head {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--ud-line);
    flex-shrink: 0;
}

.course-sidebar-toggle {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ud-ink);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.course-sidebar-toggle:hover {
    background: color-mix(in srgb, var(--ud-pale) 85%, transparent);
}

.course-sidebar-tabs-pill {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ud-pale) 90%, #e8ecef);
}

.course-sidebar-tab {
    flex: 1;
    min-width: 0;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ud-muted);
    font-size: 17px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.course-sidebar-tab:hover {
    color: var(--ud-ink);
}

.course-sidebar-tab.is-active {
    background: #fff;
    color: var(--ud-ink);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.course-sidebar-panels {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.course-sidebar-panel {
    flex: 1;
    min-height: 0;
    display: none;
    flex-direction: column;
}

.course-sidebar-panel.is-active {
    display: flex;
}

.course-sidebar-panel-scroll {
    flex: 1;
    overflow: auto;
    padding: 16px;
}

.course-sidebar-empty {
    margin: 0;
    padding: 24px 8px;
    text-align: center;
    color: var(--ud-muted);
    font-size: 14px;
    line-height: 1.5;
}

.course-sidebar-transcript {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ud-ink);
    white-space: pre-wrap;
}

.course-sidebar-panel--notes .course-sidebar-panel-scroll {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.course-sidebar-notes-wrap .course-notes-drawer--sidebar {
    flex: 1;
    min-height: 0;
}

.course-notes-gate--sidebar {
    padding: 16px 8px;
    text-align: center;
    align-items: center;
}

.course-learn-watch.is-sidebar-hidden .course-learn-sidebar {
    display: none;
}

.course-learn-watch.is-sidebar-hidden .course-watch-layout {
    grid-template-columns: minmax(0, 1fr);
}

.course-sidebar-toggle--topbar {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    background: transparent;
}

.course-sidebar-toggle--topbar:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.course-learn-watch.is-sidebar-hidden .course-sidebar-toggle--topbar {
    display: inline-flex;
}

.course-sidebar-hint {
    position: fixed;
    inset: 0;
    z-index: 10050;
    pointer-events: none;
}

.course-sidebar-hint__bubble {
    --course-sidebar-hint-arrow-left: 50%;
    position: fixed;
    max-width: 260px;
    padding: 12px 36px 12px 14px;
    border-radius: 8px;
    background: #2d2f31;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    font-size: 13px;
    line-height: 1.45;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.course-sidebar-hint.is-visible .course-sidebar-hint__bubble {
    opacity: 1;
    transform: translateY(0);
}

.course-sidebar-hint__bubble::before {
    content: '';
    position: absolute;
    top: -6px;
    left: var(--course-sidebar-hint-arrow-left);
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #2d2f31;
}

.course-sidebar-hint__bubble::after {
    content: '';
    position: absolute;
    top: -7px;
    left: var(--course-sidebar-hint-arrow-left);
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(255, 255, 255, 0.18);
    z-index: -1;
}

.course-sidebar-hint__text {
    margin: 0;
    font-weight: 500;
}

.course-sidebar-hint__close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #d1d7dc;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.course-sidebar-hint__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.course-curriculum-scroll {
    flex: 1;
    overflow: auto;
    padding: 16px;
}

.course-curriculum-section {
    border: 1px solid var(--ud-line);
    border-radius: 1rem 1rem 0 0;
    background: color-mix(in srgb, var(--ud-pale) 75%, transparent);
    margin-bottom: 16px;
    overflow: hidden;
}

.course-curriculum-section:last-child {
    margin-bottom: 0;
}

.course-curriculum-section summary {
    min-height: 52px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
}

.course-curriculum-section summary::-webkit-details-marker {
    display: none;
}

.course-curriculum-section-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-curriculum-section summary em {
    color: var(--ud-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    white-space: nowrap;
}

.course-curriculum-list {
    list-style: none;
    margin: 0;
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-curriculum-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 1rem;
    background: var(--ud-pale);
    color: var(--ud-ink);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
    transition: box-shadow 0.15s ease;
}

.course-curriculum-item:hover {
    box-shadow: inset 0 0 0 2px var(--ud-line);
    color: var(--ud-ink);
}

.course-curriculum-item.is-active {
    border: 2px solid var(--ud-ink);
    background: var(--ud-selected);
    box-shadow: none;
    cursor: default;
}

.course-curriculum-item.is-locked {
    opacity: 0.65;
}

.course-curriculum-lock {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    color: var(--ud-muted);
    font-size: 1rem;
}

.course-lesson-ring {
    position: relative;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.course-lesson-ring-svg {
    display: block;
}

.course-lesson-ring-track {
    stroke: #d1d7dc;
}

.course-lesson-ring-progress {
    stroke: #1c1d1f;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.25s ease;
}

.course-lesson-ring.is-complete .course-lesson-ring-progress {
    stroke: #1c1d1f;
}

.course-lesson-ring.is-locked .course-lesson-ring-track,
.course-lesson-ring.is-locked .course-lesson-ring-progress {
    stroke: #d1d7dc;
}

.course-lesson-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: 700;
    line-height: 1;
    color: #1c1d1f;
    letter-spacing: -0.02em;
    pointer-events: none;
}

.course-lesson-ring-label.is-percent {
    font-size: 6px;
}

.course-lesson-ring.is-arc .course-lesson-ring-label:empty {
    display: none;
}

.course-curriculum-item-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.course-curriculum-item-title {
    font-weight: 600;
    word-break: break-word;
}

.course-curriculum-item-meta {
    color: var(--ud-muted);
    font-size: 12px;
    font-weight: 500;
}

.course-learn-watch .course-resource-row {
    align-items: center;
}

/* Course admin — matches Kho học liệu (library) management UI */
.course-admin-app {
    padding-bottom: 40px;
}

.course-admin-app .library-panel + .library-panel {
    margin-top: 18px;
}

.course-admin-app .library-name {
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.course-admin-app .library-name span {
    text-align: left;
}

.course-admin-row.is-active {
    background: #eef8f6;
}

.course-admin-row.is-active .library-name {
    color: var(--library-primary-dark, #115e59);
}

.course-admin-app .library-share-badge.draft {
    background: #fef3c7;
    color: #92400e;
}

.course-admin-workspace-panel .library-empty,
.course-admin-empty {
    border: 0;
    box-shadow: none;
}

.course-editor-head {
    border-bottom: 1px solid var(--library-border, #dce7e5);
}

.course-editor-head-actions .library-btn.text-danger {
    color: #b42318;
}

.course-editor-head-actions .library-btn.text-danger:hover {
    background: #fff7f6;
    border-color: #fecdca;
    color: #b42318;
}

.course-admin-nav {
    border-bottom: 1px solid var(--library-border, #dce7e5);
    padding: 0 16px;
    margin: 0;
}

.course-admin-nav .nav-link {
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: var(--library-muted, #667085);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: -1px;
    padding: 14px 16px;
}

.course-admin-nav .nav-link:hover {
    color: var(--library-primary-dark, #115e59);
}

.course-admin-nav .nav-link.active {
    background: transparent;
    border-bottom-color: var(--library-primary, #0f766e);
    color: var(--library-primary-dark, #115e59);
}

.course-tab-panel {
    display: none;
    padding: 20px;
}

.course-tab-panel.active {
    display: block;
}

.course-form-grid .form-group label {
    color: var(--library-text, #17202a);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
}

.course-form-grid .form-control {
    border-color: var(--library-border, #dce7e5);
    border-radius: 8px;
    font-size: 14px;
    min-height: 42px;
}

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

.course-content-tools,
.course-enroll-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.course-enroll-tools .form-group label {
    color: var(--library-text, #17202a);
    font-size: 13px;
    font-weight: 800;
}

.course-structure {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.course-admin-section {
    border: 1px solid var(--library-border, #dce7e5);
    border-radius: 10px;
    overflow: hidden;
}

.course-admin-section summary {
    align-items: center;
    background: #f8fbfb;
    display: flex;
    font-weight: 800;
    gap: 12px;
    justify-content: space-between;
    list-style: none;
    padding: 12px 14px;
}

.course-admin-section summary::-webkit-details-marker {
    display: none;
}

.course-admin-lessons {
    border-top: 1px solid var(--library-border, #dce7e5);
}

.course-admin-lesson,
.course-enrollment-row {
    align-items: center;
    border-top: 1px solid #edf2f4;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 14px;
}

.course-admin-lesson:first-child {
    border-top: 0;
}

.course-admin-lesson em,
.course-enrollment-row em {
    color: var(--library-muted, #667085);
    font-size: 12px;
    font-style: normal;
    margin-left: 6px;
}

.course-mini-empty {
    color: var(--library-muted, #667085);
    font-size: 13px;
    padding: 14px;
    text-align: center;
}

.course-enrollment-list {
    border: 1px solid var(--library-border, #dce7e5);
    border-radius: 10px;
    overflow: hidden;
}

.course-admin-modal-card {
    max-width: 820px;
    width: min(820px, 96vw);
}

.course-modal-form .library-field:last-of-type {
    margin-bottom: 18px;
}

.course-checkbox label {
    align-items: center;
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
}

.course-checkbox input {
    width: auto;
}

.course-admin-app .library-icon-btn.text-danger:hover {
    background: #fff7f6;
    border-color: #fecdca;
    color: #b42318;
}

@media (max-width: 980px) {
    .course-editor-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .course-editor-head-actions {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .course-admin-lesson,
    .course-enrollment-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .course-admin-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 980px) {
    .course-grid,
    .course-learn {
        grid-template-columns: 1fr;
    }
    .course-detail-hero,
    .course-hero,
    .course-learn-head {
        flex-direction: column;
    }
    .course-detail-media {
        width: 100%;
    }
    .course-learn-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--course-line);
    }
}

@media (max-width: 768px) {
    .course-watch-topbar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px 16px;
    }
    .course-watch-topbar-start {
        width: 100%;
    }
    .course-watch-logo img {
        max-width: min(110px, 28vw);
        height: 28px;
        max-height: 28px;
    }
    .course-watch-title strong,
    .course-watch-title span {
        white-space: normal;
    }
    .course-watch-actions {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
    .course-watch-layout {
        grid-template-columns: 1fr;
    }
    .course-watch-stage {
        min-height: auto;
    }
    .course-watch-stage iframe,
    .course-watch-stage video {
        max-height: none;
        width: 100%;
    }
    .course-watch-tabs {
        top: 0;
        overflow-x: auto;
        padding: 0 16px;
        gap: 22px;
    }
    .course-watch-panel {
        padding: 22px 16px;
    }
    .course-learn-watch .course-learn-sidebar {
        position: static;
        height: auto;
        border-left: 0;
        border-top: 1px solid #d1d7dc;
    }
    .course-landing-inner {
        grid-template-columns: 1fr;
    }
    .course-purchase-card {
        position: static;
        width: auto;
        max-height: none;
        overflow: visible;
    }
    .course-main-column {
        width: auto;
        max-width: none;
    }
}

@media (max-width: 640px) {
    .course-page {
        padding: 14px 10px 40px;
    }
    .course-hero,
    .course-detail-hero {
        padding: 18px;
    }
    .course-hero h1,
    .course-detail-hero h1,
    .course-learn-head h1 {
        font-size: 26px;
    }
    .course-landing-copy h1 {
        font-size: 30px;
    }
    .course-outcomes {
        grid-template-columns: 1fr;
    }
    .course-admin-lesson,
    .course-resource-row,
    .course-enrollment-row,
    .course-lesson-row {
        flex-direction: column;
    }
}
