/*
 * LMS SMEXA UI 4.10.1
 * Modern Enterprise Minimal design system for LMS SMEXA.
 * The existing LMS component classes remain functional; this file is the visual system layer.
 */

 :root {
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bg-main: #F7F8FA;
    --bg-card: #FFFFFF;
    --bg-muted: #F3F4F6;
    --bg-soft: #FAFAFA;
    --sidebar-bg: #FFFFFF;
    --sidebar-hover: #F3F4F6;
    --sidebar-active: #EFF6FF;
    --sidebar-text: #52525B;
    --sidebar-text-strong: #18181B;
    --primary: #2563EB;
    --primary-light: #EFF6FF;
    --primary-dark: #1D4ED8;
    --primary-soft: rgba(37, 99, 235, .10);
    --success: #16A34A;
    --success-light: #F0FDF4;
    --warning: #D97706;
    --warning-light: #FFFBEB;
    --danger: #DC2626;
    --danger-light: #FEF2F2;
    --info: #0284C7;
    --info-light: #F0F9FF;
    --text-main: #18181B;
    --text-muted: #71717A;
    --text-subtle: #A1A1AA;
    --text-light: #FFFFFF;
    --border-color: #E4E4E7;
    --border-strong: #D4D4D8;
    --ring: rgba(37, 99, 235, .18);
    --shadow-xs: 0 1px 2px rgba(24, 24, 27, .035);
    --shadow-sm: 0 2px 8px rgba(24, 24, 27, .055);
    --shadow-md: 0 16px 38px rgba(24, 24, 27, .10);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 12px;
    --sidebar-width: 244px;
    --navbar-height: 60px;
}

[data-theme="dark"] {
    /* Navy/slate dark mode: tetap gelap, tetapi tidak jatuh ke hitam pekat. */
    --bg-main: #0B1220;
    --bg-card: #111827;
    --bg-muted: #172033;
    --bg-soft: #0F172A;
    --sidebar-bg: #0F172A;
    --sidebar-hover: #172033;
    --sidebar-active: #1B2947;
    --sidebar-text: #9CA3AF;
    --sidebar-text-strong: #E5E7EB;
    --primary: #5269B8;
    --primary-light: #18233F;
    --primary-dark: #43579B;
    --primary-soft: rgba(82, 105, 184, .18);
    --success: #5CBF83;
    --success-light: rgba(34, 145, 85, .15);
    --warning: #D9A441;
    --warning-light: rgba(191, 128, 25, .15);
    --danger: #E06B72;
    --danger-light: rgba(190, 57, 66, .15);
    --info: #6E9BCB;
    --info-light: rgba(70, 126, 184, .16);
    --text-main: #E5E7EB;
    --text-muted: #9CA3AF;
    --text-subtle: #6F7A8D;
    --text-light: #FFFFFF;
    --border-color: #25324A;
    --border-strong: #33415C;
    --ring: rgba(82, 105, 184, .28);
    --shadow-xs: 0 1px 2px rgba(2, 8, 23, .22);
    --shadow-sm: 0 4px 16px rgba(2, 8, 23, .24);
    --shadow-md: 0 18px 44px rgba(2, 8, 23, .34);
}

html { background: var(--bg-main); }
body {
    font-family: var(--font-sans);
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: -.005em;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
::selection { background: var(--primary-soft); color: var(--text-main); }

/* App shell */
.app-shell { min-height: 100vh; }
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    color: var(--sidebar-text);
    box-shadow: none;
}
.sidebar-main { overflow: hidden; }
.sidebar-brand {
    min-height: 72px;
    padding: 14px 16px;
    gap: 11px;
    color: var(--sidebar-text-strong);
    border-bottom: 0;
    text-decoration: none;
}
.brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--border-color);
    box-shadow: none;
}
.brand-mark i { font-size: 21px; }
.brand-mark-large { width: 44px; height: 44px; flex-basis: 44px; border-radius: 12px; }
.brand-copy { min-width: 0; display: flex; flex-direction: column; }
.brand-copy strong { font-size: 14px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.brand-copy small { margin-top: 3px; color: var(--text-muted); font-size: 10px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }

.sidebar-context {
    margin: 4px 12px 8px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-soft);
}
.sidebar-context-label,
.sidebar-context-value { display: block; }
.sidebar-context-label { color: var(--text-muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-context-value { margin-top: 2px; color: var(--text-main); font-size: 12px; font-weight: 600; }
.sidebar-nav { flex: 1; min-height: 0; overflow: hidden; display: flex; }
.sidebar-menu {
    width: 100%;
    padding: 8px 10px 18px;
    scrollbar-color: var(--border-strong) transparent;
}
.sidebar-section-label {
    list-style: none;
    padding: 15px 10px 6px;
    color: var(--text-subtle);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
}
.menu-item { margin-bottom: 2px; }
.menu-link {
    min-height: 40px;
    padding: 9px 10px;
    gap: 11px;
    border-radius: 8px;
    color: var(--sidebar-text) !important;
    font-size: 13px;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}
.menu-link i { width: 20px; font-size: 19px; text-align: center; }
.menu-link:hover { background: var(--sidebar-hover) !important; color: var(--text-main) !important; }
.menu-link.active {
    position: relative;
    background: var(--sidebar-active) !important;
    color: var(--primary) !important;
    box-shadow: none !important;
}
.menu-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 2px;
    border-radius: 999px;
    background: var(--primary);
}
.menu-link.active i { color: var(--primary); }
.sidebar-footer {
    padding: 12px;
    color: var(--sidebar-text) !important;
    border-top: 1px solid var(--border-color);
    background: var(--sidebar-bg) !important;
}
.sidebar-version {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--text-subtle);
    font-size: 10px;
}
.sidebar-version strong { color: var(--text-muted); font-weight: 600; }

.main-content { margin-left: var(--sidebar-width); min-height: 100vh; background: var(--bg-main); }
.navbar {
    height: var(--navbar-height);
    padding: 0 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}
.navbar-leading,
.navbar-actions,
.topbar-user,
.academic-year-badge { display: flex; align-items: center; }
.navbar-leading { min-width: 0; gap: 10px; }
.navbar-heading { min-width: 0; }
.navbar-eyebrow { display: block; margin-bottom: 1px; color: var(--text-muted); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.navbar-title { overflow: hidden; color: var(--text-main); font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.navbar-actions { gap: 8px; }
.icon-button,
.theme-toggle {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    background: var(--bg-card);
    color: var(--text-muted);
    box-shadow: none;
    cursor: pointer;
    font-size: 18px;
    transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
.icon-button:hover,
.theme-toggle:hover { border-color: var(--border-strong); background: var(--bg-muted); color: var(--text-main); }
.icon-button:active { transform: translateY(1px); }
.sidebar-toggle { display: none; }
.academic-year-badge {
    min-height: 36px;
    padding: 0 11px;
    gap: 7px;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    background: var(--bg-card);
    color: var(--text-muted);
    box-shadow: none;
    font-size: 11px;
    font-weight: 550;
}
.academic-year-badge i { color: var(--primary); font-size: 16px; }
.topbar-user {
    min-height: 38px;
    gap: 9px;
    padding: 3px 9px 3px 4px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    text-decoration: none;
    box-shadow: none;
}
.topbar-user:hover { border-color: var(--border-strong); }
.topbar-avatar { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: var(--bg-muted); }
.topbar-user-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.topbar-user-copy strong { max-width: 130px; overflow: hidden; color: var(--text-main); font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.topbar-user-copy small { margin-top: 2px; color: var(--text-muted); font-size: 9px; }
.topbar-logout-form { margin: 0; }
.topbar-logout:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--border-color)); background: var(--danger-light); }
.sidebar-backdrop { display: none; }

/* Main content */
.content-body { width: 100%; padding: 24px; }
.page-header {
    min-height: 56px;
    margin-bottom: 20px;
    gap: 18px;
    align-items: flex-start;
}
.page-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 7px;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
}
.page-back-link i { font-size: 15px; }
.page-back-link:hover { color: var(--primary); }
.page-back-link + .subject-eyebrow { display:block; margin-top:1px; }
.page-title { margin: 0; color: var(--text-main); font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.035em; }
.page-subtitle { max-width: 820px; margin-top: 5px; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.footer {
    min-height: 48px;
    padding: 0 24px 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-subtle);
    border-top: 0;
    background: transparent;
    font-size: 10px;
}
.footer-separator { color: var(--border-strong); }

/* Cards and grids */
.card,
.summary-card,
.curriculum-element-card,
.curriculum-unit-card,
.learning-path-card,
.teacher-meeting-card,
.student-meeting-step,
.lesson-content-card,
.completion-card,
.curriculum-meeting-card,
.cp-overview-card,
.student-cp-card,
.student-class-card,
.material-library-card,
.subject-section-card,
.teacher-guide-card,
.activity-workspace-card,
.review-queue-card,
.workspace-step-card,
.student-step-content-card,
.student-step-action-card,
.meeting-status-panel,
.lesson-step-sidebar,
.lesson-now-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: none;
}
.card { padding: 18px; margin-bottom: 16px; }
.card h2 { color: var(--text-main); font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.card h3 { color: var(--text-main); }
.card p { line-height: 1.6; }
.summary-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:0; margin-bottom:20px; border:1px solid var(--border-color); border-radius:var(--radius-lg); background:var(--bg-card); overflow:hidden; }
.summary-card { min-height:88px; padding:15px 16px; gap:12px; border:0; border-right:1px solid var(--border-color); border-radius:0; background:transparent; box-shadow:none; }
.summary-card:last-child { border-right:0; }
.summary-icon { width:34px; height:34px; border-radius:7px; font-size:17px; }
.summary-icon.primary { background: var(--primary-light); color: var(--primary); }
.summary-icon.success { background: var(--success-light); color: var(--success); }
.summary-icon.warning { background: var(--warning-light); color: var(--warning); }
.summary-icon.danger { background: var(--danger-light); color: var(--danger); }
.summary-icon.info { background: var(--info-light); color: var(--info); }
.summary-info h3 { margin-bottom: 4px; color: var(--text-muted); font-size: 11.5px; font-weight: 550; letter-spacing: .01em; }
.summary-info p { color: var(--text-main); font-size: 21px; font-weight: 700; letter-spacing: -.03em; }
.curriculum-card-grid,
.student-cp-grid,
.student-class-grid,
.learning-path-grid,
.material-library-grid { gap: 14px; }

/* Buttons */
.btn {
    min-height: 36px;
    padding: 8px 12px;
    gap: 7px;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: none;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.1;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn i { font-size: 16px; }
.btn:hover { transform: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.btn-primary:hover { border-color: var(--primary-dark); background: var(--primary-dark); color: #fff; }
.btn-secondary {
    border-color: var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: none;
}
.btn-secondary:hover { border-color: var(--border-strong); background: var(--bg-muted); color: var(--text-main); }
.btn-danger { border-color: color-mix(in srgb, var(--danger) 22%, var(--border-color)); background: var(--danger-light); color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); background: var(--danger); color: #fff; }
.btn-success { border-color: color-mix(in srgb, var(--success) 22%, var(--border-color)); background: var(--success-light); color: var(--success); }
.btn-success:hover { border-color: var(--success); background: var(--success); color: #fff; }
.btn-warning { border-color: color-mix(in srgb, var(--warning) 22%, var(--border-color)); background: var(--warning-light); color: var(--warning); }
.btn-sm { min-height: 30px; padding: 6px 9px; border-radius: 7px; font-size: 10.5px; }
.toolbar-actions { gap: 7px; }
.order-actions { display: inline-flex; align-items: center; gap: 4px; }
.order-actions form { margin: 0; }
.order-action-btn { width: 30px; min-width: 30px; padding-left: 0; padding-right: 0; justify-content: center; }
.order-action-btn:disabled { opacity: .38; cursor: not-allowed; }
.order-action-btn:disabled:hover { border-color: var(--border-color); background: var(--bg-card); color: var(--text-main); }

/* Forms */
.form-grid { gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-label { margin-bottom: 6px; color: var(--text-main); font-size: 12px; font-weight: 600; }
.form-control {
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: 0 1px 1px rgba(0,0,0,.015) inset;
    font-size: 13px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
textarea.form-control { min-height: 110px; resize: vertical; }
.form-control:hover { border-color: var(--border-strong); }
.form-control:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.form-control::placeholder { color: var(--text-subtle); }
.form-control:disabled,
.form-control[readonly] { background: var(--bg-muted) !important; color: var(--text-muted); cursor: not-allowed; }
.form-hint,
.table-note,
.form-help { color: var(--text-muted); font-size: 11.5px; line-height: 1.55; }
.checkbox-row,
.checkbox-grid label { color: var(--text-main); font-size: 13px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); }
select.form-control { cursor: pointer; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Tables */
.table-responsive {
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
}
.table { width: 100%; border-collapse: collapse; background: transparent !important; color: var(--text-main); font-size: 13px; }
.table th {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-muted);
    color: var(--text-muted);
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: .055em;
    text-align: left;
    text-transform: uppercase;
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border-color); color: var(--text-main); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: color-mix(in srgb, var(--bg-muted) 68%, transparent); }
.table code { padding: 3px 6px; border-radius: 5px; background: var(--bg-muted); color: var(--text-main); font-size: 10.5px; }

/* Badges and alerts */
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 7px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 650;
    line-height: 1;
}
.badge-primary { border-color: color-mix(in srgb, var(--primary) 18%, transparent); background: var(--primary-light); color: var(--primary); }
.badge-success { border-color: color-mix(in srgb, var(--success) 18%, transparent); background: var(--success-light); color: var(--success); }
.badge-warning { border-color: color-mix(in srgb, var(--warning) 18%, transparent); background: var(--warning-light); color: var(--warning); }
.badge-danger { border-color: color-mix(in srgb, var(--danger) 18%, transparent); background: var(--danger-light); color: var(--danger); }
.badge-info { border-color: color-mix(in srgb, var(--info) 18%, transparent); background: var(--info-light); color: var(--info); }
.badge-light,
.badge-neutral,
.badge-secondary { border-color: var(--border-color); background: var(--bg-muted); color: var(--text-muted); }
.alert {
    min-height: 42px;
    margin-bottom: 16px;
    padding: 10px 12px;
    gap: 9px;
    border-radius: 9px;
    box-shadow: none;
    font-size: 11.5px;
}
.alert i { font-size: 18px; }
.alert-success { border: 1px solid color-mix(in srgb, var(--success) 22%, transparent); background: var(--success-light); color: var(--success); }
.alert-danger { border: 1px solid color-mix(in srgb, var(--danger) 22%, transparent); background: var(--danger-light); color: var(--danger); }
.alert-warning { border: 1px solid color-mix(in srgb, var(--warning) 22%, transparent); background: var(--warning-light); color: var(--warning); }
.alert-info { border: 1px solid color-mix(in srgb, var(--info) 22%, transparent); background: var(--info-light); color: var(--info); }

/* Curriculum / teacher / student workspace normalization */
.muted,
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.curriculum-principle {
    min-height: 72px;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    border-left: 1px solid var(--border-color);
    background: var(--bg-card);
}
.curriculum-principle-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 9px;
    background: var(--bg-muted);
    color: var(--primary);
    font-size: 19px;
}
.curriculum-principle strong { color: var(--text-main); font-size: 12px; }
.curriculum-principle p { margin-top: 3px; color: var(--text-muted); font-size: 10.5px; }
.curriculum-title-line,
.curriculum-card-head,
.curriculum-section-header,
.subject-section-head,
.material-library-head,
.review-queue-head,
.activity-workspace-head,
.teacher-guide-card-head,
.cp-overview-head,
.student-cp-card-head,
.cp-capacity-head { gap: 12px; }
.curriculum-section-header,
.subject-section-head { margin-bottom: 12px; }
.curriculum-section-header h2,
.subject-section-head h2 { font-size: 15px; font-weight: 650; }
.curriculum-section-header p,
.subject-section-head p { margin-top: 3px; color: var(--text-muted); font-size: 10.5px; }
.curriculum-element-card,
.curriculum-meeting-card { padding: 16px; margin-bottom: 12px; }
.curriculum-subsection { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.sequence-pill,
.meeting-number,
.teacher-meeting-number,
.step-marker,
.subject-meeting-number,
.workspace-step-index,
.lesson-step-marker {
    border-radius: 8px;
    background: var(--bg-muted);
    color: var(--text-main);
    box-shadow: inset 0 0 0 1px var(--border-color);
}
.sequence-pill { min-width: 31px; height: 31px; }
.cp-box,
.activity-box,
.submission-preview,
.content-panel,
.nested-form,
.inline-editor-panel,
.meeting-editor,
.review-form,
.advanced-form {
    border: 1px solid var(--border-color);
    border-radius: 9px;
    background: var(--bg-muted);
    color: var(--text-main);
    box-shadow: none;
}
.cp-box { border-left: 3px solid var(--primary); background: var(--primary-light); }
.activity-box { background: var(--bg-muted); }
.submission-preview { background: var(--bg-muted); }
.tp-item,
.step-admin-item,
.meeting-overview-row {
    padding: 11px;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    background: var(--bg-card);
}
.tp-code { border-radius: 6px; background: var(--primary-light); color: var(--primary); }
.objective-chips span,
.meeting-component-chips span { border: 1px solid var(--border-color); background: var(--bg-muted); color: var(--text-muted); }
.empty-state,
.timeline-empty {
    padding: 28px 18px;
    border: 1px dashed var(--border-strong);
    border-radius: 10px;
    background: var(--bg-soft);
    color: var(--text-muted);
}
.empty-state i,
.timeline-empty i { color: var(--text-subtle); font-size: 30px; }
.learning-path-card,
.student-cp-card,
.student-class-card,
.material-library-card {
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.learning-path-card:hover,
.student-cp-card:hover,
.student-class-card:hover,
.material-library-card:hover { transform:none; border-color:var(--primary); box-shadow:none; }
.learning-path-card { min-height: 180px; padding: 16px; }
.learning-path-card h3 { margin-top: 14px; font-size: 14px; }
.path-card-footer { padding-top: 14px; color: var(--text-muted); font-size: 10.5px; }
.student-class-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-light); color: var(--primary); font-size: 20px; }
.student-class-arrow { color: var(--text-subtle); }
.cp-meeting-count strong,
.student-cp-progress strong { color: var(--text-main); font-size: 24px; }
.cp-capacity-number { border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-muted); color: var(--text-main); font-size: 25px; }
.progress-track { height: 7px; margin: 10px 0; background: var(--bg-muted); box-shadow: inset 0 0 0 1px var(--border-color); }
.progress-track > span { background: var(--primary); }
.progress-track.large { height: 9px; }
.semester-scale { color: var(--text-muted); font-size: 9.5px; }
.next-release-panel { border-left: 3px solid var(--primary); background: var(--bg-card); }

/* Hero/workspace surfaces: neutral, not glossy */
.student-progress-hero,
.student-path-hero,
.subject-workspace-hero,
.meeting-workspace-hero,
.lesson-mobile-hero {
    color: var(--text-main);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: none;
}
.student-progress-hero span,
.student-path-hero-copy > span,
.student-path-hero p,
.subject-workspace-hero p,
.meeting-workspace-hero p { color: var(--text-muted); opacity: 1; }
.student-path-score,
.meeting-hero-summary > div,
.subject-hero-progress {
    border: 1px solid var(--border-color);
    background: var(--bg-muted);
    color: var(--text-main);
}
.student-path-score span { color: var(--text-muted); }
.student-path-track { background: var(--bg-muted); }
.student-path-track > span { background: var(--primary); }
.student-path-now { border-color: var(--border-color); background: var(--bg-card); }
.student-path-now > div > span { color: var(--primary); }
.meeting-workspace-nav,
.tab-navigation { border-bottom: 1px solid var(--border-color); }
.meeting-tab,
.tab-navigation a { color: var(--text-muted); }
.meeting-tab.active,
.tab-navigation a.active { color: var(--text-main); border-color: var(--primary); }

/* Readable content */
.content-readable { color: var(--text-main); font-size: 12.5px; line-height: 1.75; }
.content-readable h1,
.content-readable h2,
.content-readable h3,
.content-readable h4 { color: var(--text-main); letter-spacing: -.02em; }
.content-readable a { color: var(--primary); }
.content-readable pre,
.material-code-block pre { border: 1px solid var(--border-color); background: #0f172a; color: #FAFAFA; }
.learning-resource__frame { border-color: var(--border-color); border-radius: 10px; }
.learning-resource__frame--document { background: var(--bg-card); }

/* Details and filters */
details > summary { outline: none; }
details > summary::-webkit-details-marker { display: none; }
.compact-filter-card { padding: 14px; }
.filter-row { gap: 10px; }
.phase-filter { border: 1px solid var(--border-color); background: var(--bg-card); }

/* Login */
.auth-page {
    display:block;
    min-height:100vh;
    overflow:auto;
    background:var(--bg-main);
}
.auth-shell { min-height:100vh; display:grid; grid-template-columns:minmax(360px,.88fr) minmax(500px,1.12fr); }
.auth-brand-panel {
    min-height:100vh;
    padding:44px 48px;
    display:flex;
    flex-direction:column;
    border-right:1px solid var(--border-color);
    background:var(--bg-soft);
    color:var(--text-main);
}
.auth-brand-top { display:flex; align-items:center; gap:12px; }
.auth-brand-top strong,.auth-brand-top small { display:block; }
.auth-brand-top strong { font-size:14px; font-weight:700; letter-spacing:-.02em; }
.auth-brand-top small { margin-top:2px; color:var(--text-muted); font-size:10px; letter-spacing:.06em; text-transform:uppercase; }
.auth-brand-copy { max-width:510px; margin:auto 0; padding:64px 0; }
.auth-kicker { display:inline-flex; margin-bottom:14px; color:var(--primary); font-size:10px; font-weight:700; letter-spacing:.10em; text-transform:uppercase; }
.auth-brand-copy h1 { max-width:500px; margin:0; color:var(--text-main); font-size:clamp(32px,3.8vw,50px); font-weight:700; line-height:1.08; letter-spacing:-.05em; }
.auth-brand-copy p { max-width:500px; margin-top:18px; color:var(--text-muted); font-size:13px; line-height:1.8; }
.auth-brand-footer { display:flex; gap:18px; flex-wrap:wrap; color:var(--text-muted); font-size:10.5px; }
.auth-brand-footer span { display:inline-flex; align-items:center; gap:6px; }
.auth-brand-footer i { color:var(--success); font-size:15px; }
.auth-form-panel { position:relative; min-height:100vh; padding:32px 44px; display:flex; flex-direction:column; background:var(--bg-card); }
.auth-toolbar { display:flex; justify-content:flex-end; }
.auth-form-wrap { width:min(392px,100%); margin:auto; }
.auth-form-heading { margin-bottom:28px; }
.auth-form-heading h2 { margin:0; color:var(--text-main); font-size:25px; font-weight:700; letter-spacing:-.035em; }
.auth-form-heading p { margin-top:7px; color:var(--text-muted); font-size:11.5px; }
.auth-mobile-brand { display:none; margin-bottom:20px; color:var(--text-main); font-size:12px; font-weight:700; }
.auth-mobile-brand i { margin-right:5px; color:var(--primary); }
.auth-form .form-group { margin-bottom:17px; }
.auth-input-wrap { position:relative; }
.auth-input-wrap>i { position:absolute; z-index:2; left:12px; top:50%; transform:translateY(-50%); color:var(--text-subtle); font-size:18px; }
.auth-input { height:43px; padding-left:39px; }
.auth-submit { width:100%; min-height:43px; justify-content:center; margin-top:4px; }
.auth-note { margin-top:20px; padding:11px 12px; display:flex; gap:9px; align-items:flex-start; border:1px solid var(--border-color); border-radius:8px; background:var(--bg-soft); color:var(--text-muted); font-size:10.5px; line-height:1.55; }
.auth-note i { margin-top:1px; color:var(--primary); font-size:16px; }
.auth-copyright { color:var(--text-subtle); font-size:9.5px; text-align:center; }

/* Maintenance / standalone */
.standalone-page { min-height: 100vh; display: grid; place-items: center; padding: 32px; background: var(--bg-main); }
.standalone-theme-toggle { position: fixed; top: 20px; right: 20px; z-index: 10; }
.maintenance-shell { width: min(600px, 100%); padding: 34px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-card); box-shadow: var(--shadow-md); text-align: center; }
.maintenance-icon { width: 50px; height: 50px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 11px; background: var(--primary-light); color: var(--primary); font-size: 24px; }
.maintenance-kicker { color: var(--text-muted); font-size: 9px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.maintenance-shell h1 { margin: 7px 0 12px; color: var(--text-main); font-size: 26px; letter-spacing: -.04em; }
.maintenance-message { color: var(--text-muted); font-size: 12px; line-height: 1.75; }
.maintenance-until { margin-top: 18px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--warning) 20%, var(--border-color)); border-radius: 8px; background: var(--warning-light); color: var(--warning); font-size: 10.5px; font-weight: 600; }
.maintenance-user { margin: 22px 0 18px; padding: 12px; border: 1px solid var(--border-color); border-radius: 9px; background: var(--bg-muted); color: var(--text-muted); font-size: 10.5px; }
.maintenance-user span,
.maintenance-user strong { display: block; }
.maintenance-user strong { margin-top: 3px; color: var(--text-main); font-size: 13px; }

/* Dark-specific compatibility for old hard-coded white surfaces */
[data-theme="dark"] .tp-item,
[data-theme="dark"] .meeting-body,
[data-theme="dark"] .curriculum-meta-card > div,
[data-theme="dark"] .unit-overview-item,
[data-theme="dark"] .score-box,
[data-theme="dark"] .inline-editor-panel,
[data-theme="dark"] .nested-form,
[data-theme="dark"] .meeting-editor,
[data-theme="dark"] .review-form,
[data-theme="dark"] .add-structure-card,
[data-theme="dark"] .student-path-now,
[data-theme="dark"] .learning-resource__frame--document { background: var(--bg-muted); color: var(--text-main); border-color: var(--border-color); }
[data-theme="dark"] .publication-panel { background: var(--bg-card); border-color: var(--border-color); }
[data-theme="dark"] .student-path-hero,
[data-theme="dark"] .student-progress-hero,
[data-theme="dark"] .subject-workspace-hero,
[data-theme="dark"] .meeting-workspace-hero { background: var(--bg-card); color: var(--text-main); }
[data-theme="dark"] .sidebar { border-right-color: rgba(255,255,255,.06); }
[data-theme="dark"] .navbar { background: var(--bg-card); }
[data-theme="dark"] .auth-form-panel { background: var(--bg-card); }

/* Modern enterprise layout refinements */
.sidebar-brand { border-bottom:1px solid var(--border-color); }
.brand-mark { background:var(--primary-light); color:var(--primary); }
.sidebar-section-label { color:var(--text-subtle); }
.menu-link.active::before { background:var(--primary); }
.sidebar-version { color:var(--text-subtle); }
.sidebar-version strong { color:var(--text-muted); }
.navbar-title { font-weight:600; }
.navbar-eyebrow { color:var(--text-subtle); }
.icon-button,.theme-toggle,.academic-year-badge,.topbar-user { box-shadow:none; }
.page-header { border-bottom:1px solid var(--border-color); padding-bottom:18px; }
.page-title { font-size:23px; font-weight:650; }
.page-subtitle { max-width:760px; }
.card>h2:first-child { margin-top:0; }
.card,.table-responsive,.summary-grid { box-shadow:none; }
.summary-info h3 { text-transform:none; letter-spacing:0; font-size:11.5px; }
.summary-info p { font-size:20px; }
.subject-section-head { align-items:flex-start; }
.btn { border-radius:7px; }
.badge { border-radius:6px; }
.table-responsive { border-radius:8px; }
.table th { background:var(--bg-soft); }
.empty-state,.timeline-empty { background:transparent; }
.curriculum-element-card,.curriculum-meeting-card,.learning-path-card,.student-cp-card,.student-class-card,.material-library-card { box-shadow:none; }
.unit-overview-item { transition:border-color .15s ease,background .15s ease; }
.unit-overview-item:hover { border-color:var(--primary); background:var(--primary-light); }

[data-theme="dark"] .sidebar { border-right-color:var(--border-color); }
[data-theme="dark"] .brand-mark { border-color:var(--border-color); }
[data-theme="dark"] .sidebar-context { background:var(--bg-soft); }
[data-theme="dark"] .menu-link:hover { color:var(--text-main)!important; }
[data-theme="dark"] .menu-link.active { color:#B9C5ED!important; }
[data-theme="dark"] .menu-link.active i { color:#8396D2; }

/* Responsive shell */
@media (max-width: 1180px) {
    .content-body { padding: 20px; }
    .navbar { padding: 0 20px; }
    .topbar-user-copy { display: none; }
    .topbar-user { padding-right: 4px; }
}

@media (max-width: 1024px) {
    .sidebar { transform: translateX(-102%); box-shadow: 18px 0 46px rgba(0,0,0,.18); }
    .sidebar-open .sidebar { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .sidebar-toggle { display: inline-flex; }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 95; background: rgba(9, 11, 14, .50); backdrop-filter: blur(2px); }
    .sidebar-open .sidebar-backdrop { display: block; }
    .sidebar { z-index: 110; }
    .navbar { z-index: 90; }
    .auth-shell { grid-template-columns: 1fr 1.1fr; }
}

@media (max-width: 820px) {
    .academic-year-badge span { display: none; }
    .academic-year-badge { width: 36px; padding: 0; justify-content: center; }
    .page-header { flex-direction: column; align-items: stretch; }
    .page-header > .btn,
    .page-header > .toolbar-actions { align-self: flex-start; }
    .auth-shell { display: block; min-height: 100vh; }
    .auth-brand-panel { display: none; }
    .auth-form-panel { min-height: 100vh; padding: 24px; }
    .auth-mobile-brand { display: inline-flex; align-items: center; }
    .auth-form-wrap { width: min(420px, 100%); }
}

@media (max-width: 640px) {
    :root { --navbar-height: 58px; }
    .navbar { padding: 0 14px; }
    .navbar-actions { gap: 5px; }
    .topbar-user { display: none; }
    .content-body { padding: 16px 14px; }
    .page-title { font-size: 21px; }
    .page-subtitle { font-size: 13px; }
    .card { padding: 16px; }
    .summary-grid { grid-template-columns:1fr 1fr; }
    .summary-card { border-right:0; border-bottom:1px solid var(--border-color); }
    .summary-card:nth-child(odd) { border-right:1px solid var(--border-color); }
    .summary-card:last-child { border-bottom:0; }
    .summary-card { min-height: 84px; padding: 13px; }
    .summary-icon { width: 36px; height: 36px; flex: 0 0 36px; }
    .summary-info p { font-size: 18px; }
    .table-responsive { border-radius: 8px; }
    .footer { padding: 0 14px 16px; }
    .auth-form-panel { padding: 20px; }
    .standalone-page { padding: 18px; }
    .maintenance-shell { padding: 26px 20px; }
}

@media (max-width: 420px) {
    .summary-grid { grid-template-columns:1fr; }
    .summary-card,.summary-card:nth-child(odd) { border-right:0; border-bottom:1px solid var(--border-color); }
    .summary-card:last-child { border-bottom:0; }
    .navbar-eyebrow { display: none; }
    .navbar-title { max-width: 150px; }
}

/* Compatibility overrides for legacy hero children after neutralizing gradients */
.subject-workspace-hero::after { display: none; }
.subject-workspace-hero .subject-eyebrow { color: var(--primary); }
.subject-hero-meta span,
.meeting-hero-meta span {
    border-color: var(--border-color);
    background: var(--bg-muted);
    color: var(--text-muted);
}
.subject-hero-progress span,
.subject-hero-progress small { color: var(--text-muted); }
.subject-hero-progress strong { color: var(--text-main); }
.lesson-hero-copy span { color: var(--text-muted); }
.lesson-hero-copy strong { color: var(--text-main); }
.lesson-progress-track {
    background: var(--bg-muted);
    box-shadow: inset 0 0 0 1px var(--border-color);
}
.lesson-progress-track > span { background: var(--primary); }
.lesson-progress-number,
.progress-circle {
    border-color: var(--border-color);
    background: var(--bg-muted);
    color: var(--text-main);
}

/* LMS SMEXA 4.7.0 — Curriculum Material Studio, reader, and HTML slide deck */
.material-studio-form { display: grid; gap: 16px; }
.material-studio-tabs {
    display: flex; align-items: center; gap: 2px; padding: 4px;
    border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    background: var(--bg-muted); overflow-x: auto; scrollbar-width: thin;
}
.material-studio-tabs button {
    min-height: 38px; padding: 8px 12px; border: 0; border-radius: 7px;
    background: transparent; color: var(--text-muted); font: inherit; font-weight: 600;
    display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; cursor: pointer;
}
.material-studio-tabs button:hover { color: var(--text-main); background: var(--bg-card); }
.material-studio-tabs button.is-active { color: var(--primary); background: var(--bg-card); box-shadow: var(--shadow-xs); }
.material-studio-tabs button i { font-size: 17px; }
.material-studio-tabs button em {
    min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-muted); color: var(--text-muted); font-size: 10px; font-style: normal;
}
.material-studio-panel { display: none; padding: 20px; border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: var(--bg-card); }
.material-studio-panel.is-active { display: block; }
.material-studio-panel .section-heading { margin-bottom: 18px; }
.editor-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.material-editor-list { display: grid; gap: 12px; }
.material-editor-item {
    padding: 16px; border: 1px solid var(--border-color); border-radius: var(--radius-md);
    background: var(--bg-card); box-shadow: none;
}
.material-editor-item.compact { padding: 14px; }
.material-editor-item__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--border-color);
}
.material-editor-item__head > div:first-child { min-width: 0; display: flex; align-items: center; gap: 8px; }
.material-editor-item__head strong { color: var(--text-main); font-size: 13px; font-weight: 650; }
.drag-handle { color: var(--text-subtle); display: inline-flex; align-items: center; font-size: 18px; }
.editor-item-actions { display: inline-flex; align-items: center; gap: 4px; }
.slide-number-pill {
    width: 26px; height: 26px; flex: 0 0 26px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 7px; background: var(--primary-light); color: var(--primary); font-size: 11px; font-weight: 700;
}
.cover-editor-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,280px); gap: 18px; align-items: start; }
.material-cover-preview { margin: 0; border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-muted); }
.material-cover-preview img { width: 100%; aspect-ratio: 16/9; display: block; object-fit: cover; }
.material-cover-preview figcaption { padding: 8px 10px; color: var(--text-muted); font-size: 11px; }
.empty-editor-hint {
    min-height: 138px; padding: 28px 18px; border: 1px dashed var(--border-strong); border-radius: var(--radius-md);
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    color: var(--text-muted); background: var(--bg-soft);
}
.empty-editor-hint.is-hidden { display: none; }
.empty-editor-hint i { margin-bottom: 8px; color: var(--text-subtle); font-size: 28px; }
.empty-editor-hint strong { color: var(--text-main); font-size: 13px; }
.empty-editor-hint p { margin: 4px 0 0; font-size: 12px; }
.material-studio-savebar {
    position: sticky; bottom: 12px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--bg-card) 94%, transparent); box-shadow: var(--shadow-md); backdrop-filter: blur(12px);
}
.material-studio-savebar p { margin: 0; color: var(--text-muted); font-size: 12px; }

