/* Design System & Premium Aesthetics for LMS SMEXA */

:root {
    --bg-main: #f6f9ff;
    --bg-card: #ffffff;
    --sidebar-bg: #ffffff;
    --sidebar-hover: #eff6ff;
    --sidebar-active: #2563eb;
    
    /* Brand Colors */
    --primary: #2563eb;
    --primary-light: #eff6ff;
    --primary-dark: #1d4ed8;
    
    --success: #10b981;
    --success-light: #d1fae5;
    
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    
    --danger: #ef4444;
    --danger-light: #fee2e2;
    
    --info: #06b6d4;
    --info-light: #ecfeff;
    
    /* Neutral Colors */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #ffffff;
    --border-color: #e2e8f0;
    
    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    
    /* Layout heights & widths */
    --sidebar-width: 260px;
    --navbar-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--text-light);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 100;
    transition: all 0.3s ease;
    border-right: 1px solid var(--border-color);
}

.sidebar-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-brand {
    flex-shrink: 0;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand i {
    font-size: 28px;
    color: var(--primary);
}

.sidebar-brand span {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sidebar-menu {
    flex: 1;
    min-height: 0;
    padding: 24px 16px;
    list-style: none;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 999px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.7);
}

.menu-item {
    margin-bottom: 8px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.menu-link i {
    font-size: 20px;
}

.menu-link:hover {
    color: var(--primary-dark);
    background-color: var(--sidebar-hover);
}

.menu-link.active {
    background-color: var(--sidebar-active);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.22);
}

.sidebar-footer {
    flex-shrink: 0;
    padding: 16px 20px 14px;
    border-top: 1px solid var(--border-color);
    background-color: #f8fafc;
}

.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--primary);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: capitalize;
}

.app-version {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid var(--border-color);
    color: rgba(148, 163, 184, 0.78);
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.2px;
}

