/* Local module styles. Dashboard, navigation and public site are not styled here. */
.pw-workspace{max-width:1400px;margin:auto;color:#183b59}
.pw-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:end;position:sticky;top:0;background:#fff;padding:12px;z-index:2;border:1px solid #dce4eb;border-radius:12px}
.pw-toolbar label{display:flex;flex-direction:column;gap:5px;font-size:.82rem;font-weight:600;flex:1;min-width:140px}
.pw-toolbar input,.pw-toolbar select{width:100%;padding:9px;border:1px solid #dce4eb;border-radius:8px;font:inherit;background:#fff;color:#183b59}
.pw-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:16px;margin-top:16px}
.pw-results,.pw-detail{max-height:62vh;overflow:auto;overscroll-behavior:contain;padding:14px;background:#fff;border:1px solid #dce4eb;border-radius:12px}
.pw-detail{white-space:normal;overflow-wrap:anywhere}
.pw-row{display:block;width:100%;text-align:left;padding:12px;border:0;border-bottom:1px solid #e3eaf0;background:#fff;color:inherit;font:inherit;cursor:pointer}
.pw-row:hover,.pw-row:focus-visible{background:#eff5fa;outline:2px solid #1565c0;outline-offset:-2px}
.pw-row small{display:block;color:#617586;margin-top:5px}
.pw-pager{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-top:12px;flex-wrap:wrap}
.pw-grades{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}
.pw-grade{padding:20px;border:1px solid #dce4eb;border-radius:14px;background:#fff;text-align:left;color:#183b59;font:inherit;cursor:pointer}
.pw-grade strong{display:block;font-size:1.35rem;margin-bottom:8px}
.pw-class-screen{scroll-margin-top:var(--pw-header-offset,80px)}.pw-back{margin-bottom:14px}.pw-class-head{align-items:center;gap:12px}.pw-class-head h1{margin:0;scroll-margin-top:16px}.pw-class-head h1:focus{outline:none}.pw-branches{margin-top:16px}.pw-branches .pw-grade{cursor:default}.pw-legacy{margin-top:24px;border-top:1px solid #dce4eb;padding-top:12px}.pw-legacy>summary{cursor:pointer;color:#617586;font-size:.88rem;padding:8px 0}.pw-legacy-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #e3eaf0}.pw-legacy-row span{flex:1;color:#617586;font-size:.82rem}
.pw-queues{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.pw-queues button[aria-pressed=true]{background:#183b59;color:#fff}
.pw-meta{color:#617586;font-size:.88rem;line-height:1.6}
.pw-advanced{margin-top:10px}.pw-advanced>summary{cursor:pointer;padding:10px;color:#183b59}.pw-advanced .pw-toolbar{position:static}
.pw-note{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
.pw-dictation{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 0;font-size:.8rem}
.pw-dictation [role=status]{color:#617586}
@media(max-width:768px){.pw-layout{display:block}.pw-results,.pw-detail{max-height:none;overflow:visible;overscroll-behavior:auto}.pw-detail{margin-top:14px}.pw-grades{grid-template-columns:repeat(2,minmax(0,1fr))}.pw-toolbar{top:0}.pw-toolbar label{min-width:110px}.pw-pager button{min-height:44px}}
@media(max-width:520px){.pw-branches{grid-template-columns:1fr}.pw-class-head{display:flex;flex-wrap:wrap}.pw-class-head h1{font-size:1.5rem}.pw-class-head button,.pw-back{min-height:44px}.pw-legacy-row span{flex-basis:100%}}

.pw-branch-note{margin:8px 0;font-size:.8rem;color:#617586}.pw-branch-note summary{cursor:pointer}.pw-branch-note p{margin:8px 0}
.pw-history .pw-toolbar{position:static;margin-bottom:18px}
.pw-history-month{background:#fff;border:1px solid #dce4eb;border-radius:12px;margin:14px 0;overflow:hidden}
.pw-history-month h2{font-size:1rem;margin:0;padding:14px 18px;background:#f4f7fa;border-bottom:1px solid #dce4eb}
.pw-history-table th,.pw-history-table td{vertical-align:middle}
.pw-history-actions{display:flex;gap:8px;flex-wrap:wrap}
.pw-history-actions button{min-height:36px}
.pw-present{color:#2e7d32;font-weight:700}.pw-absent{color:#c62828;font-weight:700}
.pw-history-total,.pw-history-warning{display:block;margin-top:4px;color:#617586;font-size:.78rem}
.pw-history-warning{color:#986300}
.pw-history-detail h2{font-size:1.1rem;margin:0 24px 10px 0}
.pw-history-roster{max-height:52vh;overflow:auto;overscroll-behavior:contain;padding-right:6px}
.pw-history-pupil{padding:12px 14px;border:1px solid #e0eaf5;border-radius:10px;background:#f8faff;margin-bottom:8px}
.pw-history-pupil-head{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap}
.pw-history-pupil p{font-size:.82rem;line-height:1.5;margin:8px 0 0}
.pw-history-footer{margin-top:16px;justify-content:flex-end}
@media(max-width:768px){.pw-history-table{min-width:660px}.pw-history .pw-toolbar label{flex-basis:100%}.pw-history-roster{max-height:48vh}.pw-history-actions button{min-height:44px}}

/* Explicit text controls retain keyboard navigation without directional decoration. */
select{appearance:none!important;-webkit-appearance:none!important;background-image:none!important}
input[type=number]{appearance:textfield;-moz-appearance:textfield}
input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
summary{list-style:none!important;cursor:pointer}
summary::marker,summary::-webkit-details-marker{display:none!important;content:""!important}
summary:focus-visible{outline:3px solid #d4a017;outline-offset:3px}
.owl-chat-input button{min-width:66px;width:auto;font-size:12px;padding:0 10px}
.review-controls button{width:auto;min-width:70px;padding:0 12px}
