:root {
    color-scheme: light;
    --ink: #1e2134;
    --muted: #60677c;
    --purple: #6243d5;
    --deep: #4e31b1;
    --line: #e8e9f2;
    --canvas: #f7f8fc;
    --sidebar: 224px;
    font: 15px/1.5 "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
:focus-visible { outline: 3px solid #7655ec; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.skip { position: fixed; z-index: 10; left: 12px; top: 12px; transform: translateY(-150%); background: white; padding: 12px; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; width: var(--sidebar); display: flex; flex-direction: column; background: white; border-right: 1px solid var(--line); padding: 25px 16px 16px; overflow: auto; }
.brand { display: flex; margin: 0 6px 23px; }
.brand img { display: block; max-width: 100%; height: auto; }
.nav-label { font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--muted); margin: 0 12px 12px; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; color: #535a70; padding: 12px; margin-bottom: 5px; border-radius: 9px; font-weight: 600; font-size: 14px; }
.sidebar nav a:hover, .sidebar nav a[aria-current] { color: var(--deep); background: #eee9ff; }
.sidebar-bottom { margin-top: auto; display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding: 15px 2px 0; }
.sidebar-bottom small, .event small { display: block; color: var(--muted); }
.avatar { display: grid; place-items: center; background: #ffe1d1; color: #6f3527; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; font-size: 12px; font-weight: 800; }
.workspace { margin-left: var(--sidebar); min-width: 0; }
.topbar { display: flex; align-items: center; gap: 17px; min-height: 72px; padding: 10px clamp(20px, 3vw, 48px); background: white; border-bottom: 1px solid var(--line); }
.crumb { margin-right: auto; color: var(--muted); font-size: 13px; }
.crumb strong { color: var(--ink); margin-left: 5px; }
.crumb span { margin-right: 5px; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 10px; width: min(260px, 32vw); min-width: 0; height: 39px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); color: var(--muted); }
.search input { border: 0; background: transparent; min-width: 0; width: 100%; color: var(--ink); font-size: 13px; }
.search kbd { border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.icon-button { display: inline-grid; place-items: center; position: relative; flex: 0 0 auto; width: 40px; height: 40px; background: white; border: 1px solid var(--line); border-radius: 10px; color: #50586f; }
.icon-button:hover { color: var(--deep); background: #f4f0ff; }
.notifications i { position: absolute; right: 9px; top: 8px; width: 7px; height: 7px; border-radius: 100%; background: #805df1; border: 1px solid white; }
.menu-button, .scrim { display: none; }
main { max-width: 1530px; margin: auto; padding: 32px clamp(20px, 3vw, 48px) 44px; }
.greeting { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 25px; }
.eyebrow { color: var(--deep); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
h1 { font-size: clamp(28px, 3.3vw, 41px); letter-spacing: -.05em; margin: 6px 0 7px; }
h2 { font-size: 20px; letter-spacing: -.03em; }
h3 { font-size: 17px; letter-spacing: -.025em; }
.greeting p, .section-head p, .course-body p, .badge p, .empty p { color: var(--muted); }
.wave { color: #e7a742; font-size: .58em; vertical-align: middle; margin-left: 4px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 9px; padding: 9px 13px; min-height: 40px; font-weight: 700; font-size: 13px; }
.button .icon, .text-link .icon { width: 16px; height: 16px; }
.secondary { background: white; border-color: var(--line); }
.secondary:hover { border-color: #ac9aea; color: var(--deep); }
.primary { background: var(--purple); color: white; }
.primary:hover { background: var(--deep); }
.button:disabled { cursor: default; background: #e8f4ed; color: #215e45; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, .41fr); gap: 20px; }
.dashboard-rail { display: grid; align-content: start; gap: 17px; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 244px; padding: 26px; border-radius: 17px; background: radial-gradient(ellipse at right, #7750e7, transparent 73%), linear-gradient(115deg, #29205b, #5936ba); color: white; }
.hero-copy { z-index: 1; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 20px; background: #ffffff22; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.hero-tag span { width: 6px; height: 6px; border-radius: 50%; background: #cbb9ff; }
.hero h2 { font-size: clamp(29px, 3.1vw, 46px); margin: 12px 0 8px; line-height: 1.03; letter-spacing: -.055em; }
.hero p { color: #e9e0ff; font-size: 13px; }
.hero-button { background: white; color: #3c277b; margin-top: 18px; }
.hero-button:hover { background: #eee8ff; }
.hero-art { position: absolute; right: 1%; top: 50%; transform: translateY(-50%); width: 46%; height: auto; }
.surface, .course-card { background: white; border: 1px solid var(--line); border-radius: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 17px 0 25px; }
.stat { display: flex; align-items: center; gap: 9px; padding: 13px 10px; }
.stat strong { display: block; font-size: 22px; line-height: 1; letter-spacing: -.05em; }
.stat small { color: var(--muted); display: block; margin-top: 4px; font-size: 11px; }
.stat-icon { width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; flex: 0 0 auto; background: var(--tint); color: var(--accent); }
.violet { --tint: #ede6ff; --accent: #6444c8; --tile: #8560ee; }
.blue { --tint: #e3edff; --accent: #345caa; --tile: #557ce2; }
.mint { --tint: #ddf5eb; --accent: #187651; --tile: #239a74; }
.peach { --tint: #ffe9d8; --accent: #994e23; --tile: #ca6632; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 13px; }
.section-head p { margin-top: 3px; font-size: 13px; }
.text-link { color: var(--deep); font-size: 13px; font-weight: 750; }
.text-link:hover, .course-body h3 a:hover { text-decoration: underline; }
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.listing { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.course-card { position: relative; overflow: hidden; }
.course-art { display: grid; place-items: center; height: 104px; overflow: hidden; background: repeating-radial-gradient(circle at 50% 50%, transparent 0 20px, #ffffff78 21px 22px, transparent 23px 33px), var(--tint); }
.course-art:hover .art-tile { transform: rotate(0); }
.art-tile { display: grid; place-items: center; width: 59px; height: 59px; border: 1px solid #ffffff9e; border-radius: 16px; background: var(--tile); color: white; transform: rotate(-11deg); box-shadow: 4px 5px 0 #26204726; transition: transform .18s ease; }
.art-tile .icon { width: 30px; height: 30px; }
.bookmark { position: absolute; top: 9px; right: 9px; width: 37px; height: 37px; }
.bookmark[aria-pressed="true"] { background: #e8ddff; color: var(--deep); }
.course-body { padding: 13px; }
.course-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.course-meta span { padding: 2px 7px; border-radius: 4px; background: #f0ebff; color: var(--deep); font-size: 10px; font-weight: 700; }
.course-meta span + span { background: #f0f2f6; color: #51586a; }
.course-body p { font-size: 12px; margin-top: 4px; }
.course-foot { display: flex; flex-wrap: wrap; gap: 5px 12px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 11px; color: var(--muted); font-size: 11px; }
.course-foot .icon { width: 14px; height: 14px; }
.course-progress { margin-top: 10px; color: var(--muted); }
.progress-track { background: #eeeaf8; height: 6px; border-radius: 30px; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--purple); border-radius: inherit; }
.activity, .upcoming { padding: 17px; }
.activity .section-head h2, .upcoming .section-head h2 { font-size: 17px; }
.activity-total { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.activity-total strong { font-size: 27px; letter-spacing: -.06em; }
.activity-total span { font-size: 11px; color: var(--muted); }
.chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; color: var(--muted); }
.bar-slot { display: flex; align-items: end; height: 73px; border-radius: 5px; background: #f5f2fc; overflow: hidden; margin-bottom: 5px; }
.bar-slot i { width: 100%; background: #cbbafd; border-radius: 5px; }
.bar-slot i.peak { background: #7451e2; }
.event { display: flex; align-items: center; gap: 9px; padding: 9px 0; font-size: 13px; }
a.event:hover { color: var(--deep); }
.event + .event { border-top: 1px solid var(--line); }
.event-date { display: grid; align-content: center; text-align: center; width: 42px; min-height: 44px; flex: 0 0 auto; border-radius: 8px; background: var(--tint); color: var(--accent); font-size: 9px; font-weight: 800; }
.event-date strong { font-size: 16px; line-height: 1.1; }
.tip { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid #f3e0cf; border-radius: 12px; background: #fff7ee; font-size: 13px; }
.tip p { color: #735d4d; font-size: 12px; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 18px; color: var(--muted); }
.filters label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; }
.filters select { min-height: 42px; background: white; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); padding: 6px 9px; }
#result-count { padding: 8px 0; }
.empty { text-align: center; padding: 35px 14px; }
.empty p, .badge p { margin: 8px 0; }
.empty .button { margin-top: 6px; }
.schedule-list { max-width: 720px; padding: 8px 16px; }
.schedule-list .text-link { margin-left: auto; }
.badge-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.badge { padding: 20px; }
.badge h2 { margin-top: 12px; }
.player { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, .45fr); align-items: start; gap: 18px; }
.player-lesson { overflow: hidden; }
.player-banner { height: 150px; }
.player-copy, .curriculum { padding: 20px; }
.player-copy p { margin: 12px 0 17px; color: var(--muted); }
.player-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.curriculum h2 { margin-bottom: 10px; }
.curriculum a { display: flex; align-items: center; gap: 8px; padding: 10px 6px; border-top: 1px solid var(--line); font-size: 13px; }
.curriculum a:hover, .curriculum a[aria-current] { color: var(--deep); background: #f2edff; }
.lesson-marker { width: 22px; flex: 0 0 auto; text-align: center; font-weight: 700; }
.quiz { border: 0; margin: 0; padding: 0; }
.quiz legend { font-weight: 700; margin-bottom: 8px; }
.quiz label { display: flex; gap: 7px; align-items: center; margin: 6px 0; padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
dialog { width: min(390px, calc(100% - 24px)); border: 1px solid var(--line); border-radius: 14px; padding: 20px; color: var(--ink); }
dialog::backdrop { background: #20183f65; }
dialog p { margin-bottom: 10px; color: var(--muted); }
.toast { position: fixed; z-index: 8; right: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 9px; background: #2f2354; color: white; }
@media (max-width: 1120px) {
    :root { --sidebar: 192px; }
    .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
    .dashboard-rail { grid-template-columns: 1fr 1fr; }
    .tip { grid-column: 1 / -1; }
    .hero-art { max-width: 270px; }
}
@media (max-width: 780px) {
    .workspace { margin-left: 0; }
    .sidebar { width: min(270px, 85vw); visibility: hidden; pointer-events: none; transform: translateX(-100%); transition: transform .18s ease, visibility .18s ease; }
    .sidebar.open { visibility: visible; pointer-events: auto; transform: translateX(0); }
    .menu-button { display: inline-grid; }
    .scrim { display: block; position: fixed; z-index: 4; inset: 0; width: 100%; background: #20183f65; border: 0; }
    .topbar { gap: 10px; }
    .search { width: min(230px, 39vw); }
}
@media (max-width: 540px) {
    .topbar { padding: 10px 12px; min-height: 62px; }
    .crumb, .top-avatar, .search kbd { display: none; }
    .search { width: auto; flex: 1; }
    main { padding: 23px 13px 32px; }
    .greeting { flex-wrap: wrap; margin-bottom: 17px; align-items: start; }
    .hero { min-height: 220px; padding: 18px; }
    .hero-art { right: -5%; opacity: .47; width: 57%; }
    .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #2b205b77, transparent 85%); }
    .stats { gap: 6px; }
    .stat { align-items: flex-start; flex-direction: column; padding: 8px; }
    .stat-icon { width: 32px; height: 32px; }
    .dashboard-rail, .player { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
    .course-grid { grid-template-columns: 1fr; }
    .schedule-list .event { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}