.btn-logout {
    color: var(--text-muted);
    font-size: 20px;
    padding: 4px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.btn-logout:hover {
    color: var(--danger);
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    height: var(--navbar-height);
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
}

.navbar-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.academic-year-badge {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Content Frame */
.content-body {
    padding: 32px;
    flex: 1;
}

/* Page Header */
.page-header {
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* Card Elements */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    padding: 24px;
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.summary-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.summary-icon.primary { background-color: var(--primary-light); color: var(--primary); }
.summary-icon.success { background-color: var(--success-light); color: var(--success); }
.summary-icon.warning { background-color: var(--warning-light); color: var(--warning); }
.summary-icon.danger { background-color: var(--danger-light); color: var(--danger); }
.summary-icon.info { background-color: var(--info-light); color: var(--info); }

.summary-info h3 {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.summary-info p {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    background-color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(124, 77, 255, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: #cbd5e1;
}

.btn-danger {
    background-color: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.table th {
    padding: 14px 16px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.01);
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.table tbody tr:hover {
    background-color: rgba(124, 77, 255, 0.02);
}

/* Badges */
.badge {
    display: inline-flex;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    text-transform: capitalize;
}

.badge-success { background-color: var(--success-light); color: var(--success); }
.badge-warning { background-color: var(--warning-light); color: var(--warning); }
.badge-danger { background-color: var(--danger-light); color: var(--danger); }
.badge-info { background-color: var(--info-light); color: var(--info); }
.badge-primary { background-color: var(--primary-light); color: var(--primary); }

/* Status belajar siswa: badge teks tanpa ikon, dioptimalkan untuk tabel desktop. */
.learning-status-badge {
    min-width: 124px;
    justify-content: center;
    align-items: center;
    padding: 6px 12px;
    line-height: 1.2;
    white-space: nowrap;
}

/* Alerts */
.alert {
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background-color: var(--success-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #065f46;
}

.alert-danger {
    background-color: var(--danger-light);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

.alert-warning {
    background-color: var(--warning-light);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #92400e;
}

/* Footer */
.footer {
    padding: 24px 32px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: auto;
}

/* Desktop module components */
.section-description {
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 16px;
    line-height: 1.55;
}

.pre-line {
    white-space: pre-line;
}

.wizard-navigation {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.wizard-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.weight-total {
    font-weight: 700;
    margin-bottom: 16px;
}

.review-heading h2 {
    margin-top: 10px;
}

.module-review-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-main);
    padding: 20px;
    margin: 16px 0 20px;
}

.module-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.module-review-header h3 {
    margin-top: 5px;
}

.module-review-eyebrow {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.module-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.module-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    min-width: 0;
}

.module-info-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 20px;
}

.module-info-item small,
.weight-summary-item small {
    display: block;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.module-info-item strong {
    display: block;
    overflow-wrap: anywhere;
}

.module-review-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.module-review-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.module-review-section p {
    line-height: 1.65;
}

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

.weight-summary-item {
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
}

.weight-summary-item strong {
    font-size: 18px;
    color: var(--primary);
}

.module-page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.module-page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-page-actions form {
    margin: 0;
}

.module-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 24px;
    margin-bottom: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
}

.module-page-heading__main {
    min-width: 280px;
}

.module-page-heading__main h1 {
    margin-top: 8px;
    font-size: 28px;
    line-height: 1.2;
    color: var(--text-main);
}

.module-page-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 12px;
    flex: 1;
    max-width: 720px;
}

.module-page-meta__item {
    padding-left: 16px;
    border-left: 2px solid var(--border-color);
    min-width: 0;
}

.module-page-meta__item span {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.module-page-meta__item strong {
    display: block;
    overflow-wrap: anywhere;
}

.module-role-text.is-owner {
    color: var(--success);
}

.module-information-card {
    padding: 0;
    overflow: hidden;
}

.module-information-card__header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(124, 77, 255, 0.035);
}

.module-information-card__header h2 {
    font-size: 18px;
}

.module-information-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    align-items: stretch;
}

.module-information-panel {
    min-width: 0;
    padding: 22px 24px;
}

.module-information-panel__title {
    margin-bottom: 16px;
    color: var(--text-main);
    font-size: 15px;
}

.module-information-objectives-slot {
    position: relative;
    min-width: 0;
    min-height: 0;
}

.module-information-objectives {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.module-information-objectives__list {
    display: grid;
    flex: 1;
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 8px;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.module-information-objective {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-color);
}

.module-information-objective:first-child {
    padding-top: 0;
}

.module-information-objective:last-child {
    border-bottom: 0;
}

.module-information-objective__number {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
}

.module-information-objective p {
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.6;
}

.module-information-empty {
    color: var(--text-muted);
}

.module-information-status {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
}

.module-information-status__list {
    margin: 0;
}

.module-information-status__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.module-information-status__row:first-child {
    padding-top: 0;
}

.module-information-status__row dt {
    color: var(--text-muted);
    font-size: 13px;
}

.module-information-status__row dd {
    margin: 0;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.module-information-status__row--deadline dd {
    white-space: nowrap;
}

.module-information-status__note {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.module-information-status__note.is-warning {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.module-information-status__note.is-complete {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

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

    .module-information-objectives-slot {
        min-height: 0;
    }

    .module-information-objectives {
        position: relative;
        inset: auto;
        max-height: 360px;
    }

    .module-information-status {
        border-top: 1px solid var(--border-color);
        border-left: 0;
    }
}

.tab-navigation {
    align-items: center;
}

/* Rekap nilai per modul */
.module-grade-summary-table th,
.module-grade-summary-table td {
    vertical-align: middle;
}

.module-grade-student {
    min-width: 220px;
}

.module-grade-student strong,
.module-grade-student small {
    display: block;
}

.module-grade-student small {
    margin-top: 3px;
    color: var(--text-muted);
}

.module-grade-empty {
    color: var(--text-muted);
}

.module-grade-detail-toggle {
    white-space: nowrap;
}

.module-grade-detail-row > td {
    padding: 0;
    background: #f8fafc;
}

.module-grade-detail-row:hover {
    background: #f8fafc !important;
}

.module-grade-detail {
    padding: 22px 24px 24px;
    border-left: 3px solid var(--primary);
}

.module-grade-detail__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.module-grade-detail__header h3 {
    margin: 0;
    font-size: 17px;
}

.module-grade-detail__header p {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 13px;
}

.module-grade-detail-table {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.module-grade-detail-table th:nth-child(1) {
    min-width: 220px;
}

.module-grade-detail-table th:nth-child(3) {
    min-width: 180px;
}

.module-grade-detail-table th:nth-child(5) {
    min-width: 240px;
}

.module-grade-objective-row > td {
    padding: 11px 14px;
    background: #f4f6fb;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.module-grade-objective-row:hover > td {
    background: #f4f6fb !important;
}

.module-grade-objective-row.is-unlinked > td {
    background: #fffbeb;
}

.module-grade-objective-row.is-unlinked:hover > td {
    background: #fffbeb !important;
}

.module-grade-objective-row.is-quiz > td {
    background: #f7f3ff;
}

.module-grade-objective-row.is-quiz:hover > td {
    background: #f7f3ff !important;
}

.module-grade-objective-group {
    display: grid;
    grid-template-columns: minmax(78px, auto) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.module-grade-objective-group__label {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    white-space: nowrap;
}

.module-grade-objective-row.is-unlinked .module-grade-objective-group__label {
    color: #92400e;
}

.module-grade-objective-group strong {
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.module-grade-activity-material {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

/* Review Tujuan Pembelajaran pada wizard Modul */
.module-review-objectives {
    display: grid;
    gap: 8px;
    max-height: 260px;
    margin: 0;
    padding: 0 8px 0 0;
    list-style: none;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.module-review-objective {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
}

.module-review-objective__number {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.65;
}

.module-review-objective p {
    margin: 0;
    overflow-wrap: anywhere;
}

.module-review-objectives__empty {
    color: var(--text-muted);
}

/* Informasi Modul untuk siswa */
.student-module-information {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 24px;
    margin-top: 16px;
}

.student-module-information__description h3 {
    margin-bottom: 8px;
}

.student-module-information__description p {
    line-height: 1.65;
    white-space: pre-line;
}

.student-module-information__summary {
    margin: 0;
    padding-left: 24px;
    border-left: 1px solid var(--border-color);
}

.student-module-information__summary > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-color);
}

.student-module-information__summary > div:first-child {
    padding-top: 0;
}

.student-module-information__summary > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.student-module-information__summary dt {
    color: var(--text-muted);
    font-size: 13px;
}

.student-module-information__summary dd {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.student-module-information__note {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* Akses langsung dari Materi ke Tugas/Projek */
.material-related-activities__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.material-related-activities__header p {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 13px;
}

.material-related-activities__list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.material-related-activity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.material-related-activity__content {
    min-width: 0;
}

.material-related-activity__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.material-related-activity h3 {
    overflow-wrap: anywhere;
}

.material-related-activity__content > p {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 13px;
}

.material-related-activity__action {
    flex: 0 0 auto;
}

@media (max-width: 720px) {
    .student-module-information {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .student-module-information__summary {
        padding-top: 16px;
        padding-left: 0;
        border-top: 1px solid var(--border-color);
        border-left: 0;
    }

    .material-related-activity {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Detail Materi: penampil YouTube dan PDF langsung di halaman */
.material-text-content {
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.material-text-content--with-resource {
    margin-bottom: 18px;
}

.material-viewer {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-main);
}

.material-youtube-viewer {
    position: relative;
    aspect-ratio: 16 / 9;
}

.material-youtube-viewer iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.material-pdf-viewer {
    height: min(78vh, 820px);
    min-height: 640px;
}

.material-pdf-viewer object {
    width: 100%;
    height: 100%;
    border: 0;
}

.material-viewer-fallback {
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    text-align: center;
}

.material-resource-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.material-resource-description {
    margin-bottom: 14px;
}

@media (max-width: 720px) {
    .material-pdf-viewer {
        height: 68vh;
        min-height: 480px;
    }
}

/* Nilai per Tujuan Pembelajaran */
.module-grade-summary-table th[title] {
    min-width: 86px;
    cursor: help;
}

.module-grade-objective-score {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

/* Konsistensi lebar kolom Daftar Materi pada setiap Tujuan Pembelajaran */
.module-materials-table {
    width: 100%;
    table-layout: fixed;
}

.module-materials-table th,
.module-materials-table td {
    overflow-wrap: anywhere;
    vertical-align: middle;
}

.module-materials-table .module-materials-col-number {
    width: 7%;
}

.module-materials-table .module-materials-col-title {
    width: 34%;
}

.module-materials-table .module-materials-col-teacher {
    width: 20%;
}

.module-materials-table .module-materials-col-type {
    width: 12%;
}

.module-materials-table .module-materials-col-status {
    width: 17%;
}

.module-materials-table .module-materials-col-action {
    width: 27%;
}

.module-materials-table--student .module-materials-col-title {
    width: 29%;
}

.module-materials-table--student .module-materials-col-teacher {
    width: 17%;
}

.module-materials-table--student .module-materials-col-type {
    width: 11%;
}

.module-materials-table--student .module-materials-col-action {
    width: 19%;
}

/* Instruksi Materi dengan fenced code block */
.material-rich-content {
    display: grid;
    gap: 14px;
}

.material-prose {
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.material-code-block {
    overflow: hidden;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #0f172a;
}

.material-code-block__label {
    padding: 8px 14px;
    border-bottom: 1px solid #334155;
    color: #cbd5e1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
}

.material-code-block pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    color: #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.65;
    tab-size: 4;
    white-space: pre;
}

.material-code-block code {
    font: inherit;
    color: inherit;
}

/* Preview file GitHub di halaman Materi */
.material-github-viewer {
    height: min(72vh, 760px);
    min-height: 520px;
    background: #fff;
}

.material-github-viewer iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

@media (max-width: 720px) {
    .module-materials-table {
        min-width: 760px;
    }

    .material-github-viewer {
        height: 64vh;
        min-height: 440px;
    }
}

/* =========================================================
   Jalur Pembelajaran Terkontrol Kurikulum
   ========================================================= */
.muted,
.form-hint,
.table-note {
    color: var(--text-muted);
}

.form-hint,
.table-note {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
}

.text-success { color: var(--success); }
.text-warning { color: #b45309; }
.text-danger { color: var(--danger); }

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

.toolbar-actions,
.curriculum-inline-actions,
.curriculum-title-line,
.curriculum-card-head,
.curriculum-section-header,
.learning-path-card-top,
.path-card-footer,
.meeting-head,
.teacher-meeting-card,
.student-progress-hero,
.student-meeting-step,
.completion-state {
    display: flex;
    align-items: center;
}

.toolbar-actions,
.curriculum-inline-actions {
    flex-wrap: wrap;
    gap: 10px;
}

.form-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.four-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-group.large { grid-column: 1 / -1; }
.form-group.compact { margin-bottom: 10px; }

.curriculum-principle {
    justify-content: space-between;
    gap: 24px;
    border-left: 4px solid var(--primary);
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
}

.curriculum-principle-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--primary);
    color: #fff;
    font-size: 30px;
}

.curriculum-principle h2,
.curriculum-section-header h2,
.curriculum-card-head h3,
.learning-path-card h3,
.teacher-meeting-content h3,
.step-content h3,
.lesson-content-card h2 {
    margin: 0;
}

.curriculum-principle p,
.curriculum-card-head p,
.learning-path-card p,
.teacher-meeting-content p,
.step-content p {
    margin-top: 6px;
    line-height: 1.55;
    color: var(--text-muted);
}

.curriculum-title-line,
.curriculum-card-head,
.curriculum-section-header,
.learning-path-card-top,
.path-card-footer,
.meeting-head,
.completion-state {
    justify-content: space-between;
    gap: 16px;
}

.curriculum-title-line {
    align-items: flex-start;
}

.curriculum-meta-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.curriculum-meta-card > div,
.unit-overview-item,
.score-box {
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #f8fafc;
}

.meta-label,
.unit-label {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.publication-panel {
    border-color: rgba(124, 77, 255, .25);
    background: linear-gradient(135deg, #fff 0%, #faf7ff 100%);
}

.validation-list {
    margin: 14px 0 0 18px;
    color: var(--danger);
    line-height: 1.6;
}

.curriculum-section-header {
    margin-bottom: 16px;
    align-items: flex-start;
}

.empty-state,
.timeline-empty {
    padding: 34px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    text-align: center;
    color: var(--text-muted);
    background: #f8fafc;
}

.empty-state i,
.timeline-empty i {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 36px;
}

.curriculum-element-card,
.curriculum-unit-card,
.learning-path-card,
.teacher-meeting-card,
.student-meeting-step,
.lesson-content-card,
.completion-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-card);
    box-shadow: 0 3px 10px rgba(15, 23, 42, .04);
}

.curriculum-element-card,
.curriculum-unit-card {
    padding: 20px;
    margin-bottom: 18px;
}

.curriculum-card-head {
    align-items: flex-start;
    margin-bottom: 14px;
}

.sequence-pill,
.meeting-number,
.teacher-meeting-number,
.step-marker,
.progress-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.sequence-pill {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
}

.cp-box,
.activity-box,
.submission-preview {
    padding: 16px;
    border-radius: 12px;
    line-height: 1.65;
}

.cp-box {
    margin-bottom: 14px;
    border-left: 4px solid var(--info);
    background: var(--info-light);
}

.activity-box {
    margin-top: 18px;
    border: 1px solid #bae6fd;
    background: #f0f9ff;
}

.submission-preview {
    margin-top: 14px;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    overflow-wrap: anywhere;
}

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

.tp-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
}

.tp-code {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.tp-content {
    flex: 1;
    min-width: 0;
    line-height: 1.55;
}

.inline-editor {
    margin-top: 14px;
}

.inline-editor > summary {
    cursor: pointer;
    color: var(--primary);
    font-weight: 700;
}

.inline-editor-panel,
.nested-form,
.meeting-editor,
.review-form {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #f8fafc;
}

.checkbox-row,
.checkbox-grid label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    line-height: 1.45;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.add-structure-card {
    border-style: dashed;
    background: #fcfcff;
}

.objective-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.objective-chips span {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 600;
}

.objective-chips .chip-warning {
    background: var(--warning-light);
    color: #92400e;
}

.meeting-timeline,
.teacher-path-timeline,
.student-learning-timeline {
    display: grid;
    gap: 14px;
}

.meeting-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    position: relative;
}

.meeting-number,
.teacher-meeting-number {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
}

.meeting-body {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #fff;
}

.meeting-head {
    align-items: flex-start;
}

.unit-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.learning-path-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.learning-path-card {
    display: flex;
    min-height: 230px;
    flex-direction: column;
    padding: 20px;
    margin: 0;
}

.learning-path-card-top {
    align-items: flex-start;
}

.path-card-footer {
    margin-top: auto;
    padding-top: 18px;
    align-items: flex-end;
}

.progress-track {
    width: 100%;
    height: 9px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.progress-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
}

.semester-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 2px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.semester-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.teacher-meeting-card {
    gap: 16px;
    padding: 17px;
    align-items: flex-start;
}

.teacher-meeting-content,
.step-content {
    flex: 1;
    min-width: 0;
}

.meeting-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.is-readonly {
    opacity: .78;
}

.teacher-meeting-layout,
.student-meeting-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
    gap: 22px;
    align-items: start;
}

.sticky-card {
    position: sticky;
    top: calc(var(--navbar-height) + 20px);
}

.content-readable {
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.content-readable h1,
.content-readable h2,
.content-readable h3,
.content-readable h4 {
    margin: 1.2em 0 .5em;
}

.content-readable p,
.content-readable ul,
.content-readable ol {
    margin: 0 0 1em;
}

.score-box {
    margin-top: 14px;
    text-align: center;
}

.score-box strong {
    display: block;
    margin-top: 4px;
    color: var(--primary);
    font-size: 28px;
}

.student-progress-hero {
    justify-content: space-between;
    gap: 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border: 0;
}

.student-progress-hero span,
.student-progress-hero strong {
    display: block;
}

.student-progress-hero span {
    opacity: .82;
    font-size: 13px;
}

.student-progress-hero strong {
    margin-top: 4px;
    font-size: 20px;
}

.progress-circle {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    border: 5px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.student-meeting-step {
    gap: 16px;
    padding: 18px;
    align-items: flex-start;
}

.step-marker {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
}

.student-meeting-step.is-completed {
    border-color: #a7f3d0;
    background: #f7fffb;
}

.student-meeting-step.is-completed .step-marker {
    background: var(--success);
    color: #fff;
}

.student-meeting-step.is-locked {
    opacity: .66;
    background: #f8fafc;
}

.student-meeting-step.is-locked .step-marker {
    background: #e2e8f0;
    color: var(--text-muted);
}

.step-action {
    flex: 0 0 auto;
    align-self: center;
    text-align: right;
}

.lesson-content-card,
.completion-card {
    padding: 22px;
}

.completion-card {
    margin-bottom: 18px;
}

.completion-state {
    align-items: flex-start;
}

.completion-state i {
    color: var(--primary);
    font-size: 30px;
}

@media (max-width: 1100px) {
    .form-grid.four-columns,
    .form-grid.three-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .teacher-meeting-layout,
    .student-meeting-layout {
        grid-template-columns: 1fr;
    }

    .sticky-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .form-grid.two-columns,
    .form-grid.three-columns,
    .form-grid.four-columns {
        grid-template-columns: 1fr;
    }

    .curriculum-principle,
    .student-progress-hero,
    .student-meeting-step,
    .teacher-meeting-card,
    .curriculum-title-line,
    .curriculum-card-head,
    .path-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

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

    .step-action {
        width: 100%;
        text-align: left;
    }

    .step-action .btn {
        justify-content: center;
        width: 100%;
    }
}

/* Ketuntasan TP dan Elemen */
.curriculum-mastery-list {
    display: grid;
    gap: 12px;
}

.curriculum-mastery-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-main);
    overflow: hidden;
}

.curriculum-mastery-item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.curriculum-mastery-item > summary::-webkit-details-marker {
    display: none;
}

.curriculum-mastery-item > summary span:first-child {
    display: grid;
    gap: 4px;
}

.curriculum-mastery-item > summary small,
.curriculum-mastery-objectives small {
    color: var(--text-muted);
}

.curriculum-mastery-objectives {
    display: grid;
    gap: 8px;
    padding: 0 16px 16px;
}

.curriculum-mastery-objectives > div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
}

.curriculum-mastery-objectives > div > span:first-child {
    display: grid;
    gap: 4px;
}

@media (max-width: 768px) {
    .curriculum-mastery-item > summary,
    .curriculum-mastery-objectives > div {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   ver-dev 4.0.0 — Domain pembelajaran terkontrol Kurikulum
   ========================================================= */
.subject-eyebrow,
.subject-section-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.subject-workspace-hero,
.meeting-workspace-hero,
.lesson-mobile-hero,
.lesson-now-card,
.subject-section-head,
.subject-unit-head,
.subject-meeting-row,
.subject-meeting-title-line,
.assignment-chip,
.workspace-step-card,
.workspace-step-heading,
.teacher-guide-card-head,
.teacher-material-head,
.activity-workspace-head,
.review-queue-head,
.completion-state,
.lesson-objective-panel > summary,
.lesson-step-card,
.student-step-content-head,
.student-step-rule,
.student-feedback-box,
.lesson-step-sidebar-head {
    display: flex;
    align-items: center;
}

.subject-workspace-hero {
    position: relative;
    justify-content: space-between;
    gap: 28px;
    overflow: hidden;
    padding: 28px;
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, #172554 0%, var(--primary-dark) 45%, var(--primary) 100%);
}

.subject-workspace-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 300px;
    height: 300px;
    border: 55px solid rgba(255,255,255,.07);
    border-radius: 50%;
}

.subject-workspace-copy,
.subject-hero-progress {
    position: relative;
    z-index: 1;
}

.subject-workspace-copy {
    max-width: 820px;
}

.subject-workspace-hero .subject-eyebrow {
    color: rgba(255,255,255,.72);
}

.subject-workspace-hero h2 {
    margin: 0 0 8px;
    font-size: clamp(23px, 3vw, 34px);
}

.subject-workspace-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255,255,255,.82);
    line-height: 1.65;
}

.subject-hero-meta,
.meeting-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.subject-hero-meta span,
.meeting-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.92);
    font-size: 12px;
    font-weight: 600;
}

.subject-hero-progress {
    min-width: 190px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
    text-align: center;
}

.subject-hero-progress span,
.subject-hero-progress small,
.subject-hero-progress strong {
    display: block;
}

.subject-hero-progress span,
.subject-hero-progress small {
    color: rgba(255,255,255,.74);
}

.subject-hero-progress strong {
    margin: 4px 0;
    font-size: 42px;
    line-height: 1;
}

.teacher-subject-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.subject-section-card {
    margin-top: 20px;
}

.subject-section-head,
.subject-unit-head,
.subject-plan-header {
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.subject-section-head {
    margin-bottom: 18px;
}

.subject-section-head h2,
.subject-plan-header h2,
.subject-unit-head h2 {
    margin: 0;
}

.subject-section-head p,
.subject-plan-header p,
.subject-unit-head p {
    margin: 5px 0 0;
    color: var(--text-muted);
    line-height: 1.55;
}

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

.subject-cp-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    background: var(--bg-main);
}

.subject-cp-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.subject-cp-card-head > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.subject-cp-card h3 {
    margin: 0;
    font-size: 16px;
}

.subject-cp-text {
    padding: 14px;
    border-left: 4px solid var(--info);
    border-radius: 0 12px 12px 0;
    background: var(--info-light);
}

.subject-cp-text span {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.subject-cp-text p {
    margin: 0;
    line-height: 1.55;
}

.subject-tp-list {
    display: grid;
    gap: 8px;
    margin-top: 13px;
}

.subject-tp-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
}

.subject-tp-item strong {
    color: var(--primary);
    font-size: 12px;
}

.subject-tp-item span {
    font-size: 13px;
    line-height: 1.45;
}

.assignment-chip-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.assignment-chip {
    gap: 11px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    background: var(--bg-main);
}

.assignment-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 20px;
}

.assignment-chip > span:last-child,
.assignment-chip strong,
.assignment-chip small {
    display: block;
}

.assignment-chip small {
    margin-top: 2px;
    color: var(--text-muted);
    line-height: 1.35;
}

.subject-plan-header {
    display: flex;
    margin: 30px 0 16px;
}

.phase-filter {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
}

.phase-filter a {
    padding: 8px 12px;
    border-radius: 9px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.phase-filter a:hover,
.phase-filter a.is-active {
    color: var(--primary);
    background: var(--primary-light);
}

.subject-unit-list,
.subject-meeting-list {
    display: grid;
    gap: 14px;
}

.subject-unit-section {
    padding: 0;
    overflow: hidden;
}

.subject-unit-head {
    padding: 20px 22px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-main), var(--bg-card));
}

.subject-unit-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 8px;
}

.subject-unit-count {
    flex: 0 0 auto;
    padding: 8px 11px;
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 12px;
    font-weight: 800;
}

.subject-meeting-list {
    padding: 16px;
}

.subject-meeting-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    gap: 14px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-card);
    align-items: center;
}

.subject-meeting-number,
.workspace-step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 11px;
    color: #fff;
    background: var(--primary);
    font-weight: 800;
}

.subject-meeting-main {
    min-width: 0;
}

.subject-meeting-title-line {
    justify-content: flex-start;
    gap: 9px;
    align-items: flex-start;
}

.subject-meeting-title-line h3 {
    margin: 0;
    font-size: 16px;
}

.subject-meeting-main > p {
    margin: 5px 0 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.meeting-component-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.meeting-component-chips span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--text-muted);
    background: var(--bg-main);
    font-size: 11px;
    font-weight: 650;
}

.meeting-component-chips .chip-danger {
    color: #b91c1c;
    background: var(--danger-light);
}

.subject-meeting-progress,
.meeting-hero-summary,
.workspace-step-stats {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.subject-meeting-progress > div,
.workspace-step-stats > div {
    min-width: 64px;
    padding: 8px;
    border-radius: 10px;
    background: var(--bg-main);
    text-align: center;
}

.subject-meeting-progress strong,
.subject-meeting-progress span,
.workspace-step-stats strong,
.workspace-step-stats span {
    display: block;
}

.subject-meeting-progress strong,
.workspace-step-stats strong {
    color: var(--primary);
    font-size: 18px;
}

.subject-meeting-progress span,
.workspace-step-stats span {
    color: var(--text-muted);
    font-size: 10px;
}

.subject-meeting-progress .has-warning strong {
    color: #d97706;
}

.subject-meeting-action {
    min-width: 126px;
    text-align: right;
}

/* Teacher meeting workspace */
.meeting-workspace-hero {
    justify-content: space-between;
    gap: 22px;
    padding: 23px;
    border-left: 5px solid var(--primary);
}

.meeting-workspace-hero h2 {
    max-width: 820px;
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
}

.meeting-workspace-hero .meeting-hero-meta span {
    color: var(--text-muted);
    border-color: var(--border-color);
    background: var(--bg-main);
}

.meeting-hero-summary > div {
    min-width: 98px;
    padding: 13px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-main);
    text-align: center;
}

.meeting-hero-summary strong,
.meeting-hero-summary span {
    display: block;
}

.meeting-hero-summary strong {
    color: var(--primary);
    font-size: 24px;
}

.meeting-hero-summary span {
    color: var(--text-muted);
    font-size: 11px;
}

.meeting-workspace-nav {
    display: flex;
    gap: 5px;
    margin: 18px 0;
    padding: 5px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-card);
}

.meeting-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: max-content;
    padding: 10px 13px;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.meeting-tab:hover,
.meeting-tab.is-active {
    color: var(--primary);
    background: var(--primary-light);
}

.meeting-tab b {
    min-width: 20px;
    padding: 2px 6px;
    border-radius: 999px;
    color: #fff;
    background: var(--danger);
    font-size: 10px;
    text-align: center;
}

.meeting-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(270px, .7fr);
    gap: 18px;
}

.wide-panel {
    min-width: 0;
}

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

.meeting-objective-list article {
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-main);
}

