.kourse-wrap{max-width:1200px}.kourse-wrap h1,.kourse-wrap h2{margin-top:0}.kourse-grid{display:grid;gap:20px}.kourse-grid.two{grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr)}.kourse-card{background:#fff;border:1px solid #dcdcde;border-radius:12px;padding:20px;box-sizing:border-box}.kourse-class-list{display:flex;flex-direction:column;gap:10px}.kourse-class-row{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:15px;border:1px solid #e2e4e7;border-radius:10px;text-decoration:none;color:#1d2327}.kourse-class-row:hover{border-color:#2271b1;background:#f6f7f7}.kourse-class-row span{display:flex;flex-direction:column}.kourse-class-row small,.kourse-student-row small{color:#646970;margin-top:3px}.kourse-heading-row{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.kourse-student-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #eee}.kourse-student-row:last-child{border-bottom:0}.kourse-student-main{display:flex;flex:1;min-width:0;flex-direction:column}.kourse-student-name{font-weight:650;text-decoration:none;font-size:14px}.kourse-avatar{width:38px;height:38px;border-radius:50%;background:#eef3f7;display:flex;align-items:center;justify-content:center;font-weight:700;color:#30516d;flex:0 0 auto}.kourse-avatar.large{width:64px;height:64px;font-size:24px}.kourse-count{display:inline-flex;min-width:24px;height:24px;align-items:center;justify-content:center;border-radius:999px;background:#eef3f7;font-size:12px}.kourse-search{display:flex;gap:8px;margin-bottom:10px}.kourse-search input{flex:1;min-width:0}.kourse-profile-header{display:flex;align-items:center;gap:18px;background:#fff;border:1px solid #dcdcde;border-radius:12px;padding:20px;margin-bottom:20px}.kourse-profile-header h1{margin-bottom:3px}.kourse-profile-header p{margin:0;color:#646970}.kourse-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.kourse-tags span{background:#f0f0f1;border-radius:999px;padding:4px 9px;font-size:12px}.kourse-grid.metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:20px}.kourse-metric{background:#fff;border:1px solid #dcdcde;border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:6px}.kourse-metric small{color:#646970}.kourse-metric strong{font-size:24px}.kourse-report-section,.kourse-empty-report{margin-bottom:20px}.kourse-front-classes{display:grid;gap:10px}.kourse-front-class{display:flex;justify-content:space-between;padding:12px 14px;border:1px solid #ddd;border-radius:10px}
@media(max-width:782px){.kourse-grid.two,.kourse-grid.metrics{grid-template-columns:1fr}.kourse-heading-row{align-items:flex-start;flex-direction:column}.kourse-class-row{align-items:flex-start;flex-direction:column}.kourse-search{flex-direction:column}}

.kourse-front-wrap{max-width:760px;margin:24px auto}.kourse-enrollment-card{max-width:680px}.kourse-form{display:grid;gap:16px}.kourse-form label{display:grid;gap:6px;font-weight:600}.kourse-form input,.kourse-form select,.kourse-form textarea{min-height:44px;padding:8px 10px;border:1px solid #c3c4c7;border-radius:8px;font-size:16px}.kourse-form small{font-weight:400;color:#646970}.kourse-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.kourse-role-picker{display:flex;gap:20px;border:0;padding:0;margin:0}.kourse-role-picker legend{font-weight:700;margin-bottom:8px;width:100%}.kourse-role-picker label{display:flex;align-items:center;gap:7px}.kourse-notice{padding:12px 14px;border-radius:8px;margin:0 0 16px}.kourse-notice.success{background:#edfaef;border:1px solid #8bd09a}.kourse-notice.error{background:#fff2f2;border:1px solid #e2a2a2}.kourse-code-card{margin-bottom:20px}.kourse-code-value{font-size:24px;font-weight:800;letter-spacing:2px;padding:10px 14px;background:#f6f7f7;border-radius:8px}.kourse-inline-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.kourse-inline-actions form{margin:0}.kourse-enrollment-status{font-weight:600}.kourse-enrollment-status.open{color:#227128}.kourse-enrollment-status.closed{color:#8a2424}@media(max-width:640px){.kourse-form-grid{grid-template-columns:1fr}.kourse-heading-row{align-items:flex-start;gap:12px}.kourse-code-value{font-size:20px}}

/* Student dashboard */
.kourse-student-dashboard{max-width:1100px;margin:24px auto;display:grid;gap:20px}.kourse-dashboard-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 26px;border:1px solid #dcdcde;border-radius:16px;background:#fff}.kourse-dashboard-hero h2{margin:2px 0 6px;font-size:28px}.kourse-dashboard-hero p:last-child{margin:0;color:#646970}.kourse-eyebrow{margin:0 0 4px!important;font-size:11px!important;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:#646970}.kourse-dashboard-avatar{width:58px;height:58px;border-radius:16px;background:#eef3f7;color:#30516d;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:800;flex:0 0 auto}.kourse-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.7fr);gap:20px}.kourse-dashboard-lower{grid-template-columns:1fr 1fr}.kourse-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.kourse-section-heading h3{margin:0;font-size:19px}.kourse-dashboard-class-list{display:grid;gap:10px}.kourse-dashboard-class{display:flex;align-items:center;gap:12px;border:1px solid #e2e4e7;border-radius:12px;padding:12px}.kourse-class-mark{width:42px;height:42px;border-radius:10px;background:#f0f0f1;color:#3c434a;display:flex;align-items:center;justify-content:center;font-weight:800;flex:0 0 auto}.kourse-dashboard-class-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.kourse-dashboard-class-copy small{color:#646970}.kourse-dashboard-empty{padding:16px;border:1px dashed #c3c4c7;border-radius:10px;background:#f9f9f9}.kourse-dashboard-empty p{margin:5px 0 0;color:#646970}.kourse-join-card p{color:#646970}.kourse-compact-form{gap:10px}.kourse-learning-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.kourse-learning-card{border:1px solid #e2e4e7;border-radius:12px;padding:16px;min-width:0}.kourse-learning-card h4{margin:0 0 8px;font-size:16px}.kourse-learning-card p{color:#646970;margin:6px 0 12px}.kourse-learning-value{display:block;font-size:26px;margin:4px 0}.kourse-recommendation-list,.kourse-activity-list{display:grid}.kourse-recommendation-list article,.kourse-activity-list article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #eee}.kourse-recommendation-list article:last-child,.kourse-activity-list article:last-child{border-bottom:0}.kourse-recommendation-list article>div,.kourse-activity-list article>div{display:flex;flex-direction:column;gap:3px;min-width:0}.kourse-recommendation-list small,.kourse-activity-list small,.kourse-muted{color:#646970}.kourse-activity-list span{font-weight:650;white-space:nowrap}.kourse-front-class>span{display:flex;flex-direction:column;gap:3px}.kourse-front-class small{color:#646970}
@media(max-width:782px){.kourse-dashboard-grid,.kourse-dashboard-lower{grid-template-columns:1fr}.kourse-dashboard-hero{align-items:flex-start}.kourse-dashboard-class{align-items:flex-start;flex-wrap:wrap}.kourse-dashboard-class-copy{min-width:180px}}
@media(max-width:480px){.kourse-dashboard-hero{padding:18px}.kourse-dashboard-avatar{width:48px;height:48px}.kourse-dashboard-hero h2{font-size:24px}.kourse-student-dashboard{margin:12px auto}.kourse-learning-grid{grid-template-columns:1fr}}

/* Polished signup experience */
.kourse-signup-shell{overflow:hidden;padding:0;border-radius:18px;border-color:#d8dee6}.kourse-signup-header{padding:28px 28px 22px;background:linear-gradient(135deg,#f7f9fb 0%,#eef4f6 100%);border-bottom:1px solid #e2e8ee}.kourse-signup-header h2{font-size:30px;line-height:1.15;margin:8px 0 8px}.kourse-signup-header p{margin:0;color:#59636e;font-size:15px}.kourse-signup-badge{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:999px;background:#fff;border:1px solid #d8dee6;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.kourse-signup-form{padding:26px 28px 30px}.kourse-role-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}.kourse-role-cards legend{grid-column:1/-1}.kourse-role-card{display:flex!important;align-items:flex-start!important;gap:10px!important;padding:14px!important;border:1px solid #d8dee6;border-radius:12px;background:#fff;cursor:pointer;font-weight:400!important}.kourse-role-card input{margin-top:2px;min-height:auto!important}.kourse-role-card span{display:flex;flex-direction:column;gap:2px}.kourse-role-card strong{font-size:15px}.kourse-role-card small{font-size:12px;line-height:1.35}.kourse-role-card.is-selected{border-color:#2271b1;box-shadow:0 0 0 2px rgba(34,113,177,.08);background:#f7fbff}.kourse-signup-submit{min-height:48px!important;border-radius:10px!important;font-size:16px!important;font-weight:700!important}.kourse-admin-code-display{margin:14px 0 18px;padding:18px;border:1px solid #dcdcde;border-radius:12px;background:#f6f7f7}.kourse-admin-code-display code{font-size:24px;font-weight:800;letter-spacing:2px;background:transparent;padding:0;color:#1d2327}@media(max-width:640px){.kourse-role-cards{grid-template-columns:1fr}.kourse-signup-header,.kourse-signup-form{padding-left:20px;padding-right:20px}.kourse-signup-header h2{font-size:25px}}

/* Kourse Boards */
.kourse-boards-admin textarea,.kourse-board-view textarea{width:100%;box-sizing:border-box;border:1px solid #c3c4c7;border-radius:10px;padding:10px;font-size:16px;line-height:1.5}.kourse-check-row{display:flex!important;align-items:center;gap:8px!important;font-weight:600}.kourse-check-row input{min-height:auto!important}.kourse-board-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #eceef0;text-decoration:none;color:#1d2327}.kourse-board-row:last-child{border-bottom:0}.kourse-board-row:hover .kourse-board-copy strong{color:#2271b1}.kourse-board-icon{width:44px;height:44px;border-radius:12px;background:#f3f5f7;display:flex;align-items:center;justify-content:center;font-size:21px;flex:0 0 auto}.kourse-board-copy{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.kourse-board-copy small,.kourse-board-meta small{color:#646970}.kourse-board-meta{display:flex;align-items:flex-end;flex-direction:column;gap:4px}.kourse-status-pill{display:inline-flex;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.kourse-status-pill.open{background:#edfaef;color:#227128}.kourse-status-pill.closed{background:#f0f0f1;color:#646970}.kourse-board-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:16px;padding:24px}.kourse-board-hero h1,.kourse-board-hero h2{margin:2px 0 10px}.kourse-board-hero p:last-child{margin-bottom:0;line-height:1.6}.kourse-board-hero-icon{width:64px;height:64px;border-radius:16px;background:#f3f5f7;display:flex;align-items:center;justify-content:center;font-size:30px;flex:0 0 auto}.kourse-board-actions{margin:0 0 18px}.kourse-board-compose{margin-bottom:18px}.kourse-board-posts{display:grid;gap:14px}.kourse-board-post{display:flex;align-items:flex-start;gap:12px;padding:15px;border:1px solid #e2e4e7;border-radius:12px;background:#fff}.kourse-board-post-body{flex:1;min-width:0}.kourse-board-post-body>p{margin:8px 0;line-height:1.6;white-space:normal}.kourse-board-post-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.kourse-board-post-head small{color:#646970}.kourse-board-replies{display:grid;gap:8px;margin-top:12px;padding-left:12px;border-left:3px solid #eef0f2}.kourse-board-reply{padding:9px 11px;border-radius:9px;background:#f7f8f9}.kourse-board-reply p{margin:4px 0 0}.kourse-reply-box{margin-top:10px}.kourse-reply-box summary{cursor:pointer;font-weight:650;color:#2271b1}.kourse-reply-box form{margin-top:10px}.kourse-board-delete-post{margin-top:8px}.kourse-board-browser{max-width:900px}.kourse-board-view{max-width:900px}
@media(max-width:640px){.kourse-board-row{align-items:flex-start;flex-wrap:wrap}.kourse-board-meta{width:100%;align-items:flex-start;padding-left:56px}.kourse-board-hero{padding:18px}.kourse-board-hero-icon{width:50px;height:50px;font-size:24px}.kourse-board-post-head{align-items:flex-start;flex-direction:column;gap:2px}}

/* Teacher dashboard */
.kourse-teacher-dashboard{max-width:1180px;margin:24px auto;display:grid;gap:20px}.kourse-teacher-nav{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:8px;border:1px solid #dcdcde;border-radius:14px;background:#fff}.kourse-teacher-nav a{padding:9px 13px;border-radius:9px;text-decoration:none;color:#3c434a;font-weight:650}.kourse-teacher-nav a:hover,.kourse-teacher-nav a.is-active{background:#f0f4f7;color:#1d2327}.kourse-teacher-hero h1{margin:2px 0 6px;font-size:30px}.kourse-teacher-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.kourse-teacher-metrics .kourse-metric{border:1px solid #dcdcde;border-radius:14px;background:#fff;padding:18px}.kourse-teacher-metrics .kourse-metric strong{display:block;font-size:28px;margin-top:5px}.kourse-action-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.kourse-action-card{display:flex;flex-direction:column;gap:5px;padding:15px;border:1px solid #e2e4e7;border-radius:12px;text-decoration:none;color:#1d2327;background:#fff}.kourse-action-card:hover{border-color:#aeb7c0;background:#f8fafb}.kourse-action-card strong{font-size:15px}.kourse-action-card span{font-size:12px;color:#646970;line-height:1.4}.kourse-teacher-board-list{display:grid}.kourse-teacher-board-list>a{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #eee;text-decoration:none;color:#1d2327}.kourse-teacher-board-list>a:last-child{border-bottom:0}.kourse-teacher-board-list>a>span:nth-child(2){display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}.kourse-teacher-board-list small{color:#646970}.kourse-dashboard-search{margin-bottom:15px}.kourse-directory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:9px}.kourse-directory-student{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid #e2e4e7;border-radius:11px;text-decoration:none;color:#1d2327}.kourse-directory-student>span:last-child{display:flex;min-width:0;flex-direction:column;gap:3px}.kourse-directory-student small{color:#646970;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kourse-report-links{display:grid}.kourse-report-links a{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #eee;text-decoration:none}.kourse-report-links a:last-child{border-bottom:0}.kourse-report-links strong{font-size:12px}.kourse-attention-list{display:grid;gap:8px}.kourse-attention-list article{padding:11px 12px;border:1px solid #ead9ad;border-radius:10px;background:#fffaf0}
@media(max-width:900px){.kourse-teacher-metrics,.kourse-action-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.kourse-teacher-metrics,.kourse-action-grid{grid-template-columns:1fr}.kourse-teacher-nav{align-items:stretch}.kourse-teacher-nav a{flex:1 1 40%;text-align:center}.kourse-directory-grid{grid-template-columns:1fr}}

/* Student front-end portal */
.kourse-student-portal{max-width:1100px;margin:24px auto}.kourse-student-nav{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:8px;margin-bottom:18px;border:1px solid #dcdcde;border-radius:14px;background:#fff}.kourse-student-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 14px;border-radius:9px;text-decoration:none;color:#3c434a;font-weight:700}.kourse-student-nav a:hover,.kourse-student-nav a.is-active{background:#f0f4f7;color:#1d2327}.kourse-student-portal .kourse-front-classes,.kourse-student-portal .kourse-board-browser,.kourse-student-portal .kourse-board-view{margin-top:0}.kourse-student-portal>.kourse-card{margin-top:0}@media(max-width:600px){.kourse-student-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.kourse-student-nav a{width:100%;box-sizing:border-box}.kourse-student-nav a:first-child{grid-column:1/-1}}

/* Teacher front-end portal */
.kourse-teacher-portal{max-width:1180px;margin:24px auto}.kourse-teacher-portal .kourse-page-heading{margin:4px 0 16px}.kourse-teacher-portal .kourse-page-heading h1{margin:2px 0 5px;font-size:30px}.kourse-teacher-portal .kourse-page-heading p:last-child{margin:0;color:#646970}.kourse-teacher-portal .kourse-grid.two{margin-top:0}.kourse-teacher-portal .kourse-board-view{margin-top:14px}.kourse-settings-list p{padding:10px 0;margin:0;border-bottom:1px solid #eee}.kourse-settings-list p:last-child{border-bottom:0}@media(max-width:600px){.kourse-teacher-portal{margin:14px auto}.kourse-teacher-portal .kourse-page-heading h1{font-size:25px}}


/* v1.8 dashboard color refresh */
.kourse-dashboard-hero{background:linear-gradient(135deg,#f5f9ff 0%,#eef8f4 54%,#fff8ea 100%);border-color:#d7e4ef}
.kourse-teacher-hero{background:linear-gradient(135deg,#eef6ff 0%,#f2f7ff 45%,#f7f1ff 100%)}
.kourse-student-dashboard .kourse-dashboard-hero{background:linear-gradient(135deg,#eef9ff 0%,#effbf5 50%,#fff8e9 100%)}
.kourse-dashboard-avatar{background:linear-gradient(135deg,#dcecff,#e7ddff);color:#3e4f7d;box-shadow:inset 0 0 0 1px rgba(75,93,140,.08)}
.kourse-teacher-metrics .kourse-metric:nth-child(1){background:#eef6ff;border-color:#cfe1f6}.kourse-teacher-metrics .kourse-metric:nth-child(2){background:#eefaf3;border-color:#cdebd8}.kourse-teacher-metrics .kourse-metric:nth-child(3){background:#fff8e8;border-color:#f0dfb9}.kourse-teacher-metrics .kourse-metric:nth-child(4){background:#f7f0ff;border-color:#dfcef4}
.kourse-teacher-metrics .kourse-metric:nth-child(1) strong{color:#255b91}.kourse-teacher-metrics .kourse-metric:nth-child(2) strong{color:#277244}.kourse-teacher-metrics .kourse-metric:nth-child(3) strong{color:#956516}.kourse-teacher-metrics .kourse-metric:nth-child(4) strong{color:#6c4792}
.kourse-action-card:nth-child(1){background:#f3f8ff;border-color:#d5e4f6}.kourse-action-card:nth-child(2){background:#f2fbf6;border-color:#d3eadb}.kourse-action-card:nth-child(3){background:#fff9ed;border-color:#efe1bf}.kourse-action-card:nth-child(4){background:#f8f2ff;border-color:#e2d3f2}
.kourse-action-card:hover{transform:translateY(-1px);box-shadow:0 5px 16px rgba(30,45,65,.06)}
.kourse-dashboard-class:nth-child(4n+1) .kourse-class-mark{background:#dfeeff;color:#2d5c8a}.kourse-dashboard-class:nth-child(4n+2) .kourse-class-mark{background:#dcf4e6;color:#2a6a43}.kourse-dashboard-class:nth-child(4n+3) .kourse-class-mark{background:#fff0c9;color:#8a6116}.kourse-dashboard-class:nth-child(4n+4) .kourse-class-mark{background:#eadffc;color:#66458f}
.kourse-dashboard-main{border-top:4px solid #7aa9d8}.kourse-join-card{background:#fffaf0;border-color:#ecdcae;border-top:4px solid #d9a63f}.kourse-learning-hub{border-top:4px solid #70b78d}.kourse-dashboard-lower>section:first-child{border-top:4px solid #9a7bd0}.kourse-dashboard-lower>section:last-child{border-top:4px solid #e29a69}
.kourse-learning-card:nth-child(4n+1){background:#f4f8ff}.kourse-learning-card:nth-child(4n+2){background:#f3fbf6}.kourse-learning-card:nth-child(4n+3){background:#fffaf0}.kourse-learning-card:nth-child(4n+4){background:#faf5ff}
.kourse-teacher-nav,.kourse-student-nav{background:#fbfcfe;border-color:#d9e2ea}.kourse-teacher-nav a.is-active{background:#e5f0ff;color:#245a8a}.kourse-student-nav a.is-active{background:#e6f7ee;color:#276c45}
.kourse-board-icon{background:#eef4ff}.kourse-directory-student:nth-child(4n+1) .kourse-avatar{background:#dfeeff;color:#2d5c8a}.kourse-directory-student:nth-child(4n+2) .kourse-avatar{background:#dcf4e6;color:#2a6a43}.kourse-directory-student:nth-child(4n+3) .kourse-avatar{background:#fff0c9;color:#8a6116}.kourse-directory-student:nth-child(4n+4) .kourse-avatar{background:#eadffc;color:#66458f}
.kourse-edit-class-card{margin-bottom:14px;background:linear-gradient(135deg,#f8fbff,#f6fbf8);border-color:#d5e4ea;padding:0;overflow:hidden}.kourse-edit-class-card[open]{padding-bottom:16px}.kourse-edit-class-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 16px;cursor:pointer;list-style:none}.kourse-edit-class-summary::-webkit-details-marker{display:none}.kourse-edit-class-summary strong{display:block}.kourse-edit-class-summary small{display:block;margin-top:2px;color:#68727d;font-size:12px;font-weight:400}.kourse-edit-class-chevron{font-size:20px;line-height:1;transition:transform .15s ease}.kourse-edit-class-card[open] .kourse-edit-class-chevron{transform:rotate(180deg)}.kourse-edit-class-form{padding:2px 16px 0}.kourse-edit-class-form textarea{min-height:62px}.kourse-edit-class-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.kourse-edit-class-toggle{font-weight:650}.kourse-class-description{max-width:760px;color:#5d6670;line-height:1.55}.kourse-class-danger-row{justify-content:flex-end;margin:-2px 0 14px}.kourse-class-heading h1{margin:2px 0 4px}.kourse-class-heading p{margin:0}.kourse-code-card{background:#fffaf0;border-color:#eadab2}.kourse-code-value{background:#fff3cf;color:#79550e}

.kourse-edit-page{max-width:820px;margin:0 auto}.kourse-edit-page .kourse-section-heading{margin-bottom:14px}.kourse-edit-page .kourse-section-heading h1{margin:2px 0 5px}.kourse-edit-page .kourse-section-heading p:last-child{margin:0;color:#68727d}.kourse-edit-page-form{padding:20px}.kourse-edit-page-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:4px}

.kourse-prediction-builder{margin:8px 0 12px;padding:16px;border:1px solid #d9e4ef;border-radius:14px;background:#f8fbff}
.kourse-prediction-builder[hidden],.kourse-quadrant-editor[hidden]{display:none!important}
.kourse-prediction-builder-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:8px}
.kourse-prediction-builder-head label{display:flex;align-items:center;gap:8px;margin:0}
.kourse-prediction-builder-head select{min-width:76px}
.kourse-quadrant-editor{padding:12px 0;border-top:1px solid #e4ebf2}
.kourse-quadrant-editor:first-of-type{border-top:0}
.kourse-prediction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}
.kourse-prediction-quadrant{padding:0;overflow:hidden}
.kourse-quadrant-head{padding:18px;background:linear-gradient(135deg,#f8fbff,#fbf7ff);border-bottom:1px solid #e5eaf0}
.kourse-quadrant-head>span{display:inline-block;margin-bottom:5px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#667085}
.kourse-quadrant-head h3{margin:0 0 8px}
.kourse-quadrant-head p{margin:0;line-height:1.5}
.kourse-quadrant-response-form{padding:16px;border-bottom:1px solid #e5eaf0}
.kourse-quadrant-responses{padding:16px}
.kourse-quadrant-responses .kourse-board-post{margin-bottom:12px}
@media(max-width:760px){.kourse-prediction-grid{grid-template-columns:1fr}}

/* Student growth, profiles, XP, streaks, and journal */
.kourse-dashboard-avatar-link{text-decoration:none;font-size:34px}
.kourse-profile-hero{display:flex;align-items:center;gap:22px;background:linear-gradient(135deg,#f5f9ff,#fff8ef)}
.kourse-profile-avatar{display:grid;place-items:center;width:96px;height:96px;border-radius:26px;background:#fff;border:1px solid #e2e8f0;font-size:52px;flex:0 0 auto}
.kourse-profile-hero h2{margin:2px 0 7px}.kourse-profile-hero p{margin:0 0 12px}
.kourse-profile-stats{display:flex;gap:10px;flex-wrap:wrap}.kourse-profile-stats span{padding:8px 12px;border-radius:12px;background:#fff;border:1px solid #e4e9ef;font-size:12px}.kourse-profile-stats strong{font-size:17px;margin-right:4px}
.kourse-avatar-picker{border:0;padding:0;margin:6px 0 16px}.kourse-avatar-picker legend{font-weight:700;margin-bottom:8px}
.kourse-avatar-picker{display:grid;grid-template-columns:repeat(6,minmax(72px,1fr));gap:8px}
.kourse-avatar-picker label{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:76px;border:1px solid #dfe5ec;border-radius:13px;background:#fff;cursor:pointer}
.kourse-avatar-picker label.is-selected,.kourse-avatar-picker label:has(input:checked){border-color:#7d93b2;background:#f2f7ff}
.kourse-avatar-picker input{position:absolute;opacity:0;pointer-events:none}.kourse-avatar-picker span{font-size:29px}.kourse-avatar-picker small{font-size:11px}
.kourse-classmate-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.kourse-classmate-card{text-decoration:none;color:inherit;text-align:center;display:flex;flex-direction:column;align-items:center;gap:5px}.kourse-classmate-avatar{display:grid;place-items:center;width:70px;height:70px;border-radius:20px;background:#f6f8fb;font-size:38px}.kourse-classmate-card small{color:#68727d}
.kourse-profile-journal-card{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#fff9ed,#fff)}.kourse-profile-journal-card h3{margin:2px 0 5px}.kourse-profile-journal-card p{margin:0}
.kourse-xp-badge{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:#fff2ca;color:#72510a;font-weight:800}
.kourse-journal-today{background:linear-gradient(135deg,#fffdf7,#f7fbff)}.kourse-journal-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.kourse-word-counter{font-weight:700;color:#64707c}
.kourse-journal-complete{padding:16px;border-radius:14px;background:#f3faf4;border:1px solid #d7ead9}.kourse-journal-complete p{line-height:1.6}.kourse-journal-history details{padding:12px 0;border-top:1px solid #e7ebef}.kourse-journal-history summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer}.kourse-journal-prompt{font-weight:700;color:#56616d}
.kourse-prompt-list article{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:12px 0;border-top:1px solid #e7ebef}.kourse-prompt-list article:first-child{border-top:0}
@media(max-width:760px){.kourse-avatar-picker{grid-template-columns:repeat(3,1fr)}.kourse-classmate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kourse-profile-hero{align-items:flex-start}.kourse-profile-journal-card{align-items:flex-start;flex-direction:column}}
@media(max-width:440px){.kourse-classmate-grid{grid-template-columns:1fr}.kourse-profile-hero{flex-direction:column}}

/* Teacher Student View preview */
.kourse-student-view-controls{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.kourse-student-view-selector{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.kourse-student-view-selector label{display:flex;flex-direction:column;gap:5px;font-weight:700}
.kourse-student-view-selector select{min-width:260px}
.kourse-preview-badge{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:#eef5ff;border:1px solid #d6e5fa;color:#38577c;font-weight:700;font-size:12px}
.kourse-student-preview-shell{margin-top:16px;padding:14px;border:2px dashed #d7e0ea;border-radius:18px;background:#f9fbfd}
.kourse-preview-ribbon{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:-2px 0 12px;padding:10px 12px;border-radius:12px;background:#fff7dc;border:1px solid #ead99a;color:#6c5514}
.kourse-preview-ribbon span{font-size:12px;color:#7b6d46}
.kourse-preview-nav{pointer-events:none}
.kourse-preview-nav span{display:inline-flex;align-items:center;padding:10px 12px;border-radius:10px;font-weight:700;color:#5d6873}
.kourse-preview-nav span.is-active{background:#eef4fb;color:#263b52}
.kourse-student-preview-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}
.kourse-student-preview-stats section{padding:14px;border-radius:14px;background:#fff;border:1px solid #e2e7ed}
.kourse-student-preview-stats small{display:block;color:#6b7480;margin-bottom:4px}.kourse-student-preview-stats strong{font-size:20px}
.kourse-student-preview-shell button[disabled],.kourse-student-preview-shell input[disabled]{opacity:.65;cursor:not-allowed}
@media(max-width:760px){.kourse-student-preview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.kourse-student-view-selector select{min-width:0;width:100%}}

/* Compact Student View control */
.kourse-teacher-portal{position:relative}
.kourse-student-view-eye{position:absolute;top:4px;right:4px;z-index:20;display:grid;place-items:center;width:42px;height:42px;border:1px solid #dbe3ec;border-radius:12px;background:#fff;color:#34495e;text-decoration:none;font-size:22px;line-height:1;box-shadow:0 3px 12px rgba(31,48,67,.08);transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.kourse-student-view-eye:hover,.kourse-student-view-eye:focus{background:#f3f7fb;transform:translateY(-1px);box-shadow:0 5px 16px rgba(31,48,67,.13)}
.kourse-student-view-eye::after{content:attr(data-tooltip);position:absolute;right:0;top:calc(100% + 8px);padding:6px 9px;border-radius:7px;background:#263746;color:#fff;font-size:12px;font-weight:700;white-space:nowrap;opacity:0;visibility:hidden;transform:translateY(-3px);transition:opacity .12s ease,transform .12s ease,visibility .12s}
.kourse-student-view-eye:hover::after,.kourse-student-view-eye:focus::after{opacity:1;visibility:visible;transform:translateY(0)}

/* =========================================================
   Kourse Suite 2.1 visual overhaul
   ========================================================= */
.kourse-student-portal,.kourse-teacher-portal{
    box-sizing:border-box;
    max-width:1480px;
    margin:0 auto;
    min-height:760px;
    border-radius:24px;
    overflow:visible;
}
.kourse-student-portal{
    display:grid;
    grid-template-columns:190px minmax(0,1fr);
    column-gap:22px;
    padding:0 22px 28px 0;
    background:linear-gradient(180deg,#edf7ff 0%,#f8fbff 45%,#f4fbf7 100%);
}
.kourse-student-portal>.kourse-student-nav{grid-column:1;grid-row:1/span 50}
.kourse-student-portal>*:not(.kourse-student-nav){grid-column:2}
.kourse-student-nav{
    align-self:stretch;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:7px;
    padding:24px 14px;
    margin:0;
    min-height:100%;
    background:#fff;
    border-right:1px solid #dce9f5;
    border-radius:24px 0 0 24px;
    box-shadow:5px 0 18px rgba(75,116,157,.05);
}
.kourse-student-nav::before{
    content:"Kourse";
    display:block;
    padding:8px 11px 22px;
    font-size:29px;
    line-height:1;
    font-weight:900;
    letter-spacing:-1.4px;
    color:#0e315f;
}
.kourse-student-nav a,.kourse-student-nav span{
    display:flex;
    align-items:center;
    min-height:43px;
    padding:0 13px;
    border-radius:11px;
    text-decoration:none;
    font-weight:700;
    color:#48617d;
    transition:.16s ease;
}
.kourse-student-nav a:hover{background:#edf6ff;color:#176fc9}
.kourse-student-nav a.is-active,.kourse-student-nav span.is-active{
    background:linear-gradient(135deg,#1684ee,#297cf0);
    color:#fff;
    box-shadow:0 7px 16px rgba(39,126,235,.22);
}
.kourse-student-dashboard .kourse-dashboard-hero{
    margin:22px 0 14px;
    min-height:86px;
    padding:20px 24px;
    border:0;
    border-radius:18px;
    background:linear-gradient(110deg,#dff2ff 0%,#edf4ff 58%,#f6fbff 100%);
    box-shadow:none;
}
.kourse-student-dashboard .kourse-dashboard-hero h2{
    font-size:27px;
    color:#102a56;
    margin:1px 0 4px;
}
.kourse-student-dashboard .kourse-dashboard-hero p{color:#48617c}
.kourse-student-dashboard .kourse-dashboard-avatar{
    width:54px;height:54px;border-radius:50%;
    background:#fff;border:4px solid rgba(255,255,255,.78);
    font-size:30px;
    box-shadow:0 6px 17px rgba(34,79,125,.12);
}
.kourse-student-progress-panel{
    display:grid;
    grid-template-columns:112px minmax(0,1fr) 180px;
    align-items:center;
    gap:20px;
    padding:18px 20px;
    border:0!important;
    background:linear-gradient(135deg,#fff 0%,#f7fbff 62%,#e9fff1 100%)!important;
    box-shadow:0 10px 28px rgba(49,91,133,.09)!important;
}
.kourse-student-progress-avatar{
    display:grid;place-items:center;
    width:94px;height:94px;border-radius:50%;
    font-size:51px;
    background:linear-gradient(145deg,#6fc8ff,#b5edff);
    border:4px solid #1a9ee9;
    box-shadow:inset 0 0 0 5px rgba(255,255,255,.55);
}
.kourse-student-progress-title{display:flex;align-items:end;justify-content:space-between;gap:12px}
.kourse-student-progress-title h3{margin:0;color:#172f59;font-size:25px}
.kourse-student-progress-title span{font-weight:800;color:#586b81}
.kourse-xp-progress{height:12px;margin:10px 0 13px;background:#e5edf5;border-radius:999px;overflow:hidden}
.kourse-xp-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ffb000,#ffca28)}
.kourse-student-progress-stats{display:flex;gap:19px;flex-wrap:wrap;color:#51647a;font-size:13px}
.kourse-student-progress-stats strong{color:#132f57}
.kourse-student-motto{
    align-self:stretch;display:grid;place-items:center;text-align:center;
    padding:14px;border-radius:15px;
    background:linear-gradient(145deg,#d8fae7,#c7f8e3);
    color:#146675;font-size:19px;font-weight:900;line-height:1.22;
}
.kourse-student-feature-grid{
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:14px 0;
}
.kourse-student-feature{
    position:relative;min-height:126px;padding:17px 16px 15px;border-radius:16px;
    display:flex;flex-direction:column;gap:5px;text-decoration:none;color:#173154;
    box-shadow:0 7px 18px rgba(54,82,113,.06);
    transition:transform .15s ease,box-shadow .15s ease;
}
.kourse-student-feature:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(54,82,113,.11)}
.kourse-student-feature>span{font-size:30px}.kourse-student-feature>strong{font-size:17px}
.kourse-student-feature>small{line-height:1.3;color:#536980}.kourse-student-feature>b{position:absolute;right:15px;bottom:11px;font-size:20px}
.kourse-student-feature.is-blue{background:linear-gradient(135deg,#aee6ff,#d9f3ff)}
.kourse-student-feature.is-purple{background:linear-gradient(135deg,#d4c5ff,#eee8ff)}
.kourse-student-feature.is-green{background:linear-gradient(135deg,#b9f0c4,#ddf9df)}
.kourse-student-feature.is-pink{background:linear-gradient(135deg,#ffc6db,#ffe2eb)}
.kourse-student-banner{
    display:flex;align-items:center;justify-content:center;gap:22px;
    min-height:92px;margin:4px 0 15px;padding:14px 22px;
    border-radius:16px;
    background:linear-gradient(90deg,#aee4ff,#dff4ff 52%,#f5e9ff);
    overflow:hidden;color:#173a69;
}
.kourse-student-banner-art{font-size:34px;letter-spacing:4px}
.kourse-student-banner strong{display:block;font-size:25px;line-height:1.05}
.kourse-student-banner small{display:block;margin-top:5px;font-size:13px}
.kourse-student-dashboard .kourse-card{
    border:1px solid rgba(181,204,225,.55);
    border-radius:16px;
    box-shadow:0 6px 18px rgba(58,89,121,.05);
}
.kourse-student-dashboard .kourse-dashboard-main{border-top:5px solid #4ab7f5}
.kourse-student-dashboard .kourse-join-card{border-top:5px solid #ffc653}
.kourse-student-dashboard .kourse-learning-hub{border-top:5px solid #6fd28b}
.kourse-student-dashboard .kourse-dashboard-lower .kourse-card:first-child{border-top:5px solid #aa7bf6}
.kourse-student-dashboard .kourse-dashboard-lower .kourse-card:last-child{border-top:5px solid #ff9d64}
.kourse-student-dashboard .kourse-learning-card{
    border-radius:14px;
    border:1px solid #e0e8f0;
    background:linear-gradient(145deg,#fff,#f9fbfd);
}

/* Teacher dashboard */
.kourse-teacher-portal{
    display:grid;
    grid-template-columns:190px minmax(0,1fr);
    column-gap:22px;
    padding:0 22px 28px 0;
    background:linear-gradient(180deg,#f5f8fc,#fbfcfe);
}
.kourse-teacher-portal>.kourse-teacher-nav{grid-column:1;grid-row:1/span 60}
.kourse-teacher-portal>*:not(.kourse-teacher-nav):not(.kourse-student-view-eye){grid-column:2}
.kourse-teacher-nav{
    display:flex;flex-direction:column;align-items:stretch;gap:7px;
    min-height:100%;padding:25px 14px;margin:0;
    background:linear-gradient(180deg,#102f54,#173c64 58%,#0e2c4e);
    border-radius:24px 0 0 24px;
    box-shadow:7px 0 20px rgba(15,47,82,.08);
}
.kourse-teacher-nav::before{
    content:"Kourse";display:block;padding:8px 10px 22px;
    color:#fff;font-size:29px;font-weight:900;letter-spacing:-1.4px;
}
.kourse-teacher-nav a{
    display:flex;align-items:center;min-height:43px;padding:0 13px;
    border-radius:10px;color:#e4edf7;text-decoration:none;font-weight:700;
}
.kourse-teacher-nav a:hover{background:rgba(255,255,255,.08)}
.kourse-teacher-nav a.is-active{background:#2c6aa1;color:#fff}
.kourse-teacher-hero{
    margin-top:22px!important;
    background:linear-gradient(105deg,#f7f9ff,#edf3ff)!important;
    color:#162f55!important;
    border:0!important;
    box-shadow:none!important;
}
.kourse-teacher-hero h1{font-size:28px!important;color:#122a50!important}
.kourse-teacher-hero p{color:#536b86!important}
.kourse-teacher-metrics{gap:13px!important}
.kourse-teacher-metrics .kourse-metric{
    min-height:105px;border:0!important;border-radius:15px!important;
    box-shadow:0 7px 18px rgba(38,68,98,.05)!important;
}
.kourse-teacher-metrics .kourse-metric:nth-child(1){background:linear-gradient(135deg,#dfd2ff,#f1eaff)!important}
.kourse-teacher-metrics .kourse-metric:nth-child(2){background:linear-gradient(135deg,#c6f4d0,#e1fae6)!important}
.kourse-teacher-metrics .kourse-metric:nth-child(3){background:linear-gradient(135deg,#ffe7a9,#fff2cc)!important}
.kourse-teacher-metrics .kourse-metric:nth-child(4){background:linear-gradient(135deg,#ffcfe1,#ffe5ee)!important}
.kourse-teacher-dashboard .kourse-card{
    border:1px solid #e0e7ef;border-radius:16px;
    box-shadow:0 6px 18px rgba(37,65,95,.05);
}
.kourse-teacher-dashboard .kourse-action-card{
    border:0!important;border-radius:14px!important;min-height:90px;
}
.kourse-teacher-dashboard .kourse-action-card:nth-child(1){background:#d8ecff!important}
.kourse-teacher-dashboard .kourse-action-card:nth-child(2){background:#eadfff!important}
.kourse-teacher-dashboard .kourse-action-card:nth-child(3){background:#d7f7df!important}
.kourse-teacher-dashboard .kourse-action-card:nth-child(4){background:#ffddea!important}
.kourse-student-view-eye{
    top:28px!important;right:36px!important;
    width:43px!important;height:43px!important;border-radius:50%!important;
    background:#fff!important;border:1px solid #dce5ef!important;
    font-size:21px!important;
}

/* Shared polish */
.kourse-card h2,.kourse-card h3,.kourse-card h4{color:#173154}
.kourse-section-heading a{font-weight:800;color:#1779d1}
.kourse-count{background:#eef4fb;color:#365a7d}
.kourse-status-pill.open{background:#d9f6e1;color:#277341}
.kourse-dashboard-class{border-radius:12px!important}
.kourse-class-mark{border-radius:10px!important}
.kourse-form input,.kourse-form textarea,.kourse-form select{
    border-radius:10px!important;border-color:#cfdae6!important;
}
.kourse-form .button-primary,.kourse-student-dashboard .button-primary,.kourse-teacher-dashboard .button-primary{
    border-radius:10px!important;
    background:linear-gradient(135deg,#1684ee,#246fe2)!important;
    border-color:#1e75df!important;
    box-shadow:0 5px 12px rgba(33,116,222,.18)!important;
}

/* Responsive */
@media(max-width:980px){
    .kourse-student-portal,.kourse-teacher-portal{grid-template-columns:150px minmax(0,1fr);column-gap:14px}
    .kourse-student-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .kourse-student-progress-panel{grid-template-columns:90px minmax(0,1fr)}
    .kourse-student-motto{grid-column:1/-1;min-height:62px}
}
@media(max-width:720px){
    .kourse-student-portal,.kourse-teacher-portal{
        display:block;padding:0 12px 22px;border-radius:0;
    }
    .kourse-student-nav,.kourse-teacher-nav{
        position:sticky;top:0;z-index:30;
        flex-direction:row;overflow-x:auto;min-height:auto;
        margin:0 -12px 14px;padding:9px 10px;border-radius:0;
    }
    .kourse-student-nav::before,.kourse-teacher-nav::before{display:none}
    .kourse-student-nav a,.kourse-teacher-nav a{white-space:nowrap;flex:0 0 auto}
    .kourse-student-progress-panel{grid-template-columns:1fr;text-align:center}
    .kourse-student-progress-avatar{margin:0 auto}
    .kourse-student-progress-title{justify-content:center}
    .kourse-student-progress-stats{justify-content:center}
    .kourse-student-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .kourse-student-banner{flex-direction:column;text-align:center}
    .kourse-student-view-eye{position:fixed!important;top:auto!important;right:18px!important;bottom:18px!important}
}

/* Journal sharing and feed */
.kourse-journal-privacy{border:0;padding:0;margin:16px 0}
.kourse-journal-privacy legend{font-weight:800;margin-bottom:10px;color:#173154}
.kourse-journal-privacy{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.kourse-journal-privacy label{position:relative;display:grid;grid-template-columns:auto 1fr;column-gap:9px;row-gap:2px;padding:12px;border:1px solid #dce5ef;border-radius:13px;background:#fff;cursor:pointer}
.kourse-journal-privacy label:has(input:checked){border-color:#4c91d9;background:#f2f8ff;box-shadow:0 0 0 2px rgba(76,145,217,.08)}
.kourse-journal-privacy input{position:absolute;opacity:0}
.kourse-journal-privacy-icon{grid-row:1/3;font-size:24px}
.kourse-journal-privacy strong{color:#173154}.kourse-journal-privacy small{color:#66758a;line-height:1.25}
.kourse-journal-visibility-pill{display:inline-flex;align-items:center;gap:4px;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
.kourse-journal-visibility-pill.private{background:#eef1f4;color:#53606d}
.kourse-journal-visibility-pill.classmates{background:#e9f2ff;color:#28669d}
.kourse-journal-visibility-pill.world{background:#e6f7eb;color:#24703b}
.kourse-journal-complete-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.kourse-journal-history-footer{display:flex;align-items:end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:12px}
.kourse-journal-sharing-form{display:flex;align-items:end;gap:8px;flex-wrap:wrap}
.kourse-journal-sharing-form label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700}
.kourse-journal-sharing-form select{min-width:150px}
.kourse-journal-feed-tabs{display:flex;gap:8px;margin:0 0 14px}
.kourse-journal-feed-tabs a{padding:9px 13px;border-radius:10px;background:#eef3f8;color:#4e6279;text-decoration:none;font-weight:800}
.kourse-journal-feed-tabs a.is-active{background:#237fd8;color:#fff}
.kourse-journal-feed-list{display:grid;gap:14px}
.kourse-journal-feed-card{padding:16px;border:1px solid #e0e7ef;border-radius:15px;background:linear-gradient(145deg,#fff,#fbfdff)}
.kourse-journal-feed-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center}
.kourse-journal-feed-avatar{display:grid;place-items:center;width:45px;height:45px;border-radius:13px;background:#edf6ff;font-size:27px}
.kourse-journal-feed-head strong{display:block;color:#173154}.kourse-journal-feed-head small{display:block;margin-top:2px;color:#7a8795}
.kourse-journal-feed-prompt{margin:14px 0 7px;font-weight:800;color:#38526f}
.kourse-journal-feed-content{margin:0;line-height:1.62;color:#2f3f50}
.kourse-journal-feed-meta{margin-top:12px;font-size:12px;color:#7b8793}
.kourse-public-journal-feed{max-width:900px;margin:0 auto}
@media(max-width:720px){.kourse-journal-privacy{grid-template-columns:1fr}.kourse-journal-feed-head{grid-template-columns:auto minmax(0,1fr)}.kourse-journal-feed-head .kourse-journal-visibility-pill{grid-column:1/-1;justify-self:start}}

/* =========================================================
   Kourse unified access screen
   ========================================================= */
.kourse-access-wrap{max-width:1120px;margin:32px auto}
.kourse-access-shell{
    display:grid;
    grid-template-columns:minmax(300px,.86fr) minmax(420px,1.14fr);
    padding:0!important;
    overflow:hidden;
    border:1px solid #dbe6f0!important;
    border-radius:24px!important;
    background:#fff!important;
    box-shadow:0 22px 60px rgba(34,67,100,.12)!important;
}
.kourse-access-visual{
    min-height:640px;
    padding:42px 38px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    background:
        radial-gradient(circle at 80% 18%,rgba(255,255,255,.55),transparent 25%),
        linear-gradient(145deg,#bfe8ff 0%,#d8ecff 36%,#d9f7e3 100%);
    color:#15385f;
}
.kourse-access-brand,.kourse-signin-brand{
    display:inline-block;
    align-self:flex-start;
    font-size:34px;
    line-height:1;
    font-weight:900;
    letter-spacing:-1.6px;
    color:#12365d;
}
.kourse-access-art{margin:72px 0 22px;font-size:58px;letter-spacing:10px}
.kourse-access-visual h2{margin:0 0 9px;font-size:34px;line-height:1.08;color:#123259}
.kourse-access-visual p{max-width:390px;margin:0;font-size:16px;line-height:1.55;color:#49657d}
.kourse-access-mini-cards{display:flex;gap:8px;flex-wrap:wrap;margin-top:26px}
.kourse-access-mini-cards span{
    padding:8px 11px;border-radius:999px;background:rgba(255,255,255,.72);
    font-size:12px;font-weight:800;color:#31536f;
}
.kourse-access-main{padding:34px 42px 42px}
.kourse-access-tabs{
    display:grid;grid-template-columns:1fr 1fr;gap:5px;
    padding:5px;margin-bottom:30px;border-radius:13px;background:#edf3f8;
}
.kourse-access-tabs button{
    min-height:43px;border:0;border-radius:9px;background:transparent;
    color:#607086;font-size:14px;font-weight:800;cursor:pointer;
}
.kourse-access-tabs button.is-active{
    background:#fff;color:#176fc9;box-shadow:0 3px 10px rgba(45,75,106,.09);
}
.kourse-access-panel{display:none}
.kourse-access-panel.is-active{display:block}
.kourse-access-heading{margin-bottom:22px}
.kourse-access-heading h2{margin:0 0 5px;font-size:27px;color:#153254}
.kourse-access-heading p{margin:0;color:#6c7b8b}
.kourse-access-section{padding:0}
.kourse-signin-shell{max-width:540px;margin:34px auto;padding:34px!important;text-align:left}
.kourse-signin-shell>h2{margin:25px 0 5px;color:#153254}
.kourse-signin-shell>p{color:#6b7a89}
.kourse-signin-form{display:grid;gap:15px}
.kourse-signin-form label{font-weight:800;color:#334c66}
.kourse-signin-form input[type="text"],
.kourse-signin-form input[type="email"],
.kourse-signin-form input[type="password"],
.kourse-signin-form input[name="kourse_login"]{
    width:100%;min-height:47px;margin-top:6px;padding:10px 12px;
    border:1px solid #ccd9e5;border-radius:11px;background:#fbfdff;
}
.kourse-signin-options{display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:13px}
.kourse-signin-options a{font-weight:800;color:#1976ce;text-decoration:none}
.kourse-remember{display:flex!important;align-items:center;gap:7px;font-weight:700!important}
.kourse-remember input{margin:0}
.kourse-signin-primary{width:100%;min-height:48px;margin-top:5px}
.kourse-access-main .kourse-signup-shell{box-shadow:none!important;border:0!important;padding:0!important}
.kourse-access-main .kourse-form-grid{gap:12px}
.kourse-access-main .kourse-role-cards{margin-top:0}
.kourse-access-main .kourse-signup-submit{width:100%;min-height:48px}
.kourse-access-start-signup .button{width:100%;min-height:48px}
.kourse-access-signed-in{max-width:560px!important;display:block!important;margin:40px auto;text-align:center;padding:38px!important}
.kourse-access-signed-in .kourse-access-brand{align-self:center;margin-bottom:24px}

@media(max-width:820px){
    .kourse-access-wrap{margin:12px auto}
    .kourse-access-shell{grid-template-columns:1fr;border-radius:18px!important}
    .kourse-access-visual{min-height:220px;padding:26px}
    .kourse-access-art{margin:28px 0 12px;font-size:38px}
    .kourse-access-visual h2{font-size:27px}
    .kourse-access-mini-cards{margin-top:16px}
    .kourse-access-main{padding:26px}
}
@media(max-width:520px){
    .kourse-access-main{padding:20px 16px 24px}
    .kourse-access-visual{padding:22px 18px}
    .kourse-access-art{font-size:31px;letter-spacing:5px}
    .kourse-access-tabs{margin-bottom:22px}
    .kourse-signin-options{align-items:flex-start;flex-direction:column}
}

.kourse-access-account-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:20px}
.kourse-access-account-actions .button{min-width:150px;min-height:46px;display:inline-flex;align-items:center;justify-content:center}
.kourse-logout-button{background:#fff!important;border:1px solid #d4dee8!important;color:#526579!important;box-shadow:none!important}
.kourse-logout-button:hover{background:#f5f8fb!important;color:#173154!important}

/* Board preset picker */
.kourse-board-preset-box{
    margin:0 0 18px;
    padding:14px 16px;
    border:1px solid #cfe0f2;
    border-radius:14px;
    background:linear-gradient(135deg,#f4f9ff 0%,#f7fcf8 100%);
}
.kourse-board-preset-box label{display:grid;gap:7px;margin:0!important}
.kourse-board-preset-box strong{font-size:14px;color:#183b61}
.kourse-board-preset-box select{width:100%;min-height:44px;border-radius:10px}
.kourse-board-preset-box small{color:#667a8f;line-height:1.4}

/* Kourse XP Leaderboard */
.kourse-leaderboard{overflow:hidden}
.kourse-leaderboard-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}
.kourse-leaderboard-head h2{margin:4px 0 6px;font-size:30px}
.kourse-leaderboard-head p{margin:0;color:#66758a}
.kourse-eyebrow{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#5974d9}
.kourse-leaderboard-trophy{font-size:54px}
.kourse-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:8px 0 24px}
.kourse-podium-card{border:1px solid #e5eaf1;border-radius:18px;padding:18px;text-align:center;background:#fff;box-shadow:0 8px 22px rgba(31,50,81,.06);position:relative}
.kourse-podium-card.place-1{transform:translateY(-6px)}
.kourse-podium-card.is-current{outline:3px solid rgba(73,108,220,.16)}
.kourse-podium-medal{font-size:30px}
.kourse-podium-avatar{font-size:42px;line-height:1.2;margin:6px 0}
.kourse-podium-card strong,.kourse-podium-card span,.kourse-podium-card b,.kourse-podium-card small{display:block}
.kourse-podium-card span,.kourse-podium-card small{color:#6c788c}
.kourse-podium-card b{font-size:20px;margin-top:6px}
.kourse-leaderboard-table-wrap{overflow-x:auto}
.kourse-leaderboard-table{width:100%;border-collapse:separate;border-spacing:0 8px}
.kourse-leaderboard-table th{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#7c8797;text-align:left;padding:0 12px 4px}
.kourse-leaderboard-table td{background:#f8fafc;padding:13px 12px;border-top:1px solid #edf1f5;border-bottom:1px solid #edf1f5}
.kourse-leaderboard-table td:first-child{border-left:1px solid #edf1f5;border-radius:12px 0 0 12px}
.kourse-leaderboard-table td:last-child{border-right:1px solid #edf1f5;border-radius:0 12px 12px 0}
.kourse-leaderboard-table tr.is-current td{background:#eef4ff;border-color:#dce7ff}
.kourse-leaderboard-table td:nth-child(2){display:flex;align-items:center;gap:9px}
.kourse-rank-avatar{font-size:24px}
.kourse-leaderboard-table em{font-style:normal;font-size:12px;font-weight:800;color:#4a68c8}
.kourse-my-rank{margin-top:18px;border-radius:14px;padding:14px 16px;background:#172c4c;color:#fff;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.kourse-my-rank span{opacity:.75}
@media(max-width:720px){
  .kourse-podium{grid-template-columns:1fr}
  .kourse-podium-card.place-1{transform:none}
  .kourse-leaderboard-trophy{font-size:40px}
}

.kourse-leaderboard-filter{display:flex;align-items:center;gap:10px;margin:0 0 22px;padding:12px 14px;background:#f8fafc;border:1px solid #e7edf4;border-radius:14px}
.kourse-leaderboard-filter label{font-weight:800;color:#33445f}
.kourse-leaderboard-filter select{min-width:220px}
.kourse-teacher-leaderboard-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 20px}
.kourse-teacher-leaderboard-summary>div{background:#f8fafc;border:1px solid #e8edf3;border-radius:14px;padding:14px}
.kourse-teacher-leaderboard-summary span{display:block;color:#788599;font-size:12px;text-transform:uppercase;letter-spacing:.06em;font-weight:800}
.kourse-teacher-leaderboard-summary strong{display:block;margin-top:4px;font-size:24px;color:#1d2d48}
@media(max-width:720px){.kourse-teacher-leaderboard-summary{grid-template-columns:1fr}.kourse-leaderboard-filter{align-items:stretch;flex-direction:column}.kourse-leaderboard-filter select{width:100%;min-width:0}}

.kourse-reports-tabs{display:flex;gap:8px;margin:0 0 18px;padding:6px;background:#f3f6fa;border:1px solid #e3e9f1;border-radius:14px;width:max-content;max-width:100%}
.kourse-reports-tabs a{display:inline-flex;align-items:center;justify-content:center;padding:9px 15px;border-radius:10px;text-decoration:none;font-weight:800;color:#627086}
.kourse-reports-tabs a.is-active{background:#fff;color:#24478f;box-shadow:0 2px 8px rgba(26,44,72,.08)}

.kourse-teacher-profile{max-width:960px}
.kourse-profile-hero{display:flex;align-items:center;gap:18px;margin-bottom:22px}
.kourse-profile-avatar-large{width:76px;height:76px;border-radius:22px;background:#eef4ff;display:flex;align-items:center;justify-content:center;font-size:40px;flex:0 0 auto}
.kourse-profile-form{display:grid;gap:18px}
.kourse-form-group{display:grid;gap:8px}
.kourse-form-group label{font-weight:800;color:#2d3e5f}
.kourse-form-group input[type=text],.kourse-form-group textarea{width:100%;max-width:680px}
.kourse-form-group small{color:#7c8799}
.kourse-avatar-grid{display:flex;flex-wrap:wrap;gap:10px}
.kourse-avatar-choice input{position:absolute;opacity:0;pointer-events:none}
.kourse-avatar-choice span{width:48px;height:48px;border:2px solid #e2e8f0;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:26px;cursor:pointer;background:#fff}
.kourse-avatar-choice input:checked+span{border-color:#3b69d1;box-shadow:0 0 0 3px rgba(59,105,209,.12)}
.kourse-profile-preview{margin-top:28px;padding-top:22px;border-top:1px solid #e8edf3}
.kourse-teacher-profile-card{margin-top:10px;display:flex;gap:16px;align-items:flex-start;padding:18px;border:1px solid #e2e8f0;border-radius:18px;background:#f9fbfd}
.kourse-teacher-profile-card h3{margin:0 0 4px}
.kourse-profile-role{display:inline-block;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#5872a8}
.kourse-muted{color:#8792a3}
@media(max-width:640px){.kourse-profile-hero,.kourse-teacher-profile-card{align-items:flex-start}.kourse-profile-avatar-large{width:62px;height:62px;font-size:32px}}

.kourse-teacher-network{max-width:1180px}
.kourse-network-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:20px}
.kourse-network-panel{border:1px solid #e4eaf1;border-radius:18px;padding:18px;background:#fbfcfe}
.kourse-network-panel h3{margin-top:0}
.kourse-teacher-directory{display:grid;gap:10px}
.kourse-teacher-directory-card{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;background:#fff;border:1px solid #e5eaf1;border-radius:14px;padding:12px}
.kourse-teacher-directory-avatar{width:46px;height:46px;border-radius:14px;background:#eef4ff;display:flex;align-items:center;justify-content:center;font-size:26px}
.kourse-teacher-directory-main p{margin:3px 0 0;font-size:13px}
.kourse-connected-badge{font-size:12px;font-weight:800;padding:7px 10px;border-radius:999px;background:#e9f8ef;color:#277548}
.kourse-coteacher-class{background:#fff;border:1px solid #e5eaf1;border-radius:14px;padding:14px;margin-top:12px}
.kourse-coteacher-class h4{margin:0 0 10px}
.kourse-coteacher-list{display:grid;gap:7px;margin-bottom:10px}
.kourse-coteacher-row{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;border-radius:10px;background:#f7f9fc}
.kourse-coteacher-add-form{display:flex;gap:8px;align-items:center}
.kourse-coteacher-add-form select{flex:1}
.kourse-text-button{background:none;border:0;padding:0;color:#b04343;text-decoration:underline;cursor:pointer}
@media(max-width:850px){.kourse-network-grid{grid-template-columns:1fr}.kourse-coteacher-add-form{align-items:stretch;flex-direction:column}}

.kourse-avatar-picker label{position:relative}
.kourse-avatar-picker label.is-locked{opacity:.62;background:#f3f5f8;cursor:not-allowed}
.kourse-avatar-picker label.is-locked span{filter:grayscale(1)}
.kourse-avatar-picker label.is-locked input{pointer-events:none}
.kourse-avatar-picker label em{display:block;margin-top:3px;font-size:10px;font-style:normal;font-weight:800;color:#7a8494}
.kourse-avatar-picker label.is-unlocked em{color:#3d7a55}
.kourse-profile-unlock-note{margin:10px 0 0;color:#6f7b8d;font-size:13px}

.kourse-board-preset-box .kourse-preset-note{margin-top:8px;font-size:13px;color:#6f7b8d}

.kourse-name-editor{display:inline-block;margin-left:8px;vertical-align:middle}
.kourse-name-editor summary{cursor:pointer;list-style:none;font-size:12px;font-weight:700;color:#526071;padding:5px 8px;border:1px solid #dbe3ec;border-radius:8px;background:#fff}
.kourse-name-editor summary::-webkit-details-marker{display:none}
.kourse-name-editor[open] summary{margin-bottom:8px}
.kourse-inline-name-edit{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:8px;align-items:end;padding:10px;background:#f8fafc;border:1px solid #e3e8ef;border-radius:10px;min-width:300px}
.kourse-inline-name-edit label{display:flex;flex-direction:column;gap:4px;margin:0}
.kourse-inline-name-edit label span{font-size:11px;font-weight:700;color:#687386}
.kourse-inline-name-edit input[type=text]{width:100%;min-width:0;box-sizing:border-box;padding:8px 9px;border:1px solid #d7dee8;border-radius:8px;background:#fff}
.kourse-name-editor-actions{grid-column:1/-1;display:flex;justify-content:flex-end}
.kourse-name-editor-actions .kourse-secondary-button{padding:7px 11px}
@media(max-width:700px){
  .kourse-name-editor{display:block;margin:8px 0 0}
  .kourse-inline-name-edit{grid-template-columns:1fr;min-width:0;width:100%}
  .kourse-name-editor-actions{grid-column:1}
}

.kourse-teacher-network-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.kourse-teacher-network-card{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start}
.kourse-teacher-network-avatar{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#f1f5f9;font-size:28px}
.kourse-teacher-network-card h3{margin:2px 0 5px}
.kourse-teacher-network-card p{margin:0}
.kourse-teacher-network-action{grid-column:1/-1}

/* Prediction Board quadrant colors */
.kourse-quadrant-predictions{
  background:#eaf4ff !important;
  border-color:#b9d9fb !important;
}
.kourse-quadrant-predictions .kourse-quadrant-head h3{color:#1f5f9f !important}

.kourse-quadrant-questions{
  background:#ecf9ef !important;
  border-color:#bde7c7 !important;
}
.kourse-quadrant-questions .kourse-quadrant-head h3{color:#267343 !important}

.kourse-quadrant-inferences{
  background:#fff7df !important;
  border-color:#f1dc9b !important;
}
.kourse-quadrant-inferences .kourse-quadrant-head h3{color:#8a6112 !important}

.kourse-quadrant-connections{
  background:#fff0f3 !important;
  border-color:#f2c3cf !important;
}
.kourse-quadrant-connections .kourse-quadrant-head h3{color:#a33a58 !important}

.kourse-board-class-filter{margin:0 0 18px;padding:14px 16px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.kourse-board-filter-heading{display:flex;flex-direction:column;gap:2px;margin-bottom:10px}
.kourse-board-filter-heading small{color:#6b7280}
.kourse-board-filter-options{display:flex;flex-wrap:wrap;gap:8px 14px;margin-bottom:10px}
.kourse-board-filter-options label{display:flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid #dbe3ec;border-radius:999px;background:#fff;font-size:13px}

/* v2.8.2 roster layout fixes */
.kourse-student-row-clean,
.kourse-roster-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px 16px !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
}

.kourse-student-row-clean > *,
.kourse-roster-row > * {
  min-width: 0 !important;
}

.kourse-student-row-clean .kourse-actions,
.kourse-roster-row .kourse-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.kourse-name-editor-block {
  grid-column: 1 / -1 !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  min-width: 0 !important;
  position: static !important;
}

.kourse-name-editor-block summary {
  display: inline-flex !important;
  align-items: center !important;
  cursor: pointer !important;
  list-style: none !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  padding: 6px 9px !important;
  border: 1px solid #dbe3ec !important;
  border-radius: 8px !important;
  background: #fff !important;
  position: static !important;
}

.kourse-name-editor-block summary::-webkit-details-marker {
  display: none !important;
}

.kourse-name-editor-block[open] {
  margin-top: 6px !important;
}

.kourse-inline-name-edit {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px !important;
  margin-top: 8px !important;
  border: 1px solid #e3e8ef !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  position: static !important;
}

.kourse-inline-name-edit label {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
  margin: 0 !important;
  position: static !important;
}

.kourse-inline-name-edit label span {
  display: block !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.kourse-inline-name-edit input[type="text"] {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  line-height: 1.3 !important;
  position: static !important;
}

.kourse-name-editor-actions {
  grid-column: 1 / -1 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin-top: 2px !important;
  position: static !important;
}

@media (max-width: 760px) {
  .kourse-student-row-clean,
  .kourse-roster-row {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  .kourse-student-row-clean .kourse-actions,
  .kourse-roster-row .kourse-actions {
    justify-content: flex-start !important;
  }

  .kourse-inline-name-edit {
    grid-template-columns: 1fr !important;
  }

  .kourse-name-editor-actions {
    grid-column: 1 !important;
    justify-content: flex-start !important;
  }
}

/* v2.8.3 corrected class roster */
.kourse-roster-student{
  border:1px solid #e6eaf0;
  border-radius:12px;
  background:#fff;
  margin:10px 0;
  overflow:visible;
}

.kourse-roster-student-top{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:12px;
  min-width:0;
}

.kourse-roster-student .kourse-avatar{
  width:44px;
  height:44px;
  min-width:44px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  overflow:hidden;
}

.kourse-roster-student .kourse-student-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.kourse-roster-student .kourse-student-name{
  display:block;
  min-width:0;
  line-height:1.25;
  white-space:normal;
  overflow-wrap:anywhere;
}

.kourse-roster-student .kourse-student-main small{
  display:block;
  line-height:1.25;
  white-space:normal;
  overflow-wrap:anywhere;
}

.kourse-roster-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.kourse-roster-actions form{
  margin:0;
}

.kourse-roster-actions .kourse-name-editor{
  position:relative;
  display:block;
  margin:0;
}

.kourse-roster-actions .kourse-name-editor summary{
  cursor:pointer;
  list-style:none;
  white-space:nowrap;
  padding:6px 9px;
  border:1px solid #dbe3ec;
  border-radius:8px;
  background:#fff;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
}

.kourse-roster-actions .kourse-name-editor summary::-webkit-details-marker{
  display:none;
}

.kourse-roster-actions .kourse-name-editor[open]{
  width:100%;
  flex-basis:100%;
}

.kourse-roster-actions .kourse-name-editor[open] .kourse-inline-name-edit{
  margin-top:8px;
}

.kourse-roster-actions .kourse-inline-name-edit{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:10px !important;
  width:100% !important;
  min-width:0 !important;
  padding:12px !important;
  box-sizing:border-box !important;
  border:1px solid #e2e8f0 !important;
  border-radius:10px !important;
  background:#f8fafc !important;
  position:static !important;
}

.kourse-roster-actions .kourse-inline-name-edit label{
  display:flex !important;
  flex-direction:column !important;
  gap:4px !important;
  min-width:0 !important;
  margin:0 !important;
}

.kourse-roster-actions .kourse-inline-name-edit input{
  width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}

.kourse-roster-actions .kourse-name-editor-actions{
  grid-column:1 / -1 !important;
  display:flex !important;
  justify-content:flex-end !important;
}

@media(max-width:760px){
  .kourse-roster-student-top{
    grid-template-columns:44px minmax(0,1fr);
  }

  .kourse-roster-actions{
    grid-column:1 / -1;
    justify-content:flex-start;
    padding-left:56px;
  }

  .kourse-roster-actions .kourse-inline-name-edit{
    grid-template-columns:1fr !important;
  }

  .kourse-roster-actions .kourse-name-editor-actions{
    grid-column:1 !important;
    justify-content:flex-start !important;
  }
}

/* v2.8.4 compact class roster */
.kourse-roster-student{
  border:0 !important;
  border-bottom:1px solid #edf1f5 !important;
  border-radius:0 !important;
  background:transparent !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
}

.kourse-roster-student:last-child{
  border-bottom:0 !important;
}

.kourse-roster-student-top{
  display:grid !important;
  grid-template-columns:34px minmax(0,1fr) auto !important;
  gap:10px !important;
  align-items:center !important;
  padding:10px 2px !important;
}

.kourse-roster-student .kourse-avatar{
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  border-radius:50% !important;
  font-size:13px !important;
}

.kourse-roster-student .kourse-student-main{
  gap:1px !important;
}

.kourse-roster-student .kourse-student-name{
  font-size:14px !important;
  font-weight:700 !important;
  line-height:1.2 !important;
  text-decoration:none !important;
}

.kourse-roster-student .kourse-student-main small{
  font-size:12px !important;
  line-height:1.2 !important;
  color:#7a8494 !important;
}

.kourse-roster-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:6px !important;
  flex-wrap:nowrap !important;
}

.kourse-roster-actions .kourse-name-editor{
  flex:0 0 auto !important;
}

.kourse-roster-actions .kourse-name-editor summary{
  padding:5px 8px !important;
  border:1px solid #dfe5ec !important;
  border-radius:7px !important;
  font-size:11px !important;
  font-weight:600 !important;
  background:#fff !important;
  color:#5f6b7a !important;
}

.kourse-roster-actions .button-link-delete{
  font-size:11px !important;
  line-height:1.2 !important;
}

.kourse-roster-actions .kourse-name-editor[open]{
  position:static !important;
  width:auto !important;
  flex-basis:auto !important;
}

.kourse-roster-actions .kourse-name-editor[open] .kourse-inline-name-edit{
  position:absolute !important;
  right:0 !important;
  margin-top:8px !important;
  width:min(420px, calc(100vw - 40px)) !important;
  z-index:30 !important;
  box-shadow:0 12px 30px rgba(15,23,42,.14) !important;
}

.kourse-roster-student-top{
  position:relative !important;
}

@media(max-width:760px){
  .kourse-roster-student-top{
    grid-template-columns:34px minmax(0,1fr) !important;
  }

  .kourse-roster-actions{
    grid-column:2 !important;
    justify-content:flex-start !important;
    padding-left:0 !important;
    margin-top:4px !important;
    flex-wrap:wrap !important;
  }

  .kourse-roster-actions .kourse-name-editor[open] .kourse-inline-name-edit{
    left:0 !important;
    right:auto !important;
    width:min(360px, calc(100vw - 32px)) !important;
  }
}

/* v2.8.5 streamlined roster */
.kourse-card:has(.kourse-roster-student){
  padding:22px 24px !important;
}

.kourse-card:has(.kourse-roster-student) > h2{
  margin:0 0 12px !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
}

.kourse-roster-student{
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-bottom:1px solid #edf1f5 !important;
  border-radius:0 !important;
  background:transparent !important;
}

.kourse-roster-student:last-child{
  border-bottom:0 !important;
}

.kourse-roster-student-top{
  position:relative !important;
  display:grid !important;
  grid-template-columns:36px minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:11px !important;
  padding:11px 0 !important;
  min-height:0 !important;
}

.kourse-roster-student .kourse-avatar{
  width:36px !important;
  height:36px !important;
  min-width:36px !important;
  border-radius:50% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:13px !important;
  font-weight:800 !important;
  line-height:1 !important;
  margin:0 !important;
}

.kourse-roster-student .kourse-student-main{
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  gap:2px !important;
  min-width:0 !important;
  margin:0 !important;
}

.kourse-roster-student .kourse-student-name{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  font-size:14px !important;
  font-weight:700 !important;
  line-height:1.25 !important;
  text-decoration:none !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

.kourse-roster-student .kourse-student-main small{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  font-size:11.5px !important;
  font-weight:400 !important;
  line-height:1.25 !important;
  color:#7b8797 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

.kourse-roster-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:4px !important;
  flex-wrap:nowrap !important;
  margin:0 !important;
}

.kourse-roster-actions .kourse-name-editor{
  display:block !important;
  position:relative !important;
  margin:0 !important;
  padding:0 !important;
}

.kourse-roster-actions .kourse-name-editor summary{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  list-style:none !important;
  cursor:pointer !important;
  padding:5px 8px !important;
  margin:0 !important;
  border:0 !important;
  border-radius:7px !important;
  background:transparent !important;
  color:#52647a !important;
  font-size:11.5px !important;
  font-weight:650 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}

.kourse-roster-actions .kourse-name-editor summary:hover{
  background:#f1f5f9 !important;
  color:#243b55 !important;
}

.kourse-roster-actions .kourse-name-editor summary::-webkit-details-marker{
  display:none !important;
}

.kourse-roster-actions .kourse-name-editor summary::marker{
  content:'' !important;
}

.kourse-remove-student-form{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
}

.kourse-roster-actions .button-link-delete{
  appearance:none !important;
  border:0 !important;
  border-radius:7px !important;
  background:transparent !important;
  padding:5px 8px !important;
  margin:0 !important;
  color:#a34c4c !important;
  font-size:11.5px !important;
  font-weight:650 !important;
  line-height:1 !important;
  cursor:pointer !important;
  box-shadow:none !important;
}

.kourse-roster-actions .button-link-delete:hover{
  background:#fff1f1 !important;
  color:#8e3434 !important;
}

.kourse-roster-actions .kourse-name-editor[open] .kourse-inline-name-edit{
  position:absolute !important;
  top:calc(100% + 7px) !important;
  right:0 !important;
  z-index:50 !important;
  width:340px !important;
  max-width:calc(100vw - 40px) !important;
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:9px !important;
  padding:12px !important;
  margin:0 !important;
  background:#fff !important;
  border:1px solid #dde4ec !important;
  border-radius:10px !important;
  box-shadow:0 12px 30px rgba(15,23,42,.14) !important;
}

.kourse-roster-actions .kourse-name-editor-actions{
  grid-column:1 / -1 !important;
  display:flex !important;
  justify-content:flex-end !important;
}

@media(max-width:700px){
  .kourse-roster-student-top{
    grid-template-columns:34px minmax(0,1fr) !important;
    gap:9px !important;
    padding:10px 0 !important;
  }
  .kourse-roster-student .kourse-avatar{
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
  }
  .kourse-roster-actions{
    grid-column:2 !important;
    justify-content:flex-start !important;
    margin-top:2px !important;
  }
  .kourse-roster-actions .kourse-name-editor[open] .kourse-inline-name-edit{
    left:0 !important;
    right:auto !important;
    grid-template-columns:1fr !important;
    width:min(320px, calc(100vw - 34px)) !important;
  }
  .kourse-roster-actions .kourse-name-editor-actions{
    grid-column:1 !important;
    justify-content:flex-start !important;
  }
}

/* v2.8.6 unified Edit Class page */
.kourse-edit-class-danger{
  margin-top:18px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:24px !important;
  border:1px solid #f0d6d6 !important;
  background:#fffafa !important;
}

.kourse-edit-class-danger h2{
  margin:2px 0 5px !important;
}

.kourse-edit-class-danger p{
  margin-bottom:0 !important;
}

.kourse-delete-class-button{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:9px 13px !important;
  border:1px solid #e3b8b8 !important;
  border-radius:8px !important;
  background:#fff !important;
  color:#a43f3f !important;
  font-weight:700 !important;
  white-space:nowrap !important;
  cursor:pointer !important;
}

.kourse-delete-class-button:hover{
  background:#fff0f0 !important;
  border-color:#d99898 !important;
  color:#8f3030 !important;
}

@media(max-width:700px){
  .kourse-edit-class-danger{
    align-items:flex-start !important;
    flex-direction:column !important;
  }
}

/* v2.8.7 AJAX student search */
.kourse-add-students-card .kourse-muted{
  margin:-4px 0 12px !important;
  color:#718096 !important;
  font-size:13px !important;
}

.kourse-student-search{
  margin:0 !important;
}

.kourse-student-search-box{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
}

.kourse-student-search-box input[type="search"]{
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
}

.kourse-student-search-status{
  min-height:18px;
  margin-top:7px;
  font-size:12px;
  color:#64748b;
}

.kourse-user-results:empty{
  display:none;
}

.kourse-student-search-result{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid #edf1f5;
}

.kourse-student-search-result:last-child{
  border-bottom:0;
}

.kourse-search-student-info{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.kourse-search-student-info strong{
  font-size:13px;
  line-height:1.25;
}

.kourse-search-student-info small{
  color:#7b8797;
  font-size:11.5px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.kourse-search-empty{
  margin:8px 0 0;
  color:#718096;
  font-size:13px;
}

@media(max-width:600px){
  .kourse-student-search-box{
    grid-template-columns:1fr;
  }

  .kourse-student-search-result{
    grid-template-columns:minmax(0,1fr) auto;
  }
}

/* v2.8.8 quieter class-code sidebar */
.kourse-class-sidebar{
  display:flex;
  flex-direction:column;
  gap:16px;
  min-width:0;
}
.kourse-code-card-compact{
  padding:15px 16px !important;
}
.kourse-code-compact-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.kourse-code-label{
  display:block;
  margin-bottom:3px;
  color:#7a8798;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.kourse-code-card-compact .kourse-code-value{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  font-size:20px !important;
  line-height:1.15 !important;
  letter-spacing:.06em !important;
}
.kourse-code-card-compact .kourse-enrollment-status{
  flex:0 0 auto;
  font-size:10.5px !important;
  padding:4px 7px !important;
}
.kourse-code-compact-actions{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:11px;
  padding-top:10px;
  border-top:1px solid #edf1f5;
}
.kourse-code-compact-actions form{margin:0 !important}
.kourse-code-compact-actions .button{
  min-height:0 !important;
  padding:5px 8px !important;
  font-size:11px !important;
  line-height:1.2 !important;
}
@media(max-width:800px){
  .kourse-class-sidebar{gap:12px}
}

/* v2.8.9 customizable sidebar order */
.kourse-sortable-nav a[data-nav-key]{
  cursor:grab !important;
  user-select:none;
}
.kourse-sortable-nav a[data-nav-key]:active{
  cursor:grabbing !important;
}
.kourse-sortable-nav a.is-dragging{
  opacity:.45 !important;
}
.kourse-nav-grip{
  display:inline-block;
  margin-right:7px;
  opacity:.35;
  font-size:12px;
  letter-spacing:-2px;
  vertical-align:middle;
  transition:opacity .15s ease;
}
.kourse-sortable-nav a:hover .kourse-nav-grip{
  opacity:.7;
}

/* Clickable class code */
.kourse-code-card-compact .kourse-code-enlarge-trigger{
  appearance:none !important;
  display:block !important;
  border:0 !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  text-align:left !important;
  cursor:zoom-in !important;
  color:inherit !important;
}
.kourse-code-card-compact .kourse-code-enlarge-trigger:hover{
  opacity:.75;
}

/* Classroom-size code display */
.kourse-code-modal[hidden]{
  display:none !important;
}
.kourse-code-modal{
  position:fixed;
  inset:0;
  z-index:999999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px;
}
.kourse-code-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(12,24,42,.68);
  backdrop-filter:blur(4px);
}
.kourse-code-modal-panel{
  position:relative;
  z-index:1;
  width:min(900px,94vw);
  min-height:min(500px,75vh);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:48px 64px;
  border-radius:24px;
  background:#fff;
  box-shadow:0 28px 80px rgba(0,0,0,.28);
}
.kourse-code-modal-close{
  position:absolute;
  top:18px;
  right:20px;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:#f1f5f9;
  color:#334155;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.kourse-code-modal-eyebrow{
  margin:0 0 20px !important;
  color:#52647a;
  font-size:20px;
  font-weight:700;
}
.kourse-code-modal-label{
  margin-bottom:10px;
  color:#8390a2;
  font-size:16px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.kourse-code-modal-value{
  font-size:clamp(72px,12vw,150px);
  font-weight:900;
  line-height:.95;
  letter-spacing:.09em;
  color:#17375e;
}
.kourse-code-modal-help{
  margin:26px 0 0 !important;
  color:#68768a;
  font-size:18px;
}
body.kourse-modal-open{
  overflow:hidden;
}
@media(max-width:600px){
  .kourse-code-modal{
    padding:16px;
  }
  .kourse-code-modal-panel{
    min-height:60vh;
    padding:42px 24px;
  }
  .kourse-code-modal-value{
    font-size:clamp(54px,18vw,90px);
  }
}

/* v2.8.10 student sidebar alignment */
.kourse-student-nav.kourse-sortable-nav a[data-nav-key]{
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:0 !important;
  padding-left:42px !important;
  padding-right:18px !important;
  text-align:left !important;
  min-width:0 !important;
}

.kourse-student-nav.kourse-sortable-nav .kourse-nav-grip{
  position:absolute !important;
  left:15px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  width:14px !important;
  margin:0 !important;
  padding:0 !important;
  text-align:center !important;
  flex:0 0 14px !important;
  opacity:.28 !important;
}

.kourse-student-nav.kourse-sortable-nav a[data-nav-key] > span:last-child{
  display:block !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  line-height:1.25 !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
  hyphens:none !important;
}

.kourse-student-nav.kourse-sortable-nav a[data-nav-key]:hover .kourse-nav-grip{
  opacity:.62 !important;
}

@media(max-width:700px){
  .kourse-student-nav.kourse-sortable-nav a[data-nav-key]{
    padding-left:38px !important;
    padding-right:14px !important;
  }
  .kourse-student-nav.kourse-sortable-nav .kourse-nav-grip{
    left:13px !important;
  }
}

/* v2.8.12 board management */
.kourse-board-manage-panel{
  margin:0 0 18px !important;
}
.kourse-board-manage-panel > summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.kourse-board-manage-panel > summary::-webkit-details-marker{display:none}
.kourse-board-manage-panel > summary span{
  color:#718096;
  font-size:12px;
  font-weight:400;
}
.kourse-board-manage-panel[open] > summary{
  margin-bottom:16px;
  padding-bottom:12px;
  border-bottom:1px solid #edf1f5;
}
.kourse-board-edit-form{
  margin-bottom:14px !important;
}
.kourse-board-manage-row{
  display:grid;
  grid-template-columns:minmax(180px,.6fr) minmax(220px,1fr);
  gap:14px;
  align-items:end;
}
.kourse-board-delete-board-form{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid #f1dada;
}
.kourse-board-delete-post{
  margin-top:7px !important;
}
.kourse-board-delete-post .button-link-delete{
  font-size:11px !important;
}
.kourse-prediction-posted-notice{
  grid-column:1 / -1;
  margin-bottom:12px !important;
}
@media(max-width:700px){
  .kourse-board-manage-panel > summary{
    align-items:flex-start;
    flex-direction:column;
  }
  .kourse-board-manage-row{
    grid-template-columns:1fr;
  }
}

/* v2.8.13 compact customizable teacher dashboard */
.kourse-teacher-hero-compact{
  min-height:0 !important;
  padding:24px 30px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:24px !important;
}
.kourse-teacher-hero-compact h1{
  margin:3px 0 5px !important;
}
.kourse-teacher-hero-compact p:last-child{
  margin-bottom:0 !important;
}
.kourse-dashboard-customize{
  position:relative;
  flex:0 0 auto;
}
.kourse-dashboard-customize > summary{
  list-style:none;
  cursor:pointer;
  padding:8px 11px;
  border:1px solid #dbe4ef;
  border-radius:9px;
  background:#fff;
  color:#40566f;
  font-size:12px;
  font-weight:700;
}
.kourse-dashboard-customize > summary::-webkit-details-marker{display:none}
.kourse-dashboard-customize-form{
  position:absolute;
  z-index:100;
  top:calc(100% + 8px);
  right:0;
  width:270px;
  display:grid;
  gap:7px;
  padding:15px;
  border:1px solid #dce4ed;
  border-radius:12px;
  background:#fff;
  box-shadow:0 16px 36px rgba(15,23,42,.15);
}
.kourse-dashboard-customize-form strong{
  margin-top:5px;
  font-size:11px;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:#68788c;
}
.kourse-dashboard-customize-form label{
  font-size:12px;
  font-weight:600;
}
.kourse-dashboard-customize-form .button{
  margin-top:7px;
}
.kourse-teacher-metrics{
  gap:12px !important;
  margin:14px 0 !important;
}
.kourse-teacher-metrics .kourse-metric{
  min-height:0 !important;
  padding:15px 18px !important;
}
.kourse-teacher-metrics .kourse-metric strong{
  margin-top:4px !important;
  font-size:26px !important;
}
.kourse-quick-actions-compact{
  margin:0 0 14px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.kourse-compact-section-heading{
  margin:0 0 7px;
  color:#66758a;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.kourse-quick-actions-compact .kourse-action-grid{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
}
.kourse-quick-actions-compact .kourse-action-card{
  width:auto !important;
  min-height:0 !important;
  padding:9px 12px !important;
  border-radius:9px !important;
  box-shadow:none !important;
}
.kourse-quick-actions-compact .kourse-action-card strong{
  font-size:12px !important;
}
.kourse-dashboard-grid-custom,
.kourse-dashboard-lower{
  gap:14px !important;
  margin-top:14px !important;
}
.kourse-dashboard-grid-custom > .kourse-card,
.kourse-dashboard-lower > .kourse-card{
  padding:18px 20px !important;
}
.kourse-dashboard-grid-custom .kourse-section-heading,
.kourse-dashboard-lower .kourse-section-heading{
  margin-bottom:10px !important;
}
.kourse-dashboard-grid-custom h2,
.kourse-dashboard-lower h2{
  margin-top:2px !important;
  margin-bottom:8px !important;
}
@media(max-width:700px){
  .kourse-teacher-hero-compact{
    align-items:flex-start !important;
    flex-direction:column !important;
    padding:20px !important;
  }
  .kourse-dashboard-customize{
    width:100%;
  }
  .kourse-dashboard-customize-form{
    left:0;
    right:auto;
    width:min(300px,calc(100vw - 48px));
  }
}

/* v2.8.16 teacher class ordering */
.kourse-sortable-class-list{
  display:flex;
  flex-direction:column;
}
.kourse-sortable-class-row{
  position:relative;
  cursor:grab !important;
  padding-left:42px !important;
  user-select:none;
}
.kourse-sortable-class-row:active{
  cursor:grabbing !important;
}
.kourse-sortable-class-row.is-dragging{
  opacity:.48;
  transform:scale(.995);
}
.kourse-class-drag-handle{
  position:absolute;
  left:15px;
  top:50%;
  transform:translateY(-50%);
  width:14px;
  margin:0;
  opacity:.32;
  letter-spacing:-2px;
  font-size:12px;
  pointer-events:none;
}
.kourse-sortable-class-row:hover .kourse-class-drag-handle{
  opacity:.7;
}

/* v2.9.0 data-rich teacher reports */
.kourse-report-controls{padding:14px 16px !important;margin-bottom:14px !important}
.kourse-report-controls form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
.kourse-report-controls label{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:700;color:#68788b}
.kourse-report-controls select{min-width:180px}
.kourse-report-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 14px}
.kourse-report-kpis article{padding:14px 16px;border:1px solid #e5e9ef;border-radius:12px;background:#fff;min-width:0}
.kourse-report-kpis span{display:block;color:#77859a;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.kourse-report-kpis strong{display:block;margin:4px 0 2px;font-size:24px;line-height:1.05;color:#243b55}
.kourse-report-kpis small{display:block;color:#8793a3;font-size:10.5px;line-height:1.25}
.kourse-data-report-tabs{display:flex;gap:5px;margin:0 0 14px;padding:4px;border:1px solid #e3e8ef;border-radius:11px;background:#f7f9fc;width:max-content;max-width:100%;overflow:auto}
.kourse-data-report-tabs a{padding:7px 12px;border-radius:8px;text-decoration:none;font-size:12px;font-weight:700;color:#5b6e84;white-space:nowrap}
.kourse-data-report-tabs a.is-active{background:#fff;color:#294f7d;box-shadow:0 1px 4px rgba(15,23,42,.08)}
.kourse-report-grid.two{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:14px;margin-bottom:14px}
.kourse-report-grid .kourse-card{padding:18px 20px !important}
.kourse-skill-list{display:flex;flex-direction:column}
.kourse-skill-list article{display:grid;grid-template-columns:minmax(145px,1fr) minmax(100px,1.2fr) 44px;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #eef2f6}
.kourse-skill-list article:last-child{border-bottom:0}
.kourse-skill-list article>div:first-child{display:flex;flex-direction:column;min-width:0}
.kourse-skill-list strong{font-size:12px;line-height:1.25}
.kourse-skill-list small{font-size:10px;color:#8491a2}
.kourse-skill-meter{height:7px;border-radius:999px;background:#edf1f5;overflow:hidden}
.kourse-skill-meter span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7697ff,#7fd3b0)}
.kourse-skill-list b{font-size:12px;text-align:right;color:#334a63}
.kourse-usage-list{display:flex;flex-direction:column}
.kourse-usage-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;align-items:center;padding:9px 0;border-bottom:1px solid #eef2f6}
.kourse-usage-list article:last-child{border-bottom:0}
.kourse-usage-list span{font-size:12px;font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kourse-usage-list strong{font-size:12px;color:#334a63}
.kourse-usage-list small{grid-column:1 / -1;color:#8793a3;font-size:10px}
.kourse-report-table-wrap{width:100%;overflow:auto}
.kourse-report-table{width:100%;border-collapse:collapse;min-width:700px}
.kourse-report-table th{padding:9px 10px;border-bottom:1px solid #dfe5ec;text-align:left;color:#738197;font-size:10px;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.kourse-report-table td{padding:10px;border-bottom:1px solid #edf1f5;font-size:11.5px;color:#45586d;vertical-align:middle}
.kourse-report-table tbody tr:hover{background:#fafbfd}
.kourse-report-table td strong{color:#263e58}
.kourse-report-table a{font-weight:700;text-decoration:none;white-space:nowrap}
.kourse-table-email{display:block;margin-top:2px;color:#8995a4;font-size:10px}
@media(max-width:1050px){.kourse-report-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.kourse-report-grid.two{grid-template-columns:1fr}}
@media(max-width:700px){.kourse-report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.kourse-report-controls form{display:grid;grid-template-columns:1fr}.kourse-report-controls select{width:100%;min-width:0}.kourse-report-grid.two{display:block}.kourse-report-grid.two>.kourse-card{margin-bottom:12px}}


/* v2.9.2 — teacher reports exact-selector readability fix */
.kourse-report-controls label{
  font-size:14px !important;
  line-height:1.4 !important;
}
.kourse-report-controls select{
  font-size:15px !important;
  min-height:40px;
}

.kourse-report-kpis span{
  font-size:12px !important;
  line-height:1.3 !important;
}
.kourse-report-kpis strong{
  font-size:30px !important;
  line-height:1.1 !important;
  margin:6px 0 4px !important;
}
.kourse-report-kpis small{
  font-size:13px !important;
  line-height:1.4 !important;
}

.kourse-data-report-tabs a{
  font-size:15px !important;
  line-height:1.25 !important;
  padding:10px 16px !important;
}

.kourse-report-grid .kourse-card,
.kourse-report-table-wrap + .kourse-card{
  font-size:15px;
}

.kourse-report-grid .kourse-section-heading h2,
.kourse-report-table-wrap .kourse-section-heading h2,
.kourse-card .kourse-section-heading h2{
  font-size:22px !important;
  line-height:1.25 !important;
}
.kourse-card .kourse-section-heading .kourse-eyebrow{
  font-size:13px !important;
  line-height:1.3 !important;
}
.kourse-card .kourse-section-heading p:not(.kourse-eyebrow){
  font-size:14px !important;
  line-height:1.5 !important;
}
.kourse-card .kourse-section-heading a{
  font-size:15px !important;
}

.kourse-skill-list strong{
  font-size:15px !important;
  line-height:1.35 !important;
}
.kourse-skill-list small{
  font-size:13px !important;
  line-height:1.35 !important;
}
.kourse-skill-list b{
  font-size:15px !important;
}
.kourse-skill-list article{
  padding:12px 0 !important;
}

.kourse-usage-list span,
.kourse-usage-list strong{
  font-size:15px !important;
  line-height:1.35 !important;
}
.kourse-usage-list small{
  font-size:13px !important;
  line-height:1.35 !important;
}
.kourse-usage-list article{
  padding:12px 0 !important;
}

.kourse-report-table{
  font-size:15px !important;
}
.kourse-report-table th{
  font-size:13px !important;
  line-height:1.35 !important;
  padding:13px 14px !important;
}
.kourse-report-table td{
  font-size:15px !important;
  line-height:1.45 !important;
  padding:14px !important;
}
.kourse-report-table td strong{
  font-size:15px !important;
  line-height:1.4 !important;
}
.kourse-report-table a{
  font-size:14px !important;
}
.kourse-table-email{
  font-size:12.5px !important;
  line-height:1.35 !important;
  margin-top:4px !important;
}

.kourse-dashboard-empty strong{
  font-size:16px !important;
}
.kourse-dashboard-empty p{
  font-size:14px !important;
  line-height:1.5 !important;
}

@media(max-width:700px){
  .kourse-report-kpis strong{font-size:26px !important}
  .kourse-report-table th{font-size:12.5px !important;padding:11px 12px !important}
  .kourse-report-table td{font-size:14px !important;padding:12px !important}
  .kourse-data-report-tabs a{font-size:14px !important;padding:9px 13px !important}
}


/* v2.9.3 — Create Class primary action sizing */
.kourse-teacher-dashboard .kourse-form .kourse-create-class-submit,
.kourse-teacher-dashboard button.kourse-create-class-submit,
button.kourse-create-class-submit {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:46px !important;
  height:auto !important;
  padding:11px 20px !important;
  font-size:15px !important;
  font-weight:700 !important;
  line-height:1.35 !important;
  border-radius:10px !important;
  box-sizing:border-box !important;
  cursor:pointer !important;
}


/* v2.9.4 — dashboard form-control normalization */
.kourse-teacher-dashboard input[type="text"],
.kourse-teacher-dashboard input[type="email"],
.kourse-teacher-dashboard input[type="password"],
.kourse-teacher-dashboard input[type="search"],
.kourse-teacher-dashboard input[type="url"],
.kourse-teacher-dashboard input[type="number"],
.kourse-teacher-dashboard select,
.kourse-student-dashboard input[type="text"],
.kourse-student-dashboard input[type="email"],
.kourse-student-dashboard input[type="password"],
.kourse-student-dashboard input[type="search"],
.kourse-student-dashboard input[type="url"],
.kourse-student-dashboard input[type="number"],
.kourse-student-dashboard select,
.kourse-teacher-portal input[type="text"],
.kourse-teacher-portal input[type="email"],
.kourse-teacher-portal input[type="password"],
.kourse-teacher-portal input[type="search"],
.kourse-teacher-portal input[type="url"],
.kourse-teacher-portal input[type="number"],
.kourse-teacher-portal select,
.kourse-student-portal input[type="text"],
.kourse-student-portal input[type="email"],
.kourse-student-portal input[type="password"],
.kourse-student-portal input[type="search"],
.kourse-student-portal input[type="url"],
.kourse-student-portal input[type="number"],
.kourse-student-portal select {
  min-height:44px !important;
  height:auto !important;
  padding:10px 13px !important;
  font-size:15px !important;
  line-height:1.35 !important;
  border-radius:9px !important;
  box-sizing:border-box !important;
}

.kourse-teacher-dashboard textarea,
.kourse-student-dashboard textarea,
.kourse-teacher-portal textarea,
.kourse-student-portal textarea {
  min-height:108px !important;
  padding:11px 13px !important;
  font-size:15px !important;
  line-height:1.45 !important;
  border-radius:9px !important;
  box-sizing:border-box !important;
}

.kourse-teacher-dashboard button,
.kourse-teacher-dashboard .button,
.kourse-student-dashboard button,
.kourse-student-dashboard .button,
.kourse-teacher-portal button,
.kourse-teacher-portal .button,
.kourse-student-portal button,
.kourse-student-portal .button {
  min-height:42px !important;
  height:auto !important;
  padding:9px 15px !important;
  font-size:14px !important;
  line-height:1.35 !important;
  border-radius:9px !important;
  box-sizing:border-box !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px;
}

.kourse-teacher-dashboard .button.button-primary,
.kourse-student-dashboard .button.button-primary,
.kourse-teacher-portal .button.button-primary,
.kourse-student-portal .button.button-primary,
.kourse-teacher-dashboard button[type="submit"],
.kourse-student-dashboard button[type="submit"],
.kourse-teacher-portal button[type="submit"],
.kourse-student-portal button[type="submit"] {
  font-weight:700 !important;
}

.kourse-teacher-dashboard input::placeholder,
.kourse-student-dashboard input::placeholder,
.kourse-teacher-portal input::placeholder,
.kourse-student-portal input::placeholder,
.kourse-teacher-dashboard textarea::placeholder,
.kourse-student-dashboard textarea::placeholder,
.kourse-teacher-portal textarea::placeholder,
.kourse-student-portal textarea::placeholder {
  font-size:14px !important;
  opacity:.72;
}

/* Search rows should align to the same app-control height */
.kourse-teacher-dashboard form:has(input[type="search"]),
.kourse-student-dashboard form:has(input[type="search"]),
.kourse-teacher-portal form:has(input[type="search"]),
.kourse-student-portal form:has(input[type="search"]) {
  align-items:center;
}

.kourse-teacher-dashboard form:has(input[type="search"]) button,
.kourse-student-dashboard form:has(input[type="search"]) button,
.kourse-teacher-portal form:has(input[type="search"]) button,
.kourse-student-portal form:has(input[type="search"]) button {
  min-height:44px !important;
  padding:10px 17px !important;
  font-size:15px !important;
}

/* Preserve deliberately tiny icon-only controls where present */
.kourse-teacher-dashboard .kourse-icon-button,
.kourse-student-dashboard .kourse-icon-button,
.kourse-teacher-portal .kourse-icon-button,
.kourse-student-portal .kourse-icon-button {
  min-width:36px !important;
  min-height:36px !important;
  padding:6px !important;
}

/* Inputs inside dense table/filter rows remain readable without becoming oversized */
.kourse-report-controls input,
.kourse-report-controls select,
.kourse-dashboard-filter input,
.kourse-dashboard-filter select {
  min-height:40px !important;
}

@media(max-width:700px){
  .kourse-teacher-dashboard input[type="text"],
  .kourse-teacher-dashboard input[type="email"],
  .kourse-teacher-dashboard input[type="search"],
  .kourse-teacher-dashboard select,
  .kourse-student-dashboard input[type="text"],
  .kourse-student-dashboard input[type="email"],
  .kourse-student-dashboard input[type="search"],
  .kourse-student-dashboard select,
  .kourse-teacher-portal input[type="text"],
  .kourse-teacher-portal input[type="email"],
  .kourse-teacher-portal input[type="search"],
  .kourse-teacher-portal select,
  .kourse-student-portal input[type="text"],
  .kourse-student-portal input[type="email"],
  .kourse-student-portal input[type="search"],
  .kourse-student-portal select {
    min-height:42px !important;
    font-size:14px !important;
  }

  .kourse-teacher-dashboard button,
  .kourse-teacher-dashboard .button,
  .kourse-student-dashboard button,
  .kourse-student-dashboard .button,
  .kourse-teacher-portal button,
  .kourse-teacher-portal .button,
  .kourse-student-portal button,
  .kourse-student-portal .button {
    min-height:40px !important;
    font-size:14px !important;
  }
}


/* v2.9.5 — class roster readability + student-view cleanup */
.kourse-roster-student-top{
  grid-template-columns:40px minmax(0,1fr) auto !important;
  gap:13px !important;
  padding:14px 0 !important;
}

.kourse-roster-student .kourse-avatar{
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  font-size:14px !important;
}

.kourse-roster-student .kourse-student-main{
  gap:4px !important;
}

.kourse-roster-student .kourse-student-name{
  font-size:16px !important;
  line-height:1.3 !important;
  font-weight:750 !important;
}

.kourse-roster-student .kourse-student-main small{
  font-size:13.5px !important;
  line-height:1.35 !important;
}

.kourse-roster-actions{
  gap:6px !important;
}

.kourse-roster-actions .kourse-name-editor summary,
.kourse-roster-actions .button-link-delete{
  font-size:13.5px !important;
  line-height:1.2 !important;
  padding:7px 9px !important;
  min-height:34px !important;
  display:inline-flex !important;
  align-items:center !important;
}

.kourse-card:has(.kourse-roster-student) > h2{
  font-size:28px !important;
  line-height:1.2 !important;
}

@media(max-width:700px){
  .kourse-roster-student-top{
    grid-template-columns:38px minmax(0,1fr) !important;
    gap:10px !important;
    padding:12px 0 !important;
  }

  .kourse-roster-student .kourse-avatar{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
  }

  .kourse-roster-student .kourse-student-name{
    font-size:15px !important;
  }

  .kourse-roster-student .kourse-student-main small{
    font-size:13px !important;
  }

  .kourse-roster-actions .kourse-name-editor summary,
  .kourse-roster-actions .button-link-delete{
    font-size:13px !important;
  }
}


/* v2.9.6 — co-teacher invitations and management */
.kourse-coteachers-card .kourse-section-heading{margin-bottom:12px}
.kourse-coteacher-list,
.kourse-coteacher-pending,
.kourse-coteacher-invite-list{display:flex;flex-direction:column}
.kourse-coteacher-list article,
.kourse-coteacher-pending article,
.kourse-coteacher-invite-list article{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:11px 0;border-bottom:1px solid #edf1f5
}
.kourse-coteacher-list article:last-child,
.kourse-coteacher-pending article:last-child,
.kourse-coteacher-invite-list article:last-child{border-bottom:0}
.kourse-coteacher-list article>div,
.kourse-coteacher-pending article>div,
.kourse-coteacher-invite-list article>div:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.kourse-coteacher-list strong,
.kourse-coteacher-invite-list strong{font-size:15px}
.kourse-coteacher-list small,
.kourse-coteacher-pending small,
.kourse-coteacher-invite-list small{font-size:13px;color:#7b8797}
.kourse-coteacher-pending{margin-top:14px;padding-top:12px;border-top:1px solid #edf1f5}
.kourse-coteacher-pending>strong{font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:#6b7280}
.kourse-coteacher-search{margin-top:16px;padding-top:14px;border-top:1px solid #edf1f5}
.kourse-coteacher-search>label{display:block;margin-bottom:7px;font-size:14px;font-weight:700}
.kourse-coteacher-invitations{margin:0 0 18px}
.kourse-coteacher-search-result form{margin:0}
@media(max-width:700px){
  .kourse-coteacher-list article,
  .kourse-coteacher-pending article,
  .kourse-coteacher-invite-list article{align-items:flex-start;flex-direction:column}
}


/* v2.9.7 — Teacher Network collaboration hub */
.kourse-network-heading{margin-bottom:16px}
.kourse-network-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}
.kourse-network-summary article{padding:14px 16px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}
.kourse-network-summary span{display:block;font-size:12px;font-weight:750;color:#708094;text-transform:uppercase;letter-spacing:.04em}
.kourse-network-summary strong{display:block;margin-top:4px;font-size:26px;line-height:1.1;color:#243b55}
.kourse-network-toolbar{padding:14px 16px !important;margin-bottom:18px}
.kourse-network-search{display:flex;gap:9px;margin-bottom:12px}
.kourse-network-search input{flex:1;min-width:0}
.kourse-network-tabs{display:flex;gap:6px;flex-wrap:wrap}
.kourse-network-tabs a{display:inline-flex;align-items:center;gap:6px;padding:9px 13px;border-radius:9px;text-decoration:none;font-size:14px;font-weight:700;color:#596b80;background:#f3f6f9}
.kourse-network-tabs a.is-active{background:#e9f2ff;color:#1e63a6}
.kourse-network-tabs a span{display:inline-flex;min-width:20px;height:20px;align-items:center;justify-content:center;border-radius:999px;background:#fff;font-size:11px}
.kourse-network-section-heading{display:flex;align-items:center;justify-content:space-between;margin:8px 0 10px}
.kourse-network-section-heading h2{margin:0;font-size:22px}
.kourse-network-sent-heading{margin-top:24px}
.kourse-teacher-network-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.kourse-teacher-network-card{display:grid;grid-template-columns:54px minmax(0,1fr);gap:12px 14px;align-items:start;padding:18px !important}
.kourse-teacher-network-avatar{width:54px;height:54px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#eef3f7;font-size:25px}
.kourse-network-card-copy h3{margin:1px 0 5px;font-size:18px}
.kourse-network-card-copy p{margin:7px 0 0;font-size:14px;line-height:1.45;color:#617185}
.kourse-network-tags{display:flex;gap:5px;flex-wrap:wrap}
.kourse-network-tags span{padding:4px 8px;border-radius:999px;background:#f0f5fb;color:#496178;font-size:11.5px;font-weight:700}
.kourse-network-card-actions{grid-column:1/-1;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-top:8px;border-top:1px solid #edf1f5}
.kourse-network-card-actions form{margin:0}
.kourse-network-status{font-size:13px;font-weight:700;color:#68788b;padding:8px 0}
.kourse-network-class-invite{position:relative}
.kourse-network-class-invite summary{display:inline-flex;align-items:center;min-height:42px;padding:9px 14px;border-radius:9px;background:#2271b1;color:#fff;font-size:14px;font-weight:700;cursor:pointer;list-style:none}
.kourse-network-class-invite summary::-webkit-details-marker{display:none}
.kourse-network-class-invite[open] form{position:absolute;z-index:40;left:0;top:calc(100% + 6px);width:300px;padding:12px;background:#fff;border:1px solid #dde5ee;border-radius:11px;box-shadow:0 12px 30px rgba(15,23,42,.15);display:grid;gap:9px}
.kourse-network-class-invite select{width:100%}
.kourse-network-empty{grid-column:1/-1}
.kourse-network-empty strong{font-size:16px}
.kourse-network-empty p{margin-bottom:0;color:#708094}
.kourse-network-profile-tip{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:20px}
.kourse-network-profile-tip h2{margin:2px 0 4px}
.kourse-network-profile-tip p:last-child{margin:0;color:#68788b}
@media(max-width:900px){.kourse-teacher-network-grid{grid-template-columns:1fr}.kourse-network-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.kourse-network-search{flex-direction:column}.kourse-network-summary{grid-template-columns:1fr 1fr}.kourse-network-profile-tip{align-items:flex-start;flex-direction:column}.kourse-network-class-invite[open] form{position:fixed;left:16px;right:16px;top:auto;width:auto}}


/* v3.0.0 — Student Code + Parent Dashboard */
.kourse-student-code-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.kourse-student-code-card h3{margin:2px 0 7px}
.kourse-student-code-card p{margin:0 0 14px;color:#66768a;line-height:1.45}
.kourse-student-code-value{
  width:100% !important;
  min-height:58px !important;
  padding:12px 16px !important;
  border:1px dashed #9eb8d6 !important;
  border-radius:12px !important;
  background:#f2f7fd !important;
  color:#244d78 !important;
  font-size:24px !important;
  font-weight:850 !important;
  letter-spacing:.12em !important;
  cursor:pointer !important;
}
.kourse-student-code-help{margin-top:7px;font-size:12.5px;color:#78889a}

.kourse-parent-dashboard{
  max-width:1180px;
  margin:24px auto;
  display:grid;
  gap:16px;
}
.kourse-parent-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:22px 24px;
  border:1px solid #dde5ee;
  border-radius:16px;
  background:#fff;
}
.kourse-parent-hero h1{margin:2px 0 5px;font-size:30px;line-height:1.2;color:#243b55}
.kourse-parent-hero p:last-child{margin:0;color:#68788b;font-size:15px}
.kourse-parent-badge{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:8px 12px;
  border-radius:999px;
  background:#eef5ff;
  color:#315d8b;
  font-size:13px;
  font-weight:750;
  white-space:nowrap;
}
.kourse-parent-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.kourse-parent-kpis article{
  padding:17px 18px;
  border:1px solid #e2e8f0;
  border-radius:13px;
  background:#fff;
}
.kourse-parent-kpis span{display:block;font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#718095}
.kourse-parent-kpis strong{display:block;margin:6px 0 3px;font-size:29px;line-height:1.05;color:#243b55}
.kourse-parent-kpis small{font-size:13px;color:#8794a3}
.kourse-parent-summary h2{margin:2px 0 6px;font-size:22px}
.kourse-parent-summary p:last-child{margin:0;font-size:15px;line-height:1.5;color:#52667c}
.kourse-parent-grid{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);
  gap:14px;
}
.kourse-parent-grid>.kourse-card{padding:20px}
.kourse-parent-skill-list{display:flex;flex-direction:column}
.kourse-parent-skill-list article{
  display:grid;
  grid-template-columns:minmax(170px,1.2fr) minmax(120px,1fr) auto;
  gap:13px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid #edf1f5;
}
.kourse-parent-skill-list article:last-child{border-bottom:0}
.kourse-parent-skill-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.kourse-parent-skill-copy strong{font-size:15px;color:#2c435c}
.kourse-parent-skill-copy small{font-size:12.5px;color:#8794a3}
.kourse-parent-skill-meter{height:8px;border-radius:999px;background:#edf1f5;overflow:hidden}
.kourse-parent-skill-meter span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7897ff,#79cda9)}
.kourse-parent-skill-result{display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.kourse-parent-skill-result b{font-size:15px;color:#304860}
.kourse-parent-skill-result span{font-size:11.5px;font-weight:750}
.kourse-parent-skill-result .is-mastered{color:#2b7c55}
.kourse-parent-skill-result .is-progress{color:#8b6918}
.kourse-parent-skill-result .is-support{color:#a64c4c}
.kourse-parent-activity-list{display:flex;flex-direction:column}
.kourse-parent-activity-list article{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 0;
  border-bottom:1px solid #edf1f5;
}
.kourse-parent-activity-list article:last-child{border-bottom:0}
.kourse-parent-activity-list article>div{display:flex;flex-direction:column;gap:2px}
.kourse-parent-activity-list strong{font-size:14.5px}
.kourse-parent-activity-list small{font-size:12.5px;color:#8290a0}
.kourse-parent-activity-list b,.kourse-parent-activity-list span{font-size:13px;color:#52667c;white-space:nowrap}
.kourse-parent-footer-note{
  padding:15px 18px;
  border:1px solid #e2e8f0;
  border-radius:12px;
  background:#f8fafc;
}
.kourse-parent-footer-note strong{font-size:14px;color:#40566f}
.kourse-parent-footer-note p{margin:3px 0 0;font-size:13px;line-height:1.45;color:#718095}

@media(max-width:900px){
  .kourse-parent-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kourse-parent-grid{grid-template-columns:1fr}
}
@media(max-width:620px){
  .kourse-parent-hero{align-items:flex-start;flex-direction:column}
  .kourse-parent-kpis{grid-template-columns:1fr 1fr}
  .kourse-parent-skill-list article{grid-template-columns:1fr;gap:7px}
  .kourse-parent-skill-result{align-items:flex-start;flex-direction:row;gap:8px}
}


/* v3.0.1 — reliable roster search + move student */
.kourse-move-student{position:relative}
.kourse-move-student>summary{display:inline-flex;align-items:center;min-height:34px;padding:7px 9px;border-radius:8px;cursor:pointer;font-size:13.5px;font-weight:650;color:#52667c;list-style:none}
.kourse-move-student>summary::-webkit-details-marker{display:none}
.kourse-move-student[open] .kourse-move-student-panel{position:absolute;z-index:60;right:0;top:calc(100% + 6px);width:285px;padding:12px;border:1px solid #dde5ee;border-radius:11px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.16);display:grid;gap:9px}
.kourse-move-student-panel label{display:grid;gap:5px;font-size:12.5px;font-weight:700;color:#607287}
.kourse-move-student-panel select{width:100%;min-height:42px}
.kourse-move-student-status{font-size:12.5px;line-height:1.35;color:#9b4e4e}
.kourse-student-search-box{display:flex;gap:8px;align-items:stretch}
.kourse-student-search-box input{flex:1;min-width:0}
@media(max-width:600px){.kourse-move-student[open] .kourse-move-student-panel{position:fixed;left:16px;right:16px;top:auto;width:auto}.kourse-student-search-box{flex-direction:column}}


/* v3.0.2 — Administrator Teacher Access code manager */
.kourse-teacher-access-card{margin-top:16px}
.kourse-teacher-access-card .kourse-section-heading p:last-child{margin:5px 0 0;color:#68788b;font-size:14px;line-height:1.45}
.kourse-teacher-code-panel{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(280px,1.15fr);gap:18px;align-items:stretch;margin-top:12px}
.kourse-teacher-code-copy,.kourse-teacher-code-regenerate{padding:16px;border:1px solid #e1e7ee;border-radius:12px;background:#f8fafc}
.kourse-teacher-code-copy{display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.kourse-teacher-code-copy>small:first-child{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#708094}
.kourse-teacher-code-value{width:100% !important;min-height:58px !important;padding:12px 16px !important;border:1px dashed #99b6d6 !important;border-radius:11px !important;background:#eef5fd !important;color:#234f7b !important;font-size:24px !important;font-weight:850 !important;letter-spacing:.1em !important;cursor:pointer !important}
.kourse-teacher-code-copy-status{font-size:12.5px;color:#728297}
.kourse-teacher-code-regenerate{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;margin:0}
.kourse-teacher-code-regenerate .button{min-height:42px}
.kourse-teacher-code-regenerate small{max-width:520px;font-size:12.5px;line-height:1.45;color:#728297}
.kourse-teacher-code-note{margin:14px 0 0;padding-top:13px;border-top:1px solid #edf1f5;font-size:13.5px;line-height:1.5;color:#617185}
@media(max-width:720px){.kourse-teacher-code-panel{grid-template-columns:1fr}.kourse-teacher-code-value{font-size:20px !important}}


/* v3.0.3 — Student Code moved to dashboard hero */
.kourse-dashboard-hero-actions{
  display:flex;
  align-items:center;
  gap:14px;
  margin-left:auto;
}
.kourse-hero-student-code{
  display:grid;
  justify-items:end;
  gap:3px;
}
.kourse-hero-student-code>span{
  font-size:11.5px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.045em;
  text-transform:uppercase;
  color:#6f8093;
}
.kourse-hero-student-code-button{
  width:auto !important;
  min-height:38px !important;
  padding:7px 12px !important;
  border:1px dashed #9eb8d6 !important;
  border-radius:10px !important;
  background:#f2f7fd !important;
  color:#244d78 !important;
  font-size:17px !important;
  line-height:1 !important;
  font-weight:850 !important;
  letter-spacing:.1em !important;
  cursor:pointer !important;
}
.kourse-hero-student-code small{
  font-size:11.5px;
  color:#8290a0;
}
@media(max-width:700px){
  .kourse-dashboard-hero{align-items:flex-start}
  .kourse-dashboard-hero-actions{align-items:flex-end;flex-direction:column-reverse;gap:8px}
  .kourse-hero-student-code{justify-items:end}
  .kourse-hero-student-code>span{font-size:10.5px}
  .kourse-hero-student-code-button{font-size:15px !important;min-height:35px !important}
}


/* v3.0.4 — Safe preset student-profile statements */
.kourse-profile-hero-copy{min-width:0;flex:1}
.kourse-profile-empty-copy{margin:7px 0 12px;color:#728094;font-size:14px}
.kourse-profile-statements{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0 14px;
}
.kourse-profile-statement{
  display:flex;
  align-items:baseline;
  gap:5px;
  padding:8px 11px;
  border:1px solid #e2e8f0;
  border-radius:10px;
  background:#f8fafc;
}
.kourse-profile-statement small{
  font-size:12.5px;
  color:#748296;
}
.kourse-profile-statement strong{
  font-size:13.5px;
  color:#314861;
  font-weight:750;
}
.kourse-profile-customize-card>h3{margin-bottom:5px}
.kourse-profile-preset-intro{
  margin:0 0 16px;
  max-width:760px;
  color:#66768a;
  font-size:14px;
  line-height:1.5;
}
.kourse-profile-preset-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
  margin-bottom:22px;
}
.kourse-profile-preset-card{
  display:flex !important;
  flex-direction:column;
  gap:8px;
  padding:14px;
  border:1px solid #e1e7ee;
  border-radius:12px;
  background:#fbfcfe;
}
.kourse-profile-preset-card>span{
  font-size:14px;
  line-height:1.4;
  font-weight:750;
  color:#344b63;
}
.kourse-profile-preset-card select{
  width:100%;
  min-height:44px;
  font-size:14px;
  border-radius:9px;
}
@media(max-width:700px){
  .kourse-profile-preset-grid{grid-template-columns:1fr}
  .kourse-profile-statements{flex-direction:column;align-items:stretch}
  .kourse-profile-statement{display:block}
  .kourse-profile-statement small{display:block;margin-bottom:2px}
}


/* v3.0.5 — Shared teacher Google Calendar + student planning workspace */
.kourse-calendar-page{min-width:0}
.kourse-calendar-teacher-grid{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(240px,.6fr);
  gap:16px;
  margin-bottom:16px;
}
.kourse-calendar-embed-form textarea{
  width:100%;
  min-height:135px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:13px;
  line-height:1.45;
}
.kourse-form-help{
  margin:8px 0 14px;
  color:#6f7d90;
  font-size:13.5px;
  line-height:1.5;
}
.kourse-calendar-form-actions{display:flex;gap:9px;flex-wrap:wrap}
.kourse-calendar-audience-card{
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.kourse-calendar-audience-card h3{margin-bottom:6px}
.kourse-calendar-audience-count{
  display:block;
  margin-top:10px;
  font-size:38px;
  line-height:1;
}
.kourse-calendar-audience-card p{margin:7px 0}
.kourse-calendar-audience-card small{color:#748296;line-height:1.45}
.kourse-calendar-embed-wrap{
  position:relative;
  width:100%;
  min-height:560px;
  overflow:hidden;
  border:1px solid #dfe6ee;
  border-radius:13px;
  background:#fff;
}
.kourse-calendar-embed{
  display:block;
  width:100%;
  height:620px;
  border:0;
  background:#fff;
}
.kourse-calendar-empty{padding:34px 20px;text-align:center}
.kourse-calendar-teacher-tabs{
  display:flex;
  gap:8px;
  overflow-x:auto;
  margin:0 0 14px;
  padding:2px 0 4px;
}
.kourse-calendar-teacher-tabs a{
  flex:0 0 auto;
  text-decoration:none;
  padding:9px 13px;
  border:1px solid #dfe6ee;
  border-radius:999px;
  background:#fff;
  font-size:14px;
  font-weight:700;
}
.kourse-calendar-teacher-tabs a.is-active{
  border-color:#7ea6d8;
  background:#edf5ff;
}
.kourse-calendar-main-card{margin-bottom:16px}
.kourse-calendar-class-label{
  margin:3px 0 0;
  color:#718096;
  font-size:13px;
}
.kourse-calendar-tools-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:16px;
}
.kourse-calendar-private-pill{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:5px 9px;
  border-radius:999px;
  background:#eef7f1;
  color:#3f6d51;
  font-size:12px;
  font-weight:750;
}
.kourse-calendar-notes-card textarea{
  width:100%;
  min-height:230px;
  resize:vertical;
}
.kourse-calendar-add-item-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  margin-bottom:12px;
}
.kourse-calendar-add-item-form input{width:100%}
.kourse-calendar-checklist{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.kourse-calendar-checklist-empty{
  padding:24px 12px;
  text-align:center;
  color:#7b8797;
  border:1px dashed #d9e0e8;
  border-radius:11px;
}
.kourse-calendar-check-item{
  display:grid;
  grid-template-columns:32px minmax(0,1fr) 32px;
  align-items:center;
  gap:9px;
  min-height:46px;
  padding:7px 9px;
  border:1px solid #e3e8ee;
  border-radius:10px;
  background:#fbfcfd;
}
.kourse-calendar-check-item>span{
  font-size:14px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.kourse-calendar-check-item.is-done>span{
  color:#8a94a3;
  text-decoration:line-through;
}
.kourse-calendar-check-toggle,
.kourse-calendar-check-delete{margin:0}
.kourse-calendar-check-button,
.kourse-calendar-check-delete button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  min-height:30px !important;
  padding:0 !important;
  border:1px solid #cfd8e3;
  border-radius:8px;
  background:#fff;
  cursor:pointer;
  font-size:16px;
}
.kourse-calendar-check-item.is-done .kourse-calendar-check-button{
  background:#e8f5ec;
  border-color:#a9d3b4;
}
.kourse-calendar-check-delete button{
  border-color:transparent;
  background:transparent;
  color:#a05454;
  font-size:20px;
}
.kourse-calendar-clear-completed{margin-top:8px}
.kourse-calendar-profile-note{
  margin:14px 2px 0;
  color:#758397;
  font-size:13px;
  text-align:center;
}
body.kourse-theme-dark .kourse-calendar-teacher-tabs a,
html.kourse-system-dark body.kourse-theme-system .kourse-calendar-teacher-tabs a,
body.kourse-theme-dark .kourse-calendar-check-item,
html.kourse-system-dark body.kourse-theme-system .kourse-calendar-check-item,
body.kourse-theme-dark .kourse-calendar-check-button,
html.kourse-system-dark body.kourse-theme-system .kourse-calendar-check-button{
  background:var(--kourse-surface-2,#1e2632);
  border-color:var(--kourse-border,#344151);
  color:var(--kourse-text,#f4f7fa);
}
body.kourse-theme-dark .kourse-calendar-teacher-tabs a.is-active,
html.kourse-system-dark body.kourse-theme-system .kourse-calendar-teacher-tabs a.is-active{
  background:var(--kourse-primary-soft,#273b55);
}
body.kourse-theme-dark .kourse-calendar-embed-wrap,
html.kourse-system-dark body.kourse-theme-system .kourse-calendar-embed-wrap{
  border-color:var(--kourse-border,#344151);
}
@media(max-width:900px){
  .kourse-calendar-teacher-grid,
  .kourse-calendar-tools-grid{grid-template-columns:1fr}
  .kourse-calendar-embed-wrap{min-height:500px}
  .kourse-calendar-embed{height:540px}
}
@media(max-width:620px){
  .kourse-calendar-embed-wrap{min-height:430px;border-radius:10px}
  .kourse-calendar-embed{height:470px}
  .kourse-calendar-add-item-form{grid-template-columns:1fr}
  .kourse-calendar-add-item-form button{width:100%}
}


/* v3.0.6 — simplified student navigation */
.kourse-student-nav.kourse-student-nav-simple{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.kourse-student-nav.kourse-student-nav-simple a{
  display:grid;
  grid-template-columns:30px minmax(0,1fr);
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:8px 14px;
  border-radius:12px;
  text-decoration:none;
  font-size:15px;
  font-weight:750;
  line-height:1.2;
}
.kourse-student-nav-simple .kourse-student-nav-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:9px;
  background:rgba(70,116,166,.08);
  font-size:15px;
  font-weight:800;
}
.kourse-student-nav-simple a.is-active .kourse-student-nav-icon{
  background:rgba(255,255,255,.18);
}
.kourse-student-nav-simple .kourse-nav-grip{display:none!important}

.kourse-student-hub-page{min-width:0}
.kourse-student-hub-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.kourse-student-hub-card{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
  min-height:94px;
  padding:17px;
  border:1px solid rgba(78,105,135,.12);
  border-radius:16px;
  text-decoration:none!important;
  transition:transform .16s ease, box-shadow .16s ease;
}
.kourse-student-hub-card:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(42,63,84,.08);
}
.kourse-student-hub-card.is-blue{background:#e6f6ff}
.kourse-student-hub-card.is-purple{background:#efe8ff}
.kourse-student-hub-card.is-green{background:#e8f8ed}
.kourse-student-hub-card.is-pink{background:#ffe9f0}
.kourse-student-hub-card.is-gold{background:#fff5d9}
.kourse-student-hub-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border-radius:13px;
  background:rgba(255,255,255,.55);
  font-size:24px;
}
.kourse-student-hub-copy{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.kourse-student-hub-copy strong{
  color:#213f60;
  font-size:16px;
  line-height:1.2;
}
.kourse-student-hub-copy small{
  color:#5f7388;
  font-size:13.5px;
  line-height:1.4;
}
.kourse-student-hub-card>b{
  color:#315a7f;
  font-size:20px;
}

/* v3.0.6 — compact static parent code */
.kourse-dashboard-hero{
  position:relative;
}
.kourse-dashboard-hero-actions{
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  align-self:flex-start;
  margin-left:auto;
}
.kourse-hero-parent-code{
  display:grid;
  grid-template-columns:auto auto;
  align-items:center;
  column-gap:10px;
  row-gap:2px;
  min-width:190px;
  padding:12px 14px;
  border:1px solid rgba(69,111,153,.16);
  border-radius:14px;
  background:rgba(255,255,255,.68);
  box-shadow:0 6px 18px rgba(44,76,109,.06);
}
.kourse-hero-parent-code>span{
  color:#617991;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.kourse-hero-parent-code>strong{
  grid-row:1 / span 2;
  grid-column:2;
  padding:6px 9px;
  border-radius:9px;
  background:#fff;
  color:#193d63;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:17px;
  letter-spacing:.08em;
  line-height:1;
}
.kourse-hero-parent-code>small{
  color:#7a8da0;
  font-size:11.5px;
  line-height:1.2;
}

body.kourse-theme-dark .kourse-student-nav-simple .kourse-student-nav-icon,
html.kourse-system-dark body.kourse-theme-system .kourse-student-nav-simple .kourse-student-nav-icon{
  background:var(--kourse-surface-2,#26303d);
}
body.kourse-theme-dark .kourse-student-hub-card,
html.kourse-system-dark body.kourse-theme-system .kourse-student-hub-card{
  background:var(--kourse-surface-2,#1f2935);
  border-color:var(--kourse-border,#344151);
}
body.kourse-theme-dark .kourse-student-hub-copy strong,
html.kourse-system-dark body.kourse-theme-system .kourse-student-hub-copy strong{
  color:var(--kourse-text,#f4f7fa);
}
body.kourse-theme-dark .kourse-student-hub-copy small,
html.kourse-system-dark body.kourse-theme-system .kourse-student-hub-copy small{
  color:var(--kourse-muted,#aab5c3);
}
body.kourse-theme-dark .kourse-hero-parent-code,
html.kourse-system-dark body.kourse-theme-system .kourse-hero-parent-code{
  background:var(--kourse-surface-2,#1f2935);
  border-color:var(--kourse-border,#344151);
}
body.kourse-theme-dark .kourse-hero-parent-code>strong,
html.kourse-system-dark body.kourse-theme-system .kourse-hero-parent-code>strong{
  background:var(--kourse-surface-3,#263240);
  color:var(--kourse-text,#f4f7fa);
}
@media(max-width:760px){
  .kourse-student-hub-grid{grid-template-columns:1fr}
  .kourse-dashboard-hero{
    gap:16px;
  }
  .kourse-dashboard-hero-actions{
    width:100%;
    margin-left:0;
    justify-content:flex-start;
  }
  .kourse-hero-parent-code{
    min-width:0;
    width:auto;
  }
}


/* v3.0.7 — polished student sidebar navigation */
.kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple{
  gap:6px;
  padding-left:10px;
  padding-right:10px;
}
.kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple a{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  width:100% !important;
  min-height:52px !important;
  padding:10px 14px !important;
  margin:0 !important;
  border-radius:12px !important;
  box-sizing:border-box !important;
  white-space:nowrap !important;
  overflow:visible !important;
  font-size:15.5px !important;
  font-weight:750 !important;
  line-height:1.2 !important;
}
.kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple .kourse-student-nav-icon{
  flex:0 0 24px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:24px !important;
  height:24px !important;
  min-width:24px !important;
  min-height:24px !important;
  padding:0 !important;
  margin:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#526f8c !important;
  box-shadow:none !important;
}
.kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple .kourse-student-nav-icon svg{
  display:block !important;
  width:22px !important;
  height:22px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.8 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}
.kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple .kourse-student-nav-label{
  display:block !important;
  min-width:0 !important;
  white-space:nowrap !important;
  overflow:visible !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
}
.kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple a.is-active{
  color:#fff !important;
}
.kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple a.is-active .kourse-student-nav-icon{
  color:#fff !important;
  background:transparent !important;
}
body.kourse-theme-dark .kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple .kourse-student-nav-icon,
html.kourse-system-dark body.kourse-theme-system .kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple .kourse-student-nav-icon{
  color:var(--kourse-text-soft,#c7d2df) !important;
}
body.kourse-theme-dark .kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple a.is-active .kourse-student-nav-icon,
html.kourse-system-dark body.kourse-theme-system .kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple a.is-active .kourse-student-nav-icon{
  color:#fff !important;
}
@media(max-width:900px){
  .kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple a{
    min-height:48px !important;
    padding:9px 12px !important;
    font-size:15px !important;
  }
}


/* v3.0.9 — bulk journal prompt deletion */
.kourse-prompt-bulk-toolbar{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 12px;
  padding:10px 12px;
  border:1px solid #dfe6ee;
  border-radius:10px;
  background:#f8fafc;
}
.kourse-prompt-select-all{
  display:inline-flex!important;
  align-items:center;
  gap:7px;
  font-weight:700;
}
.kourse-prompt-select-all input,
.kourse-prompt-select-row input{
  width:18px!important;
  height:18px!important;
  min-height:18px!important;
  margin:0!important;
}
.kourse-prompt-selected-count{
  margin-right:auto;
  color:#6d7d8e;
  font-size:13px;
}
.kourse-prompt-bulk-delete{
  min-height:36px!important;
  color:#a22!important;
  border-color:#d7a6a6!important;
  background:#fff!important;
}
.kourse-prompt-bulk-delete:disabled{opacity:.45;cursor:not-allowed}
.kourse-prompt-list-selectable article{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
}
.kourse-prompt-select-row{
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr);
  align-items:start;
  gap:10px;
  min-width:0;
  cursor:pointer;
}
.kourse-prompt-select-row span{line-height:1.45}
body.kourse-theme-dark .kourse-prompt-bulk-toolbar,
html.kourse-system-dark body.kourse-theme-system .kourse-prompt-bulk-toolbar{
  background:var(--kourse-surface-2,#1f2935);
  border-color:var(--kourse-border,#344151);
}
@media(max-width:620px){
  .kourse-prompt-selected-count{width:100%;margin-right:0}
  .kourse-prompt-bulk-delete{width:100%}
}


/* v3.0.10 — journal prompt CSV template */
.kourse-prompt-template-download{
  flex:0 0 auto;
  white-space:nowrap;
}
.kourse-wrap code{
  padding:2px 6px;
  border-radius:5px;
  background:#eef3f8;
  font-size:.92em;
}
body.kourse-theme-dark .kourse-wrap code,
html.kourse-system-dark body.kourse-theme-system .kourse-wrap code{
  background:var(--kourse-surface-3,#263240);
  color:var(--kourse-text,#f4f7fa);
}
@media(max-width:700px){
  .kourse-prompt-template-download{width:100%;justify-content:center}
}


/* v3.0.11 — normalize student sidebar alignment */
.kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:8px !important;
  padding:0 12px !important;
  margin:0 !important;
  box-sizing:border-box !important;
}

.kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple a{
  display:grid !important;
  grid-template-columns:28px minmax(0,1fr) !important;
  align-items:center !important;
  justify-content:stretch !important;
  column-gap:12px !important;

  width:100% !important;
  min-width:0 !important;
  min-height:52px !important;
  height:52px !important;

  margin:0 !important;
  padding:0 14px !important;
  box-sizing:border-box !important;

  border-radius:12px !important;
  text-align:left !important;
  white-space:nowrap !important;
}

.kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple .kourse-student-nav-icon{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  width:28px !important;
  height:28px !important;
  min-width:28px !important;
  min-height:28px !important;

  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}

.kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple .kourse-student-nav-icon svg{
  width:21px !important;
  height:21px !important;
  display:block !important;
}

.kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple .kourse-student-nav-label{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  min-width:0 !important;

  font-size:15px !important;
  font-weight:750 !important;
  line-height:1 !important;

  text-align:left !important;
  white-space:nowrap !important;
  overflow:visible !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
}

/* Keep active/inactive rows geometrically identical. */
.kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple a.is-active,
.kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple a:not(.is-active){
  grid-template-columns:28px minmax(0,1fr) !important;
  column-gap:12px !important;
  padding-left:14px !important;
  padding-right:14px !important;
}

/* Prevent older sidebar rules from shifting labels or adding pseudo spacing. */
.kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple a::before,
.kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple a::after{
  content:none !important;
  display:none !important;
}

@media(max-width:900px){
  .kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple{
    padding:0 10px !important;
  }
  .kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple a{
    height:48px !important;
    min-height:48px !important;
    padding:0 12px !important;
  }
}


/* v3.0.12 — keep student sidebar navigation compact at top */
.kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple{
  align-self:start !important;
  align-content:start !important;
  justify-content:start !important;
  grid-auto-rows:52px !important;
  height:auto !important;
  min-height:0 !important;
}

.kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple a{
  align-self:start !important;
}

@media(max-width:900px){
  .kourse-student-portal > .kourse-student-nav.kourse-student-nav-simple{
    grid-auto-rows:48px !important;
  }
}


/* v3.0.13 — hard-fix student sidebar icon/text alignment */
.kourse-student-portal > nav.kourse-student-nav.kourse-student-nav-simple{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  align-content:initial !important;
  gap:8px !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  padding:0 12px !important;
  margin:0 !important;
  box-sizing:border-box !important;
}

.kourse-student-portal > nav.kourse-student-nav.kourse-student-nav-simple > a{
  display:grid !important;
  grid-template-columns:24px minmax(0,1fr) !important;
  grid-template-rows:1fr !important;
  align-items:center !important;
  justify-items:start !important;
  column-gap:12px !important;

  width:100% !important;
  height:52px !important;
  min-height:52px !important;
  max-height:52px !important;

  margin:0 !important;
  padding:0 14px !important;
  box-sizing:border-box !important;

  position:relative !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  transform:none !important;

  text-align:left !important;
  text-indent:0 !important;
  white-space:nowrap !important;
}

.kourse-student-portal > nav.kourse-student-nav.kourse-student-nav-simple > a > .kourse-student-nav-icon{
  grid-column:1 !important;
  grid-row:1 !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  width:24px !important;
  height:24px !important;
  min-width:24px !important;
  max-width:24px !important;
  min-height:24px !important;
  max-height:24px !important;

  margin:0 !important;
  padding:0 !important;

  position:static !important;
  inset:auto !important;
  transform:none !important;

  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  line-height:1 !important;
}

.kourse-student-portal > nav.kourse-student-nav.kourse-student-nav-simple > a > .kourse-student-nav-icon svg{
  display:block !important;
  width:21px !important;
  height:21px !important;
  margin:0 auto !important;
  padding:0 !important;
  position:static !important;
  transform:none !important;
  vertical-align:middle !important;

  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.8 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}

.kourse-student-portal > nav.kourse-student-nav.kourse-student-nav-simple > a > .kourse-student-nav-label{
  grid-column:2 !important;
  grid-row:1 !important;

  display:block !important;
  width:auto !important;
  min-width:0 !important;

  margin:0 !important;
  padding:0 !important;

  position:static !important;
  inset:auto !important;
  transform:none !important;

  font-size:15px !important;
  font-weight:750 !important;
  line-height:1 !important;
  text-align:left !important;
  text-indent:0 !important;

  white-space:nowrap !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
}

/* Active and inactive links must share identical geometry. */
.kourse-student-portal > nav.kourse-student-nav.kourse-student-nav-simple > a.is-active,
.kourse-student-portal > nav.kourse-student-nav.kourse-student-nav-simple > a:not(.is-active){
  grid-template-columns:24px minmax(0,1fr) !important;
  column-gap:12px !important;
  height:52px !important;
  padding:0 14px !important;
}

/* Disable any decorative pseudo-elements from older nav styles. */
.kourse-student-portal > nav.kourse-student-nav.kourse-student-nav-simple > a::before,
.kourse-student-portal > nav.kourse-student-nav.kourse-student-nav-simple > a::after,
.kourse-student-portal > nav.kourse-student-nav.kourse-student-nav-simple > a > .kourse-student-nav-icon::before,
.kourse-student-portal > nav.kourse-student-nav.kourse-student-nav-simple > a > .kourse-student-nav-icon::after{
  content:none !important;
  display:none !important;
}

/* Make hover/active styling visual only; never alter spacing. */
.kourse-student-portal > nav.kourse-student-nav.kourse-student-nav-simple > a:hover,
.kourse-student-portal > nav.kourse-student-nav.kourse-student-nav-simple > a:focus,
.kourse-student-portal > nav.kourse-student-nav.kourse-student-nav-simple > a.is-active{
  margin:0 !important;
  padding:0 14px !important;
  transform:none !important;
}

@media(max-width:900px){
  .kourse-student-portal > nav.kourse-student-nav.kourse-student-nav-simple{
    padding:0 10px !important;
    gap:7px !important;
  }

  .kourse-student-portal > nav.kourse-student-nav.kourse-student-nav-simple > a,
  .kourse-student-portal > nav.kourse-student-nav.kourse-student-nav-simple > a.is-active,
  .kourse-student-portal > nav.kourse-student-nav.kourse-student-nav-simple > a:not(.is-active){
    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;
    padding:0 12px !important;
  }
}


/* v3.0.14 — isolated student sidebar navigation */
.kourse-student-portal > nav.kourse-student-sidebar-nav{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  gap:8px !important;

  width:100% !important;
  height:auto !important;
  min-height:0 !important;

  margin:0 !important;
  padding:0 12px !important;
  box-sizing:border-box !important;

  border:0 !important;
  background:transparent !important;
  border-radius:0 !important;
  box-shadow:none !important;
}

.kourse-student-portal > nav.kourse-student-sidebar-nav > a{
  display:grid !important;
  grid-template-columns:24px 1fr !important;
  align-items:center !important;
  column-gap:12px !important;

  width:100% !important;
  height:52px !important;
  min-height:52px !important;
  max-height:52px !important;

  margin:0 !important;
  padding:0 14px !important;
  box-sizing:border-box !important;

  position:static !important;
  transform:none !important;
  text-indent:0 !important;

  border:0 !important;
  border-radius:12px !important;
  background:transparent !important;
  box-shadow:none !important;

  color:#3e5e7e !important;
  text-decoration:none !important;
  text-align:left !important;
  font-size:15px !important;
  font-weight:750 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}

.kourse-student-portal > nav.kourse-student-sidebar-nav > a:hover{
  background:#f2f7fb !important;
  color:#2d5377 !important;
}

.kourse-student-portal > nav.kourse-student-sidebar-nav > a.is-active{
  background:linear-gradient(135deg,#248cf3,#2c7fe7) !important;
  color:#fff !important;
  box-shadow:0 8px 18px rgba(36,125,225,.20) !important;
}

.kourse-student-portal > nav.kourse-student-sidebar-nav > a > .kourse-student-nav-icon{
  grid-column:1 !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  width:24px !important;
  height:24px !important;
  min-width:24px !important;
  max-width:24px !important;
  min-height:24px !important;
  max-height:24px !important;

  margin:0 !important;
  padding:0 !important;

  position:static !important;
  transform:none !important;

  color:inherit !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

.kourse-student-portal > nav.kourse-student-sidebar-nav > a > .kourse-student-nav-icon svg{
  display:block !important;
  width:21px !important;
  height:21px !important;

  margin:0 !important;
  padding:0 !important;

  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.8 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}

.kourse-student-portal > nav.kourse-student-sidebar-nav > a > .kourse-student-nav-label{
  grid-column:2 !important;

  display:block !important;
  margin:0 !important;
  padding:0 !important;

  position:static !important;
  transform:none !important;

  color:inherit !important;
  font:inherit !important;
  line-height:1 !important;

  white-space:nowrap !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
}

/* Nothing decorative is allowed to change row geometry. */
.kourse-student-portal > nav.kourse-student-sidebar-nav > a::before,
.kourse-student-portal > nav.kourse-student-sidebar-nav > a::after,
.kourse-student-portal > nav.kourse-student-sidebar-nav > a > span::before,
.kourse-student-portal > nav.kourse-student-sidebar-nav > a > span::after{
  content:none !important;
  display:none !important;
}

body.kourse-theme-dark .kourse-student-portal > nav.kourse-student-sidebar-nav > a,
html.kourse-system-dark body.kourse-theme-system .kourse-student-portal > nav.kourse-student-sidebar-nav > a{
  color:var(--kourse-text-soft,#c7d2df) !important;
}

body.kourse-theme-dark .kourse-student-portal > nav.kourse-student-sidebar-nav > a:hover,
html.kourse-system-dark body.kourse-theme-system .kourse-student-portal > nav.kourse-student-sidebar-nav > a:hover{
  background:var(--kourse-surface-2,#1f2935) !important;
}

body.kourse-theme-dark .kourse-student-portal > nav.kourse-student-sidebar-nav > a.is-active,
html.kourse-system-dark body.kourse-theme-system .kourse-student-portal > nav.kourse-student-sidebar-nav > a.is-active{
  color:#fff !important;
  background:linear-gradient(135deg,#248cf3,#2c7fe7) !important;
}

@media(max-width:900px){
  .kourse-student-portal > nav.kourse-student-sidebar-nav{
    padding:0 10px !important;
    gap:7px !important;
  }

  .kourse-student-portal > nav.kourse-student-sidebar-nav > a{
    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;
    padding:0 12px !important;
  }
}


/* v3.0.15 — restore isolated student nav to the actual sidebar grid column */
.kourse-student-portal > nav.kourse-student-sidebar-nav{
  grid-column:1 !important;
  grid-row:1 / span 50 !important;
  align-self:stretch !important;
  width:auto !important;
}

/* The legacy rule sends anything that is not .kourse-student-nav to column 2.
   Explicitly keep all real page content in column 2 while excluding the new nav. */
.kourse-student-portal > *:not(.kourse-student-sidebar-nav){
  grid-column:2 !important;
}

/* Keep the nav itself compact inside the left rail. */
.kourse-student-portal > nav.kourse-student-sidebar-nav{
  justify-self:stretch !important;
  padding:24px 14px !important;
  gap:8px !important;
  background:#fff !important;
  border-right:1px solid #dbe5ef !important;
  border-radius:24px 0 0 24px !important;
  box-sizing:border-box !important;
}

/* Restore the Kourse wordmark that the old sidebar class used to provide. */
.kourse-student-portal > nav.kourse-student-sidebar-nav::before{
  content:"Kourse" !important;
  display:block !important;
  padding:8px 4px 22px !important;
  color:#12365d !important;
  font-size:29px !important;
  font-weight:900 !important;
  line-height:1 !important;
  letter-spacing:-1.4px !important;
}

/* Responsive behavior for the new isolated class mirrors the previous student nav. */
@media(max-width:980px) and (min-width:721px){
  .kourse-student-portal > nav.kourse-student-sidebar-nav{
    padding:20px 10px !important;
  }
  .kourse-student-portal > nav.kourse-student-sidebar-nav > a{
    grid-template-columns:22px minmax(0,1fr) !important;
    column-gap:9px !important;
    padding:0 10px !important;
    font-size:14px !important;
  }
}

@media(max-width:720px){
  .kourse-student-portal > nav.kourse-student-sidebar-nav{
    grid-column:auto !important;
    grid-row:auto !important;
    position:sticky !important;
    top:0 !important;
    z-index:30 !important;
    display:flex !important;
    flex-direction:row !important;
    overflow-x:auto !important;
    width:auto !important;
    min-height:auto !important;
    margin:0 -12px 14px !important;
    padding:9px 10px !important;
    gap:7px !important;
    border:0 !important;
    border-radius:0 !important;
    background:#fff !important;
  }

  .kourse-student-portal > nav.kourse-student-sidebar-nav::before{
    display:none !important;
  }

  .kourse-student-portal > nav.kourse-student-sidebar-nav > a{
    flex:0 0 auto !important;
    width:auto !important;
    min-width:max-content !important;
    height:44px !important;
    min-height:44px !important;
    max-height:44px !important;
    grid-template-columns:20px auto !important;
    column-gap:7px !important;
    padding:0 11px !important;
  }

  .kourse-student-portal > *:not(.kourse-student-sidebar-nav){
    grid-column:auto !important;
  }
}

body.kourse-theme-dark .kourse-student-portal > nav.kourse-student-sidebar-nav,
html.kourse-system-dark body.kourse-theme-system .kourse-student-portal > nav.kourse-student-sidebar-nav{
  background:var(--kourse-surface,#17202b) !important;
  border-color:var(--kourse-border,#344151) !important;
}

body.kourse-theme-dark .kourse-student-portal > nav.kourse-student-sidebar-nav::before,
html.kourse-system-dark body.kourse-theme-system .kourse-student-portal > nav.kourse-student-sidebar-nav::before{
  color:var(--kourse-text,#f4f7fa) !important;
}


/* v3.0.16 — simplified teacher portal */
.kourse-teacher-portal > nav.kourse-teacher-sidebar-nav{
  grid-column:1 !important;
  grid-row:1 / span 60 !important;
  align-self:stretch !important;

  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  gap:8px !important;

  min-height:100% !important;
  margin:0 !important;
  padding:24px 14px !important;
  box-sizing:border-box !important;

  background:#fff !important;
  border:0 !important;
  border-right:1px solid #dbe5ef !important;
  border-radius:24px 0 0 24px !important;
  box-shadow:none !important;
}

.kourse-teacher-portal > nav.kourse-teacher-sidebar-nav::before{
  content:"Kourse" !important;
  display:block !important;
  padding:8px 4px 22px !important;
  color:#12365d !important;
  font-size:29px !important;
  font-weight:900 !important;
  line-height:1 !important;
  letter-spacing:-1.4px !important;
}

.kourse-teacher-portal > nav.kourse-teacher-sidebar-nav > a{
  display:grid !important;
  grid-template-columns:24px minmax(0,1fr) !important;
  align-items:center !important;
  column-gap:12px !important;

  width:100% !important;
  height:52px !important;
  min-height:52px !important;
  margin:0 !important;
  padding:0 14px !important;
  box-sizing:border-box !important;

  border-radius:12px !important;
  background:transparent !important;
  color:#3e5e7e !important;
  text-decoration:none !important;
  font-size:15px !important;
  font-weight:750 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}

.kourse-teacher-portal > nav.kourse-teacher-sidebar-nav > a:hover{
  background:#f2f7fb !important;
  color:#2d5377 !important;
}

.kourse-teacher-portal > nav.kourse-teacher-sidebar-nav > a.is-active{
  background:linear-gradient(135deg,#248cf3,#2c7fe7) !important;
  color:#fff !important;
  box-shadow:0 8px 18px rgba(36,125,225,.20) !important;
}

.kourse-teacher-nav-icon{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:24px !important;
  height:24px !important;
  color:inherit !important;
}

.kourse-teacher-nav-icon svg{
  display:block !important;
  width:21px !important;
  height:21px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.8 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}

.kourse-teacher-nav-label{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  white-space:nowrap !important;
  color:inherit !important;
}

/* The legacy teacher grid sends non-old-nav children to column two.
   Explicitly exclude the new isolated rail and keep content in column two. */
.kourse-teacher-portal > *:not(.kourse-teacher-sidebar-nav):not(.kourse-student-view-eye){
  grid-column:2 !important;
}

.kourse-teacher-hero-simple{
  min-height:86px !important;
  padding:20px 24px !important;
  margin:22px 0 14px !important;
  border:0 !important;
  border-radius:18px !important;
  background:linear-gradient(110deg,#dff2ff 0%,#edf4ff 58%,#f6fbff 100%) !important;
  box-shadow:none !important;
}

.kourse-teacher-hero-simple h1{
  margin:1px 0 4px !important;
  color:#102a56 !important;
  font-size:27px !important;
}

.kourse-teacher-hero-simple p:last-child{
  margin:0 !important;
  color:#48617c !important;
}

.kourse-teacher-metrics-simple{
  gap:12px !important;
  margin-bottom:14px !important;
}

.kourse-teacher-metrics-simple .kourse-metric{
  min-height:88px !important;
  padding:15px 17px !important;
  border-radius:14px !important;
}

.kourse-teacher-feature-grid,
.kourse-teacher-hub-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}

.kourse-teacher-hub-card{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
  min-height:94px;
  padding:17px;
  box-sizing:border-box;
  border:1px solid rgba(78,105,135,.12);
  border-radius:16px;
  text-decoration:none !important;
  transition:transform .16s ease,box-shadow .16s ease;
}

.kourse-teacher-hub-card:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(42,63,84,.08);
}

.kourse-teacher-hub-card.is-blue{background:#e6f6ff}
.kourse-teacher-hub-card.is-purple{background:#efe8ff}
.kourse-teacher-hub-card.is-green{background:#e8f8ed}
.kourse-teacher-hub-card.is-pink{background:#ffe9f0}

.kourse-teacher-hub-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border-radius:13px;
  background:rgba(255,255,255,.55);
  font-size:24px;
}

.kourse-teacher-hub-copy{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}

.kourse-teacher-hub-copy strong{
  color:#213f60;
  font-size:16px;
  line-height:1.2;
}

.kourse-teacher-hub-copy small{
  color:#5f7388;
  font-size:13.5px;
  line-height:1.4;
}

.kourse-teacher-hub-card>b{
  color:#315a7f;
  font-size:20px;
}

.kourse-teacher-hub-page .kourse-page-heading{
  margin-top:22px !important;
}

.kourse-teacher-home-grid{
  gap:16px !important;
}

body.kourse-theme-dark .kourse-teacher-portal > nav.kourse-teacher-sidebar-nav,
html.kourse-system-dark body.kourse-theme-system .kourse-teacher-portal > nav.kourse-teacher-sidebar-nav{
  background:var(--kourse-surface,#17202b) !important;
  border-color:var(--kourse-border,#344151) !important;
}

body.kourse-theme-dark .kourse-teacher-portal > nav.kourse-teacher-sidebar-nav::before,
html.kourse-system-dark body.kourse-theme-system .kourse-teacher-portal > nav.kourse-teacher-sidebar-nav::before{
  color:var(--kourse-text,#f4f7fa) !important;
}

body.kourse-theme-dark .kourse-teacher-portal > nav.kourse-teacher-sidebar-nav > a,
html.kourse-system-dark body.kourse-theme-system .kourse-teacher-portal > nav.kourse-teacher-sidebar-nav > a{
  color:var(--kourse-text-soft,#c7d2df) !important;
}

body.kourse-theme-dark .kourse-teacher-portal > nav.kourse-teacher-sidebar-nav > a.is-active,
html.kourse-system-dark body.kourse-theme-system .kourse-teacher-portal > nav.kourse-teacher-sidebar-nav > a.is-active{
  color:#fff !important;
}

body.kourse-theme-dark .kourse-teacher-hub-card,
html.kourse-system-dark body.kourse-theme-system .kourse-teacher-hub-card{
  background:var(--kourse-surface-2,#1f2935) !important;
  border-color:var(--kourse-border,#344151) !important;
}

body.kourse-theme-dark .kourse-teacher-hub-copy strong,
html.kourse-system-dark body.kourse-theme-system .kourse-teacher-hub-copy strong{
  color:var(--kourse-text,#f4f7fa) !important;
}

body.kourse-theme-dark .kourse-teacher-hub-copy small,
html.kourse-system-dark body.kourse-theme-system .kourse-teacher-hub-copy small{
  color:var(--kourse-muted,#aab5c3) !important;
}

@media(max-width:980px) and (min-width:721px){
  .kourse-teacher-portal > nav.kourse-teacher-sidebar-nav{
    padding:20px 10px !important;
  }
  .kourse-teacher-portal > nav.kourse-teacher-sidebar-nav > a{
    grid-template-columns:22px minmax(0,1fr) !important;
    column-gap:9px !important;
    padding:0 10px !important;
    font-size:14px !important;
  }
}

@media(max-width:720px){
  .kourse-teacher-portal > nav.kourse-teacher-sidebar-nav{
    grid-column:auto !important;
    grid-row:auto !important;
    position:sticky !important;
    top:0 !important;
    z-index:30 !important;
    display:flex !important;
    flex-direction:row !important;
    overflow-x:auto !important;
    width:auto !important;
    min-height:auto !important;
    margin:0 -12px 14px !important;
    padding:9px 10px !important;
    gap:7px !important;
    border:0 !important;
    border-radius:0 !important;
    background:#fff !important;
  }

  .kourse-teacher-portal > nav.kourse-teacher-sidebar-nav::before{
    display:none !important;
  }

  .kourse-teacher-portal > nav.kourse-teacher-sidebar-nav > a{
    flex:0 0 auto !important;
    width:auto !important;
    min-width:max-content !important;
    height:44px !important;
    min-height:44px !important;
    grid-template-columns:20px auto !important;
    column-gap:7px !important;
    padding:0 11px !important;
  }

  .kourse-teacher-portal > *:not(.kourse-teacher-sidebar-nav):not(.kourse-student-view-eye){
    grid-column:auto !important;
  }

  .kourse-teacher-feature-grid,
  .kourse-teacher-hub-grid{
    grid-template-columns:1fr !important;
  }
}


/* Student profile theme picker */
.kourse-theme-picker{border:0;padding:0;margin:24px 0}
.kourse-theme-picker>legend{font-weight:800;font-size:17px;margin-bottom:5px}
.kourse-theme-picker-help{margin:0 0 14px!important}
.kourse-theme-picker-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.kourse-theme-choice{position:relative;display:flex;flex-direction:column;gap:6px;min-height:120px;padding:14px;border:1px solid #d9e2ec;border-radius:14px;background:#fff;cursor:pointer;transition:.18s ease}
.kourse-theme-choice:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(32,56,85,.08)}
.kourse-theme-choice.is-selected{border:2px solid #2f80ed;padding:13px}
.kourse-theme-choice input{position:absolute;right:11px;top:11px}
.kourse-theme-choice-title{font-weight:800;font-size:15px;padding-right:22px}
.kourse-theme-choice small{line-height:1.3;opacity:.78}
.kourse-theme-swatches{display:flex;gap:4px;margin-top:auto}
.kourse-theme-swatches i{display:block;width:28px;height:13px;border-radius:4px;background:var(--kourse-swatch);border:1px solid rgba(0,0,0,.08)}
.kourse-theme-swatches.is-default i:nth-child(1){background:#173b63}
.kourse-theme-swatches.is-default i:nth-child(2){background:#2f80ed}
.kourse-theme-swatches.is-default i:nth-child(3){background:#bfe8ff}
.kourse-theme-swatches.is-default i:nth-child(4){background:#fff}
@media(max-width:640px){.kourse-theme-picker-grid{grid-template-columns:1fr 1fr}}

.kourse-teacher-appearance-card{margin-top:18px}
.kourse-teacher-theme-grid{margin-top:14px}

.kourse-theme-choice.is-locked{opacity:.62;cursor:not-allowed;background:#f6f7f9}
.kourse-theme-choice.is-locked:hover{transform:none;box-shadow:none}
.kourse-theme-choice.is-locked .kourse-theme-swatches{filter:saturate(.45)}
.kourse-theme-lock,.kourse-theme-unlocked{font-style:normal;font-size:12px;font-weight:800;margin-top:2px}
.kourse-theme-lock{color:#7a4b24}
.kourse-theme-unlocked{color:#377a46}

.kourse-theme-picker-help strong{font-weight:800}

/* Student XP activity feed */
.kourse-xp-feed-card{margin:14px 0}
.kourse-xp-feed-card .kourse-section-heading{margin-bottom:10px}
.kourse-xp-feed-total{font-size:13px;white-space:nowrap}
.kourse-xp-feed{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.kourse-xp-feed-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 12px;border:1px solid rgba(78,105,135,.12);border-radius:14px;background:rgba(255,255,255,.56)}
.kourse-xp-feed-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:rgba(255,255,255,.72);font-size:19px}
.kourse-xp-feed-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.kourse-xp-feed-copy strong{font-size:13px;line-height:1.2}
.kourse-xp-feed-copy small{font-size:11px;opacity:.66}
.kourse-xp-feed-amount{font-size:12px;white-space:nowrap}
@media (max-width:980px){.kourse-xp-feed{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.kourse-xp-feed{grid-template-columns:1fr}.kourse-xp-feed-total{display:none}}

/* Student daily XP tasks */
.kourse-daily-tasks-card{margin:14px 0}
.kourse-daily-tasks-card .kourse-section-heading{align-items:flex-start}
.kourse-daily-tasks-card .kourse-section-heading p:last-child{margin:3px 0 0}
.kourse-daily-task-count{padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.7);font-size:12px;font-weight:800;white-space:nowrap}
.kourse-daily-task-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.kourse-daily-task{min-height:170px;padding:15px;border:1px solid rgba(78,105,135,.12);border-radius:16px;background:rgba(255,255,255,.58);display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.kourse-daily-task.is-complete{opacity:.78}
.kourse-daily-task-top{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px}
.kourse-daily-task-icon{font-size:24px}
.kourse-daily-task-xp{font-size:12px;font-weight:900;padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.75)}
.kourse-daily-task>strong{font-size:14px;line-height:1.25}
.kourse-daily-task p{font-size:12px;line-height:1.4;margin:0 0 auto;opacity:.76}
.kourse-daily-task .button{margin-top:4px}
.kourse-daily-task-done{margin-top:auto;font-size:12px;font-weight:800}
@media (max-width:820px){.kourse-daily-task-grid{grid-template-columns:1fr}}

.kourse-daily-task-progress{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin-top:2px}
.kourse-daily-task-progress>span{height:7px;border-radius:999px;background:rgba(78,105,135,.12);overflow:hidden}
.kourse-daily-task-progress>span i{display:block;height:100%;border-radius:inherit;background:currentColor;opacity:.55}
.kourse-daily-task-progress small{font-size:11px;font-weight:800;white-space:nowrap}

.kourse-daily-task-unavailable{margin-top:auto;font-size:12px;font-weight:700;opacity:.62}

/* v4.3.6 Journal Prompt inline editor */
.kourse-prompt-list-editable article{
  display:block;
}
.kourse-prompt-row-main{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  width:100%;
}
.kourse-prompt-row-main .kourse-prompt-select-row{
  flex:1 1 auto;
  min-width:0;
}
.kourse-prompt-row-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}
.kourse-prompt-editor{
  margin:14px 0 2px 30px;
  padding:14px;
  border-radius:12px;
  background:#f7f8fa;
  border:1px solid #e2e6ec;
}
.kourse-prompt-editor label{
  display:block;
  font-weight:700;
}
.kourse-prompt-editor textarea{
  width:100%;
  margin-top:7px;
  min-height:82px;
}
.kourse-prompt-editor-actions{
  display:flex;
  gap:8px;
  margin-top:10px;
}
@media(max-width:700px){
  .kourse-prompt-row-main{align-items:flex-start;flex-direction:column}
  .kourse-prompt-row-actions{padding-left:30px}
  .kourse-prompt-editor{margin-left:0}
}

/* v4.3.9 Student Assignments */
.kourse-dashboard-assignments{margin:18px 0}
.kourse-assignment-heading-actions{display:flex;align-items:center;gap:12px}
.kourse-assignment-heading-actions>a{font-weight:800;text-decoration:none}
.kourse-assignment-list{display:grid;gap:10px}
.kourse-assignment-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px;border:1px solid rgba(20,35,55,.1);border-radius:16px;background:rgba(255,255,255,.72)}
.kourse-assignment-card.is-completed{opacity:.82}
.kourse-assignment-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:rgba(214,165,32,.14);font-size:20px}
.kourse-assignment-copy{min-width:0}
.kourse-assignment-topline{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:3px}
.kourse-assignment-type{font-size:11px;font-weight:900;letter-spacing:.07em;text-transform:uppercase;opacity:.68}
.kourse-assignment-due{font-size:11px;font-weight:800;border-radius:999px;padding:3px 7px;background:rgba(0,0,0,.05)}
.kourse-assignment-title{display:block;font-size:15px;line-height:1.25}
.kourse-assignment-copy>p{margin:5px 0 8px;font-size:13px}
.kourse-assignment-progress-row{display:grid;grid-template-columns:minmax(80px,1fr) auto;align-items:center;gap:8px;margin-top:7px;max-width:480px}
.kourse-assignment-progress{height:7px;border-radius:999px;background:rgba(0,0,0,.08);overflow:hidden}
.kourse-assignment-progress>span{display:block;height:100%;border-radius:inherit;background:currentColor}
.kourse-assignment-progress-row>b{font-size:11px}
.kourse-assignment-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:5px;font-size:11px;opacity:.72}
.kourse-assignment-status{font-weight:800}
.kourse-assignment-empty{display:flex;align-items:center;gap:12px;padding:12px 2px}
.kourse-assignment-empty>span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:rgba(38,160,86,.12);font-weight:900}
.kourse-assignment-empty div{display:grid;gap:2px}
.kourse-assignment-empty small{opacity:.72}
.kourse-assignment-view-all{margin-top:12px}
.kourse-assignments-page{display:grid;gap:18px}
.kourse-assignments-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.kourse-assignment-count{display:inline-flex;border-radius:999px;padding:7px 11px;background:rgba(214,165,32,.14);font-weight:900}
@media(max-width:680px){
 .kourse-assignment-card{grid-template-columns:auto 1fr}
 .kourse-assignment-card>.button{grid-column:1/-1;width:100%;text-align:center}
 .kourse-assignments-heading{align-items:flex-start;flex-direction:column}
}

/* v4.3.10 assignment dashboard placement/count polish */
.kourse-dashboard-assignments{
  margin:18px 0 22px;
}
.kourse-assignment-heading-actions{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.kourse-assignment-open-count{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:32px;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(214,165,32,.12);
  border:1px solid rgba(214,165,32,.25);
  line-height:1;
  white-space:nowrap;
}
.kourse-assignment-open-count strong{
  font-size:14px;
  line-height:1;
}
.kourse-assignment-open-count span{
  font-size:12px;
  font-weight:800;
  line-height:1;
  opacity:.78;
}
.kourse-assignment-heading-actions>a{
  display:inline-flex;
  align-items:center;
  min-height:32px;
}
@media(max-width:680px){
  .kourse-assignment-heading-actions{
    width:100%;
    justify-content:space-between;
  }
}


/* v4.3.11 — student assignment teacher notes + card polish */
.kourse-assignment-card{
  background:#fff;
  border-color:rgba(38,28,55,.10);
  box-shadow:0 8px 24px rgba(38,28,55,.045);
}
.kourse-assignment-copy>.kourse-assignment-description{color:#68707c;line-height:1.45}
.kourse-assignment-teacher-note{
  display:flex;
  align-items:flex-start;
  gap:9px;
  max-width:620px;
  margin:8px 0 4px;
  padding:9px 11px;
  border:1px solid #e4d9f1;
  border-radius:12px;
  background:#faf7fe;
  color:#3e3157;
}
.kourse-assignment-teacher-note>span{
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  flex:0 0 26px;
  border-radius:8px;
  background:#eee5f8;
  font-size:14px;
}
.kourse-assignment-teacher-note>div{min-width:0}
.kourse-assignment-teacher-note strong{
  display:block;
  margin:0 0 2px;
  font-size:11px;
  line-height:1.2;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#65458d;
}
.kourse-assignment-teacher-note p{
  margin:0!important;
  font-size:12.5px!important;
  line-height:1.4;
  color:#4e4659;
  overflow-wrap:anywhere;
}
.kourse-dashboard-assignments .kourse-assignment-card{padding:15px 16px}
.kourse-dashboard-assignments .kourse-assignment-title{font-size:16px}
@media(max-width:680px){
  .kourse-assignment-teacher-note{grid-column:1/-1;max-width:none}
}


/* v4.3.12 — assignment reason badges on student dashboard */
.kourse-assignment-topline{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.kourse-assignment-reason{
  display:inline-flex;
  align-items:center;
  gap:3px;
  min-height:24px;
  padding:3px 8px;
  border:1px solid #ded8e8;
  border-radius:999px;
  background:#f7f4fb;
  color:#58496b;
  font-size:11.5px;
  line-height:1;
  font-weight:800;
  white-space:nowrap;
}
.kourse-assignment-reason-label{font-weight:700;opacity:.72}
.kourse-assignment-reason.is-practice{background:#eef7ff;border-color:#d7e9f8;color:#315f82}
.kourse-assignment-reason.is-intervention{background:#fff4e8;border-color:#f1dfc8;color:#8a5a26}
.kourse-assignment-reason.is-extension,.kourse-assignment-reason.is-enrichment{background:#eef9f2;border-color:#d5eadc;color:#376c4b}
.kourse-assignment-reason.is-review,.kourse-assignment-reason.is-assessment_prep{background:#f5f0ff;border-color:#e3d8f6;color:#65498a}
.kourse-assignment-reason.is-homework{background:#f7f7f9;border-color:#e3e3e8;color:#595d67}
.kourse-assignment-reason.is-makeup_retake{background:#fff0f0;border-color:#f2d4d4;color:#8b4545}
.kourse-assignment-reason.is-other{background:#f5f5f5;border-color:#e2e2e2;color:#5d5d5d}
@media(max-width:680px){
  .kourse-assignment-reason-label{display:none}
}


/* v4.3.13 — cleaner student assignment cards */
.kourse-dashboard-assignments,
.kourse-assignments-page,
.kourse-dashboard-assignments *,
.kourse-assignments-page *{
  box-sizing:border-box;
}
.kourse-dashboard-assignments .kourse-section-heading,
.kourse-assignments-page .kourse-section-heading,
.kourse-assignment-card,
.kourse-assignment-card .button{
}
.kourse-dashboard-assignments .kourse-eyebrow,
.kourse-assignments-page .kourse-eyebrow{
font-size:11px!important;
  font-weight:850!important;
  letter-spacing:.12em!important;
}
.kourse-assignment-card{
  grid-template-columns:54px minmax(0,1fr) auto;
  gap:16px;
  padding:18px 20px!important;
  border:1px solid #e3e6ea;
  border-radius:18px;
  background:#fff;
  box-shadow:0 5px 18px rgba(24,39,58,.045);
  color:#20262e;
}
.kourse-assignment-card:hover{
  border-color:#d5dce5;
  box-shadow:0 8px 24px rgba(24,39,58,.07);
}
.kourse-assignment-icon{
  width:48px;
  height:48px;
  border-radius:14px;
  background:#fff7df;
  border:1px solid #f1e4bd;
  font-size:21px;
}
.kourse-assignment-card.type-assessment .kourse-assignment-icon,
.kourse-assignment-card.type-assessment_practice .kourse-assignment-icon{
  background:#eef7ff;
  border-color:#d8e9f8;
}
.kourse-assignment-card.type-flashcards .kourse-assignment-icon{
  background:#fff6df;
  border-color:#f1e4bd;
}
.kourse-assignment-card.type-mastery_skill .kourse-assignment-icon{
  background:#f2eefc;
  border-color:#e1d8f5;
}
.kourse-assignment-copy{display:flex;flex-direction:column;min-width:0}
.kourse-assignment-topline{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  margin:0 0 7px;
}
.kourse-assignment-type{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:4px 8px;
  border-radius:7px;
  background:#f0f2f5;
  color:#4b5563;
font-size:11px;
  line-height:1;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:1;
}
.kourse-assignment-reason{
  min-height:24px;
  padding:4px 8px;
  border-radius:7px;
font-size:11px;
  line-height:1;
  font-weight:800;
}
.kourse-assignment-reason-label{font-size:inherit;font-weight:650;opacity:.72}
.kourse-assignment-due{
  min-height:24px;
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:7px;
  background:#fff3f0;
  color:#9b4637;
font-size:11px;
  line-height:1;
  font-weight:800;
}
.kourse-assignment-title{
  margin:0;
font-size:18px!important;
  line-height:1.28;
  font-weight:800;
  letter-spacing:-.01em;
  color:#202833;
}
.kourse-assignment-description{
  margin:6px 0 0!important;
font-size:13px!important;
  line-height:1.45;
  color:#66717e!important;
}
.kourse-assignment-teacher-note{
  max-width:720px;
  margin:11px 0 3px;
  padding:11px 13px;
  border:1px solid #dfd5f0;
  border-left:4px solid #8a67b2;
  border-radius:11px;
  background:#faf7fe;
}
.kourse-assignment-teacher-note>span{
  width:28px;
  height:28px;
  flex-basis:28px;
  background:#eee6f8;
}
.kourse-assignment-teacher-note strong{
font-size:10.5px;
  font-weight:850;
  letter-spacing:.09em;
  color:#65458d;
}
.kourse-assignment-teacher-note p{
  margin:3px 0 0!important;
font-size:13px!important;
  line-height:1.42;
  color:#4d4657;
}
.kourse-assignment-progress-wrap{
  width:min(100%,760px);
  margin-top:12px;
}
.kourse-assignment-progress-label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:5px;
  color:#66717e;
font-size:11px;
  line-height:1.2;
}
.kourse-assignment-progress-label span{font-weight:700}
.kourse-assignment-progress-label strong{font-size:11.5px;font-weight:850;color:#39424d}
.kourse-assignment-progress{
  width:100%;
  height:8px;
  border-radius:999px;
  background:#e9ecef;
  overflow:hidden;
}
.kourse-assignment-progress>span{
  display:block;
  height:100%;
  border-radius:999px;
  background:#267eea;
}
.kourse-assignment-card.is-completed .kourse-assignment-progress>span{background:#3c9d65}
.kourse-assignment-meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:8px;
font-size:12px;
  line-height:1.25;
  opacity:1;
  color:#707985;
}
.kourse-assignment-status{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:4px 8px;
  border-radius:999px;
  background:#eef1f4;
  color:#59626e;
  font-size:11px;
  font-weight:850;
}
.kourse-assignment-status.is-in_progress{background:#eef6ff;color:#27639e}
.kourse-assignment-status.is-completed{background:#eaf7ee;color:#33764c}
.kourse-assignment-status.is-assigned{background:#f3f3f5;color:#5c6168}
.kourse-assignment-detail{font-weight:600;color:#6b7480}
.kourse-assignment-card>.button{
  align-self:center;
  min-width:112px;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:12px;
  font-size:13.5px;
  line-height:1;
  font-weight:800;
  text-decoration:none;
}
.kourse-assignment-heading-actions{
}
.kourse-assignment-open-count{
  min-height:36px;
  padding:6px 12px;
  border-radius:999px;
  background:#fff8e9;
  border-color:#ecd39a;
  color:#4c4230;
}
.kourse-assignment-open-count strong{font-size:15px;font-weight:850}
.kourse-assignment-open-count span{font-size:12px;font-weight:750;opacity:.86}
.kourse-assignment-heading-actions>a{
font-size:13px;
  font-weight:800;
}
@media(max-width:760px){
  .kourse-assignment-card{grid-template-columns:46px minmax(0,1fr);padding:15px!important}
  .kourse-assignment-icon{width:42px;height:42px;border-radius:12px}
  .kourse-assignment-card>.button{grid-column:1/-1;width:100%;min-height:42px}
  .kourse-assignment-title{font-size:16px!important}
  .kourse-assignment-progress-wrap{width:100%}
}


/* v4.3.14 — assignment typography follows the Kourse dashboard */
/* No local font family is imposed here. Assignment content deliberately inherits
   the same typography cascade as neighboring Kourse dashboard components. */
.kourse-dashboard-assignments,
.kourse-assignments-page,
.kourse-assignment-card,
.kourse-assignment-card .button,
.kourse-assignment-heading-actions{font-family:inherit;}
.kourse-dashboard-assignments .kourse-eyebrow,
.kourse-assignments-page .kourse-eyebrow,
.kourse-assignment-title,
.kourse-assignment-type,
.kourse-assignment-reason,
.kourse-assignment-due,
.kourse-assignment-description,
.kourse-assignment-teacher-note strong,
.kourse-assignment-teacher-note p,
.kourse-assignment-progress-label,
.kourse-assignment-meta,
.kourse-assignment-card>.button,
.kourse-assignment-heading-actions>a{font-family:inherit;}




/* v4.3.16 — keep assignment card typography balanced while preserving
   the native Kourse section-heading typography used by XP Activity. */
.kourse-dashboard-assignments .kourse-eyebrow,
.kourse-assignments-page .kourse-eyebrow{
  font-weight:800!important;
}

.kourse-assignment-title{
  font-size:16px!important;
  line-height:1.3;
  font-weight:650;
  letter-spacing:normal;
}

.kourse-assignment-type{
  font-weight:700;
}

.kourse-assignment-reason{
  font-weight:650;
}

.kourse-assignment-reason-label{
  font-weight:500;
}

.kourse-assignment-due{
  font-weight:600;
}

.kourse-assignment-teacher-note strong{
  font-weight:700;
}

.kourse-assignment-progress-label span{
  font-weight:500;
}

.kourse-assignment-progress-label strong{
  font-weight:650;
}

.kourse-assignment-status{
  font-weight:650;
}

.kourse-assignment-detail{
  font-weight:400;
}

.kourse-assignment-card>.button{
  font-weight:650;
}

.kourse-assignment-open-count strong{
  font-weight:700;
}

.kourse-assignment-open-count span{
  font-weight:600;
}

.kourse-assignment-heading-actions>a{
  font-weight:650;
}

.kourse-assignment-meta,
.kourse-assignment-description,
.kourse-assignment-teacher-note p{
  font-weight:400;
}

@media(max-width:760px){
  .kourse-assignment-title{font-size:16px!important}
}


/* v4.3.17 — exact native section-heading reset for My Assignments.
   Do not style this heading as an assignment-specific element. */
.kourse-dashboard-assignments .kourse-section-heading h3,
.kourse-assignments-page .kourse-section-heading h3{
  margin:0;
  font-size:19px;
  font-family:revert;
  font-weight:revert;
  font-style:revert;
  line-height:revert;
  letter-spacing:revert;
  text-transform:revert;
}


/* v4.3.41 — streamlined student Home, ported onto v4.3.40 baseline */
.kourse-home-classes,.kourse-home-recommendations{margin-top:22px}
.kourse-home-section-actions{display:flex;align-items:center;gap:14px}
.kourse-home-section-actions>a{font-weight:600;text-decoration:none}
.kourse-home-class-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.kourse-home-class{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 16px;border:1px solid rgba(22,42,70,.11);border-radius:16px;background:#fff;color:inherit;text-decoration:none;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.kourse-home-class:hover{transform:translateY(-1px);border-color:rgba(214,165,32,.45);box-shadow:0 8px 20px rgba(20,28,40,.06)}
.kourse-home-class .kourse-class-mark{width:42px;height:42px;border-radius:12px}
.kourse-home-class-copy{min-width:0;display:grid;gap:2px}
.kourse-home-class-copy strong{font-size:16px;font-weight:600}
.kourse-home-class-copy small{opacity:.68;font-size:13px}
.kourse-home-class>b{font-size:20px;font-weight:400}
.kourse-xp-feed-card .kourse-xp-feed{margin-top:4px}
@media(max-width:760px){.kourse-home-class-grid{grid-template-columns:1fr}.kourse-home-section-actions{gap:9px}}

/* v4.3.42 daily journal prompt override */
.kourse-daily-prompt-override{margin:18px 0 22px;max-width:980px;border-left:4px solid #d6a520}
.kourse-current-daily-prompt{margin:12px 0 16px;padding:14px 16px;border-radius:12px;background:rgba(214,165,32,.09);border:1px solid rgba(214,165,32,.22)}
.kourse-current-daily-prompt strong{display:block;margin-bottom:5px}
.kourse-current-daily-prompt p{margin:0;font-size:15px}
.kourse-daily-prompt-form textarea{max-width:760px}
.kourse-daily-prompt-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.kourse-daily-prompt-actions form{margin:0}


/* v4.3.43 — Google Identity Services sign-in */
.kourse-google-signin{display:grid;justify-items:center;gap:8px;margin:4px 0 14px}
.kourse-google-button{min-height:44px;display:flex;justify-content:center}
.kourse-google-message{min-height:18px;font-size:13px;font-weight:700;color:#53677b;text-align:center}
.kourse-signin-divider{display:flex;align-items:center;gap:12px;margin:2px 0 14px;color:#7a8795;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.kourse-signin-divider:before,.kourse-signin-divider:after{content:"";height:1px;background:#dfe6ed;flex:1}
.kourse-signin-divider span{white-space:nowrap}
@media(max-width:480px){.kourse-signin-divider span{white-space:normal;text-align:center}}

/* v4.3.44 Google sign-in visibility/reliability */
.kourse-google-signin{display:flex!important;flex-direction:column;align-items:center;gap:10px;width:100%;margin:4px 0 14px;min-height:58px}
.kourse-google-label{font-size:13px;font-weight:700;text-align:center;opacity:.76}
.kourse-google-button{display:flex;justify-content:center;min-height:44px;min-width:240px}
.kourse-google-fallback{min-width:240px}
.kourse-google-message{min-height:18px;font-size:12px;text-align:center}
.kourse-signin-divider{display:flex;align-items:center;gap:10px;margin:12px 0 18px;font-size:12px;opacity:.72}
.kourse-signin-divider:before,.kourse-signin-divider:after{content:"";height:1px;flex:1;background:currentColor;opacity:.2}

/* v4.3.45 direct Google sign-in */
.kourse-google-signin{display:flex!important;flex-direction:column;align-items:center;width:100%;margin:8px 0 14px;min-height:0!important}
.kourse-google-direct-button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:12px;width:min(100%,360px);min-height:48px;padding:10px 18px;border:1px solid #c7cdd4;border-radius:8px;background:#fff;color:#202124!important;text-decoration:none!important;font-size:15px;font-weight:600;box-shadow:0 1px 2px rgba(60,64,67,.08)}
.kourse-google-direct-button:hover{background:#f8f9fa;border-color:#aeb4ba;color:#202124!important}
.kourse-google-g{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;font-family:Arial,sans-serif;font-size:18px;font-weight:700;color:#4285f4}
.kourse-google-message:empty{display:none}

/* v4.3.46 student PIN authentication */
.kourse-role-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:5px;margin-bottom:24px;border-radius:12px;background:rgba(20,28,45,.06)}
.kourse-role-tabs a{padding:10px 8px;border-radius:9px;text-align:center;text-decoration:none!important;color:inherit!important;font-weight:700}
.kourse-role-tabs a.is-active{background:#fff;box-shadow:0 2px 8px rgba(20,28,45,.1)}
.kourse-pin-login-form .kourse-pin-label{text-align:center}
.kourse-pin-input{font-size:28px!important;font-weight:800!important;letter-spacing:.35em!important;text-align:center!important;font-variant-numeric:tabular-nums}
.kourse-pin-login-form>.button{width:100%;min-height:48px}
.kourse-student-first-time{margin-top:20px;border-top:1px solid rgba(20,28,45,.1);padding-top:12px}
.kourse-student-first-time details{border:1px solid rgba(20,28,45,.1);border-radius:10px;margin:8px 0;background:#fff}
.kourse-student-first-time summary{cursor:pointer;padding:12px 14px;font-weight:700}
.kourse-student-first-time details form{padding:4px 14px 16px}
.kourse-adult-create{text-align:center;margin-top:14px;font-size:13px}

/* v4.3.47 Classroom-style workflow */
.kourse-classroom-teacher-hero{display:flex;align-items:center;justify-content:space-between;gap:24px}.kourse-create-work-button{white-space:nowrap;font-size:15px!important;padding:12px 22px!important}
.kourse-class-switcher{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;margin:0 0 18px;padding:12px 14px;border:1px solid rgba(30,35,45,.1);border-radius:14px;background:rgba(255,255,255,.88)}
.kourse-class-switcher>span{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;opacity:.62}.kourse-class-switcher-tabs{display:flex;gap:7px;overflow-x:auto;padding:2px}.kourse-class-switcher-tabs a{white-space:nowrap;text-decoration:none!important;padding:8px 12px;border-radius:999px;border:1px solid rgba(30,35,45,.12);background:#fff;color:inherit!important;font-weight:700;font-size:13px}.kourse-class-switcher-tabs a.is-active{background:#201936;color:#fff!important;border-color:#201936}.kourse-manage-classes-link{white-space:nowrap;font-size:12px;font-weight:700}.kourse-class-code-metric{font-size:20px!important;letter-spacing:.05em}
.kourse-classroom-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.kourse-classroom-action-grid>a{display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;padding:15px;border:1px solid rgba(30,35,45,.1);border-radius:14px;background:#fff;text-decoration:none!important;color:inherit!important}.kourse-classroom-action-grid>a>span{grid-row:1/3;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:rgba(83,65,120,.09);font-size:20px}.kourse-classroom-action-grid>a strong{font-size:14px;align-self:end}.kourse-classroom-action-grid>a small{font-size:11px;opacity:.65;line-height:1.35;margin-top:3px}
.kourse-classroom-roster-preview{display:grid;gap:5px}.kourse-classroom-roster-preview>a{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 6px;border-bottom:1px solid rgba(30,35,45,.08);text-decoration:none!important;color:inherit!important}.kourse-mini-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:rgba(83,65,120,.1);font-weight:800}
@media(max-width:900px){.kourse-classroom-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kourse-class-switcher{grid-template-columns:1fr}.kourse-classroom-teacher-hero{align-items:flex-start;flex-direction:column}}@media(max-width:560px){.kourse-classroom-action-grid{grid-template-columns:1fr}}

/* v4.3.48 compact teacher command center */
.kourse-classroom-teacher-hero{min-height:0!important;padding:22px 28px!important;margin-bottom:14px!important}
.kourse-classroom-teacher-hero h1{margin-top:4px!important;margin-bottom:4px!important}
.kourse-classroom-teacher-hero p:last-child{margin-bottom:0!important}
.kourse-class-switcher-compact{margin-bottom:10px!important;padding:9px 12px!important;min-height:52px}
.kourse-class-switcher-compact .kourse-class-switcher-tabs{scrollbar-width:thin}
.kourse-class-switcher-compact .kourse-class-switcher-tabs a{max-width:210px;overflow:hidden;text-overflow:ellipsis}
.kourse-class-switcher-compact .kourse-class-switcher-tabs a.is-active{max-width:260px}
.kourse-class-summary-strip{display:flex;align-items:stretch;gap:0;margin:0 0 12px;border:1px solid rgba(30,35,45,.10);border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 5px 16px rgba(30,35,45,.035)}
.kourse-class-summary-strip>div{display:flex;align-items:center;gap:8px;min-width:0;padding:11px 18px;border-right:1px solid rgba(30,35,45,.08)}
.kourse-class-summary-strip>div:last-child{border-right:0;margin-left:auto}
.kourse-class-summary-strip small{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.045em;opacity:.58;white-space:nowrap}
.kourse-class-summary-strip strong{font-size:18px;line-height:1}
.kourse-class-summary-strip .kourse-summary-code strong{font-size:15px;letter-spacing:.06em}
.kourse-teacher-quick-actions{margin-top:0!important;margin-bottom:14px!important;padding:18px!important}
.kourse-teacher-quick-actions .kourse-section-heading{margin-bottom:12px!important}
.kourse-teacher-quick-actions .kourse-section-heading p:last-child{display:none}
.kourse-classroom-action-grid>a{padding:12px!important}
.kourse-student-sidebar-nav a{min-height:46px!important;margin:0!important}
.kourse-student-sidebar-nav{gap:3px!important}
.kourse-teacher-home-grid{margin-top:0!important}
@media(max-width:760px){
 .kourse-class-summary-strip{display:grid;grid-template-columns:repeat(2,1fr)}
 .kourse-class-summary-strip>div,.kourse-class-summary-strip>div:last-child{margin:0;border-right:1px solid rgba(30,35,45,.08);border-bottom:1px solid rgba(30,35,45,.08)}
}


/* v4.3.54 responsive teacher/student workspace
   The dashboard shortcode itself is the portal. Target it directly. */
@media (min-width:721px){
  .kourse-teacher-portal,
  .kourse-student-portal{
    box-sizing:border-box !important;
    width:min(1500px, calc(100vw - 64px)) !important;
    max-width:none !important;
    min-width:0 !important;
    position:relative !important;
    left:50% !important;
    transform:translateX(-50%) !important;
    margin-top:24px !important;
    margin-bottom:24px !important;
    margin-left:0 !important;
    margin-right:0 !important;
    overflow:visible !important;
  }

  .kourse-teacher-portal{
    display:grid !important;
    grid-template-columns:220px minmax(0,1fr) !important;
    column-gap:28px !important;
    padding:0 24px 28px 0 !important;
  }
  .kourse-student-portal{
    display:grid !important;
    grid-template-columns:220px minmax(0,1fr) !important;
    column-gap:28px !important;
  }

  .kourse-teacher-portal > nav.kourse-teacher-sidebar-nav{
    grid-column:1 !important;
    grid-row:1 / span 60 !important;
    width:220px !important;
    min-width:220px !important;
    max-width:220px !important;
  }

  .kourse-teacher-portal > *:not(.kourse-teacher-sidebar-nav):not(.kourse-student-view-eye),
  .kourse-student-portal > *:not(.kourse-student-sidebar-nav){
    grid-column:2 !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  .kourse-classroom-teacher-hero,
  .kourse-class-switcher,
  .kourse-class-summary-strip,
  .kourse-teacher-quick-actions,
  .kourse-teacher-home-grid{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  .kourse-class-switcher{
    grid-template-columns:auto minmax(0,1fr) auto !important;
  }
  .kourse-class-switcher-tabs{
    display:flex !important;
    flex-wrap:nowrap !important;
    width:100% !important;
    min-width:0 !important;
    overflow-x:auto !important;
    scrollbar-width:thin;
  }
  .kourse-class-switcher-tabs a{
    flex:0 0 auto !important;
    min-width:110px !important;
    max-width:220px !important;
  }

  .kourse-class-summary-strip{
    display:grid !important;
    grid-template-columns:auto auto auto minmax(220px,1fr) !important;
    align-items:center !important;
    overflow:hidden !important;
  }
  .kourse-class-summary-strip > div{
    min-width:0 !important;
    margin:0 !important;
  }
  .kourse-class-summary-strip > .kourse-summary-code{
    justify-content:flex-end !important;
    min-width:220px !important;
  }

  .kourse-classroom-action-grid{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:12px !important;
    width:100% !important;
    min-width:0 !important;
  }
  .kourse-classroom-action-grid > a{
    min-width:0 !important;
    width:auto !important;
    overflow:hidden !important;
  }
  .kourse-classroom-action-grid > a strong,
  .kourse-classroom-action-grid > a small{
    overflow-wrap:normal !important;
    word-break:normal !important;
  }
}

/* Medium laptop/tablet: keep a sidebar, reduce it and allow two action columns. */
@media (min-width:721px) and (max-width:1100px){
  .kourse-teacher-portal,
  .kourse-student-portal{
    width:calc(100vw - 32px) !important;
  }
  .kourse-teacher-portal,
  .kourse-student-portal{
    grid-template-columns:170px minmax(0,1fr) !important;
    column-gap:18px !important;
  }
  .kourse-teacher-portal > nav.kourse-teacher-sidebar-nav{
    width:170px !important;
    min-width:170px !important;
    max-width:170px !important;
  }
  .kourse-classroom-action-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .kourse-class-summary-strip{
    grid-template-columns:repeat(3,auto) minmax(180px,1fr) !important;
  }
}

/* Mobile returns to the plugin's stacked navigation/layout. */
@media (max-width:720px){
  .kourse-teacher-portal,
  .kourse-student-portal{
    width:100% !important;
    max-width:100% !important;
    left:auto !important;
    transform:none !important;
    margin:14px auto !important;
  }
}


/* v4.3.55 centered responsive workspace correction
   Center the sidebar + workspace as one unit inside the host page. The prior
   viewport-based left:50% translation could shift the portal right when the
   shortcode lived inside a constrained/theme content wrapper. */
@media (min-width:721px){
  .kourse-teacher-portal,
  .kourse-student-portal{
    width:min(1500px, calc(100% - 48px)) !important;
    max-width:1500px !important;
    left:auto !important;
    right:auto !important;
    transform:none !important;
    margin:24px auto !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }
  .kourse-teacher-portal,
  .kourse-student-portal{
    grid-template-columns:220px minmax(0,1fr) !important;
    column-gap:28px !important;
  }
  .kourse-class-switcher{
    overflow:hidden !important;
  }
  .kourse-class-switcher-tabs{
    min-width:0 !important;
    max-width:100% !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    overscroll-behavior-inline:contain;
  }
}
@media (min-width:721px) and (max-width:1100px){
  .kourse-teacher-portal,
  .kourse-student-portal{
    width:calc(100% - 32px) !important;
    grid-template-columns:170px minmax(0,1fr) !important;
    column-gap:18px !important;
  }
}

/* v4.3.56 viewport-balanced workspace
   Anchor the complete Suite shell to equal viewport gutters without transforms.
   This prevents a centered shortcode wrapper from visually pushing the app right. */
@media (min-width:1101px){
  .kourse-teacher-portal,
  .kourse-student-portal{
    box-sizing:border-box !important;
    width:calc(100vw - 128px) !important;
    max-width:1560px !important;
    margin-top:24px !important;
    margin-bottom:24px !important;
    margin-right:0 !important;
    margin-left:max(0px, calc(50% - 50vw + 64px)) !important;
    left:auto !important;
    right:auto !important;
    transform:none !important;
    grid-template-columns:220px minmax(0,1fr) !important;
    column-gap:28px !important;
  }
  .kourse-teacher-portal > nav.kourse-teacher-sidebar-nav,
  .kourse-student-portal > nav.kourse-student-sidebar-nav{
    width:220px !important;
    min-width:220px !important;
    max-width:220px !important;
    box-sizing:border-box !important;
  }
  .kourse-teacher-portal > *:not(.kourse-teacher-sidebar-nav):not(.kourse-student-view-eye),
  .kourse-student-portal > *:not(.kourse-student-sidebar-nav){
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }
  .kourse-class-switcher{
    min-width:0 !important;
    overflow:hidden !important;
  }
  .kourse-class-switcher-tabs{
    min-width:0 !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
  }
  .kourse-class-switcher-tabs a{
    flex:0 0 auto !important;
    min-width:max-content !important;
    max-width:none !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }
}

/* =========================================================
   4.3.59 — Student workspace aligned with current Kourse UI
   ========================================================= */
.kourse-student-dashboard.kourse-student-portal,
.kourse-student-portal{
  max-width:1560px !important;
  min-height:0 !important;
  grid-template-columns:220px minmax(0,1fr) !important;
  column-gap:0 !important;
  margin:0 auto !important;
  padding:0 !important;
  overflow:hidden !important;
  border:1px solid #e2e8f2 !important;
  border-radius:20px !important;
  background:#f7f9fd !important;
  box-shadow:0 12px 34px rgba(25,43,78,.06) !important;
}
.kourse-student-portal > nav.kourse-student-sidebar-nav{
  min-height:100% !important;
  padding:24px 16px !important;
  gap:7px !important;
  background:#13213b !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
.kourse-student-portal > nav.kourse-student-sidebar-nav::before{
  content:"KOURSE" !important;
  padding:7px 10px 24px !important;
  color:#fff !important;
  font-size:22px !important;
  font-weight:850 !important;
  letter-spacing:-.04em !important;
}
.kourse-student-portal > nav.kourse-student-sidebar-nav > a{
  height:46px !important;min-height:46px !important;max-height:46px !important;
  padding:0 13px !important;border-radius:10px !important;
  color:#c9d4e8 !important;font-size:14px !important;font-weight:700 !important;
}
.kourse-student-portal > nav.kourse-student-sidebar-nav > a:hover{background:#1d2d4a !important;color:#fff !important}
.kourse-student-portal > nav.kourse-student-sidebar-nav > a.is-active{background:#315fd7 !important;color:#fff !important;box-shadow:none !important}
.kourse-student-portal > *:not(.kourse-student-sidebar-nav){margin-left:22px !important;margin-right:22px !important}
.kourse-student-dashboard .kourse-dashboard-hero{
  margin:22px 22px 14px !important;padding:20px 22px !important;min-height:0 !important;
  border:1px solid #e1e8f3 !important;border-radius:16px !important;
  background:#fff !important;box-shadow:none !important;
}
.kourse-student-dashboard .kourse-dashboard-hero h2{margin:2px 0 4px !important;color:#13213b !important;font-size:26px !important;letter-spacing:-.025em !important}
.kourse-student-dashboard .kourse-dashboard-hero p{margin:0 !important;color:#68758d !important}
.kourse-student-dashboard .kourse-eyebrow{color:#5575dc !important;font-size:11px !important;letter-spacing:.14em !important}
.kourse-hero-parent-code{border-color:#dfe6f1 !important;background:#f7f9fd !important;box-shadow:none !important}
.kourse-student-progress-panel.kourse-card{
  margin:0 22px 14px !important;padding:20px 22px !important;
  grid-template-columns:82px minmax(0,1fr) 150px !important;
  border:1px solid #e1e8f3 !important;border-radius:16px !important;
  background:#fff !important;box-shadow:none !important;
}
.kourse-student-progress-avatar{width:68px !important;height:68px !important;font-size:38px !important;background:#eef3ff !important;border:1px solid #dbe5fb !important;box-shadow:none !important}
.kourse-student-progress-title h3{color:#13213b !important;font-size:22px !important}.kourse-xp-progress{height:8px !important;background:#edf1f7 !important}.kourse-xp-progress span{background:#5575dc !important}
.kourse-student-motto{min-height:72px !important;border-radius:14px !important;background:#eef3ff !important;color:#263653 !important;font-size:16px !important;box-shadow:none !important}
.kourse-student-dashboard .kourse-card{border:1px solid #e1e8f3 !important;border-top:1px solid #e1e8f3 !important;border-radius:16px !important;background:#fff !important;box-shadow:none !important}
.kourse-dashboard-assignments,.kourse-student-dashboard .kourse-learning-hub,.kourse-student-dashboard .kourse-dashboard-main,.kourse-student-dashboard .kourse-dashboard-lower{margin-left:22px !important;margin-right:22px !important}
.kourse-student-feature{border:1px solid #e1e8f3 !important;border-radius:15px !important;background:#fff !important;box-shadow:none !important}
@media(max-width:980px){.kourse-student-dashboard.kourse-student-portal,.kourse-student-portal{grid-template-columns:180px minmax(0,1fr) !important}}
@media(max-width:720px){
 .kourse-student-dashboard.kourse-student-portal,.kourse-student-portal{display:block !important;border-radius:0 !important;border-left:0 !important;border-right:0 !important}
 .kourse-student-portal > nav.kourse-student-sidebar-nav{background:#fff !important;border-bottom:1px solid #e1e8f3 !important}
 .kourse-student-portal > nav.kourse-student-sidebar-nav > a{color:#4c5b73 !important}
 .kourse-student-portal > nav.kourse-student-sidebar-nav > a.is-active{color:#fff !important}
 .kourse-student-portal > *:not(.kourse-student-sidebar-nav){margin-left:14px !important;margin-right:14px !important}
 .kourse-student-progress-panel.kourse-card{grid-template-columns:1fr !important}
}

/* =========================================================
   4.3.60 — Student dashboard responsive container fix
   Keep every dashboard panel inside the grid content column.
   ========================================================= */
.kourse-student-dashboard.kourse-student-portal{
  width:min(1560px,calc(100% - 32px)) !important;
  max-width:1560px !important;
  grid-template-columns:220px minmax(0,1fr) !important;
  overflow:hidden !important;
}
.kourse-student-dashboard.kourse-student-portal > *:not(.kourse-student-sidebar-nav){
  min-width:0 !important;
  width:auto !important;
  max-width:calc(100% - 44px) !important;
  margin-left:22px !important;
  margin-right:22px !important;
  box-sizing:border-box !important;
}
.kourse-student-dashboard .kourse-dashboard-hero,
.kourse-student-dashboard .kourse-student-progress-panel.kourse-card,
.kourse-student-dashboard .kourse-dashboard-assignments,
.kourse-student-dashboard .kourse-learning-hub,
.kourse-student-dashboard .kourse-dashboard-main,
.kourse-student-dashboard .kourse-dashboard-lower{
  width:auto !important;
  max-width:calc(100% - 44px) !important;
  min-width:0 !important;
  margin-left:22px !important;
  margin-right:22px !important;
  box-sizing:border-box !important;
}
.kourse-student-dashboard .kourse-dashboard-hero *,
.kourse-student-dashboard .kourse-student-progress-panel *,
.kourse-student-dashboard .kourse-dashboard-assignments *,
.kourse-student-dashboard .kourse-learning-hub *,
.kourse-student-dashboard .kourse-dashboard-main *,
.kourse-student-dashboard .kourse-dashboard-lower *{
  box-sizing:border-box;
  min-width:0;
}
.kourse-student-dashboard .kourse-student-progress-panel.kourse-card{
  grid-template-columns:72px minmax(0,1fr) minmax(120px,150px) !important;
}
.kourse-student-dashboard .kourse-student-motto{max-width:150px !important;width:100% !important}
.kourse-student-dashboard .kourse-dashboard-assignments,
.kourse-student-dashboard .kourse-dashboard-assignments .kourse-card,
.kourse-student-dashboard .kourse-assignment-card{max-width:100% !important;overflow:hidden !important}
@media(max-width:1180px){
  .kourse-student-dashboard.kourse-student-portal{grid-template-columns:190px minmax(0,1fr) !important}
  .kourse-student-dashboard .kourse-student-progress-panel.kourse-card{grid-template-columns:64px minmax(0,1fr) !important}
  .kourse-student-dashboard .kourse-student-motto{grid-column:1/-1 !important;max-width:none !important}
}
@media(max-width:820px){
  .kourse-student-dashboard.kourse-student-portal{width:100% !important;display:block !important;border-radius:0 !important}
  .kourse-student-dashboard.kourse-student-portal > *:not(.kourse-student-sidebar-nav),
  .kourse-student-dashboard .kourse-dashboard-hero,
  .kourse-student-dashboard .kourse-student-progress-panel.kourse-card,
  .kourse-student-dashboard .kourse-dashboard-assignments,
  .kourse-student-dashboard .kourse-learning-hub,
  .kourse-student-dashboard .kourse-dashboard-main,
  .kourse-student-dashboard .kourse-dashboard-lower{
    max-width:calc(100% - 28px) !important;
    margin-left:14px !important;
    margin-right:14px !important;
  }
}

/* =========================================================
   4.3.61 — Student / teacher workspace width parity
   Match the student shell to the proven teacher shell gutters.
   ========================================================= */
@media (min-width:1101px){
  .kourse-student-dashboard.kourse-student-portal,
  .kourse-student-portal{
    box-sizing:border-box !important;
    width:calc(100vw - 128px) !important;
    max-width:1560px !important;
    margin-top:24px !important;
    margin-bottom:24px !important;
    margin-right:0 !important;
    margin-left:max(0px, calc(50% - 50vw + 64px)) !important;
    left:auto !important;
    right:auto !important;
    transform:none !important;
  }
}
@media (min-width:721px) and (max-width:1100px){
  .kourse-student-dashboard.kourse-student-portal,
  .kourse-student-portal{
    width:calc(100% - 32px) !important;
    max-width:none !important;
    margin:24px auto !important;
  }
}

/* =========================================================
   4.3.63 — Student portal natural-height fix
   Student pages should end when their real content ends. The shared
   dashboard shell's legacy 760px minimum was leaving a large blank area
   above the site footer on short student views.
   ========================================================= */
.kourse-student-portal,
.kourse-student-dashboard.kourse-student-portal{
  min-height:0 !important;
  height:auto !important;
}
.kourse-student-portal > nav.kourse-student-sidebar-nav,
.kourse-student-dashboard.kourse-student-portal > nav.kourse-student-sidebar-nav{
  min-height:0 !important;
  height:auto !important;
  align-self:stretch !important;
}

/* 4.3.64 — student experience: missions + privacy-conscious class celebrations */
.kourse-celebrations-card{overflow:hidden}.kourse-celebrations-heading{align-items:flex-start}.kourse-share-toggle{display:flex;align-items:center;gap:8px;background:#f6f8fb;border:1px solid #dfe5ec;border-radius:999px;padding:9px 13px;font-size:12px;font-weight:800;white-space:nowrap}.kourse-share-toggle input{margin:0}.kourse-share-note{margin:-4px 0 16px;padding:10px 13px;border-radius:12px;background:#f8fafc;color:#667085;font-size:12px}.kourse-celebrations-feed{display:grid;gap:12px}.kourse-celebration-item{display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;padding:14px;border:1px solid #e4e8ee;border-radius:18px;background:#fff}.kourse-celebration-badge{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:#fff6d9;font-size:24px}.kourse-celebration-body{min-width:0}.kourse-celebration-copy{font-size:14px;line-height:1.45;color:#202733}.kourse-celebration-body>small{display:block;color:#87909d;font-size:11px;margin-top:2px}.kourse-reaction-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.kourse-reaction-button{appearance:none;border:1px solid #e1e6ec;background:#f8fafc;border-radius:999px;min-height:34px;padding:5px 9px;display:inline-flex;align-items:center;gap:4px;cursor:pointer;color:#4c5666}.kourse-reaction-button span{font-size:15px}.kourse-reaction-button b{font-size:11px}.kourse-reaction-button em{font-style:normal;font-size:11px;font-weight:800;display:none}.kourse-reaction-button:hover,.kourse-reaction-button.is-active{border-color:#d5a82f;background:#fff8df;color:#33290c}.kourse-reaction-button.is-active em{display:inline}.kourse-reaction-button:focus-visible{outline:3px solid rgba(20,184,196,.24);outline-offset:2px}.kourse-celebrations-empty{display:flex;align-items:center;gap:12px;padding:16px;border:1px dashed #d9dee6;border-radius:16px;background:#fbfcfd}.kourse-celebrations-empty>span{font-size:28px}.kourse-celebrations-empty strong,.kourse-celebrations-empty small{display:block}.kourse-celebrations-empty small{color:#747d89;margin-top:3px}.kourse-daily-tasks-card .kourse-eyebrow:after{content:' • Missions'}
@media(max-width:720px){.kourse-celebrations-heading{gap:12px}.kourse-share-toggle{width:100%;justify-content:center}.kourse-celebration-item{grid-template-columns:40px minmax(0,1fr);padding:12px}.kourse-celebration-badge{width:40px;height:40px;border-radius:12px;font-size:20px}.kourse-reaction-button{min-width:38px;justify-content:center}.kourse-reaction-button em{display:none!important}}
.kourse-play-explore-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.kourse-play-explore-item{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px;border:1px solid #e3e8ef;border-radius:18px;background:linear-gradient(135deg,#fff 0%,#fbfcff 100%)}.kourse-play-explore-item>span{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#eef9fb;font-size:23px}.kourse-play-explore-item strong,.kourse-play-explore-item small{display:block}.kourse-play-explore-item small{margin-top:3px;color:#727c8a;line-height:1.35}.kourse-play-explore-item .button{white-space:nowrap}@media(max-width:900px){.kourse-play-explore-grid{grid-template-columns:1fr}}@media(max-width:520px){.kourse-play-explore-item{grid-template-columns:40px minmax(0,1fr)}.kourse-play-explore-item>span{width:40px;height:40px}.kourse-play-explore-item .button{grid-column:1/-1;width:100%;text-align:center}}

/* =========================================================
   4.3.65 — Student hub bottom-spacing + page-height cleanup
   ========================================================= */
.kourse-student-portal > .kourse-student-hub-page{padding-bottom:22px !important;box-sizing:border-box !important}
.kourse-student-portal > .kourse-student-hub-page .kourse-student-hub-grid{margin-bottom:0 !important}
.kourse-student-portal > .kourse-student-hub-page .kourse-student-hub-card{min-width:0 !important;max-width:100% !important;box-sizing:border-box !important}
html:has(.kourse-student-portal),body:has(.kourse-student-portal){height:auto !important;min-height:0 !important}
body:has(.kourse-student-portal) #page,body:has(.kourse-student-portal) .site,body:has(.kourse-student-portal) .site-content,body:has(.kourse-student-portal) .site-main,body:has(.kourse-student-portal) main{min-height:0 !important}
body:has(.kourse-student-portal) .site-footer,body:has(.kourse-student-portal) footer{margin-bottom:0 !important}
@media(max-width:820px){.kourse-student-portal > .kourse-student-hub-page{padding-bottom:14px !important}}


/* =========================================================
   4.3.66 — Student Classwork containment
   Keep assignment header, counters, cards, notes, progress, and actions
   inside the available content column beside the student sidebar.
   ========================================================= */
.kourse-student-portal,
.kourse-student-portal > *,
.kourse-student-portal .kourse-assignments-page,
.kourse-student-portal .kourse-assignments-page > *,
.kourse-student-portal .kourse-assignment-section,
.kourse-student-portal .kourse-assignment-card{
  min-width:0 !important;
  box-sizing:border-box !important;
}

.kourse-student-portal .kourse-assignments-page{
  width:100% !important;
  max-width:100% !important;
  overflow:hidden !important;
}

.kourse-student-portal .kourse-assignments-hero,
.kourse-student-portal .kourse-assignments-header{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}

.kourse-student-portal .kourse-assignment-section{
  width:100% !important;
  max-width:100% !important;
  overflow:hidden !important;
}

.kourse-student-portal .kourse-assignment-card{
  width:100% !important;
  max-width:100% !important;
  overflow:hidden !important;
}

.kourse-student-portal .kourse-assignment-card > *,
.kourse-student-portal .kourse-assignment-card-content,
.kourse-student-portal .kourse-assignment-card-main,
.kourse-student-portal .kourse-assignment-card-body,
.kourse-student-portal .kourse-assignment-note,
.kourse-student-portal .kourse-teacher-note,
.kourse-student-portal .kourse-assignment-progress{
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}

.kourse-student-portal .kourse-assignment-card h1,
.kourse-student-portal .kourse-assignment-card h2,
.kourse-student-portal .kourse-assignment-card h3,
.kourse-student-portal .kourse-assignment-card p,
.kourse-student-portal .kourse-assignment-note,
.kourse-student-portal .kourse-teacher-note{
  overflow-wrap:anywhere;
}

@media(max-width:900px){
  .kourse-student-portal .kourse-assignment-card{
    grid-template-columns:minmax(0,1fr) !important;
  }
  .kourse-student-portal .kourse-assignment-card .button,
  .kourse-student-portal .kourse-assignment-card .kourse-button,
  .kourse-student-portal .kourse-assignment-card .kourse-assignment-action{
    max-width:100% !important;
  }
}


/* =========================================================
   4.3.67 — Student Progress + reward collection
   ========================================================= */
.kourse-student-progress-page{width:100%;max-width:100%;min-width:0;padding:28px;box-sizing:border-box;overflow:hidden}
.kourse-student-progress-page *{box-sizing:border-box}
.kourse-student-progress-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:8px 4px 26px}
.kourse-student-progress-hero h1{margin:8px 0 8px;font-size:clamp(32px,4vw,48px);line-height:1.05}
.kourse-student-progress-hero p{margin:0;font-size:17px;color:#4b5563}
.kourse-student-eyebrow{display:inline-block;font-size:12px;font-weight:900;letter-spacing:.16em;color:#285bd7}
.kourse-progress-level-orb{width:96px;height:96px;flex:0 0 96px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#111;color:#fff;border:6px solid #f0b51e}
.kourse-progress-level-orb small{font-size:10px;letter-spacing:.12em}.kourse-progress-level-orb strong{font-size:34px;line-height:1}
.kourse-progress-xp-card,.kourse-progress-panel{background:#fff;border:1px solid #e1e5eb;border-radius:22px;padding:24px;min-width:0;max-width:100%}
.kourse-progress-xp-card{margin-bottom:20px}
.kourse-progress-xp-top{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}.kourse-progress-xp-top small{display:block;font-weight:900;letter-spacing:.12em;color:#667085}.kourse-progress-xp-top strong{display:block;font-size:22px;margin-top:3px}
.kourse-progress-streak{padding:9px 13px;border-radius:999px;background:#fff4d6;font-weight:800;white-space:nowrap}
.kourse-progress-xp-track{height:14px;background:#e8ebef;border-radius:999px;overflow:hidden}.kourse-progress-xp-track span{display:block;height:100%;background:linear-gradient(90deg,#e4aa14,#ffd45c);border-radius:inherit}
.kourse-progress-xp-card>p{margin:12px 0 0;color:#667085}
.kourse-progress-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:20px;min-width:0}
.kourse-progress-panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:18px}.kourse-progress-panel h2{margin:5px 0 0;font-size:24px}
.kourse-progress-event-list{display:grid;gap:10px}.kourse-progress-event{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid #eceef2;border-radius:14px}.kourse-progress-event-icon{width:44px;height:44px;border-radius:12px;background:#f3f5f8;display:grid;place-items:center;font-size:20px}.kourse-progress-event div{min-width:0}.kourse-progress-event strong,.kourse-progress-event small{display:block}.kourse-progress-event small{color:#7a8190;margin-top:3px}.kourse-progress-event b{color:#285bd7;white-space:nowrap}
.kourse-reward-count{font-size:12px;font-weight:800;background:#eef3ff;padding:7px 10px;border-radius:999px;white-space:nowrap}
.kourse-reward-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.kourse-reward-card{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;padding:14px;border:1px solid #e4e7ec;border-radius:15px;min-width:0}.kourse-reward-card.is-locked{opacity:.62;background:#f7f7f8}.kourse-reward-card.is-unlocked{border-color:#e4b53c;background:#fffbef}.kourse-reward-icon{width:48px;height:48px;border-radius:13px;background:#fff;display:grid;place-items:center;font-size:23px}.kourse-reward-card small,.kourse-reward-card strong{display:block}.kourse-reward-card small{font-size:10px;font-weight:900;letter-spacing:.1em;color:#6b7280}.kourse-reward-card strong{margin-top:2px}.kourse-reward-card p{margin:4px 0 22px;font-size:12px;color:#6b7280}.kourse-reward-state{position:absolute;left:74px;bottom:12px;font-size:11px;font-weight:800}
.kourse-progress-learning-panel{margin-top:20px}.kourse-progress-provider-grid{display:grid;gap:14px;margin-top:18px}.kourse-progress-provider{min-width:0;max-width:100%;overflow:hidden;border-top:1px solid #edf0f3;padding-top:16px}.kourse-progress-provider:first-child{border-top:0;padding-top:0}.kourse-progress-provider h3{margin:0 0 12px}
.kourse-progress-provider table{width:100%!important;max-width:100%!important;table-layout:fixed}.kourse-progress-provider img,.kourse-progress-provider canvas,.kourse-progress-provider svg{max-width:100%;height:auto}
@media(max-width:980px){.kourse-progress-grid{grid-template-columns:1fr}.kourse-reward-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.kourse-student-progress-page{padding:18px 14px}.kourse-student-progress-hero{align-items:flex-start}.kourse-progress-level-orb{width:76px;height:76px;flex-basis:76px;border-width:4px}.kourse-progress-level-orb strong{font-size:27px}.kourse-progress-xp-top{align-items:flex-start;flex-direction:column}.kourse-reward-grid{grid-template-columns:1fr}.kourse-progress-event{grid-template-columns:40px minmax(0,1fr) auto}.kourse-progress-panel{padding:18px}}


/* =========================================================
   4.3.68 — Kourse Classic + student profile customization
   Solid colors only: navy / blue / gold / cyan / cream.
   ========================================================= */
.kourse-student-portal{
 --kourse-navy:#10182D;--kourse-blue:#2F5FD0;--kourse-gold:#E3AD20;
 --kourse-cyan:#19C8E3;--kourse-cream:#FFF8E7;--kourse-soft:#F3F6FC;
 --kourse-ink:#121827;--kourse-slate:#667085;
}
.kourse-student-portal .button-primary{background:var(--kourse-blue)!important;border-color:var(--kourse-blue)!important;color:#fff!important}
.kourse-student-portal .kourse-progress-xp-track span{background:var(--kourse-gold)!important}
.kourse-profile-customizer{width:100%;max-width:100%;min-width:0;padding:28px;box-sizing:border-box;overflow:hidden}
.kourse-profile-customizer *{box-sizing:border-box}
.kourse-profile-notice{margin-bottom:16px;padding:13px 16px;border-radius:12px;background:#E9F8EF;border:1px solid #B9E5C8;font-weight:800}
.kourse-profile-customizer-hero{display:flex;align-items:center;gap:20px;padding:8px 4px 26px}
.kourse-profile-customizer-hero h1{margin:6px 0;font-size:clamp(30px,4vw,46px);line-height:1.05}.kourse-profile-customizer-hero p{margin:0;color:var(--kourse-slate);font-weight:700}
.kourse-profile-preview-frame{width:92px;height:92px;flex:0 0 92px;border-radius:50%;display:grid;place-items:center;background:#fff;border:5px solid #D7DCE5;font-size:42px}
.kourse-profile-preview-frame.is-sky{border-color:var(--kourse-cyan)}.kourse-profile-preview-frame.is-summit{border-color:#2F6F74}.kourse-profile-preview-frame.is-gold{border-color:var(--kourse-gold)}
.kourse-profile-customizer-form{display:grid;gap:18px}
.kourse-customize-panel{background:#fff;border:1px solid #E1E5EB;border-radius:20px;padding:22px;min-width:0}
.kourse-customize-panel h2{margin:5px 0 16px;font-size:23px}.kourse-customize-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.kourse-customize-heading p{margin:2px 0 0;color:var(--kourse-slate)}
.kourse-avatar-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.kourse-avatar-choice,.kourse-theme-choice{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;border:2px solid #E4E7EC;border-radius:16px;padding:14px;cursor:pointer;min-width:0;background:#fff}
.kourse-avatar-choice:has(input:checked),.kourse-theme-choice:has(input:checked){border-color:var(--kourse-blue);box-shadow:0 0 0 3px #E8EEFF}
.kourse-avatar-choice input,.kourse-theme-choice input{position:absolute;opacity:0;pointer-events:none}.kourse-avatar-choice.is-locked,.kourse-theme-choice.is-locked{opacity:.5;cursor:not-allowed;background:#F5F6F8}
.kourse-avatar-choice-icon{font-size:34px;line-height:1.2}.kourse-avatar-choice small,.kourse-theme-choice small{color:var(--kourse-slate)}
.kourse-customize-two{display:grid;grid-template-columns:1fr 1fr;gap:18px;min-width:0}
.kourse-option-list{display:grid;gap:8px}.kourse-option-list label{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #E5E7EB;border-radius:12px;cursor:pointer}.kourse-option-list label:has(input:checked){border-color:var(--kourse-blue);background:#F2F6FF}.kourse-option-list span{min-width:0}.kourse-option-list strong,.kourse-option-list small{display:block}.kourse-option-list small{color:var(--kourse-slate);margin-top:2px}
.kourse-theme-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.kourse-theme-swatches{display:flex;width:100%;height:34px;overflow:hidden;border-radius:9px}.kourse-theme-swatches i{flex:1}.kourse-theme-choice strong{margin-top:5px}
.kourse-profile-savebar{position:sticky;bottom:12px;display:flex;justify-content:flex-end;padding:12px;background:rgba(255,248,231,.94);border:1px solid #E6DCC4;border-radius:16px}.kourse-profile-savebar .button{min-width:180px}
@media(max-width:900px){.kourse-avatar-picker,.kourse-theme-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.kourse-customize-two{grid-template-columns:1fr}}
@media(max-width:600px){.kourse-profile-customizer{padding:18px 14px}.kourse-profile-customizer-hero{align-items:flex-start}.kourse-profile-preview-frame{width:72px;height:72px;flex-basis:72px;font-size:32px}.kourse-avatar-picker,.kourse-theme-picker{grid-template-columns:1fr 1fr}.kourse-customize-heading{display:block}.kourse-customize-heading p{margin-bottom:12px}}


/* =========================================================
   4.3.69 — Bold teacher appearance themes
   ========================================================= */
.kourse-teacher-portal{
 --kourse-teacher-deep:var(--kourse-black,#10182D);
 --kourse-teacher-primary:var(--kourse-gold,#246BFD);
 --kourse-teacher-accent:var(--kourse-gold-accent,#F2B705);
 --kourse-teacher-soft:var(--kourse-cream,#F3F7FF);
 --kourse-teacher-surface:var(--kourse-surface,#FFFFFF);
 --kourse-teacher-text:var(--kourse-text,#10182D);
 background:var(--kourse-teacher-soft);
 color:var(--kourse-teacher-text);
}
.kourse-teacher-portal .kourse-teacher-sidebar-nav{background:var(--kourse-teacher-deep)!important}
.kourse-teacher-portal .kourse-teacher-sidebar-nav a.is-active{background:var(--kourse-teacher-primary)!important;color:#fff!important}
.kourse-teacher-portal .button-primary,.kourse-teacher-portal .kourse-create-work-button{background:var(--kourse-teacher-primary)!important;border-color:var(--kourse-teacher-primary)!important;color:#fff!important}
.kourse-teacher-portal .kourse-eyebrow{color:var(--kourse-teacher-primary)!important}
.kourse-teacher-portal .kourse-class-switcher-tabs a.is-active{background:var(--kourse-teacher-primary)!important;border-color:var(--kourse-teacher-primary)!important;color:#fff!important}
.kourse-teacher-portal .kourse-card,.kourse-teacher-portal .kourse-class-summary-strip{background:var(--kourse-teacher-surface)}
.kourse-teacher-portal .kourse-class-summary-strip strong{color:var(--kourse-teacher-deep)}
.kourse-teacher-theme-grid .kourse-theme-choice{transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.kourse-teacher-theme-grid .kourse-theme-choice:hover{transform:translateY(-2px)}
.kourse-teacher-theme-grid .kourse-theme-choice:has(input:checked),.kourse-teacher-theme-grid .kourse-theme-choice.is-selected{border-color:var(--kourse-blue,#2F5FD0)!important;box-shadow:0 0 0 3px rgba(47,95,208,.14)}
.kourse-teacher-theme-grid .kourse-theme-swatches{height:38px;border-radius:9px;overflow:hidden}
.kourse-teacher-theme-grid .kourse-theme-swatches i{background:var(--kourse-swatch)!important}


/* =========================================================
   4.3.70 — Orange Energy default + teacher shell containment
   ========================================================= */
.kourse-teacher-portal,
.kourse-teacher-portal > *,
.kourse-teacher-portal .kourse-class-switcher,
.kourse-teacher-portal .kourse-class-summary-strip,
.kourse-teacher-portal .kourse-card,
.kourse-teacher-portal .kourse-dashboard-hero{
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
}
.kourse-teacher-portal .kourse-class-switcher{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:14px!important;
    width:100%!important;
    overflow:hidden!important;
}
.kourse-teacher-portal .kourse-class-switcher-tabs{
    display:flex!important;
    min-width:0!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:thin;
    overscroll-behavior-inline:contain;
    padding:3px 2px 6px!important;
}
.kourse-teacher-portal .kourse-class-switcher-tabs a{
    flex:0 0 auto!important;
    white-space:nowrap!important;
}
.kourse-teacher-portal .kourse-manage-classes-link{
    position:relative!important;
    flex:none!important;
    white-space:nowrap!important;
    z-index:2!important;
    background:var(--kourse-teacher-surface,#fff)!important;
}
.kourse-teacher-portal .button-primary,
.kourse-teacher-portal .kourse-create-work-button,
.kourse-teacher-portal button.button-primary,
.kourse-teacher-portal input.button-primary{
    background:var(--kourse-teacher-primary,var(--kourse-gold,#F06424))!important;
    border-color:var(--kourse-teacher-primary,var(--kourse-gold,#F06424))!important;
    color:#fff!important;
}
.kourse-teacher-portal .button-primary:hover,
.kourse-teacher-portal .kourse-create-work-button:hover{
    filter:brightness(.93);
}
@media(max-width:760px){
    .kourse-teacher-portal .kourse-class-switcher{
        grid-template-columns:1fr auto!important;
    }
    .kourse-teacher-portal .kourse-class-switcher>span{
        grid-column:1/-1;
    }
}

/* ==========================================================
   4.3.71 — Native dark-mode completion pass
   Makes the shared teacher/student Suite UI fully readable in dark mode.
   ========================================================== */
body.kourse-theme-dark,
html.kourse-system-dark body.kourse-theme-system,
html[data-kourse-theme="dark"] body{
  --kourse-dark-bg:#0b1526;
  --kourse-dark-surface:#13233d;
  --kourse-dark-surface-2:#192b47;
  --kourse-dark-border:#30435f;
  --kourse-dark-text:#f7f9fc;
  --kourse-dark-muted:#b9c5d6;
  --kourse-dark-link:#8db7ff;
  color:var(--kourse-dark-text)!important;
}

body.kourse-theme-dark .kourse-teacher-portal,
body.kourse-theme-dark .kourse-student-portal,
html.kourse-system-dark body.kourse-theme-system .kourse-teacher-portal,
html.kourse-system-dark body.kourse-theme-system .kourse-student-portal,
html[data-kourse-theme="dark"] body .kourse-teacher-portal,
html[data-kourse-theme="dark"] body .kourse-student-portal{
  color:var(--kourse-dark-text)!important;
}

/* Headings and normal copy */
body.kourse-theme-dark :is(.kourse-teacher-portal,.kourse-student-portal) :is(h1,h2,h3,h4,h5,h6,strong,label,legend),
html.kourse-system-dark body.kourse-theme-system :is(.kourse-teacher-portal,.kourse-student-portal) :is(h1,h2,h3,h4,h5,h6,strong,label,legend),
html[data-kourse-theme="dark"] body :is(.kourse-teacher-portal,.kourse-student-portal) :is(h1,h2,h3,h4,h5,h6,strong,label,legend){color:var(--kourse-dark-text)!important}
body.kourse-theme-dark :is(.kourse-teacher-portal,.kourse-student-portal) :is(p,small,.description,.kourse-muted),
html.kourse-system-dark body.kourse-theme-system :is(.kourse-teacher-portal,.kourse-student-portal) :is(p,small,.description,.kourse-muted),
html[data-kourse-theme="dark"] body :is(.kourse-teacher-portal,.kourse-student-portal) :is(p,small,.description,.kourse-muted){color:var(--kourse-dark-muted)!important}

/* Shared cards / panels */
body.kourse-theme-dark :is(.kourse-teacher-portal,.kourse-student-portal) :is(.kourse-card,.kourse-metric,.kourse-profile-header,.kourse-dashboard-hero,.kourse-action-card,.kourse-learning-card,.kourse-dashboard-class,.kourse-directory-student,.kourse-dashboard-empty,.kourse-attention-list article,.kourse-theme-choice),
html.kourse-system-dark body.kourse-theme-system :is(.kourse-teacher-portal,.kourse-student-portal) :is(.kourse-card,.kourse-metric,.kourse-profile-header,.kourse-dashboard-hero,.kourse-action-card,.kourse-learning-card,.kourse-dashboard-class,.kourse-directory-student,.kourse-dashboard-empty,.kourse-attention-list article,.kourse-theme-choice),
html[data-kourse-theme="dark"] body :is(.kourse-teacher-portal,.kourse-student-portal) :is(.kourse-card,.kourse-metric,.kourse-profile-header,.kourse-dashboard-hero,.kourse-action-card,.kourse-learning-card,.kourse-dashboard-class,.kourse-directory-student,.kourse-dashboard-empty,.kourse-attention-list article,.kourse-theme-choice){
  background:var(--kourse-dark-surface)!important;
  border-color:var(--kourse-dark-border)!important;
  color:var(--kourse-dark-text)!important;
}

/* Rows, separators and links */
body.kourse-theme-dark :is(.kourse-teacher-portal,.kourse-student-portal) :is(.kourse-settings-list p,.kourse-report-links a,.kourse-activity-list article,.kourse-recommendation-list article,.kourse-student-row,.kourse-teacher-board-list>a),
html.kourse-system-dark body.kourse-theme-system :is(.kourse-teacher-portal,.kourse-student-portal) :is(.kourse-settings-list p,.kourse-report-links a,.kourse-activity-list article,.kourse-recommendation-list article,.kourse-student-row,.kourse-teacher-board-list>a),
html[data-kourse-theme="dark"] body :is(.kourse-teacher-portal,.kourse-student-portal) :is(.kourse-settings-list p,.kourse-report-links a,.kourse-activity-list article,.kourse-recommendation-list article,.kourse-student-row,.kourse-teacher-board-list>a){border-color:var(--kourse-dark-border)!important;color:var(--kourse-dark-text)!important}
body.kourse-theme-dark :is(.kourse-teacher-portal,.kourse-student-portal) a:not(.button),
html.kourse-system-dark body.kourse-theme-system :is(.kourse-teacher-portal,.kourse-student-portal) a:not(.button),
html[data-kourse-theme="dark"] body :is(.kourse-teacher-portal,.kourse-student-portal) a:not(.button){color:var(--kourse-dark-link)}

/* Form controls */
body.kourse-theme-dark :is(.kourse-teacher-portal,.kourse-student-portal) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea),
html.kourse-system-dark body.kourse-theme-system :is(.kourse-teacher-portal,.kourse-student-portal) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea),
html[data-kourse-theme="dark"] body :is(.kourse-teacher-portal,.kourse-student-portal) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){background:#0f1d31!important;border-color:var(--kourse-dark-border)!important;color:var(--kourse-dark-text)!important;color-scheme:dark}

/* Settings page specifically: eliminate the hard-coded light remnants. */
body.kourse-theme-dark .kourse-teacher-portal .kourse-page-heading>p:last-child,
html.kourse-system-dark body.kourse-theme-system .kourse-teacher-portal .kourse-page-heading>p:last-child,
html[data-kourse-theme="dark"] body .kourse-teacher-portal .kourse-page-heading>p:last-child{color:var(--kourse-dark-muted)!important}
body.kourse-theme-dark .kourse-teacher-portal .kourse-settings-list p,
html.kourse-system-dark body.kourse-theme-system .kourse-teacher-portal .kourse-settings-list p,
html[data-kourse-theme="dark"] body .kourse-teacher-portal .kourse-settings-list p{color:var(--kourse-dark-text)!important}

/* Keep Orange Energy / active accent intentionally bright. */
body.kourse-theme-dark :is(.kourse-teacher-portal,.kourse-student-portal) .kourse-eyebrow,
html.kourse-system-dark body.kourse-theme-system :is(.kourse-teacher-portal,.kourse-student-portal) .kourse-eyebrow,
html[data-kourse-theme="dark"] body :is(.kourse-teacher-portal,.kourse-student-portal) .kourse-eyebrow{color:#ffb08a!important}
\n\n/* 4.3.78 — canonical account appearance segmented control */
.kourse-native-account-menu .kourse-native-original-control{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;opacity:0!important;pointer-events:none!important}
.kourse-native-account-menu .kourse-native-appearance-proxy{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;width:100%!important;max-width:260px!important;margin:10px 0 8px!important;padding:4px!important;border:1px solid #dbe2ec!important;border-radius:12px!important;background:#eef2f7!important;box-sizing:border-box!important}
.kourse-native-account-menu .kourse-native-appearance-proxy button{appearance:none!important;-webkit-appearance:none!important;display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;width:auto!important;height:36px!important;margin:0!important;padding:0 10px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#526078!important;font:700 13px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:0!important;box-shadow:none!important;cursor:pointer!important;white-space:nowrap!important}
.kourse-native-account-menu .kourse-native-appearance-proxy button.is-active{background:#fff!important;color:#12233f!important;box-shadow:0 1px 3px rgba(15,23,42,.14)!important}
body.kourse-theme-dark .kourse-native-account-menu .kourse-native-appearance-proxy,html.kourse-system-dark body.kourse-theme-system .kourse-native-account-menu .kourse-native-appearance-proxy,html[data-kourse-theme="dark"] body .kourse-native-account-menu .kourse-native-appearance-proxy{background:#0d1a2d!important;border-color:#334863!important}
body.kourse-theme-dark .kourse-native-account-menu .kourse-native-appearance-proxy button,html.kourse-system-dark body.kourse-theme-system .kourse-native-account-menu .kourse-native-appearance-proxy button,html[data-kourse-theme="dark"] body .kourse-native-account-menu .kourse-native-appearance-proxy button{color:#b9c5d6!important}
body.kourse-theme-dark .kourse-native-account-menu .kourse-native-appearance-proxy button.is-active,html.kourse-system-dark body.kourse-theme-system .kourse-native-account-menu .kourse-native-appearance-proxy button.is-active,html[data-kourse-theme="dark"] body .kourse-native-account-menu .kourse-native-appearance-proxy button.is-active{background:#263c5b!important;color:#fff!important}
/* 4.3.86 Teacher Feed Manager */
.kourse-feed-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.kourse-feed-tabs a{padding:10px 14px;border:1px solid var(--kourse-border,#d9e0ea);border-radius:999px;text-decoration:none;font-weight:700}.kourse-feed-tabs a.is-active{background:#111827;color:#fff;border-color:#111827}.kourse-feed-tabs span{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:5px;border-radius:999px;background:#7c3aed;color:#fff;font-size:11px}.kourse-feed-manager-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr);gap:18px}.kourse-feed-create fieldset{border:1px solid #d9e0ea;border-radius:14px;padding:14px}.kourse-feed-class-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.kourse-feed-class-grid label,.kourse-feed-options label{display:flex;gap:8px;align-items:center}.kourse-feed-options{display:flex;gap:20px;flex-wrap:wrap}.kourse-feed-phone{position:relative;min-height:460px;border-radius:24px;padding:28px;background:linear-gradient(160deg,#0b1020,#15102a 55%,#072630);color:#fff;box-shadow:inset 0 0 0 1px rgba(34,211,238,.25),0 18px 50px rgba(15,23,42,.16);display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden}.kourse-feed-phone:before{content:"";position:absolute;inset:-20%;background:radial-gradient(circle at 70% 25%,rgba(124,58,237,.38),transparent 34%),radial-gradient(circle at 25% 70%,rgba(34,211,238,.22),transparent 30%)}.kourse-feed-phone>*{position:relative}.kourse-feed-phone>span{font-size:11px;letter-spacing:.16em;color:#67e8f9;font-weight:800}.kourse-feed-phone h3{font-size:30px;color:#fff;margin:8px 54px 8px 0}.kourse-feed-phone p{color:#dbeafe;margin-right:54px}.kourse-feed-preview-rail{position:absolute;right:20px;bottom:28px;font-size:24px;line-height:2}.kourse-feed-review-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.45fr);gap:18px;padding:18px 0;border-top:1px solid #e5e7eb}.kourse-feed-review-card:first-of-type{border-top:0}.kourse-feed-review-card form textarea{width:100%}.kourse-feed-post-list article{display:flex;justify-content:space-between;gap:20px;padding:16px 0;border-top:1px solid #e5e7eb}.kourse-feed-post-list article span{font-size:11px;text-transform:uppercase;letter-spacing:.1em;font-weight:800;color:#7c3aed}.kourse-feed-post-list article h3{margin:4px 0}.kourse-feed-post-list article p{margin:0}.kourse-feed-post-list article>small{white-space:nowrap}@media(max-width:850px){.kourse-feed-manager-grid,.kourse-feed-review-card{grid-template-columns:1fr}.kourse-feed-class-grid{grid-template-columns:1fr}.kourse-feed-preview{display:none}}


/* =========================================================
   4.3.88 — Unified access/login responsive sizing
   Keep the login focused on desktop and make mobile sign-in
   the primary content instead of stacking a desktop hero.
   ========================================================= */
.kourse-front-wrap.kourse-access-wrap.kourse-pin-access{
    width:min(1180px,calc(100% - 40px))!important;
    max-width:1180px!important;
    min-width:0!important;
    margin:32px auto!important;
    padding:0!important;
    box-sizing:border-box!important;
}
.kourse-pin-access .kourse-access-shell{
    width:100%!important;
    max-width:1180px!important;
    min-width:0!important;
    grid-template-columns:minmax(320px,.82fr) minmax(0,1.18fr)!important;
    box-sizing:border-box!important;
}
.kourse-pin-access .kourse-access-visual{min-width:0!important;min-height:570px!important;padding:44px 42px!important}
.kourse-pin-access .kourse-access-main{min-width:0!important;padding:34px 40px 40px!important}
.kourse-pin-access .kourse-role-tabs{width:100%!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;box-sizing:border-box!important}
.kourse-pin-access .kourse-role-tabs a{min-width:0!important;white-space:nowrap!important}
.kourse-pin-access .kourse-form,
.kourse-pin-access .kourse-form label,
.kourse-pin-access .kourse-form input,
.kourse-pin-access .kourse-form button,
.kourse-pin-access details{max-width:100%!important;box-sizing:border-box!important}
.kourse-pin-access .kourse-pin-input{width:100%!important;min-width:0!important}

@media(max-width:820px){
  .kourse-front-wrap.kourse-access-wrap.kourse-pin-access{
      width:calc(100% - 24px)!important;
      max-width:620px!important;
      margin:16px auto 28px!important;
  }
  .kourse-pin-access .kourse-access-shell{
      display:block!important;
      width:100%!important;
      max-width:620px!important;
      border-radius:20px!important;
      overflow:hidden!important;
  }
  .kourse-pin-access .kourse-access-visual{
      min-height:0!important;
      padding:22px 24px!important;
      display:block!important;
  }
  .kourse-pin-access .kourse-access-brand{font-size:26px!important;letter-spacing:-1px!important}
  .kourse-pin-access .kourse-access-art{display:none!important}
  .kourse-pin-access .kourse-access-visual h2{margin:10px 0 4px!important;font-size:25px!important}
  .kourse-pin-access .kourse-access-visual p{font-size:14px!important;line-height:1.4!important}
  .kourse-pin-access .kourse-access-mini-cards{display:none!important}
  .kourse-pin-access .kourse-access-main{padding:20px 22px 26px!important}
  .kourse-pin-access .kourse-role-tabs{margin:0 0 20px!important;padding:4px!important;gap:4px!important}
  .kourse-pin-access .kourse-role-tabs a{padding:11px 4px!important;font-size:14px!important}
  .kourse-pin-access .kourse-access-heading{margin-bottom:16px!important}
  .kourse-pin-access .kourse-access-heading h2{font-size:24px!important}
  .kourse-pin-access .kourse-pin-input{font-size:24px!important;letter-spacing:.25em!important}
}
@media(max-width:520px){
  .kourse-front-wrap.kourse-access-wrap.kourse-pin-access{
      width:calc(100% - 20px)!important;
      margin:12px auto 24px!important;
  }
  .kourse-pin-access .kourse-access-visual{padding:18px 18px!important}
  .kourse-pin-access .kourse-access-visual h2{font-size:22px!important}
  .kourse-pin-access .kourse-access-visual p{font-size:13px!important}
  .kourse-pin-access .kourse-access-main{padding:18px 16px 22px!important}
  .kourse-pin-access .kourse-role-tabs a{font-size:13px!important;padding:10px 2px!important}
  .kourse-pin-access .kourse-access-heading h2{font-size:22px!important}
  .kourse-pin-access .kourse-access-heading p{font-size:14px!important}
  .kourse-pin-access .kourse-pin-login-form>.button{min-height:50px!important}
  .kourse-pin-access details summary{font-size:14px!important;line-height:1.35!important}
}
