.course-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e6e8eb;
    background: #fff;
    border-radius: 12px;
    min-height: 40px;
    padding: 6px 10px 6px 8px;
    cursor: pointer;
    color: #1a2636;
    font: inherit;
    text-align: left;
}
.course-switch[hidden] { display: none; }
.course-switch i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #fff1f0;
    color: #d94a41;
    flex: 0 0 28px;
}
.course-switch span { min-width: 0; }
.course-switch small {
    display: block;
    font-size: 9px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 700;
}
.course-switch strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.course-switch em {
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    color: #F05A50;
    margin-left: 4px;
}
.course-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(160deg, rgba(26, 38, 54, .92), rgba(35, 50, 70, .9) 55%, rgba(240, 90, 80, .45));
}
.course-overlay[hidden] { display: none; }
.course-sheet {
    width: min(1180px, 96vw);
    max-height: min(92vh, 920px);
    background: #fff;
    border-radius: 18px;
    padding: 16px 18px 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.course-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: #c5cad3 transparent;
}
.course-body::-webkit-scrollbar { width: 6px; }
.course-body::-webkit-scrollbar-track { background: transparent; }
.course-body::-webkit-scrollbar-thumb {
    background: #c5cad3;
    border-radius: 999px;
}
.course-body::-webkit-scrollbar-thumb:hover { background: #a8b0bd; }
.course-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #F05A50;
}
.course-head { position: relative; margin: 0 0 12px; min-height: 32px; display: flex; align-items: center; justify-content: center; }
.course-sheet h2 { margin: 0; font-size: 22px; color: #1a2636; text-align: center; width: 100%; }
.course-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e6e8eb;
    background: #fff;
    color: #1a2636;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.course-close:hover { border-color: #F05A50; color: #F05A50; background: #fff6f5; }
.course-lead { margin: 0 0 16px; color: #6b7280; font-size: 13px; text-align: center; }
.course-feature {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 12px;
}
.course-feature[hidden] { display: none; }
.course-feature .course-card { grid-column: 2; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.course-more-wrap {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}
.course-more-wrap[hidden] { display: none; }
.course-more-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6b7280;
}
.course-more-btn {
    align-self: center;
    border: 1px solid #e6e8eb;
    background: #fff;
    color: #1a2636;
    border-radius: 999px;
    padding: 8px 16px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.course-more-btn:hover { border-color: #f0a39e; color: #F05A50; }
.course-more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.course-card {
    border: 1px solid #e6e8eb;
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px 14px;
    text-align: left;
    cursor: pointer;
    min-height: 158px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font: inherit;
    color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.course-card:hover { border-color: #f0a39e; box-shadow: 0 10px 24px rgba(26, 38, 54, .08); }
.course-card.on { border-color: #F05A50; box-shadow: inset 0 0 0 1px #F05A50; }
.course-card.featured {
    background: linear-gradient(180deg, #fff4f3 0%, #fff 62%);
    border-color: #F05A50;
    box-shadow: 0 12px 28px rgba(240, 90, 80, .16);
}
.course-card.featured .mark { background: #F05A50; }
.course-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.course-card .mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #1a2636;
    color: #fff;
    flex: 0 0 28px;
    font-size: 12px;
}
.course-card.on .mark { background: #F05A50; }
.course-card b {
    font-size: 14px;
    color: #1a2636;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 800px) {
    .course-grid, .course-feature { grid-template-columns: 1fr; }
    .course-feature .course-card { grid-column: auto; }
    .course-sheet { padding: 16px; }
    .course-sheet h2 { font-size: 20px; }
}
.course-card .sum {
    font-size: 11px;
    color: #6b7280;
    min-height: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.course-card .meta {
    font-size: 11px;
    font-weight: 800;
    color: #1a2636;
    background: #f4f6f8;
    border-radius: 999px;
    padding: 4px 8px;
}
.course-card.featured .meta { background: #ffe4e1; color: #b42318; }
.course-card ul { margin: 2px 0 0; padding: 0; list-style: none; }
.course-card li {
    font-size: 11px;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.course-card li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: #F05A50;
    margin-right: 6px;
}
@media (max-width: 720px) {
    .course-switch strong { max-width: 140px; }
    .course-sheet { padding: 16px; }
}
