/* ============================================================
   教师账号入口与弹窗
   与学生账号样式解耦，只在教师工作台使用
   ============================================================ */
.ta-slot{display:flex;align-items:center;min-width:0}
.ta-chip{
  min-height:38px;display:inline-flex;align-items:center;gap:9px;padding:6px 12px 6px 8px;
  border:1px solid #bfd9cf;border-radius:12px;background:#f2fbf6;color:#176b57;
  font:650 12.5px/1.2 "PingFang SC","Microsoft YaHei",sans-serif;cursor:pointer;
  transition:transform .16s,background .16s,border-color .16s,box-shadow .16s;white-space:nowrap
}
.ta-chip:hover{transform:translateY(-1px);background:#e7f6ee;border-color:#9fc9bb;box-shadow:0 8px 18px rgba(23,107,87,.10)}
.ta-chip:focus-visible{outline:2px solid #176b57;outline-offset:3px}
.ta-person{width:21px;height:21px;color:#6c5bb7;flex:none}
.ta-chip--user{padding-right:9px;color:#173b2d;background:#fff}
.ta-avatar{
  width:28px;height:28px;border-radius:50%;display:grid;place-items:center;flex:none;
  background:#dff3ea;color:#176b57;font-size:12px;font-weight:800
}
.ta-user-copy{display:flex;flex-direction:column;min-width:0;line-height:1.2;text-align:left}
.ta-user-copy b{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;color:#173b2d}
.ta-user-copy small{font-size:10.5px;color:#7d9188;font-weight:600;margin-top:1px}
.ta-chevron{width:15px;height:15px;fill:none;stroke:#8da39a;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.ta-mask{
  position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:18px;
  background:rgba(16,42,38,.34);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
  animation:ta-fade .16s ease-out
}
.ta-mask.closing{animation:ta-fade-out .12s ease-in forwards}
.ta-modal{
  width:min(440px,100%);max-height:min(720px,92vh);overflow:auto;
  background:#fff;border:1px solid #d9e8e2;border-radius:22px;padding:22px;
  box-shadow:0 24px 70px rgba(16,42,38,.22);color:#173b2d;
  font-family:"PingFang SC","Microsoft YaHei",sans-serif;
  animation:ta-rise .2s cubic-bezier(.2,.7,.3,1)
}
.ta-head{display:grid;grid-template-columns:42px minmax(0,1fr) 32px;gap:11px;align-items:start}
.ta-head-mark{
  width:42px;height:42px;border-radius:13px;display:grid;place-items:center;flex:none;
  color:#176b57;background:#e3f4ec
}
.ta-head-mark svg{width:23px;height:23px}
.ta-head-mark--avatar{color:#fff;background:#176b57;font-size:17px;font-weight:800}
.ta-head h2{margin:0;font-size:19px;line-height:1.35;letter-spacing:-.02em;color:#102a26}
.ta-head p{margin:3px 0 0;font-size:11.5px;line-height:1.6;color:#70827b}
.ta-close{
  width:32px;height:32px;border:1px solid #dce9e4;border-radius:9px;background:#fff;
  color:#647971;font-size:20px;line-height:1;cursor:pointer
}
.ta-close:hover{background:#f0f7f3;color:#173b2d}
.ta-close:focus-visible{outline:2px solid #176b57;outline-offset:2px}
.ta-tabs{
  display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:20px 0 16px;padding:4px;
  background:#f0f7f3;border-radius:11px
}
.ta-tabs button{
  min-height:36px;border:0;border-radius:8px;background:transparent;color:#627770;
  font:650 12.5px/1 "PingFang SC","Microsoft YaHei",sans-serif;cursor:pointer
}
.ta-tabs button.on{background:#fff;color:#176b57;box-shadow:0 3px 10px rgba(23,107,87,.08)}
.ta-form{display:flex;flex-direction:column;gap:11px}
.ta-field{display:flex;flex-direction:column;gap:5px}
.ta-field[hidden]{display:none}
.ta-field > span{font-size:11.5px;font-weight:700;color:#4f665e}
.ta-field input{
  width:100%;min-height:42px;padding:9px 11px;border:1px solid #d5e4de;border-radius:10px;
  background:#fbfefc;color:#173b2d;font:400 13.5px/1.5 "PingFang SC","Microsoft YaHei",sans-serif;
  outline:none;transition:border-color .16s,box-shadow .16s,background .16s
}
.ta-field input::placeholder{color:#9aaba4}
.ta-field input:focus{border-color:#75b49e;background:#fff;box-shadow:0 0 0 3px rgba(23,107,87,.10)}
.ta-note{
  margin:1px 0 0;padding:10px 11px;border:1px solid #e3ede8;border-radius:10px;
  background:#f7fbf9;color:#6b7c75;font-size:10.8px;line-height:1.65
}
.ta-msg{min-height:17px;margin:0;font-size:11.5px;color:#71847b}
.ta-msg.bad{color:#b0443c}
.ta-submit{
  min-height:42px;border:0;border-radius:10px;background:#176b57;color:#fff;cursor:pointer;
  font:700 13.5px/1 "PingFang SC","Microsoft YaHei",sans-serif;
  box-shadow:0 7px 16px rgba(23,107,87,.16);transition:background .16s,transform .16s
}
.ta-submit:hover{background:#115444;transform:translateY(-1px)}
.ta-submit:disabled{opacity:.65;cursor:wait;transform:none}
.ta-submit:focus-visible{outline:2px solid #176b57;outline-offset:3px}
.ta-submit--inline{width:auto;min-height:38px;padding:0 16px}
.ta-foot{margin:13px 0 0;text-align:center;font-size:10.5px;line-height:1.65;color:#8a9a94}
.ta-profile{padding:18px 0 6px}
.ta-profile-name{font-size:22px;font-weight:800;color:#102a26;display:flex;align-items:center;gap:8px}
.ta-profile-name span{
  display:inline-flex;padding:3px 8px;border-radius:999px;background:#e3f4ec;color:#176b57;
  font-size:10px;font-weight:700
}
.ta-profile dl{margin:16px 0 0;display:flex;flex-direction:column;gap:0;border-top:1px solid #edf3f0}
.ta-profile dl div{display:flex;justify-content:space-between;gap:14px;padding:9px 1px;border-bottom:1px solid #edf3f0}
.ta-profile dt{font-size:11px;color:#7b8e86}
.ta-profile dd{margin:0;font-size:11.5px;font-weight:650;color:#173b2d}
.ta-profile > p{margin:11px 0 0;font-size:11px;line-height:1.65;color:#71847b}
.ta-profile-actions{display:flex;justify-content:space-between;gap:10px;margin-top:12px}
.ta-logout{
  min-height:38px;padding:0 14px;border:1px solid #efcbc7;border-radius:9px;background:#fff8f7;
  color:#a9463d;font:650 12px/1 "PingFang SC","Microsoft YaHei",sans-serif;cursor:pointer
}
.ta-logout:hover{background:#fff1ef;border-color:#e5aaa4}
.ta-logout:focus-visible{outline:2px solid #a9463d;outline-offset:2px}

@keyframes ta-fade{from{opacity:0}to{opacity:1}}
@keyframes ta-fade-out{from{opacity:1}to{opacity:0}}
@keyframes ta-rise{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}

@media (max-width:520px){
  .ta-mask{padding:10px}
  .ta-modal{padding:18px;border-radius:18px;max-height:94vh}
  .ta-head{grid-template-columns:38px minmax(0,1fr) 30px}
  .ta-head-mark{width:38px;height:38px;border-radius:11px}
  .ta-chip{padding-right:9px}
  .ta-user-copy b{max-width:88px}
  .ta-user-copy small{display:none}
}

html[data-theme="dim"] .ta-chip{background:rgba(143,191,164,.10);border-color:#4a3f35;color:#a8d2ba}
html[data-theme="dim"] .ta-chip--user{background:#312922;color:#f0e7d9}
html[data-theme="dim"] .ta-avatar{background:rgba(143,191,164,.16);color:#a8d2ba}
html[data-theme="dim"] .ta-user-copy b{color:#f0e7d9}
html[data-theme="dim"] .ta-user-copy small{color:#b3a595}
html[data-theme="dim"] .ta-mask{background:rgba(22,18,15,.75)}
html[data-theme="dim"] .ta-modal{background:#312922;border-color:#4a3f35;color:#f0e7d9}
html[data-theme="dim"] .ta-head-mark{background:rgba(143,191,164,.12)}
html[data-theme="dim"] .ta-head h2,html[data-theme="dim"] .ta-profile-name,
html[data-theme="dim"] .ta-profile dd{color:#f0e7d9}
html[data-theme="dim"] .ta-head p,html[data-theme="dim"] .ta-field > span,
html[data-theme="dim"] .ta-profile dt,html[data-theme="dim"] .ta-profile > p{color:#c2b5a3}
html[data-theme="dim"] .ta-close{background:#3a312a;border-color:#4a3f35;color:#f0e7d9}
html[data-theme="dim"] .ta-tabs{background:rgba(255,255,255,.05)}
html[data-theme="dim"] .ta-tabs button.on{background:#3a312a;color:#a8d2ba}
html[data-theme="dim"] .ta-field input{background:#2b241f;border-color:#4a3f35;color:#f0e7d9}
html[data-theme="dim"] .ta-note{background:rgba(255,255,255,.04);border-color:#4a3f35;color:#c2b5a3}
html[data-theme="dim"] .ta-profile dl,html[data-theme="dim"] .ta-profile dl div{border-color:rgba(255,255,255,.08)}
html[data-theme="dim"] .ta-submit{background:#8fbfa4;color:#17241d}
html[data-theme="dim"] .ta-logout{background:rgba(179,68,60,.08);border-color:rgba(229,170,164,.35);color:#e5a9a3}
