/* Shared design system and authenticated workspace styles */
:root{--navy:#173b70;--navy-deep:#122e59;--blue:#2678e8;--blue-dark:#1d62c5;--sky:#f3f7fc;--line:#e3ebf5;--muted:#71829a;--ink:#263951;--green:#12866c;--gold:#a46e08;--shadow:0 8px 26px #254c7a0a}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font:14px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button:disabled{opacity:.55;cursor:not-allowed;transform:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.app-body{background:#f4f7fc;min-height:100vh}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;gap:20px;position:sticky;top:0;z-index:30}.app-brand{display:flex;align-items:center;gap:11px;min-width:235px;color:var(--navy)}.app-brand>span:last-child{display:grid;gap:3px}.app-brand strong{font-size:12px;letter-spacing:1.1px}.app-brand small{font-size:9px;letter-spacing:1.6px;color:#8092aa}.brand-mark{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:14px;background:linear-gradient(140deg,#6bbff5,#f4d06b);color:#153467;font-size:15px;font-weight:900;box-shadow:0 6px 17px #254c7a15}.brand-mark-small{width:39px;height:39px;border-radius:12px}.topbar-actions{display:flex;align-items:center;gap:16px}.topbar-date{font-size:11px;color:#8090a6}.role-chip,.subtle-chip{display:inline-flex;align-items:center;gap:6px;border-radius:99px;padding:6px 10px;background:#edf5ff;color:#2766b5;font-size:10px;font-weight:800}.user-summary{display:flex;align-items:center;gap:9px}.user-summary-text{display:grid;gap:2px}.user-summary-text strong{font-size:11px;color:#324a68}.user-summary-text small{font-size:10px;color:#8493a9}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:10px;padding:11px 15px;font-size:12px;font-weight:800;text-decoration:none;cursor:pointer;transition:transform .15s,background .15s,border-color .15s;line-height:1.3}.button:hover{transform:translateY(-1px)}.button:focus-visible,.nav-link:focus-visible,.mobile-menu-button:focus-visible{outline:3px solid #8dc8ff;outline-offset:2px}.button-primary{background:linear-gradient(135deg,#2f86ed,#2669cf);color:#fff;box-shadow:0 7px 16px #2678e820}.button-outline{border-color:#d8e4f3;background:#fff;color:#385677}.button-outline:hover{background:#f4f9ff;border-color:#b8d4f5}.button-light{background:#fff;color:var(--navy)}.button-small{padding:8px 10px;font-size:10px}.button-full{width:100%}.mobile-menu-button{display:none;background:#eef5ff;color:#214f8f;border:0;border-radius:9px;padding:9px 11px;cursor:pointer}
.app-shell{display:flex;align-items:stretch;min-height:calc(100vh - 76px)}.sidebar{width:252px;flex:0 0 252px;background:linear-gradient(180deg,#173b70,#143260);color:#fff;padding:20px 14px 15px;display:flex;flex-direction:column;min-height:calc(100vh - 76px)}.sidebar-profile{display:flex;align-items:center;gap:11px;padding:10px 10px 22px;margin-bottom:14px;border-bottom:1px solid #ffffff1c}.sidebar-profile>div{min-width:0;display:grid;gap:4px}.sidebar-profile strong{font-size:11px;overflow-wrap:anywhere}.sidebar-profile small{font-size:10px;color:#b6cce8}.avatar{display:inline-grid;place-items:center;width:35px;height:35px;flex-shrink:0;border-radius:12px;font-size:12px;font-weight:900}.avatar-blue{background:#e1efff;color:#216ac4}.avatar-purple{background:#eee7ff;color:#6f53ba}.avatar-gold{background:#fff1ce;color:#946b0d}.avatar-green{background:#dff7ee;color:#12795e}.avatar-large{width:39px;height:39px}.sidebar-label{font-size:9px;letter-spacing:1.6px;text-transform:uppercase;color:#8db3e3;font-weight:800;padding:12px 12px 8px}.sidebar-nav{display:grid;gap:5px}.nav-link{min-height:44px;border-radius:10px;padding:11px 12px;display:flex;align-items:center;gap:11px;color:#c9dcf4;font-size:11px;font-weight:700;transition:background .15s,color .15s}.nav-link:hover{background:#ffffff10;color:#fff}.nav-link.is-active{background:linear-gradient(100deg,#2e7de0,#2b65b6);color:#fff;box-shadow:0 6px 16px #081e4033}.nav-icon{width:21px;font-size:18px;display:grid;place-items:center;flex-shrink:0}.nav-dot{width:6px;height:6px;background:#73ddc0;border-radius:50%;margin-left:auto}.sidebar-help{display:flex;gap:10px;margin:31px 5px 18px;padding:14px 12px;border-radius:13px;background:#ffffff0d;border:1px solid #ffffff16}.help-mark{width:24px;height:24px;flex-shrink:0;display:grid;place-items:center;border-radius:8px;background:#ffffff19;color:#bfe0ff;font-weight:900}.sidebar-help strong{font-size:11px}.sidebar-help p{font-size:10px;line-height:1.55;color:#b7cce6;margin:6px 0 10px}.sidebar-help a{color:#a9d9ff;font-size:10px;font-weight:800}.sidebar-bottom{margin-top:auto;border-top:1px solid #ffffff1c;padding:17px 8px 2px;color:#a9c2e0;font-size:10px}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#59d8ad;margin-right:6px;vertical-align:middle}.version-label{float:right;color:#7e9fc7}.main-content{flex:1;min-width:0;padding:31px clamp(18px,3vw,42px) 20px;display:flex;flex-direction:column}.content-container{width:100%;max-width:1500px;margin:0 auto;flex:1}.app-footer{display:flex;justify-content:space-between;gap:15px;max-width:1500px;width:100%;margin:32px auto 0;padding:17px 0 4px;border-top:1px solid #e6edf6;color:#8a9ab0;font-size:10px}.app-footer b{color:#b8cde3;margin:0 5px}
.page-intro{margin-bottom:24px}.page-intro h1{font-size:clamp(26px,2.3vw,34px);letter-spacing:-1.2px;line-height:1.15;color:var(--navy);margin:6px 0 9px}.page-intro p{margin:0;color:var(--muted);font-size:12px;line-height:1.7;max-width:760px}.eyebrow{display:block;color:#347fd2;font-size:10px;letter-spacing:1.8px;text-transform:uppercase;font-weight:900;margin-bottom:9px}.intro-with-action{display:flex;align-items:center;justify-content:space-between;gap:20px}.intro-with-action>div{min-width:0}.wave{font-size:.8em}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:19px}.stat-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}.stat-card{display:flex;align-items:flex-start;gap:12px;padding:18px 17px;background:#fff;border:1px solid #e4ecf6;border-radius:15px;box-shadow:var(--shadow);min-width:0}.stat-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;flex-shrink:0;font-size:19px;font-weight:700}.icon-blue{background:#e5f1ff;color:#327cd1}.icon-green{background:#e0f8ef;color:#168267}.icon-purple{background:#efe9ff;color:#7d61c8}.icon-gold{background:#fff2d4;color:#ad7b19}.stat-card>div{min-width:0;display:grid;gap:4px}.stat-label{font-size:10px;color:#7c8ea5;font-weight:700}.stat-card strong{font-size:27px;line-height:1.1;letter-spacing:-.8px;color:#183c70}.stat-card strong small{font-size:14px;letter-spacing:0;margin-left:2px}.stat-word{font-size:22px!important;padding:2px 0}.stat-subtext,.stat-change{font-size:9px;color:#8292a7}.stat-change.positive{color:#148268;font-weight:800}
.content-grid{display:grid;gap:17px}.content-grid-main{grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);margin-bottom:18px}.panel{background:#fff;border:1px solid #e4ecf6;border-radius:16px;padding:21px;box-shadow:var(--shadow);min-width:0;margin-bottom:17px}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:17px}.panel-heading h2,.panel h2{font-size:15px;line-height:1.35;color:var(--navy);margin:0 0 5px;letter-spacing:-.15px}.panel-heading p{font-size:10px;color:#8090a6;line-height:1.5;margin:0}.text-link{font-size:10px;color:#2675d5;font-weight:900;white-space:nowrap}.text-link:hover{text-decoration:underline}.assignment-row,.student-row,.conversation-row{display:flex;align-items:center;gap:11px;padding:13px 0;border-top:1px solid #edf2f8}.assignment-row:first-of-type,.student-row:first-of-type,.conversation-row:first-of-type{border-top:0}.assignment-symbol{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;flex-shrink:0;background:#eaf3ff;color:#286fc5;font-weight:900}.assignment-symbol.pending{background:#fff3d9;color:#a9750e}.assignment-symbol.submitted{background:#e1f7ee;color:#178368}.row-main{min-width:0;flex:1;display:grid;gap:4px}.row-main>strong,.assignment-row .row-main strong{font-size:11px;color:#2a405d}.row-main>span{font-size:9px;color:#8493a8}.dot-separator{padding:0 3px;color:#b0bdcc}.status-pill{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;max-width:100%;border-radius:99px;padding:5px 9px;font-size:9px;font-weight:900}.status-progress{background:#e9f3ff;color:#296db9}.status-pending{background:#fff3d9;color:#9b700f}.status-submitted,.status-good{background:#e0f7ef;color:#187b60}.status-warning{background:#fff0d1;color:#96690c}.status-graded{background:#e0f7ef;color:#187b60}.subject-progress{padding:13px 0;border-top:1px solid #edf2f8}.subject-progress:first-of-type{border-top:0}.subject-progress-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.subject-progress-top strong{font-size:11px;color:#304864}.subject-progress-top b{font-size:11px;color:#2c70c8}.progress-track{height:7px;border-radius:99px;background:#ebf1f9;overflow:hidden}.progress-track span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#3b87ef,#5bc5ad)}.subject-progress>small{display:block;color:#8a9ab0;font-size:9px;margin-top:7px}.subject-progress-large{padding:17px 0}.subject-progress-large .subject-progress-top{align-items:flex-start}.subject-progress-large .subject-progress-top>div{display:grid;gap:5px}.subject-progress-large .subject-progress-top small{font-size:10px;color:#8795a9}.progress-legend{display:flex;justify-content:space-between;gap:10px;margin-top:8px;font-size:9px;color:#8b9ab0}.banner-card{position:relative;overflow:hidden;display:flex;align-items:center;gap:21px;padding:24px 26px;border-radius:17px;background:linear-gradient(110deg,#1a457e,#2368b4);color:#fff;margin:19px 0 0}.banner-card h2{font-size:19px;letter-spacing:-.4px;margin:5px 0}.banner-card p{font-size:10px;color:#d5e7fa;margin:0;line-height:1.6}.banner-card>div:nth-child(2){flex:1;position:relative;z-index:1}.banner-orb{width:54px;height:54px;display:grid;place-items:center;flex-shrink:0;border-radius:17px;background:#ffffff16;color:#aee4ff;font-size:26px}.button-light{background:#fff;color:#17477f;flex-shrink:0}.student-row .row-main .progress-track{max-width:300px;margin-top:4px}.quick-actions{display:grid}.quick-actions a{display:flex;align-items:center;gap:10px;padding:12px 0;border-top:1px solid #edf2f8}.quick-actions a:first-child{border-top:0}.quick-actions a>span:nth-child(2){display:grid;gap:4px;flex:1}.quick-actions strong{font-size:10px}.quick-actions small{font-size:9px;color:#8696ab}.quick-actions a>b{color:#6693c5}.quick-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;font-size:16px}
.resource-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:16px;margin-bottom:17px}.resource-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #e4ecf6;border-radius:15px;padding:19px;box-shadow:var(--shadow)}.resource-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.resource-symbol{width:45px;height:45px;border-radius:13px;background:#eaf3ff;color:#3279ca;display:grid;place-items:center;font-size:23px}.subject-chip{border-radius:99px;background:#f0f6ff;color:#3e73ae;font-size:9px;font-weight:800;padding:6px 9px}.resource-card h2{font-size:14px;line-height:1.5;color:var(--navy);margin:0 0 8px}.resource-card p{font-size:11px;color:#73849a;line-height:1.7;margin:0 0 14px}.resource-meta{display:flex;flex-direction:column;gap:5px;margin-top:auto;border-top:1px solid #eef2f8;padding:12px 0;color:#4e6888;font-size:10px}.resource-meta small{font-size:9px;color:#8a9ab0;margin-bottom:12px}.info-banner{display:flex;align-items:flex-start;gap:11px;padding:14px 16px;border:1px solid #dceafd;background:#f0f7ff;border-radius:12px;margin:17px 0;color:#52708f}.info-banner-icon{width:22px;height:22px;flex-shrink:0;border-radius:50%;background:#dcecff;color:#276ac1;font-weight:900;display:grid;place-items:center;font-size:12px}.info-banner p{font-size:10px;line-height:1.7;margin:0}.info-banner strong{color:#244d7c}
.form-panel{border-color:#cde2fb;background:#fcfdff}.is-hidden{display:none!important}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px}.field-full{grid-column:1/-1}.field-group{display:grid;gap:7px;margin-bottom:15px;min-width:0}.field-group label{font-size:11px;font-weight:800;color:#334b68}.field-group input,.field-group select,.field-group textarea{width:100%;min-width:0;border:1px solid #d9e4f2;background:#fbfdff;border-radius:10px;padding:11px 12px;color:var(--ink);font:inherit;font-size:12px;outline:none}.field-group input:focus,.field-group select:focus,.field-group textarea:focus{border-color:#5599ed;box-shadow:0 0 0 4px #2678e817;background:#fff}.field-group textarea{resize:vertical}.form-feedback{display:none;padding:11px 13px;border-radius:9px;background:#eef6ff;color:#2b628f;margin:2px 0 13px;font-size:11px;line-height:1.6}.form-feedback.is-visible{display:block}.search-field{display:flex;align-items:center;gap:8px;width:min(245px,100%);padding:0 11px;border:1px solid #dce6f3;background:#fbfdff;border-radius:10px;color:#8da0b8}.search-field>span{font-size:17px}.search-field input{width:100%;min-width:0;border:0;outline:0;background:transparent;padding:10px 0;font:inherit;font-size:11px;color:var(--ink)}.table-scroll{overflow:auto;border:1px solid #e9eff7;border-radius:11px}table{width:100%;border-collapse:collapse;min-width:620px}th,td{text-align:left;vertical-align:middle;padding:14px 14px;border-bottom:1px solid #edf2f8}th{background:#f6f9fd;color:#7a8da6;font-size:9px;letter-spacing:.7px;text-transform:uppercase;font-weight:900}td{font-size:11px;color:#425872}tbody tr:last-child td{border-bottom:0}tbody tr:hover td{background:#fbfdff}.table-subline{display:block;margin-top:4px;color:#8b9ab0;font-size:9px}.detail-row td{padding:0 14px;border-bottom:1px solid #edf2f8;background:#fbfdff}.assignment-detail{padding:17px 0}.assignment-detail h3{margin:0 0 5px;font-size:13px;color:var(--navy)}.assignment-detail>p{font-size:10px;color:var(--muted)}.task-progress{max-width:360px;margin:12px 0}.task-progress small{display:block;margin-top:5px;font-size:9px;color:#8393a9}.table-person{display:flex;align-items:center;gap:9px}.table-person strong{font-size:11px}.mini-progress{height:4px;width:90px;background:#edf2f8;border-radius:9px;overflow:hidden;margin-top:5px}.mini-progress span{display:block;height:100%;background:#4c99e9;border-radius:9px}.empty-state{text-align:center;padding:24px;color:#8192a9;font-size:11px}.panel-heading-stack-mobile{align-items:center}
.support-panel{background:linear-gradient(180deg,#f4f8ff,#fff)}.panel-icon{width:36px;height:36px;border-radius:11px;background:#eaf3ff;color:#347cd2;display:grid;place-items:center}.support-illustration{width:53px;height:53px;display:grid;place-items:center;border-radius:16px;background:#e1efff;color:#347cd2;font-size:25px;margin-bottom:15px}.support-panel>p{font-size:11px;line-height:1.8;color:#71839a}.support-note{background:#fff;border:1px solid #e6edf7;border-radius:11px;padding:13px;margin:17px 0}.support-note strong{font-size:10px;color:#355071}.support-note p{font-size:10px;color:#8696aa;line-height:1.65;margin-bottom:0}.feedback-quote{margin:15px 0 20px;padding:0 0 0 14px;border-left:3px solid #7fafea;color:#5d718c;font-size:12px;line-height:1.9}.feedback-author{display:flex;align-items:center;gap:9px}.feedback-author>div{display:grid;gap:4px}.feedback-author strong{font-size:11px}.feedback-author small{font-size:9px;color:#8293a9}.conversation-date{font-size:9px;color:#8a99ae}.milestone-list{display:grid}.milestone{display:flex;align-items:center;gap:12px;padding:14px 0;border-top:1px solid #edf2f8}.milestone:first-child{border-top:0}.milestone>span:first-child{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#edf4ff;color:#3478c8;font-size:11px;font-weight:900;flex-shrink:0}.milestone.is-complete>span:first-child{background:#def6eb;color:#168266}.milestone>div{display:grid;gap:4px;flex:1}.milestone strong{font-size:11px}.milestone small{font-size:9px;color:#8a9ab0}.report-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:23px;background:linear-gradient(105deg,#173b70,#2868af);color:#fff;border-radius:16px;margin-bottom:17px}.report-heading h2{color:white;font-size:20px;margin:5px 0}.report-heading p{font-size:10px;color:#d1e3f5;margin:0}.report-kicker{font-size:9px;letter-spacing:1.7px;color:#9fd8ff;font-weight:900}.report-stamp{width:61px;height:61px;display:grid;place-items:center;align-content:center;gap:2px;border:1px solid #ffffff65;border-radius:16px;color:#173b70;background:linear-gradient(140deg,#6bbff5,#f4d06b);font-size:18px;font-weight:900;flex-shrink:0}.report-stamp small{font-size:6px;letter-spacing:1px}.ai-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:17px;align-items:start}.ai-panel{padding:0;overflow:hidden}.ai-head{display:flex;align-items:center;gap:12px;padding:20px;border-bottom:1px solid #edf2f8}.ai-avatar{width:42px;height:42px;border-radius:14px;background:#e8f2ff;color:#337acb;display:grid;place-items:center;font-size:22px}.ai-head h2{margin:0 0 4px}.ai-head p{margin:0;color:#8393a8;font-size:9px}.ai-panel>.chat-message{margin:21px}.chat-message{display:flex;gap:10px;align-items:flex-start}.chat-avatar{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:#173b70;color:#fff;font-size:9px;font-weight:900;flex-shrink:0}.chat-message>div{background:#f4f8fe;border:1px solid #e4edf8;border-radius:0 13px 13px 13px;padding:14px;max-width:700px}.chat-message strong{font-size:11px;color:var(--navy)}.chat-message p{font-size:11px;line-height:1.8;color:#697d96;margin:7px 0 0}.suggestion-list{padding:0 20px 20px 59px;display:flex;flex-wrap:wrap;gap:7px}.suggestion-label{flex-basis:100%;font-size:9px;color:#8092a8;font-weight:800}.suggestion-list button{border:1px solid #dbe8f7;border-radius:99px;background:#fff;color:#3c6ea8;padding:8px 10px;font-size:9px;cursor:pointer}.suggestion-list button:hover{background:#eef6ff}.ai-panel form{padding:18px 20px 20px;border-top:1px solid #edf2f8;background:#fcfdff}.ai-form-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.ai-form-footer small{font-size:9px;color:#8a9ab0}.ai-guidance{background:#f9fbff}.guidance-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#e6f0ff;color:#3779cc;font-size:24px;margin-bottom:13px}.ai-guidance h2{line-height:1.5}.ai-guidance ul{padding-left:18px;color:#71839a;font-size:10px;line-height:1.9}.human-support{border-top:1px solid #e4edf7;padding-top:16px;margin-top:20px}.human-support strong{font-size:10px}.human-support p{font-size:10px;color:#8192a8;line-height:1.7}.empty-page{min-height:50vh;display:grid;align-content:center;justify-items:center;text-align:center}.empty-page-icon{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:#e7f1ff;color:#317bcb;font-size:25px}.empty-page h1{color:var(--navy);margin-bottom:5px}.empty-page p{color:var(--muted);font-size:12px;margin-bottom:20px}
@media(max-width:1200px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-grid-main{grid-template-columns:minmax(0,1fr) minmax(260px,.8fr)}.topbar{padding:0 20px}.sidebar{width:230px;flex-basis:230px}}
@media(max-width:950px){.content-grid-main,.ai-layout{grid-template-columns:1fr}.ai-guidance{display:grid;grid-template-columns:auto 1fr;column-gap:15px}.ai-guidance .guidance-icon{grid-row:span 2}.ai-guidance ul,.human-support{grid-column:1/-1}.topbar-date{display:none}.main-content{padding:24px 18px}.sidebar{width:220px;flex-basis:220px}}
@media(max-width:720px){.topbar{height:64px;padding:0 12px;gap:10px}.mobile-menu-button{display:inline-flex;align-items:center;justify-content:center}.app-brand{min-width:0;gap:8px;margin-right:auto}.brand-mark-small{width:34px;height:34px;border-radius:10px;font-size:12px}.app-brand strong{font-size:10px}.app-brand small{font-size:7px;letter-spacing:1px}.topbar-actions{gap:8px}.topbar-actions .role-chip,.user-summary-text,.topbar-actions .button{display:none}.user-summary .avatar{width:32px;height:32px}.app-shell{display:block;min-height:calc(100vh - 64px)}.sidebar{display:none;position:absolute;left:0;right:0;top:64px;width:auto;min-height:0;z-index:25;padding:12px 14px 15px;box-shadow:0 12px 24px #142d4b30}.sidebar.is-open{display:flex}.sidebar-profile{padding:7px 8px 13px;margin-bottom:8px}.sidebar-label{padding:9px 8px}.sidebar-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.nav-link{padding:10px 8px;font-size:10px;min-width:0}.nav-icon{font-size:16px;width:17px}.sidebar-help{margin:12px 0 10px}.sidebar-bottom{margin-top:0;padding-top:10px}.main-content{padding:22px 13px 16px}.page-intro h1{font-size:27px}.page-intro p{font-size:11px}.intro-with-action{display:block}.intro-with-action>.button{margin-top:14px}.stat-grid,.stat-grid-three{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat-card{padding:13px 11px;gap:9px;border-radius:13px}.stat-icon{width:35px;height:35px;border-radius:10px;font-size:16px}.stat-card strong{font-size:23px}.stat-label{font-size:9px}.stat-subtext,.stat-change{font-size:8px}.panel{padding:15px;border-radius:13px}.panel-heading{align-items:flex-start}.panel-heading-stack-mobile{display:grid}.search-field{width:100%}.banner-card{align-items:flex-start;padding:19px;gap:12px;flex-wrap:wrap}.banner-orb{width:43px;height:43px}.banner-card>div:nth-child(2){min-width:calc(100% - 60px)}.banner-card h2{font-size:17px}.banner-card .button{margin-left:55px}.resource-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.field-full{grid-column:auto}.table-scroll table{min-width:600px}.app-footer{flex-direction:column;gap:6px;margin-top:21px;font-size:9px}.report-heading{padding:18px}.report-heading h2{font-size:17px}.report-stamp{width:48px;height:48px}.ai-form-footer{align-items:flex-start;flex-direction:column}.ai-form-footer .button{width:100%}.suggestion-list{padding-left:20px}.conversation-date{display:none}.status-pill{font-size:8px;padding:5px 7px}.student-row .status-pill{white-space:normal;text-align:center}.ai-guidance{display:block}}
@media(max-width:380px){.stat-card{display:block}.stat-icon{margin-bottom:10px}.sidebar-nav{grid-template-columns:1fr}.status-pill{white-space:normal}.assignment-row{flex-wrap:wrap}.assignment-row .status-pill{margin-left:47px}.user-summary{display:none}}
@media print{.topbar,.sidebar,.app-footer,.button,.search-field,.mobile-menu-button{display:none!important}.app-shell{display:block}.main-content{padding:0;background:#fff}.app-body{background:#fff}.panel,.stat-card{box-shadow:none;break-inside:avoid}.report-heading{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}


/* Floating AI learning assistant, present throughout authenticated workspaces. */
.ai-chat-widget{position:fixed;right:24px;bottom:22px;z-index:1000;font-size:14px}
.ai-chat-launcher{display:flex;align-items:center;gap:10px;min-height:56px;padding:0 19px;border:0;border-radius:999px;background:linear-gradient(135deg,#2678e8,#173b70);color:#fff;box-shadow:0 12px 34px #173b7040;cursor:pointer;font-weight:800;font-size:12px;letter-spacing:.1px;transition:transform .18s ease,box-shadow .18s ease}
.ai-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 16px 38px #173b704d}
.ai-chat-launcher:focus-visible,.ai-chat-icon-button:focus-visible,.ai-chat-send:focus-visible,.ai-chat-suggestions button:focus-visible{outline:3px solid #8dc8ff;outline-offset:3px}
.ai-chat-launcher-sparkle{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:#ffffff24;font-size:19px}
.ai-chat-launcher-close{display:none;font-size:24px;font-weight:400;line-height:1}
.ai-chat-widget.is-open .ai-chat-launcher-sparkle,.ai-chat-widget.is-open .ai-chat-launcher-label{display:none}
.ai-chat-widget.is-open .ai-chat-launcher-close{display:inline}
.ai-chat-widget.is-open .ai-chat-launcher{width:56px;min-width:56px;justify-content:center;padding:0;background:#173b70}
.ai-chat-panel{position:absolute;right:0;bottom:72px;width:min(380px,calc(100vw - 28px));height:min(570px,calc(100dvh - 132px));min-height:360px;background:#fff;border:1px solid #dce7f5;border-radius:20px;box-shadow:0 22px 70px #172f4c30;display:flex;flex-direction:column;overflow:hidden;transform-origin:bottom right;animation:ai-chat-enter .16s ease-out}
.ai-chat-panel[hidden]{display:none}
@keyframes ai-chat-enter{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.ai-chat-widget-head{display:flex;align-items:center;gap:11px;padding:16px 16px 15px;background:linear-gradient(130deg,#173b70,#256dc0);color:#fff;flex-shrink:0}
.ai-chat-widget-avatar{width:40px;height:40px;display:grid;place-items:center;flex-shrink:0;border-radius:13px;background:#ffffff20;border:1px solid #ffffff30;font-size:23px}
.ai-chat-widget-title{flex:1;min-width:0;display:grid;gap:4px}
.ai-chat-widget-title strong{font-size:12px;line-height:1.4;letter-spacing:.1px}
.ai-chat-widget-title small{font-size:9px;color:#d6e8ff}
.ai-chat-online-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#8be2c0;margin-right:5px}
.ai-chat-icon-button{width:31px;height:31px;display:grid;place-items:center;border:0;border-radius:9px;background:#ffffff18;color:#fff;font-size:24px;line-height:1;cursor:pointer}
.ai-chat-icon-button:hover{background:#ffffff30}
.ai-chat-clear-history{width:auto;padding:0 8px;font-size:9px;font-weight:800;letter-spacing:.1px}
.ai-chat-widget-messages{flex:1;min-height:0;padding:17px 14px;overflow-y:auto;display:flex;flex-direction:column;gap:12px;background:linear-gradient(180deg,#fbfdff,#fff)}
.ai-chat-message{display:flex;gap:8px;align-items:flex-start;max-width:100%}
.ai-chat-message-user{justify-content:flex-end}
.ai-chat-message-avatar{width:27px;height:27px;display:grid;place-items:center;flex:0 0 27px;border-radius:9px;background:#e7f1ff;color:#276bb7;font-size:9px;font-weight:900}
.ai-chat-bubble{max-width:calc(100% - 35px);padding:10px 12px;border:1px solid #e3ebf5;border-radius:0 13px 13px 13px;background:#f4f8fe;color:#425771;font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.ai-chat-bubble strong{font-size:11px;color:#173b70}
.ai-chat-bubble p{margin:3px 0 0;white-space:pre-wrap}
.ai-chat-message-user .ai-chat-bubble{background:#e8f2ff;border-color:#d5e7ff;border-radius:13px 0 13px 13px;color:#254e80}
.ai-chat-suggestions{padding:0 14px 12px;display:flex;flex-wrap:wrap;gap:6px;background:#fff}
.ai-chat-suggestions button{border:1px solid #d9e6f6;border-radius:999px;background:#fff;color:#3068a7;padding:7px 9px;font-size:9px;font-weight:700;cursor:pointer;text-align:left}
.ai-chat-suggestions button:hover{background:#eef6ff;border-color:#bcd7f8}
.ai-chat-compose{display:flex;align-items:flex-end;gap:8px;padding:11px 12px;border-top:1px solid #e8eef6;background:#fff}
.ai-chat-compose textarea{flex:1;min-width:0;max-height:96px;resize:none;overflow-y:auto;border:1px solid #dce6f2;border-radius:12px;background:#f9fbfe;padding:10px 11px;color:#263951;font:inherit;font-size:11px;line-height:1.5;outline:none}
.ai-chat-compose textarea:focus{border-color:#5599ed;box-shadow:0 0 0 3px #2678e814;background:#fff}
.ai-chat-send{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border:0;border-radius:12px;background:#2678e8;color:#fff;font-size:18px;cursor:pointer}
.ai-chat-send:hover{background:#1d62c5}
.ai-chat-disclaimer{margin:0;padding:0 14px 10px;text-align:center;background:#fff;color:#8a9ab0;font-size:8px}
@media(max-width:720px){.ai-chat-widget{right:14px;bottom:14px}.ai-chat-panel{right:0;bottom:66px;width:min(380px,calc(100vw - 28px));height:min(68dvh,570px);min-height:340px;border-radius:18px}.ai-chat-launcher{min-height:51px;padding:0 15px}.ai-chat-widget.is-open .ai-chat-launcher{width:51px;min-width:51px}}
@media(prefers-reduced-motion:reduce){.ai-chat-panel{animation:none}.ai-chat-launcher{transition:none}}

/* Database-backed coursework, quizzes and marking workflow */
.alert{padding:13px 16px;border-radius:11px;margin:0 0 17px;font-size:11px;line-height:1.6;border:1px solid #d7e8f9;background:#eef7ff;color:#245b8e}
.alert-success{background:#e9f8f0;border-color:#c6ebd7;color:#126b49}.alert-error{background:#fff0ef;border-color:#ffd3cf;color:#a33227}
.muted-note{font-size:10px;color:#8192a8;line-height:1.6}.form-actions{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-top:5px}.lms-form{display:block}.quiz-builder{border:1px solid #d8e8fb;background:#f7fbff;padding:17px;border-radius:13px;margin:6px 0 18px}.quiz-builder[hidden]{display:none!important}.quiz-builder-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.quiz-builder-heading h3{font-size:13px;margin:0 0 4px;color:var(--navy)}.quiz-builder-heading p,.quiz-total-note{font-size:10px;color:#7f90a7;margin:0;line-height:1.6}.quiz-question-editor{position:relative;border:1px solid #e1eaf5;border-radius:11px;padding:16px 14px 5px;margin:0 0 12px;min-width:0;background:#fff}.quiz-question-editor legend{font-weight:900;color:#31567e;font-size:11px;padding:0 6px}.remove-question{position:absolute;right:9px;top:8px;border:0;border-radius:7px;background:#fff0ef;color:#a33227;font-size:17px;width:28px;height:28px;cursor:pointer}.question-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quiz-options-grid{gap:0 12px}.student-activity-list,.marking-list{display:grid;gap:14px}.student-activity-card,.marking-card{border:1px solid #e4ecf6;border-radius:14px;padding:18px;background:#fff;min-width:0}.student-activity-heading,.marking-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.student-activity-heading h3,.marking-card-top h3{font-size:15px;line-height:1.4;color:var(--navy);margin:9px 0 4px}.student-activity-heading p,.marking-card-top p{font-size:10px;color:#8292a8;margin:0;line-height:1.6}.marking-card-top h3 small{font-size:10px;color:#8192a8;font-weight:600}.activity-chips{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.activity-due{display:grid;gap:4px;text-align:right;max-width:190px}.activity-due small{font-size:9px;color:#8998ac}.activity-due strong{font-size:10px;color:#415b7a;line-height:1.4}.activity-instructions{font-size:11px;line-height:1.8;color:#536b87;white-space:normal;padding:13px 0 15px;margin-top:13px;border-top:1px solid #edf2f8}.student-submit-form{border-top:1px solid #edf2f8;padding-top:15px}.student-submit-form>.button{margin-top:2px}.student-quiz-questions{display:grid;gap:12px;margin-bottom:17px}.student-quiz-question{border:1px solid #e2ebf6;border-radius:12px;padding:14px;margin:0;min-width:0}.student-quiz-question legend{display:flex;align-items:flex-start;gap:9px;max-width:100%;padding:0 0 8px;font-size:11px;font-weight:800;line-height:1.6;color:#334d6e}.student-quiz-question legend small{margin-left:auto;white-space:nowrap;font-size:9px;color:#8192a8;font-weight:700}.question-number{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;background:#eaf3ff;color:#2f70c1;border-radius:8px}.student-quiz-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.quiz-option{display:flex;align-items:flex-start;gap:9px;padding:10px;border:1px solid #e6edf6;background:#fbfdff;border-radius:9px;font-size:10px;line-height:1.6;color:#536b87;cursor:pointer}.quiz-option:has(input:checked){border-color:#6cacee;background:#eef7ff;color:#234f83}.quiz-option input{margin:2px 0 0;accent-color:#2c79d7}.submission-status-box{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 13px;background:#f6f9fd;border:1px solid #e8eff7;border-radius:11px}.submission-status-box>div:first-child{display:grid;gap:6px}.submission-status-box small{font-size:9px;color:#8192a8}.submission-score{display:grid;text-align:right;gap:3px}.submission-score strong{font-size:18px;color:#235e9e}.submission-score strong small{font-size:10px}.submission-score span{font-size:9px;color:#8292a8}.tutor-feedback-box{border-left:3px solid #3b8be4;background:#f1f7ff;padding:12px 14px;border-radius:0 10px 10px 0;margin-top:13px}.tutor-feedback-box strong{font-size:10px;color:#295d99}.tutor-feedback-box p{font-size:11px;line-height:1.7;color:#506b88;white-space:normal;margin:7px 0 0}.attachment-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 13px;margin:12px 0;border:1px solid #e6edf6;border-radius:10px;color:#4c6684;font-size:10px}.student-work{margin:11px 0;padding:12px 14px;background:#f8fafd;border-radius:10px;color:#536b87;font-size:11px;line-height:1.8;overflow-wrap:anywhere}.student-work>strong{display:block;color:#324d70;margin-bottom:5px}.quiz-answer-review{margin:13px 0;border:1px solid #e2ebf6;border-radius:10px;padding:12px}.quiz-answer-review summary{cursor:pointer;color:#315e93;font-size:10px;font-weight:900}.quiz-answer-list{display:grid;gap:10px;margin-top:12px}.quiz-answer-item{padding:11px;border-radius:9px;background:#f7faff;font-size:10px}.quiz-answer-item p{margin:6px 0;color:#60748d}.grade-form{border-top:1px solid #edf2f8;padding-top:15px;margin-top:14px}.grade-fields{display:grid;grid-template-columns:minmax(140px,.35fr) minmax(0,1fr);gap:14px}.grade-fields .field-group{margin-bottom:9px}.grade-feedback-field{min-width:0}.grade-form .form-actions{margin-top:7px}.demo-passwords{font-size:10px;color:#7d8ea5;line-height:1.8;margin-top:12px;padding:10px 12px;background:#f7faff;border:1px solid #e8eff8;border-radius:9px}.demo-passwords strong{color:#3a587c}.demo-passwords code{font-size:10px;color:#274e7f}
@media(max-width:720px){.student-activity-card,.marking-card{padding:13px}.student-activity-heading,.marking-card-top{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.activity-due{text-align:left;max-width:none}.student-quiz-options{grid-template-columns:1fr}.question-editor-grid{grid-template-columns:1fr}.quiz-options-grid{grid-template-columns:1fr}.quiz-builder{padding:12px}.quiz-builder-heading{align-items:flex-start;flex-wrap:wrap}.grade-fields{grid-template-columns:1fr;gap:0}.submission-status-box{align-items:flex-start}.student-activity-heading h3{font-size:14px}.attachment-row{align-items:flex-start;flex-direction:column}.attachment-row .button{width:100%}}


/* Header and navigation refinement: calmer hierarchy, clearer spacing, responsive behaviour */
:root{--navy:#17385f;--navy-deep:#102b4e;--blue:#2b78d0;--line:#e2eaf3;--muted:#718197;--ink:#26384d;--shadow:0 8px 26px rgba(28,55,87,.055)}
.app-body{background:#f5f7fb;color:var(--ink)}
.topbar{height:78px;padding:0 clamp(18px,2.4vw,36px);gap:24px;background:rgba(255,255,255,.97);border-bottom:1px solid #e6edf5;box-shadow:0 3px 15px rgba(21,48,78,.035);backdrop-filter:blur(14px)}
.app-brand{min-width:238px;gap:12px;flex-shrink:0}
.brand-mark-small{width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#8ad6e2 0%,#6aa8eb 54%,#f1cf7e 100%);box-shadow:0 5px 13px rgba(35,101,157,.12);font-size:14px;color:#15365c}
.brand-copy{display:grid;gap:4px;min-width:0}
.app-brand strong{font-size:13px;line-height:1.1;letter-spacing:1.45px;color:#183e68}
.app-brand small{font-size:8px;line-height:1.25;letter-spacing:1.2px;font-weight:800;color:#8b9cb0}
.topbar-context{display:flex;align-items:center;gap:10px;margin-right:auto;padding-left:23px;border-left:1px solid #e7edf5;min-width:210px}
.topbar-context>span:last-child{display:grid;gap:3px}
.topbar-context strong{font-size:12px;font-weight:750;color:#344e6c}
.topbar-context small{font-size:10px;color:#8b99aa}
.context-indicator{width:9px;height:9px;border-radius:50%;background:#50c3a1;box-shadow:0 0 0 4px #e6f8f2}
.topbar-actions{gap:18px;margin-left:auto;flex-shrink:0}
.date-summary{display:grid;gap:2px;padding-right:17px;border-right:1px solid #e7edf5}
.date-label{font-size:8px;line-height:1.1;letter-spacing:1.2px;font-weight:850;color:#9aa8b8}
.topbar-date{font-size:11px;color:#4c617b;font-weight:700}
.role-chip{padding:7px 11px;background:#eef5ff;color:#356cae;border:1px solid #e1edfb;font-size:10px;letter-spacing:.2px;text-transform:capitalize;white-space:nowrap}
.role-chip-dot{width:6px;height:6px;border-radius:50%;background:#4e98e8;display:inline-block}
.role-chip-tutor{background:#f4efff;border-color:#ebe2ff;color:#7352ad}.role-chip-tutor .role-chip-dot{background:#9575d3}
.role-chip-parent{background:#fff7e8;border-color:#f6ebd3;color:#946b21}.role-chip-parent .role-chip-dot{background:#d8a43b}
.user-summary{gap:10px;padding-left:1px}
.user-summary .avatar{width:36px;height:36px;border-radius:12px;background:#e4f0ff;color:#226bc1;box-shadow:inset 0 0 0 1px #d5e7fb}
.user-summary-text{gap:3px}
.user-summary-text strong{font-size:11px;line-height:1.3;color:#2b4564;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-summary-text small{font-size:9px;color:#8b9bad}
.logout-button{border-radius:9px;padding:9px 12px;white-space:nowrap}
.mobile-menu-button{gap:7px;border:1px solid #dce8f6;background:#f3f8ff;color:#275c98;font-size:11px;font-weight:800;border-radius:10px;padding:10px 12px}
.app-shell{min-height:calc(100vh - 78px);gap:0}
.sidebar{position:sticky;top:78px;align-self:flex-start;width:254px;flex:0 0 254px;height:calc(100vh - 78px);min-height:520px;overflow-y:auto;overscroll-behavior:contain;padding:24px 15px 16px;background:linear-gradient(180deg,#183d68 0%,#15365f 55%,#122f54 100%);box-shadow:3px 0 18px rgba(22,53,87,.04);scrollbar-width:thin;scrollbar-color:#ffffff2b transparent}
.sidebar-heading{display:grid;gap:6px;padding:2px 12px 20px;margin-bottom:7px;border-bottom:1px solid rgba(255,255,255,.13)}
.sidebar-heading-kicker{font-size:8px;letter-spacing:1.8px;font-weight:900;color:#95b8dc}
.sidebar-heading-title{font-size:15px;line-height:1.3;letter-spacing:-.2px;font-weight:800;color:#fff}
.sidebar-label{padding:17px 12px 9px;font-size:8px;letter-spacing:1.55px;color:#94b6d9}
.sidebar-nav{gap:5px}
.nav-link{position:relative;min-height:46px;padding:11px 12px;border:1px solid transparent;border-radius:11px;gap:12px;color:#d0def0;font-size:12px;font-weight:650;letter-spacing:.05px}
.nav-link:hover{background:rgba(255,255,255,.085);color:#fff;border-color:rgba(255,255,255,.06)}
.nav-link.is-active{background:linear-gradient(105deg,#377fce 0%,#2d6fbb 100%);border-color:rgba(255,255,255,.12);box-shadow:0 6px 15px rgba(5,26,52,.18);color:#fff;font-weight:800}
.nav-link.is-active:before{content:"";position:absolute;left:-15px;top:11px;bottom:11px;width:3px;border-radius:0 4px 4px 0;background:#9de5db}
.nav-icon{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;font-size:17px;line-height:1;flex-shrink:0;filter:saturate(.88)}
.nav-title{min-width:0;line-height:1.3}
.nav-dot{width:7px;height:7px;box-shadow:0 0 0 3px rgba(115,221,192,.12)}
.sidebar-help{margin: auto 3px 15px;padding:13px 12px;border-radius:12px;background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.11);gap:10px}
.help-mark{width:25px;height:25px;border-radius:8px;background:rgba(151,205,255,.15);color:#d5ecff}
.sidebar-help strong{font-size:11px;color:#fff}
.sidebar-help p{font-size:10px;line-height:1.65;color:#b9cde2;margin:6px 0 10px}
.sidebar-help a{font-size:10px;color:#b7e6ff;font-weight:850}
.sidebar-bottom{display:flex;align-items:center;gap:7px;border-top-color:rgba(255,255,255,.12);padding:15px 8px 3px;font-size:9px;letter-spacing:.1px;color:#afc6df;white-space:nowrap}
.status-dot{flex:0 0 7px;width:7px;height:7px;margin:0;background:#57d3a8;box-shadow:0 0 0 3px rgba(87,211,168,.13)}
.version-label{margin-left:auto;float:none;color:#82a8cf;font-size:9px;font-weight:800;letter-spacing:1px}
.main-content{min-width:0;padding:32px clamp(22px,3vw,44px) 22px}
.content-container{max-width:1460px}
.page-intro{margin-bottom:26px}
.page-intro h1{font-size:clamp(27px,2.2vw,35px);letter-spacing:-1.15px;color:#173b66}
.page-intro p{font-size:13px;line-height:1.7;color:#77879c}
.eyebrow{font-size:9px;letter-spacing:1.7px;color:#4086ce}
.app-footer{font-size:10px;color:#8a99ac;border-color:#e4ebf4;padding-top:16px}
@media(max-width:1200px){.topbar{gap:17px;padding:0 20px}.app-brand{min-width:214px}.topbar-context{padding-left:16px;min-width:160px}.topbar-context small{display:none}.topbar-actions{gap:12px}.sidebar{width:238px;flex-basis:238px}}
@media(max-width:950px){.topbar-context{display:none}.topbar-actions{margin-left:auto}.sidebar{width:224px;flex-basis:224px}.main-content{padding:26px 20px}}
@media(max-width:720px){.topbar{height:66px;padding:0 12px;gap:9px}.mobile-menu-button{display:inline-flex;padding:9px 10px;border-radius:10px}.menu-button-label{display:none}.app-brand{min-width:0;gap:8px}.brand-mark-small{width:34px;height:34px;border-radius:10px;font-size:11px}.brand-copy{gap:3px}.app-brand strong{font-size:10px;letter-spacing:.8px}.app-brand small{font-size:6px;letter-spacing:.55px}.topbar-actions{gap:8px}.date-summary{display:none}.topbar-actions .role-chip{display:none}.user-summary{gap:0}.user-summary-text{display:none}.user-summary .avatar{width:32px;height:32px;border-radius:11px}.logout-button{display:none}.app-shell{display:block;min-height:calc(100vh - 66px)}.sidebar{display:none;position:absolute;left:0;right:0;top:66px;width:auto;height:auto;max-height:calc(100vh - 66px);min-height:0;z-index:35;padding:15px 14px 13px;box-shadow:0 16px 26px rgba(11,35,64,.24);border-radius:0 0 16px 16px}.sidebar.is-open{display:flex}.sidebar-heading{padding:1px 8px 13px}.sidebar-heading-title{font-size:14px}.sidebar-label{padding:12px 8px 8px}.sidebar-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.nav-link{min-height:44px;padding:9px 8px;font-size:10px;gap:8px}.nav-link.is-active:before{left:-14px}.nav-icon{width:19px;height:19px;font-size:15px}.sidebar-help{margin:14px 0 11px}.sidebar-bottom{margin-top:0;padding-top:12px}.main-content{padding:23px 14px 16px}.page-intro{margin-bottom:20px}.page-intro h1{font-size:27px}.page-intro p{font-size:11px}}
@media(max-width:380px){.app-brand strong{font-size:9px}.app-brand small{font-size:5.5px}.brand-mark-small{width:31px;height:31px}.sidebar-nav{grid-template-columns:1fr}.topbar{gap:7px;padding:0 9px}}

/* Cohesive shell polish: connect the brand strip, sidebar, and workspace. */
@media (min-width:721px){
  .topbar{
    background:linear-gradient(90deg,#173b67 0,#173b67 254px,#fff 254px,#fff 100%);
    border-bottom:1px solid #dce6f1;
    box-shadow:0 2px 12px rgba(18,46,79,.045);
  }
  .app-brand{color:#fff}
  .app-brand strong{color:#fff}
  .app-brand small{color:#b6cae0}
  .brand-mark-small{box-shadow:0 4px 13px rgba(0,0,0,.13);border:1px solid rgba(255,255,255,.22)}
  .topbar-context{border-left-color:#e8edf4}
  .sidebar{background:linear-gradient(180deg,#173b67 0%,#15365f 58%,#123153 100%);box-shadow:none;border-right:1px solid rgba(11,36,64,.12)}
}
@media (min-width:951px) and (max-width:1200px){
  .topbar{background:linear-gradient(90deg,#173b67 0,#173b67 250px,#fff 250px,#fff 100%)}
}
@media (min-width:721px) and (max-width:950px){
  .topbar{background:linear-gradient(90deg,#173b67 0,#173b67 236px,#fff 236px,#fff 100%)}
  .app-brand{min-width:214px}
}
/* Bring the working area together without making the page feel crowded. */
.main-content{padding-top:25px;padding-bottom:17px}
.content-container{max-width:1540px}
.page-intro{margin-bottom:19px}
.page-intro h1{margin-top:4px;margin-bottom:7px}
.page-intro p{line-height:1.55}
.stat-grid{gap:12px;margin-bottom:15px}
.stat-card{padding:16px 16px;border-radius:13px}
.content-grid{gap:14px}
.content-grid-main{margin-bottom:15px}
.panel{padding:19px;border-radius:14px;box-shadow:0 5px 18px rgba(28,55,87,.045);margin-bottom:14px}
.panel-heading{margin-bottom:14px}
.assignment-row,.student-row,.conversation-row{padding:11px 0}
.app-footer{margin-top:22px;padding-top:13px}
.sidebar-heading{padding-bottom:16px}
.sidebar-label{padding-top:14px}
.nav-link{min-height:43px}
.sidebar-help{margin-top:auto}
@media(max-width:950px){
 .main-content{padding-top:23px}
 .stat-grid{gap:10px}
 .panel{padding:17px}
}
@media(max-width:720px){
 .topbar{background:#fff;border-bottom:1px solid #e3ebf5;box-shadow:0 2px 10px rgba(18,46,79,.04)}
 .app-brand strong{color:#183e68}
 .app-brand small{color:#8b9cb0}
 .mobile-menu-button{background:#edf5ff;border-color:#d7e7fa}
 .main-content{padding:20px 14px 14px}
 .page-intro{margin-bottom:16px}
 .stat-grid{gap:9px;margin-bottom:13px}
 .panel{padding:15px;border-radius:13px}
 .app-footer{margin-top:18px}
}

/* Keep hidden form controls hidden even when component display styles are applied. */
.field-group[hidden] {
    display: none !important;
}

/* Final header correction: remove the split-color logo strip. Keep the brand
   complete and aligned with the sidebar, while the main header stays white. */
@media (min-width: 721px) {
  .topbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e3ebf5 !important;
    box-shadow: 0 2px 10px rgba(21, 48, 78, 0.035) !important;
    backdrop-filter: none;
  }
  .app-brand {
    color: #183e68 !important;
    flex: 0 0 254px;
    width: 254px;
    min-width: 254px;
    max-width: 254px;
    gap: 12px;
    overflow: visible;
  }
  .app-brand strong {
    color: #183e68 !important;
    font-size: 12px;
    letter-spacing: 1px;
    white-space: nowrap;
  }
  .app-brand small {
    display: block;
    color: #8496ad !important;
    font-size: 7px;
    letter-spacing: 0.55px;
    white-space: nowrap;
  }
  .brand-copy {
    min-width: 0;
    overflow: visible;
  }
  .brand-mark-small {
    flex: 0 0 42px;
    border: 1px solid #dceaf5;
    box-shadow: 0 4px 12px rgba(35, 101, 157, 0.10);
  }
  .topbar-context {
    padding-left: 20px;
    min-width: 185px;
    border-left: 1px solid #e7edf5;
  }
  .sidebar {
    border-right: 1px solid rgba(11, 36, 64, 0.10);
    box-shadow: none;
  }
}

@media (min-width: 951px) and (max-width: 1200px) {
  .app-brand {
    flex-basis: 214px;
    width: 214px;
    min-width: 214px;
    max-width: 214px;
    gap: 9px;
  }
  .app-brand small {
    font-size: 6.5px;
    letter-spacing: 0.35px;
  }
  .topbar-context {
    min-width: 135px;
    padding-left: 12px;
  }
}
@media (min-width: 721px) and (max-width: 950px) {
  .app-brand {
    flex-basis: 214px;
    width: 214px;
    min-width: 214px;
    max-width: 214px;
  }
  .topbar-context { display: none; }
}
@media (max-width: 720px) {
  .topbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e3ebf5 !important;
    box-shadow: 0 2px 10px rgba(18, 46, 79, 0.04) !important;
  }
  .app-brand { flex: 1 1 auto; width: auto; max-width: none; }
}


/* v2 definitive header alignment: cache-busted from layout_header.php.
   Keep the whole header white; align brand copy with the left navigation width. */
@media (min-width: 721px) {
  .topbar {
    background: #fff !important;
    background-image: none !important;
    color: #243b57;
    height: 78px;
    padding-left: 22px;
    padding-right: clamp(18px, 2.2vw, 34px);
    gap: 18px;
    border-bottom: 1px solid #e3ebf5 !important;
    box-shadow: 0 2px 10px rgba(20, 48, 80, .035) !important;
  }
  .app-brand {
    display: flex;
    flex: 0 0 232px !important;
    width: 232px !important;
    min-width: 232px !important;
    max-width: 232px !important;
    gap: 11px;
    overflow: visible !important;
    color: #183e68 !important;
  }
  .app-brand strong {
    display: block;
    color: #183e68 !important;
    font-size: 12px !important;
    letter-spacing: 1px !important;
    line-height: 1.15;
    white-space: nowrap;
  }
  .app-brand small {
    display: block;
    color: #8193aa !important;
    font-size: 6.7px !important;
    letter-spacing: .25px !important;
    line-height: 1.3;
    white-space: nowrap;
  }
  .brand-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
    overflow: visible !important;
  }
  .brand-mark-small {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 1px solid #dceaf5;
    box-shadow: 0 4px 12px rgba(35, 101, 157, .10);
  }
  .topbar-context {
    flex: 1 1 auto;
    min-width: 165px;
    padding-left: 19px;
    margin-right: auto;
    border-left: 1px solid #e7edf5 !important;
  }
  .topbar-actions { flex: 0 0 auto; gap: 14px; }
  .sidebar {
    width: 254px !important;
    flex: 0 0 254px !important;
    background: linear-gradient(180deg, #183d68 0%, #15365f 55%, #122f54 100%) !important;
    border-right: 1px solid rgba(11, 36, 64, .10);
    box-shadow: none !important;
  }
}
@media (min-width: 951px) and (max-width: 1200px) {
  .topbar { gap: 13px; padding-left: 16px; padding-right: 16px; }
  .app-brand { flex-basis: 214px !important; width: 214px !important; min-width: 214px !important; max-width: 214px !important; gap: 9px; }
  .app-brand small { font-size: 6px !important; letter-spacing: .12px !important; }
  .topbar-context { min-width: 120px; padding-left: 12px; }
  .topbar-actions { gap: 9px; }
}
@media (min-width: 721px) and (max-width: 950px) {
  .topbar { gap: 12px; padding-left: 14px; padding-right: 14px; }
  .app-brand { flex-basis: 214px !important; width: 214px !important; min-width: 214px !important; max-width: 214px !important; }
  .topbar-context { display: none; }
  .topbar-actions { gap: 8px; }
  .sidebar { width: 224px !important; flex-basis: 224px !important; }
}
@media (max-width: 720px) {
  .topbar { background: #fff !important; background-image: none !important; }
  .app-brand { flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; max-width: none !important; }
  .app-brand strong { color: #183e68 !important; }
  .app-brand small { color: #8193aa !important; }
}



/* TMS-inspired application shell: fixed-width navy sidebar, independent white workspace header. */
:root{--navy:#183452;--navy-deep:#14273f;--blue:#2d72dc;--blue-dark:#225db8;--sky:#f4f7fb;--line:#e4ebf3;--muted:#73849a;--ink:#263b53;--shadow:0 7px 20px rgba(24,52,82,.045)}
html,body{min-height:100%;}
body.app-body{background:#f4f7fb;color:#263b53;}
.app-shell{display:grid!important;grid-template-columns:218px minmax(0,1fr);align-items:stretch;gap:0;min-height:100vh;}
.sidebar{position:sticky!important;top:0!important;align-self:start;width:218px!important;flex:initial!important;height:100vh!important;min-height:100vh!important;max-height:100vh;overflow-y:auto;padding:0 13px 14px!important;background:#152840!important;color:#fff;box-shadow:none!important;border-right:1px solid rgba(12,32,54,.16);scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.2) transparent;}
.sidebar-brand-row{height:76px;min-height:76px;flex:0 0 76px;display:flex;align-items:center;padding:0 17px;margin:0 -13px 7px;background:#152840;border-bottom:1px solid rgba(255,255,255,.10);}
.app-brand{display:flex;align-items:center;gap:9px;min-width:0;width:100%;max-width:100%;flex:1 1 auto;overflow:visible;color:#fff!important;}
.app-brand .brand-mark-small{width:37px!important;height:37px!important;min-width:37px;flex:0 0 37px;border-radius:11px;background:linear-gradient(145deg,#74c5f2,#f0ce70);border:0;box-shadow:0 3px 10px rgba(0,0,0,.12);font-size:13px;}
.app-brand .brand-copy{display:grid;gap:3px;min-width:0;overflow:visible;}
.app-brand strong{display:block;color:#fff!important;font-size:11px!important;letter-spacing:.75px!important;line-height:1.25;white-space:nowrap;}
.app-brand small{display:block;color:#b3c7df!important;font-size:6.1px!important;letter-spacing:.48px!important;line-height:1.25;white-space:nowrap;}
.sidebar-heading{display:grid;gap:5px;padding:12px 8px 16px!important;margin:0 0 3px!important;border-bottom:1px solid rgba(255,255,255,.10)!important;}
.sidebar-heading-kicker{font-size:8px;letter-spacing:1.55px;font-weight:850;color:#8da8c7;}
.sidebar-heading-title{font-size:14px;line-height:1.35;letter-spacing:-.15px;font-weight:800;color:#fff;}
.sidebar-nav{display:block;gap:0;}
.sidebar-label{display:block;padding:15px 8px 7px!important;font-size:8px!important;letter-spacing:1.35px!important;text-transform:uppercase;color:#8fa9c7!important;font-weight:850;}
.nav-link{display:flex;align-items:center;gap:10px;min-height:42px!important;padding:9px 10px!important;margin:0 0 4px;border:1px solid transparent!important;border-radius:9px!important;color:#c5d3e5!important;font-size:11px!important;font-weight:650!important;letter-spacing:0!important;box-shadow:none;}
.nav-link:hover{background:rgba(255,255,255,.065)!important;border-color:rgba(255,255,255,.045)!important;color:#fff!important;}
.nav-link.is-active{background:#2c4a6b!important;border-color:rgba(255,255,255,.035)!important;color:#fff!important;box-shadow:none!important;font-weight:800!important;}
.nav-link.is-active:before{content:"";position:absolute;left:-14px;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:#89c8ff;}
.nav-icon{width:20px!important;height:20px!important;display:grid;place-items:center;font-size:15px!important;flex:0 0 20px;}
.nav-title{min-width:0;line-height:1.35;}
.nav-dot{width:6px;height:6px;flex:0 0 6px;margin-left:auto;border-radius:50%;background:#77dfc2;}
.sidebar-bottom{display:block;margin-top:auto!important;padding:13px 1px 1px!important;border-top:1px solid rgba(255,255,255,.11)!important;color:#fff!important;}
.sidebar-account{display:flex;align-items:center;gap:9px;min-width:0;}
.sidebar-account-avatar{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:50%;background:#284c73;color:#e4f2ff;font-size:11px;font-weight:850;}
.sidebar-account-copy{display:grid;gap:2px;min-width:0;flex:1;}
.sidebar-account-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#fff;font-weight:750;}
.sidebar-account-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;color:#9eb4ce;}
.sidebar-logout{display:grid;place-items:center;width:26px;height:26px;flex:0 0 26px;border-radius:7px;color:#a6c5e7;font-size:17px;}
.sidebar-logout:hover{background:rgba(255,255,255,.09);color:white;}
.workspace-main{min-width:0;min-height:100vh;display:flex;flex-direction:column;}
.topbar{position:sticky!important;top:0;z-index:30;height:76px!important;min-height:76px;flex:0 0 76px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 28px!important;background:#fff!important;background-image:none!important;border:0!important;border-bottom:1px solid #e3eaf2!important;box-shadow:0 2px 8px rgba(25,54,85,.025)!important;backdrop-filter:none;}
.topbar-page-heading{display:grid;gap:3px;min-width:0;}
.topbar-page-heading>span{font-size:8px;line-height:1.4;letter-spacing:1.35px;font-weight:850;color:#8496ac;white-space:nowrap;}
.topbar-page-heading>strong{font-size:20px;line-height:1.25;font-weight:750;letter-spacing:-.5px;color:#1d3754;}
.topbar-actions{display:flex;align-items:center;gap:13px;margin-left:auto;flex-shrink:0;}
.system-status-pill{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border-radius:999px;background:#eaf8f3;color:#27866d;font-size:10px;font-weight:650;white-space:nowrap;}
.system-status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#44b899;box-shadow:0 0 0 3px rgba(68,184,153,.12);}
.topbar-avatar{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#e3edff;color:#2c6ed0;font-size:11px;font-weight:850;}
.topbar-mobile-brand{display:none;}
.mobile-menu-button{display:none;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid #deE8f4!important;border-radius:9px;background:#f3f7fc!important;color:#355d88!important;}
.main-content{flex:1;min-width:0;display:flex;flex-direction:column;padding:21px clamp(18px,2vw,30px) 17px!important;background:#f4f7fb;}
.content-container{width:100%;max-width:1500px;margin:0 auto;flex:1;}
.app-footer{width:100%;max-width:1500px;margin:20px auto 0!important;padding:13px 0 3px!important;border-top:1px solid #e3eaf2!important;color:#8797ab!important;font-size:9px!important;}
.page-intro{margin-bottom:20px;}
.page-intro h1{color:#1d3b5d;}
.page-intro p{color:#788aa1;}
/* Dashboard banner and KPI cards follow the TMS portal reference. */
.dashboard-welcome-banner{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:145px;margin:0 0 18px;padding:23px 27px;border-radius:14px;background:linear-gradient(108deg,#2c6fdf 0%,#3f86f4 100%);color:#fff;box-shadow:0 8px 22px rgba(40,107,215,.12);}
.dashboard-welcome-banner:after{content:"";position:absolute;z-index:-1;width:220px;height:220px;right:-65px;top:-100px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.13),rgba(255,255,255,0) 70%);pointer-events:none;}
.dashboard-welcome-copy{min-width:0;flex:1;position:relative;z-index:1;}
.dashboard-banner-kicker{display:block;margin-bottom:8px;color:#e0edff;font-size:8px;letter-spacing:1.5px;font-weight:900;}
.dashboard-welcome-copy h1{margin:0 0 7px;color:#fff;font-size:clamp(20px,1.8vw,25px);line-height:1.24;letter-spacing:-.6px;font-weight:800;}
.dashboard-welcome-copy p{margin:0 0 10px;max-width:760px;color:#e9f2ff;font-size:11px;line-height:1.6;}
.dashboard-welcome-copy>small{display:block;color:#e1edff;font-size:9px;font-weight:550;}
.dashboard-welcome-copy>small span{margin:0 5px;color:#b8d6ff;}
.dashboard-banner-art{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:17px;flex:0 0 auto;min-width:104px;color:#fff;text-align:center;}
.dashboard-banner-sparkle{font-size:46px;line-height:1;color:rgba(226,241,255,.55);text-shadow:0 3px 18px rgba(255,255,255,.12);}
.dashboard-banner-art strong{font-size:10px;line-height:1.9;letter-spacing:1.4px;font-weight:800;color:#f5f9ff;}
.dashboard-page .stat-grid{gap:12px;margin-bottom:15px;}
.dashboard-page .stat-card{position:relative;display:block;min-width:0;min-height:113px;padding:16px 15px 14px;border:1px solid #e4eaf2;border-bottom:3px solid #4a8cf0;border-radius:12px;background:#fff;box-shadow:0 5px 17px rgba(28,55,87,.035);}
.dashboard-page .stat-card:nth-child(2){border-bottom-color:#35b4bd;}
.dashboard-page .stat-card:nth-child(3){border-bottom-color:#a28cf5;}
.dashboard-page .stat-card:nth-child(4){border-bottom-color:#eab044;}
.dashboard-page .stat-card .stat-icon{position:absolute;top:14px;right:13px;width:28px;height:28px;border-radius:9px;font-size:14px;}
.dashboard-page .stat-card>div{display:grid;gap:5px;min-width:0;padding-right:33px;}
.dashboard-page .stat-label{font-size:10px;color:#7c8ea5;font-weight:650;line-height:1.4;}
.dashboard-page .stat-card strong{font-size:24px;line-height:1.1;letter-spacing:-.5px;color:#1a3a5b;}
.dashboard-page .stat-card strong small{font-size:12px;}
.dashboard-page .stat-subtext{font-size:9px;line-height:1.4;color:#8192a7;}
.dashboard-page .content-grid{gap:13px;}
.dashboard-page .content-grid-main{margin-bottom:14px;}
.dashboard-page .panel{padding:18px;border-radius:13px;border-color:#e4eaf2;box-shadow:0 5px 17px rgba(28,55,87,.035);margin-bottom:13px;}
.dashboard-page .panel-heading{margin-bottom:13px;}
.dashboard-page .panel-heading h2,.dashboard-page .panel h2{font-size:14px;color:#1d3a5a;}
.dashboard-page .assignment-row{padding:10px 0;}
.dashboard-page .assignment-symbol{width:32px;height:32px;border-radius:10px;}
.dashboard-page .row-main>strong{font-size:10px;}
.dashboard-page .row-main>span{font-size:9px;}
.dashboard-page .status-pill{font-size:9px;padding:5px 8px;}
@media(max-width:1180px){
 .app-shell{grid-template-columns:220px minmax(0,1fr);}
 .sidebar{width:220px!important;}
 .topbar{padding:0 21px!important;gap:14px;}
 .topbar-page-heading>span{letter-spacing:1px;}
 .main-content{padding-left:22px!important;padding-right:22px!important;}
 .dashboard-banner-art{min-width:86px;gap:9px;}
 .dashboard-banner-sparkle{font-size:38px;}
}
@media(max-width:920px){
 .app-shell{grid-template-columns:204px minmax(0,1fr);}
 .sidebar{width:204px!important;padding-left:10px!important;padding-right:10px!important;}
 .sidebar-brand-row{margin-left:-10px;margin-right:-10px;padding-left:12px;padding-right:10px;}
 .app-brand .brand-copy small{font-size:5.6px!important;letter-spacing:.28px!important;}
 .sidebar-heading-title{font-size:13px;}
 .nav-link{gap:7px!important;padding-left:8px!important;padding-right:8px!important;font-size:10px!important;}
 .topbar{padding:0 17px!important;}
 .topbar-page-heading>span{font-size:7px;letter-spacing:.6px;}
 .topbar-page-heading>strong{font-size:18px;}
 .system-status-pill{padding:7px 9px;font-size:9px;}
 .main-content{padding:20px 17px 15px!important;}
 .dashboard-welcome-banner{padding:21px;}
 .dashboard-page .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:720px){
 .app-shell{display:block!important;min-height:100vh;}
 .workspace-main{min-height:100vh;}
 .topbar{height:66px!important;min-height:66px;flex-basis:66px;padding:0 13px!important;gap:10px;}
 .mobile-menu-button{display:inline-flex;flex:0 0 36px;padding:0!important;}
 .topbar-mobile-brand{display:flex;align-items:center;gap:8px;min-width:0;flex:1;overflow:hidden;color:#183452;}
 .topbar-mobile-brand .brand-mark-small{width:34px!important;height:34px!important;min-width:34px;flex-basis:34px;border-radius:10px;}
 .topbar-mobile-brand .brand-copy{display:grid;gap:3px;min-width:0;}
 .topbar-mobile-brand .brand-copy strong{font-size:10px!important;letter-spacing:.65px!important;color:#183452!important;}
 .topbar-mobile-brand .brand-copy small{font-size:5.8px!important;letter-spacing:.25px!important;color:#8293a7!important;}
 .topbar-page-heading{display:none;}
 .topbar-actions{gap:0;margin-left:auto;}
 .system-status-pill{padding:7px;background:#eaf8f3;}
 .system-status-pill>span:last-child{display:none;}
 .topbar-avatar{display:none;}
 .sidebar{display:none!important;position:fixed!important;left:0;top:66px;bottom:0;width:min(310px,88vw)!important;height:auto!important;min-height:0!important;max-height:none;z-index:70;padding:0 13px 14px!important;box-shadow:14px 0 30px rgba(10,30,53,.20)!important;border-right:1px solid rgba(255,255,255,.08);}
 .sidebar.is-open{display:flex!important;}
 .sidebar-brand-row{display:none;}
 .sidebar-heading{padding:16px 8px 13px!important;}
 .sidebar-label{padding:13px 8px 7px!important;}
 .nav-link{min-height:43px!important;padding:9px 10px!important;font-size:11px!important;}
 .sidebar-bottom{margin-top:auto!important;}
 .main-content{padding:17px 13px 14px!important;}
 .content-container{width:100%;}
 .dashboard-welcome-banner{min-height:135px;padding:19px 18px;border-radius:13px;margin-bottom:13px;}
 .dashboard-banner-kicker{font-size:7px;letter-spacing:1.05px;margin-bottom:7px;}
 .dashboard-welcome-copy h1{font-size:21px;}
 .dashboard-welcome-copy p{font-size:10px;}
 .dashboard-banner-art{min-width:42px;gap:0;}
 .dashboard-banner-sparkle{font-size:31px;}
 .dashboard-banner-art strong{display:none;}
 .dashboard-page .stat-grid{gap:9px;margin-bottom:12px;}
 .dashboard-page .stat-card{min-height:106px;padding:14px 12px 12px;}
 .dashboard-page .stat-card .stat-icon{top:11px;right:10px;width:25px;height:25px;}
 .dashboard-page .stat-card>div{padding-right:27px;}
 .dashboard-page .stat-card strong{font-size:22px;}
 .dashboard-page .stat-label{font-size:9px;}
 .dashboard-page .stat-subtext{font-size:8px;}
 .dashboard-page .content-grid-main{grid-template-columns:minmax(0,1fr);}
 .dashboard-page .panel{padding:15px;}
 .app-footer{margin-top:16px!important;flex-wrap:wrap;}
}
@media(max-width:380px){
 .topbar{gap:7px;padding:0 9px!important;}
 .topbar-mobile-brand .brand-copy small{font-size:5px!important;letter-spacing:.1px!important;}
 .dashboard-welcome-banner{padding:16px 14px;}
 .dashboard-welcome-copy h1{font-size:18px;}
 .dashboard-banner-art{display:none;}
 .dashboard-page .stat-card{padding:12px 10px 11px;}
 .dashboard-page .stat-card .stat-icon{top:9px;right:8px;width:23px;height:23px;}
}


/* TTI official logo integration */
.tti-logo{display:block;object-fit:contain;background:#fff;border-radius:8px;flex:0 0 auto;}
.tti-logo-sidebar{width:43px;height:43px;padding:2px;border-radius:8px;}
.topbar-mobile-brand .tti-logo-mobile{width:36px;height:36px;padding:2px;border-radius:8px;}
.tti-login-logo{width:54px;height:54px;padding:2px;border-radius:9px;box-shadow:0 4px 12px rgba(0,0,0,.12);}
.brand-lockup .tti-login-logo{width:64px;height:64px;}
.mobile-brand .tti-login-logo{width:46px;height:46px;}
@media(max-width:380px){.tti-logo-sidebar{width:36px;height:36px}.topbar-mobile-brand .tti-logo-mobile{width:32px;height:32px}.brand-lockup .tti-login-logo{width:52px;height:52px}}


/* TTI LMS lavender learning experience refresh */
:root{
  --navy:#34256f;--navy-deep:#241856;--blue:#7c3aed;--blue-dark:#6431ce;
  --sky:#f8f6ff;--line:#e9e2fb;--muted:#827b9f;--ink:#27234d;
  --shadow:0 10px 28px rgba(78,53,145,.08);
}
.app-body{background:#f7f5ff;color:#28234f}
.sidebar{
  background:linear-gradient(180deg,#352579 0%,#302273 54%,#45308c 100%);
  box-shadow:8px 0 30px rgba(56,37,121,.08);
}
.sidebar-brand-row{height:auto;min-height:0;flex:0 0 auto;justify-content:center;margin:0 0 10px;padding:12px 8px 0}
.app-brand{min-width:0;width:100%;flex-direction:column;align-items:center;text-align:center;gap:8px;color:#fff;padding:0 4px 8px}
/* Keep the complete TTI logo visible: use a soft rectangular frame rather than a circle that crops the book and tagline. */
.app-brand .tti-logo-sidebar{width:116px;height:112px;padding:5px;object-fit:contain;border-radius:12px;background:#fff;box-shadow:0 5px 16px rgba(15,8,50,.16)}
.app-brand .brand-copy{display:grid;gap:4px}
.app-brand strong{font-size:12px;letter-spacing:.7px;color:#fff}
.app-brand small{font-size:9px;letter-spacing:.7px;color:#d6cdfd}
.sidebar-heading{padding:8px 12px 12px}
.sidebar-heading-kicker{color:#c9b9ff}
.sidebar-heading-title{color:#fff}
.sidebar-label{color:#c0b3fa}
.nav-link{color:#eee9ff;border-radius:12px}
.nav-link:hover{background:#ffffff16;color:#fff}
.nav-link.is-active{background:linear-gradient(105deg,#b56af4 0%,#7945e8 100%);box-shadow:0 8px 20px rgba(17,8,56,.2);color:#fff}
.sidebar-bottom{border-color:#ffffff26}
.sidebar-account-avatar{background:#e8dcff;color:#6334bc}
.sidebar-account-copy strong{color:#fff}
.sidebar-account-copy small{color:#d2c8f6}
.sidebar-logout{color:#f0eaff}
.topbar{background:rgba(255,255,255,.94);border-bottom-color:#ebe5fb;backdrop-filter:blur(14px)}
.topbar-page-heading span{color:#9386bc}
.topbar-page-heading strong{color:#352579}
.mobile-menu-button{background:#f0e9ff;color:#6433c7}
.system-status-pill{background:#f1ecff;color:#6942bd;border-color:#e6dcff}
.system-status-dot{background:#39bd93}
.main-content{background:linear-gradient(180deg,#faf9ff 0%,#f6f3ff 100%)}
.page-intro h1,.panel-heading h2,.panel h2{color:#33256f}
.eyebrow,.text-link{color:#7b43df}
.stat-card,.panel{border-color:#ece6fb;box-shadow:0 9px 24px rgba(67,45,126,.055)}
.stat-card strong{color:#29215f}
.icon-blue{background:#e9e3ff;color:#7438df}
.icon-purple{background:#eee5ff;color:#7b3fe4}
.button-primary{background:linear-gradient(130deg,#b765f3,#713be0);box-shadow:0 8px 18px rgba(126,66,222,.2)}
.button-outline{border-color:#dfd5fa;color:#5c3ba8}
.button-outline:hover{background:#f7f2ff;border-color:#bba0f3}
.text-link:hover{color:#4f24a9}
.dashboard-welcome-banner{
  min-height:190px;margin-bottom:18px;padding:28px 30px;border-radius:18px;
  

  background-image:
      linear-gradient(
          90deg,
          rgba(250, 247, 255, 0.95) 0%,
          rgba(250, 247, 255, 0.82) 30%,
          rgba(250, 247, 255, 0.30) 52%,
          rgba(250, 247, 255, 0.03) 75%
      ),
      url("/lms/assets/images/lms-study-banner.png")!important;

  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;


  color:#30216b;border:1px solid rgba(255,255,255,.8);
  box-shadow:0 12px 28px rgba(85,57,148,.12);
}
.dashboard-welcome-banner:after{width:280px;height:280px;right:-85px;top:-110px;background:radial-gradient(circle,rgba(177,113,255,.22),rgba(177,113,255,0) 70%)}
.dashboard-welcome-copy{max-width:710px}
.dashboard-banner-kicker{color:#8151d3}
.dashboard-welcome-copy h1{color:#30216b;font-size:clamp(23px,2vw,31px)}
.dashboard-welcome-copy p{color:#4f4774;font-size:12px}
.dashboard-welcome-copy>small{color:#766b9b}
.dashboard-welcome-copy>small span{color:#a18bd5}
.dashboard-banner-art{color:#6934bd}
.dashboard-banner-art strong{color:#6137a9}
.dashboard-banner-sparkle{color:#b68bed}
.dashboard-page .stat-card{border-radius:16px;background:rgba(255,255,255,.95)}
.dashboard-page .stat-card:nth-child(1){background:linear-gradient(135deg,#fff,#f4edff)}
.dashboard-page .stat-card:nth-child(2){background:linear-gradient(135deg,#fff,#fff0f8)}
.dashboard-page .stat-card:nth-child(3){background:linear-gradient(135deg,#fff,#eef5ff)}
.dashboard-page .stat-card:nth-child(4){background:linear-gradient(135deg,#fff,#fff7e9)}
.dashboard-page .panel{border-radius:17px}
.dashboard-page .assignment-row,.dashboard-page .student-row,.dashboard-page .conversation-row{border-color:#eee8fb}
.dashboard-page .subject-chip{background:#f1e9ff;color:#7041c4}
.dashboard-page .status-pending{background:#fff0f5;color:#c33e72}
.dashboard-page .dashboard-mark{color:#6436c2}
.dashboard-page .feedback-quote{border-left-color:#a36bf0;background:#faf6ff}
.topbar-mobile-brand .tti-logo-mobile{border-radius:50%}
@media(max-width:960px){
  .app-brand .tti-logo-sidebar{width:108px;height:104px}
  .dashboard-welcome-banner{min-height:175px;background-position:center}
}
@media(max-width:720px){
  .app-brand{flex-direction:row;text-align:left;justify-content:flex-start}
  .app-brand .tti-logo-sidebar{width:54px;height:54px;padding:2px;border-radius:9px}
  .app-brand .brand-copy{display:grid}
  .dashboard-welcome-banner{min-height:190px;padding:22px 18px;background-position:58% center}
  .dashboard-welcome-banner:before{content:"";position:absolute;inset:0;z-index:0;background:rgba(255,255,255,.25);pointer-events:none}
  .dashboard-welcome-copy h1{font-size:22px}
}



/* ==========================================
   TTI LMS — Purple Dashboard Theme
   ========================================== */

:root {
    --navy: #382477;
    --navy-deep: #29185f;
    --blue: #8546ee;
    --blue-dark: #6732d5;
    --sky: #f7f4ff;
    --line: #e9e1fb;
    --muted: #81759f;
    --ink: #302453;
    --shadow: 0 8px 25px rgba(89, 57, 155, 0.08);
}

/* Main dashboard background */
body.app-body {
    background: #f7f4ff !important;
    color: #302453;
}

.main-content {
    background:
        radial-gradient(
            ellipse at top right,
            rgba(224, 207, 255, 0.35),
            transparent 45%
        ),
        #f7f4ff !important;
}

/* Purple sidebar */
.sidebar {
    background: linear-gradient(
        180deg,
        #392477 0%,
        #30206f 60%,
        #241956 100%
    ) !important;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand-row {
    background: transparent !important;
}

.sidebar-label,
.sidebar-heading-kicker {
    color: #d2bfff !important;
}

.nav-link {
    color: #eee7ff !important;
    border-radius: 10px !important;
}

.nav-link:hover {
    background: rgba(255,255,255,0.10) !important;
}

.nav-link.is-active {
    background: linear-gradient(
        110deg,
        #a76bfa,
        #7542e8
    ) !important;
    color: #fff !important;
    box-shadow: 0 5px 15px rgba(19, 9, 54, 0.2);
}

/* Photo banner */
.dashboard-welcome-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: 190px;
    padding: 30px;
    margin-bottom: 20px;

    background-color: #e9dcff;
    background-image:
        linear-gradient(
            90deg,
            rgba(250, 247, 255, 0.97) 0%,
            rgba(250, 247, 255, 0.88) 35%,
            rgba(250, 247, 255, 0.25) 68%,
            rgba(250, 247, 255, 0.04) 100%
        ),
        url("../images/lms-study-banner.jpg");

    background-size: cover;
    background-position: center 55%;
    background-repeat: no-repeat;

    border: 1px solid rgba(255,255,255,0.85);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(93, 61, 160, 0.12);
}

/* Banner text */
.dashboard-banner-kicker {
    color: #8050d8 !important;
    letter-spacing: 1.7px;
    font-weight: 850;
}

.dashboard-welcome-copy h1 {
    color: #302064 !important;
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.25;
}

.dashboard-welcome-copy p {
    color: #5d507f !important;
    font-size: 12px;
    max-width: 520px;
}

.dashboard-welcome-copy > small {
    color: #79689e !important;
}

.dashboard-welcome-copy > small span {
    color: #a17ce8 !important;
}

.dashboard-banner-art {
    color: #7041c8 !important;
}

.dashboard-banner-sparkle {
    color: #b08aff !important;
}

.dashboard-banner-art strong {
    color: #7547c6 !important;
}

/* Dashboard statistics */
.dashboard-page .stat-card {
    background: linear-gradient(
        145deg,
        #ffffff,
        #fbf8ff
    ) !important;

    border: 1px solid #e8defb !important;
    border-bottom: 3px solid #8c56ed !important;
    border-radius: 16px !important;
    box-shadow: 0 7px 20px rgba(87, 54, 148, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-page .stat-card:nth-child(2) {
    border-bottom-color: #dc80d8 !important;
}

.dashboard-page .stat-card:nth-child(3) {
    border-bottom-color: #8d78ed !important;
}

.dashboard-page .stat-card:nth-child(4) {
    border-bottom-color: #e9b65c !important;
}

.dashboard-page .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(87, 54, 148, 0.11);
}

.dashboard-page .stat-card strong {
    color: #302064 !important;
}

.dashboard-page .stat-label {
    color: #796a9c !important;
}

/* White panels with a soft purple edge */
.dashboard-page .panel {
    background: rgba(255,255,255,0.96) !important;
    border: 1px solid #e9e1fb !important;
    border-radius: 17px !important;
    box-shadow: 0 7px 22px rgba(87, 54, 148, 0.055);
}

.dashboard-page .panel-heading h2,
.dashboard-page .panel h2 {
    color: #35216f !important;
}

.dashboard-page .text-link {
    color: #8046e8 !important;
}

/* Purple primary buttons */
.button-primary {
    background: linear-gradient(
        115deg,
        #9a5af5,
        #7138dc
    ) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 5px 13px rgba(116, 56, 220, 0.18);
}

.button-primary:hover {
    filter: brightness(1.05);
}

/* Learning progress */
.progress-track span {
    background: linear-gradient(
        90deg,
        #9b5cf6,
        #7138df
    ) !important;
}

/* Mobile banner adjustments */
@media (max-width: 720px) {
    .dashboard-welcome-banner {
        min-height: 165px;
        padding: 22px 18px;
        background-position: center;
    }

    .dashboard-welcome-copy h1 {
        font-size: 22px;
    }

    .dashboard-welcome-copy p {
        max-width: 95%;
    }
}


/* Real learning-resource publishing controls */
.resource-actions{display:flex;align-items:center;gap:8px;margin-top:9px}
.resource-actions form{margin:0}
.resource-actions .button{flex:1;justify-content:center}
.resource-delete{color:#a33243;border-color:#f0cbd0}
.resource-delete:hover{background:#fff2f3;border-color:#e5aab3}
.resource-card [data-search-row][hidden],.resource-grid [data-search-row][hidden]{display:none!important}
.field-group input[type="file"]{max-width:100%;padding:10px;background:#fbfdff}
.field-group small{display:block;margin-top:5px;color:#8292a8;font-size:10px;line-height:1.6}

/* Ask my tutor / Student questions real messaging feature */
.conversation-list { display: flex; flex-direction: column; }
.conversation-row-link { color: inherit; text-decoration: none; gap: 14px; transition: background .15s ease; }
.conversation-row-link:hover { background: rgba(124, 58, 237, .055); }
.conversation-row-link .row-main { min-width: 0; flex: 1; }
.conversation-row-link .row-main span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-thread-panel { margin-top: 22px; }
.message-thread-body { display: flex; flex-direction: column; gap: 14px; padding: 18px 0; max-height: 520px; overflow-y: auto; }
.message-bubble { max-width: min(78%, 760px); padding: 13px 16px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; }
.message-bubble-mine { align-self: flex-end; background: #f1eafe; border-color: #ded0ff; }
.message-bubble-theirs { align-self: flex-start; background: #f8fafc; }
.message-bubble-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: #64748b; font-size: 12px; }
.message-bubble-meta strong { color: #243b67; }
.message-bubble p { margin: 8px 0 0; line-height: 1.6; overflow-wrap: anywhere; }
.message-reply-form { border-top: 1px solid #e8eaf1; padding-top: 18px; }
@media (max-width: 700px) { .message-bubble { max-width: 94%; } .conversation-row-link { flex-wrap: wrap; } .conversation-row-link .row-main { flex-basis: calc(100% - 60px); } }
.message-resolve-form { display: flex; justify-content: flex-end; margin-top: 10px; }

/* Functional AI chat improvements and report filter layout */
.ai-page-messages{display:flex;flex-direction:column;gap:12px;padding:0 20px;max-height:430px;overflow:auto}
.ai-page-user{justify-content:flex-end}
.ai-page-user>div{background:#eee7ff!important;border-color:#ddd0ff!important;border-radius:13px 0 13px 13px!important}
.ai-page-messages .chat-message>div p{white-space:pre-wrap;overflow-wrap:anywhere}
.report-filter-panel{margin-bottom:17px}
.report-filter-panel .form-grid{align-items:end}
.report-filter-panel .form-actions{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0}
@media(max-width:720px){.ai-page-messages{max-height:360px;padding:0 12px}.report-filter-panel .form-actions{flex-wrap:wrap}}


/* Student learning pages: visually group resources and assessments by enrolled class. */
.class-group-list {
    display: grid;
    gap: 14px;
}
.class-course-group {
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 16px;
    background: var(--surface, #fff);
    overflow: hidden;
}
.class-course-group[hidden] {
    display: none !important;
}
.class-course-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    background: var(--surface-soft, #f8fafc);
    transition: background .15s ease;
}
.class-course-summary::-webkit-details-marker {
    display: none;
}
.class-course-summary::after {
    content: "⌄";
    margin-left: 2px;
    color: var(--muted, #64748b);
    font-size: 18px;
    transition: transform .15s ease;
}
.class-course-group:not([open]) .class-course-summary::after {
    transform: rotate(-90deg);
}
.class-course-summary:hover {
    background: var(--surface-hover, #f1f5f9);
}
.class-course-icon {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary-soft, #eef2ff);
    color: var(--primary, #4f46e5);
    font-size: 20px;
}
.class-course-title {
    display: grid;
    gap: 4px;
    min-width: 0;
    flex: 1;
}
.class-course-title strong {
    color: var(--text, #1f2937);
    font-size: 14px;
    line-height: 1.35;
}
.class-course-title small {
    color: var(--muted, #64748b);
    font-size: 12px;
}
.class-course-count {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e5e7eb);
    color: var(--muted, #64748b);
    font-size: 11px;
    white-space: nowrap;
}
.class-group-content {
    padding: 16px;
}
.class-group-content.resource-grid {
    margin: 0;
}
.class-group-content.student-activity-list {
    padding: 16px;
}
.activity-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.activity-tools .search-field {
    min-width: 200px;
}
@media (max-width: 640px) {
    .class-course-summary {
        padding: 13px;
        gap: 9px;
    }
    .class-course-count {
        font-size: 10px;
        padding: 4px 7px;
    }
    .class-group-content {
        padding: 10px;
    }
    .activity-tools {
        width: 100%;
    }
    .activity-tools .search-field {
        min-width: 0;
        width: 100%;
    }
}

/* Reports page snapshot banner */
.report-heading {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 142px;
    padding: 27px 30px;
    border: 1px solid #1a4a7c;
    border-radius: 18px;
    background: radial-gradient(circle at 82% 5%, rgba(87, 181, 255, .3), transparent 31%), linear-gradient(112deg, #142d54 0%, #17477c 54%, #286bb0 100%);
    box-shadow: 0 14px 30px rgba(20, 57, 100, .13);
}
.report-heading::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 250px;
    height: 250px;
    top: -160px;
    right: 105px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(255, 255, 255, .035), 0 0 0 50px rgba(255, 255, 255, .025);
}
.report-heading-copy { position: relative; z-index: 1; }
.report-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    border: 1px solid rgba(190, 226, 255, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #c5e7ff;
    font-size: 9px;
    letter-spacing: 1.5px;
}
.report-kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #55e2b0;
    box-shadow: 0 0 0 3px rgba(85, 226, 176, .15);
}
.report-heading h2 { margin: 11px 0 12px; font-size: 25px; letter-spacing: -.45px; }
.report-heading-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.report-heading-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 10px;
    border: 1px solid rgba(219, 239, 255, .18);
    border-radius: 8px;
    background: rgba(7, 30, 61, .2);
    color: #e2f1ff;
    font-size: 10px;
}
.report-generated { color: #c4dcf4 !important; }
.report-stamp {
    position: relative;
    z-index: 1;
    width: 74px;
    height: 74px;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 22px;
    background: linear-gradient(145deg, #d9f2ff, #f3d784);
    box-shadow: 0 9px 24px rgba(5, 25, 54, .22), inset 0 1px 0 rgba(255, 255, 255, .8);
    color: #173b70;
    transform: rotate(3deg);
}
.report-stamp span { font-size: 22px; line-height: 1; letter-spacing: -1px; }
.report-stamp small { font-size: 6px; letter-spacing: 1.1px; }
@media (max-width: 720px) {
    .report-heading { min-height: 0; padding: 20px; border-radius: 15px; }
    .report-heading h2 { font-size: 21px; }
    .report-heading-meta { max-width: calc(100% - 52px); }
    .report-heading-meta span { font-size: 9px; }
    .report-stamp { width: 52px; height: 52px; border-radius: 16px; }
    .report-stamp span { font-size: 18px; }
    .report-stamp small { font-size: 5px; }
}

/* ===== Assignments & quizzes (2026-11-06): clearer activity types, To do / Done, marking queue ===== */
.status-neutral{background:#f1f3f8;color:#5d6b82}
.status-danger{background:#ffe9e7;color:#b3261e}
input[type="password"]::-ms-reveal,input[type="password"]::-ms-clear{display:none}

/* Type icon: assignment = teal pencil, quiz = purple Q */
.type-icon{display:inline-grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:11px;font-style:normal;font-weight:900;font-size:15px}
.type-assignment{background:#dff5ee;color:#13795f}
.type-quiz{background:#eee5ff;color:#7339de}
.activity-legend{display:flex;flex-wrap:wrap;gap:16px;margin:-4px 0 14px;font-size:10px;color:#7c7aa0}
.activity-legend span{display:inline-flex;align-items:center;gap:7px}
.activity-legend .type-icon{width:22px;height:22px;flex-basis:22px;border-radius:7px;font-size:11px}

/* Class summary counters */
.class-course-counts{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.count-chip{padding:5px 9px;border-radius:99px;font-size:10px;font-weight:800;white-space:nowrap}
.count-todo{background:#fff1d6;color:#94650a}
.count-done{background:#dff5ee;color:#13795f}

/* To do / Done sections */
.activity-sections{display:grid;gap:20px}
.activity-section{display:grid;gap:10px}
.activity-section[hidden]{display:none}
.activity-section-title{display:flex;align-items:center;gap:8px;margin:0;font-size:11px;letter-spacing:1.2px;text-transform:uppercase;color:#4a3d85}
.activity-section-title::before{content:"";width:8px;height:8px;border-radius:50%}
.activity-section-title.is-todo::before{background:#e7a521}
.activity-section-title.is-done::before{background:#22a27f}
.activity-section-title b{font-size:10px;padding:2px 8px;border-radius:99px;background:#f1edff;color:#5b3bb0;letter-spacing:0}
.activity-section-empty{margin:0;padding:12px 14px;border:1px dashed #e3dcf7;border-radius:11px;font-size:11px;color:#8a86a8}

/* One activity = one collapsible row, coloured edge by type */
.activity-item{border:1px solid #ebe5fb;border-left:4px solid #22a27f;border-radius:12px;background:#fff;overflow:hidden}
.activity-item.is-quiz{border-left-color:#8b52ea}
.activity-item.is-done{background:#fcfcff}
.activity-item.is-missed{border-left-color:#d4544b}
.activity-item[hidden]{display:none}
.activity-item-summary{display:flex;align-items:center;gap:12px;padding:12px 14px;cursor:pointer;list-style:none}
.activity-item-summary::-webkit-details-marker{display:none}
.activity-item-summary:hover{background:#faf8ff}
.activity-item-summary::after{content:"⌄";color:#9b94bb;font-size:16px;transition:transform .15s}
.activity-item:not([open]) .activity-item-summary::after{transform:rotate(-90deg)}
.activity-item-main{display:grid;gap:3px;min-width:0;flex:1}
.activity-item-main strong{font-size:13px;color:#2d2366;overflow-wrap:anywhere}
.activity-item.is-done .activity-item-main strong{color:#4b4a66}
.activity-item-main small{font-size:10px;color:#8a86a8}
.activity-item-status{display:flex;align-items:center;gap:7px;flex-shrink:0}
.score-badge{font-size:15px;font-weight:900;color:#13795f}
.score-badge small{font-size:10px;color:#7f9a90;font-weight:700}
.activity-item-body{padding:4px 16px 16px 62px;border-top:1px solid #f1edfb}
.activity-item-facts{display:flex;flex-wrap:wrap;gap:8px 22px;padding:12px 0 2px}
.activity-item-facts span{display:grid;gap:2px}
.activity-item-facts small{font-size:9px;color:#9a96b8;text-transform:uppercase;letter-spacing:.8px}
.activity-item-facts strong{font-size:11px;color:#3e3670}
.activity-item-body .activity-instructions{margin-top:10px}

/* Tutor file shown to students / tutors */
.activity-file{display:flex;align-items:center;gap:12px;padding:11px 13px;margin:0 0 14px;border:1px solid #e5dcfb;background:#faf7ff;border-radius:11px}
.activity-file-icon{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:10px;background:#fff;border:1px solid #e5dcfb;color:#6a3fd0;font-size:9px;font-weight:900;letter-spacing:.5px}
.activity-file-name{display:grid;gap:2px;min-width:0;flex:1}
.activity-file-name strong{font-size:11px;color:#33256f;overflow-wrap:anywhere}
.activity-file-name small{font-size:9px;color:#8a86a8}
.activity-file-actions{display:flex;gap:6px;flex-shrink:0}

/* Tutor: file picker in the publish form */
.file-drop{display:flex!important;align-items:center;gap:12px;padding:14px;border:1.5px dashed #d7c9f8;border-radius:12px;background:#fbf9ff;cursor:pointer;font-weight:400!important;transition:border-color .15s,background .15s}
.file-drop:hover,.file-drop.is-dragging{border-color:#9b6bf0;background:#f5f0ff}
.file-drop.has-file{border-style:solid;border-color:#9b6bf0;background:#f5f0ff}
.file-drop-icon{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:10px;background:#efe7ff;color:#7339de;font-size:18px}
.file-drop-text{display:grid;gap:3px;flex:1;min-width:0}
.file-drop-text strong{font-size:12px;color:#33256f;overflow-wrap:anywhere}
.file-drop-text small{font-size:10px;color:#8a86a8}
.file-drop-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.file-drop-input:focus-visible+small,.file-drop:focus-within{outline:3px solid #c9b2fa}
#assignment-file-field[hidden]{display:none!important}

/* Tutor: published activity table */
.table-activity{display:flex;align-items:flex-start;gap:10px}
.table-activity .type-icon{width:30px;height:30px;flex-basis:30px;font-size:12px;border-radius:9px}
.table-file-link{display:inline-block;margin-top:5px;font-size:10px;color:#6a3fd0;font-weight:700}
.table-file-link:hover{text-decoration:underline}

/* Tutor: marking queue */
.mark-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.mark-toolbar-right{display:flex;gap:8px;flex-wrap:wrap}
.mark-toolbar select{border:1px solid #dfd5fa;background:#fff;border-radius:10px;padding:9px 10px;font-size:11px;color:#3e3670}
.segmented{display:inline-flex;padding:4px;background:#f3effe;border-radius:12px;gap:3px}
.segmented button{border:0;background:transparent;padding:8px 12px;border-radius:9px;font-size:11px;font-weight:800;color:#6b6496;cursor:pointer}
.segmented button span{display:inline-block;margin-left:5px;padding:1px 7px;border-radius:99px;background:#e6defc;color:#5b3bb0;font-size:10px}
.segmented button.is-active{background:#fff;color:#33256f;box-shadow:0 2px 8px rgba(67,45,126,.12)}
.mark-group-list{display:grid;gap:12px}
.mark-group{border:1px solid #ebe5fb;border-left:4px solid #22a27f;border-radius:14px;background:#fff;overflow:hidden}
.mark-group.is-quiz{border-left-color:#8b52ea}
.mark-group[hidden]{display:none}
.mark-group-summary{display:flex;align-items:center;gap:12px;padding:14px 16px;cursor:pointer;list-style:none;background:#fcfbff}
.mark-group-summary::-webkit-details-marker{display:none}
.mark-group-summary::after{content:"⌄";color:#9b94bb;font-size:17px;transition:transform .15s}
.mark-group:not([open]) .mark-group-summary::after{transform:rotate(-90deg)}
.mark-group-title{display:grid;gap:3px;flex:1;min-width:0}
.mark-group-title strong{font-size:13px;color:#2d2366}
.mark-group-title small{font-size:10px;color:#8a86a8}
.mark-group-progress{display:grid;gap:4px;justify-items:end;flex-shrink:0}
.mark-group-progress small{font-size:9px;color:#8a86a8}
.mark-group-progress .mini-progress{width:110px;margin:0}
.mark-group-progress .mini-progress span{background:linear-gradient(90deg,#b765f3,#713be0)}
.mark-group-body{padding:6px 12px 12px;display:grid;gap:8px;border-top:1px solid #f1edfb}
.mark-row{border:1px solid #eee9fb;border-radius:11px;background:#fff}
.mark-row.is-pending{border-color:#f3dfb2;background:#fffdf7}
.mark-row[hidden]{display:none}
.mark-row-summary{display:flex;align-items:center;gap:11px;padding:10px 12px;cursor:pointer;list-style:none}
.mark-row-summary::-webkit-details-marker{display:none}
.mark-row-summary:hover{background:#faf8ff}
.mark-row-name{display:grid;gap:2px;flex:1;min-width:0}
.mark-row-name strong{font-size:12px;color:#2d2366}
.mark-row-name small{font-size:10px;color:#8a86a8}
.late-flag{color:#b3261e}
.mark-row-score{font-size:13px;font-weight:900;color:#3e3670;min-width:70px;text-align:right}
.mark-row-body{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,.9fr);gap:16px;padding:4px 14px 14px;border-top:1px solid #f1edfb}
.mark-row-body h4{margin:12px 0 8px;font-size:11px;text-transform:uppercase;letter-spacing:1px;color:#6b6496}
.mark-work .student-work{margin-top:0}
.mark-form{background:#faf8ff;border:1px solid #eee7fd;border-radius:12px;padding:0 14px 14px;margin-top:12px;align-self:start}
.mark-form .field-group{margin-bottom:11px}
.score-input{display:flex;align-items:center;gap:8px}
.score-input input{max-width:120px;font-size:16px!important;font-weight:800}
.score-input span{font-size:12px;color:#6b6496;font-weight:700}
.answer-review{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.answer-review li{display:flex;align-items:flex-start;gap:10px;padding:9px 11px;border-radius:9px;background:#f4fbf8;font-size:11px}
.answer-review li.is-wrong{background:#fff4f3}
.answer-review strong{color:#2d2366;font-size:11px}
.answer-review p{margin:3px 0 0;color:#6b6f86;font-size:10px}
.answer-review div{flex:1;min-width:0}
.answer-review small{font-size:10px;font-weight:800;color:#6b6496;white-space:nowrap}
.answer-mark{display:grid;place-items:center;flex:0 0 20px;height:20px;border-radius:6px;background:#22a27f;color:#fff;font-size:11px;font-weight:900}
.is-wrong .answer-mark{background:#d4544b}
.answer-correct{color:#13795f;font-weight:700}
.mark-empty{margin:4px 2px;font-size:11px;color:#8a86a8}
.mark-missing{display:grid;gap:7px;padding:10px 12px;border-radius:11px;background:#f8f7fc;font-size:10px;color:#6b6496}
.mark-missing>div{display:flex;flex-wrap:wrap;gap:5px}
.name-chip{padding:4px 9px;border-radius:99px;background:#fff;border:1px solid #e6e1f6;color:#4b4a66;font-size:10px}

@media (max-width:900px){
  .mark-row-body{grid-template-columns:1fr}
  .activity-item-body{padding-left:16px}
}
.mark-toolbar-right{flex-wrap:nowrap;align-items:center}
.mark-toolbar-right .search-field{width:240px}
.score-badge.is-mid{color:#a46e08}
.score-badge.is-low{color:#b3261e}
.status-pill.status-low{background:#ffe9e7;color:#b3261e}
@media (max-width:640px){
  .class-course-summary{flex-wrap:wrap;position:relative;padding-right:40px}
  .class-course-summary::after{position:absolute;right:14px;top:22px}
  .class-course-title{flex:1 1 calc(100% - 60px)}
  .class-course-counts{padding-left:49px}
  .activity-item-summary,.mark-group-summary,.mark-row-summary{flex-wrap:wrap;position:relative;padding-right:36px}
  .activity-item-summary::after,.mark-group-summary::after{position:absolute;right:12px;top:16px}
  .activity-item-main,.mark-group-title,.mark-row-name{flex:1 1 calc(100% - 60px)}
  .mark-toolbar-right{flex-wrap:wrap}
  .activity-item-status,.mark-group-progress{width:100%;justify-content:flex-start;justify-items:start;padding-left:48px}
  .mark-row-score{min-width:0}
  .class-course-counts{width:100%;justify-content:flex-start}
  .activity-file{flex-wrap:wrap}
  .mark-toolbar-right,.mark-toolbar-right .search-field,.mark-toolbar select{width:100%}
}

/* ===== Marking queue v2: one clear class list per activity ===== */
.mark-group-summary::after{content:none!important}
.mark-group-summary{gap:14px;padding:14px 16px;background:#fff}
.mark-group[open]>.mark-group-summary{background:#faf8ff;border-bottom:1px solid #eee8fc}
.mark-group-title{gap:6px}
.mark-group-title strong{font-size:14px}
.mark-group-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;font-size:10px;color:#7b7799}
.mark-group-meta>span+span::before{content:"·";margin-right:12px;color:#c4bfdc}
.mark-group-meta>span:nth-child(2)::before{content:none}
.class-badge{padding:3px 8px;border-radius:6px;background:#f0ebff;color:#5b3bb0;font-weight:800}
.mark-stats{display:flex;gap:6px;flex-shrink:0}
.mark-stat{display:grid;justify-items:center;gap:1px;min-width:74px;padding:7px 8px;border-radius:10px;background:#f6f4fc}
.mark-stat b{font-size:15px;line-height:1.2;color:#2d2366}
.mark-stat small{font-size:9px;color:#8a86a8;font-weight:700}
.mark-stat.is-alert{background:#fff3d9}
.mark-stat.is-alert b{color:#9b6a07}
.mark-stat.is-muted b{color:#7d7a96}
.chevron-button{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#f1edff;color:#6a3fd0}
.chevron-button::before{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .15s}
.mark-group[open] .chevron-button::before{transform:rotate(45deg) translate(-2px,-2px)}
.mark-group-body{padding:0;gap:0;border-top:0}
.roster-head,.roster-row{display:grid;grid-template-columns:minmax(180px,2fr) minmax(150px,1.4fr) minmax(120px,1fr) minmax(80px,.7fr) 92px;align-items:center;gap:12px;padding:10px 18px}
.roster-head{background:#fbfaff;border-bottom:1px solid #eee8fc;font-size:9px;font-weight:900;letter-spacing:.8px;text-transform:uppercase;color:#8a86a8}
.mark-row{border:0;border-radius:0;border-bottom:1px solid #f1edfa;background:#fff}
.mark-row:last-of-type{border-bottom:0}
.mark-row.is-pending{background:#fffdf6;border-color:#f1edfa}
.mark-row.is-missing{background:#fcfcfe}
.mark-row[open]{background:#faf8ff}
summary.roster-row{cursor:pointer;list-style:none}
summary.roster-row::-webkit-details-marker{display:none}
summary.roster-row:hover{background:#f7f4ff}
.roster-student{display:flex;align-items:center;gap:10px;min-width:0}
.roster-student>span:last-child{display:grid;gap:2px;min-width:0}
.roster-student strong{font-size:12px;color:#2d2366}
.roster-student small{font-size:10px;color:#8a86a8}
.roster-student .avatar{width:32px;height:32px;font-size:11px}
.avatar-muted{background:#eeeef4;color:#8d8aa5}
.is-missing .roster-student strong{color:#6b6880;font-weight:600}
.roster-cell{font-size:11px;color:#4b4a66}
.roster-cell.muted,.roster-score .muted{color:#b2afc6}
.roster-score b{font-size:13px;color:#2d2366}
.roster-action{display:flex;justify-content:flex-end}
.roster-action .button{min-width:70px}
.mark-row .when-open{display:none}
.mark-row[open] .when-open{display:inline}
.mark-row[open] .when-closed{display:none}
.mark-row-body{border-top:1px dashed #e6defa;margin:0 18px;padding:4px 0 18px}
.mark-group-body>.mark-empty{padding:14px 18px;margin:0}
.late-flag{display:inline-block;margin-left:4px;padding:1px 6px;border-radius:5px;background:#ffe9e7;font-size:9px}
@media (max-width:900px){
  .mark-stats{order:3;width:100%;padding-left:48px}
  .mark-stat{flex:1;min-width:0}
  .mark-group-summary{flex-wrap:wrap;position:relative;padding-right:56px}
  .chevron-button{position:absolute;right:14px;top:16px}
  .roster-head{display:none}
  .roster-row{grid-template-columns:1fr auto;gap:6px 12px;padding:12px 14px}
  .roster-student{grid-column:1/-1}
  .roster-cell{grid-column:1;display:flex;gap:8px;align-items:center}
  .roster-cell::before{content:attr(data-label);min-width:70px;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;color:#9a96b8}
  .roster-action{grid-column:2;grid-row:2/5;align-self:center}
  .mark-row-body{margin:0 14px}
}
@media (max-width:900px){
  .is-missing .roster-cell[data-label="Submitted"],.is-missing .roster-cell[data-label="Mark"]{display:none}
  .is-missing .roster-row{grid-template-columns:1fr auto}
  .is-missing .roster-student{grid-column:1}
  .is-missing .roster-cell[data-label="Status"]{grid-column:2;grid-row:1}
  .is-missing .roster-cell[data-label="Status"]::before{content:none}
  .mark-group-meta>span+span::before{content:none}
  .mark-group-meta{gap:4px 10px}
}

/* ===== Marking panel (opened student row) ===== */
.mark-row[open]{background:#f7f4ff}
.mark-row[open]>summary.roster-row{background:#f1ecff}
.mark-row-body{display:block;margin:0;padding:0 18px 18px;border-top:0}
.mark-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.85fr);gap:0;background:#fff;border:1px solid #e3d9fb;border-left:4px solid #8b52ea;border-radius:12px;overflow:hidden;box-shadow:0 6px 18px rgba(67,45,126,.07)}
.mark-step{padding:16px 18px;min-width:0}
.mark-step+.mark-step{border-left:1px solid #efe9fc;background:#fcfbff}
.mark-step h4{display:flex;align-items:center;gap:8px;margin:0 0 4px;font-size:13px;letter-spacing:0;text-transform:none;color:#2d2366}
.step-no{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#7b43df;color:#fff;font-size:11px;font-weight:900}
.mark-submitted{margin:0 0 12px 30px;font-size:10px;color:#8a86a8}
.mark-field-label{display:block;margin:12px 0 6px;font-size:10px;font-weight:900;letter-spacing:.6px;text-transform:uppercase;color:#6b6496}
.mark-field-label small{text-transform:none;letter-spacing:0;font-weight:600;color:#9a96b8}
.mark-step .student-work{margin:0;border:1px solid #eee9fb;background:#fff}
.mark-step .activity-file{margin:0}
.mark-none{margin:0;padding:9px 12px;border:1px dashed #e3dcf7;border-radius:9px;font-size:11px;color:#9a96b8}
.mark-quiz-summary{margin:0 0 10px;font-size:11px;color:#4b4a66}
.score-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.score-line input{width:96px;padding:9px 11px;border:1px solid #d9cdf7;border-radius:10px;font:inherit;font-size:18px;font-weight:800;color:#2d2366;background:#fff;outline:none}
.score-line input:focus{border-color:#8b52ea;box-shadow:0 0 0 4px #8b52ea1f}
.score-out-of{font-size:12px;color:#6b6496}
.score-out-of b{color:#2d2366}
.score-pct{font-size:11px;font-weight:900;padding:4px 9px;border-radius:99px}
.score-pct:empty{display:none}
.score-pct.is-good{background:#dff5ee;color:#13795f}
.score-pct.is-mid{background:#fff1d6;color:#94650a}
.score-pct.is-low,.score-pct.is-error{background:#ffe9e7;color:#b3261e}
.mark-step-form textarea{width:100%;border:1px solid #d9cdf7;border-radius:10px;padding:10px 12px;font:inherit;font-size:12px;resize:vertical;background:#fff;outline:none}
.mark-step-form textarea:focus{border-color:#8b52ea;box-shadow:0 0 0 4px #8b52ea1f}
.mark-actions{display:flex;gap:8px;margin:12px 0 6px}
.mark-actions .button-primary{flex:1}
@media (max-width:900px){
  .mark-row-body{padding:0 10px 12px}
  .mark-panel{grid-template-columns:1fr}
  .mark-step+.mark-step{border-left:0;border-top:1px solid #efe9fc}
}

/* ===== Student quiz answer review ===== */
.quiz-review{display:grid;gap:10px;margin:4px 0 14px}
.quiz-review-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.quiz-review-head strong{font-size:13px;color:#2d2366}
.quiz-review-question{border:1px solid #e3f1eb;border-left:4px solid #22a27f;border-radius:11px;padding:12px 14px;background:#fff}
.quiz-review-question.is-wrong{border-color:#f6dedb;border-left-color:#d4544b}
.quiz-review-q{display:flex;align-items:flex-start;gap:10px}
.quiz-review-q strong{flex:1;font-size:12px;color:#2d2366;line-height:1.5}
.quiz-review-q small{font-size:10px;font-weight:800;color:#6b6496;white-space:nowrap}
.quiz-review-options{list-style:none;margin:10px 0 0 30px;padding:0;display:grid;gap:5px}
.quiz-review-options li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 11px;border:1px solid #eeeaf8;border-radius:9px;font-size:11px;color:#4b4a66;background:#fcfcfe}
.quiz-review-options li.is-correct{border-color:#9edcc6;background:#ecf9f4;color:#0f5e4a;font-weight:700}
.quiz-review-options li.is-chosen-wrong{border-color:#f0b8b2;background:#fff1ef;color:#9b2a22}
.quiz-review-options li.is-chosen-wrong>span{text-decoration:line-through;text-decoration-color:#d4544b88}
.quiz-review-options em{font-style:normal;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.6px;white-space:nowrap;text-decoration:none;display:inline-block}
.quiz-review-note{margin:8px 0 0 30px;font-size:10px;color:#b3261e}
@media (max-width:640px){.quiz-review-options{margin-left:0}}

/* ===== Published activities: row actions ===== */
.th-actions{text-align:right}
.td-actions{white-space:nowrap}
.row-actions{display:flex;gap:6px;justify-content:flex-end}
.button-danger-outline{background:#fff;border:1px solid #f0c4bf;color:#b3261e}
.button-danger-outline:hover{background:#fff1ef;border-color:#d4544b}
.button-danger{background:#c9372c;border:1px solid #c9372c;color:#fff;box-shadow:0 6px 14px rgba(201,55,44,.22)}
.button-danger:hover{background:#ad2a20}
tr.row-panel>td{padding:0 10px 12px!important;background:transparent;border-top:0!important}
tr.row-panel[hidden]{display:none}
.row-panel-box{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 14px;border:1px solid #e3d9fb;border-left:4px solid #8b52ea;border-radius:11px;background:#faf8ff}
.row-panel-box.is-danger{border-color:#f3cfca;border-left-color:#c9372c;background:#fff6f5}
.row-panel-text{display:grid;gap:3px;flex:1 1 280px;min-width:0}
.row-panel-text strong{font-size:12px;color:#2d2366;white-space:normal}
.row-panel-text small{font-size:10px;color:#7b7799;white-space:normal;line-height:1.5}
.row-panel-box.is-danger .row-panel-text strong{color:#9b2a22}
.row-panel-box input[type="datetime-local"]{padding:8px 10px;border:1px solid #d9cdf7;border-radius:9px;font:inherit;font-size:12px;background:#fff}
@media (max-width:640px){.row-actions{flex-direction:column;align-items:stretch}}

/* ===== Quiz question pictures ===== */
.question-image-field label small{font-weight:600;color:#9a96b8}
.question-image-drop{display:block!important;position:relative;border:1.5px dashed #d7c9f8;border-radius:11px;background:#fbf9ff;cursor:pointer;font-weight:400!important;transition:border-color .15s,background .15s}
.question-image-drop:hover{border-color:#9b6bf0;background:#f5f0ff}
.question-image-drop.has-image{border-style:solid;border-color:#cdb8f7;background:#fff;cursor:default}
.question-image-drop input[type="file"]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.question-image-drop.has-image input[type="file"]{pointer-events:none}
.question-image-add{display:flex;align-items:center;gap:10px;padding:12px 14px;font-size:12px;font-weight:800;color:#5b3bb0}
.question-image-add b{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#efe7ff;font-size:16px}
.question-image-add small{display:block;font-weight:600;font-size:10px;color:#8a86a8}
.question-image-add[hidden],.question-image-preview[hidden]{display:none!important}
.question-image-preview{display:flex;align-items:center;gap:12px;padding:10px}
.question-image-preview img{width:120px;height:80px;object-fit:contain;border-radius:8px;background:#f4f2fa;border:1px solid #ece6fb}
.question-image-name{flex:1;min-width:0;font-size:11px;color:#3e3670;overflow-wrap:anywhere}
.question-image-preview .button{position:relative;z-index:2}
.question-image{margin:10px 0 12px;padding:0}
.question-image a{display:inline-block;border-radius:12px;overflow:hidden;border:1px solid #e8e2f8;background:#fff;line-height:0}
.question-image img{display:block;max-width:100%;max-height:340px;width:auto;height:auto;object-fit:contain}
.question-image a:hover{border-color:#b99af2}
.question-image.is-review{margin:10px 0 0 30px}
.question-image.is-review img{max-height:220px}
.question-image.is-thumb{margin:6px 0 2px}
.question-image.is-thumb img{max-height:110px}
@media (max-width:640px){.question-image.is-review{margin-left:0}.question-image-preview img{width:84px;height:60px}}

/* ===== Answer option photos ===== */
.option-field{position:relative}
.option-image-pick{display:inline-flex!important;align-items:center;gap:8px;margin-top:6px;position:relative;cursor:pointer;font-weight:400!important}
.option-image-pick input[type="file"]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.option-image-pick.has-image input[type="file"]{pointer-events:none}
.option-image-add{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border:1px dashed #d7c9f8;border-radius:8px;background:#fbf9ff;font-size:10px;font-weight:800;color:#5b3bb0}
.option-image-pick:hover .option-image-add{border-color:#9b6bf0;background:#f5f0ff}
.option-image-add[hidden],.option-image-preview[hidden]{display:none!important}
.option-image-preview{display:inline-flex;align-items:flex-start;gap:4px}
.option-image-preview img{width:84px;height:60px;object-fit:contain;border-radius:8px;border:1px solid #e3d9fb;background:#f6f4fc}
.option-image-remove{position:relative;z-index:2;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;border:1px solid #f0c4bf;background:#fff;color:#b3261e;font-size:13px;line-height:1;cursor:pointer}
.option-image-remove:hover{background:#fff1ef}

/* Options as shown to students / in reviews */
.quiz-option .option-letter{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border-radius:6px;background:#f1edff;color:#5b3bb0;font-size:10px;font-weight:900}
.option-body{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.option-image img{display:block;max-width:100%;max-height:150px;width:auto;height:auto;border-radius:8px;border:1px solid #e8e2f8;background:#fff;object-fit:contain}
.student-quiz-options.has-images .quiz-option{align-items:flex-start}
.quiz-review-options li.has-image{align-items:flex-start}
.quiz-review-options li .option-body{flex:1}
.quiz-review-options .option-image img{max-height:110px}
.quiz-review-options li.is-chosen-wrong>span{text-decoration:none}
.quiz-review-options li.is-chosen-wrong .option-text{text-decoration:line-through;text-decoration-color:#d4544b88}
.quiz-review-options li.is-chosen-wrong .option-image img{opacity:.75;border-color:#f0b8b2}
.answer-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px}
.answer-option{display:inline-flex;align-items:center;gap:6px;vertical-align:middle}
.answer-option .option-image img{max-height:44px;max-width:70px}
