.sp-hele-app{display:grid;grid-template-columns:260px 1fr;gap:24px;background:#0f172a;color:#e5e7eb;border-radius:24px;padding:24px;margin:24px 0;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif}.sp-hele-sidebar{position:sticky;top:20px;align-self:start;background:#111827;border:1px solid #273449;border-radius:20px;padding:18px}.sp-hele-sidebar h3{margin:0 0 16px;color:#fff}.sp-hele-sidebar a{display:block;color:#cbd5e1;text-decoration:none;padding:10px 12px;border-radius:12px}.sp-hele-sidebar a:hover{background:#1f2937;color:#fff}.sp-hele-main{min-width:0}.sp-hele-hero{background:linear-gradient(135deg,#1e293b,#312e81);border-radius:24px;padding:32px;margin-bottom:18px}.sp-hele-hero h1{font-size:36px;margin:10px 0;color:white}.sp-hele-pill{background:#f59e0b;color:#111827;border-radius:999px;padding:6px 12px;font-weight:700}.sp-hele-card{background:#111827;border:1px solid #273449;border-radius:20px;padding:24px;margin:18px 0}.sp-hele-card h2{margin-top:0;color:#fff}.sp-hele-exercise{background:#0b1220;border:1px solid #334155;border-radius:16px;padding:16px;margin:12px 0}.sp-hele-exercise summary{cursor:pointer;font-weight:700;color:#fff}.sp-hele-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.sp-hele-grid>div{background:#111827;border:1px solid #263244;border-radius:14px;padding:14px}.sp-hele-answer{width:100%;min-height:120px;margin-top:16px;border-radius:14px;background:#020617;color:#fff;border:1px solid #334155;padding:14px}.sp-hele-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.sp-hele-metrics div,.sp-hele-mini-card{background:#0b1220;border:1px solid #334155;border-radius:16px;padding:18px}.sp-hele-metrics span{display:block;font-size:22px;color:#fbbf24;margin-top:8px}.sp-hele-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.sp-hele-mini-card{color:#e5e7eb;text-decoration:none}.sp-hele-mini-card h3{color:white}.sp-hele-dashboard{background:#0f172a;color:white;border-radius:20px;padding:24px}.sp-hele-schedule{display:grid;gap:10px}.sp-hele-schedule div{background:#111827;border:1px solid #334155;padding:14px;border-radius:14px}@media(max-width:800px){.sp-hele-app{grid-template-columns:1fr}.sp-hele-sidebar{position:relative}.sp-hele-grid{grid-template-columns:1fr}.sp-hele-metrics{grid-template-columns:1fr}}
.sp-hele-video-card{border-color:#475569;background:linear-gradient(180deg,#111827,#0b1220)}
.sp-hele-video-note{color:#cbd5e1;margin-bottom:14px}
.sp-hele-video-frame{position:relative;width:100%;aspect-ratio:16/9;background:#020617;border:1px solid #334155;border-radius:18px;overflow:hidden;box-shadow:0 18px 40px rgba(0,0,0,.35)}
.sp-hele-video-frame iframe,.sp-hele-video-frame video{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.sp-hele-media-studio{border-color:#475569;background:linear-gradient(180deg,#111827,#0b1220)}
.sp-hele-media-note{color:#cbd5e1;background:#0b1220;border:1px solid #334155;border-radius:14px;padding:14px;margin-bottom:16px}
.sp-hele-media-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin:16px 0}
.sp-hele-media-item{background:#0b1220;border:1px solid #334155;border-radius:18px;padding:16px;margin:16px 0}
.sp-hele-media-item h3{margin-top:0;color:#fff;font-size:18px}
.sp-hele-wide{grid-column:1/-1}
.sp-hele-video{width:100%;max-height:520px;background:#020617;border:1px solid #334155;border-radius:18px;display:block}
.sp-hele-media-item audio{width:100%}
.sp-hele-download{display:inline-block;background:#f59e0b;color:#111827!important;font-weight:800;text-decoration:none;border-radius:999px;padding:10px 16px;margin-top:8px}

/* SP-HELE 1.2 Learner-first Workspace */
.sp-hele-shell{background:#0f172a;color:#e5e7eb;border-radius:28px;padding:clamp(16px,3vw,36px);margin:24px 0;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif}
.sp-hele-learner-flow{max-width:920px;margin:0 auto;display:grid;gap:22px}
.sp-hele-focus-hero,.sp-hele-flow-step,.sp-hele-finish-card,.sp-hele-workspace{background:#111827;border:1px solid #273449;border-radius:24px;padding:clamp(20px,4vw,38px);box-shadow:0 18px 50px rgba(0,0,0,.22)}
.sp-hele-focus-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;background:linear-gradient(135deg,#1e293b,#312e81)}
.sp-hele-focus-hero h1{font-size:clamp(28px,4vw,48px);line-height:1.05;margin:12px 0;color:#fff}
.sp-hele-primary,.sp-hele-secondary{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;padding:12px 20px;font-weight:800;text-decoration:none;cursor:pointer}
.sp-hele-primary{background:#f59e0b;color:#111827!important}.sp-hele-secondary{background:#1f2937;color:#fff!important;border:1px solid #334155}
.sp-hele-step-label{display:inline-block;background:#0b1220;border:1px solid #334155;color:#93c5fd;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:700;margin-bottom:10px;text-transform:uppercase;letter-spacing:.04em}
.sp-hele-flow-step h2,.sp-hele-finish-card h2{font-size:clamp(24px,3vw,34px);margin:0 0 16px;color:#fff}.sp-hele-content{font-size:18px;line-height:1.75;color:#dbeafe}
.sp-hele-exercise-minimal{background:#0b1220;border:1px solid #334155;border-radius:22px;padding:22px;margin:18px 0}.sp-hele-exercise-minimal h3{font-size:24px;margin:0 0 12px;color:#fff}.sp-hele-exercise-meta{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px}.sp-hele-exercise-meta span{background:#111827;border:1px solid #334155;border-radius:999px;padding:7px 11px;color:#cbd5e1;font-size:13px}.sp-hele-statement{font-size:18px;line-height:1.7;background:#111827;border-radius:16px;border:1px solid #273449;padding:18px}.sp-hele-support{background:#111827;border:1px solid #334155;border-radius:16px;padding:14px;margin:14px 0}.sp-hele-support summary{font-weight:800;color:#fff;cursor:pointer}.sp-hele-after{opacity:.92}.sp-hele-answer,.sp-hele-reflection{width:100%;min-height:160px;border-radius:18px;background:#020617;color:#fff;border:1px solid #334155;padding:16px;font-size:17px}.sp-hele-actions{display:flex;gap:12px;flex-wrap:wrap}.sp-hele-workspace{background:#0f172a}.sp-hele-mission-box{background:linear-gradient(135deg,#1e293b,#111827);border:1px solid #334155;border-radius:24px;padding:24px;margin:16px 0}.sp-hele-mission-box span{color:#fbbf24;font-weight:900}.sp-hele-workspace-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.sp-hele-workspace-grid div{background:#111827;border:1px solid #334155;border-radius:18px;padding:18px;font-weight:800}.sp-hele-study-pack{background:white;color:#111827;border-radius:18px;padding:28px}.sp-hele-study-pack h1,.sp-hele-study-pack h2,.sp-hele-study-pack h3{color:#111827}.sp-hele-print-exercise{border-top:1px solid #d1d5db;padding-top:16px;margin-top:16px}.sp-hele-answer-lines{height:220px;background:repeating-linear-gradient(to bottom,#fff 0,#fff 31px,#d1d5db 32px);border:1px solid #e5e7eb;border-radius:8px}.sp-hele-answer-lines.small{height:130px}.sp-hele-print-actions{margin:14px 0}.sp-hele-media-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin:16px 0}.sp-hele-video-frame{position:relative;width:100%;aspect-ratio:16/9;background:#020617;border:1px solid #334155;border-radius:18px;overflow:hidden}.sp-hele-video-frame iframe,.sp-hele-video-frame video{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}.sp-hele-video{width:100%;max-height:520px;background:#020617;border:1px solid #334155;border-radius:18px;display:block}
@media(max-width:760px){.sp-hele-focus-hero{display:block}.sp-hele-primary,.sp-hele-secondary{width:100%;margin-top:10px}.sp-hele-content{font-size:16px}}
@media print{body *{visibility:hidden!important}.sp-hele-shell,.sp-hele-shell *,.sp-hele-print-pack,.sp-hele-print-pack *{visibility:visible!important}.sp-hele-shell,.sp-hele-print-pack{position:absolute;left:0;top:0;width:100%;background:#fff!important;color:#111827!important}.sp-hele-focus-hero,.sp-hele-flow-step,.sp-hele-finish-card,.sp-hele-exercise-minimal,.sp-hele-study-pack{box-shadow:none!important;border:0!important;background:#fff!important;color:#111827!important;page-break-inside:avoid}.sp-hele-primary,.sp-hele-secondary,.sp-hele-actions,.sp-hele-step-label,.sp-hele-media-studio,video,iframe,audio{display:none!important}.sp-hele-answer,.sp-hele-reflection{border:1px solid #999!important;color:#111827!important;background:#fff!important}.sp-hele-content,.sp-hele-flow-step h2,.sp-hele-exercise-minimal h3{color:#111827!important}}

.sp-hele-self-rubric{border:1px solid #d9e6f2;background:#f8fbff;border-radius:14px;padding:16px;margin:12px 0}
.sp-hele-self-rubric h5{margin:12px 0 6px;color:#25496b}
.sp-hele-self-score{display:grid;gap:10px;margin-top:12px}
.sp-hele-self-score input{padding:8px;border:1px solid #c9d7e4;border-radius:8px;margin-left:6px;max-width:160px}
.sp-hele-self-score textarea{min-height:90px;border:1px solid #c9d7e4;border-radius:10px;padding:10px;width:100%}
.sp-hele-print-self-rubric{border-top:1px dashed #999;margin-top:16px;padding-top:10px}
@media print{.sp-hele-self-score input,.sp-hele-self-score textarea{border:1px solid #999}.sp-hele-support{display:block}}

/* SP-HELE Structured Self Rubric */
.sp-hele-rubric-help{color:#1e3a8a;background:#dbeafe;border:1px solid #bfdbfe;border-radius:12px;padding:10px 12px}
.sp-hele-rubric-table-wrap{overflow-x:auto;margin:12px 0}
.sp-hele-rubric-table{width:100%;border-collapse:separate;border-spacing:0;background:white;color:#0f172a;border:1px solid #d1d5db;border-radius:14px;overflow:hidden}
.sp-hele-rubric-table th,.sp-hele-rubric-table td{border-bottom:1px solid #e5e7eb;padding:10px;vertical-align:top;text-align:left}
.sp-hele-rubric-table th{background:#f1f5f9;font-weight:900;color:#0f172a}
.sp-hele-rubric-table tr:last-child td{border-bottom:0}
.sp-hele-rubric-choice{display:grid;gap:6px;font-size:13px;line-height:1.35;cursor:pointer;min-width:130px}
.sp-hele-rubric-choice input{transform:scale(1.15);margin:0 0 4px 0}
.sp-hele-self-score-result{background:#0f172a;color:#fff;border-radius:14px;padding:14px;margin:14px 0;font-size:18px}
.sp-hele-self-score-number{color:#fbbf24;font-weight:900}
.sp-hele-print-rubric-table{width:100%;border-collapse:collapse;margin:10px 0;color:#111827}
.sp-hele-print-rubric-table th,.sp-hele-print-rubric-table td{border:1px solid #999;padding:7px;text-align:left}
@media print{.sp-hele-rubric-table,.sp-hele-print-rubric-table{color:#111827!important;background:#fff!important}.sp-hele-rubric-table th,.sp-hele-rubric-table td{border:1px solid #999!important}.sp-hele-self-score-result{background:#fff!important;color:#111827!important;border:1px solid #999}}

/* SP-HELE v1.5 Exercise Engine */
.sp-hele-exercise-progress{display:inline-flex;align-items:center;background:#e0f2fe;color:#075985;border:1px solid #bae6fd;border-radius:999px;padding:6px 12px;font-weight:900;margin-bottom:10px}
.sp-hele-after-panel{margin-top:14px;border:1px solid #cbd5e1;background:#f8fafc;color:#0f172a;border-radius:18px;padding:18px}
.sp-hele-keyword-result{margin:12px 0}
.sp-hele-keyword-card{border-radius:16px;padding:14px 16px;border:1px solid #cbd5e1;background:#f8fafc;color:#0f172a}
.sp-hele-keyword-card.is-pass{border-color:#86efac;background:#f0fdf4;color:#14532d}
.sp-hele-keyword-card.is-review{border-color:#fcd34d;background:#fffbeb;color:#78350f}
.sp-hele-check-answer{margin-top:10px}

/* SP-HELE v1.6.0 Authentication & Role Dashboards */
.sp-hele-login-card{
    max-width:520px;margin:40px auto;padding:30px;border-radius:22px;background:#fff;box-shadow:0 20px 60px rgba(15,23,42,.12);border:1px solid rgba(15,23,42,.08)
}
.sp-hele-login-card h2{margin-top:0;color:#0f172a}
.sp-hele-login-form{display:grid;gap:16px;margin-top:20px}
.sp-hele-login-form label{display:grid;gap:7px;font-weight:700;color:#334155}
.sp-hele-login-form input[type="text"],.sp-hele-login-form input[type="password"]{width:100%;padding:13px 14px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc}
.sp-hele-remember{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;font-weight:500!important}
.sp-hele-login-error{padding:12px 14px;border-radius:12px;background:#fee2e2;color:#991b1b;font-weight:700}
.sp-hele-login-switcher{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px;border-top:1px solid #e2e8f0;padding-top:16px}
.sp-hele-login-switcher a{padding:8px 12px;border-radius:999px;background:#f1f5f9;text-decoration:none;color:#0f172a;font-weight:700}
.sp-hele-student-dashboard .sp-hele-mission-box,
.sp-hele-teacher-dashboard,
.sp-hele-parent-dashboard,
.sp-hele-admin-dashboard{border-radius:22px}
