
/* MentorWeb School OS - unified design system */
:root{
 --mw-primary:#174ea6;--mw-primary-dark:#0d3b82;--mw-accent:#4f7cff;
 --mw-bg:#f4f7fb;--mw-card:#fff;--mw-text:#182230;--mw-muted:#64748b;
 --mw-border:#e2e8f0;--mw-success:#16803c;--mw-danger:#c62828;
 --mw-shadow:0 8px 24px rgba(15,23,42,.08);--mw-radius:14px
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--mw-bg);color:var(--mw-text)}
body{min-height:100vh}
a{color:var(--mw-primary);text-decoration:none}
a:hover{text-decoration:none}
.top{height:68px;background:#fff;border-bottom:1px solid var(--mw-border);display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:50}
.brand{font-weight:900;letter-spacing:.5px;color:#172033;font-size:20px;line-height:1}
.brand span{color:var(--mw-primary)}
.brand small{display:block;font-size:9px;color:var(--mw-muted);letter-spacing:1.4px;margin-top:5px}
.user{display:flex;align-items:center;gap:14px;font-weight:600}
.layout{display:flex;min-height:calc(100vh - 68px)}
.side{width:245px;background:#111827;color:#dbe4f0;padding:18px 12px;flex:0 0 245px}
.side a{display:block;color:#dbe4f0;padding:11px 13px;border-radius:9px;margin:3px 0;font-size:14px}
.side a:hover,.side a.active{background:rgba(255,255,255,.09);color:#fff}
.side h5{font-size:10px;letter-spacing:1.4px;color:#94a3b8;margin:22px 13px 7px}
.main{flex:1;min-width:0;padding:26px}
.container,.page{max-width:1400px;margin:auto}
h1,h2,h3,h4{margin-top:0}
.card,.panel,.box{background:var(--mw-card);border:1px solid var(--mw-border);border-radius:var(--mw-radius);box-shadow:var(--mw-shadow);padding:20px}
.grid{display:grid;gap:18px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.btn,button,input[type=submit]{border:0;border-radius:9px;padding:10px 15px;font-weight:700;cursor:pointer}
.btn{display:inline-block;background:var(--mw-primary);color:#fff}
.btn:hover{background:var(--mw-primary-dark);color:#fff}
.btn.light{background:#eef3fb;color:#173b70}
.btn.danger{background:#c62828;color:#fff}
input,select,textarea{width:100%;border:1px solid #cbd5e1;border-radius:9px;padding:11px 12px;background:#fff;color:var(--mw-text);font:inherit}
textarea{min-height:120px;resize:vertical}
label{display:block;font-weight:700;font-size:13px;margin:0 0 7px}
.form-group{margin-bottom:15px}
table{width:100%;border-collapse:collapse;background:#fff}
th,td{padding:12px;border-bottom:1px solid var(--mw-border);text-align:left;vertical-align:top}
th{font-size:12px;color:#475569;background:#f8fafc}
.stat{background:#fff;border:1px solid var(--mw-border);border-radius:var(--mw-radius);padding:18px;box-shadow:var(--mw-shadow)}
.stat .value{font-size:28px;font-weight:900;margin-top:5px}
.stat .label{font-size:12px;color:var(--mw-muted)}
.muted{color:var(--mw-muted)}
.alert{padding:12px 15px;border-radius:9px;margin-bottom:15px}
.alert-success{background:#eaf7ee;color:#166534}.alert-danger{background:#fef0f0;color:#991b1b}.alert-info{background:#eef5ff;color:#1e40af}
.badge{display:inline-block;padding:4px 8px;border-radius:99px;font-size:11px;font-weight:800;background:#eef2ff;color:#3730a3}
img{max-width:100%;height:auto}
video{max-width:100%;border-radius:10px}
@media(max-width:1000px){
 .side{width:210px;flex-basis:210px}
 .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 .top{padding:0 14px}.layout{display:block}.side{width:100%;padding:8px;display:flex;gap:5px;overflow:auto;position:sticky;top:68px;z-index:40}.side h5{display:none}.side a{white-space:nowrap;padding:9px 11px}.main{padding:16px}.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}.user span{display:none}
}

/* Super Admin dashboard */
.adminhero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px;padding:24px;background:linear-gradient(135deg,#fff,#f5f8ff);border:1px solid var(--mw-border);border-radius:16px;box-shadow:var(--mw-shadow)}
.adminhero h1{font-size:32px;line-height:1.15;margin:6px 0 8px;letter-spacing:-.5px}
.adminhero p{margin:0;color:var(--mw-muted)}
.eyebrow{font-size:11px;font-weight:900;letter-spacing:1.5px;color:var(--mw-primary)}
.admin-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.statgrid{display:grid;grid-template-columns:repeat(7,minmax(110px,1fr));gap:12px;margin-bottom:28px}
.statgrid .stat{min-width:0;overflow:hidden}
.statgrid .stat span,.statgrid .stat small{display:block;color:var(--mw-muted);font-size:12px;line-height:1.4}
.statgrid .stat b{display:block;font-size:26px;line-height:1.2;margin:5px 0;font-weight:900;color:#0f172a}
.admincards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}
.admincards .tool{display:block;color:inherit;transition:transform .15s,box-shadow .15s;min-height:170px}
.admincards .tool:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(15,23,42,.12)}
.admincards .tool>div{font-size:28px;margin-bottom:10px}
.admincards .tool h3{margin-bottom:7px;color:#0f3f88}
.admincards .tool p{margin:0;color:var(--mw-muted);line-height:1.5}
.two{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:18px;margin-bottom:20px}
.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.sectionhead h2{margin:0}
.table{font-size:13px}
.table th,.table td{padding:11px 10px}
.pill{display:inline-block;border-radius:999px;padding:4px 9px;background:#eef3fb;font-size:11px;font-weight:800}
.checklist{margin-bottom:30px}.checklist ol{margin:0;padding-left:22px}.checklist li{padding:7px 0;color:#475569}
@media(max-width:1200px){.statgrid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:900px){.adminhero{align-items:flex-start;flex-direction:column}.admin-actions{justify-content:flex-start}.admincards{grid-template-columns:repeat(2,1fr)}.two{grid-template-columns:1fr}}
@media(max-width:600px){.statgrid{grid-template-columns:repeat(2,1fr)}.admincards{grid-template-columns:1fr}.adminhero h1{font-size:26px}}


/* AI Chat - professional Markdown rendering */
.chat-shell{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;min-height:calc(100vh - 120px)}
.chat-sidebar{min-width:0}.chat-sidebar .card{height:100%;overflow:auto}.chat-main{display:flex;flex-direction:column;min-width:0;min-height:calc(100vh - 120px);padding:0;overflow:hidden}
.chat-head{padding:18px 22px;border-bottom:1px solid var(--mw-border);background:linear-gradient(135deg,#fff,#f8fbff)}
.chat-head h2{margin:0 0 4px;font-size:20px}.chat-head .muted{font-size:12px}
#conversationList{margin-top:14px;display:flex;flex-direction:column;gap:6px}.conversation-item{width:100%;text-align:left;background:#f8fafc;color:#334155;border:1px solid transparent;padding:10px 11px;border-radius:9px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-item:hover{background:#eef4ff;border-color:#dbe7ff;color:#174ea6}
.messages{flex:1;overflow:auto;padding:24px;display:flex;flex-direction:column;gap:14px;background:#f8fafc}
.msg{max-width:min(88%,900px);padding:13px 16px;border-radius:14px;line-height:1.62;word-wrap:break-word;position:relative;font-size:15px}
.msg.user{align-self:flex-end;background:#174ea6;color:#fff;border-bottom-right-radius:4px;white-space:pre-wrap}.msg.assistant{align-self:flex-start;background:#fff;color:#182230;border:1px solid #e2e8f0;box-shadow:0 4px 14px rgba(15,23,42,.05);border-bottom-left-radius:4px;padding-top:12px;padding-right:58px}
.msg-label{font-size:10px;font-weight:900;letter-spacing:.8px;text-transform:uppercase;color:#174ea6;margin-bottom:8px}.md-content{min-width:0}.md-content p{margin:0 0 12px}.md-content p:last-child{margin-bottom:0}.md-content h1,.md-content h2,.md-content h3,.md-content h4,.md-content h5,.md-content h6{color:#0f3f88;margin:18px 0 8px;line-height:1.25}.md-content h1:first-child,.md-content h2:first-child,.md-content h3:first-child{margin-top:0}.md-content h2{font-size:20px}.md-content h3{font-size:17px}.md-content h4{font-size:15px}.md-content ul,.md-content ol{margin:7px 0 14px;padding-left:24px}.md-content li{margin:5px 0}.md-content strong{font-weight:800}.md-content code{background:#eef2f7;border:1px solid #e2e8f0;border-radius:5px;padding:1px 5px;font-family:Consolas,Monaco,monospace;font-size:.9em}.md-content pre{background:#0f172a;color:#e5e7eb;border-radius:10px;padding:14px 16px;overflow:auto;margin:12px 0}.md-content pre code{background:transparent;border:0;padding:0;color:inherit;white-space:pre}.md-content blockquote{margin:12px 0;padding:9px 14px;border-left:4px solid #4f7cff;background:#f4f7ff;color:#475569;border-radius:0 8px 8px 0}.md-content hr{border:0;border-top:1px solid #e2e8f0;margin:18px 0}.md-content a{color:#174ea6;text-decoration:underline}.md-table-wrap{overflow-x:auto;margin:12px 0}.md-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.md-table th,.md-table td{padding:9px 11px;border:1px solid #e2e8f0;text-align:left}.md-table th{background:#f1f5f9;color:#334155;font-weight:800}.copy-answer{position:absolute;top:10px;right:10px;border:1px solid #dbe3ef;background:#fff;color:#64748b;padding:5px 8px;border-radius:7px;font-size:11px;opacity:.85}.copy-answer:hover{background:#eef4ff;color:#174ea6}.chat-input{display:flex;gap:10px;padding:14px 16px;border-top:1px solid var(--mw-border);background:#fff}.chat-input textarea{min-height:54px;max-height:180px;margin:0}.chat-input .btn{align-self:flex-end;min-width:80px}
@media(max-width:900px){.chat-shell{grid-template-columns:1fr}.chat-sidebar{max-height:220px}.chat-main{min-height:70vh}.messages{padding:16px}.msg{max-width:95%}}
@media(max-width:600px){.chat-input{flex-direction:column}.chat-input .btn{width:100%}.msg.assistant{padding-right:16px}.copy-answer{position:static;margin-top:10px}}

/* Unified AI output presentation - used by AI Studio, Chat and Document AI */
.ai-rendered,.ai-result{position:relative;background:#fff;color:var(--mw-text);line-height:1.65}
.ai-result{border:1px solid var(--mw-border);border-radius:14px;padding:24px;box-shadow:var(--mw-shadow)}
.ai-result-title{font-size:25px;font-weight:900;color:#0f3f88;padding:0 48px 14px 0;border-bottom:1px solid var(--mw-border);margin-bottom:18px}
.ai-copy{position:absolute;right:16px;top:16px;border:1px solid #dbe3ef;background:#fff;color:#64748b;padding:6px 10px;border-radius:8px;font-size:11px;font-weight:700;cursor:pointer}
.ai-copy:hover{background:#eef4ff;color:#174ea6}
.ai-section{margin:0 0 22px;padding:0}
.ai-section:last-child{margin-bottom:0}
.ai-section>h3{font-size:17px;color:#0f3f88;margin:0 0 9px;padding-bottom:7px;border-bottom:1px solid #edf2f7}
.ai-list{margin:6px 0 0;padding-left:23px}.ai-list li{margin:6px 0}
.ai-object-list{display:grid;gap:12px}
.ai-object-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:15px}
.ai-object-title{font-size:15px;font-weight:800;color:#172033;margin-bottom:12px;line-height:1.5}
.ai-index{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;margin-right:9px;border-radius:50%;background:#174ea6;color:#fff;font-size:12px;vertical-align:middle}
.ai-field{margin-top:10px;padding-top:9px;border-top:1px solid #e7edf4}.ai-field-label{font-size:11px;text-transform:uppercase;letter-spacing:.7px;font-weight:900;color:#64748b;margin-bottom:4px}.ai-field-value{color:#243247}
.ai-object .ai-section{padding:13px 14px;background:#f8fafc;border:1px solid #e6edf5;border-radius:10px}.ai-object .ai-section>h3{font-size:14px;margin-bottom:7px;border:0;padding:0}
.ai-rendered p,.ai-result p{margin:0 0 12px}.ai-rendered p:last-child,.ai-result p:last-child{margin-bottom:0}
.ai-rendered h1,.ai-rendered h2,.ai-rendered h3,.ai-result h1,.ai-result h2,.ai-result h3{color:#0f3f88;line-height:1.3}
.ai-rendered h1,.ai-result h1{font-size:25px}.ai-rendered h2,.ai-result h2{font-size:21px}.ai-rendered h3,.ai-result h3{font-size:17px}
.ai-rendered ul,.ai-rendered ol,.ai-result ul,.ai-result ol{margin:7px 0 14px;padding-left:24px}.ai-rendered li,.ai-result li{margin:5px 0}
.ai-rendered strong,.ai-result strong{font-weight:800}.ai-rendered em,.ai-result em{font-style:italic}
.ai-rendered code,.ai-result code{background:#eef2f7;border:1px solid #e2e8f0;border-radius:5px;padding:1px 5px;font-family:Consolas,Monaco,monospace;font-size:.9em}
.ai-rendered pre,.ai-result pre{background:#0f172a;color:#e5e7eb;border-radius:10px;padding:14px 16px;overflow:auto;margin:12px 0}.ai-rendered pre code,.ai-result pre code{background:transparent;border:0;padding:0;color:inherit;white-space:pre}
.ai-rendered blockquote,.ai-result blockquote{margin:12px 0;padding:9px 14px;border-left:4px solid #4f7cff;background:#f4f7ff;color:#475569;border-radius:0 8px 8px 0}
.ai-rendered hr,.ai-result hr{border:0;border-top:1px solid #e2e8f0;margin:18px 0}
.ai-rendered a,.ai-result a{color:#174ea6;text-decoration:underline}.ai-rendered a:hover,.ai-result a:hover{color:#0d3b82}
.ai-table-wrap{overflow-x:auto;margin:12px 0}.ai-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e2e8f0}.ai-table th,.ai-table td{padding:10px 11px;border:1px solid #e2e8f0;text-align:left;vertical-align:top}.ai-table th{background:#f1f5f9;color:#334155;font-weight:800}
.ai-empty{color:#94a3b8;font-style:italic}.ai-loading{color:var(--mw-muted);font-style:italic}
@media(max-width:600px){.ai-result{padding:17px}.ai-result-title{font-size:21px}.ai-copy{position:static;margin:0 0 12px}.ai-object-card{padding:12px}}

/* AI Studio - tool-specific professional forms */
.studio-panel{overflow:hidden}
.studio-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.studio-panel-head h2{margin:0 0 5px}
.studio-panel-head p{margin:0;max-width:850px;line-height:1.5}
.studio-panel-head .badge{white-space:nowrap}
.studio-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px;padding-top:16px;border-top:1px solid var(--mw-border)}
.studio-actions .muted{margin-left:3px}
@media(max-width:600px){.studio-panel-head{flex-direction:column}.studio-panel-head .badge{align-self:flex-start}}
.studio-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.tool-card{min-height:190px;display:flex;flex-direction:column;align-items:flex-start}
.tool-card h2{color:#0f3f88;margin-bottom:8px}.tool-card p{color:var(--mw-muted);line-height:1.5;flex:1;margin:0 0 16px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.field{min-width:0}.field label{margin-bottom:7px}
@media(max-width:1100px){.studio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.studio-grid,.form-grid{grid-template-columns:1fr}}
.ai-options{margin:7px 0 0;padding-left:28px}.ai-options li{margin:7px 0;padding-left:4px}
.ai-answer{display:inline-block;background:#eaf7ee;color:#166534;border:1px solid #b7e0c3;border-radius:8px;padding:7px 10px;font-weight:800}
.ai-marks{display:inline-block;background:#eef4ff;color:#174ea6;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:800}
/* AI Answer Sheet Correction */
.grade-tool-card{grid-column:span 2;border:1px solid #dbe7ff;background:linear-gradient(135deg,#fff,#f7fbff)}
.upload-field input[type=file]{padding:12px;background:#f8fafc;border:1px dashed #b9c8dc;border-radius:10px;width:100%}
.field-help{display:block;color:var(--mw-muted);font-size:12px;margin-top:6px;line-height:1.45}
.selected-files{margin-top:8px;display:grid;gap:5px}.selected-file{padding:7px 10px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:7px;font-size:12px;color:#475569;word-break:break-word}
.grade-table-wrap,.grade-question-table{overflow-x:auto;margin:15px 0}.grade-table,.grade-question-table table{width:100%;border-collapse:collapse;background:#fff;min-width:980px}.grade-table th,.grade-table td,.grade-question-table th,.grade-question-table td{border:1px solid #dfe6ef;padding:10px 9px;text-align:left;vertical-align:top}.grade-table th,.grade-question-table th{background:#eef4ff;color:#173b70;font-size:12px;white-space:nowrap}.grade-table td{font-size:13px}.grade-pill{display:inline-block;padding:4px 9px;border-radius:999px;background:#eaf7ee;color:#166534;font-weight:800}.grade-details{display:grid;gap:10px}.grade-card{border:1px solid #dfe6ef;border-radius:10px;background:#fff;overflow:hidden}.grade-card summary{cursor:pointer;padding:13px 15px;font-weight:800;color:#173b70;background:#f8fbff}.grade-card-body{padding:16px}.grade-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.grade-card-head h3{margin:0 0 4px;color:#0f3f88}.grade-card-head p{margin:0;color:#64748b}.grade-summary{margin-top:14px;padding:13px;border-radius:9px;background:#f8fafc;border:1px solid #e6edf5;line-height:1.7}
.mw-modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px}.mw-modal[hidden]{display:none}.mw-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55)}.mw-modal-card{position:relative;width:min(520px,100%);background:#fff;border-radius:14px;padding:24px;box-shadow:0 25px 70px rgba(15,23,42,.25);z-index:1}.mw-modal-card h2{margin-top:0;color:#0f3f88}.mw-modal-card label{display:block;margin:14px 0 7px;font-weight:700}.mw-modal-close{position:absolute;right:12px;top:8px;border:0;background:transparent;font-size:28px;color:#64748b;cursor:pointer}.btn.small{padding:7px 10px;font-size:12px}
@media(max-width:1100px){.grade-tool-card{grid-column:span 1}}
@media(max-width:700px){.grade-card-head{flex-direction:column}.grade-tool-card{grid-column:span 1}}

.ai-usage-summary{margin:0 0 14px;padding:10px 14px;border:1px solid var(--mw-border);border-radius:10px;background:#f7faff;color:#334155;font-size:13px}.ai-usage-summary strong{color:#0f3f88}


/* Student Development Reports */
.report-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 18px;padding:24px 26px;background:linear-gradient(135deg,#fff,#f7fbff);border:1px solid var(--mw-border);border-radius:16px;box-shadow:var(--mw-shadow)}
.report-head h1{margin:6px 0 8px;font-size:30px;color:#102a56;line-height:1.2}
.report-head p{margin:0;color:var(--mw-muted);line-height:1.5}
.score-ring{width:92px;height:92px;flex:0 0 92px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(145deg,#174ea6,#4f7cff);color:#fff;font-size:25px;font-weight:900;box-shadow:0 10px 24px rgba(23,78,166,.22)}
.score-ring small{font-size:10px;font-weight:700;opacity:.9;margin-top:2px}
.report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}
.report-card{padding:20px;background:#fff;border:1px solid var(--mw-border);border-radius:14px;box-shadow:var(--mw-shadow)}
.report-card span{display:block;color:var(--mw-muted);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.7px;margin-bottom:7px}
.report-card b{display:block;font-size:28px;color:#0f3f88;line-height:1.15}
.report-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}
.report-two .card,.report-two>div{min-width:0}
.report-two h2{color:#102a56;margin-bottom:12px}
.report-two h3{color:#174ea6;margin:0 0 8px}
.report-two ul,.report-card ul{margin:0;padding-left:21px}.report-two li{margin:7px 0;line-height:1.45}
.mini-table{overflow-x:auto}.mini-table table{min-width:560px;border:1px solid var(--mw-border);border-radius:10px;overflow:hidden}.mini-table th{background:#eef4ff;color:#173b70;font-weight:800}.mini-table td,.mini-table th{padding:11px 12px}
.ai-report{margin-top:18px;border:1px solid #dbe7ff;background:linear-gradient(135deg,#fff,#f8fbff)}
.ai-report>h2{margin:7px 0 10px;color:#102a56}.ai-report .report-two{margin-top:16px}
.ai-note{margin-top:18px;padding:13px 15px;background:#f8fafc;border:1px solid #e6edf5;border-radius:10px;color:#475569;line-height:1.55}
.student-select-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.student-card{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:13px;padding:15px 16px;background:#fff;border:1px solid var(--mw-border);border-radius:12px;box-shadow:0 5px 16px rgba(15,23,42,.05);transition:transform .15s,box-shadow .15s,border-color .15s}
.student-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(15,23,42,.1);border-color:#bfd2f5}
.student-card .avatar{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#eaf1ff;color:#174ea6;font-weight:900;font-size:18px}
.student-card h3{margin:0 0 4px;color:#123b76;font-size:16px;overflow-wrap:anywhere}.student-card p{margin:0;color:#64748b;font-size:12px}.student-card .growth{text-align:right}.student-card .growth b{display:block;color:#0f3f88;font-size:19px}.student-card .growth small{color:#64748b;font-size:10px;font-weight:700}
/* School Admin Daily Content Approval */
.content-approval-panel{margin-bottom:20px;border:1px solid #dbe7ff;background:linear-gradient(135deg,#fff,#f7fbff)}
.content-approval-panel .sectionhead{margin-bottom:16px}.content-approval-panel .sectionhead h2{margin:4px 0 5px;color:#102a56}.content-approval-panel .sectionhead p{margin:0;line-height:1.45}.approval-count{display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;border-radius:999px;background:#fff4d6;color:#8a5a00;border:1px solid #f0d58a;font-weight:900;font-size:12px;white-space:nowrap}
.approval-list{display:grid;gap:12px}.approval-item{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;padding:14px;border:1px solid #e1e8f2;border-radius:12px;background:#fff}.approval-preview{height:105px;overflow:hidden;border-radius:9px;background:#eef2f7}.approval-preview img,.approval-preview video{display:block;width:100%;height:100%;object-fit:cover}.approval-preview video{object-fit:contain;background:#0f172a}.approval-preview .post-placeholder{height:100%;font-size:30px}.approval-info h3{margin:8px 0 6px;color:#102a56;font-size:18px}.approval-info p{margin:0;color:#475569;line-height:1.5;white-space:pre-wrap}.approval-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:#64748b;font-size:12px}.approval-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}.approval-actions form{margin:0}.empty-approval{padding:16px;border:1px dashed #cbd5e1;border-radius:10px;background:#f8fafc;color:#166534;font-weight:700}
@media(max-width:900px){.student-select-grid,.report-two{grid-template-columns:1fr}.report-grid{grid-template-columns:1fr}.report-head{align-items:flex-start}.approval-item{grid-template-columns:120px minmax(0,1fr)}}
@media(max-width:600px){.report-head{padding:20px;flex-direction:column}.score-ring{width:76px;height:76px;flex-basis:76px;font-size:21px}.student-card{grid-template-columns:42px minmax(0,1fr)}.student-card .avatar{width:42px;height:42px}.student-card .growth{grid-column:2;text-align:left}.approval-item{grid-template-columns:1fr}.approval-preview{height:180px}.approval-actions .btn{width:100%;text-align:center}}

/* Daily Content & Social Marketing */
.pagehero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px;padding:24px 26px;background:linear-gradient(135deg,#ffffff 0%,#f7fbff 100%);border:1px solid var(--mw-border);border-radius:16px;box-shadow:var(--mw-shadow)}
.pagehero h1{font-size:32px;line-height:1.15;margin:6px 0 8px;color:#102a56;letter-spacing:-.4px}
.pagehero p{margin:0;color:var(--mw-muted);line-height:1.5}
.two-col{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:18px;align-items:start;margin-bottom:26px}
.two-col>section{min-width:0}
.two-col .card{height:100%}
.steps{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:18px;color:#475569;font-size:14px}
.steps b{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#174ea6;color:#fff;font-size:13px}
.section-title{margin:0 0 14px;padding-left:4px;color:#102a56;font-size:25px}
.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
.post-card{min-width:0;overflow:hidden;background:#fff;border:1px solid var(--mw-border);border-radius:14px;box-shadow:var(--mw-shadow);display:flex;flex-direction:column;transition:transform .15s ease,box-shadow .15s ease}
.post-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(15,23,42,.11)}
.post-card>img,.post-card>video{display:block;width:100%;height:190px;object-fit:cover;background:#eef2f7;border-radius:0}
.post-card>video{object-fit:contain}
.post-placeholder{height:190px;display:grid;place-items:center;background:linear-gradient(135deg,#eef4ff,#f8fafc);color:#174ea6;font-size:42px;font-weight:800}
.post-body{padding:16px;min-width:0;display:flex;flex-direction:column}
.post-body .pill{align-self:flex-start;text-transform:capitalize;margin-bottom:9px}
.post-body h3{margin:0 0 8px;color:#102a56;font-size:18px;line-height:1.3;overflow-wrap:anywhere}
.post-body p{margin:0 0 12px;color:#475569;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;min-height:0}
.post-body>small{display:block;color:#64748b;font-size:12px;padding-top:10px;border-top:1px solid #edf2f7}
.share{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:13px;padding-top:12px;border-top:1px solid #edf2f7}
.share a,.share button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #dbe3ef;background:#f8fafc;color:#174ea6;border-radius:8px;padding:7px 10px;font-size:12px;font-weight:700;cursor:pointer}
.share a:hover,.share button:hover{background:#eef4ff}
.post-card form{margin-top:10px!important}
.post-card form .btn.light{font-size:12px;padding:8px 11px}
.media-status{font-size:12px;color:#64748b;margin-top:7px}
@media(max-width:1100px){.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.pagehero{align-items:flex-start;flex-direction:column}.two-col{grid-template-columns:1fr}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.main{padding:16px}.pagehero{padding:20px}.pagehero h1{font-size:26px}.post-grid{grid-template-columns:1fr}.post-card>img,.post-card>video,.post-placeholder{height:210px}.section-title{font-size:22px}}

.status-pill{display:inline-block;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:700;text-transform:capitalize;border:1px solid #dbe3ef}.status-active{background:#eafaf1;color:#137333}.status-suspended{background:#fff4e5;color:#9a6700}.status-inactive{background:#f1f3f4;color:#5f6368}.status-pending{background:#fff8e1;color:#8a6d1d}.status-rejected{background:#fdecec;color:#b42318}.status-graduated{background:#eef2ff;color:#3730a3}

/* MentorWeb global branding */
.mw-topbar{min-height:72px}.mw-brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}.mw-brand img{width:190px;height:58px;object-fit:contain;background:#fff;border-radius:8px}.mw-brand span{font-weight:900;font-size:18px;color:#123b5d;letter-spacing:.02em}.mw-brand small{display:block;color:#6b7b8d;font-size:10px;font-weight:800;letter-spacing:.08em}.mw-topbar .user{display:flex;align-items:center;gap:12px}
@media(max-width:700px){.mw-brand span,.mw-brand small{display:none}.mw-brand img{width:160px;height:54px}}

.mw-password-wrap{position:relative;display:block}.mw-password-wrap input{padding-right:48px!important;width:100%}.mw-password-toggle{position:absolute;right:7px;top:50%;transform:translateY(-50%);border:0;background:transparent;cursor:pointer;font-size:18px;line-height:1;padding:7px;color:#52657a}.mw-password-toggle:hover{background:#eef3f8;border-radius:8px}

/* AI points balance in the global MentorWeb header */
.mw-ai-points-pill{display:inline-flex;align-items:center;gap:7px;text-decoration:none;border:1px solid #c9d8ec;background:#f4f8ff;border-radius:999px;padding:7px 11px;color:#123b5d;font-size:12px;line-height:1.1}.mw-ai-points-pill span{font-weight:800}.mw-ai-points-pill b{font-weight:900}.mw-ai-points-pill:hover{background:#eaf2ff;border-color:#9db9dc}
@media(max-width:700px){.mw-ai-points-pill span{display:none}.mw-ai-points-pill{padding:8px 10px}}

/* AI Studio media generation */
.media-tool-card{border:1px solid rgba(37,99,235,.16)}
.field-full{grid-column:1/-1}
.field textarea{width:100%;min-height:130px;resize:vertical;font:inherit;line-height:1.5;padding:10px 12px;border:1px solid #d1d5db;border-radius:10px;background:#fff;box-sizing:border-box}
.media-result{overflow:hidden}
.ai-generated-image{display:block;width:100%;max-width:900px;max-height:720px;object-fit:contain;border-radius:14px;margin:12px auto;background:#f3f4f6}
.ai-generated-audio{width:100%;margin:16px 0}
.ai-generated-video{display:block;width:100%;max-width:960px;max-height:620px;margin:12px auto;border-radius:14px;background:#111}
.media-download-row{display:flex;align-items:center;gap:14px;justify-content:space-between;flex-wrap:wrap;margin-top:12px}


/* MentorWeb Marketplace */
.market-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.market-toolbar{margin-bottom:20px}.market-search{display:grid;grid-template-columns:minmax(0,1fr) 220px auto auto;gap:10px}.market-search input,.market-search select,.market-buy-form input,.market-order-foot select{box-sizing:border-box;padding:11px 12px;border:1px solid #d1dbe8;border-radius:9px;background:#fff;font:inherit}.market-section-head{display:flex;justify-content:space-between;align-items:center;margin:18px 0 12px}.market-section-head h2{margin:0;color:#102a56}.market-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.market-card{background:#fff;border:1px solid var(--mw-border);border-radius:14px;overflow:hidden;box-shadow:var(--mw-shadow);display:flex;flex-direction:column;min-width:0}.market-card>img{width:100%;height:190px;object-fit:cover;background:#f3f6fa}.market-card-body{padding:15px;display:flex;flex-direction:column;min-width:0;flex:1}.market-card h3{margin:7px 0 7px;color:#102a56;font-size:18px;line-height:1.3;overflow-wrap:anywhere}.market-card p{margin:0 0 10px;color:#52657f;line-height:1.45;font-size:13px}.market-card small{color:#64748b;line-height:1.4}.market-category{display:inline-block;font-size:11px;font-weight:800;color:#174ea6;background:#eef4ff;border:1px solid #d8e5fb;border-radius:999px;padding:5px 8px;text-transform:capitalize}.market-price{font-size:24px;font-weight:900;color:#0f3f88;margin:5px 0 8px}.market-card-actions{display:flex;gap:8px;align-items:center;margin-top:auto;padding-top:13px}.market-card-actions form{margin:0}.market-card-actions .btn{white-space:nowrap}.market-no-image{height:190px;display:grid;place-items:center;background:linear-gradient(135deg,#eef4ff,#f8fafc);color:#174ea6;font-size:46px}.market-no-image.small{height:70px;width:70px;font-size:28px;border-radius:9px;flex:0 0 70px}.market-no-image.large{height:430px;border-radius:14px}.market-detail{margin-bottom:20px}.market-detail-grid{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(320px,1.1fr);gap:26px;align-items:start}.market-detail-image{display:block;width:100%;max-height:500px;object-fit:contain;border-radius:14px;background:#f5f7fa}.market-detail h2{font-size:30px;color:#102a56;margin:12px 0}.market-description{color:#475569;line-height:1.65}.market-buy-form{display:flex;gap:10px;align-items:center;margin-top:18px}.market-buy-form input{width:90px}.market-form-card{max-width:1000px}.market-cart-layout,.market-checkout-layout{grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr)}.market-cart-list{display:grid;gap:12px;margin-bottom:15px}.market-cart-item{display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:14px;align-items:center;padding:13px;border:1px solid #e2e8f0;border-radius:12px}.market-cart-item img{width:70px;height:70px;object-fit:cover;border-radius:9px}.market-cart-item h3{margin:0 0 5px;color:#102a56}.market-cart-item small{color:#64748b}.cart-qty{width:58px;padding:7px;border:1px solid #cbd5e1;border-radius:7px}.market-summary{height:max-content;position:sticky;top:90px}.summary-row,.summary-product{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #edf2f7}.summary-row.total{border-bottom:0;font-size:20px;margin-top:7px}.summary-product{font-size:13px}.market-summary .btn{width:100%;text-align:center;margin-top:12px;box-sizing:border-box}.market-payment{text-align:center;max-width:650px;margin:30px auto}.market-orders{display:grid;gap:16px}.market-order-head,.market-order-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.market-order-head h2{margin:0;color:#102a56}.market-order-head p{margin:4px 0 0}.market-order-items{margin:15px 0;border-top:1px solid #edf2f7;border-bottom:1px solid #edf2f7}.market-order-items>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0}.market-order-items small{color:#64748b}.market-order-foot form{display:flex;gap:7px;align-items:center;margin:0}.status-pending_payment{background:#fff8e1;color:#8a6d1d}.status-confirmed{background:#eafaf1;color:#137333}.status-processing{background:#eef4ff;color:#174ea6}.status-shipped{background:#f3e8ff;color:#7e22ce}.status-delivered{background:#dcfce7;color:#166534}.status-cancelled{background:#fdecec;color:#b42318}.mw-media-action-btn,.mw-media-action-btn:visited{color:#fff!important;text-decoration:none!important;display:inline-flex!important;align-items:center;justify-content:center}.mw-media-action-btn span{color:#fff!important;opacity:1!important;visibility:visible!important}
@media(max-width:1100px){.market-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.market-detail-grid{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.market-search{grid-template-columns:1fr 1fr}.market-search .btn{width:100%}.market-detail-grid,.market-cart-layout,.market-checkout-layout{grid-template-columns:1fr}.market-summary{position:static}.market-no-image.large{height:300px}}
@media(max-width:560px){.market-grid{grid-template-columns:1fr}.market-search{grid-template-columns:1fr}.market-cart-item{grid-template-columns:60px minmax(0,1fr)}.market-cart-item>.btn{grid-column:2}.market-cart-item img{width:60px;height:60px}.market-actions{justify-content:flex-start}.market-actions .btn{flex:1;text-align:center}}