.meeting-objective-list article > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.meeting-objective-list p {
    margin: 8px 0 3px;
    line-height: 1.55;
}

.meeting-objective-list small {
    color: var(--text-muted);
}

.meeting-status-list {
    display: grid;
    gap: 8px;
    margin: 14px 0 18px;
}

.meeting-status-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.meeting-status-list span {
    color: var(--text-muted);
}

.meeting-status-list strong {
    color: var(--primary);
    font-size: 18px;
}

.workspace-step-sequence,
.teacher-material-list,
.review-queue {
    display: grid;
    gap: 12px;
}

.workspace-step-card {
    display: grid;
    grid-template-columns: 38px 42px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-main);
    align-items: center;
}

.workspace-step-icon,
.student-step-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 21px;
}

.workspace-step-copy {
    min-width: 0;
}

.workspace-step-heading {
    justify-content: flex-start;
    gap: 9px;
    align-items: flex-start;
}

.workspace-step-heading h3 {
    margin: 0;
    font-size: 15px;
}

.workspace-step-copy > p {
    margin: 5px 0 0;
    color: var(--text-muted);
}

.teacher-guide-highlight {
    padding: 18px;
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    background: var(--primary-light);
}

.teacher-guide-grid,
.activity-workspace-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.teacher-guide-card {
    margin: 0;
}

