:root {
  --bg: #eef2f8;
  --panel: #ffffff;
  --line: #dfe6f0;
  --text: #1d2939;
  --muted: #6b7a90;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --green: #12a150;
  --yellow: #e9a400;
  --red: #e5484d;
  --gray: #9aa4b2;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(31, 45, 61, 0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
[v-cloak] { display: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
a { color: var(--primary); text-decoration: none; }

.app { height: 100vh; display: flex; flex-direction: column; }
.muted { color: var(--muted); font-size: 12px; }
.empty { color: var(--muted); text-align: center; padding: 18px; font-size: 13px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.good-text { color: var(--green); font-weight: 600; }
.bad-text { color: var(--red); font-weight: 600; }

/* ------------------------------------------------ 顶部栏 */
.topbar {
  height: 64px; flex: 0 0 64px; display: flex; align-items: center; gap: 16px;
  padding: 0 18px; background: linear-gradient(120deg, #17376e, #2259ad 55%, #2d6fc4);
  color: #fff; box-shadow: 0 2px 10px rgba(18, 48, 96, 0.28); z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 240px; }
.logo {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; letter-spacing: 1px;
}
.brand-text h1 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: 0.5px; }
.brand-text p { margin: 2px 0 0; font-size: 11px; opacity: 0.72; }
.mode-switch {
  display: flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2); margin-left: auto;
}
.mode-switch button {
  border: 0; background: transparent; color: rgba(255,255,255,0.82); font-size: 13px;
  padding: 7px 13px; border-radius: 999px; transition: 0.18s; white-space: nowrap;
}
.mode-switch button .mi { margin-right: 4px; }
.mode-switch button.active { background: #fff; color: #1f4d99; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.top-actions { display: flex; align-items: center; gap: 7px; }
.today-pill { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.12); }
.ghost {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.26); color: #fff;
  padding: 6px 10px; border-radius: 8px; font-size: 12px;
}
.ghost:hover { background: rgba(255,255,255,0.2); }
.ghost.on { background: #fff; color: #21519e; }

/* 用户区 / 班级切换 */
.user-area { display: flex; align-items: center; gap: 6px; }
.user-pill {
  font-size: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.14);
  max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.guest-pill {
  font-size: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.12); white-space: nowrap;
}
.login-btn {
  background: #fff; color: #1f4d99; border: 0; padding: 6px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.login-btn:hover { background: #eaf1ff; }
.class-select {
  max-width: 150px; background: rgba(255,255,255,0.14); color: #fff;
  border: 1px solid rgba(255,255,255,0.28); border-radius: 8px; font-size: 12px; padding: 5px 6px;
}
.class-select option { color: #1f2a3d; background: #fff; }
.class-modal { width: 420px; max-width: 92vw; }
.class-modal-tip { margin: 10px 0 0; font-size: 12px; }
.class-modal-error { margin: 8px 0 0; color: #e5533d; font-size: 12px; }

/* ------------------------------------------------ 三栏布局 */
.layout {
  flex: 1; min-height: 0; display: grid; grid-template-columns: 20% 50% 30%;
  position: relative; overflow: hidden;
}
.nav-collapsed .layout { grid-template-columns: 62px 1fr 30%; }

/* 左栏导航 */
.nav {
  border-right: 1px solid var(--line); background: #fbfcfe; display: flex; flex-direction: column;
  min-height: 0; overflow: hidden;
}
.nav-head {
  height: 44px; flex: 0 0 44px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: #344054;
}
.nav-head button { border: 0; background: #eaf0fa; color: #445; width: 26px; height: 26px; border-radius: 6px; }
.nav-body { flex: 1; overflow-y: auto; padding: 6px 0 14px; }
.nav-module { border-bottom: 1px dashed #e8edf5; }
.nav-title {
  width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 8px;
  padding: 11px 12px; font-size: 13.5px; color: #1d2939; font-weight: 600; text-align: left;
}
.nav-title:hover { background: #f0f5ff; }
.nav-ico { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  background: #e8f0ff; color: #2563eb; border-radius: 6px; font-size: 12px; flex: 0 0 22px; }
.nav-name { flex: 1; }
.caret { color: #98a2b3; font-size: 11px; }
.nav-children { padding: 0 0 8px; }
.nav-children button {
  display: block; width: 100%; border: 0; background: transparent; text-align: left;
  padding: 7px 14px 7px 42px; font-size: 12.5px; color: #52627a; border-left: 3px solid transparent;
}
.nav-children button:hover { background: #f4f8ff; color: #2563eb; }
.nav-children button.active { background: #eaf1ff; color: #1d4ed8; font-weight: 600; border-left-color: #2563eb; }
.nav-foot { padding: 10px 14px; font-size: 11px; color: #8a94a6; border-top: 1px solid var(--line); }
.nav-foot .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #12a150; margin-right: 5px; }
.nav-collapsed .nav-title { justify-content: center; padding: 10px 4px; }
.nav-collapsed .nav-children { display: none; }

/* 中栏教室 */
.stage {
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  padding: 12px 14px 8px; background: #f4f7fc;
}
.blackboard {
  flex: 0 0 auto; min-height: 84px; border-radius: 10px; padding: 10px 50px 10px 18px; position: relative;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.06), transparent 40%),
    linear-gradient(135deg, #2f4b3b, #244034 60%, #1f372c);
  border: 6px solid #8a6742; box-shadow: inset 0 0 22px rgba(0,0,0,0.45), 0 6px 14px rgba(30,40,60,0.18);
  color: #f2f7ef; cursor: pointer; overflow: hidden;
  transition: box-shadow 0.2s;
}
.blackboard:hover { box-shadow: inset 0 0 22px rgba(0,0,0,0.45), 0 0 0 3px rgba(45,111,196,0.35); }
.blackboard.selected { box-shadow: inset 0 0 22px rgba(0,0,0,0.45), 0 0 0 3px #2d6fc4; }
.bb-inner { max-width: 82%; }
.bb-slogan { font-size: 17px; font-weight: 600; letter-spacing: 1.5px; margin-bottom: 4px; font-family: "KaiTi", "Microsoft YaHei", serif; }
.bb-notice { font-size: 11.5px; line-height: 1.5; opacity: 0.86; white-space: pre-line; max-height: 38px; overflow: hidden; }
.bb-tag {
  position: absolute; right: 10px; bottom: 8px; font-size: 10px; opacity: 0.6;
  border: 1px dashed rgba(255,255,255,0.4); padding: 2px 6px; border-radius: 4px;
}
.podium {
  flex: 0 0 auto; margin: 10px 8% 0; padding: 7px 12px; border-radius: 9px; cursor: pointer;
  background: linear-gradient(180deg, #fff, #f3ead9); border: 1px solid #ddc9a4;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  box-shadow: 0 3px 8px rgba(120, 95, 45, 0.12);
}
.podium:hover { border-color: #c9a55e; }
.podium.selected { box-shadow: 0 0 0 3px rgba(37,99,235,0.35); }
.podium-main { display: flex; align-items: center; gap: 7px; color: #6d5726; font-weight: 600; font-size: 13px; letter-spacing: 2px; }
.podium-icon { font-size: 17px; }
.podium-sub { font-size: 11px; color: #856b3b; }
.stage-head { display: flex; align-items: center; gap: 10px; margin: 12px 2px 8px; flex-wrap: wrap; }
.stage-title { display: flex; align-items: baseline; gap: 8px; }
.stage-title h2 { margin: 0; font-size: 15px; }
.stage-title .muted { font-size: 11px; }
.legend { display: flex; gap: 9px; margin-left: 4px; flex-wrap: wrap; font-size: 10.5px; color: #52627a; }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.lg { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.lg-green { background: var(--green); } .lg-blue { background: #2f7fe0; }
.lg-yellow { background: var(--yellow); } .lg-red { background: var(--red); } .lg-gray { background: var(--gray); }
.seat-tools { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.seat-tools button {
  border: 1px solid #d4dded; background: #fff; color: #33415c; font-size: 11.5px;
  padding: 5px 9px; border-radius: 7px;
}
.seat-tools button:hover { border-color: #9db7e8; color: #2563eb; }

.seat-scroll { flex: 1; min-height: 0; overflow: auto; padding: 2px 2px 8px; background:
  linear-gradient(180deg, transparent 0, rgba(180,150,100,0.05) 40%, rgba(120,90,60,0.08) 100%);
  border-radius: 10px;
}
.seat-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(56px, 1fr); gap: 6px; min-width: 0;
  padding: 6px;
}
.stage .seat-grid { height: 100%; grid-auto-rows: minmax(0, 1fr); }
.seat-grid.big { margin-bottom: 14px; }

/* ---------------- 走道列 ---------------- */
.aisle {
  position: relative;
  background:
    repeating-linear-gradient(90deg, #f6f2e8 0 4px, #efe9d7 4px 12px);
  border-radius: 4px;
  border: 1px dashed #c9bd9b;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; user-select: none;
}
.aisle span {
  writing-mode: vertical-rl;
  font-size: 11px; letter-spacing: 3px;
  color: #9c8c68;
  background: rgba(255,255,255,0.75); padding: 6px 2px; border-radius: 3px;
  border: 1px dashed #d4c8a0;
}

/* ---------------- 座位 ---------------- */
.seat {
  position: relative; border-radius: 4px;
  border: 1px solid transparent;
  padding: 0; min-width: 0; cursor: pointer;
  display: flex; align-items: flex-end; justify-content: center;
  transition: transform 0.12s ease, filter 0.12s; overflow: visible; user-select: none;
  background: transparent;
}
.seat:hover { transform: translateY(-2px) scale(1.04); z-index: 2; filter: drop-shadow(0 6px 10px rgba(30, 60, 110, 0.16)); }
.seat.sel { z-index: 3; transform: translateY(-3px) scale(1.05); filter: drop-shadow(0 8px 16px rgba(37,99,235,0.45)); }
.seat.assign-ready .desk-top::after {
  box-shadow: 0 0 0 3px #12a150, 0 0 14px 3px rgba(18,161,80,0.45) !important;
}
.seat.assign-ready { animation: assignPulse 1.2s ease-in-out infinite; }
@keyframes assignPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(18,161,80,0)); }
  50% { filter: drop-shadow(0 0 8px rgba(18,161,80,0.55)); }
}

/* 状态色：边框/桌面高光 */
.s-green { --sc: #12a150; --sc-glow: rgba(18,161,80,0.22); }
.s-blue { --sc: #2f7fe0; --sc-glow: rgba(47,127,224,0.22); }
.s-yellow { --sc: #e9a400; --sc-glow: rgba(233,164,0,0.25); }
.s-red { --sc: #e5484d; --sc-glow: rgba(229,72,77,0.25); }
.s-gray { --sc: #b3bcc8; --sc-glow: rgba(140,150,165,0.15); }

.seat.s-green .desk-top::after,
.seat.s-blue .desk-top::after,
.seat.s-yellow .desk-top::after,
.seat.s-red .desk-top::after {
  box-shadow: 0 0 0 2px var(--sc), 0 0 10px 2px var(--sc-glow);
}
.seat.s-gray .desk-top::after { border: 2px dashed #c5cdda; box-shadow: 0 0 0 2px #dde3ec; }
.seat.sel .desk-top::after { box-shadow: 0 0 0 3px #1d4ed8, 0 0 14px 3px rgba(29,78,216,0.5) !important; }

/* seat-visual 容器 */
.seat-visual {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 0; min-height: 0;
}

/* 椅背/椅腿：背景色块 */
.seat-visual .chair {
  position: absolute; left: 10%; right: 10%; top: 8%;
  height: 18%; border-radius: 3px;
  background: #b6c3d4; border: 1px solid #97a7bb;
  opacity: 0.55; z-index: 1;
}

/* 卡通小人 */
.seat-visual .person-wrap {
  position: absolute; left: 0; right: 0; top: 2%;
  display: flex; align-items: center; justify-content: center;
  z-index: 3; pointer-events: none;
}
.seat-visual .person {
  width: 58%; height: auto;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.18));
}
.seat-visual .status-badge {
  position: absolute; top: -1px; left: 54%;
  width: 16px; height: 16px; border-radius: 50%;
  font-size: 9px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.8);
}
.seat-visual .status-badge.badge-green { background: #12a150; }
.seat-visual .status-badge.badge-red { background: #e5484d; }
.seat-visual .status-badge.badge-yellow { background: #e9a400; color: #4b3400; }

/* 姓名 tag：小人后背，完整显示不截断 */
.seat-visual .name-tag {
  position: absolute; bottom: 56%;
  left: 4%; right: 4%;
  text-align: center;
  font-size: 11px; font-weight: 700;
  color: #1d2939;
  background: rgba(255,255,255,0.92);
  border-radius: 3px;
  padding: 1px 2px;
  line-height: 1.1;
  border: 1px solid rgba(0,0,0,0.1);
  z-index: 4;
  white-space: nowrap;
  overflow: visible; text-overflow: clip;
}
.seat-visual .name-tag.len2 { font-size: 11.5px; }
.seat-visual .name-tag.len3 { font-size: 11px; }
.seat-visual .name-tag.len4 { font-size: 10px; letter-spacing: -0.2px; }
.seat-visual .name-tag.len5 { font-size: 9.5px; letter-spacing: -0.3px; }

/* 课桌 */
.seat-visual .desk {
  position: absolute; left: 10%; right: 10%; bottom: 4%;
  height: 58%;
  z-index: 2;
  pointer-events: none;
}
.seat-visual .desk-top {
  position: absolute; left: 0; right: 0; top: 0;
  height: 72%;
  border-radius: 4px 4px 1px 1px;
  background:
    linear-gradient(180deg, #caa573 0%, #b98f57 60%, #a77a3f 100%);
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.35), inset 0 -2px 4px rgba(0,0,0,0.25);
  overflow: hidden;
}
.seat-visual .desk-top::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(0,0,0,0.06) 14px 15px);
  pointer-events: none;
}
.seat-visual .desk-top::after {
  content: ""; position: absolute; inset: 1px; border-radius: 3px 3px 1px 1px;
  background: transparent; box-shadow: 0 0 0 2px #8f6a36;
  pointer-events: none;
  transition: box-shadow 0.15s;
}
.seat-visual .desk-front {
  position: absolute; left: 0; right: 0; bottom: 10%;
  height: 10%;
  background: #7e5b30; border-radius: 1px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}
.seat-visual .desk-leg {
  position: absolute; bottom: 0; width: 4px; height: 12%;
  background: #5e4422; border-radius: 1px;
}
.seat-visual .desk-leg-l { left: 2px; }
.seat-visual .desk-leg-r { right: 2px; }
.seat-visual .desk-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #98a2b3; font-weight: 600; letter-spacing: 2px;
  background: repeating-linear-gradient(45deg, #f8f9fb 0 8px, #eef0f4 8px 16px);
  border-radius: 4px 4px 1px 1px; z-index: 1;
}

/* 标记徽章 */
.seat-marks { position: absolute; bottom: -2px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; flex-wrap: wrap; z-index: 5; }
.seat .seat-marks .mark { font-size: 8px; padding: 0 3px; border-radius: 3px; background: rgba(255,255,255,0.9); color: #64748b; border: 1px solid #dde3ec; }

.mark { font-size: 8.5px; padding: 0 3px; border-radius: 3px; background: #eef2f8; color: #64748b; }
.mark-good { background: #e3f7ec; color: #0c8a46; }
.mark-bad { background: #fdeaea; color: #c22a30; }
.mark-warn { background: #fdf3dc; color: #a06b00; }

/* 未入座学生清单 */
.unseated-bar {
  flex: 0 0 auto; border-top: 1px dashed #dbe3ef; padding: 5px 4px 3px;
  background: #fff;
}
.ub-head { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.ub-head b { font-size: 11px; white-space: nowrap; color: #1d2939; }
.ub-count { color: #12a150; }
.ub-count.warn { color: #c22a30; }
.ub-head .btn { margin-left: auto; padding: 4px 9px; font-size: 11px; }
.ub-list { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 2px; }
.ub-chip {
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
  border: 1px solid #e0bfcb; background: #fff7fa; color: #8f3a5c;
  font-size: 11px; padding: 4px 9px; border-radius: 999px; cursor: grab;
  flex: 0 0 auto;
}
.ub-chip i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.ub-chip:hover { border-color: #d7809c; }
.ub-chip.on { background: #fde8f0; border-color: #cf5b83; box-shadow: 0 0 0 2px rgba(207,91,131,0.22); }
.ub-chip:active { cursor: grabbing; }

/* 空座指派学生 */
.assign-list { display: flex; flex-direction: column; gap: 4px; max-height: 235px; overflow: auto; margin: 6px 0; }
.assign-item {
  display: flex; align-items: center; gap: 6px; text-align: left;
  padding: 6px 8px; border: 1px solid #dbe3ef; border-radius: 8px;
  background: #fff; font-size: 12px; color: #1d2939; cursor: pointer;
}
.assign-item:hover { border-color: #9db7e8; background: #f7faff; }
.assign-item i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.assign-item span { font-weight: 600; }
.assign-item small { color: #7a879b; font-size: 10px; }
.assign-item em { margin-left: auto; font-style: normal; color: #2563eb; font-size: 11px; font-weight: 600; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.stage-foot { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: #8a94a6; padding: 3px 4px 0; }

/* 右栏详情 */
.detail { border-left: 1px solid var(--line); background: var(--panel); min-height: 0; display: flex; flex-direction: column; }
.detail-inner { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.detail-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.detail-head h3 { margin: 0; font-size: 15px; }
.detail-head p { margin: 3px 0 0; font-size: 11px; }
.icon-btn { border: 1px solid #d8e0ec; background: #fff; border-radius: 7px; width: 28px; height: 28px; color: #52627a; }
.panel-scroll { flex: 1; overflow-y: auto; padding: 12px 14px 20px; }
.skeleton { padding: 30px; color: var(--muted); text-align: center; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 12px; }
.kpi { background: #f6f9fe; border: 1px solid #e3ebf6; border-radius: 9px; padding: 8px 9px; }
.kpi b { display: block; font-size: 18px; line-height: 1.2; color: #1d4ed8; }
.kpi span { font-size: 10.5px; color: #7b8798; }
.kpi.warn b { color: var(--yellow); } .kpi.danger b { color: var(--red); } .kpi.good b { color: var(--green); }

.block { border: 1px solid #e7edf6; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.block-head h4 { margin: 0; font-size: 12.5px; color: #344054; }
.block-head h4::before { content: ""; display: inline-block; width: 3px; height: 11px; background: #3b82f6; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.mini-chart { height: 118px; width: 100%; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rank-list { display: flex; flex-direction: column; gap: 4px; }
.rank-row { display: flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 4px 3px; border-radius: 5px; cursor: pointer; }
.rank-row:hover { background: #f5f8ff; }
.rank-no { width: 17px; height: 17px; border-radius: 50%; background: #eef2f8; color: #7a879b; font-size: 10px; display: flex; align-items: center; justify-content: center; flex: 0 0 17px; }
.rank-no.top { background: #fdecc8; color: #946200; font-weight: 700; }
.rank-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-sub { color: #98a2b3; font-size: 10px; }
.rank-pts { font-weight: 600; color: #2563eb; }
.improve-list { display: flex; flex-direction: column; gap: 5px; }
.improve-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; padding: 5px 6px; background: #fff7f7; border-radius: 6px; cursor: pointer; }
.improve-row b { color: #c22a30; font-size: 11px; }
.todo-list { display: flex; flex-direction: column; gap: 6px; }
.todo-row { display: flex; align-items: center; gap: 7px; font-size: 11.5px; padding: 6px; border-radius: 6px; background: #f8fafd; }
.todo-row.done { opacity: 0.62; }
.todo-check { width: 16px; height: 16px; border-radius: 50%; background: #fdeaea; color: #c22a30; font-size: 10px; display: flex; align-items: center; justify-content: center; flex: 0 0 16px; }
.todo-row.done .todo-check { background: #e3f7ec; color: #0c8a46; }
.todo-title { font-weight: 600; white-space: nowrap; }
.todo-desc { flex: 1; color: #7a879b; font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-btn { border: 1px solid #d8e2f0; background: #fff; color: #3b5680; font-size: 10.5px; padding: 3px 7px; border-radius: 5px; }
.mini-btn:hover { border-color: #9db7e8; color: #2563eb; }
.mini-btn.danger { color: #c22a30; border-color: #f0cdd0; }
.mini-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.stu-hero { display: flex; align-items: center; gap: 10px; padding: 4px 2px 10px; }
.stu-avatar { width: 42px; height: 42px; border-radius: 50%; color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: 13px; flex: 0 0 42px; }
.stu-avatar.big { width: 56px; height: 56px; font-size: 16px; }
.stu-id { flex: 1; min-width: 0; }
.stu-id h3 { margin: 0; font-size: 16px; }
.stu-id p { margin: 2px 0 0; font-size: 11px; color: var(--muted); }
.stu-points { text-align: right; }
.stu-points b { display: block; font-size: 20px; color: #2563eb; }
.stu-points span { font-size: 10px; color: var(--muted); }
.quick-marks { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 10px; }
.qm { border: 1px solid transparent; border-radius: 6px; font-size: 11px; padding: 5px 8px; }
.qm-good { background: #e3f7ec; color: #0c8a46; border-color: #b8e6cc; }
.qm-bad { background: #fdeaea; color: #c22a30; border-color: #f4c4c6; }
.qm-warn { background: #fdf3dc; color: #a06b00; border-color: #f0dca6; }
.qm-blue { background: #e8f1ff; color: #1d4ed8; border-color: #c3d9f8; }
.quick-marks.big .qm { font-size: 14px; padding: 9px 12px; border-radius: 9px; }
/* 近期学习状态（档案三段：课堂表现 / 考试成绩 / 作业） */
.recent-state { display: flex; flex-direction: column; gap: 8px; }
.rs-sec { border-top: 1px dashed #eef2f8; padding-top: 6px; }
.rs-sec:first-child { border-top: 0; padding-top: 0; }
.rs-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10.5px; color: #8a94a6; margin-bottom: 4px; }
.rs-head b { font-size: 11.5px; color: #344054; font-weight: 700; }
.rs-list { display: flex; flex-direction: column; gap: 2px; }
.rs-row { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #52627a; padding: 2px 0; }
.rs-date { flex: 0 0 auto; font-size: 10px; color: #98a2b3; }
.rs-name { flex: 1 1 auto; min-width: 0; color: #344054; }
.rs-name small { color: #98a2b3; font-size: 10px; }
.rs-row em { flex: 0 0 auto; font-style: normal; font-weight: 700; font-size: 11px; }
.rs-good { color: #0c8a46; }
.rs-bad { color: #c22a30; }
.rs-tag { flex: 0 0 auto; font-size: 9.5px; padding: 1px 6px; border-radius: 4px; background: #eef2f8; color: #52627a; }
.rs-quality { flex: 0 0 auto; font-size: 10px; color: #7c5ce0; font-weight: 700; }
.rs-empty { font-size: 11px; color: #98a2b3; padding: 2px 0; }
.rs-exam { background: #f9fbfe; border-radius: 6px; padding: 5px 7px; }
.rs-exam + .rs-exam { margin-top: 3px; }
.rs-exam-top { display: flex; align-items: baseline; gap: 6px; font-size: 11px; }
.rs-exam-top b { color: #1d2939; }
.rs-subj { color: #52627a; }
.rs-exam-top .rs-date { margin-left: auto; }
.rs-exam-val { display: flex; align-items: baseline; gap: 5px; font-size: 11px; color: #52627a; margin-top: 2px; }
.rs-exam-val > b { font-size: 15px; color: #1d4ed8; }
.rs-rank { color: #8a94a6; font-size: 10px; }
.rs-trend { font-weight: 700; font-size: 11px; }
.rs-flat { color: #98a2b3; font-weight: 400; }
.rs-absent { font-size: 10px; color: #c22a30; background: #fdeaea; border-radius: 4px; padding: 1px 7px; }
/* 投影模式：字号放大，保证远距离可读 */
.recent-state.big .rs-head { font-size: 13.5px; }
.recent-state.big .rs-head b { font-size: 15.5px; }
.recent-state.big .rs-row { font-size: 15px; gap: 8px; padding: 3px 0; }
.recent-state.big .rs-date { font-size: 12.5px; }
.recent-state.big .rs-name small { font-size: 12.5px; }
.recent-state.big .rs-row em { font-size: 15px; }
.recent-state.big .rs-empty { font-size: 14px; }
.recent-state.big .rs-exam { padding: 8px 10px; }
.recent-state.big .rs-exam-top { font-size: 15px; }
.recent-state.big .rs-exam-val { font-size: 14px; }
.recent-state.big .rs-exam-val > b { font-size: 21px; }
.recent-state.big .rs-rank { font-size: 12.5px; }
.recent-state.big .rs-tag { font-size: 12px; }
.recent-state.big .rs-quality { font-size: 13px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; font-size: 11.5px; }
.info-grid label { display: block; color: #8a94a6; font-size: 10px; margin-bottom: 1px; }
.info-grid span { color: #344054; }
.chip-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.chip { background: #f2f5fa; border: 1px solid #e2e9f3; border-radius: 999px; font-size: 10.5px; padding: 2px 8px; }
.chip i { font-style: normal; color: #0c8a46; font-size: 9px; margin-left: 2px; }
.chip-good { background: #eafaf1; border-color: #c6ecd7; color: #0c7a40; }
.chip-bad { background: #fdf0f0; border-color: #f2d3d4; color: #b3272c; }
.tag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 4px; background: #eef2f8; color: #52627a; white-space: nowrap; }
.tag-出勤 { background: #e8f1ff; color: #1d4ed8; }
.tag-迟到 { background: #fdf3dc; color: #a06b00; }
.tag-请假 { background: #f2f0ff; color: #6b4fd8; }
.tag-缺勤 { background: #fdeaea; color: #c22a30; }
.tag-早退 { background: #fdf3dc; color: #a06b00; }
.tag-已完成, .tag-优秀, .tag-补交 { background: #e3f7ec; color: #0c8a46; }
.tag-未完成, .tag-漏做 { background: #fdeaea; color: #c22a30; }
.record-list { display: flex; flex-direction: column; gap: 3px; }
.record-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #52627a; padding: 3px 0; border-bottom: 1px dashed #f0f3f8; }
.record-row:last-child { border-bottom: 0; }
.record-row.wrap { flex-wrap: wrap; }
.record-row > span { flex: 1; min-width: 0; }
.record-row > span:first-child { flex: 0 0 auto; color: #8a94a6; font-size: 10px; }
.record-row > span:last-child { flex: 0 0 auto; }
.score-trend { display: flex; flex-direction: column; gap: 6px; }
.score-row { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.score-name { width: 42px; color: #52627a; }
.bar { flex: 1; height: 6px; background: #eef2f8; border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #60a5fa, #2563eb); border-radius: 4px; }
.score-val { width: 40px; text-align: right; color: #1d2939; }
.score-rank { width: 58px; text-align: right; color: #8a94a6; font-size: 10px; }
.subject-scores { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.subj-chip { background: #f4f8ff; border: 1px solid #dbe7fb; border-radius: 5px; font-size: 10.5px; padding: 2px 6px; color: #1d4ed8; }
.comment-box { background: #f7fbff; border: 1px solid #d9e8fb; }
.comment-box p { margin: 0; font-size: 11.5px; line-height: 1.7; color: #364152; }
.detail-actions { display: flex; gap: 7px; margin-top: 4px; flex-wrap: wrap; }
.btn { border: 1px solid #d5deeb; background: #fff; color: #344054; font-size: 12px; padding: 7px 11px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.btn:hover { border-color: #9db7e8; }
.btn.primary { background: linear-gradient(180deg, #3b82f6, #2563eb); border-color: #2563eb; color: #fff; }
.btn.primary:hover { background: #1d4ed8; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 讲台 / 黑板面板 */
.podium-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: linear-gradient(120deg, #f7f9ff, #eef4ff); border: 1px solid #dfe9fa; margin-bottom: 10px; }
.podium-card h3 { margin: 0; font-size: 14px; }
.current-lesson { text-align: right; }
.current-lesson span { display: block; font-size: 10px; color: #8a94a6; }
.current-lesson b { display: block; font-size: 17px; color: #1d4ed8; }
.current-lesson small { color: #6b7a90; font-size: 10px; }
.lesson-list { display: flex; flex-direction: column; gap: 4px; }
.lesson-row { display: flex; align-items: center; gap: 8px; padding: 5px 7px; border-radius: 6px; font-size: 11.5px; background: #f9fbfe; }
.lesson-row.current { background: #eaf1ff; box-shadow: inset 3px 0 0 #2563eb; }
.period { width: 46px; color: #8a94a6; font-size: 10px; }
.lesson-row .subject { flex: 1; font-weight: 600; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stat-row div { text-align: center; background: #f8fafd; border-radius: 8px; padding: 7px 2px; }
.stat-row b { display: block; font-size: 17px; color: #1d4ed8; }
.stat-row span { font-size: 10px; color: #7a879b; }
.creed-editor label { display: block; font-size: 10.5px; color: #7a879b; margin: 7px 0 2px; }
.creed-editor input, .creed-editor textarea { width: 100%; border: 1px solid #dbe4f0; border-radius: 6px; padding: 6px 8px; font-size: 11.5px; background: #fff; }
.creed-editor input:disabled, .creed-editor textarea:disabled { background: #f8fafc; color: #344054; border-color: #edf1f7; }
.notice-list { display: flex; flex-direction: column; gap: 7px; }
.notice-row { display: flex; gap: 7px; align-items: flex-start; }
.notice-row > div { flex: 1; min-width: 0; }
.notice-row b { font-size: 11.5px; }
.notice-row p { margin: 1px 0; font-size: 10.5px; color: #6b7a90; line-height: 1.4; }
.notice-row small { color: #98a2b3; font-size: 9.5px; }
.duty-card { display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.duty-card b { color: #1d4ed8; }
.duty-card small { color: #8a94a6; }

/* 投影精简面板 */
.detail-inner.slim .detail-head { padding: 16px; }
.detail-inner.slim .detail-head h3 { font-size: 20px; }
.slim-overview { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.slim-att { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slim-att div { background: #f6f9ff; border: 1px solid #e1eaf8; border-radius: 10px; text-align: center; padding: 10px 4px; }
.slim-att b { display: block; font-size: 26px; color: #1d4ed8; }
.slim-att span { font-size: 11px; color: #7a879b; }
.slim-top { display: flex; align-items: center; gap: 8px; font-size: 15px; background: #f9fbfe; border-radius: 8px; padding: 8px; }
.slim-top b { margin-left: auto; color: #2563eb; }
.slim-todo { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #6b7a90; }
.slim-todo span.done { color: #12a150; }
.slim-student { padding: 20px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.big-name { font-size: 30px; font-weight: 700; letter-spacing: 1px; }
.big-group { font-size: 14px; color: #6b7a90; }
.big-status { font-size: 14px; color: #2563eb; }
.big-points { font-size: 40px; font-weight: 700; color: #1d4ed8; }
.big-points small { font-size: 14px; color: #7a879b; margin-left: 3px; }
.slim-line { font-size: 12px; color: #6b7a90; }
.slim-podium { padding: 20px 16px; display: flex; flex-direction: column; gap: 8px; }
.slim-lines { display: flex; gap: 12px; font-size: 13px; color: #6b7a90; }
.slim-creed { padding: 20px 16px; }
.big-slogan { font-family: "KaiTi", "Microsoft YaHei", serif; font-size: 26px; line-height: 1.5; color: #244034; font-weight: 600; }
.slim-notice { margin-top: 12px; font-size: 13px; line-height: 1.7; color: #52627a; white-space: pre-line; }
.slim-seat { padding: 20px 16px; display: flex; flex-direction: column; gap: 10px; }

/* ------------------------------------------------ 管理页面 */
.workspace {
  position: absolute; top: 0; right: 0; bottom: 0; left: 20%; background: #f5f8fc; z-index: 20;
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.nav-collapsed .workspace { left: 62px; }
.mode-projection .workspace { left: 0; }
.ws-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.ws-head h2 { margin: 0; font-size: 16px; }
.ws-head p { margin: 2px 0 0; font-size: 11px; }
.ws-actions { display: flex; gap: 8px; }
.ws-actions .ghost { background: #eef3fb; color: #344054; border-color: #d5deeb; }
.ws-body { flex: 1; overflow: auto; padding: 14px 18px 28px; }
.filter-bar { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.filter-bar input, .filter-bar select, .tool-row input, .tool-row select, .sheet-actions select, .sheet-actions input {
  border: 1px solid #d9e2ef; border-radius: 6px; padding: 6px 8px; font-size: 11.5px; background: #fff; color: #344054;
}
.filter-bar input[type=date] { width: 132px; }
.filter-bar .spacer { flex: 1; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: auto; max-height: calc(100vh - 250px); }
.table-wrap.short { max-height: 300px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.data-table th { position: sticky; top: 0; background: #f2f6fc; color: #344054; font-weight: 600; text-align: left; padding: 8px 10px; border-bottom: 1px solid #e1e8f2; white-space: nowrap; z-index: 1; }
.data-table td { padding: 7px 10px; border-bottom: 1px solid #f1f4f9; color: #4b5a70; }
.data-table tr:hover td { background: #f8fbff; }
.data-table td.strong { color: #1d2939; font-weight: 600; }
.data-table .op-col { white-space: nowrap; width: 96px; }
.data-table .op-col .mini-btn { margin-right: 3px; }
.data-table .empty { padding: 24px; }
.link { color: #2563eb; cursor: pointer; }
.link:hover { text-decoration: underline; }
.thumb { width: 42px; height: 30px; object-fit: cover; border-radius: 4px; }
.pager { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; }
.pager .mini-btn { margin-left: 2px; }
/* 奖惩记录（ui35）：KPI 汇总条 / 分值红绿 / 类型徽标 */
.rp-kpi { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rp-kpi-card { flex: 1 1 120px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; }
.rp-kpi-card b { font-size: 18px; line-height: 1.1; color: #1d2939; }
.rp-kpi-card span { font-size: 11px; color: #8a97ab; }
.pt-pos { color: #12a150; font-weight: 700; }
.pt-neg { color: #dc2626; font-weight: 700; }
.k-rew, .k-pen { display: inline-block; padding: 1px 7px; border-radius: 9px; font-size: 11px; line-height: 17px; }
.k-rew { background: #e8f8ee; color: #12a150; }
.k-pen { background: #fdeaea; color: #dc2626; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #6b7a90; }
.form-grid label.full, .form-card label.full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea, .form-card textarea, .form-card input {
  border: 1px solid #d9e2ef; border-radius: 6px; padding: 7px 9px; font-size: 12px; width: 100%; background: #fff;
}
.form-card label.full { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #6b7a90; margin-top: 10px; }
.req { color: #e5484d; margin-left: 2px; }
.form-actions { display: flex; gap: 8px; margin-top: 12px; }
.teacher-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.teacher-row { display: flex; gap: 8px; align-items: center; font-size: 12px; background: #f8fafd; padding: 7px 9px; border-radius: 7px; }
.teacher-row b { color: #1d4ed8; }
.teacher-row .muted { margin-left: auto; }
.tool-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; font-size: 12px; }
.tool-row .inline { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #6b7a90; }
.tool-row .inline input { width: 64px; }
.tool-row .spacer { flex: 1; }

/* 走道列选择 UI */
.layout-config {
  grid-column: 1 / -1;
  background: #fafbfd; border: 1px dashed #d4dce9; border-radius: 8px;
  padding: 10px 12px; margin: 2px 0 6px;
}
.layout-config .ap-label {
  display: block; font-size: 11px; color: #7a879b; font-weight: 600; margin-bottom: 6px;
}
.aisle-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.aisle-chip {
  border: 1px solid #d4dded; background: #fff; color: #3b5680;
  font-size: 11px; padding: 4px 8px; border-radius: 999px; cursor: pointer;
  transition: 0.12s;
}
.aisle-chip:hover { border-color: #9db7e8; color: #2563eb; }
.aisle-chip.on {
  background: #f0b87a; border-color: #d88f3b; color: #fff; font-weight: 600;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.15);
}
.aisle-row { margin-top: 4px; }
/* 座位管理：按组分配 / 潮汐滚动的子模式面板 */
.opt-panel {
  margin: 8px 0 4px; padding: 10px 12px; border: 1px solid #dbe4f2;
  border-radius: 10px; background: #f8fbff; display: flex; flex-direction: column; gap: 8px;
}
.opt-head { display: flex; align-items: baseline; gap: 10px; }
.opt-head b { font-size: 13px; color: #1f3355; }
.opt-head .muted { font-size: 11px; }
.opt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-blocks { display: flex; flex-direction: column; gap: 4px; max-height: 150px; overflow: auto; }
.opt-block-row { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.opt-block-row b { min-width: 64px; }
.opt-block-row input {
  width: 54px; padding: 3px 6px; border: 1px solid #d4dded; border-radius: 6px; font-size: 12px;
}
.opt-block-row .muted { font-size: 11px; }
.opt-offsets { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.opt-offsets input {
  width: 64px; padding: 3px 6px; border: 1px solid #d4dded; border-radius: 6px; font-size: 12px;
}
.opt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.opt-actions .muted { font-size: 11px; }
.layout-hint {
  font-size: 11px; color: #6b7a90; margin-left: auto;
}
.layout-hint.warn { color: #c22a30; font-weight: 600; }
.layout-hint b { margin-left: 4px; }

/* 手机 mini 座位图 */
.m-seat-scroll { overflow-x: auto; padding-bottom: 4px; }
.m-seat-grid {
  display: grid; grid-auto-rows: minmax(34px, 1fr); gap: 3px; min-width: 340px;
}
.aisle-mini {
  background: repeating-linear-gradient(90deg, #f6f2e8 0 2px, #efe9d7 2px 6px);
  border: 1px dashed #c9bd9b; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: #9c8c68; letter-spacing: 1px; writing-mode: vertical-rl;
}
.seat-mini {
  position: relative; border-radius: 4px; padding-top: 60%; cursor: pointer;
  background: transparent; border: 1px solid transparent;
  display: flex; align-items: center; justify-content: center;
  user-select: none;
}
.seat-mini .m-st-desk {
  position: absolute; inset: 32% 10% 8%;
  background: linear-gradient(180deg, #caa573, #a77a3f); border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}
.seat-mini .m-st-head {
  position: absolute; top: 4%; left: 38%; width: 24%; height: 24%;
  border-radius: 50%; z-index: 2;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
}
.seat-mini .m-st-scarf {
  position: absolute; top: 26%; left: 28%; right: 28%; height: 8%;
  border-radius: 2px; z-index: 2;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}
.seat-mini.s-gray .m-st-desk { background: repeating-linear-gradient(45deg,#f8f9fb,#f8f9fb 4px,#eef0f4 4px,#eef0f4 8px); border: 1px dashed #d0d7e1; }
.seat-mini.s-green .m-st-desk { box-shadow: 0 0 0 2px #12a150; }
.seat-mini.s-blue .m-st-desk { box-shadow: 0 0 0 2px #2f7fe0; }
.seat-mini.s-yellow .m-st-desk { box-shadow: 0 0 0 2px #e9a400; }
.seat-mini.s-red .m-st-desk { box-shadow: 0 0 0 2px #e5484d; }
.seat-mini .m-st-name {
  position: absolute; bottom: 2%; left: 0; right: 0;
  font-size: 9px; text-align: center; font-weight: 700;
  color: #1d2939; background: rgba(255,255,255,0.88); border-radius: 2px;
  padding: 0 1px; white-space: nowrap;
  z-index: 3;
}

.hw-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.hw-chip { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; text-align: center; min-width: 74px; }
.hw-chip b { display: block; font-size: 17px; color: #1d4ed8; }
.hw-chip span { font-size: 10.5px; color: #7a879b; }
.hw-btn { display: inline-block; font-size: 10.5px; padding: 3px 7px; border-radius: 5px; border: 1px solid #dfe6f0; margin-right: 3px; cursor: pointer; color: #6b7a90; }
.hw-btn.on { background: #2563eb; color: #fff; border-color: #2563eb; }
.tiny-input { width: 54px; border: 1px solid #dfe6f0; border-radius: 5px; padding: 3px 5px; font-size: 11px; }

.tt-grid { display: grid; grid-template-columns: 70px repeat(5, 1fr); gap: 5px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.tt-cell { padding: 10px 8px; border-radius: 7px; font-size: 12px; background: #f8fafd; }
.tt-cell.head { background: #eaf1ff; color: #1d4ed8; font-weight: 600; text-align: center; }
.tt-cell.period { background: #f3f6fb; color: #6b7a90; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.tt-cell.lesson { display: flex; flex-direction: column; gap: 2px; cursor: pointer; min-height: 58px; justify-content: center; text-align: center; }
.tt-cell.lesson:hover { background: #eaf1ff; box-shadow: inset 0 0 0 1px #bcd2f6; }
.tt-cell .subj { font-weight: 600; color: #1d2939; }
.tt-cell .muted { font-size: 10px; }

/* ui27 可自由编辑的课程表 / 节次设置 */
.tt-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.tt-day { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.tt-day header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.tt-day header h4 { margin: 0; font-size: 14px; color: #1d4ed8; }
.tt-day-row { display: flex; align-items: center; gap: 8px;
  padding: 6px 6px; border-radius: 7px; cursor: pointer; font-size: 12px; }
.tt-day-row:hover { background: #eaf1ff; }
.tt-day-row .tt-time { flex: 0 0 86px; color: #6b7a90; font-variant-numeric: tabular-nums; font-size: 11px; }
.tt-day-row .tt-name { flex: 0 0 50px; color: #475467; }
.tt-day-row .tt-subj { flex: 1 1 auto; min-width: 0; font-weight: 600; color: #1d2939;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-day-row .tt-subj.empty { color: #b6c0cd; font-weight: 400; }
.tt-day-row > .muted { flex: 0 0 56px; text-align: right; white-space: nowrap; }
.tt-empty { margin: 4px 0; font-size: 12px; }
.day-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.period-table input[type="time"] { width: 104px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.period-table select { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; background: #fff; }

/* ui28 整周课程表（传统表格） */
.tt-week-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.tt-week { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; table-layout: fixed; }
.tt-week th, .tt-week td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 13px; }
.tt-week thead th { background: #f4f8ff; color: #1d4ed8; font-weight: 600; padding: 10px 8px; text-align: center; }
.tt-week .tt-corner { width: 112px; }
.tt-week th.tt-row-head { background: #f8fafc; text-align: left; padding: 8px 10px; width: 112px; font-weight: 500; }
.tt-rname { display: block; font-weight: 600; color: #344054; }
.tt-rtime { display: block; font-size: 11px; color: #7b8a9e; font-variant-numeric: tabular-nums; }
.tt-cell-week { padding: 8px 6px; text-align: center; cursor: pointer; transition: filter .15s; vertical-align: middle; }
.tt-cell-week:hover { filter: brightness(0.96); }
.tt-cell-week.is-empty { background: #fbfcfe; color: #cfd8e3; }
.tt-wsubj { display: block; font-weight: 600; font-size: 13px; line-height: 1.3; }
.tt-wteacher { display: block; font-size: 11px; opacity: .75; margin-top: 2px; }
.tt-dash { color: #cfd8e3; font-size: 13px; }
.color-rows { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow: auto; }
.color-row { display: flex; align-items: center; gap: 6px; }
.color-name { width: 88px; font-size: 13px; color: #344054; }
.color-chip { width: 30px; height: 26px; border-radius: 6px; border: 2px solid transparent; font-size: 11px; cursor: pointer; }
.color-chip.active { border-color: #1d4ed8; box-shadow: 0 0 0 2px rgba(29, 78, 216, .15); }
.mode-projection .tt-week th, .mode-projection .tt-week td { font-size: 15px; }
.mode-projection .tt-wsubj { font-size: 16px; }
.mode-projection .tt-wteacher { font-size: 12px; }

.award-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.award-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.award-card h4 { margin: 0 0 8px; font-size: 13px; color: #1d4ed8; }
.award-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px dashed #edf1f7; font-size: 12px; }
.award-row:last-child { border-bottom: 0; }
.award-row b { margin-left: auto; color: #2563eb; }
/* ui36 区间控件 / 评优候选 */
.period-label { min-width: 96px; text-align: center; font-size: 12px; font-weight: 600; color: #334155; letter-spacing: .3px; }
.award-card .award-rule { font-size: 11px; color: #8592a6; margin: -4px 0 8px; line-height: 1.5; }
.award-card .cand-title { margin: 10px 0 5px; font-size: 11px; color: #64748b; }
.cand-wrap { max-height: 176px; overflow: auto; border: 1px solid #eef2f8; border-radius: 7px; }
.cand-table { width: 100%; font-size: 11px; }
.cand-table th, .cand-table td { padding: 4px 6px; }
.award-card .k-rew { font-size: 10px; line-height: 15px; padding: 0 6px; }

.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.chart-card h4 { margin: 0 0 6px; font-size: 12.5px; color: #344054; }
.chart-card .chart { height: 230px; width: 100%; }
.chart-card.wide { grid-column: 1 / -1; }

/* 数据总览筛选栏（吸顶，一行放不下换行） */
.stats-filter { position: sticky; top: 0; z-index: 8; background: #f5f8fc; padding: 4px 0 8px; margin: -4px 0 2px; }
.sf-panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; display: flex; flex-direction: column; gap: 7px; box-shadow: 0 2px 8px rgba(24, 44, 74, 0.05); }
.sf-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.sf-label { font-size: 11px; color: #6b7a90; flex: 0 0 auto; }
.sf-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.sf-tab { border: 1px solid #d9e2ef; background: #fff; color: #4b5a70; border-radius: 6px; padding: 5px 10px; font-size: 11.5px; cursor: pointer; line-height: 1.2; }
.sf-tab:hover { border-color: #9db7e8; color: #2563eb; }
.sf-tab.active { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 600; }
.sf-error { color: #d92d20; font-size: 11.5px; }
.sf-spacer { flex: 1; }
.sf-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px dashed #e8eef7; padding-top: 7px; font-size: 11.5px; color: #52627a; }
.sf-summary b { color: #1d2939; }

.stats-overview { display: grid; grid-template-columns: 176px 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.stats-kpis { display: flex; flex-direction: column; gap: 8px; }
.stats-kpis .kpi { flex: 1; }
.stats-list { padding: 8px 10px; margin-bottom: 0; }
.stats-list .block-head { margin-bottom: 4px; }
.stats-empty { background: #fff; border: 1px dashed #cfd9e8; border-radius: 10px; padding: 46px 20px; text-align: center; color: #7b8798; }
.stats-empty b { display: block; font-size: 15px; color: #344054; margin-bottom: 6px; }
.chart-note { margin: 0 0 6px; font-size: 10.5px; color: #8a94a6; line-height: 1.5; }
.chart-card .chart.tall { height: 640px; }
.stats-kpi-row { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); margin-bottom: 8px; }
.stats-kpi-row .kpi b { font-size: 16px; }
@media (max-width: 900px) {
  .stats-overview { grid-template-columns: 1fr; }
  .stats-kpis { flex-direction: row; }
}

.report-sheet { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; max-width: 1000px; }
.report-head { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid #eaf1ff; padding-bottom: 12px; margin-bottom: 14px; }
.report-head h2 { margin: 0; font-size: 22px; }
.report-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.report-block { background: #f8fafd; border-radius: 8px; padding: 12px; }
.report-block.full { grid-column: 1 / -1; margin-top: 12px; }
.report-block h4 { margin: 0 0 8px; font-size: 12.5px; color: #1d4ed8; }
.report-block p { margin: 0; font-size: 12px; line-height: 1.8; color: #364152; }

/* 大数据总览：区间 KPI */
.stats-kpis-5 .kpi { min-height: 50px; }
.sf-range { font-size: 11.5px; color: #6b7789; }

/* 成长档案：搜索 + 标签页 + 区块 */
.report-tools { align-items: flex-start; }
.stu-search { position: relative; width: 260px; flex: 0 0 auto; }
.stu-search-input { width: 100%; min-height: 32px; padding: 6px 28px 6px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; }
.stu-search-clear { position: absolute; right: 5px; top: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: #eef2f8; color: #64748b; font-size: 15px; line-height: 1; cursor: pointer; }
.stu-search-clear:hover { background: #e2e8f0; }
.stu-search-panel { position: absolute; z-index: 40; left: 0; right: 0; top: 38px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 10px 26px rgba(15, 35, 70, .14); max-height: 260px; overflow: auto; padding: 5px; }
.stu-search-count { font-size: 10.5px; color: #8592a6; padding: 3px 7px 5px; }
.stu-search-item { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; background: none;
  padding: 7px 8px; border-radius: 6px; cursor: pointer; font-size: 12.5px; color: #263244; text-align: left; }
.stu-search-item:hover { background: #eef4ff; }
.stu-search-item span { font-size: 11px; color: #8592a6; }
.stu-search-none { padding: 10px 8px; font-size: 11.5px; color: #93a0b3; text-align: center; }

.report-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #e8eef7; padding-bottom: 8px; margin-bottom: 12px; }
.report-tab { border: 1px solid #dbe4f2; background: #f7f9fd; color: #4a5768; border-radius: 999px; padding: 5px 13px;
  font-size: 12px; cursor: pointer; }
.report-tab:hover { background: #eef4ff; color: #1d4ed8; }
.report-tab.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.growth-grid { display: block; }
.growth-sheet .report-block.full { margin-top: 0; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 18px; }
.info-item { display: flex; flex-direction: column; gap: 3px; padding: 6px 0; border-bottom: 1px dashed #edf1f8; }
.info-label { font-size: 11px; color: #8592a6; }
.info-value { font-size: 13px; color: #263244; font-weight: 600; }
.info-value .tag { font-style: normal; font-size: 10px; color: #1d4ed8; background: #e8f1ff; border-radius: 4px; padding: 1px 5px; margin-left: 4px; }
.growth-kpi-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.growth-kpi { flex: 1 1 120px; background: #fff; border: 1px solid #e8eef7; border-radius: 8px; padding: 8px 12px; }
.growth-kpi b { display: block; font-size: 20px; color: #1f2b3d; line-height: 1.25; }
.growth-kpi span { font-size: 10.5px; color: #8592a6; }
.growth-kpi.good b { color: #12a150; }
.growth-kpi.bad b { color: #d64545; }
.growth-bar-list { border: 1px solid #eef2f8; border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.growth-bar-row { display: grid; grid-template-columns: 1fr 90px 70px; align-items: center; padding: 6px 10px; font-size: 12px; }
.growth-bar-row:nth-child(odd) { background: #f8fafd; }
.gbr-name { color: #334155; }
.gbr-count { color: #8592a6; font-size: 11px; }
.gbr-delta { text-align: right; font-weight: 700; }
.growth-empty { padding: 26px 10px; text-align: center; color: #93a0b3; font-size: 12px; background: #f8fafd;
  border: 1px dashed #dbe4f2; border-radius: 8px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-top: 6px; }
.mini-table th, .mini-table td { border-bottom: 1px solid #eef2f8; padding: 5px 7px; text-align: left; }
.mini-table th { background: #f5f8fd; color: #64748b; font-weight: 600; }
.mini-table tr:hover td { background: #fafcff; }
.subject-block { margin-top: 14px; }
.subject-title { display: block; font-size: 12px; color: #1d4ed8; margin-bottom: 4px; }
.comment-text { margin-top: 8px; font-size: 12.5px; line-height: 1.9; color: #364152; background: #f8fafd; padding: 10px 12px; border-radius: 8px; white-space: pre-wrap; }
.comment-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.comment-head h4 { margin: 0; }
.comment-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comment-controls select { border: 1px solid #dbe4f0; border-radius: 6px; padding: 5px 8px; font-size: 11.5px; background: #fff; }
.comment-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 11px; color: #8592a6; }
.comment-source { font-size: 10px; border-radius: 4px; padding: 1px 6px; background: #eef2f8; color: #64748b; }
.comment-source.system { background: #e8f1ff; color: #1d4ed8; }
.comment-source.teacher { background: #e6f7ee; color: #12a150; }
.comment-version { border: 1px solid #eef2f8; border-radius: 8px; margin-bottom: 6px; overflow: hidden; }
.comment-version-head { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: #f8fafd;
  padding: 7px 10px; font-size: 11.5px; color: #334155; text-align: left; cursor: pointer; }
.comment-version-head:hover { background: #f1f6ff; }
.comment-version-toggle { margin-left: auto; color: #1d4ed8; font-size: 11px; }
.comment-version-body { margin: 0; padding: 10px 12px; font-size: 12px; line-height: 1.85; color: #364152;
  white-space: pre-wrap; background: #fff; }
.comment-current-tag { font-size: 10px; color: #12a150; background: #e6f7ee; border-radius: 4px; padding: 1px 5px; }
.comment-current-row { display: flex; flex-direction: column; gap: 2px; padding: 7px 10px; border-bottom: 1px dashed #edf1f8;
  cursor: pointer; font-size: 11.5px; }
.comment-current-row:hover { background: #f8fbff; }
.comment-current-term { color: #1d4ed8; font-weight: 600; }
.comment-current-text { color: #364152; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comment-modal { width: min(860px, 96vw); }
.comment-editor-hint { margin: 0 0 10px; font-size: 11.5px; color: #6b7a90; line-height: 1.7; }
.comment-basis { margin-bottom: 10px; }
.comment-editor { width: 100%; border: 1px solid #dfe5ee; border-radius: 8px; padding: 10px 12px; font-size: 13px;
  line-height: 1.8; resize: vertical; min-height: 180px; }
.comment-editor-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 11.5px; }
.comment-editor-foot .spacer { flex: 1; }
.comment-editor-name { width: 92px; border: 1px solid #dbe4f0; border-radius: 6px; padding: 5px 8px; font-size: 11.5px; }
.comment-editor-error { margin: 8px 0 0; font-size: 11.5px; color: #d64545; }
.btn.sm { padding: 4px 10px; font-size: 11.5px; }
.good-text { color: #12a150; }
.bad-text { color: #d64545; }

@media (max-width: 900px) {
  .stats-kpis-5 { flex-direction: row; flex-wrap: wrap; }
  .stats-kpis-5 .kpi { min-width: 46%; }
}
@media (max-width: 720px) {
  .report-tools { flex-direction: column; align-items: stretch; }
  .stu-search { width: 100%; }
  .info-grid { grid-template-columns: 1fr; }
  .growth-bar-row { grid-template-columns: 1fr 70px 58px; }
  .mini-table { font-size: 10.5px; }
  .mini-table th, .mini-table td { padding: 4px 5px; }
  .comment-controls { width: 100%; }
  .comment-controls select { flex: 1; min-width: 0; }
  .comment-editor-foot .spacer { display: none; }
}
.big-rate { font-size: 32px; font-weight: 700; color: #1d4ed8; }

.export-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.export-card { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.export-card b { font-size: 12.5px; }
.export-card > div { display: flex; gap: 5px; }
.month-bars { display: flex; flex-direction: column; gap: 7px; }
.month-bar { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.month-bar > span { width: 58px; color: #52627a; }
.month-bar .bar { flex: 1; height: 9px; }
.month-bar b { width: 46px; text-align: right; color: #2563eb; }

/* ------------------------------------------------ 弹层 / 菜单 */
.modal-mask, .sheet-mask {
  position: fixed; inset: 0; background: rgba(20, 34, 54, 0.42); z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal { width: min(720px, 94vw); max-height: 88vh; background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(10, 25, 50, 0.3); display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 15px; }
.modal-head button { border: 0; background: transparent; font-size: 22px; color: #8a94a6; }
.modal-body { padding: 14px 18px 18px; overflow: auto; }
.ctx-menu {
  position: fixed; z-index: 90; background: #fff; border: 1px solid #dbe3ef; border-radius: 9px;
  box-shadow: 0 12px 30px rgba(20, 40, 70, 0.2); padding: 6px; min-width: 150px;
}
.ctx-head { font-size: 10.5px; color: #8a94a6; padding: 4px 6px 5px; border-bottom: 1px dashed #eef2f8; }
.ctx-menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 7px 9px; border-radius: 6px; font-size: 12px; color: #344054; }
.ctx-menu button:hover { background: #eaf1ff; color: #1d4ed8; }
.ctx-divider { height: 1px; background: #eef2f8; margin: 4px 0; }
.hover-card {
  position: fixed; z-index: 70; background: rgba(23, 38, 60, 0.94); color: #fff; border-radius: 8px;
  padding: 7px 10px; font-size: 10.5px; pointer-events: none; box-shadow: 0 8px 20px rgba(0,0,0,0.22);
  display: flex; flex-direction: column; gap: 2px; max-width: 200px;
}
.hover-card b { font-size: 12px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100;
  background: rgba(23, 38, 60, 0.95); color: #fff; padding: 9px 16px; border-radius: 999px;
  font-size: 12.5px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); max-width: 80vw;
}
.toast-enter-active, .toast-leave-active { transition: 0.25s; }
.toast-enter-from, .toast-leave-to { opacity: 0; transform: translateX(-50%) translateY(8px); }

/* ------------------------------------------------ 投影模式 */
.mode-projection .topbar { height: 72px; flex-basis: 72px; }
.mode-projection .brand-text h1 { font-size: 20px; }
.mode-projection .layout { grid-template-columns: 1fr 30%; }
.mode-projection .nav { display: none; }
.mode-projection .stage { padding: 16px 22px 10px; }
.mode-projection .blackboard { min-height: 108px; }
.mode-projection .bb-slogan { font-size: 26px; }
.mode-projection .bb-notice { font-size: 15px; max-height: 52px; }
.mode-projection .podium { margin: 12px 10% 0; padding: 10px 16px; }
.mode-projection .podium-main { font-size: 17px; }
.mode-projection .stage-title h2 { font-size: 19px; }
.mode-projection .legend { font-size: 13px; }
.mode-projection .seat-tools button { font-size: 13px; padding: 7px 11px; }
.mode-projection .seat-grid { gap: 8px; grid-auto-rows: minmax(0, 1fr); padding: 8px; }
.mode-projection .aisle span { font-size: 15px; letter-spacing: 4px; padding: 10px 4px; }
.mode-projection .seat { border-radius: 6px; }
.mode-projection .seat-visual .name-tag { font-size: 20px; padding: 3px 4px; }
.mode-projection .seat-visual .name-tag.len2 { font-size: 21px; }
.mode-projection .seat-visual .name-tag.len3 { font-size: 19px; }
.mode-projection .seat-visual .name-tag.len4 { font-size: 17px; }
.mode-projection .seat-visual .name-tag.len5 { font-size: 16px; }
.mode-projection .seat-visual .person { width: 72%; }
.mode-projection .seat-visual .desk { left: 8%; right: 8%; }
.mode-projection .status-badge { width: 22px; height: 22px; font-size: 13px; }
.mode-projection .seat-marks .mark { font-size: 12px; padding: 1px 6px; border-radius: 4px; }
.mode-projection .stage-foot { font-size: 12px; }
.mode-projection .detail-head h3 { font-size: 19px; }
.mode-projection.safe-on .stage { padding: 34px 48px 20px; }
.mode-projection.safe-on .stage::after {
  content: "投影安全区"; position: absolute; right: 20px; bottom: 12px; font-size: 11px;
  color: #93a4bb; border: 1px dashed #b9c6d8; padding: 3px 8px; border-radius: 4px;
}
.mode-projection .stage { position: relative; }
.mode-projection.safe-on .seat-grid { max-height: 100%; }

/* ------------------------------------------------ 手机模式 */
.mode-mobile { background: #eef3fa; overflow: hidden; }
.mode-mobile .topbar { height: 52px; flex-basis: 52px; padding: 0 12px; position: sticky; top: 0; }
.mode-mobile .brand { min-width: 0; gap: 7px; }
.mode-mobile .logo { width: 30px; height: 30px; font-size: 14px; }
.mode-mobile .brand-text h1 { font-size: 14px; }
.mode-mobile .brand-text p { display: none; }
.mode-mobile .mode-switch button { padding: 5px 8px; font-size: 11px; }
.mode-mobile .mode-switch button .mi { display: none; }
.mode-mobile .top-actions { display: none; }
.mode-mobile .user-area { gap: 4px; }
.mode-mobile .user-area .user-pill,
.mode-mobile .user-area .guest-pill { display: none; }
.mode-mobile .class-select { max-width: 92px; font-size: 11px; padding: 4px 4px; }
.mode-mobile .user-area .ghost { padding: 5px 7px; font-size: 11px; }
.mode-mobile .login-btn { padding: 5px 9px; font-size: 11px; }
.mobile { flex: 1; overflow-y: auto; padding: 10px 12px 80px; }
.m-hero { background: linear-gradient(135deg, #1d4ed8, #2f80ed 55%, #34a7c9); border-radius: 16px; color: #fff; padding: 16px; box-shadow: 0 10px 24px rgba(29, 78, 216, 0.22); }
.m-date { font-size: 11px; opacity: 0.8; }
.m-hero h2 { margin: 4px 0 10px; font-size: 19px; }
.m-att { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-att div { background: rgba(255,255,255,0.16); border-radius: 10px; padding: 7px; text-align: center; }
.m-att b { display: block; font-size: 22px; }
.m-att span { font-size: 10.5px; opacity: 0.82; }
.m-hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.m-btn { border: 0; border-radius: 10px; padding: 10px; font-size: 13px; background: rgba(255,255,255,0.22); color: #fff; font-weight: 600; }
.m-btn.primary { background: #fff; color: #1d4ed8; }
.m-section { background: #fff; border-radius: 14px; padding: 13px; margin-top: 10px; box-shadow: 0 4px 14px rgba(31,45,61,0.06); }
.m-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.m-sec-head h3 { margin: 0; font-size: 14px; }
.m-todo { display: flex; flex-direction: column; gap: 6px; }
.m-todo-row { display: flex; align-items: center; gap: 7px; font-size: 11.5px; padding: 7px 8px; border-radius: 8px; background: #fff6f6; }
.m-todo-row.done { background: #f1fbf5; }
.m-todo-row span { width: 16px; height: 16px; border-radius: 50%; background: #fdeaea; color: #c22a30; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.m-todo-row.done span { background: #e3f7ec; color: #0c8a46; }
.m-todo-row small { color: #8a94a6; font-size: 10px; margin-left: auto; }
.m-lessons { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; }
.m-lesson { flex: 0 0 88px; background: #f8fafd; border-radius: 9px; padding: 8px; font-size: 10.5px; color: #7a879b; display: flex; flex-direction: column; gap: 3px; }
.m-lesson b { font-size: 13px; color: #1d2939; }
.m-lesson.current { background: #eaf1ff; box-shadow: inset 3px 0 0 #2563eb; }
.m-lesson small { font-size: 9.5px; }
.m-students { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.m-students button { border: 1px solid #e6ecf6; background: #fbfdff; border-radius: 10px; padding: 8px 3px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: #344054; }
.m-avatar { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.m-students small { color: #98a2b3; font-size: 9px; }
.m-students.sheet { grid-template-columns: repeat(3, 1fr); margin-top: 8px; }
.m-events { display: flex; flex-direction: column; gap: 5px; }
.m-event { display: flex; align-items: center; gap: 8px; font-size: 11.5px; background: #f9fbfe; padding: 6px 8px; border-radius: 7px; }
.m-event span { color: #98a2b3; font-size: 10px; }
.m-event small { margin-left: auto; }
.m-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-top: 1px solid #e2e9f3; padding: 6px 0 8px; z-index: 60;
}
.m-tabbar button { border: 0; background: transparent; font-size: 12px; color: #7a879b; padding: 6px; }
.m-tabbar button.active { color: #1d4ed8; font-weight: 700; }
.sheet {
  width: min(560px, 100%);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px); /* 移动端浏览器地址栏/工具栏会吃掉 vh，用 dvh 兜底 */
  background: #fff; border-radius: 16px;
  align-self: center; position: relative; display: flex; flex-direction: column;
  overflow: hidden; padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 10px 30px rgba(10, 25, 50, 0.22);
}
.sheet-head {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  margin: 0; padding: 14px 16px 8px;
}
.sheet-head h3 { margin: 0; font-size: 16px; }
.sheet-head button { border: 0; background: #f2f5fa; border-radius: 999px; padding: 5px 12px; font-size: 11px; color: #52627a; }
.sheet-body-wrap { position: relative; flex: 1 1 auto; min-height: 0; display: flex; }
.sheet-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; padding: 0 16px 40px;
}
.sheet-foot {
  flex: 0 0 auto; padding: 10px 16px 12px; border-top: 1px solid #eef2f8; background: #fff;
}
.sheet-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 36px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96));
}
.sheet-scroll-tip {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  font-size: 10px; color: #52627a; background: rgba(242, 245, 250, 0.96);
  border-radius: 999px; padding: 2px 10px; pointer-events: none;
}
.mark-section + .mark-section { margin-top: 4px; }
.mark-sec-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: #1d2939; margin: 10px 0 2px;
}
.mark-sec-head span { font-size: 10.5px; color: #8a94a6; }
.sheet-mask { align-items: center; padding: 12px; }
.sheet-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.mobile-roll { display: flex; flex-direction: column; gap: 5px; margin-bottom: 0; }
.roll-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #f9fbfe; border-radius: 8px; padding: 6px 8px; }
.roll-name { font-size: 12px; font-weight: 600; }
.roll-status { display: flex; gap: 3px; }
.roll-status button { border: 1px solid #e2e9f3; border-radius: 5px; background: #fff; font-size: 10px; padding: 3px 6px; color: #7a879b; }
.roll-status button.on { background: #2563eb; color: #fff; border-color: #2563eb; }
.roll-status button.on.迟到 { background: #e9a400; border-color: #e9a400; }
.roll-status button.on.请假 { background: #7c5ce0; border-color: #7c5ce0; }
.roll-status button.on.缺勤 { background: #e5484d; border-color: #e5484d; }
.mobile-mark-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.m-mark { border: 1px solid #e2e9f3; border-radius: 10px; background: #fbfdff; padding: 11px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.m-mark b { font-size: 14px; color: #1d2939; }
.m-mark span { font-size: 10px; color: #8a94a6; }
.m-mark.qm-good { background: #f1fbf5; border-color: #c6ecd7; }
.m-mark.qm-bad { background: #fef6f6; border-color: #f2d3d4; }
.m-mark.qm-warn { background: #fffcf2; border-color: #f0dca6; }
.mark-tip { font-size: 10.5px; color: #8a94a6; }
.photo-box { display: flex; flex-direction: column; gap: 9px; }
.photo-box input[type=file] { border: 1px dashed #c8d6ea; padding: 10px; border-radius: 8px; font-size: 11px; }
.photo-box input:not([type=file]) { border: 1px solid #d9e2ef; border-radius: 7px; padding: 8px; font-size: 12px; }
.photo-preview { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; }
.mobile-profile .block { margin-top: 10px; }
.mobile-profile .comment-box p { font-size: 12px; line-height: 1.7; }

/* 响应式收窄 */
@media (max-width: 1300px) {
  .layout { grid-template-columns: 21% 48% 31%; }
  .legend { font-size: 9.5px; gap: 6px; }
  .seat-grid { gap: 5px; }
  .seat-visual .name-tag { font-size: 10px; }
}
@media (max-width: 1080px) {
  .brand-text p { display: none; }
  .brand { min-width: 0; }
  .today-pill { display: none; }
  .mode-switch button { padding: 6px 9px; font-size: 12px; }
  .layout { grid-template-columns: 58px 1fr 32%; }
  .workspace { left: 58px; }
  .nav .nav-name, .nav .caret, .nav .nav-foot { display: none; }
  .nav-children { display: none; }
}

/* ===== 座位管理页：左图 + 右侧纯排座面板 ===== */
.seat-page { display: flex; gap: 14px; align-items: flex-start; }
.seat-page-main { flex: 1; min-width: 0; }
.seat-page-side {
  flex: 0 0 336px; width: 336px; position: sticky; top: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; max-height: calc(100vh - 150px); overflow-y: auto;
  box-shadow: 0 6px 18px rgba(24, 42, 72, .06);
}
.seat-page-side.seat-page-empty { display: block; padding: 18px 16px; }
.seat-page-unseated { margin: 2px 0 10px; }
.seat-page-unseated b { font-size: 12px; color: #344054; margin-right: 4px; }
.sp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sp-head b { font-size: 15px; color: #1f2b3d; }
.sp-head span { font-size: 11px; color: var(--muted); }
.sp-stu { display: flex; gap: 8px; align-items: center; margin: 10px 0 8px; }
.sp-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px; }
.sp-stu b { display: block; font-size: 13px; color: #1f2b3d; }
.sp-stu span { font-size: 11px; color: var(--muted); }
.sp-sub { font-size: 11px; font-weight: 600; color: #7a879b; margin: 10px 0 4px; }
.sp-inline { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.sp-inline input, .sp-inline select { flex: 1; min-width: 0; }
.seat-page-side .detail-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.seat-page-side .block { margin-top: 10px; }
.seat-page-side .record-list { max-height: 160px; overflow-y: auto; }
.sp-color i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; vertical-align: middle; }
.ms-head { padding: 4px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.ms-head h3 { font-size: 15px; margin: 0 0 4px; }
.ms-head p { font-size: 12px; color: var(--muted); margin: 0; }
.sheet-actions.col { display: flex; flex-direction: column; gap: 8px; }
.seat.move-target .seat-visual .desk-top::after {
  box-shadow: 0 0 0 2px #12a150, 0 0 12px rgba(18, 161, 80, .4) !important;
}

@media (max-width: 1180px) {
  .seat-page { flex-direction: column; }
  .seat-page-side { position: static; width: 100%; flex: 0 0 auto; max-height: none; }
}

/* ===== 分组管理（组长 / 组员） ===== */
.group-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.group-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.group-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.gc-head { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.gc-head .spacer { flex: 1; }
.gc-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.gc-leader { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: #6b7a90; }
.gc-leader select { flex: 1; min-width: 0; padding: 4px 6px; border: 1px solid #d8e2f0; border-radius: 6px; font-size: 11.5px; background: #fff; }
.gc-members { display: flex; flex-wrap: wrap; gap: 5px; min-height: 24px; }
.member-chip { display: inline-flex; align-items: center; gap: 3px; background: #f2f5fa; border: 1px solid #e2e9f3; border-radius: 999px; font-size: 11px; padding: 2px 7px; }
.member-chip.leader { background: #fff6e5; border-color: #f5d99a; }
.member-chip i { font-style: normal; font-size: 9px; color: #a06b00; border-left: 1px solid #e2e9f3; padding-left: 4px; }
.member-chip button { border: 0; background: transparent; color: #98a2b3; font-size: 12px; line-height: 1; padding: 0 1px; }
.member-chip button:hover { color: #c22a30; }
.ungrouped-box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 8px; }
.ungrouped-search { padding: 6px 8px; border: 1px solid #d8e2f0; border-radius: 6px; font-size: 12px; }
.ungrouped-list { max-height: 320px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.ungrouped-list label { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 2px; border-radius: 5px; }
.ungrouped-list label:hover { background: #f6f9ff; }
.ungrouped-list .muted { margin-left: auto; font-size: 10.5px; }
.ungrouped-actions { display: flex; flex-direction: column; gap: 6px; }
.ungrouped-actions select { padding: 5px 6px; border: 1px solid #d8e2f0; border-radius: 6px; font-size: 11.5px; background: #fff; }
.gp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.gp-head input { flex: 1; padding: 6px 9px; border: 1px solid #d8e2f0; border-radius: 6px; font-size: 12px; }
.gp-list { max-height: 44vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.gp-row { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; font-size: 12px; }
.gp-row:hover { background: #f6f9ff; }
.gp-row .gp-name { min-width: 74px; }
.gp-row .muted { font-size: 10.5px; }
.gp-tag { margin-left: auto; }
.gp-note { margin: 8px 0 0; }
@media (max-width: 980px) { .group-layout { grid-template-columns: 1fr; } .ungrouped-box { position: static; } }

/* ===== 小组级 CRUD（ui10） ===== */
.gc-tools { display: flex; align-items: center; gap: 4px; }
.gc-order { font-size: 10px; }
.form-grid .color-field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: #6b7a90; }
.swatches { display: flex; gap: 7px; flex-wrap: wrap; }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.swatch.on { border-color: #2b3445; box-shadow: 0 0 0 3px #e9eef7; }
.btn.danger { background: #d64545; border-color: #d64545; color: #fff; }
.btn.danger:hover { background: #bf3535; border-color: #bf3535; }
.danger-text { font-weight: 600; color: #b42318; margin: 0 0 6px; font-size: 13px; }

/* ui12 学生档案导入 / 列设置 */
.modal.wide { width: min(1180px, 96vw); }
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { background: #eef4ff; }
.sort-arrow { font-style: normal; margin-left: 2px; color: #4f8cff; }
.imp-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.imp-toolbar .inline, .col-grid .inline { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #3b4a61; }
.imp-counts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.st { display: inline-block; padding: 1px 8px; border-radius: 9px; font-size: 11.5px; line-height: 18px; }
.st-add { background: #e6f6ec; color: #2c7a4b; }
.st-skip { background: #eef1f5; color: #6b7a90; }
.st-overwrite { background: #e8f1ff; color: #2f6fbd; }
.st-error { background: #fdeaea; color: #c0392b; }
.imp-preview { margin: 10px 0; }
.imp-table-wrap { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.imp-table { font-size: 12px; }
.imp-table th { position: sticky; top: 0; z-index: 1; }
.imp-table .imp-msg { max-width: 380px; }
.imp-table tr.row-error td { background: #fff8f8; }
.imp-table tr.row-skip td { background: #fafbfc; }
.err-text { color: #c0392b; }
.warn-text { color: #b07a09; }
.imp-result { margin: 10px 0; padding: 10px 12px; background: #f6f9ff; border-radius: 8px; }
.col-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; padding: 6px 0 2px; }

/* ---------- ui14 作业状态预设 / 评价 / 结果表 ---------- */
.hw-status-badge { display: inline-block; color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 11px;
  line-height: 1.7; cursor: pointer; white-space: nowrap; }
.hw-eval-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.hw-eval-head b { font-size: 16px; }
.hw-preset-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.hw-preset-btn { border: 1.5px solid #dfe5ee; background: #fff; color: #1d2939; border-radius: 10px;
  padding: 8px 12px; font-size: 13px; cursor: pointer; min-width: 74px; }
.hw-preset-btn small { font-size: 10px; opacity: .85; }
.hw-preset-btn.on { background: #1f6feb; border-color: #1f6feb; color: #fff; }
.hw-custom-box textarea { width: 100%; border: 1px solid #dfe5ee; border-radius: 8px; padding: 8px 10px;
  font-family: inherit; font-size: 13px; resize: vertical; box-sizing: border-box; }
.hw-custom-foot { display: flex; justify-content: space-between; font-size: 11px; margin: 4px 0 10px; }
.hw-preset-table .tiny-input { width: 120px; }
.hw-preset-table .tiny-input.num { width: 64px; }
.hw-preset-table .color-input { width: 36px; height: 26px; padding: 0; border: 1px solid #dfe5ee;
  border-radius: 6px; background: #fff; }
.hw-preset-table tr.unrecorded td { background: #fafbfc; }
.hw-preset-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px;
  padding-top: 12px; border-top: 1px dashed #e5ebf3; }
.hw-preset-add input[type="text"], .hw-preset-add input:not([type]) { width: 120px; }
.btn.tiny.danger { background: #fdeaea; color: #c0392b; }
.hw-result-title { margin-right: auto; }
.hw-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 8px; margin: 12px 0; }
.hw-stat { background: #f7f9fc; border: 1px solid #eef2f8; border-radius: 10px; padding: 8px 10px; }
.hw-stat span { display: block; color: #7b8798; font-size: 11px; }
.hw-stat b { font-size: 18px; color: #1d2939; }
.hw-stat b.ok { color: #2e9d63; }
.hw-stat b.bad { color: #c0392b; }
.hw-stat b.warn { color: #b07a09; }
.hw-stat.rate { position: relative; }
.hw-progress { height: 6px; border-radius: 999px; background: #e6edf7; margin-top: 6px; overflow: hidden; }
.hw-progress i { display: block; height: 100%; background: linear-gradient(90deg, #4f8df7, #2e9d63); }
.hw-result-wrap { max-height: 48vh; overflow: auto; border: 1px solid #eef2f8; border-radius: 8px; }
.hw-result-wrap thead th { position: sticky; top: 0; z-index: 1; }
.hw-result-wrap tr.unrecorded td { color: #9aa5b4; background: #fafbfc; }
.hw-result-wrap tr.unrecorded .hw-status-badge { background: #c3cad4 !important; }
/* ---------- ui14b 纸面结果表（家庭作业 / 课堂听写） ---------- */
.symbol-input { width: 46px; text-align: center; }
.hw-result-tools { align-items: center; }
.hw-quick-bar, .hw-batch-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: #fff8e8; border: 1px solid #f2dfae; border-radius: 8px; padding: 8px 10px; margin: 8px 0; font-size: 12px; }
.hw-quick-input { width: 160px; border: 1.5px solid #d9a441; border-radius: 8px; padding: 6px 10px;
  font-size: 18px; font-weight: 700; color: #c0392b; text-align: center; }
.hw-sheet { overflow-x: auto; margin: 10px 0; border: 1px solid #eef2f8; border-radius: 10px; background: #f8fafc; padding: 10px; }
.hw-sheet-inner { min-width: 760px; background: #fff; border: 1.5px solid #8f9bb3; }
.hw-sheet-head { display: grid; grid-template-columns: 118px 1fr 1.5fr; border-bottom: 1.5px solid #8f9bb3; }
.hw-sheet-head > div { padding: 8px 10px; font-size: 12px; }
.hw-sheet-head > div + div { border-left: 1px solid #8f9bb3; }
.hw-sheet-date { white-space: nowrap; }
.hw-sheet-title { text-align: center; font-size: 22px; font-weight: 800; letter-spacing: 3px; color: #1d2939; }
.hw-sheet-content { color: #344054; }
.hw-sheet-body { display: flex; align-items: stretch; }
.hw-sheet-grid { flex: 1 1 auto; min-width: 0; border-top: 0; border-left: 0; display: flex; flex-direction: column; }
.hw-sheet-row { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); }
.hw-cell { position: relative; border-right: 1px solid #8f9bb3; border-bottom: 1px solid #8f9bb3;
  padding: 5px 4px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-height: 56px; background: #fff; cursor: pointer; transition: background .15s; }
.hw-sheet-row .hw-cell:first-child { border-left: 1px solid #8f9bb3; }
.hw-cell:first-child { border-left: 0; }
.hw-sheet-row:first-child .hw-cell { border-top: 0; }
.hw-cell:hover { background: #f3f7ff; }
.hw-cell.selected { background: #fff3c4; box-shadow: inset 0 0 0 2px #d9a441; }
.hw-cell-name { font-size: 11px; color: #344054; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hw-cell-mark { font-size: 21px; font-weight: 800; line-height: 1.15; color: #1d2939; }
.hw-cell-mark small { font-size: 12px; font-weight: 700; margin-left: 2px; }
.hw-cell.neg .hw-cell-mark { color: #d93025; }
.hw-cell.pos .hw-cell-mark { color: #137333; }
.hw-cell.unrecorded { background: #f6f7f9; }
.hw-cell.unrecorded .hw-cell-mark { color: #b6bdc8; font-weight: 500; font-size: 18px; }
.hw-cell.unrecorded .hw-cell-name { color: #98a2b3; }
.hw-cell-note { position: absolute; right: 3px; bottom: 1px; width: 12px; height: 12px; line-height: 9px;
  border-radius: 50%; background: #d9a441; color: #fff; font-size: 14px; font-weight: 900; }
.hw-cell-quality { position: absolute; left: 3px; bottom: 1px; font-size: 9px; line-height: 11px;
  color: #667085; max-width: 40px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-cell-meta { font-size: 9px; line-height: 11px; color: #667085; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.exam-mark { font-size: 22px; font-variant-numeric: tabular-nums; }
.mini-check { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: #475467; }
.hw-remarks { flex: 0 0 24%; min-width: 190px; border-left: 1.5px solid #8f9bb3; display: flex; flex-direction: column; }
.hw-remark-item { flex: 1 1 0; border-bottom: 1px dashed #c8d0dd; padding: 6px 8px; display: flex; flex-direction: column; }
.hw-remark-item h5 { margin: 0 0 3px; font-size: 11px; color: #475467; font-weight: 700; }
.hw-remark-item textarea { flex: 1; min-height: 34px; width: 100%; border: 0; outline: 0; resize: none;
  font-family: inherit; font-size: 11px; line-height: 1.5; color: #344054; background: transparent; }
.hw-remarks > .btn { margin: 6px 8px 2px; }
.hw-remarks > .muted { margin: 0 8px 6px; font-size: 10px; }
.hw-sheet-foot { border-top: 1.5px solid #8f9bb3; padding: 7px 10px; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 16px; font-size: 13px; font-weight: 700; color: #1d2939; }
.hw-legend b { font-size: 17px; margin-right: 3px; }
.hw-legend b.grey { color: #b6bdc8; }
@media (max-width: 720px) {
  .hw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hw-sheet-inner { min-width: 680px; }
  .hw-sheet-head { grid-template-columns: 96px 1fr 1.2fr; }
}

/* ui17：手机端长按环形奖惩 */
.m-students button, .seat-mini, .roll-row {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.radial-mask { position: fixed; inset: 0; z-index: 108; background: rgba(17, 28, 44, 0.18); }
.radial-layer {
  position: fixed; width: 192px; height: 192px; z-index: 112;
  transform: translate(-50%, -50%); transform-origin: center;
  animation: radialIn 150ms cubic-bezier(.2, .8, .3, 1.1);
}
@keyframes radialIn {
  from { transform: translate(-50%, -50%) scale(0.62); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.radial-svg { position: absolute; left: 0; top: 0; touch-action: none; }
.radial-svg path { cursor: pointer; transition: fill 120ms ease; }
.radial-center {
  position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; border: 2px solid #dbe3ef; box-shadow: 0 4px 14px rgba(18, 40, 72, 0.18);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  pointer-events: none; z-index: 2;
}
.radial-center b { font-size: 18px; color: #1d2939; line-height: 1; }
.radial-center span { font-size: 9px; color: #667085; max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radial-label {
  position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column;
  align-items: center; gap: 1px; pointer-events: none; z-index: 3; color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
}
.radial-label i { font-style: normal; font-size: 13px; line-height: 1; opacity: 0.92; }
.radial-label b { font-size: 10.5px; font-weight: 600; line-height: 1; }
.radial-label em { font-style: normal; font-size: 9px; line-height: 1; opacity: 0.9; }
.radial-label.active b { font-size: 12px; }
.radial-label.active { filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.9)); }
.radial-hint {
  position: absolute; left: 50%; top: 186px; transform: translateX(-50%); width: 230px; text-align: center;
  font-size: 10px; color: #667085; background: rgba(255, 255, 255, 0.92); border-radius: 9px;
  padding: 3px 6px; pointer-events: none;
}
.undo-bar {
  position: fixed; left: 50%; bottom: 66px; transform: translateX(-50%); z-index: 115;
  display: flex; align-items: center; gap: 10px; min-width: 250px; max-width: calc(100vw - 24px);
  background: rgba(23, 38, 60, 0.95); color: #fff; border-radius: 10px; padding: 9px 12px;
  box-shadow: 0 8px 22px rgba(12, 28, 50, 0.28); font-size: 12px;
  animation: undoIn 160ms ease-out;
}
.undo-bar span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.undo-bar button { border: 0; border-radius: 6px; background: #fff; color: #1d4ed8; font-weight: 700; font-size: 12px; padding: 5px 11px; }
.undo-bar small { color: #c7d2e3; font-size: 10.5px; }
@keyframes undoIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ===================== 考勤汇总（ui31） ===================== */
.att-summary { display: flex; flex-direction: column; gap: 12px; }
.att-scope { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.att-scope .tag { background: #eaf1fd; color: #1d4ed8; border-radius: 7px; padding: 3px 10px; font-weight: 700; font-size: 12.5px; }
.att-kpi { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.att-kpi-card { background: #fff; border: 1px solid #e6eef9; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; box-shadow: 0 2px 8px rgba(31, 45, 61, 0.04); }
.att-kpi-card b { font-size: 22px; line-height: 1.1; color: #1d4ed8; font-variant-numeric: tabular-nums; }
.att-kpi-card span { font-size: 12px; color: #8a94a6; }
.att-kpi-card.late b { color: #b7791f; }
.att-kpi-card.leave b { color: #2563eb; }
.att-kpi-card.absent b { color: #dc2626; }
.att-charts { display: grid; grid-template-columns: 1fr 1.45fr; gap: 12px; }
.att-card { background: #fff; border: 1px solid #e6eef9; border-radius: 12px; padding: 12px 14px; box-shadow: 0 2px 8px rgba(31, 45, 61, 0.04); }
.att-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; font-size: 13px; color: #344054; }
.att-card-head .muted { font-size: 11.5px; }
.att-legend { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.att-legend-item { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #52627a; }
.att-legend-item i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.att-chart { height: 210px; width: 100%; }
.att-anomaly { display: flex; flex-wrap: wrap; gap: 8px; }
.att-anomaly-item { display: inline-flex; align-items: center; gap: 6px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 8px; padding: 4px 10px; font-size: 11.5px; }
.att-anomaly-item span { color: #b45309; }
.att-table th { white-space: nowrap; }
.att-table td { padding-top: 6px; padding-bottom: 6px; }
.att-col { display: inline-flex; align-items: center; gap: 4px; }
.att-col i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.att-rate { display: flex; align-items: center; gap: 8px; min-width: 118px; }
.att-rate-bar { flex: 1 1 auto; height: 7px; background: #eef2f8; border-radius: 4px; overflow: hidden; min-width: 60px; }
.att-rate-bar i { display: block; height: 100%; border-radius: 4px; }
.att-rate b { flex: 0 0 auto; font-size: 11.5px; color: #52627a; font-variant-numeric: tabular-nums; }
.tier-good { background: #16a34a; }
.tier-mid { background: #eab308; }
.tier-bad { background: #ef4444; }
.tier-none { background: #cbd5e1; }
.att-row-good td { background: rgba(22, 163, 74, 0.05); }
.att-row-mid td { background: rgba(234, 179, 8, 0.10); }
.att-row-bad td { background: rgba(239, 68, 68, 0.12); }
.att-row-bad td:first-child { box-shadow: inset 3px 0 0 #ef4444; }
.att-empty { background: #fff; border: 1px dashed #dbe6f5; border-radius: 12px; padding: 36px 20px; text-align: center; color: #8a94a6; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.att-empty b { color: #52627a; font-size: 15px; }
@media (max-width: 1100px) {
  .att-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .att-charts { grid-template-columns: 1fr; }
}

/* ---------- ui32 花名册矩阵（周 / 月） ---------- */
.mx-wrap { overflow: auto; max-height: 62vh; border: 1px solid #e6eef9; border-radius: 10px; background: #fff; }
.mx-table { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12px; }
.mx-table th, .mx-table td { border-right: 1px solid #eef2f8; border-bottom: 1px solid #eef2f8; padding: 4px 2px; text-align: center; white-space: nowrap; background: #fff; }
.mx-table tbody tr:last-child td { border-bottom: 0; }
.mx-table thead th { position: sticky; top: 0; z-index: 5; background: #f2f7ff; color: #52627a; font-weight: 700; font-size: 11px; }
.mx-no, .mx-name { position: sticky; z-index: 4; background: #fff; text-align: left; padding-left: 7px; }
.mx-no { left: 0; }
.mx-name { left: 74px; box-shadow: 2px 0 0 #e6eef9; }
/* 角格：表头 + 左/右冻结，双向粘住，层级高于普通表头(5)与普通冻结列(4) */
.mx-table thead th.mx-no, .mx-table thead th.mx-name { top: 0; z-index: 7; background: #f2f7ff; }
.mx-date { padding: 3px 0; }
.mx-d { display: block; font-size: 10.5px; }
.mx-w { display: block; font-size: 9px; color: #9aa6b8; font-style: normal; font-weight: 400; }
.mx-empty-day { background: #f7f9fc; color: #b6c0cf; }
.mx-cell { font-weight: 800; }
.mx-sym { display: inline-block; line-height: 1; font-size: 13px; }
.mx-sum { position: sticky; z-index: 4; background: #fbfdff; font-variant-numeric: tabular-nums; }
.mx-s5 { right: 200px; box-shadow: -2px 0 0 #e6eef9; }
.mx-s4 { right: 154px; }
.mx-s3 { right: 108px; }
.mx-s2 { right: 62px; }
.mx-s1 { right: 0; }
.mx-table thead th.mx-sum { top: 0; z-index: 7; background: #f2f7ff; }
.mx-table tbody tr:hover td { background: #f7fbff; }
.mx-table tbody tr:hover .mx-sum { background: #f7fbff; }

/* ---------- ui32 当日全班状态格阵 ---------- */
.day-grid { display: grid; gap: 8px; }
.day-cell { border: 1px solid #e2e8f0; border-left: 3px solid currentColor; border-radius: 8px; background: #fff; padding: 8px 6px 7px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.day-name { font-size: 11px; color: #52627a; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-sym { font-size: 22px; font-weight: 800; line-height: 1.05; }
.day-st { font-size: 9.5px; color: #94a3b8; }
.att-sym { font-style: normal; font-weight: 800; margin-right: 2px; }
.att-sym-none { width: 10px; height: 10px; border-radius: 3px; background: #e2e8f0; display: inline-block; }
.att-card-head .btn.tiny { padding: 2px 8px; font-size: 11.5px; line-height: 1.5; min-height: 0; }

/* ---------- ui33 日期左右翻页 ---------- */
.att-nav { display: inline-flex; align-items: center; gap: 4px; }
.att-nav .btn.nav { padding: 0 9px; min-width: 30px; min-height: 30px; font-size: 16px; line-height: 1;
  font-weight: 700; color: #2563eb; background: #eef4ff; border: 1px solid #d3e0f7; border-radius: 7px; }
.att-nav .btn.nav:hover:not(:disabled) { background: #dfeaff; }
.att-nav .btn.nav:disabled { opacity: .42; cursor: not-allowed; color: #8a94a6; background: #f1f5f9; border-color: #e2e8f0; }


@media (max-width: 720px) {
  .mx-wrap { max-height: 56vh; }
  .mx-table { font-size: 11px; }
  .day-grid { gap: 5px; }
  .day-sym { font-size: 18px; }
  .day-name { font-size: 10px; }
}