.material-library-list { border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: var(--bg-card); overflow: hidden; }
.material-library-row { display: grid; grid-template-columns: 68px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border-color); }
.material-library-row:last-child { border-bottom: 0; }
.material-library-row:hover { background: var(--bg-soft); }
.material-library-cover { width: 68px; height: 50px; border-radius: 7px; border: 1px solid var(--border-color); overflow: hidden; background: var(--bg-muted); display: flex; align-items: center; justify-content: center; color: var(--text-subtle); }
.material-library-cover img { width: 100%; height: 100%; object-fit: cover; }
.material-library-cover i { font-size: 22px; }
.material-library-main { min-width: 0; }
.material-library-titleline { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.material-library-titleline strong { color: var(--text-main); font-size: 13.5px; }
.material-library-main > p { max-width: 760px; margin: 5px 0 7px; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.material-library-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--text-subtle); font-size: 10.5px; }
.material-library-meta span { display: inline-flex; align-items: center; gap: 4px; }
.material-library-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; flex-wrap: wrap; }

/* Student/curriculum material reader */
.material-reader-heading { margin-bottom: 16px; }
.material-reader-shell {
    width: min(1020px, 100%); margin: 0 auto 18px; border: 1px solid var(--border-color);
    border-radius: var(--radius-xl); background: var(--bg-card); overflow: hidden;
}
.material-reader-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,38%); min-height: 280px; border-bottom: 1px solid var(--border-color); background: var(--bg-card); }
.material-reader-hero__copy { padding: clamp(26px,4vw,48px); display: flex; flex-direction: column; justify-content: center; }
.material-reader-hero__copy > span { color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.material-reader-hero__copy h1 { margin: 10px 0 12px; color: var(--text-main); font-size: clamp(28px,4vw,44px); line-height: 1.08; letter-spacing: -.045em; }
.material-reader-hero__copy > p { max-width: 680px; margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.75; }
.material-reader-context { margin-top: 18px; display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 12px; }
.material-reader-hero__cover { margin: 0; min-height: 260px; background: var(--bg-muted); }
.material-reader-hero__cover img { width: 100%; height: 100%; min-height: 260px; display: block; object-fit: cover; }
.material-reader-body { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 54px; }
.material-block { margin: 0 0 24px; }
.material-block h2 { margin: 34px 0 12px; color: var(--text-main); font-size: 23px; line-height: 1.25; letter-spacing: -.03em; }
.material-block--prose { color: var(--text-main); font-size: 15px; line-height: 1.82; }
.material-block--list ul, .material-block--list ol { margin: 10px 0 0; padding-left: 24px; }
.material-block--list li { margin: 7px 0; line-height: 1.7; }
.material-block--image figure, .material-block figure { margin: 0; }
.material-block--image img, .material-block img { max-width: 100%; height: auto; border: 1px solid var(--border-color); border-radius: var(--radius-lg); display: block; }
.material-block figcaption { margin-top: 8px; color: var(--text-muted); font-size: 11.5px; text-align: center; }
.material-block--callout { padding: 16px 18px; border: 1px solid var(--border-color); border-left: 3px solid var(--primary); border-radius: var(--radius-md); background: var(--primary-light); }
.material-block--code pre { margin: 0; padding: 18px; overflow: auto; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: #0F172A; color: #E2E8F0; font-size: 13px; line-height: 1.65; tab-size: 4; }
.material-block--code .code-label { margin-bottom: 6px; color: var(--text-muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; }
.material-embed { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-muted); }
.material-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.material-resource-section { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--border-color); }
.material-resource-section > h3 { margin: 0 0 12px; font-size: 15px; }
.material-resource-grid { display: grid; gap: 8px; }
.material-resource-item { padding: 12px 13px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-soft); }
.material-resource-item strong { display: block; font-size: 12.5px; }
.material-resource-item small { color: var(--text-muted); }
.material-completion-card { width: min(1020px, 100%); margin: 0 auto 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.completion-state { display: flex; align-items: center; gap: 12px; }
.completion-state i { font-size: 28px; color: var(--success); }
.completion-state p { margin: 3px 0 0; color: var(--text-muted); font-size: 12px; }

/* HTML slide deck */
.slide-page-heading { margin-bottom: 14px; }
.material-slide-deck { width: min(1180px,100%); margin: 0 auto 22px; }
.material-slide-stage {
    position: relative; aspect-ratio: 16/9; min-height: 420px; border: 1px solid var(--border-color);
    border-radius: var(--radius-xl); overflow: hidden; background: var(--bg-card); box-shadow: var(--shadow-sm);
}
.material-slide { position: absolute; inset: 0; display: none; padding: clamp(36px,5vw,72px); overflow: auto; background: var(--bg-card); }
.material-slide.is-active { display: block; }
.material-slide-content { width: 100%; height: 100%; display: flex; align-items: center; }
.material-slide-content.has-image { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(280px,.95fr); gap: clamp(30px,5vw,70px); }
.material-slide--image_text .material-slide-content.has-image { grid-template-columns: minmax(280px,.95fr) minmax(0,1.05fr); }
.material-slide--image_text .material-slide-visual { order: -1; }
.material-slide--image_focus .material-slide-content.has-image { grid-template-columns: 1fr; grid-template-rows: minmax(0,1fr) auto; }
.material-slide--image_focus .material-slide-copy { order: 2; }
.material-slide-copy { min-width: 0; }
.material-slide-eyebrow { display: block; margin-bottom: 14px; color: var(--primary); font-size: 12px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.material-slide-copy h2 { margin: 0; color: var(--text-main); font-size: clamp(36px,5.3vw,70px); line-height: 1.02; letter-spacing: -.055em; }
.material-slide-body { max-width: 760px; margin-top: 22px; color: var(--text-muted); font-size: clamp(17px,2vw,25px); line-height: 1.55; }
.material-slide-body p { margin: 0 0 12px; }
.material-slide-visual { margin: 0; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.material-slide-visual img { width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-lg); }
.material-slide-note { position: absolute; left: 22px; right: 22px; bottom: 18px; max-height: 38%; padding: 9px 12px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: color-mix(in srgb,var(--bg-card) 96%,transparent); backdrop-filter: blur(12px); }
.material-slide-note summary { color: var(--text-muted); font-size: 11.5px; font-weight: 650; cursor: pointer; }
.material-slide-note > div { padding-top: 9px; color: var(--text-main); font-size: 12.5px; line-height: 1.6; }
.material-slide-controls { display: grid; grid-template-columns: auto minmax(180px,1fr) auto; align-items: center; gap: 16px; margin-top: 12px; }
.material-slide-counter { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--text-muted); font-size: 12px; }
.material-slide-counter strong { color: var(--text-main); }
.material-slide-counter > div { width: min(260px,40vw); height: 5px; margin-left: 9px; border-radius: 99px; overflow: hidden; background: var(--bg-muted); }
.material-slide-counter > div > span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--primary); transition: width .2s ease; }
.material-slide-overview { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(9,9,11,.58); backdrop-filter: blur(5px); }
.material-slide-overview.is-open { display: flex; }
.material-slide-overview__dialog { width: min(920px,100%); max-height: 82vh; overflow: auto; padding: 18px; border: 1px solid var(--border-color); border-radius: var(--radius-xl); background: var(--bg-card); box-shadow: var(--shadow-md); }
.material-slide-thumbnail-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 9px; margin-top: 14px; }
.material-slide-thumbnail { min-height: 110px; padding: 13px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-soft); color: var(--text-main); text-align: left; cursor: pointer; }
.material-slide-thumbnail:hover, .material-slide-thumbnail.is-active { border-color: var(--primary); background: var(--primary-light); }
.material-slide-thumbnail span { display: block; color: var(--primary); font-size: 10px; font-weight: 700; }
.material-slide-thumbnail strong { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.4; }
.material-slide-deck:fullscreen, .material-slide-deck.is-fullscreen { width: 100vw; height: 100vh; max-width: none; padding: 20px; background: var(--bg-main); }
.material-slide-deck:fullscreen .material-slide-stage, .material-slide-deck.is-fullscreen .material-slide-stage { height: calc(100vh - 84px); min-height: 0; aspect-ratio: auto; }

/* Material cards in teacher and student meeting workspaces */
.meeting-material-resource-list, .student-meeting-material-list { display: grid; gap: 10px; }
.meeting-material-resource-card, .student-meeting-material-item {
    display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 13px; align-items: center;
    padding: 14px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-card);
}
.meeting-material-resource-card.is-primary, .student-meeting-material-item.is-primary { border-left: 3px solid var(--primary); }
.meeting-material-resource-icon, .student-meeting-material-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); font-size: 19px; }
.meeting-material-resource-main, .student-meeting-material-copy { min-width: 0; }
.meeting-material-resource-label { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--text-muted); font-size: 10.5px; }
.meeting-material-resource-main h3, .student-meeting-material-copy h3 { margin: 5px 0 3px; font-size: 13.5px; }
.meeting-material-resource-main > p, .student-meeting-material-copy > p { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.meeting-material-resource-actions, .student-meeting-material-actions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.meeting-material-progress-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 11px; }
.meeting-material-progress-grid .bar-label { display: flex; justify-content: space-between; gap: 8px; color: var(--text-muted); font-size: 10.5px; }
.meeting-material-progress-grid .progress { height: 5px; margin-top: 5px; border-radius: 99px; overflow: hidden; background: var(--bg-muted); }
.meeting-material-progress-grid .progress span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.meeting-material-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.meeting-support-materials { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 10px 0 12px; }
.meeting-support-materials a { text-decoration: none; }

@media (max-width: 900px) {
    .cover-editor-grid, .material-reader-hero, .material-slide-content.has-image, .material-slide--image_text .material-slide-content.has-image { grid-template-columns: 1fr; }
    .material-reader-hero__cover { min-height: 210px; order: -1; }
    .material-reader-hero__cover img { min-height: 210px; max-height: 340px; }
    .material-slide-stage { min-height: 480px; aspect-ratio: auto; }
    .material-slide { padding: 34px 28px; }
    .material-slide-visual { max-height: 270px; }
    .material-library-row { grid-template-columns: 56px minmax(0,1fr); }
    .material-library-cover { width: 56px; height: 44px; }
    .material-library-actions { grid-column: 1 / -1; justify-content: flex-start; padding-left: 70px; }
    .meeting-material-resource-card, .student-meeting-material-item { grid-template-columns: 40px minmax(0,1fr); }
    .meeting-material-resource-actions, .student-meeting-material-actions { grid-column: 1 / -1; justify-content: flex-start; padding-left: 53px; }
}
@media (max-width: 640px) {
    .material-studio-panel { padding: 15px; }
    .editor-section-heading, .material-studio-savebar, .material-completion-card, .meeting-material-summary { align-items: stretch; flex-direction: column; }
    .material-editor-item { padding: 13px; }
    .material-editor-item__head { align-items: flex-start; }
    .material-reader-body { width: calc(100% - 30px); padding: 30px 0 38px; }
    .material-reader-hero__copy { padding: 26px 20px; }
    .material-slide-stage { min-height: 520px; }
    .material-slide { padding: 28px 22px; }
    .material-slide-copy h2 { font-size: clamp(31px,11vw,50px); }
    .material-slide-body { font-size: 16px; }
    .material-slide-controls { grid-template-columns: 1fr 1fr; }
    .material-slide-counter { grid-column: 1 / -1; grid-row: 1; }
    .material-slide-controls [data-slide-prev] { grid-column: 1; }
    .material-slide-controls [data-slide-next] { grid-column: 2; }
    .meeting-material-progress-grid { grid-template-columns: 1fr; }
    .material-library-row { grid-template-columns: 1fr; }
    .material-library-cover { width: 100%; height: 140px; }
    .material-library-actions { padding-left: 0; }
}
@media print {
    .material-reader-shell { border: 0; width: 100%; }
    .material-reader-hero { min-height: 0; }
    .material-reader-body { width: 100%; }
}
.material-block-heading { margin: 34px 0 12px; color: var(--text-main); font-size: 23px; line-height: 1.25; letter-spacing: -.03em; }
.material-block--list h3, .material-block--table h3, .material-block--media h3, .material-block--code h3 { margin: 0 0 10px; color: var(--text-main); font-size: 16px; }
.material-block--callout { display: flex; align-items: flex-start; gap: 11px; }
.material-block--callout > i { margin-top: 2px; color: var(--primary); font-size: 20px; }
.material-block--callout strong { display: block; margin-bottom: 5px; }
.material-code-block__label { margin-bottom: 6px; color: var(--text-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.material-code-block pre { margin: 0; padding: 18px; overflow: auto; border: 1px solid #1E293B; border-radius: var(--radius-md); background: #0F172A; color: #E2E8F0; font-size: 13px; line-height: 1.65; }
.material-block--image figcaption { display: flex; flex-direction: column; gap: 2px; }
.material-block--image figcaption strong { color: var(--text-main); }
.material-media-caption, .material-block--link p { margin: 7px 0 0; color: var(--text-muted); font-size: 11.5px; }
.material-reader-section-head { margin-bottom: 12px; }
.material-reader-section-head > span { color: var(--primary); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.material-reader-section-head h2 { margin: 3px 0 0; font-size: 17px; }
.material-resource-list { display: grid; gap: 10px; }
.material-resource-card { padding: 13px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-soft); }
.material-resource-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.material-resource-card__head > div { min-width: 0; }
.material-resource-card__head strong, .material-resource-card__head small { display: block; }
.material-resource-card__head strong { color: var(--text-main); font-size: 12.5px; }
.material-resource-card__head small { margin-top: 2px; color: var(--text-muted); font-size: 10.5px; }
.material-resource-type { min-width: 55px; padding: 4px 7px; border-radius: 6px; background: var(--primary-light); color: var(--primary); font-size: 9px; font-weight: 750; text-align: center; }
.material-resource-card .learning-resource__frame, .material-block--media .learning-resource__frame { margin: 10px 0; }

/* Curriculum Material Import v4.7.0 */
.page-header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.material-import-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.7fr);gap:16px;align-items:start}.material-import-card,.material-import-guide{padding:20px}.section-heading.compact{margin-bottom:18px}.section-kicker{display:block;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted,#6b7280);margin-bottom:5px}.material-import-form{display:grid;gap:18px}.material-import-dropzone{min-height:180px;border:1px dashed var(--border-strong,#cbd5e1);border-radius:10px;background:var(--surface-subtle,#f8fafc);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;padding:24px;cursor:pointer;transition:border-color .15s ease,background .15s ease}.material-import-dropzone:hover{border-color:var(--primary,#2563eb);background:var(--primary-soft,#eff6ff)}.material-import-dropzone__icon{width:42px;height:42px;border-radius:9px;display:grid;place-items:center;background:var(--surface,#fff);border:1px solid var(--border,#e5e7eb);font-size:22px;color:var(--primary,#2563eb)}.material-import-dropzone strong{font-size:14px;color:var(--text-primary,#111827)}.material-import-dropzone>span:not(.material-import-dropzone__icon):not(.btn){font-size:12px;color:var(--text-muted,#6b7280)}.material-import-file-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}.material-import-file-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.material-import-file-list span{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--border,#e5e7eb);background:var(--surface,#fff);padding:5px 8px;border-radius:6px;font-size:12px;color:var(--text-secondary,#4b5563)}.material-import-actions{display:flex;justify-content:flex-end}.material-import-guide h2{font-size:17px;margin:0 0 14px}.material-import-guide__steps{display:grid;gap:12px}.material-import-guide__steps>div{display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:start}.material-import-guide__steps>div>span{width:28px;height:28px;border:1px solid var(--border,#e5e7eb);border-radius:7px;display:grid;place-items:center;font-size:12px;font-weight:700;background:var(--surface-subtle,#f8fafc)}.material-import-guide__steps p{margin:3px 0 0;font-size:13px;line-height:1.5;color:var(--text-secondary,#4b5563)}.material-import-note{display:flex;gap:10px;margin-top:18px;padding:12px;border-top:1px solid var(--border,#e5e7eb);background:var(--surface-subtle,#f8fafc);border-radius:8px}.material-import-note>i{font-size:18px;color:var(--primary,#2563eb);margin-top:1px}.material-import-note strong{font-size:12px}.material-import-note p{margin:3px 0 0;font-size:12px;line-height:1.5;color:var(--text-muted,#6b7280)}.material-import-summary{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:16px 18px;margin-bottom:12px}.material-import-summary h2{font-size:17px;margin:0}.material-import-summary p{margin:4px 0 0;color:var(--text-muted,#6b7280);font-size:13px}.material-import-warning ul,.material-import-item-warning ul{margin:6px 0 0;padding-left:18px}.material-import-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;margin-bottom:10px}.checkbox-line{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--text-secondary,#4b5563)}.material-import-preview-list{display:grid;gap:8px}.material-import-preview-row{display:grid;grid-template-columns:36px 1fr;border:1px solid var(--border,#e5e7eb);background:var(--surface,#fff);border-radius:9px;padding:14px}.material-import-preview-select{padding-top:3px}.material-import-preview-select input{width:16px;height:16px}.material-import-preview-main{min-width:0}.material-import-preview-source{display:flex;align-items:center;gap:8px;min-width:0;margin-bottom:10px}.material-import-preview-source>span:last-child{font-size:12px;color:var(--text-muted,#6b7280);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.material-import-preview-fields{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(300px,1.2fr);gap:10px}.material-import-preview-fields .form-group{margin:0}.material-import-preview-meta{display:flex;gap:14px;flex-wrap:wrap;margin-top:10px;color:var(--text-muted,#6b7280);font-size:12px}.material-import-preview-meta span{display:inline-flex;align-items:center;gap:5px}.material-import-block-sample{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px}.material-import-block-sample span{font-size:11px;border:1px solid var(--border,#e5e7eb);background:var(--surface-subtle,#f8fafc);padding:4px 7px;border-radius:5px;color:var(--text-secondary,#4b5563)}.material-import-item-warning{margin-top:10px;border-top:1px solid var(--border,#e5e7eb);padding-top:8px}.material-import-item-warning summary{cursor:pointer;font-size:12px;color:var(--warning-text,#92400e)}.material-import-item-warning li{font-size:12px;color:var(--text-muted,#6b7280);margin:2px 0}.material-import-savebar{margin-top:14px}.badge-neutral{background:var(--surface-subtle,#f8fafc);color:var(--text-secondary,#4b5563);border:1px solid var(--border,#e5e7eb)}
@media(max-width:1000px){.material-import-layout{grid-template-columns:1fr}.material-import-preview-fields{grid-template-columns:1fr}.material-import-toolbar{align-items:flex-start;flex-direction:column}.material-import-summary{align-items:flex-start;flex-direction:column}}

/* CP workspace: Elemen -> TP -> Jam Pembelajaran */
.cp-workspace-header .curriculum-title-line { align-items:center; gap:10px; flex-wrap:wrap; }
.eyebrow-label { display:block; width:100%; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); margin-bottom:2px; }
.cp-flow-strip { display:flex; align-items:center; gap:10px; padding:12px 14px; margin:0 0 14px; border:1px solid var(--border-color); border-radius:10px; background:var(--bg-card); }
.cp-flow-strip > i { color:var(--text-muted); font-size:20px; }
.cp-flow-step { display:flex; align-items:center; gap:9px; min-width:0; }
.cp-flow-step > span { width:28px; height:28px; display:grid; place-items:center; flex:0 0 28px; border-radius:8px; border:1px solid var(--border-color); color:var(--text-muted); font-size:12px; font-weight:700; background:var(--bg-page); }
.cp-flow-step div { display:grid; gap:1px; }
.cp-flow-step strong { font-size:13px; color:var(--text-main); }
.cp-flow-step small { color:var(--text-muted); font-size:11px; }
.cp-flow-step.done > span { border-color:rgba(37,99,235,.22); background:var(--primary-soft); color:var(--primary); }
.cp-flow-step.active > span { border-color:var(--primary); background:var(--primary); color:#fff; }

.cp-capacity-bar { position:relative; display:grid; grid-template-columns:minmax(180px,1.35fr) repeat(3,minmax(110px,.75fr)); gap:0; border:1px solid var(--border-color); border-radius:10px; background:var(--bg-card); overflow:hidden; margin-bottom:14px; }
.cp-capacity-primary,.cp-capacity-metric { padding:14px 16px 16px; min-height:72px; }
.cp-capacity-metric { border-left:1px solid var(--border-color); display:flex; flex-direction:column; justify-content:center; }
.cp-capacity-primary strong,.cp-capacity-metric strong { display:block; font-size:19px; line-height:1.2; color:var(--text-main); }
.cp-capacity-metric span { color:var(--text-muted); font-size:11px; margin-top:3px; }
.cp-capacity-metric.is-complete strong { color:var(--success); }
.cp-capacity-progress { position:absolute; left:0; right:0; bottom:0; height:3px; background:var(--bg-page); }
.cp-capacity-progress span { display:block; height:100%; background:var(--primary); }

.cp-publication-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:11px 14px; margin-bottom:22px; border:1px solid var(--border-color); border-radius:9px; background:var(--bg-card); }
.cp-publication-bar > div:first-child { display:flex; align-items:center; gap:10px; min-width:0; }
.cp-publication-bar strong { font-size:13px; }
.cp-publication-bar span { font-size:12px; }
.publication-errors { position:relative; }
.publication-errors .validation-list { position:absolute; z-index:20; right:0; top:calc(100% + 8px); width:min(460px,78vw); padding:14px 16px 14px 34px; border:1px solid var(--border-color); border-radius:9px; background:var(--bg-card); box-shadow:var(--shadow-lg); }

.cp-elements-heading { margin-top:8px; padding-bottom:10px; border-bottom:1px solid var(--border-color); }
.cp-elements-heading h2 { margin:0; font-size:17px; }
.inline-create-panel { position:relative; }
.inline-create-panel > .nested-form { margin-top:9px; }
.cp-elements-heading > .inline-create-panel > .nested-form { position:absolute; right:0; z-index:30; width:min(580px,86vw); box-shadow:var(--shadow-lg); }
.cp-empty-state { margin-top:16px; }
.cp-empty-state > i { font-size:28px; color:var(--text-muted); }

.cp-element-list { display:grid; gap:16px; margin-top:14px; }
.cp-element-panel { border:1px solid var(--border-color); border-radius:11px; background:var(--bg-card); overflow:visible; }
.cp-element-header { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:14px; align-items:start; padding:16px; border-bottom:1px solid var(--border-color); }
.cp-element-index { width:36px; height:36px; display:grid; place-items:center; border-radius:9px; background:var(--bg-page); border:1px solid var(--border-color); font-size:12px; font-weight:800; color:var(--text-muted); }
.cp-element-info { min-width:0; }
.cp-element-title-row { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.cp-element-title-row h2 { margin:0; font-size:16px; }
.cp-element-info > p { margin:5px 0 10px; color:var(--text-muted); font-size:13px; line-height:1.55; }
.cp-element-info > small { display:block; margin-top:5px; color:var(--text-muted); font-size:11px; }
.element-allocation-track { width:min(420px,100%); height:4px; border-radius:99px; background:var(--bg-page); overflow:hidden; }
.element-allocation-track span { display:block; height:100%; background:var(--primary); border-radius:inherit; }
.element-settings { position:relative; }
.element-settings-panel { position:absolute; z-index:25; right:0; top:calc(100% + 8px); width:min(560px,86vw); background:var(--bg-card); border:1px solid var(--border-color); border-radius:10px; box-shadow:var(--shadow-lg); }
.element-settings-panel > form + form { margin-top:10px; padding-top:10px; border-top:1px solid var(--border-color); }

.cp-meeting-workspace { padding:15px 16px 17px; }
.cp-meeting-workspace-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; margin-bottom:10px; }
.cp-meeting-workspace-head h3 { margin:0; font-size:14px; }
.cp-meeting-workspace-head p { margin:3px 0 0; font-size:12px; color:var(--text-muted); }
.meeting-create-panel > .nested-form { width:min(860px,90vw); max-height:78vh; overflow:auto; position:absolute; right:0; z-index:25; background:var(--bg-card); border:1px solid var(--border-color); border-radius:10px; box-shadow:var(--shadow-lg); }
.meeting-empty { margin:6px 0 0; padding:14px; }
.cp-meeting-list { display:grid; gap:9px; }
.cp-meeting-row { display:grid; grid-template-columns:70px minmax(0,1fr); border:1px solid var(--border-color); border-radius:9px; background:var(--bg-page); overflow:visible; }
.cp-meeting-sequence { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; padding:12px 8px; border-right:1px solid var(--border-color); color:var(--text-muted); }
.cp-meeting-sequence span { font-size:10px; text-transform:uppercase; letter-spacing:.04em; }
.cp-meeting-sequence strong { font-size:21px; color:var(--text-main); }
.cp-meeting-main { min-width:0; padding:12px 13px; }
.cp-meeting-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.cp-meeting-heading h4 { margin:0 0 5px; font-size:14px; }
.meeting-settings { position:relative; }
.meeting-settings-panel { position:absolute; z-index:24; right:0; top:calc(100% + 8px); width:min(900px,86vw); max-height:80vh; overflow:auto; background:var(--bg-card); border:1px solid var(--border-color); border-radius:10px; box-shadow:var(--shadow-lg); }
.meeting-settings-panel > form + form { margin-top:10px; padding-top:10px; border-top:1px solid var(--border-color); }
.cp-meeting-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; margin-top:11px; }
.cp-meeting-column { min-width:0; padding:10px 11px; border:1px solid var(--border-color); border-radius:8px; background:var(--bg-card); }
.column-label { display:flex; align-items:center; gap:6px; margin-bottom:8px; color:var(--text-muted); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.035em; }
.column-label i { font-size:15px; color:var(--primary); }
.meeting-objective-list { display:grid; gap:7px; }
.meeting-objective-item { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.meeting-objective-item + .meeting-objective-item { border-top:1px solid var(--border-color); padding-top:7px; }
.meeting-objective-item strong { font-size:12px; }
.meeting-objective-item p { margin:2px 0 0; color:var(--text-muted); font-size:12px; line-height:1.45; }
.objective-edit-popover { position:absolute; right:0; z-index:25; width:min(680px,82vw); max-height:70vh; overflow:auto; margin-top:6px; background:var(--bg-card); border:1px solid var(--border-color); border-radius:9px; box-shadow:var(--shadow-lg); }
.meeting-primary-material { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.meeting-primary-material > div:first-child { display:grid; gap:4px; min-width:0; }
.meeting-primary-material strong { font-size:12px; }
.meeting-primary-material p { margin:0; color:var(--text-muted); font-size:12px; line-height:1.45; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.meeting-support-materials { margin-top:8px; }

.meeting-activity-panel { margin-top:10px; border-top:1px solid var(--border-color); }
.meeting-activity-panel > summary { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:9px; cursor:pointer; list-style:none; font-size:12px; color:var(--text-muted); }
.meeting-activity-panel > summary::-webkit-details-marker { display:none; }
.meeting-activity-panel > summary span:first-child { display:flex; align-items:center; gap:6px; font-weight:600; color:var(--text-main); }
.meeting-activity-content { padding-top:10px; }
.unmapped-objectives { margin-top:11px; border-top:1px dashed var(--border-color); padding-top:9px; color:var(--text-muted); font-size:12px; }
.unmapped-objectives > summary { cursor:pointer; }

.meeting-editor-core { display:grid; gap:12px; }
.meeting-editor-core .meeting-title-field { grid-column:span 1; }
.meeting-editor-block { border:1px solid var(--border-color); border-radius:9px; background:var(--bg-page); padding:12px; }
.meeting-editor-block-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.meeting-editor-block-head > div { display:flex; align-items:center; gap:9px; }
.meeting-editor-block-head > div > div { display:grid; gap:1px; }
.meeting-editor-block-head strong { font-size:13px; }
.meeting-editor-block-head small { color:var(--text-muted); font-size:11px; }
.editor-step-no { width:24px; height:24px; display:grid; place-items:center; border-radius:7px; background:var(--primary-soft); color:var(--primary); font-weight:800; font-size:11px; }
.compact-objective-picker { max-height:180px; overflow:auto; }
.compact-objective-picker label { align-items:flex-start; }
.compact-objective-picker label > span { display:grid; gap:2px; }
.compact-objective-picker label strong { font-size:12px; }
.compact-objective-picker label small { display:block; color:var(--text-muted); font-size:11px; line-height:1.35; }
.inline-new-objective { margin-top:8px; padding-top:9px; border-top:1px dashed var(--border-color); }
.inline-objective-advanced,.material-support-details,.meeting-teacher-device { margin-top:8px; }
.meeting-setup-form .form-actions { margin-top:12px; padding-top:12px; border-top:1px solid var(--border-color); }

@media (max-width: 900px) {
  .cp-flow-strip { overflow:auto; }
  .cp-flow-step small { display:none; }
  .cp-capacity-bar { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cp-capacity-metric:nth-of-type(2) { border-left:1px solid var(--border-color); }
  .cp-capacity-metric:nth-of-type(3) { border-left:0; border-top:1px solid var(--border-color); }
  .cp-capacity-metric:nth-of-type(4) { border-top:1px solid var(--border-color); }
  .cp-element-header { grid-template-columns:36px minmax(0,1fr); }
  .element-settings { grid-column:2; justify-self:start; }
  .cp-meeting-columns { grid-template-columns:1fr; }
}
@media (max-width: 640px) {
  .cp-publication-bar,.cp-meeting-workspace-head,.cp-meeting-heading { align-items:stretch; flex-direction:column; }
  .cp-capacity-bar { grid-template-columns:1fr; }
  .cp-capacity-metric { border-left:0; border-top:1px solid var(--border-color); }
  .cp-meeting-row { grid-template-columns:52px minmax(0,1fr); }
}

/* LMS SMEXA 4.10.1 — full workspace dialogs for CP authoring */
body.workspace-dialog-open { overflow: hidden; }
.workspace-dialog {
  width: min(720px, calc(100vw - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text-main);
  overflow: visible;
}
.workspace-dialog--wide { width: min(1120px, calc(100vw - 32px)); }
.workspace-dialog::backdrop {
  background: rgba(9, 9, 11, .56);
  backdrop-filter: blur(2px);
}
.workspace-dialog__shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(92vh, 940px);
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: 0 24px 70px rgba(9, 9, 11, .24);
}
.workspace-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}
.workspace-dialog__header > div { min-width: 0; }
.workspace-dialog__header h2 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text-main);
}
.workspace-dialog__header p {
  margin: 5px 0 0;
  max-width: 760px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.workspace-dialog__close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  font-size: 20px;
}
.workspace-dialog__body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  background: var(--bg-page);
}
.workspace-dialog__body > form { display: grid; gap: 14px; }
.workspace-dialog__body--meeting { padding: 18px 20px 24px; }
.workspace-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}
.workspace-dialog__footer--split { justify-content: space-between; }
.workspace-dialog__footer form { margin: 0; }
.workspace-dialog__footer .toolbar-actions { margin-left: auto; }
.workspace-dialog .meeting-editor-core { gap: 14px; }
.workspace-dialog .meeting-editor-block {
  padding: 15px;
  background: var(--bg-card);
}
.workspace-dialog .meeting-teacher-device {
  padding: 13px 15px;
  border: 1px solid var(--border-color);
  border-radius: 9px;
  background: var(--bg-card);
}
.workspace-dialog .advanced-form > summary { cursor: pointer; }
.workspace-dialog .compact-objective-picker { max-height: 230px; }

@media (max-width: 720px) {
  .workspace-dialog,
  .workspace-dialog--wide {
    width: calc(100vw - 16px);
    border-radius: 10px;
  }
  .workspace-dialog__shell {
    max-height: 94vh;
    border-radius: 10px;
  }
  .workspace-dialog__header,
  .workspace-dialog__body,
  .workspace-dialog__footer { padding-left: 14px; padding-right: 14px; }
  .workspace-dialog__footer--split { align-items: stretch; flex-direction: column-reverse; }
  .workspace-dialog__footer--split > form,
  .workspace-dialog__footer--split > form .btn { width: 100%; }
  .workspace-dialog__footer .toolbar-actions { width: 100%; margin-left: 0; }
  .workspace-dialog__footer .toolbar-actions .btn { flex: 1; }
}

/* LMS SMEXA 4.10.1 — Learning Path sederhana: Elemen -> TP -> Materi */
.cp-flow-strip--simple { position: sticky; top: 62px; z-index: 8; }
.cp-flow-strip--simple .cp-flow-step { flex: 1 1 0; text-decoration: none; padding: 4px; border-radius: 8px; }
.cp-flow-strip--simple .cp-flow-step:hover { background: var(--bg-page); }
.cp-setup-section { scroll-margin-top: 132px; margin-top: 18px; padding: 18px; border: 1px solid var(--border-color); border-radius: 11px; background: var(--bg-card); }
.cp-setup-section__head { margin-bottom: 14px; padding-bottom: 13px; border-bottom: 1px solid var(--border-color); }
.cp-setup-section__head h2 { margin: 1px 0 4px; font-size: 17px; }
.cp-setup-section__head p { margin: 0; max-width: 760px; }
.cp-setup-list { display: grid; gap: 8px; }
.cp-setup-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 13px; border: 1px solid var(--border-color); border-radius: 9px; background: var(--bg-page); }
.cp-setup-row__index { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 800; }
.cp-setup-row__main { min-width: 0; }
.cp-setup-row__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cp-setup-row__title strong { font-size: 13.5px; }
.cp-setup-row__main p { margin: 4px 0; color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }
.cp-setup-row__main small { color: var(--text-muted); }
.cp-objective-groups,.cp-material-groups { display: grid; gap: 10px; }
.cp-objective-group,.cp-material-group { border: 1px solid var(--border-color); border-radius: 9px; background: var(--bg-page); overflow: hidden; }
.cp-objective-group__head,.cp-material-group__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-bottom: 1px solid var(--border-color); background: var(--bg-card); }
.cp-objective-group__head > div,.cp-material-group__head > div { display: grid; gap: 2px; }
.cp-objective-group__head strong,.cp-material-group__head strong { font-size: 13.5px; }
.cp-objective-group__head small,.cp-material-group__head small { color: var(--text-muted); font-size: 11.5px; }
.cp-objective-list { display: grid; }
.cp-objective-row { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 10px; align-items: start; padding: 11px 13px; }
.cp-objective-row + .cp-objective-row { border-top: 1px solid var(--border-color); }
.cp-objective-row__index { padding-top: 2px; color: var(--text-muted); font-size: 11px; font-weight: 750; }
.cp-objective-row strong { font-size: 12.5px; }
.cp-objective-row p { margin: 3px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.cp-material-meeting-list { display: grid; }
.cp-material-meeting-row { display: grid; grid-template-columns: 66px minmax(0,1fr) auto; gap: 0; align-items: stretch; }
.cp-material-meeting-row + .cp-material-meeting-row { border-top: 1px solid var(--border-color); }
.cp-material-meeting-row__sequence { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 8px; border-right: 1px solid var(--border-color); color: var(--text-muted); }
.cp-material-meeting-row__sequence span { font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; }
.cp-material-meeting-row__sequence strong { color: var(--text-main); font-size: 20px; }
.cp-material-meeting-row__content { min-width: 0; padding: 12px 13px; }
.cp-material-meeting-row__title { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 8px; }
.cp-material-meeting-row__title strong { font-size: 13.5px; }
.cp-material-meeting-row__title span { white-space: nowrap; color: var(--text-muted); font-size: 11px; }
.cp-material-meeting-row__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.cp-material-meeting-row__meta > div { min-width: 0; padding: 9px 10px; border: 1px solid var(--border-color); border-radius: 7px; background: var(--bg-card); }
.cp-material-meeting-row__meta .meta-label { display: block; margin-bottom: 3px; color: var(--text-muted); font-size: 9.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.cp-material-meeting-row__meta strong { display: block; font-size: 12px; }
.cp-material-meeting-row__meta small { display: block; margin-top: 2px; overflow: hidden; color: var(--text-muted); font-size: 11px; line-height: 1.4; text-overflow: ellipsis; }
.cp-material-meeting-row__actions { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; padding: 10px 12px; border-left: 1px solid var(--border-color); }
.single-meeting-map { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 120px; gap: 12px; align-items: end; }
.single-meeting-map .form-group { margin: 0; }
.single-meeting-advanced { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-color); }
.single-meeting-advanced > summary { cursor: pointer; color: var(--text-main); font-size: 12px; font-weight: 650; }
@media (max-width: 900px) {
  .cp-flow-strip--simple { position: static; }
  .cp-setup-row { grid-template-columns: 36px minmax(0,1fr); }
  .cp-setup-row > .btn { grid-column: 2; justify-self: start; }
  .single-meeting-map { grid-template-columns: 1fr; }
  .cp-material-meeting-row__meta { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .cp-objective-group__head,.cp-material-group__head { align-items: flex-start; flex-direction: column; }
  .cp-objective-row { grid-template-columns: 24px minmax(0,1fr); }
  .cp-objective-row > .btn { grid-column: 2; justify-self: start; }
  .cp-material-meeting-row { grid-template-columns: 52px minmax(0,1fr); }
  .cp-material-meeting-row__actions { grid-column: 2; flex-direction: row; justify-content: flex-start; border-left: 0; border-top: 1px solid var(--border-color); }
}

/* LMS SMEXA 4.10.1 — Learning Path dua halaman: Elemen -> TP & Materi */
.cp-page-steps {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-card);
}
.cp-page-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--text-muted);
  text-decoration: none;
}
.cp-page-step > span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-color);
  border-radius: 7px;
  background: var(--bg-page);
  font-size: 12px;
  font-weight: 800;
}
.cp-page-step > div { min-width: 0; display: grid; gap: 1px; }
.cp-page-step strong { color: var(--text-main); font-size: 13px; }
.cp-page-step small { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.cp-page-step.active { background: var(--primary-soft); color: var(--primary); }
.cp-page-step.active > span { border-color: color-mix(in srgb, var(--primary) 28%, var(--border-color)); background: var(--bg-card); color: var(--primary); }
.cp-page-step.complete:hover { background: var(--bg-page); }
.cp-page-step.complete > span { border-color: color-mix(in srgb, var(--success) 30%, var(--border-color)); color: var(--success); }

.cp-summary-strip {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-card);
  overflow: hidden;
}
.cp-summary-strip > div { display: grid; gap: 1px; padding: 13px 15px; }
.cp-summary-strip > div + div { border-left: 1px solid var(--border-color); }
.cp-summary-strip span { color: var(--text-muted); font-size: 10.5px; font-weight: 650; }
.cp-summary-strip strong { color: var(--text-main); font-size: 21px; line-height: 1.15; }
.cp-summary-strip small { color: var(--text-muted); font-size: 10.5px; }

