/* ─── Student portal (shared with Main dashboard) ─── */

html {
    scroll-behavior: smooth;
}

#study-material {
    scroll-margin-top: 20px;
}

.dash-breadcrumb {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}
.dash-breadcrumb a {
    color: #0070B9;
    text-decoration: none;
}
.dash-breadcrumb a:hover { text-decoration: underline; }
.dash-breadcrumb .fa {
    color: #9ca3af;
    margin: 0 6px;
    font-size: 11px;
}

.dash-page-header { margin-bottom: 24px; }
.dash-page-header__title {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.3px;
    margin: 0;
    line-height: 1.25;
}
.dash-page-header__subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 8px 0 0;
}

.dash-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
}
.dash-alert i { font-size: 18px; margin-top: 1px; flex-shrink: 0; }
.dash-alert--error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.dash-alert--error i { color: #dc2626; }
.dash-alert--success   { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.dash-alert--success i { color: #16a34a; }
.dash-alert--warning   { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.dash-alert--warning i { color: #d97706; }

.portal-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    overflow: hidden;
    margin-bottom: 20px;
}
.portal-panel__body { padding: 24px; }
.portal-panel__body--compact { padding: 16px 20px; }

.portal-tabs {
    display: flex;
    gap: 4px;
    padding: 0 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    flex-wrap: wrap;
}
.portal-tabs .nav-link {
    border: none;
    border-radius: 6px 6px 0 0;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    margin-bottom: -1px;
}
.portal-tabs .nav-link:hover { color: #0070B9; background: #fff; }
.portal-tabs .nav-link.active {
    color: #0070B9;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-bottom-color: #fff;
}

.portal-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
}
.portal-section-desc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 20px;
}

.portal-doc-group { margin-bottom: 28px; }
.portal-doc-group__title {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}
.portal-doc-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}
.portal-doc-row:last-child { border-bottom: none; }
.portal-doc-row__label {
    flex: 1 1 180px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}
.portal-doc-row__status {
    flex: 0 0 auto;
    font-size: 13px;
}
.portal-doc-row__status a {
    color: #0070B9;
    font-weight: 600;
    text-decoration: none;
}
.portal-doc-row__status a:hover { text-decoration: underline; }
.portal-doc-row__upload {
    flex: 1 1 280px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.portal-doc-row__upload .form-control { flex: 1; min-width: 140px; }

.portal-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.portal-search label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0;
    white-space: nowrap;
}
.portal-search .form-control {
    max-width: 320px;
    border-radius: 6px;
    border-color: #d1d5db;
    font-size: 14px;
}

.portal-table-wrap { overflow-x: auto; }
.portal-table {
    width: 100%;
    font-size: 14px;
    margin: 0;
}
.portal-table thead th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 14px;
    white-space: nowrap;
}
.portal-table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}
.portal-table tbody tr:hover { background: #fafafa; }
.portal-table .btn-sm { font-size: 12px; }

.portal-subsection { margin-top: 28px; }
.portal-subsection__heading {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
}

.portal-suspended-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}
.portal-suspended-banner i { color: #dc2626; }

/* ─── Sidebar ─── */

.sb-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.sb-panel + .sb-panel { margin-top: 16px; }

.sb-account { padding: 24px 22px; }
.sb-account__profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.sb-account__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0070B9 0%, #00a1e0 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sb-account__info { flex: 1; min-width: 0; }
.sb-account__name {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sb-account__id { font-size: 12px; color: #6b7280; margin-top: 2px; }

.sb-account__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 16px;
}
.sb-account__meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}
.sb-account__meta-item i {
    width: 16px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
    flex-shrink: 0;
}

.sb-account__nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sb-account__nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.sb-account__nav-link:hover {
    background: #f3f4f6;
    color: #0070B9;
    text-decoration: none;
}
.sb-account__nav-link--active {
    background: #eff6ff;
    color: #0070B9;
}
.sb-account__nav-link i {
    width: 16px;
    text-align: center;
    font-size: 14px;
    color: #9ca3af;
    transition: color .15s;
}
.sb-account__nav-link:hover i,
.sb-account__nav-link--active i { color: #0070B9; }

.sb-account__message {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
}

.sb-docs__header {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
}
.sb-docs__title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.sb-docs__body { padding: 12px 20px 18px; }
.sb-docs__group {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    margin: 16px 0 8px;
}
.sb-docs__group:first-child { margin-top: 0; }
.sb-docs__item {
    font-size: 13px;
    padding: 6px 0;
    line-height: 1.4;
}
.sb-docs__item a { color: #0070B9; text-decoration: none; font-weight: 500; }
.sb-docs__item a:hover { text-decoration: underline; }
.sb-docs__photo {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    margin-top: 6px;
}

/* ── Career upsell (short courses) — aligned with sidebar panels ── */

.sb-panel--upsell { /* inherits .sb-panel */ }

.sb-upsell__header {
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
}
.sb-upsell__title-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.sb-upsell__title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}
.sb-upsell__subtitle {
    font-size: 12px;
    color: #6b7280;
    margin: 3px 0 0;
    line-height: 1.35;
    font-weight: 400;
}
.sb-upsell__title-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #0070B9;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sb-upsell__body {
    padding: 12px 16px 16px;
    background: #fff;
}

.sb-upsell__list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sb-upsell__course {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #374151;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.sb-upsell__course:hover {
    background: #f3f4f6;
    color: #0070B9;
    text-decoration: none;
}

.sb-upsell__course-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f9fafb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    border: 1px solid #f3f4f6;
    transition: color .15s, border-color .15s, background .15s;
}
.sb-upsell__course:hover .sb-upsell__course-icon {
    background: #eff6ff;
    border-color: #dbeafe;
    color: #0070B9;
}

