/* =========================================================
   教师班主任工作台 v2.0 · 白色科技感
   ========================================================= */
:root {
  --bg: #f5f5f4;
  --side: #fbfbfa;
  --panel: #ffffff;
  --ink: #171717;
  --ink2: #5c5c5a;
  --ink3: #9a9a97;
  --line: #ececea;
  --line2: #e2e2df;
  --fill: #f3f3f2;
  --fill2: #ebebea;
  --blue: #2f7ff0;
  --blue-soft: #e8f1fe;
  --red: #e5483b;
  --red-soft: #fdecea;
  --amber: #e89a0c;
  --amber-soft: #fdf3df;
  --green: #1d9a57;
  --green-soft: #e6f5ec;
  --tag-bg: #f8eee8;
  --tag-ink: #ad5136;
  --r-xl: 20px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  --sh-card: 0 12px 40px rgba(0, 0, 0, .075), 0 2px 6px rgba(0, 0, 0, .04);
  --sh-pop: 0 18px 60px rgba(0, 0, 0, .12), 0 3px 10px rgba(0, 0, 0, .05);
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  --num: "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --side-w: 216px;
  --rail-w: 300px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--blue); text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
::selection { background: #d6e6fd; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink3); }
.sub { color: var(--ink2); }
.hide { display: none !important; }
svg { display: block; }
svg.ava { border-radius: 50%; overflow: hidden; }
.flabel svg, .ai-note svg { display: inline; vertical-align: -3px; }

/* ---------- 框架 ---------- */
.app { display: grid; grid-template-columns: var(--side-w) 1fr; position: fixed; inset: 0; }
.app.with-rail { grid-template-columns: var(--side-w) 1fr var(--rail-w); }
.side { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 12px 12px; min-height: 0; }
.main { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.rail { min-height: 0; overflow-y: auto; padding: 22px 22px 22px 8px; }
.app:not(.with-rail) .rail { display: none; }
.app { grid-template-rows: minmax(0, 1fr); }
.rail::-webkit-scrollbar, .scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.rail::-webkit-scrollbar-thumb, .scroll::-webkit-scrollbar-thumb { background: #dcdcda; border-radius: 8px; border: 2px solid var(--bg); }

/* 侧边栏 */
.brand { display: flex; align-items: center; gap: 9px; padding: 2px 8px 14px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: .2px; line-height: 1.15; }
.brand-sub { font-size: 11px; color: var(--ink3); line-height: 1.3; }
.brand > div, .me > div { min-width: 0; overflow-wrap: anywhere; }
.me .ava { flex: none; }
.search { position: relative; margin: 0 2px 12px; }
.search input { width: 100%; height: 32px; border: 0; background: var(--fill); border-radius: 9px; padding: 0 10px 0 30px; font-size: 13px; outline: none; }
.search input:focus { background: #fff; box-shadow: 0 0 0 1.5px var(--ink) inset; }
.search > svg { position: absolute; left: 10px; top: 9px; }
.search-pop { position: absolute; left: 0; right: 0; top: 36px; background: #fff; border-radius: 12px; box-shadow: var(--sh-pop); padding: 6px; z-index: 40; max-height: 320px; overflow: auto; }
.search-pop button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; text-align: left; font-size: 13px; }
.search-pop button:hover, .search-pop button.on { background: var(--fill); }
.nav-label { font-size: 12px; color: var(--ink3); padding: 14px 10px 6px; }
.nav a, .nav button { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 9px; color: var(--ink); font-size: 13.5px; width: 100%; text-align: left; }
.nav a:hover, .nav button:hover { background: #f1f1ef; }
.nav a.on { background: #ececea; font-weight: 600; }
.nav .ico { width: 18px; height: 18px; flex: none; display: grid; place-items: center; }
.nav .cnt { margin-left: auto; font-size: 11.5px; color: var(--ink3); }
.recent { display: flex; flex-direction: column; gap: 1px; }
.recent button { font-size: 12.5px; color: var(--ink2); height: 30px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; line-height: 30px; }
.side-foot { margin-top: auto; padding-top: 10px; }
.me { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 10px; width: 100%; text-align: left; }
.me:hover { background: #f1f1ef; }
.me .ava { border-radius: 50%; }
.me-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.me-sub { font-size: 11.5px; color: var(--ink3); line-height: 1.2; }
.me .gear { margin-left: auto; color: var(--ink3); }
.sign { font-size: 10.5px; letter-spacing: .3px; color: #c2c2bf; padding: 8px 10px 0; font-family: var(--num); white-space: nowrap; }

/* ---------- 通用组件 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line2) inset; }
.btn-light:hover { background: var(--fill); }
.btn-ghost { color: var(--ink2); }
.btn-ghost:hover { background: var(--fill); color: var(--ink); }
.btn-red { background: var(--red); color: #fff; }
.btn-sm { height: 28px; padding: 0 12px; font-size: 12.5px; }
.btn-xs { height: 24px; padding: 0 9px; font-size: 12px; }
.btn-icon { width: 34px; padding: 0; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--tag-bg); color: var(--tag-ink); font-size: 12px; white-space: nowrap; }
.tag.gray { background: var(--fill); color: var(--ink2); }
.tag.blue { background: var(--blue-soft); color: #1f63c7; }
.tag.red { background: var(--red-soft); color: #c23a2e; }
.tag.amber { background: var(--amber-soft); color: #a86c00; }
.tag.green { background: var(--green-soft); color: #167a45; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.seg { display: inline-flex; background: var(--fill); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { height: 28px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--ink2); white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--ink); color: #fff; font-weight: 500; }
.seg.light button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > label, .flabel { font-size: 13px; color: var(--ink); font-weight: 500; }
.field > label .req { color: var(--red); margin-left: 2px; }
.field .hint { font-size: 12px; color: var(--ink3); }
.inp, .sel, .ta { width: 100%; border: 0; background: var(--fill); border-radius: 9px; padding: 0 12px; height: 38px; font-size: 13.5px; outline: none; transition: box-shadow .15s, background .15s; }
.ta { padding: 10px 12px; height: auto; min-height: 84px; resize: vertical; line-height: 1.6; }
.inp:focus, .sel:focus, .ta:focus { background: #fff; box-shadow: 0 0 0 1.5px var(--ink) inset; }
.sel { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239a9a97' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
.chk { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; user-select: none; }
.chk input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { height: 28px; padding: 0 11px; border-radius: 999px; background: var(--fill); font-size: 12.5px; color: var(--ink2); }
.chips button:hover { color: var(--ink); background: var(--fill2); }
.chips button.on { background: var(--ink); color: #fff; }
.hr { height: 1px; background: var(--line); margin: 16px 0; }
.empty { text-align: center; padding: 34px 12px; color: var(--ink3); font-size: 13px; }
.empty .ava { margin: 0 auto 8px; opacity: .35; }
.kbd { font-family: var(--num); font-size: 11px; padding: 1px 5px; border-radius: 4px; background: var(--fill); color: var(--ink2); }

/* ---------- 页面通用 ---------- */
.page { height: 100%; overflow-y: auto; padding: 26px 34px 40px; }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; min-height: 36px; flex-wrap: wrap; }
.page-title { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: .2px; }
.page-desc { font-size: 13px; color: var(--ink3); }
.page-head .grow { flex: 1; }
.panel { background: var(--panel); border-radius: var(--r-lg); padding: 20px; box-shadow: 0 0 0 1px var(--line); }
.panel-title { font-size: 15px; font-weight: 600; margin: 0 0 2px; }
.panel-sub { font-size: 12.5px; color: var(--ink3); margin: 0 0 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ---------- 教室页 ---------- */
.class-page { position: absolute; inset: 0; }
.stage { position: absolute; inset: 0; overflow: hidden; cursor: default; }
.stage.panning { cursor: grabbing; }
.stage-inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.class-title { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); font-size: 17px; font-weight: 700; z-index: 5; pointer-events: none; white-space: nowrap; text-shadow: 0 0 6px var(--bg), 0 0 12px var(--bg); }
.class-title small { font-weight: 400; color: var(--ink3); font-size: 12.5px; margin-left: 8px; }
.top-tools { position: absolute; right: 16px; top: 12px; z-index: 6; display: flex; gap: 8px; align-items: center; }
.zoom { display: inline-flex; background: #fff; border-radius: 999px; box-shadow: 0 0 0 1px var(--line2); }
.zoom button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink2); border-radius: 999px; }
.zoom button:hover { color: var(--ink); background: var(--fill); }
.zoom button.zoom-fit { width: auto; padding: 0 10px; font-size: 12.5px; }
/* 全屏按钮：固定在窗口最右上角 */
.fs-global { position: fixed; top: 12px; right: 16px; z-index: 55; box-shadow: 0 0 0 1px var(--line2) inset, 0 2px 8px rgba(0, 0, 0, .04); }
.page-head { padding-right: 96px; }
.thread-head { padding-right: 128px !important; }
.app.with-rail .rail { padding-top: 56px; }.scene-svg .wm { font-size: 9.5px; fill: #c4c4c1; letter-spacing: .4px; font-family: var(--num); pointer-events: none; }
.scene-svg .zone-lbl { font-size: 11.5px; fill: #b0b0ad; letter-spacing: 2px; font-weight: 500; pointer-events: none; }
.scene-svg .wall-board[data-sact] { cursor: pointer; }
.scene-svg .wall-board[data-sact]:hover rect:nth-child(2) { stroke: #c9c9c6; }
.dock { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dock .seg { background: #fff; box-shadow: var(--sh-card), 0 0 0 1px var(--line); padding: 4px; }
.dock .seg button { height: 32px; padding: 0 16px; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.subbar { background: #fff; border-radius: 14px; box-shadow: var(--sh-card), 0 0 0 1px var(--line); padding: 7px 8px 7px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; animation: pop .18s ease-out; }
.subbar > span, .subbar > b { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.subbar > .sel, .subbar > .inp { min-width: 0; max-width: 100%; }
.dock > .seg { max-width: 100%; overflow-x: auto; }
.dock > .seg > button { flex-shrink: 0; }
.subbar .sel { height: 30px; width: auto; font-size: 13px; }
.subbar .inp { height: 30px; width: auto; font-size: 13px; }
.subbar .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.legend-ramp { display: inline-flex; align-items: center; gap: 6px; color: var(--ink3); font-size: 12px; }
.legend-ramp i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 场景 SVG 内样式 */
.scene-svg { overflow: visible; user-select: none; }
.scene-svg text { font-family: var(--font); }
.scene-svg .lbl { font-size: 13px; fill: #3b3b3a; font-weight: 500; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.scene-svg .plate { font-size: 11px; fill: #5c5c5a; font-weight: 500; }
.scene-svg .seatno { font-size: 9.5px; fill: #a3a3a0; font-family: var(--num); }
.seat { cursor: pointer; }
.seat .hit { fill: transparent; }
.seat:hover .hit { fill: rgba(47, 127, 240, .05); }
.seat .stu { transition: opacity .3s; }
.seat .stu-in { transition: opacity .35s, transform .35s; }
.seat .stu-in { pointer-events: none; }
.seat .head { transition: transform .32s cubic-bezier(.25, .7, .25, 1); }
.seat .face {
  opacity: 0;
  transform: translateX(5px) scaleX(.35);
  transition: opacity .16s ease, transform .25s ease;
}
.scene-svg .arm-upper, .scene-svg .arm-lower {
  transform-origin: 0 0;
  transition: transform .36s cubic-bezier(.22, .72, .24, 1);
}
.seat .arm-upper { transform: rotate(-28deg); }
.seat .arm-lower { transform: rotate(38deg); }
.seat.hand .arm-upper { transform: rotate(-133deg); }
.seat.hand .arm-lower { transform: rotate(-35deg); transition-delay: .04s; }
.seat .zz { opacity: 0; }
.seat.sleep .head { transform: translateY(4px) rotate(-10deg); }
.seat.sleep .zz { opacity: 1; animation: zz 2.2s ease-in-out infinite; }
.seat.turn .head { transform: translate(3px, -2px) rotate(-12deg) scaleX(.94); }
.seat.turn .face { opacity: 1; transform: none; transition-delay: .11s; }
.seat.turn .zz { opacity: 0; animation: none; }
@media (hover: hover) {
  .stage:not(.panning):not(.picking) .seat.has:not(.dragging):hover .head {
    transform: translate(3px, -2px) rotate(-12deg) scaleX(.94);
    transition-delay: .12s;
  }
  .stage:not(.panning):not(.picking) .seat.has:not(.dragging):hover .face {
    opacity: 1;
    transform: none;
    transition-delay: .23s;
  }
  .stage:not(.panning):not(.picking) .seat.has:not(.dragging):hover .zz { opacity: 0; animation: none; }
}
.seat.ghost .stu-in { opacity: .16; }
.seat.ghost:hover .stu-in { opacity: .35; }
.seat.dim .stu-in, .seat.dim .desk-g, .seat.dim .lbl { opacity: .35; }
.seat.empty .add { opacity: 0; transition: opacity .15s; }
.seat.empty:hover .add, .seat.empty.show-add .add { opacity: 1; }
.seat.drop-on .hit { fill: rgba(47, 127, 240, .12); stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 4 4; }
.seat.dragging { opacity: .35; }
.seat.picked .hit { fill: rgba(47, 127, 240, .10); stroke: var(--blue); stroke-width: 2; }
.seat .tint { mix-blend-mode: multiply; pointer-events: none; opacity: .6; }
.stage.picking .seat:not(.picked) { opacity: .42; transition: opacity .25s; }
.stage.picking .seat.picked .hit { fill: rgba(47, 127, 240, .14); stroke: var(--blue); stroke-width: 2; }
@keyframes zz { 0%, 100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(-4px); opacity: .5; } }
.badge .badge-bg { fill: var(--ink); }
.badge .badge-tx { fill: #fff; font-size: 10.5px; font-weight: 600; font-family: var(--num); }
.badge.light .badge-bg { fill: #fff; stroke: #dcdcda; }
.badge.light .badge-tx { fill: var(--ink); }
.badge.up .badge-bg { fill: var(--green); }
.badge.down .badge-bg { fill: var(--red); }
.chip .chip-bg { fill: #fff; stroke: #e1e1df; }
.chip .chip-tx { font-size: 11px; font-weight: 600; fill: var(--ink2); }
.chip.amber .chip-bg { fill: #fff6e3; stroke: #f3d28d; } .chip.amber .chip-tx { fill: #a86c00; }
.chip.red .chip-bg { fill: #fdecea; stroke: #f2b2ab; } .chip.red .chip-tx { fill: #c23a2e; }
.chip.blue .chip-bg { fill: #e8f1fe; stroke: #a9c9f6; } .chip.blue .chip-tx { fill: #1f63c7; }
.teacher { cursor: pointer; }
.teacher .arm-upper { transform: rotate(-39deg); }
.teacher .arm-lower { transform: rotate(50deg); }
.teacher.point .arm-upper { transform: rotate(-108deg); }
.teacher.point .arm-lower { transform: rotate(-34deg); transition-delay: .04s; }
.teacher .t-pointer { opacity: 0; transition: opacity .16s; }
.teacher.point .t-pointer { opacity: 1; transition-delay: .13s; }
.stage.motion-off .head, .stage.motion-off .face, .stage.motion-off .arm-upper,
.stage.motion-off .arm-lower, .stage.motion-off .t-head, .stage.motion-off .t-pointer { transition: none; }
.teacher .t-head { transition: transform .3s; }
.teacher:hover .t-head { transform: translateY(-3px); }
.float-pt { font-family: var(--num); font-weight: 700; font-size: 18px; animation: floatUp 1.1s ease-out forwards; pointer-events: none; }
@keyframes floatUp { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-38px); opacity: 0; } }
.spot { pointer-events: none; transition: transform .12s linear; }
.enter .seat .stu-in { animation: enter .5s both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 悬浮信息卡 */
.hcard { position: fixed; z-index: 60; width: min(300px, calc(100vw - 24px)); background: #fff; border-radius: 16px; box-shadow: var(--sh-pop); opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s; pointer-events: none; }
.hcard.on { opacity: 1; transform: none; pointer-events: auto; }
.hc-content { max-height: var(--hc-max-height, calc(100dvh - 24px)); overflow-y: auto; overscroll-behavior: contain; border-radius: inherit; padding: 16px 18px 14px; overflow-wrap: anywhere; }
.hcard::after { content: ""; position: absolute; left: var(--ax, 50%); width: 14px; height: 14px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 2px; pointer-events: none; }
.hcard.below::after { top: -6px; }
.hcard.above::after { bottom: -6px; }
.hc-head { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hc-head .ava { flex: none; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.hc-head > div { min-width: 0; }
.hc-content .tag { height: auto; min-height: 22px; max-width: 100%; white-space: normal; }
.hc-name { font-size: 17px; font-weight: 700; line-height: 1.25; }
.hc-role { font-size: 12.5px; color: var(--ink2); }
.hc-status { font-size: 12px; color: var(--ink3); display: flex; align-items: center; gap: 4px; margin-top: 1px; }
.hc-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; flex: none; }
.hc-sec { margin-top: 10px; }
.hc-k { font-size: 12px; color: var(--ink3); margin-bottom: 3px; }
.hc-v { font-size: 13px; color: #333; line-height: 1.55; white-space: pre-wrap; }
.hc-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; background: var(--fill); border-radius: 10px; padding: 8px 0; text-align: center; }
.hc-stats b { display: block; font-size: 15px; font-family: var(--num); font-weight: 650; }
.hc-stats span { font-size: 11px; color: var(--ink3); }
.hc-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hc-act .btn { flex: 1; }

/* 点评浮层 */
.pop { position: fixed; z-index: 62; background: #fff; border-radius: 14px; box-shadow: var(--sh-pop); padding: 12px; width: 286px; animation: pop .15s ease-out; }
.pop-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.pop .chips button.plus { background: var(--green-soft); color: #167a45; }
.pop .chips button.minus { background: var(--red-soft); color: #c23a2e; }

.empty-class { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); z-index: 7; background: #fff; border-radius: 18px; box-shadow: var(--sh-pop); padding: 18px 22px 18px 18px; display: flex; gap: 14px; align-items: center; animation: pop .25s ease-out; }

/* 随机点名 */
.pick-card { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); z-index: 8; background: #fff; border-radius: 18px; box-shadow: var(--sh-pop); padding: 14px 22px 14px 14px; display: flex; align-items: center; gap: 14px; animation: pop .25s ease-out; }
.pick-card { max-width: calc(100% - 24px); overflow-wrap: anywhere; }
.pick-card > div { min-width: 0; }
.pick-card .nm { font-size: 26px; font-weight: 800; letter-spacing: 2px; line-height: 1.1; flex-wrap: wrap; }
.pick-card .ava { border-radius: 50%; }

/* 右侧栏 */
.rail-sec { padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.rail-sec:last-child { border-bottom: 0; }
.rail-k { font-size: 12px; color: var(--ink3); margin-bottom: 4px; display: flex; align-items: center; justify-content: space-between; }
.rail-k a, .rail-k button { font-size: 12px; color: var(--ink2); }
.rail-k a:hover, .rail-k button:hover { color: var(--ink); }
.rail-big { font-size: 22px; font-weight: 700; font-family: var(--num); letter-spacing: -.3px; line-height: 1.2; }
.rail-big small { font-size: 13px; font-weight: 500; color: var(--ink3); margin-left: 2px; }
.rail-date { font-size: 17px; font-weight: 700; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); padding: 12px 0; margin-top: 10px; }
.trio > div { text-align: center; position: relative; }
.trio > div + div::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.trio b { display: block; font-size: 18px; font-family: var(--num); font-weight: 650; line-height: 1.3; }
.trio span { font-size: 11.5px; color: var(--ink3); }
.attbar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; background: var(--fill); margin: 8px 0 6px; gap: 2px; }
.attbar i { display: block; height: 100%; }
.mini-list { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.mini-item { display: flex; align-items: center; gap: 9px; padding: 6px 6px; border-radius: 10px; font-size: 13px; width: 100%; text-align: left; }
.mini-item:hover { background: #ededeb; }
.mini-item .ava { border-radius: 50%; flex: none; }
.mini-item .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mini-item .r { font-size: 12px; color: var(--ink3); white-space: nowrap; }
.todo { display: flex; align-items: flex-start; gap: 9px; padding: 6px 4px; font-size: 13px; border-radius: 8px; }
.todo:hover { background: #ededeb; }
.todo input { margin-top: 3px; accent-color: var(--ink); width: 15px; height: 15px; flex: none; }
.todo.done span { color: var(--ink3); text-decoration: line-through; }
.todo .x { margin-left: auto; color: var(--ink3); opacity: 0; font-size: 15px; line-height: 1; padding: 2px 4px; }
.todo:hover .x { opacity: 1; }
.todo-add { display: flex; gap: 6px; margin-top: 6px; }
.todo-add .inp { height: 32px; font-size: 13px; background: #ebebea; }
.feed { display: flex; flex-direction: column; gap: 9px; margin-top: 8px; }
.feed-item { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.45; }
.feed-item .d { flex: none; width: 34px; font-family: var(--num); color: var(--ink3); font-size: 11.5px; padding-top: 1px; }
.feed-item .pt { font-family: var(--num); font-weight: 650; }
.feed-item .pt.up { color: var(--green); } .feed-item .pt.dn { color: var(--red); }
.privacy { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink3); background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 0 0 1px var(--line); }
.privacy button { color: var(--ink); font-weight: 500; margin-left: auto; font-size: 12px; }
.rail-toggle { display: none; }

/* ---------- 抽屉 / 弹窗 ---------- */
.mask { position: fixed; inset: 0; background: rgba(20, 20, 20, .22); z-index: 80; animation: fade .18s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 81; background: #fff; border-radius: 18px; box-shadow: var(--sh-pop); width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); display: flex; flex-direction: column; animation: mpop .2s ease-out; }
.modal.wide { width: min(760px, calc(100vw - 32px)); }
@keyframes mpop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } to { opacity: 1; transform: translate(-50%, -50%); } }
.modal-head { padding: 20px 22px 6px; display: flex; align-items: center; }
.modal-title { font-size: 16px; font-weight: 700; }
.modal-x { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--ink3); }
.modal-x:hover { background: var(--fill); color: var(--ink); }
.modal-body { padding: 12px 22px 8px; overflow-y: auto; }
.modal-foot { padding: 12px 22px 20px; display: flex; justify-content: flex-end; gap: 8px; }
.drawer { position: fixed; right: 0; top: 0; bottom: 0; width: min(760px, 100vw); background: var(--bg); z-index: 81; box-shadow: var(--sh-pop); display: flex; flex-direction: column; animation: slide .24s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 28px 32px; }
.dr-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 18px; align-items: center; padding: 24px 28px 18px; }
.dr-hero .ava { border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); flex: none; }
.dr-name { font-size: 24px; font-weight: 800; line-height: 1.2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; overflow-wrap: anywhere; }
.dr-meta { font-size: 13px; color: var(--ink2); margin-top: 3px; overflow-wrap: anywhere; }
.dr-meta .ctag, .dr-name .tag, .dr-name .dupno, .dr-hero .tags .tag {
  height: auto; min-height: 22px; max-width: 100%; white-space: normal; overflow-wrap: anywhere;
}
.dr-meta .hr-flag { flex: none; }
.dr-tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
@media (min-width: 701px) {
  .dr-hero { grid-template-columns: auto minmax(0, 1fr) auto; }
  .dr-tools { grid-column: auto; align-self: start; }
}
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line2); margin: 0 28px; }
.tabs button { height: 40px; font-size: 14px; color: var(--ink3); position: relative; }
.tabs button.on { color: var(--ink); font-weight: 600; }
.tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 14px; }
.kpis-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi { min-width: 0; overflow-wrap: anywhere; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 0 0 1px var(--line); }
.kpi .k { font-size: 12px; color: var(--ink3); }
.kpi .v { font-size: 22px; font-weight: 700; font-family: var(--num); line-height: 1.25; letter-spacing: -.3px; }
.kpi .v small { font-size: 12.5px; color: var(--ink3); font-weight: 500; margin-left: 2px; }
.kpi .d { font-size: 12px; margin-top: 1px; }
.up { color: var(--green); } .dn { color: var(--red); }
.info-grid { display: grid; grid-template-columns: 96px 1fr; gap: 9px 14px; font-size: 13.5px; }
.info-grid .k { color: var(--ink3); }
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1.5px; background: var(--line2); }
.tl-item { position: relative; padding: 0 0 14px; }
.tl-item::before { content: ""; position: absolute; left: -17px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--ink); }
.tl-item.t-表扬::before, .tl-item.t-获奖::before { box-shadow: 0 0 0 2px var(--green); }
.tl-item.t-提醒::before { box-shadow: 0 0 0 2px var(--red); }
.tl-item.t-家访::before { box-shadow: 0 0 0 2px var(--blue); }
.tl-top { font-size: 12px; color: var(--ink3); display: flex; gap: 8px; align-items: center; }
.tl-txt { font-size: 13.5px; margin-top: 2px; }
.tl-item .del { opacity: 0; color: var(--ink3); font-size: 12px; }
.tl-item:hover .del { opacity: 1; }
.cmt { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 0 0 1px var(--line); font-size: 13.5px; line-height: 1.7; margin-bottom: 10px; }
.cmt-meta { font-size: 12px; color: var(--ink3); display: flex; gap: 8px; margin-bottom: 4px; align-items: center; }
.cmt-meta .grow { flex: 1; }

/* ---------- 表格 ---------- */
.tbl-wrap { background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); overflow: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 500; color: var(--ink3); font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fff; position: sticky; top: 0; z-index: 1; }
.tbl th.sortable { cursor: pointer; }
.tbl th.sortable:hover { color: var(--ink); }
.tbl td { padding: 8px 12px; border-bottom: 1px solid #f2f2f0; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fafaf9; }
.tbl tr.click { cursor: pointer; }
.tbl .r { text-align: right; }
.tbl .c { text-align: center; }
.tbl .nm { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.tbl .nm .ava { border-radius: 50%; }
.tbl .ops { opacity: 0; } .tbl tr:hover .ops { opacity: 1; }
.filterbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.filterbar .inp { width: 220px; height: 34px; background: #fff; box-shadow: 0 0 0 1px var(--line2) inset; }

/* 成绩录入表 */
.score-layout { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
.exam-list { display: flex; flex-direction: column; gap: 8px; }
.exam-item { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 0 0 1px var(--line); text-align: left; width: 100%; }
.exam-item:hover { box-shadow: 0 0 0 1px var(--line2), 0 4px 14px rgba(0, 0, 0, .04); }
.exam-item.on { box-shadow: 0 0 0 1.5px var(--ink); }
.exam-item .t { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.exam-item .m { font-size: 12px; color: var(--ink3); margin-top: 2px; }
.prog { height: 4px; background: var(--fill); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.grid-tbl td.cell { padding: 0; }
.grid-tbl input { width: 100%; min-width: 64px; height: 34px; border: 0; background: transparent; text-align: center; font-family: var(--num); font-size: 13.5px; outline: none; border-radius: 0; }
.grid-tbl input:focus { background: var(--blue-soft); box-shadow: 0 0 0 1.5px var(--blue) inset; }
.grid-tbl input.bad { color: var(--red); background: var(--red-soft); }
.grid-tbl input.miss { color: var(--amber); }
.grid-tbl input.low { color: var(--red); }
.grid-tbl th small { color: var(--ink3); font-weight: 400; }
.grid-tbl td.tot { font-family: var(--num); font-weight: 600; text-align: center; }
.grid-tbl td.rk { font-family: var(--num); color: var(--ink2); text-align: center; }
.paste-hint { font-size: 12.5px; color: var(--ink2); background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }

/* ---------- 图表 ---------- */
.chart { position: relative; }
.chart svg text { font-family: var(--num); }
.chart .ax { fill: #8b8a85; font-size: 11px; }
.chart .ax-cn { fill: #8b8a85; font-size: 11.5px; font-family: var(--font); }
.chart .lab { fill: var(--ink); font-size: 11.5px; font-weight: 600; }
.chart .grid { stroke: #ecebe6; }
.chart .base { stroke: #cfcec7; }
.chart .hot { cursor: default; }
.chart .hot:hover + .mk, .chart .mk.on { stroke-width: 3; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink2); margin-top: 6px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.legend i.sq { width: 10px; height: 10px; border-radius: 3px; }
.tip { position: fixed; z-index: 90; pointer-events: none; background: #fff; color: var(--ink); border-radius: 10px; box-shadow: var(--sh-pop); padding: 8px 11px; font-size: 12.5px; line-height: 1.55; opacity: 0; transition: opacity .1s; max-width: 260px; }
.tip.on { opacity: 1; }
.tip b { font-weight: 650; }
.tip .tk { color: var(--ink3); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.small-mult { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
.sm-cell .t { font-size: 12.5px; font-weight: 600; display: flex; justify-content: space-between; }
.sm-cell .t span { font-weight: 400; color: var(--ink3); font-family: var(--num); }
.warn-list { display: flex; flex-direction: column; gap: 6px; }

/* ---------- AI 助手 ---------- */
.ai-page { height: 100%; display: flex; flex-direction: column; }
.ai-home { flex: 1; overflow-y: auto; padding: 48px 34px 40px; }
.ai-wrap { max-width: 860px; margin: 0 auto; }
.ai-hello { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.ai-hello .ava { border-radius: 50%; }
.ai-hello h1 { font-size: 26px; margin: 0; font-weight: 800; letter-spacing: .3px; }
.ai-hello p { margin: 0; color: var(--ink2); font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.composer { background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 6px 24px rgba(0, 0, 0, .04); padding: 14px 16px 12px; }
.composer textarea { width: 100%; border: 0; outline: none; resize: none; min-height: 72px; max-height: 220px; font-size: 14.5px; line-height: 1.6; background: transparent; }
.composer-bar { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.composer-bar .grow { flex: 1; }
.ctx-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--fill); font-size: 12.5px; color: var(--ink2); }
.ctx-chip:hover { color: var(--ink); background: var(--fill2); }
.ctx-chip.on { background: var(--ink); color: #fff; }
.send { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.send:hover { background: #333; }
.send[disabled] { background: #cfcfcd; }
.api-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink2); background: #fff; border-radius: 999px; padding: 4px 10px; box-shadow: 0 0 0 1px var(--line2); }
.api-pill i { width: 7px; height: 7px; border-radius: 50%; background: #c9c9c6; }
.api-pill.ok i { background: var(--green); }
.tpl-tabs { display: flex; gap: 18px; margin: 26px 0 12px; font-size: 13px; }
.tpl-tabs button { color: var(--ink3); }
.tpl-tabs button.on { color: var(--ink); font-weight: 600; }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tpl { background: #fff; border-radius: 14px; padding: 14px 16px; text-align: left; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s, transform .15s; min-height: 92px; display: flex; flex-direction: column; }
.tpl:hover { box-shadow: 0 0 0 1px var(--line2), 0 8px 24px rgba(0, 0, 0, .06); transform: translateY(-1px); }
.tpl .t { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.tpl .t i { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-style: normal; flex: none; }
.tpl .d { font-size: 12.5px; color: var(--ink3); margin-top: 6px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ai-thread { flex: 1; overflow-y: auto; padding: 20px 34px 10px; }
.ai-thread .ai-wrap { max-width: 820px; }
.thread-head { display: flex; align-items: center; gap: 10px; padding: 18px 34px 0; }
.thread-head .t { font-size: 15px; font-weight: 700; flex: 1; text-align: center; }
.msg { margin: 16px 0; display: flex; gap: 10px; }
.msg.user { justify-content: flex-end; }
.msg.user .bubble { background: #fff; box-shadow: 0 0 0 1px var(--line); border-radius: 14px 14px 4px 14px; padding: 10px 14px; max-width: 76%; font-size: 13.5px; white-space: pre-wrap; }
.msg.bot .ava { border-radius: 50%; flex: none; margin-top: 2px; }
.msg.bot .body { flex: 1; min-width: 0; }
.msg.bot .who { font-size: 12px; color: var(--ink3); margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.md { font-size: 14px; line-height: 1.8; color: #222; background: #fff; border-radius: 4px 14px 14px 14px; padding: 14px 18px; box-shadow: 0 0 0 1px var(--line); overflow-wrap: anywhere; }
.md h1, .md h2, .md h3 { font-size: 15.5px; margin: 14px 0 6px; line-height: 1.5; }
.md h1 { font-size: 17px; }
.md p { margin: 6px 0; }
.md ul, .md ol { margin: 6px 0; padding-left: 22px; }
.md li { margin: 2px 0; }
.md table { border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.md td, .md th { border: 1px solid var(--line2); padding: 4px 8px; }
.md blockquote { margin: 8px 0; padding: 4px 12px; border-left: 3px solid var(--line2); color: var(--ink2); }
.md code { background: var(--fill); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.md .cursor { display: inline-block; width: 7px; height: 15px; background: var(--ink); vertical-align: -2px; animation: blink 1s steps(2) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.msg-tools { display: flex; gap: 4px; margin-top: 6px; }
.msg-err { background: var(--red-soft); color: #a8322a; border-radius: 12px; padding: 10px 14px; font-size: 13px; line-height: 1.6; }
.ai-foot { padding: 10px 34px 18px; }
.ai-foot .composer textarea { min-height: 44px; }
.ai-note { text-align: center; font-size: 11.5px; color: var(--ink3); margin-top: 8px; }
.batch-item { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 8px; }
.batch-item .h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.batch-item .h .grow { flex: 1; }
.batch-item .tx { font-size: 13.5px; line-height: 1.75; white-space: pre-wrap; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; max-height: 240px; overflow-y: auto; padding: 2px; }
.pick-grid label { display: flex; align-items: center; gap: 6px; font-size: 13px; background: var(--fill); border-radius: 8px; padding: 6px 8px; cursor: pointer; }
.pick-grid input { accent-color: var(--ink); margin: 0; }
.prompt-box { background: var(--fill); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; line-height: 1.65; white-space: pre-wrap; max-height: 300px; overflow: auto; color: var(--ink2); font-family: var(--font); }

/* ---------- 设置 ---------- */
.set-layout { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: start; max-width: 1060px; }
.set-nav { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; }
.set-nav button { text-align: left; height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; color: var(--ink2); }
.set-nav button:hover { background: var(--fill); color: var(--ink); }
.set-nav button.on { background: #ececea; color: var(--ink); font-weight: 600; }
.set-sec { margin-bottom: 16px; }
.gender-pick { display: flex; gap: 14px; }
.gender-pick button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 16px 10px; border-radius: 16px; font-size: 13px; color: var(--ink2); box-shadow: 0 0 0 1px var(--line); background: #fff; }
.gender-pick button .ava { border-radius: 50%; }
.gender-pick button.on { box-shadow: 0 0 0 2px var(--ink); color: var(--ink); font-weight: 600; }
.sub-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-item { display: inline-flex; align-items: center; gap: 6px; background: var(--fill); border-radius: 10px; padding: 4px 6px 4px 10px; font-size: 13px; }
.sub-item input { width: 52px; height: 26px; border: 0; border-radius: 6px; background: #fff; text-align: center; font-family: var(--num); font-size: 12.5px; outline: none; }
.sub-item button { color: var(--ink3); width: 20px; height: 20px; border-radius: 6px; }
.sub-item button:hover { background: #fff; color: var(--red); }
.mini-class { display: inline-grid; gap: 3px; padding: 10px; background: var(--fill); border-radius: 12px; }
.mini-class i { display: block; width: 14px; height: 10px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 1px var(--line2); }

/* ---------- 引导 ---------- */
.welcome { position: fixed; inset: 0; z-index: 79; background: var(--bg); display: grid; place-items: center; animation: fade .3s; overflow-y: auto; padding: 24px; }
.welcome-in { text-align: center; max-width: 620px; width: 100%; }
.welcome h1 { font-size: 22px; margin: 0 0 4px; font-weight: 700; }
.welcome p.lead { color: var(--ink2); margin: 0 0 30px; font-size: 15px; }
.w-avatars { display: flex; justify-content: center; gap: 28px; margin-bottom: 26px; }
.w-avatars button { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; color: var(--ink3); }
.w-avatars button .circle { width: 108px; height: 108px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .06); transition: transform .2s, box-shadow .2s; }
.w-avatars button:hover .circle { transform: translateY(-3px); }
.w-avatars button.on .circle { box-shadow: 0 0 0 2.5px var(--ink), 0 10px 30px rgba(0, 0, 0, .08); }
.w-avatars button.on { color: var(--ink); font-weight: 600; }
.w-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; text-align: left; max-width: 440px; margin: 0 auto; }
.w-mode { display: flex; gap: 10px; justify-content: center; margin: 4px 0 28px; }
.w-mode button { padding: 10px 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 13px; color: var(--ink2); text-align: left; width: 212px; }
.w-mode button b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.w-mode button.on { box-shadow: 0 0 0 2px var(--ink); }
.w-go { height: 44px; padding: 0 44px; font-size: 15px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 140px; transform: translateX(-50%); z-index: 120; background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 13px; box-shadow: var(--sh-pop); animation: pop .2s; white-space: nowrap; }

/* 演示数据横幅 */
.demo-bar { position: absolute; left: 16px; top: 14px; z-index: 6; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink2); background: #fff; border-radius: 999px; padding: 4px 4px 4px 12px; box-shadow: 0 0 0 1px var(--line2); }

/* ---------- 响应式（PC 为主） ---------- */
@media (max-width: 1440px) {
  :root { --rail-w: 272px; --side-w: 200px; }
  .page { padding: 22px 24px 36px; }
}
@media (max-width: 1280px) {
  .app.with-rail { grid-template-columns: var(--side-w) 1fr; }
  .app.with-rail .rail { position: fixed; right: 0; top: 0; bottom: 0; width: 300px; background: var(--bg); z-index: 50; box-shadow: var(--sh-pop); padding-left: 22px; transform: translateX(100%); transition: transform .25s; }
  .app.rail-open .rail { transform: none; }
  .rail-toggle { display: inline-flex; }
  .top-tools { right: 112px; }
  .app.with-rail .rail { padding-top: 60px; }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  :root { --side-w: 64px; }
  .brand-name, .brand-sub, .nav a span.t, .nav-label, .recent, .me-name, .me-sub, .me .gear, .sign, .search, .nav .cnt { display: none; }
  .nav a { justify-content: center; padding: 0; }
  .brand { justify-content: center; padding-left: 0; padding-right: 0; }
  .score-layout { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .set-layout { grid-template-columns: 1fr; }
  .set-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .dock .seg button { padding: 0 10px; font-size: 12.5px; }
  .tpl-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .small-mult { grid-template-columns: repeat(2, 1fr); }
  .class-title { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  body { overflow: visible; }
}


/* ---------- 任课教师 · 新增 ---------- */
.side { overflow: hidden; }
.recent { min-height: 0; overflow: hidden; flex: 0 1 auto; }
.cdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.cdot-btn { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line2); }
.ctag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--fill); font-size: 12px; color: var(--ink2); white-space: nowrap; }
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(29, 154, 87, .18); animation: live 1.6s ease-in-out infinite; flex: none; }
@keyframes live { 50% { box-shadow: 0 0 0 5px rgba(29, 154, 87, .05); } }

/* 课堂页顶部：班级切换 */
.cls-bar { position: absolute; left: 16px; top: 12px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; max-width: calc(100% - 420px); }
.privacy button { white-space: nowrap; }
.side-demo { margin: 0 2px 10px; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 12px; color: var(--ink2); line-height: 1.5; }
.side-demo b { display: block; color: var(--ink); font-size: 12.5px; margin-bottom: 2px; }
.side-demo .btn { margin-top: 8px; width: 100%; }
@media (max-width: 1080px) { .side-demo { display: none; } }
.cls-seg { background: #fff; box-shadow: 0 0 0 1px var(--line2), 0 2px 8px rgba(0, 0, 0, .03); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.cls-seg::-webkit-scrollbar { display: none; }
.cls-seg button { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 14px; }
.cls-seg button.on .cdot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.cls-status { font-size: 12.5px; color: var(--ink2); background: #fff; border-radius: 999px; padding: 5px 12px; box-shadow: 0 0 0 1px var(--line2); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.cls-status a { font-weight: 500; }
.timer-on { background: var(--red) !important; color: #fff !important; box-shadow: none !important; }
.chip.green .chip-bg { fill: #e6f5ec; stroke: #9fd6b5; } .chip.green .chip-tx { fill: #167a45; }
.subbar b { font-weight: 600; }

/* 右侧栏：今日课程 */
.lsn { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; width: 100%; text-align: left; font-size: 13px; }
.lsn:hover { background: #ededeb; }
.lsn .tm { width: 52px; flex: none; font-family: var(--num); font-size: 11.5px; color: var(--ink3); line-height: 1.35; }
.lsn .tm b { display: block; color: var(--ink); font-size: 12.5px; font-weight: 600; font-family: var(--font); }
.lsn .bar { width: 3px; align-self: stretch; border-radius: 3px; flex: none; }
.lsn .grow { flex: 1; min-width: 0; line-height: 1.35; }
.lsn s { color: var(--ink3); }
.lsn.past { opacity: .5; }
.lsn.now { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.lsn.cur-cls .nm { font-weight: 600; }
.mini-bar { height: 5px; border-radius: 5px; background: var(--fill2); overflow: hidden; flex: 1; }
.mini-bar i { display: block; height: 100%; border-radius: 5px; }

/* 课表 */
.tt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.tt-layout > * { min-width: 0; }
.tt-layout .tbl td:first-child { white-space: normal; overflow-wrap: anywhere; }
.tt-wrap { background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); overflow: auto; }
.tt { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 620px; }
.tt th, .tt td { border-bottom: 1px solid #f0f0ee; border-right: 1px solid #f0f0ee; }
.tt tr > *:last-child { border-right: 0; }
.tt tbody tr:last-child > * { border-bottom: 0; }
.tt thead th { height: 52px; font-weight: 600; font-size: 13px; text-align: center; background: #fff; position: sticky; top: 0; z-index: 1; cursor: pointer; }
.tt thead th:hover { background: var(--fill); }
.tt thead th small { display: block; font-weight: 400; color: var(--ink3); font-size: 11.5px; font-family: var(--num); overflow-wrap: anywhere; padding: 0 4px; }
.tt thead th.today, .tt thead th.today small { color: var(--blue); }
.tt thead th.p-col { width: 96px; cursor: default; }
.tt thead th.p-col:hover { background: #fff; }
.tt tbody th { text-align: left; padding: 8px 12px; font-weight: 600; font-size: 12.5px; background: #fcfcfb; }
.tt tbody th small { display: block; font-weight: 400; font-family: var(--num); color: var(--ink3); font-size: 11px; }
.tt td { height: 62px; padding: 4px; vertical-align: top; cursor: pointer; position: relative; }
.tt td.today { background: #f7faff; }
.tt td.off { background: repeating-linear-gradient(135deg, #fafaf9 0 8px, #f2f2f0 8px 16px); }
.tt td:hover .add-hint { opacity: 1; }
.tt td:hover .slot { filter: brightness(.98); box-shadow: 0 0 0 1px var(--line2); }
.tt .add-hint { opacity: 0; color: var(--ink3); font-size: 18px; display: grid; place-items: center; height: 100%; }
.slot { min-height: 54px; border-radius: 9px; padding: 6px 8px 6px 9px; display: flex; flex-direction: column; justify-content: center; gap: 1px; border-left: 3px solid; font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; }
.slot b { font-weight: 600; }
.slot span { font-size: 11.5px; color: var(--ink2); }
.slot .flag { align-self: flex-start; margin-top: 2px; font-size: 10.5px; min-height: 17px; padding: 0 5px; border-radius: 5px; background: var(--amber-soft); color: #a86c00; display: inline-flex; align-items: center; font-style: normal; }
.slot.muted-slot { background: var(--fill); }
.slot.cancel { background: transparent; border-left-color: #d6d6d3; color: var(--ink3); }
.slot.cancel b { text-decoration: line-through; font-weight: 500; }
.slot.now { box-shadow: 0 0 0 1.5px var(--ink) inset; }
.chg-list { display: flex; flex-direction: column; gap: 2px; }
.chg { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 9px; font-size: 13px; }
.chg:hover { background: var(--fill); }
.chg.past { opacity: .55; }
.chg .d { width: 70px; flex: none; line-height: 1.3; }
.chg .d b { display: block; font-weight: 600; font-size: 12.5px; }
.chg .d span { font-size: 11.5px; color: var(--ink3); }
.chg .grow { flex: 1; min-width: 0; }
.chg .x { color: var(--ink3); opacity: 0; font-size: 16px; padding: 0 4px; }
.chg:hover .x { opacity: 1; }

/* 教学进度 */
.pg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pg-card { background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); padding: 14px 16px; }
.pg-card .h { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.pg-card .big { font-size: 22px; font-weight: 700; font-family: var(--num); margin-top: 6px; letter-spacing: -.3px; }
.pg-tbl td.pc { text-align: center; cursor: pointer; }
.pg-tbl tbody tr:hover td.pc:hover { background: var(--fill); }
.pg-done { display: inline-flex; align-items: center; gap: 4px; color: #167a45; font-family: var(--num); font-size: 12px; background: var(--green-soft); border-radius: 6px; padding: 2px 8px; }
.pg-done svg { display: inline; }
.pg-cur { display: inline-flex; color: #1f63c7; font-size: 12px; border-radius: 6px; padding: 2px 8px; box-shadow: 0 0 0 1px #a9c9f6 inset; background: var(--blue-soft); }
.pg-todo { display: inline-block; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1.5px #d4d4d1 inset; vertical-align: -2px; }

/* 作业 */
.hw-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.hw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 144px), 1fr)); gap: 8px; }
.hw-stu { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 11px; background: #fff; box-shadow: 0 0 0 1px var(--line); text-align: left; font-size: 13px; transition: box-shadow .12s, background .12s; user-select: none; }
.hw-stu:hover { box-shadow: 0 0 0 1px var(--line2), 0 4px 12px rgba(0, 0, 0, .05); }
.hw-stu .ava { border-radius: 50%; flex: none; }
.hw-stu .n { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.hw-stu .n .dupno { height: auto; max-width: 100%; margin-left: 0; white-space: normal; }
.hw-stu .s { flex: none; height: 19px; padding: 0 6px; font-size: 11px; }
.hw-stu.st-ok { background: #f5fbf7; }
.hw-stu.st-good { background: #f3f8ff; }
.hw-stu.st-redo { background: #fffaf0; }
.hw-stu.st-miss { background: #fff5f4; box-shadow: 0 0 0 1px #f2c3bd; }
.hw-sum { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.hw-sum .tag { height: 26px; gap: 4px; padding: 0 10px; font-size: 12.5px; }

/* 分析 */
.insight ul { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.9; color: #333; }
.insight .panel-title svg { display: inline; vertical-align: -2px; }
.heat { font-family: var(--num); text-align: center; }
.flabel svg { display: inline; vertical-align: -2px; }

@media (max-width: 1280px) {
  .tt-layout { grid-template-columns: 1fr; }
  .cls-status { display: none; }
}
@media (max-width: 1080px) {
  .hw-layout { grid-template-columns: 1fr; }
}

/* ---------- 班级管理 / 桌椅排列 ---------- */
.seg-add { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 999px; color: var(--ink2); font-size: 13px; }
.seg-add:hover { background: var(--fill); color: var(--ink); }
.seg-add svg { width: 15px; height: 15px; }
.cls-gear { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line2), 0 2px 8px rgba(0, 0, 0, .03); font-size: 12.5px; color: var(--ink2); white-space: nowrap; }
.cls-gear:hover { color: var(--ink); box-shadow: 0 0 0 1px #cfcfcc, 0 2px 8px rgba(0, 0, 0, .05); }
.cls-gear svg { width: 15px; height: 15px; }
.chip-add { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--ink2); box-shadow: 0 0 0 1px dashed var(--line2); border: 1px dashed #cfcfcc; }
.chip-add:hover { color: var(--ink); border-color: #9a9a97; }
.chip-add svg { width: 14px; height: 14px; }
.cf-lay { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.cf-ctl .field:last-child { margin-bottom: 0; }
.cf-prev { background: var(--fill); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; align-items: center; min-height: 220px; justify-content: center; }
.mini-room { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 100%; overflow: auto; }
.mini-room .podium { font-size: 11px; color: var(--ink3); background: #fff; border-radius: 6px; padding: 2px 18px; box-shadow: 0 0 0 1px var(--line2); }
.mini-room .mini-class { background: transparent; padding: 0; gap: 4px 2px; }
.mini-room .mini-class i { width: 14px; height: 11px; }
.mini-room .mini-class i.on { background: var(--ink); box-shadow: none; }
.cf-warn { margin-top: 8px; font-size: 12px; color: #a86c00; background: var(--amber-soft); border-radius: 8px; padding: 6px 10px; text-align: center; }
.cf-tip { margin-top: 8px; font-size: 12px; color: var(--ink3); text-align: center; }
.stepper { display: inline-flex; align-items: center; height: 38px; border-radius: 10px; background: var(--fill); padding: 3px; }
.stepper button { width: 32px; height: 32px; border-radius: 8px; font-size: 18px; line-height: 1; color: var(--ink2); }
.stepper button:hover:not(:disabled) { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line2); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper b { min-width: 40px; text-align: center; font-size: 15px; }
@media (max-width: 900px) { .cf-lay { grid-template-columns: 1fr; } }

/* ---------- 调座位 / 讲台两边的座位 ---------- */
.stage.seat-mode .seat.has { cursor: grab; }
.stage.seat-mode .seat.side .hit { fill: rgba(242, 167, 27, .07); }
.drag-ghost { position: fixed; z-index: 70; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.drag-ghost .ava { border-radius: 50%; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.drag-ghost span { font-size: 12px; font-weight: 600; background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.side-ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.side-ctl > span { font-size: 13px; color: var(--ink2); }
.side-ctl > span:not(:first-child) { margin-left: 8px; }
.side-row-ctl { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.side-row-ctl .stepper { height: 34px; }
.side-row-ctl .stepper button { width: 28px; height: 28px; }
.podium-row { display: flex; align-items: center; gap: 8px; }
.mini-side { display: inline-flex; gap: 2px; }
.mini-room .mini-class i.sd, .mini-side i { display: block; width: 14px; height: 11px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px #e8b54a; }
.mini-side i.on { background: #e89a0c; box-shadow: none; }

/* =========================================================
   v2.0 班主任班
   ========================================================= */
.scene-svg .board-act { cursor: pointer; }
.scene-svg .board-act:hover .board-hit { fill: rgba(255, 255, 255, .05); }
.scene-svg .duty-board:hover rect:nth-child(2) { stroke: #9fd8cf; }
.hr-btn { height: 32px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink2); background: #fff; box-shadow: 0 0 0 1px var(--line2) inset; white-space: nowrap; flex: none; }
.hr-btn svg { width: 15px; height: 15px; }
.hr-btn:hover { color: var(--ink); box-shadow: 0 0 0 1px #c9c9c6 inset; }
.hr-btn.on { background: #e5483b; color: #fff; box-shadow: none; font-weight: 600; }
.hr-btn.on:hover { background: #d63f33; }
.hr-flag { font-style: normal; display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 5px; background: #e5483b; color: #fff; font-size: 10.5px; font-weight: 700; margin-left: 2px; line-height: 1; }
.duty-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.duty-grid { display: grid; gap: 10px; }
.duty-col { background: var(--fill); border-radius: 14px; padding: 10px; min-height: 200px; display: flex; flex-direction: column; }
.duty-col.today { background: #eaf6f4; box-shadow: 0 0 0 1.5px #9fd8cf inset; }
.duty-h { display: flex; align-items: center; font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
.duty-list { display: flex; flex-direction: column; gap: 6px; }
.duty-chip { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 10px; padding: 4px 6px 4px 5px; font-size: 13px; box-shadow: 0 0 0 1px var(--line) inset; }
.duty-chip.lead { box-shadow: 0 0 0 1.5px #14b0a6 inset; font-weight: 600; }
.duty-chip button { margin-left: auto; color: var(--ink3); width: 20px; height: 20px; border-radius: 6px; }
.duty-chip button:hover { background: var(--fill); color: var(--red); }
.duty-add { display: flex; align-items: center; justify-content: center; gap: 4px; height: 30px; border-radius: 10px; font-size: 12.5px; color: var(--ink3); box-shadow: 0 0 0 1px var(--line2) inset; border: 1px dashed transparent; }
.duty-add:hover { color: var(--ink); background: #fff; }
.duty-add svg { width: 14px; height: 14px; }
.duty-mini { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.duty-mini span { background: var(--fill); border-radius: 999px; padding: 3px 9px; font-size: 12.5px; }
.duty-mini span.lead { background: #e3f5f2; color: #0e7f76; font-weight: 600; }
.cls-bar { flex-wrap: nowrap; }
.cls-bar .cls-seg { flex: 0 1 auto; min-width: 150px; }
.cls-bar .hr-btn, .cls-bar .cls-gear, .cls-bar .cls-status { flex: none; }
.cls-bar.tight .cls-gear { font-size: 0; gap: 0; padding: 0 10px; }
.cls-bar.tight .hr-btn span { display: none; }
.cls-bar.tight .hr-btn { padding: 0 10px; }
.cls-bar.nostatus .cls-status { display: none; }
.hr-form-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.hr-form-head svg { width: 16px; height: 16px; color: #e5483b; }
.hr-form-head .muted { font-weight: 400; font-size: 12px; margin-left: 4px; }
.ex-hr { background: #fdf3f2; border-radius: 14px; padding: 12px 14px; box-shadow: 0 0 0 1px #f6d9d6 inset; }
.ex-hr > label svg { width: 15px; height: 15px; color: #e5483b; display: inline; vertical-align: -3px; }
.grid-tbl th.own-col, .grid-tbl td.own-col { background: #f3f8ff; }
.filterbar .an-view { margin-left: auto; }
.an-view button svg { width: 14px; height: 14px; display: inline; vertical-align: -2px; margin-right: 4px; color: #e5483b; }
.an-view button.on svg { color: inherit; }
/* 班级课表 */
.tt-view { margin-left: 6px; }
.tt-view .hr-flag { margin-right: 6px; vertical-align: 1px; }
.ctt-slot b { color: var(--ink); }
.ctt-slot.mine { box-shadow: 0 0 0 1px #2f7be533 inset; }
.ctt-slot.mine span { color: #2f7be5; }
.ctt-slot.done { opacity: .5; }
.ctt-slot .ok { align-self: flex-start; font-style: normal; font-weight: 700; color: #3b9e4f; font-size: 13px; }
.ctt-bar { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; margin: 10px 0 12px; }
.ctt-bar i { display: block; height: 100%; background: #3b9e4f; border-radius: 3px; }
.ctt-today { display: flex; flex-direction: column; gap: 2px; }
.ctt-today > div { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 13px; }
.ctt-today .pn { width: 30px; color: var(--ink3); font-size: 12px; font-family: var(--num); }
.ctt-today b { font-weight: 600; flex: 1; }
.ctt-today .tm { color: var(--ink3); font-size: 12px; font-family: var(--num); }
.ctt-today em { font-style: normal; font-size: 12px; color: #3b9e4f; width: 44px; text-align: right; }
.ctt-today em.nw { color: #fff; background: var(--ink); border-radius: 5px; padding: 1px 6px; width: auto; }
.ctt-today .past { opacity: .55; }
.ctt-today .now { background: #fff7dc; }
.ctt-today .mine b::after { content: '我'; font-size: 10.5px; font-weight: 600; color: #2f7be5; background: #e8f1fd; border-radius: 4px; padding: 0 4px; margin-left: 6px; vertical-align: 1px; }
.ctt-count { display: flex; flex-wrap: wrap; gap: 6px; }
.ctt-count span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--fill); font-size: 12.5px; }
.ctt-count b { font-family: var(--num); font-weight: 600; }
.ctt-chips button { min-width: 72px; }
.ctt-prev th, .ctt-prev td { text-align: center; font-size: 12.5px; padding: 6px 4px; }
.ctt-prev td .cdot { margin-right: 5px; vertical-align: 0; }
.cf-hr { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--fill); margin: 0 0 16px; cursor: pointer; }
.cf-hr input { margin-top: 3px; }
.cf-hr span { display: flex; flex-direction: column; gap: 3px; }
.cf-hr b { font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px; }
.cf-hr small { color: var(--ink3); font-size: 12px; line-height: 1.6; }
.cf-hr.on { background: #fff1ef; box-shadow: 0 0 0 1px #e5483b33 inset; }
.dev-info { margin-top: 12px; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.dev-info > b { display: block; margin-bottom: 8px; }
.dev-info .info-grid { grid-template-columns: 112px 1fr; font-size: 13px; }
.dev-mail { display: flex; align-items: center; gap: 8px; }
.dev-mail a { color: var(--ink); font-family: var(--num); }
/* 重名同学的区分标记 */
.scene-svg .lbl .dtag { font-size: 10px; fill: #256abf; font-weight: 600; font-family: var(--num); }
small.dupno { display: inline-block; margin-left: 4px; padding: 0 5px; height: 16px; line-height: 16px; border-radius: 5px; background: #e8f1fd; color: #256abf; font-size: 10.5px; font-weight: 600; font-family: var(--num); vertical-align: 1px; white-space: nowrap; }
.dup-hint { display: flex; gap: 8px; align-items: flex-start; margin: -4px 0 14px; padding: 9px 12px; border-radius: 10px; background: #eef5fe; color: #2a4f80; font-size: 12.5px; line-height: 1.6; }
.dup-hint svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.dup-hint b { font-weight: 600; }
/* 课堂点评 · 多选加减分 */
.pb-bar { flex-wrap: wrap; row-gap: 6px; }
.pb-n { font-size: 13px; color: var(--ink2); white-space: nowrap; }
.pb-n b { font-family: var(--num); font-weight: 700; color: var(--blue); font-size: 14px; }
.pb-chips { gap: 4px; flex-wrap: nowrap; }
.pb-chips button { height: 28px; padding: 0 10px; font-size: 12.5px; }
.pb-row { width: auto; height: 28px; font-size: 12.5px; padding: 0 26px 0 10px; background-color: #fff; box-shadow: 0 0 0 1px var(--line2) inset; }
.pb-undo { color: var(--ink2); }
.pb-undo svg { width: 13px; height: 13px; }
.pb-who { display: flex; flex-wrap: wrap; gap: 4px 10px; max-height: 92px; overflow: auto; margin: 2px 0 10px; font-size: 12.5px; }
.pb-who > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.search-pop button > svg { flex: none; }
.search-pop button { flex-wrap: wrap; }
.search-pop button > span { min-width: 0; overflow-wrap: anywhere; }
.dock { width: max-content; max-width: calc(100% - 32px); }
.dock > * { flex-shrink: 0; }
.dock .subbar { max-width: 100%; max-height: 34dvh; overflow-y: auto; overscroll-behavior: contain; }
.board-text-list { margin: 0; padding-left: 1.45em; overflow-wrap: anywhere; white-space: pre-wrap; }
.board-text-list li { margin-bottom: 0.55em; }
/* 成绩分析：两块 + 考试条 */
.an-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 14px; }
.an-scope button { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: #fff; box-shadow: var(--sh-card), 0 0 0 1px var(--line); text-align: left; cursor: pointer; transition: box-shadow .15s, background .15s; }
.an-scope button:hover { box-shadow: var(--sh-card), 0 0 0 1px var(--line2); }
.an-scope button.on { background: var(--ink); color: #fff; box-shadow: none; }
.an-scope button span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.an-scope b { font-size: 15px; font-weight: 700; }
.an-scope small { font-size: 12px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-scope button.on small { color: #ffffffb3; }
.an-scope .hr-flag { width: 28px; height: 28px; font-size: 14px; border-radius: 8px; flex: none; }
.sub-flag { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: #e8f1fd; color: #256abf; font-style: normal; font-weight: 700; font-size: 14px; flex: none; }
.an-scope button.on .sub-flag { background: #ffffff26; color: #fff; }
.an-cls { margin-bottom: 12px; }
.an-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 0 8px; scrollbar-width: thin; }
.an-card { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 128px; max-width: 200px; padding: 9px 13px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); text-align: left; cursor: pointer; }
.an-card b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: inline-flex; align-items: center; gap: 5px; }
.an-card b svg { width: 14px; height: 14px; }
.an-card span { font-size: 12px; color: var(--ink3); font-family: var(--num); white-space: nowrap; }
.an-card em { font-style: normal; font-weight: 700; }
.an-card:hover { box-shadow: 0 0 0 1px var(--line2); }
.an-card.on { background: var(--ink); color: #fff; box-shadow: none; }
.an-card.on span { color: #ffffffb3; }
.an-card.on em.up { color: #8fe0b0; } .an-card.on em.dn { color: #ffb4ab; }
.an-card.nodata { background: transparent; box-shadow: 0 0 0 1px var(--line) inset; border: 1px dashed var(--line2); }
.an-card.nodata b { color: var(--ink3); }
.an-card.ov { min-width: 150px; }
.an-note { font-size: 13px; color: var(--ink2); margin: 2px 0 12px; }
.an-sub { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; flex-wrap: wrap; }
.an-sub b { font-size: 17px; font-weight: 700; margin-right: 10px; }
.an-sub .muted { font-size: 13px; }
.an-cmp { width: auto; height: 34px; background-color: #fff; box-shadow: 0 0 0 1px var(--line2) inset; }
.an-ov th small.me { display: inline; margin-left: 4px; font-size: 10.5px; color: #256abf; background: #e8f1fd; border-radius: 4px; padding: 1px 4px; font-weight: 600; }
.an-mat { margin: 10px 0 2px; flex-wrap: wrap; }
.an-mat button { height: 26px; padding: 0 10px; font-size: 12.5px; }
.book-wrap { max-height: 520px; overflow: auto; }
.book td.heat, .book th { white-space: nowrap; }
.book small.rk { font-size: 10.5px; color: var(--ink3); margin-left: 4px; font-family: var(--num); }
.book .sticky { position: sticky; left: 0; background: #fff; z-index: 1; }
.book thead .sticky { z-index: 2; }
.book thead th { position: sticky; top: 0; background: #fff; z-index: 1; }
.an-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
@media (max-width: 1400px) { .an-grid { grid-template-columns: 1fr; } }
.an-card.nodata.on { background: var(--fill); color: var(--ink); border-style: solid; border-color: var(--ink3); }
.an-card.nodata.on b { color: var(--ink); }
.an-card.nodata.on span { color: var(--ink3); }
/* 升级提示 */
.upgrade-tip { display: flex; gap: 14px; padding: 16px 18px; margin-bottom: 16px; border-radius: 16px; background: #fff8e6; box-shadow: 0 0 0 1px #f2d38a inset; }
.upgrade-tip .ut-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #f2a71b; color: #fff; display: flex; align-items: center; justify-content: center; }
.upgrade-tip .ut-ico svg { width: 18px; height: 18px; }
.upgrade-tip .ut-body { font-size: 13px; line-height: 1.75; color: var(--ink2); min-width: 0; }
.upgrade-tip .ut-body > b { font-size: 14.5px; color: var(--ink); }
.upgrade-tip ol { margin: 6px 0 6px; padding-left: 20px; }
.upgrade-tip ol b { color: var(--ink); }
.upgrade-tip small { display: block; font-size: 12px; color: var(--ink3); }
.upgrade-tip .ut-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; }
.w-restore { margin-top: 14px; font-size: 12.5px; color: var(--ink3); }
.w-restore label { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; margin: 0 2px; }
.w-restore svg { width: 13px; height: 13px; }
/* 「教师班主任工作台」8 个字：一行放下，窄侧栏时稍微收一点 */
.brand-name { white-space: nowrap; }
@media (max-width: 1440px) { .brand { padding-left: 4px; padding-right: 0; gap: 8px; } .brand-name { font-size: 15px; letter-spacing: 0; } }
