/* Extends the existing ONCO palette, type and paper components. */
.ws-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:30px;align-items:start}.ws-sidebar{position:sticky;top:24px;background:#fff;border:1px solid #dce6ed;border-radius:18px;padding:22px 14px}.ws-sidebar-brand{display:grid;gap:10px;padding:6px 10px 22px}.ws-sidebar-brand strong{font-size:17px;line-height:1.4}.ws-sidebar nav{display:grid;gap:5px}.ws-sidebar nav button{display:flex;align-items:center;justify-content:space-between;border:0;background:transparent;text-align:left;padding:12px;border-radius:10px;color:#526778;gap:10px}.ws-sidebar nav button.active{background:#eaf3f8;color:#013a63;font-weight:700}.ws-count{border-radius:20px;background:#013a63;color:white;padding:2px 8px;font-size:12px}.ws-sidebar-note{font-size:12px;color:#718592;line-height:1.6;padding:22px 10px}.ws-main{min-width:0}.ws-main .paper{margin:0 0 22px;padding:26px}.ws-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:24px}.ws-heading h1{font-size:32px;margin:7px 0}.ws-heading>button{font-size:13px}.ws-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:14px}.ws-filters label,.ws-toolbar label{font-size:12px;color:#526778;font-weight:600}.ws-filters select,.ws-toolbar select,.ws-toolbar input{margin-top:7px;width:100%;font-size:13px;min-height:42px}.ws-filters button{min-height:42px;font-size:12px}.ws-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.ws-main .ws-metric{padding:22px;display:grid;gap:12px}.ws-metric>span{font-size:13px;color:#526778}.ws-metric>strong{font-size:36px;line-height:1.1;color:#013a63;letter-spacing:-1px}.ws-metric>small{font-size:11px;color:#718592}.ws-overview-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:20px}.ws-section-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.ws-main h2{font-size:19px}.ws-main h3{font-size:16px}.ws-work-row,.ws-module-row{width:100%;display:flex;text-align:left;align-items:center;justify-content:space-between;background:transparent;border:0;border-bottom:1px solid #e7edf2;border-radius:0;padding:15px 0;gap:14px;white-space:normal}.ws-work-row:hover,.ws-module-row:hover{background:#f5f9fb}.ws-work-row small,.ws-module-row small{display:block;font-size:12px;font-weight:400;line-height:1.6;color:#718592;margin-top:5px}.ws-work-row>span:last-child{text-align:right;font-size:12px;flex-shrink:0}.ws-table-wrap{overflow:auto;max-width:100%;overscroll-behavior:contain}.ws-table{width:100%;border-collapse:separate;border-spacing:0;text-align:left;font-size:13px}.ws-table th{color:#526778;background:#f5f8fa;white-space:nowrap;font-size:12px}.ws-table td,.ws-table th{padding:15px 13px;border-bottom:1px solid #e4ecf1;vertical-align:middle}.ws-table td>small,.ws-table th>small{display:block;font-size:11px;color:#718592;margin-top:5px;font-weight:400;line-height:1.5}.ws-table .linkish{font-size:13px;text-align:left;white-space:normal;padding:0}.ws-table progress{width:80px;height:5px;display:block;margin-top:6px}.ws-table input[type=checkbox]{width:17px;height:17px;min-height:0}.ws-status{display:inline-block;border-radius:6px;padding:5px 8px;font-size:11px;font-weight:600;white-space:nowrap;background:#edf1f4;color:#5b6f7b}.ws-status--completed,.ws-status--accepted,.ws-status--sent{background:#e5f4ed;color:#236d4b}.ws-status--pending,.ws-status--queued,.ws-status--sending{background:#fff3d8;color:#8a6419}.ws-status--returned,.ws-status--error,.ws-status--uncertain{background:#fcebe9;color:#a34f45}.ws-status--in_progress{background:#e6f1f9;color:#225f87}.ws-status--locked{background:#e9edf0;color:#74838d}.ws-table .ws-cell{padding:0;background:none;border:none;text-align:left;display:grid;gap:4px}.ws-matrix{max-height:600px}.ws-matrix thead th{position:sticky;top:0;z-index:2;min-width:165px}.ws-matrix thead th small{max-width:160px;white-space:normal;max-height:50px;overflow:hidden}.ws-matrix tbody th,.ws-matrix th:first-child{position:sticky;left:0;z-index:1;min-width:190px;max-width:220px;white-space:normal;background:#fff;box-shadow:2px 0 0 #e5edf2}.ws-matrix thead th:first-child{z-index:3;background:#f5f8fa}.ws-toolbar{display:flex;flex-wrap:wrap;gap:15px;align-items:end;margin-bottom:22px}.ws-toolbar form{display:flex;gap:10px;align-items:end}.ws-toolbar form input{min-width:200px}.ws-pagination{display:flex;justify-content:space-between;align-items:center;font-size:12px;gap:15px;margin-top:20px}.ws-pagination button{font-size:12px}.ws-profile{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}.ws-profile h2{font-size:26px}.ws-profile-score{font-size:32px;color:#013a63}.ws-tabs{display:flex;gap:6px;overflow:auto;margin-bottom:20px}.ws-tabs button{white-space:nowrap;font-size:12px}.ws-tabs button[aria-selected=true]{background:#013a63;color:#fff;border-color:#013a63}.ws-note,.ws-attempts article{padding:18px 0;border-bottom:1px solid #e4ecf1}.ws-note small{color:#718592}.ws-answer{background:#f5f9fb;border-left:3px solid #61a5c2;padding:20px;margin-bottom:20px}.ws-attempts{margin:20px 0}.ws-attempts summary{cursor:pointer;font-weight:600}.ws-empty{text-align:center;padding:38px 20px;color:#718592}.ws-empty>span{font-size:28px;color:#9ab3c3}.ws-empty h2{font-size:17px;color:#526778;margin:10px 0}.ws-empty p{font-size:13px}.ws-report-list{display:grid;gap:12px}.ws-report{display:flex;justify-content:space-between;align-items:center;gap:18px;border:1px solid #e1e9ef;border-radius:12px;padding:20px}.ws-report h3{margin-top:0}.ws-report p{margin-bottom:0;font-size:13px}.ws-recipients{max-height:240px;overflow:auto;border:1px solid #dce6ed;border-radius:12px;padding:14px;margin:20px 0}.ws-recipients label{display:flex;align-items:center;gap:12px;font-size:13px;padding:8px}.ws-recipients input{width:17px;height:17px;min-height:0}.ws-recipients small{display:block;color:#718592;font-weight:400}.ws-preview{background:#f1f7fa;border:1px solid #d3e3ee;border-radius:12px;padding:22px;margin-top:24px}.ws-preview details{margin:12px 0;padding:12px;background:#fff;border-radius:8px}.ws-loading{min-height:180px;color:#718592}.ws-main form>label{display:block;margin:18px 0}.ws-main textarea{min-height:120px}.ws-main input,.ws-main select,.ws-main textarea{box-sizing:border-box;max-width:100%}.ws-main fieldset{border:1px solid #dce6ed;border-radius:10px;padding:18px;margin:18px 0}.ws-main fieldset input[type=number]{max-width:140px}.ws-main button{cursor:pointer}.ws-main button:disabled{cursor:not-allowed;opacity:.55}.ws-main button:focus-visible,.ws-sidebar button:focus-visible{outline:3px solid #61a5c2;outline-offset:2px}
@media(min-width:1100px){body:has(.ws-layout) main{max-width:1560px}}@media(max-width:1100px){.ws-layout{grid-template-columns:190px minmax(0,1fr);gap:18px}.ws-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.ws-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ws-overview-grid{grid-template-columns:1fr}.ws-main .paper{padding:20px}}@media(max-width:760px){.ws-layout{display:block}.ws-sidebar{position:static;padding:12px;margin-bottom:22px;border-radius:12px}.ws-sidebar-brand{padding:6px 8px 12px}.ws-sidebar-brand strong{display:none}.ws-sidebar nav{display:flex;overflow:auto;gap:6px}.ws-sidebar nav button{white-space:nowrap;font-size:12px;flex-shrink:0;background:#f4f8fa}.ws-sidebar-note{display:none}.ws-sidebar>#wsLegacy{font-size:11px;padding:10px 8px}.ws-heading h1{font-size:25px}.ws-heading{gap:10px}.ws-main .paper{padding:17px;border-radius:12px;margin-bottom:16px}.ws-metrics{gap:10px}.ws-main .ws-metric{padding:17px}.ws-metric>strong{font-size:29px}.ws-metric>span{font-size:11px}.ws-metric>small{font-size:10px}.ws-table{min-width:650px}.ws-filters{gap:10px}.ws-toolbar{display:grid;grid-template-columns:1fr 1fr}.ws-toolbar form{grid-column:1/-1}.ws-toolbar form label{min-width:0;flex:1}.ws-toolbar form input{min-width:0}.ws-profile{gap:14px}.ws-profile h2{font-size:22px}.ws-profile-score{font-size:26px}.ws-tabs{margin-bottom:15px}.ws-report{align-items:start;flex-direction:column;padding:16px}.ws-pagination{flex-wrap:wrap;justify-content:center}.ws-work-row small{font-size:11px}.ws-work-row>span:last-child{max-width:90px}.ws-module-row{align-items:start;flex-direction:column}.ws-matrix .ws-table{min-width:900px}.ws-matrix th:first-child{min-width:135px;max-width:145px}}

/* Responsive workspace: size controls against the content column, not the viewport. */
.ws-main{container:teacher-workspace / inline-size}
.ws-layout>*{min-width:0}
.ws-main :is(h1,h2,h3,p,small,summary,legend){overflow-wrap:anywhere}
.ws-main :is(input,select,textarea){font-size:14px;line-height:1.5}
.ws-main :is(button,.linkish){max-width:100%;white-space:normal;line-height:1.45}
.ws-main button{min-height:42px}
.ws-main .paper{min-width:0}
.ws-main .ws-filters{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:18px 16px}
.ws-filters>label,.ws-toolbar label{display:flex;flex-direction:column;gap:8px;min-width:0;margin:0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.ws-field-label{display:block;min-height:18px}
.ws-filters :is(select,input),.ws-toolbar :is(select,input){display:block;width:100%;max-width:100%;min-width:0;min-height:44px;margin:0;font-size:14px;line-height:1.4;text-overflow:ellipsis}
.ws-filters>button{justify-self:start;align-self:end;min-height:44px;margin:0}
.ws-toolbar{gap:16px;align-items:end}
.ws-toolbar>label{flex:1 1 160px;max-width:100%}
.ws-toolbar>form{flex:2 1 300px;min-width:0;gap:10px;align-items:end}
.ws-toolbar>form>label{flex:1;min-width:0}
.ws-toolbar form input{min-width:0}
.ws-toolbar>form>button{flex:0 0 auto;min-height:44px}
.ws-toolbar>button{min-height:44px}
.ws-main .ws-metric{margin:0;height:100%;align-content:start}
.ws-metrics{margin-bottom:22px;align-items:stretch}
.ws-metric>span{line-height:1.5;min-height:40px}
.ws-metric>small{font-size:12px;line-height:1.5}
.ws-section-heading{flex-wrap:wrap;align-items:baseline;margin-bottom:12px}
.ws-section-heading h2{margin-bottom:0}
.ws-work-row>span:first-child,.ws-module-row>span:first-child{min-width:0;overflow-wrap:anywhere}
.ws-work-row>span:last-child{flex:0 0 112px;max-width:38%;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.ws-work-row strong,.ws-module-row strong{display:block;font-size:14px;line-height:1.6}
.ws-work-row>span:last-child:only-child{flex:1;text-align:left;max-width:none}
.ws-main .ws-table-wrap{border:1px solid #e4ecf1;border-radius:12px;scrollbar-gutter:stable;scroll-margin-top:20px}
.ws-table-wrap:focus-visible{outline:3px solid #61a5c2;outline-offset:3px}
.ws-table{min-width:720px;line-height:1.6}
.ws-table :is(td,th){overflow-wrap:anywhere}
.ws-table td:first-child:not(:has(input)),.ws-table td:has(.linkish){min-width:175px}
.ws-table td>small{max-width:260px}
.ws-table .linkish{min-height:0}
.ws-table td>button:not(.linkish):not(.ws-cell){white-space:nowrap}
.ws-status{max-width:100%;line-height:1.5;white-space:normal;overflow-wrap:normal}
.ws-matrix{max-height:min(68vh,650px);isolation:isolate}
.ws-matrix .ws-table{min-width:900px}
.ws-matrix :is(thead th,tbody th){width:190px}
.ws-matrix thead th{vertical-align:top}
.ws-matrix thead th small{max-width:170px;max-height:none;overflow:visible}
.ws-matrix .ws-cell{min-width:142px;min-height:44px;align-content:center;justify-items:start}
.ws-matrix tbody th,.ws-matrix th:first-child{min-width:180px;max-width:210px}
.ws-profile>div{min-width:0;max-width:100%;overflow-wrap:anywhere}
.ws-profile h2{line-height:1.4}
.ws-profile .actions{margin-bottom:0}
.ws-profile-score{white-space:nowrap}
.ws-tabs{padding:3px 3px 10px;margin-left:-3px;margin-right:-3px;scrollbar-width:thin;scroll-padding-inline:3px}
.ws-tabs button{flex:0 0 auto;white-space:nowrap;min-height:44px}
.ws-recipients label{margin:0;border-radius:6px;align-items:flex-start;line-height:1.6}
.ws-recipients label:hover{background:#f5f9fb}
.ws-recipients input[type=checkbox],.ws-main .admin-check input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;margin:3px 0 0}
.ws-recipients label>span{min-width:0;overflow-wrap:anywhere}
.ws-main fieldset{min-width:0;max-width:100%}
.ws-main legend{max-width:100%;padding:0 6px;font-size:14px}
.ws-preview :is(summary,.text),.ws-note{overflow-wrap:anywhere}
.ws-preview details{min-width:0}
.ws-report>div{min-width:0}
.ws-report>button{flex-shrink:0;min-height:44px}
.ws-pagination>span{line-height:1.5;text-align:center}
.ws-sidebar nav button{min-height:44px;line-height:1.5}
body:has(.ws-layout) #identity{min-width:0;flex-wrap:wrap;overflow-wrap:anywhere}
body:has(.ws-layout) #identity>span{min-width:0;max-width:100%}
body:has(.ws-layout) .site-nav{flex-wrap:wrap}
.auth-form .auth-links{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;line-height:1.6}

@container teacher-workspace (max-width:820px){
 .ws-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ws-overview-grid{grid-template-columns:1fr;gap:0}
 .ws-main .ws-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ws-report{align-items:flex-start}
}
@container teacher-workspace (max-width:480px){
 .ws-main .ws-filters{grid-template-columns:1fr;gap:16px}
 .ws-filters>button{justify-self:stretch;width:100%}
 .ws-toolbar{display:flex;flex-direction:column;align-items:stretch}
 .ws-toolbar>label,.ws-toolbar>form{flex:initial;width:100%;max-width:none}
 .ws-toolbar>form{display:flex;flex-wrap:wrap}
 .ws-toolbar>form>label{flex:1 1 180px}
 .ws-toolbar>form>button{flex:0 0 auto}
 .ws-heading h1{font-size:26px;line-height:1.3}
 .ws-heading>div{min-width:0}
 .ws-heading>button{flex:0 0 auto;padding:10px 12px}
 .ws-profile{align-items:flex-start}
 .ws-profile>button{width:100%}
 .ws-report{flex-direction:column;align-items:stretch}
 .ws-report>button{width:100%}
 .ws-main .ws-metric{padding:16px 13px}
 .ws-metric>span{font-size:12px;min-height:36px}
 .ws-metric>small{font-size:11px}
 .ws-work-row{gap:10px}
 .ws-work-row>span:last-child{flex-basis:94px}
 .ws-work-row strong{font-size:13px}
 .ws-matrix tbody th,.ws-matrix th:first-child{min-width:135px;max-width:150px}
 .ws-main .actions>button{flex:1 1 100%}
}
@media(max-width:760px){
 body:has(.ws-layout) header{gap:14px}
 body:has(.ws-layout) #identity{width:100%;margin:0;gap:10px}
 body:has(.ws-layout) #identity button{min-height:40px}
 .ws-sidebar nav{padding-bottom:8px;scrollbar-width:thin;scroll-padding-inline:0}
 .ws-sidebar nav button{font-size:13px;padding:11px 13px;white-space:nowrap}
 .ws-sidebar{margin-bottom:20px}
 .ws-heading{margin-bottom:20px}
 .ws-main :is(input,select,textarea){font-size:16px}
 .ws-main .ws-filters select,.ws-main .ws-toolbar :is(select,input){font-size:16px}
 .ws-table-wrap{overscroll-behavior-x:contain}
 .ws-table{font-size:13px}
 .ws-metrics{margin-bottom:16px}
 .ws-main .ws-answer{padding:16px}
}
@media(prefers-reduced-motion:reduce){.ws-layout *{scroll-behavior:auto!important;transition:none!important}}

.ws-filter-panel>summary{cursor:pointer;list-style-position:inside;font-size:14px;font-weight:700;color:#013a63;line-height:1.5;overflow-wrap:anywhere}
.ws-filter-panel>summary span{display:inline-block;font-size:12px;font-weight:400;color:#718592;margin-left:12px}
.ws-filter-panel[open]>.ws-filters{margin-top:20px}
.ws-filter-panel>summary:focus-visible{outline:3px solid #61a5c2;outline-offset:5px;border-radius:4px}
@media(max-width:760px){.ws-filter-panel>summary{min-height:36px}.ws-filter-panel>summary span{display:block;margin:5px 0 0 18px}.ws-filter-panel[open]>.ws-filters{margin-top:18px}}