.sb-upsell__course-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sb-upsell__tag {
    display: none;
}
.sb-upsell__course-title {
    font-size: 13px;
    font-weight: 500;
    color: inherit;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sb-upsell__course-chevron {
    flex-shrink: 0;
    color: #9ca3af;
    font-size: 14px;
    transition: color .15s;
}
.sb-upsell__course:hover .sb-upsell__course-chevron {
    color: #0070B9;
}

.sb-upsell__loading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9ca3af;
    padding: 8px 10px;
}

.sb-upsell__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    background: #f9fafb;
    transition: background .15s, border-color .15s, color .15s;
}
.sb-upsell__cta:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #0070B9;
    text-decoration: none;
}
.sb-upsell__cta .fa {
    font-size: 12px;
    opacity: .7;
}

/* Message centre — brand alignment */
.msg-centre-page-header .fa,
.msg-centre-breadcrumb a { color: #0070B9; }
.msg-centre-header {
    background: linear-gradient(135deg, #0070B9 0%, #005a8f 100%);
}
.msg-centre-footer textarea:focus {
    border-color: #0070B9;
    box-shadow: 0 0 0 3px rgba(0, 112, 185, .12);
}
.msg-centre-footer .btn-send {
    background: linear-gradient(135deg, #0070B9 0%, #005a8f 100%);
}

.msg-sidebar-card.sb-panel .msg-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
}
.msg-sidebar-card .msg-sidebar-avatar {
    background: linear-gradient(135deg, #0070B9 0%, #00a1e0 100%);
}
.msg-status-dot { color: #22c55e; font-size: 8px; margin-right: 4px; }

@media (max-width: 767px) {
    .sb-panel { margin-top: 16px; }
    .sb-account { padding: 20px 16px; }
    .portal-doc-row__upload { flex-direction: column; align-items: stretch; }
}

/* ── Unit detail page ── */

.unit-detail-hero,
.dash-programme-hero {
    margin-bottom: 24px;
    padding: 32px 28px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0070B9 100%);
    color: #fff;
    border: none;
    overflow: visible;
}
.unit-detail-hero__eyebrow,
.dash-programme-hero__eyebrow {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 8px;
}
.unit-detail-hero__title,
.dash-programme-hero__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.2;
}
.unit-detail-hero__lead,
.dash-programme-hero__lead {
    font-size: 15px;
    opacity: 0.92;
    max-width: 640px;
    margin-bottom: 20px;
}
.unit-detail-hero__actions,
.dash-programme-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.dash-programme-hero__progress {
    margin-bottom: 20px;
    max-width: 480px;
}
.dash-programme-hero__progress-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    gap: 12px;
}
.dash-programme-hero__progress-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
}
.dash-programme-hero__progress-value {
    font-size: 13px;
    font-weight: 600;
}
.dash-programme-hero__progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
}
.dash-programme-hero__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.75));
    border-radius: 3px;
    transition: width .6s cubic-bezier(.4,0,.2,1);
    min-width: 2px;
}
.unit-detail-hero .btn-premium--outline,
.dash-programme-hero .btn-premium--outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
    line-height: 1.4;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.unit-detail-hero .btn-premium--outline i,
.dash-programme-hero .btn-premium--outline i {
    font-size: 12px;
    opacity: 0.85;
}
.unit-detail-hero .btn-premium--outline:hover,
.dash-programme-hero .btn-premium--outline:hover {
    background: #fff;
    color: #0f172a;
    border-color: #fff;
}
.unit-detail-hero .btn-premium--outline:hover i,
.dash-programme-hero .btn-premium--outline:hover i {
    opacity: 1;
}
.portal-panel.unit-detail-panel,
.portal-panel.unit-detail-empty {
    overflow: visible;
}
.portal-panel__header {
    padding: 0 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}
