:root{--sbml-accent:#2563eb;--sbml-accent-soft:#eff6ff;--sbml-ink:#0f172a;--sbml-muted:#64748b;--sbml-border:#e2e8f0;--sbml-surface:#fff;--sbml-soft:#f8fafc;--sbml-success:#15803d;--sbml-danger:#be123c;--sbml-radius:18px;--sbml-shadow:0 18px 45px rgba(15,23,42,.08)}
.sbml-portal,.sbml-catalogue,.sbml-course-shell,.sbml-lesson-player{color:var(--sbml-ink);font-family:inherit}.sbml-portal *,.sbml-catalogue *,.sbml-course-shell *,.sbml-lesson-player *{box-sizing:border-box}.sbml-eyebrow{display:block;color:var(--sbml-accent);font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.sbml-button{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;border:0!important;border-radius:11px!important;background:var(--sbml-accent)!important;color:#fff!important;padding:11px 17px!important;font-weight:800!important;text-decoration:none!important;box-shadow:0 8px 18px color-mix(in srgb,var(--sbml-accent) 24%,transparent);transition:transform .18s ease,box-shadow .18s ease}.sbml-button:hover{transform:translateY(-1px);box-shadow:0 12px 26px color-mix(in srgb,var(--sbml-accent) 30%,transparent)}.sbml-button-large{padding:14px 22px!important;font-size:16px}.sbml-progress{height:9px;background:#e8edf4;border-radius:999px;overflow:hidden}.sbml-progress span{display:block;height:100%;background:linear-gradient(90deg,var(--sbml-accent),color-mix(in srgb,var(--sbml-accent) 62%,#38bdf8));border-radius:inherit;transition:width .3s ease}.sbml-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px}.sbml-panel{background:var(--sbml-surface);border:1px solid var(--sbml-border);border-radius:var(--sbml-radius);padding:26px;box-shadow:0 8px 25px rgba(15,23,42,.04);margin-bottom:24px}.sbml-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:22px}.sbml-section-heading h2{margin:3px 0 0;font-size:clamp(24px,3vw,34px);line-height:1.1}.sbml-section-heading>a{font-weight:800;text-decoration:none}.sbml-status{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:12px;font-weight:800}.sbml-status.is-success{background:#ecfdf3;color:#166534}.sbml-status.is-error{background:#fff1f2;color:#be123c}.sbml-notice{padding:14px 16px;border-radius:12px;margin:0 0 20px}.sbml-notice-success{background:#ecfdf3;border:1px solid #86efac}.sbml-notice-error{background:#fff1f2;border:1px solid #fda4af}.sbml-empty-state{grid-column:1/-1;padding:40px;text-align:center;border:1px dashed #cbd5e1;border-radius:16px;background:var(--sbml-soft)}.sbml-empty-state strong{display:block;font-size:20px;margin-bottom:8px}
/* Catalogue */
.sbml-catalogue{max-width:1240px;margin:30px auto}.sbml-catalogue-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;padding:38px;border-radius:28px;background:linear-gradient(135deg,#0f172a,#1e3a8a);color:#fff;margin-bottom:22px;overflow:hidden;position:relative}.sbml-catalogue-hero:after{content:"";position:absolute;width:320px;height:320px;border-radius:50%;right:-100px;top:-130px;background:rgba(255,255,255,.09)}.sbml-catalogue-hero h1{color:#fff;font-size:clamp(34px,5vw,58px);margin:7px 0 10px;line-height:1}.sbml-catalogue-hero p{max-width:650px;margin:0;color:#dbeafe;font-size:18px}.sbml-catalogue-count{position:relative;z-index:1;min-width:150px;padding:18px;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:rgba(255,255,255,.08);backdrop-filter:blur(10px)}.sbml-catalogue-count strong{display:block;font-size:34px}.sbml-catalogue-count span{font-size:13px;color:#dbeafe}.sbml-catalogue-filters{display:grid;grid-template-columns:minmax(260px,1.6fr) 1fr 1fr auto;gap:12px;padding:16px;background:#fff;border:1px solid var(--sbml-border);border-radius:16px;box-shadow:var(--sbml-shadow);margin-bottom:28px}.sbml-catalogue-filters input,.sbml-catalogue-filters select{width:100%;height:46px;border:1px solid #cbd5e1;border-radius:10px;padding:0 13px;background:#fff}.sbml-course-grid{align-items:stretch}.sbml-card{background:#fff;border:1px solid var(--sbml-border);border-radius:20px;overflow:hidden;box-shadow:0 10px 30px rgba(15,23,42,.06);transition:transform .2s ease,box-shadow .2s ease;min-width:0}.sbml-card:hover{transform:translateY(-4px);box-shadow:var(--sbml-shadow)}.sbml-card-media{position:relative;display:block;height:190px;background:linear-gradient(135deg,#dbeafe,#eef2ff);overflow:hidden}.sbml-card-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.sbml-card:hover .sbml-card-media img{transform:scale(1.035)}.sbml-card-media>.sbml-status{position:absolute;top:14px;left:14px;background:rgba(255,255,255,.92)}.sbml-card-placeholder{height:100%;display:grid;place-items:center;font-size:48px;color:var(--sbml-accent)}.sbml-card-body{padding:21px}.sbml-card-meta{display:flex;gap:8px;flex-wrap:wrap;color:var(--sbml-muted);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.sbml-card-meta span+span:before{content:"•";margin-right:8px}.sbml-card h3{margin:10px 0 8px;font-size:21px;line-height:1.25}.sbml-card h3 a{color:var(--sbml-ink);text-decoration:none}.sbml-card-body>p{color:var(--sbml-muted);margin:0 0 18px}.sbml-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--sbml-border);padding-top:15px}.sbml-card-footer a{font-weight:800;text-decoration:none}.sbml-card-progress>div:first-child{display:flex;justify-content:space-between;margin-bottom:8px}.sbml-card-progress{margin:12px 0 17px}
/* Course page */
.sbml-course-shell{max-width:1280px;margin:28px auto}.sbml-course-hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);min-height:440px;background:linear-gradient(135deg,#0b1220,#172554);color:#fff;border-radius:30px;overflow:hidden;box-shadow:var(--sbml-shadow)}.sbml-course-hero-copy{padding:48px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.sbml-course-hero h1{color:#fff;font-size:clamp(38px,5vw,64px);line-height:1.02;margin:10px 0 16px}.sbml-course-lead{font-size:19px;color:#dbeafe;max-width:760px}.sbml-meta-chips{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0 22px}.sbml-meta-chips span{padding:7px 11px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);font-size:13px}.sbml-course-cover{min-height:360px;background:#dbeafe}.sbml-course-cover img{width:100%;height:100%;object-fit:cover}.sbml-cover-placeholder{height:100%;min-height:360px;display:grid;place-items:center;align-content:center;gap:15px;background:radial-gradient(circle at 20% 20%,#60a5fa,#1d4ed8 45%,#0f172a);color:#fff}.sbml-cover-placeholder span{font-size:72px}.sbml-cover-placeholder strong{font-size:20px}.sbml-course-hero-progress{width:min(100%,520px);margin:8px 0 20px}.sbml-course-hero-progress>div:first-child{display:flex;justify-content:space-between;margin-bottom:8px}.sbml-course-cta{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.sbml-course-cta>span{font-size:28px;font-weight:900}.sbml-course-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:28px;margin-top:28px}.sbml-course-main{min-width:0}.sbml-course-sidebar{align-self:start;position:sticky;top:30px}.sbml-course-overview{font-size:17px;line-height:1.75}.sbml-outcomes ul{display:grid;grid-template-columns:1fr 1fr;gap:12px 22px;list-style:none;padding:0}.sbml-outcomes li{display:flex;gap:10px}.sbml-outcomes li span{display:grid;place-items:center;flex:0 0 24px;height:24px;border-radius:50%;background:#ecfdf3;color:#15803d;font-weight:900}.sbml-curriculum{list-style:none;padding:0;margin:0;border:1px solid var(--sbml-border);border-radius:14px;overflow:hidden}.sbml-curriculum li{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:14px;padding:15px 17px;border-bottom:1px solid var(--sbml-border);background:#fff}.sbml-curriculum li:last-child{border-bottom:0}.sbml-curriculum li.is-complete{background:#f0fdf4}.sbml-curriculum li.is-assessment{background:#f8fafc}.sbml-curriculum-index{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#eef2ff;color:#4338ca;font-weight:900}.sbml-curriculum li.is-complete .sbml-curriculum-index{background:#dcfce7;color:#166534}.sbml-curriculum strong{display:block}.sbml-curriculum small{display:block;color:var(--sbml-muted);margin-top:3px}.sbml-curriculum a{text-decoration:none;color:var(--sbml-ink)}.sbml-lock{font-size:12px;color:var(--sbml-muted)}.sbml-course-summary h3{margin-top:0}.sbml-course-summary dl{margin:0}.sbml-course-summary dl div{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid var(--sbml-border)}.sbml-course-summary dl div:last-child{border-bottom:0}.sbml-course-summary dt{color:var(--sbml-muted)}.sbml-course-summary dd{font-weight:800;margin:0}
/* Lesson player */
.sbml-lesson-player{max-width:1500px;margin:20px auto;display:grid;grid-template-columns:310px minmax(0,1fr);background:#fff;border:1px solid var(--sbml-border);border-radius:24px;overflow:hidden;box-shadow:var(--sbml-shadow);min-height:720px}.sbml-lesson-sidebar{padding:24px;background:#0f172a;color:#fff}.sbml-lesson-sidebar h3{color:#fff;font-size:20px;margin:18px 0}.sbml-back-course{color:#bfdbfe;text-decoration:none;font-weight:700}.sbml-lesson-sidebar .sbml-course-hero-progress{font-size:13px}.sbml-lesson-sidebar nav{display:grid;gap:7px;margin-top:24px}.sbml-lesson-sidebar nav a{display:grid;grid-template-columns:30px 1fr;align-items:center;gap:10px;padding:10px;border-radius:10px;color:#cbd5e1;text-decoration:none}.sbml-lesson-sidebar nav a:hover,.sbml-lesson-sidebar nav a.is-current{background:rgba(255,255,255,.1);color:#fff}.sbml-lesson-sidebar nav a.is-complete>span{background:#166534}.sbml-lesson-sidebar nav a[aria-disabled=true]{opacity:.45;pointer-events:none}.sbml-lesson-sidebar nav a>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#334155;font-size:12px;font-weight:900}.sbml-lesson-main{padding:42px 50px;min-width:0}.sbml-lesson-main>header h1{font-size:clamp(32px,4vw,52px);margin:7px 0 25px}.sbml-video{border-radius:18px;overflow:hidden;background:#000;margin-bottom:30px}.sbml-video iframe,.sbml-video video{display:block;width:100%;aspect-ratio:16/9;height:auto}.sbml-lesson-content{font-size:17px;line-height:1.8}.sbml-resource-card{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px;border:1px solid #bfdbfe;border-radius:14px;background:#eff6ff;margin:28px 0}.sbml-resource-card div{display:grid;gap:4px}.sbml-resource-card span{color:var(--sbml-muted)}.sbml-lesson-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--sbml-border);padding-top:24px;margin-top:34px}.sbml-lesson-actions nav{display:flex;gap:10px}.sbml-complete-badge{display:inline-flex;padding:10px 14px;border-radius:10px;background:#dcfce7;color:#166534;font-weight:800}
/* Assessments */
.sbml-assessment-card{background:#fff;border:1px solid var(--sbml-border);border-radius:20px;box-shadow:0 12px 35px rgba(15,23,42,.06);padding:25px;margin:24px 0}.sbml-assessment-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.sbml-assessment-header h3{font-size:26px;margin:5px 0 0}.sbml-assessment-mode{color:var(--sbml-accent);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.sbml-assessment-time{text-align:right;display:grid;gap:3px}.sbml-assessment-time span{font-size:12px;color:var(--sbml-muted)}.sbml-assessment-description,.sbml-assessment-instructions{margin:18px 0;line-height:1.65}.sbml-assessment-instructions{padding:15px;border-left:4px solid var(--sbml-accent);background:var(--sbml-accent-soft);border-radius:0 10px 10px 0}.sbml-assessment-meta{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.sbml-assessment-meta span{padding:6px 10px;border-radius:999px;background:#f1f5f9;font-size:12px;font-weight:700}.sbml-assessment-toolbar{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px;background:rgba(255,255,255,.95);backdrop-filter:blur(8px);border:1px solid var(--sbml-border);border-radius:13px;margin-bottom:14px}.sbml-question-progress{min-width:220px;flex:1}.sbml-progress-label{font-size:12px;font-weight:800}.sbml-question-progress .sbml-progress{margin-top:7px}.sbml-timer{display:grid;text-align:right}.sbml-timer span{font-size:11px;color:var(--sbml-muted)}.sbml-timer strong{font-size:22px;font-variant-numeric:tabular-nums}.sbml-question-palette{display:flex;flex-wrap:wrap;gap:7px;padding:12px 0 17px}.sbml-question-palette button{width:36px;height:36px;border:1px solid var(--sbml-border);border-radius:9px;background:#fff;font-weight:800;cursor:pointer}.sbml-question-palette button.is-current{border-color:var(--sbml-accent);box-shadow:0 0 0 2px var(--sbml-accent-soft)}.sbml-question-palette button.is-answered{background:#ecfdf3;border-color:#86efac}.sbml-question-palette button.is-flagged{background:#fff7ed;border-color:#fdba74}.sbml-question{padding:24px;border:1px solid var(--sbml-border);border-radius:16px;margin:14px 0;background:#fff}.sbml-question[hidden]{display:none}.sbml-question-heading{display:flex;justify-content:space-between;gap:18px}.sbml-question-heading span{font-size:12px;color:var(--sbml-muted);font-weight:700}.sbml-question-heading h4{font-size:20px;margin:5px 0 12px}.sbml-question-points{white-space:nowrap;padding:6px 9px;border-radius:8px;background:#f1f5f9;font-size:12px;font-weight:800}.sbml-flag-question{border:0;background:transparent;color:#b45309;cursor:pointer;padding:0;font-weight:700}.sbml-question-input{margin:20px 0}.sbml-choice-list{display:grid;gap:10px}.sbml-choice{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid var(--sbml-border);border-radius:12px;cursor:pointer;transition:border .15s ease,background .15s ease}.sbml-choice:hover{border-color:#93c5fd;background:#eff6ff}.sbml-choice input{margin-top:4px}.sbml-short-answer,.sbml-question textarea,.sbml-question select,.sbml-question input[type=number],.sbml-question input[type=file]{width:100%;padding:12px 13px;border:1px solid #cbd5e1;border-radius:10px;background:#fff}.sbml-question-controls{display:flex;justify-content:space-between;gap:12px;margin-top:20px}.sbml-assessment-submit{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px;border-radius:14px;background:#f8fafc;margin-top:18px}.sbml-assessment-submit p{margin:3px 0;color:var(--sbml-muted)}.sbml-attempt-result{display:flex;align-items:center;gap:20px;padding:18px;border-radius:14px;background:#f8fafc;border:1px solid var(--sbml-border);margin:18px 0}.sbml-attempt-result.is-passed{background:#ecfdf3;border-color:#86efac}.sbml-attempt-result.is-not-passed{background:#fff7ed;border-color:#fdba74}.sbml-attempt-result.is-pending{background:#eff6ff;border-color:#93c5fd}.sbml-attempt-score{display:grid;place-items:center;min-width:105px;padding:12px;border-radius:12px;background:#fff}.sbml-attempt-score span{font-size:11px;color:var(--sbml-muted)}.sbml-attempt-score strong{font-size:28px}.sbml-attempt-result h4,.sbml-attempt-result p{margin:0}.sbml-attempt-review{margin-top:15px}.sbml-attempt-review>summary{cursor:pointer;font-weight:800}.sbml-attempt-review article{padding:17px 0;border-bottom:1px solid var(--sbml-border)}.sbml-attempt-review article>div:first-child{display:grid;gap:5px}.sbml-attempt-review article>div:first-child span{font-size:12px;color:var(--sbml-muted)}.sbml-answer-explanation,.sbml-answer-feedback{padding:12px;border-radius:10px;background:#f8fafc;margin-top:12px}
/* Portal/auth */
.sbml-portal{max-width:1240px;margin:30px auto}.sbml-portal-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px;padding:28px;border-radius:22px;background:linear-gradient(135deg,#0f172a,#1e3a8a);color:#fff}.sbml-portal-header h1{color:#fff;margin:4px 0 0}.sbml-logout{padding:10px 14px;border:1px solid rgba(255,255,255,.25);border-radius:10px;color:#fff;text-decoration:none}.sbml-portal-nav{display:flex;gap:8px;overflow:auto;padding:8px;background:#f8fafc;border:1px solid var(--sbml-border);border-radius:14px;margin-bottom:24px}.sbml-portal-nav a{white-space:nowrap;padding:10px 14px;border-radius:9px;text-decoration:none;font-weight:800;color:var(--sbml-ink)}.sbml-portal-nav a.is-active{background:#fff;color:var(--sbml-accent);box-shadow:0 2px 8px rgba(15,23,42,.08)}.sbml-portal-content{min-height:320px}.sbml-auth-shell{min-height:70vh;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at top,#dbeafe,#f8fafc 52%)}.sbml-auth-card{width:min(100%,540px);background:#fff;border:1px solid var(--sbml-border);border-radius:24px;padding:36px;box-shadow:0 28px 70px rgba(15,23,42,.14)}.sbml-auth-card>h1,.sbml-auth-card>h2{text-align:center}.sbml-portal-logo{display:block;max-width:190px;max-height:90px;margin:0 auto 18px;object-fit:contain}.sbml-form{display:grid;gap:16px}.sbml-form label{display:grid;gap:7px;font-weight:800}.sbml-form input,.sbml-form select,.sbml-form textarea{width:100%;padding:12px 13px;border:1px solid #cbd5e1;border-radius:10px;background:#fff}.sbml-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.sbml-form .sbml-check{display:flex;align-items:center;gap:8px;font-weight:400}.sbml-form .sbml-check input{width:auto}.sbml-auth-links{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:18px}.sbml-student-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.sbml-student-stats article{position:relative;overflow:hidden;background:#fff;border:1px solid var(--sbml-border);border-radius:16px;padding:21px;box-shadow:0 8px 25px rgba(15,23,42,.04)}.sbml-student-stats article:after{content:"";position:absolute;width:70px;height:70px;border-radius:50%;right:-25px;bottom:-25px;background:var(--sbml-accent-soft)}.sbml-student-stats strong{display:block;font-size:30px}.sbml-student-stats span{color:var(--sbml-muted)}.sbml-table-wrap{overflow:auto;border:1px solid var(--sbml-border);border-radius:13px}.sbml-table{width:100%;border-collapse:collapse;background:#fff}.sbml-table th,.sbml-table td{text-align:left;padding:13px;border-bottom:1px solid var(--sbml-border)}.sbml-table th{background:#f8fafc;font-size:12px;text-transform:uppercase;letter-spacing:.04em}.sbml-order-list{display:grid;gap:12px}.sbml-order-card{display:flex;justify-content:space-between;gap:20px;align-items:center;border:1px solid var(--sbml-border);border-radius:12px;padding:16px;background:#fff}.sbml-order-card>div{display:grid;gap:4px}.sbml-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
@media(max-width:1000px){.sbml-course-layout{grid-template-columns:1fr}.sbml-course-sidebar{position:static}.sbml-course-hero{grid-template-columns:1fr}.sbml-course-cover{max-height:360px}.sbml-lesson-player{grid-template-columns:1fr}.sbml-lesson-sidebar{max-height:360px;overflow:auto}.sbml-catalogue-filters{grid-template-columns:1fr 1fr}.sbml-catalogue-filters .sbml-search-field{grid-column:1/-1}}
@media(max-width:760px){.sbml-catalogue-hero{align-items:flex-start;flex-direction:column;padding:28px}.sbml-course-hero-copy{padding:30px}.sbml-course-layout{margin-top:18px}.sbml-outcomes ul{grid-template-columns:1fr}.sbml-lesson-main{padding:28px 22px}.sbml-student-stats{grid-template-columns:1fr 1fr}.sbml-profile-grid{grid-template-columns:1fr}.sbml-portal-header{align-items:center}.sbml-form-row{grid-template-columns:1fr}.sbml-assessment-header,.sbml-assessment-submit,.sbml-lesson-actions{align-items:flex-start;flex-direction:column}.sbml-question-heading{flex-direction:column}.sbml-question-points{align-self:flex-start}.sbml-catalogue-filters{grid-template-columns:1fr}.sbml-catalogue-filters .sbml-search-field{grid-column:auto}.sbml-course-sidebar{display:none}}
@media(max-width:520px){.sbml-student-stats{grid-template-columns:1fr}.sbml-auth-card{padding:24px}.sbml-order-card{align-items:flex-start;flex-direction:column}.sbml-section-heading{align-items:flex-start;flex-direction:column}.sbml-panel,.sbml-assessment-card{padding:19px}.sbml-course-hero h1{font-size:38px}.sbml-assessment-toolbar{position:static;align-items:flex-start;flex-direction:column}.sbml-question-progress{width:100%;min-width:0}.sbml-curriculum li{grid-template-columns:34px 1fr}.sbml-curriculum .sbml-lock{grid-column:2}.sbml-portal-header{padding:22px}}
/* Paid assessment controls rendered by the shared front-end layer */
.sbml-matching,.sbml-ordering{display:grid;gap:12px}.sbml-matching label,.sbml-ordering label{display:grid;grid-template-columns:minmax(140px,1fr) minmax(180px,1fr);align-items:center;gap:14px;padding:13px;border:1px solid var(--sbml-border);border-radius:12px;background:#f8fafc}.sbml-matching select,.sbml-ordering select{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:9px;background:#fff}.sbml-likert,.sbml-rating{display:flex;gap:9px;flex-wrap:wrap}.sbml-likert label,.sbml-rating label{flex:1;min-width:95px;cursor:pointer}.sbml-likert input,.sbml-rating input{position:absolute;opacity:0}.sbml-likert span,.sbml-rating span{display:grid;place-items:center;min-height:48px;padding:9px;border:1px solid var(--sbml-border);border-radius:10px;text-align:center}.sbml-likert input:checked+span,.sbml-rating input:checked+span{border-color:var(--sbml-accent);background:var(--sbml-accent-soft);color:var(--sbml-accent);font-weight:800}.sbml-image-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}.sbml-image-choices label{cursor:pointer}.sbml-image-choices input{position:absolute;opacity:0}.sbml-image-choices label>span{display:grid;gap:9px;padding:10px;border:2px solid var(--sbml-border);border-radius:13px}.sbml-image-choices input:checked+span{border-color:var(--sbml-accent);background:var(--sbml-accent-soft)}.sbml-image-choices img{width:100%;height:130px;object-fit:cover;border-radius:9px}.sbml-instructor-studio pre{white-space:pre-wrap;overflow:auto;padding:12px;border-radius:10px;background:#0f172a;color:#e2e8f0}.sbml-instructor-studio .sbml-profile-grid{align-items:start}
@media(max-width:620px){.sbml-matching label,.sbml-ordering label{grid-template-columns:1fr}.sbml-likert label,.sbml-rating label{min-width:calc(50% - 9px)}}
.sbml-activity-list{list-style:none;padding:0;margin:0;display:grid}.sbml-activity-list li{display:grid;grid-template-columns:42px 1fr;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid var(--sbml-border)}.sbml-activity-list li:last-child{border-bottom:0}.sbml-activity-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--sbml-accent-soft);color:var(--sbml-accent);font-weight:900}.sbml-activity-list div{display:grid;gap:3px}.sbml-activity-list small{color:var(--sbml-muted)}
/* Course > Lesson > Module learning experience */
.sbml-module-stack{display:grid;gap:22px;margin-top:24px}.sbml-learning-module{border:1px solid var(--sbml-border);border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(15,23,42,.045)}.sbml-learning-module.is-complete{border-color:#86efac}.sbml-learning-module.is-locked{background:#f8fafc}.sbml-module-header{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;align-items:start;padding:20px 22px;border-bottom:1px solid var(--sbml-border)}.sbml-module-icon{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:var(--sbml-accent-soft);color:var(--sbml-accent)}.sbml-module-icon .dashicons{font-size:24px;width:24px;height:24px}.sbml-module-kicker{display:block;color:var(--sbml-muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.sbml-module-header h2{margin:4px 0 2px;font-size:23px}.sbml-module-header p{margin:5px 0 0;color:var(--sbml-muted)}.sbml-module-state{white-space:nowrap;border-radius:999px;padding:6px 10px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:800}.is-complete .sbml-module-state{background:#dcfce7;color:#166534}.sbml-module-body{padding:24px}.sbml-module-footer{display:flex;justify-content:flex-end;padding:16px 22px;border-top:1px solid var(--sbml-border);background:#f8fafc}.sbml-module-locked{padding:24px;color:#64748b}.sbml-module-content{line-height:1.75}.sbml-module-embed,.sbml-external-frame{position:relative;width:100%;margin:18px 0;overflow:hidden;border-radius:14px;background:#0f172a}.sbml-module-embed iframe,.sbml-external-frame iframe{display:block;width:100%;min-height:480px;border:0}.sbml-module-image img{display:block;max-width:100%;height:auto;border-radius:14px}.sbml-resource-list{display:grid;gap:10px;margin-top:16px}.sbml-resource-list a{display:flex;gap:10px;align-items:center;padding:13px;border:1px solid var(--sbml-border);border-radius:11px;text-decoration:none}.sbml-book{display:grid;gap:10px}.sbml-book details{border:1px solid var(--sbml-border);border-radius:12px;padding:0 15px}.sbml-book summary{padding:14px 0;cursor:pointer;font-weight:800}.sbml-choice-form,.sbml-checklist{display:grid;gap:10px}.sbml-choice-form label,.sbml-checklist label{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid var(--sbml-border);border-radius:10px}.sbml-choice-results{display:grid;gap:10px;margin-top:18px}.sbml-choice-results>div{display:grid;grid-template-columns:minmax(120px,1fr) minmax(160px,2fr) 55px;gap:12px;align-items:center}.sbml-live-class{display:flex;justify-content:space-between;gap:15px;align-items:center;flex-wrap:wrap;padding:18px;border-radius:14px;background:#eff6ff}.sbml-branch-choices{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.sbml-database-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-bottom:18px}.sbml-database-grid article{padding:16px;border:1px solid var(--sbml-border);border-radius:12px}.sbml-database-grid dl div{display:flex;justify-content:space-between;gap:12px;padding:6px 0}.sbml-wiki-content{padding:18px;border:1px solid var(--sbml-border);border-radius:12px;background:#f8fafc}.sbml-wiki-editor{margin-top:16px}.sbml-wiki-editor summary{cursor:pointer;font-weight:800}@media(max-width:700px){.sbml-module-header{grid-template-columns:42px 1fr}.sbml-module-state{grid-column:2}.sbml-module-body{padding:19px}.sbml-choice-results>div{grid-template-columns:1fr}.sbml-module-embed iframe,.sbml-external-frame iframe{min-height:300px}}
/* v0.3.2 polished module presentation */
.sbml-learning-module.sbml-module-display-focused{border-color:color-mix(in srgb,var(--sbml-accent) 35%,var(--sbml-border));box-shadow:0 16px 42px rgba(15,23,42,.08)}.sbml-learning-module.sbml-module-display-compact .sbml-module-header{padding:14px 17px}.sbml-learning-module.sbml-module-display-compact .sbml-module-body{padding:17px}.sbml-module-estimate{display:inline-flex;align-items:center;gap:5px;color:var(--sbml-muted);font-size:12px}.sbml-video-shell{position:relative;overflow:hidden;border-radius:16px;background:#020617;box-shadow:0 12px 32px rgba(15,23,42,.16)}.sbml-video-shell:before{content:"";display:block;padding-top:56.25%}.sbml-video-shell.sbml-ratio-4-3:before{padding-top:75%}.sbml-video-shell.sbml-ratio-1-1:before{padding-top:100%}.sbml-video-shell.sbml-ratio-21-9:before{padding-top:42.86%}.sbml-video-shell.sbml-ratio-auto:before{display:none}.sbml-video-shell>iframe,.sbml-video-shell>video,.sbml-video-shell>.sbml-module-embed,.sbml-video-shell>.wp-video{position:absolute;inset:0;width:100%!important;height:100%!important;margin:0}.sbml-video-shell.sbml-ratio-auto>iframe,.sbml-video-shell.sbml-ratio-auto>video,.sbml-video-shell.sbml-ratio-auto>.sbml-module-embed,.sbml-video-shell.sbml-ratio-auto>.wp-video{position:relative;min-height:420px}.sbml-video-shell video{object-fit:contain}.sbml-video-shell .sbml-module-embed iframe{width:100%;height:100%;min-height:0}.sbml-audio-shell{padding:18px;border:1px solid var(--sbml-border);border-radius:14px;background:linear-gradient(135deg,#f8fafc,#eff6ff)}.sbml-audio-shell .wp-audio-shortcode,.sbml-audio-shell audio{width:100%!important}.sbml-media-support{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.sbml-media-support a{font-weight:700}.sbml-transcript{margin-top:14px;border:1px solid var(--sbml-border);border-radius:12px;background:#f8fafc}.sbml-transcript summary{padding:14px 16px;cursor:pointer;font-weight:800}.sbml-transcript>div{padding:0 16px 16px;line-height:1.7}.sbml-gallery{display:grid;gap:14px;margin:8px 0 20px}.sbml-gallery-grid,.sbml-gallery-masonry{grid-template-columns:repeat(var(--sbml-gallery-columns),minmax(0,1fr))}.sbml-gallery-slider{grid-auto-flow:column;grid-auto-columns:minmax(75%,1fr);overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px}.sbml-gallery figure{margin:0;overflow:hidden;border-radius:14px;border:1px solid var(--sbml-border);background:#f8fafc;scroll-snap-align:start}.sbml-gallery img{display:block;width:100%;height:auto}.sbml-gallery-grid img{aspect-ratio:4/3;object-fit:cover}.sbml-gallery-masonry figure:nth-child(3n+1) img{aspect-ratio:3/4;object-fit:cover}.sbml-gallery figcaption{padding:10px 12px;color:var(--sbml-muted);font-size:13px}.sbml-file-card{display:grid;grid-template-columns:44px minmax(0,1fr) 28px;align-items:center;gap:13px;padding:16px 18px;border:1px solid var(--sbml-border);border-radius:14px;background:#fff;text-decoration:none!important;color:var(--sbml-ink)!important;transition:border-color .18s,transform .18s}.sbml-file-card:hover{border-color:var(--sbml-accent);transform:translateY(-1px)}.sbml-file-card>.dashicons:first-child{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:var(--sbml-accent-soft);color:var(--sbml-accent)}.sbml-file-meta{display:block;margin-top:3px;color:var(--sbml-muted);font-size:12px}.sbml-file-preview iframe{display:block;width:100%;height:680px;border:1px solid var(--sbml-border);border-radius:14px}.sbml-resource-layout-cards{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.sbml-resource-layout-cards a{align-items:flex-start;background:#fff;min-height:100px}.sbml-resource-layout-compact{gap:6px}.sbml-resource-layout-compact a{padding:9px 11px}.sbml-resource-list a>span:nth-child(2){display:grid;gap:3px;min-width:0}.sbml-resource-list small{color:var(--sbml-muted)}.sbml-external-frame{height:var(--sbml-frame-height,640px)}.sbml-external-frame iframe{height:100%;min-height:0}.sbml-book{position:relative}.sbml-book-contents{padding:16px;border:1px solid var(--sbml-border);border-radius:13px;background:#f8fafc}.sbml-book-contents ol{columns:2;gap:30px;margin-bottom:0}.sbml-book-chapter{padding:20px 0}.sbml-book-navigation{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:16px;border-top:1px solid var(--sbml-border)}.sbml-feedback-question,.sbml-review-criterion{margin:0 0 15px;padding:16px;border:1px solid var(--sbml-border);border-radius:13px;background:#fff}.sbml-feedback-question legend,.sbml-review-criterion legend{padding:0 6px;font-weight:800}.sbml-feedback-info{padding:14px;border-left:4px solid var(--sbml-accent);background:var(--sbml-accent-soft);border-radius:8px}.sbml-feedback-analysis{padding:13px 15px;border-radius:11px;background:#f8fafc}.sbml-forum-list{display:grid;gap:14px;margin-bottom:20px}.sbml-forum-list article{padding:18px;border:1px solid var(--sbml-border);border-radius:14px;background:#fff}.sbml-forum-list header{display:flex;justify-content:space-between;gap:16px;color:var(--sbml-muted);font-size:13px}.sbml-forum-list h4{margin:10px 0 6px}.sbml-glossary-alphabet{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}.sbml-glossary-alphabet a{display:grid;place-items:center;min-width:34px;height:34px;border:1px solid var(--sbml-border);border-radius:9px;text-decoration:none;font-weight:800}.sbml-glossary{display:grid;gap:10px}.sbml-glossary>div{padding:16px;border:1px solid var(--sbml-border);border-radius:12px}.sbml-glossary dt{font-size:18px;font-weight:900}.sbml-glossary dd{margin:7px 0 0}.sbml-glossary dd small{display:block;margin-top:8px;color:var(--sbml-muted)}.sbml-live-class{padding:22px;border:1px solid #bfdbfe;background:linear-gradient(135deg,#eff6ff,#eef2ff)}.sbml-live-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.sbml-checklist-progress{display:flex;align-items:center;gap:14px;margin-bottom:14px}.sbml-checklist-progress .sbml-progress{flex:1}.sbml-branch-page{padding:22px;border:1px solid var(--sbml-border);border-radius:14px;background:#fff}.sbml-database-search{display:grid;gap:6px;margin-bottom:14px;font-weight:800}.sbml-database-search input{max-width:420px;padding:11px 12px;border:1px solid #cbd5e1;border-radius:10px}.sbml-database-table{grid-template-columns:1fr}.sbml-database-table .sbml-database-record{display:grid;grid-template-columns:minmax(160px,.6fr) 1fr auto;gap:16px}.sbml-database-list{grid-template-columns:1fr}.sbml-database-record[hidden]{display:none!important}.sbml-wiki-history{color:var(--sbml-muted);font-size:13px}.sbml-enterprise-connector{display:grid;gap:14px}.sbml-workshop-phases{display:flex;gap:8px;margin-bottom:18px}.sbml-workshop-phases span{padding:8px 13px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:13px;font-weight:800}.sbml-workshop-phases span.is-active{background:var(--sbml-accent-soft);color:var(--sbml-accent)}
@media(max-width:760px){.sbml-gallery-grid,.sbml-gallery-masonry{grid-template-columns:repeat(2,minmax(0,1fr))}.sbml-book-contents ol{columns:1}.sbml-video-shell.sbml-ratio-auto>iframe,.sbml-video-shell.sbml-ratio-auto>video,.sbml-video-shell.sbml-ratio-auto>.sbml-module-embed,.sbml-video-shell.sbml-ratio-auto>.wp-video{min-height:260px}.sbml-file-preview iframe{height:480px}.sbml-database-table .sbml-database-record{grid-template-columns:1fr}}
@media(max-width:480px){.sbml-gallery-grid,.sbml-gallery-masonry{grid-template-columns:1fr}.sbml-gallery-slider{grid-auto-columns:92%}.sbml-file-card{grid-template-columns:38px minmax(0,1fr)}.sbml-file-card>.dashicons:last-child{display:none}}

/* v0.3.2 polished collaborative and live modules */
.sbml-inline-form{display:inline-flex;margin:0}.sbml-live-actions{display:flex;gap:.65rem;flex-wrap:wrap;align-items:center}.sbml-forum-post{border:1px solid #dce5ee;border-radius:16px;padding:1rem;background:#fff}.sbml-forum-post+ .sbml-forum-post{margin-top:1rem}.sbml-forum-post>header,.sbml-forum-reply>header{display:flex;justify-content:space-between;gap:1rem;color:#64748b;font-size:.85rem}.sbml-forum-replies{display:grid;gap:.75rem;margin:1rem 0 0 1.25rem;padding-left:1rem;border-left:3px solid #e2e8f0}.sbml-forum-reply{padding:.8rem;border-radius:12px;background:#f8fafc}.sbml-forum-reply-form{margin-top:.75rem}.sbml-forum-reply-form summary{cursor:pointer;font-weight:700;color:var(--sbml-accent,#174ea6)}.sbml-entry-attachment{margin:.4rem 0}.sbml-entry-attachment a{display:inline-flex;align-items:center;gap:.35rem;padding:.45rem .7rem;border-radius:9px;background:#eef4ff;text-decoration:none}.sbml-module-date{display:inline-flex;padding:.45rem .75rem;border-radius:999px;background:#fff7ed;color:#9a3412}.sbml-branch-path{padding:.65rem .8rem;border-radius:10px;background:#f1f5f9;color:#475569}.sbml-branch-choices{display:flex;gap:.65rem;flex-wrap:wrap}.sbml-branch-restart{margin-top:1rem}.sbml-moderation-entry{display:grid;gap:.55rem;padding:1rem;border:1px solid #dce5ee;border-radius:12px;background:#fff}.sbml-moderation-entry small{color:#64748b}.sbml-moderation-entry select{max-width:220px}
@media(max-width:640px){.sbml-forum-post>header,.sbml-forum-reply>header{display:grid;gap:.2rem}.sbml-forum-replies{margin-left:.25rem;padding-left:.65rem}.sbml-live-actions,.sbml-branch-choices{display:grid}.sbml-live-actions form,.sbml-live-actions button,.sbml-live-actions a,.sbml-branch-choices form,.sbml-branch-choices button{width:100%}}

/* Pro live text chat presentation */
.sbml-chat{display:grid;gap:.8rem}.sbml-chat-status{display:flex;justify-content:space-between;gap:.75rem;flex-wrap:wrap;padding:.7rem .85rem;border-radius:12px;background:#eef4ff;color:#1e3a5f}.sbml-chat-status span{font-size:.85rem}.sbml-chat-messages{display:grid;gap:.55rem;max-height:420px;overflow:auto;padding:.8rem;border:1px solid #dce5ee;border-radius:14px;background:#f8fafc}.sbml-chat-message{padding:.65rem .8rem;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.05)}.sbml-chat-message header{display:flex;justify-content:space-between;gap:1rem;color:#64748b;font-size:.8rem}.sbml-chat-message p{margin:.35rem 0 0;white-space:pre-wrap}.sbml-chat-compose{display:grid;grid-template-columns:1fr auto;gap:.65rem;align-items:end}.sbml-chat-compose label,.sbml-chat-compose textarea{margin:0;width:100%}@media(max-width:640px){.sbml-chat-compose{grid-template-columns:1fr}.sbml-chat-compose button{width:100%}}

/* v0.3.3 wide layout, wrapping and overflow hardening */
:root{
  --sbml-content-max:1760px;
  --sbml-learning-max:1760px;
  --sbml-page-gutter:16px;
}
.sbml-catalogue,.sbml-course-shell,.sbml-portal,.sbml-lesson-player{
  width:min(var(--sbml-content-max),calc(100vw - var(--sbml-page-gutter) - var(--sbml-page-gutter)));
  max-width:none;
  min-width:0;
  position:relative;
  left:50%;
  transform:translateX(-50%);
  margin-right:0;
}
.sbml-lesson-player{width:min(var(--sbml-learning-max),calc(100vw - var(--sbml-page-gutter) - var(--sbml-page-gutter)))}
.sbml-instructor-studio{--sbml-content-max:1760px}
.sbml-catalogue,.sbml-course-shell,.sbml-portal,.sbml-lesson-player,
.sbml-catalogue *,.sbml-course-shell *,.sbml-portal *,.sbml-lesson-player *{min-width:0}
.sbml-catalogue :where(h1,h2,h3,h4,h5,h6,p,a,span,strong,small,label,legend,summary,li,dt,dd,th,td),
.sbml-course-shell :where(h1,h2,h3,h4,h5,h6,p,a,span,strong,small,label,legend,summary,li,dt,dd,th,td),
.sbml-portal :where(h1,h2,h3,h4,h5,h6,p,a,span,strong,small,label,legend,summary,li,dt,dd,th,td),
.sbml-lesson-player :where(h1,h2,h3,h4,h5,h6,p,a,span,strong,small,label,legend,summary,li,dt,dd,th,td){overflow-wrap:break-word;word-break:normal}
.sbml-catalogue :where(img,video,audio,iframe,embed,object,canvas,svg),
.sbml-course-shell :where(img,video,audio,iframe,embed,object,canvas,svg),
.sbml-portal :where(img,video,audio,iframe,embed,object,canvas,svg),
.sbml-lesson-player :where(img,video,audio,iframe,embed,object,canvas,svg){max-width:100%}
.sbml-catalogue :where(input,select,textarea,button),
.sbml-course-shell :where(input,select,textarea,button),
.sbml-portal :where(input,select,textarea,button),
.sbml-lesson-player :where(input,select,textarea,button){max-width:100%;min-width:0}
.sbml-catalogue :where(.button,.sbml-button),
.sbml-course-shell :where(.button,.sbml-button),
.sbml-portal :where(.button,.sbml-button),
.sbml-lesson-player :where(.button,.sbml-button){white-space:normal!important;overflow-wrap:break-word;text-align:center;line-height:1.3}
.sbml-catalogue pre,.sbml-course-shell pre,.sbml-portal pre,.sbml-lesson-player pre{max-width:100%;overflow-x:auto;white-space:pre-wrap;word-break:break-word}
.sbml-catalogue table,.sbml-course-shell table,.sbml-portal table,.sbml-lesson-player table{max-width:100%}
.sbml-table-wrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.sbml-table{min-width:680px}
.sbml-portal-nav{flex-wrap:wrap;overflow:visible}
.sbml-portal-nav a{white-space:normal;flex:0 1 auto}
.sbml-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.sbml-catalogue-filters{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr) auto}
.sbml-course-hero{grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr)}
.sbml-course-layout{grid-template-columns:minmax(0,1fr) minmax(300px,360px);gap:clamp(18px,2vw,32px)}
.sbml-course-summary dl div,.sbml-card-footer,.sbml-resource-card,.sbml-order-card,.sbml-lesson-actions,.sbml-assessment-header,.sbml-assessment-submit,.sbml-attempt-result{flex-wrap:wrap}
.sbml-curriculum li{grid-template-columns:40px minmax(0,1fr) minmax(0,auto)}
.sbml-lesson-player{grid-template-columns:minmax(260px,330px) minmax(0,1fr)}
.sbml-lesson-sidebar nav a{grid-template-columns:30px minmax(0,1fr)}
.sbml-lesson-main{padding:clamp(26px,3vw,52px) clamp(22px,4vw,64px)}
.sbml-assessment-toolbar,.sbml-question-heading,.sbml-question-controls{flex-wrap:wrap}
.sbml-question-progress{min-width:min(220px,100%)}
.sbml-matching label,.sbml-ordering label{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.sbml-module-header{grid-template-columns:48px minmax(0,1fr) minmax(0,auto)}
.sbml-module-state{white-space:normal;max-width:220px;text-align:center}
.sbml-module-body,.sbml-module-content,.sbml-transcript>div,.sbml-wiki-content{max-width:100%;overflow-wrap:break-word}
.sbml-resource-list a,.sbml-file-card{min-width:0}
.sbml-resource-list a>*,.sbml-file-card>*{min-width:0}
.sbml-choice-results>div{grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(44px,auto)}
.sbml-database-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.sbml-database-grid dl div,.sbml-forum-list header,.sbml-forum-post>header,.sbml-forum-reply>header{flex-wrap:wrap}
.sbml-file-preview iframe,.sbml-external-frame iframe,.sbml-module-embed iframe{max-width:100%}
.sbml-book-navigation,.sbml-live-actions,.sbml-branch-choices,.sbml-media-support,.sbml-workshop-phases{flex-wrap:wrap}
.sbml-auth-card{max-width:100%}
.sbml-editor-field,.sbml-editor-field .wp-editor-wrap,.sbml-editor-field .wp-editor-container,.sbml-editor-field .mce-container,.sbml-editor-field iframe{width:100%!important;max-width:100%!important;min-width:0!important}
.sbml-editor-field .mce-toolbar-grp{max-width:100%;overflow-x:auto}
@media(max-width:1180px){
  .sbml-course-layout{grid-template-columns:minmax(0,1fr) minmax(270px,320px)}
  .sbml-lesson-player{grid-template-columns:280px minmax(0,1fr)}
}
@media(max-width:1000px){
  .sbml-lesson-player{grid-template-columns:1fr}
  .sbml-course-layout{grid-template-columns:1fr}
  .sbml-course-sidebar{position:static}
}
@media(max-width:760px){
  :root{--sbml-page-gutter:10px}
  .sbml-portal-header{align-items:flex-start;flex-direction:column}
  .sbml-logout{width:100%;text-align:center}
  .sbml-portal-header>div{width:100%}
  .sbml-catalogue,.sbml-course-shell,.sbml-portal,.sbml-lesson-player{margin-top:14px;margin-bottom:14px}
  .sbml-portal-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .sbml-portal-nav a{display:flex;align-items:center;justify-content:center}
  .sbml-module-header{grid-template-columns:42px minmax(0,1fr)}
  .sbml-module-state{grid-column:2;justify-self:start;max-width:100%}
  .sbml-table{min-width:600px}
}
@media(max-width:520px){
  .sbml-portal-nav{grid-template-columns:1fr}
  .sbml-curriculum li{grid-template-columns:34px minmax(0,1fr)}
  .sbml-choice-results>div{grid-template-columns:1fr}
  .sbml-table{min-width:520px}
}

/* v0.3.4 professional question interactions */
.sbml-numerical-answer{display:flex;align-items:center;gap:10px;max-width:460px}.sbml-numerical-answer input{flex:1;min-width:0}.sbml-numerical-answer span{font-weight:800;color:#475569}.sbml-written-answer{display:grid;gap:7px}.sbml-written-answer textarea{width:100%;min-height:180px}.sbml-word-count{text-align:right;color:#64748b}.sbml-ordering-list{list-style:none;margin:0;padding:0;display:grid;gap:9px}.sbml-ordering-list li{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;align-items:center;padding:13px 15px;border:1px solid #dfe7ef;border-radius:13px;background:#fff;cursor:grab}.sbml-ordering-list li.is-dragging{opacity:.55;border-color:var(--sbml-accent,#2563eb);box-shadow:0 8px 20px rgba(15,23,42,.12)}.sbml-ordering-handle{color:#94a3b8;font-size:18px}.sbml-matching{display:grid;gap:10px}.sbml-matching label{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.7fr);gap:12px;align-items:center;padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.sbml-likert,.sbml-rating{display:flex;gap:8px;flex-wrap:wrap}.sbml-likert label,.sbml-rating label{position:relative}.sbml-likert input,.sbml-rating input{position:absolute;opacity:0;pointer-events:none}.sbml-likert span,.sbml-rating span{display:block;padding:10px 13px;border:1px solid #dfe7ef;border-radius:12px;background:#fff;cursor:pointer}.sbml-likert input:checked+span,.sbml-rating input:checked+span{border-color:var(--sbml-accent,#2563eb);background:#eef4ff;color:var(--sbml-accent,#2563eb);font-weight:800}@media(max-width:620px){.sbml-matching label{grid-template-columns:1fr}.sbml-numerical-answer{align-items:stretch;flex-direction:column}}

/* v0.3.5 professional student dashboard */
.sbml-portal-header{position:relative;overflow:hidden;align-items:center;padding:clamp(24px,3vw,38px);background:linear-gradient(125deg,#08152f 0%,#153d86 58%,color-mix(in srgb,var(--sbml-accent) 76%,#0ea5e9) 100%);box-shadow:0 24px 55px rgba(15,23,42,.18)}
.sbml-portal-header:before,.sbml-portal-header:after{content:"";position:absolute;border-radius:999px;pointer-events:none;background:rgba(255,255,255,.08)}
.sbml-portal-header:before{width:310px;height:310px;right:-120px;top:-210px}.sbml-portal-header:after{width:170px;height:170px;right:160px;bottom:-135px}
.sbml-portal-identity{position:relative;z-index:1;display:flex;align-items:center;gap:18px;min-width:0}.sbml-portal-identity h1{font-size:clamp(28px,3vw,42px);line-height:1.05}.sbml-portal-identity p{max-width:720px;margin:9px 0 0;color:rgba(255,255,255,.78)}
.sbml-portal-avatar,.sbml-portal-header-logo{flex:0 0 auto;display:grid;place-items:center;width:76px;height:76px;border-radius:22px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.24);box-shadow:0 12px 30px rgba(2,6,23,.22);overflow:hidden}.sbml-avatar-image{width:100%;height:100%;object-fit:cover}.sbml-portal-header-logo{object-fit:contain;padding:10px;background:#fff}
.sbml-logout{position:relative;z-index:1;display:inline-flex;align-items:center;gap:8px;white-space:nowrap;background:rgba(255,255,255,.08);font-weight:800}.sbml-logout:hover{background:rgba(255,255,255,.17);color:#fff}
.sbml-portal-nav{padding:7px;gap:6px;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.06)}.sbml-portal-nav a{display:inline-flex;align-items:center;gap:8px;padding:11px 15px}.sbml-portal-nav-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#eef2f7;color:#475569;font-size:13px}.sbml-portal-nav a.is-active .sbml-portal-nav-icon{background:var(--sbml-accent-soft);color:var(--sbml-accent)}
.sbml-dashboard{display:grid;gap:24px}.sbml-dashboard-summary{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:32px;padding:clamp(26px,3vw,38px);border:1px solid #d9e4f2;border-radius:24px;background:linear-gradient(135deg,#fff 0%,#f4f8ff 56%,color-mix(in srgb,var(--sbml-accent-soft) 78%,#fff) 100%);box-shadow:0 12px 36px rgba(15,23,42,.06)}
.sbml-dashboard-summary:after{content:"";position:absolute;width:240px;height:240px;right:-95px;bottom:-150px;border-radius:50%;background:color-mix(in srgb,var(--sbml-accent) 9%,transparent)}.sbml-dashboard-summary-copy{position:relative;z-index:1;min-width:0}.sbml-dashboard-summary h2{margin:5px 0 10px;font-size:clamp(28px,3vw,42px);line-height:1.06}.sbml-dashboard-summary p{max-width:760px;margin:0;color:#5b6b80;font-size:16px;line-height:1.65}.sbml-dashboard-summary-actions{display:flex;align-items:center;gap:17px;flex-wrap:wrap;margin-top:22px}.sbml-text-link{max-width:420px;color:var(--sbml-ink);font-weight:800;text-decoration:none}.sbml-text-link:hover{color:var(--sbml-accent)}
.sbml-dashboard-progress-ring{--ring-size:142px;position:relative;z-index:1;display:grid;place-items:center;width:var(--ring-size);height:var(--ring-size);border-radius:50%;background:conic-gradient(var(--sbml-accent) calc(var(--sbml-dashboard-progress) * 3.6deg),#dfe8f3 0);box-shadow:0 14px 28px rgba(15,23,42,.1)}.sbml-dashboard-progress-ring:before{content:"";position:absolute;inset:11px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 1px #edf1f6}.sbml-dashboard-progress-ring>div{position:relative;z-index:1;display:grid;gap:2px;text-align:center}.sbml-dashboard-progress-ring strong{font-size:31px;line-height:1}.sbml-dashboard-progress-ring span{max-width:80px;color:#64748b;font-size:11px;font-weight:800;line-height:1.25;text-transform:uppercase;letter-spacing:.04em}
.sbml-dashboard-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}.sbml-dashboard-metric{display:flex;align-items:center;gap:14px;min-height:104px;padding:18px;border:1px solid var(--sbml-border);border-radius:18px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.045)}.sbml-dashboard-metric-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:14px;background:#eef4ff;color:#2563eb;font-size:20px;font-weight:900}.sbml-dashboard-metric strong{display:block;font-size:25px;line-height:1.1}.sbml-dashboard-metric div>span{display:block;margin-top:4px;color:#64748b;font-size:13px;font-weight:700}.sbml-dashboard-metric.is-green .sbml-dashboard-metric-icon{background:#ecfdf3;color:#15803d}.sbml-dashboard-metric.is-purple .sbml-dashboard-metric-icon{background:#f3e8ff;color:#7e22ce}.sbml-dashboard-metric.is-orange .sbml-dashboard-metric-icon{background:#fff7ed;color:#c2410c}.sbml-dashboard-metric.is-rose .sbml-dashboard-metric-icon{background:#fff1f2;color:#be123c}.sbml-dashboard-metric.is-gold .sbml-dashboard-metric-icon{background:#fffbeb;color:#a16207}.sbml-dashboard-metric.is-teal .sbml-dashboard-metric-icon{background:#ecfeff;color:#0f766e}
.sbml-dashboard-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(310px,.7fr);gap:24px;align-items:start}.sbml-dashboard-main,.sbml-dashboard-sidebar{display:grid;gap:24px;min-width:0}.sbml-dashboard-courses{margin:0}.sbml-dashboard-course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.sbml-dashboard-course-card{overflow:hidden;min-width:0;border:1px solid var(--sbml-border);border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.05);transition:transform .18s ease,box-shadow .18s ease}.sbml-dashboard-course-card:hover{transform:translateY(-2px);box-shadow:0 16px 35px rgba(15,23,42,.09)}.sbml-dashboard-course-media{display:block;position:relative;aspect-ratio:16/7;overflow:hidden;background:linear-gradient(135deg,#172554,#2563eb)}.sbml-dashboard-course-media img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}.sbml-dashboard-course-card:hover .sbml-dashboard-course-media img{transform:scale(1.025)}.sbml-dashboard-course-media.is-placeholder{display:grid;place-items:center;color:rgba(255,255,255,.85);font-size:38px;text-decoration:none}.sbml-dashboard-course-body{padding:19px}.sbml-dashboard-course-top,.sbml-dashboard-course-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.sbml-dashboard-course-top>strong{color:var(--sbml-accent);font-size:14px}.sbml-dashboard-course-card h3{margin:13px 0 7px;font-size:20px;line-height:1.25}.sbml-dashboard-course-card h3 a{color:var(--sbml-ink);text-decoration:none}.sbml-dashboard-next{display:grid;gap:2px;min-height:40px;margin:0 0 14px;color:#475569;font-size:13px}.sbml-dashboard-next span{color:#94a3b8;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.sbml-dashboard-course-card .sbml-progress{margin-bottom:12px}.sbml-dashboard-course-footer small{color:#7b8798}.sbml-course-continue{color:var(--sbml-accent);font-weight:900;text-decoration:none;white-space:nowrap}.sbml-dashboard-empty>span{display:block;margin-bottom:10px;color:var(--sbml-accent);font-size:42px}
.sbml-dashboard-actions,.sbml-dashboard-pro-widget,.sbml-dashboard-organisation{margin:0;padding:22px}.sbml-dashboard-actions .sbml-section-heading,.sbml-dashboard-pro-widget .sbml-section-heading,.sbml-dashboard-organisation .sbml-section-heading{align-items:center;margin-bottom:14px}.sbml-dashboard-actions h2,.sbml-dashboard-pro-widget h2,.sbml-dashboard-organisation h2{font-size:23px}.sbml-dashboard-actions nav,.sbml-dashboard-task-list,.sbml-dashboard-org-list{display:grid}.sbml-dashboard-actions nav>a,.sbml-dashboard-task-list>a,.sbml-dashboard-org-list>a{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--sbml-border);color:var(--sbml-ink);text-decoration:none}.sbml-dashboard-actions nav>a:last-child,.sbml-dashboard-task-list>a:last-child,.sbml-dashboard-org-list>a:last-child{border-bottom:0}.sbml-dashboard-actions nav>a>span,.sbml-dashboard-task-icon,.sbml-dashboard-org-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--sbml-accent-soft);color:var(--sbml-accent);font-weight:900}.sbml-dashboard-actions nav>a div,.sbml-dashboard-task-list>a div,.sbml-dashboard-org-list>a div{display:grid;gap:2px;min-width:0}.sbml-dashboard-actions nav>a strong,.sbml-dashboard-task-list>a strong,.sbml-dashboard-org-list>a strong{font-size:14px}.sbml-dashboard-actions nav>a small,.sbml-dashboard-task-list>a small,.sbml-dashboard-org-list>a small{color:#7b8798}.sbml-dashboard-actions nav>a>b,.sbml-dashboard-org-list>a>b{color:#94a3b8;font-size:23px}.sbml-dashboard-task-list time{max-width:90px;color:#64748b;font-size:11px;text-align:right}.sbml-dashboard-widget-empty{display:flex;align-items:center;gap:13px;padding:16px;border-radius:14px;background:#f0fdf4}.sbml-dashboard-widget-empty>span{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#dcfce7;color:#15803d;font-weight:900}.sbml-dashboard-widget-empty p{margin:3px 0 0;color:#64748b;font-size:13px}
.sbml-dashboard-achievement{position:relative;overflow:hidden;display:grid;grid-template-columns:62px minmax(0,1fr);gap:16px;padding:24px;border-radius:20px;background:linear-gradient(135deg,#fff7d6,#fff 75%);border:1px solid #f5d679;box-shadow:0 12px 30px rgba(161,98,7,.08)}.sbml-dashboard-achievement:after{content:"";position:absolute;width:125px;height:125px;right:-50px;bottom:-70px;border-radius:50%;background:rgba(245,158,11,.12)}.sbml-dashboard-achievement-icon{position:relative;z-index:1;display:grid;place-items:center;width:62px;height:62px;border-radius:19px;background:#fef3c7;color:#a16207;font-size:28px}.sbml-dashboard-achievement>div{position:relative;z-index:1}.sbml-dashboard-achievement h3{margin:4px 0 5px;font-size:19px}.sbml-dashboard-achievement p{margin:0 0 10px;color:#786437;font-size:13px}.sbml-dashboard-achievement a{color:#854d0e;font-weight:900;text-decoration:none}
.sbml-dashboard-org-mark{background:#ecfeff;color:#0f766e}.sbml-dashboard-organisation .sbml-section-heading>a,.sbml-dashboard-pro-widget .sbml-section-heading>a{font-size:13px}
.sbml-dashboard+.sbml-panel{margin-top:0}.sbml-dashboard~.sbml-panel{margin-top:0}.sbml-dashboard .sbml-panel:last-child{margin-bottom:0}.sbml-dashboard>.sbml-panel{margin-bottom:0}.sbml-dashboard .sbml-activity-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}.sbml-dashboard .sbml-activity-list li:nth-last-child(-n+2){border-bottom:0}
@media(max-width:1100px){.sbml-dashboard-layout{grid-template-columns:1fr}.sbml-dashboard-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.sbml-dashboard-achievement{min-height:100%}.sbml-dashboard .sbml-activity-list{grid-template-columns:1fr}.sbml-dashboard .sbml-activity-list li:nth-last-child(2){border-bottom:1px solid var(--sbml-border)}}
@media(max-width:760px){.sbml-portal-identity{align-items:flex-start}.sbml-portal-avatar,.sbml-portal-header-logo{width:62px;height:62px;border-radius:18px}.sbml-dashboard-summary{grid-template-columns:1fr}.sbml-dashboard-progress-ring{--ring-size:126px;justify-self:start}.sbml-dashboard-course-grid{grid-template-columns:1fr}.sbml-dashboard-sidebar{grid-template-columns:1fr}.sbml-dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.sbml-portal-identity{display:grid}.sbml-portal-nav a{justify-content:flex-start}.sbml-dashboard-summary-actions{align-items:stretch;flex-direction:column}.sbml-dashboard-summary-actions .sbml-button{width:100%}.sbml-dashboard-metrics{grid-template-columns:1fr 1fr}.sbml-dashboard-metric{min-height:92px;padding:14px}.sbml-dashboard-metric-icon{flex-basis:40px;width:40px;height:40px}.sbml-dashboard-course-footer{align-items:flex-start;flex-direction:column}.sbml-dashboard-actions,.sbml-dashboard-pro-widget,.sbml-dashboard-organisation{padding:18px}.sbml-dashboard-task-list>a{grid-template-columns:38px minmax(0,1fr)}.sbml-dashboard-task-list time{grid-column:2;text-align:left}.sbml-dashboard-achievement{grid-template-columns:50px minmax(0,1fr);padding:20px}.sbml-dashboard-achievement-icon{width:50px;height:50px;border-radius:15px}.sbml-dashboard-progress-ring{justify-self:center}}

/* v0.4.0 course lifecycle and commerce */
.sbml-course-card.is-unavailable{opacity:.82}.sbml-course-card.is-unavailable:hover{transform:none}.sbml-course-card.is-unavailable .sbml-card-media img{filter:grayscale(.25)}

.sbml-commerce-settings{display:grid;gap:14px;margin-top:22px}.sbml-commerce-paid-fields,.sbml-subscription-fields{display:grid;gap:13px;padding:16px;border:1px solid #dbe3ef;border-radius:14px;background:#f8fafc}.sbml-commerce-settings [hidden]{display:none!important}.sbml-linked-product{padding:10px 12px;border-radius:10px;background:#eef6ff;overflow-wrap:break-word}.sbml-course-lifecycle{margin-top:20px;border:1px solid #fed7d7;background:#fffafa}.sbml-lifecycle-stats{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 16px}.sbml-lifecycle-stats span{padding:9px 11px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;overflow-wrap:break-word}.sbml-lifecycle-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.sbml-inline-lifecycle-form{margin:0}.sbml-danger-button{border-color:#dc2626!important;color:#b91c1c!important;background:#fff!important}.sbml-danger-button:hover{background:#fef2f2!important}.sbml-status-pill.is-archived{background:#f1f5f9;color:#475569}.sbml-builder-card.is-archived{opacity:.88;border-style:dashed}.sbml-builder-card .sbml-enrolment-lock{display:inline-flex;gap:5px;align-items:center;font-size:.82rem;color:#475569}.sbml-commerce-settings small{display:block;color:#64748b;margin-top:4px}.sbml-commerce-settings input,.sbml-commerce-settings select{max-width:100%}
@media(max-width:640px){.sbml-lifecycle-actions,.sbml-lifecycle-actions form,.sbml-lifecycle-actions button{width:100%}.sbml-lifecycle-stats{display:grid;grid-template-columns:1fr 1fr}.sbml-lifecycle-stats span{border-radius:12px}}


/* v0.4.1 Instructor Studio containment safety.
   The paid Studio supplies its own app shell. This shared fallback prevents the
   generic full-bleed portal rule from shifting Studio outside any theme wrapper. */
body.sbml-instructor-studio-page .sbml-instructor-studio {
  position:static!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  float:none!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:30px auto!important;
  overflow:visible!important;
}
body.sbml-instructor-studio-page .sbml-instructor-studio .sbml-portal-nav {
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr))!important;
  overflow:visible!important;
}
body.sbml-instructor-studio-page .sbml-instructor-studio .sbml-portal-nav a {
  min-width:0!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
}

/* v0.6.2 professional shortcode spacing and visual consistency */
:root{--sbml-page-gutter:clamp(12px,2vw,28px);--sbml-content-wide:1760px;--sbml-content-reading:1760px;--sbml-space-1:8px;--sbml-space-2:12px;--sbml-space-3:16px;--sbml-space-4:22px;--sbml-space-5:28px;--sbml-space-6:36px;--sbml-space-7:48px}
.sbml-catalogue,.sbml-course-shell,.sbml-portal{width:min(calc(100% - (var(--sbml-page-gutter) * 2)),var(--sbml-content-wide));max-width:var(--sbml-content-wide);margin:clamp(18px,3vw,42px) auto!important}
.sbml-lesson-player{width:min(calc(100% - (var(--sbml-page-gutter) * 2)),1760px);max-width:1760px;margin:clamp(14px,2vw,30px) auto!important}
.sbml-assessment-card,.sbml-assignments,.sbml-certificate-verification{max-width:var(--sbml-content-reading);margin:var(--sbml-space-5) auto}
.sbml-panel{padding:clamp(22px,2.2vw,34px);border-color:#dbe5ef;box-shadow:0 10px 30px rgba(15,23,42,.045);margin-bottom:var(--sbml-space-5)}
.sbml-panel:last-child{margin-bottom:0}.sbml-panel>h2:first-child,.sbml-panel>h3:first-child{margin-top:0}.sbml-panel>p:last-child,.sbml-panel>ul:last-child,.sbml-panel>ol:last-child{margin-bottom:0}
.sbml-section-heading{align-items:flex-start;margin-bottom:var(--sbml-space-4)}.sbml-section-heading h2,.sbml-section-heading h3{margin-top:4px;margin-bottom:0}.sbml-section-heading p{margin:7px 0 0;color:var(--sbml-muted)}
.sbml-grid{gap:clamp(18px,2vw,28px)}.sbml-course-grid{margin-top:0}.sbml-card-body{padding:clamp(20px,2vw,26px)}.sbml-card-footer{margin-top:18px;padding-top:17px}
.sbml-catalogue-hero{padding:clamp(30px,4vw,54px);margin-bottom:var(--sbml-space-4)}.sbml-catalogue-filters{gap:14px;padding:18px;margin-bottom:var(--sbml-space-5)}
.sbml-course-hero-copy{padding:clamp(34px,4vw,58px)}.sbml-course-layout{gap:clamp(22px,2.4vw,36px);margin-top:var(--sbml-space-5)}.sbml-course-main{display:block}.sbml-course-main>.sbml-panel+ .sbml-panel{margin-top:0}.sbml-course-sidebar .sbml-panel{padding:24px}
.sbml-curriculum li{padding:17px 19px}.sbml-outcomes{margin-top:6px}.sbml-outcomes li{line-height:1.55}
.sbml-portal-header{margin-bottom:var(--sbml-space-4)}.sbml-portal-nav{margin-bottom:var(--sbml-space-5);padding:8px}.sbml-portal-content{min-width:0}.sbml-portal-content>.sbml-section-heading:first-child{margin-top:0}.sbml-portal-content>.sbml-grid+.sbml-panel,.sbml-portal-content>.sbml-panel+.sbml-panel,.sbml-portal-content>.sbml-student-stats+.sbml-panel{margin-top:var(--sbml-space-5)}
.sbml-student-stats{gap:18px;margin-bottom:var(--sbml-space-5)}.sbml-student-stats article{padding:22px}
.sbml-form{gap:18px}.sbml-form label{gap:8px}.sbml-form input:not([type=checkbox]):not([type=radio]),.sbml-form select,.sbml-form textarea{min-height:46px;padding:12px 14px;border-color:#cbd5e1;box-shadow:0 1px 2px rgba(15,23,42,.025)}.sbml-form textarea{min-height:120px;line-height:1.55}.sbml-form input:focus,.sbml-form select:focus,.sbml-form textarea:focus{outline:0;border-color:var(--sbml-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--sbml-accent) 13%,transparent)}
.sbml-auth-shell{padding:clamp(18px,4vw,48px)}.sbml-auth-card{padding:clamp(26px,4vw,44px)}.sbml-auth-card>p{line-height:1.65}
.sbml-assessment-card{padding:clamp(22px,2.8vw,36px)}.sbml-assessment-header{margin-bottom:6px}.sbml-assessment-description,.sbml-assessment-instructions{margin:var(--sbml-space-4) 0}.sbml-assessment-meta{margin:var(--sbml-space-3) 0 var(--sbml-space-4)}.sbml-question-palette{padding:14px 0 20px}.sbml-question{padding:clamp(20px,2vw,28px);margin:18px 0}.sbml-question-input{margin:22px 0}.sbml-choice{padding:15px 16px}.sbml-question-controls{margin-top:22px}.sbml-assessment-submit{padding:20px;margin-top:22px}
.sbml-assignments{display:grid;gap:var(--sbml-space-4)}.sbml-assignments>h3{margin:0}.sbml-assignment-card{margin:0!important}.sbml-assignment-card .sbml-form{margin-top:20px;padding-top:20px;border-top:1px solid var(--sbml-border)}
.sbml-table-wrap{margin-top:14px;box-shadow:0 5px 18px rgba(15,23,42,.025)}.sbml-table th,.sbml-table td{padding:15px 16px;vertical-align:top}.sbml-table tbody tr:last-child td{border-bottom:0}
.sbml-order-list{gap:14px}.sbml-order-card{padding:18px}.sbml-empty-state{padding:clamp(32px,5vw,58px);line-height:1.6}.sbml-empty-state p{max-width:620px;margin:8px auto 0;color:var(--sbml-muted)}
.sbml-button,.sbml-portal-nav a,.sbml-card,.sbml-panel,.sbml-question,.sbml-order-card{transition:box-shadow .18s ease,border-color .18s ease,transform .18s ease}
.sbml-certificate-verification{text-align:center}.sbml-certificate-verification code{display:inline-block;margin-top:8px;padding:8px 12px;border-radius:9px;background:#f8fafc;border:1px solid var(--sbml-border);overflow-wrap:break-word}
@media(max-width:900px){.sbml-catalogue,.sbml-course-shell,.sbml-portal,.sbml-lesson-player{width:min(calc(100% - 20px),var(--sbml-content-wide))}.sbml-course-layout{grid-template-columns:1fr}.sbml-course-sidebar{position:static;display:block}.sbml-course-sidebar .sbml-panel{margin-top:0}.sbml-course-hero{grid-template-columns:1fr}.sbml-course-cover{min-height:280px;max-height:420px}.sbml-lesson-player{grid-template-columns:1fr}.sbml-lesson-sidebar{position:static}}
@media(max-width:600px){.sbml-panel,.sbml-assessment-card{padding:20px}.sbml-catalogue,.sbml-course-shell,.sbml-portal,.sbml-lesson-player{width:calc(100% - 16px);margin:12px auto!important}.sbml-catalogue-hero{border-radius:20px}.sbml-course-hero{border-radius:20px}.sbml-portal-header{border-radius:18px}.sbml-card-body{padding:19px}.sbml-table th,.sbml-table td{padding:12px}.sbml-assessment-submit,.sbml-question-controls{gap:10px}.sbml-assessment-submit .sbml-button,.sbml-question-controls .button{width:100%}}

/* v0.6.3 automatic theme-title suppression on Learning screens.
   This is deliberately scoped to Learning requests so normal WordPress pages
   and posts elsewhere on the site keep their theme titles. */
body.sbml-hide-theme-page-title .entry-header > .entry-title,
body.sbml-hide-theme-page-title .page-header > .page-title,
body.sbml-hide-theme-page-title .page-header > .archive-title,
body.sbml-hide-theme-page-title .wp-block-post-title,
body.sbml-hide-theme-page-title .wp-block-query-title,
body.sbml-hide-theme-page-title .elementor-page-title,
body.sbml-hide-theme-page-title .elementor-widget-theme-post-title,
body.sbml-hide-theme-page-title .ast-archive-title,
body.sbml-hide-theme-page-title .ast-single-post-order > .entry-title,
body.sbml-hide-theme-page-title .site-content > .page-header .page-title,
body.sbml-hide-theme-page-title main > .page-header .page-title,
body.sbml-hide-theme-page-title .content-area > .page-header .page-title,
body.sbml-hide-theme-page-title .page-title-bar .page-title,
body.sbml-hide-theme-page-title .page-title-wrap .page-title,
body.sbml-hide-theme-page-title .titlebar .title,
body.sbml-hide-theme-page-title .site-main > article > .entry-header > h1,
body.sbml-hide-theme-page-title .site-main > article > header.entry-header > h1 {
  display:none!important;
}

/* Remove the empty title shell on modern browsers while leaving any unrelated
   theme header content alone. */
@supports selector(.entry-header:has(> .entry-title)) {
  body.sbml-hide-theme-page-title .entry-header:has(> .entry-title),
  body.sbml-hide-theme-page-title .page-header:has(> .page-title),
  body.sbml-hide-theme-page-title .page-header:has(> .archive-title),
  body.sbml-hide-theme-page-title .page-title-bar:has(.page-title),
  body.sbml-hide-theme-page-title .page-title-wrap:has(.page-title),
  body.sbml-hide-theme-page-title .titlebar:has(.title) {
    display:none!important;
    margin:0!important;
    padding:0!important;
    min-height:0!important;
  }
}


/* v0.6.4 theme-title hardening. The PHP the_title filter suppresses the queried
   Learning object's title at source; these selectors remove theme wrappers that
   otherwise keep blank vertical space on course/lesson detail screens. */
body.sbml-hide-theme-page-title .entry-header:empty,
body.sbml-hide-theme-page-title .page-header:empty,
body.sbml-hide-theme-page-title .post-header:empty,
body.sbml-hide-theme-page-title .single-header:empty,
body.sbml-hide-theme-page-title .hero-title:empty,
body.sbml-hide-theme-page-title .page-title-area:empty,
body.sbml-hide-theme-page-title .page-header-title:empty,
body.sbml-hide-theme-page-title .title-area:empty,
body.sbml-hide-theme-page-title .entry-title:empty,
body.sbml-hide-theme-page-title .page-title:empty {
  display:none!important;
  margin:0!important;
  padding:0!important;
  min-height:0!important;
}


/* v0.6.4 course assignment overview: course detail is read-only; submissions live in lessons/Assignments. */
.sbml-course-assignment-overview{margin-top:var(--sbml-space-5,28px)}
.sbml-assignment-overview-list{display:grid;gap:12px}
.sbml-assignment-overview-item{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border:1px solid var(--sbml-border,#e2e8f0);border-radius:14px;background:#f8fafc;min-width:0}
.sbml-assignment-overview-item>div{min-width:0}.sbml-assignment-overview-item strong{display:block;overflow-wrap:break-word}.sbml-assignment-overview-item .sbml-meta-chips{margin-top:8px}.sbml-assignment-overview-item .button{flex:0 0 auto}
@media(max-width:700px){.sbml-assignment-overview-item{align-items:flex-start;flex-direction:column}.sbml-assignment-overview-item .button{width:100%;text-align:center}}

/* v0.7.0 Learner Experience ------------------------------------------------ */
.sbml-preview-banner{
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  max-width:1760px;margin:0 auto 18px;padding:13px 16px;border:1px solid #93c5fd;
  border-radius:14px;background:#eff6ff;color:#1e3a8a;box-shadow:0 8px 24px rgba(37,99,235,.08)
}
.sbml-preview-banner>div{display:flex;gap:10px;align-items:center;min-width:0}.sbml-preview-banner>div>div{display:grid;gap:2px}
.sbml-preview-banner strong{font-size:14px}.sbml-preview-banner span{overflow-wrap:break-word}.sbml-preview-banner .dashicons{color:#2563eb}
.sbml-preview-progress-note{display:flex;gap:8px;align-items:flex-start;margin:14px 0;padding:11px 13px;border-radius:12px;background:rgba(255,255,255,.72);font-size:14px}
.sbml-preview-only-badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:12px;font-weight:700}
.sbml-preview-assessment-note{margin:14px 0}.sbml-assessment-preview fieldset{border:0;margin:0;padding:0}.sbml-assessment-preview .sbml-question{opacity:.94}
.sbml-course-complete-celebration{display:flex;align-items:center;gap:12px;margin-top:16px;padding:14px;border:1px solid #bbf7d0;border-radius:14px;background:#f0fdf4;color:#166534}
.sbml-course-complete-celebration>span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#dcfce7;font-size:20px}.sbml-course-complete-celebration p{margin:2px 0 0}
.sbml-lesson-nav-toggle{display:none;align-items:center;justify-content:center;gap:8px;width:100%;margin:0 0 12px;padding:11px 14px;border:1px solid #dbe5ef;border-radius:12px;background:#fff;font-weight:700;cursor:pointer}
.sbml-lesson-module-progress{display:grid;gap:7px;margin-top:14px;padding:12px 14px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.sbml-lesson-module-progress>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:13px}
.sbml-learning-module{scroll-margin-top:20px}.sbml-learning-module .sbml-module-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sbml-next-module-link{margin-left:auto;font-weight:700;text-decoration:none}.sbml-next-module-link:hover{text-decoration:underline}
.sbml-curriculum li{position:relative}.sbml-curriculum li:not(.is-complete) .sbml-curriculum-index{transition:transform .18s ease}.sbml-curriculum li:hover .sbml-curriculum-index{transform:translateY(-1px)}
.sbml-student-preview-mode .sbml-learning-module form,.sbml-student-preview-mode .sbml-assessment form{position:relative;opacity:.78}
.sbml-student-preview-mode .sbml-learning-module form::after,.sbml-student-preview-mode .sbml-assessment form::after{content:"Preview only";position:absolute;inset:0;display:grid;place-items:center;background:rgba(248,250,252,.54);color:#334155;font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;pointer-events:none}
@media(max-width:900px){
  .sbml-lesson-nav-toggle{display:flex}
  .sbml-lesson-player{display:block!important}
  .sbml-lesson-sidebar{display:none!important;position:relative!important;top:auto!important;width:100%!important;max-height:none!important;margin-bottom:14px!important}
  .sbml-lesson-sidebar.is-mobile-open{display:block!important}
  .sbml-lesson-main{width:100%!important;min-width:0!important}
  .sbml-preview-banner{margin-inline:10px}
}
@media(max-width:560px){
  .sbml-preview-banner{align-items:stretch}.sbml-preview-banner .button{width:100%;text-align:center}
  .sbml-learning-module .sbml-module-footer{align-items:stretch}.sbml-next-module-link{margin-left:0}
}

/* v0.9.0 Learning Player 2.0 */
.sbml-lesson-nav-search{position:relative;display:block;margin:16px 0 12px}.sbml-lesson-nav-search .dashicons{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#64748b;pointer-events:none}.sbml-lesson-nav-search input{width:100%;min-height:42px;padding:9px 12px 9px 38px;border:1px solid #dbe5ef;border-radius:12px;background:#fff;color:#0f172a}.sbml-lesson-nav-search input:focus{outline:0;border-color:var(--sbml-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--sbml-accent) 12%,transparent)}
.sbml-player-tools{display:grid;gap:12px;margin:0 0 22px;padding:14px;border:1px solid #dbe5ef;border-radius:16px;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 8px 24px rgba(15,23,42,.04)}.sbml-player-tool-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.sbml-player-tool-actions form{margin:0}.sbml-player-tool-actions .button{display:inline-flex;gap:6px;align-items:center;justify-content:center;min-height:40px;white-space:normal}.sbml-player-tool-actions .button.is-bookmarked{background:#fff7ed;border-color:#fed7aa;color:#9a3412}.sbml-learning-tool-notice{padding:10px 12px;border-radius:10px;background:#ecfdf5;color:#166534;font-weight:700}.sbml-lesson-note{border-top:1px solid #e2e8f0;padding-top:12px}.sbml-lesson-note summary{display:flex;gap:10px;align-items:center;cursor:pointer;list-style:none}.sbml-lesson-note summary::-webkit-details-marker{display:none}.sbml-lesson-note summary>span:last-child{display:grid}.sbml-lesson-note summary small{color:#64748b;font-weight:400}.sbml-lesson-note form{margin-top:12px}.sbml-lesson-note textarea{width:100%;min-height:120px;padding:12px 13px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;resize:vertical}.sbml-note-actions{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:10px;flex-wrap:wrap}.sbml-note-actions small{color:#64748b}
.sbml-saved-learning-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:18px}.sbml-saved-learning-card{display:flex;flex-direction:column;gap:12px;padding:20px;border:1px solid #dbe5ef;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.05)}.sbml-saved-learning-card-top{display:flex;justify-content:space-between;gap:12px;align-items:center}.sbml-saved-learning-card h3{margin:0}.sbml-saved-learning-card blockquote{margin:0;padding:12px 14px;border-left:3px solid var(--sbml-accent);background:#f8fafc;color:#475569;border-radius:0 10px 10px 0}.sbml-saved-learning-card .button{margin-top:auto;align-self:flex-start}
body.sbml-focus-mode{background:#f8fafc!important}body.sbml-focus-mode .site-header,body.sbml-focus-mode .site-footer,body.sbml-focus-mode #masthead,body.sbml-focus-mode #colophon,body.sbml-focus-mode [data-elementor-type="header"],body.sbml-focus-mode [data-elementor-type="footer"]{display:none!important}body.sbml-focus-mode .sbml-lesson-player{max-width:1600px;margin:0 auto!important;min-height:100vh}body.sbml-focus-mode .sbml-lesson-main{padding-top:24px!important}.sbml-focus-toggle[aria-pressed=true]{background:var(--sbml-accent)!important;border-color:var(--sbml-accent)!important;color:#fff!important}
@media(max-width:640px){.sbml-player-tool-actions{display:grid;grid-template-columns:1fr}.sbml-player-tool-actions .button,.sbml-player-tool-actions form,.sbml-player-tool-actions form .button{width:100%}.sbml-note-actions{align-items:stretch}.sbml-note-actions .button{width:100%}}

/* v0.9.2 shared layout integrity hardening */
.sbml-catalogue :where(h1,h2,h3,h4,h5,h6,p,a,span,strong,small,label,legend,summary,li,dt,dd,th,td),
.sbml-course-shell :where(h1,h2,h3,h4,h5,h6,p,a,span,strong,small,label,legend,summary,li,dt,dd,th,td),
.sbml-portal :where(h1,h2,h3,h4,h5,h6,p,a,span,strong,small,label,legend,summary,li,dt,dd,th,td),
.sbml-lesson-player :where(h1,h2,h3,h4,h5,h6,p,a,span,strong,small,label,legend,summary,li,dt,dd,th,td){overflow-wrap:break-word!important;word-break:normal!important}

.sbml-catalogue :where(.button,.sbml-button),
.sbml-course-shell :where(.button,.sbml-button),
.sbml-portal :where(.button,.sbml-button),
.sbml-lesson-player :where(.button,.sbml-button){overflow-wrap:normal!important;word-break:normal!important;flex-shrink:0}

.sbml-portal-nav a{overflow-wrap:break-word!important;word-break:normal!important}

/* Text/copy portions of shared flex layouts must grow instead of collapsing to min-content. */
.sbml-portal-identity>div,
.sbml-dashboard-metric>div,
.sbml-dashboard-widget-empty>div,
.sbml-dashboard-summary-copy,
.sbml-card-body,
.sbml-course-hero-copy,
.sbml-module-body,
.sbml-module-content,
.sbml-assignment-overview-item>div,
.sbml-preview-banner>div{min-width:0;max-width:100%}

.sbml-dashboard-metric>div,
.sbml-dashboard-widget-empty>div,
.sbml-assignment-overview-item>div{flex:1 1 auto}

/* Avoid theme-level inline/min-content overrides on the main application containers. */
.sbml-catalogue,.sbml-course-shell,.sbml-portal,.sbml-lesson-player,
.sbml-catalogue>*,.sbml-course-shell>*,.sbml-portal>*,.sbml-lesson-player>*{min-inline-size:0;max-inline-size:100%}

@media(max-width:700px){
  .sbml-catalogue :where(.button,.sbml-button),
  .sbml-course-shell :where(.button,.sbml-button),
  .sbml-portal :where(.button,.sbml-button),
  .sbml-lesson-player :where(.button,.sbml-button){min-inline-size:0;white-space:normal!important}
}



/* v0.9.3 Learning Player layout + contrast correction ----------------------
   The player is an application surface and must not inherit theme colour or
   shrink-to-content rules. Keep the navigation column stable while the lesson
   surface consumes all remaining width. */
.sbml-lesson-player{
  display:grid!important;
  grid-template-columns:minmax(280px,330px) minmax(0,1fr)!important;
  align-items:stretch!important;
  width:min(1760px,calc(100vw - (var(--sbml-page-gutter,16px) * 2)))!important;
  max-width:1760px!important;
  min-width:0!important;
}
.sbml-lesson-sidebar{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
}
.sbml-lesson-main{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  justify-self:stretch!important;
  align-self:stretch!important;
  color:var(--sbml-ink,#0f172a)!important;
  background:#fff!important;
}
.sbml-lesson-main>header,
.sbml-lesson-main>.sbml-player-tools,
.sbml-lesson-main>.sbml-module-stack,
.sbml-lesson-main>.sbml-lesson-content,
.sbml-lesson-main>.sbml-lesson-assessment,
.sbml-lesson-main>.sbml-assignments,
.sbml-lesson-main>.sbml-lesson-actions{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
.sbml-lesson-main>header h1{
  color:var(--sbml-ink,#0f172a)!important;
}
.sbml-lesson-lead{
  max-width:900px;
  margin:0 0 18px;
  color:#475569!important;
  font-size:19px;
  line-height:1.65;
}
.sbml-lesson-main .sbml-meta-chips{
  width:100%;
}
.sbml-lesson-main .sbml-meta-chips span{
  color:#334155!important;
  background:#f8fafc!important;
  border-color:#e2e8f0!important;
}
.sbml-player-tools,
.sbml-lesson-module-progress,
.sbml-module-stack,
.sbml-learning-module{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
.sbml-learning-module{
  display:block!important;
}
.sbml-module-header{
  width:100%!important;
  min-width:0!important;
  grid-template-columns:48px minmax(180px,1fr) auto!important;
}
.sbml-module-header>div:nth-child(2){
  min-width:0!important;
}
.sbml-module-header h2{
  color:var(--sbml-ink,#0f172a)!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
}
.sbml-module-body,
.sbml-module-content,
.sbml-lesson-content{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  color:var(--sbml-ink,#0f172a)!important;
}
.sbml-module-body :where(h1,h2,h3,h4,h5,h6),
.sbml-module-content :where(h1,h2,h3,h4,h5,h6),
.sbml-lesson-content :where(h1,h2,h3,h4,h5,h6){
  color:var(--sbml-ink,#0f172a)!important;
}
.sbml-module-body :where(p,li,dt,dd,blockquote),
.sbml-module-content :where(p,li,dt,dd,blockquote),
.sbml-lesson-content :where(p,li,dt,dd,blockquote){
  color:#334155!important;
}
.sbml-module-body a,
.sbml-module-content a,
.sbml-lesson-content a{
  color:var(--sbml-accent,#2563eb)!important;
}

/* A theme can make <main>, article or section inline/flex-sized. Neutralise
   those rules inside the player without changing the host site's layout. */
.sbml-lesson-player :where(main,article,section,header,footer,nav,aside,div){
  box-sizing:border-box;
}

@media(max-width:1000px){
  .sbml-lesson-player{grid-template-columns:1fr!important}
  .sbml-lesson-main{width:100%!important;max-width:none!important}
}
@media(max-width:900px){
  .sbml-lesson-player{display:block!important}
  .sbml-lesson-main{width:100%!important;max-width:none!important}
  .sbml-module-header{grid-template-columns:48px minmax(0,1fr) auto!important}
}
@media(max-width:700px){
  .sbml-module-header{grid-template-columns:42px minmax(0,1fr)!important}
  .sbml-module-state{grid-column:2;justify-self:start!important}
  .sbml-lesson-lead{font-size:17px}
}

/* Keep explicit grid placement so a host theme cannot hide the navigation and
   cause the lesson <main> to auto-place into the narrow navigation column. */
@media(min-width:1001px){
  .sbml-lesson-sidebar{display:block!important;grid-column:1!important;grid-row:1!important}
  .sbml-lesson-main{grid-column:2!important;grid-row:1!important}
  .sbml-lesson-nav-toggle{display:none!important}
}
@media(min-width:901px) and (max-width:1000px){
  .sbml-lesson-player{display:grid!important;grid-template-columns:1fr!important}
  .sbml-lesson-sidebar{display:block!important;grid-column:1!important;grid-row:auto!important;width:100%!important}
  .sbml-lesson-main{grid-column:1!important;grid-row:auto!important;width:100%!important}
  .sbml-lesson-nav-toggle{display:none!important}
}

/* v0.9.4: published media placeholders must remain useful and visually intentional. */
.sbml-video-shell>.sbml-video-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:18px;padding:28px;text-align:left;background:linear-gradient(135deg,#0f172a,#1e293b);color:#fff;z-index:1}
.sbml-video-placeholder-icon{display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;border:1px solid rgba(255,255,255,.24);border-radius:50%;background:rgba(255,255,255,.1);font-size:24px;line-height:1}
.sbml-video-placeholder strong{display:block;margin:0 0 6px;color:#fff;font-size:20px;font-weight:900}
.sbml-video-placeholder p{margin:0;color:#cbd5e1;line-height:1.55}
@media(max-width:600px){.sbml-video-shell>.sbml-video-placeholder{gap:12px;padding:20px}.sbml-video-placeholder-icon{flex-basis:46px;width:46px;height:46px;font-size:20px}.sbml-video-placeholder strong{font-size:17px}}

/* v0.10.1 — v1 quality gate: accessibility and responsive integrity */
.sbml-skip-link{
  position:fixed!important;left:16px;top:12px;z-index:100000;
  transform:translateY(-180%);padding:10px 14px;border-radius:10px;
  background:#0f172a;color:#fff!important;font-weight:800;text-decoration:none;
  box-shadow:0 8px 24px rgba(15,23,42,.25);transition:transform .15s ease;
}
.sbml-skip-link:focus{transform:translateY(0);outline:3px solid #fbbf24;outline-offset:2px}
.sbml-portal :where(a,button,input,select,textarea,[tabindex]):focus-visible,
.sbml-lesson-player :where(a,button,input,select,textarea,[tabindex]):focus-visible{
  outline:3px solid var(--sbml-accent,#2563eb)!important;outline-offset:3px!important;
  box-shadow:0 0 0 2px #fff!important;
}
.sbml-portal-nav{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}
.sbml-portal-nav>a{min-height:44px;display:inline-flex;align-items:center;white-space:nowrap}
.sbml-portal .button,.sbml-portal button,.sbml-lesson-player .button,.sbml-lesson-player button{min-height:44px}
.sbml-portal input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.sbml-portal select,.sbml-portal textarea,
.sbml-lesson-player input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.sbml-lesson-player select,.sbml-lesson-player textarea{font-size:16px;max-width:100%}
.sbml-table-wrap,.sbml-cert-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.sbml-table{min-width:640px}
.sbml-notification-list{display:grid;gap:14px}
.sbml-notification-card{position:relative;padding:18px;border:1px solid #dbe5ef;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.04)}
.sbml-notification-card.is-unread{border-left:4px solid var(--sbml-accent,#2563eb);background:#f8fbff}
.sbml-notification-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sbml-notification-card-head time{color:#64748b;font-size:13px}
.sbml-notification-card h3{margin:10px 0 6px;color:#0f172a;font-size:18px}
.sbml-notification-message{color:#334155;line-height:1.6}
.sbml-notification-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}

@media(max-width:1024px){
  .sbml-portal{width:min(100% - 24px,1480px)!important;margin-inline:auto!important}
  .sbml-course-layout,.sbml-dashboard-layout{grid-template-columns:1fr!important}
  .sbml-grid,.sbml-course-grid,.sbml-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:820px){
  .sbml-portal-header{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:16px!important}
  .sbml-portal-header .sbml-logout{align-self:flex-start}
  .sbml-portal-content{padding-inline:16px!important}
  .sbml-grid,.sbml-course-grid,.sbml-dashboard-grid{grid-template-columns:1fr!important}
  .sbml-section-heading{align-items:flex-start!important;flex-direction:column!important}
  .sbml-lesson-nav-toggle{min-height:48px}
}
@media(max-width:600px){
  .sbml-portal{width:calc(100% - 16px)!important;margin:8px auto!important;border-radius:14px!important}
  .sbml-portal-header{padding:18px!important}
  .sbml-portal-content{padding:14px!important}
  .sbml-portal-nav{padding-inline:10px!important}
  .sbml-portal-nav>a{padding-inline:12px!important}
  .sbml-card-body,.sbml-panel{padding:16px!important}
  .sbml-lesson-player{width:100%!important;margin:0!important}
  .sbml-lesson-main{padding:18px 14px!important}
  .sbml-module-header{grid-template-columns:40px minmax(0,1fr)!important;gap:10px!important}
  .sbml-module-state{grid-column:2!important;justify-self:start!important}
  .sbml-notification-card{padding:15px}
  .sbml-notification-actions .button{width:100%;justify-content:center}
  .sbml-table{min-width:560px}
}
@media(prefers-reduced-motion:reduce){
  .sbml-portal *,.sbml-lesson-player *{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* v0.10.2 Programs / Learning Paths */
.sbml-program-course-list{display:grid;gap:10px;margin:18px 0 0;padding:0;list-style:none}.sbml-program-course-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 15px;border:1px solid var(--sbml-border);border-radius:13px;background:#fff}.sbml-program-course-list li.is-complete{background:#f0fdf4;border-color:#bbf7d0}.sbml-program-course-list li.is-locked{background:#f8fafc;color:#64748b}.sbml-program-course-list li>span:first-child{display:grid;gap:3px;min-width:0}.sbml-program-course-list small{color:#64748b}.sbml-program-course-list .button{white-space:normal;text-align:center}@media(max-width:600px){.sbml-program-course-list li{grid-template-columns:1fr}.sbml-program-course-list li>.button,.sbml-program-course-list li>.sbml-status{justify-self:start}}

/* Skills & Competencies */
.sbml-skill-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}.sbml-skill-card{min-width:0}.sbml-skill-level{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin:12px 0 8px}.sbml-skill-level strong{font-size:1.12rem;color:#0f172a}.sbml-skill-level span,.sbml-muted{color:#64748b}.sbml-skill-card .sbml-progress{margin:8px 0}.sbml-skill-card .sbml-progress>span{display:block;min-height:8px}

/* Live Classroom + Cohorts */
.sbml-live-session-list{display:grid;gap:14px;margin-top:18px}.sbml-live-session-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:18px;border:1px solid var(--sbml-border,#dbe5ef);border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.04);min-width:0}.sbml-live-session-card>div{min-width:0}.sbml-live-session-card h3{margin:6px 0 8px;color:#0f172a;overflow-wrap:break-word}.sbml-live-session-card p{margin:4px 0;color:#475569;overflow-wrap:break-word}.sbml-live-provider{display:inline-flex;align-items:center;min-height:26px;padding:3px 9px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:12px;font-weight:700;letter-spacing:.03em}.sbml-live-session-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;align-items:center;max-width:360px}.sbml-live-attendance{font-weight:600;color:#166534!important}.sbml-live-session-actions .sbml-status{max-width:260px;text-align:right}.sbml-live-cohort-card{padding:16px;border:1px solid var(--sbml-border,#dbe5ef);border-radius:15px;background:#fff}.sbml-live-schedule-meta{display:flex;gap:10px;flex-wrap:wrap;color:#64748b;font-size:13px}
@media(max-width:760px){.sbml-live-session-card{grid-template-columns:1fr;align-items:start}.sbml-live-session-actions{justify-content:flex-start;max-width:none}.sbml-live-session-actions .sbml-status{text-align:left;max-width:none}.sbml-live-session-actions .button{width:100%;justify-content:center;text-align:center}}

/* v0.12.1 Course preview → enrol → pay → portal journey */
.sbml-catalogue-hero-side{position:relative;z-index:2;display:flex;align-items:stretch;gap:12px;flex-wrap:wrap;justify-content:flex-end}.sbml-catalogue-portal-link{display:inline-flex;align-items:center;justify-content:center;min-width:148px;padding:12px 16px;border:1px solid rgba(255,255,255,.28);border-radius:14px;background:rgba(255,255,255,.1);color:#fff!important;font-weight:800;text-decoration:none!important;backdrop-filter:blur(10px)}.sbml-catalogue-portal-link:hover{background:rgba(255,255,255,.17)}
.sbml-course-preview-note{display:flex;gap:12px;align-items:flex-start;width:min(100%,650px);margin:2px 0 20px;padding:13px 15px;border:1px solid rgba(255,255,255,.18);border-radius:14px;background:rgba(255,255,255,.09);color:#eef6ff}.sbml-course-preview-note .dashicons{margin-top:2px;color:#bfdbfe}.sbml-course-preview-note strong{display:block;color:#fff}.sbml-course-preview-note p{margin:3px 0 0;color:#dbeafe;font-size:13px;line-height:1.5}
.sbml-course-enrol-cta>div,.sbml-paid-enrol-form,.sbml-free-enrol-form{display:grid;gap:6px;align-items:start}.sbml-course-enrol-cta small,.sbml-paid-enrol-form small,.sbml-free-enrol-form small,.sbml-enrol-help{display:block;max-width:520px;color:#cbd5e1;font-size:12px;line-height:1.45}.sbml-free-enrol-form small,.sbml-enrol-help{color:#dbeafe}.sbml-course-portal-link{display:inline-flex;margin-top:16px;font-weight:800;text-decoration:none}.sbml-curriculum .sbml-lock{padding:5px 9px;border-radius:999px;background:#f1f5f9;color:#64748b;font-weight:800;white-space:nowrap}
.sbml-enrol-confirmation{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 20px;padding:16px 18px;border:1px solid #86efac;border-radius:16px;background:#ecfdf3;color:#14532d}.sbml-enrol-confirmation>div:first-child{display:flex;align-items:flex-start;gap:12px}.sbml-enrol-confirmation .dashicons{width:28px;height:28px;font-size:28px;color:#16a34a}.sbml-enrol-confirmation strong{display:block;font-size:18px}.sbml-enrol-confirmation p{margin:3px 0 0}.sbml-enrol-confirmation-actions{display:flex;gap:9px;flex-wrap:wrap}
.sbml-woocommerce-learning-confirmation{display:flex;align-items:flex-start;gap:14px;margin:28px 0;padding:20px;border:1px solid #cbd5e1;border-radius:18px;background:#f8fafc}.sbml-woocommerce-learning-confirmation.is-confirmed{border-color:#86efac;background:#ecfdf3}.sbml-woocommerce-learning-confirmation>.dashicons{width:32px;height:32px;font-size:32px}.sbml-woocommerce-learning-confirmation.is-confirmed>.dashicons{color:#16a34a}.sbml-woocommerce-learning-confirmation h2{margin:0 0 5px}.sbml-woocommerce-learning-confirmation p{margin:0 0 13px}.sbml-learning-confirmation-links{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:760px){.sbml-catalogue-hero-side{justify-content:flex-start}.sbml-catalogue-portal-link{min-width:0}.sbml-enrol-confirmation{align-items:flex-start;flex-direction:column}.sbml-course-enrol-cta{align-items:flex-start;flex-direction:column}.sbml-curriculum .sbml-lock{white-space:normal}}
/* v0.14 AI Live Classroom learner recap */
.sbml-live-ai-recap{margin-top:10px;padding:10px 12px;border:1px solid #dbe5ef;border-radius:12px;background:#f8fafc;color:#334155}.sbml-live-ai-recap summary{cursor:pointer;color:#0f172a}.sbml-live-ai-recap p{margin:8px 0}.sbml-live-ai-recap ul{margin:8px 0 0 18px;padding:0}.sbml-live-ai-recap li{margin:4px 0}

/* v0.16.1 Student authentication typography polish */
.sbml-auth-card>h1{
    margin:0 0 6px!important;
    font-size:clamp(24px,3vw,30px)!important;
    line-height:1.12!important;
    letter-spacing:-.02em;
    font-weight:800!important;
    color:var(--sbml-ink)!important;
}
.sbml-auth-card>h2{
    margin:8px 0 20px!important;
    font-size:clamp(18px,2.15vw,22px)!important;
    line-height:1.22!important;
    letter-spacing:-.01em;
    font-weight:800!important;
    color:var(--sbml-ink)!important;
}
.sbml-auth-card .sbml-portal-logo{margin-bottom:14px}
@media(max-width:520px){
    .sbml-auth-card>h1{font-size:24px!important}
    .sbml-auth-card>h2{font-size:19px!important;margin:7px 0 17px!important}
}

/* v0.17.1 learner profile picture */
.sbml-profile-picture-panel{grid-column:1/-1}
.sbml-profile-picture-layout{display:grid;grid-template-columns:170px minmax(0,1fr);gap:26px;align-items:start}
.sbml-profile-picture-preview{width:160px;height:160px;border-radius:28px;overflow:hidden;background:linear-gradient(135deg,#dbeafe,#eef2ff);border:1px solid var(--sbml-border);box-shadow:0 12px 32px rgba(15,23,42,.10)}
.sbml-profile-picture-image{display:block;width:100%;height:100%;object-fit:cover}
.sbml-profile-picture-panel h2{margin:4px 0 8px;font-size:clamp(22px,2.4vw,30px)}
.sbml-profile-picture-panel p{max-width:760px;margin:0 0 16px;color:var(--sbml-muted)}
.sbml-profile-picture-form{max-width:650px}
.sbml-profile-picture-form input[type=file]{padding:10px;background:var(--sbml-soft)}
.sbml-profile-picture-form small{display:block;color:var(--sbml-muted);font-weight:500;line-height:1.45}
.sbml-profile-picture-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.sbml-inline-profile-remove{margin-top:10px}
.sbml-secondary-button{display:inline-flex!important;align-items:center;justify-content:center;border:1px solid #cbd5e1!important;border-radius:11px!important;background:#fff!important;color:var(--sbml-ink)!important;padding:10px 15px!important;font-weight:800!important;text-decoration:none!important;box-shadow:none!important}
.sbml-secondary-button:hover{background:#f8fafc!important;border-color:#94a3b8!important}
.sbml-portal-header-logo{width:56px;height:56px;border-radius:16px}
.sbml-portal-identity .sbml-portal-avatar{width:72px;height:72px;border-radius:20px}
@media(max-width:760px){.sbml-profile-picture-layout{grid-template-columns:116px minmax(0,1fr);gap:18px}.sbml-profile-picture-preview{width:110px;height:110px;border-radius:22px}.sbml-portal-header-logo{width:48px;height:48px}.sbml-portal-identity .sbml-portal-avatar{width:60px;height:60px}}
@media(max-width:520px){.sbml-profile-picture-layout{grid-template-columns:1fr}.sbml-profile-picture-preview{width:100px;height:100px}.sbml-profile-picture-actions .button,.sbml-inline-profile-remove .button{width:100%}}

/* v0.18.0 — Cohort Room */
.sbml-cohort-room-shell{display:grid;grid-template-columns:minmax(190px,240px) minmax(0,1fr);gap:18px;align-items:start}.sbml-cohort-room-list{position:sticky;top:20px;border:1px solid var(--sbml-border,#e5e7eb);border-radius:16px;background:#fff;padding:16px}.sbml-cohort-room-list h2{font-size:1.15rem;margin:4px 0 12px}.sbml-cohort-room-link{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;border-radius:10px;text-decoration:none;color:inherit}.sbml-cohort-room-link:hover,.sbml-cohort-room-link.is-active{background:#f4f7fb}.sbml-cohort-room-link b{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:var(--sbml-accent,#2563eb);color:#fff;font-size:11px}.sbml-cohort-room-main{min-width:0}.sbml-cohort-room-hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.sbml-cohort-room-hero h2{margin:.2rem 0 .35rem}.sbml-cohort-room-stats{white-space:nowrap}.sbml-cohort-room-composer textarea{width:100%}.sbml-cohort-room-feed{display:grid;gap:14px}.sbml-cohort-thread{padding:16px 18px}.sbml-cohort-thread.is-announcement{border-left:4px solid #d4a72c}.sbml-cohort-thread.is-ai_digest{border-left:4px solid #6d5bd0}.sbml-cohort-thread>header{display:flex;align-items:center;gap:10px}.sbml-cohort-thread>header>div{min-width:0;display:grid}.sbml-cohort-thread>header small{color:#6b7280}.sbml-cohort-avatar img,.sbml-cohort-reply img{border-radius:999px;display:block}.sbml-cohort-badge{margin-left:auto;font-size:11px;font-weight:700;background:#eef2ff;padding:4px 8px;border-radius:999px}.sbml-cohort-badge.is-resolved{background:#e8f5ec;color:#176b38}.sbml-cohort-thread-content{margin:12px 0}.sbml-cohort-replies{display:grid;gap:8px;margin:12px 0;padding-left:22px}.sbml-cohort-reply{display:flex;gap:9px;background:#f8fafc;border-radius:12px;padding:10px}.sbml-cohort-reply p{margin:3px 0}.sbml-cohort-reply small{color:#6b7280}.sbml-cohort-reply-form{display:flex;gap:8px;margin-top:12px}.sbml-cohort-reply-form input{flex:1;min-width:0}.sbml-cohort-thread .sbml-inline-actions{display:flex;gap:6px;flex-wrap:wrap}.sbml-cohort-thread .sbml-inline-actions form{margin:0}@media(max-width:800px){.sbml-cohort-room-shell{grid-template-columns:1fr}.sbml-cohort-room-list{position:static;display:flex;gap:6px;overflow:auto}.sbml-cohort-room-list .sbml-eyebrow,.sbml-cohort-room-list h2{display:none}.sbml-cohort-room-link{white-space:nowrap}.sbml-cohort-room-hero{display:block}.sbml-cohort-reply-form{flex-direction:column}}
.sbml-cohort-dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:9px}.sbml-cohort-dashboard-grid a{display:grid;gap:3px;border:1px solid var(--sbml-border,#e5e7eb);border-radius:12px;padding:11px;text-decoration:none;color:inherit}.sbml-cohort-dashboard-grid a:hover{background:#f8fafc}.sbml-cohort-dashboard-grid small{color:#64748b}


/* v0.24.2 — safe unified widescreen front-end application shell
   Keep the 1760px Instructor-Studio-style canvas without altering body
   overflow or clipping theme footer/off-canvas navigation. */
body.sbml-learning-widescreen{--sbml-app-wide:1760px}
.sbml-learning-page-shell{
  position:relative!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:min(var(--sbml-app-wide),calc(100vw - (var(--sbml-page-gutter,16px) * 2)))!important;
  max-width:calc(100vw - (var(--sbml-page-gutter,16px) * 2))!important;
  min-width:0!important;
  margin:0!important;
  padding:clamp(14px,2vw,30px) 0 clamp(34px,4vw,64px)!important;
  clear:both!important;
  box-sizing:border-box!important;
  overflow:visible!important;
  isolation:isolate;
  z-index:0;
}
.sbml-learning-page-inner{
  display:block!important;
  width:100%!important;
  max-width:var(--sbml-app-wide)!important;
  min-width:0!important;
  margin:0 auto!important;
  padding:0!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
.sbml-learning-page-inner :where(.sbml-catalogue,.sbml-course-shell,.sbml-portal,.sbml-lesson-player){
  position:static!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.sbml-learning-page-inner :where(.sbml-assessment-card,.sbml-assignments,.sbml-certificate-verification){
  width:100%;
  max-width:none;
}
/* Authentication gets the same widescreen page canvas, but the credential
   form stays intentionally readable rather than stretching to desktop width. */
.sbml-learning-page-inner .sbml-auth-shell{width:100%!important;max-width:100%!important}
.sbml-learning-page-inner .sbml-auth-card{width:min(100%,620px)!important;max-width:620px!important}
/* Keep long prose comfortable inside wide panels without shrinking the panel. */
.sbml-learning-page-inner :where(.sbml-course-overview,.sbml-transcript>div,.sbml-profile-picture-form){line-height:1.7}
/* Defensive interoperability with host-theme footers. The Learning shell must
   never sit above or disable footer navigation supplied by the active theme. */
body.sbml-learning-widescreen :where(.site-footer,#colophon,.elementor-location-footer,[data-elementor-type="footer"]){
  position:relative;
  z-index:2;
  pointer-events:auto;
}
body.sbml-learning-widescreen :where(.site-footer,#colophon,.elementor-location-footer,[data-elementor-type="footer"]) :where(a,button,summary,input,label){pointer-events:auto}
@media(max-width:820px){
  .sbml-learning-page-shell{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;padding:12px 0 34px!important}
}
@media(max-width:600px){
  .sbml-learning-page-shell{left:50%!important;transform:translateX(-50%)!important;width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;margin:0!important;padding:8px 0 24px!important}
  .sbml-learning-page-inner{max-width:100%!important}
}

/* v0.24.3 — clean Learning application template.
   Keep the site's real theme header/footer, but bypass the host theme's page
   title/hero/article/sidebar wrappers so learner apps do not sit on top of a
   second background page or inherit an empty title band. */
body.sbml-learning-clean-template .sbml-learning-app-template{
  display:block!important;
  position:relative!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:#f8fafc!important;
  box-shadow:none!important;
  overflow:visible!important;
  clear:both!important;
  isolation:isolate;
}
body.sbml-learning-clean-template .sbml-learning-app-template>.sbml-learning-page-shell{
  padding-top:clamp(10px,1.1vw,18px)!important;
}
body.sbml-learning-clean-template .sbml-learning-page-inner>.sbml-portal,
body.sbml-learning-clean-template .sbml-learning-page-inner>.sbml-catalogue,
body.sbml-learning-clean-template .sbml-learning-page-inner>.sbml-course-shell,
body.sbml-learning-clean-template .sbml-learning-page-inner>.sbml-lesson-player{
  margin-top:0!important;
}
@media(max-width:760px){
  body.sbml-learning-clean-template .sbml-learning-app-template>.sbml-learning-page-shell{padding-top:8px!important}
}

/* v0.24.4 — theme-owned header/footer restoration.
   Learner-facing LMS screens now remain inside the active theme's normal page
   template so the theme owns its complete header, footer, widget areas and menu
   locations. Only wrappers that actually contain a Nomad Learning application
   are flattened; site chrome outside those wrappers is deliberately untouched. */
@supports selector(.entry-content:has(.sbml-learning-page-shell)) {
  body.sbml-learning-screen :where(
    #primary,
    #main,
    .site-main,
    .content-area,
    .site-content,
    .content-container,
    .container,
    .site-container,
    article.page,
    article.type-page,
    .entry-content,
    .page-content,
    .post-content,
    .wp-block-post-content,
    .elementor-widget-theme-post-content,
    .elementor-widget-theme-post-content > .elementor-widget-container
  ):has(.sbml-learning-page-shell) {
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin-top:0!important;
    margin-bottom:0!important;
    padding-top:0!important;
    padding-bottom:0!important;
    border:0!important;
    box-shadow:none!important;
    background:transparent!important;
  }
  /* Most boxed themes place horizontal padding on the immediate article/content
     wrappers. The Learning shell already supplies safe viewport gutters. */
  body.sbml-learning-screen :where(
    article.page,
    article.type-page,
    .entry-content,
    .page-content,
    .post-content,
    .wp-block-post-content,
    .elementor-widget-theme-post-content > .elementor-widget-container
  ):has(.sbml-learning-page-shell) {
    padding-left:0!important;
    padding-right:0!important;
  }
}
/* Keep the first LMS surface close to the site's real header without touching
   the theme header itself or any footer/menu region. */
body.sbml-learning-screen .sbml-learning-page-shell{
  padding-top:clamp(8px,1vw,16px)!important;
}
/* v0.24.3's clean-template rules are intentionally inert now; the class is no
   longer emitted and the theme's native page template/footer path is retained. */


/* v0.24.5 — one canonical Learning Portal + true widescreen portal views.
   The outer Learning application canvas matches Instructor Studio. Every portal
   tab/view may use the full canvas; only purpose-built readable forms keep an
   intentional inner max-width. */
body.sbml-learning-screen .sbml-learning-page-inner > .sbml-portal,
body.sbml-learning-screen .sbml-learning-page-inner .sbml-portal:not(.sbml-auth-shell){
  width:100%!important;
  max-width:1760px!important;
  min-width:0!important;
  margin:0 auto!important;
}
body.sbml-learning-screen .sbml-portal:not(.sbml-auth-shell) .sbml-portal-content{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:0!important;
  padding-right:0!important;
}
body.sbml-learning-screen .sbml-portal:not(.sbml-auth-shell) .sbml-portal-content > *,
body.sbml-learning-screen .sbml-portal:not(.sbml-auth-shell) :where(
  .sbml-dashboard-layout,.sbml-dashboard-grid,.sbml-grid,.sbml-course-grid,
  .sbml-cohort-room-shell,.sbml-cohort-dashboard-grid,.sbml-profile-grid,
  .sbml-table-wrap,.sbml-order-list,.sbml-section-heading
){
  max-width:none!important;
  min-width:0!important;
}
body.sbml-learning-screen .sbml-portal:not(.sbml-auth-shell) .sbml-portal-header,
body.sbml-learning-screen .sbml-portal:not(.sbml-auth-shell) .sbml-portal-nav{
  width:100%!important;
  max-width:none!important;
}
/* Login/register/reset remain readable while still sitting on the widescreen shell. */
body.sbml-learning-screen .sbml-auth-shell{width:100%!important;max-width:1760px!important;margin:0 auto!important}
body.sbml-learning-screen .sbml-auth-shell .sbml-auth-card{width:min(100%,620px)!important;max-width:620px!important}
@media(max-width:820px){
  body.sbml-learning-screen .sbml-portal:not(.sbml-auth-shell) .sbml-portal-content{padding-inline:0!important}
}

/* v0.24.10 explicit assessment-attempt start gate */
.sbml-assessment-start{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:20px 22px;margin-top:18px;border:1px solid #cbd5e1;border-radius:14px;background:#f8fafc}.sbml-assessment-start strong{display:block;font-size:17px}.sbml-assessment-start p{margin:5px 0 0;color:var(--sbml-muted);line-height:1.55}.sbml-assessment-start-form{flex:0 0 auto}.sbml-assessment-in-progress{margin:14px 0}.sbml-assessment-start .sbml-button{white-space:nowrap}@media(max-width:600px){.sbml-assessment-start{align-items:stretch;flex-direction:column}.sbml-assessment-start-form .sbml-button{width:100%}}

/* v0.24.11 Learner Sticky Notes ------------------------------------------------ */
.sbml-learning-module{position:relative!important;overflow:visible!important}
.sbml-sticky-workspace{position:absolute;inset:0;z-index:14;pointer-events:none;overflow:visible}
.sbml-sticky-add{pointer-events:auto;position:absolute;top:16px;right:118px;z-index:3;display:inline-flex;align-items:center;gap:5px;min-height:34px!important;height:34px;padding:5px 10px!important;border:1px solid #d6b84c!important;border-radius:999px!important;background:#fff8c7!important;color:#6b5300!important;font:800 12px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;box-shadow:0 4px 14px rgba(15,23,42,.08)!important;cursor:pointer;white-space:nowrap}
.sbml-sticky-add:hover{transform:translateY(-1px);box-shadow:0 7px 16px rgba(15,23,42,.12)!important}.sbml-sticky-add:disabled{opacity:.55;cursor:wait}
.sbml-sticky-layer{position:absolute;inset:0;pointer-events:none;overflow:visible}
.sbml-sticky-note{--sbml-note-bg:#fff4a8;--sbml-note-edge:#e5c84f;position:absolute;left:var(--sbml-note-x,68%);top:var(--sbml-note-y,18%);width:var(--sbml-note-w,28%);min-width:210px;max-width:440px;pointer-events:auto;z-index:4;overflow:hidden;border:1px solid var(--sbml-note-edge);border-radius:8px 8px 10px 10px;background:var(--sbml-note-bg);box-shadow:0 12px 28px rgba(15,23,42,.22);color:#334155!important;transform:rotate(-.35deg);transition:box-shadow .14s ease,transform .14s ease}
.sbml-sticky-note:hover,.sbml-sticky-note:focus-within{z-index:8;box-shadow:0 18px 38px rgba(15,23,42,.28);transform:rotate(0)}
.sbml-sticky-note.is-dragging,.sbml-sticky-note.is-resizing{z-index:20;transition:none;user-select:none;box-shadow:0 22px 44px rgba(15,23,42,.32);transform:rotate(0)}
.sbml-sticky-note.is-mint{--sbml-note-bg:#dff8df;--sbml-note-edge:#8ed18e}.sbml-sticky-note.is-sky{--sbml-note-bg:#dff3ff;--sbml-note-edge:#83c4e9}.sbml-sticky-note.is-rose{--sbml-note-bg:#ffe3eb;--sbml-note-edge:#eda1b6}.sbml-sticky-note.is-lavender{--sbml-note-bg:#eee6ff;--sbml-note-edge:#b8a0ea}
.sbml-sticky-note-bar{height:35px;display:flex;align-items:center;gap:7px;padding:0 7px 0 9px;border-bottom:1px solid color-mix(in srgb,var(--sbml-note-edge) 70%,transparent);background:color-mix(in srgb,var(--sbml-note-bg) 78%,white);cursor:grab;touch-action:none}
.sbml-sticky-note-bar:active{cursor:grabbing}.sbml-sticky-grip{font-size:16px;opacity:.5}.sbml-sticky-private{flex:1;min-width:0;font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#64748b!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sbml-sticky-controls{display:flex;gap:2px}.sbml-sticky-controls button{display:grid!important;place-items:center!important;width:27px!important;height:27px!important;min-height:27px!important;min-width:27px!important;padding:0!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#475569!important;font-size:18px!important;line-height:1!important;box-shadow:none!important;cursor:pointer}.sbml-sticky-controls button:hover{background:rgba(255,255,255,.65)!important;color:#0f172a!important}
.sbml-sticky-body{position:relative;padding:7px 9px 8px}.sbml-sticky-note textarea{display:block!important;width:100%!important;min-height:120px!important;max-height:340px;resize:vertical!important;margin:0!important;padding:8px 7px!important;border:0!important;background:transparent!important;color:#334155!important;font:600 14px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;box-shadow:none!important;outline:0!important}.sbml-sticky-note textarea::placeholder{color:#7c8492;opacity:.75}.sbml-sticky-note textarea:focus{box-shadow:inset 0 0 0 2px rgba(15,23,42,.12)!important;border-radius:5px!important}
.sbml-sticky-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 2px 0}.sbml-sticky-colours{display:flex;gap:5px}.sbml-sticky-colours button{width:18px!important;height:18px!important;min-height:18px!important;min-width:18px!important;padding:0!important;border:2px solid rgba(255,255,255,.85)!important;border-radius:50%!important;box-shadow:0 0 0 1px rgba(15,23,42,.18)!important;cursor:pointer}.sbml-sticky-colours button[aria-pressed=true]{box-shadow:0 0 0 2px #334155!important}.sbml-sticky-colours .is-sunshine{background:#fff4a8!important}.sbml-sticky-colours .is-mint{background:#dff8df!important}.sbml-sticky-colours .is-sky{background:#dff3ff!important}.sbml-sticky-colours .is-rose{background:#ffe3eb!important}.sbml-sticky-colours .is-lavender{background:#eee6ff!important}.sbml-sticky-save-state{font-size:10px;font-weight:800;color:#64748b!important}.sbml-sticky-save-state.is-error{color:#b42318!important}.sbml-sticky-resize{position:absolute;right:1px;bottom:1px;width:18px;height:18px;cursor:nwse-resize;touch-action:none}.sbml-sticky-resize:after{content:"";position:absolute;right:4px;bottom:4px;width:8px;height:8px;border-right:2px solid rgba(71,85,105,.55);border-bottom:2px solid rgba(71,85,105,.55)}
.sbml-sticky-note.is-minimized{width:180px!important;min-width:180px;max-width:180px}.sbml-sticky-note.is-minimized .sbml-sticky-body{display:none}.sbml-sticky-note.is-minimized .sbml-sticky-note-bar{border-bottom:0}.sbml-sticky-note.is-minimized .sbml-sticky-private:after{content:" · note";text-transform:none;letter-spacing:0;font-weight:700}
.sbml-sticky-notebook{margin:0 0 28px}.sbml-sticky-notebook>.sbml-section-heading{margin-bottom:14px}.sbml-sticky-notebook-card blockquote{background:#fffbea;border-left-color:#e3c94f}.sbml-sticky-notebook-card>small{margin-top:-8px;color:#64748b}
@media(max-width:900px){.sbml-sticky-add{right:16px;top:68px}.sbml-sticky-note{min-width:190px;max-width:min(360px,76vw)}}
@media(max-width:640px){.sbml-sticky-add{top:62px;right:10px}.sbml-sticky-note{width:min(76vw,310px)!important;min-width:220px;max-width:310px}.sbml-sticky-note textarea{min-height:105px!important}.sbml-sticky-resize{display:none}}
.sbml-sticky-ai-actions{display:flex;gap:4px;flex-wrap:wrap;padding:3px 0 7px;border-bottom:1px solid rgba(71,85,105,.12);margin-bottom:4px}.sbml-sticky-ai-actions button{min-height:27px!important;height:27px!important;padding:4px 7px!important;border:1px solid rgba(71,85,105,.18)!important;border-radius:7px!important;background:rgba(255,255,255,.55)!important;color:#334155!important;font:800 10px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;box-shadow:none!important;cursor:pointer}.sbml-sticky-ai-actions button:hover{background:#fff!important;border-color:rgba(71,85,105,.35)!important}

/* v0.24.12 explicit assessment start + legacy timer recovery */
.sbml-timer-not-started{display:inline-flex;align-items:center;gap:6px;margin:0 0 8px;padding:5px 9px;border-radius:999px;background:#e2e8f0;color:#334155;font-size:12px;font-weight:800;line-height:1}.sbml-start-assessment-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:150px!important;min-height:42px!important;visibility:visible!important;opacity:1!important}.sbml-assessment-recovery{margin:14px 0}.sbml-assessment-start-form{display:block!important;visibility:visible!important;opacity:1!important}

/* v0.25.1 Interactive Training Video */
.sbml-video-shell.is-training-video{overflow:hidden}.sbml-video-checkpoint-layer{position:absolute;inset:0;z-index:8;display:grid;place-items:center;padding:24px;background:rgba(2,6,23,.74);backdrop-filter:blur(3px)}.sbml-video-checkpoint-layer[hidden]{display:none!important}.sbml-video-checkpoint-card{width:min(620px,94%);max-height:88%;overflow:auto;padding:24px;border-radius:18px;background:#fff;color:#0f172a;box-shadow:0 24px 70px rgba(0,0,0,.3)}.sbml-video-training-kicker{display:block;margin-bottom:5px;color:var(--sbml-accent);font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.sbml-video-checkpoint-card h3{margin:4px 0 16px;font-size:22px;line-height:1.3}.sbml-video-checkpoint-option{display:flex;gap:10px;align-items:flex-start;margin:8px 0;padding:11px 12px;border:1px solid var(--sbml-border);border-radius:11px;cursor:pointer}.sbml-video-checkpoint-option:has(input:checked){border-color:var(--sbml-accent);background:var(--sbml-accent-soft)}.sbml-video-checkpoint-card textarea{box-sizing:border-box;width:100%;padding:12px;border:1px solid #cbd5e1;border-radius:10px}.sbml-video-checkpoint-feedback{margin-top:12px;padding:11px 13px;border-radius:10px;background:#f8fafc;font-weight:700}.sbml-video-checkpoint-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:16px}.sbml-video-training-panel{margin-top:14px;padding:16px 18px;border:1px solid var(--sbml-border);border-radius:15px;background:linear-gradient(135deg,#f8fafc,#fff)}.sbml-video-training-summary{display:flex;justify-content:space-between;align-items:center;gap:18px}.sbml-video-training-summary strong{display:block}.sbml-video-training-percent{flex:0 0 auto;font-size:24px;font-weight:900;color:var(--sbml-accent)}.sbml-video-training-progress{height:8px;margin:12px 0;border-radius:999px;background:#e2e8f0;overflow:hidden}.sbml-video-training-progress>span{display:block;height:100%;border-radius:inherit;background:var(--sbml-accent);transition:width .2s ease}.sbml-video-training-notice{margin:10px 0;padding:10px 12px;border-radius:10px;background:#fff7ed;color:#9a3412;font-size:13px}.sbml-video-chapters{display:grid;gap:8px;margin-top:14px}.sbml-video-chapters>div{display:flex;gap:7px;flex-wrap:wrap}.sbml-video-chapters button{display:inline-flex;gap:7px;align-items:center;padding:8px 10px;border:1px solid var(--sbml-border);border-radius:999px;background:#fff;color:#0f172a;cursor:pointer;font-weight:700}.sbml-video-chapters button:hover{border-color:var(--sbml-accent);color:var(--sbml-accent)}.sbml-video-chapters button span{font-variant-numeric:tabular-nums;color:var(--sbml-muted);font-size:12px}.sbml-video-training-status{margin-top:12px;color:var(--sbml-muted);font-size:13px}.sbml-video-training-status.is-error{color:#b91c1c}.sbml-learning-module:has(.sbml-video-training-panel) .sbml-module-state{transition:background .2s,color .2s}
@media(max-width:700px){.sbml-video-checkpoint-layer{padding:10px}.sbml-video-checkpoint-card{padding:18px}.sbml-video-training-summary{align-items:flex-start}.sbml-video-training-summary strong{font-size:13px}.sbml-video-training-percent{font-size:20px}.sbml-video-chapters>div{display:grid;grid-template-columns:1fr}.sbml-video-chapters button{justify-content:flex-start}}
.sbml-video-chapter-label{display:inline-flex;gap:7px;align-items:center;padding:8px 10px;border:1px solid var(--sbml-border);border-radius:999px;background:#fff;font-weight:700}.sbml-video-chapter-label>span{font-variant-numeric:tabular-nums;color:var(--sbml-muted);font-size:12px}

/* v0.29 learner experience */
.sbml-module-navigator{display:flex;gap:.55rem;overflow-x:auto;padding:.7rem .1rem .15rem;margin-top:1rem;scrollbar-width:thin;scroll-snap-type:x proximity}.sbml-module-nav-chip{display:inline-flex;align-items:center;gap:.5rem;min-width:max-content;padding:.55rem .75rem;border:1px solid var(--sbml-border,#dbe3ea);border-radius:999px;background:#fff;text-decoration:none;color:inherit;scroll-snap-align:start;transition:border-color .18s,box-shadow .18s,transform .18s}.sbml-module-nav-chip span{display:grid;place-items:center;width:1.55rem;height:1.55rem;border-radius:50%;background:#eef3f6;font-size:.78rem;font-weight:700}.sbml-module-nav-chip strong{font-size:.84rem;max-width:15rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sbml-module-nav-chip.is-complete span{background:#e7f6ed}.sbml-module-nav-chip.is-locked{opacity:.55;cursor:not-allowed}.sbml-module-nav-chip.is-current{border-color:currentColor;box-shadow:0 0 0 2px rgba(0,0,0,.05);transform:translateY(-1px)}
.sbml-module-header-actions{display:flex;flex-direction:column;align-items:flex-end;gap:.45rem;margin-left:auto}.sbml-ai-module-action{border:1px solid #cfdce3;border-radius:999px;background:#fff;padding:.42rem .68rem;font:inherit;font-size:.8rem;font-weight:700;cursor:pointer;white-space:nowrap}.sbml-ai-module-action:hover,.sbml-ai-video-action:hover{transform:translateY(-1px)}.sbml-video-training-ai{display:flex;justify-content:flex-end;margin-top:.65rem}.sbml-ai-preview-note{margin:.5rem 0 0;padding:.55rem .7rem;border-radius:.65rem;background:#f5f8fa;font-size:.78rem;line-height:1.4}.sbml-ai-instructor-panel .sbml-ai-preview-note+ .sbml-ai-status{margin-top:.35rem}
@media(max-width:720px){.sbml-module-header{align-items:flex-start;flex-wrap:wrap}.sbml-module-header-actions{width:100%;flex-direction:row;justify-content:space-between;align-items:center;margin-left:0}.sbml-ai-module-action{font-size:.76rem}.sbml-module-nav-chip strong{max-width:10rem}}

/* v0.37 Microlearning + Drip Feed */
.sbml-microlearning-badge{display:inline-flex;align-items:center;gap:5px;margin:7px 8px 0 0;padding:5px 9px;border-radius:999px;background:#ecfeff;color:#0f766e;font-size:12px;font-weight:800;border:1px solid #a5f3fc}.sbml-microlearning-objective{display:block;margin-top:7px;color:#475569;font-size:13px;font-weight:600}.sbml-drip-wait{display:flex;align-items:flex-start;gap:12px;margin-top:18px;padding:15px 17px;border:1px solid #bfdbfe;border-radius:14px;background:#eff6ff;color:#1e3a8a}.sbml-drip-wait .dashicons{margin-top:2px;color:#2563eb}.sbml-drip-wait strong{display:block}.sbml-drip-wait p{margin:3px 0 0}.sbml-curriculum .sbml-lock{max-width:280px;text-align:right;white-space:normal;line-height:1.3}

/* v0.38.1 guided spoken lesson controls (uses the shared Nomad AI Copilot voice shell). */
.sbml-guided-lesson-toolbar{margin:18px 0 4px;padding:14px 16px;border:1px solid #d8e4f2;border-radius:16px;background:linear-gradient(135deg,#f7fbff,#fff);display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.sbml-guided-lesson-copy{display:flex;align-items:flex-start;gap:11px;min-width:260px;flex:1}.sbml-guided-lesson-copy>.dashicons{color:#1d5fa7;margin-top:2px}.sbml-guided-lesson-copy strong,.sbml-guided-lesson-copy small{display:block}.sbml-guided-lesson-copy small{margin-top:3px;color:#667085;line-height:1.4}.sbml-guided-lesson-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.sbml-guided-lesson-status{width:100%;min-height:18px;color:#52606d;font-size:12px}.sbml-guided-lesson-toolbar.is-active{border-color:#a9c8ee;background:linear-gradient(135deg,#eef6ff,#fff)}.sbml-learning-module.is-ai-teaching{outline:3px solid rgba(29,95,167,.18);outline-offset:4px;border-radius:14px}.sbml-guided-lesson-toolbar .button[hidden]{display:none!important}@media(max-width:760px){.sbml-guided-lesson-toolbar{align-items:stretch}.sbml-guided-lesson-actions{width:100%}.sbml-guided-lesson-actions .button{flex:1 1 auto;text-align:center}}

.sbml-book-hero{width:100%;max-height:420px;object-fit:cover;display:block;border-radius:14px;margin:12px 0 22px}.sbml-book-chapter{scroll-margin-top:90px}
