/* Mayaneth Education V31 — shared responsive application theme. */
:root{--edm-ink:#1c2118;--edm-muted:#697160;--edm-line:#e1e7d9;--edm-accent:#547f24;--edm-soft:#eff7e5;--primary:#547f24;--primary-dark:#42671b;--primary-soft:#eff7e5;--bg:#f5f7f2}
html{scroll-padding-top:100px}body{background:#f5f7f2!important;color:var(--edm-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;line-height:1.5}
[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.layout{display:flex!important;align-items:stretch;min-height:100vh;width:100%;max-width:100%}
.sidebar{width:244px!important;min-width:244px;flex:0 0 244px;position:sticky!important;top:0;height:100vh!important;height:100dvh!important;overflow-y:auto!important;align-self:flex-start;padding:28px 18px!important;border-radius:0!important;background:#10120e!important;box-shadow:none!important;border-right:1px solid #292e23}
.sidebar .brand{padding:0 12px 24px!important;margin-bottom:18px!important;border-bottom:1px solid #ffffff16;text-align:left!important}.sidebar .brand-logo-img{width:145px!important;max-width:100%;height:auto}.sidebar .brand small{display:block;color:#b6c1a9;margin-top:8px;letter-spacing:.06em;font-size:11px;text-transform:uppercase}
.sidebar a{display:flex!important;align-items:center;gap:11px;padding:11px 13px!important;border-radius:10px!important;margin:3px 0!important;font-size:13px!important;font-weight:500!important;color:#c2cbb8!important;background:transparent!important;border:1px solid transparent!important;line-height:1.4}
.sidebar a:hover{background:#ffffff0b!important;color:#fff!important}.sidebar a.active{color:#fff!important;background:#547f24!important;border-color:#8fc642!important;box-shadow:none!important}.sidebar .nav-icon{width:18px;height:18px;flex-shrink:0}.mobile-menu-toggle{display:none!important}
.main,.student-main{min-width:0;flex:1;width:calc(100% - 244px)!important;max-width:1440px!important;padding:32px clamp(20px,3vw,48px)!important;margin:0 auto!important}
.topbar,.page-header{background:transparent!important;border:0!important;box-shadow:none!important;padding:0 0 24px!important;gap:16px;flex-wrap:wrap;align-items:center}.topbar h2,.page-header h2{color:var(--edm-ink);font-size:25px!important;letter-spacing:-.035em}.topbar p,.page-header p{color:var(--edm-muted)!important;font-size:13px}.card{background:#fff!important;border:1px solid var(--edm-line)!important;border-radius:16px!important;box-shadow:0 3px 16px #1c211804!important;padding:24px!important;margin-bottom:24px}
h1,h2,h3{letter-spacing:-.035em;overflow-wrap:anywhere}p{overflow-wrap:anywhere}h3{font-size:18px}a,button,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button,.btn,.prem-btn,.student-primary-btn{border-radius:9px!important;box-shadow:none!important;font-size:13px!important;font-weight:650!important;min-height:42px;line-height:1.4}
button,.btn,.prem-btn,.student-primary-btn{background:var(--edm-accent);color:#fff}button:hover,.btn:hover,.prem-btn:hover,.student-primary-btn:hover{background:#42671b}.btn-muted{background:#edf2f6!important;color:#41546a!important;border:1px solid #dfe7ee!important}.btn-danger{background:#b42333!important}.btn:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #8fc642;outline-offset:3px}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{border:1px solid #dce4ec!important;border-radius:9px!important;background:#fff!important;color:var(--edm-ink);font-family:inherit;font-size:14px!important;min-height:44px;width:100%;box-shadow:none!important}input:focus,select:focus,textarea:focus{outline:2px solid #8fc64244!important;border-color:#547f24!important}input[type=checkbox],input[type=radio]{accent-color:#547f24}label{font-size:13px;font-weight:600}label small{font-weight:400;color:var(--edm-muted)}textarea{resize:vertical}.form-group{min-width:0}
.table-wrap,.pay-table-wrap,.admin-table-wrap{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}table{width:100%;border-collapse:collapse;font-size:13px}th{font-size:11px!important;text-transform:uppercase;letter-spacing:.05em;color:#63758a!important;background:#f5f8fa!important;padding:13px!important;border-bottom:1px solid var(--edm-line)!important;white-space:nowrap}td{padding:15px 13px!important;border-bottom:1px solid #eef2f6!important;vertical-align:middle!important}td .btn{margin:3px!important}tr:hover td{background:#f9fbfc}.actions{min-width:170px}.alert{border-radius:10px;line-height:1.6}.alert-success{background:#e8f6ef;color:#1b6844;border:1px solid #cdebdc}.alert-error{background:#fff0f0;color:#a52636;border:1px solid #f0d4d8}
.admin-kpi,.student-stat-card{background:#fff!important;border:1px solid var(--edm-line)!important;border-radius:13px!important;box-shadow:none!important}.admin-kpi strong,.student-stat-card strong{color:var(--edm-ink)!important}.admin-kpi>span{font-size:12px!important}.student-welcome-card{background:#fff!important;border:1px solid var(--edm-line)!important;border-radius:16px!important;box-shadow:none!important}.student-welcome-copy h1{color:var(--edm-ink)!important}.student-welcome-copy p{color:var(--edm-muted)!important}.student-avatar{background:#e8f4f1!important;color:#547f24!important}.student-eyebrow,.student-section-kicker{color:#547f24!important;letter-spacing:.12em}.student-meta-row>span{background:#f2f6f8!important;color:#50677c!important;border:1px solid #e7edf1!important}.student-outline-btn{color:#547f24!important;border-color:#c3ded8!important;background:#fff!important;box-shadow:none!important}.student-course-card,.student-exam-card,.asg-card,.exam-card,.q-box{border:1px solid var(--edm-line)!important;border-radius:14px!important;box-shadow:none!important;background:#fff}.student-course-card:hover,.student-exam-card:hover{box-shadow:0 10px 24px #1c211808!important}.student-course-cover--1{background:#e6f2ef!important;color:#267f72!important}.student-course-cover--2{background:#e9edf7!important;color:#5868a4!important}.student-course-cover--3{background:#fbefdf!important;color:#a37537!important}.student-course-cover--4{background:#e9f2f8!important;color:#477e9b!important}.student-course-cover{border-radius:12px!important}.student-course-grid,.student-exam-grid,.admin-kpi-grid{gap:16px!important}.student-section-head h2{font-size:23px!important}.student-score-row strong{color:#547f24!important}.student-text-link{color:#547f24!important}.student-status-pill,.student-access-pill{box-shadow:none!important}
.auth-page{background:radial-gradient(ellipse at 20% 20%,#246055 0,transparent 55%),#10120e!important}.auth-card{border-radius:20px!important;box-shadow:0 20px 80px #0003!important}.auth-card button{background:#547f24!important}.auth-card .logo{color:var(--edm-ink)!important}
.edm-hero{display:flex;justify-content:space-between;align-items:center;gap:32px;background:#eff6e5;border:1px solid #d9e9c6;border-radius:18px;padding:32px 36px;margin-bottom:24px;position:relative;overflow:hidden}.edm-hero h1{font-size:36px;line-height:1.12;margin:12px 0 14px;color:#293b1c;font-weight:750}.edm-hero p{max-width:510px;font-size:14px;color:#5f7250;margin:0}.edm-kicker{font-size:10px;letter-spacing:.15em;font-weight:750;color:#637850;text-transform:uppercase;display:block}.edm-hero-metric{background:#ffffff80;border:1px solid #ffffffa0;border-radius:15px;min-width:155px;padding:20px 24px;display:flex;flex-direction:column;gap:2px}.edm-hero-metric strong{font-size:46px;line-height:1.1;color:#547f24}.edm-hero-metric span{font-size:13px;font-weight:650}.edm-hero-metric small{font-size:11px;color:#607c74;margin-top:7px}.edm-hero--compact h1{font-size:28px}
.edm-create summary{display:flex;align-items:center;justify-content:space-between;gap:14px;list-style:none;cursor:pointer}.edm-create summary::-webkit-details-marker{display:none}.edm-create summary strong{display:block;font-size:18px;margin-top:4px}.edm-plus{display:grid;place-items:center;font-size:24px;width:34px;height:34px;border-radius:9px;background:var(--edm-soft);color:#547f24}.edm-create[open] .edm-plus{transform:rotate(45deg)}.edm-create-form{margin-top:22px;border-top:1px solid var(--edm-line);padding-top:24px}.edm-form-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:0 20px}.edm-batch-field{border:0;padding:0;margin:18px 0 24px;min-width:0}.edm-batch-field legend{font-weight:700;font-size:15px}.edm-help{font-size:12px;color:var(--edm-muted);line-height:1.6;margin:8px 0 16px}.edm-batch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.edm-batch-choice{display:flex!important;align-items:center;gap:12px;padding:14px 16px;margin:0;min-height:56px;background:#f8fafb;border:1px solid var(--edm-line);border-radius:10px;cursor:pointer}.edm-batch-choice:has(input:checked){background:#eef8f4;border-color:#9bcabf}.edm-batch-choice input{width:18px!important;height:18px;flex-shrink:0;margin:0}.edm-batch-choice strong{font-size:13px}.edm-batch-choice small{display:block;font-size:11px;margin-top:4px}.edm-batch-choice.is-original{cursor:default}.edm-form-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:18px;border-top:1px solid var(--edm-line)}.edm-form-footer .edm-help{margin:0}.edm-visibility{max-width:420px}.edm-library-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:30px 0 18px}.edm-library-head h2{margin:4px 0;font-size:24px}.edm-search{margin:0;width:290px}.edm-search input{background:#fff!important}.edm-paper-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:18px}.edm-paper-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--edm-line);border-radius:15px;background:#fff;padding:24px}.edm-paper-card h3{font-size:20px;line-height:1.35;margin:8px 0 16px;color:var(--edm-ink)}.edm-paper-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.edm-paper-icon{width:42px;height:42px;display:grid;place-items:center;background:#f0f5f7;border-radius:11px;color:#5d7485;font-size:25px}.edm-status{font-size:10px;font-weight:700;border-radius:6px;padding:5px 9px;background:#f0f3f6;color:#66758a}.edm-status--active{background:#e8f6ec;color:#28854e}.edm-status--draft{background:#fff4df;color:#9c6a1d}.edm-paper-meta{display:flex;flex-wrap:wrap;gap:7px 14px;color:#748398;font-size:11px;margin-bottom:18px}.edm-batch-tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:22px}.edm-batch-tags span{background:#f2f6f8;border:1px solid #e7edf2;border-radius:6px;padding:4px 8px;color:#547086;font-size:10px}.edm-assign-btn{text-align:center;margin-top:auto;background:#edf7f3!important;color:#547f24!important;border:1px solid #d8ebe3!important;display:block;padding:11px!important}.edm-paper-actions{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #edf1f5;padding-top:15px;margin-top:18px}.edm-paper-actions a{font-size:12px;font-weight:600;color:#63798e}.edm-delete-form{margin-top:12px}.edm-text-danger{background:transparent!important;color:#aa5260!important;font-size:11px!important;padding:0!important;min-height:28px!important;font-weight:500!important}.edm-empty{text-align:center;color:var(--edm-muted)}
@media(min-width:769px) and (max-width:1100px){.sidebar{width:210px!important;min-width:210px;flex-basis:210px}.main,.student-main{width:calc(100% - 210px)!important;padding:24px!important}.admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.student-exam-grid,.student-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.edm-hero{padding:28px}.edm-hero h1{font-size:30px}}
@media(max-width:768px){
 .layout{display:block!important}.sidebar{width:100%!important;min-width:0;position:sticky!important;top:0;height:auto!important;min-height:0!important;max-height:85dvh;overflow-y:auto!important;padding:12px 16px!important;display:block!important;z-index:1000;border:0!important;border-radius:0!important}
 .sidebar .brand{display:inline-block;vertical-align:middle;width:calc(100% - 100px);padding:0!important;margin:0!important;border:0;text-align:left!important}.sidebar .brand-logo-img{width:112px!important;max-width:100%!important}.sidebar .brand small{display:none}.sidebar .brand br{display:none}.sidebar.nav-ready .mobile-menu-toggle{display:inline-flex!important;align-items:center;justify-content:center;vertical-align:middle;width:92px!important;min-height:40px;margin:0!important;border:1px solid #4c5c38!important;background:#252c1d!important;color:#fff!important;padding:8px!important;font-size:12px!important}
 .sidebar a{display:flex!important}.sidebar.nav-ready:not(.is-open) a{display:none!important}.sidebar.is-open a{display:flex!important}.sidebar.is-open .brand{margin-bottom:12px!important}
 .main,.student-main{width:100%!important;max-width:100%!important;padding:20px 16px!important;margin:0!important}.topbar,.page-header{padding-bottom:18px!important;gap:10px!important}.topbar h2,.page-header h2{font-size:23px!important}.topbar .btn{width:auto!important;align-self:flex-start}.card{padding:18px!important;margin-bottom:18px;border-radius:13px!important}.edm-hero{padding:24px;gap:20px;align-items:stretch;flex-direction:column;border-radius:14px;margin-bottom:18px}.edm-hero h1{font-size:30px}.edm-hero-metric{flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 16px;min-width:0}.edm-hero-metric strong{font-size:28px}.edm-hero-metric small{margin:0 0 0 auto}.edm-hero p{font-size:13px}.edm-form-grid{grid-template-columns:1fr;gap:0}.edm-form-footer{flex-direction:column;align-items:stretch}.edm-batch-grid{grid-template-columns:1fr}.edm-library-head{align-items:stretch;flex-direction:column;gap:12px;margin:24px 0 16px}.edm-search{width:100%}.edm-paper-card{padding:20px}.edm-paper-grid{grid-template-columns:1fr}.edm-hero--compact h1{font-size:25px}.edm-paper-actions a{padding:7px 2px}.student-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.student-stat-card{padding:14px!important}.student-stat-card small{font-size:11px!important}.student-stat-icon{width:32px!important;height:32px!important;font-size:17px!important;flex-shrink:0}.student-welcome-card{padding:20px!important}.student-welcome-card__content{align-items:flex-start!important;gap:14px!important}.student-welcome-copy h1{font-size:24px!important}.student-avatar{width:42px!important;height:42px!important;font-size:20px!important;flex-shrink:0}.student-meta-row{gap:6px!important;flex-wrap:wrap!important}.student-meta-row>span{font-size:10px!important}.student-course-grid,.student-exam-grid{grid-template-columns:1fr!important}.student-section-head{gap:10px!important}.student-section-head h2{font-size:21px!important}.admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.admin-kpi{padding:15px!important}.admin-kpi strong{font-size:24px!important}.grid[style*="grid-template-columns"],.admin-filter-grid{grid-template-columns:1fr!important}.exam-clean-wrap{display:flex!important;flex-direction:column!important}.exam-side-col{position:static!important;width:100%!important}.q-box{padding:18px!important;scroll-margin-top:90px}.q-box__title{font-size:17px!important}.exam-option{min-height:48px}.table-wrap table{min-width:620px}input:not([type=radio]):not([type=checkbox]),select,textarea{font-size:16px!important}.auth-page{padding:18px!important}.auth-card{padding:26px!important}.custom-modal__box{max-height:85dvh;overflow-y:auto}.edm-paper-actions{flex-direction:row!important}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(max-width:768px){.student-meta-row{display:flex!important;flex-direction:row!important}.student-meta-row>span{width:auto!important}.student-welcome-card__content{flex-direction:row!important}.q-option{min-height:48px}.custom-modal{max-height:85dvh;overflow-y:auto}}
/* V32: navigation works immediately, including when JavaScript is cached or unavailable. */
.edm-nav-toggle,.edm-nav-button{display:none!important}.edm-nav-links{display:block!important}
@media(max-width:768px){
 html,body{margin:0!important;padding:0!important;width:100%!important;max-width:100%!important}
 .layout{margin:0!important;max-width:100%!important}.sidebar{margin:0!important;max-width:100%!important;box-sizing:border-box!important}
 .sidebar .brand{width:calc(100% - 96px)!important;min-height:36px;vertical-align:middle}
 .edm-nav-toggle{display:block!important;position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;opacity:0;overflow:hidden}
 .edm-nav-button{display:inline-flex!important;vertical-align:middle;align-items:center;justify-content:center;width:92px!important;min-height:40px;padding:8px!important;margin:0!important;border:1px solid #4c5c38;border-radius:9px;background:#252c1d;color:#fff!important;font-size:13px;cursor:pointer;user-select:none}
 .edm-nav-toggle:focus-visible+.edm-nav-button{outline:3px solid #8fc642;outline-offset:3px}
 .edm-nav-close{display:none}.edm-nav-toggle:checked+.edm-nav-button .edm-nav-open{display:none}.edm-nav-toggle:checked+.edm-nav-button .edm-nav-close{display:inline}
 .sidebar .edm-nav-links{display:none!important;width:100%;padding-top:12px}.sidebar .edm-nav-toggle:checked~.edm-nav-links{display:block!important}
 .sidebar .edm-nav-links a{display:flex!important}
 .student-welcome-card__content{gap:12px!important}.student-welcome-copy{min-width:0!important}.student-welcome-copy h1{font-size:22px!important;line-height:1.3!important}.student-welcome-card{padding:18px!important}.student-meta-row>span{white-space:normal!important}.main,.student-main{padding:18px 14px!important}
}

/* V33 — Mayaneth logo palette: lime #8FC642, black and white. */
:root{--brand-green:#8fc642;--brand-black:#10120e;--brand-white:#ffffff;--edm-accent:#8fc642;--primary:#547f24;--primary-dark:#42671b;--primary-soft:#eff7e5}
.sidebar{background:#10120e!important}.sidebar a.active{background:#8fc642!important;color:#17210d!important;border-color:#8fc642!important}.sidebar a.active .nav-icon{color:#17210d}
button,.btn,.prem-btn,.student-primary-btn{background:#8fc642;color:#17210d!important}.btn:hover,button:hover,.student-primary-btn:hover{background:#7db139;color:#17210d!important}.btn-muted{background:#f0f3ea!important;color:#4c5840!important}.btn-danger{background:#b42333!important;color:#fff!important}.edm-text-danger{background:transparent!important;color:#aa5260!important}
.prem-btn--primary,.student-primary-btn,.student-primary-btn--green,.auth-card button{background:#8fc642!important;color:#17210d!important}.student-outline-btn{color:#547f24!important;border-color:#c8dcae!important}.edm-assign-btn{background:#eff7e5!important;color:#446b16!important;border-color:#d5e7bc!important}
.edm-batch-choice:has(input:checked){background:#f0f7e7;border-color:#aaca80}input[type=checkbox],input[type=radio]{accent-color:#618b2b}.student-avatar{background:#edf6e0!important;color:#547f24!important}.student-course-cover--1,.student-course-cover--2,.student-course-cover--3,.student-course-cover--4{background:#eff6e5!important;color:#547f24!important}
.auth-page{background:radial-gradient(ellipse at 20% 20%,#344b20 0,transparent 55%),#10120e!important}.exam-card::before{background:#8fc642!important}.student-stat-icon--blue,.student-stat-icon--purple{background:#edf6e2!important;color:#547f24!important}.edm-hero .btn{background:#8fc642!important;color:#17210d!important}
@media(max-width:768px){.edm-nav-button{background:#252c1d;color:#fff!important;border-color:#4c5c38}.edm-nav-toggle:focus-visible+.edm-nav-button{outline-color:#8fc642}}

.edm-add-questions{display:block;text-align:center;padding:12px;margin:0 0 10px}.edm-paper-card .edm-assign-btn{margin-top:0}
