.pema{color-scheme:light;--ma-text:#10213f;--ma-muted:#60718b;--ma-soft:#f5f8fc;--ma-card:#fff;--ma-line:#dfe7f3;--ma-blue:#1754b8;--ma-tint:#edf4ff;--ma-green:#147d68;--ma-warm:#946414;--ma-danger:#a33e45;--ma-heat0:#edf2f8;--ma-heat1:#d4e6ff;--ma-heat2:#8bb9f6;--ma-heat3:#4e8bde;--ma-heat4:#1a58b4;color:var(--ma-text);font-family:inherit;line-height:1.5;width:100%;min-width:0;display:flex;flex-direction:column;gap:24px}
[data-theme="dark"] .pema,.pema[data-theme="dark"]{color-scheme:dark;--ma-text:#e9f1ff;--ma-muted:#a9b8d0;--ma-soft:#142137;--ma-card:#182840;--ma-line:#304361;--ma-blue:#a5c6ff;--ma-tint:#20385d;--ma-green:#7cdbbd;--ma-warm:#f3cc8a;--ma-danger:#ffafb4;--ma-heat0:#23334b;--ma-heat1:#294a74;--ma-heat2:#38699e;--ma-heat3:#568dcc;--ma-heat4:#8ab6ef}
.pema *,.pema *::before,.pema *::after{box-sizing:border-box}.pema h1,.pema h2,.pema h3,.pema p,.pema ul,.pema ol{margin:0}.pema h1{font-size:clamp(27px,3vw,35px);line-height:1.2;letter-spacing:-.9px;font-weight:850}.pema h2{font-size:19px;font-weight:800;letter-spacing:-.3px}.pema h3{font-size:14px;font-weight:800}.pema button,.pema input,.pema select{font:inherit}.pema button{cursor:pointer}.pema button:disabled{cursor:default;opacity:.55}.pema button:focus-visible,.pema input:focus-visible,.pema select:focus-visible,.pema [tabindex]:focus-visible{outline:3px solid #73a3ef;outline-offset:4px}.pema-card{border:1px solid var(--ma-line);border-radius:18px;background:var(--ma-card);padding:24px;min-width:0;box-shadow:0 2px 4px #172d4a03}.pema-kicker{font-size:10px;letter-spacing:1.4px;font-weight:850;color:var(--ma-blue);margin-bottom:8px!important}.pema-subtitle{font-size:14px;color:var(--ma-muted);max-width:760px;margin-top:10px!important}.pema-page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;flex-wrap:wrap}.pema-periods{display:inline-flex;gap:4px;background:var(--ma-soft);border:1px solid var(--ma-line);border-radius:12px;padding:4px;flex-shrink:0}.pema-periods button{border:0;border-radius:8px;background:transparent;color:var(--ma-muted);font-size:12px;font-weight:800;padding:10px 18px;min-height:40px}.pema-periods button[aria-pressed="true"]{color:#fff;background:#1754b8;box-shadow:0 2px 4px #1754b822}.pema-button{display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;background:var(--ma-card);border:1px solid var(--ma-line);color:var(--ma-text);border-radius:9px;font-size:12px!important;font-weight:800!important;line-height:1.3}.pema-button:hover:not(:disabled){border-color:var(--ma-blue);color:var(--ma-blue)}.pema-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px;padding:18px 21px}.pema-filters label,.pema-compact-label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:800;color:var(--ma-muted);min-width:160px}.pema-filters input,.pema-filters select,.pema-compact-label select{width:100%;min-width:0;min-height:42px;border:1px solid var(--ma-line);border-radius:9px;padding:9px 12px;background:var(--ma-card);color:var(--ma-text)}.pema-filters input::placeholder{color:var(--ma-muted);opacity:.75}.pema-search{flex:1;min-width:200px!important;max-width:420px}.pema-filter-scope{display:flex;flex-direction:column;gap:3px;font-size:11px;color:var(--ma-muted);margin-left:auto;padding-bottom:4px}.pema-filter-scope strong{font-size:12px;color:var(--ma-text)}.pema-notice{display:flex;align-items:center;gap:13px;flex-wrap:wrap;border:1px solid var(--ma-line);border-radius:13px;padding:15px 18px;background:var(--ma-tint);color:var(--ma-text);font-size:13px}.pema-notice>div{flex:1;min-width:200px}.pema-notice p{font-size:12px;color:var(--ma-muted);margin-top:3px}.pema-notice-icon{display:grid;place-items:center;width:23px;height:23px;border:1px solid var(--ma-blue);border-radius:50%;color:var(--ma-blue);font-weight:850;flex-shrink:0}.pema-notice-error{border-color:var(--ma-danger)}.pema-notice-error strong{color:var(--ma-danger)}.pema-spinner{width:17px;height:17px;border:2px solid var(--ma-line);border-top-color:var(--ma-blue);border-radius:50%;animation:ma-spin .8s linear infinite;flex-shrink:0}@keyframes ma-spin{to{transform:rotate(360deg)}}.pema-coverage{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:var(--ma-muted);font-size:11px;padding:0 3px}.pema-status-dot{width:7px;height:7px;border-radius:50%;background:var(--ma-green)}.pema-timezone{margin-left:auto}.pema-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px}.pema-kpi{padding:19px 18px;min-height:158px;position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start}.pema-kpi::before{content:"";width:23px;height:3px;border-radius:4px;background:var(--ma-blue);display:block;margin-bottom:12px}.pema-kpi-violet::before{background:#8a6ac6}.pema-kpi-green::before{background:#239c7b}.pema-kpi-amber::before{background:#cf9a49}.pema-kpi-label{font-size:10px;text-transform:uppercase;letter-spacing:.55px;font-weight:800;color:var(--ma-muted)}.pema-kpi>strong{display:block;font-size:clamp(22px,2.3vw,29px);line-height:1.2;font-weight:850;letter-spacing:-.7px;margin:10px 0 9px}.pema-kpi p{color:var(--ma-muted);font-size:10px;line-height:1.5;max-width:210px}.pema-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;flex-wrap:wrap;margin-bottom:22px}.pema-caption{font-size:12px;line-height:1.6;color:var(--ma-muted);margin-top:5px!important}.pema-pill{padding:6px 10px;border:1px solid var(--ma-line);background:var(--ma-soft);border-radius:8px;font-size:10px;color:var(--ma-muted);white-space:nowrap}.pema-map-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(310px,.8fr);gap:22px}.pema-compact-label{min-width:130px;max-width:160px}.pema-compact-label select{min-height:36px;font-size:11px;padding:7px 10px}.pema-calendar{max-width:690px;margin:auto}.pema-calendar-weekdays,.pema-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.pema-calendar-weekdays{margin-bottom:9px}.pema-calendar-weekdays span{text-align:center;font-size:9px;letter-spacing:.8px;color:var(--ma-muted);font-weight:750}.pema-day{border:1px solid transparent;border-radius:9px;min-height:49px;padding:6px 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--ma-text);transition:transform .12s,outline .12s}.pema-day>span{font-size:12px;font-weight:850;line-height:1.2}.pema-day>small{font-size:9px;line-height:1.2;margin-top:4px;font-weight:650}.pema-day:hover{outline:2px solid var(--ma-blue);outline-offset:1px;transform:translateY(-1px)}.pema-day[aria-pressed="true"]{outline:2px solid var(--ma-blue);outline-offset:2px}.pema-heat-0{background:var(--ma-heat0)}.pema-heat-1{background:var(--ma-heat1)}.pema-heat-2{background:var(--ma-heat2)}.pema-heat-3{background:var(--ma-heat3);color:#0c2447}.pema-heat-4{background:var(--ma-heat4);color:#fff}.pema-heat--1{background:repeating-linear-gradient(135deg,var(--ma-soft),var(--ma-soft) 4px,var(--ma-line) 4px,var(--ma-line) 5px);color:var(--ma-muted)}[data-theme="dark"] .pema .pema-heat-3,[data-theme="dark"] .pema .pema-heat-4{color:#081d3c}.pema-legend{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap;font-size:9px;color:var(--ma-muted);margin-top:18px}.pema-legend>span{margin:0 4px}.pema-legend i{width:11px;height:11px;display:inline-block;border-radius:3px;border:1px solid var(--ma-line)}.pema-resources ul{padding:0;list-style:none}.pema-resources li+li{margin-top:18px}.pema-resource-row{display:flex;gap:12px;align-items:baseline;justify-content:space-between;font-size:12px}.pema-resource-row strong{font-weight:750}.pema-resource-row>span{font-size:11px;color:var(--ma-muted);white-space:nowrap}.pema-track{width:100%;height:6px;border-radius:6px;background:var(--ma-soft);margin-top:8px;overflow:hidden}.pema-track>span{height:100%;background:#3d78ca;display:block;border-radius:6px}.pema-resources li:nth-child(2n) .pema-track>span{background:#4d9c8c}.pema-resources li:nth-child(3n) .pema-track>span{background:#9c87c2}.pema-resources li small{font-size:9px;color:var(--ma-muted);display:block;margin-top:5px}.pema-empty-compact{padding:24px 6px;color:var(--ma-muted);font-size:12px;text-align:center}.pema-empty-compact h3{color:var(--ma-text)}.pema-empty-compact p{max-width:510px;margin:7px auto 0}.pema-empty-inline{font-size:12px;color:var(--ma-muted);padding:24px 0}.pema-orbit{width:48px;height:48px;border-radius:15px;background:var(--ma-tint);color:var(--ma-blue);display:grid;place-items:center;font-size:25px;margin:3px auto 16px}.pema-hours-scroll{overflow-x:auto;padding:4px 3px 8px;max-width:100%}.pema-hour-grid{display:grid;grid-template-columns:35px repeat(24,minmax(18px,1fr));gap:5px;min-width:670px}.pema-hour-label{font-size:9px;text-align:center;color:var(--ma-muted);padding-bottom:5px}.pema-hour-day{font-size:10px;color:var(--ma-muted);align-self:center}.pema-hour-cell{border-radius:4px;min-height:21px;border:1px solid #7a8eaa0a}.pema-student-table-wrap{max-width:100%;overflow-x:auto}.pema-student-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.pema-student-table thead th{font-size:10px;text-transform:uppercase;letter-spacing:.35px;color:var(--ma-muted);font-weight:750;padding:0 13px 14px;border-bottom:1px solid var(--ma-line);white-space:nowrap}.pema-student-table thead th:first-child{padding-left:0}.pema-student-table tbody th,.pema-student-table tbody td{padding:15px 13px;border-bottom:1px solid var(--ma-line);font-weight:600;vertical-align:middle;white-space:nowrap}.pema-student-table tbody th{padding-left:0}.pema-student-table tbody td:last-child{padding-right:0}.pema-student-table tbody tr:last-child th,.pema-student-table tbody tr:last-child td{border-bottom:0}.pema-student-table tbody tr.is-selected{background:var(--ma-tint)}.pema-student-table td>small{display:block;color:var(--ma-muted);font-size:10px;margin-top:2px}.pema-student-name{display:flex;align-items:center;gap:11px;background:transparent;border:0;text-align:left;color:var(--ma-text);padding:0;max-width:300px;white-space:normal}.pema-student-name>span:last-child{min-width:0}.pema-student-name strong{display:block;font-size:12px;font-weight:800;overflow-wrap:anywhere}.pema-student-name small{display:block;font-size:10px;color:var(--ma-muted);font-weight:550;margin-top:3px}.pema-avatar{width:35px;height:35px;border-radius:11px;display:grid;place-items:center;flex:0 0 35px;background:var(--ma-tint);color:var(--ma-blue);font-weight:800;font-size:11px}.pema-detail-button{white-space:nowrap;font-size:10px!important;min-height:34px;padding:8px 10px}.pema-pagination{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:20px}.pema-pagination>span{font-size:11px;color:var(--ma-muted)}.pema-detail{border-top:3px solid #4385cb;scroll-margin-top:20px}.pema-detail-actions{display:flex;gap:10px;flex-wrap:wrap}.pema-student-metrics{display:flex;gap:18px;flex-wrap:wrap;padding:14px 17px;border:1px solid var(--ma-line);border-radius:11px;background:var(--ma-soft);margin-bottom:24px;color:var(--ma-muted);font-size:11px}.pema-student-metrics strong{color:var(--ma-text);font-size:13px;margin-right:3px}.pema-status{font-size:12px;color:var(--ma-muted);padding:20px 0}.pema-timeline{list-style:none;padding:0 0 0 24px;max-width:1050px}.pema-event{position:relative;padding:0 0 26px 22px;border-left:1px solid var(--ma-line)}.pema-event:last-child{padding-bottom:0;border-color:transparent}.pema-event-dot{position:absolute;left:-5px;top:4px;width:9px;height:9px;border-radius:50%;background:#4c8bc8;border:2px solid var(--ma-card);box-shadow:0 0 0 1px var(--ma-line)}.pema-event-top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:8px}.pema-resource-tag{display:inline-flex;font-size:9px;text-transform:uppercase;letter-spacing:.5px;color:var(--ma-blue);font-weight:800;background:var(--ma-tint);border-radius:5px;padding:4px 7px}.pema-event time{color:var(--ma-muted);font-size:10px;white-space:nowrap}.pema-event h3{font-size:13px;overflow-wrap:anywhere}.pema-event-kind{font-size:11px;color:var(--ma-muted);margin-top:3px!important}.pema-event-stats{font-size:11px;color:var(--ma-text);font-weight:700;margin-top:8px!important}.pema-event-source{display:block;color:var(--ma-muted);font-size:10px;margin-top:6px}.pema-date-only{font-size:10px;color:var(--ma-warm);margin-top:7px!important}.pema-load-more{display:flex;flex-direction:column;gap:9px;align-items:center;border-top:1px solid var(--ma-line);padding-top:20px;margin-top:24px;font-size:12px;color:var(--ma-danger)}.pema-footer{padding:0 3px 12px;font-size:12px;color:var(--ma-muted)}.pema-footer strong{color:var(--ma-text);font-weight:800}.pema-footer p{margin-top:6px;max-width:1050px;font-size:11px}.pema-access{border:1px solid var(--ma-line);padding:30px;border-radius:18px;background:var(--ma-card)}
.pema-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.pema-head-actions>.pema-button{min-height:48px}
@media(max-width:1250px){.pema-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.pema-map-layout{grid-template-columns:minmax(0,1.1fr) minmax(270px,.9fr)}.pema-kpi{min-height:148px}.pema-student-table-wrap{overflow-x:auto}.pema-student-table{min-width:850px}}
@media(max-width:850px){.pema-map-layout{grid-template-columns:1fr}.pema-resources ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 30px}.pema-resources li+li{margin-top:0}.pema-filters{gap:14px}.pema-filter-scope{margin-left:0}.pema-kpis{gap:10px}.pema-section-head{gap:14px}.pema-card{padding:20px}}
@media(max-width:560px){.pema{gap:18px}.pema-page-head{gap:17px}.pema-periods{width:100%}.pema-periods button{flex:1}.pema-card{padding:17px;border-radius:15px}.pema-filters label{flex:1 1 130px;min-width:0}.pema-search{flex-basis:100%!important;max-width:none;order:-1;min-width:0!important}.pema-filter-scope{width:100%;border-top:1px solid var(--ma-line);padding-top:12px}.pema-filters>.pema-button{width:100%}.pema-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.pema-kpi{padding:16px 13px;min-height:158px}.pema-kpi>strong{font-size:24px}.pema-kpi-label{font-size:9px;min-height:27px}.pema h2{font-size:17px}.pema-subtitle{font-size:12px}.pema-notice{padding:13px;font-size:12px}.pema-notice>div{min-width:0}.pema-timezone{margin-left:0;width:100%;padding-left:16px}.pema-coverage{font-size:10px}.pema-days .pema-section-head>div{width:100%}.pema-compact-label{max-width:none;min-width:0;width:100%}.pema-calendar-grid,.pema-calendar-weekdays{gap:5px}.pema-day{min-height:43px;border-radius:6px;padding:5px 2px}.pema-day>span{font-size:11px}.pema-day>small{font-size:8px}.pema-legend{justify-content:flex-start;gap:3px;font-size:8px}.pema-resources ul{grid-template-columns:1fr}.pema-hour-grid{gap:4px}.pema-students{padding:17px 0}.pema-students>.pema-section-head,.pema-students>.pema-empty-compact,.pema-students>.pema-pagination{padding-left:17px;padding-right:17px}.pema-student-table-wrap{padding:0 17px}.pema-pagination{justify-content:space-between;gap:7px}.pema-pagination .pema-button{padding:8px 10px;font-size:11px!important}.pema-detail-actions{width:100%}.pema-detail-actions .pema-button{flex:1}.pema-student-metrics{gap:10px 16px;padding:12px;font-size:10px}.pema-timeline{padding-left:6px}.pema-event{padding-left:15px}.pema-event-top{gap:9px}.pema-event time{font-size:9px}.pema-event h3{font-size:12px}.pema-footer{font-size:11px}.pema-hours .pema-pill{white-space:normal}}
@media(prefers-reduced-motion:reduce){.pema *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