.teacher-guide-card-head {
    gap: 10px;
    margin-bottom: 14px;
    align-items: flex-start;
}

.teacher-guide-card-head > span:last-child,
.teacher-guide-card-head strong,
.teacher-guide-card-head small {
    display: block;
}

.teacher-guide-card-head small {
    margin-top: 3px;
    color: var(--text-muted);
}

.teacher-material-card {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.teacher-material-head {
    gap: 11px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-main);
    align-items: flex-start;
}

.teacher-material-head h3,
.teacher-material-head p {
    margin: 0;
}

.teacher-material-head p {
    margin-top: 4px;
    color: var(--text-muted);
}

.student-content-preview,
.activity-instruction-preview {
    padding: 20px;
}

.activity-workspace-card {
    margin: 0;
}

.activity-workspace-head {
    gap: 11px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.activity-workspace-head h3 {
    margin: 5px 0 0;
}

.activity-instruction-preview {
    margin: 13px 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-main);
}

.review-queue-card {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-main);
}

.review-queue-head {
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.review-queue-head h3 {
    margin: 7px 0 0;
}

.review-queue-head p {
    margin: 3px 0 0;
    color: var(--text-muted);
}

.review-minimum {
    padding: 7px 9px;
    border-radius: 9px;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 12px;
    font-weight: 800;
}

.review-action-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.inline-progress {
    min-width: 150px;
}

.inline-progress > div {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.inline-progress > div > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
}

.inline-progress small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
}

