:root {
  /* 品牌色（取自进学教育 Logo：松柏绿 #11634F × 活力橙 #F06828） */
  --bg: #f4f6f5;
  --card: #ffffff;
  --ink: #17251f;
  --ink-2: #52625a;
  --ink-3: #8a998f;
  --line: #e4eae6;
  --brand: #11634f;
  --brand-deep: #0b4a3b;
  --brand-soft: #e3f1ec;
  --red: #d9484d;
  --red-soft: #fbeaea;
  --orange: #f06828;
  --orange-soft: #fdeee3;
  --green: #1f9d63;
  --green-soft: #e6f6ee;
  --shadow: 0 6px 20px rgba(23, 37, 31, .07);
  --radius: 16px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.app { max-width: 520px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: 84px; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 17px; margin: 0; font-weight: 600; }
.topbar .sub { font-size: 12px; color: var(--ink-3); }
.topbar .spacer { flex: 1; }

.wrap { padding: 14px 16px 8px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.card h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card h3 .tag { font-weight: 500; }
.muted { color: var(--ink-3); font-size: 12.5px; }
.small { font-size: 12.5px; color: var(--ink-2); }

.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.wrap-row { display: flex; flex-wrap: wrap; gap: 8px; }

.btn {
  border: 0; border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 500;
  background: var(--brand-soft); color: var(--brand); cursor: pointer; transition: .15s;
  font-family: inherit;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.ghost { background: #f0f3f1; color: var(--ink-2); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.sm { padding: 6px 10px; font-size: 12.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; }

input, select, textarea {
  width: 100%; border: 1px solid var(--line); background: #fbfcfe; border-radius: 12px;
  padding: 11px 12px; font: inherit; color: var(--ink); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(17, 99, 79, .12); }
textarea { min-height: 118px; resize: vertical; line-height: 1.7; }
label.field { display: block; margin-bottom: 10px; }
label.field > span { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: #f0f3f1; color: var(--ink-2);
  white-space: nowrap; flex: 0 0 auto;
}
.pill.blue { background: var(--brand-soft); color: var(--brand); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.orange { background: var(--orange-soft); color: var(--orange); }
.pill.green { background: var(--green-soft); color: var(--green); }

.list-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: 0; }
.avatar {
  width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center; font-weight: 600; font-size: 14px;
}
.avatar.g3 { background: var(--orange-soft); color: var(--orange); }

.tabs {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: 520px; display: flex; background: #fff;
  border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  z-index: 30;
}
.tabs button {
  flex: 1; border: 0; background: none; padding: 8px 0; font: inherit; font-size: 11.5px;
  color: var(--ink-3); display: grid; justify-items: center; gap: 3px; cursor: pointer;
}
.tabs button b { font-size: 17px; font-weight: 400; line-height: 1; }
.tabs button.on { color: var(--brand); font-weight: 600; }

.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  background: rgba(24, 32, 48, .92); color: #fff; padding: 10px 16px; border-radius: 12px;
  font-size: 13.5px; max-width: 86%; z-index: 99; animation: pop .2s ease;
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, 8px); } }

.photo-box { position: relative; border-radius: 12px; overflow: hidden; background: #eef2ef; }
.photo-box img { display: block; width: 100%; }
.ph-empty {
  aspect-ratio: 3 / 4; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  font-size: 11px; color: var(--ink-3); background: #f4f7f5;
  border: 1px dashed var(--line); border-radius: 12px;
}
.ph-empty span { font-size: 10px; opacity: .7; }
.mark {
  position: absolute; border: 2px solid var(--red); border-radius: 6px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .02) inset;
}
.mark.circle { border-style: dashed; }
.mark.half { border-color: var(--orange); }
.mark.mark { border-color: var(--gray, #8a94a6); border-style: dotted; }
.mark .badge {
  position: absolute; top: -9px; left: -9px; background: var(--red); color: #fff;
  font-size: 10px; padding: 1px 5px; border-radius: 6px;
}
.mark.half .badge { background: var(--orange); }
.mark.mark .badge { background: var(--gray, #8a94a6); }

.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 2px; }
.thumbs .ph { flex: 0 0 96px; }
.thumbs .ph img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }

.login-hero { text-align: center; padding: 44px 16px 18px; }
.login-hero .logo {
  width: 64px; height: 64px; border-radius: 20px; background: var(--brand); color: #fff;
  display: grid; place-items: center; margin: 0 auto 14px; font-size: 28px; font-weight: 700;
  box-shadow: 0 10px 24px rgba(17, 99, 79, .3);
}
.login-hero h2 { margin: 0 0 6px; font-size: 20px; }
.seg { display: flex; background: #eef2ef; border-radius: 12px; padding: 3px; margin-bottom: 16px; }
.seg button {
  flex: 1; border: 0; background: none; padding: 9px 0; border-radius: 10px; font: inherit;
  font-size: 13.5px; color: var(--ink-2); cursor: pointer;
}
.seg button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }

.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 13.5px; }
.kv .k { color: var(--ink-2); }
.kv .v { font-weight: 500; }

.empty { text-align: center; color: var(--ink-3); font-size: 13px; padding: 22px 0; }

.bar { height: 6px; border-radius: 99px; background: #edf1ee; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #1e8268); border-radius: 99px; }

.note {
  background: var(--brand-soft); color: #0e5140; border-radius: 12px;
  padding: 10px 12px; font-size: 12.5px; line-height: 1.6;
}

.sheet-mask {
  position: fixed; inset: 0; background: rgba(15, 22, 36, .45); z-index: 60;
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%; max-width: 520px; background: #fff; border-radius: 20px 20px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 86vh; overflow: auto;
}
.sheet h3 { margin: 0 0 12px; font-size: 16px; }

@media (min-width: 560px) {
  body { background: #e9ede9; }
  .app { box-shadow: 0 0 0 1px var(--line), 0 18px 60px rgba(20, 33, 60, .08); min-height: 100vh; }
}

/* ---------- 班级工作台（双栏：左栏固定学生列表） ---------- */
.app.ws-page { padding-bottom: 0; display: flex; flex-direction: column; height: 100vh; }
.ws-page .topbar { flex-shrink: 0; }
.ws { flex: 1; display: flex; align-items: stretch; overflow: hidden; }

.subtabs {
  flex-shrink: 0; display: flex; background: #fff;
  border-bottom: 1px solid var(--line);
}
.subtabs button {
  flex: 1; border: 0; background: none; padding: 12px 0; font: inherit;
  font-size: 14.5px; color: var(--ink-2); cursor: pointer;
  border-bottom: 2px solid transparent;
}
.subtabs button.on { color: var(--brand); font-weight: 600; border-bottom-color: var(--brand); }

.ws-rail {
  width: 92px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--line);
  overflow-y: auto; padding: 4px 0;
}
.ws-rail .ri {
  padding: 11px 6px; text-align: center; font-size: 13px; cursor: pointer;
  border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ws-rail .ri.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.ws-rail .dot {
  width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 4px; vertical-align: 1px;
}
.ws-rail .ri-n {
  font-style: normal; font-size: 9.5px; color: var(--ink-3); margin-left: 2px;
  display: inline-block; transform: translateY(-1px);
}
.ws-rail .ri.on .ri-n { color: var(--brand); }
.ws-rail .rail-note {
  margin: 8px 4px; padding: 8px 4px; text-align: center; line-height: 1.5;
  font-size: 9.5px; color: var(--ink-3); background: #f6f8f7; border-radius: 8px;
}

.ws-main { flex: 1; min-width: 0; overflow-y: auto; padding: 12px; }
.ws-foot {
  flex-shrink: 0; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
}

/* ---------- 工作台统计卡 ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.stat-card {
  background: var(--card); border-radius: var(--radius); padding: 18px 10px 14px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid var(--line); cursor: pointer; transition: .15s;
}
.stat-card:active { transform: scale(.97); }
.stat-card b { font-size: 26px; display: block; line-height: 1.2; }
.stat-card span { font-size: 12px; color: var(--ink-2); }
.stat-card .pill { margin-top: 6px; }

/* ---------- 首页班级卡片 ---------- */
.sec-label { font-size: 13px; font-weight: 600; color: var(--ink-3); margin: 14px 2px 8px; letter-spacing: 1px; }
.count-row { display: flex; gap: 12px; font-size: 12px; color: var(--ink-3); margin-top: 4px; flex-wrap: wrap; }
.count-row b { font-weight: 600; color: var(--ink-2); }
.c-red { color: var(--red) !important; }
.c-green { color: var(--green) !important; }
.c-orange { color: var(--orange) !important; }

/* ---------- 作业登记 ---------- */
.kv-label { font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }

/* ---------- AI 点评卡 ---------- */
.ai-card { border-left: 3px solid var(--brand); }

/* ---------- 我的 ---------- */
.me-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.me-item {
  border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--ink-2);
  display: grid; justify-items: center; gap: 6px; cursor: pointer; padding: 10px 0; border-radius: 12px;
}
.me-item:active { background: var(--brand-soft); }
.me-item b { font-size: 22px; font-weight: 400; line-height: 1; }

.pill.brand { background: var(--brand-soft); color: var(--brand); }

/* ---------- 点名（对齐数字托管：筛选条 + 网格卡片） ---------- */
.subtabs.sub5 button { font-size: 13.5px; padding: 11px 0; letter-spacing: -.2px; }

.roll-bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: stretch;
  margin: -12px -12px 10px; padding: 6px 8px 0;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.roll-f {
  flex: 1 1 0; min-width: 0; border: 0; background: none; font: inherit;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer;
  padding: 7px 0 9px; border-bottom: 2px solid transparent; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.roll-f b { font-weight: 500; font-size: 11.5px; margin-left: 1px; }
.roll-f.on { color: var(--brand); font-weight: 600; border-bottom-color: var(--brand); }

.roll-tip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--brand-soft); color: #0e5140;
  border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; font-size: 12.5px;
}
.roll-tip b { font-size: 14px; }

.roll-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-bottom: 8px; }

.stu-card {
  background: #fff; border-radius: 12px; padding: 8px 6px 7px;
  box-shadow: 0 2px 8px rgba(23, 37, 31, .05); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: stretch;
  min-width: 0; transition: .15s;
}
.stu-card.marked { border-color: #d6e4de; }
.stu-tag {
  font-size: 9px; color: var(--ink-3); line-height: 1.2; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0; letter-spacing: -.3px;
}
.stu-name {
  font-size: 16px; font-weight: 600; text-align: center; color: var(--ink);
  padding: 7px 0 5px; letter-spacing: .3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stu-time { font-size: 10px; color: var(--ink-3); text-align: center; line-height: 1; margin-bottom: 5px; }

.stu-acts { display: flex; gap: 3px; min-width: 0; }
.act-btn {
  flex: 1 1 0; min-width: 0; border: 0; border-radius: 5px; padding: 6px 0;
  font: inherit; font-size: 11px; font-weight: 500; color: #fff; cursor: pointer;
  white-space: nowrap; overflow: hidden; transition: .12s; font-family: inherit;
}
.act-btn:active { transform: scale(.95); }
.act-btn.leave { background: var(--red); }
.act-btn.present { background: var(--brand); }
.act-btn.out { background: #65756e; }                 /* 签退：中性深灰，不抢签到/请假的注意力 */
.act-btn.out.wait { background: #eff2f0; color: #aab5ae; }  /* 还没确认状态：视觉上先劝退 */
/* 已标记：未选中的签到 / 请假变浅，选中的加深并打勾；签退保持可点 */
.stu-card.marked .act-btn.present:not(.on),
.stu-card.marked .act-btn.leave:not(.on) { background: #eff2f0; color: #9fada5; }
.act-btn.leave.on { background: #bf3b40; }
.act-btn.present.on { background: var(--brand-deep); }
.act-btn.out.on { background: #3a4a43; }
.act-btn.on { font-size: 10px; letter-spacing: -.4px; }
.act-btn.on::before { content: '✓'; font-size: 9px; margin-right: 1px; }
/* 已签退：签到 / 请假锁死置灰，防误点（要压过 .on 的配色） */
.act-btn:disabled { cursor: not-allowed; transform: none; }
.stu-card.out .act-btn.present,
.stu-card.out .act-btn.leave,
.act-btn:disabled { background: #eff2f0; color: #c6cfc9; }
.stu-card.out .act-btn.present.on::before,
.stu-card.out .act-btn.leave.on::before { color: #c6cfc9; }
.stu-card.st-leave .stu-name { color: var(--ink-2); }
.stu-time.warn { color: var(--orange); }

/* ---------- 历史记录：日期区间 + 每日汇总表 ---------- */

.hist-dates {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border-radius: 99px; padding: 8px 12px; margin-bottom: 12px;
  border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(23, 37, 31, .04);
}
.hd-ico { display: flex; align-items: center; color: var(--ink-3); flex: 0 0 auto; }
.hist-dates input[type="date"] {
  flex: 1 1 0; min-width: 0; border: 0; background: none;
  font: inherit; font-size: 13px; color: var(--ink); text-align: center;
  padding: 2px 0; -webkit-appearance: none; appearance: none;
}
.hist-dates input[type="date"]::-webkit-calendar-picker-indicator { opacity: .35; }
.hd-dash { color: var(--ink-3); font-size: 13px; }

.hist-quick { display: flex; gap: 10px; margin-bottom: 12px; }
.hq {
  flex: 1 1 0; min-width: 0; border: 1px solid var(--brand); background: #fff;
  color: var(--brand); font: inherit; font-size: 13.5px; font-weight: 500;
  padding: 8px 0; border-radius: 99px; cursor: pointer; transition: .15s;
  white-space: nowrap;
}
.hq.on { background: var(--brand); color: #fff; }
.hq:active { transform: scale(.97); }

.hist-table { border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(23, 37, 31, .06); }
.ht-head, .ht-row {
  display: grid; grid-template-columns: 1.5fr repeat(5, 1fr);
  align-items: center; text-align: center; font-size: 13px;
}
.ht-head {
  background: var(--brand); color: #fff; font-weight: 500;
  padding: 11px 4px; letter-spacing: .3px;
}
.ht-row {
  padding: 12px 4px; color: var(--ink); cursor: pointer;
  border-bottom: 1px solid rgba(17, 99, 79, .06);
  transition: background .12s;
}
.ht-row:nth-child(even) { background: #f2faf6; }
.ht-row:nth-child(odd) { background: #fbfefc; }
.ht-row:last-child { border-bottom: 0; }
.ht-row:active { background: var(--brand-soft); }
.ht-row span:first-child { font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.ht-row span:not(:first-child) { font-weight: 500; }

.hist-sum {
  display: flex; gap: 16px; justify-content: center;
  font-size: 12.5px; color: var(--ink-2); padding: 10px 0 2px;
}
.hist-sum b { color: var(--brand); font-size: 14px; }

/* ---------- 家长端：老师消息（推送） ---------- */
.notice {
  display: flex; gap: 10px; padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.notice:last-child { border-bottom: 0; }
.nt-ico {
  width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px;
  background: var(--brand-soft); display: grid; place-items: center; font-size: 14px;
}
.nt-t { font-size: 13px; font-weight: 600; color: var(--brand); margin-bottom: 2px; }
.nt-x { font-size: 14px; color: var(--ink); line-height: 1.5; margin-bottom: 2px; }

/* ---------- 作业登记：左栏学生 + 三种录入（文本 / 语音 / 拍照） ---------- */

.hw-head { padding: 12px 14px; }
.hw-types { display: flex; gap: 6px; margin-top: 10px; }
.hw-types button {
  flex: 1 1 0; min-width: 0; border: 1px solid var(--line); background: #fff; border-radius: 9px;
  padding: 7px 0; font: inherit; font-size: 12.5px; color: var(--ink-2); cursor: pointer;
  white-space: nowrap; transition: .15s;
}
.hw-types button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.hw-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.hm {
  border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 9px 2px 8px; font: inherit; font-size: 12px; color: var(--ink-2);
  cursor: pointer; display: grid; justify-items: center; gap: 4px; min-width: 0;
  white-space: nowrap; transition: .15s;
}
.hm b { font-size: 16px; font-weight: 400; line-height: 1; }
/* 四个模式并排时「一键快拍」会被 grid 压成两行，必须给文字独立元素并强制单行 */
.hm .hm-t { white-space: nowrap; font-size: 12px; line-height: 1.35; letter-spacing: -.2px; }
.hm.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.hm:active { transform: scale(.97); }

.hw-rule { margin-top: 10px; font-size: 11.5px; color: var(--ink-3); line-height: 1.7; }
.hw-rule b { color: var(--ink-2); font-weight: 600; }
.link {
  border: 0; background: none; font: inherit; font-size: 12px;
  color: var(--brand); cursor: pointer; padding: 0; white-space: nowrap;
}

/* 语音 */
.voice { text-align: center; padding: 8px 0 14px; }
.mic {
  width: 74px; height: 74px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 26px; line-height: 1;
  box-shadow: 0 8px 20px rgba(17, 99, 79, .28); transition: .18s;
}
.mic:active { transform: scale(.96); }
.mic.rec { background: var(--red); animation: micpulse 1.5s infinite; }
@keyframes micpulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 72, 77, .42); }
  70% { box-shadow: 0 0 0 16px rgba(217, 72, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 72, 77, 0); }
}
.voice-tip { font-size: 12px; color: var(--ink-3); margin-top: 10px; line-height: 1.6; padding: 0 6px; }
.voice-warn { font-size: 11.5px; color: var(--orange); margin-top: 6px; }

/* 拍照 */
.photo-drop {
  width: 100%; border: 1px dashed #c9d8d0; background: #f8fbf9; border-radius: 12px;
  padding: 0; cursor: pointer; overflow: hidden; font: inherit; color: var(--ink-3);
  display: block; text-align: center;
}
.photo-drop img { width: 100%; max-height: 300px; object-fit: contain; background: #eef2ef; display: block; }
.photo-drop:disabled { opacity: .6; }
.pd-ico { font-size: 26px; padding-top: 22px; line-height: 1; }
.pd-t { font-size: 13px; color: var(--ink-2); margin: 8px 14px 3px; }
.pd-s { font-size: 11.5px; padding-bottom: 22px; }

.hw-raw summary { font-size: 12px; color: var(--ink-3); cursor: pointer; margin-top: 10px; }
.hw-raw pre {
  white-space: pre-wrap; font: 11.5px/1.7 inherit; color: var(--ink-2);
  background: #f6f8f7; border-radius: 8px; padding: 8px 10px; margin: 6px 0 0;
  max-height: 150px; overflow: auto;
}

/* 核对表 */
.hwt { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.hwt-head, .hwt-row {
  display: grid; grid-template-columns: 74px minmax(0, 1fr) 40px;
  gap: 6px; align-items: center;
}
.hwt-head {
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 500;
  padding: 8px 10px; letter-spacing: .3px;
}
.hwt-row { padding: 7px 10px; border-bottom: 1px solid var(--line); background: #fff; }
.hwt-row:last-child { border-bottom: 0; }
.hwt-row select, .hwt-row input {
  padding: 7px 8px; font-size: 13px; border-radius: 8px; min-width: 0;
}
.hwt-del {
  border: 0; background: none; color: var(--red); font: inherit; font-size: 12px;
  cursor: pointer; padding: 0; white-space: nowrap;
}

/* 已登记列表 */
.hw-saved {
  display: flex; align-items: center; gap: 8px; padding: 10px 0;
  border-bottom: 1px solid var(--line); font-size: 13px;
}
.hw-saved:last-child { border-bottom: 0; }
.hs-sub { color: var(--brand); font-weight: 600; font-size: 12.5px; flex: 0 0 auto; }
.hs-c { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-del {
  border: 0; background: none; color: var(--ink-3); font: inherit; font-size: 12px;
  cursor: pointer; padding: 0 2px; flex: 0 0 auto;
}

/* ---------- 批改页（照模板：左栏状态点 / 科目卡片 / 三图标 / 备注） ---------- */

.ws-rail { width: 112px; }
.ws-rail .ri.gr {
  position: relative; display: block; padding: 9px 26px 9px 8px; text-align: left;
}
.ws-rail .ri.gr .nm {
  display: block; font-size: 13.5px; line-height: 1.2; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ws-rail .ri.gr.on .nm { color: var(--brand); font-weight: 600; }
.ws-rail .badge {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; padding: 0; border-radius: 50%;
  background: #e0483f; color: #fff; font-style: normal; font-size: 10.5px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
}
.ws-rail .badge.gray { background: #cfd8d2; min-width: 9px; width: 9px; height: 9px; padding: 0; }
.ws-rail .cls {
  display: block; margin-top: 1px; font-size: 9.5px; color: var(--ink-3);
  letter-spacing: .1px; white-space: nowrap;
}

.gc-bar {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--ink-2); padding: 0 2px 9px;
}
.gc-bar b { color: #e0483f; font-size: 14px; }
.gc-bar .muted { font-size: 11px; color: var(--ink-3); }

.gcard {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 11px 11px; margin-bottom: 10px;
}
.gcard.empty-card { text-align: center; color: var(--ink-3); font-size: 12.5px; padding: 18px 10px; }

.gc-top { display: flex; align-items: center; gap: 6px; }
.gc-subj { font-size: 15.5px; font-weight: 600; color: var(--ink); letter-spacing: .2px; }
.gc-tag {
  font-size: 10px; line-height: 1; padding: 3px 5px; border-radius: 5px;
  background: #eef3f0; color: #5c6f66; border: 1px solid #e2eae5;
}
.gc-tag.org { background: #fdefe0; color: #b4611f; border-color: #f3d9bd; }
.gc-acts { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.gc-ico {
  border: 0; background: none; padding: 0; cursor: pointer; color: #8a978f;
  display: inline-flex; align-items: center; line-height: 0;
}
.gc-ico.cam { color: var(--brand); }
.gc-ico:active { transform: scale(.92); }

.gc-item { display: flex; align-items: center; gap: 5px; margin-top: 9px; }
.gc-no {
  font-size: 13.5px; color: var(--ink-2); font-weight: 500; flex: 0 0 auto;
  cursor: pointer; user-select: none; -webkit-user-select: none; padding: 1px 2px;
  -webkit-touch-callout: none;
}
.gc-txt {
  flex: 1 1 auto; min-width: 0; font-size: 14px; color: var(--ink); line-height: 1.45;
  overflow-wrap: anywhere;
}
.gc-txt.done { color: var(--ink-3); }
.gc-done {
  flex: 0 0 auto; border: 1px solid #f6cdb2; background: var(--orange-soft); color: #cf5312;
  font: inherit; font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 11px;
  cursor: pointer; white-space: nowrap; transition: .15s;
}
/* 点过之后：灰底灰字，退到背景里 */
.gc-done.on { border-color: #e6eae7; background: #eef1ef; color: #9aa59f; font-weight: 500; }
.gc-done:active { transform: scale(.95); }

.gc-photos {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px; margin-top: 9px;
}
.gp {
  position: relative; aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden;
  background: #f2f5f3; border: 1px solid #e8eeea;
}
.gp img, .gp video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-empty {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  font-size: 9px; color: var(--ink-3); line-height: 1.5; padding: 4px;
}
.gp-empty span { color: #b9c4bd; }
.gp-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 15px; text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
  background: rgba(0, 0, 0, .18); pointer-events: none;
}
.gp-x {
  position: absolute; top: 0; right: 0; width: 15px; height: 15px; border: 0; padding: 0;
  background: #e0483f; color: #fff; font-size: 11px; line-height: 1; cursor: pointer;
  border-radius: 0 6px 0 8px; display: grid; place-items: center;
}

.gc-note {
  margin-top: 8px; font-size: 11.5px; color: #d9673f;
}
.gc-note em { font-style: normal; color: var(--ink-3); margin-left: 6px; font-size: 11px; }

.gc-sec { margin-top: 16px; }
.gc-sec-h {
  display: flex; align-items: baseline; gap: 7px; font-size: 14px; font-weight: 600;
  color: var(--ink); padding: 0 2px 9px;
}
.gc-sec-h span { font-size: 11px; font-weight: 400; color: var(--ink-3); }
.gcard.org { background: #fdf6ef; border-color: #f0dcc6; }
.gcard.org .gc-subj { color: #8a5220; }
.gcard.org .gc-done { border-color: #e8c8a8; background: #fbe4d0; color: #b4611f; }
.gcard.org .gc-done.on { border-color: #ece4d9; background: #f2eee8; color: #b3a795; }
.gc-empty { text-align: center; font-size: 12.5px; color: #b08f6e; padding: 14px 0 6px; }

.topbar .btn.back {
  font-size: 21px; line-height: 1; padding: 2px 11px 5px; font-weight: 500; color: var(--ink-2);
}

/* ---------- 反馈：每日点评（可直接改 / 语音补写 / 复制 / 发送） ---------- */

.fb-text {
  min-height: 156px; font-size: 14px; line-height: 1.85;
  background: #fbfcfb; border-color: #e2eae5;
}
.fb-sub { margin-top: 8px; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }

.fb-bar {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px; margin-top: 10px;
}
.fb-btn {
  min-width: 0; white-space: nowrap; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 3px;
  border: 1px solid var(--line); background: #fff; border-radius: 11px;
  padding: 9px 0; font-size: 12.5px; color: var(--ink-2); transition: .15s;
}
.fb-btn b { font-weight: 400; font-size: 13px; line-height: 1; }
.fb-btn:active { transform: scale(.97); }
.fb-btn.send { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.fb-btn.rec {
  background: var(--red-soft); border-color: #f0c7c8; color: var(--red); font-weight: 600;
  animation: fbpulse 1.4s ease-in-out infinite;
}
@keyframes fbpulse { 0%, 100% { opacity: 1; } 50% { opacity: .58; } }
.fb-rec { margin-top: 8px; font-size: 11.5px; color: var(--red); text-align: center; line-height: 1.6; }

/* ===== 首页 · 问候区 / AI 入口 / 班级卡 ===== */
.home-hero {
  position: relative; overflow: hidden;
  padding: 20px 18px 16px;
  background: linear-gradient(155deg, #e6f3ee 0%, #f3f8f5 52%, #ffffff 100%);
  border-bottom: 1px solid rgba(17, 99, 79, .08);
}
.home-hero::after {
  content: ''; position: absolute; right: -46px; top: -58px;
  width: 168px; height: 168px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(240, 104, 40, .16), rgba(240, 104, 40, 0) 68%);
  pointer-events: none;
}
.hero-top { display: flex; align-items: flex-start; gap: 12px; }
.hero-hi { font-size: 21px; font-weight: 650; letter-spacing: -.2px; color: var(--ink); }
.hero-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.hero-avatar {
  width: 42px; height: 42px; flex: 0 0 auto; border-radius: 14px;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-size: 16px; font-weight: 600; box-shadow: 0 6px 14px rgba(17, 99, 79, .22);
}
.hero-strip {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px;
  padding-top: 12px; border-top: 1px dashed rgba(17, 99, 79, .16);
  font-size: 12px; color: var(--ink-2);
}
.hero-strip span { display: inline-flex; align-items: center; gap: 5px; }
.hero-strip b { font-size: 13px; font-weight: 600; color: var(--ink); }

.dt { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; display: inline-block; }
.dt.g { background: var(--green); }
.dt.o { background: var(--orange); }
.dt.r { background: var(--red); }
.dt.b { background: #2f7fd1; }

.sec-count {
  display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 8px;
  background: #eef2ef; color: var(--ink-3); font-size: 11px; font-weight: 500; letter-spacing: 0;
}

.feature {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  border: 1px solid rgba(17, 99, 79, .1); border-radius: 18px; padding: 15px;
  background: linear-gradient(120deg, #ffffff 0%, #f4faf7 100%);
  box-shadow: 0 8px 22px rgba(23, 37, 31, .07); cursor: pointer; font-family: inherit;
  margin-bottom: 10px;
}
.feature:active { transform: scale(.994); }
.feature-ic {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #eef8f3, #dceee7);
  box-shadow: inset 0 0 0 1px rgba(17, 99, 79, .07);
  color: var(--brand);
}
.feature-ic svg { width: 25px; height: 25px; }
.feature-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.feature-main b { font-size: 16px; font-weight: 600; letter-spacing: -.1px; }
.feature-main em { font-style: normal; font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.feature-go {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 15px; line-height: 1;
}

.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mini-card {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 13px; box-shadow: var(--shadow); cursor: pointer; font-family: inherit;
  min-width: 0;
}
.mini-card:active { transform: scale(.985); }
.mini-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 5px; }
.mini-ic svg { width: 19px; height: 19px; }
.mini-ic.o { background: var(--orange-soft); color: var(--orange); }
.mini-ic.b { background: #e8f0fb; color: #2f7fd1; }
.mini-card b { font-size: 14px; }
.mini-card em {
  font-style: normal; font-size: 11px; color: var(--ink-3); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.cls-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 15px; box-shadow: var(--shadow); margin-bottom: 10px; cursor: pointer;
}
.cls-card:active { transform: scale(.995); }
.cls-top { display: flex; align-items: center; gap: 10px; }
.cls-name { font-size: 15.5px; font-weight: 600; letter-spacing: -.1px; }
.cls-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.cls-go {
  flex: 0 0 auto; padding: 7px 13px; border-radius: 11px;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 4px 10px rgba(17, 99, 79, .2);
}
.cls-prog { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.cls-prog .bar { flex: 1; height: 5px; }
.cls-prog span { font-size: 11.5px; color: var(--ink-3); flex: 0 0 auto; }
.cls-prog b { color: var(--brand); font-weight: 600; }
.cls-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--ink-2); background: #f4f7f5;
  border-radius: 8px; padding: 3px 8px;
}
.chip.ok { color: var(--green); background: var(--green-soft); }

/* 答案匹配提示 */
.ans-box { border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.ans-box b { font-size: 13.5px; }
.ans-box span { font-size: 12px; }
.ans-box em { font-style: normal; font-size: 11.5px; opacity: .78; margin-top: 2px; }
.ans-box.ok { background: var(--green-soft); color: #14603f; }
.ans-box.warn { background: var(--orange-soft); color: #9a4413; }

.ag-preview { position: relative; }
.ag-preview img { width: 100%; max-height: 300px; object-fit: contain; background: #eef2ef; border-radius: 12px; display: block; }
.ag-preview button { position: absolute; right: 8px; top: 8px; background: rgba(255, 255, 255, .94); }

.grading { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0 2px; }
.grading-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--orange); margin-top: 7px; flex: 0 0 auto;
  animation: gpulse 1.1s infinite;
}
@keyframes gpulse {
  0% { box-shadow: 0 0 0 0 rgba(240, 104, 40, .5); }
  70% { box-shadow: 0 0 0 10px rgba(240, 104, 40, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 104, 40, 0); }
}
.steps { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.steps span {
  font-size: 11px; color: var(--ink-3); background: #f2f5f3; border-radius: 8px; padding: 2px 7px;
  animation: gfade 1.8s infinite;
}
@keyframes gfade { 0%, 100% { opacity: .4; } 40% { opacity: 1; color: var(--brand); } }

.ag-done { display: flex; align-items: center; gap: 12px; padding-top: 8px; }
.ag-done > div:first-child { text-align: center; }
.ag-done > div:first-child b { font-size: 24px; color: var(--red); }
.ag-done > div:first-child span { display: block; font-size: 11px; color: var(--ink-3); }

.ag-q { border-top: 1px solid var(--line); padding: 12px 0; }
.ag-q:first-child { border-top: 0; padding-top: 0; }
.ag-qh { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ag-qh .no, .mp-qh .no {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 600; background: #eef2ef; color: var(--ink-2); flex: 0 0 auto;
}
.ag-qh .no.right { background: var(--green-soft); color: var(--green); }
.ag-qh .no.half { background: var(--orange-soft); color: var(--orange); }
.ag-qh .no.wrong { background: var(--red-soft); color: var(--red); }
.ag-fixed {
  position: sticky; bottom: 76px; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 12px; box-shadow: var(--shadow); margin-top: 4px;
}

/* 错题变式 */
.mp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.mp-thumb { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #eef2ef; }
.mp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-thumb button {
  position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  border: 0; background: rgba(217, 72, 77, .92); color: #fff; font-size: 13px; line-height: 1;
}
.mp-add {
  aspect-ratio: 1 / 1; border: 1px dashed #c9d5ce; border-radius: 10px; background: #fafcfb;
  color: var(--ink-3); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 18px;
}
.mp-add span { font-size: 11px; }
.mp-item { border-top: 1px solid var(--line); padding: 10px 0; }
.mp-item:first-of-type { border-top: 0; padding-top: 0; }
.mp-qh { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.mp-qh b { font-size: 12.5px; color: var(--brand); }
.mp-qh i { font-style: normal; font-size: 11px; color: var(--red); background: var(--red-soft); padding: 1px 7px; border-radius: 8px; }
.mp-stem { font-size: 13.5px; margin-bottom: 6px; }
.mp-var {
  font-size: 12.5px; color: var(--brand-deep); background: #f3f8f6;
  border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; padding: 6px 10px;
}
.mp-var span { font-size: 10.5px; color: var(--orange); border: 1px solid var(--orange); border-radius: 5px; padding: 0 4px; margin-right: 6px; }

/* 机构作业卡片底部 AI 批改入口 */
.gc-ai {
  width: 100%; margin-top: 10px; border: 1px dashed rgba(240, 104, 40, .55);
  background: #fff8f3; color: #b04a12; border-radius: 10px; padding: 8px;
  font-size: 12.5px; font-weight: 600;
}

/* ===== 工作台 · 学生明细 ===== */
.stat-card.on {
  border-color: rgba(17, 99, 79, .35);
  box-shadow: 0 6px 18px rgba(17, 99, 79, .12);
  background: linear-gradient(160deg, #ffffff, #f3faf6);
}

.desk-filter {
  display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.desk-filter::-webkit-scrollbar { display: none; }
.dchip {
  flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 6px 11px; font-size: 12px; font-family: inherit;
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
}
.dchip b { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.dchip.on {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 4px 10px rgba(17, 99, 79, .2);
}
.dchip.on b { color: rgba(255, 255, 255, .82); }

.grp-head {
  display: flex; align-items: baseline; gap: 8px; margin: 12px 2px 8px;
}
.grp-head b { font-size: 13px; font-weight: 600; color: var(--ink); }
.grp-head span { font-size: 11px; color: var(--ink-3); }

.stup {
  background: var(--card); border: 1px solid var(--line); border-radius: 15px;
  padding: 12px 13px; box-shadow: 0 3px 12px rgba(23, 37, 31, .05);
  margin-bottom: 8px;
}
.stup.is-leave { background: #fbfbfa; border-style: dashed; box-shadow: none; }
.stup-top { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.stup-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.stup-dot.present { background: var(--green); }
.stup-dot.out { background: #b6c2ba; }
.stup-dot.leave { background: var(--orange); }
.stup-dot.none { background: var(--red); }
.stup-name { font-size: 14.5px; font-weight: 600; letter-spacing: -.1px; }
.stup-top .pill { font-size: 10.5px; padding: 2px 7px; }
.stup-todo { font-size: 11px; color: var(--red); }
.stup-todo.ok { color: var(--ink-3); }
.stup-sub { font-size: 11px; color: var(--ink-3); margin: 5px 0 9px; }
.stup-leave {
  font-size: 11.5px; color: #9a6a3c; background: #fdf6ee;
  border-radius: 9px; padding: 7px 10px;
}
.stup-none { font-size: 11.5px; color: var(--ink-3); padding: 4px 0 2px; }

.scells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.scell {
  background: #f8faf9; border-radius: 10px; padding: 8px 9px 7px;
  border: 1px solid #eef2ef; min-width: 0;
}
.scell-h { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
.scell-h span { font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scell-h b { font-size: 15.5px; font-weight: 650; line-height: 1.1; color: var(--ink-2); flex: 0 0 auto; }
.scell-h b i { font-style: normal; font-size: 9.5px; font-weight: 500; margin-left: 1px; }
.scell-h b.good { color: var(--green); }
.scell-h b.warn { color: var(--orange); }
.scell-h b.bad { color: var(--red); }
.scell-bar { height: 3px; border-radius: 99px; background: #e7ece9; margin: 6px 0 5px; overflow: hidden; }
.scell-bar i { display: block; height: 100%; border-radius: 99px; background: #b6c2ba; }
.scell-bar i.good { background: var(--green); }
.scell-bar i.warn { background: var(--orange); }
.scell-bar i.bad { background: var(--red); }
.scell-f { display: flex; gap: 7px; font-size: 9.5px; color: var(--ink-3); white-space: nowrap; }
.scell-f em { font-style: normal; }
.scell-f em.has { color: var(--red); }
.scell-f em.has::before { content: '·'; margin-right: 3px; color: #d5dcd8; }
.scell-f em.has:first-child::before { content: ''; margin: 0; }

.stup-foot { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.stup-weak {
  font-size: 10.5px; color: #9a4413; background: #fdf1e8;
  border-radius: 7px; padding: 2px 7px; white-space: nowrap;
}
.mini {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 9px; padding: 4px 10px; font-size: 11.5px; font-family: inherit; cursor: pointer;
  flex: 0 0 auto;
}
.mini:active { background: #f2f5f3; }

.desk-legend {
  font-size: 10.5px; color: var(--ink-3); line-height: 1.7;
  background: #f7faf8; border-radius: 9px; padding: 6px 9px; margin-bottom: 4px;
}

/* ==============================================================
   家长端
   ============================================================== */

.p-app { padding-bottom: 78px; }
.p-body { min-height: 100vh; }
.p-tabs button b svg { width: 21px; height: 21px; display: block; }

/* --- Hero：今天的整体状态 --- */
.p-hero {
  position: relative; overflow: hidden;
  padding: 16px 18px 18px;
  border-radius: 0 0 26px 26px;
  background: linear-gradient(158deg, #17735b 0%, #11634f 46%, #0a4235 100%);
  color: #fff;
}
.p-hero::after {
  content: ''; position: absolute; right: -46px; top: -70px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .16), transparent 68%);
  pointer-events: none;
}
.p-hero.leave { background: linear-gradient(158deg, #7a6a52 0%, #5f5342 55%, #4a4034 100%); }
.p-hero.none { background: linear-gradient(158deg, #56665f 0%, #41524b 55%, #35443e 100%); }

.p-hero-top { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.p-who { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.p-ava {
  width: 40px; height: 40px; border-radius: 13px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 16px; font-weight: 600;
  background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .22);
}
.p-who-t { min-width: 0; }
.p-who-t b { display: block; font-size: 17px; letter-spacing: .2px; }
.p-who-t span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .66); margin-top: 1px; }
.p-switch {
  flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1);
  color: #fff; font: inherit; font-size: 12px; padding: 5px 11px; border-radius: 999px; cursor: pointer;
}
.p-hero-badge {
  flex: 0 0 auto; font-size: 11px; padding: 4px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .72);
}

.p-state { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; position: relative; z-index: 1; }
.p-state-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #7fe0bb; flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(127, 224, 187, .18); align-self: center;
}
.p-hero.leave .p-state-dot, .p-hero.none .p-state-dot { background: #f7c98b; box-shadow: 0 0 0 4px rgba(247, 201, 139, .16); }
.p-state b { font-size: 19px; font-weight: 650; letter-spacing: -.2px; }
.p-state em { font-style: normal; font-size: 11.5px; color: rgba(255, 255, 255, .62); }

/* --- 时间线 --- */
.p-tl {
  position: relative; display: flex; justify-content: space-between;
  margin: 18px 0 4px; padding-top: 15px; z-index: 1;
}
.p-tl-line {
  position: absolute; left: 12px; right: 12px; top: 3px; height: 2px;
  background: rgba(255, 255, 255, .16); border-radius: 2px; overflow: hidden;
}
.p-tl-line i { display: block; height: 100%; background: #7fe0bb; border-radius: 2px; transition: width .3s; }
.p-step { flex: 1; text-align: center; position: relative; }
.p-step-dot {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: #2a5b4c;
  border: 1.5px solid rgba(255, 255, 255, .32); box-sizing: border-box;
}
.p-step.on .p-step-dot { background: #7fe0bb; border-color: #7fe0bb; box-shadow: 0 0 0 3px rgba(127, 224, 187, .2); }
.p-step b { display: block; font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .58); }
.p-step.on b { color: #fff; font-weight: 600; }
.p-step em { display: block; font-style: normal; font-size: 10px; color: rgba(255, 255, 255, .42); margin-top: 1px; font-variant-numeric: tabular-nums; }

.p-hero-nums {
  display: flex; gap: 10px; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .13); position: relative; z-index: 1;
}
.p-hero-nums > div { flex: 1; }
.p-hero-nums b { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.3px; line-height: 1.2; }
.p-hero-nums b.warn { color: #ffd9a8; }
.p-hero-nums span { font-size: 10.5px; color: rgba(255, 255, 255, .58); }

/* --- 区块头 --- */
.p-sec-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.p-sec-h b { font-size: 15px; font-weight: 600; letter-spacing: -.1px; }
.p-sec-h span { margin-left: auto; font-size: 11px; color: var(--ink-3); }

/* --- 分科情况 --- */
.p-subj { padding: 11px 0; border-top: 1px solid var(--line); }
.p-subj:first-of-type { border-top: 0; padding-top: 2px; }
.p-subj-h { display: flex; align-items: baseline; gap: 8px; }
.p-subj-h b { font-size: 14px; font-weight: 600; }
.p-subj-h span { font-size: 11px; }
.p-subj-h i { margin-left: auto; font-style: normal; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.p-subj-h i.good { color: var(--green); }
.p-subj-h i.warn { color: var(--orange); }
.p-subj-h i.bad { color: var(--red); }
.p-subj-bar { height: 4px; border-radius: 99px; background: #edf1ee; margin: 8px 0 6px; overflow: hidden; }
.p-subj-bar i { display: block; height: 100%; border-radius: 99px; background: #b6c2ba; }
.p-subj-bar i.good { background: var(--green); }
.p-subj-bar i.warn { background: var(--orange); }
.p-subj-bar i.bad { background: var(--red); }
.p-subj-f { display: flex; gap: 12px; }
.p-subj-f em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.p-more {
  display: block; width: 100%; margin-top: 10px; padding-top: 10px; border: 0; border-top: 1px solid var(--line);
  background: none; font: inherit; font-size: 12.5px; color: var(--brand); cursor: pointer; text-align: center;
}

/* --- 老师点评 --- */
.p-cm-text {
  font-size: 14px; line-height: 1.85; color: var(--ink);
  padding-left: 11px; border-left: 3px solid var(--brand-soft); white-space: pre-wrap;
}
.p-cm-foot { display: flex; align-items: center; margin-top: 10px; }
.p-cm-by { font-size: 11.5px; color: var(--ink-3); }
.p-cm-foot .link { margin-left: auto; font-size: 12px; }
.p-cm-wait { font-size: 13px; color: var(--ink-3); padding: 4px 0 2px; }
.card.empty-cm { background: #fbfcfb; box-shadow: none; border: 1px dashed var(--line); }

/* --- 错题 --- */
.p-ms-n { color: var(--red) !important; font-weight: 600; }
.p-ms-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.p-ms-chip {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--red-soft); color: #a53a3e;
}
.p-ms-chip b { margin-left: 3px; font-weight: 650; }
.p-ms-foot { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.p-pack {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 1px dashed #d8e6df; background: #fbfdfc; border-radius: 12px; padding: 10px 12px;
  font: inherit; cursor: pointer; margin-top: 4px;
}
.p-pack:active { transform: scale(.995); }
.p-pack-ic {
  flex: 0 0 auto; font-size: 9.5px; font-weight: 700; letter-spacing: .3px;
  color: var(--red); background: var(--red-soft); border-radius: 6px; padding: 5px 6px;
}
.p-pack-t { flex: 1; min-width: 0; }
.p-pack-t b { display: block; font-size: 13px; font-weight: 600; }
.p-pack-t em { display: block; font-style: normal; font-size: 10.5px; color: var(--ink-3); margin-top: 1px; }
.p-pack-go { font-size: 11.5px; color: var(--brand); flex: 0 0 auto; }

/* --- 本周 --- */
.p-week { display: flex; align-items: flex-end; gap: 8px; height: 92px; margin: 4px 0 14px; }
.p-wd { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; gap: 6px; }
.p-wd-bar {
  flex: 1; width: 100%; max-width: 22px; background: #f1f5f2; border-radius: 6px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.p-wd-bar i { display: block; width: 100%; border-radius: 6px 6px 0 0; background: #b6c2ba; }
.p-wd-bar i.good { background: var(--green); }
.p-wd-bar i.warn { background: var(--orange); }
.p-wd-bar i.bad { background: var(--red); }
.p-wd em { font-style: normal; font-size: 10px; color: var(--ink-3); }
.p-kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.p-kv b { display: block; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.p-kv span { font-size: 10.5px; color: var(--ink-3); }
.p-know { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.p-know .muted { margin-right: 2px; }
.p-know-chip {
  font-size: 11.5px; padding: 3px 9px; border-radius: 8px;
  background: var(--orange-soft); color: #9a4413;
}
.p-know-chip b { margin-left: 4px; font-weight: 650; }

/* --- 消息 --- */
.p-nt { display: flex; gap: 9px; padding: 10px 0; border-top: 1px solid var(--line); }
.p-nt:first-of-type { border-top: 0; padding-top: 0; }
.p-nt-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: 0 0 auto; margin-top: 7px;
}
.p-nt b { font-size: 12.5px; font-weight: 600; color: var(--brand); }
.p-nt-x { font-size: 13px; line-height: 1.55; margin: 1px 0 2px; }
.p-nt em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.p-tip { text-align: center; font-size: 10.5px; color: #a8b4ad; padding: 6px 0 18px; }

/* --- 作业回看 --- */
.p-dates {
  display: flex; gap: 7px; overflow-x: auto; padding: 12px 16px 2px;
  position: sticky; top: 0; background: var(--bg); z-index: 10;
}
.p-dates::-webkit-scrollbar { display: none; }
.p-date {
  flex: 0 0 auto; width: 46px; padding: 7px 0; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; font: inherit; cursor: pointer; display: grid; gap: 1px; justify-items: center;
}
.p-date b { font-size: 15px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.p-date em { font-style: normal; font-size: 9.5px; color: var(--ink-3); }
.p-date.on { background: var(--brand); border-color: var(--brand); }
.p-date.on b, .p-date.on em { color: #fff; }
.p-hw { padding: 12px 0; border-top: 1px solid var(--line); }
.p-hw:first-of-type { border-top: 0; padding-top: 0; }
.p-hw-h { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.p-hw-t { font-size: 10.5px; color: var(--ink-3); background: #f1f5f2; border-radius: 6px; padding: 1px 7px; }
.p-hw.org .p-hw-t { color: #b4611f; background: #fdefe0; }
.p-hw-c { font-size: 13.5px; line-height: 1.6; }
.p-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 9px; }
.p-ph-f { display: flex; justify-content: space-between; margin-top: 4px; font-size: 10.5px; color: var(--ink-3); }
.p-ph-f em { font-style: normal; color: var(--red); }
.p-ph-f em.ok { color: var(--green); }
.p-hw-empty { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }

/* --- 错题本 --- */
.p-ms-head {
  display: flex; gap: 10px; padding: 16px; background: #fff;
  border-bottom: 1px solid var(--line);
}
.p-ms-head-n { flex: 1; text-align: center; }
.p-ms-head-n b { display: block; font-size: 22px; font-weight: 650; color: var(--brand); font-variant-numeric: tabular-nums; }
.p-ms-head-n span { font-size: 10.5px; color: var(--ink-3); }
.p-mis { padding: 12px 0; border-top: 1px solid var(--line); }
.p-mis:first-of-type { border-top: 0; padding-top: 0; }
.p-mis-h { display: flex; align-items: center; gap: 7px; }
.p-mis-s { font-size: 11px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 1px 7px; }
.p-mis-k { font-size: 10.5px; color: #9a4413; background: var(--orange-soft); border-radius: 6px; padding: 1px 7px; }
.p-mis-h em { margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.p-mis-q { font-size: 13.5px; line-height: 1.65; margin: 7px 0 6px; }
.p-mis-a { display: flex; flex-direction: column; gap: 3px; }
.p-mis-a span { font-size: 11.5px; color: var(--ink-3); }
.p-mis-a b { color: var(--ink-2); font-weight: 600; margin-left: 4px; }
.p-mis-a b.ok { color: var(--green); }
.p-mis-f { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.p-mis-tag { font-size: 10.5px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.p-mis-st { font-size: 10.5px; color: var(--red); margin-left: auto; }
.p-mis-st.ok { color: var(--green); }

/* --- 我的 --- */
.p-kid { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.p-kid:first-of-type { border-top: 0; padding-top: 2px; }
.p-kid.on { background: #f7fbf9; border-radius: 12px; padding: 11px 10px; margin: 0 -10px; border-top-color: transparent; }
.p-kid-go { font-size: 11.5px; color: var(--brand); }
.p-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.p-row:first-of-type { border-top: 0; padding-top: 2px; }
.p-row span { color: var(--ink-2); }
.p-row b { font-weight: 500; }
.p-on { font-size: 11.5px; color: var(--green); }
.p-row-act {
  width: 100%; margin-top: 10px; padding: 10px; border: 0; border-radius: 11px;
  background: var(--brand-soft); color: var(--brand); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer;
}

/* ==============================================================
   机构后台 · 桌面控制台
   ============================================================== */

.console {
  display: grid; grid-template-columns: 218px minmax(0, 1fr);
  max-width: 1360px; margin: 0 auto; min-height: 100vh; background: var(--bg);
}
.cs-side {
  position: sticky; top: 0; height: 100vh; box-sizing: border-box;
  background: #fff; border-right: 1px solid var(--line);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 18px;
}
.cs-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.cs-logo {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(150deg, #17805f, #0b4a3b); color: #fff; font-weight: 650; font-size: 16px;
}
.cs-brand b { display: block; font-size: 14.5px; letter-spacing: .1px; }
.cs-brand em { display: block; font-style: normal; font-size: 10.5px; color: var(--ink-3); margin-top: 1px; }

.cs-nav { display: flex; flex-direction: column; gap: 2px; }
.cs-nav button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 11px; border: 0; border-radius: 10px; background: none;
  font: inherit; font-size: 13.5px; color: var(--ink-2); cursor: pointer; text-align: left; transition: .15s;
}
.cs-nav button svg { width: 17px; height: 17px; flex: 0 0 auto; opacity: .72; }
.cs-nav button:hover { background: #f5f8f6; }
.cs-nav button.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.cs-nav button.on svg { opacity: 1; }

.cs-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.cs-user { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 11px; background: #f8faf9; }
.cs-user b { display: block; font-size: 12.5px; }
.cs-user em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }

.cs-main { min-width: 0; }
.cs-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 26px 28px 14px;
}
.cs-head h2 { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -.3px; }
.cs-head p { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); }
.cs-wrap { padding: 0 28px 44px; display: flex; flex-direction: column; gap: 16px; }

/* --- KPI --- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi {
  background: #fff; border-radius: 14px; padding: 15px 17px 14px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1px;
}
.kpi > span { font-size: 12px; color: var(--ink-2); }
.kpi b { font-size: 27px; font-weight: 650; letter-spacing: -.6px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.kpi b i { font-style: normal; font-size: 13.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.kpi em { font-style: normal; font-size: 11px; color: var(--ink-3); margin-top: 5px; }
.kpi-bar { height: 4px; border-radius: 99px; background: #eef2ef; overflow: hidden; margin: 7px 0 3px; }
.kpi-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), #2b9c79); }
.kpi-bar.warn i { background: linear-gradient(90deg, #f06828, #f79b58); }

/* --- 待办 --- */
.cs-todos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.todo {
  display: flex; align-items: center; gap: 10px; padding: 12px 15px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; cursor: pointer; text-align: left; transition: .15s;
}
.todo:hover { border-color: #cfe0d8; box-shadow: 0 3px 12px rgba(23, 37, 31, .05); }
.todo-n { font-size: 19px; font-weight: 650; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.todo.has.orange .todo-n { color: var(--orange); }
.todo.has.red .todo-n { color: var(--red); }
.todo-t { font-size: 12.5px; color: var(--ink); }
.todo-go { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.todo.has .todo-go { color: var(--brand); }

/* --- 双栏 --- */
.cs-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.panel { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px 14px; min-width: 0; }
.panel-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.panel-h b { font-size: 14px; font-weight: 600; letter-spacing: -.1px; }
.panel-h span { margin-left: auto; font-size: 11px; color: var(--ink-3); }

/* --- 班级进度 --- */
.cls-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 14px;
  gap: 14px; align-items: center; padding: 13px 6px; border-top: 1px solid var(--line);
  cursor: pointer; border-radius: 8px; transition: .15s;
}
.cls-row:hover { background: #f8fbf9; }
.cls-row:first-of-type { border-top: 0; }
.cls-row-t b { display: block; font-size: 13.5px; font-weight: 600; }
.cls-row-t span { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.cls-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cls-m span { font-size: 10.5px; color: var(--ink-3); }
.cls-m b { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-bar { height: 3px; border-radius: 99px; background: #eef2ef; margin-top: 5px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.mini-bar.warn i { background: var(--orange); }
.cls-go { color: var(--ink-3); font-size: 15px; }

/* --- 趋势图 --- */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 132px; padding-top: 4px; }
.ch-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ch-bar { position: relative; width: 100%; max-width: 24px; flex: 1; display: flex; align-items: flex-end; }
.ch-bar i { position: absolute; bottom: 0; left: 0; right: 0; background: #e7eeea; border-radius: 5px 5px 0 0; }
.ch-bar b { position: relative; width: 100%; background: linear-gradient(180deg, #249a78, #11634f); border-radius: 5px 5px 0 0; }
.ch-col em { font-style: normal; font-size: 10px; color: var(--ink-3); }
.ch-legend { display: flex; gap: 14px; margin-top: 10px; font-size: 10.5px; color: var(--ink-3); }
.ch-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ch-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.lg-total { background: #e7eeea; }
.lg-done { background: var(--brand); }
.panel-foot {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
}
.pf-item b { display: block; font-size: 16.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pf-item span { font-size: 10.5px; color: var(--ink-3); }

/* --- 答案库小卡 --- */
.ak-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ak-mini { border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; background: #fbfdfc; min-width: 0; }
.ak-mini.draft { background: #fffaf4; border-color: #f2ddc6; }
.ak-mini.archived { opacity: .6; }
.ak-mini-t b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ak-mini-t span { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.ak-mini-f { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ak-mini-f em { font-style: normal; font-size: 10px; color: var(--ink-3); margin-left: auto; white-space: nowrap; }
.ak-pill { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: #eef2ef; color: var(--ink-2); white-space: nowrap; }
.ak-pill.calibrated { background: var(--green-soft); color: var(--green); }
.ak-pill.draft { background: var(--orange-soft); color: var(--orange); }

/* --- 筛选 --- */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 13px 18px;
}
.filter-grp { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-l { font-size: 11.5px; color: var(--ink-3); margin-right: 2px; }
.fchip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 5px 12px; font: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer; transition: .15s;
}
.fchip b { font-size: 10.5px; margin-left: 4px; color: var(--ink-3); font-weight: 500; }
.fchip:hover { border-color: #cfe0d8; }
.fchip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.fchip.on b { color: rgba(255, 255, 255, .72); }

/* --- 表格 --- */
.cs-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cs-table th {
  text-align: left; font-weight: 500; font-size: 11px; color: var(--ink-3);
  padding: 8px 10px; border-bottom: 1px solid var(--line); background: #fafcfb; white-space: nowrap;
}
.cs-table th:first-child { border-radius: 8px 0 0 0; }
.cs-table th:last-child { border-radius: 0 8px 0 0; }
.cs-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); }
.cs-table tr:last-child td { border-bottom: 0; }
.cs-table tbody tr:hover { background: #fafcfb; }
.cs-table .row-act { text-align: right; white-space: nowrap; }
.cs-table .row-act .btn + .btn { margin-left: 4px; }
.tag-g { display: inline-block; font-size: 11px; color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 1px 7px; }
.tag-s { display: inline-block; font-size: 11px; color: #8a5220; background: #fdefe0; border-radius: 6px; padding: 1px 7px; margin-left: 4px; }
.stu-cell { display: flex; align-items: center; gap: 8px; }
.avatar.sm { width: 26px; height: 26px; border-radius: 8px; font-size: 11px; }
.st-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #eef2ef; color: var(--ink-2); white-space: nowrap; }
.st-tag.ok { background: var(--green-soft); color: var(--green); }
.st-tag.leave { background: var(--orange-soft); color: var(--orange); }
.st-tag.none { background: #f2f4f3; color: #9aa59f; }
.st-tag.wait { background: var(--orange-soft); color: var(--orange); }

/* --- 上传表单 --- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-grid .field { margin-bottom: 0; }
.form-grid .field.wide { grid-column: 1 / -1; }
.a-form textarea { min-height: 132px; font-size: 13px; }
.a-form-f { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.a-form-f .muted { flex: 1; }

/* --- 班级 --- */
.cls-tabs { display: flex; gap: 10px; }
.cls-tab {
  flex: 0 1 240px; text-align: left; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 14px; font: inherit; cursor: pointer; transition: .15s;
}
.cls-tab b { display: block; font-size: 13.5px; font-weight: 600; }
.cls-tab em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.cls-tab.on { border-color: var(--brand); background: var(--brand-soft); }
.cls-tab.on b { color: var(--brand); }
.cls-tab.on em { color: #4a7e6d; }
.cls-sum {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 14px 18px;
}
.cls-sum span { display: block; font-size: 11px; color: var(--ink-3); }
.cls-sum b { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }

/* --- 教师卡 --- */
.t-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.t-card {
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 12px;
}
.t-card.off { background: #fbfbfa; box-shadow: none; border: 1px dashed var(--line); }
.t-top { display: flex; align-items: center; gap: 10px; }
.t-top b { display: block; font-size: 14px; font-weight: 600; }
.t-top .grow > span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.t-classes { display: flex; flex-wrap: wrap; gap: 6px; }
.t-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.t-stats b { display: block; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.t-stats span { font-size: 10.5px; color: var(--ink-3); }
.t-card .btn { align-self: flex-start; }

/* --- 窄屏 --- */
@media (max-width: 1080px) {
  .cs-cols { grid-template-columns: 1fr; }
  .ak-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .console { grid-template-columns: 1fr; }
  .cs-side {
    position: static; height: auto; flex-direction: row; align-items: center;
    gap: 12px; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }
  .cs-brand > div { display: none; }
  .cs-nav { flex-direction: row; gap: 4px; }
  .cs-nav button { white-space: nowrap; padding: 8px 10px; font-size: 12.5px; }
  .cs-nav button svg { display: none; }
  .cs-side-foot { display: none; }
  .cs-head { padding: 18px 16px 10px; }
  .cs-head h2 { font-size: 19px; }
  .cs-wrap { padding: 0 16px 32px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-todos { grid-template-columns: 1fr; }
  .t-grid { grid-template-columns: 1fr; }
  .panel { overflow-x: auto; }
  .cs-table { min-width: 640px; }
  .cls-sum { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cls-tabs { flex-wrap: wrap; }
  .cls-tab { flex: 1 1 160px; }
  .form-grid { grid-template-columns: 1fr; }
  .ak-strip { grid-template-columns: 1fr; }
  .cls-row { grid-template-columns: 1fr; gap: 8px; }
  .cls-go { display: none; }
}

/* 后台 · 质量页科目分布与说明 */
.ak-subj { padding: 9px 0; border-top: 1px solid var(--line); }
.ak-subj:first-of-type { border-top: 0; padding-top: 2px; }
.ak-subj-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.ak-subj-h b { font-size: 13px; font-weight: 600; }
.ak-subj-h em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.panel-note {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: #f7faf8; font-size: 11px; line-height: 1.75; color: var(--ink-2);
}
/* 家长端作业照片限高，避免一屏只看到一张 */
.p-photos .photo-box img { max-height: 260px; object-fit: contain; }

/* 本周柱状图补充：数量标签与说明 */
.p-wd-n { font-size: 9.5px; font-weight: 600; color: var(--ink-2); line-height: 1; min-height: 10px; }
.p-wd.none .p-wd-n { color: #c6cfc9; }
.p-week-tip { font-size: 10px; color: #a8b4ad; margin: -6px 0 12px; }

/* ==============================================================
   教务处：老师 / 学生 / 班级 / 家长留言
   ============================================================== */

.head-acts { display: flex; align-items: center; gap: 10px; }
.search-in {
  width: 236px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; font: inherit; font-size: 12.5px; color: var(--ink); outline: none; transition: .15s;
}
.search-in:focus { border-color: #b9d3c8; box-shadow: 0 0 0 3px rgba(17, 99, 79, .07); }
.search-in::placeholder { color: #b3bfb8; }
.fsel {
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font: inherit; font-size: 12.5px; color: var(--ink-2); cursor: pointer;
}
.panel-h-act { margin-left: 12px; display: flex; gap: 8px; }

.row-off td { color: #9aa59f; }
.row-off .avatar { opacity: .55; }
.cell-chips { display: flex; flex-wrap: wrap; gap: 4px; max-width: 260px; }
.tag-head {
  font-style: normal; font-size: 9.5px; margin-left: 3px; padding: 0 4px;
  background: rgba(255, 255, 255, .7); border-radius: 4px; color: var(--brand);
}
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-soft); border-color: #f3d3d4; }

/* --- 班级详情 --- */
.cls-detail .panel-h { align-items: center; }
.cls-teachers {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px;
  padding: 12px 14px; background: #fafcfb; border: 1px solid var(--line); border-radius: 12px;
}
.cls-teacher { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.ct-l { font-size: 11px; color: var(--ink-3); margin-right: 2px; }
.ct-as { display: inline-flex; align-items: center; gap: 4px; }
.cls-teachers > .btn { margin-left: auto; }

/* --- 家长留言 --- */
.msg-layout { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.msg-list { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.msg-item {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 10px 11px; border-radius: 10px; font: inherit; cursor: pointer; transition: .14s;
}
.msg-item:hover { background: #f7faf8; }
.msg-item.on { background: var(--brand-soft); }
.msg-item-h { display: flex; align-items: center; gap: 7px; }
.msg-item-h b { font-size: 13px; font-weight: 600; }
.msg-item-h em { margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.msg-item p { margin: 5px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.55; overflow: hidden; }
.msg-detail { display: flex; flex-direction: column; min-height: 340px; }
.msg-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.msg-head b { font-size: 15px; margin-right: 8px; }
.msg-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px 0; }
.msg-bubble {
  max-width: 78%; padding: 10px 13px; border-radius: 13px; font-size: 13px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
}
.msg-bubble.parent { background: #f3f6f4; color: var(--ink); align-self: flex-start; border-top-left-radius: 4px; }
.msg-bubble.teacher { background: var(--brand-soft); color: #0d4b3c; align-self: flex-end; border-top-right-radius: 4px; }
.mb-by { font-size: 10.5px; color: #4a7e6d; margin-bottom: 3px; }
.msg-reply { display: flex; gap: 10px; align-items: flex-end; padding-top: 12px; border-top: 1px solid var(--line); }
.msg-reply textarea {
  flex: 1; min-height: 62px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 13px; resize: vertical; outline: none;
}
.msg-reply textarea:focus { border-color: #b9d3c8; }

/* --- PDF 批量导入 --- */
.pkg-panel { border: 1px solid #cfe3d9; background: linear-gradient(180deg, #fbfdfc, #fff); }
.pkg-list { display: flex; flex-direction: column; gap: 10px; }
.pkg-item { border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; background: #fff; }
.pkg-item.dup { background: #fffaf4; border-color: #f2ddc6; }
.pkg-i-h { display: flex; align-items: center; gap: 10px; }
.pkg-n {
  width: 22px; height: 22px; border-radius: 7px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
  background: var(--brand-soft); color: var(--brand);
}
.pkg-fields { display: flex; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap; align-items: center; }
.pkg-fields select {
  flex: 0 0 auto; width: auto; max-width: 108px;
  padding: 5px 6px; border: 1px solid var(--line); border-radius: 7px; background: #fff;
  font: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer;
}
.pkg-title {
  flex: 1 1 200px; min-width: 140px; padding: 5px 9px; border: 1px solid var(--line);
  border-radius: 7px; font: inherit; font-size: 12.5px; outline: none;
}
.pkg-count { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.pkg-prev {
  margin-top: 7px; padding-left: 32px; font-size: 11.5px; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pkg-warn { margin-top: 5px; padding-left: 32px; font-size: 11px; color: var(--orange); }

/* --- 弹窗 --- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(18, 30, 25, .38);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fadeIn .14s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 560px; max-height: 86vh; background: #fff; border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 30, 24, .24); display: flex; flex-direction: column;
  animation: pop .16s ease;
}
@keyframes pop { from { transform: translateY(8px) scale(.99); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-h { display: flex; align-items: center; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.modal-h b { font-size: 15.5px; font-weight: 650; }
.modal-x {
  margin-left: auto; width: 26px; height: 26px; border: 0; border-radius: 7px; background: #f3f6f4;
  color: var(--ink-2); font-size: 16px; line-height: 1; cursor: pointer;
}
.modal-b { padding: 16px 18px; overflow-y: auto; }
.modal-f {
  display: flex; justify-content: flex-end; gap: 10px; padding: 12px 18px 16px;
  border-top: 1px solid var(--line);
}
.modal-note {
  font-size: 12.5px; color: var(--ink-2); background: #f7faf8; border-radius: 9px;
  padding: 9px 12px; margin-bottom: 12px; line-height: 1.65;
}
.modal-b .form-grid { gap: 12px 14px; }
.modal-b .field input, .modal-b .field select { width: 100%; }

/* 开关行 */
.switch-row {
  display: flex; align-items: flex-start; gap: 11px; margin-top: 14px;
  padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdfc; cursor: pointer;
}
.switch-row input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand); flex: 0 0 auto; }
.switch-row b { display: block; font-size: 13px; font-weight: 600; }
.switch-row em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.55; }

/* 多选组 */
.check-group { margin-top: 14px; }
.cg-l { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 7px; }
.check-item {
  display: inline-block; white-space: nowrap; line-height: 1.45;
  margin: 0 8px 8px 0; padding: 7px 12px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 12.5px; cursor: pointer; transition: .14s;
}
.check-item:hover { border-color: #cfe0d8; }
.check-item:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.check-item input {
  width: 14px; height: 14px; margin: 0 6px 0 0; vertical-align: -2px;
  accent-color: var(--brand); flex: 0 0 auto;
}
.check-item input:disabled + span { color: #b3bfb8; }

/* 选择列表 */
.pick-list { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow-y: auto; }
.pick-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; font: inherit; cursor: pointer; transition: .14s;
}
.pick-item:hover { border-color: #cfe0d8; background: #fbfdfc; }
.pick-item b { font-size: 13.5px; font-weight: 600; }
.pick-item span { font-size: 11.5px; color: var(--ink-3); }
.pick-item.check input { accent-color: var(--brand); width: 16px; height: 16px; }
.pick-item.check > div { display: flex; flex-direction: column; }

/* ==============================================================
   教师端 · 我的 → 教务中心
   ============================================================== */

.me-entry {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px;
  padding: 12px 13px; border: 1px solid #d7e8e0; border-radius: 13px;
  background: linear-gradient(135deg, #f2faf6, #ffffff); font: inherit; cursor: pointer; text-align: left;
}
.me-entry:active { transform: scale(.995); }
.me-entry-ic {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  display: grid; place-items: center; background: var(--brand); color: #fff;
}
.me-entry-ic svg { width: 19px; height: 19px; }
.me-entry-t { flex: 1; min-width: 0; }
.me-entry-t b { display: block; font-size: 14.5px; font-weight: 600; }
.me-entry-t em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.me-entry-go { font-size: 18px; color: var(--ink-3); flex: 0 0 auto; }

.staff-tabs {
  position: sticky; top: 57px; z-index: 15; display: flex; gap: 6px;
  padding: 10px 16px; background: rgba(244, 246, 245, .94); backdrop-filter: blur(8px);
  overflow-x: auto;
}
.staff-tabs::-webkit-scrollbar { display: none; }
.stab {
  flex: 0 0 auto; position: relative; padding: 6px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font: inherit; font-size: 13px;
  color: var(--ink-2); cursor: pointer;
}
.stab.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.stab i {
  position: absolute; top: -3px; right: -3px; min-width: 15px; height: 15px; padding: 0 3px;
  border-radius: 999px; background: var(--red); color: #fff; font-style: normal;
  font-size: 9.5px; line-height: 15px; text-align: center; font-weight: 600;
}
.staff-wrap { display: flex; flex-direction: column; gap: 8px; padding-bottom: 96px; }
.m-search { margin-bottom: 2px; }
.m-search .search-in { width: 100%; padding: 9px 13px; font-size: 13.5px; }
.m-filter { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.m-filter::-webkit-scrollbar { display: none; }
.m-hint { font-size: 11.5px; color: var(--ink-3); padding: 2px 2px 4px; }
.m-loading { text-align: center; color: var(--ink-3); font-size: 13px; padding: 40px 0; }
.m-foot-tip { text-align: center; font-size: 10.5px; color: #a8b4ad; padding: 10px 0 4px; }

.m-card {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 12px 13px; background: #fff; border: 0; border-radius: 13px;
  box-shadow: 0 2px 10px rgba(23, 37, 31, .05); font: inherit; cursor: pointer;
}
.m-card:active { transform: scale(.995); }
.m-card.off { opacity: .62; }
.m-card-t { flex: 1; min-width: 0; }
.m-card-t b { display: flex; align-items: center; gap: 5px; font-size: 14.5px; font-weight: 600; }
.m-card-t em {
  display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3);
  margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-badge {
  font-style: normal; font-size: 9.5px; padding: 1px 5px; border-radius: 4px;
  background: var(--brand-soft); color: var(--brand); font-weight: 600;
}
.m-card-r { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.m-card-r em { font-style: normal; font-size: 10px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.m-cls { background: #fff; border-radius: 14px; padding: 13px 14px; box-shadow: 0 2px 10px rgba(23, 37, 31, .05); }
.m-cls-h { display: flex; align-items: flex-start; gap: 10px; }
.m-cls-t { flex: 1; min-width: 0; }
.m-cls-t b { display: block; font-size: 15px; font-weight: 650; }
.m-cls-t em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.m-cls-teach { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 9px 0; font-size: 11.5px; color: var(--ink-3); }
.m-cls-teach b { color: var(--ink); font-weight: 600; }
.m-cls-kids { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px 0; border-top: 1px solid var(--line); }
.m-kid {
  font-size: 11.5px; padding: 3px 9px; border-radius: 7px; background: #f3f6f4;
  color: var(--ink-2); cursor: pointer;
}
.m-cls-f { display: flex; gap: 8px; padding-top: 9px; border-top: 1px solid var(--line); }

.m-msg { background: #fff; border-radius: 14px; padding: 13px 14px; box-shadow: 0 2px 10px rgba(23, 37, 31, .05); }
.m-msg.new { box-shadow: 0 0 0 1.5px #f5d6c2, 0 2px 10px rgba(23, 37, 31, .05); }
.m-msg-h { display: flex; align-items: center; gap: 9px; }
.m-msg-h b { display: block; font-size: 14px; font-weight: 600; }
.m-msg-h em { display: block; font-style: normal; font-size: 10.5px; color: var(--ink-3); margin-top: 1px; }
.m-msg-t { margin: 9px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--ink); }
.m-msg-r {
  margin-top: 8px; padding: 9px 11px; border-radius: 10px; background: var(--brand-soft);
  font-size: 12.5px; line-height: 1.65; color: #0d4b3c;
}
.m-msg-r b { display: block; font-size: 10.5px; color: #4a7e6d; font-weight: 500; margin-bottom: 2px; }
.m-msg-f { display: flex; gap: 8px; margin-top: 10px; }
.m-msg-f input {
  flex: 1; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: 13px; outline: none;
}
.m-msg-f input:focus { border-color: #b9d3c8; }

.fab {
  position: fixed; right: max(18px, calc(50vw - 251px)); bottom: 92px; z-index: 30;
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: linear-gradient(150deg, #1a8266, #0b4a3b); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
  box-shadow: 0 10px 26px rgba(11, 74, 59, .34);
}
.fab:active { transform: scale(.95); }

@media (max-width: 1080px) {
  .msg-layout { grid-template-columns: 1fr; }
  .msg-detail { min-height: 0; }
}
@media (max-width: 860px) {
  .head-acts { width: 100%; margin-top: 8px; }
  .search-in { width: 100%; }
  .cs-head { flex-wrap: wrap; }
  .pkg-fields { width: 100%; }
  .pkg-title { min-width: 0; }
}
@media (max-width: 560px) {
  .modal-mask { align-items: flex-end; padding: 0; }
  .modal {
    max-width: none; max-height: 92vh; border-radius: 18px 18px 0 0;
    animation: rise .2s ease;
  }
  @keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
  .modal-b .form-grid { grid-template-columns: 1fr; }
  .modal-f { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}

/* 家长端 · 留言入口与记录 */
.p-leave-entry {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 13px 15px; border: 1px solid #e0ece6; border-radius: 14px;
  background: linear-gradient(135deg, #f6fbf8, #ffffff); font: inherit; cursor: pointer;
  box-shadow: 0 2px 10px rgba(23, 37, 31, .04);
}
.p-leave-entry:active { transform: scale(.995); }
.p-le-ic {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
}
.p-le-ic svg { width: 18px; height: 18px; }
.p-le-t { flex: 1; min-width: 0; }
.p-le-t b { display: block; font-size: 14px; font-weight: 600; }
.p-le-t em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.p-le-go { color: var(--ink-3); font-size: 18px; }
.p-leave-item { padding: 9px 0; border-top: 1px solid var(--line); }
.p-leave-item:first-of-type { border-top: 0; padding-top: 2px; }
.p-leave-item p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--ink); }
.p-leave-item em { display: block; font-style: normal; font-size: 10.5px; color: var(--ink-3); margin-top: 5px; }
.p-leave-re {
  margin-top: 7px; padding: 8px 10px; border-radius: 9px;
  background: var(--brand-soft); font-size: 12.5px; line-height: 1.6; color: #0d4b3c;
}
.p-leave-re b { display: block; font-size: 10.5px; font-weight: 500; color: #4a7e6d; margin-bottom: 2px; }

/* 留言快捷短语 */
.quick-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.qchip {
  padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px;
  background: #fbfdfc; font: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer;
}
.qchip:hover { border-color: #cfe0d8; background: #f3faf6; }

/* 按钮不拆行（窄屏下「新建学生」曾被压成两行） */
.head-acts .btn, .panel-h-act .btn { flex: 0 0 auto; white-space: nowrap; }
.btn { white-space: nowrap; }
@media (max-width: 860px) {
  .head-acts { flex-wrap: nowrap; }
  .head-acts .search-in { min-width: 0; }
}

/* ==================== 校区维护 ==================== */

.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }

.cp-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 18px 14px; background: var(--card);
  border-radius: 14px; box-shadow: var(--shadow); min-width: 0;
}

.cp-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cp-h > div:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cp-h b { font-size: 15px; font-weight: 600; letter-spacing: -.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-h .st-tag { flex: 0 0 auto; }
.cp-acts { display: flex; gap: 6px; flex: 0 0 auto; }

.cp-addr { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.cp-addr svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 2px; color: var(--ink-3); }

.cp-stats { display: flex; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cp-stat { flex: 1 1 0; text-align: center; min-width: 0; }
.cp-stat b { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.5px; line-height: 1.25; }
.cp-stat.main b { color: var(--brand); }
.cp-stat em { font-style: normal; font-size: 11px; color: var(--ink-3); }

.cp-foot { display: flex; align-items: center; gap: 7px; font-size: 13px; min-width: 0; }
.cp-foot .ct-l { font-size: 11.5px; color: var(--ink-3); flex: 0 0 auto; }
.cp-foot b { font-weight: 600; }
.cp-foot em.muted { font-style: normal; font-size: 11.5px; }

/* 手机端校区卡 */
.m-cp-meta { color: var(--ink-3); }
.m-cp .m-card-t em { line-height: 1.45; }

/* 窄屏：校区卡片纵向铺满 */
@media (max-width: 720px) {
  .cp-grid { grid-template-columns: minmax(0, 1fr); }
  .cp-stats { padding: 10px 0; }
  .cp-stat b { font-size: 18px; }
}

/* ---------- 批改 / 反馈页底部：上一位 / 下一位 ---------- */
.ws-foot { justify-content: center; align-items: center; gap: 10px; padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); }
.ws-foot .btn.ws-step {
  flex: 0 0 auto; min-width: 0; padding: 7px 16px;
  font-size: 13px; line-height: 1.35; border-radius: 999px;
}
.ws-foot-n { font-size: 12px; color: var(--ink-3); letter-spacing: .2px; flex: 0 0 auto; }

/* ==================== 一键快拍（作业 Tab 第四种录入方式） ==================== */

.snap-drop {
  width: 100%; border: 1px dashed #c9d8d0; background: #f8fbf9; border-radius: 12px;
  padding: 0; cursor: pointer; overflow: hidden; font: inherit; color: var(--ink-3);
  display: block; text-align: center;
}
.snap-drop:disabled { opacity: .6; }

.snap-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.snap-cell { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #eef2ef; }
.snap-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.snap-cell span {
  position: absolute; left: 4px; top: 4px; min-width: 16px; padding: 0 4px;
  font-size: 10px; line-height: 16px; text-align: center; border-radius: 999px;
  background: rgba(0, 0, 0, .55); color: #fff;
}
.snap-cell.more { display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--ink-3); }

.snap-bar { height: 6px; border-radius: 999px; background: #eef2ef; overflow: hidden; margin-top: 10px; }
.snap-bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .25s; }

.snap-err {
  margin-top: 8px; font-size: 12px; color: var(--red);
  background: var(--red-soft); padding: 8px 10px; border-radius: 8px;
}
.snap-warn {
  margin-bottom: 10px; font-size: 12px; color: var(--orange);
  background: var(--orange-soft); padding: 8px 10px; border-radius: 8px;
}

.snap-g { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.snap-g-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.snap-g-h select {
  font: inherit; font-size: 13px; font-weight: 600; padding: 4px 8px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
  min-width: 0;
}

.snap-g-thumbs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.snap-th {
  position: relative; flex: 0 0 auto; width: 56px; height: 56px;
  border-radius: 8px; overflow: hidden; background: #eef2ef;
}
.snap-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.snap-th-del {
  position: absolute; right: 1px; top: 1px; width: 16px; height: 16px; line-height: 14px;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 12px; cursor: pointer; padding: 0;
}

.snap-rows { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.snap-row { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 6px; align-items: center; }
.snap-row input {
  font: inherit; font-size: 13px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; min-width: 0;
}
.snap-why { margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }

@media (min-width: 720px) {
  .snap-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .snap-th { width: 64px; height: 64px; }
}
