/* Same local white-card surfaces as student records. */
.cohort-panel{margin:0 0 16px;border:1px solid var(--border);border-radius:14px;background:var(--bg-surface);overflow:hidden}.cohort-panel>summary{cursor:pointer;padding:18px 20px;font-size:13px;line-height:1.8}.cohort-panel>summary span{font-size:11px;color:var(--text-secondary);margin-left:16px}.cohort-panel[open]>summary{border-bottom:1px solid var(--border-subtle)}.cohort-body{padding:20px}.cohort-toolbar{display:flex;gap:16px;align-items:flex-end;justify-content:space-between}.cohort-event-field{flex:1;max-width:620px;min-width:0}.cohort-toolbar label,.cohort-filters label{display:block;font-size:11px;color:var(--text-secondary);min-width:0}.cohort-toolbar select,.cohort-filters select{width:100%;min-width:0;font-size:12px;margin-top:7px;padding:10px 11px;border-radius:8px}.cohort-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.cohort-actions .button{font-size:11px;padding:10px 13px;white-space:nowrap}.cohort-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:17px 0 10px}.cohort-guide{font-size:11px;color:var(--text-secondary);line-height:1.9;margin:12px 0 17px}.cohort-guide strong{color:var(--text-primary);font-weight:550}.cohort-result-heading{margin:20px 0 15px;padding-top:18px;border-top:1px solid var(--border-subtle)}.cohort-result-heading h2{font-size:15px;line-height:1.8;margin:0}.cohort-result-heading p{font-size:11px;color:var(--text-secondary);line-height:1.9;margin:5px 0 0;overflow-wrap:anywhere}.cohort-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.cohort-card{padding:15px;background:var(--bg-inset);border:1px solid var(--border-subtle);border-radius:10px;line-height:1.8;min-width:0}.cohort-card strong{display:block;font-size:23px;font-weight:550;color:var(--text-primary)}.cohort-card span{display:block;color:var(--text-primary);font-size:11px}.cohort-card small{display:block;margin-top:5px;color:var(--text-secondary);font-size:10px;overflow-wrap:anywhere}.cohort-note{font-size:11px;color:var(--text-secondary);line-height:1.9;margin:9px 0;overflow-wrap:anywhere}.cohort-questions{margin-top:17px;max-width:100%;overflow:auto}.cohort-table{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed}.cohort-table th{background:var(--bg-inset);color:var(--text-secondary);font-weight:550;font-size:11px;text-align:left}.cohort-table th,.cohort-table td{padding:12px 10px;border-bottom:1px solid var(--border);vertical-align:top;line-height:1.85;overflow-wrap:anywhere}.cohort-table th:first-child{width:88px}.cohort-table th:nth-child(2),.cohort-table th:nth-child(3),.cohort-table th:nth-child(4),.cohort-table th:nth-child(5){width:68px}.cohort-table th:nth-child(6){width:25%}.cohort-table th:last-child{width:auto}.cohort-tag{display:inline-block;font-size:10px;color:var(--text-secondary);padding:2px 6px;background:var(--bg-inset);border:1px solid var(--border-subtle);border-radius:5px;margin:2px 5px 3px 0;max-width:100%;overflow-wrap:anywhere}.cohort-tags>small{font-size:11px;color:var(--text-tertiary)}.cohort-students summary{cursor:pointer;color:var(--accent);font-size:11px;line-height:1.9}.cohort-student-list{padding-top:7px}.cohort-student{padding:10px 0;border-bottom:1px solid var(--border-subtle);font-size:11px;line-height:1.85;overflow-wrap:anywhere}.cohort-student:last-child{border-bottom:0}.cohort-student strong{display:block;font-size:12px;color:var(--text-primary)}.cohort-student p{margin:4px 0;color:var(--text-secondary);font-size:11px}.cohort-student small{color:var(--text-secondary);font-size:10px}.cohort-review-note{white-space:pre-wrap}.cohort-empty{padding:27px 18px;background:var(--bg-inset);border-radius:10px;text-align:center;line-height:1.9;color:var(--text-secondary)}.cohort-empty strong{font-size:13px;color:var(--text-primary)}.cohort-empty p{font-size:11px;margin:8px 0 0}.cohort-panel[aria-busy=true]>.cohort-body{opacity:.85}
@media(max-width:1000px){.cohort-table th:nth-child(2),.cohort-table th:nth-child(3),.cohort-table th:nth-child(4),.cohort-table th:nth-child(5){width:60px}.cohort-table th:first-child{width:75px}.cohort-table th:nth-child(6){width:20%}.cohort-table th,.cohort-table td{padding:10px 7px}.cohort-card{padding:12px}}
@media(max-width:700px){.cohort-body{padding:16px}.cohort-toolbar{flex-wrap:wrap;gap:12px}.cohort-event-field{flex-basis:100%;max-width:100%}.cohort-actions{width:100%}.cohort-actions .button{flex:1;text-align:center}.cohort-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cohort-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.cohort-table,.cohort-table tbody{display:block}.cohort-table thead{display:none}.cohort-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:12px 0;border:1px solid var(--border);border-radius:10px;overflow:hidden}.cohort-table td{display:block;border:0;border-bottom:1px solid var(--border-subtle);padding:10px 12px;min-width:0}.cohort-table td::before{content:attr(data-label);display:block;font-size:10px;color:var(--text-secondary);margin-bottom:3px}.cohort-table td:first-child{grid-column:1/-1;background:var(--bg-inset);font-weight:550}.cohort-table .cohort-tags,.cohort-table .cohort-students-cell{grid-column:1/-1}.cohort-table .cohort-students-cell{border-bottom:0}.cohort-table td:first-child::before{display:none}.cohort-student{padding:11px 0}.cohort-questions{overflow:visible}.cohort-panel>summary span{display:block;margin:4px 0 0 16px}}

.cohort-explanation {margin: 12px 0;color: var(--muted);font-size: 13px;}
.cohort-explanation > summary {cursor: pointer;color: var(--text);padding: 5px 0;font-weight: 600;}
