/* 班级选择器用于发布表单及教师端筛选栏。 */
.teacher-class-picker {position:relative;display:inline-grid;gap:5px;min-width:0;max-width:100%;vertical-align:middle}
.tcp-label {margin:0;font-size:13px;font-weight:600;line-height:1.5;color:#405169}
.teacher-class-picker button {font:inherit;cursor:pointer}
.teacher-class-picker .tcp-trigger {
  display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:36px;min-width:0;width:100%;
  padding:6px 10px;border:1px solid #bac9dc;border-radius:6px;background:white;color:#21334f;
  font-size:14px;line-height:1.5;text-align:left
}
.tcp-trigger>span {min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tcp-trigger>svg,.tcp-branch svg {width:16px;height:16px;flex:none;color:#63758e}
.tcp-trigger:hover,.tcp-trigger[aria-expanded=true] {border-color:#6b91d5}
.tcp-trigger[aria-expanded=true]>svg {transform:rotate(180deg)}
.teacher-class-picker .tcp-panel {
  position:fixed;inset:auto;z-index:1200;display:flex;flex-direction:column;
  box-sizing:border-box;max-width:none;min-width:0;width:300px;max-height:420px;overflow:hidden;
  margin:0;padding:0;border:1px solid #c9d5e4;border-radius:9px;background:#fff;color:#253650;
  font:400 14px/1.5 "Segoe UI","Microsoft YaHei",sans-serif;text-align:left;box-shadow:0 8px 27px #1e3a601f
}
.tcp-panel[hidden],.tcp-children[hidden] {display:none!important}
.tcp-panel button {color:inherit;margin:0;border:0;background:transparent}
.tcp-panel button:focus-visible {outline:2px solid #3e73c8;outline-offset:-2px}
.tcp-toolbar,.tcp-foot {display:flex;align-items:center;flex:none;gap:6px;padding:8px 10px}
.tcp-toolbar {border-bottom:1px solid #e1e7f0}
.tcp-count {margin-right:auto;font-size:13px;color:#57667a}
.tcp-toolbar button {padding:4px 7px;border-radius:4px;color:#2d579f;font-size:13px}
.tcp-toolbar button:hover,.tcp-branch button:hover,.tcp-tree .tcp-leaf:hover,.tcp-tree .tcp-all:hover {background:#f0f5fd}
.tcp-tree {flex:1 1 auto;min-height:0;padding:5px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.tcp-branch {display:flex;align-items:center;min-width:0}
.tcp-branch button[data-tcp="branch"] {flex:1;min-width:0;display:flex;align-items:center;gap:6px;min-height:32px;padding:4px 6px;border-radius:4px;font-weight:600;text-align:left}
.tcp-branch button[data-tcp="branch"]>span {overflow-wrap:anywhere}
.tcp-branch button[aria-expanded=false] svg {transform:rotate(-90deg)}
.tcp-group[data-level=campus] {margin-left:14px}
.tcp-group[data-level=campus] .tcp-branch button[data-tcp="branch"] {font-weight:500}
.tcp-branch [data-tcp="group-select"] {display:grid;place-items:center;min-width:34px;min-height:32px;border-radius:4px}
.tcp-tree .tcp-leaf,.tcp-tree .tcp-all {display:flex;align-items:center;gap:6px;width:100%;min-height:35px;border-radius:4px;padding:5px 9px 5px 30px;text-align:left}
.tcp-tree .tcp-all {padding-inline-start:9px}
.tcp-leaf>span,.tcp-all>span {min-width:0;overflow-wrap:anywhere}
.tcp-leaf small {color:#69778b;font-size:12px;white-space:nowrap}
.tcp-leaf .tcp-mark,.tcp-all .tcp-mark {margin-left:auto}
.tcp-panel .tcp-mark {position:relative;display:block;flex:none;width:15px;height:15px;box-sizing:border-box;border:1px solid #a9b9ce;border-radius:3px;background:white}
.tcp-panel [role=radio] .tcp-mark {border-radius:50%}
.tcp-panel [aria-checked=true]>.tcp-mark,.tcp-panel [aria-checked=mixed]>.tcp-mark {border-color:#2a60bf;background:#2a60bf}
.tcp-panel [aria-checked=true]>.tcp-mark::after {content:"";position:absolute;left:4px;top:1px;width:4px;height:8px;box-sizing:border-box;border:solid white;border-width:0 1.6px 1.6px 0;transform:rotate(45deg)}
.tcp-panel [role=radio][aria-checked=true]>.tcp-mark::after {inset:4px;width:auto;height:auto;background:white;border:0;transform:none;border-radius:50%}
.tcp-panel [aria-checked=mixed]>.tcp-mark::after {content:"";position:absolute;top:6px;left:3px;right:3px;height:2px;background:white}
.tcp-tree .tcp-leaf[aria-checked=true],.tcp-tree .tcp-all[aria-checked=true] {background:#edf3fe;color:#214f9c}
.tcp-foot {justify-content:flex-end;border-top:1px solid #e1e7f0}
.tcp-foot button {padding:4px 12px;min-height:31px;border:1px solid #cbd6e4;border-radius:5px;background:white}
.tcp-foot button:last-child {border-color:#245cba;background:#245cba;color:white}
.tcp-empty {margin:8px;padding:12px;color:#66758a;text-align:center}
@media(max-width:520px) {
  .tcp-tree .tcp-leaf,.tcp-tree .tcp-all,.tcp-branch button[data-tcp="branch"],.tcp-branch [data-tcp="group-select"] {min-height:38px}
  .tcp-foot button {min-height:34px}
}