.cp-elements-workspace { padding: 0; overflow: hidden; }
.cp-elements-workspace__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--border-color);
}
.cp-elements-workspace__head h2 { margin: 2px 0 4px; font-size: 17px; }
.cp-elements-workspace__head p { margin: 0; max-width: 720px; color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }
.cp-element-list { display: grid; }
.cp-element-list__item {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
}
.cp-element-list__item + .cp-element-list__item { border-top: 1px solid var(--border-color); }
.cp-element-list__number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--bg-page);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}
.cp-element-list__body { min-width: 0; }
.cp-element-list__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cp-element-list__title h3 { margin: 0; font-size: 14px; }
.cp-element-list__body > p { margin: 4px 0 7px; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.cp-element-list__meta { display: flex; gap: 13px; flex-wrap: wrap; color: var(--text-muted); font-size: 11px; }
.cp-element-list__meta span { display: inline-flex; align-items: center; gap: 4px; }
.cp-element-list__actions { display: flex; align-items: center; gap: 7px; }
.cp-publication-note { display: grid; grid-template-columns: minmax(180px,.38fr) 1fr; gap: 20px; margin-top: 16px; padding: 16px 18px; }
.cp-publication-note h3 { margin: 2px 0 0; font-size: 14px; }
.cp-publication-note ul { margin: 0; padding-left: 18px; color: var(--text-muted); font-size: 12px; line-height: 1.65; }

.cp-element-plan-summary {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(220px,320px);
  gap: 24px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px 18px;
}
.cp-element-plan-summary h2 { margin: 2px 0 4px; font-size: 17px; }
.cp-element-plan-summary p { margin: 0; color: var(--text-muted); font-size: 12.5px; line-height: 1.55; }
.cp-element-plan-progress { display: grid; gap: 8px; }
.cp-element-plan-progress > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cp-element-plan-progress strong { font-size: 18px; }
.cp-element-plan-progress span { color: var(--text-muted); font-size: 11px; }

.tp-material-slot-list { display: grid; gap: 10px; }
.tp-material-slot {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-card);
  overflow: hidden;
}
.tp-material-slot.is-complete { border-color: color-mix(in srgb, var(--success) 22%, var(--border-color)); }
.tp-material-slot__head {
  display: grid;
  grid-template-columns: 66px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-page);
}
.tp-material-slot__number {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-right: 1px solid var(--border-color);
}
.tp-material-slot__number span { color: var(--text-muted); font-size: 8.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tp-material-slot__number strong { font-size: 18px; line-height: 1.15; }
.tp-material-slot__head h3 { margin: 0 0 2px; font-size: 13.5px; }
.tp-material-slot__head p { margin: 0; color: var(--text-muted); font-size: 10.5px; }
.tp-material-slot__actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.tp-material-slot__actions .btn { white-space: nowrap; }
.tp-material-slot__body {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(280px,.85fr);
  gap: 15px;
  padding: 14px;
}
.tp-material-slot__body .form-group { margin: 0; }
.tp-material-slot__material-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; color: var(--text-muted); font-size: 10.5px; }
.tp-material-slot__material-meta a { display: inline-flex; align-items: center; gap: 3px; color: var(--primary); font-weight: 650; text-decoration: none; }
.cp-plan-savebar {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid var(--border-color);
  border-radius: 9px;
  background: color-mix(in srgb, var(--bg-card) 94%, transparent);
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
  backdrop-filter: blur(12px);
}
.cp-plan-savebar > div { display: grid; gap: 1px; }
.cp-plan-savebar strong { font-size: 12.5px; }
.cp-plan-savebar span { color: var(--text-muted); font-size: 10.5px; }

@media (max-width: 900px) {
  .cp-summary-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cp-summary-strip > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--border-color); }
  .cp-summary-strip > div:nth-child(4) { border-top: 1px solid var(--border-color); }
  .cp-element-list__item { grid-template-columns: 42px minmax(0,1fr); }
  .cp-element-list__actions { grid-column: 2; justify-content: flex-start; }
  .cp-element-plan-summary { grid-template-columns: 1fr; }
  .tp-material-slot__body { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .cp-page-steps { grid-template-columns: 1fr; }
  .cp-summary-strip { grid-template-columns: 1fr; }
  .cp-summary-strip > div + div { border-left: 0; border-top: 1px solid var(--border-color); }
  .cp-elements-workspace__head { flex-direction: column; }
  .cp-element-list__item { grid-template-columns: 36px minmax(0,1fr); padding: 13px; }
  .cp-element-list__number { width: 32px; height: 32px; }
  .cp-element-list__actions { flex-wrap: wrap; }
  .cp-publication-note { grid-template-columns: 1fr; }
  .tp-material-slot__head { grid-template-columns: 52px minmax(0,1fr); }
  .tp-material-slot__actions { grid-column: 2; justify-content: flex-start; }
  .cp-plan-savebar { align-items: stretch; flex-direction: column; bottom: 8px; }
  .cp-plan-savebar .btn { width: 100%; }
}


/* Material library status tabs */
.material-library-tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 14px;
    padding: 4px;
    width: fit-content;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    background: var(--bg-soft);
}
.material-library-tab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    padding: 6px 11px;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.material-library-tab strong {
    display: inline-flex;
    min-width: 22px;
    height: 20px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--bg-muted);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
}
.material-library-tab:hover { color: var(--text-main); background: var(--surface); }
.material-library-tab.is-active {
    background: var(--surface);
    color: var(--text-main);
    box-shadow: 0 0 0 1px var(--border-color);
}
.material-library-tab.is-active strong {
    background: var(--primary-soft);
    color: var(--primary);
}

/* LMS SMEXA v4.12.0 — Import Asesmen */
.assessment-import-preview-row.has-errors{border-color:var(--danger);background:var(--danger-light)}
.assessment-import-preview-row h3{font-size:15px;margin:2px 0 5px;color:var(--text-main)}
.assessment-import-preview-row p{margin:0;color:var(--text-muted);font-size:13px;line-height:1.5}
.assessment-import-inline-alert{margin:11px 0 0;padding:10px 12px}
.assessment-import-inline-alert ul{margin:5px 0 0;padding-left:18px}
.assessment-import-inline-alert li{font-size:12px;margin:2px 0}

/* LMS SMEXA v4.13.0 — CP library list + popup edit */
.cp-library-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 10px;
    background: var(--bg-card);
    margin-bottom: 18px;
    overflow: hidden;
}
.cp-library-summary > div {
    padding: 14px 18px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-right: 1px solid var(--border-color, #E5E7EB);
}
.cp-library-summary > div:last-child { border-right: 0; }
.cp-library-summary span { color: var(--text-muted, #6B7280); font-size: 13px; }
.cp-library-summary strong { font-size: 20px; color: var(--text-main); }
.cp-library-card { padding: 0; overflow: hidden; }
.cp-library-card__head { padding: 20px 22px; border-bottom: 1px solid var(--border-color, #E5E7EB); }
.cp-library-card__head h2 { margin: 2px 0 4px; font-size: 18px; }
.cp-library-card__head p { margin: 0; color: var(--text-muted, #6B7280); }
.cp-path-list { display: flex; flex-direction: column; }
.cp-path-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color, #E5E7EB);
}
.cp-path-row:last-child { border-bottom: 0; }
.cp-path-row__number {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--bg-muted);
    color: var(--text-muted, #6B7280);
    font-size: 12px;
    font-weight: 700;
}
.cp-path-row__main { min-width: 0; }
.cp-path-row__title { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.cp-path-row__title h3 { margin: 6px 0 2px; font-size: 15px; font-weight: 650; color: var(--text-main); }
.cp-path-row__title p { margin: 0; color: var(--text-muted, #6B7280); font-size: 13px; }
.cp-path-row__badges { gap: 6px; }
.cp-path-row__meeting { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.cp-path-row__meeting strong { font-size: 18px; }
.cp-path-row__meeting span { color: var(--text-muted, #6B7280); font-size: 12px; }
.cp-path-row__meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 11px; color: var(--text-muted, #6B7280); font-size: 12px; }
.cp-path-row__meta span { display: inline-flex; align-items: center; gap: 5px; }
.cp-path-row__actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; max-width: 390px; }
.cp-path-row__actions form { margin: 0; }
.workspace-dialog__shell--medium { width: min(820px, calc(100vw - 48px)); }
@media (max-width: 980px) {
    .cp-path-row { grid-template-columns: 36px minmax(0, 1fr); }
    .cp-path-row__actions { grid-column: 2; justify-content: flex-start; max-width: none; }
}
@media (max-width: 640px) {
    .cp-library-summary { grid-template-columns: 1fr; }
    .cp-library-summary > div { border-right: 0; border-bottom: 1px solid var(--border-color, #E5E7EB); }
    .cp-library-summary > div:last-child { border-bottom: 0; }
    .cp-path-row { grid-template-columns: 1fr; }
    .cp-path-row__number { display: none; }
    .cp-path-row__actions { grid-column: 1; }
    .cp-path-row__title { flex-direction: column; }
}

/* CP table & assignment Jam Pembelajaran list */
.table-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.table-actions form { margin: 0; }
.section-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-header-row h2 { margin: 0 0 4px; }
.section-header-row .muted { margin: 0; }
@media (max-width: 900px) {
  .section-header-row { flex-direction: column; }
}

/* LMS SMEXA 5.7.1 — Tambah Materi: alur 3 langkah yang lebih jelas */
.material-create-step { padding: 20px; }
.material-create-step__heading {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 14px;
    align-items: start;
    margin-bottom: 20px;
}
.material-create-step__heading--list { align-items: center; }
.material-create-step__heading h2 { margin: 0 0 5px; font-size: 18px; }
.material-create-step__heading p { margin: 0; line-height: 1.55; }
.material-create-step__number {
    width: 30px; height: 30px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border-color));
    background: var(--primary-light); color: var(--primary);
    font-size: 12px; font-weight: 800;
}
.material-create-secondary-fields { margin-bottom: 0; }
.material-create-count-panel {
    display: grid;
    grid-template-columns: minmax(220px, 320px) auto minmax(0,1fr);
    gap: 16px;
    align-items: end;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-soft);
}
.material-create-count-panel .form-group { margin-bottom: 0; }
.material-create-count-action { padding-bottom: 1px; }
.material-create-count-result {
    min-height: 42px;
    display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px;
}
.material-create-count-result span {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 9px; border: 1px solid var(--border-color); border-radius: 7px;
    background: var(--bg-card); color: var(--text-muted); font-size: 11px;
}
.material-create-count-result i { color: var(--primary); font-size: 15px; }
.material-create-count-result strong { color: var(--text-main); }
.material-create-import {
    margin-top: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    overflow: hidden;
}
.material-create-import > summary {
    min-height: 58px;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.material-create-import > summary::-webkit-details-marker { display: none; }
.material-create-import > summary:hover { background: var(--bg-soft); }
.material-create-import > summary strong,
.material-create-import > summary small { display: block; }
.material-create-import > summary strong { color: var(--text-main); font-size: 13px; }
.material-create-import > summary small { margin-top: 2px; color: var(--text-muted); font-size: 11px; line-height: 1.4; }
.material-create-import__icon {
    width: 34px; height: 34px; display: grid; place-items: center;
    border-radius: 8px; background: var(--bg-muted); color: var(--primary); font-size: 18px;
}
.material-create-import__chevron { color: var(--text-muted); font-size: 20px; transition: transform .15s ease; }
.material-create-import[open] .material-create-import__chevron { transform: rotate(180deg); }
.material-create-import__body { padding: 16px; border-top: 1px solid var(--border-color); background: var(--bg-soft); }
.material-create-import__steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.material-create-import__steps > div {
    display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 8px; align-items: start;
    padding: 10px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card);
}
.material-create-import__steps > div > span {
    width: 26px; height: 26px; display: grid; place-items: center;
    border-radius: 7px; background: var(--primary-light); color: var(--primary); font-size: 11px; font-weight: 800;
}
.material-create-import__steps p { margin: 0; }
.material-create-import__steps strong { display: block; color: var(--text-main); font-size: 12px; }
.material-create-import__steps small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 11px; line-height: 1.4; }
.material-create-import__actions {
    display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; align-items: center;
}
.material-create-import__upload { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; }
.material-create-import__body .alert { margin-top: 12px; margin-bottom: 0; }
.material-create-submaterial-list { gap: 10px; }
.material-create-submaterial { background: var(--bg-soft); }
.material-create-submaterial .form-grid { margin-bottom: 0; }
.material-create-submaterial .form-group { margin-bottom: 4px; }
.material-create-next-hint { display: flex; align-items: center; gap: 6px; margin-bottom: 0; }
.material-create-next-hint i { color: var(--primary); font-size: 15px; }
@media (max-width: 980px) {
    .material-create-count-panel { grid-template-columns: minmax(0,1fr) auto; }
    .material-create-count-result { grid-column: 1 / -1; justify-content: flex-start; }
    .material-create-import__steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .material-create-step { padding: 15px; }
    .material-create-step__heading { grid-template-columns: auto minmax(0,1fr); }
    .material-create-step__heading > .badge,
    .material-create-step__heading--list > .btn { grid-column: 2; justify-self: start; }
    .material-create-count-panel { grid-template-columns: 1fr; }
    .material-create-count-action { padding: 0; }
    .material-create-count-action .btn { width: 100%; justify-content: center; }
    .material-create-import__actions,
    .material-create-import__upload { grid-template-columns: 1fr; }
    .material-create-import__actions .btn,
    .material-create-import__upload .btn { width: 100%; justify-content: center; }
}

/* LMS SMEXA v5.7.3 — clean Tambah Materi */
.material-create-page-header { max-width: 960px; margin-left:auto; margin-right:auto; align-items:flex-start; }
.material-create-page-header > div:first-child { min-width:0; }
.material-create-status { flex:0 0 auto; margin-left:auto; }
.material-create-form { max-width:960px; margin:0 auto; }
.material-create-panel { padding:28px 30px; }
.material-create-fields { max-width:760px; }
.material-create-fields .form-group:last-of-type { margin-bottom:0; }
.material-create-cover { margin-top:10px; }
.material-create-cover > summary { display:inline-flex; align-items:center; gap:7px; cursor:pointer; color:var(--text-muted); font-size:13px; font-weight:600; list-style:none; }
.material-create-cover > summary::-webkit-details-marker { display:none; }
.material-create-cover > summary span { font-weight:500; }
.material-create-cover__body { max-width:520px; padding-top:10px; }
.material-create-divider { height:1px; margin:28px 0 24px; background:var(--border-color); }
.material-create-subsection__title { display:flex; align-items:baseline; gap:10px; margin-bottom:16px; }
.material-create-subsection__title h2 { margin:0; font-size:16px; }
.material-create-subsection__title .muted { font-size:12px; }
.material-create-setup { display:flex; align-items:flex-end; gap:10px; }
.material-create-count { width:140px; margin-bottom:0; }
.material-create-workspace { margin-top:18px; }
.material-create-workspace[hidden] { display:none !important; }
.material-create-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.material-create-toolbar > strong { font-size:13px; }
.material-create-mode { display:inline-flex; gap:2px; padding:2px; border:1px solid var(--border-color); border-radius:8px; background:var(--bg-soft); }
.material-create-mode__btn { border:0; border-radius:6px; padding:6px 10px; background:transparent; color:var(--text-muted); font:inherit; font-size:12px; font-weight:600; cursor:pointer; }
.material-create-mode__btn.is-active { background:var(--surface-card); color:var(--text-main); box-shadow:0 1px 2px rgba(15,23,42,.08); }
.material-create-subtable__head,.material-create-subrow { display:grid; grid-template-columns:44px minmax(240px,1fr) minmax(240px,1fr) 34px; gap:10px; align-items:center; }
.material-create-subtable__head { padding:0 8px 7px; color:var(--text-muted); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; }
.material-create-subtable__head em { font-style:normal; font-weight:500; text-transform:none; }
.material-create-subtable { border:1px solid var(--border-color); border-radius:9px; overflow:hidden; background:var(--surface-card); }
.material-create-subrow { padding:9px 8px; border-bottom:1px solid var(--border-color); }
.material-create-subrow:last-child { border-bottom:0; }
.material-create-subrow__jp { display:flex; width:28px; height:28px; align-items:center; justify-content:center; border-radius:6px; background:var(--bg-soft); color:var(--text-muted); font-size:12px; font-weight:700; }
.material-create-subrow .form-control { min-height:36px; padding-top:7px; padding-bottom:7px; }
.material-create-subrow__remove { justify-self:end; }
.material-create-subtable__footer { margin-top:9px; }
.material-create-import[hidden] { display:none !important; }
.material-create-import { padding:14px; border:1px solid var(--border-color); border-radius:9px; background:var(--bg-soft); }
.material-create-import__actions { display:grid; grid-template-columns:auto minmax(260px,1fr) auto; gap:9px; align-items:center; }
.material-create-import > small { display:block; margin-top:8px; }
.material-create-import .alert { margin:10px 0 0; }
.material-create-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:16px; padding-bottom:20px; }
@media (max-width: 900px) {
    .material-create-page-header,.material-create-form { max-width:none; }
    .material-create-panel { padding:20px; }
    .material-create-toolbar { align-items:flex-start; flex-direction:column; }
    .material-create-subtable__head { display:none; }
    .material-create-subrow { grid-template-columns:38px minmax(0,1fr) 34px; }
    .material-create-subrow > input[name$="[summary]"],.material-create-subrow > input[data-name="summary"] { grid-column:2; }
    .material-create-subrow__remove { grid-column:3; grid-row:1; }
    .material-create-import__actions { grid-template-columns:1fr; }
}


/* LMS SMEXA v5.7.4 — Tambah Materi: cache-safe, desktop-first compact editor */
.material-create-page-header,
.material-create-form { max-width: 1120px; }
.material-create-page-header { padding-bottom: 18px; margin-bottom: 20px; }
.material-create-page-header .page-title { margin-top: 0; }
.material-create-panel { padding: 24px 26px; }
.material-create-fields { max-width: none; }
.material-create-meta-grid {
    display:grid;
    grid-template-columns:minmax(240px,.72fr) minmax(360px,1.28fr);
    gap:18px;
    align-items:start;
}
.material-create-meta-grid .form-group { margin-bottom:0; }
.material-create-summary { margin-top:18px; margin-bottom:0; }
.material-create-summary textarea { min-height:88px; resize:vertical; }
.material-create-cover { margin-top:14px; }
.material-create-divider { margin:22px 0 18px; }
.material-create-subsection__title {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:18px;
    margin-bottom:14px;
}
.material-create-subsection__title > div:first-child { min-width:0; }
.material-create-subsection__title h2 { margin:0 0 3px; font-size:16px; }
.material-create-subsection__title .muted { display:block; font-size:12px; }
.material-create-setup { display:flex; align-items:flex-end; gap:8px; flex:0 0 auto; }
.material-create-count-inline { display:grid; grid-template-columns:auto 76px; align-items:center; gap:8px; color:var(--text-muted); font-size:12px; font-weight:600; }
.material-create-count-inline .form-control { min-height:36px; height:36px; padding:6px 8px; }
.material-create-setup .btn { min-height:36px; }
.material-create-workspace {
    margin-top:12px;
    padding-top:14px;
    border-top:1px solid var(--border-color);
}
.material-create-toolbar { margin-bottom:12px; }
.material-create-mode { gap:0; padding:3px; border-radius:9px; }
.material-create-mode__btn { min-height:30px; padding:5px 11px; }
.material-create-subtable__head,
.material-create-subrow {
    grid-template-columns:52px minmax(280px,1.05fr) minmax(300px,1fr) 38px;
    gap:12px;
}
.material-create-subtable__head {
    padding:0 10px 8px;
    font-size:11px;
}
.material-create-subrow { padding:10px; }
.material-create-subrow .form-control { min-height:38px; }
.material-create-subtable__footer { display:flex; justify-content:flex-start; margin-top:10px; }
.material-create-import { padding:16px; }
.material-create-import__actions { grid-template-columns:auto minmax(320px,1fr) auto; }
.material-create-actions { margin-top:14px; padding:0 0 16px; }
@media (max-width: 760px) {
    .material-create-page-header,.material-create-form { max-width:none; }
    .material-create-panel { padding:18px; }
    .material-create-meta-grid { grid-template-columns:1fr; gap:14px; }
    .material-create-subsection__title { align-items:flex-start; flex-direction:column; }
    .material-create-setup { width:100%; }
    .material-create-count-inline { flex:1 1 auto; grid-template-columns:minmax(0,1fr) 82px; }
    .material-create-toolbar { align-items:flex-start; flex-direction:column; }
    .material-create-subtable__head { display:none; }
    .material-create-subrow { grid-template-columns:42px minmax(0,1fr) 38px; }
    .material-create-subrow > input[name$="[summary]"],
    .material-create-subrow > input[data-name="summary"] { grid-column:2; }
    .material-create-subrow__remove { grid-column:3; grid-row:1; }
    .material-create-import__actions { grid-template-columns:1fr; }
}

/* =========================================================
 * LMS SMEXA v5.11.1 — End-user Top Navigation
 * Guru/Siswa memakai aksen biru yang sama dan tidak menggunakan sidebar.
 * Admin/Kurikulum tetap memakai management shell sebelumnya.
 * ========================================================= */
.end-user-shell {
    --end-user-accent: #3b82f6;
    --end-user-accent-soft: rgba(59,130,246,.12);
    --end-user-accent-strong: #2563eb;
    --end-user-hero-from: #1d4ed8;
    --end-user-hero-to: #1e3a8a;
    --end-user-panel-radius: 14px;
    --sidebar-width: 224px;
}
.end-user-shell.role-guru,
.end-user-shell.role-siswa {
    --end-user-accent: #3b82f6;
    --end-user-accent-soft: rgba(59,130,246,.12);
    --end-user-accent-strong: #2563eb;
    --end-user-hero-from: #1d4ed8;
    --end-user-hero-to: #1e3a8a;
}
[data-theme="dark"] .end-user-shell.role-guru,
[data-theme="dark"] .end-user-shell.role-siswa {
    --end-user-hero-from: #183b73;
    --end-user-hero-to: #12284e;
}
.end-user-shell .sidebar { background: color-mix(in srgb, var(--sidebar-bg) 94%, var(--end-user-accent) 6%); }
.end-user-shell .sidebar-brand { min-height: 68px; padding: 13px 15px; }
.end-user-shell .brand-mark { border: 0; background: var(--end-user-accent); color: #fff; }
.end-user-shell .brand-copy small { text-transform: none; letter-spacing: 0; }
.end-user-shell .sidebar-menu { padding: 10px 12px 18px; }
.end-user-shell .menu-link { min-height: 43px; border-radius: 9px; font-size: 13px; }
.end-user-shell .menu-link.active { background: var(--end-user-accent) !important; color: #fff !important; }
.end-user-shell .menu-link.active::before { display: none; }
.end-user-shell .menu-link.active i { color: #fff; }
.end-user-shell .sidebar-footer { background: transparent !important; }
.end-user-shell .sidebar-version { opacity: .65; }
.end-user-shell .footer { display: none; }
.end-user-shell .content-body { padding-top: 24px; padding-bottom: 38px; }
.end-user-shell .navbar { background: color-mix(in srgb, var(--bg-card) 96%, var(--end-user-accent) 4%); }
.end-user-shell .navbar-eyebrow { color: var(--end-user-accent); text-transform: none; letter-spacing: .01em; }
.end-user-shell .topbar-user { padding: 3px; border: 0; background: transparent; }
.end-user-shell .topbar-avatar { width: 34px; height: 34px; }
.end-user-shell .card,
.end-user-shell .end-user-panel { border-radius: var(--end-user-panel-radius); }

/* End-user shell tanpa sidebar: navigasi utama pindah ke top bar. */
.end-user-main-content {
    width: 100%;
    margin-left: 0;
}
.end-user-shell .content-body {
    width: min(100%, 1480px);
    margin: 0 auto;
    padding-left: clamp(20px, 3vw, 44px);
    padding-right: clamp(20px, 3vw, 44px);
}
.end-user-navbar {
    min-height: 68px;
    height: auto;
    gap: 22px;
    padding: 0 clamp(20px, 3vw, 44px);
    background: color-mix(in srgb, var(--bg-card) 97%, var(--end-user-accent) 3%);
}
.end-user-navbar-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 28px;
}
.end-user-top-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: var(--text-main);
    text-decoration: none;
}
.end-user-top-brand .brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--end-user-accent);
    color: #fff;
    font-size: 19px;
}
.end-user-top-brand > span:last-child {
    display: flex;
    align-items: center;
}
.end-user-top-brand strong {
    font-size: 13px;
    line-height: 1.1;
}
.end-user-top-links {
    display: flex;
    align-items: center;
    gap: 5px;
}
.end-user-top-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border-radius: 9px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    transition: .16s ease;
}
.end-user-top-link i { font-size: 17px; }
.end-user-top-link:hover {
    color: var(--end-user-accent);
    background: var(--end-user-accent-soft);
}
.end-user-top-link.active {
    color: #fff;
    background: var(--end-user-accent);
    box-shadow: 0 5px 14px rgba(37,99,235,.18);
}
.end-user-navbar-actions {
    gap: 10px;
    margin-left: auto;
}
.end-user-navbar .theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}
.end-user-account-menu {
    position: relative;
}
.end-user-account-menu > summary {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 7px 4px 4px;
    border: 1px solid transparent;
    border-radius: 11px;
    cursor: pointer;
    list-style: none;
    color: var(--text-main);
    transition: .16s ease;
}
.end-user-account-menu > summary::-webkit-details-marker { display: none; }
.end-user-account-menu > summary:hover,
.end-user-account-menu[open] > summary {
    border-color: var(--border-color);
    background: var(--bg-soft);
}
.end-user-account-menu > summary > i {
    color: var(--text-muted);
    font-size: 17px;
    transition: transform .15s ease;
}
.end-user-account-menu[open] > summary > i { transform: rotate(180deg); }
.end-user-account-name {
    min-width: 0;
    display: grid;
    gap: 1px;
    text-align: left;
}
.end-user-account-name strong {
    max-width: 150px;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.end-user-account-name small {
    color: var(--text-muted);
    font-size: 8px;
}
.end-user-account-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 120;
    width: 230px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
}
.end-user-account-header {
    display: grid;
    gap: 2px;
    padding: 8px 9px 10px;
}
.end-user-account-header strong { font-size: 11px; }
.end-user-account-header small { color: var(--text-muted); font-size: 8px; }
.end-user-account-popover > a,
.end-user-account-popover form button {
    width: 100%;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    font-size: 10px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.end-user-account-popover > a:hover,
.end-user-account-popover form button:hover {
    color: var(--end-user-accent);
    background: var(--end-user-accent-soft);
}
.end-user-account-popover i { font-size: 17px; }
.end-user-account-divider { height: 1px; margin: 6px 4px; background: var(--border-color); }
.end-user-account-version { display: block; padding: 6px 9px 3px; color: var(--text-muted); font-size: 7px; }
.end-user-navbar.is-focus-mode {
    min-height: 58px;
}
.end-user-navbar.is-focus-mode .end-user-navbar-left {
    gap: 22px;
}
.end-user-focus-shell .content-body { padding-top: 18px; }

.end-user-profile-card {
    margin: 2px 12px 8px;
    padding: 11px;
    display: grid;
    grid-template-columns: 38px minmax(0,1fr);
    gap: 10px;
    align-items: center;
    border-radius: 11px;
    color: var(--text-main);
    text-decoration: none;
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
}
.end-user-profile-card:hover { border-color: color-mix(in srgb, var(--end-user-accent) 42%, var(--border-color)); }
.end-user-profile-card img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.end-user-profile-card span { min-width: 0; display: flex; flex-direction: column; }
.end-user-profile-card small { color: var(--text-muted); font-size: 9px; }
.end-user-profile-card strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.end-user-profile-card em { width: fit-content; margin-top: 3px; padding: 1px 6px; border-radius: 999px; background: var(--end-user-accent-soft); color: var(--end-user-accent); font-size: 8px; font-style: normal; font-weight: 700; }
.end-user-help-link { display: flex; align-items: center; gap: 8px; margin: 0 7px 5px; padding: 8px 9px; border-radius: 8px; color: var(--text-muted); text-decoration: none; font-size: 11px; }
.end-user-help-link:hover { background: var(--sidebar-hover); color: var(--text-main); }
.end-user-date { display: flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 11px; font-weight: 500; }
.end-user-date i { color: var(--end-user-accent); font-size: 17px; }

.end-user-kicker { display: block; color: var(--end-user-accent); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.end-user-welcome { margin: 2px 0 18px; }
.end-user-welcome span { color: var(--end-user-accent); font-size: 11px; font-weight: 700; }
.end-user-welcome h1 { margin: 3px 0 3px; font-size: 23px; letter-spacing: -.03em; }
.end-user-welcome p { margin: 0; color: var(--text-muted); font-size: 12px; }
.end-user-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.end-user-page-head h1 { margin: 3px 0 4px; font-size: clamp(22px,2.2vw,30px); letter-spacing: -.035em; }
.end-user-page-head p { max-width: 780px; margin: 0; color: var(--text-muted); }
.end-user-page-head .page-back-link { margin-bottom: 9px; }

.end-user-dashboard-grid { display: grid; gap: 16px; margin-bottom: 16px; }
.teacher-dashboard-grid { grid-template-columns: minmax(0,1.65fr) minmax(260px,.75fr); }
.student-dashboard-grid { grid-template-columns: minmax(0,1.7fr) minmax(260px,.75fr); }
.end-user-dashboard-grid.lower-grid { align-items: stretch; }
.end-user-hero {
    min-height: 260px;
    display: grid;
    grid-template-columns: minmax(0,1.25fr) minmax(180px,.75fr);
    overflow: hidden;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg,var(--end-user-hero-from),var(--end-user-hero-to));
    box-shadow: 0 18px 44px rgba(15,23,42,.16);
}
.end-user-hero-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 28px 30px; }
.end-user-hero .end-user-kicker { color: rgba(255,255,255,.78); }
.end-user-hero-copy > small { margin-top: 5px; color: rgba(255,255,255,.82); font-weight: 600; }
.end-user-hero-copy > strong { display: block; margin-top: 12px; font-size: clamp(28px,3vw,42px); line-height: 1.06; letter-spacing: -.045em; }
.end-user-hero-copy > p { max-width: 520px; margin: 8px 0 0; color: rgba(255,255,255,.82); font-size: 12px; }
.end-user-hero .end-user-primary-action { width: fit-content; margin-top: 20px; border-color: rgba(255,255,255,.25); background: #fff; color: #123; }
.end-user-hero .end-user-primary-action:hover { background: rgba(255,255,255,.9); }
.end-user-hero-visual { position: relative; display: grid; place-items: center; min-height: 100%; overflow: hidden; }
.end-user-hero-visual::before,.end-user-hero-visual::after { content:''; position:absolute; border-radius:50%; background:rgba(255,255,255,.07); }
.end-user-hero-visual::before { width:220px;height:220px;right:-60px;bottom:-60px; }
.end-user-hero-visual::after { width:130px;height:130px;left:10px;top:22px; }
.end-user-hero-visual > i { position:relative; z-index:1; font-size:88px; color:rgba(255,255,255,.86); filter:drop-shadow(0 12px 24px rgba(0,0,0,.14)); }
.end-user-hero-visual > span { position:absolute; z-index:2; right:22px; bottom:22px; padding:5px 9px; border:1px solid rgba(255,255,255,.18); border-radius:999px; background:rgba(0,0,0,.12); color:#fff; font-size:11px; font-weight:700; backdrop-filter:blur(8px); }
.current-jp-pill { width: fit-content; margin-top: 12px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(0,0,0,.12); color: #fff; font-size: 10px; font-weight: 700; }

.end-user-side-card,.end-user-panel {
    padding: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: var(--shadow-xs);
}
.end-user-side-card { min-height: 260px; display: flex; flex-direction: column; }
.position-number { display: flex; align-items: baseline; gap: 7px; margin: 26px 0 10px; }
.position-number strong { font-size: 30px; letter-spacing: -.04em; }
.position-number span { color: var(--text-muted); font-size: 11px; }
.end-user-progress { height: 7px; overflow: hidden; border-radius: 999px; background: var(--bg-muted); }
.end-user-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--end-user-accent); }
.end-user-progress.large { height: 9px; }
.end-user-side-card > small { margin-top: 7px; color: var(--text-muted); }
.end-user-text-link { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 18px; color: var(--end-user-accent); font-size: 11px; font-weight: 700; text-decoration: none; }
.end-user-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.end-user-panel-head h2 { margin: 2px 0 0; font-size: 16px; }
.end-user-panel-head p { max-width: 760px; margin: 4px 0 0; color: var(--text-muted); font-size: 11px; }
.end-user-panel-head > a { color: var(--end-user-accent); font-size: 10px; font-weight: 700; text-decoration: none; }

.end-user-class-list { display: grid; gap: 8px; }
.end-user-class-row { display: grid; grid-template-columns: 36px minmax(0,1fr) auto 18px; gap: 10px; align-items: center; padding: 10px 11px; border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-main); text-decoration: none; background: var(--bg-soft); }
.end-user-class-row:hover { border-color: color-mix(in srgb,var(--end-user-accent) 35%,var(--border-color)); transform: translateY(-1px); }
.class-row-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--end-user-accent-soft); color: var(--end-user-accent); font-size: 18px; }
.class-row-copy { min-width: 0; display: grid; gap: 2px; }
.class-row-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.class-row-copy small { color: var(--text-muted); font-size: 9px; }
.mini-progress { display: block; width: 100%; height: 4px; overflow: hidden; border-radius: 999px; background: var(--bg-muted); }
.mini-progress i { display: block; height: 100%; border-radius: inherit; background: var(--end-user-accent); }
.class-row-status { min-width: 88px; padding: 4px 7px; border-radius: 8px; background: var(--bg-muted); color: var(--text-muted); font-size: 9px; font-weight: 700; text-align: center; }
.class-row-status.is-mine { background: var(--success-light); color: var(--success); }
.class-row-status small { display: block; margin-top: 2px; font-size: 8px; font-weight: 500; }

.attention-panel { display: flex; flex-direction: column; }
.attention-row { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 9px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-color); color: var(--text-main); text-decoration: none; }
.attention-row:last-child { border-bottom: 0; }
.attention-icon,.summary-dot { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; }
.attention-icon.purple { background: rgba(139,92,246,.13); color: #8b5cf6; }
.attention-icon.blue { background: rgba(59,130,246,.13); color: #3b82f6; }
.attention-icon.orange { background: rgba(245,158,11,.14); color: #d97706; }
.attention-row span:last-child,.learning-summary-row span:last-child { display: grid; gap: 1px; }
.attention-row strong,.learning-summary-row strong { font-size: 11px; }
.attention-row small,.learning-summary-row small { color: var(--text-muted); font-size: 9px; }
.learning-summary-row { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 9px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border-color); }
.learning-summary-row:last-child { border-bottom: 0; }
.summary-dot.green { background: rgba(16,185,129,.13); color:#10b981; }
.summary-dot.blue { background: rgba(59,130,246,.13); color:#3b82f6; }
.summary-dot.orange { background: rgba(245,158,11,.14); color:#d97706; }
.summary-dot.red { background: rgba(239,68,68,.13); color:#ef4444; }

.subject-card-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.student-subject-card { display: flex; flex-direction: column; min-width: 0; min-height: 150px; padding: 14px; border: 1px solid var(--border-color); border-radius: 11px; color: var(--text-main); text-decoration: none; background: var(--bg-soft); }
.student-subject-card:hover { border-color: color-mix(in srgb,var(--end-user-accent) 38%,var(--border-color)); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.subject-card-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 10px; background: var(--end-user-accent-soft); color: var(--end-user-accent); font-size: 21px; }
.student-subject-card > strong { font-size: 12px; }
.student-subject-card > small { margin-top: 2px; color: var(--text-muted); font-size: 9px; }
.student-subject-card .mini-progress { margin-top: auto; }
.student-subject-card > span:not(.subject-card-icon):not(.end-user-kicker) { margin-top: 6px; color: var(--text-muted); font-size: 9px; }
.student-subject-card > em { display: flex; align-items: center; gap: 4px; margin-top: 10px; color: var(--end-user-accent); font-size: 10px; font-style: normal; font-weight: 700; }
.student-subject-card.large { min-height: 210px; padding: 18px; }
.student-subject-card.large > strong { margin-top: 4px; font-size: 16px; }
.student-class-subjects,.student-learning-path-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }

.end-user-empty { display: grid; gap: 5px; place-items: center; min-height: 150px; color: var(--text-muted); text-align: center; }
.end-user-empty > i { font-size: 32px; color: var(--end-user-accent); }
.end-user-empty > strong { color: var(--text-main); }
.end-user-empty.compact { min-height: 90px; font-size: 11px; }

/* Teacher class list */
.teacher-class-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.teacher-class-card { display: flex; flex-direction: column; min-height: 220px; padding: 17px; border: 1px solid var(--border-color); border-radius: 14px; color: var(--text-main); text-decoration: none; background: var(--bg-card); box-shadow: var(--shadow-xs); }
.teacher-class-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb,var(--end-user-accent) 38%,var(--border-color)); box-shadow: var(--shadow-sm); }
.teacher-class-card__head { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 10px; align-items: center; }
.teacher-class-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--end-user-accent-soft); color: var(--end-user-accent); font-size: 21px; }
.teacher-class-title { min-width: 0; display: flex; flex-direction: column; }
.teacher-class-title strong { font-size: 14px; }
.teacher-class-title small { color: var(--text-muted); font-size: 9px; }
.class-turn-badge { display: inline-flex; align-items: center; justify-content: center; width: fit-content; padding: 4px 8px; border-radius: 999px; background: var(--bg-muted); color: var(--text-muted); font-size: 9px; font-weight: 800; }
.class-turn-badge.is-mine { background: var(--success-light); color: var(--success); }
.teacher-class-progress { margin-top: 24px; }
.teacher-class-progress > div:first-child { display: flex; justify-content: space-between; gap: 8px; }
.teacher-class-progress span,.teacher-class-progress small { color: var(--text-muted); font-size: 9px; }
.teacher-class-progress strong { font-size: 12px; }
.teacher-class-progress .mini-progress { margin: 8px 0 6px; }
.teacher-class-card__foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 9px; }
.teacher-class-card__foot > i:last-child { margin-left: auto; font-size: 18px; color: var(--end-user-accent); }

/* Teacher turn / class workspace */
.teacher-turn-workspace { display: grid; grid-template-columns: minmax(0,1.65fr) 290px; gap: 14px; margin-bottom: 14px; }
.teacher-turn-main,.teacher-turn-side { border: 1px solid var(--border-color); border-radius: 15px; background: var(--bg-card); box-shadow: var(--shadow-xs); }
.teacher-turn-main { padding: 24px; }
.teacher-turn-workspace.is-active .teacher-turn-main { border-color: color-mix(in srgb,var(--end-user-accent) 32%,var(--border-color)); background: linear-gradient(145deg,color-mix(in srgb,var(--bg-card) 92%,var(--end-user-accent) 8%),var(--bg-card)); }
.teacher-turn-side { padding: 19px; }
.teacher-turn-label { display: flex; align-items: center; gap: 7px; color: var(--end-user-accent); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.status-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--end-user-accent); box-shadow: 0 0 0 5px var(--end-user-accent-soft); }
.teacher-turn-title { margin-top: 16px; }
.teacher-turn-title > span { color: var(--text-muted); font-size: 10px; font-weight: 600; }
.teacher-turn-title h2 { margin: 3px 0 5px; font-size: 25px; letter-spacing: -.035em; }
.teacher-turn-title p { max-width: 720px; margin: 0; color: var(--text-muted); }
.teacher-turn-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 22px; }
.teacher-turn-metrics > span { padding: 10px 11px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-soft); }
.teacher-turn-metrics small,.teacher-turn-metrics strong { display: block; }
.teacher-turn-metrics small { color: var(--text-muted); font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.teacher-turn-metrics strong { margin-top: 3px; font-size: 11px; }
.teacher-turn-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.teacher-turn-actions form { margin: 0; }
.teacher-substitute-action { position: relative; }
.teacher-substitute-action > summary { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-main); background: var(--bg-card); cursor: pointer; list-style: none; font-size: 11px; font-weight: 700; }
.teacher-substitute-action > summary::-webkit-details-marker { display:none; }
.teacher-substitute-action > form { width: min(420px,80vw); margin-top: 8px; padding: 13px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-soft); }
.turn-side-stat { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 9px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border-color); }
.turn-side-stat > i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--end-user-accent-soft); color: var(--end-user-accent); font-size: 17px; }
.turn-side-stat span { display: grid; gap: 1px; }
.turn-side-stat small { color: var(--text-muted); font-size: 8px; }
.turn-side-stat strong { font-size: 11px; }
.teacher-takeover-box { margin-top: 14px; padding: 12px; border-radius: 10px; background: var(--warning-light); }
.teacher-takeover-box > strong { font-size: 11px; }
.teacher-takeover-box > p { margin: 4px 0 9px; color: var(--text-muted); font-size: 9px; }
.teacher-takeover-box form { display: grid; gap: 7px; }

