:root{--orange:#F98012;--orange-dark:#d96808;--ink:#333;--muted:#68737d;--border:#dfe3e7;--bg:#f8f9fa;--white:#fff;--sidebar:252px;--shadow:0 1px 3px rgba(0,0,0,.06);--radius:4px;--focus:0 0 0 3px rgba(249,128,18,.2)}*{box-sizing:border-box}html{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--bg)}body{margin:0;font-size:15px;line-height:1.55}a{color:#3d5d76;text-decoration:none}a:hover{color:var(--orange)}button,input,select,textarea{font:inherit}button{cursor:pointer}.icon-sprite{position:absolute;width:0;height:0}.topbar{height:64px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 24px;position:sticky;top:0;z-index:50}.brand{display:flex;align-items:center;gap:10px;font-size:17px;color:#333;font-weight:500}.brand b{font-weight:700}.brand-mark{width:31px;height:31px;background:var(--orange);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;border-radius:3px}.top-actions{margin-left:auto;display:flex;align-items:center;gap:8px}.icon-btn{width:40px;height:40px;display:grid;place-items:center;position:relative;color:#4d5660;border-radius:4px}.icon-btn:hover{background:#f3f4f5;color:var(--orange)}.icon-btn svg,.nav-item svg,.breadcrumb svg,.activity-item>svg,.file-row svg,.profile-trigger svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.badge-dot{position:absolute;top:4px;right:3px;min-width:16px;height:16px;padding:0 3px;background:var(--orange);border-radius:8px;color:#fff;font-size:9px;line-height:16px;text-align:center}.profile-trigger{border:0;background:none;display:flex;align-items:center;gap:9px;padding:5px 7px;border-radius:4px;color:#333}.profile-trigger:hover{background:#f3f4f5}.profile-trigger svg{width:15px}.avatar{width:32px;height:32px;border-radius:50%;background:#e9ecef;display:grid;place-items:center;font-weight:700;color:#4d5660}.avatar.xl{width:68px;height:68px;font-size:24px}.profile-menu{position:relative}.profile-dropdown{position:absolute;right:0;top:48px;width:190px;background:#fff;border:1px solid var(--border);box-shadow:0 6px 18px rgba(0,0,0,.1);display:none;padding:6px 0;z-index:60}.profile-menu.open .profile-dropdown{display:block}.profile-dropdown a,.profile-dropdown button{display:block;width:100%;text-align:left;padding:9px 14px;border:0;background:#fff;color:#333}.profile-dropdown a:hover,.profile-dropdown button:hover{background:#f5f6f7;color:var(--orange)}.mobile-menu{display:none;border:0;background:none;font-size:22px;margin-right:12px}.app-shell{display:flex;min-height:calc(100vh - 64px)}.sidebar{width:var(--sidebar);background:#fff;border-right:1px solid var(--border);position:fixed;top:64px;bottom:0;overflow:auto;padding:22px 14px;z-index:40}.side-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#8a9299;font-weight:700;padding:0 12px 8px}.admin-label{margin-top:25px}.nav-item{display:flex;align-items:center;gap:12px;padding:10px 12px;color:#424a52;border-left:3px solid transparent;margin:2px 0;border-radius:2px}.nav-item:hover{background:#f6f7f8;color:#333}.nav-item.active{background:#fff4ea;border-left-color:var(--orange);color:#333;font-weight:600}.nav-item svg{width:19px;height:19px}.nav-count{margin-left:auto;font-size:11px;background:#eef0f2;padding:1px 7px;border-radius:10px}.sidebar-footer{border-top:1px solid var(--border);margin-top:30px;padding:18px 12px}.support-title{font-weight:700}.support-text{font-size:12px;color:#8a9299;margin-top:3px}.main{margin-left:var(--sidebar);width:calc(100% - var(--sidebar));padding:0 32px 48px;max-width:1600px}.breadcrumb{height:49px;display:flex;align-items:center;gap:6px;color:#737c84;font-size:13px}.breadcrumb svg{width:14px;height:14px}.breadcrumb a{color:#64707a}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:18px 0 26px}.page-head h1,.course-hero h1,.activity-head h1{margin:2px 0 6px;font-size:30px;line-height:1.2;font-weight:500;color:#2f3337}.muted{color:var(--muted);margin:0}.eyebrow{font-size:11px;letter-spacing:.1em;color:#8a9299;font-weight:700}.btn{border:1px solid var(--border);background:#fff;color:#3e4850;padding:9px 15px;border-radius:3px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn:hover{background:#f5f6f7;color:#333}.btn:focus,input:focus,textarea:focus,select:focus{outline:none;box-shadow:var(--focus);border-color:var(--orange)}.btn-primary{background:var(--orange);border-color:var(--orange);color:#fff}.btn-primary:hover{background:var(--orange-dark);border-color:var(--orange-dark);color:#fff}.btn-secondary{background:#fff;border-color:#adb5bd}.btn-wide{width:100%}.panel{background:#fff;border:1px solid var(--border);box-shadow:var(--shadow);border-radius:var(--radius);padding:20px}.panel h2,.panel h3{margin:0 0 5px;font-weight:600}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:16px}.text-link{font-weight:600;font-size:13px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:20px}.span-2{min-width:0}.course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.course-grid.large{grid-template-columns:repeat(3,minmax(0,1fr))}.course-card{border:1px solid var(--border);background:#fff;box-shadow:var(--shadow);border-radius:4px;overflow:hidden}.course-stripe{height:6px;background:var(--orange)}.course-card-body{padding:18px}.course-code{font-size:10px;letter-spacing:.09em;font-weight:700;color:#8a9299}.course-card h3{font-size:18px;font-weight:600;margin:5px 0 7px;line-height:1.3}.course-card h3 a{color:#333}.course-card p{font-size:13px;color:#6b737b;min-height:42px;margin:0 0 18px}.progress-row{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#69727a;margin-bottom:5px}.progress{height:7px;background:#e9ecef;overflow:hidden;border-radius:1px}.progress span{display:block;height:100%;background:var(--orange)}.progress.large{height:9px}.course-action{display:flex;justify-content:space-between;margin-top:16px;font-size:13px;font-weight:600}.timeline-item{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid #edf0f2;color:#333}.timeline-item:last-child{border-bottom:0}.timeline-date{font-size:11px;font-weight:700;color:var(--orange);min-width:46px}.timeline-item b,.timeline-item small{display:block}.timeline-item small{font-size:11px;color:#808990;margin-top:2px}.empty-small{padding:25px 5px;color:#7c858d;font-size:13px}.empty-state{text-align:center;padding:45px 20px}.empty-state h2{margin-bottom:4px}.empty-icon{font-size:30px;color:var(--orange);margin-bottom:8px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px;flex-wrap:wrap}.search{display:flex;align-items:center;border:1px solid var(--border);background:#fff;min-width:280px}.search svg{width:18px;height:18px;fill:none;stroke:#8a9299;stroke-width:1.7;margin-left:11px}.search input{border:0;padding:10px;width:100%;box-shadow:none}.filters{display:flex;gap:3px;overflow:auto}.filter{padding:8px 11px;border:1px solid transparent;color:#68727b;font-size:13px;white-space:nowrap}.filter.selected{border-color:#d5dadd;background:#fff;color:#333;font-weight:600}.course-card-top{display:flex;justify-content:space-between}.star-btn{border:0;background:none;font-size:22px;color:#8b9298;line-height:1}.star-btn:hover{color:var(--orange)}.status{font-size:11px;font-weight:700;padding:3px 7px;border:1px solid #dfe3e7;display:inline-block}.status.completed{color:#3f684c;background:#eef7f0;border-color:#cde3d2}.status.inprogress{color:#92570e;background:#fff6e8;border-color:#f0d5a6}.status.notstarted{color:#66717a;background:#f5f6f7}.course-hero{background:#fff;border:1px solid var(--border);padding:26px 28px;margin-bottom:20px;display:grid;grid-template-columns:1fr 330px;gap:30px;align-items:center}.course-hero p{max-width:800px;color:#667078}.course-progress-box{border-left:1px solid var(--border);padding-left:28px}.course-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px}.course-section{background:#fff;border:1px solid var(--border);margin-bottom:14px}.section-head{padding:17px 20px;background:#f7f8f9;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;gap:12px}.section-head>div:first-child,.builder-section-head>div:first-child{display:flex;gap:13px}.section-number{width:30px;height:30px;border:1px solid #cbd1d6;background:#fff;display:grid;place-items:center;font-size:12px;font-weight:700}.section-head h2,.builder-section-head h2{margin:0;font-size:16px;font-weight:600}.section-head p{margin:2px 0 0;font-size:12px;color:#7b848b}.section-meta{font-size:12px;color:#7b848b}.activity-item{display:flex;align-items:center;gap:13px;padding:14px 20px;border-bottom:1px solid #edf0f2;color:#333}.activity-item:last-child{border-bottom:0}.activity-item:hover{background:#fafbfb}.activity-icon{width:31px;height:31px;display:grid;place-items:center;border:1px solid #d9dee2;color:#5d6870;background:#fff;font-weight:700;font-size:14px}.activity-icon.quiz{color:var(--orange)}.activity-main{flex:1}.activity-main b,.activity-main small{display:block}.activity-main b{font-size:14px;font-weight:600}.activity-main small{font-size:11px;color:#7c858d}.activity-status{font-size:11px}.activity-status.completed{color:#3f684c}.activity-status.inprogress{color:#a65d08}.activity-status.notstarted{color:#7b848b}.course-side .panel{margin-bottom:14px}.completion-ring{width:100px;height:100px;border:8px solid #f0f1f2;border-top-color:var(--orange);border-radius:50%;display:grid;place-items:center;margin:15px auto}.completion-ring strong{font-size:20px}.side-link{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid #edf0f2;color:#444}.activity-head{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin:15px 0 25px}.back-link{font-size:13px;color:#68737d}.mini-progress{width:220px}.mini-progress>span{font-size:12px;font-weight:700;display:block;text-align:right;margin-bottom:5px}.activity-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px}.activity-panel{min-height:420px}.quiz-intro{padding-bottom:20px;border-bottom:1px solid var(--border);margin-bottom:10px}.question{border:0;border-bottom:1px solid #edf0f2;padding:22px 0;margin:0}.question legend{font-size:16px;font-weight:600;padding:0;display:flex;gap:12px}.question legend span{width:27px;height:27px;border:1px solid #d5dade;display:grid;place-items:center;font-size:12px;flex:none}.options{padding:14px 0 0 39px;display:grid;gap:8px}.option{border:1px solid var(--border);padding:12px;display:flex;gap:10px;align-items:center;cursor:pointer;background:#fff}.option:hover{border-color:#bfc6cb;background:#fafbfb}.option input{accent-color:var(--orange)}.result-card{text-align:center}.result-score{font-size:44px;font-weight:500;color:var(--orange);margin:10px 0}.status-line{display:flex;gap:9px;align-items:center;margin:13px 0}.status-dot{width:10px;height:10px;border-radius:50%;background:#adb5bd}.status-dot.done{background:#4e8a60}.activity-content{font-size:16px;line-height:1.7;max-width:820px;margin-bottom:28px}.activity-content h1,.activity-content h2,.activity-content h3{font-weight:600}.activity-content p{margin:0 0 15px}.table-panel{padding:0;overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:13px 16px;border-bottom:1px solid #edf0f2;font-size:13px;white-space:nowrap}th{background:#f7f8f9;color:#5f6971;font-size:11px;text-transform:uppercase;letter-spacing:.05em}tr:hover td{background:#fcfcfc}.table-title{display:block;color:#333;font-weight:600}.table-title+small,td small{display:block;color:#818a91;font-size:11px;margin-top:2px}.table-progress{display:flex;align-items:center;gap:9px;min-width:120px}.table-progress .progress{width:90px}.calendar-toolbar{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:14px}.calendar-toolbar h2{font-size:19px;font-weight:500;margin:0;min-width:170px;text-align:center}.calendar{background:#fff;border:1px solid var(--border)}.calendar-week,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-week>div{padding:9px 10px;background:#f7f8f9;border-bottom:1px solid var(--border);font-size:11px;text-transform:uppercase;color:#737c84;font-weight:700}.calendar-day{min-height:126px;border-right:1px solid #edf0f2;border-bottom:1px solid #edf0f2;padding:8px}.calendar-day:nth-child(7n){border-right:0}.muted-day{background:#fafbfc;color:#b0b6bb}.day-number{font-size:12px;font-weight:600;margin-bottom:5px}.today .day-number{display:inline-grid;place-items:center;width:24px;height:24px;background:var(--orange);color:#fff;border-radius:50%}.calendar-event{display:block;background:#fff4ea;border-left:3px solid var(--orange);padding:4px 6px;margin:4px 0;font-size:10px;color:#5b4b3f}.calendar-event b,.calendar-event small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-event small{color:#8b817a}.more{font-size:10px;color:#737c84}.profile-grid,.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}.profile-large{display:flex;align-items:center;gap:17px;padding-bottom:22px;border-bottom:1px solid #edf0f2}.profile-large h2{margin:0 0 3px;font-size:22px;font-weight:500}.profile-details{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0 0}.profile-details dt{font-size:11px;color:#858e95;text-transform:uppercase;letter-spacing:.05em}.profile-details dd{margin:3px 0 0}.certificate-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #edf0f2}.certificate-row:last-child{border-bottom:0}.certificate-icon{width:32px;height:32px;border:1px solid #d5e5d8;color:#4e7e59;background:#f2f8f3;display:grid;place-items:center}.certificate-row>div:nth-child(2){flex:1}.certificate-row small{display:block;color:#858e95;font-size:11px}.certificate-row .btn{font-size:12px}.form-panel{max-width:900px}.form-panel h2{margin-bottom:15px}.check-row{display:flex;gap:12px;padding:15px 0;border-bottom:1px solid #edf0f2}.check-row input{margin-top:4px;accent-color:var(--orange)}.check-row b,.check-row small{display:block}.check-row small{font-size:12px;color:#7b848b}.notice{background:#f7f8f9;border:1px solid var(--border);padding:11px;margin-top:18px;font-size:13px}.notification-row{display:flex;gap:14px;padding:17px;border-bottom:1px solid #edf0f2;color:#333}.notification-row:last-child{border-bottom:0}.notification-icon{width:31px;height:31px;border:1px solid #f0d3b5;color:var(--orange);display:grid;place-items:center;font-weight:700}.notification-row b,.notification-row p,.notification-row small{display:block}.notification-row p{margin:2px 0;color:#5f6971;font-size:13px}.notification-row small{font-size:11px;color:#858e95}.file-input{display:block;border:1px dashed #bcc4ca;padding:16px;width:100%;margin-bottom:12px}.file-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #edf0f2;color:#333}.file-row span:nth-child(2){flex:1}.file-row svg{color:#6d7780}.file-row small{display:block;color:#899198;font-size:11px}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}.stat-card{background:#fff;border:1px solid var(--border);padding:17px}.stat-card span,.stat-card small{display:block;color:#7b848b;font-size:12px}.stat-card strong{font-size:29px;font-weight:500;display:block;margin:2px 0}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.admin-list{border-top:1px solid #edf0f2}.admin-row{display:flex;align-items:center;gap:14px;padding:13px 0;border-bottom:1px solid #edf0f2;color:#333}.admin-row>div:first-child{flex:1}.admin-row b,.admin-row small{display:block}.admin-row small{font-size:11px;color:#858e95}.row-actions{display:flex;gap:12px;align-items:center}.builder-form{margin-bottom:20px}.form-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.switch{display:flex;gap:8px;align-items:center;font-size:13px}.switch input{accent-color:var(--orange)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}.form-grid label,.activity-edit-form label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600;color:#525c64}.form-grid .wide{grid-column:1/-1}.form-grid input,.form-grid textarea,.activity-edit-form input,.activity-edit-form textarea,.inline-form input,.add-activity input,.add-activity select,.enrol-panel select{border:1px solid #cfd5da;background:#fff;padding:9px 10px;color:#333;border-radius:2px}.builder-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px}.builder-toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin-bottom:14px}.builder-toolbar h2{margin:0;font-size:20px;font-weight:500}.builder-toolbar form{display:flex;gap:7px}.builder-section{background:#fff;border:1px solid var(--border);margin-bottom:15px}.builder-section-head{display:flex;justify-content:space-between;padding:16px 18px;background:#f7f8f9;border-bottom:1px solid var(--border)}.icon-action{border:0;background:none;font-size:20px;color:#6f7880}.icon-action.danger:hover,.text-danger{color:#b42318}.inline-form{display:grid;grid-template-columns:1fr 1.5fr auto;gap:8px;padding:12px 14px;border-bottom:1px solid #edf0f2}.builder-activities{padding:0 14px}.activity-editor{border-bottom:1px solid #edf0f2;padding:2px 0}.activity-editor summary{list-style:none;display:flex;align-items:center;gap:12px;padding:12px 4px;cursor:pointer}.activity-editor summary::-webkit-details-marker{display:none}.activity-editor summary>span:nth-child(2){flex:1}.activity-editor summary b,.activity-editor summary small{display:block}.activity-editor summary small{font-size:11px;color:#838c93}.activity-edit-form{padding:4px 20px 15px;display:grid;grid-template-columns:1fr 1fr;gap:13px}.activity-edit-form label:nth-child(2),.activity-edit-form label:nth-child(4),.quiz-builder{grid-column:1/-1}.activity-edit-form .form-actions{grid-column:1/-1}.quiz-builder{border-top:1px solid #edf0f2;padding-top:14px}.builder-subhead{display:flex;justify-content:space-between;align-items:center}.builder-subhead h3{font-size:14px}.question-edit{border:1px solid #dfe3e7;padding:12px;margin-top:10px;background:#fafbfc}.question-edit label{margin-bottom:9px}.question-edit label:last-child{margin-bottom:0}.add-activity{display:flex;gap:7px;padding:13px 14px;background:#fafbfc;border-top:1px solid #edf0f2}.enrol-panel select{width:100%;margin:10px 0}.field-help{font-size:11px;color:#858e95}.error-page{max-width:700px;margin:80px auto;text-align:center}.login-page{background:#f3f4f5;min-height:100vh;display:grid;place-items:center}.login-wrap{width:min(430px,calc(100% - 32px))}.login-brand{display:flex;justify-content:center;align-items:center;gap:10px;font-size:20px;margin-bottom:18px}.login-card{background:#fff;border:1px solid var(--border);box-shadow:0 2px 8px rgba(0,0,0,.06);padding:32px}.login-card h1{font-size:26px;font-weight:500;margin:4px 0 8px}.login-card .muted{margin-bottom:24px}.login-note{text-align:center;font-size:11px;color:#858e95;margin:18px 0 0}.admin-grid .panel,.profile-grid .panel{min-width:0}
@media(max-width:1100px){.course-grid.large{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid,.course-layout,.activity-layout,.builder-layout{grid-template-columns:1fr}.course-side{display:grid;grid-template-columns:1fr 1fr;gap:20px}.course-side .panel{margin:0}.profile-grid,.two-col,.admin-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){.mobile-menu{display:block}.sidebar{transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.main{margin-left:0;width:100%;padding:0 16px 35px}.topbar{padding:0 14px}.profile-name{display:none}.page-head{align-items:flex-start;flex-direction:column}.page-head h1,.course-hero h1,.activity-head h1{font-size:26px}.dashboard-grid,.course-grid,.course-grid.large,.course-side,.form-grid{grid-template-columns:1fr}.course-hero{grid-template-columns:1fr;padding:20px}.course-progress-box{border-left:0;border-top:1px solid var(--border);padding:18px 0 0}.activity-head{align-items:flex-start;flex-direction:column}.mini-progress{width:100%}.calendar-day{min-height:95px}.calendar-event{font-size:9px}.calendar-event small{display:none}.inline-form,.add-activity{grid-template-columns:1fr;display:grid}.builder-toolbar{align-items:stretch;flex-direction:column}.builder-toolbar form{flex-direction:column}.activity-edit-form{grid-template-columns:1fr}.activity-edit-form label:nth-child(2),.activity-edit-form label:nth-child(4),.quiz-builder,.activity-edit-form .form-actions{grid-column:1}.filters{width:100%}.search{width:100%;min-width:0}.table-panel{margin-left:-1px;margin-right:-1px}.breadcrumb{overflow:hidden;white-space:nowrap}.breadcrumb span{overflow:hidden;text-overflow:ellipsis}.top-actions{gap:0}}
