body{--role-accent:#3857ed;--role-soft:#edf0fe;background:#f3f6fb}
body[data-role=teacher]{--role-accent:#7546d8;--role-soft:#f2edfb}
body[data-role=admin]{--role-accent:#e36150;--role-soft:#fcf0ed}
.eyebrow{color:var(--role-accent);font-weight:800;letter-spacing:1.7px}
nav a.active{color:var(--role-accent);background:var(--role-soft)}
header{position:sticky;top:0;z-index:30;background:#fffffff5;backdrop-filter:blur(14px)}
.heading{position:relative;margin-bottom:24px}
.heading h1{font-weight:400;letter-spacing:-1.2px;font-size:clamp(2rem,5vw,2.8rem);line-height:1.12}
.heading .intro{font-size:1.0625rem;line-height:1.5;color:#778091;max-width:640px}
.heading:has(.action) .intro{padding-right:62px}
.accent-action{background:var(--role-accent)!important;color:white!important;border:0!important;border-radius:13px;box-shadow:0 8px 22px color-mix(in srgb,var(--role-accent) 15%,transparent)}
.card{border-radius:21px;border:1px solid #e0e4eb;box-shadow:0 7px 24px #25365904}
.panel{margin-top:22px;padding:22px}
.panel>h2{font-size:1.25rem;letter-spacing:-.5px;margin-bottom:22px}
.grid{gap:12px}
.reference-tools .tool{padding:19px 17px;min-height:138px;align-items:flex-start;text-align:left;overflow:hidden}
.reference-tools .tool .icon-box{width:50px;height:50px;border-radius:15px;margin-bottom:13px}
.reference-tools .tool strong{font-size:1rem;line-height:1.3;overflow-wrap:anywhere}
.reference-tools .tool p{margin:8px 0 0;color:#9098a5;font-size:.9rem;line-height:1.35}
.class-grid{margin-bottom:22px}
.class-colour{padding:20px 18px;text-align:left;border-radius:23px;min-height:215px;color:white}
.class-colour.blue{background:#3555f5}.class-colour.green{background:#0e8e7e}.class-colour.red{background:#e55e50}.class-colour.yellow{background:#e8a91b;color:#3d3010}
.class-top{display:flex;align-items:flex-start;gap:8px;justify-content:space-between;min-height:74px}
.class-code{border:1px solid #ffffff35;background:#ffffff15;border-radius:16px;display:flex;align-items:center;justify-content:center;min-width:52px;max-width:65px;min-height:54px;padding:7px;font-weight:700;font-size:1rem}
.class-count{border-radius:14px;background:#ffffff22;padding:4px 8px;white-space:nowrap;font-size:.8rem;font-weight:600}
.class-colour h2{font-size:1.3rem;font-weight:400;line-height:1.2;margin:14px 0 7px}
.class-colour p{margin:0 0 14px;opacity:.7;font-size:.95rem}
.class-colour .between strong{font-size:.9rem}
.reference-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:22px}
.reference-metrics>.card{padding:15px 12px;min-height:125px;display:flex;flex-direction:column}
.reference-metrics svg{color:var(--role-accent);width:25px;height:25px}
.reference-metrics strong{font-size:1.6rem;margin-top:5px}
.reference-metrics span{color:#778091;font-size:.94rem}
.due-pill{font-size:.875rem;border:1px solid #e0e4eb;padding:3px 9px;border-radius:20px;white-space:nowrap}
.row .copy{min-width:0}.row .copy strong{font-size:1rem}.row .copy small{font-size:.9rem}
.people-tabs{display:flex;overflow-x:auto;gap:8px;background:white;border:1px solid #e0e4eb;border-radius:17px;padding:5px;margin-bottom:22px}
.people-tabs button,.people-tabs a{padding:12px 15px;white-space:nowrap;font-size:.95rem;font-weight:700;color:#788393;border-radius:12px}
.people-tabs .selected{background:var(--role-accent);color:white}
.people-tabs span{opacity:.65;margin-left:5px}
.people-search{display:flex;align-items:center;gap:12px;margin-bottom:15px}
.people-search input{width:100%;min-width:0;border:1px solid #e0e4eb;border-radius:13px;padding:14px;font:inherit;font-size:.95rem;background:white}
.people-search .answer{width:auto;margin:0;padding:12px 18px}
.people-table-head,.people-row{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(65px,.85fr) auto;gap:10px;align-items:center}
.people-table-head{padding:13px 7px;background:#f3f6fb;border-radius:11px;color:#84909f;font-weight:600;font-size:.85rem}
.people-row{width:100%;padding:16px 4px;border-bottom:1px solid #eceff3;text-align:left;font-size:.9rem;color:#768091}
.people-row:last-child{border:0}.people-name{display:flex;align-items:center;gap:10px;min-width:0}
.people-name .icon-box{width:39px;height:41px;flex-shrink:0;border-radius:12px;font-size:.85rem}
.people-name>span{min-width:0}.people-name strong{color:#1b253b;font-size:.95rem;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.people-name small{display:block;margin-top:5px;font-size:.85rem}
.people-status{font-size:.85rem;border-radius:20px;background:#e5f6f1;padding:3px 8px;color:#147c6e;white-space:nowrap}
.people-status.follow{background:#fff5d9;color:#9d7110}
.report-summary{display:block;margin-bottom:22px}.report-summary>div{margin:20px 0 0}.report-summary .bar{background:#ffffff25;margin-top:10px}.report-summary .bar i{background:white}
.section-heading h2{font-size:1.2rem;letter-spacing:-.5px}.section-heading a{font-size:.9rem;color:var(--role-accent);font-weight:700;white-space:nowrap}
.section-heading svg{width:16px}
.date-badge{background:#f3f6fb;border:1px solid #e0e4eb;border-radius:13px;text-align:center;min-width:48px;padding:6px}
.date-badge strong,.date-badge small{display:block}.date-badge strong{font-size:1.15rem}.date-badge small{font-size:.8rem;font-weight:700;color:#788395}
.activity-kind{background:#edf0ff;color:#3857ed;border-radius:8px;padding:5px 8px;font-size:.85rem;font-weight:700}
.subject-strip{display:flex;gap:12px;overflow-x:auto;margin-bottom:28px;padding-bottom:3px}
.subject-strip>.card{display:flex;align-items:center;gap:13px;min-width:265px;padding:18px;text-align:left}
.subject-strip strong,.subject-strip small{display:block}.subject-strip strong{font-size:1rem}.subject-strip small{font-size:.9rem;color:#8b94a1;margin-top:6px}
.subject-strip b{margin-left:auto;font-size:.9rem}
.demo-label{font-size:.75rem;margin:0 0 15px;color:#8992a3}
body[data-role] .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-role] .module-link{flex-direction:column;align-items:flex-start;padding:18px;min-height:130px;background:white;border-radius:20px}
body[data-role] .module-link>svg{display:none}
body[data-role] .module-link .icon-box{width:48px;height:48px;margin-bottom:5px}
body[data-role] .module-link>span:nth-child(2){font-size:1rem}
#demo-activity label{display:block;margin:16px 0}#demo-activity input,#demo-activity select{display:block;width:100%;padding:12px;border:1px solid #e0e4eb;border-radius:10px;margin-top:6px;font:inherit}
@media(max-width:420px){.class-count{font-size:.72rem;padding:4px 6px}.class-code{min-width:43px;max-width:48px}.class-colour{padding:18px 15px}.class-colour h2{font-size:1.2rem}.people-name .icon-box{display:none}.people-row{gap:7px}.panel{padding:19px}.due-pill{font-size:.75rem;padding:3px 7px}}
@media(min-width:800px){.reference-tools{grid-template-columns:repeat(4,minmax(0,1fr))}.class-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.class-colour{min-height:240px}.reference-metrics>.card{padding:22px}.reference-metrics strong{font-size:2rem}.reference-tools .tool{min-height:175px;padding:24px}.reference-tools .tool strong{font-size:1.1rem}body[data-role] .module-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.people-name strong{font-size:1.05rem}.people-row{padding:21px 8px}.subject-strip>.card{flex:1}.heading .intro{font-size:1.125rem}}
