/* v58: Activity grouped by learner; accessible keyboard-friendly disclosure controls. */
.rw-activity-help{padding:12px 20px 4px;margin:0;color:#60705d;font-size:12px;line-height:1.5}
.rw-activity-students{padding:10px 16px 16px;display:grid;gap:9px}
.rw-activity-student{border:1px solid #d4ddcf;background:#fffefa;border-radius:8px;overflow:hidden}
.rw-activity-student>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:13px;min-height:67px}
.rw-activity-student>summary::-webkit-details-marker{display:none}
.rw-activity-student>summary:after{content:'⌄';margin-left:4px;color:#45614c}
.rw-activity-student[open]>summary:after{content:'⌃'}
.rw-activity-student>summary:focus-visible{outline:3px solid #456d55;outline-offset:-3px}
.rw-activity-student-name{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.rw-activity-student-name strong{font-size:14px}
.rw-activity-student-name small{font-size:12px;color:#657362}
.rw-activity-last{font-size:12px;color:#4b5b51;text-align:right}
.rw-activity-events{padding:0 13px 10px 52px}
.rw-event{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e7ebdf;padding:10px 0}
.rw-event>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.rw-event strong{font-size:13px;font-weight:600}
.rw-event-lesson{font-size:12px;overflow-wrap:anywhere}
.rw-event small{font-size:11px;color:#667668}
.rw-no-events{margin:8px 0}
@media(max-width:720px){.rw-activity-last{max-width:110px}.rw-activity-events{padding-left:14px}.rw-activity-student>summary{flex-wrap:wrap}.rw-event{flex-wrap:wrap}}

/* v59: source indicators replace the View work buttons in activity history. */
.rw-activity-events .rw-source{flex:none;align-self:center;margin-left:auto;border-radius:6px;padding:7px 11px;font-size:12px;font-weight:600;line-height:1.2;color:#234431;background:#e1ebdf;border:1px solid #c8dac2}
.rw-activity-events .rw-source.teacher{color:#725018;background:#f9edcf;border-color:#ead6a8}
.rw-activity-events .rw-source.unknown{color:#5d665d;background:#f0f1ec;border-color:#e0e2dc}
@media(max-width:720px){.rw-activity-events .rw-source{margin-left:auto;white-space:nowrap}}
