/* Beyond light workspace: white surfaces, indigo navigation and cyan accents. */
:root{--ink:#15165d;--primary:#1815a8;--cyan:#10b7e8;--canvas:#eef5fc;--muted:#737e9e;--line:#e7edf7;color:var(--ink);background:var(--canvas)}
body{background:var(--canvas)}
h1,h2,h3,h4{color:var(--ink)}
.app-shell{grid-template-columns:236px minmax(0,1fr)}
.sidebar{background:#fbfcff;color:var(--ink);border-right:1px solid #e5ecf6;padding:30px 18px 18px;gap:34px;overflow-y:auto;scrollbar-width:thin}
.brand{padding:0 4px;gap:8px}
.brand b{font-size:20px;color:var(--ink)}
.brand small{font-size:8px;letter-spacing:.14em;color:#7985a8}
.mark,.mark.large{padding:0;background:transparent;box-shadow:none;letter-spacing:normal;flex-shrink:0;border-radius:0}
.mark{width:48px;height:48px}
.mark img{width:100%;height:100%;object-fit:contain;display:block}
.brand .mark{width:48px;height:48px}
.nav-section{font-size:9px;color:#8993ae;letter-spacing:.13em;padding:0 12px;margin-bottom:14px}
.nav-menu{gap:9px}
.nav-btn{position:relative;min-height:46px;border-radius:10px;padding:12px;color:#545b8a;font-weight:550;font-size:13px;gap:13px;transition:background .15s,color .15s}
.nav-btn svg{width:18px;height:18px;opacity:1;color:#777eaa}
.nav-btn:hover{color:var(--primary);background:#edf0ff}
.nav-btn.active{background:#eeedff;color:var(--primary);box-shadow:none;font-weight:750}
.nav-btn.active:before{content:'';position:absolute;left:-18px;top:8px;bottom:8px;width:4px;background:var(--primary);border-radius:0 4px 4px 0}
.nav-btn.active svg{color:var(--primary)}
.nav-btn.nav-sub{padding-left:33px;font-size:12px}
.sidebar nav{flex-shrink:0}
.sidebar-bottom{padding-top:10px}
.sidebar-mini{position:relative;border:0;border-radius:15px;padding:18px;background:linear-gradient(145deg,#e6f7ff,#eeedff);color:var(--ink)}
.sidebar-mini .pill.dark{background:#fff;color:var(--primary);font-size:9px}
.sidebar-mini strong{color:var(--ink)}
.sidebar-mini p{color:#626f94;font-size:11px}
.sidebar-footer{border-top:1px solid var(--line);margin-top:18px;padding:18px 0 0;gap:8px}
.profile-text small{color:#7c86a2}.profile-text b{color:#303465;font-size:11px}
.avatar{background:#e5eaff;color:#3830a2;border-radius:50%}
.topbar{height:80px;background:var(--canvas);border:0;padding:0 30px;gap:14px}
.topbar-left{color:var(--ink);font-size:13px}.topbar-name{color:#727b9c;font-size:11px}
.topbar-right{gap:12px}.topbar-avatar{width:36px;height:36px}
.topbar .pill.blue{background:#fff;color:#58598e;border:1px solid #e4e9f5;font-size:10px}
.content{padding:14px 30px 42px;max-width:1600px}
.page-heading{margin-bottom:24px;align-items:center}
.page-heading h1{font-size:26px;letter-spacing:-.04em;font-weight:750}
.page-heading .eyebrow{font-size:9px;color:#777ca3;letter-spacing:.14em;margin-bottom:8px}
.page-heading .desc{font-size:12px;color:var(--muted);margin-top:9px}
.btn{border-radius:9px;font-weight:650;font-size:12px;min-height:40px}
.btn.primary{background:var(--primary);box-shadow:0 4px 10px #201ac515}
.btn.primary:hover{background:#2c26ca}
.btn.secondary{border-color:#e0e5f4;color:#4d4d89;background:#fff}
.btn.secondary:hover{background:#f0f1ff;border-color:#c8c7ed}
.btn.ghost{color:#6d739a}
.btn:focus-visible,.nav-btn:focus-visible,.linkish:focus-visible{outline:3px solid #45c4ee;outline-offset:3px}
.card{border:1px solid #f8fbff;border-radius:13px;box-shadow:0 3px 18px #3b4e9304}
.card-pad{padding:22px}.grid{gap:18px}.stack{gap:18px}
.stats-grid{gap:16px;margin-bottom:20px}
.stat-card{padding:19px 20px;border:1px solid #fff;min-height:135px}
.stat-card:after{display:none}
.stat-label{color:#6f7697;font-size:11px;max-width:calc(100% - 35px);font-weight:600}
.stat-number{font-size:31px;color:var(--ink);margin-top:11px;font-weight:750}
.stat-hint{color:#7d88a3;font-size:10px;margin-top:5px}
.stat-icon{right:17px;top:17px;width:32px;height:32px;border-radius:10px;display:grid;place-items:center;color:var(--primary);background:#efedff}
.stat-icon svg{width:16px;height:16px}
.stat-card:nth-child(2) .stat-icon{background:#e4f8ff;color:#008ab8}
.stat-card:nth-child(3) .stat-icon{background:#fff0f0;color:#d6687d}
.stat-card:nth-child(4) .stat-icon{background:#e6f9f4;color:#168772}
.two-col{grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);align-items:start}
.section-header h2{font-size:15px}.section-header{margin-bottom:18px}
.linkish{color:var(--primary);font-size:11px}
.filter-row{padding:12px;background:#f6f8ff;border-radius:10px;gap:12px;margin-bottom:14px}
.filter-row .field{flex:1;min-width:140px}
label{color:#636b90;font-size:11px;font-weight:600;letter-spacing:0}
.input,.select,.textarea{border-color:#dfe6f3;border-radius:8px;color:#343a6e;font-size:12px;background:#fff}
.input:focus,.select:focus,.textarea:focus{border-color:#6c69d7;box-shadow:0 0 0 3px #eae9ff}
.input::placeholder,.textarea::placeholder{color:#8c96ae}
.lesson-row{padding:14px 12px;background:#f8faff;border:1px solid #edf0fa;border-radius:10px;gap:12px}
.lesson-time{color:#656b98;width:74px;font-weight:650}
.lesson-data strong{color:var(--ink);font-size:12px}.lesson-data p{color:#7883a0}
.lesson-row:hover{border-color:#cfcdf2}
.empty{padding:42px 15px 30px;color:#7883a0}
.empty h3{color:#33346c;font-size:15px}.empty p{font-size:12px;line-height:1.8;max-width:320px}
.empty-icon{background:#edecff;color:#5148c3;border-radius:18px;width:62px;height:62px}
.hint-panel{background:#f7f9ff;border:1px solid #e9edf8;border-radius:10px;padding:16px}
.hint-panel b{color:#434578}.hint-panel p{color:#7783a0}
.hint-panel .icon{color:#25a9d8}
.submission-summary{display:flex;align-items:center;gap:24px;padding:5px 0 17px;flex-wrap:wrap}
.submission-ring{width:126px;height:126px;flex:none;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--cyan) 0 var(--progress),#eeeffa var(--progress) 100%)}
.submission-ring>div{width:94px;height:94px;border-radius:50%;background:white;display:flex;flex-direction:column;align-items:center;justify-content:center}
.submission-ring strong{font-size:25px;color:var(--ink);line-height:1.3}.submission-ring span{font-size:10px;color:#777fa2}
.submission-legend{flex:1;min-width:125px;display:grid;gap:13px}
.submission-legend p{display:flex;align-items:center;gap:8px;font-size:11px;color:#6c7597}
.submission-legend b{margin-left:auto;font-size:13px;color:var(--ink)}
.legend-dot{width:7px;height:7px;border-radius:50%;flex:none}.legend-dot.sent{background:var(--cyan)}.legend-dot.draft{background:var(--primary)}.legend-dot.other{background:#b4badd}
.progress-panel>.field-hint{border-top:1px solid var(--line);padding-top:13px;color:#7c85a2;line-height:1.6}
.accent-panel{background:linear-gradient(120deg,#1613a0,#3030ca);display:flex;align-items:center;gap:18px;border:0;padding:22px}
.accent-panel:before{background:#ffffff08;right:-80px;top:-100px;width:260px;height:260px;pointer-events:none}
.accent-panel>div{position:relative}.accent-panel h3{font-size:18px;line-height:1.35;color:white;max-width:260px}
.accent-panel p{font-size:11px;color:#d4d8ff;line-height:1.7;margin:8px 0 15px}
.accent-panel .btn{background:#fff;color:var(--primary);font-size:11px;min-height:35px;padding:9px 12px}
.promo-icon{flex:none;background:#ffffff12;border:1px solid #ffffff20;color:#78e7ff;width:52px;height:64px;display:grid;place-items:center;border-radius:12px;transform:rotate(-8deg)}
.promo-icon svg{width:29px;height:29px}.promo-eyebrow{font-size:8px;color:#b8c7ff;letter-spacing:.12em;font-weight:700}
.pill.blue{background:#eceeff;color:#4d48a3}.pill.purple{background:#f0ebff;color:#6e50a4}.pill.gold{background:#fff5df;color:#916319}
.table th{background:#f4f6fe;color:#7a80a5}.table td{color:#566080}.table strong{color:var(--ink)}
.tabline button.active{color:var(--primary);border-color:var(--cyan)}
.section-icon,.review-week-icon{background:#eeedff;color:#5149b9}
.obj-item,.review-feedback-panel{background:#f8f9ff;border-color:#e7e9f7}
.review-week-card{border-color:#e4e8f6;color:var(--ink);border-radius:12px}
.review-week-card:hover,.review-week-card:focus-visible{border-color:#8d86db}
.footer-note{color:#7d87a1;border-color:#e0e8f5}
.login-shell{background:#f1f6fd}.login-art{background:linear-gradient(150deg,#f8fbff,#e6edff);color:var(--ink)}
.login-art .brand b{color:var(--ink)}.login-art h1{color:var(--ink)}.login-art h1 em{color:#128fcd}
.login-art .hero-p{color:#687699}.login-art:before{border-color:#acb9ed55;box-shadow:0 0 0 90px #bbc7f212,0 0 0 190px #bbc7f210}
.hero-tile{background:#ffffffa8;border-color:#dde6f7;color:var(--ink)}.hero-tile small{color:#727da1}
.login-form h2{color:var(--ink)}.security-note{color:#7583a1}
.toast{background:var(--primary)}

.dash-timetable tbody td.dash-time-free{height:34px}
.dash-timetable-scroll{max-width:100%;overflow:auto;margin-top:18px;border:1px solid #e4e8f5;border-radius:10px}.dash-timetable{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:10px;text-align:center}.dash-timetable th,.dash-timetable td{border-right:1px solid #e4e8f5;border-bottom:1px solid #e4e8f5;padding:5px}.dash-timetable tr>*:last-child{border-right:0}.dash-timetable tbody tr:last-child>*{border-bottom:0}.dash-timetable thead th{background:#f2f4ff;color:#6e769c;font-weight:650;height:50px}.dash-timetable thead th span{display:block;font-size:9px;line-height:1.6}.dash-timetable .dash-time-day{position:sticky;left:0;z-index:1;background:#f6f8ff;width:70px;color:#4a507e;font-size:10px}.dash-timetable thead .dash-time-day{z-index:2;background:#eceffc}.dash-timetable tbody td{height:66px;background:#fff;vertical-align:middle}.dash-timetable tbody tr:nth-child(even) td.dash-time-free{background:#fafbff}.dash-time-button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;width:100%;height:100%;min-height:56px;padding:7px 4px;border:0;border-radius:7px;color:#fff;background:#149ec9;line-height:1.35}.dash-time-button.tone-1{background:#3027b8}.dash-time-button strong{font-size:10px;font-weight:700;overflow-wrap:anywhere}.dash-time-button>span{font-size:10px;overflow-wrap:anywhere}.dash-time-button small{font-size:8px;opacity:.9;white-space:nowrap}.dash-time-button:hover{filter:brightness(1.08)}.dash-time-button:focus-visible,.dash-timetable-scroll:focus-visible{outline:3px solid #45c4ee;outline-offset:2px}
.notification-bell{position:relative;display:grid;place-items:center;width:38px;height:38px;flex:none;border:1px solid #e2e8f6;background:#fff;color:var(--primary);border-radius:11px}.notification-bell>span{position:absolute;right:-5px;top:-6px;min-width:17px;height:17px;padding:0 4px;display:grid;place-items:center;border-radius:20px;background:#fb6d83;color:#fff;font-size:9px;font-weight:750}.notification-bell:focus-visible{outline:3px solid #45c4ee;outline-offset:3px}.dashboard-insights{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:18px;margin-bottom:22px}.dashboard-insights>section{min-width:0}.grade-chart{margin:15px 0 0}.grade-chart svg{width:100%;display:block}.grade-week-list{display:flex;flex-wrap:wrap;gap:7px}.grade-week-list>span{display:flex;gap:7px;font-size:10px;background:#f5f7ff;border-radius:6px;padding:5px 7px;color:#7781a1}.grade-week-list b{font-weight:650;color:#393482}.mini-time-axis{display:flex;justify-content:space-between;margin:17px 0 10px 41px;color:#8b92ad;font-size:9px}.mini-week{display:grid;gap:10px}.mini-day{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:9px}.mini-day>span{font-size:10px;color:#737c9c}.mini-day-lanes{display:grid;gap:4px}.mini-lane{position:relative;min-width:0;height:22px;background:#f0f2fc;border-radius:8px}.mini-lesson{position:absolute;top:0;bottom:0;min-width:0;border:0;border-radius:8px;background:#28bce9;color:#fff;font-size:9px;padding:0 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mini-lesson.tone-1{background:#2820af}.mini-free{position:absolute;inset:0;display:grid;place-items:center;color:#a1a8bd;font-size:9px}.dash-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px 0 18px;border-bottom:1px solid var(--line)}.dash-counts strong{display:block;color:var(--ink);font-size:26px}.dash-counts span{display:block;color:var(--muted);font-size:10px}.dash-class-list{display:grid;gap:17px;margin-top:20px;max-height:240px;overflow:auto}.dash-class-row b{font-size:12px}.dash-class-row .row>span{font-size:10px;color:var(--muted)}.dash-progress{height:6px;background:#eeeffa;border-radius:8px;margin-top:8px;overflow:hidden}.dash-progress>span{display:block;height:100%;background:linear-gradient(90deg,#221caf,#20bde8);border-radius:8px}.tp-chart{display:flex;align-items:end;justify-content:space-around;gap:10px;margin:20px 0 15px}.tp-column{flex:1;min-width:0;text-align:center;font-size:10px;color:var(--muted)}.tp-column>b{color:var(--ink);font-size:12px}.tp-track{height:95px;display:flex;align-items:end;justify-content:center;background:#f5f6fe;border-radius:7px;margin:7px 0}.tp-track>span{display:block;width:65%;background:#25bce7;border-radius:5px 5px 0 0}.tp-column:nth-child(even) .tp-track>span{background:#3028b9}.dash-empty{padding:30px 12px;text-align:center;color:var(--muted);font-size:12px;line-height:1.8}.review-notification{padding:18px 0;border-bottom:1px solid var(--line)}.review-notification p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;margin:13px 0;line-height:1.8;color:#41476f}.review-notification small{font-size:10px;color:var(--muted)}@media(max-width:1050px){.dashboard-insights{grid-template-columns:minmax(0,1fr)}}@media(max-width:570px){.notification-bell{width:30px;height:30px;border-radius:9px}.notification-bell svg{width:16px;height:16px}.topbar-left>span{max-width:100px}.dashboard-insights{gap:14px}.dash-counts{gap:8px}.dash-counts strong{font-size:23px}.dash-counts span{font-size:9px}.mini-lesson{font-size:8px}.grade-week-list>span{font-size:9px}.tp-track{height:80px}}
.student-overview{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}.student-class-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:20px}.student-class-card{display:flex;flex-direction:column;gap:12px;text-align:left;border:1px solid #e4eaf6;border-radius:16px;background:#fff;padding:24px;color:var(--ink);min-width:0;transition:border-color .15s,box-shadow .15s,transform .15s}.student-class-card:hover{border-color:#b5b0ed;box-shadow:0 8px 28px #2824780b;transform:translateY(-2px)}.student-class-card:focus-visible{outline:3px solid #45c4ee;outline-offset:3px}.student-class-card h2{font-size:24px;margin-top:8px;overflow-wrap:anywhere}.student-class-card>p{color:var(--muted);font-size:12px}.student-card-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#eeedff;color:#5148c3}.student-card-icon svg{width:24px;height:24px}.student-card-icon.color-1{background:#e2f7ff;color:#0988b8}.student-card-icon.color-2{background:#e5f8f1;color:#168872}.student-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding-top:17px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.student-card-footer b{color:var(--ink);font-size:19px}.student-card-link{color:var(--primary);font-weight:650;font-size:11px}.student-roster-table{min-width:690px}.student-roster-table th:nth-child(2){width:40%}.student-roster-table th:nth-child(3){width:28%}.student-roster-table td{vertical-align:middle}.student-class-tag{background:#eeedff;color:#554ca7;display:inline-block;padding:6px 10px;border-radius:7px;white-space:nowrap;font-size:11px}.student-roster-scroll:focus-visible{outline:3px solid #45c4ee;outline-offset:3px}@media(max-width:570px){.student-class-grid{gap:14px}.student-class-card{padding:20px}.student-class-card h2{font-size:22px}.student-overview .text-small{font-size:11px}}
.assessment-form-card{padding:22px;min-width:0}.assessment-scroll{overflow:auto;max-height:65vh;border:1px solid var(--line);border-radius:10px}.assessment-table{min-width:1550px}.assessment-table th{position:sticky;top:0;z-index:1;white-space:normal;min-width:90px}.assessment-table th:first-child{min-width:45px}.assessment-table th:nth-child(2){min-width:200px}.assessment-table th:nth-child(3){min-width:140px}.assessment-table td{vertical-align:top;padding:12px 10px}.assessment-table .assessment-standard{min-width:190px;max-width:240px;white-space:pre-line;font-size:11px;line-height:1.7}.assessment-table input{min-width:145px}.assessment-table select{min-width:135px}.assessment-table textarea{min-width:200px;min-height:82px}.assessment-table tbody tr:nth-child(even){background:#fafbff}.assessment-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:18px 0 10px}.assessment-scroll:focus-visible{outline:3px solid #45c4ee;outline-offset:3px}@media(max-width:570px){.assessment-form-card{padding:14px}.assessment-actions{align-items:stretch}.assessment-actions>button{width:100%}}
.wm-auth-brand{display:flex;align-items:center;gap:10px;margin-bottom:28px;color:var(--ink);font-size:20px}.wm-login-shell .login-form{padding:30px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 40px #25277208}
@media(min-width:1600px){.content{padding-top:22px}.two-col{grid-template-columns:minmax(0,1.55fr) minmax(340px,1fr)}}
@media(min-width:851px) and (max-width:1170px){.app-shell{grid-template-columns:216px minmax(0,1fr)}.sidebar{width:216px;padding-left:14px;padding-right:14px}.brand b{font-size:17px}.brand .mark{width:40px;height:40px}.content{padding-left:22px;padding-right:22px}.two-col{grid-template-columns:minmax(0,1fr)}.topbar{padding:0 22px}.stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.stack>section:last-child{grid-column:1/-1}}
@media(max-width:850px){.app-shell{display:block}.sidebar{width:250px;padding:28px 18px 20px}.topbar{height:68px;padding:0 18px;background:#f7faff;border-bottom:1px solid #e3eaf6}.content{padding:22px 18px 40px}.two-col{grid-template-columns:minmax(0,1fr)}.topbar-left{min-width:0}.topbar-left>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:230px}.topbar-right{flex-shrink:0}.page-heading h1{font-size:24px}.sidebar nav{flex-shrink:1}.sidebar-mini{margin-top:10px}.mobile-overlay.show{background:#17174755;backdrop-filter:blur(3px)}}
@media(max-width:570px){.topbar{padding:0 12px;gap:6px}.topbar-left{gap:5px;font-size:11px}.topbar-left>span{max-width:120px}.topbar .pill.blue{font-size:9px;padding:5px 7px;gap:4px}.topbar .pill .icon{width:13px;height:13px}.topbar-right{gap:7px}.topbar-avatar{width:29px;height:29px}.content{padding:22px 14px 36px}.page-heading{align-items:flex-start;gap:16px}.page-heading h1{font-size:23px}.page-heading .desc{font-size:11px;line-height:1.7}.heading-actions{width:100%}.heading-actions>.btn.primary{width:100%}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-card{min-height:135px;padding:16px 13px}.stat-icon{right:10px;top:13px;width:27px;height:27px}.stat-number{font-size:29px;margin-top:15px}.stat-label{font-size:10px;line-height:1.6}.stat-hint{font-size:10px;line-height:1.5}.card-pad{padding:18px}.filter-row{display:flex;padding:10px}.filter-row .field{min-width:100%;flex:1}.empty{padding:30px 5px 20px}.submission-summary{gap:22px}.submission-ring{width:118px;height:118px}.submission-ring>div{width:88px;height:88px}.submission-legend{min-width:105px}.accent-panel{padding:20px;gap:15px}.promo-icon{width:43px;height:58px}.accent-panel h3{font-size:17px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}.btn:hover:not(:disabled){transform:none}}
@media print{body,:root{background:#fff;color:#111}.app-shell{display:block}.content{padding:0}.card{border-color:#ddd;box-shadow:none}.accent-panel{background:#fff;color:#111}.accent-panel h3,.accent-panel p{color:#111}.submission-ring{print-color-adjust:exact}}

/* Give the timetable two thirds of the desktop row; keep analysis cards balanced. */
@media(min-width:1051px){.dashboard-insights{grid-template-columns:repeat(12,minmax(0,1fr))}.dashboard-insights>.dash-grade{grid-column:span 4;align-self:start}.dashboard-insights>.dash-schedule{grid-column:span 8}.dashboard-insights>section:not(.dash-grade):not(.dash-schedule){grid-column:span 6}}
.dash-timetable{min-width:0}.dash-timetable .dash-time-day{width:56px}.dash-time-button small{white-space:normal;overflow-wrap:anywhere}
@media(max-width:570px){.dash-timetable{min-width:var(--timetable-mobile-width,560px)}}
.rph-print-teacher{display:none}@media print{.rph-print-teacher{display:inline;text-transform:none;letter-spacing:.03em}}

/* Weekly timetable subject distribution, below the weekly grade panel. */
.dash-grade-stack{display:grid;align-content:start;gap:18px;min-width:0}.dash-grade-stack>section{min-width:0}.schedule-chart-body{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:18px;margin-top:18px}.schedule-donut{width:156px;height:156px;flex:0 0 156px}.schedule-donut svg{display:block;width:100%;height:100%;overflow:visible}.schedule-donut circle:focus{outline:none;stroke-width:23}.schedule-subject-legend{display:grid;gap:12px;flex:1;min-width:145px;list-style:none;padding:0;margin:0}.schedule-subject-legend li{display:grid;grid-template-columns:9px minmax(0,1fr);gap:8px;align-items:start;font-size:11px}.schedule-subject-legend .subject-dot{width:8px;height:8px;border-radius:50%;margin-top:5px}.schedule-subject-legend b{display:block;overflow-wrap:anywhere;font-size:11px}.schedule-subject-legend small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.schedule-analysis-note{margin-top:16px;padding-top:12px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}
@media(min-width:1051px){.dashboard-insights>.dash-grade-stack{grid-column:span 4}}
@media(max-width:570px){.dash-grade-stack{gap:14px}}

/* Readable screen typography. Print sizing stays in app.css. */
@media screen {
  :root { --muted:#596783; }
  body { font-size:16px; line-height:1.6; }
  label { font-size:14px; line-height:1.5; color:#434d73; }
  .input,.select,.textarea { font-size:16px; line-height:1.5; min-height:46px; }
  .input::placeholder,.textarea::placeholder { color:#68758e; opacity:1; }
  .textarea { line-height:1.7; }
  .textarea:dir(rtl),.input:dir(rtl),[lang="ar"],[lang="ms-Arab"] { font-size:18px; line-height:1.9; }
  .field-hint,.page-heading .desc,.muted,.footer-note,.security-note { font-size:14px; line-height:1.65; color:var(--muted); }
  .btn { font-size:14px; line-height:1.45; min-height:42px; white-space:normal; }
  .btn.tiny { font-size:13px; min-height:36px; }
  .nav-btn { font-size:14px; }
  .nav-btn.nav-sub { font-size:14px; }
  .editor-section h2,.section-header h2 { font-size:20px; line-height:1.4; }
  .card h3,.editor-section h3,.empty h3 { font-size:18px; line-height:1.4; }
  .criteria-label { font-size:14px; }
  .obj-head strong,.checkline,#editorChecks { font-size:14px; }
  .editor-side p { font-size:14px; line-height:1.65; color:var(--muted); }
  .pill,.topbar .pill.blue { font-size:12px; }
  .topbar-name,.profile-text b,.profile-text small { font-size:13px; }
  .table { font-size:14px; line-height:1.6; }
  .table th { font-size:12px; color:#56617f; letter-spacing:.04em; }
  .table td { color:#46516e; }
  .lesson-data strong { font-size:15px; }
  .lesson-data p,.empty p,.hint-panel p,.sidebar-mini p { font-size:14px; line-height:1.65; }
  .linkish { font-size:14px; }
}

/* Freeze the pupil identity columns while assessment scores scroll horizontally. */
@media screen {
  .assessment-table { --assessment-number-width:48px; --assessment-name-width:clamp(180px,19vw,260px); border-collapse:separate; border-spacing:0; }
  .assessment-table :is(th,td):first-child { position:sticky; left:0; width:var(--assessment-number-width); min-width:var(--assessment-number-width); max-width:var(--assessment-number-width); z-index:2; }
  .assessment-table :is(th,td):nth-child(2) { position:sticky; left:var(--assessment-number-width); width:var(--assessment-name-width); min-width:var(--assessment-name-width); max-width:var(--assessment-name-width); z-index:2; box-shadow:2px 0 0 var(--line),6px 0 8px -6px #3b4e9340; }
  .assessment-table tbody :is(td:first-child,td:nth-child(2)) { background:#fff; }
  .assessment-table tbody tr:nth-child(even) :is(td:first-child,td:nth-child(2)) { background:#fafbff; }
  .assessment-table thead :is(th:first-child,th:nth-child(2)) { z-index:4; background:#f4f6fe; }
  .assessment-table input[name="name"] { min-width:0; }
  .assessment-table select[name="effort"] { min-width:185px; }
}

/* Class selection updates only the neighbouring TP panel, preserving list scroll/focus. */
.dash-class-list .dash-class-row { display:block; width:100%; border:1px solid transparent; border-radius:9px; padding:8px; background:transparent; text-align:left; font:inherit; color:inherit; cursor:pointer; transition:background .18s,border-color .18s; }
.dash-class-list .dash-class-row:hover { background:#f4f6ff; }
.dash-class-list .dash-class-row.selected { background:#eeedff; border-color:#c5c1ed; }
.dash-class-list .dash-class-row:focus-visible { outline:3px solid #45c4ee; outline-offset:-3px; }
.dash-class-row .dash-progress { display:block; }
.dash-class-row .row { flex-wrap:wrap; }
.dash-tp-filter { margin-bottom:12px; }
.dashboard-tp-panel .tp-track>span { transform-origin:bottom; animation:tp-bar-rise .5s cubic-bezier(.2,.7,.3,1) both; }
@keyframes tp-bar-rise { from { transform:scaleY(0); } to { transform:scaleY(1); } }
@media(prefers-reduced-motion:reduce) { .dashboard-tp-panel .tp-track>span { animation:none; } .dash-class-list .dash-class-row { transition:none; } }

/* Stable TP colours across all class filters, matching the dashboard chart palette. */
.dashboard-tp-panel .tp-column:nth-child(1) .tp-track>span { background:#ff5b70; }
.dashboard-tp-panel .tp-column:nth-child(2) .tp-track>span { background:#ff9f43; }
.dashboard-tp-panel .tp-column:nth-child(3) .tp-track>span { background:#2bc98c; }
.dashboard-tp-panel .tp-column:nth-child(4) .tp-track>span { background:#9177e8; }
.dashboard-tp-panel .tp-column:nth-child(5) .tp-track>span { background:#1ab4ec; }
.dashboard-tp-panel .tp-column:nth-child(6) .tp-track>span { background:#3b69d9; }

/* Subjects use the school's saved colour, with contrast-safe text. */
.weekly-timetable .tt-slot.subject-colored,.teaching-thumb.subject-colored,.dash-time-button.subject-colored { background:var(--subject-color); color:var(--subject-ink); }
.weekly-timetable .tt-slot.subject-colored .tt-event { color:var(--subject-ink); }
.subject-color-input { width:64px; height:44px; padding:4px; border:1px solid #dfe6f3; border-radius:8px; background:#fff; cursor:pointer; }
.subject-color-palette { display:flex; flex-wrap:wrap; gap:10px; margin:12px 0; }
.subject-color-swatch { width:32px; height:32px; flex:none; border:2px solid #fff; border-radius:50%; box-shadow:0 0 0 1px #cdd6e5; cursor:pointer; }
.subject-color-swatch[aria-pressed="true"] { outline:3px solid #1815a8; outline-offset:2px; }
.subject-color-swatch:focus-visible,.subject-color-input:focus-visible { outline:3px solid #45c4ee; outline-offset:3px; }
.subject-color-dot { display:inline-block; width:14px; height:14px; border-radius:50%; margin-right:8px; vertical-align:middle; border:1px solid #0002; }

.rpt-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,340px); gap:20px; align-items:start; }
.rpt-create { display:flex; align-items:end; gap:12px; flex-wrap:wrap; margin-top:18px; }
.rpt-create .field { flex:1; min-width:200px; }
.rpt-weeks,.rpt-side { min-width:0; }
.rpt-side { display:grid; gap:18px; }
.rpt-week { border:1px solid #dfe6f3; border-radius:12px; background:#fff; margin:14px 0; overflow:hidden; }
.rpt-week summary { cursor:pointer; padding:18px; list-style-position:inside; }
.rpt-week summary:focus-visible { outline:3px solid #45c4ee; outline-offset:-3px; }
.rpt-week-heading { display:inline-flex; gap:14px; flex-wrap:wrap; align-items:center; }
.rpt-week-heading>span { font-size:14px; color:var(--muted); }
.rpt-week-title { display:block; margin-top:8px; overflow-wrap:anywhere; }
.rpt-week-badges { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.rpt-week-badges .pill { white-space:normal; }
.rpt-week [data-rpt-week-editor] { padding:0 18px 18px; }
.rpt-week-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.rpt-week-fields .field { min-width:0; }
.rpt-standards,.rpt-week-notes { grid-column:1/-1; }
.rpt-standards .select { max-width:100%; min-width:0; }
.rpt-standard-summary { padding-left:20px; line-height:1.7; overflow-wrap:anywhere; }
.rpt-standard-summary li { margin:12px 0; }
.rpt-holiday { border-left:5px solid #ffbd55; }
.rpt-event-list article,.rpt-preview-row { padding:16px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.rpt-event-list p,.rpt-preview-row p { white-space:pre-wrap; }
.rpt-ai-preview { border:2px solid #b8b0ec; margin:18px 0; }
.rpt-layout fieldset { border:0; margin:0; padding:0; min-width:0; }
@media(max-width:1100px) { .rpt-layout { grid-template-columns:minmax(0,1fr); } .rpt-side { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .rpt-side,.rpt-week-fields { grid-template-columns:minmax(0,1fr); } .rpt-week-heading { gap:6px; } .rpt-create>button { width:100%; } }

.rpt-import-preview { border:2px solid #b7d9e7; margin:18px 0; }
.rpt-import-settings { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:18px 0; }
.rpt-import-records { max-height:65vh; overflow:auto; border-top:1px solid var(--line); margin-top:16px; }
.rpt-import-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(210px,1fr); gap:18px; padding:18px 4px; border-bottom:1px solid var(--line); }
.rpt-import-row>div,.rpt-import-settings>.field { min-width:0; }
.rpt-import-row p { white-space:pre-wrap; overflow-wrap:anywhere; }
.rpt-imported-standards { grid-column:1/-1; border:1px solid #dce7ef; background:#f7fbff; padding:14px; border-radius:9px; }
.rpt-imported-standards summary { padding:4px; }
@media(max-width:750px) { .rpt-import-settings,.rpt-import-row { grid-template-columns:minmax(0,1fr); } }
.rpt-import-preview { scroll-margin-top:100px; }

/* External application shortcuts alongside the notification bell. */
.portal-shortcuts{display:flex;align-items:center;gap:8px;flex:none}.portal-shortcut{display:grid;place-items:center;width:38px;height:38px;border:1px solid #e2e8f6;border-radius:11px;background:#fff;flex:none}.portal-shortcut img{display:block;width:28px;height:28px;object-fit:contain}.portal-shortcut:hover{background:#f0f5ff;border-color:#b7c8ed}.portal-shortcut:focus-visible{outline:3px solid #45c4ee;outline-offset:3px}
@media(max-width:570px){.portal-shortcuts{gap:5px}.portal-shortcut{width:30px;height:30px;border-radius:9px}.portal-shortcut img{width:23px;height:23px}.topbar-left{flex:1;overflow:hidden}.topbar-left>span{min-width:0;max-width:100%}.topbar-right{gap:5px}}

.rph-delete-button{color:#b42338!important;border-color:#f0c8cf!important}.rph-delete-button:hover:not(:disabled){background:#fff0f2!important}

/* Evidence uses the shared Arctic Blue controls; layout stays scoped to this page. */
#evidencePage .evidence-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#evidencePage fieldset{display:grid;gap:18px;margin-top:18px}
#evidencePage fieldset>.btn{justify-self:start}
#evidencePage section>p,#evidencePage details{margin-top:10px}
#evidencePage :is(article,li,summary){overflow-wrap:anywhere}
#evidencePage summary{cursor:pointer}
@media(max-width:650px){#evidencePage .evidence-columns{grid-template-columns:minmax(0,1fr)}#evidencePage fieldset>.btn{width:100%}}
/* Analisa uses the portal's Arctic Blue glass cards and shared controls. */
#analisaPage .analisa-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:end}
#analisaPage .analisa-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
#analisaPage .analisa-metrics strong{display:block;font-size:36px;color:#176798;margin-top:10px}
#analisaPage .analisa-notice{padding:16px;border:1px solid #b9dded;border-radius:16px;background:#e9f6fbbd;color:#24506b}
#analisaPage .analisa-panels{display:grid;grid-template-columns:1fr 1fr;gap:18px}
#analisaPage .analisa-type{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #dceaf3;text-transform:capitalize}
#analisaPage .analisa-bar-row{display:grid;grid-template-columns:36px 1fr 42px;gap:10px;align-items:center;margin:8px 0}
#analisaPage .analisa-bar-row>div{background:#e4f0f7;border-radius:6px;overflow:hidden;height:12px}
#analisaPage .analisa-bar-row i{display:block;background:linear-gradient(90deg,#63b9e6,#277fae);height:100%;border-radius:6px}
#analisaPage .analisa-table-wrap{overflow-x:auto}
#analisaPage .analisa-table{width:100%;border-collapse:collapse;font-size:14px}
#analisaPage .analisa-table th,#analisaPage .analisa-table td{text-align:left;vertical-align:top;padding:12px;border-bottom:1px solid #dceaf3;min-width:100px}
#analisaPage .analisa-table td:last-child{min-width:240px;max-width:480px}
#analisaPage .analisa-note{border-bottom:1px dashed #dceaf3;padding:6px 0;overflow-wrap:anywhere}
#analisaPage .analisa-note p{white-space:pre-wrap}
#analisaPage .select{max-width:100%;text-overflow:ellipsis}
@media(max-width:800px){#analisaPage .analisa-metrics,#analisaPage .analisa-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#analisaPage .analisa-panels{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){#analisaPage .analisa-filters{grid-template-columns:minmax(0,1fr)}#analisaPage .analisa-metrics{gap:10px}#analisaPage .analisa-metrics .card{padding:16px}#analisaPage .analisa-metrics strong{font-size:30px}}
#evidencePage .evidence-picker{position:relative}
#evidencePage .evidence-picker>summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;min-height:48px;height:auto;overflow-wrap:anywhere}
#evidencePage .evidence-picker>summary::-webkit-details-marker{display:none}
#evidencePage .evidence-picker>summary:after{content:'▾';margin-left:12px}
#evidencePage .evidence-picker-menu{position:absolute;top:100%;left:0;right:0;z-index:25;background:#fff;border:1px solid #c6dcec;box-shadow:0 12px 28px #1e4e7026;border-radius:12px;padding:12px}
#evidencePage .evidence-picker-list{max-height:280px;overflow-y:auto;margin:12px 0}
#evidencePage .evidence-picker-list label{display:flex;align-items:center;gap:12px;padding:12px 8px;border-bottom:1px solid #e6f0f8;cursor:pointer;overflow-wrap:anywhere}
#evidencePage .evidence-picker-list input{flex-shrink:0;width:18px;height:18px}
#evidencePage .evidence-picker-list small{display:block;color:#58718d;margin-top:3px}
#evidencePage .evidence-picker-list label:has(input:checked){background:#eef8ff}
#evidencePage .evidence-picker>summary:focus-visible{outline:2px solid #4099cf;outline-offset:2px}
#evidencePage .evidence-sp-options{display:grid;gap:10px}
#evidencePage .evidence-sp-options label{display:flex;align-items:flex-start;gap:12px;padding:12px;border:1px solid #dceaf3;border-radius:12px;background:#f5fbff;overflow-wrap:anywhere}
#evidencePage .evidence-sp-options input{width:18px;height:18px;flex-shrink:0;margin-top:3px}

#evidencePage .evidence-sk-compact{font-size:12px;line-height:1.5;color:#58718d;margin:0 0 14px;overflow-wrap:anywhere}
#evidencePage .evidence-sk-compact strong{font-size:12px;font-weight:600}
#evidencePage .evidence-sk-compact ul{margin:4px 0 0;padding-left:18px}
#evidencePage .evidence-sk-compact p{margin:4px 0 0}

/* Clear horizontal guides between Evidence records. */
#evidencePage article.card{border-bottom:2px solid #b7d2e5}
.pbd-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.pbd-grid h2{margin:0}
.pbd-grid .card{display:flex;flex-direction:column;align-items:flex-start}
.pbd-grid .btn{margin-top:auto}
.pbd-grid p{margin-bottom:20px}
@media(max-width:800px){.pbd-grid{grid-template-columns:minmax(0,1fr)}}
#sppbPage .sppb-filters{display:grid;grid-template-columns:1fr 1.4fr 1.4fr 1.7fr auto;gap:16px;align-items:end}
#sppbPage .sppb-scroll{overflow-x:auto;border:1px solid #d6e4f0;border-radius:14px}
#sppbPage .sppb-table{width:100%;min-width:1080px;border-collapse:collapse;font-size:13px}
#sppbPage .sppb-table th{background:#edf5fc;color:#173f68;text-align:left;padding:14px 12px;white-space:nowrap}
#sppbPage .sppb-table td{padding:14px 12px;border-bottom:1px solid #c7dbea;vertical-align:middle}
#sppbPage .sppb-table tr:nth-child(even){background:#f6fbff}
#sppbPage .sppb-table th:nth-child(2){min-width:200px}
#sppbPage .sppb-table th:nth-child(3){min-width:160px}
#sppbPage .sppb-table th:nth-child(5){min-width:250px}
#sppbPage .sppb-table th:last-child{min-width:150px}
#sppbPage .sppb-table .select{min-height:38px;padding:8px;font-size:12px}
#sppbPage .sppb-tp{display:grid;grid-template-columns:repeat(5,auto);gap:8px 5px}
#sppbPage .sppb-tp label{display:flex;align-items:center;gap:5px;white-space:nowrap;cursor:pointer;font-size:12px}
#sppbPage input[type=radio]{accent-color:#2d76a8;width:18px;height:18px}
#sppbPage .sppb-fieldset{border:0;padding:0;min-width:0}
#sppbPage .sppb-category,#sppbPage .sppb-history{display:block;font-size:11px;margin-top:6px;color:#516c85}
#sppbPage .sppb-error{padding:14px;color:#8f2626;background:#fff1f1;border:1px solid #eccccc;border-radius:12px}
.sppb-dialog{width:min(580px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow-y:auto;border:1px solid #bfd8e9;border-radius:18px;padding:24px;color:#173f68;background:#f9fcff;box-shadow:0 22px 70px #173f6840}
.sppb-dialog::backdrop{background:#173f6866}
.sppb-dialog h2{margin-top:0;border-bottom:1px solid #d6e4f0;padding-bottom:14px}
.sppb-dialog .sppb-identities{grid-template-columns:1fr 1fr;gap:18px;font-size:13px}
.sppb-dialog .sppb-identities p{overflow-wrap:anywhere}
.sppb-dialog .sppb-category-options{border:0;padding:0;margin:16px 0}
.sppb-dialog .sppb-category-options label{display:flex;gap:8px;align-items:center;margin:8px 0;font-size:13px}
@media(max-width:1000px){#sppbPage .sppb-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){#sppbPage .sppb-filters{grid-template-columns:minmax(0,1fr)}.sppb-dialog .sppb-identities{grid-template-columns:minmax(0,1fr);gap:0}.sppb-dialog{padding:18px}}

#sppbPage .sppb-list-filters{display:grid;grid-template-columns:1fr 1.3fr 1.2fr 1.6fr 1.2fr auto;gap:14px;align-items:end}
#sppbPage .sppb-list-table{width:100%;min-width:1020px;border-collapse:collapse;font-size:13px}
#sppbPage .sppb-list-table th{text-align:left;white-space:nowrap;padding:14px 12px;background:#edf5fc;color:#173f68}
#sppbPage .sppb-list-table td{padding:9px 12px;border-bottom:1px solid #c7dbea;vertical-align:middle}
#sppbPage .sppb-list-table tr[data-sppb-open]{cursor:pointer}
#sppbPage .sppb-list-table tr[data-sppb-open]:nth-child(even){background:#f6fbff}
#sppbPage .sppb-list-table tr[data-sppb-open]:hover{background:#eaf5ff}
#sppbPage .sppb-list-table tr[data-sppb-open]:focus-visible{outline:2px solid #4099cf;outline-offset:-2px}
#sppbPage .sppb-list-progress{display:block;font-size:10px;line-height:1.2;color:#516c85;margin-top:2px}
#sppbPage #sppbListPageSize{display:inline-block;width:auto;min-width:70px;margin-left:8px}
@media(max-width:1100px){#sppbPage .sppb-list-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#sppbPage .sppb-list-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){#sppbPage .sppb-list-filters{grid-template-columns:minmax(0,1fr)}}

#sppbPage .sppb-list-table .pill{min-height:0;padding:3px 8px;line-height:1.25;font-size:11px}

/* Compact slot numbers above dashboard timetable times. */
.dash-timetable thead .dash-slot-number{display:block;font-size:10px;font-weight:700;line-height:1.2;margin-bottom:3px;color:#4a507e}

/* Profile dropdown: native disclosure with the existing logout action. */
.profile-menu{position:relative;flex-shrink:0}
.profile-menu-trigger{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;min-width:44px;min-height:44px;border-radius:50%;padding:4px;color:inherit}
.profile-menu-trigger::-webkit-details-marker{display:none}
.profile-menu-trigger:hover,.profile-menu[open]>.profile-menu-trigger{background:#e3eafb;box-shadow:inset 0 1px 2px #33447718}
.profile-menu-trigger:focus-visible,.profile-menu-panel a:focus-visible,.profile-menu-panel button:focus-visible{outline:3px solid #5257c5;outline-offset:3px}
.profile-menu-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:60;width:210px;max-width:calc(100vw - 24px);padding:7px;border:1px solid #d4def0;border-radius:15px;background:linear-gradient(145deg,#fff,#f2f6ff);box-shadow:inset 0 1px #fff,0 12px 30px #23385b26}
.profile-menu-panel a,.profile-menu-panel button{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:9px;background:transparent;font:inherit;font-size:14px;font-weight:650;line-height:1.5;color:#35456d;text-decoration:none;text-align:left;cursor:pointer}
.profile-menu-panel a:hover,.profile-menu-panel button:hover{background:#e5edfc;color:#303780}
.profile-menu-panel button{border-top:1px solid #dde5f3;border-radius:0 0 9px 9px;color:#a23544}
.profile-menu-panel button:hover{background:#fcecf0;color:#892637}
.profile-menu-panel .icon{flex-shrink:0;width:19px;height:19px}

/* Evidence-backed dashboard summary: five assessment methods. */
.pbd-method-chart{grid-template-columns:repeat(5,minmax(0,1fr))}.pbd-method-chart .tp-column>span{white-space:normal;overflow-wrap:anywhere}.dash-pbd-counts{margin-top:10px}.dash-pbd-counts span{font-size:12px;line-height:1.5}

/* Highlight incomplete SPPB assessments, including empty rows. */
#sppbPage .sppb-table tbody tr.sppb-incomplete>td{background:#fff0f0}

/* Interactive weekly RPH slots preserve subject colors and keyboard focus. */
.rph-week-schedule{margin-bottom:20px}
.week-schedule-legend{display:flex;flex-wrap:wrap;gap:14px;margin:12px 0 18px;font-size:12px}
.week-schedule-legend>span{display:inline-flex;align-items:center;gap:6px}
.week-rph-slot{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:100%;min-height:88px;padding:31px 3px 8px;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;cursor:pointer;overflow-wrap:anywhere}
.week-rph-slot strong,.week-rph-slot b{font-size:11px;line-height:1.3}.week-rph-slot>span:not(.week-slot-status){font-size:9px}
.week-rph-slot:hover{background:#ffffff24}.week-rph-slot:focus-visible{outline:3px solid #123364;outline-offset:-3px}
.week-slot-status{position:absolute;top:4px;right:4px;display:flex;align-items:center;gap:3px;flex-wrap:wrap;justify-content:flex-end}
 .rph-week-schedule .week-status-icon{display:block;flex-shrink:0;width:24px;height:24px;object-fit:contain;background:transparent;border:0;box-shadow:none;padding:0}
.rph-week-schedule .tt-day small{display:block;margin-top:5px;font-size:10px}
@media(max-width:700px){.week-rph-slot strong,.week-rph-slot b{font-size:10px}.week-rph-slot{min-height:100px}.week-slot-status{right:2px;gap:2px}.rph-week-schedule .week-slot-status .week-status-icon{width:20px;height:20px}}
.rph-week-schedule .tt-free { height:100px; } .rph-week-schedule .weekly-timetable thead th { height:62px; } .rph-week-schedule .weekly-timetable thead th>strong { font-size:16px; margin-bottom:6px; }

.prompt-transfer-dialog{inset:auto!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%);width:calc(100vw - 24px);max-width:780px;max-height:90dvh;box-sizing:border-box}.prompt-transfer-step{background:#f7f9ff;border:1px solid #e0e5f5;border-radius:12px;padding:16px;margin-top:18px}.prompt-transfer-step h3{margin-bottom:12px}.prompt-transfer-text{min-height:145px;width:100%;box-sizing:border-box;font-size:13px;line-height:1.6}.prompt-transfer-error{color:#b42318;white-space:pre-wrap}.prompt-transfer-step .btn{justify-content:center}

/* Keep RPH navigation available below the account bar while scrolling. */
.rph-sticky-header{position:sticky;top:var(--portal-topbar-height,80px);z-index:4;background:var(--canvas);padding:10px 0 12px;margin-bottom:12px}
.rph-sticky-header .page-heading{margin-bottom:0}
.rph-sticky-header>.row{margin-top:18px;margin-bottom:0}
.rph-sticky-page .editor-side{top:calc(var(--portal-topbar-height,80px) + var(--rph-page-header-height,110px) + 14px)}
@media(max-width:700px){.rph-sticky-header{padding:8px 0 10px}.rph-sticky-header .page-heading{flex-direction:row;align-items:center;gap:10px}.rph-sticky-header .page-heading>div:first-child{min-width:0}.rph-sticky-header .page-heading h1{font-size:21px}.rph-sticky-header .heading-actions{width:auto;flex-shrink:0}.rph-sticky-header .heading-actions .btn{padding:10px;font-size:12px}.rph-sticky-header>.row{margin-top:12px}}
@media print{.rph-sticky-header{position:static;padding:0;margin:0;background:transparent}.rph-sticky-header>.row{display:none!important}}

/* Compact class/subject table retains the existing filters and pagination. */
.student-sticky-header .student-overview{margin:14px 0 0}
.student-sticky-header .student-header-actions{flex-wrap:nowrap}
@media(max-width:850px){.student-sticky-header .page-heading{flex-direction:column;align-items:stretch;gap:12px}.student-sticky-header .heading-actions{width:100%}.student-sticky-header .student-header-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}.student-sticky-header .student-header-actions .btn{width:100%;min-height:44px;white-space:normal;font-size:12px;padding:9px}.student-sticky-header .page-heading .desc{font-size:12px}.student-sticky-header .student-overview{margin-top:10px;gap:8px}.student-sticky-header .student-overview .text-small{font-size:11px}}
@media print{.student-sticky-header{position:static}.student-header-actions{display:none!important}}
.teaching-table-wrap{margin-top:16px}.teaching-table{width:100%;min-width:540px}.teaching-table tbody th{background:transparent;text-align:left;color:var(--ink);font-size:14px;font-weight:700;border-bottom:1px solid var(--line,#e3eaf6);padding:16px}.teaching-table :is(th,td){vertical-align:middle}.teaching-table th:first-child,.teaching-table td:first-child{width:48px}.teaching-subject-badge{display:inline-block;max-width:100%;padding:6px 10px;border-radius:7px;background:var(--subject-color);color:var(--subject-ink);font-weight:750;overflow-wrap:anywhere}.teaching-table-actions{display:flex;gap:8px;white-space:nowrap}.teaching-table tbody tr:hover{background:#f7f9ff}

.timetable-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:end;margin-top:16px}.timetable-day-date{display:block;margin-top:5px;font-size:10px}.tt-actions{flex-wrap:wrap}@media(max-width:700px){.timetable-filter-grid{grid-template-columns:1fr}}
#teachingGalleryPanel{display:grid;gap:20px;min-width:0}
.weekly-timetable .tt-free .tt-empty-rph{font-size:11px;padding:7px 5px;white-space:nowrap;max-width:100%}
.tt-empty-time{display:none}@media(max-width:700px){.weekly-timetable .tt-free:has(.tt-empty-rph){display:block;height:auto;padding:8px}.weekly-timetable .tt-free .tt-empty-rph{width:100%;text-align:left;padding:10px}.tt-empty-time{display:inline;margin-left:10px;font-size:11px}}
.slot-quick-dialog{inset:auto!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%);width:calc(100vw - 24px);max-width:520px;max-height:90dvh;box-sizing:border-box}.slot-quick-dialog .field{margin-top:14px}.weekly-timetable .tt-empty-rph{font-weight:750}

.timetable-bulk-bar{position:sticky;top:80px;z-index:3;display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:14px 18px;background:#fff;border:1px solid #dfe6f3;border-radius:12px}.timetable-bulk-bar .field-hint{margin:0}.tt-empty-checkbox{display:inline-flex;vertical-align:middle;padding:5px;cursor:pointer}.tt-empty-checkbox input{width:17px;height:17px;accent-color:#2315b3}.tt-free:has(input[data-empty-slot-select]:checked){background:#eeecff}@media(max-width:850px){.timetable-bulk-bar{top:68px}}@media print{.timetable-bulk-bar,.tt-empty-checkbox{display:none!important}}
.tt-selection-checks{display:flex;align-items:center;flex-wrap:wrap;gap:2px}.tt-selected-group{vertical-align:top!important;background:#eeecff!important}.tt-selected-range{display:block;margin:5px 0 9px;font-size:11px;white-space:nowrap}.tt-selected-group .tt-selection-add{padding:8px 5px;font-size:11px;max-width:100%;white-space:normal}.tt-empty-checkbox small{font-size:10px;margin-left:3px}@media(max-width:700px){.weekly-timetable .tt-free:has([data-empty-slot-select]){display:block;height:auto;padding:8px}}

/* Larger, centred controls for empty timetable periods. */
#teachingGalleryPanel .weekly-timetable .tt-free:has(.tt-selection-checks){text-align:center;vertical-align:middle!important}
#teachingGalleryPanel .tt-selection-checks{justify-content:center;gap:6px;margin-bottom:8px}
#teachingGalleryPanel .tt-empty-checkbox{min-width:36px;min-height:36px;padding:6px;justify-content:center;align-items:center;box-sizing:border-box}
#teachingGalleryPanel .tt-empty-checkbox input{width:24px;height:24px;margin:0;cursor:pointer}
#teachingGalleryPanel .weekly-timetable .tt-free .tt-empty-rph{display:inline-flex;align-items:center;justify-content:center;width:40px;min-width:40px;height:40px;padding:0;margin:0 auto;font-size:26px;line-height:1;border-radius:10px;text-align:center}
#teachingGalleryPanel .tt-selected-range{text-align:center}
#teachingGalleryPanel .tt-selected-group .tt-selection-add{min-height:40px;font-size:14px;padding:8px 12px}
@media(max-width:700px){#teachingGalleryPanel .weekly-timetable .tt-free .tt-empty-rph{width:auto;padding:0 12px}}
.class-teacher-settings{padding-bottom:22px;margin-bottom:24px;border-bottom:1px solid var(--line)}
.class-room-settings{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;margin-bottom:24px;border-bottom:1px solid var(--line)}
.class-room-settings .class-teacher-settings{border:0;margin:0;padding-bottom:22px}
.class-qr-settings{min-width:0;padding-bottom:22px}
.class-qr-settings h2{margin:0 0 9px}
.class-qr-settings form{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:12px 0}
.class-qr-settings .field{flex:1 1 210px;margin:0}
.class-qr-settings>.btn{margin:4px 0 8px}
.room-qr-preview{display:grid;justify-items:start;gap:7px;margin-top:15px;padding:15px;border:1px solid var(--line);border-radius:14px;background:#f7fbff;max-width:350px}
.room-qr-preview svg{display:block;width:min(100%,260px);height:auto;background:#fff}
.room-qr-preview p{margin:0;word-break:break-all;font-size:12px}
@media(max-width:800px){.class-room-settings{grid-template-columns:1fr;gap:0}.class-qr-settings{border-top:1px solid var(--line);padding-top:20px}}
.class-teacher-settings h2{margin:0}
.class-teacher-settings form{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-top:16px}
.class-teacher-settings .field{flex:1 1 260px;max-width:520px;margin:0}
.class-teacher-settings .btn{min-height:44px}
@media(max-width:570px){.class-teacher-settings .field,.class-teacher-settings .btn{width:100%;max-width:none}}