/* Student dynamic meeting */
.lesson-mobile-hero {
    justify-content: space-between;
    gap: 22px;
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.lesson-hero-copy {
    flex: 1;
}

.lesson-hero-copy span,
.lesson-hero-copy strong {
    display: block;
}

.lesson-hero-copy span {
    color: rgba(255,255,255,.75);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.lesson-hero-copy strong {
    margin-top: 5px;
    font-size: 19px;
}

.lesson-progress-track {
    height: 9px;
    margin-top: 13px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.2);
}

.lesson-progress-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #fff;
}

.lesson-progress-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    border: 5px solid rgba(255,255,255,.25);
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    font-size: 20px;
    font-weight: 800;
}

.lesson-objective-panel {
    padding: 0;
    overflow: hidden;
}

.lesson-objective-panel > summary {
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    cursor: pointer;
    font-weight: 750;
    list-style: none;
}

.lesson-objective-panel > summary::-webkit-details-marker {
    display: none;
}

.lesson-objective-panel > summary span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lesson-objective-list {
    display: grid;
    gap: 9px;
    padding: 0 18px 18px;
}

.lesson-objective-list > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 10px;
    padding: 11px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-main);
}

.lesson-objective-list strong {
    color: var(--primary);
}

.lesson-objective-list small {
    grid-column: 2;
    color: var(--text-muted);
}