.end-user-details { margin: 12px 0; overflow: hidden; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-card); }
.end-user-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; cursor: pointer; list-style: none; }
.end-user-details > summary::-webkit-details-marker { display:none; }
.end-user-details > summary > span { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 1px 8px; align-items: center; }
.end-user-details > summary > span > i { grid-row: 1 / span 2; width: 28px; height: 28px; display:grid; place-items:center; border-radius:8px; background:var(--end-user-accent-soft); color:var(--end-user-accent); }
.end-user-details > summary strong { font-size: 11px; }
.end-user-details > summary small { color: var(--text-muted); font-size: 9px; }
.end-user-details > summary > i { transition: transform .15s ease; }
.end-user-details[open] > summary > i { transform: rotate(180deg); }
.end-user-details-body { padding: 15px 16px; border-top: 1px solid var(--border-color); }
.teacher-end-turn { border-color: color-mix(in srgb,var(--warning) 28%,var(--border-color)); }

.teacher-learning-map { margin-bottom: 12px; }
.teacher-objective-list { display: grid; gap: 10px; }
.teacher-objective-card { padding: 13px; border: 1px solid var(--border-color); border-radius: 11px; background: var(--bg-soft); }
.teacher-objective-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.teacher-objective-head > span:first-child { display: grid; gap: 1px; }
.teacher-objective-head small { color: var(--end-user-accent); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.teacher-objective-head strong { font-size: 12px; }
.teacher-objective-head em { color: var(--text-muted); font-size: 9px; font-style: normal; }
.objective-progress-badge { padding: 4px 8px; border-radius: 999px; background: var(--success-light); color: var(--success); font-size: 9px; font-weight: 800; }
.teacher-hour-strip { display: grid; grid-template-columns: repeat(auto-fill,minmax(138px,1fr)); gap: 6px; }
.teacher-hour-chip { position: relative; min-height: 62px; padding: 8px 9px; border: 1px solid var(--border-color); border-radius: 9px; color: var(--text-main); text-decoration: none; background: var(--bg-card); }
.teacher-hour-chip b,.teacher-hour-chip span { display:block; }
.teacher-hour-chip b { color: var(--end-user-accent); font-size: 9px; }
.teacher-hour-chip span { margin-top: 2px; overflow:hidden; color:var(--text-muted); font-size:8px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.teacher-hour-chip i { position:absolute; right:6px; top:6px; min-width:17px; height:17px; display:grid; place-items:center; border-radius:999px; background:var(--warning-light); color:var(--warning); font-size:8px; font-style:normal; font-weight:800; }
.teacher-hour-chip.is-locked { opacity:.6; }
.teacher-hour-chip.is-current { border-color:var(--end-user-accent); box-shadow:0 0 0 2px var(--end-user-accent-soft); }

/* Teaching JP workspace */
.teaching-workspace-grid { display:grid; grid-template-columns: 190px minmax(0,1fr) 230px; gap:12px; align-items:start; }
.teaching-stage-panel,.teaching-info-panel { position:sticky; top:calc(var(--navbar-height) + 16px); padding:14px; border:1px solid var(--border-color); border-radius:12px; background:var(--bg-card); }
.teaching-stage-panel { display:grid; gap:6px; }
.teaching-stage { display:grid; grid-template-columns:25px minmax(0,1fr); gap:7px; align-items:center; min-height:39px; padding:7px 8px; border-radius:8px; color:var(--text-muted); text-decoration:none; font-size:9px; font-weight:700; }
.teaching-stage b { width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:var(--bg-muted);color:var(--text-muted);font-size:8px; }
.teaching-stage.is-active { background:var(--end-user-accent-soft);color:var(--end-user-accent); }
.teaching-stage.is-active b { background:var(--end-user-accent);color:#fff; }
.teaching-stage-help { display:grid;grid-template-columns:28px minmax(0,1fr);gap:7px;margin-top:10px;padding:9px;border-radius:9px;background:var(--bg-soft); }
.teaching-stage-help > i { font-size:20px;color:var(--end-user-accent); }
.teaching-stage-help span { display:grid;gap:1px; }
.teaching-stage-help strong { font-size:9px; }
.teaching-stage-help small { color:var(--text-muted);font-size:8px;line-height:1.45; }
.teaching-focus-column { display:grid;gap:12px;min-width:0; }
.teaching-focus-card { padding:22px; }
.teaching-focus-meta { display:flex;align-items:center;flex-wrap:wrap;gap:10px;color:var(--text-muted);font-size:9px; }
.teaching-focus-meta span:first-child { color:var(--end-user-accent);font-weight:800; }
.teaching-focus-card h2 { margin:8px 0 4px;font-size:24px;letter-spacing:-.035em; }
.teaching-objective-copy { margin:0;color:var(--text-muted); }
.teaching-material-preview { display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:14px;margin-top:18px;padding:16px;border:1px solid var(--border-color);border-radius:12px;background:var(--bg-soft); }
.teaching-material-preview > div:first-child { display:flex;flex-direction:column; }
.teaching-material-preview strong { margin-top:4px;font-size:14px; }
.teaching-material-preview p { color:var(--text-muted);font-size:10px; }
.teaching-code-visual { display:grid;place-items:center;align-content:center;gap:5px;min-height:130px;border-radius:10px;background:linear-gradient(145deg,#101a30,#172642);color:#8ab4ff; }
.teaching-code-visual i { font-size:48px; }
.teaching-code-visual span { color:#b6c7e6;font-size:9px;font-weight:700; }
.assessment-stage-cards { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }
.assessment-stage-card { display:grid;grid-template-columns:1fr auto;gap:4px 8px;padding:12px;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-soft); }
.assessment-stage-card > span,.assessment-stage-card > strong { grid-column:1 / -1; }
.assessment-stage-card > span { color:var(--end-user-accent);font-size:8px;font-weight:800;text-transform:uppercase; }
.assessment-stage-card > strong { overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap; }
.assessment-stage-card > div { display:grid;gap:1px; }
.assessment-stage-card small { color:var(--text-muted);font-size:7px; }
.assessment-stage-card b { font-size:13px; }
.assessment-stage-card em { grid-column:1 / -1;color:var(--text-muted);font-size:8px;font-style:normal; }
.assessment-stage-card.is-primary { border-color:color-mix(in srgb,var(--end-user-accent) 34%,var(--border-color)); }
.teaching-progress-meta { display:flex;gap:14px;margin-top:9px;color:var(--text-muted);font-size:9px; }
.teaching-info-panel { display:grid;gap:0; }
.teaching-info-panel > .btn { margin-top:14px; }
.review-card-list { display:grid;gap:8px; }
.review-card { display:grid;grid-template-columns:minmax(160px,.55fr) minmax(160px,1fr) minmax(220px,.75fr);gap:12px;align-items:start;padding:11px;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-soft); }
.review-student { display:grid;grid-template-columns:32px minmax(0,1fr);gap:8px;align-items:center; }
.avatar-placeholder { width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:var(--end-user-accent-soft);color:var(--end-user-accent); }
.review-student span:last-child { display:grid;gap:1px; }
.review-student strong { font-size:10px; }.review-student small{color:var(--text-muted);font-size:8px;}
.review-card > p { margin:0;color:var(--text-muted);font-size:9px; }
.review-action form { display:grid;grid-template-columns:1fr auto;gap:6px; }
.review-action form input:nth-of-type(n+4) { grid-column:1; }

/* Student class and learning map */
.end-user-class-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.end-user-student-class-card { min-height:150px;padding:18px;border-radius:14px; }
.student-class-card-icon { width:48px;height:48px;display:grid;place-items:center;border-radius:13px;background:var(--end-user-accent-soft);color:var(--end-user-accent);font-size:26px; }
.student-class-meta { display:flex;gap:8px;margin-top:10px;color:var(--text-muted);font-size:9px; }
.student-map-head { align-items:center; }
.student-map-progress { min-width:170px;text-align:right; }
.student-map-progress strong { display:block;margin-bottom:6px;font-size:25px;letter-spacing:-.04em; }
.student-current-learning { display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px;padding:20px 22px;border-radius:15px;color:#fff;background:linear-gradient(135deg,var(--end-user-hero-from),var(--end-user-hero-to)); }
.student-current-learning h2 { margin:4px 0;font-size:21px; }.student-current-learning p{margin:0;color:rgba(255,255,255,.78);font-size:10px;}.student-current-learning .end-user-kicker{color:rgba(255,255,255,.76)}
.student-learning-map { padding:20px; }
.student-objective-list { display:grid;gap:9px; }
.student-objective-card { overflow:hidden;border:1px solid var(--border-color);border-radius:11px;background:var(--bg-soft); }
.student-objective-card > summary { display:grid;grid-template-columns:36px minmax(0,1fr) auto 20px;gap:9px;align-items:center;padding:12px;cursor:pointer;list-style:none; }
.student-objective-card > summary::-webkit-details-marker{display:none;}
.objective-state-icon { width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--end-user-accent-soft);color:var(--end-user-accent);font-size:17px; }.objective-state-icon.is-done{background:var(--success-light);color:var(--success);}
.objective-summary-copy { min-width:0;display:grid;gap:1px; }.objective-summary-copy small{color:var(--end-user-accent);font-size:8px;font-weight:800;text-transform:uppercase;}.objective-summary-copy strong{font-size:11px;}.objective-summary-copy em{overflow:hidden;color:var(--text-muted);font-size:8px;font-style:normal;text-overflow:ellipsis;white-space:nowrap;}
.objective-summary-progress { display:grid;gap:1px;text-align:right; }.objective-summary-progress b{font-size:10px;}.objective-summary-progress small{color:var(--text-muted);font-size:8px;}
.student-objective-card[open] > summary > i { transform:rotate(180deg); }.student-objective-card > summary > i{transition:transform .15s ease;color:var(--text-muted);}
.student-objective-body { padding:12px;border-top:1px solid var(--border-color);background:var(--bg-card); }
.student-assessment-mini-summary { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:9px; }
.student-assessment-mini-summary > span { padding:9px;border-radius:9px;background:var(--bg-soft); }.student-assessment-mini-summary small,.student-assessment-mini-summary strong,.student-assessment-mini-summary em{display:block;}.student-assessment-mini-summary small{color:var(--text-muted);font-size:7px;}.student-assessment-mini-summary strong{margin-top:2px;font-size:13px;}.student-assessment-mini-summary em{color:var(--text-muted);font-size:7px;font-style:normal;}
.student-hour-list { display:grid;gap:5px; }.student-hour-row{display:grid;grid-template-columns:30px minmax(0,1fr) 18px;gap:8px;align-items:center;padding:8px 9px;border-radius:8px;color:var(--text-main);text-decoration:none;background:var(--bg-soft);}.student-hour-row:hover{background:var(--end-user-accent-soft);}.student-hour-row.is-locked{opacity:.55;pointer-events:none;}.student-hour-row.is-completed .student-hour-no{background:var(--success-light);color:var(--success);}.student-hour-no{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--end-user-accent-soft);color:var(--end-user-accent);font-size:9px;font-weight:800;}.student-hour-row span:nth-child(2){display:grid;gap:1px;}.student-hour-row strong{font-size:9px;}.student-hour-row small{color:var(--text-muted);font-size:7px;}

/* Student learning workspace */
.student-learning-workspace-v2 { display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:14px;align-items:start; }
.student-learning-main { display:grid;gap:12px;min-width:0; }
.student-learning-intro { padding:21px; }.student-learning-intro h2{margin:5px 0 4px;font-size:24px;letter-spacing:-.035em;}.student-learning-intro>p{margin:0;color:var(--text-muted);}
.student-material-highlight { display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px;padding:13px;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-soft); }.student-material-highlight>div{display:grid;gap:2px;}.student-material-highlight small{color:var(--end-user-accent);font-size:8px;font-weight:800;text-transform:uppercase;}.student-material-highlight strong{font-size:11px;}.student-material-highlight p{margin:0;color:var(--text-muted);font-size:9px;}
.learning-complete-banner { display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:center;padding:12px 14px;border-radius:11px;background:var(--success-light);color:var(--success); }.learning-complete-banner>i{font-size:26px;}.learning-complete-banner span{display:grid;gap:1px;}.learning-complete-banner strong{font-size:11px;}.learning-complete-banner small{font-size:8px;}
.student-learning-content-card { padding:22px; }.student-learning-content-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:15px;border-bottom:1px solid var(--border-color);}.student-learning-content-head h2{margin:4px 0;font-size:20px;}.student-learning-content-head p{margin:0;color:var(--text-muted);font-size:10px;}.student-learning-content-card .student-step-content-body{padding-top:18px;}.student-learning-action-card{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px 20px;}.student-learning-action-card form{width:100%;}.student-score-result{display:grid;grid-template-columns:auto auto;gap:0 8px;align-items:baseline;}.student-score-result span{color:var(--text-muted);font-size:8px;}.student-score-result strong{font-size:26px;color:var(--end-user-accent);}.student-score-result small{grid-column:1/-1;color:var(--text-muted);font-size:8px;}
.student-learning-progress-panel { position:sticky;top:calc(var(--navbar-height) + 16px);display:grid;gap:12px;padding:16px;border:1px solid var(--border-color);border-radius:13px;background:var(--bg-card); }
.student-progress-steps { display:grid;gap:6px; }.student-progress-step{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:center;min-height:44px;padding:7px;border-radius:9px;color:var(--text-main);text-decoration:none;background:var(--bg-soft);}.student-progress-step>span{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:var(--bg-muted);color:var(--text-muted);font-size:8px;font-weight:800;}.student-progress-step div{display:grid;gap:1px;}.student-progress-step strong{font-size:9px;}.student-progress-step small{color:var(--text-muted);font-size:7px;}.student-progress-step.is-completed>span{background:var(--success-light);color:var(--success);}.student-progress-step.is-current{background:var(--end-user-accent-soft);color:var(--end-user-accent);}.student-progress-step.is-current>span{background:var(--end-user-accent);color:#fff;}.student-progress-step.is-locked{opacity:.52;}
.student-progress-total{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--text-muted);font-size:8px;}.student-progress-total b{color:var(--text-main);font-size:11px;}
.end-user-shell .student-assessment-question{border-radius:11px;background:var(--bg-soft);}.end-user-shell .student-assessment-option{border-radius:9px;}.end-user-shell .student-assessment-option:has(input:checked){border-color:var(--end-user-accent);background:var(--end-user-accent-soft);}

/* End-user material reader */
.end-user-shell .material-reader-heading { margin-bottom:14px; }.end-user-shell .material-reader-shell{border-radius:15px;overflow:hidden;}.end-user-shell .material-reader-hero{background:linear-gradient(135deg,color-mix(in srgb,var(--end-user-hero-from) 82%,var(--bg-card)),color-mix(in srgb,var(--end-user-hero-to) 88%,var(--bg-card)));}.end-user-shell .material-reader-hero__copy>span,.end-user-shell .material-reader-hero__copy h1,.end-user-shell .material-reader-hero__copy p,.end-user-shell .material-reader-context{color:#fff;}.end-user-shell .material-reader-body{max-width:900px;margin:0 auto;}.end-user-shell .material-completion-card{max-width:900px;margin-left:auto;margin-right:auto;border-radius:13px;}

@media (max-width: 1180px) {
    .subject-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .teacher-class-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .teaching-workspace-grid { grid-template-columns:160px minmax(0,1fr); }
    .teaching-info-panel { position:static;grid-column:1 / -1;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px; }
    .teaching-info-panel > .end-user-kicker,.teaching-info-panel > .btn { grid-column:1 / -1; }
    .turn-side-stat { border:1px solid var(--border-color);border-radius:9px;padding:8px; }
}
@media (max-width: 980px) {
    .teacher-dashboard-grid,.student-dashboard-grid,.teacher-turn-workspace,.student-learning-workspace-v2 { grid-template-columns:1fr; }
    .end-user-side-card { min-height:auto; }
    .teacher-turn-side,.student-learning-progress-panel { position:static; }
    .teacher-turn-side { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }
    .teacher-turn-side > .end-user-kicker,.teacher-turn-side > .teacher-takeover-box { grid-column:1 / -1; }
    .teacher-turn-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .student-learning-progress-panel { grid-row:1; }
    .student-progress-steps { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .end-user-shell .content-body { padding-top:18px; padding-left:16px; padding-right:16px; }
    .end-user-date { display:none; }
    .end-user-navbar { min-height:60px; padding:0 14px; gap:10px; }
    .end-user-navbar-left { gap:10px; flex:1; }
    .end-user-top-brand > span:last-child { display:none; }
    .end-user-top-links { min-width:0; overflow-x:auto; scrollbar-width:none; }
    .end-user-top-links::-webkit-scrollbar { display:none; }
    .end-user-top-link { min-height:36px; padding:0 10px; }
    .end-user-account-name { display:none; }
    .end-user-account-menu > summary { padding-right:4px; }
    .end-user-page-head { align-items:flex-start;flex-direction:column; }
    .end-user-hero { grid-template-columns:1fr;min-height:0; }.end-user-hero-copy{padding:22px;}.end-user-hero-visual{min-height:130px;}.end-user-hero-visual>i{font-size:58px;}
    .teacher-class-grid,.subject-card-grid,.student-class-subjects,.student-learning-path-grid,.end-user-class-grid { grid-template-columns:1fr; }
    .teacher-turn-metrics,.student-assessment-mini-summary,.assessment-stage-cards { grid-template-columns:1fr 1fr; }
    .teaching-workspace-grid { grid-template-columns:1fr; }.teaching-stage-panel{position:static;grid-template-columns:repeat(2,minmax(0,1fr));}.teaching-stage-panel>.end-user-kicker,.teaching-stage-help{grid-column:1 / -1;}
    .teaching-material-preview { grid-template-columns:1fr; }.teaching-code-visual{min-height:100px;}
    .teaching-info-panel,.teacher-turn-side { grid-template-columns:1fr 1fr; }
    .review-card { grid-template-columns:1fr; }
    .student-current-learning { align-items:flex-start;flex-direction:column; }
    .student-objective-card>summary { grid-template-columns:34px minmax(0,1fr) 18px; }.objective-summary-progress{grid-column:2;text-align:left;}.student-objective-card>summary>i{grid-column:3;grid-row:1 / span 2;}
    .student-progress-steps { grid-template-columns:1fr; }
}


/* v5.11.3 · teacher JP engagement */
.teacher-engagement-panel { display:grid; gap:16px; }
.teacher-engagement-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.teacher-engagement-card { min-width:0; padding:15px; border:1px solid var(--border-color); border-radius:14px; background:var(--bg-soft); }
.teacher-engagement-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:11px; }
.teacher-engagement-card-title { display:flex; align-items:flex-start; gap:10px; min-width:0; }
.teacher-engagement-card-title > i { width:32px; height:32px; display:grid; place-items:center; flex:0 0 32px; border-radius:10px; background:var(--end-user-accent-soft); color:var(--end-user-accent); font-size:18px; }
.teacher-engagement-card-title span { display:grid; gap:3px; min-width:0; }
.teacher-engagement-card-title strong { font-size:12px; color:var(--text-main); }
.teacher-engagement-card-title small { font-size:9px; line-height:1.45; color:var(--text-muted); }
.teacher-engagement-count { min-width:34px; height:28px; display:grid; place-items:center; padding:0 9px; border-radius:999px; background:color-mix(in srgb,#f59e0b 14%,var(--bg-card)); color:#b45309; font-size:11px; font-weight:800; }
.teacher-engagement-card.is-clear .teacher-engagement-count { background:color-mix(in srgb,#10b981 13%,var(--bg-card)); color:#047857; }
.teacher-student-status-list { max-height:220px; overflow:auto; display:grid; gap:6px; margin:0; padding:0; list-style:none; }
.teacher-student-status-list li { display:flex; align-items:center; gap:8px; padding:8px 9px; border-radius:9px; background:var(--bg-card); border:1px solid color-mix(in srgb,var(--border-color) 78%,transparent); color:var(--text-main); font-size:10px; font-weight:650; }
.teacher-student-status-list li i { color:#d97706; font-size:15px; }
.teacher-engagement-clear { min-height:76px; display:flex; align-items:center; gap:10px; padding:12px; border-radius:10px; background:color-mix(in srgb,#10b981 8%,var(--bg-card)); color:var(--text-muted); font-size:10px; }
.teacher-engagement-clear i { color:#059669; font-size:20px; }
.teacher-engagement-unavailable { min-height:76px; display:flex; align-items:center; gap:10px; padding:12px; border-radius:10px; background:var(--bg-card); color:var(--text-muted); font-size:10px; border:1px dashed var(--border-color); }
.teacher-engagement-unavailable i { font-size:20px; }
@media (max-width: 900px) { .teacher-engagement-grid { grid-template-columns:1fr; } }

/* v5.12.0 · End-user contextual class tabs */
.end-user-context-hero {
    display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,320px); gap:24px; align-items:center;
    margin-bottom:12px; padding:24px 26px; border-radius:18px; color:#fff;
    background:linear-gradient(135deg,var(--end-user-hero-from),var(--end-user-hero-to)); box-shadow:var(--shadow-sm);
}
.end-user-context-hero.compact { padding:20px 24px; }
.end-user-context-copy { min-width:0; }
.end-user-context-copy .page-back-link.on-hero { width:max-content; margin-bottom:12px; color:rgba(255,255,255,.84); }
.end-user-context-copy .page-back-link.on-hero:hover { color:#fff; }
.end-user-context-copy .end-user-kicker.light { color:rgba(255,255,255,.72); }
.end-user-context-copy h1 { margin:4px 0 6px; font-size:30px; line-height:1.15; letter-spacing:-.04em; color:#fff; }
.end-user-context-copy p { max-width:880px; margin:0; color:rgba(255,255,255,.78); font-size:11px; }
.context-hero-pills { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.context-hero-pills span { display:inline-flex; align-items:center; gap:6px; padding:7px 10px; border:1px solid rgba(255,255,255,.18); border-radius:999px; background:rgba(255,255,255,.09); font-size:9px; font-weight:700; }
.end-user-context-action { display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:16px; border:1px solid rgba(255,255,255,.16); border-radius:14px; background:rgba(9,18,38,.18); backdrop-filter:blur(6px); }
.end-user-context-action small { color:rgba(255,255,255,.7); font-size:9px; }
.end-user-context-action strong { color:#fff; font-size:13px; }
.btn-light-primary { color:var(--primary-dark); background:#fff; border-color:#fff; }
.btn-light-primary:hover { color:var(--primary-dark); background:#f8fbff; border-color:#f8fbff; }
.context-hour-status { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.context-hour-status > span { min-width:110px; display:grid; gap:2px; padding:12px 14px; border:1px solid rgba(255,255,255,.16); border-radius:12px; background:rgba(255,255,255,.09); }
.context-hour-status small { color:rgba(255,255,255,.7); font-size:8px; }
.context-hour-status strong { color:#fff; font-size:17px; }

.end-user-context-tabs {
    position:sticky; top:calc(var(--navbar-height) + 4px); z-index:18;
    display:flex; gap:4px; margin:0 0 16px; padding:6px; overflow-x:auto;
    border:1px solid var(--border-color); border-radius:14px; background:color-mix(in srgb,var(--bg-card) 94%,transparent); box-shadow:var(--shadow-xs); backdrop-filter:blur(10px);
    scrollbar-width:none;
}
.end-user-context-tabs::-webkit-scrollbar { display:none; }
.end-user-context-tabs a { min-height:40px; display:inline-flex; align-items:center; justify-content:center; gap:7px; flex:1 0 auto; padding:0 14px; border-radius:9px; color:var(--text-muted); text-decoration:none; font-size:10px; font-weight:750; white-space:nowrap; }
.end-user-context-tabs a:hover { color:var(--text-main); background:var(--bg-muted); }
.end-user-context-tabs a.is-active { color:var(--end-user-accent); background:var(--end-user-accent-soft); box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--end-user-accent) 18%,transparent); }
.end-user-context-tabs i { font-size:16px; }
.workspace-tab-section { display:grid; gap:14px; }
.section-intro { padding:2px 2px 4px; }
.section-intro h2 { margin:3px 0 4px; font-size:21px; letter-spacing:-.035em; }
.section-intro p { max-width:900px; margin:0; color:var(--text-muted); font-size:10px; }

.teacher-summary-grid,.student-summary-grid,.teacher-jp-summary-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(280px,.75fr); gap:14px; }
.teacher-turn-summary-card,.teacher-now-card,.teacher-jp-focus-card,.teacher-jp-action-card,.student-current-tp-card { min-width:0; }
.teacher-turn-title.compact h3 { margin:8px 0 3px; font-size:20px; letter-spacing:-.035em; }
.teacher-turn-title.compact p { margin:0; color:var(--text-muted); font-size:10px; }
.teacher-now-card h2,.teacher-jp-action-card h2,.student-current-tp-card h2 { margin:6px 0; font-size:18px; letter-spacing:-.03em; }
.teacher-now-card > p,.teacher-jp-focus-card > p { color:var(--text-muted); }
.teacher-now-stats,.teacher-jp-summary-meta,.resource-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:14px 0; }
.teacher-now-stats span,.teacher-jp-summary-meta span,.resource-meta span { display:grid; gap:2px; padding:10px; border-radius:9px; background:var(--bg-soft); }
.teacher-now-stats small,.teacher-jp-summary-meta small,.resource-meta small { color:var(--text-muted); font-size:8px; }
.teacher-now-stats strong,.teacher-jp-summary-meta strong,.resource-meta strong { font-size:10px; }
.attention-stat-list { display:grid; gap:7px; margin-top:10px; }
.attention-stat-list a { display:grid; grid-template-columns:34px minmax(0,1fr); gap:9px; align-items:center; padding:10px; border-radius:10px; background:var(--bg-soft); text-decoration:none; }
.attention-stat-list a > i { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:var(--end-user-accent-soft); color:var(--end-user-accent); font-size:18px; }
.attention-stat-list span { display:grid; gap:1px; }.attention-stat-list small{color:var(--text-muted);font-size:8px;}.attention-stat-list strong{font-size:10px;}

.jp-flow-summary { padding:18px; }
.jp-flow-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.jp-flow-steps > span { min-width:0; display:grid; grid-template-columns:28px minmax(0,1fr); gap:2px 8px; align-items:center; padding:11px; border:1px solid var(--border-color); border-radius:10px; background:var(--bg-soft); }
.jp-flow-steps b { grid-row:1 / span 2; width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:var(--bg-muted); color:var(--text-muted); font-size:9px; }
.jp-flow-steps strong { font-size:9px; }.jp-flow-steps small{color:var(--text-muted);font-size:8px;}
.jp-flow-steps .is-active { border-color:color-mix(in srgb,var(--end-user-accent) 28%,var(--border-color)); background:var(--end-user-accent-soft); }
.jp-flow-steps .is-active b { background:var(--end-user-accent); color:#fff; }.jp-flow-steps .is-done b{background:var(--success-light);color:var(--success);}.jp-flow-steps .is-muted{opacity:.55;}

.teacher-resource-list,.teacher-learning-flow-list,.teacher-assessment-overview-list,.student-tp-flow-list,.student-assessment-overview-list { display:grid; gap:12px; }
.teacher-resource-card,.teacher-learning-flow-card,.assessment-overview-card,.student-tp-flow-card,.student-assessment-overview-card { padding:18px; }
.teacher-resource-head,.flow-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.teacher-resource-head small,.flow-card-head small { color:var(--end-user-accent); font-size:8px; font-weight:800; text-transform:uppercase; }
.teacher-resource-head h3,.flow-card-head h3 { margin:3px 0; font-size:16px; letter-spacing:-.025em; }
.flow-card-head p { margin:0; color:var(--text-muted); font-size:9px; }
.teacher-resource-card > p { color:var(--text-muted); }
.resource-guidance { display:grid; grid-template-columns:34px minmax(0,1fr); gap:9px; align-items:start; margin:13px 0; padding:11px; border-radius:10px; background:var(--bg-soft); }
.resource-guidance > i { width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--end-user-accent-soft);color:var(--end-user-accent);font-size:18px; }
.resource-guidance span { display:grid; gap:2px; }.resource-guidance strong{font-size:9px;}.resource-guidance small{color:var(--text-muted);font-size:8px;line-height:1.5;}
.teacher-resource-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.teacher-resource-detail-grid article{min-height:150px;}.teacher-resource-detail-grid h2{margin:5px 0;font-size:17px;}.teacher-resource-detail-grid p{color:var(--text-muted);}

.tp-assessment-boundary { display:grid; grid-template-columns:34px minmax(0,1fr) auto; gap:9px; align-items:center; margin:12px 0; padding:10px 12px; border:1px dashed color-mix(in srgb,var(--end-user-accent) 28%,var(--border-color)); border-radius:11px; background:color-mix(in srgb,var(--end-user-accent-soft) 58%,var(--bg-card)); }
.tp-assessment-boundary > i { width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--end-user-accent-soft);color:var(--end-user-accent);font-size:18px; }
.tp-assessment-boundary span { display:grid; gap:1px; }.tp-assessment-boundary strong{font-size:10px;}.tp-assessment-boundary small{color:var(--text-muted);font-size:8px;}.tp-assessment-boundary b{font-size:9px;}.tp-assessment-boundary.is-complete{border-style:solid;border-color:color-mix(in srgb,var(--success) 30%,var(--border-color));}.tp-assessment-boundary.is-complete>i{background:var(--success-light);color:var(--success);}
.teacher-hour-flow-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.teacher-hour-flow-card { min-width:0; display:grid; gap:4px; padding:11px; border:1px solid var(--border-color); border-radius:10px; background:var(--bg-soft); color:var(--text-main); text-decoration:none; }
.teacher-hour-flow-card:hover { border-color:color-mix(in srgb,var(--end-user-accent) 35%,var(--border-color)); transform:translateY(-1px); }
.hour-flow-no { color:var(--end-user-accent); font-size:8px; font-weight:800; text-transform:uppercase; }
.teacher-hour-flow-card > strong { font-size:10px; }.teacher-hour-flow-card > small{overflow:hidden;color:var(--text-muted);font-size:8px;text-overflow:ellipsis;white-space:nowrap;}
.hour-flow-status { display:flex; flex-wrap:wrap; gap:5px; margin-top:5px; }.hour-flow-status span{display:inline-flex;align-items:center;gap:3px;padding:4px 6px;border-radius:999px;background:var(--bg-card);color:var(--text-muted);font-size:7px;}.hour-flow-status .is-ready{color:var(--end-user-accent);background:var(--end-user-accent-soft);}.hour-flow-status .is-muted{opacity:.55;}

.assessment-phase-summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:13px 0; }
.assessment-phase-summary { display:grid; gap:2px; padding:12px; border-radius:10px; background:var(--bg-soft); }.assessment-phase-summary.primary{background:var(--end-user-accent-soft);}.assessment-phase-summary span{color:var(--text-muted);font-size:8px;}.assessment-phase-summary strong{font-size:16px;}.assessment-phase-summary small{color:var(--text-muted);font-size:8px;}
.assessment-jp-table td,.progress-jp-table td { vertical-align:middle; }
.progress-summary-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.progress-summary-strip > span { display:grid; gap:2px; padding:12px 14px; border:1px solid var(--border-color); border-radius:11px; background:var(--bg-card); }.progress-summary-strip small{color:var(--text-muted);font-size:8px;}.progress-summary-strip strong{font-size:17px;}
.class-progress-objective { padding:18px; }.progress-count{font-weight:750;}.progress-count.is-complete{color:var(--success);}

.tp-local-flow { display:flex; align-items:stretch; gap:7px; overflow-x:auto; margin-bottom:12px; padding-bottom:2px; scrollbar-width:none; }.tp-local-flow::-webkit-scrollbar{display:none;}.tp-local-flow>span{min-width:160px;display:grid;grid-template-columns:30px minmax(0,1fr);gap:2px 8px;align-items:center;padding:10px;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-soft);}.tp-local-flow>span>i{grid-row:1 / span 2;width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:var(--bg-muted);color:var(--text-muted);font-size:16px;}.tp-local-flow strong{font-size:9px;}.tp-local-flow small{color:var(--text-muted);font-size:7px;}.tp-local-flow>.is-current,.tp-local-flow>.is-present{border-color:color-mix(in srgb,var(--end-user-accent) 28%,var(--border-color));}.tp-local-flow>.is-current>i,.tp-local-flow>.is-present>i{background:var(--end-user-accent-soft);color:var(--end-user-accent);}.tp-local-flow>.is-muted{opacity:.52;}.tp-local-flow>.bx-right-arrow-alt{align-self:center;color:var(--text-subtle);font-size:18px;}
.assessment-stage-cards-wide { grid-template-columns:repeat(3,minmax(0,1fr)); }.assessment-stage-card.is-unavailable{opacity:.55;}
.student-row-progress { min-width:120px; display:grid; grid-template-columns:auto minmax(80px,1fr); gap:7px; align-items:center; }.student-row-progress>span{font-size:8px;font-weight:700;}
.status-chip { display:inline-flex; align-items:center; gap:4px; width:max-content; padding:5px 7px; border-radius:999px; background:var(--bg-muted); color:var(--text-muted); font-size:8px; font-weight:750; }.status-chip.success{background:var(--success-light);color:var(--success);}.status-chip.warning{background:var(--warning-light);color:var(--warning);}.status-chip.danger{background:var(--danger-light);color:var(--danger);}.status-chip.muted{background:var(--bg-muted);color:var(--text-muted);}

.student-current-learning-tab { margin:0; min-height:190px; }.student-current-tp-card{padding:18px;}.student-assessment-status-list{display:grid;gap:7px;margin:12px 0;}.student-assessment-status-list>span{display:grid;grid-template-columns:32px minmax(0,1fr);gap:8px;align-items:center;padding:9px;border-radius:9px;background:var(--bg-soft);}.student-assessment-status-list i{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:var(--end-user-accent-soft);color:var(--end-user-accent);font-size:16px;}.student-assessment-status-list div{display:grid;gap:1px;}.student-assessment-status-list small{color:var(--text-muted);font-size:8px;}.student-assessment-status-list strong{font-size:9px;}.student-progress-overview{padding:18px;}.large-percent{font-size:22px;color:var(--end-user-accent);}
.student-hour-flow-list { display:grid; gap:7px; }
.student-hour-flow-card { display:grid; grid-template-columns:66px minmax(0,1fr) auto 18px; gap:8px; align-items:center; padding:10px; border:1px solid var(--border-color); border-radius:10px; background:var(--bg-soft); color:var(--text-main); text-decoration:none; }
.student-hour-flow-card.is-locked{opacity:.48;pointer-events:none;}.student-hour-flow-card.is-complete{border-color:color-mix(in srgb,var(--success) 26%,var(--border-color));}.hour-flow-copy{min-width:0;display:grid;gap:1px;}.hour-flow-copy strong{font-size:9px;}.hour-flow-copy small{overflow:hidden;color:var(--text-muted);font-size:8px;text-overflow:ellipsis;white-space:nowrap;}.student-hour-stage{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end;}.student-hour-stage em{display:inline-flex;align-items:center;gap:3px;padding:4px 6px;border-radius:999px;background:var(--bg-card);color:var(--text-muted);font-size:7px;font-style:normal;}.student-hour-stage em.is-complete{background:var(--success-light);color:var(--success);}.student-hour-stage em.is-danger{background:var(--danger-light);color:var(--danger);}
.student-assessment-phase-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:12px 0; }.student-assessment-phase-row>span{display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px;align-items:center;padding:10px;border-radius:10px;background:var(--bg-soft);}.student-assessment-phase-row i{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--end-user-accent-soft);color:var(--end-user-accent);font-size:18px;}.student-assessment-phase-row div{display:grid;gap:1px;}.student-assessment-phase-row small{color:var(--text-muted);font-size:8px;}.student-assessment-phase-row strong{font-size:9px;}.student-assessment-phase-row em{color:var(--text-muted);font-size:8px;font-style:normal;}
.student-process-assessment-list{display:grid;gap:5px;}.student-process-assessment-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(130px,.7fr) 18px;gap:8px;align-items:center;padding:9px 10px;border:1px solid var(--border-color);border-radius:9px;background:var(--bg-card);text-decoration:none;}.student-process-assessment-row>span{display:grid;gap:1px;}.student-process-assessment-row b{color:var(--end-user-accent);font-size:8px;}.student-process-assessment-row strong{font-size:9px;}.student-process-assessment-row small,.student-process-assessment-row em{color:var(--text-muted);font-size:8px;font-style:normal;}.student-process-assessment-row.is-locked{opacity:.48;pointer-events:none;}
.student-result-table td:first-child{display:grid;gap:2px;}.student-result-table td:first-child small{color:var(--end-user-accent);font-size:8px;font-weight:800;}.student-result-table .table-note{display:block;}

.student-jp-summary-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(260px,.55fr); gap:14px; }.student-next-action-card{padding:18px;}.student-next-action-card h2{margin:7px 0;font-size:17px;}.student-material-workspace{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:16px;align-items:stretch;padding:20px;}.student-material-workspace-main h2{margin:5px 0;font-size:21px;}.student-material-workspace-main p{color:var(--text-muted);}.student-material-code-visual{display:grid;place-items:center;align-content:center;gap:6px;min-height:180px;border-radius:13px;background:linear-gradient(145deg,#101a30,#172642);color:#8ab4ff;}.student-material-code-visual i{font-size:54px;}.student-material-code-visual span{color:#b6c7e6;font-size:9px;font-weight:700;}
.student-assessment-picker { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }.student-assessment-picker-card{display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px;align-items:center;padding:10px;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-card);text-decoration:none;}.student-assessment-picker-card>i{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--end-user-accent-soft);color:var(--end-user-accent);font-size:18px;}.student-assessment-picker-card span{display:grid;gap:1px;}.student-assessment-picker-card small{color:var(--end-user-accent);font-size:7px;font-weight:800;text-transform:uppercase;}.student-assessment-picker-card strong{font-size:9px;}.student-assessment-picker-card em{color:var(--text-muted);font-size:8px;font-style:normal;}.student-assessment-picker-card.is-active{border-color:var(--end-user-accent);background:var(--end-user-accent-soft);}.student-assessment-picker-card.is-locked{opacity:.5;pointer-events:none;}
.student-result-step-list{display:grid;gap:7px;}.student-result-step{display:grid;grid-template-columns:34px minmax(0,1fr) 70px;gap:9px;align-items:center;padding:10px;border-radius:10px;background:var(--bg-soft);}.result-step-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--bg-muted);color:var(--text-muted);}.result-step-icon.is-complete{background:var(--success-light);color:var(--success);}.result-step-icon.is-danger{background:var(--danger-light);color:var(--danger);}.student-result-step>div:nth-child(2){display:grid;gap:1px;}.student-result-step small{color:var(--end-user-accent);font-size:7px;font-weight:800;text-transform:uppercase;}.student-result-step strong{font-size:9px;}.student-result-step em{color:var(--text-muted);font-size:8px;font-style:normal;}.result-step-score{text-align:right;}.result-step-score strong{display:block;font-size:18px;color:var(--end-user-accent);}.result-step-score small{color:var(--text-muted);}

@media (max-width: 1100px) {
    .end-user-context-hero { grid-template-columns:1fr; }
    .end-user-context-action { max-width:520px; }
    .teacher-hour-flow-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .teacher-summary-grid,.teacher-jp-summary-grid,.student-summary-grid,.student-jp-summary-grid { grid-template-columns:1fr; }
    .teacher-resource-detail-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 760px) {
    .end-user-context-hero { padding:18px; border-radius:14px; }.end-user-context-copy h1{font-size:23px;}
    .end-user-context-tabs { position:static; }.end-user-context-tabs a{flex:0 0 auto;}
    .teacher-hour-flow-grid,.assessment-phase-summary-grid,.progress-summary-strip,.student-assessment-picker,.teacher-resource-detail-grid,.student-assessment-phase-row { grid-template-columns:1fr; }
    .jp-flow-steps { grid-template-columns:1fr; }
    .student-hour-flow-card { grid-template-columns:56px minmax(0,1fr) 18px; }.student-hour-stage{grid-column:2;justify-content:flex-start;}.student-hour-flow-card>i{grid-column:3;grid-row:1 / span 2;}
    .student-material-workspace { grid-template-columns:1fr; }.student-material-code-visual{min-height:120px;}
}
.teacher-student-progress-table { padding:0; overflow:hidden; }
.teacher-student-progress-table .table { margin-bottom:0; }


/* =========================================================
 * LMS SMEXA v5.12.1 — Context Workspace Refinement
 * Memperjelas hero kelas/JP, merapatkan tab, dan mengurangi
 * pengulangan informasi pada workspace Guru & Siswa.
 * ========================================================= */
.end-user-shell .end-user-context-hero {
    position:relative;
    isolation:isolate;
    overflow:hidden;
    margin-bottom:10px;
    border:1px solid rgba(255,255,255,.12);
    background-color:#1d4ed8 !important;
    background-image:linear-gradient(135deg,#1d4ed8 0%,#2457d6 52%,#1e3a8a 100%) !important;
    box-shadow:0 16px 40px rgba(30,58,138,.14);
}
.end-user-shell .end-user-context-hero::after {
    content:"";
    position:absolute;
    z-index:-1;
    width:340px;
    height:340px;
    right:-145px;
    top:-205px;
    border-radius:50%;
    background:rgba(255,255,255,.08);
}
[data-theme="dark"] .end-user-shell .end-user-context-hero {
    border-color:rgba(148,163,184,.14);
    background-color:#183b73 !important;
    background-image:linear-gradient(135deg,#183b73 0%,#17345f 52%,#12284e 100%) !important;
    box-shadow:0 18px 44px rgba(2,6,23,.28);
}
.end-user-shell .end-user-context-copy h1,
.end-user-shell .end-user-context-copy p,
.end-user-shell .end-user-context-copy .end-user-kicker.light,
.end-user-shell .end-user-context-copy .page-back-link.on-hero,
.end-user-shell .context-hour-status small,
.end-user-shell .context-hour-status strong,
.end-user-shell .end-user-context-action small,
.end-user-shell .end-user-context-action strong { color:#fff; }
.end-user-shell .end-user-context-copy .end-user-kicker.light,
.end-user-shell .end-user-context-copy p,
.end-user-shell .context-hour-status small,
.end-user-shell .end-user-context-action small { color:rgba(255,255,255,.76); }
.end-user-shell .end-user-context-copy .page-back-link.on-hero { color:rgba(255,255,255,.88); }
.end-user-shell .end-user-context-copy .page-back-link.on-hero:hover { color:#fff; background:rgba(255,255,255,.08); }
.end-user-shell .end-user-context-hero.compact { padding:22px 24px; }
.end-user-shell .end-user-context-hero.compact .end-user-context-copy h1 { font-size:28px; }
.end-user-shell .context-hour-status > span {
    background:rgba(8,22,52,.22);
    border-color:rgba(255,255,255,.16);
    backdrop-filter:blur(6px);
}
.end-user-shell .end-user-context-action {
    background:rgba(8,22,52,.22);
    border-color:rgba(255,255,255,.16);
}
.end-user-shell .end-user-context-tabs {
    margin-top:0;
    margin-bottom:14px;
}
.end-user-shell .workspace-tab-section { gap:12px; }
.end-user-shell .section-intro.context-tab-intro { padding:0 2px 2px; }
.end-user-shell .section-intro.context-tab-intro h2 { margin-top:2px; font-size:18px; }
.end-user-shell .context-material-flow { margin:0 0 10px; }
.end-user-shell .context-material-flow > span { min-width:150px; }
.end-user-shell .context-material-flow > .is-context { opacity:.72; }
.end-user-shell .context-material-flow > .is-context > i {
    background:color-mix(in srgb,var(--success-light) 78%,var(--bg-card));
    color:var(--success);
}
.end-user-shell .teaching-focus-card.context-material-card { padding:18px; }
.end-user-shell .teaching-focus-card.context-material-card > .teaching-focus-meta { margin-bottom:10px; }
.end-user-shell .teaching-focus-card.context-material-card .teaching-material-preview { margin-top:0; }
.end-user-shell .student-material-workspace.context-material-card { padding:18px; }
.end-user-shell .student-material-workspace.context-material-card .student-material-workspace-main h2 { margin-top:4px; }
@media (max-width:760px) {
    .end-user-shell .end-user-context-hero.compact .end-user-context-copy h1 { font-size:22px; }
}

/* =========================================================
 * LMS SMEXA v5.12.2 — Teacher Class → Subject → Meeting Flow
 * Guru memilih Kelas, lalu Mata Pelajaran. Tab Materi & JP
 * menampilkan Pertemuan per Elemen, lalu detail JP/Submateri.
 * ========================================================= */
.teacher-picker-head { margin-bottom:16px; }
.teacher-picker-head.with-back .page-back-link { width:max-content; margin-bottom:10px; }
.teacher-class-picker-grid,
.teacher-subject-picker-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.teacher-picker-card {
    min-width:0; display:grid; align-items:center; gap:14px; padding:18px;
    border:1px solid var(--border-color); border-radius:16px; background:var(--bg-card);
    color:var(--text-main); text-decoration:none; box-shadow:var(--shadow-xs);
    transition:border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.teacher-picker-card:hover {
    transform:translateY(-2px);
    border-color:color-mix(in srgb,var(--end-user-accent) 34%,var(--border-color));
    box-shadow:var(--shadow-sm);
}
.teacher-picker-class { grid-template-columns:48px minmax(0,1fr) auto auto; min-height:116px; }
.teacher-picker-icon {
    width:48px; height:48px; display:grid; place-items:center; border-radius:14px;
    background:var(--end-user-accent-soft); color:var(--end-user-accent); font-size:24px;
}
.teacher-picker-icon.subject { background:color-mix(in srgb,var(--end-user-accent-soft) 80%,var(--bg-card)); }
.teacher-picker-copy { min-width:0; display:grid; gap:2px; }
.teacher-picker-copy small { color:var(--end-user-accent); font-size:8px; font-weight:800; text-transform:uppercase; letter-spacing:.035em; }
.teacher-picker-copy strong { overflow:hidden; font-size:16px; letter-spacing:-.025em; text-overflow:ellipsis; white-space:nowrap; }
.teacher-picker-copy span { overflow:hidden; color:var(--text-muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.teacher-picker-meta { min-width:92px; display:grid; gap:1px; padding:10px 12px; border-radius:11px; background:var(--bg-soft); text-align:center; }
.teacher-picker-meta b { font-size:18px; color:var(--end-user-accent); }
.teacher-picker-meta small { color:var(--text-muted); font-size:8px; }
.teacher-picker-status { display:flex; align-items:center; gap:8px; }
.teacher-picker-status > i { color:var(--end-user-accent); font-size:20px; }
.teacher-picker-status em { font-style:normal; }

.teacher-picker-subject { display:flex; flex-direction:column; align-items:stretch; min-height:210px; }
.teacher-subject-card-head { display:grid; grid-template-columns:48px minmax(0,1fr) auto; gap:12px; align-items:center; }
.teacher-subject-progress { display:grid; gap:7px; padding:12px; border-radius:11px; background:var(--bg-soft); }
.teacher-subject-progress > div:first-child { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.teacher-subject-progress span { color:var(--text-muted); font-size:8px; }
.teacher-subject-progress strong { font-size:10px; }
.teacher-subject-progress > small { color:var(--text-muted); font-size:8px; }
.teacher-open-label { display:inline-flex; align-items:center; gap:5px; margin-left:auto; color:var(--end-user-accent); font-weight:800; }

.teacher-element-meeting-groups { display:grid; gap:18px; }
.teacher-element-meeting-group {
    overflow:hidden; border:1px solid var(--border-color); border-radius:16px;
    background:var(--bg-card); box-shadow:var(--shadow-xs);
}
.teacher-element-meeting-head {
    display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:12px; align-items:start;
    padding:16px 18px; border-bottom:1px solid var(--border-color); background:var(--bg-soft);
}
.teacher-element-number {
    width:42px; height:42px; display:grid; place-items:center; border-radius:12px;
    background:var(--end-user-accent-soft); color:var(--end-user-accent); font-size:17px; font-weight:850;
}
.teacher-element-meeting-head h3 { margin:2px 0 3px; font-size:16px; letter-spacing:-.025em; }
.teacher-element-meeting-head p { max-width:820px; margin:0; color:var(--text-muted); font-size:9px; line-height:1.5; }
.teacher-element-count { padding:6px 9px; border-radius:999px; background:var(--bg-card); color:var(--text-muted); font-size:8px; font-weight:750; white-space:nowrap; }
.teacher-meeting-list { display:grid; }
.teacher-meeting-card {
    display:grid; grid-template-columns:72px minmax(0,1fr) auto; gap:14px; align-items:center;
    padding:16px 18px; border-bottom:1px solid var(--border-color);
}
.teacher-meeting-card:last-child { border-bottom:0; }
.teacher-meeting-card:hover { background:color-mix(in srgb,var(--end-user-accent-soft) 25%,var(--bg-card)); }
.teacher-meeting-number-box {
    width:64px; min-height:64px; display:grid; place-items:center; align-content:center; gap:0;
    border-radius:13px; background:var(--end-user-accent-soft); color:var(--end-user-accent);
}
.teacher-meeting-number-box strong { font-size:22px; line-height:1; }
.teacher-meeting-number-box span { margin-top:4px; font-size:7px; font-weight:800; text-transform:uppercase; }
.teacher-meeting-main { min-width:0; }
.teacher-meeting-badges { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-bottom:5px; }
.teacher-meeting-badges > span:not(.meeting-status) { color:var(--text-muted); font-size:8px; font-weight:700; }
.teacher-meeting-main h3 { margin:0 0 3px; font-size:14px; letter-spacing:-.02em; }
.teacher-meeting-main > p { margin:0; color:var(--text-muted); font-size:9px; }
.teacher-meeting-meta { display:flex; flex-wrap:wrap; gap:10px; margin-top:8px; color:var(--text-muted); font-size:8px; }
.teacher-meeting-meta span { display:inline-flex; align-items:center; gap:4px; }
.teacher-meeting-action { display:flex; align-items:center; justify-content:flex-end; min-width:142px; }
.meeting-status { display:inline-flex; align-items:center; width:max-content; padding:5px 8px; border-radius:999px; font-size:7px; font-weight:800; }
.meeting-status.is-complete { background:var(--success-light); color:var(--success); }
.meeting-status.is-active { background:var(--end-user-accent-soft); color:var(--end-user-accent); }
.meeting-status.is-ready { background:color-mix(in srgb,#38bdf8 12%,var(--bg-card)); color:#0369a1; }
.meeting-status.is-planned { background:var(--bg-muted); color:var(--text-muted); }
.btn.is-disabled { opacity:.55; pointer-events:none; }

.teacher-material-overview { margin-top:2px; }
.teacher-material-summary-card { padding:16px 18px; }
.teacher-material-summary-card p { margin:6px 0 0; color:var(--text-muted); font-size:10px; line-height:1.6; }
.teacher-submaterial-jp-list { display:grid; gap:10px; }
.teacher-submaterial-jp-card {
    display:grid; grid-template-columns:62px minmax(0,1fr) auto; gap:14px; align-items:center;
    padding:15px 16px; border:1px solid var(--border-color); border-radius:14px;
    background:var(--bg-card); box-shadow:var(--shadow-xs);
}
.teacher-submaterial-jp-card.is-locked { opacity:.72; }
.teacher-submaterial-jp-number {
    width:54px; height:54px; display:grid; place-items:center; align-content:center;
    border-radius:12px; background:var(--end-user-accent-soft); color:var(--end-user-accent);
}
.teacher-submaterial-jp-number strong { font-size:19px; line-height:1; }
.teacher-submaterial-jp-number span { margin-top:3px; font-size:7px; font-weight:850; text-transform:uppercase; }
.teacher-submaterial-jp-main { min-width:0; }
.teacher-submaterial-jp-meta { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:4px; color:var(--text-muted); font-size:7px; font-weight:700; }
.teacher-submaterial-jp-meta .is-assessment { color:var(--success); }
.teacher-submaterial-jp-meta .is-muted { color:var(--text-muted); }
.teacher-submaterial-jp-main h3 { margin:0 0 3px; font-size:14px; letter-spacing:-.02em; }
.teacher-submaterial-jp-main p { max-width:820px; margin:0; color:var(--text-muted); font-size:9px; line-height:1.5; }
.teacher-submaterial-jp-actions { min-width:180px; display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:6px; }

@media (max-width:1100px) {
    .teacher-class-picker-grid,.teacher-subject-picker-grid { grid-template-columns:1fr; }
    .teacher-meeting-card,.teacher-submaterial-jp-card { grid-template-columns:64px minmax(0,1fr); }
    .teacher-meeting-action,.teacher-submaterial-jp-actions { grid-column:2; justify-content:flex-start; min-width:0; }
}
@media (max-width:760px) {
    .teacher-picker-class { grid-template-columns:44px minmax(0,1fr); }
    .teacher-picker-meta,.teacher-picker-status { grid-column:2; justify-self:start; }
    .teacher-subject-card-head { grid-template-columns:44px minmax(0,1fr); }
    .teacher-subject-card-head .class-turn-badge { grid-column:2; width:max-content; }
    .teacher-element-meeting-head { grid-template-columns:38px minmax(0,1fr); }
    .teacher-element-count { grid-column:2; justify-self:start; }
    .teacher-meeting-card,.teacher-submaterial-jp-card { grid-template-columns:52px minmax(0,1fr); padding:13px; }
    .teacher-meeting-number-box { width:48px; min-height:52px; }
    .teacher-submaterial-jp-number { width:46px; height:48px; }
}

/* v5.12.3 - Teacher JP in-flow controls, assessment questions, and material-reader actions */
.teacher-turn-action-note {
    display:inline-flex;
    align-items:center;
    color:var(--text-muted);
    font-size:9px;
    line-height:1.45;
}

.teacher-jp-live-control {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin:14px 0 18px;
    padding:14px 16px;
    border:1px solid color-mix(in srgb,var(--end-user-accent) 24%,var(--border-color));
    border-radius:14px;
    background:color-mix(in srgb,var(--end-user-accent-soft) 38%,var(--bg-card));
    box-shadow:var(--shadow-xs);
}
.teacher-jp-live-copy { min-width:0; display:grid; gap:2px; }
.teacher-jp-live-copy > strong { font-size:13px; letter-spacing:-.015em; }
.teacher-jp-live-copy > small { color:var(--text-muted); font-size:9px; }
.teacher-jp-live-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:7px; }
.teacher-jp-live-actions form { margin:0; }

.teacher-process-question-panel { margin-top:14px; }
.teacher-process-question-panel .end-user-panel-head p { max-width:760px; margin:5px 0 0; color:var(--text-muted); font-size:9px; }
.teacher-process-question-list { display:grid; gap:9px; margin-top:14px; }
.teacher-process-question-item {
    display:grid;
    grid-template-columns:32px minmax(0,1fr);
    gap:10px;
    padding:12px 13px;
    border:1px solid var(--border-color);
    border-radius:11px;
    background:var(--bg-soft);
}
.teacher-process-question-number {
    width:30px; height:30px; display:grid; place-items:center;
    border-radius:9px; background:var(--end-user-accent-soft); color:var(--end-user-accent);
    font-size:10px; font-weight:850;
}
.teacher-process-question-content { min-width:0; display:grid; gap:8px; }
.teacher-process-question-content > strong { font-size:11px; line-height:1.5; }
.teacher-process-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px 10px; }
.teacher-process-options span { color:var(--text-muted); font-size:9px; line-height:1.45; }
.teacher-process-options b { color:var(--text-main); }
.teacher-answer-key {
    display:inline-flex; align-items:flex-start; gap:5px; width:max-content; max-width:100%;
    padding:6px 8px; border-radius:8px; background:var(--success-light); color:var(--success);
    font-size:8px; font-weight:700; line-height:1.45;
}

.teacher-reader-jp-control {
    max-width:1180px;
    margin:16px auto 0;
    padding:16px 18px;
    border:1px solid color-mix(in srgb,var(--end-user-accent) 28%,var(--border-color));
    border-radius:14px;
    background:var(--bg-card);
    box-shadow:var(--shadow-sm);
}
.teacher-reader-jp-status {
    display:grid;
    grid-template-columns:minmax(0,1fr) 160px;
    gap:18px;
    align-items:center;
}
.teacher-reader-jp-status h2 { margin:3px 0 4px; font-size:17px; letter-spacing:-.025em; }
.teacher-reader-jp-status p { max-width:760px; margin:0; color:var(--text-muted); font-size:9px; line-height:1.55; }
.teacher-reader-assessment-readiness {
    display:grid; gap:1px; padding:11px 12px; border-radius:11px;
    background:var(--warning-light); color:var(--warning); text-align:center;
}
.teacher-reader-assessment-readiness.is-ready { background:var(--success-light); color:var(--success); }
.teacher-reader-assessment-readiness span { font-size:8px; font-weight:800; text-transform:uppercase; letter-spacing:.035em; }
.teacher-reader-assessment-readiness strong { font-size:22px; line-height:1.15; }
.teacher-reader-assessment-readiness small { font-size:8px; }
.teacher-reader-jp-actions {
    display:flex; align-items:center; flex-wrap:wrap; gap:7px;
    margin-top:13px; padding-top:13px; border-top:1px solid var(--border-color);
}
.teacher-reader-jp-actions form { margin:0; }
.teacher-reader-soft-guard { flex-basis:100%; display:inline-flex; align-items:center; gap:5px; color:var(--warning); font-size:8px; }
.teacher-reader-target-complete { display:grid; gap:1px; margin-right:auto; }
.teacher-reader-target-complete strong { font-size:10px; }
.teacher-reader-target-complete span { color:var(--text-muted); font-size:8px; }
.teacher-reader-notice { display:inline-flex; align-items:center; gap:6px; color:var(--text-muted); font-size:9px; }

@media (max-width:900px) {
    .teacher-jp-live-control { align-items:flex-start; flex-direction:column; }
    .teacher-jp-live-actions { justify-content:flex-start; }
    .teacher-reader-jp-status { grid-template-columns:1fr; }
    .teacher-reader-assessment-readiness { max-width:220px; text-align:left; }
}
@media (max-width:680px) {
    .teacher-process-options { grid-template-columns:1fr; }
    .teacher-reader-jp-actions,.teacher-jp-live-actions { align-items:stretch; flex-direction:column; width:100%; }
    .teacher-reader-jp-actions .btn,.teacher-jp-live-actions .btn { width:100%; justify-content:center; }
    .teacher-reader-jp-actions form,.teacher-jp-live-actions form { width:100%; }
}


/* v5.12.4 - Teacher readability and JP hero action refinement */
.teacher-material-overview .section-intro p,
.teacher-material-summary-card p { font-size:12px; line-height:1.65; }
.teacher-material-overview .end-user-kicker { font-size:11px; }
.teacher-submaterial-jp-number span { font-size:9px; }
.teacher-submaterial-jp-meta { font-size:10px; gap:10px; margin-bottom:6px; }
.teacher-submaterial-jp-main h3 { font-size:16px; line-height:1.3; }
.teacher-submaterial-jp-main p { font-size:12px; line-height:1.6; }
.teacher-submaterial-jp-actions .meeting-status { font-size:9px; }
.teacher-material-overview .btn { font-size:12px; }
.teacher-hour-hero .end-user-context-copy p { font-size:12px; line-height:1.55; }
.teacher-hour-hero-side { display:grid; gap:10px; align-content:start; min-width:250px; }
.teacher-hour-hero-complete { display:grid; gap:5px; margin:0; }
.teacher-hour-hero-complete .btn { width:100%; justify-content:center; font-size:12px; }
.teacher-hour-hero-complete small { color:rgba(255,255,255,.78); font-size:10px; line-height:1.4; }
.end-user-shell .teacher-hour-hero .context-hour-status small { font-size:10px; }
.end-user-shell .teacher-hour-hero .context-hour-status strong { font-size:18px; }
.end-user-shell .end-user-context-tabs a { font-size:11px; }
.end-user-shell .workspace-tab-section .section-intro p { font-size:11px; line-height:1.6; }

@media (max-width:900px) {
    .teacher-hour-hero-side { min-width:0; width:100%; }
    .teacher-hour-hero-complete { max-width:320px; }
}

/* v5.12.5 - Teacher material-tab layout, readable assessment typography, floating JP reader control */
.end-user-shell .workspace-tab-section { font-size:13px; }
.end-user-shell .workspace-tab-section .end-user-kicker { font-size:11px; }
.end-user-shell .workspace-tab-section .section-intro h2 { font-size:22px; line-height:1.25; }
.end-user-shell .workspace-tab-section .section-intro p { font-size:13px; line-height:1.65; }
.end-user-shell .teacher-process-question-panel .end-user-panel-head p { font-size:12px; line-height:1.6; }
.end-user-shell .teacher-process-question-item { grid-template-columns:38px minmax(0,1fr); gap:14px; padding:16px 17px; }
.end-user-shell .teacher-process-question-number { width:36px; height:36px; border-radius:10px; font-size:12px; }
.end-user-shell .teacher-process-question-content > strong { font-size:14px; line-height:1.55; }
.end-user-shell .teacher-process-options { gap:8px 18px; }
.end-user-shell .teacher-process-options span { font-size:12px; line-height:1.55; }
.end-user-shell .teacher-answer-key { padding:8px 10px; font-size:11px; line-height:1.5; }

.teacher-material-tab { display:grid; gap:16px; }
.teacher-material-tab-head {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:end;
    gap:22px;
}
.teacher-material-tab-head .section-intro { margin:0; }
.teacher-material-tab-facts {
    display:grid;
    grid-template-columns:repeat(3,minmax(110px,1fr));
    gap:8px;
}
.teacher-material-tab-facts span {
    display:grid;
    gap:3px;
    min-width:112px;
    padding:12px 14px;
    border:1px solid var(--border-color);
    border-radius:12px;
    background:var(--bg-card);
}
.teacher-material-tab-facts small { color:var(--text-muted); font-size:10px; font-weight:700; }
.teacher-material-tab-facts strong { color:var(--text-main); font-size:14px; }

.teacher-material-learning-path {
    display:grid;
    grid-template-columns:minmax(0,1fr) 24px minmax(0,1.25fr) 24px minmax(0,1fr);
    align-items:stretch;
    gap:8px;
}
.teacher-material-stage {
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
    padding:14px 15px;
    border:1px solid var(--border-color);
    border-radius:13px;
    background:var(--bg-card);
}
.teacher-material-stage > i {
    flex:0 0 36px;
    width:36px;
    height:36px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:var(--bg-muted);
    color:var(--text-muted);
    font-size:18px;
}
.teacher-material-stage > div { min-width:0; display:grid; gap:2px; }
.teacher-material-stage small { color:var(--text-muted); font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.teacher-material-stage strong { font-size:13px; line-height:1.3; }
.teacher-material-stage span { overflow:hidden; color:var(--text-muted); font-size:11px; line-height:1.45; text-overflow:ellipsis; white-space:nowrap; }
.teacher-material-stage.is-current {
    border-color:color-mix(in srgb,var(--end-user-accent) 48%,var(--border-color));
    background:color-mix(in srgb,var(--end-user-accent-soft) 58%,var(--bg-card));
}
.teacher-material-stage.is-current > i { background:var(--end-user-accent); color:white; }
.teacher-material-stage.is-ready > i { background:var(--success-light); color:var(--success); }
.teacher-material-stage.is-muted { opacity:.72; }
.teacher-material-stage-arrow { align-self:center; justify-self:center; color:var(--text-muted); font-size:20px; }

.teacher-material-primary-card {
    display:grid;
    grid-template-columns:minmax(0,1fr) 220px;
    gap:22px;
    align-items:stretch;
    padding:22px;
}
.teacher-material-primary-copy { min-width:0; }
.teacher-material-primary-copy h2 { margin:5px 0 8px; font-size:24px; line-height:1.25; letter-spacing:-.025em; }
.teacher-material-primary-copy > p { max-width:820px; margin:0; color:var(--text-muted); font-size:13px; line-height:1.7; }
.teacher-material-primary-meta { display:flex; flex-wrap:wrap; gap:8px 14px; margin:15px 0 17px; }
.teacher-material-primary-meta span { display:inline-flex; align-items:center; gap:6px; color:var(--text-muted); font-size:11px; font-weight:650; }
.teacher-material-primary-meta i { color:var(--end-user-accent); font-size:15px; }
.teacher-material-primary-card .toolbar-actions .btn { font-size:12px; min-height:38px; }
.teacher-material-primary-side {
    display:grid;
    align-content:center;
    justify-items:center;
    gap:4px;
    padding:18px;
    border-radius:14px;
    background:var(--bg-soft);
    text-align:center;
}
.teacher-material-side-icon {
    width:50px; height:50px; display:grid; place-items:center;
    margin-bottom:5px; border-radius:14px;
    background:var(--end-user-accent-soft); color:var(--end-user-accent); font-size:26px;
}
.teacher-material-primary-side > small { color:var(--text-muted); font-size:10px; font-weight:750; }
.teacher-material-primary-side > strong { font-size:26px; line-height:1.15; }
.teacher-material-primary-side > span { color:var(--text-muted); font-size:11px; line-height:1.45; }
.teacher-material-primary-side > a { display:inline-flex; align-items:center; gap:4px; margin-top:7px; color:var(--end-user-accent); font-size:11px; font-weight:800; text-decoration:none; }

.teacher-reader-workspace {
    max-width:1440px;
    margin:0 auto;
    display:grid;
    grid-template-columns:minmax(0,1fr) 280px;
    gap:18px;
    align-items:start;
}
.teacher-reader-workspace .material-reader-shell { max-width:none; width:100%; margin:0; }
.teacher-reader-jp-floating {
    position:sticky;
    top:88px;
    z-index:8;
    max-width:none;
    margin:0;
    padding:16px;
    border:1px solid var(--border-color);
    border-radius:14px;
    background:var(--bg-card);
    box-shadow:var(--shadow-sm);
}
.teacher-reader-floating-head { display:grid; gap:3px; padding-bottom:12px; border-bottom:1px solid var(--border-color); }
.teacher-reader-floating-head h2 { margin:0; font-size:20px; line-height:1.2; }
.teacher-reader-floating-head p { margin:0; color:var(--text-muted); font-size:11px; line-height:1.5; }
.teacher-reader-jp-floating .teacher-reader-assessment-readiness { margin:12px 0 10px; text-align:left; }
.teacher-reader-floating-stats { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:10px; }
.teacher-reader-floating-stats span { display:grid; gap:2px; padding:10px; border-radius:10px; background:var(--bg-soft); }
.teacher-reader-floating-stats small { color:var(--text-muted); font-size:9px; font-weight:700; }
.teacher-reader-floating-stats strong { font-size:16px; }
.teacher-reader-floating-actions { display:grid; gap:7px; margin:0; padding:0; border:0; }
.teacher-reader-floating-actions .btn { width:100%; justify-content:flex-start; font-size:11px; min-height:38px; }
.teacher-reader-floating-note {
    display:flex; align-items:flex-start; gap:7px; margin-top:11px; padding:10px;
    border-radius:10px; background:var(--warning-light); color:var(--warning);
    font-size:10px; line-height:1.5;
}
.teacher-reader-floating-note.is-ready { background:var(--success-light); color:var(--success); }
.teacher-reader-floating-note i { margin-top:1px; font-size:15px; }
.teacher-reader-complete-location { display:block; margin-top:8px; color:var(--text-muted); font-size:9px; line-height:1.5; }

/* Reader typography: material content must be comfortable for teacher/student end users. */
.end-user-shell .material-reader-heading .page-title { font-size:24px; }
.end-user-shell .material-reader-heading .page-subtitle { font-size:12px; }
.end-user-shell .material-reader-hero__copy > span { font-size:10px; }
.end-user-shell .material-reader-hero__copy h1 { font-size:28px; line-height:1.2; }
.end-user-shell .material-reader-hero__copy p { font-size:13px; line-height:1.7; }
.end-user-shell .material-reader-context { font-size:11px; }
.end-user-shell .material-reader-body { font-size:14px; line-height:1.75; }
.end-user-shell .material-reader-body p,
.end-user-shell .material-reader-body li { font-size:14px; line-height:1.75; }
.end-user-shell .material-reader-body h2 { font-size:22px; }
.end-user-shell .material-reader-body h3 { font-size:18px; }

@media (max-width:1180px) {
    .teacher-material-tab-head { grid-template-columns:1fr; }
    .teacher-material-tab-facts { max-width:560px; }
    .teacher-reader-workspace { grid-template-columns:1fr; }
    .teacher-reader-jp-floating { position:relative; top:auto; order:-1; }
    .teacher-reader-floating-actions { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:900px) {
    .teacher-material-learning-path { grid-template-columns:1fr; }
    .teacher-material-stage-arrow { transform:rotate(90deg); }
    .teacher-material-primary-card { grid-template-columns:1fr; }
    .teacher-material-primary-side { justify-items:start; text-align:left; }
}
@media (max-width:680px) {
    .teacher-material-tab-facts { grid-template-columns:1fr; }
    .teacher-reader-floating-actions { grid-template-columns:1fr; }
    .end-user-shell .teacher-process-options { grid-template-columns:1fr; }
}

/* v5.12.6 - Teacher assessment/progress readability + passed JP hero marker */
.end-user-shell .teacher-hour-passed-badge {
    display:flex;
    align-items:center;
    gap:10px;
    min-width:190px;
    padding:11px 14px;
    border:1px solid rgba(255,255,255,.28);
    border-radius:12px;
    background:rgba(16,185,129,.18);
    color:#fff;
}
.end-user-shell .teacher-hour-passed-badge > i {
    flex:0 0 34px;
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:rgba(255,255,255,.16);
    font-size:20px;
}
.end-user-shell .teacher-hour-passed-badge > span { display:grid; gap:1px; }
.end-user-shell .teacher-hour-passed-badge small { color:rgba(255,255,255,.78); font-size:11px; font-weight:700; }
.end-user-shell .teacher-hour-passed-badge strong { font-size:15px; line-height:1.3; }

/* Assessment tab: comfortable desktop reading sizes. */
.end-user-shell .assessment-stage-card { gap:7px 12px; padding:16px 17px; border-radius:12px; }
.end-user-shell .assessment-stage-card > span { font-size:11px; letter-spacing:.035em; }
.end-user-shell .assessment-stage-card > strong { font-size:14px; line-height:1.45; white-space:normal; }
.end-user-shell .assessment-stage-card small { font-size:11px; line-height:1.45; }
.end-user-shell .assessment-stage-card b { font-size:19px; line-height:1.2; }
.end-user-shell .assessment-stage-card em { font-size:11px; line-height:1.45; }
.end-user-shell .teacher-process-question-panel .end-user-panel-head h2 { font-size:21px; line-height:1.3; }
.end-user-shell .teacher-process-question-panel .end-user-panel-head p { font-size:13px; line-height:1.65; }
.end-user-shell .teacher-process-question-content > strong { font-size:15px; line-height:1.6; }
.end-user-shell .teacher-process-options span { font-size:13px; line-height:1.6; }
.end-user-shell .teacher-answer-key { font-size:12px; line-height:1.55; }
.end-user-shell .review-card { padding:14px; gap:14px; }
.end-user-shell .review-card > p { font-size:12px; line-height:1.6; }
.end-user-shell .review-student strong { font-size:13px; }
.end-user-shell .review-student small { font-size:11px; }

/* Progress tab: table/status text must be readable without browser zoom. */
.end-user-shell .progress-summary-strip > span { gap:4px; padding:15px 16px; }
.end-user-shell .progress-summary-strip small { font-size:11px; line-height:1.4; }
.end-user-shell .progress-summary-strip strong { font-size:22px; line-height:1.2; }
.end-user-shell .teacher-student-progress-table .table th {
    padding:13px 14px;
    font-size:12px;
    line-height:1.4;
}
.end-user-shell .teacher-student-progress-table .table td {
    padding:13px 14px;
    font-size:13px;
    line-height:1.5;
    vertical-align:middle;
}
.end-user-shell .teacher-student-progress-table .table td > strong { font-size:13.5px; }
.end-user-shell .status-chip { padding:6px 9px; font-size:11px; line-height:1.35; }
.end-user-shell .student-row-progress > span { font-size:11px; }
.end-user-shell .student-row-progress { min-width:150px; grid-template-columns:36px minmax(95px,1fr); gap:9px; }
.end-user-shell .teacher-student-progress-table .end-user-progress { height:7px; }

/* Material card keeps only the actions that belong to the material itself. */
.end-user-shell .teacher-material-primary-side > span { font-size:12px; }
.end-user-shell .teacher-material-primary-side > small { font-size:11px; }

/* v5.12.8 - Teacher completed JP states + student readability and study-side workflow */
.teacher-submaterial-jp-card.is-completed {
    border-color: color-mix(in srgb,var(--success) 34%,var(--border-color));
    background: color-mix(in srgb,var(--success-light) 42%,var(--bg-card));
    box-shadow: inset 4px 0 0 color-mix(in srgb,var(--success) 72%,transparent), var(--shadow-xs);
}
.teacher-submaterial-jp-card.is-completed .teacher-submaterial-jp-number {
    position:relative;
    background:var(--success-light);
    color:var(--success);
}
.teacher-submaterial-jp-card.is-completed .teacher-submaterial-jp-number > i {
    position:absolute;
    right:-4px;
    top:-4px;
    width:20px;
    height:20px;
    display:grid;
    place-items:center;
    border:2px solid var(--bg-card);
    border-radius:50%;
    background:var(--success);
    color:#fff;
    font-size:13px;
    font-weight:900;
}
.teacher-submaterial-jp-card.is-completed .teacher-submaterial-jp-main h3 { color:var(--success); }

/* Student end-user typography: readable at normal desktop zoom without admin-like micro text. */
.end-user-shell.role-siswa .end-user-context-tabs a { font-size:12px; }
.end-user-shell.role-siswa .section-intro > .end-user-kicker,
.end-user-shell.role-siswa .end-user-kicker { font-size:10.5px; }
.end-user-shell.role-siswa .section-intro h2 { font-size:22px; }
.end-user-shell.role-siswa .section-intro p { max-width:940px; font-size:13px; line-height:1.6; }
.end-user-shell.role-siswa .flow-card-head small { font-size:10.5px; }
.end-user-shell.role-siswa .flow-card-head h3 { font-size:17px; }
.end-user-shell.role-siswa .flow-card-head p { font-size:12px; line-height:1.55; }
.end-user-shell.role-siswa .objective-progress-badge { font-size:11px; }
.end-user-shell.role-siswa .tp-assessment-boundary { padding:13px 14px; }
.end-user-shell.role-siswa .tp-assessment-boundary strong { font-size:12.5px; }
.end-user-shell.role-siswa .tp-assessment-boundary small { font-size:10.5px; line-height:1.45; }
.end-user-shell.role-siswa .tp-assessment-boundary b { font-size:11px; }
.end-user-shell.role-siswa .hour-flow-no { font-size:10.5px; }
.end-user-shell.role-siswa .student-hour-flow-card { min-height:68px; padding:13px 14px; }
.end-user-shell.role-siswa .hour-flow-copy strong { font-size:13px; }
.end-user-shell.role-siswa .hour-flow-copy small { font-size:11px; }
.end-user-shell.role-siswa .student-hour-stage em { padding:5px 8px; font-size:10px; }
.end-user-shell.role-siswa .student-assessment-status-list small,
.end-user-shell.role-siswa .student-assessment-phase-row small { font-size:10px; }
.end-user-shell.role-siswa .student-assessment-status-list strong,
.end-user-shell.role-siswa .student-assessment-phase-row strong { font-size:12px; }
.end-user-shell.role-siswa .student-assessment-phase-row em { font-size:10px; }
.end-user-shell.role-siswa .student-process-assessment-row { padding:12px 13px; }
.end-user-shell.role-siswa .student-process-assessment-row b { font-size:10.5px; }
.end-user-shell.role-siswa .student-process-assessment-row strong { font-size:12.5px; }
.end-user-shell.role-siswa .student-process-assessment-row small,
.end-user-shell.role-siswa .student-process-assessment-row em { font-size:10px; }
.end-user-shell.role-siswa .student-assessment-picker-card small { font-size:9.5px; }
.end-user-shell.role-siswa .student-assessment-picker-card strong { font-size:12px; }
.end-user-shell.role-siswa .student-assessment-picker-card em { font-size:10px; }
.end-user-shell.role-siswa .student-result-step small { font-size:9.5px; }
.end-user-shell.role-siswa .student-result-step strong { font-size:12px; }
.end-user-shell.role-siswa .student-result-step em { font-size:10px; }
.end-user-shell.role-siswa .student-material-workspace-main p { font-size:13px; line-height:1.65; }
.end-user-shell.role-siswa .student-material-code-visual span { font-size:11px; }
.end-user-shell.role-siswa .student-progress-step strong { font-size:11.5px; }
.end-user-shell.role-siswa .student-progress-step small { font-size:9.5px; }
.end-user-shell.role-siswa .student-score-result span,
.end-user-shell.role-siswa .student-score-result small { font-size:10px; }
.end-user-shell.role-siswa .material-reader-heading .page-subtitle { font-size:12.5px; }
.end-user-shell.role-siswa .material-reader-body { font-size:14px; line-height:1.72; }

.student-reader-workspace {
    display:grid;
    grid-template-columns:minmax(0,1fr) 292px;
    gap:18px;
    align-items:start;
}
.student-reader-workspace .material-reader-shell { min-width:0; }
.student-reader-study-side {
    position:sticky;
    top:calc(var(--navbar-height) + 18px);
    display:grid;
    gap:12px;
    padding:16px;
    border:1px solid var(--border-color);
    border-radius:15px;
    background:var(--bg-card);
    box-shadow:var(--shadow-sm);
}
.student-reader-study-head { display:grid; gap:3px; padding-bottom:12px; border-bottom:1px solid var(--border-color); }
.student-reader-study-head h2 { margin:0; font-size:21px; letter-spacing:-.025em; }
.student-reader-study-head p { margin:0; color:var(--text-muted); font-size:11.5px; line-height:1.5; }
.student-study-note-card,
.student-reader-process-card { display:grid; gap:9px; padding:13px; border:1px solid var(--border-color); border-radius:12px; background:var(--bg-soft); }
.student-study-note-card.has-note { border-color:color-mix(in srgb,var(--end-user-accent) 26%,var(--border-color)); background:color-mix(in srgb,var(--end-user-accent-soft) 34%,var(--bg-card)); }
.student-study-note-title { display:grid; grid-template-columns:34px minmax(0,1fr); gap:9px; align-items:center; }
.student-study-note-title > i { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:var(--end-user-accent-soft); color:var(--end-user-accent); font-size:18px; }
.student-study-note-title span { display:grid; gap:1px; }
.student-study-note-title small,
.student-reader-process-card > small { color:var(--end-user-accent); font-size:9.5px; font-weight:800; letter-spacing:.035em; text-transform:uppercase; }
.student-study-note-title strong,
.student-reader-process-card > strong { font-size:12.5px; }
.student-study-note-card > p,
.student-reader-process-card > p { margin:0; color:var(--text-muted); font-size:11px; line-height:1.55; }
.student-study-note-preview {
    max-height:230px;
    overflow:auto;
    padding:10px;
    border-radius:9px;
    background:var(--bg-card);
    color:var(--text-main);
    font-size:11.5px;
    line-height:1.58;
    white-space:normal;
}
.student-study-note-updated { color:var(--text-muted); font-size:9px; }
.student-study-note-card .btn,
.student-reader-process-card .btn { width:100%; justify-content:center; }
.student-reader-process-card.is-complete { border-color:color-mix(in srgb,var(--success) 30%,var(--border-color)); background:color-mix(in srgb,var(--success-light) 38%,var(--bg-card)); }
.student-reader-process-card.is-complete > strong { color:var(--success); }

.student-study-note-dialog {
    width:min(620px,calc(100vw - 34px));
    padding:0;
    border:1px solid var(--border-color);
    border-radius:16px;
    color:var(--text-main);
    background:var(--bg-card);
    box-shadow:0 24px 80px rgba(15,23,42,.28);
}
.student-study-note-dialog::backdrop { background:rgba(15,23,42,.58); backdrop-filter:blur(3px); }
.student-study-note-form { display:grid; gap:13px; padding:20px; }
.student-study-note-dialog-head { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.student-study-note-dialog-head h2 { margin:3px 0 4px; font-size:22px; }
.student-study-note-dialog-head p { margin:0; color:var(--text-muted); font-size:12px; }
.student-study-note-close { width:34px; height:34px; display:grid; place-items:center; flex:0 0 34px; border:1px solid var(--border-color); border-radius:10px; color:var(--text-muted); background:var(--bg-soft); cursor:pointer; }
.student-study-note-close:hover { color:var(--text-main); background:var(--bg-muted); }
.student-study-note-form > label { font-size:12px; font-weight:750; }
.student-study-note-form textarea { width:100%; min-height:220px; resize:vertical; padding:13px 14px; border:1px solid var(--border-color); border-radius:11px; color:var(--text-main); background:var(--bg-soft); font:inherit; font-size:13px; line-height:1.6; }
.student-study-note-form textarea:focus { outline:2px solid color-mix(in srgb,var(--end-user-accent) 24%,transparent); border-color:var(--end-user-accent); }
.student-study-note-form-actions { display:flex; justify-content:flex-end; gap:8px; }

@media (max-width:1100px) {
    .student-reader-workspace { grid-template-columns:1fr; }
    .student-reader-study-side { position:static; grid-template-columns:repeat(2,minmax(0,1fr)); }
    .student-reader-study-head { grid-column:1 / -1; }
}
@media (max-width:760px) {
    .student-reader-study-side { grid-template-columns:1fr; }
    .student-reader-study-head { grid-column:auto; }
    .end-user-shell.role-siswa .student-hour-flow-card { grid-template-columns:58px minmax(0,1fr) 18px; }
    .end-user-shell.role-siswa .student-hour-stage { grid-column:2; justify-content:flex-start; }
}

/* v5.12.10 - Assessment review workspace + cleanup of v5.12.9 overrides */
.student-study-note-dialog[open] {
    position:fixed;
    top:50%;
    left:50%;
    right:auto;
    bottom:auto;
    margin:0;
    transform:translate(-50%,-50%);
    max-height:calc(100dvh - 48px);
    overflow:auto;
}
.student-process-assessment-direct-head {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:22px;
    padding:20px 22px;
    border:1px solid var(--border-color);
    border-radius:14px;
    background:var(--bg-card);
    box-shadow:var(--shadow-xs);
}
.student-process-assessment-direct-head > div:first-child { min-width:0; }
.student-process-assessment-direct-head h2 {
    margin:4px 0 6px;
    font-size:24px;
    line-height:1.25;
    letter-spacing:-.03em;
}
.student-process-assessment-direct-head p {
    max-width:820px;
    margin:0;
    color:var(--text-muted);
    font-size:13px;
    line-height:1.65;
}
.student-process-assessment-direct-meta {
    display:flex;
    align-items:center;
    gap:10px;
    flex:0 0 auto;
}
.student-process-assessment-direct-meta > span:first-child {
    display:grid;
    gap:1px;
    min-width:92px;
    padding:9px 11px;
    border:1px solid var(--border-color);
    border-radius:10px;
    background:var(--bg-soft);
}
.student-process-assessment-direct-meta small { color:var(--text-muted); font-size:10px; }
.student-process-assessment-direct-meta strong { font-size:13px; }
.student-process-assessment-rule {
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:12px;
    padding:12px 14px;
    border:1px solid var(--border-color);
    border-radius:11px;
    background:var(--bg-soft);
}
.student-process-assessment-rule > i {
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    flex:0 0 34px;
    border-radius:10px;
    background:var(--end-user-accent-soft);
    color:var(--end-user-accent);
    font-size:18px;
}
.student-process-assessment-rule > span { display:grid; gap:1px; min-width:0; }
.student-process-assessment-rule strong { font-size:12.5px; }
.student-process-assessment-rule small { color:var(--text-muted); font-size:11px; line-height:1.45; }
.student-process-assessment-rule > a {
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-left:auto;
    color:var(--end-user-accent);
    font-size:11.5px;
    font-weight:750;
    text-decoration:none;
    white-space:nowrap;
}
.student-process-assessment-action {
    display:block;
    margin-top:14px;
    padding:22px;
}
.student-process-assessment-action form { width:100%; }
.student-assessment-fields.is-direct-process { gap:18px; margin-top:0; }
.student-assessment-fields.is-direct-process .student-assessment-question {
    padding:18px 19px;
    border-radius:12px;
    background:var(--bg-card);
}
.student-assessment-fields.is-direct-process .student-assessment-question > strong {
    margin-bottom:14px;
    font-size:14px;
    line-height:1.6;
}
.student-assessment-fields.is-direct-process .student-assessment-options { gap:9px; }
.student-assessment-fields.is-direct-process .student-assessment-option {
    padding:9px 10px;
    border:1px solid var(--border-color);
    border-radius:9px;
    background:var(--bg-soft);
    font-size:12.5px;
    line-height:1.5;
}
.student-assessment-submit-area {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-top:30px;
    padding-top:22px;
    border-top:1px solid var(--border-color);
}
.student-assessment-submit-area > div { display:grid; gap:3px; }
.student-assessment-submit-area strong { font-size:13.5px; }
.student-assessment-submit-area small { max-width:660px; color:var(--text-muted); font-size:11.5px; line-height:1.5; }
.student-assessment-submit-area .btn { flex:0 0 auto; min-height:42px; padding-left:18px; padding-right:18px; }

/* Shared read-only assessment review */
.assessment-review-list { display:grid; gap:14px; }
.assessment-review-item {
    overflow:hidden;
    border:1px solid var(--border-color);
    border-radius:14px;
    background:var(--bg-card);
    box-shadow:var(--shadow-xs);
}
.assessment-review-item.is-correct { border-color:color-mix(in srgb,var(--success) 28%,var(--border-color)); }
.assessment-review-item.is-incorrect { border-color:color-mix(in srgb,var(--danger) 25%,var(--border-color)); }
.assessment-review-question-head {
    display:grid;
    grid-template-columns:42px minmax(0,1fr) auto;
    gap:12px;
    align-items:start;
    padding:17px 18px 14px;
}
.assessment-review-number {
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:11px;
    background:var(--bg-soft);
    color:var(--end-user-accent);
    font-size:11px;
    font-weight:850;
}
.assessment-review-question-copy { min-width:0; padding-top:4px; }
.assessment-review-question-copy > strong { display:block; font-size:14px; line-height:1.62; }
.assessment-review-status {
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:6px 9px;
    border-radius:999px;
    background:var(--bg-muted);
    color:var(--text-muted);
    font-size:10.5px;
    font-weight:800;
    white-space:nowrap;
}
.assessment-review-status.success { background:var(--success-light); color:var(--success); }
.assessment-review-status.danger { background:var(--danger-light); color:var(--danger); }
.assessment-review-options { display:grid; gap:8px; padding:0 18px 17px 72px; }
.assessment-review-option {
    display:grid;
    grid-template-columns:30px minmax(0,1fr) auto;
    gap:9px;
    align-items:center;
    min-height:43px;
    padding:8px 10px;
    border:1px solid var(--border-color);
    border-radius:10px;
    background:var(--bg-soft);
}
.assessment-review-option.is-selected-correct,
.assessment-review-option.is-correct-answer { border-color:color-mix(in srgb,var(--success) 36%,var(--border-color)); background:color-mix(in srgb,var(--success-light) 46%,var(--bg-card)); }
.assessment-review-option.is-selected-wrong { border-color:color-mix(in srgb,var(--danger) 34%,var(--border-color)); background:color-mix(in srgb,var(--danger-light) 48%,var(--bg-card)); }
.assessment-review-option-key {
    width:28px;
    height:28px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:var(--bg-card);
    color:var(--text-muted);
    font-size:10.5px;
    font-weight:850;
}
.is-selected-correct .assessment-review-option-key,
.is-correct-answer .assessment-review-option-key { background:var(--success); color:#fff; }
.is-selected-wrong .assessment-review-option-key { background:var(--danger); color:#fff; }
.assessment-review-option-label { min-width:0; font-size:12.5px; line-height:1.5; }
.assessment-review-option-tags { display:flex; gap:5px; flex-wrap:wrap; justify-content:flex-end; }
.answer-tag { padding:4px 6px; border-radius:999px; font-size:9px; font-style:normal; font-weight:800; white-space:nowrap; }
.answer-tag.is-student-answer { background:var(--end-user-accent-soft); color:var(--end-user-accent); }
.answer-tag.is-correct-answer { background:var(--success-light); color:var(--success); }
.assessment-review-text-answer { margin:0 18px 17px 72px; padding:12px; border-radius:10px; background:var(--bg-soft); }
.assessment-review-text-answer small { display:block; color:var(--text-muted); font-size:10px; }
.assessment-review-text-answer p { margin:4px 0 0; font-size:12.5px; line-height:1.6; }
.assessment-review-text-answer > span { display:block; margin-top:7px; color:var(--success); font-size:10.5px; font-weight:750; }
.assessment-review-explanation {
    display:grid;
    grid-template-columns:30px minmax(0,1fr);
    gap:9px;
    margin:0 18px 17px 72px;
    padding:11px 12px;
    border-radius:10px;
    background:color-mix(in srgb,var(--end-user-accent-soft) 45%,var(--bg-card));
}
.assessment-review-explanation > i { font-size:20px; color:var(--end-user-accent); }
.assessment-review-explanation strong { font-size:11px; }
.assessment-review-explanation p { margin:3px 0 0; color:var(--text-muted); font-size:11.5px; line-height:1.55; }
.assessment-review-section-head {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    margin:22px 0 11px;
}
.assessment-review-section-head h2 { margin:3px 0 2px; font-size:20px; }
.assessment-review-section-head p { margin:0; color:var(--text-muted); font-size:11.5px; }
.assessment-review-inline-head { display:grid; gap:2px; width:100%; margin:14px 0 8px; padding-top:14px; border-top:1px solid var(--border-color); }
.assessment-review-inline-head strong { font-size:13px; }
.assessment-review-inline-head small { color:var(--text-muted); font-size:10.5px; }

/* Student assessment result */
.student-process-result-summary { display:grid; gap:18px; margin-top:14px; padding:19px 20px; }
.student-process-result-title { display:grid; grid-template-columns:42px minmax(0,1fr); gap:12px; align-items:start; }
.assessment-result-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:12px; background:var(--success-light); color:var(--success); font-size:23px; }
.student-process-result-title h2 { margin:3px 0 3px; font-size:21px; }
.student-process-result-title p { max-width:760px; margin:0; color:var(--text-muted); font-size:11.5px; line-height:1.55; }
.student-process-result-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.student-process-result-metrics > span,
.teacher-process-result-metrics > span { display:grid; gap:3px; padding:12px 13px; border-radius:11px; background:var(--bg-soft); }
.student-process-result-metrics small,
.teacher-process-result-metrics small { color:var(--text-muted); font-size:9.5px; font-weight:700; }
.student-process-result-metrics strong { font-size:17px; }
.student-process-result-actions { display:flex; justify-content:flex-end; gap:8px; padding-top:2px; }

.student-results-workspace { display:grid; gap:14px; }
.student-jp-result-summary { padding:18px 20px; }
.student-jp-result-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.student-jp-result-head h2 { margin:3px 0 3px; font-size:20px; }
.student-jp-result-head p { margin:0; color:var(--text-muted); font-size:11.5px; line-height:1.55; }
.student-result-timeline { padding:18px 20px; }

/* Teacher process assessment results */
.teacher-assessment-workspace { display:grid; gap:14px; }
.teacher-process-results-panel { padding:19px 20px; }
.teacher-process-results-head p { max-width:780px; }
.teacher-process-result-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:14px 0; }
.teacher-process-result-metrics strong { font-size:18px; }
.teacher-process-result-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(290px,.7fr); gap:14px; align-items:start; }
.teacher-process-student-results { min-width:0; border:1px solid var(--border-color); border-radius:12px; overflow:hidden; background:var(--bg-soft); }
.teacher-process-result-list-head,
.teacher-process-attempt > summary,
.teacher-process-attempt-static {
    display:grid;
    grid-template-columns:minmax(180px,1.5fr) 62px 62px minmax(120px,.8fr) 64px 24px;
    gap:9px;
    align-items:center;
}
.teacher-process-result-list-head { padding:9px 12px; border-bottom:1px solid var(--border-color); color:var(--text-muted); font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.03em; }
.teacher-process-attempt-list { display:grid; }
.teacher-process-attempt { border-bottom:1px solid var(--border-color); background:var(--bg-card); }
.teacher-process-attempt:last-child { border-bottom:0; }
.teacher-process-attempt > summary { padding:10px 12px; cursor:pointer; list-style:none; }
.teacher-process-attempt > summary::-webkit-details-marker { display:none; }
.teacher-process-attempt > summary:hover { background:var(--bg-soft); }
.teacher-process-attempt > summary > i { color:var(--text-muted); font-size:17px; transition:transform .15s ease; }
.teacher-process-attempt[open] > summary > i { transform:rotate(180deg); }
.teacher-process-attempt-static { padding:10px 12px; }
.teacher-process-attempt.is-not-submitted { border-bottom:1px solid var(--border-color); background:var(--bg-card); }
.teacher-attempt-student { min-width:0; display:flex; align-items:center; gap:7px; }
.teacher-attempt-student > i { width:30px; height:30px; display:grid; place-items:center; flex:0 0 30px; border-radius:9px; background:var(--end-user-accent-soft); color:var(--end-user-accent); }
.teacher-attempt-student strong { overflow:hidden; font-size:11.5px; text-overflow:ellipsis; white-space:nowrap; }
.teacher-attempt-score { color:var(--end-user-accent); font-size:16px; }
.teacher-process-attempt > summary > span:not(.teacher-attempt-student):not(.status-chip),
.teacher-process-attempt-static > span:not(.teacher-attempt-student):not(.status-chip) { color:var(--text-muted); font-size:10.5px; }
.teacher-process-attempt-review { padding:14px; border-top:1px solid var(--border-color); background:var(--bg-soft); }
.teacher-process-attempt-review-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.teacher-process-attempt-review-head > div { display:grid; gap:1px; }
.teacher-process-attempt-review-head strong { font-size:12.5px; }
.teacher-process-attempt-review-head small { color:var(--text-muted); font-size:9.5px; }
.teacher-process-attempt-review .assessment-review-item { box-shadow:none; }
.teacher-process-attempt-review .assessment-review-question-head { padding:13px 14px 10px; }
.teacher-process-attempt-review .assessment-review-options { padding:0 14px 13px 64px; }
.teacher-process-attempt-review .assessment-review-explanation { margin:0 14px 13px 64px; }

.teacher-process-analysis-panel { padding:14px; border:1px solid var(--border-color); border-radius:12px; background:var(--bg-soft); }
.teacher-process-analysis-head h3 { margin:3px 0 3px; font-size:16px; }
.teacher-process-analysis-head p { margin:0; color:var(--text-muted); font-size:10.5px; line-height:1.5; }
.teacher-process-analysis-list { display:grid; gap:8px; margin-top:12px; }
.teacher-process-analysis-row { display:grid; grid-template-columns:30px minmax(0,1fr) 42px; gap:8px; align-items:start; padding:9px; border-radius:10px; background:var(--bg-card); }
.teacher-analysis-number { width:28px; height:28px; display:grid; place-items:center; border-radius:9px; background:var(--end-user-accent-soft); color:var(--end-user-accent); font-size:10px; font-weight:850; }
.teacher-process-analysis-row > div { min-width:0; display:grid; gap:4px; }
.teacher-process-analysis-row strong { overflow:hidden; font-size:10.5px; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.teacher-process-analysis-row small { color:var(--text-muted); font-size:9px; }
.teacher-process-analysis-row b { padding-top:5px; color:var(--end-user-accent); font-size:12px; text-align:right; }
.teacher-process-analysis-row .end-user-progress { height:5px; }
.teacher-question-bank-details { margin-top:0; }
.teacher-question-bank-details .end-user-details-body { padding:14px; }

@media (max-width:1180px) {
    .teacher-process-result-layout { grid-template-columns:1fr; }
    .teacher-process-analysis-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:900px) {
    .student-process-result-metrics,
    .teacher-process-result-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .teacher-process-result-list-head { display:none; }
    .teacher-process-attempt > summary,
    .teacher-process-attempt-static { grid-template-columns:minmax(160px,1fr) 55px 55px minmax(110px,.8fr) 58px 20px; }
}
@media (max-width:760px) {
    .student-study-note-dialog[open] { width:calc(100vw - 24px); max-height:calc(100dvh - 24px); }
    .student-process-assessment-direct-head { flex-direction:column; padding:17px; }
    .student-process-assessment-direct-head h2 { font-size:21px; }
    .student-process-assessment-direct-meta { width:100%; justify-content:space-between; }
    .student-process-assessment-rule { align-items:flex-start; flex-wrap:wrap; }
    .student-process-assessment-rule > a { width:100%; margin-left:44px; }
    .student-process-assessment-action { padding:16px; }
    .student-assessment-submit-area { align-items:stretch; flex-direction:column; }
    .student-assessment-submit-area .btn { width:100%; justify-content:center; }
    .student-process-result-metrics,
    .teacher-process-result-metrics,
    .teacher-process-analysis-list { grid-template-columns:1fr; }
    .student-process-result-actions { flex-direction:column-reverse; }
    .student-process-result-actions .btn { width:100%; justify-content:center; }
    .student-jp-result-head,
    .assessment-review-section-head { align-items:stretch; flex-direction:column; }
    .assessment-review-question-head { grid-template-columns:36px minmax(0,1fr); padding:14px; }
    .assessment-review-number { width:34px; height:34px; }
    .assessment-review-status { grid-column:2; width:max-content; }
    .assessment-review-options { padding:0 14px 14px 14px; }
    .assessment-review-option { grid-template-columns:28px minmax(0,1fr); }
    .assessment-review-option-tags { grid-column:2; justify-content:flex-start; }
    .assessment-review-text-answer,
    .assessment-review-explanation { margin:0 14px 14px; }
    .teacher-process-attempt > summary,
    .teacher-process-attempt-static { grid-template-columns:minmax(0,1fr) auto 20px; }
    .teacher-process-attempt > summary > :nth-child(3),
    .teacher-process-attempt > summary > :nth-child(5),
    .teacher-process-attempt-static > :nth-child(3),
    .teacher-process-attempt-static > :nth-child(5) { display:none; }
    .teacher-process-attempt > summary > :nth-child(4),
    .teacher-process-attempt-static > :nth-child(4) { grid-column:1 / 3; }
    .teacher-process-attempt > summary > i { grid-column:3; grid-row:1; }
    .teacher-process-attempt-review .assessment-review-options { padding:0 12px 12px; }
    .teacher-process-attempt-review .assessment-review-explanation { margin:0 12px 12px; }
}

/* v5.12.12 - student pre-assessment review and result footer cleanup */
.student-pre-result-summary {
    display:grid;
    gap:18px;
    margin-top:14px;
    padding:19px 20px;
}
.student-pre-result-title {
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    gap:12px;
    align-items:start;
}
.assessment-result-icon.is-diagnostic {
    background:var(--end-user-accent-soft);
    color:var(--end-user-accent);
}
.student-pre-result-title h2 {
    margin:3px 0 3px;
    font-size:21px;
}
.student-pre-result-title p {
    max-width:780px;
    margin:0;
    color:var(--text-muted);
    font-size:11.5px;
    line-height:1.55;
}
.student-pre-result-metrics {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:9px;
}
.student-pre-result-metrics > span {
    display:grid;
    gap:3px;
    padding:12px 13px;
    border-radius:11px;
    background:var(--bg-soft);
}
.student-pre-result-metrics small {
    color:var(--text-muted);
    font-size:9.5px;
    font-weight:700;
}
.student-pre-result-metrics strong {
    font-size:17px;
}
.student-pre-result-actions {
    display:flex;
    justify-content:flex-end;
}
.student-pre-review-head {
    margin-top:18px;
}
.student-assessment-workspace.is-direct-pre > .assessment-review-list {
    width:100%;
    max-width:none;
}

.student-results-next-action {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:16px 18px;
    border-color:color-mix(in srgb,var(--success) 22%,var(--border-color));
}
.student-results-next-action-copy {
    min-width:0;
    display:grid;
    grid-template-columns:40px minmax(0,1fr);
    gap:12px;
    align-items:center;
}
.student-results-next-action-icon {
    width:40px;
    height:40px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:var(--success-light);
    color:var(--success);
    font-size:21px;
}
.student-results-next-action-copy h2 {
    margin:2px 0 2px;
    font-size:16px;
}
.student-results-next-action-copy p {
    margin:0;
    color:var(--text-muted);
    font-size:10.5px;
    line-height:1.5;
}
.student-results-next-action > .btn {
    flex:0 0 auto;
}

@media (max-width:760px) {
    .student-pre-result-metrics { grid-template-columns:1fr; }
    .student-pre-result-actions { justify-content:stretch; }
    .student-pre-result-actions .btn { width:100%; justify-content:center; }
    .student-results-next-action { align-items:stretch; flex-direction:column; }
    .student-results-next-action > .btn { width:100%; justify-content:center; }
}

/* v5.12.13 - student JP mini learning report */
.student-jp-report-summary { display:grid; gap:16px; }
.student-jp-report-metrics {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:9px;
}
.student-jp-report-metric {
    min-width:0;
    display:grid;
    grid-template-columns:38px minmax(0,1fr);
    gap:10px;
    align-items:center;
    padding:12px 13px;
    border:1px solid var(--border-color);
    border-radius:12px;
    background:var(--bg-soft);
}
.student-jp-report-metric-icon {
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:11px;
    background:var(--bg-card);
    color:var(--text-muted);
    font-size:18px;
}
.student-jp-report-metric > div { min-width:0; display:grid; gap:1px; }
.student-jp-report-metric small { color:var(--text-muted); font-size:9px; font-weight:750; }
.student-jp-report-metric strong { font-size:20px; line-height:1.1; }
.student-jp-report-metric em { overflow:hidden; color:var(--text-muted); font-size:9.5px; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }
.student-jp-report-metric.is-primary { border-color:color-mix(in srgb,var(--end-user-accent) 24%,var(--border-color)); background:var(--end-user-accent-soft); }
.student-jp-report-metric.is-primary .student-jp-report-metric-icon { color:var(--end-user-accent); }
.student-jp-report-metric.is-positive .student-jp-report-metric-icon { background:var(--success-light); color:var(--success); }
.student-jp-report-metric.is-positive strong { color:var(--success); }
.student-jp-report-metric.is-negative .student-jp-report-metric-icon { background:var(--danger-light); color:var(--danger); }
.student-jp-report-metric.is-negative strong { color:var(--danger); }

.student-jp-report-grid {
    display:grid;
    grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);
    gap:14px;
    align-items:stretch;
}
.student-jp-growth-card,
.student-jp-note-card { padding:18px 20px; }
.student-jp-score-comparison { display:grid; gap:13px; margin-top:14px; }
.student-jp-score-row {
    display:grid;
    grid-template-columns:minmax(170px,.9fr) minmax(180px,1.4fr) 48px;
    gap:12px;
    align-items:center;
}
.student-jp-score-row > div:first-child { display:grid; gap:2px; }
.student-jp-score-row strong { font-size:11.5px; }
.student-jp-score-row small { color:var(--text-muted); font-size:9.5px; }
.student-jp-score-row > b { color:var(--text-main); font-size:17px; text-align:right; }
.student-jp-score-row.is-current > b { color:var(--end-user-accent); }
.student-jp-score-track { height:8px; overflow:hidden; border-radius:999px; background:var(--bg-soft); box-shadow:inset 0 0 0 1px var(--border-color); }
.student-jp-score-track > span { display:block; height:100%; border-radius:inherit; background:var(--text-muted); }
.student-jp-score-row.is-current .student-jp-score-track > span { background:var(--end-user-accent); }
.student-jp-growth-note {
    display:grid;
    grid-template-columns:34px minmax(0,1fr);
    gap:10px;
    align-items:start;
    margin-top:16px;
    padding:11px 12px;
    border-radius:11px;
    background:var(--bg-soft);
}
.student-jp-growth-note > i { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:var(--bg-card); color:var(--text-muted); font-size:18px; }
.student-jp-growth-note strong { display:block; margin:1px 0 2px; font-size:11.5px; }
.student-jp-growth-note p { margin:0; color:var(--text-muted); font-size:9.5px; line-height:1.5; }
.student-jp-growth-note.is-positive > i { background:var(--success-light); color:var(--success); }
.student-jp-growth-note.is-negative > i { background:var(--danger-light); color:var(--danger); }

.student-jp-note-head { align-items:flex-start; }
.student-jp-note-head > small { color:var(--text-muted); font-size:9px; white-space:nowrap; }
.student-jp-note-content,
.student-jp-note-empty {
    display:grid;
    grid-template-columns:34px minmax(0,1fr);
    gap:10px;
    margin-top:14px;
    padding:13px;
    border-radius:11px;
    background:var(--bg-soft);
}
.student-jp-note-content > i,
.student-jp-note-empty > i { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:var(--end-user-accent-soft); color:var(--end-user-accent); font-size:18px; }
.student-jp-note-content p { margin:2px 0 0; color:var(--text-main); font-size:11px; line-height:1.65; overflow-wrap:anywhere; }
.student-jp-note-empty strong { display:block; margin:1px 0 2px; font-size:11.5px; }
.student-jp-note-empty p { margin:0; color:var(--text-muted); font-size:9.5px; line-height:1.55; }
.student-jp-note-link { display:inline-flex; align-items:center; gap:5px; margin-top:11px; color:var(--end-user-accent); font-size:10px; font-weight:750; text-decoration:none; }
.student-jp-note-link:hover { text-decoration:underline; }

.student-jp-process-card { display:grid; gap:13px; }
.student-jp-process-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.student-jp-process-item {
    min-width:0;
    display:grid;
    grid-template-columns:34px minmax(0,1fr) auto;
    gap:9px;
    align-items:center;
    padding:11px 12px;
    border:1px solid var(--border-color);
    border-radius:11px;
    background:var(--bg-soft);
}
.student-jp-process-item > span { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:var(--bg-card); color:var(--text-muted); }
.student-jp-process-item.is-complete > span { background:var(--success-light); color:var(--success); }
.student-jp-process-item > div { min-width:0; display:grid; gap:1px; }
.student-jp-process-item small { color:var(--end-user-accent); font-size:8.5px; font-weight:800; text-transform:uppercase; }
.student-jp-process-item strong { overflow:hidden; font-size:10.5px; text-overflow:ellipsis; white-space:nowrap; }
.student-jp-process-item em { color:var(--text-muted); font-size:9px; font-style:normal; }
.student-jp-process-item > b { color:var(--end-user-accent); font-size:15px; }

@media (max-width:1180px) {
    .student-jp-report-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .student-jp-report-grid { grid-template-columns:1fr; }
}
@media (max-width:900px) {
    .student-jp-process-list { grid-template-columns:1fr; }
}
@media (max-width:760px) {
    .student-jp-report-metrics { grid-template-columns:1fr; }
    .student-jp-score-row { grid-template-columns:1fr auto; }
    .student-jp-score-track { grid-column:1 / -1; grid-row:2; }
    .student-jp-score-row > b { grid-column:2; grid-row:1; }
    .student-jp-note-head { align-items:stretch; flex-direction:column; gap:5px; }
}


/* v5.12.14 - student waiting-for-teacher summary state */
.end-user-context-action .context-action-note {
    display:inline-flex;
    align-items:center;
    gap:5px;
    max-width:260px;
    color:rgba(255,255,255,.78);
    font-size:9px;
    line-height:1.4;
}
.end-user-context-action .context-action-note i { font-size:13px; }

.student-waiting-teacher-card {
    display:grid;
    grid-template-columns:minmax(0,1.35fr) minmax(270px,.65fr);
    gap:16px;
    align-items:center;
    padding:20px;
    border-color:color-mix(in srgb,var(--info) 22%,var(--border-color));
    background:linear-gradient(135deg,var(--bg-card) 0%,color-mix(in srgb,var(--info-light) 54%,var(--bg-card)) 100%);
}
.student-waiting-teacher-main {
    display:grid;
    grid-template-columns:48px minmax(0,1fr);
    gap:13px;
    align-items:start;
    min-width:0;
}
.student-waiting-teacher-icon {
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    border-radius:14px;
    background:var(--info-light);
    color:var(--info);
    font-size:24px;
}
.student-waiting-teacher-main h2 {
    margin:3px 0 5px;
    font-size:17px;
    line-height:1.3;
}
.student-waiting-teacher-main p {
    max-width:720px;
    margin:0;
    color:var(--text-muted);
    font-size:10.5px;
    line-height:1.6;
}
.student-waiting-teacher-main p strong { color:var(--text-main); font-weight:750; }
.student-waiting-teacher-stats {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
}
.student-waiting-teacher-stats > span {
    min-width:0;
    display:grid;
    gap:2px;
    padding:11px 10px;
    border:1px solid var(--border-color);
    border-radius:11px;
    background:var(--bg-card);
    text-align:center;
}
.student-waiting-teacher-stats small {
    overflow:hidden;
    color:var(--text-muted);
    font-size:8px;
    font-weight:700;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.student-waiting-teacher-stats strong { font-size:18px; line-height:1; }
.student-waiting-next-jp {
    grid-column:1/-1;
    display:grid;
    grid-template-columns:36px minmax(0,1fr);
    gap:10px;
    align-items:center;
    padding:11px 13px;
    border:1px dashed color-mix(in srgb,var(--info) 28%,var(--border-color));
    border-radius:11px;
    background:color-mix(in srgb,var(--info-light) 46%,var(--bg-card));
}
.student-waiting-next-jp > i {
    width:36px;
    height:36px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:var(--bg-card);
    color:var(--info);
    font-size:17px;
}
.student-waiting-next-jp > div { min-width:0; display:grid; gap:1px; }
.student-waiting-next-jp small { color:var(--text-muted); font-size:8px; font-weight:750; text-transform:uppercase; letter-spacing:.04em; }
.student-waiting-next-jp strong { overflow:hidden; font-size:10.5px; text-overflow:ellipsis; white-space:nowrap; }
.student-waiting-next-jp span { overflow:hidden; color:var(--text-muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.student-waiting-teacher-actions {
    grid-column:1/-1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding-top:2px;
}
.student-waiting-teacher-actions > span {
    display:inline-flex;
    align-items:center;
    gap:5px;
    color:var(--text-muted);
    font-size:9px;
    line-height:1.4;
}
.student-waiting-teacher-actions > span i { color:var(--info); font-size:14px; }

@media (max-width:900px) {
    .student-waiting-teacher-card { grid-template-columns:1fr; }
    .student-waiting-next-jp,
    .student-waiting-teacher-actions { grid-column:1; }
}
@media (max-width:620px) {
    .student-waiting-teacher-card { padding:16px; }
    .student-waiting-teacher-main { grid-template-columns:40px minmax(0,1fr); }
    .student-waiting-teacher-icon { width:40px; height:40px; border-radius:12px; font-size:20px; }
    .student-waiting-teacher-stats { grid-template-columns:1fr 1fr 1fr; }
    .student-waiting-teacher-stats > span { padding:9px 6px; }
    .student-waiting-teacher-actions { align-items:stretch; flex-direction:column; }
    .student-waiting-teacher-actions .btn { width:100%; justify-content:center; }
}

/* v5.12.15 - student next action + dashboard learning position */
.student-material-lock-hint {
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-width:180px;
    padding:9px 11px;
    border:1px solid color-mix(in srgb,var(--warning) 24%,var(--border-color));
    border-radius:9px;
    background:var(--warning-light);
    color:var(--warning);
}
.student-material-lock-hint > i { font-size:17px; }
.student-material-lock-hint > span { display:grid; gap:1px; }
.student-material-lock-hint strong { font-size:9px; }
.student-material-lock-hint small { color:var(--text-muted); font-size:7.5px; }

.student-next-action-card {
    display:flex;
    flex-direction:column;
    gap:14px;
    min-height:100%;
    padding:18px;
}
.student-next-action-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.student-next-action-state {
    display:inline-flex;
    align-items:center;
    gap:4px;
    padding:5px 8px;
    border-radius:999px;
    background:var(--bg-muted);
    color:var(--text-muted);
    font-size:8px;
    font-weight:800;
    line-height:1;
}
.student-next-action-state.warning { background:var(--warning-light); color:var(--warning); }
.student-next-action-state.info { background:var(--info-light); color:var(--info); }
.student-next-action-state.waiting { background:color-mix(in srgb,var(--info-light) 65%,var(--bg-card)); color:var(--info); }
.student-next-action-state.danger { background:var(--danger-light); color:var(--danger); }
.student-next-action-state.success { background:var(--success-light); color:var(--success); }
.student-next-action-main {
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    gap:11px;
    align-items:start;
}
.student-next-action-main > div { min-width:0; }
.student-next-action-main > div > small {
    display:block;
    overflow:hidden;
    margin-bottom:3px;
    color:var(--text-muted);
    font-size:8.5px;
    font-weight:650;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.student-next-action-main h2 {
    margin:0 0 4px;
    font-size:17px;
    line-height:1.25;
    letter-spacing:-.02em;
}
.student-next-action-main p {
    margin:0;
    color:var(--text-muted);
    font-size:9.5px;
    line-height:1.55;
}
.student-next-action-icon {
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:var(--bg-muted);
    color:var(--text-muted);
    font-size:20px;
}
.student-next-action-icon.warning { background:var(--warning-light); color:var(--warning); }
.student-next-action-icon.info { background:var(--info-light); color:var(--info); }
.student-next-action-icon.waiting { background:var(--info-light); color:var(--info); }
.student-next-action-icon.danger { background:var(--danger-light); color:var(--danger); }
.student-next-action-icon.success { background:var(--success-light); color:var(--success); }
.student-next-action-progress {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    margin-top:auto;
}
.student-next-action-progress > span {
    display:grid;
    gap:2px;
    padding:9px 10px;
    border:1px solid var(--border-color);
    border-radius:9px;
    background:var(--bg-soft);
}
.student-next-action-progress small { color:var(--text-muted); font-size:7.5px; }
.student-next-action-progress strong { font-size:9.5px; line-height:1.25; }
.student-next-action-cta { width:100%; justify-content:center; }

.current-jp-pill.waiting {
    background:var(--info-light);
    color:var(--info);
}
.current-jp-pill.waiting i { font-size:12px; }

.student-learning-attention-panel { gap:0; }
.student-attention-status {
    display:grid;
    grid-template-columns:40px minmax(0,1fr);
    gap:10px;
    align-items:start;
    padding:12px;
    border:1px solid var(--border-color);
    border-radius:11px;
    background:var(--bg-soft);
}
.student-attention-icon {
    width:40px;
    height:40px;
    display:grid;
    place-items:center;
    border-radius:11px;
    background:var(--bg-card);
    color:var(--text-muted);
    font-size:19px;
}
.student-attention-status > div { min-width:0; }
.student-attention-status small {
    display:block;
    margin-bottom:2px;
    color:var(--text-muted);
    font-size:7.5px;
    font-weight:850;
    letter-spacing:.05em;
}
.student-attention-status h3 { margin:0 0 2px; font-size:13px; line-height:1.3; }
.student-attention-status p { margin:0; color:var(--text-muted); font-size:8.5px; line-height:1.4; }
.student-attention-status.warning { border-color:color-mix(in srgb,var(--warning) 24%,var(--border-color)); background:var(--warning-light); }
.student-attention-status.warning .student-attention-icon { color:var(--warning); }
.student-attention-status.warning small { color:var(--warning); }
.student-attention-status.info { border-color:color-mix(in srgb,var(--info) 24%,var(--border-color)); background:var(--info-light); }
.student-attention-status.info .student-attention-icon { color:var(--info); }
.student-attention-status.info small { color:var(--info); }
.student-attention-status.success { border-color:color-mix(in srgb,var(--success) 22%,var(--border-color)); background:var(--success-light); }
.student-attention-status.success .student-attention-icon { color:var(--success); }
.student-attention-status.success small { color:var(--success); }
.student-attention-status.neutral .student-attention-icon { color:var(--text-muted); }

.student-attention-position-grid {
    display:grid;
    grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);
    gap:6px;
    align-items:center;
    margin-top:10px;
}
.student-attention-position-grid > span {
    min-width:0;
    display:grid;
    gap:2px;
    padding:9px 10px;
    border:1px solid var(--border-color);
    border-radius:9px;
    background:var(--bg-soft);
}
.student-attention-position-grid > span small { color:var(--text-muted); font-size:7.5px; }
.student-attention-position-grid > span strong { font-size:11px; }
.student-attention-position-grid > i { color:var(--text-muted); font-size:15px; text-align:center; }
.student-attention-position-grid.aligned > i { color:var(--success); }
.student-attention-position-grid.waiting > i { color:var(--info); }
.student-attention-note { margin:9px 0 0; color:var(--text-muted); font-size:8.75px; line-height:1.55; }
.student-attention-action { width:100%; justify-content:center; margin-top:10px; }
.student-attention-secondary { margin-top:9px; padding:9px 0 0; border-top:1px solid var(--border-color); border-bottom:0; }

@media (max-width:760px) {
    .student-next-action-head { align-items:flex-start; flex-direction:column; }
    .student-next-action-progress { grid-template-columns:1fr; }
    .student-material-lock-hint { width:100%; }
    .student-attention-position-grid { grid-template-columns:1fr; }
    .student-attention-position-grid > i { transform:rotate(90deg); }
}

/* v5.12.16 - Adaptive fullscreen composition for slide density */
.material-slide-deck:fullscreen .material-slide--density-compact .material-slide-content:not(.has-image),
.material-slide-deck.is-fullscreen .material-slide--density-compact .material-slide-content:not(.has-image) {
    justify-content: center;
}
.material-slide-deck:fullscreen .material-slide--density-compact .material-slide-copy,
.material-slide-deck.is-fullscreen .material-slide--density-compact .material-slide-copy {
    width: min(920px, 72vw);
    max-width: 100%;
    transform: translateY(-3vh);
}
.material-slide-deck:fullscreen .material-slide--density-standard .material-slide-content:not(.has-image),
.material-slide-deck.is-fullscreen .material-slide--density-standard .material-slide-content:not(.has-image) {
    justify-content: center;
}
.material-slide-deck:fullscreen .material-slide--density-standard .material-slide-copy,
.material-slide-deck.is-fullscreen .material-slide--density-standard .material-slide-copy {
    width: min(1080px, 80vw);
    max-width: 100%;
}
.material-slide-deck:fullscreen .material-slide--density-dense .material-slide-content:not(.has-image),
.material-slide-deck.is-fullscreen .material-slide--density-dense .material-slide-content:not(.has-image) {
    align-items: flex-start;
    justify-content: center;
    height: auto;
    min-height: 100%;
}
.material-slide-deck:fullscreen .material-slide--density-dense .material-slide-copy,
.material-slide-deck.is-fullscreen .material-slide--density-dense .material-slide-copy {
    width: min(1220px, 88vw);
    max-width: 100%;
    padding-block: clamp(16px, 3vh, 42px);
}
.material-slide-deck:fullscreen .material-slide--density-compact .material-slide-body,
.material-slide-deck.is-fullscreen .material-slide--density-compact .material-slide-body {
    max-width: 860px;
}
@media (max-width: 900px) {
    .material-slide-deck:fullscreen .material-slide--density-compact .material-slide-copy,
    .material-slide-deck.is-fullscreen .material-slide--density-compact .material-slide-copy,
    .material-slide-deck:fullscreen .material-slide--density-standard .material-slide-copy,
    .material-slide-deck.is-fullscreen .material-slide--density-standard .material-slide-copy,
    .material-slide-deck:fullscreen .material-slide--density-dense .material-slide-copy,
    .material-slide-deck.is-fullscreen .material-slide--density-dense .material-slide-copy {
        width: 100%;
        transform: none;
    }
}

/* v5.13.0 - Curriculum quality control: readiness, pre-publish validation, role preview */
.curriculum-readiness-page-head { align-items:flex-end; gap:20px; }
.curriculum-readiness-filter { display:flex; gap:10px; align-items:flex-end; min-width:min(420px,100%); }
.curriculum-readiness-filter .form-control { min-width:260px; }
.curriculum-readiness-hero,
.dashboard-curriculum-readiness,
.curriculum-validation-hero {
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:20px;
    align-items:center;
    padding:22px;
    margin-bottom:18px;
    border:1px solid var(--border-color);
    border-radius:var(--radius-xl);
    background:var(--bg-card);
    box-shadow:var(--shadow-xs);
}
.curriculum-readiness-hero.has-attention,
.dashboard-curriculum-readiness.has-attention,
.curriculum-validation-hero.has-errors { border-color:color-mix(in srgb,var(--warning) 38%,var(--border-color)); background:linear-gradient(135deg,var(--warning-light),var(--bg-card) 48%); }
.curriculum-readiness-hero.is-ready,
.dashboard-curriculum-readiness.is-ready,
.curriculum-validation-hero.is-ready { border-color:color-mix(in srgb,var(--success) 34%,var(--border-color)); background:linear-gradient(135deg,var(--success-light),var(--bg-card) 48%); }
.curriculum-readiness-score,
.dashboard-curriculum-readiness-score {
    width:104px;height:104px;border-radius:22px;display:grid;place-content:center;text-align:center;
    background:var(--bg-card);border:1px solid var(--border-color);box-shadow:var(--shadow-xs);
}
.curriculum-readiness-score strong,
.dashboard-curriculum-readiness-score strong { font-size:28px;line-height:1;color:var(--primary); }
.curriculum-readiness-score span,
.dashboard-curriculum-readiness-score span { margin-top:7px;color:var(--text-muted);font-size:10px;font-weight:700; }
.curriculum-readiness-hero h2,
.dashboard-curriculum-readiness h2,
.curriculum-validation-hero h2 { margin:3px 0 5px;font-size:20px; }
.curriculum-readiness-hero p,
.dashboard-curriculum-readiness p,
.curriculum-validation-hero p { margin:0;color:var(--text-muted); }
.curriculum-readiness-summary-card { text-decoration:none; transition:border-color .18s ease,transform .18s ease; }
.curriculum-readiness-summary-card:hover { border-color:var(--primary); transform:translateY(-1px); }
.curriculum-readiness-summary-card .summary-info small { display:block;margin-top:2px;color:var(--text-muted);font-size:10px; }
.curriculum-issue-list { display:grid;gap:8px;margin-top:16px; }
.curriculum-issue-row { display:grid;grid-template-columns:38px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-soft); }
.curriculum-issue-icon { width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--warning-light);color:var(--warning);font-size:18px; }
.curriculum-issue-main { min-width:0;display:grid;gap:2px; }
.curriculum-issue-main small { color:var(--text-muted);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.04em; }
.curriculum-issue-main strong { font-size:13px; }
.curriculum-issue-main p { margin:0;color:var(--text-muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.curriculum-quality-empty { display:flex;align-items:center;gap:12px;padding:18px;border:1px dashed var(--border-strong);border-radius:10px;background:var(--bg-soft); }
.curriculum-quality-empty.compact { padding:12px; }
.curriculum-quality-empty > i { color:var(--success);font-size:24px; }
.curriculum-quality-empty p { margin:2px 0 0;color:var(--text-muted); }
.curriculum-coverage-table td { vertical-align:middle; }
.curriculum-readiness-meter { width:108px;height:6px;border-radius:999px;background:var(--bg-muted);overflow:hidden;margin-bottom:6px; }
.curriculum-readiness-meter span { display:block;height:100%;background:var(--primary);border-radius:inherit; }
.text-success { color:var(--success); }
.text-warning { color:var(--warning); }
.curriculum-readiness-split { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0; }
.curriculum-mini-list { display:grid;gap:7px;margin-top:12px; }
.curriculum-mini-list > a { display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;border:1px solid var(--border-color);border-radius:9px;text-decoration:none;background:var(--bg-soft); }
.curriculum-mini-list > a:hover { border-color:var(--primary); }
.curriculum-mini-list > a > span:nth-child(2) { display:grid;min-width:0; }
.curriculum-mini-list strong { font-size:11px; }
.curriculum-mini-list small { color:var(--text-muted);font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.curriculum-mini-list b { font-size:9px;color:var(--text-muted); }
.curriculum-mini-status { width:30px;height:30px;display:grid;place-items:center;border-radius:9px; }
.curriculum-mini-status.ok { background:var(--success-light);color:var(--success); }
.curriculum-mini-status.warn { background:var(--warning-light);color:var(--warning); }

.dashboard-curriculum-readiness { margin-bottom:16px; }
.dashboard-curriculum-readiness-score { width:92px;height:92px;border-radius:18px; }
.dashboard-curriculum-readiness-copy { min-width:0; }
.dashboard-readiness-tags { display:flex;gap:6px;flex-wrap:wrap;margin-top:10px; }
.dashboard-readiness-tags span { padding:5px 8px;border:1px solid var(--border-color);border-radius:999px;background:var(--bg-card);font-size:9px;font-weight:700;color:var(--text-muted); }
.dashboard-curriculum-readiness-action { display:grid;gap:7px;justify-items:end; }
.dashboard-curriculum-readiness-action small { max-width:200px;color:var(--text-muted);font-size:9px;text-align:right; }

.curriculum-validation-icon { width:54px;height:54px;border-radius:15px;display:grid;place-items:center;font-size:28px;background:var(--bg-card);border:1px solid var(--border-color); }
.curriculum-validation-hero.is-ready .curriculum-validation-icon { color:var(--success); }
.curriculum-validation-hero.has-errors .curriculum-validation-icon { color:var(--warning); }
.curriculum-validation-checks { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px; }
.curriculum-validation-check { display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;padding:14px;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-card); }
.curriculum-validation-check > span { width:34px;height:34px;border-radius:9px;display:grid;place-items:center;font-size:18px; }
.curriculum-validation-check.ok > span { background:var(--success-light);color:var(--success); }
.curriculum-validation-check.fail > span { background:var(--warning-light);color:var(--warning); }
.curriculum-validation-check div { display:grid;gap:2px;min-width:0; }
.curriculum-validation-check small { font-size:8px;font-weight:800;letter-spacing:.05em;color:var(--text-muted); }
.curriculum-validation-check strong { font-size:12px; }
.curriculum-validation-check p { margin:0;color:var(--text-muted);font-size:9px; }
.curriculum-validation-errors ol { display:grid;gap:8px;padding-left:0;counter-reset:validation;margin:14px 0 18px; }
.curriculum-validation-errors li { list-style:none;counter-increment:validation;display:grid;grid-template-columns:26px minmax(0,1fr);gap:9px;align-items:start;padding:9px 10px;border:1px solid var(--border-color);border-radius:9px;background:var(--bg-soft); }
.curriculum-validation-errors li::before { content:counter(validation);width:24px;height:24px;border-radius:7px;display:grid;place-items:center;background:var(--warning-light);color:var(--warning);font-size:9px;font-weight:800; }
.curriculum-validation-errors li span { font-size:11px;line-height:1.5; }

.curriculum-preview-toolbar { display:flex;justify-content:space-between;gap:18px;align-items:flex-end;margin-bottom:14px; }
.curriculum-preview-toolbar h1 { margin:2px 0 3px;font-size:22px; }
.curriculum-preview-toolbar p { margin:0;color:var(--text-muted); }
.curriculum-preview-switch { display:inline-flex;padding:4px;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-card); }
.curriculum-preview-switch a { display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border-radius:7px;text-decoration:none;color:var(--text-muted);font-size:10px;font-weight:700; }
.curriculum-preview-switch a.active { background:var(--primary);color:var(--text-light); }
.curriculum-preview-shell { border:1px solid var(--border-color);border-radius:14px;background:var(--bg-card);overflow:hidden;box-shadow:var(--shadow-sm); }
.curriculum-preview-rolebar { min-height:34px;padding:7px 14px;display:flex;justify-content:space-between;align-items:center;background:var(--bg-soft);border-bottom:1px solid var(--border-color);font-size:8px;color:var(--text-muted); }
.curriculum-preview-rolebar span { display:inline-flex;align-items:center;gap:5px;font-weight:800;letter-spacing:.06em;color:var(--primary); }
.curriculum-preview-hero { padding:20px 22px;background:linear-gradient(135deg,var(--primary-dark),var(--primary));color:var(--text-light);display:flex;justify-content:space-between;gap:14px;align-items:center; }
.curriculum-preview-hero small { opacity:.75;font-weight:700; }
.curriculum-preview-hero h2 { margin:4px 0 2px;font-size:22px; }
.curriculum-preview-hero p { margin:0;opacity:.82; }
.curriculum-preview-tabs { display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--border-color);background:var(--bg-card); }
.curriculum-preview-tabs span { padding:11px 10px;text-align:center;color:var(--text-muted);font-size:9px;font-weight:700;border-bottom:2px solid transparent; }
.curriculum-preview-tabs span.active { color:var(--primary);border-bottom-color:var(--primary);background:var(--primary-light); }
.curriculum-preview-body { display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px;padding:18px;background:var(--bg-main); }
.curriculum-preview-main { min-width:0;display:grid;gap:12px; }
.curriculum-preview-section-head { display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:16px;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-card); }
.curriculum-preview-section-head h3 { margin:3px 0 2px;font-size:18px; }
.curriculum-preview-section-head p { margin:0;color:var(--text-muted); }
.curriculum-preview-duration { display:inline-flex;align-items:center;gap:5px;padding:7px 9px;border-radius:8px;background:var(--bg-soft);border:1px solid var(--border-color);font-size:9px;color:var(--text-muted);white-space:nowrap; }
.curriculum-preview-info-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
.curriculum-preview-info-grid article,
.curriculum-preview-student-card,
.curriculum-preview-stage-card { padding:15px;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-card); }
.curriculum-preview-info-grid small,
.curriculum-preview-stage-card small,
.curriculum-preview-student-card small { color:var(--primary);font-size:8px;font-weight:800;letter-spacing:.05em; }
.curriculum-preview-info-grid strong { display:block;margin:4px 0;font-size:12px; }
.curriculum-preview-info-grid p,
.curriculum-preview-stage-card p,
.curriculum-preview-student-card p { margin:0;color:var(--text-muted);font-size:10px;line-height:1.55; }
.curriculum-preview-stage-card { display:flex;justify-content:space-between;gap:12px;align-items:flex-start; }
.curriculum-preview-stage-card > div { display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px; }
.curriculum-preview-stage-icon { width:36px;height:36px;display:grid;place-items:center;border-radius:9px;background:var(--primary-light);color:var(--primary);font-size:18px; }
.curriculum-preview-stage-card h4,
.curriculum-preview-student-card h4 { margin:3px 0 4px;font-size:14px; }
.curriculum-preview-assessment-strip { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }
.curriculum-preview-assessment-strip span { display:grid;gap:2px;padding:10px;border:1px solid var(--border-color);border-radius:9px;background:var(--bg-card); }
.curriculum-preview-assessment-strip small { color:var(--text-muted);font-size:8px; }
.curriculum-preview-assessment-strip strong { font-size:10px; }
.curriculum-preview-material-line { display:flex;align-items:center;gap:9px;margin-top:12px;padding:10px;border-radius:9px;background:var(--bg-soft); }
.curriculum-preview-material-line > i { color:var(--primary);font-size:18px; }
.curriculum-preview-material-line span { display:grid; }
.curriculum-preview-material-line strong { font-size:10px; }
.curriculum-preview-student-steps { display:grid;gap:8px; }
.curriculum-preview-student-steps article { display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;padding:11px;border:1px solid var(--border-color);border-radius:9px;background:var(--bg-card); }
.curriculum-preview-student-steps article > span { width:28px;height:28px;display:grid;place-items:center;border-radius:8px;font-weight:800;font-size:10px;background:var(--bg-muted);color:var(--text-muted); }
.curriculum-preview-student-steps article.ready > span { background:var(--success-light);color:var(--success); }
.curriculum-preview-student-steps article.missing > span { background:var(--warning-light);color:var(--warning); }
.curriculum-preview-student-steps div { display:grid;gap:1px; }
.curriculum-preview-student-steps small { color:var(--primary);font-size:8px;font-weight:800; }
.curriculum-preview-student-steps strong { font-size:10px; }
.curriculum-preview-student-steps p { margin:0;color:var(--text-muted);font-size:9px; }
.curriculum-preview-side { position:sticky;top:16px;align-self:start;padding:15px;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-card);display:grid;gap:6px; }
.curriculum-preview-side h3 { margin:2px 0 0;font-size:18px; }
.curriculum-preview-side > strong { font-size:11px; }
.curriculum-preview-side-status { display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;margin-top:8px;padding:10px;border-radius:9px;background:var(--bg-soft); }
.curriculum-preview-side-status span { width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:var(--info-light);color:var(--info); }
.curriculum-preview-side-status p { margin:0;color:var(--text-muted);font-size:9px;line-height:1.5; }
.curriculum-preview-side-action { width:100%;justify-content:center;margin-top:4px; }
.curriculum-preview-map { padding:16px 18px 18px;border-top:1px solid var(--border-color); }
.curriculum-preview-map-head { display:flex;justify-content:space-between;gap:10px;align-items:flex-end;margin-bottom:10px; }
.curriculum-preview-map-head h3 { margin:2px 0 0;font-size:15px; }
.curriculum-preview-map-head > small { color:var(--text-muted);font-size:9px; }
.curriculum-preview-hour-list { display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:7px; }
.curriculum-preview-hour-list a { display:grid;grid-template-columns:28px minmax(0,1fr) 16px;gap:8px;align-items:center;padding:9px;border:1px solid var(--border-color);border-radius:9px;text-decoration:none;background:var(--bg-soft); }
.curriculum-preview-hour-list a.active { border-color:var(--primary);background:var(--primary-light); }
.curriculum-preview-hour-list a > span { width:26px;height:26px;display:grid;place-items:center;border-radius:7px;background:var(--bg-card);font-size:9px;font-weight:800;color:var(--primary); }
.curriculum-preview-hour-list div { display:grid;min-width:0; }
.curriculum-preview-hour-list small { color:var(--text-muted);font-size:7px; }
.curriculum-preview-hour-list strong { font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.curriculum-preview-hour-list > a > i { color:var(--text-muted); }

@media (max-width:1100px) {
    .curriculum-validation-checks { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .curriculum-preview-body { grid-template-columns:1fr; }
    .curriculum-preview-side { position:static; }
}
@media (max-width:820px) {
    .curriculum-readiness-page-head,.curriculum-preview-toolbar { align-items:stretch;flex-direction:column; }
    .curriculum-readiness-filter { min-width:0;flex-wrap:wrap; }
    .curriculum-readiness-filter .form-control { min-width:0;flex:1 1 220px; }
    .curriculum-readiness-hero,.dashboard-curriculum-readiness,.curriculum-validation-hero { grid-template-columns:1fr; }
    .curriculum-readiness-score,.dashboard-curriculum-readiness-score { width:78px;height:78px; }
    .dashboard-curriculum-readiness-action { justify-items:start; }
    .dashboard-curriculum-readiness-action small { text-align:left; }
    .curriculum-readiness-split { grid-template-columns:1fr; }
    .curriculum-issue-row { grid-template-columns:34px minmax(0,1fr); }
    .curriculum-issue-row > .badge,.curriculum-issue-row > .btn { grid-column:2;justify-self:start; }
    .curriculum-preview-info-grid,.curriculum-preview-assessment-strip { grid-template-columns:1fr; }
}
@media (max-width:620px) {
    .curriculum-validation-checks { grid-template-columns:1fr; }
    .curriculum-preview-tabs { grid-template-columns:repeat(2,1fr); }
    .curriculum-preview-hero { align-items:flex-start;flex-direction:column; }
    .curriculum-preview-map-head { align-items:flex-start;flex-direction:column; }
}

/* v5.14.0 - Semester allocation foundation for reporting */
.semester-allocation-page-head,
.semester-allocation-workspace-head {
    align-items: flex-end;
    gap: 24px;
}
.semester-allocation-year-filter {
    min-width: 260px;
}
.semester-allocation-year-filter .form-group {
    margin: 0;
}
.semester-allocation-principle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
    padding: 22px 24px;
    border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
    border-radius: 14px;
    background: color-mix(in srgb, var(--primary) 5%, var(--card-bg));
}
.semester-allocation-principle-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary) 13%, transparent);
    color: var(--primary);
    font-size: 26px;
}
.semester-allocation-principle h2 {
    margin: 2px 0 6px;
    font-size: 20px;
}
.semester-allocation-principle p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}
.semester-allocation-summary {
    margin-bottom: 22px;
}
.semester-allocation-table td {
    vertical-align: middle;
}
.semester-allocation-context-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.semester-allocation-context-card {
    margin: 0;
    min-height: 148px;
}
.semester-allocation-context-card > strong {
    display: block;
    margin: 8px 0 7px;
    font-size: 24px;
    letter-spacing: -0.03em;
}
.semester-allocation-context-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}
.semester-allocation-context-card.emphasis {
    border-color: color-mix(in srgb, var(--primary) 24%, var(--border));
    background: color-mix(in srgb, var(--primary) 4%, var(--card-bg));
}
.semester-allocation-form-card {
    overflow: visible;
}
.semester-period-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.semester-period-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-soft);
}
.semester-period-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.semester-period-card-head h3 {
    margin: 1px 0 0;
    font-size: 18px;
}
.semester-period-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--primary);
    font-size: 21px;
}
.semester-period-summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.semester-period-summary span {
    color: var(--text-muted);
}
.semester-allocation-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.semester-allocation-validation-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}
.semester-allocation-validation-note i {
    color: var(--primary);
    font-size: 18px;
    margin-top: 1px;
}
.semester-objective-map-table td {
    vertical-align: middle;
}
.assignment-semester-periods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.assignment-semester-periods > div {
    display: grid;
    gap: 3px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-soft);
}
.assignment-semester-periods span,
.assignment-semester-periods small {
    color: var(--text-muted);
}
.assignment-semester-periods strong {
    font-size: 16px;
}
@media (max-width: 1100px) {
    .semester-allocation-context-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 860px) {
    .semester-allocation-page-head,
    .semester-allocation-workspace-head {
        align-items: stretch;
    }
    .semester-allocation-year-filter {
        min-width: 0;
        width: 100%;
    }
    .semester-period-grid,
    .assignment-semester-periods {
        grid-template-columns: 1fr;
    }
    .semester-allocation-form-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .semester-allocation-form-actions .btn {
        width: 100%;
    }
}
@media (max-width: 560px) {
    .semester-allocation-principle {
        grid-template-columns: 1fr;
        padding: 18px;
    }
    .semester-period-card {
        padding: 16px;
    }
}

/* ========================================================================== */
/* Learning reports — ver-dev 5.15.0                                          */
/* ========================================================================== */
.learning-report-page-head,
.learning-report-detail-head,
.learning-report-enduser-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}
.learning-report-filter {
    display: flex;
    align-items: end;
    gap: 14px;
    padding: 16px;
    margin-bottom: 18px;
}
.learning-report-filter--enduser { margin-bottom: 22px; }
.learning-report-filter__field {
    display: grid;
    gap: 6px;
    min-width: 190px;
}
.learning-report-filter__field label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}
.learning-report-summary-grid { margin-bottom: 20px; }
.learning-report-summary-grid .summary-info span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
}
.learning-report-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.learning-report-card-head h2 {
    margin: 0;
    font-size: 17px;
    letter-spacing: -.02em;
}
.learning-report-card-head p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 13px;
}
.learning-report-table-card { overflow: hidden; }
.learning-report-table th { white-space: nowrap; }
.learning-report-table td { vertical-align: middle; }
.learning-report-table td strong { display: block; }
.learning-report-table .table-empty {
    padding: 34px 18px;
    text-align: center;
    color: var(--text-muted);
}
.learning-report-table .table-actions { text-align: right; }
.learning-report-path-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.learning-report-path-card {
    display: grid;
    gap: 18px;
    padding: 20px;
}
.learning-report-path-card__head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
}
.learning-report-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
}
.learning-report-icon i { font-size: 22px; }
.learning-report-path-card__head small,
.learning-report-path-card__head p {
    color: var(--text-muted);
}
.learning-report-path-card__head h2 {
    margin: 2px 0;
    font-size: 18px;
    letter-spacing: -.025em;
}
.learning-report-path-card__head p { margin: 0; font-size: 13px; }
.learning-report-path-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.learning-report-path-metrics > span {
    display: grid;
    gap: 2px;
    padding: 11px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-soft);
}
.learning-report-path-metrics small { color: var(--text-muted); font-size: 11px; }
.learning-report-path-metrics strong { font-size: 15px; }
.learning-report-unavailable {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-soft);
    color: var(--text-muted);
    font-size: 13px;
}
.learning-report-unavailable i { margin-top: 1px; color: var(--warning); font-size: 18px; }
.learning-report-semester-switch {
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
}
.learning-report-semester-switch a {
    padding: 8px 13px;
    border-radius: 7px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.learning-report-semester-switch a.active {
    background: var(--primary-light);
    color: var(--primary);
}
.learning-report-student-state {
    display: grid;
    gap: 2px;
    padding: 11px 13px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-soft);
}
.learning-report-student-state > span,
.learning-report-student-state > small { color: var(--text-muted); font-size: 11px; }
.learning-report-student-state.is-good { background: var(--success-light); }
.learning-report-student-state.is-attention { background: var(--warning-light); }
.learning-report-student-state.is-current { background: var(--primary-light); }
.learning-report-student-state.is-muted { background: var(--bg-muted); }
.learning-report-progress-line,
.learning-report-mini-progress {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--bg-muted);
}
.learning-report-progress-line i,
.learning-report-mini-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
}
.learning-report-mini-progress { width: 120px; height: 6px; }
.learning-report-detail-head {
    margin-bottom: 20px;
}
.learning-report-detail-head h1 {
    margin: 6px 0 4px;
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: -.035em;
}
.learning-report-detail-head p { margin: 0; color: var(--text-muted); }
.learning-report-period-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 170px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 11px;
    background: var(--bg-card);
}
.learning-report-period-chip i { color: var(--primary); font-size: 22px; }
.learning-report-period-chip span { display: grid; font-weight: 700; }
.learning-report-period-chip small { color: var(--text-muted); font-size: 11px; font-weight: 500; }
.learning-report-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}
.learning-report-side-stack {
    position: sticky;
    top: calc(var(--navbar-height) + 18px);
}
.learning-report-status-card { padding: 18px; }
.learning-report-status-card h2 { margin: 5px 0 12px; font-size: 18px; }
.learning-report-state-list {
    list-style: none;
    display: grid;
    gap: 0;
    margin: 14px 0 0;
    padding: 0;
}
.learning-report-state-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
}
.learning-report-state-list li:last-child { border-bottom: 0; }
.learning-report-state-list strong { color: var(--text-main); }
.learning-report-tp-card { margin-top: 18px; }
.learning-report-student-head .learning-report-student-state { min-width: 210px; }
.learning-report-notes-card { margin-top: 18px; }
.learning-report-notes-grid {
    display: grid;
    gap: 12px;
    padding: 0 18px 18px;
}
.learning-report-note-item {
    display: grid;
    gap: 10px;
    padding: 15px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-soft);
}
.learning-report-note-item > div { display: grid; gap: 2px; }
.learning-report-note-item span,
.learning-report-note-item small,
.learning-report-note-item time { color: var(--text-muted); font-size: 11px; }
.learning-report-note-item p { margin: 0; line-height: 1.65; }
.learning-report-note-item time { justify-self: end; }
.learning-report-empty-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 110px;
    color: var(--text-muted);
}
.learning-report-empty-note i { font-size: 20px; }

