:root {
    --bg: #f4f7f7;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-tint: #f0fdfa;
    --text: #102a2a;
    --muted: #64748b;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --primary: #0f766e;
    --primary-dark: #115e59;
    --primary-soft: #ccfbf1;
    --accent: #f59e0b;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --warning: #d97706;
    --warning-soft: #fef3c7;
    --success: #15803d;
    --success-soft: #dcfce7;
    --info: #2563eb;
    --info-soft: #dbeafe;
    --sidebar: #0b2f2e;
    --sidebar-soft: #123d3b;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow: 0 10px 30px rgba(15, 23, 42, .07);
    --radius: 14px;
    --radius-sm: 9px;
    --sidebar-width: 270px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
svg { flex: 0 0 auto; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    color: #d9eeec;
    background: var(--sidebar);
    z-index: 50;
}
.brand {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-link { min-width: 0; display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.brand-mark img { width: 100%; height: 100%; display: block; }
.brand-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { color: #fff; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-copy small { color: #91c5c0; margin-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.sidebar-close { display: none !important; color: #fff !important; font-size: 24px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 20px 14px; scrollbar-width: thin; }
.nav-label { padding: 0 12px 8px; color: #6fa8a3; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.nav-label-spaced { margin-top: 22px; }
.nav-item {
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    margin: 2px 0;
    color: #b8d6d3;
    border-radius: 10px;
    font-weight: 600;
    transition: .18s ease;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.active { color: #fff; background: var(--sidebar-soft); box-shadow: inset 3px 0 0 #5eead4; }
.sidebar-footer { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px; background: rgba(255,255,255,.055); border-radius: 12px; }
.sidebar-user-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.sidebar-user-copy strong { color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-copy small { color: #91c5c0; margin-top: 3px; font-size: 11px; }
.sidebar-user .icon-btn { color: #9bc8c3; }
.sidebar-overlay { display: none; }

.main-area { min-height: 100vh; margin-left: var(--sidebar-width); display: flex; flex-direction: column; }
.topbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 30px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(12px);
}
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar h1 { margin: 0; color: #0f2928; font-size: 21px; line-height: 1.2; letter-spacing: -.025em; }
.eyebrow { margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.mobile-menu { display: none !important; }
.notification-button { position: relative; }
.notification-dot { position: absolute; top: -4px; right: -3px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; color: #fff; background: var(--danger); border: 2px solid #fff; border-radius: 99px; font-size: 9px; font-weight: 800; }
.content-wrap { flex: 1; width: 100%; max-width: 1580px; margin: 0 auto; padding: 28px 30px 40px; }
.footer { display: flex; justify-content: space-between; gap: 16px; padding: 20px 30px; color: var(--muted); border-top: 1px solid var(--border); font-size: 12px; }

.icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: .18s ease;
}
.icon-btn:hover { color: var(--primary); background: var(--surface-tint); }

.btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 15px;
    color: #fff;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: .18s ease;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 35px; padding: 7px 11px; font-size: 12px; border-radius: 9px; }
.btn-lg { min-height: 48px; padding: 12px 20px; }
.btn-block { width: 100%; }
.btn-secondary { color: var(--primary); background: var(--primary-soft); border-color: transparent; }
.btn-secondary:hover { color: #fff; background: var(--primary); }
.btn-ghost { color: #334155; background: #fff; border-color: var(--border); }
.btn-ghost:hover { color: var(--primary); background: var(--surface-tint); border-color: #99f6e4; }
.btn-danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.btn-link { min-height: auto; padding: 0; color: var(--primary); background: transparent; border: 0; }
.btn-link:hover { color: var(--primary-dark); background: transparent; transform: none; }

.alert { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; padding: 13px 15px; border: 1px solid; border-radius: 11px; transition: .25s ease; }
.alert-hide { opacity: 0; transform: translateY(-5px); }
.alert-success { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.alert-warning { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.alert-danger, .alert-error { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
.alert-info { color: #1e40af; background: #eff6ff; border-color: #bfdbfe; }
.alert-close { color: inherit; background: none; border: 0; font-size: 20px; cursor: pointer; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 19px; border-bottom: 1px solid var(--border); }
.card-header h2, .card-header h3 { margin: 0; color: #163534; font-size: 15px; letter-spacing: -.015em; }
.card-header p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; background: var(--surface-soft); border-top: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
.card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout-main-aside { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .7fr); gap: 22px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }

.page-actions { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; }
.page-actions-copy h2 { margin: 0; font-size: 17px; }
.page-actions-copy p { margin: 4px 0 0; color: var(--muted); }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 22px; }
.stat-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 15px; min-height: 118px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -35px; bottom: -40px; background: var(--primary-soft); border-radius: 50%; opacity: .65; }
.stat-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--primary); background: var(--surface-tint); border: 1px solid #ccfbf1; border-radius: 13px; }
.stat-copy { min-width: 0; position: relative; z-index: 1; }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 650; }
.stat-value { margin-top: 3px; color: #0f2928; font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -.04em; }
.stat-meta { margin-top: 6px; color: var(--muted); font-size: 11px; }

.welcome-card { overflow: hidden; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 190px; margin-bottom: 22px; padding: 30px; color: #eafffc; background: linear-gradient(110deg, #0b4f4b, #0f766e); border-radius: 18px; box-shadow: 0 18px 45px rgba(15,118,110,.2); }
.welcome-card::before { content: ""; position: absolute; width: 320px; height: 320px; right: -100px; top: -160px; border: 55px solid rgba(255,255,255,.07); border-radius: 50%; }
.welcome-copy { position: relative; z-index: 1; max-width: 720px; }
.welcome-label { margin-bottom: 8px; color: #99f6e4; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.welcome-card h2 { margin: 0; color: #fff; font-size: 27px; letter-spacing: -.035em; }
.welcome-card p { margin: 10px 0 0; max-width: 620px; color: #c9efeb; }
.welcome-actions { position: relative; z-index: 1; display: flex; gap: 9px; flex-wrap: wrap; }
.welcome-card .btn-ghost { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.welcome-card .btn-ghost:hover { background: rgba(255,255,255,.18); }

.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 3px 9px; border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: .015em; white-space: nowrap; }
.badge-success { color: var(--success); background: var(--success-soft); }
.badge-warning { color: var(--warning); background: var(--warning-soft); }
.badge-danger { color: var(--danger); background: var(--danger-soft); }
.badge-info { color: var(--info); background: var(--info-soft); }
.badge-muted { color: #475569; background: #e2e8f0; }
.badge-primary { color: var(--primary-dark); background: var(--primary-soft); }

.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 680px; }
.table th { padding: 11px 14px; color: #64748b; background: var(--surface-soft); border-bottom: 1px solid var(--border); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfefd; }
.table-actions { display: flex; align-items: center; gap: 5px; justify-content: flex-end; }
.table-user { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.table-user-copy { display: flex; flex-direction: column; min-width: 0; }
.table-user-copy strong { color: #163534; }
.table-user-copy small { color: var(--muted); }

.avatar { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; }
.avatar-sm { width: 31px; height: 31px; }
.avatar-lg { width: 74px; height: 74px; }
.avatar-text { display: inline-grid; place-items: center; color: #eafffc; background: #197d75; font-size: 12px; font-weight: 800; }
.avatar-lg.avatar-text { font-size: 22px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-group { min-width: 0; }
.form-group-full { grid-column: 1 / -1; }
.form-label { display: block; margin-bottom: 6px; color: #334155; font-size: 12px; font-weight: 700; }
.form-control, .form-select, .form-textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    outline: none;
    transition: .18s ease;
}
.form-textarea { min-height: 115px; resize: vertical; }
.form-control:focus, .form-select:focus, .form-textarea:focus { border-color: #2dd4bf; box-shadow: 0 0 0 3px rgba(45,212,191,.13); }
.form-control::placeholder, .form-textarea::placeholder { color: #94a3b8; }
.form-hint { margin-top: 5px; color: var(--muted); font-size: 11px; }
.form-check { display: flex; align-items: flex-start; gap: 8px; }
.form-check input { margin-top: 4px; accent-color: var(--primary); }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.input-group { display: flex; }
.input-group .form-control { border-radius: 9px 0 0 9px; }
.input-group .btn { border-radius: 0 9px 9px 0; }
.search-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search-box { position: relative; min-width: 250px; }
.search-box svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.search-box .form-control { padding-left: 38px; }

.empty-state { display: grid; place-items: center; min-height: 250px; padding: 30px; text-align: center; }
.empty-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 14px; color: var(--primary); background: var(--surface-tint); border-radius: 18px; }
.empty-state h3 { margin: 0; font-size: 16px; }
.empty-state p { max-width: 430px; margin: 7px auto 15px; color: var(--muted); }

.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.course-card { overflow: hidden; position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 15px; transition: .2s ease; }
.course-card:hover { border-color: #99f6e4; box-shadow: var(--shadow); transform: translateY(-2px); }
.course-cover { position: relative; min-height: 112px; display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; padding: 18px; color: #d8fffb; background: linear-gradient(125deg, #0e4d49, #11877d); }
.course-cover::after { content: ""; position: absolute; width: 130px; height: 130px; right: -45px; top: -60px; border: 25px solid rgba(255,255,255,.08); border-radius: 50%; }
.course-code { position: relative; z-index: 1; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.course-sks { position: relative; z-index: 1; color: #0b4f4b; background: #ccfbf1; }
.course-body { flex: 1; padding: 18px; }
.course-body h3 { margin: 0; color: #163534; font-size: 16px; line-height: 1.35; }
.course-body p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.course-meta { display: grid; gap: 7px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--border); }
.course-meta-row { display: flex; align-items: center; gap: 8px; color: #64748b; font-size: 11px; }
.course-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; background: var(--surface-soft); border-top: 1px solid var(--border); }
.course-tabs { display: flex; gap: 5px; margin-bottom: 20px; padding: 5px; overflow-x: auto; background: #e8efef; border-radius: 11px; scrollbar-width: none; }
.course-tab { padding: 8px 13px; color: #64748b; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.course-tab:hover { color: var(--primary); }
.course-tab.active { color: #fff; background: var(--primary); box-shadow: 0 4px 12px rgba(15,118,110,.2); }
.course-hero { overflow: hidden; position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; min-height: 185px; margin-bottom: 18px; padding: 28px; color: #eafffc; background: linear-gradient(110deg, #0b3e3b, #0f766e); border-radius: 17px; }
.course-hero::after { content: ""; position: absolute; width: 300px; height: 300px; right: -80px; top: -160px; border: 48px solid rgba(255,255,255,.07); border-radius: 50%; }
.course-hero-copy { position: relative; z-index: 1; max-width: 780px; }
.course-hero h2 { margin: 5px 0 0; color: #fff; font-size: 25px; letter-spacing: -.03em; }
.course-hero p { margin: 9px 0 0; color: #c9efeb; }
.course-hero-meta { position: relative; z-index: 1; min-width: 200px; padding: 13px 16px; background: rgba(0,0,0,.12); border: 1px solid rgba(255,255,255,.13); border-radius: 12px; }
.course-hero-meta div + div { margin-top: 6px; }
.course-hero-meta strong { color: #fff; }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: flex-start; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.list-item:first-child { padding-top: 0; }
.list-item:last-child { padding-bottom: 0; border-bottom: 0; }
.list-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; color: var(--primary); background: var(--surface-tint); border-radius: 10px; }
.list-copy { min-width: 0; flex: 1; }
.list-copy h4 { margin: 0; color: #163534; font-size: 13px; }
.list-copy p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.list-meta { color: var(--muted); font-size: 10px; white-space: nowrap; }

.timeline { position: relative; display: flex; flex-direction: column; gap: 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 13px; padding-bottom: 20px; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 25px; top: 46px; bottom: 0; width: 1px; background: var(--border); }
.timeline-date { width: 52px; height: 52px; display: grid; place-items: center; align-content: center; color: var(--primary); background: var(--surface-tint); border-radius: 12px; line-height: 1.05; font-weight: 800; }
.timeline-date span { font-size: 18px; }
.timeline-date small { margin-top: 3px; font-size: 9px; text-transform: uppercase; }
.timeline-copy { padding-top: 3px; }
.timeline-copy h4 { margin: 0; font-size: 13px; }
.timeline-copy p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }

.announcement { position: relative; padding: 16px 16px 16px 19px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.announcement::before { content: ""; position: absolute; left: 0; top: 15px; bottom: 15px; width: 3px; background: var(--primary); border-radius: 99px; }
.announcement + .announcement { margin-top: 10px; }
.announcement-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.announcement h3 { margin: 0; font-size: 14px; }
.announcement p { margin: 7px 0 0; color: #475569; }
.announcement-meta { margin-top: 10px; color: var(--muted); font-size: 10px; }

.progress { width: 100%; height: 7px; overflow: hidden; background: #e2e8f0; border-radius: 99px; }
.progress-bar { height: 100%; background: var(--primary); border-radius: inherit; }
.score-ring { width: 86px; height: 86px; display: grid; place-items: center; border: 8px solid var(--primary-soft); border-top-color: var(--primary); border-radius: 50%; color: var(--primary-dark); font-size: 21px; font-weight: 800; }

.material-item, .assignment-item, .topic-item { display: flex; align-items: flex-start; gap: 14px; padding: 17px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.material-item + .material-item, .assignment-item + .assignment-item, .topic-item + .topic-item { margin-top: 10px; }
.material-icon, .assignment-icon { width: 45px; height: 45px; display: grid; place-items: center; flex: 0 0 auto; color: var(--primary); background: var(--surface-tint); border-radius: 12px; }
.item-copy { min-width: 0; flex: 1; }
.item-copy h3 { margin: 0; color: #163534; font-size: 14px; }
.item-copy p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.item-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 9px; color: var(--muted); font-size: 10px; }
.item-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }

.quiz-question { padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 13px; }
.quiz-question + .quiz-question { margin-top: 14px; }
.question-number { margin-bottom: 6px; color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.quiz-question h3 { margin: 0 0 14px; font-size: 15px; line-height: 1.55; }
.option-list { display: grid; gap: 8px; }
.option { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 12px; color: #334155; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 9px; cursor: pointer; }
.option:hover { border-color: #99f6e4; background: var(--surface-tint); }
.option input { accent-color: var(--primary); }
.quiz-sticky { position: sticky; top: 104px; }
.quiz-timer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px; color: #fff; background: #0f3d3a; border-radius: 12px; }
.quiz-timer strong { font-size: 23px; letter-spacing: .04em; }

.discussion-post { padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: 13px; }
.post-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.post-author { display: flex; flex-direction: column; }
.post-author strong { font-size: 13px; }
.post-author small { color: var(--muted); font-size: 10px; }
.post-body { color: #334155; line-height: 1.7; }
.reply-list { margin-left: 28px; padding-left: 18px; border-left: 2px solid var(--border); }

.kpi-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.kpi { padding: 14px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 10px; }
.kpi small { display: block; color: var(--muted); }
.kpi strong { display: block; margin-top: 4px; font-size: 18px; }

.profile-header { display: flex; align-items: center; gap: 18px; }
.profile-copy h2 { margin: 0; font-size: 20px; }
.profile-copy p { margin: 4px 0 0; color: var(--muted); }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .9fr) minmax(0, 1.1fr); background: #fff; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-box { width: 100%; max-width: 420px; }
.login-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 38px; }
.login-brand img { width: 48px; height: 48px; }
.login-brand strong { display: block; color: #153534; font-size: 18px; }
.login-brand small { display: block; margin-top: 3px; color: var(--muted); }
.login-box h1 { margin: 0; color: #102a2a; font-size: 30px; line-height: 1.2; letter-spacing: -.04em; }
.login-box > p { margin: 10px 0 28px; color: var(--muted); }
.password-wrap { position: relative; }
.password-wrap .form-control { padding-right: 45px; }
.password-toggle { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); }
.login-demo { margin-top: 22px; padding: 14px; color: #475569; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 11px; font-size: 11px; }
.login-demo strong { color: #163534; }
.login-visual { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 52px; color: #fff; background: #0b3e3b; }
.login-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(94,234,212,.22), transparent 38%), linear-gradient(135deg, transparent, rgba(15,118,110,.55)); }
.login-visual::after { content: ""; position: absolute; width: 520px; height: 520px; top: -220px; right: -160px; border: 90px solid rgba(255,255,255,.05); border-radius: 50%; }
.login-visual-content { position: relative; z-index: 1; max-width: 650px; }
.login-visual-label { color: #99f6e4; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.login-visual h2 { margin: 10px 0 0; font-size: 38px; line-height: 1.15; letter-spacing: -.045em; }
.login-visual p { max-width: 580px; margin: 14px 0 0; color: #ccece9; font-size: 15px; }
.login-features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 32px; }
.login-feature { padding: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; backdrop-filter: blur(8px); }
.login-feature strong { display: block; margin-top: 10px; }
.login-feature small { display: block; margin-top: 4px; color: #b9deda; }
.login-footer { margin-top: 30px; color: #94a3b8; font-size: 11px; }

.install-page { min-height: 100vh; padding: 35px 20px; background: var(--bg); }
.install-wrap { max-width: 900px; margin: 0 auto; }
.install-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.install-head img { width: 54px; }
.install-head h1 { margin: 0; font-size: 24px; }
.install-head p { margin: 4px 0 0; color: var(--muted); }

.pagination { display: flex; align-items: center; gap: 5px; justify-content: flex-end; padding: 14px 0 0; }
.pagination a, .pagination span { min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 8px; color: #475569; background: #fff; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; }
.pagination .active { color: #fff; background: var(--primary); border-color: var(--primary); }

@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .course-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 980px) {
    .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 25px 0 60px rgba(0,0,0,.22); }
    .sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-overlay { position: fixed; inset: 0; display: block; background: rgba(15,23,42,.5); z-index: 40; opacity: 0; visibility: hidden; transition: .2s ease; }
    .sidebar-open .sidebar-overlay { opacity: 1; visibility: visible; }
    .sidebar-close, .mobile-menu { display: inline-flex !important; }
    .main-area { margin-left: 0; }
    .layout-main-aside { grid-template-columns: 1fr; }
    .quiz-sticky { position: static; }
    .login-page { grid-template-columns: 1fr; }
    .login-visual { display: none; }
    .login-panel { min-height: 100vh; }
}

@media (max-width: 720px) {
    .topbar { min-height: 70px; padding: 12px 16px; }
    .topbar h1 { font-size: 18px; }
    .eyebrow { max-width: 210px; }
    .topbar-actions .btn span { display: none; }
    .content-wrap { padding: 20px 16px 32px; }
    .footer { flex-direction: column; padding: 18px 16px; }
    .stats-grid, .course-grid, .grid-2, .grid-3, .grid-4, .form-grid, .form-grid-3, .kpi-row { grid-template-columns: 1fr; }
    .stats-grid { gap: 12px; }
    .stat-card { min-height: 100px; }
    .welcome-card { align-items: flex-start; flex-direction: column; padding: 24px; }
    .welcome-card h2 { font-size: 23px; }
    .course-hero { align-items: flex-start; flex-direction: column; padding: 23px; }
    .course-hero-meta { width: 100%; }
    .page-actions { align-items: stretch; }
    .page-actions > * { width: 100%; }
    .page-actions .card-actions { width: auto; }
    .search-form, .search-box { width: 100%; min-width: 0; }
    .search-form .form-select { flex: 1; }
    .material-item, .assignment-item, .topic-item { flex-wrap: wrap; }
    .item-actions { width: 100%; justify-content: flex-end; }
    .reply-list { margin-left: 10px; padding-left: 12px; }
    .login-panel { padding: 28px 20px; }
    .login-box h1 { font-size: 26px; }
}