.lesson-now-card {
    gap: 12px;
    padding: 15px;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.lesson-now-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    color: #fff;
    background: var(--primary);
    font-size: 21px;
}

.lesson-now-card > div {
    flex: 1;
    min-width: 0;
}

.lesson-now-card span,
.lesson-now-card strong,
.lesson-now-card small {
    display: block;
}

.lesson-now-card > div > span {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.lesson-now-card small {
    margin-top: 3px;
    color: var(--text-muted);
}

.student-lesson-workspace {
    display: grid;
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.lesson-step-sidebar {
    position: sticky;
    top: calc(var(--navbar-height) + 18px);
    padding: 0;
    overflow: hidden;
}

.lesson-step-sidebar-head {
    justify-content: space-between;
    gap: 10px;
    padding: 15px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-main);
}

.lesson-step-sidebar-head span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.lesson-step-list {
    display: grid;
    gap: 7px;
    padding: 12px;
}

.lesson-step-card {
    gap: 10px;
    padding: 11px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: inherit;
    background: transparent;
    text-decoration: none;
    align-items: flex-start;
}

.lesson-step-card:hover,
.lesson-step-card.is-current {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.lesson-step-card.is-completed {
    background: #f0fdf4;
}

.lesson-step-card.is-locked {
    opacity: .55;
    cursor: not-allowed;
}

.lesson-step-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 10px;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 12px;
    font-weight: 800;
}

.lesson-step-card.is-completed .lesson-step-marker {
    color: #fff;
    background: var(--success);
}

.lesson-step-copy {
    min-width: 0;
}

.lesson-step-copy small,
.lesson-step-copy strong,
.lesson-step-copy em {
    display: block;
}

.lesson-step-copy small {
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
}

.lesson-step-copy strong {
    margin: 3px 0;
    font-size: 13px;
    line-height: 1.35;
}

.lesson-step-copy em {
    color: var(--primary);
    font-size: 10px;
    font-style: normal;
}

.student-step-reader {
    min-width: 0;
}

.student-step-content-card {
    padding: 0;
    overflow: hidden;
}

.student-step-content-head {
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-main);
    align-items: flex-start;
}

.student-step-content-head > div:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.student-step-content-head span,
.student-step-content-head h2,
.student-step-content-head p {
    margin: 0;
}

.student-step-content-head > div:nth-child(2) > span {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.student-step-content-head h2 {
    margin-top: 4px;
}

.student-step-content-head p {
    margin-top: 6px;
    color: var(--text-muted);
}

.student-step-content-body {
    min-height: 250px;
    padding: 24px;
}

.student-step-rule {
    gap: 9px;
    margin: 0 20px 20px;
    padding: 12px;
    border: 1px solid #bae6fd;
    border-radius: 11px;
    color: #0c4a6e;
    background: #f0f9ff;
    align-items: flex-start;
}

.student-step-rule i {
    margin-top: 2px;
    font-size: 19px;
}

.student-step-action-card {
    margin-top: 16px;
}

.student-step-action-card .completion-state {
    gap: 11px;
}

.student-step-action-card .completion-state i {
    font-size: 32px;
}

.student-feedback-box {
    gap: 10px;
    margin: 14px 0;
    padding: 13px;
    border-radius: 11px;
    background: var(--info-light);
    align-items: flex-start;
}

.student-feedback-box strong,
.student-feedback-box p {
    margin: 0;
}

.lesson-complete-alert {
    margin-bottom: 18px;
}

/* Curriculum builder additions used by the 4.0.0 curriculum editor */
.curriculum-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.curriculum-meeting-builder,
.curriculum-step-builder {
    display: grid;
    gap: 12px;
}

.curriculum-meeting-workspace,
.curriculum-step-row {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-main);
}

.curriculum-meeting-workspace {
    padding: 16px;
}

.curriculum-step-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 13px;
    align-items: flex-start;
}

.curriculum-step-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 19px;
}

.curriculum-step-copy {
    min-width: 0;
}