@media (max-width: 1100px) {
    .learning-report-two-column { grid-template-columns: 1fr; }
    .learning-report-side-stack { position: static; }
}
@media (max-width: 900px) {
    .learning-report-page-head,
    .learning-report-detail-head,
    .learning-report-enduser-head { flex-direction: column; align-items: stretch; }
    .learning-report-path-grid { grid-template-columns: 1fr; }
    .learning-report-filter { flex-wrap: wrap; align-items: stretch; }
    .learning-report-filter__field { min-width: min(100%, 220px); flex: 1 1 180px; }
}
@media (max-width: 640px) {
    .learning-report-path-metrics { grid-template-columns: 1fr; }
    .learning-report-filter .btn { width: 100%; }
    .learning-report-semester-switch { width: 100%; }
    .learning-report-semester-switch a { flex: 1; text-align: center; }
    .learning-report-period-chip,
    .learning-report-student-head .learning-report-student-state { min-width: 0; width: 100%; }
}

/* ========================================================================== */
/* Teacher performance reporting — ver-dev 5.16.0                            */
/* ========================================================================== */
.learning-report-section-tabs {
    display: inline-flex;
    gap: 5px;
    margin: 0 0 18px;
    padding: 4px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
}
.learning-report-section-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.learning-report-section-tab:hover { color: var(--text-main); background: var(--bg-soft); }
.learning-report-section-tab.active { color: var(--primary); background: var(--primary-light); }
.learning-report-section-tab i { font-size: 17px; }

