.ma-section{padding:38px 0 65px}.ma-section-title{text-align:center;margin-bottom:34px}.ma-section-title h1{font-weight:900;font-size:clamp(28px,4vw,42px);margin:5px 0;color:#162b46}.ma-section-title p{font-size:13px;margin:5px auto;max-width:600px}.ma-narrow{max-width:700px;margin-inline:auto}.ma-filter{display:flex;flex-wrap:wrap;align-items:end;gap:12px;background:#fff;padding:18px;border:1px solid #ebe8ef;border-radius:18px;margin-bottom:25px}.ma-filter .ma-field{flex:1;min-width:180px}.ma-form{display:grid;gap:15px}.ma-field{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}.ma-field>span{font-size:12px;font-weight:900;color:#465773}.ma-field input,.ma-field textarea,.ma-field select,.ma-question input[type=text]{width:100%;min-height:46px;border:1px solid #e1e3eb;border-radius:11px;background:#fff;color:#1b2a42;padding:10px 13px;font-size:13px;outline:none;transition:border-color .2s}.ma-field textarea{resize:vertical}.ma-field input:focus,.ma-field textarea:focus,.ma-field select:focus,.ma-question input:focus{border-color:#937fbe;box-shadow:0 0 0 3px #9072c015}.ma-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ma-notice{background:#edf8f1;border:1px solid #d0e8d7;border-radius:12px;padding:12px 15px;color:#397653;font-size:12px;margin-bottom:18px}.ma-error{background:#fff1ef;border-color:#f5d5d0;color:#a84948}.ma-empty,.ma-locked{border:1px dashed #dcdcea;background:#faf9fd;border-radius:22px;padding:45px 30px;text-align:center;max-width:760px;margin:35px auto}.ma-empty p,.ma-locked p{font-size:13px;margin:12px 0 23px}.ma-locked h2{font-size:22px}.ma-lock-icon{font-size:26px}.ma-price-card{padding:29px;background:#fff;border-radius:22px;border:1px solid #eae6f1;box-shadow:0 14px 30px #334a5e0a;display:flex;flex-direction:column;align-items:flex-start}.ma-price-card h3{font-size:22px;margin:10px 0}.ma-price{font-size:34px;font-weight:900;color:#243957}.ma-price small{font-size:14px;color:#967ba6}.ma-price-card p{font-size:12px;margin:6px 0}.ma-price-card form,.ma-price-card>a{margin-top:auto;padding-top:20px;width:100%}.ma-price-card form .ma-btn,.ma-price-card>a{width:100%}.ma-subtle{color:#8d97a8;font-size:11px!important;line-height:2;margin:12px 0}.ma-auth{max-width:465px;margin:25px auto;background:#fff;border:1px solid #ebe8f1;box-shadow:0 20px 55px #233a6110;border-radius:26px;padding:40px}.ma-auth h1{font-size:28px;font-weight:900}.ma-auth>p{font-size:12px;margin:6px 0 19px}.ma-auth>p:last-of-type{margin-top:8px}.ma-auth a:not(.ma-btn){font-weight:900;color:#997dbb}.ma-account .ma-section-title{text-align:right}.ma-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:22px 0}.ma-stats>div{background:#fff;border:1px solid #e9e6ef;padding:22px;border-radius:17px;display:flex;flex-direction:column;gap:4px}.ma-stats strong{font-size:28px;font-weight:900;color:#243754;line-height:1.4}.ma-stats span{font-size:11px;font-weight:800;color:#93a0b1}.ma-two-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:20px}.ma-panel{padding:25px;border:1px solid #e6e6ed;background:#fff;border-radius:20px;box-shadow:0 8px 30px #263b5a0a;min-width:0}.ma-panel h2{font-size:18px;font-weight:900;margin-bottom:15px}.ma-panel h3{font-size:14px;margin:17px 0 12px}.ma-panel>p{font-size:12px}.ma-panel>a{font-size:12px;font-weight:900;color:#8a6ba0}.ma-row-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #efedf2;font-size:12px;flex-wrap:wrap}.ma-row-item b{font-weight:800}.ma-row-item span{font-size:11px;color:#738399}.ma-video{aspect-ratio:16/9;background:#152941;border-radius:20px;overflow:hidden;box-shadow:0 15px 45px #172a4830}.ma-video iframe{width:100%;height:100%;display:block;border:0}.ma-lesson-detail{max-width:950px;margin:0 auto}.ma-lesson-detail .ma-rich{background:#fff;margin:25px 0;padding:25px;border:1px solid #ededf2;border-radius:15px}.ma-question{border:1px solid #e5e4ed;background:#fff;border-radius:14px;padding:17px;margin:8px 0}.ma-question legend{font-weight:900;padding:5px 8px;font-size:13px}.ma-choice{display:flex;align-items:center;gap:10px;font-size:13px;padding:6px}.ma-choice input{accent-color:#7d609e}.ma-code-input{font-family:monospace!important;text-align:left;direction:ltr}.ma-admin-shell{display:grid;grid-template-columns:245px minmax(0,1fr);min-height:760px;border:1px solid #e9e7ee;background:#faf9fc;border-radius:23px;overflow:hidden}.ma-admin-sidebar{background:#fff;border-left:1px solid #eeeaf2;padding:23px 16px;display:flex;flex-direction:column;gap:10px}.ma-admin-brand{display:flex;align-items:center;gap:11px;font-size:13px;font-weight:900;direction:ltr;justify-content:flex-end;margin-bottom:25px}.ma-admin-brand-icon{width:39px;height:39px;border-radius:13px;background:#edebfa;color:#7963af;font:900 23px Georgia,serif;display:grid;place-items:center;flex:none}.ma-admin-brand small{display:block;font-size:10px;font-weight:700;color:#9c9aaf;direction:rtl;text-align:right}.ma-admin-sidebar nav{display:grid;gap:4px}.ma-admin-sidebar nav a{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:800;padding:10px 12px;color:#69768b;border-radius:10px}.ma-admin-sidebar nav a span{font-size:17px;width:25px;text-align:center;color:#b19abf}.ma-admin-sidebar nav a:hover,.ma-admin-sidebar nav a.ma-active{background:#f2edfa;color:#524277}.ma-admin-back{margin-top:auto;font-size:11px;font-weight:800;color:#a47a93;padding:15px}.ma-admin-main{padding:33px;min-width:0}.ma-admin-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:22px}.ma-admin-heading h1{font-size:26px;font-weight:900}.ma-admin-date{color:#8896a9;font-size:11px}.ma-admin-welcome{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(115deg,#2a3b65,#524b78);padding:28px 34px;border-radius:19px;color:#fff}.ma-admin-welcome .ma-kicker{color:#dfb9d1}.ma-admin-welcome h2{font-size:22px;font-weight:900;margin:5px 0}.ma-admin-welcome p{color:#e6e0f2;font-size:12px}.ma-admin-welcome-art{font-size:88px;color:#ffffff26;line-height:1}.ma-admin-main .ma-stats>div{padding:15px}.ma-admin-main .ma-stats strong{font-size:25px}.ma-quick-links{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.ma-quick-links a{padding:12px;border-radius:10px;background:#f6f3fa;font-weight:800;color:#62527d;font-size:11px}.ma-panel-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.ma-panel-header h2{margin:0}.ma-table-wrap{width:100%;overflow-x:auto}.ma-table{width:100%;min-width:580px;border-collapse:collapse;text-align:right;font-size:11px}.ma-table th{color:#8090a4;background:#f7f7fb;font-weight:900}.ma-table th,.ma-table td{padding:13px 11px;border-bottom:1px solid #f0eef4;vertical-align:top}.ma-table td b{font-weight:900}.ma-table td small{display:block;color:#97a0af;line-height:1.7}.ma-table td>a{color:#76639d;font-weight:900}.ma-table .ma-form{gap:8px}.ma-table .ma-field{min-width:120px}.ma-table .ma-field input,.ma-table .ma-field select{min-height:38px}.ma-link-danger{border:0;background:transparent;padding:3px;color:#c46a66;font-size:11px;font-weight:900;cursor:pointer}.ma-btn-small{padding:7px 10px;min-height:35px;font-size:10px}.ma-panel hr{border:0;border-top:1px solid #eeeaf3;margin:24px 0}.ma-studio-screen{min-height:225px;display:grid;place-items:center;background:#192d4b;color:#cfd8ea;border-radius:18px;overflow:hidden;position:relative}.ma-studio-screen video{max-width:100%;max-height:390px;display:none}.ma-studio-screen video.ma-active{display:block}.ma-studio-screen span{font-size:13px}.ma-studio-actions{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}.ma-btn:disabled{opacity:.48;cursor:not-allowed;transform:none!important}.ma-studio #ma-studio-status{font-size:12px}
@media(max-width:1000px){.ma-admin-shell{grid-template-columns:195px minmax(0,1fr)}.ma-admin-main{padding:20px}.ma-admin-sidebar{padding:15px 10px}.ma-admin-sidebar nav a{font-size:11px}}
@media(max-width:720px){.ma-form-grid{grid-template-columns:1fr}.ma-filter{display:grid;grid-template-columns:1fr}.ma-price-card{padding:23px}.ma-auth{margin:0 auto;padding:27px}.ma-stats{grid-template-columns:repeat(2,1fr);gap:10px}.ma-two-cols{grid-template-columns:1fr}.ma-panel{padding:18px}.ma-admin-shell{display:block;border-radius:14px}.ma-admin-sidebar{border-bottom:1px solid #e9e6f0;overflow-x:auto;display:block;padding:12px}.ma-admin-brand{justify-content:flex-end;margin:0 0 10px}.ma-admin-sidebar nav{display:flex;gap:4px;overflow:auto}.ma-admin-sidebar nav a{white-space:nowrap;padding:8px}.ma-admin-back{display:none}.ma-admin-main{padding:16px}.ma-admin-welcome{padding:20px}.ma-admin-welcome h2{font-size:18px}.ma-admin-welcome-art{font-size:42px}.ma-admin-heading h1{font-size:21px}.ma-quick-links{grid-template-columns:1fr}.ma-panel-header .ma-btn{font-size:10px}}

.ma-messages{max-width:760px;margin:auto}.ma-message{padding:14px 18px;max-width:88%;margin:12px 0;background:#f4f2fb;border:1px solid #eae4f1;border-radius:17px 17px 17px 4px}.ma-message-mine{margin-right:auto;background:#edf7f2;border-color:#d8eadf;border-radius:17px 17px 4px 17px}.ma-message b{font-size:11px}.ma-message p{font-size:13px;margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}.ma-message small{font-size:10px;color:#95a0ad}.ma-messages>.ma-form{border-top:1px solid #eae5f0;margin-top:22px;padding-top:22px}.ma-exam-builder{margin:14px 0;border:1px solid #e9e4f1;border-radius:15px;padding:18px;background:#faf9fd}.ma-exam-builder h3{margin:0 0 14px;font-size:15px}.ma-builder-card{padding:18px;border:1px solid #e7e4ee;border-radius:12px;margin:12px 0;background:#fff}.ma-builder-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.ma-builder-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.ma-builder-row{display:flex;align-items:end;gap:12px}.ma-builder-row>.ma-field{flex:1}.ma-builder-remove{background:none;border:0;color:#bc7171;font-size:11px;font-weight:900}.ma-builder-card .ma-field{margin-top:8px}@media(max-width:720px){.ma-builder-options{grid-template-columns:1fr}.ma-builder-row{display:block}}
#ma-bunny-progress{accent-color:#a180c2;border-radius:5px}#ma-bunny-status{font-size:12px;font-weight:800;color:#6f648d}#ma-bunny-guid{display:block;padding:10px;color:#2c4464;background:#f5f3fc;border-radius:10px}
/* Teacher workspace: navy side navigation with warm coral active tab. */
.ma-admin-sidebar{background:linear-gradient(160deg,#202c49,#17223e 70%,#24213f);border-left:1px solid #2a3150}
.ma-admin-brand{color:#fff}.ma-admin-brand small{color:#a5afc7}.ma-admin-brand-icon{background:#ed947e;color:#1d2b43}
.ma-admin-sidebar nav a{color:#c2cadc}.ma-admin-sidebar nav a span{color:#b9a6c7}
.ma-admin-sidebar nav a:hover{background:#ffffff16;color:#fff}
.ma-admin-sidebar nav a.ma-active{background:linear-gradient(100deg,#ed877d,#d87379);color:#fff;box-shadow:0 5px 20px #d9787240}
.ma-admin-sidebar nav a.ma-active span{color:#fff}.ma-admin-back{color:#f0b0a9}
.ma-calendar{padding:19px 15px;border-radius:15px;border:1px solid #edeaf1;background:#fbfafc;margin-bottom:20px}.ma-calendar-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px}.ma-calendar-top strong{font-size:13px}.ma-calendar-top a{font-size:12px;color:#8f6d9f;font-weight:900;padding:4px 10px}.ma-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.ma-calendar-dayhead{text-align:center;font-size:10px;color:#8f9aac;font-weight:900;padding:6px 0}.ma-calendar-cell{min-height:52px;border:1px solid #eeeaf2;border-radius:9px;background:#fff;padding:7px 4px;text-align:center;font-size:11px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:1px}.ma-calendar-cell small{font-size:9px;color:#db7870;font-weight:800}.ma-calendar-cell.ma-has-bookings{border-color:#e7ac9b;background:#fff6f3}.ma-calendar-cell.ma-current{outline:2px solid #8872b9;outline-offset:-2px}.ma-calendar-cell.ma-muted{background:transparent;border-color:transparent}.ma-calendar-filter{display:flex;align-items:end;gap:9px;margin:0 0 18px}.ma-calendar-filter .ma-field{flex:0 1 250px}
@media(max-width:700px){.ma-calendar{padding:12px 5px}.ma-calendar-grid{gap:3px}.ma-calendar-cell{min-height:43px;font-size:10px;padding:4px 1px}.ma-calendar-dayhead{font-size:8px}.ma-calendar-cell small{font-size:8px}}

.ma-prelaunch-field{background:#fbf6ff;border:1px solid #e9d9f3;padding:14px 18px;border-radius:14px;margin-bottom:20px}.ma-check-line{display:flex;gap:12px;align-items:center;font-size:13px;font-weight:800}.ma-check-line input{width:19px;height:19px;flex:none;accent-color:#8841ab}

/* Maryam Academy v0.9.2, simple bilingual account flows */
.ma-auth-enhanced {max-width:610px;margin-inline:auto}
.ma-auth-tabs {display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#f5f1fa;padding:7px;border-radius:15px;margin-bottom:25px}
.ma-auth-tabs a {display:block;text-decoration:none;color:#4b5369;padding:12px 14px;border-radius:10px;text-align:center;font-weight:800}
.ma-auth-tabs a.active {background:#fff;color:#6c329f;box-shadow:0 5px 18px #42236312}
.ma-auth-check {display:flex;align-items:center;gap:9px;font-size:14px;margin:12px 0 16px;cursor:pointer}
.ma-auth-check input {width:18px;height:18px;accent-color:#7535a7}
.ma-auth-bottom {display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:17px}
.ma-password-hint {font-size:13px;color:#5a647d;margin:2px 0 12px;line-height:1.8}
html[dir="ltr"] .ma-auth,html[dir="ltr"] .ma-auth-tabs {direction:ltr;text-align:left}
html[dir="ltr"] .ma-admin-shell {direction:rtl}
@media(max-width:640px){.ma-auth-tabs{margin-bottom:18px}.ma-auth-bottom{display:grid}}

/* v0.9.3 recovery form */
.ma-otp-panel {padding:21px;margin-top:15px;border-radius:16px;background:#faf7ff;border:1px solid #e9dff2;box-shadow:none}
.ma-otp-panel h2{font-size:20px;margin:0 0 12px}
.ma-otp-panel .ma-field{margin-top:12px}
.ma-otp-input{font-family:Consolas,Monaco,monospace!important;letter-spacing:.6em;text-align:center!important;direction:ltr!important;font-size:22px!important;font-weight:800!important;max-width:100%}
/* Curriculum library, visible to students as well as teachers (v0.11.0) */
.ma-catalog-book{margin:26px 0 34px}.ma-catalog-book h2{font-size:24px;color:#243553;border-bottom:1px solid #e6dfeb;padding-bottom:12px}
.ma-catalog-unit{font-size:17px;color:#603892;margin:20px 0 14px}
.ma-catalog-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px;padding:24px 0}.ma-catalog-pagination span{font-size:13px;font-weight:700;color:#67748d}

/* v0.13: shared controls and teacher workflow improvements */
.ma-btn,.ma-admin-main button.ma-btn,.ma-section button.ma-btn,.ma-section a.ma-btn{
  display:inline-flex;justify-content:center;align-items:center;gap:8px;max-width:100%;
  border:1px solid transparent;border-radius:12px;padding:10px 17px;
  background:#673ba1;color:#fff!important;font-family:inherit;font-size:.88rem;font-weight:800;
  line-height:1.4;cursor:pointer;text-decoration:none;transition:background .15s,box-shadow .15s;
  box-shadow:0 4px 12px #4f2d7c20;
}
.ma-btn:hover,.ma-admin-main button.ma-btn:hover{background:#502c83;box-shadow:0 8px 16px #4f2d7c30}
.ma-btn.ma-btn-secondary,.ma-admin-main button.ma-btn-secondary{background:#f4eef9!important;color:#583884!important;border-color:#ddd1ec!important}
.ma-btn.ma-btn-secondary:hover{background:#e5daf0!important}
.ma-btn.ma-btn-small,.ma-admin-main button.ma-btn-small{font-size:.79rem;padding:7px 12px;min-height:34px}
.ma-btn.ma-danger,.ma-admin-main button.ma-danger{background:#a92f3a!important;color:white!important;border-color:#a92f3a!important}
.ma-weekly-scroll{max-height:660px;overflow:auto;border:1px solid #e7e4ee;border-radius:14px;margin:12px 0 20px}
.ma-weekly-table{width:100%;border-collapse:collapse;min-width:580px;font-size:13px}
.ma-weekly-table th,.ma-weekly-table td{border-bottom:1px solid #eee9f2;padding:12px 14px;text-align:right;vertical-align:top}
.ma-weekly-table th{white-space:nowrap;background:#faf8fc;color:#513970;position:sticky;top:0}
.ma-slot-chips{display:grid;grid-template-columns:repeat(8,minmax(56px,1fr));gap:6px}
.ma-slot-chip{cursor:pointer;min-width:0}.ma-slot-chip input{position:absolute;opacity:0;width:1px;height:1px}
.ma-slot-chip span{display:block;text-align:center;border-radius:9px;border:1px solid #ded7e7;background:white;color:#6a567c;font-size:.74rem;padding:6px}
.ma-slot-chip input:checked+span{background:#6537a1;color:white;border-color:#6537a1}
.ma-slot-chip input:focus-visible+span{outline:3px solid #e39d54;outline-offset:2px}
.ma-student-actions{min-width:200px;background:#faf9fd;border:1px solid #ded8ed;border-radius:11px;padding:9px}
.ma-student-actions summary{cursor:pointer;color:#563781;font-weight:800}
.ma-student-actions form{padding:10px 0;border-top:1px solid #eee8f1;display:grid;gap:8px}
.ma-student-actions label{font-size:12px;display:grid;gap:5px}
.ma-student-actions input{padding:8px;border:1px solid #ded9ea;border-radius:9px;width:100%}
.ma-ai-chat-panel{max-width:900px;margin-inline:auto}
.ma-ai-chat-log{height:min(58vh,480px);min-height:280px;overflow:auto;padding:18px;background:#faf8fc;border:1px solid #e8e2f1;
  border-radius:16px;display:flex;flex-direction:column;gap:12px;margin:15px 0}
.ma-ai-message{max-width:86%;align-self:flex-start;background:white;border:1px solid #eee7f4;border-radius:14px;padding:12px 15px;
  white-space:pre-wrap;line-height:1.8;overflow-wrap:anywhere;font-size:.91rem;color:#172944}
.ma-ai-message-mine{align-self:flex-end;background:#e5d8f4;border-color:#dbc5ef}
.ma-ai-actions{display:flex;gap:10px;flex-wrap:wrap}.ma-ai-actions button{flex:1;min-width:150px}
.ma-ai-message a{margin:8px 0 0}
@media(max-width:700px){.ma-slot-chips{grid-template-columns:repeat(5,minmax(56px,1fr))}.ma-ai-chat-log{min-height:270px}.ma-ai-actions button{min-width:100%}}