.portal-panel__title {
    font-size: 13px;
    font-weight: 600;
    color: #0070B9;
    margin: 0;
    padding: 12px 0;
    line-height: 1.4;
}
.portal-panel__title i {
    margin-right: 6px;
    font-size: 13px;
}
.portal-panel.unit-detail-panel .portal-panel__body {
    overflow: visible;
}
.unit-detail-panel .tab-content,
.unit-detail-panel .tab-pane {
    overflow: visible;
}
.unit-detail-prose {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.unit-detail-prose h1, .unit-detail-prose h2, .unit-detail-prose h3, .unit-detail-prose h4 {
    color: #111827;
    margin-top: 1.25em;
}
/* Legacy SubjectDesc / StudyMaterial often use Word-exported tables */
.unit-detail-prose table {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    border-collapse: collapse;
    margin: 1rem 0;
    table-layout: auto !important;
    display: table !important;
}
.unit-detail-prose table tbody,
.unit-detail-prose table thead,
.unit-detail-prose table tfoot,
.unit-detail-prose table tr {
    height: auto !important;
    visibility: visible !important;
}
.unit-detail-prose table td,
.unit-detail-prose table th {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    visibility: visible !important;
    padding: 10px 12px !important;
    vertical-align: top !important;
    border: 1px solid #e5e7eb;
    color: #374151 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    background: #fff !important;
}
.unit-detail-prose table th {
    background: #f9fafb !important;
    font-weight: 600;
    color: #111827 !important;
}
.unit-detail-prose table p,
.unit-detail-prose table span,
.unit-detail-prose table div,
.unit-detail-prose table li,
.unit-detail-prose table ul,
.unit-detail-prose table ol {
    color: inherit !important;
    visibility: visible !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    opacity: 1 !important;
}
.unit-detail-prose ul,
.unit-detail-prose ol {
    padding-left: 1.5rem;
    margin: 0.75em 0;
}
.unit-detail-prose a {
    color: #0070B9;
    text-decoration: underline;
}
.unit-detail-prose-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}
.unit-detail-empty {
    text-align: center;
    padding: 48px 32px;
}
.unit-detail-empty__icon {
    font-size: 42px;
    color: #0070B9;
    margin-bottom: 16px;
}
.unit-detail-empty h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}
.unit-detail-empty p {
    color: #6b7280;
    max-width: 480px;
    margin: 0 auto 20px;
}

/* Legacy loading style removed — replaced by .ump__loading in Index.cshtml */

/* ── Study Material card — premium image treatment ── */

.sm-card {
    position: relative;
    overflow: hidden;
}
.sm-card__visual {
    position: relative;
    height: 164px;
    overflow: hidden;
}
.sm-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform .7s cubic-bezier(.25,.46,.45,.94),
                filter .7s cubic-bezier(.25,.46,.45,.94);
    will-change: transform;
}
.sm-card:hover .sm-card__img {
    transform: scale(1.04);
}
.sm-card__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0)     0%,
        rgba(15, 23, 42, .05)   30%,
        rgba(15, 23, 42, .25)   55%,
        rgba(15, 23, 42, .58)   75%,
        rgba(15, 23, 42, .82)   90%,
        rgba(15, 23, 42, .92)  100%
    );
    pointer-events: none;
}
.sm-card__visual-badge {
    position: absolute;
    bottom: 16px;
    left: 22px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .95);
    text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
    line-height: 1;
}
.sm-card__visual-badge i {
    font-size: 13px;
    opacity: .8;
}

/* Study Material resource download cards */
.sm-card .unit-detail-prose--study-material a.sm-resource-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin: 12px 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.sm-card .unit-detail-prose--study-material a.sm-resource-link:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 14px rgba(0, 112, 185, .1);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}
.sm-resource-link__icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #eff6ff;
    color: #0070B9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}
.sm-resource-link__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sm-resource-link__title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
}
.sm-resource-link__meta {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}
.sm-resource-link__chevron {
    flex-shrink: 0;
    color: #9ca3af;
    font-size: 12px;
    transition: color .2s, transform .2s;
}
.sm-card .unit-detail-prose--study-material a.sm-resource-link:hover .sm-resource-link__chevron {
    color: #0070B9;
    transform: translateX(2px);
}

@media (max-width: 767px) {
    .sm-card__visual { height: 120px; }
    .sm-card__visual-badge {
        bottom: 12px;
        left: 16px;
        font-size: 11px;
    }
}