.teaching-performance-summary-grid { margin-bottom: 18px; }
.teaching-performance-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 15px 17px;
}
.teaching-performance-note > i { flex: 0 0 auto; margin-top: 1px; color: var(--primary); font-size: 21px; }
.teaching-performance-note strong { display: block; margin-bottom: 3px; }
.teaching-performance-note p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.teaching-performance-note--enduser { margin-top: 18px; }
.teaching-performance-table td { vertical-align: middle; }

.teaching-performance-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.teaching-performance-hero-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
    padding: 16px;
}
.teaching-performance-hero-icon,
.teaching-performance-mini-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--primary-light);
    color: var(--primary);
}
.teaching-performance-hero-icon i,
.teaching-performance-mini-icon i { font-size: 20px; }
.teaching-performance-hero-card > div { min-width: 0; display: grid; gap: 2px; }
.teaching-performance-hero-card small { color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: .055em; }
.teaching-performance-hero-card strong { font-size: 22px; letter-spacing: -.035em; }
.teaching-performance-hero-card span { color: var(--text-muted); font-size: 12px; line-height: 1.45; }

.teaching-performance-path-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}
.teaching-performance-path-card { display: grid; gap: 15px; padding: 19px; }
.teaching-performance-path-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.teaching-performance-path-card__head > div { min-width: 0; }
.teaching-performance-path-card__head small,
.teaching-performance-path-card__head p { color: var(--text-muted); }
.teaching-performance-path-card__head h2 { margin: 3px 0; font-size: 18px; letter-spacing: -.025em; }
.teaching-performance-path-card__head p { margin: 0; font-size: 12px; }
.teaching-performance-percent { display: grid; flex: 0 0 auto; text-align: right; }
.teaching-performance-percent strong { font-size: 20px; letter-spacing: -.03em; }
.teaching-performance-percent small { color: var(--text-muted); font-size: 10px; }
.teaching-performance-progress {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--bg-muted);
}
.teaching-performance-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
}
.teaching-performance-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.teaching-performance-metric-grid > span {
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    background: var(--bg-soft);
}
.teaching-performance-metric-grid small { color: var(--text-muted); font-size: 10px; }
.teaching-performance-metric-grid strong { font-size: 14px; }
.teaching-performance-card-flags,
.teaching-performance-inline-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.teaching-performance-flag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
}
.teaching-performance-flag.warning { background: var(--warning-light); color: var(--warning); }
.teaching-performance-flag.success { background: var(--success-light); color: var(--success); }