.curriculum-step-title {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.curriculum-step-title h4 {
    margin: 0;
}

.curriculum-step-editor {
    min-width: 160px;
}

.compact-alert {
    padding: 10px 12px;
}

.meeting-actions-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.form-help {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

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

    .subject-cp-grid,
    .teacher-guide-grid,
    .activity-workspace-grid {
        grid-template-columns: 1fr;
    }

    .subject-meeting-row {
        grid-template-columns: 42px minmax(0, 1fr) auto;
    }

    .subject-meeting-action {
        grid-column: 2 / -1;
        text-align: left;
    }

    .meeting-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .subject-workspace-hero,
    .meeting-workspace-hero,
    .subject-plan-header,
    .subject-unit-head {
        align-items: stretch;
        flex-direction: column;
    }

    .subject-hero-progress {
        width: 100%;
    }

    .meeting-hero-summary {
        width: 100%;
    }

    .meeting-hero-summary > div {
        flex: 1;
    }

    .student-lesson-workspace {
        grid-template-columns: 1fr;
    }

    .lesson-step-sidebar {
        position: static;
    }
}

@media (max-width: 720px) {
    .teacher-subject-summary,
    .curriculum-summary-grid {
        grid-template-columns: 1fr;
    }

    .subject-meeting-row,
    .workspace-step-card,
    .curriculum-step-row {
        grid-template-columns: 1fr;
    }

    .subject-meeting-progress,
    .workspace-step-stats {
        width: 100%;
    }

    .subject-meeting-progress > div,
    .workspace-step-stats > div {
        flex: 1;
    }

    .subject-meeting-action,
    .subject-meeting-action .btn {
        width: 100%;
    }

    .subject-meeting-action .btn {
        justify-content: center;
    }

    .phase-filter {
        width: 100%;
        overflow-x: auto;
    }

    .phase-filter a {
        min-width: max-content;
    }

    .meeting-hero-summary,
    .lesson-mobile-hero,
    .lesson-now-card,
    .student-step-content-head,
    .review-queue-head {
        align-items: stretch;
        flex-direction: column;
    }

    .meeting-hero-summary > div {
        min-width: 0;
    }

    .lesson-progress-number {
        align-self: flex-start;
    }

    .student-step-content-head > .badge {
        align-self: flex-start;
    }
}

/* Student path overview */
.student-path-hero,
.student-path-now,
.student-meeting-meta {
    display: flex;
    align-items: center;
}

.student-path-hero {
    justify-content: space-between;
    gap: 24px;
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, #172554, var(--primary));
}

.student-path-hero-copy {
    flex: 1;
}

.student-path-hero-copy > span {
    color: rgba(255,255,255,.72);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.student-path-hero h2 {
    margin: 5px 0;
}

.student-path-hero p {
    max-width: 730px;
    margin: 0;
    color: rgba(255,255,255,.78);
}

.student-path-track {
    max-width: 720px;
    background: rgba(255,255,255,.2);
}

.student-path-track > span {
    background: #fff;
}

.student-path-score {
    min-width: 130px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    background: rgba(255,255,255,.1);
    text-align: center;
}

.student-path-score strong,
.student-path-score span {
    display: block;
}

.student-path-score strong {
    font-size: 34px;
}

.student-path-score span {
    color: rgba(255,255,255,.72);
    font-size: 11px;
}

.student-path-now {
    gap: 12px;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.student-path-now > div {
    flex: 1;
    min-width: 0;
}

.student-path-now span,
.student-path-now strong,
.student-path-now small {
    display: block;
}

.student-path-now > div > span {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.student-path-now small {
    margin-top: 3px;
    color: var(--text-muted);
}

.student-path-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.student-path-plan-header {
    margin: 28px 0 15px;
}

.student-path-plan-header h2,
.student-path-plan-header p {
    margin: 0;
}

.student-path-plan-header p {
    margin-top: 5px;
    color: var(--text-muted);
}

.student-meeting-meta {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.student-meeting-meta > span:not(.badge) {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 11px;
}

.student-meeting-inline-progress {
    max-width: 340px;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .student-path-hero,
    .student-path-now {
        align-items: stretch;
        flex-direction: column;
    }

    .student-path-score {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .student-path-summary {
        grid-template-columns: 1fr;
    }

    .student-path-now .btn {
        width: 100%;
        justify-content: center;
    }
}

/* LMS SMEXA v4 - sumber belajar pada langkah pertemuan */
.learning-resource { margin: 18px 0; }
.learning-resource__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--border-color); border-radius: 14px; background: #0f172a; }
.learning-resource__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.learning-resource__frame--document { min-height: 560px; aspect-ratio: auto; background: #fff; }
.learning-resource--pdf .btn { margin-top: 10px; }
.learning-resource--link { display: flex; justify-content: flex-start; }
@media (max-width: 768px) { .learning-resource__frame--document { min-height: 420px; } }

/* Curriculum CP create flow v4.1.1 */
.cp-elements-header {
    margin-top: 24px;
}
.cp-element-list {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}
.cp-element-editor {
    margin: 0;
    border-style: dashed;
}
.cp-create-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

/* LMS SMEXA v4.2 — fresh white/blue theme + dark mode */
.sidebar-brand,
.user-profile-widget,
.sidebar-footer { color: var(--text-main); }
.sidebar .menu-link { color: #64748b; }
.sidebar .menu-link:hover { color: var(--primary-dark); background: var(--primary-light); }
.sidebar .menu-link.active { color: #fff; background: var(--primary); }
.navbar, .card, .summary-card { background: var(--bg-card); border-color: var(--border-color); }
.theme-toggle { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-main); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; font-size:20px; }
.theme-toggle:hover { background: var(--primary-light); color: var(--primary); }
.curriculum-card-grid, .student-cp-grid, .student-class-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:18px; }
.cp-overview-card, .student-cp-card, .student-class-card { text-decoration:none; color:inherit; }
.cp-overview-head, .student-cp-card-head, .cp-capacity-head { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; }
.cp-overview-head h2, .student-cp-card-head h2 { margin:8px 0 4px; }
.cp-meeting-count, .student-cp-progress { text-align:right; color:var(--text-muted); }
.cp-meeting-count strong, .student-cp-progress strong { display:block; color:var(--primary); font-size:28px; line-height:1; }
.cp-overview-stats { display:flex; gap:18px; flex-wrap:wrap; margin:14px 0; color:var(--text-muted); }
.progress-track { height:8px; background:#e8eef8; border-radius:999px; overflow:hidden; margin:14px 0; }
.progress-track span { display:block; height:100%; background:linear-gradient(90deg,var(--primary),#60a5fa); border-radius:inherit; }
.progress-track.large { height:12px; }
.cp-capacity-number { min-width:100px; padding:14px; border-radius:16px; background:var(--primary-light); color:var(--primary); font-size:32px; font-weight:700; text-align:center; }
.cp-capacity-number small { display:block; font-size:12px; font-weight:500; color:var(--text-muted); }
.semester-scale { display:grid; grid-template-columns:1fr 1fr 1fr 1fr; color:var(--text-muted); font-size:12px; }
.semester-scale span:nth-child(2), .semester-scale span:nth-child(3) { text-align:center; }
.semester-scale span:last-child { text-align:right; }
.curriculum-subsection { margin-top:24px; border-top:1px solid var(--border-color); padding-top:20px; }
.curriculum-meeting-card { border:1px solid var(--border-color); border-radius:16px; padding:18px; margin-top:14px; background:var(--bg-card); }
.tp-list, .step-admin-list, .meeting-overview-list { display:grid; gap:10px; }
.tp-item, .step-admin-item, .meeting-overview-row { display:flex; gap:16px; justify-content:space-between; align-items:flex-start; padding:14px; border:1px solid var(--border-color); border-radius:12px; }
.tp-item p { margin:6px 0; color:var(--text-muted); }
.tp-inline-list { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
.advanced-form { margin:12px 0; padding:12px; border:1px solid var(--border-color); border-radius:12px; }
.advanced-form summary { cursor:pointer; color:var(--primary); font-weight:600; }
.next-release-panel { display:flex; justify-content:space-between; align-items:center; gap:18px; border-left:4px solid var(--primary); }
.student-class-card { display:flex; align-items:center; gap:18px; transition:.2s ease; }
.student-class-card:hover, .student-cp-card:hover { transform:translateY(-2px); border-color:#93c5fd; box-shadow:0 10px 28px rgba(37,99,235,.10); }
.student-class-icon { width:52px; height:52px; border-radius:16px; background:var(--primary-light); color:var(--primary); display:flex; align-items:center; justify-content:center; font-size:26px; }
.student-class-arrow { margin-left:auto; font-size:24px; color:var(--text-muted); }
.student-cp-description { color:var(--text-muted); margin:14px 0; line-height:1.6; }
.student-cp-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:14px; }
.student-element-section { margin-top:18px; }
.student-meeting-material-card { margin-bottom:18px; }

[data-theme="dark"] {
    --bg-main:#08111f;
    --bg-card:#0f1b2d;
    --sidebar-bg:#0b1627;
    --sidebar-hover:#16263d;
    --sidebar-active:#2563eb;
    --primary:#60a5fa;
    --primary-light:#142a46;
    --primary-dark:#93c5fd;
    --text-main:#e5edf8;
    --text-muted:#93a4ba;
    --text-light:#ffffff;
    --border-color:#25364d;
    --success-light:#0f3428;
    --warning-light:#3a2b0c;
    --danger-light:#3b171c;
    --info-light:#103341;
}
[data-theme="dark"] body { background:var(--bg-main); color:var(--text-main); }
[data-theme="dark"] .sidebar { background:var(--sidebar-bg); border-right-color:var(--border-color); }
[data-theme="dark"] .sidebar-brand,
[data-theme="dark"] .user-profile-widget,
[data-theme="dark"] .sidebar-footer { color:var(--text-main); }
[data-theme="dark"] .sidebar-footer { background:#0b1627; }
[data-theme="dark"] .sidebar .menu-link { color:#9fb0c6; }
[data-theme="dark"] .sidebar .menu-link:hover { color:#fff; background:var(--sidebar-hover); }
[data-theme="dark"] .navbar,
[data-theme="dark"] .card,
[data-theme="dark"] .summary-card,
[data-theme="dark"] .curriculum-meeting-card,
[data-theme="dark"] .form-control,
[data-theme="dark"] .table { background:var(--bg-card); color:var(--text-main); }
[data-theme="dark"] .form-control { border-color:var(--border-color); }
[data-theme="dark"] .form-control::placeholder { color:#64748b; }
[data-theme="dark"] .table th,
[data-theme="dark"] .table td { border-color:var(--border-color); }
[data-theme="dark"] .progress-track { background:#1c2d45; }
[data-theme="dark"] .content-panel,
[data-theme="dark"] .nested-form { background:#0c1727; border-color:var(--border-color); }
@media (max-width: 900px) { .next-release-panel, .cp-overview-head, .student-cp-card-head, .cp-capacity-head, .student-cp-footer { flex-direction:column; align-items:stretch; } .cp-meeting-count,.student-cp-progress{text-align:left;} }

/* Bank Asesmen — tiga tahap asesmen pada rentang TP */
.assessment-library-row .material-library-cover span { background: var(--primary-soft, #eff6ff); }
.assessment-preview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; margin-bottom: 16px; }
.assessment-question-preview { display: grid; gap: 12px; }
.assessment-question-preview article { padding: 14px 0; border-bottom: 1px solid var(--border-color, #e5e7eb); }
.assessment-question-preview article:last-child { border-bottom: 0; }
.assessment-question-preview ol { margin: 10px 0 6px 24px; display: grid; gap: 5px; }
.assessment-question-preview small { color: var(--text-muted); }
.assessment-option-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.assessment-resubmit-check { align-self: end; min-height: 42px; }
.tp-material-slot__assessments { grid-column: 1 / -1; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--border-color, #e5e7eb); }
.tp-assessment-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:12px; }
.tp-assessment-head div { display:grid; gap:3px; }
.tp-assessment-head span { color:var(--text-muted); font-size:13px; }
.tp-assessment-head a { color:var(--primary); font-size:13px; font-weight:600; white-space:nowrap; }
.tp-assessment-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.assessment-phase-badge { display:inline-flex; align-items:center; gap:6px; }
.student-meeting-material-item.is-locked { opacity:.72; }
.student-meeting-material-item.is-locked .student-meeting-material-actions { min-width: 170px; }
.student-assessment-fields { display:grid; gap:16px; margin-top:18px; }
.student-assessment-question { padding:14px; border:1px solid var(--border-color,#e5e7eb); border-radius:8px; background:var(--surface-subtle,#fafafa); }
.student-assessment-question > strong { display:block; margin-bottom:10px; }
.student-assessment-options { display:grid; gap:8px; }
.student-assessment-option { display:flex; gap:9px; align-items:flex-start; cursor:pointer; }
.student-assessment-option input { margin-top:3px; }
@media (max-width: 980px) {
  .assessment-preview-grid,.tp-assessment-grid { grid-template-columns:1fr; }
  .assessment-option-grid { grid-template-columns:1fr; }
  .tp-assessment-head { flex-direction:column; }
}


/* Ringkasan tiga tahap asesmen pada workspace Guru */
.meeting-assessment-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.meeting-assessment-summary-card{position:relative;border:1px solid var(--border-color);border-radius:10px;padding:16px;background:var(--surface-color,#fff);min-height:142px}
.meeting-assessment-summary-card h3{margin:10px 0 8px;font-size:15px;line-height:1.35}
.meeting-assessment-summary-meta{display:flex;flex-wrap:wrap;gap:7px;color:var(--text-muted);font-size:12px}
.meeting-assessment-summary-meta span{padding:4px 7px;border:1px solid var(--border-color);border-radius:6px}
.meeting-assessment-summary-score{position:absolute;right:16px;bottom:14px;text-align:right}
.meeting-assessment-summary-score small{display:block;color:var(--text-muted);font-size:11px}.meeting-assessment-summary-score strong{font-size:22px;line-height:1}
@media(max-width:900px){.meeting-assessment-summary-grid{grid-template-columns:1fr}}