@media (max-width: 767px) {
    .unit-detail-hero,
    .dash-programme-hero {
        padding: 24px 20px;
    }
    .unit-detail-hero__title,
    .dash-programme-hero__title {
        font-size: 22px;
    }
}

/* ─── Course Podcast Player (cpp) ─── */

.cpp {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.cpp__shell {
    background: #fff;
}

.cpp__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 70%, #0070B9 100%);
    color: #fff;
}

.cpp__expand-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.cpp__expand-btn:hover {
    background: rgba(255,255,255,.16);
    color: #fff;
}
.cpp__expand-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}
.cpp__expand-btn i {
    transition: transform .25s ease;
    font-size: 12px;
}

.cpp__bar-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.cpp__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.cpp__bar-text {
    min-width: 0;
    flex: 1;
}

.cpp__eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .75;
    margin-bottom: 2px;
}

.cpp__title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.cpp__subtitle {
    display: block;
    font-size: 12px;
    opacity: .65;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cpp__badge {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
}

.cpp__bar-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cpp__ctrl-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.cpp__ctrl-btn:hover:not(:disabled) {
    background: rgba(255,255,255,.18);
    color: #fff;
}
.cpp__ctrl-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.cpp__play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 24px;
    border: none;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.cpp__play-btn:hover:not(:disabled) {
    background: #f0f9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.cpp__play-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.cpp__play-btn i {
    font-size: 12px;
}

.cpp__progress-wrap {
    padding: 10px 20px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.cpp__progress {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #e5e7eb;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    margin-bottom: 6px;
}
.cpp__progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0070B9;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.cpp__time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ca3af;
    font-variant-numeric: tabular-nums;
}

.cpp__expanded {
    padding: 0 20px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.cpp__tracklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 10px;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.cpp__ready-label {
    font-weight: 600;
    color: #6b7280;
    text-transform: none;
    letter-spacing: 0;
}

.cpp__tracklist {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 240px;
    overflow-y: auto;
}

.cpp__track {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
    border: 1px solid transparent;
}
.cpp__track:hover:not(.cpp__track--disabled) {
    background: #fff;
    border-color: #e5e7eb;
}
.cpp__track--active {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.cpp__track--disabled {
    opacity: .55;
    cursor: default;
}

.cpp__track-num {
    width: 22px;
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    text-align: center;
    flex-shrink: 0;
}

.cpp__track-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cpp__track-status {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
}
.cpp__track-status--ready { color: #0070B9; }
.cpp__track-status--pending { color: #d97706; }

.cpp__loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 13px;
    color: #6b7280;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.cpp__spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e5e7eb;
    border-top-color: #0070B9;
    border-radius: 50%;
    animation: cpp-spin .8s linear infinite;
    flex-shrink: 0;
}
@keyframes cpp-spin { to { transform: rotate(360deg); } }

.cpp__progression {
    padding: 16px 20px 18px;
    background: #fff;
    border-top: 1px solid #f3f4f6;
}

.qualification-progression {
    margin-bottom: 20px;
    padding: 16px 20px 18px;
}

.cpp__progression-header {
    margin-bottom: 12px;
}

.cpp__progression-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #0070B9;
    margin-bottom: 2px;
}

.cpp__progression-hint {
    display: block;
    font-size: 12px;
    color: #9ca3af;
}

.cpp__progression-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cpp__progression-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fafbfc;
    text-decoration: none;
    color: inherit;
    transition: all .2s;
}
.cpp__progression-card:hover {
    border-color: #0070B9;
    background: #f0f9ff;
    box-shadow: 0 2px 8px rgba(0,112,185,.08);
}

.cpp__progression-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0f172a, #0070B9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.cpp__progression-card-body {
    flex: 1;
    min-width: 0;
}

.cpp__progression-card-type {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 2px;
}

.cpp__progression-card-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
}

.cpp__progression-card-chevron {
    color: #9ca3af;
    font-size: 14px;
    flex-shrink: 0;
    transition: transform .2s, color .2s;
}
.cpp__progression-card:hover .cpp__progression-card-chevron {
    color: #0070B9;
    transform: translateX(2px);
}

@media (max-width: 767px) {
    .cpp__bar {
        flex-wrap: wrap;
        padding: 14px 16px;
        gap: 10px;
    }
    .cpp__bar-controls {
        width: 100%;
        justify-content: center;
    }
    .cpp__badge { display: none; }
    .cpp__progress-wrap { padding: 10px 16px; }
    .cpp__expanded { padding: 0 16px 14px; }
    .cpp__progression { padding: 14px 16px 16px; }
}