.teaching-performance-detail-head { margin-bottom: 18px; }
.teaching-performance-detail-grid,
.teaching-performance-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.teaching-performance-detail-card { padding: 18px; }
.teaching-performance-detail-card__head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
}
.teaching-performance-detail-card__head > span {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
}
.teaching-performance-detail-card__head > span i { font-size: 20px; }
.teaching-performance-detail-card__head > div { min-width: 0; flex: 1; }
.teaching-performance-detail-card__head small { color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: .055em; }
.teaching-performance-detail-card__head h2 { margin: 2px 0 0; font-size: 21px; letter-spacing: -.03em; }
.teaching-performance-detail-card__head > strong { font-size: 22px; }
.teaching-performance-detail-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}
.teaching-performance-detail-facts--four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.teaching-performance-detail-facts > span {
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    background: var(--bg-soft);
}
.teaching-performance-detail-facts small { color: var(--text-muted); font-size: 10px; }
.teaching-performance-detail-facts strong { font-size: 15px; }
.teaching-performance-inline-statuses { margin-top: 12px; }

.teaching-performance-three-column {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.teaching-performance-mini-card { display: flex; gap: 12px; padding: 17px; }
.teaching-performance-mini-card > div { min-width: 0; display: grid; gap: 3px; }
.teaching-performance-mini-card small { color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.teaching-performance-mini-card strong { font-size: 23px; letter-spacing: -.035em; }
.teaching-performance-mini-card p { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }

.teaching-performance-section { margin-bottom: 16px; padding: 18px; }
.teaching-performance-section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.teaching-performance-section__head h2 { margin: 3px 0; font-size: 18px; letter-spacing: -.025em; }
.teaching-performance-section__head p { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.teaching-performance-assessment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.teaching-performance-assessment-grid > div {
    display: grid;
    gap: 3px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-soft);
}
.teaching-performance-assessment-grid small { color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.teaching-performance-assessment-grid strong { font-size: 22px; letter-spacing: -.03em; }
.teaching-performance-assessment-grid span { color: var(--text-muted); font-size: 11px; }
.teaching-performance-assessment-grid b { margin-top: 4px; font-size: 12px; }

.teaching-performance-attention-list { display: grid; }
.teaching-performance-attention-list > div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-color);
}
.teaching-performance-attention-list > div:last-child { border-bottom: 0; }
.teaching-performance-attention-list > div > div { min-width: 0; display: grid; gap: 1px; }
.teaching-performance-attention-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.teaching-performance-attention-list small { color: var(--text-muted); font-size: 11px; }
.teaching-performance-attention-list b { font-size: 12px; }
.teaching-performance-avatar {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}
.teaching-performance-empty-small {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    text-align: center;
    font-size: 12px;
}
.teaching-performance-empty-small i { color: var(--success); font-size: 20px; }
.teaching-performance-session-table td { font-size: 12px; }
.teaching-performance-history-note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 9px;
    background: var(--warning-light);
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.5;
}
.teaching-performance-history-note i { margin-top: 1px; color: var(--warning); font-size: 17px; }

