/* Shared BioPed design system. Loaded after page-specific component styles. */
:root { --bp-bg:#f5f7f4; --bp-surface:#fff; --bp-ink:#203c34; --bp-muted:#697c6f; --bp-green:#164e3c; --bp-dark:#123f35; --bp-lime:#d5ed91; --bp-line:#e1e8de; --bp-soft:#edf4e7; }
.bioped-theme { margin:0; background:var(--bp-bg); color:var(--bp-ink); font-family:"Segoe UI",Arial,sans-serif; }
.bioped-theme * { box-sizing:border-box; font-family:inherit; }
.bioped-theme :is(a,button,input,select,textarea):focus-visible { outline:3px solid #568831; outline-offset:3px; }
.bioped-theme :is(button,input,select,textarea) { accent-color:var(--bp-green); }
.bioped-theme a { text-decoration:none; }
.bioped-theme :is(h1,h2,h3,h4) { letter-spacing:-.4px; overflow-wrap:anywhere; }
.bioped-theme :is(.app-page-shell,.student-dashboard-shell) { display:block; max-width:none; padding:0; margin:0; }
.bioped-theme :is(.app-page-main,.student-main) { margin-left:244px; padding:36px 44px; min-width:0; background:none; border:0; border-radius:0; box-shadow:none; backdrop-filter:none; max-width:1496px; }
.bp-sidebar { position:fixed; inset:0 auto 0 0; z-index:10; width:244px; padding:35px 20px 22px; background:#fff; border-right:1px solid var(--bp-line); display:flex; flex-direction:column; overflow-y:auto; }
.bp-brand { display:flex; align-items:center; gap:10px; padding:0 12px; margin-bottom:40px; color:var(--bp-ink); text-decoration:none; }
.bp-brand img { width:48px; height:48px; object-fit:contain; }
.bp-brand>span { font-size:28px; font-weight:750; letter-spacing:-1px; }
.bp-brand small { display:block; font-size:9px; font-weight:650; letter-spacing:1.7px; color:#74837b; margin-top:1px; }
.bp-menu { display:flex; flex:1; flex-direction:column; }
.bp-nav-label { font-size:10px; letter-spacing:1.7px; font-weight:700; color:#7c8a82; margin:0 15px 15px; }
.bp-nav { display:grid; gap:6px; }
.bp-nav a,.bp-logout { display:flex; align-items:center; gap:13px; padding:14px; border-radius:10px; font-size:13px; font-weight:600; color:#63746b; line-height:1.35; }
.bp-sidebar svg { width:20px; height:20px; flex-shrink:0; }
.bp-nav a:hover,.bp-logout:hover { background:#f1f5ef; color:var(--bp-green); }
.bp-nav a.active { background:var(--bp-green); color:white; box-shadow:0 5px 14px #164e3c18; }
.bp-sidebar-bottom { margin-top:auto; padding-top:30px; }
.bp-note { display:flex; align-items:center; gap:9px; font-size:12px; padding:16px 12px; color:#66796b; border-bottom:1px solid var(--bp-line); margin-bottom:12px; }
.bp-note svg { color:#54875f; }
.bp-menu-toggle { display:none; }
.bioped-theme :is(.app-page-topbar,.student-topbar,.editor-header) { background:none; border:0; box-shadow:none; padding:0; margin:0 0 28px; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.bioped-theme .student-topbar { justify-content:flex-end; }
.bioped-theme :is(.app-page-title h2,.editor-heading h1) { font-size:28px; line-height:1.3; font-weight:650; color:var(--bp-ink); margin:0 0 8px; }
.bioped-theme .app-page-title { min-width:0; flex:1 1 240px; }
.bioped-theme .app-page-title p { color:var(--bp-muted); font-size:13px; line-height:1.7; }
.bioped-theme :is(.app-page-user,.student-profile) { background:none; border:0; box-shadow:none; padding:0; min-width:0; gap:10px; }
.bioped-theme :is(.app-page-user strong,.student-profile strong) { color:var(--bp-ink); font-size:13px; overflow-wrap:anywhere; }
.bioped-theme :is(.app-page-user span,.student-profile span) { color:var(--bp-muted); font-size:11px; }
.bioped-theme :is(.app-page-avatar,.student-profile-avatar,.supervision-initial) { background:#e4ecdc; color:#396444; box-shadow:none; border:3px solid white; width:42px; height:42px; flex-shrink:0; }
.bioped-theme :is(.app-page-panel,.qr-live-card,.qr-module-card,.qr-summary-card,.qr-report-card,.qr-report-board,.qr-profile-card,.student-stat-card,.ranking-stat-card,.lab-card,.practice-card,.test-question-card,.student-course-card,.result-card,.live-avatar-panel,.glossary-card,.wordwall-frame-card) { background:var(--bp-surface); border:1px solid var(--bp-line); border-radius:15px; box-shadow:none; min-width:0; }
.bioped-theme :is(.app-page-panel,.qr-live-card,.qr-module-card,.qr-report-board) { padding:24px; }
.bioped-theme :is(.app-page-panel h3,.qr-live-card h3,.student-section-head h3,.lab-card h3,.practice-card h3,.student-course-card h4) { color:var(--bp-ink); font-size:20px; font-weight:650; line-height:1.4; }
.bioped-theme :is(.app-info-item,.qr-live-item,.qr-chat-item,.step-box) { background:#f7f9f5; border-color:var(--bp-line); border-radius:10px; color:var(--bp-ink); box-shadow:none; }
.bioped-theme :is(.app-info-item p,.app-info-item span,.student-course-copy p,.student-course-copy small,.qr-live-item p,.lab-card p,.practice-card p) { color:var(--bp-muted); line-height:1.75; }
.bioped-theme :is(.app-hero-panel,.qr-hero-card) { background:var(--bp-dark); color:white; border:0; border-radius:22px; padding:32px; box-shadow:none; }
.bioped-theme :is(.app-hero-panel,.qr-hero-card) :is(h1,h2,h3,h4) { color:#f3f8ec; }
.bioped-theme :is(.app-hero-panel,.qr-hero-card) :is(p,.student-date,.practice-hero-kicker,.test-hero-kicker,.test-section-kicker) { color:#cfddd5; }
.bioped-theme .qr-hero-copy h2 { font-size:32px; font-weight:600; }
.bioped-theme :is(.ranking-pill,.test-section-pill,.glossary-badge,.microscope-chip,.test-difficulty-badge) { background:var(--bp-soft); color:#44633b; border-color:#dbe7d3; box-shadow:none; }
.bioped-theme :is(.test-quiz-flow-step,.test-quiz-flow-step.active,.test-quiz-flow-step.finish) { background:#ffffff12; border-color:#ffffff35; color:white; box-shadow:none; }
.bioped-theme :is(.test-quiz-flow-step strong,.test-quiz-flow-step span) { color:white; }
.bioped-theme :is(.practice-number,.step-number,.test-question-number,.qr-module-icon) { background:var(--bp-soft); color:#466c3d; box-shadow:none; }
.bioped-theme :is(.test-difficulty-card,.test-difficulty-card.easy,.test-difficulty-card.medium,.test-difficulty-card.hard) { background:white; border:1px solid var(--bp-line); box-shadow:none; border-radius:15px; }
.bioped-theme :is(.test-difficulty-card h3,.test-difficulty-card strong,.ranking-stat-card strong,.qr-summary-card strong,.qr-report-card strong,.student-stat-card strong) { color:var(--bp-green); }
.bioped-theme :is(.test-difficulty-card p,.test-difficulty-card span) { color:var(--bp-muted); }
.bioped-theme :is(.app-primary-link,.student-primary-btn,.mini-link-btn,.test-submit-btn,.qr-action-btn,.editor-button,.view-btn) { display:inline-flex; align-items:center; justify-content:center; gap:8px; background:var(--bp-green); color:white; border:1px solid var(--bp-green); border-radius:9px; padding:11px 17px; min-height:42px; font-size:13px; font-weight:600; box-shadow:none; text-decoration:none; cursor:pointer; }
.bioped-theme :is(.app-primary-link,.student-primary-btn,.mini-link-btn,.test-submit-btn,.qr-action-btn,.editor-button,.view-btn):hover { background:#236148; color:white; transform:none; box-shadow:none; }
.bioped-theme :is(.app-secondary-link,.test-secondary-btn,.editor-button.secondary,.editor-icon-button) { background:white; color:var(--bp-green); border:1px solid #cbdac4; border-radius:9px; box-shadow:none; font-size:13px; }
.bioped-theme :is(.app-secondary-link,.test-secondary-btn,.editor-button.secondary,.editor-icon-button):hover { background:var(--bp-soft); color:var(--bp-green); }
.bioped-theme :is(.app-hero-panel,.qr-hero-card) .app-secondary-link { background:transparent; border-color:#789586; color:white; }
.bioped-theme :is(.admin-form,.course-form,.lab-form,.topic-form,.lab-step-form) button { background:var(--bp-green); color:white; border:0; border-radius:9px; padding:12px 17px; box-shadow:none; }
.bioped-theme :is(input:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=color]):not([type=hidden]),select,textarea) { background:white; color:var(--bp-ink); border:1px solid #cdd9c8; border-radius:9px; padding:12px 13px; font-size:14px; max-width:100%; min-width:0; box-shadow:none; }
.bioped-theme input::placeholder,.bioped-theme textarea::placeholder { color:#7a887b; }
.bioped-theme :is(.test-option,.test-options label) { background:#f8faf6; border-color:var(--bp-line); border-radius:10px; color:var(--bp-ink); }
.bioped-theme .test-option:has(input:checked) { background:var(--bp-soft); border-color:#759664; }
.bioped-theme .table-wrapper { max-width:100%; overflow-x:auto; border:1px solid var(--bp-line); border-radius:12px; }
.bioped-theme .users-table { border-collapse:collapse; }
.bioped-theme .users-table th { background:var(--bp-soft); color:#42603b; border-color:var(--bp-line); font-size:12px; }
.bioped-theme .users-table td { border-color:var(--bp-line); color:var(--bp-ink); font-size:13px; }
.bioped-theme .users-table tr:hover td { background:#f7faf4; }
.bioped-theme .delete-btn { background:#faeae6; color:#a43c30; border:1px solid #efd0c7; border-radius:8px; box-shadow:none; }
.bioped-theme :is(.student-course-art,.practice-card)::before { box-shadow:none; }
.bioped-theme .student-course-art { background:var(--bp-soft); box-shadow:none; }
.bioped-theme :is(.student-course-card,.lab-card,.practice-card):hover { border-color:#adc5a4; box-shadow:0 8px 22px #203c3408; transform:translateY(-2px); }
.bioped-theme :is(.editor-back,.editor-row-copy a:hover,.student-section-head a,.supervision-student-name a) { color:var(--bp-green); }
.bioped-theme :is(.editor-tabs,.editor-list,.editor-row,.editor-form-actions,.supervision-student-row,.supervision-roster,.supervision-stats,.teacher-content-entry) { border-color:var(--bp-line); }
.bioped-theme .editor-tabs a[aria-current] { color:var(--bp-green); border-color:var(--bp-green); }
.bioped-theme :is(.editor-document,.editor-catalog,.supervision-board,.supervision-section) { background:white; border:1px solid var(--bp-line); border-radius:15px; padding:24px; }
.bioped-theme :is(.app-empty,.editor-empty,.supervision-empty) { color:var(--bp-muted); line-height:1.7; }
.bioped-theme .student-growth-board { background:#edf4e7; border-color:var(--bp-line); box-shadow:none; }
.bioped-theme .student-growth-step.active strong { background:var(--bp-green); box-shadow:none; }
.bioped-theme :is(.result-progress-fill,.student-course-progress-fill) { background:#5c8950; }
.bioped-theme :is(.microscope-section-head h3,.skeleton-stage-head h3) { color:var(--bp-ink); }
.bioped-theme :is(.microscope-slide-btn.active,.microscope-objective-btn.active,.skeleton-bone-card.active) { background:var(--bp-soft); border-color:#709366; color:var(--bp-green); }
.bioped-theme :is(.microscope-stage-badges span,.microscope-kicker) { color:var(--bp-green); }
.bioped-theme .microscope-lab-top { flex-wrap:wrap; }
.bioped-theme :is(.app-page-grid,.qr-live-grid,.qr-report-grid,.qr-module-grid,.student-course-grid,.lab-grid,.practice-grid) { gap:18px; }
.bioped-theme :is(.qr-hero-card,.app-page-grid,.qr-live-grid,.qr-report-grid,.qr-module-grid) > * { min-width:0; }
.bioped-theme :is(video,iframe,audio) { max-width:100%; }
.bioped-theme [hidden] { display:none!important; }
/* Authentication */
.bp-login-shell { min-height:100vh; display:grid; grid-template-columns:1.1fr 1fr; margin:0; padding:0; max-width:none; }
.bp-login-story { background:var(--bp-dark); color:white; padding:44px 9%; display:flex; flex-direction:column; position:relative; overflow:hidden; }
.bp-login-story::after { content:""; position:absolute; width:460px; height:460px; border:1px solid #ffffff0b; border-radius:50%; bottom:-260px; right:-130px; box-shadow:0 0 0 60px #ffffff03,0 0 0 120px #ffffff03; pointer-events:none; }
.bp-login-story .bp-brand { color:white; padding:0; margin:0; }
.bp-login-story .bp-brand small { color:#b6cab9; }
.bp-login-story .bp-brand img { background:white; border-radius:12px; }
.bp-login-intro { margin:auto 0; padding:65px 0; position:relative; z-index:1; }
.bp-login-kicker { font-size:10px; font-weight:700; letter-spacing:1.9px; color:#748974; margin:0 0 16px; }
.bp-login-story .bp-login-kicker { color:#c8dda8; }
.bp-login-intro h1 { font-size:clamp(32px,3.6vw,54px); line-height:1.18; font-weight:600; letter-spacing:-1.8px; margin:20px 0; }
.bp-login-intro h1 span { color:var(--bp-lime); }
.bp-login-intro>p { color:#c5d9cb; font-size:15px; line-height:1.85; max-width:420px; }
.bp-login-features { display:grid; gap:20px; margin-top:38px; }
.bp-login-features>div { display:flex; align-items:center; gap:14px; color:#e2edde; font-size:13px; }
.bp-login-features svg { width:20px; height:20px; color:var(--bp-lime); }
.bp-login-foot { font-size:11px; color:#afc7b8; line-height:1.6; }
.bp-login-form-panel { display:grid; place-items:center; padding:50px 32px; }
.bp-login-form-wrap { width:100%; max-width:370px; }
.bp-login-icon { width:52px; height:52px; background:#e7efdf; color:#54754a; border-radius:15px; display:grid; place-items:center; margin-bottom:28px; }
.bp-login-icon svg { width:27px; height:27px; }
.bp-login-form-wrap h2 { font-size:32px; margin:0 0 12px; font-weight:650; }
.bp-login-description { font-size:14px; color:var(--bp-muted); line-height:1.7; margin-bottom:30px; }
.bp-login-form { display:flex; flex-direction:column; gap:10px; }
.bp-login-form label { font-size:13px; font-weight:600; }
.bp-login-form input { min-height:48px; margin-bottom:12px; width:100%; }
.bp-login-form button { background:var(--bp-green); border:0; border-radius:9px; padding:15px; color:white; font-size:14px; font-weight:600; display:flex; align-items:center; justify-content:center; gap:14px; margin-top:6px; cursor:pointer; }
.bp-login-form button:hover { background:#236148; }
.bp-login-form button svg { width:18px; height:18px; }
.bp-login-help { color:var(--bp-muted); font-size:12px; line-height:1.8; margin-top:24px; padding-top:22px; border-top:1px solid var(--bp-line); }
.bp-login-error { background:#faeae6; color:#993b2d; border:1px solid #efcfc5; border-radius:9px; padding:12px; font-size:13px; margin-bottom:18px; }
@media(max-width:1200px) {
 .bp-sidebar { width:218px; padding-left:14px; padding-right:14px; }
 .bioped-theme :is(.app-page-main,.student-main) { margin-left:218px; padding:28px; }
}
@media(max-width:1000px) {
 .bioped-theme :is(.app-page-panel.half,.app-page-panel.third,.app-page-panel.two-third,.app-page-panel.quarter) { grid-column:1/-1; }
 .bioped-theme :is(.student-course-grid,.qr-live-grid,.qr-module-grid,.qr-report-grid,.qr-dual-columns,.lab-grid,.test-difficulty-grid.wide,.practice-grid) { grid-template-columns:minmax(0,1fr); }
 .bioped-theme .qr-hero-card { grid-template-columns:minmax(0,1fr); }
 .bioped-theme .qr-hero-visual { display:none; }
 .bioped-theme .qr-avatar-card { max-width:100%; }
 .bioped-theme .supervision-student-row { grid-template-columns:minmax(0,1fr) auto; }
}
@media(max-width:760px) {
 .bp-sidebar { position:static; width:100%; padding:14px 20px; border-right:0; border-bottom:1px solid var(--bp-line); display:flex; flex-direction:row; align-items:center; flex-wrap:wrap; overflow:visible; }
 .bp-brand { margin:0; padding:0; }
 .bp-brand img { width:37px; height:37px; }
 .bp-brand>span { font-size:23px; }
 .bp-brand small { font-size:7px; }
 .bp-menu-toggle { display:flex; align-items:center; gap:9px; margin-left:auto; border:1px solid #dce5d7; background:white; color:#244c39; padding:10px 12px; border-radius:8px; font-size:12px; cursor:pointer; }
 .bp-menu { display:none; flex-basis:100%; padding-top:25px; }
 .bp-menu-open .bp-menu { display:flex; }
 .bp-nav { grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
 .bp-nav a { font-size:12px; padding:12px 9px; gap:8px; }
 .bp-sidebar-bottom { padding-top:12px; }
 .bp-note { display:none; }
 .bp-logout { padding:12px 9px; }
 .bioped-theme :is(.app-page-main,.student-main) { margin:0; padding:25px 20px; }
 .bioped-theme :is(.app-page-title h2,.editor-heading h1) { font-size:24px; }
 .bioped-theme :is(.app-page-panel,.qr-live-card,.qr-module-card,.qr-report-board,.editor-document,.editor-catalog,.supervision-board,.supervision-section) { padding:20px; }
 .bioped-theme :is(.app-hero-panel,.qr-hero-card) { padding:26px 22px; }
 .bioped-theme .qr-hero-copy h2 { font-size:26px; }
 .bioped-theme :is(.app-page-panel h3,.student-section-head h3) { font-size:18px; }
 .bioped-theme :is(.app-page-topbar,.editor-header) { gap:14px; margin-bottom:22px; }
 .bioped-theme :is(.student-stats,.qr-summary-grid,.ranking-card-grid,.qr-portfolio-stats,.qr-profile-strip,.supervision-stats,.supervision-stats.roster-stats) { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .bioped-theme :is(.test-quiz-flow,.test-submit-row,.student-section-head,.editor-header,.editor-tabs) { flex-wrap:wrap; }
 .bioped-theme .editor-fields { grid-template-columns:minmax(0,1fr); }
 .bioped-theme :is(.student-course-card,.student-growth-board) { grid-template-columns:minmax(0,1fr); }
 .bioped-theme .student-course-art { display:none; }
 .bioped-theme :is(.microscope-dashboard,.microscope-dashboard-simple,.skeleton-lab-grid) { grid-template-columns:minmax(0,1fr); }
 .bp-login-shell { grid-template-columns:1fr; }
 .bp-login-story { padding:28px 24px; }
 .bp-login-intro { padding:30px 0 0; }
 .bp-login-intro h1 { font-size:34px; }
 .bp-login-intro>p { margin-bottom:0; font-size:13px; }
 .bp-login-features,.bp-login-foot { display:none; }
 .bp-login-form-panel { padding:35px 24px; }
 .bp-login-icon { display:none; }
 .bp-login-form-wrap { max-width:430px; }
}
@media(prefers-reduced-motion:reduce) { .bioped-theme *, .bioped-theme *::before, .bioped-theme *::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }

/* Supporting controls use the same palette without changing lab illustrations. */
.bioped-theme :is(.test-section-kicker,.test-hero-kicker) { background:var(--bp-soft); color:#42603b; }
.bioped-theme :is(.test-section-description,.test-difficulty-level-copy p,.test-difficulty-meta) { color:var(--bp-muted); }
.bioped-theme .test-difficulty-level-copy h4 { color:var(--bp-ink); }
.bioped-theme .student-course-art::before { background:#b9ceb0; }
.bioped-theme .student-course-art::after { background:#86a576; }
.bioped-theme :is(.objective-btn.active,.slide-btn.active) { background:var(--bp-green); color:white; border-color:var(--bp-green); }

.bioped-theme .practice-card h4 { color:var(--bp-ink); min-width:0; }
@media(max-width:760px) {
 .bioped-theme .practice-card { flex-wrap:wrap; gap:12px; }
 .bioped-theme .practice-card p { flex-basis:100%; }
 .bioped-theme .practice-link-btn { margin-left:auto; max-width:100%; }
}

.bioped-theme .live-avatar-info-card { width:min(800px,100%); min-height:0; }
.bioped-theme .live-avatar-info-card .qr-avatar-visual { width:100%; height:auto; aspect-ratio:16/9; }
.bioped-theme .live-avatar-info-card .qr-avatar-photo { width:100%; height:100%; object-fit:contain; }

.bioped-theme .profile-avatar-preview { grid-template-columns:minmax(0,1fr); justify-items:center; gap:12px; text-align:center; margin:0; }
.bioped-theme .profile-avatar-preview .qr-avatar-copy { min-width:0; width:100%; }
.bioped-theme .profile-avatar-preview .qr-avatar-copy h4 { margin:0 0 5px; }
.bioped-theme .profile-avatar-preview .qr-avatar-copy p { font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.bioped-theme :is(.student-section-head span,.qr-live-item strong,.test-section-description) { color:var(--bp-muted); }
.bioped-theme .profile-stats .student-stat-icon { background:var(--bp-soft); color:#54754a; box-shadow:none; }
.bioped-theme .profile-stats .student-stat-icon svg { width:26px; height:26px; }

.profile-message-entry { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; background:#fff; border:1px solid var(--bp-line); border-radius:15px; padding:22px 24px; margin-bottom:22px; }
.profile-message-entry h3 { color:var(--bp-ink); font-size:20px; margin:0 0 8px; }
.profile-message-entry p { color:var(--bp-muted); font-size:13px; line-height:1.7; }
.profile-message-count { display:inline-block; background:var(--bp-soft); color:var(--bp-green); border-radius:20px; padding:4px 9px; font-size:11px; vertical-align:middle; }

/* Login video beside the form; preserve the complete video frame. */
.bp-login .bp-login-shell { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(320px,1fr); min-height:100vh; min-height:100svh; align-items:center; background:#f4f7f3; }
.bp-login-media { min-width:0; padding:24px; display:grid; place-items:center; }
.bp-login-video { display:block; width:100%; height:auto; max-height:90vh; max-height:90svh; object-fit:contain; border-radius:18px; }
.bp-login .bp-login-form-panel { min-width:0; padding:40px 32px; }
.bp-login .bp-login-form-wrap { box-sizing:border-box; width:100%; max-width:420px; padding:28px 20px; }
@media (max-width:600px) {
    .bp-login .bp-login-shell { grid-template-columns:minmax(0,1fr); }
    .bp-login-media { padding:16px 20px 0; }
    .bp-login-video { max-height:48svh; }
    .bp-login .bp-login-form-panel { padding:16px 24px 32px; }
    .bp-login .bp-login-form-wrap { padding:12px 0; }
}

.bp-login-logo { display:block; width:150px; height:150px; object-fit:contain; margin:0 auto 24px; }
