/* 测评内的定向派题和学生信息。 */
.today-task-card .task-type-icon.other,.today-task-card .subj-chip.other {background:#f0effa;color:#615184}
body.teacher-workspace .modal-dialog:has(> .af-dialog) {
  width:min(850px,calc(100vw - 32px));max-width:none;max-height:min(760px,92dvh);
  padding:0;overflow:hidden;border-color:var(--line);border-radius:12px;
}
.af-dialog,.af-profile {
  --af-ink:var(--ink,#202d40);--af-muted:var(--muted,#586575);
  --af-rule:var(--teacher-soft-rule,#e6eaef);--af-action:var(--teacher-primary,#2759ad);
  --af-ice:var(--teacher-ice,#edf3fb);--af-wrong:#905729;--af-right:#326b53;
  color:var(--af-ink);font-variant-numeric:tabular-nums;
}
.af-dialog {display:flex;flex-direction:column;max-height:min(760px,92dvh);background:#fff}
.af-dialog :is(h2,h3,p,ul),.af-profile :is(h2,h3,p,ul,dl,dt,dd) {margin:0}
.af-dialog :is(button,input),.af-profile button {font:inherit}
.af-dialog-head,.af-profile>header {display:flex;align-items:flex-start;justify-content:space-between;gap:14px;background:#fff}
.af-dialog-head {padding:19px 24px 15px;border-bottom:1px solid var(--af-rule)}
.af-dialog-head h2 {font-size:20px;line-height:1.4;font-weight:670}
.af-dialog-head p {display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 9px;margin-top:5px;font-size:13px;line-height:1.5;color:var(--af-muted);overflow-wrap:anywhere}
.af-dialog-head p span:before {content:"·";margin-right:8px;color:#8c96a4}
.af-close {display:grid;place-items:center;flex:none;width:32px;height:32px;background:#fff;color:var(--af-muted);border:0;border-radius:6px;font-size:22px!important}
.af-close:hover,.af-back:hover,.af-cancel:hover {background:var(--hover,#f4f7fb)}
.af-dialog :is(button,summary):focus-visible,.af-profile :is(button,summary):focus-visible {outline:2px solid var(--teacher-focus);outline-offset:1px}
.af-columns {display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);min-height:0}
.af-student-pane,.af-exercise-pane {min-width:0;padding:16px 20px 18px}
.af-student-pane {display:flex;flex-direction:column;min-height:0}
.af-exercise-pane {border-left:1px solid var(--af-rule);background:#fafbfd;overflow:auto;scrollbar-width:thin}
.af-subhead,.af-footer,.af-list-tools {display:flex;align-items:center;justify-content:space-between;gap:8px}
.af-subhead {min-height:28px}
.af-subhead h3,.af-profile section>h3 {font-size:15px;line-height:1.5;font-weight:650}
.af-subhead small,.af-pack-title,.af-list-tools {color:var(--af-muted);font-size:12px}
.af-selection-filter {display:flex;align-items:center;gap:5px;border:0;background:transparent;color:var(--af-muted);border-radius:5px;min-height:28px;padding:2px 5px;font-size:12px!important;white-space:nowrap}
.af-selection-filter::before {content:"";width:21px;height:12px;border-radius:8px;background:radial-gradient(circle at 6px 50%,white 3.5px,transparent 4px),#a9b4c1}
.af-selection-filter[aria-pressed=true] {color:var(--af-action)}
.af-selection-filter[aria-pressed=true]::before {background:radial-gradient(circle at 15px 50%,white 3.5px,transparent 4px),var(--af-action)}
.af-selection-filter:hover {background:var(--af-ice)}
.af-search {display:flex;align-items:center;gap:7px;margin:9px 0 5px;padding:0 10px;border:1px solid var(--line);background:#fff;border-radius:7px;color:var(--af-muted)}
.af-search:focus-within {border-color:var(--teacher-focus);box-shadow:0 0 0 2px #386cc11a}
.af-search svg {width:16px;height:16px;flex:none}
.af-search input {border:0;background:transparent;color:var(--af-ink);width:100%;min-width:0;min-height:35px;font-size:13px}
body.teacher-workspace .af-search input:focus {outline:0;box-shadow:none}
.af-list-tools {min-height:36px;border-bottom:1px solid var(--af-rule);padding:0 7px}
.af-list-tools small {font-size:12px}
.af-select-all,.af-student-option {display:flex;align-items:center;gap:10px;cursor:pointer}
.af-select-all {padding:5px 0}
.af-dialog input[type=checkbox] {width:16px;height:16px;flex:none;margin:0;accent-color:var(--af-action);cursor:pointer}
.af-recipients {min-height:0;max-height:min(38dvh,345px);overflow:auto;scrollbar-width:thin;overscroll-behavior:contain}
.af-student-option {min-height:51px;padding:7px 7px;border-bottom:1px solid var(--af-rule);line-height:1.45}
.af-student-option:last-child {border:0}
.af-student-option:hover,.af-student-option:focus-within {background:var(--af-ice)}
.af-student-option:has(:disabled) {cursor:default;color:var(--af-muted);background:#fafbfc}
.af-student-option>span {display:flex;min-width:0;flex:1;flex-wrap:wrap;gap:1px 5px;align-items:baseline}
.af-student-option strong {flex-basis:100%;font-size:14px;font-weight:600}
.af-student-option small {font-size:11px;color:var(--af-muted);overflow-wrap:anywhere}
.af-st-id {white-space:nowrap}
.af-st-id::before {content:"·";margin-right:5px}
.af-student-option em {flex:none;font-style:normal;font-size:12px;color:var(--af-wrong)}
.af-student-option:has(:disabled) em {color:var(--af-muted)}
.af-more {width:100%;padding:9px;border:0;background:#fff;color:var(--af-action);font-size:13px!important}
.af-more:hover {background:var(--af-ice)}
.af-dialog .af-no-results {padding:24px 4px;color:var(--af-muted);font-size:13px}
.af-dialog .af-pack-title {margin:5px 0 10px;line-height:1.55;overflow-wrap:anywhere}
.af-exercise-list {background:#fff;border:1px solid var(--af-rule);border-radius:8px;overflow:hidden}
.af-question+.af-question {border-top:1px solid var(--af-rule)}
.af-question summary,.af-profile-data summary {display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none}
.af-question summary {min-height:43px;padding:8px 11px}
.af-question summary::-webkit-details-marker,.af-profile-data summary::-webkit-details-marker {display:none}
.af-question summary:hover,.af-profile-data summary:hover {background:var(--hover)}
.af-number {display:grid;place-items:center;min-width:20px;height:20px;flex:none;border-radius:5px;background:var(--inset);color:var(--af-muted);font-size:12px;font-weight:600}
.af-question[open] .af-number {background:var(--af-ice);color:var(--af-action)}
.af-question summary strong {flex:1;font-size:13px;font-weight:600}
.af-chevron {display:inline-block;width:7px;height:7px;flex:none;margin:0 3px;border:solid #7d8897;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.af-question[open] .af-chevron,.af-profile-data[open] .af-chevron {transform:rotate(225deg)}
.af-question>div {padding:0 12px 13px;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.af-question ul {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0;margin:9px 0 0;list-style:none;gap:4px 6px}
.af-question .af-long-options {grid-template-columns:minmax(0,1fr)}
.af-question li {display:flex;align-items:baseline;gap:5px;padding:3px 5px;font-size:12px;color:var(--af-muted)}
.af-question li b {font:650 12px/1.35 "Segoe UI",sans-serif}
.af-question li.is-answer {background:#edf5f0;color:var(--af-right);border-radius:4px}
.af-question li small {margin-left:auto;font-size:10px;white-space:nowrap}
.af-footer {padding:13px 22px;border-top:1px solid var(--af-rule);background:white;flex:none;font-size:13px}
.af-footer>div {min-width:0;overflow-wrap:anywhere}
.af-footer b {font-size:17px;font-weight:650;color:var(--af-ink)}
.af-footer [data-af-name]:not(:empty) {margin-left:5px;font-weight:600}
.af-footer small {display:inline-block;margin-left:8px;color:var(--af-muted);font-size:12px}
.af-footer-actions {display:flex;align-items:center;gap:8px}
.af-confirm,.af-cancel {padding:6px 15px;min-height:35px;border-radius:6px;font-size:13px!important;white-space:nowrap}
.af-confirm {border:1px solid var(--af-action);color:#fff;background:var(--af-action);font-weight:600!important}
.af-confirm:hover:enabled {background:var(--teacher-primary-hover)}
.af-confirm:disabled {background:#d9e1ec;border-color:#d9e1ec;color:#52677f;cursor:not-allowed}
.af-cancel {border:1px solid var(--line);color:var(--af-ink);background:#fff}
.af-mobile-tabs {display:none}

body.teacher-workspace .quick-drawer:has(> .af-profile) {padding:0;width:min(426px,100vw);display:block;background:#fff}
.af-profile>header {position:sticky;top:0;align-items:flex-start;z-index:1;padding:22px 21px 16px;border-bottom:1px solid var(--af-rule)}
.af-profile-identity {display:flex;align-items:center;gap:12px;min-width:0}
.af-profile-identity>div {min-width:0}
.af-avatar {display:grid;place-items:center;flex:none;width:43px;height:43px;border-radius:10px;background:var(--af-ice);color:var(--af-action);font-size:20px;font-weight:600}
.af-profile-identity h2 {font-size:22px;line-height:1.3;font-weight:650}
.af-profile-identity p {margin:3px 0 1px;font-size:13px;line-height:1.45}
.af-profile-identity small {color:var(--af-muted);font-size:12px}
.af-back {flex:none;min-height:31px;padding:3px 8px;border:1px solid var(--line);border-radius:6px;background:white;color:var(--af-action);font-size:12px!important}
.af-profile-data {border-bottom:1px solid var(--af-rule);padding:0 21px}
.af-profile-data summary {justify-content:space-between;min-height:40px;color:var(--af-muted);font-size:13px}
.af-profile-data summary b {font-weight:550}
.af-profile-data dl {display:grid;gap:6px;padding:0 0 13px}
.af-profile-data dl>div {display:grid;grid-template-columns:84px minmax(0,1fr);gap:8px;font-size:13px;line-height:1.5}
.af-profile-data dt {color:var(--af-muted)}
.af-profile-data dd {color:var(--af-ink)}
.af-profile-assess {margin:17px 20px 0}
.af-profile-assess>p {margin:3px 0 9px;font-size:13px;color:var(--af-muted)}
.af-profile-assess dl {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--af-rule);border-radius:7px;background:#f8fafc;padding:10px 0}
.af-profile-assess dl>div {padding-inline:13px}
.af-profile-assess dl>div+div {border-left:1px solid var(--af-rule)}
.af-profile-assess dt {color:var(--af-muted);font-size:12px}
.af-profile-assess dd {font:650 22px/1.35 "Segoe UI","Microsoft YaHei",sans-serif}
.af-profile-assess dd small {font-size:12px;font-weight:500;color:var(--af-muted)}
.af-profile-assess .af-loss-count {color:var(--af-wrong)}
.af-profile-assess .af-current-right {color:var(--af-right);margin:8px 0}
.af-profile-misses {padding:17px 20px 20px}
.af-profile-misses ul {list-style:none;padding:0;margin:6px 0 0}
.af-profile-misses li {padding:10px 7px;border-bottom:1px solid var(--af-rule)}
.af-profile-misses li.is-current {border:1px solid #cfddf1;border-radius:7px;background:var(--af-ice);padding:10px}
.af-miss-title,.af-miss-detail,.af-miss-detail>div {display:flex;align-items:center;gap:8px}
.af-miss-title {align-items:baseline}
.af-miss-title small,.af-miss-detail small {color:var(--af-muted);font-size:12px;white-space:nowrap}
.af-miss-title strong {font-size:14px;line-height:1.45;font-weight:600}
.af-miss-detail {margin-top:4px;justify-content:space-between;font-size:12px;color:var(--af-muted)}
.af-miss-detail .af-wrong {color:var(--af-wrong)}
.af-miss-detail .af-wrong+span {border-left:1px solid #d8dfe8;padding-left:8px}
.af-miss-detail button {background:transparent;color:var(--af-action);font-size:12px;min-height:28px;border:0;border-radius:5px;padding:3px 7px}
.af-miss-detail button:hover {background:var(--af-ice);text-decoration:underline}
.af-profile .is-current .af-miss-detail button {background:var(--af-action);color:#fff;padding-inline:10px}
.af-profile .is-current .af-miss-detail button:hover {background:var(--teacher-primary-hover);text-decoration:none}
.af-profile-misses>p {color:var(--af-muted);margin-top:8px;font-size:13px}

@media(max-width:640px) {
  body.teacher-workspace .modal-dialog:has(> .af-dialog) {width:calc(100vw - 18px)}
  .af-dialog {height:min(620px,88dvh)}
  .af-dialog-head {padding:14px 15px 10px}
  .af-dialog-head h2 {font-size:18px}
  .af-dialog-head p {display:block;margin-top:3px;font-size:12px}
  .af-dialog-head p span {display:block}
  .af-dialog-head p span:before {display:none}
  .af-mobile-tabs {display:flex;gap:16px;padding:0 15px;border-bottom:1px solid var(--af-rule)}
  .af-mobile-tabs button {padding:9px 1px 7px;font-size:13px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--af-muted)}
  .af-mobile-tabs button[aria-pressed=true] {border-bottom-color:var(--af-action);color:var(--af-action);font-weight:600}
  .af-columns {display:flex;flex:1 1 0;min-height:0}
  .af-student-pane,.af-exercise-pane {width:100%;padding:8px 14px 10px;border:0;min-height:0}
  .af-student-pane {display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto minmax(0,1fr);align-items:center;column-gap:4px}
  .af-student-pane .af-subhead {grid-area:1/2}
  .af-search {grid-area:1/1;margin:4px 0}
  .af-list-tools,.af-recipients {grid-column:1/-1}
  .af-subhead h3 {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .af-dialog[data-panel=students] .af-exercise-pane,.af-dialog[data-panel=practice] .af-student-pane {display:none}
  .af-recipients {max-height:none;align-self:stretch}
  .af-student-option strong {flex-basis:auto}
  .af-st-class {order:1;flex-basis:100%}
  .af-st-id::before {display:none}
  .af-exercise-pane .af-subhead {float:right;min-height:22px}
  .af-exercise-list {clear:both}
  .af-pack-title {padding-right:68px}
  .af-footer {padding:10px 14px}
  .af-footer>div:first-child small {display:block;margin:0}
  .af-footer-actions {gap:5px}
  .af-confirm,.af-cancel {padding:5px 10px}
  .af-profile>header {padding:16px 14px 12px;gap:6px}
  .af-profile-data {padding-inline:14px}
  .af-profile-assess {margin:14px 14px 0}
  .af-profile-misses {padding:14px}
}
@media(max-width:380px) {
  .af-question ul {grid-template-columns:minmax(0,1fr)}
}
@media(max-height:530px) {
  .af-dialog-head {padding-block:8px}
  .af-columns {overflow:auto}
  .af-recipients {max-height:165px}
  .af-profile>header {position:static}
}