.teaching-performance-followup-form {
    display: grid;
    grid-template-columns: minmax(160px, .34fr) minmax(280px, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid var(--border-color);
    border-radius: 11px;
    background: var(--bg-soft);
}
.teaching-performance-followup-form > div { display: grid; gap: 6px; }
.teaching-performance-followup-form label { font-size: 11px; font-weight: 700; }
.teaching-performance-followup-form__note textarea { resize: vertical; min-height: 76px; }
.teaching-performance-followup-list { display: grid; gap: 9px; }
.teaching-performance-followup-list article {
    display: grid;
    gap: 9px;
    padding: 13px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-soft);
}
.teaching-performance-followup-list__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.teaching-performance-followup-list__meta small { color: var(--text-muted); font-size: 10px; }
.teaching-performance-followup-list p { margin: 0; line-height: 1.6; font-size: 13px; }
.teaching-performance-followup-list form { justify-self: end; }

@media (max-width: 1180px) {
    .teaching-performance-hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .teaching-performance-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .teaching-performance-detail-facts--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .learning-report-section-tabs { display: flex; width: 100%; overflow-x: auto; }
    .learning-report-section-tab { flex: 1 0 max-content; justify-content: center; }
    .teaching-performance-path-grid,
    .teaching-performance-detail-grid,
    .teaching-performance-two-column,
    .teaching-performance-three-column { grid-template-columns: 1fr; }
    .teaching-performance-followup-form { grid-template-columns: 1fr; align-items: stretch; }
    .teaching-performance-followup-form .btn { width: 100%; }
}
@media (max-width: 640px) {
    .teaching-performance-hero-grid { grid-template-columns: 1fr; }
    .teaching-performance-path-card__head { flex-direction: column; }
    .teaching-performance-percent { text-align: left; }
    .teaching-performance-metric-grid,
    .teaching-performance-detail-facts,
    .teaching-performance-detail-facts--four,
    .teaching-performance-assessment-grid { grid-template-columns: 1fr; }
    .teaching-performance-section__head { flex-direction: column; }
    .teaching-performance-followup-list__meta { align-items: flex-start; flex-direction: column; }
}

/* ========================================================================== 
   Curriculum monitoring dashboard — ver-dev 5.17.0
   ========================================================================== */
.curriculum-monitoring-page-head { margin-bottom: 14px; }
.curriculum-monitoring-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.curriculum-monitoring-meta-grid,
.curriculum-monitoring-attention-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: 16px;
    margin: 16px 0;
}
.curriculum-monitoring-attention-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.curriculum-monitoring-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.curriculum-monitoring-card-head h2 { margin: 2px 0 4px; font-size: 17px; }
.curriculum-monitoring-card-head p { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.curriculum-monitoring-pulse-card,
.curriculum-monitoring-attention-card { min-width: 0; }
.curriculum-monitoring-pulse-list { display: grid; gap: 14px; padding: 4px 20px 18px; }
.curriculum-monitoring-pulse-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 14px;
    align-items: end;
}
.curriculum-monitoring-pulse-row > div:first-child { display: grid; gap: 2px; }
.curriculum-monitoring-pulse-row strong { color: var(--text-main); font-size: 12px; }
.curriculum-monitoring-pulse-row span { color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.curriculum-monitoring-pulse-value { color: var(--text-main); font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.curriculum-monitoring-progress {
    grid-column: 1 / -1;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--bg-muted);
}
.curriculum-monitoring-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
}
.curriculum-monitoring-quick-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-soft);
}
.curriculum-monitoring-quick-facts span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 650;
}
.curriculum-monitoring-quick-facts i { color: var(--primary); font-size: 14px; }
.curriculum-monitoring-attention-list { display: grid; padding: 0 16px 14px; }
.curriculum-monitoring-attention-item {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border-color);
}
.curriculum-monitoring-attention-item:last-child { border-bottom: 0; }
.curriculum-monitoring-attention-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-subtle);
}
.curriculum-monitoring-attention-item.is-high .curriculum-monitoring-attention-dot { background: var(--danger); }
.curriculum-monitoring-attention-item.is-medium .curriculum-monitoring-attention-dot { background: var(--warning); }
.curriculum-monitoring-attention-copy { min-width: 0; }
.curriculum-monitoring-attention-copy strong { display: block; color: var(--text-main); font-size: 11px; }
.curriculum-monitoring-attention-copy span { display: block; margin-top: 2px; color: var(--text-muted); font-size: 10px; font-weight: 650; }
.curriculum-monitoring-attention-copy p { margin: 4px 0 0; color: var(--text-muted); font-size: 10px; line-height: 1.5; }
.curriculum-monitoring-card-foot {
    padding: 10px 18px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 10px;
}
.curriculum-monitoring-empty-state {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 18px 8px;
}
.curriculum-monitoring-empty-state i { color: var(--success); font-size: 24px; }
.curriculum-monitoring-empty-state div { display: grid; gap: 2px; }
.curriculum-monitoring-empty-state strong { color: var(--text-main); font-size: 12px; }
.curriculum-monitoring-empty-state span { color: var(--text-muted); font-size: 10px; }
.curriculum-monitoring-table th,
.curriculum-monitoring-compact-table th { white-space: nowrap; }
.curriculum-monitoring-table td,
.curriculum-monitoring-compact-table td { vertical-align: middle; }
.curriculum-monitoring-compact-table td { padding-top: 10px; padding-bottom: 10px; }

@media (max-width: 1180px) {
    .curriculum-monitoring-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .curriculum-monitoring-meta-grid,
    .curriculum-monitoring-attention-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .curriculum-monitoring-summary-grid { grid-template-columns: 1fr; }
    .curriculum-monitoring-card-head { flex-direction: column; align-items: stretch; }
    .curriculum-monitoring-card-head .btn { width: 100%; }
    .curriculum-monitoring-attention-item { grid-template-columns: 10px minmax(0, 1fr); }
    .curriculum-monitoring-attention-item .btn { grid-column: 2; width: 100%; }
    .curriculum-monitoring-pulse-list { padding-inline: 14px; }
    .curriculum-monitoring-quick-facts { padding-inline: 14px; }
}

/* ver-dev 5.18.0 — Profil Kemampuan + Rapor Semester */
.ability-dimension-page-head,.semester-report-page-head{align-items:flex-start;gap:24px}
.ability-dimension-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:20px}
.ability-dimension-card{display:flex;flex-direction:column;gap:16px;padding:22px}.ability-dimension-card.is-inactive{opacity:.7}
.ability-dimension-card__head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.ability-dimension-card__head>div{display:flex;gap:12px;align-items:center}.ability-dimension-card__head h2{margin:0;font-size:1.08rem}
.ability-dimension-order{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--primary-soft);color:var(--primary);font-weight:800}
.ability-dimension-card>p{margin:0;color:var(--text-muted);line-height:1.65;min-height:52px}.ability-dimension-meta{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.ability-dimension-meta span{padding:12px 14px;border:1px solid var(--border-color);border-radius:12px;background:var(--surface-subtle)}.ability-dimension-meta small{display:block;color:var(--text-muted);font-size:.75rem}.ability-dimension-meta strong{display:block;margin-top:4px;font-size:1rem}.ability-dimension-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:auto}.ability-dimension-actions form{margin:0}
.ability-dimension-add-card{margin-top:18px}.ability-dimension-form-grid{display:grid;grid-template-columns:2fr 1fr 140px;gap:16px;padding:20px}.ability-dimension-form-grid__wide{grid-column:1/-1}.ability-dimension-form-grid textarea{resize:vertical}.ability-weight-status{min-width:230px;padding:15px 18px;border-radius:14px;border:1px solid var(--border-color);background:var(--surface-card);display:flex;flex-direction:column;gap:3px}.ability-weight-status span,.ability-weight-status small{color:var(--text-muted);font-size:.78rem}.ability-weight-status strong{font-size:1.55rem}.ability-weight-status.is-ready{border-color:rgba(34,197,94,.35)}.ability-weight-status.is-draft{border-color:rgba(245,158,11,.35)}
.ability-mapping-guide{display:flex;gap:14px;align-items:flex-start;padding:18px 20px;margin-bottom:18px}.ability-mapping-guide>div:first-child{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--primary-soft);color:var(--primary);font-size:1.2rem}.ability-mapping-guide p{margin:4px 0 0;color:var(--text-muted)}.ability-mapping-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.ability-mapping-table td{vertical-align:top}.ability-mapping-form-card{margin-top:18px}.ability-objective-filter{padding:18px 20px 0;max-width:560px}.ability-objective-filter .form-group{margin:0}
.semester-report-entry-card{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:0 0 20px;padding:20px 22px}.semester-report-entry-card h2{font-size:1.05rem;margin:4px 0 6px}.semester-report-entry-card p{margin:0;color:var(--text-muted)}
.semester-dimension-readiness{margin-bottom:18px}.semester-dimension-chip-row{display:flex;flex-wrap:wrap;gap:10px;padding:18px 20px}.semester-dimension-chip{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--border-color);border-radius:12px;background:var(--surface-subtle);font-weight:700}.semester-dimension-chip small{font-weight:500;color:var(--text-muted)}.semester-dimension-chip.is-ready i{color:#16a34a}.semester-dimension-chip.is-pending i{color:#d97706}
.semester-report-status{min-width:210px;padding:14px 18px;border:1px solid var(--border-color);border-radius:14px;background:var(--surface-card);display:flex;flex-direction:column;gap:2px}.semester-report-status span,.semester-report-status small{color:var(--text-muted);font-size:.78rem}.semester-report-status strong{font-size:1.1rem;letter-spacing:.04em}.semester-report-status.is-final{border-color:rgba(34,197,94,.35)}.semester-report-status.is-draft{border-color:rgba(59,130,246,.3)}.semester-report-toolbar{justify-content:flex-end;margin:-4px 0 18px}.semester-report-toolbar form{margin:0}.semester-report-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px}
.semester-ability-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding:18px 20px}.semester-ability-card{border:1px solid var(--border-color);border-radius:14px;background:var(--surface-subtle);padding:15px;display:flex;flex-direction:column;gap:7px;min-width:0}.semester-ability-card>span{font-size:.8rem;color:var(--text-muted);font-weight:700;line-height:1.35}.semester-ability-card>strong{font-size:1.65rem}.semester-ability-card>small{color:var(--text-muted);min-height:32px}.semester-ability-card.is-empty{opacity:.72}.semester-ability-bar{height:6px;border-radius:999px;background:var(--border-color);overflow:hidden}.semester-ability-bar i{display:block;height:100%;background:var(--primary);border-radius:inherit}.semester-ability-card footer{display:flex;justify-content:space-between;gap:8px;margin-top:4px;color:var(--text-muted);font-size:.72rem}.semester-ability-grid--student{grid-template-columns:repeat(5,minmax(0,1fr))}.semester-report-student-table td{vertical-align:middle}
.semester-ability-profile-card,.semester-ability-evidence-card{margin-top:18px}.semester-ability-source{border-top:1px solid var(--border-color)}.semester-ability-source:first-of-type{border-top:0}.semester-ability-source summary{list-style:none;cursor:pointer;padding:16px 20px;display:flex;justify-content:space-between;align-items:center;gap:20px}.semester-ability-source summary::-webkit-details-marker{display:none}.semester-ability-source summary div{display:flex;flex-direction:column;gap:3px}.semester-ability-source summary span,.semester-ability-source summary small{color:var(--text-muted)}.semester-ability-source-empty{padding:0 20px 18px;color:var(--text-muted)}.semester-report-footnote{margin:18px 0;padding:16px 18px;border-radius:12px;background:var(--surface-subtle);border:1px solid var(--border-color)}.semester-report-footnote p{margin:5px 0 0;color:var(--text-muted);line-height:1.6}
.semester-student-period-filter{display:grid;grid-template-columns:1fr 1fr auto;gap:14px;align-items:end;padding:18px 20px;margin-bottom:18px}.semester-student-period-filter .form-group{margin:0}.semester-student-summary-panel{padding:22px}.semester-student-summary-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.semester-student-summary-head span{color:var(--text-muted);font-size:.82rem}.semester-student-summary-head h2{margin:4px 0 0}.semester-student-summary-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.semester-student-summary-metrics span{border:1px solid var(--border-color);background:var(--surface-subtle);border-radius:12px;padding:12px}.semester-student-summary-metrics small{display:block;color:var(--text-muted)}.semester-student-summary-metrics strong{display:block;font-size:1.15rem;margin-top:4px}.semester-student-dimension-preview{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-bottom:18px}.semester-student-dimension-preview>div{padding:11px;border:1px solid var(--border-color);border-radius:11px}.semester-student-dimension-preview span,.semester-student-dimension-preview small{display:block;color:var(--text-muted);font-size:.72rem}.semester-student-dimension-preview strong{display:block;font-size:1.05rem;margin:3px 0}
@media (max-width:1200px){.semester-ability-grid,.semester-ability-grid--student{grid-template-columns:repeat(3,minmax(0,1fr))}.ability-dimension-grid{grid-template-columns:1fr}.semester-student-dimension-preview{grid-template-columns:repeat(3,1fr)}}
@media (max-width:900px){.semester-report-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ability-dimension-form-grid{grid-template-columns:1fr}.ability-dimension-form-grid__wide{grid-column:auto}.semester-student-period-filter{grid-template-columns:1fr}.semester-student-summary-metrics{grid-template-columns:repeat(2,1fr)}.semester-report-entry-card{align-items:flex-start;flex-direction:column}.semester-ability-grid,.semester-ability-grid--student{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.semester-report-summary-grid,.semester-ability-grid,.semester-ability-grid--student,.semester-student-summary-metrics,.semester-student-dimension-preview{grid-template-columns:1fr}.semester-report-status,.ability-weight-status{width:100%;min-width:0}.semester-ability-source summary{align-items:flex-start;flex-direction:column}.semester-report-toolbar{justify-content:stretch}.semester-report-toolbar .btn,.semester-report-toolbar form,.semester-report-toolbar form .btn{width:100%}}
@media print{.no-print,.sidebar,.navbar,.footer,.toast-container{display:none!important}.main-content,.end-user-main-content{padding:0!important;margin:0!important;width:100%!important}.semester-student-report{font-size:10.5pt}.semester-student-report .card,.semester-student-report .summary-card{box-shadow:none!important;break-inside:avoid}.semester-student-report .semester-ability-grid{grid-template-columns:repeat(5,1fr)}.semester-student-report .semester-report-page-head{margin-bottom:12px}.semester-student-report .table{font-size:9pt}.semester-student-report details{display:block}.semester-student-report details>div,.semester-student-report details table{display:block}}

/* ========================================================================== */
/* Semester allocation continuity — ver-dev 5.18.1                           */
/* ========================================================================== */
.semester-planning-mode {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin: -4px 0 18px;
    padding: 15px 18px;
    border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--border));
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary) 6%, var(--card-bg));
}
.semester-planning-mode > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
    font-size: 20px;
}
.semester-planning-mode strong { display: block; margin-bottom: 2px; color: var(--text-main); }
.semester-planning-mode p { margin: 0; color: var(--text-muted); line-height: 1.55; font-size: 12px; }
.semester-continuity-card { margin-bottom: 18px; overflow: visible; }
.semester-continuity-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    gap: 18px;
    align-items: stretch;
}
.semester-continuity-select-wrap { margin: 0; }
.semester-continuity-select-wrap .form-hint { display: block; margin-top: 7px; color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.semester-continuity-suggestion {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    min-height: 126px;
    padding: 16px 18px;
    border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border));
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary) 4%, var(--bg-soft));
}
.semester-continuity-suggestion > strong { font-size: 17px; letter-spacing: -.02em; }
.semester-continuity-suggestion > p { margin: 0 0 4px; color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.semester-distribution-card { margin-top: 18px; }
.semester-distribution-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.semester-distribution-summary > div {
    display: grid;
    gap: 4px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-soft);
}
.semester-distribution-summary small { color: var(--text-muted); font-size: 10px; font-weight: 650; }
.semester-distribution-summary strong { color: var(--text-main); font-size: 17px; }
.semester-distribution-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--bg-soft);
}
.semester-distribution-alert > i { margin-top: 1px; font-size: 21px; color: var(--primary); }
.semester-distribution-alert strong { display: block; margin-bottom: 3px; }
.semester-distribution-alert p { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.semester-distribution-alert.is-warning { border-color: color-mix(in srgb, var(--warning) 36%, var(--border)); background: color-mix(in srgb, var(--warning) 6%, var(--card-bg)); }
.semester-distribution-alert.is-warning > i { color: var(--warning); }
.semester-distribution-alert.is-danger { border-color: color-mix(in srgb, var(--danger) 34%, var(--border)); background: color-mix(in srgb, var(--danger) 5%, var(--card-bg)); }
.semester-distribution-alert.is-danger > i { color: var(--danger); }
.semester-distribution-alert.is-success { border-color: color-mix(in srgb, var(--success) 34%, var(--border)); background: color-mix(in srgb, var(--success) 5%, var(--card-bg)); }
.semester-distribution-alert.is-success > i { color: var(--success); }
.semester-distribution-alert.is-info { border-color: color-mix(in srgb, var(--primary) 28%, var(--border)); background: color-mix(in srgb, var(--primary) 5%, var(--card-bg)); }
.semester-distribution-table td { vertical-align: middle; }
.semester-distribution-table tr.is-current td { background: color-mix(in srgb, var(--primary) 4%, var(--card-bg)); }
@media (max-width: 980px) {
    .semester-continuity-grid { grid-template-columns: 1fr; }
    .semester-distribution-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .semester-planning-mode { grid-template-columns: 1fr; }
    .semester-distribution-summary { grid-template-columns: 1fr; }
    .semester-continuity-suggestion .btn { width: 100%; }
}
