:root {
  --bg: #f5f6fb;
  --panel: #ffffff;
  --border: #e8ebf4;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-soft: #eef2ff;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --ok: #059669;
  --ok-soft: #ecfdf5;
  --warn: #d97706;
  --warn-soft: #fffbeb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23,26,63,.04), 0 4px 16px rgba(23,26,63,.06);
  /* 作业公告牌主题（初一10班 · 靛蓝紫，与初一9班的青绿区分） */
  --board-page-bg: linear-gradient(160deg, #edf0fd 0%, #e6e9fa 55%, #eeeaf9 100%);
  --board-title-bg: linear-gradient(135deg, #3730a3 0%, #5b57e0 52%, #7c3aed 100%);
  --board-title-shadow: 0 10px 26px rgba(79,70,229,.34);
  --board-card-bg: #ffffff;
  /* 公告牌统一字号比例（20261014 二次调整）：学科名 > 作业内容；班务栏 > 作业内容，最醒目 */
  --fs-title: 40px;
  --fs-date: 18px;
  --fs-sub: 40px;
  --fs-content: 36px;
  --fs-cd: 18px;
  --fs-affair: 42px;
  --fs-slot: 16px;
  --fs-meta: 15px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px;
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ===== 登录 ===== */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: linear-gradient(135deg, #dbeafe 0%, #eef2ff 40%, #e0f2fe 75%, #ecfdf5 100%);
  position: relative; overflow: hidden; }
.auth-deco { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.deco-1 { width: 420px; height: 420px; background: #93c5fd; top: -120px; left: -100px; }
.deco-2 { width: 360px; height: 360px; background: #a7f3d0; bottom: -120px; right: -80px; }
.deco-3 { width: 260px; height: 260px; background: #c7d2fe; top: 40%; right: 12%; }
.auth-card { width: 430px; max-width: 100%; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-radius: 20px; box-shadow: 0 20px 60px rgba(30,64,175,.16), 0 2px 8px rgba(30,64,175,.06);
  border: 1px solid rgba(255,255,255,.7); padding: 40px 36px 28px; position: relative; z-index: 1; }
.auth-brand { text-align: center; margin-bottom: 26px; }
.auth-logo { width: 64px; height: 64px; border-radius: 18px; color: #fff; font-size: 30px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
  background: linear-gradient(135deg, #3b82f6, #6366f1); box-shadow: 0 8px 20px rgba(59,130,246,.35); }
.auth-school { color: #1d4ed8; font-size: 14px; font-weight: 600; letter-spacing: 1px; margin-bottom: 8px; }
.auth-school .school-class { display: inline-block; margin-top: 4px; font-size: 16px; color: #0f766e; }
.auth-brand h1 { font-size: 22px; letter-spacing: 1px; }
.auth-sub { color: var(--muted); font-size: 12px; margin-top: 8px; letter-spacing: 2px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.auth-form input { border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; outline: none;
  font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.auth-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.auth-form .link-btn { margin-top: 12px; }
.reset-row { display: flex; gap: 10px; align-items: flex-end; }
.ph-progress { margin: 10px 0; }
.ph-bar { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.ph-bar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), #22c1a3); border-radius: 999px; transition: width .25s ease; }
.auth-msg { margin-top: 14px; padding: 10px 12px; border-radius: 8px; font-size: 13px; background: var(--warn-soft); color: var(--warn); }
.auth-foot { margin-top: 18px; text-align: center; font-size: 12px; color: var(--muted); }
.auth-foot .foot-sep { margin: 0 8px; color: var(--border); }
.auth-foot .link-btn { font-size: 12px; }
.hint { font-size: 12px; color: var(--muted); }

/* ===== 布局 ===== */
.app { display: flex; height: 100vh; }
.sidebar { width: 220px; background: #fff; border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 16px 12px; flex-shrink: 0; }
.side-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; padding: 4px 8px 16px; }
.side-logo { width: 32px; height: 32px; border-radius: 9px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
#sideNav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-item { text-align: left; border: none; background: transparent; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.nav-item:hover { background: var(--bg); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.side-footer { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
/* 备案号（工信部要求：首页底部标注并链接 beian.miit.gov.cn） */
.page-foot { text-align: center; padding: 12px 0 2px; font-size: 12px; letter-spacing: .3px; }
.page-foot a { color: #97a3b6; text-decoration: none; }
.page-foot a:hover { color: #6c7a90; text-decoration: underline; }
.beian { font-size: 12px; color: #98a3b8; text-decoration: none; text-align: center; letter-spacing: .3px; }
.beian:hover { color: #6c7a90; text-decoration: underline; }
.class-picker label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 4px; }
.class-picker select { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 7px 8px; }
.side-user { display: flex; flex-direction: column; gap: 6px; }
.user-email { font-size: 12px; color: var(--muted); word-break: break-all; }

.main { flex: 1; overflow-y: auto; padding: 24px 28px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { font-size: 20px; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== 通用组件 ===== */
.btn { border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 9px 16px; font-size: 14px; transition: .15s; }
.btn:hover { border-color: #c7d2fe; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: #fecaca; background: var(--danger-soft); }
.btn.small { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn.block { width: 100%; }
.link-btn { border: none; background: none; color: var(--primary); font-size: 13px; padding: 4px 0; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card + .card { margin-top: 16px; }
.card h3 { font-size: 15px; margin-bottom: 12px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stat .num { font-size: 26px; font-weight: 700; color: var(--primary); }
.stat .lbl { color: var(--muted); font-size: 13px; margin-top: 4px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: flex-end; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.filters select, .filters input { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: #fff; }

table.data { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.data th, table.data td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; }
table.data th { background: #f8fafc; color: var(--muted); font-weight: 600; white-space: nowrap; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #fafbff; }
table.detail { width: 100%; border-collapse: collapse; }
table.detail th, table.detail td { padding: 7px 10px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.detail th { width: 96px; color: var(--muted); font-weight: 600; white-space: nowrap; background: #f8fafc; }
table.detail tr:last-child th, table.detail tr:last-child td { border-bottom: none; }
table.detail td a { color: #2563eb; text-decoration: none; margin-right: 8px; }
table.detail td a:hover { text-decoration: underline; }

/* ===== 学生卡片墙 ===== */
.student-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

/* ===== 仪表盘 ===== */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; margin-bottom: 14px; }
/* ===== 今日信息条 ===== */
.today-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(120deg, #3b82f6 0%, #6366f1 55%, #8b5cf6 100%); color: #fff;
  border-radius: 16px; padding: 16px 22px; margin-bottom: 14px; box-shadow: 0 8px 22px rgba(99,102,241,.28); }
.ts-main { display: flex; align-items: center; gap: 16px; }
.ts-big { font-size: 34px; font-weight: 700; letter-spacing: 1px; }
.ts-big small { font-size: 15px; font-weight: 600; margin: 0 4px; opacity: .85; }
.ts-info { display: flex; flex-direction: column; gap: 2px; }
.ts-info b { font-size: 15px; }
.ts-info .hint { color: rgba(255,255,255,.85) !important; }
.ts-today { font-size: 13px; line-height: 1.7; max-width: 640px; margin-top: 3px; }
.ts-today:empty { display: none; }
.ts-tag { display: inline-block; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.22); border-radius: 6px; padding: 1px 8px; margin-right: 8px; }
.ts-weather { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ts-weather .hint { color: rgba(255,255,255,.85) !important; }
.ts-weather b { font-size: 16px; }
.wx-emoji { font-size: 34px; }
/* ===== 校历 ===== */
.cal-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr); gap: 14px; margin-bottom: 14px; }
@media (max-width: 900px) { .cal-layout { grid-template-columns: 1fr; } }
.cal-card h3 { margin: 0; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h3 { font-size: 16px; font-weight: 800; color: #2a2f55; letter-spacing: .5px; }
.cal-nav { display: flex; gap: 6px; }
/* ---- 月历（精致版） ---- */
.cal-weekrow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.cal-weekrow span { text-align: center; font-size: 11.5px; color: #9297ab; font-weight: 700; padding: 5px 0; letter-spacing: 3px; }
.cal-weekrow span:nth-child(6), .cal-weekrow span:nth-child(7) { color: #a78bfa; }
.cal-body { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell { min-height: 68px; border: 1px solid #edeaf7; border-radius: 12px; padding: 6px 8px; position: relative;
  cursor: pointer; overflow: hidden; background: linear-gradient(180deg, #fff, #fcfbfe);
  box-shadow: 0 1px 2px rgba(42, 47, 85, .05);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.cal-cell:hover { border-color: #c7bdf6; box-shadow: 0 10px 22px rgba(109, 40, 217, .13); transform: translateY(-2px); }
.cal-cell.dim { background: transparent; border: 1px dashed #eeecf6; box-shadow: none; cursor: default; }
.cal-cell.dim:hover { transform: none; box-shadow: none; border-color: #eeecf6; }
.cal-cell.today { border-color: transparent !important;
  background: linear-gradient(160deg, #eef2ff, #f5f3ff 60%, #fff) !important;
  box-shadow: inset 0 0 0 2px #6366f1, 0 6px 16px rgba(99, 102, 241, .22); }
.cal-cell.examday { background: linear-gradient(180deg, #fff1f2, #fffafa) !important; border-color: #fecdd3; }
.cal-cell.hoday { background: linear-gradient(180deg, #ecfdf5, #f7fffc) !important; border-color: #a7f3d0; }
.cal-cell.weekend { background: linear-gradient(180deg, #f7f5fe, #fbfaff) !important; }
.cal-cell.weekend .cal-day { color: #7c6bb1; }
.cal-cell.hasbday { background: linear-gradient(180deg, #fdf2f8, #fffbfd) !important; border-color: #fbcfe8; }
.cal-cell.hasmemo { border-color: #fcd34d; box-shadow: inset 3px 0 0 #fbbf24, 0 1px 2px rgba(42, 47, 85, .05); }
.cal-cell.hasmemo.today { border-color: transparent !important; box-shadow: inset 0 0 0 2px #6366f1, inset 3px 0 0 #fbbf24, 0 6px 16px rgba(99, 102, 241, .22); }
.cal-top { display: flex; align-items: baseline; justify-content: flex-start; gap: 6px; }
.cal-cell.weekend:not(.today)::after { content: '休'; position: absolute; top: 6px; right: 6px; font-size: 9px;
  color: #6d28d9; background: #ede9fe; border-radius: 999px; padding: 1px 6px; font-weight: 700; line-height: 1.4; }
.cal-day { font-weight: 700; font-size: 16px; color: #2a2f55; font-variant-numeric: tabular-nums; }
.cal-cell.today .cal-day { color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); border-radius: 50%; min-width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; box-shadow: 0 2px 6px rgba(99, 102, 241, .4); }
.cal-lunar { font-size: 10.5px; color: #a0a4b8; }
.cal-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.cal-tag { font-size: 10px; padding: 1px 7px; border-radius: 999px; white-space: nowrap; line-height: 1.5;
  border: 1px solid rgba(42, 47, 85, .06); font-weight: 600; }
.tg-exam { background: #ffe4e6; color: #be123c; font-weight: 700; }
.tg-holiday { background: #ccfbf1; color: #0f766e; }
.tg-event { background: #dbeafe; color: #1d4ed8; }
.tg-duty { background: #f1f5f9; color: #475569; }
.tg-bday { background: #fce7f3; color: #be185d; }
.tg-memo { background: #fef3c7; color: #92400e; }
.tg-diary { background: #ede9fe; color: #6d28d9; }
.tg-theme { background: #ede9fe; color: #5b21b6; font-weight: 600; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-exam { background: #fee2e2; border: 1px solid #b91c1c; }
.lg-holiday { background: #ccfbf1; border: 1px solid #0f766e; }
.lg-event { background: #dbeafe; border: 1px solid #1d4ed8; }
.lg-bday { background: #fce7f3; border: 1px solid #be185d; }
.lg-memo { background: #fef3c7; border: 1px solid #92400e; }
/* ===== 备忘 / 日记 ===== */
.memo-side-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.memo-item { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; background: var(--bg);
  border-radius: 10px; align-items: center; }
.memo-badge { flex: none; font-size: 11px; padding: 2px 8px; border-radius: 8px; background: #fef3c7; color: #92400e; font-weight: 600; }
.memo-badge.d { background: #ede9fe; color: #6d28d9; }
.memo-text { font-size: 13px; flex: 1; min-width: 0; word-break: break-all; }
.memo-date { font-size: 12px; color: var(--muted); }
.memo-dayinfo { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px;
  color: var(--muted); margin: 8px 0 12px; }
#memoList { display: flex; flex-direction: column; gap: 8px; max-height: 200px; overflow: auto; }
.chart-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.chart-card h3 { font-size: 14px; margin-bottom: 10px; color: var(--text); }
.chart-card canvas { max-height: 240px; }
.cover-track { height: 10px; background: var(--bg); border-radius: 6px; overflow: hidden; margin: 10px 0 6px; }
.cover-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #3b82f6, #6366f1); transition: width .5s; }
.stu-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; }
.stu-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30,64,175,.12); border-color: var(--primary); }
.stu-avatar { width: 48px; height: 48px; border-radius: 50%; color: #fff; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: linear-gradient(135deg, #3b82f6, #6366f1); }
.stu-avatar.girl { background: linear-gradient(135deg, #f472b6, #fb7185); }
.stu-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center top; display: block; }
.stu-avatar.big { width: 44px; height: 44px; font-size: 19px; }
.stu-headrow { display: flex; align-items: center; gap: 12px; }
.stu-name { display: flex; align-items: baseline; gap: 8px; }
.stu-name b { font-size: 16px; }
.stu-tags { font-size: 12px; color: var(--muted); }
.stu-info { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.stu-flag { font-size: 12px; color: var(--warn); background: var(--warn-soft); border-radius: 6px; padding: 4px 8px; }
.stu-actions { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }

/* ===== 档案详情：照片墙 ===== */
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.detail-title { display: flex; align-items: center; gap: 12px; }
.detail-nav { display: flex; gap: 8px; }
.photo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo-card { position: relative; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--bg); min-height: 110px; display: flex; flex-direction: column; }
.photo-card.media img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; display: block; cursor: zoom-in; }
.photo-card.media video { width: 100%; display: block; }
.photo-card .pc-del { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border: none; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; }
.photo-card.ext { align-items: center; justify-content: center; gap: 6px; padding: 14px 10px; text-decoration: none;
  transition: border-color .12s, box-shadow .12s; }
.photo-card.ext:hover { border-color: var(--primary); box-shadow: 0 6px 16px rgba(30,64,175,.10); }
.photo-card .pc-ico { font-size: 26px; }
.photo-card .pc-label { font-size: 13px; font-weight: 600; color: var(--text); }
.photo-card .pc-open { font-size: 11px; color: var(--primary); }
.td-actions { white-space: nowrap; display: flex; gap: 6px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--danger-soft); color: var(--danger); }
.tag.blue { background: var(--primary-soft); color: var(--primary); }

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

/* ===== 弹窗 ===== */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal { background: #fff; border-radius: 14px; width: 560px; max-width: 100%; max-height: 88vh; overflow-y: auto; padding: 22px; }
.modal.wide { width: 860px; }
.modal h3 { margin-bottom: 16px; font-size: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.form-grid input, .form-grid select, .form-grid textarea { border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; outline: none; background: #fff; }
.form-grid textarea { resize: vertical; min-height: 80px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* 附件 */
.file-input-wrap { border: 2px dashed var(--border); border-radius: 10px; padding: 14px; text-align: center; color: var(--muted); font-size: 13px; cursor: pointer; }
.file-input-wrap:hover { border-color: var(--primary); color: var(--primary); }
.attach-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.attach-chip { display: flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 5px 9px; font-size: 12px; max-width: 220px; }
.attach-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-chip button { border: none; background: none; color: var(--danger); font-size: 14px; line-height: 1; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.media-grid img, .media-grid video { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); background: #000; }

/* 时间线 */
.timeline { display: flex; flex-direction: column; gap: 12px; }
.tl-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.tl-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.tl-title { font-weight: 600; }
.tl-meta { color: var(--muted); font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.tl-body { margin-top: 8px; color: var(--text); font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.tl-foot { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; }

/* toast / loading */
.toast { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13px; z-index: 200; box-shadow: var(--shadow); max-width: 80vw; }
.toast.err { background: var(--danger); }
.loading-mask { position: fixed; inset: 0; background: rgba(255,255,255,.7); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 300; gap: 14px; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 报告预览 */
.report-preview { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.report-preview h1 { text-align: center; font-size: 20px; margin-bottom: 4px; }
.report-preview .r-sub { text-align: center; color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.report-preview h2 { font-size: 15px; margin: 18px 0 8px; border-left: 3px solid var(--primary); padding-left: 8px; }
.report-preview h2 .r-no {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 5px; margin-right: 8px;
  border-radius: 6px; background: #eef2ff; color: #4338ca;
  font-size: 11px; font-weight: 800; letter-spacing: 0; vertical-align: -4px;
}
.report-preview table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.report-preview th, .report-preview td { border: 1px solid var(--border); padding: 6px 8px; font-size: 12px; }
.report-preview th { background: #f8fafc; }
.report-preview p { font-size: 13px; line-height: 1.8; }
.report-preview .r-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.report-preview .r-photo-grid img { width: 100%; border-radius: 6px; border: 1px solid var(--border); }

.badge-count { background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: 1px 8px; font-size: 12px; }

/* ---- 德育扩展：谈话类型 / 荣誉 / 重点关注 / 日记检索 ---- */
.tag.tt { font-size: 11px; padding: 1px 8px; font-weight: 600; margin: 0 2px; }
.tt-study { background: #dbeafe; color: #1d4ed8; }
.tt-emo { background: #ede9fe; color: #6d28d9; }
.tt-behav { background: #fef3c7; color: #b45309; }
.tt-care { background: #dcfce7; color: #15803d; }
.tag.red { background: #fee2e2; color: #b91c1c; }
.tag.amber { background: #fef3c7; color: #b45309; }
.tag.green { background: #dcfce7; color: #15803d; }
.type-dist { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.type-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--bg); border-radius: 10px; }
.type-item b { font-size: 18px; }
.focus-list { display: flex; flex-direction: column; gap: 8px; }
.focus-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: #fffbeb;
  border: 1px solid #fde68a; border-radius: 10px; flex-wrap: wrap; }
.focus-item b { min-width: 56px; }
.focus-item .hint { flex: 1; }
.memo-search { display: flex; gap: 8px; margin: 8px 0 10px; }
.memo-search input { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font: inherit; }
.memo-search select { border: 1px solid var(--border); border-radius: 8px; padding: 7px; font: inherit; }

/* ---- 荣誉证书 / 光荣榜 ---- */
.cert-stage { margin-top: 14px; overflow: auto; display: flex; justify-content: center; }
.cert { flex: none; width: 780px; min-height: 552px; display: flex; padding: 14px; box-sizing: border-box;
  font-family: "KaiTi", "STKaiti", "FangSong", "SimSun", serif; border-radius: 6px; }
.cert.t1 { background: linear-gradient(135deg, #fff8e7, #fffdf6 45%, #fdf3d8); }
.cert.t2 { background: linear-gradient(135deg, #eff6ff, #f8fbff 45%, #dbeafe); }
.cert.t3 { background: linear-gradient(135deg, #f0fdf4, #f7fef9 45%, #dcfce7); }
.cert-inner { flex: 1; border: 3px solid; padding: 24px 40px; display: flex; flex-direction: column;
  text-align: center; position: relative; border-radius: 4px; }
.cert.t1 .cert-inner { border-color: #c9a227; box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px #c9a227; color: #7c5a11; }
.cert.t2 .cert-inner { border-color: #3b82f6; box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px #3b82f6; color: #1e40af; }
.cert.t3 .cert-inner { border-color: #16a34a; box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px #16a34a; color: #166534; }
.cert-school { font-size: 19px; letter-spacing: 2px; margin: 2px 0 0; }
.cert-title { font-size: 48px; letter-spacing: 14px; margin: 16px 0 8px; font-weight: 700; }
.cert.t1 .cert-title { color: #b91c1c; }
.cert.t2 .cert-title { color: #1d4ed8; }
.cert.t3 .cert-title { color: #15803d; }
.cert-to { font-size: 23px; margin: 6px 0; }
.cert-text { font-size: 16px; line-height: 1.9; margin: 4px auto 0; max-width: 580px; text-align: justify; text-align-last: center; }
.cert-award { font-size: 29px; font-weight: 700; margin: 12px 0 4px; }
.cert-level { font-size: 13px; opacity: .75; letter-spacing: 4px; }
.cert-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; font-size: 15px; }
.cert-sign { text-align: left; line-height: 1.7; }
.cert-date { text-align: right; }
.roll { min-height: 980px; }
.roll-title { font-size: 44px; letter-spacing: 12px; margin: 4px 0 2px; font-weight: 700; }
.roll.t1 .roll-title { color: #b91c1c; }
.roll.t2 .roll-title { color: #1d4ed8; }
.roll.t3 .roll-title { color: #15803d; }
.roll-sub { font-size: 18px; letter-spacing: 3px; opacity: .8; margin: 0 0 12px; }
.roll-list { display: flex; flex-direction: column; gap: 10px; margin: 8px auto; width: 82%; }
.roll-item { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.78);
  border: 1px solid currentColor; border-radius: 12px; padding: 10px 18px; font-size: 19px; }
.roll-item b { font-size: 22px; }
.roll-award { font-size: 15px; opacity: .8; }
.roll-slogan { font-size: 18px; letter-spacing: 2px; margin: 14px 0 2px; opacity: .85; }
.roll-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 14px; }
.roll-empty { font-size: 15px; opacity: .5; padding: 30px 0; }

/* ---- 教育记录 / 教育日记导出 ---- */
.edu-entry { padding: 8px 0 6px; border-bottom: 1px dashed var(--border); page-break-inside: avoid; }
.edu-entry p { margin: 2px 0; }
.edu-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.edu-meta { font-size: 12px; color: var(--muted); }

/* ============================================================
   移动端适配（≤860px 顶栏化 / ≤480px 紧凑）
   ============================================================ */
@media (max-width: 860px) {
  /* --- 整体布局：侧栏变吸顶顶栏 --- */
  .app { flex-direction: column; height: auto; min-height: 100vh; min-height: 100dvh; }
  .sidebar {
    width: 100%; flex-shrink: 0; position: sticky; top: 0; z-index: 50;
    flex-direction: column; padding: 8px 10px; gap: 6px;
    border-right: none; border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(16,24,40,.08);
  }
  .side-brand { padding: 0 2px; font-size: 14px; }
  #sideNav {
    flex-direction: row; flex-wrap: nowrap; flex: none; gap: 4px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
    margin: 0 -10px; padding: 0 10px 2px;
  }
  #sideNav::-webkit-scrollbar { display: none; }
  .nav-item { flex: none; white-space: nowrap; padding: 8px 12px; font-size: 13px; }
  .side-footer { border-top: none; padding-top: 0; flex-direction: row; align-items: center; gap: 8px; }
  .class-picker { flex: 1; min-width: 0; }
  .class-picker label { display: none; }
  .side-user { flex-direction: row; align-items: center; gap: 8px; flex: none; }
  .user-email { display: none; }
  .main { padding: 14px 12px 28px; }
  .page-head h2 { font-size: 18px; }

  /* --- 输入聚焦防 iOS 自动放大 --- */
  input, select, textarea { font-size: 16px; }

  /* --- 弹窗 / 表单 --- */
  .modal-mask { padding: 10px; }
  .modal, .modal.wide { width: 100%; padding: 16px; max-height: 92dvh; }
  .modal-actions { flex-wrap: wrap; }
  .modal-actions .btn { flex: 1; }
  .form-grid { grid-template-columns: 1fr; }

  /* --- 表格改为横向滑动，不再挤爆 --- */
  table.data { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.detail, .six-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* --- 筛选行自适应 --- */
  .filters select, .filters input { flex: 1 1 110px; min-width: 0; }
  .filters .btn { flex: none; }

  /* --- 今日信息条 --- */
  .today-strip { padding: 14px 16px; gap: 10px; }
  .ts-main { gap: 12px; }
  .ts-big { font-size: 26px; }
  .wx-emoji { font-size: 28px; }

  /* --- 校历 --- */
  .cal-cell { min-height: 46px; padding: 3px 4px; border-radius: 8px; }
  .cal-day { font-size: 13px; }
  .cal-cell.today .cal-day { min-width: 20px; height: 20px; font-size: 11px; }
  .cal-lunar { font-size: 9px; }
  .cal-tag { font-size: 9px; padding: 0 4px; }

  /* --- 仪表盘 --- */
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 12px; }
  .stat .num { font-size: 22px; }
  .chart-card canvas { max-height: 210px; }

  /* --- 学生卡片 / 照片墙 --- */
  .stu-card { padding: 12px; }
  .photo-wall { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }

  /* --- 报告预览 --- */
  .report-preview { padding: 16px 14px; }
  .report-preview .r-photo-grid { grid-template-columns: repeat(2, 1fr); }

  /* --- 证书预览：保留原始尺寸横向滑动（下载图片分辨率不受影响） --- */
  .cert-stage { justify-content: flex-start; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  .main { padding: 12px 10px 28px; }
  .card { padding: 14px 12px; }
  .today-strip { padding: 12px 14px; }
  .ts-big { font-size: 24px; }
  .btn { padding: 8px 12px; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1; }
  .toast { max-width: 92vw; }
}

/* ---- 座位表拖放 ---- */
.seat-layout { display: grid; grid-template-columns: 1fr 240px; gap: 12px; align-items: start; }
@media (max-width: 860px) { .seat-layout { grid-template-columns: 1fr; } }
.seat-cell { min-height: 60px; border: 1.5px dashed var(--border); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; cursor: pointer; background: var(--bg); position: relative; padding: 4px 2px; }
.seat-cell.filled { border-style: solid; border-color: var(--primary); background: #fff; }
.seat-cell.dragover { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset; }
.seat-cell.selected { border-color: #f59e0b; box-shadow: 0 0 0 2px #f59e0b inset; }
.seat-ava { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.seat-ava-ph { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.seat-cell .clr { position: absolute; top: 2px; right: 4px; border: none; background: none; color: var(--danger); font-size: 12px; line-height: 1; display: none; }
.seat-cell.filled:hover .clr { display: block; }
.pool-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px 3px 4px; font-size: 12px; background: #fff; cursor: grab; user-select: none; }
.pool-chip.selected { border-color: #f59e0b; box-shadow: 0 0 0 2px #f59e0b; }

/* ============================================================
   高端精致化主题层（在基础样式之上的统一皮肤）
   ============================================================ */

/* --- 全局底色：柔和光晕渐变，不再是单调灰 --- */
body {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(99,102,241,.10), transparent 60%),
    radial-gradient(700px 420px at -10% 30%, rgba(14,165,233,.08), transparent 55%),
    radial-gradient(800px 500px at 50% 110%, rgba(139,92,246,.07), transparent 60%),
    #f5f6fb;
}

/* --- 细滚动条 --- */
.main::-webkit-scrollbar { width: 10px; height: 10px; }
.main::-webkit-scrollbar-thumb { background: #d3d8ea; border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }
.main::-webkit-scrollbar-track { background: transparent; }

/* --- 侧栏：深夜蓝紫渐变 --- */
.sidebar {
  background: linear-gradient(180deg, #151c3f 0%, #1d2554 60%, #232b66 100%);
  border-right: none;
  box-shadow: 4px 0 24px rgba(15,20,55,.22);
}
.side-brand { color: #fff; letter-spacing: .5px; }
.side-logo { background: linear-gradient(135deg, #6366f1, #a855f7); box-shadow: 0 4px 12px rgba(99,102,241,.45); }
.nav-item { color: rgba(255,255,255,.66); border-radius: 10px; transition: background .15s, color .15s, box-shadow .15s; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; font-weight: 600;
  box-shadow: 0 4px 14px rgba(99,102,241,.42);
}
.side-footer { border-top: 1px solid rgba(255,255,255,.12); }
/* 深色侧栏里的备案号：浅色小字 */
.side-footer .beian { color: rgba(255,255,255,.5); text-align: center; }
.side-footer .beian:hover { color: rgba(255,255,255,.85); }
.class-picker label { color: rgba(255,255,255,.55); }
.class-picker select { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.side-user .user-email { color: rgba(255,255,255,.5); }
.side-user .btn.ghost { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
.side-user .btn.ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.45); }

/* --- 页面标题：渐变文字 --- */
.page-head h2 {
  background: linear-gradient(90deg, #1e2447, #4f46e5 65%, #7c3aed);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: .5px;
}

/* --- 卡片：更柔和的层次阴影 --- */
.card, .chart-card, .stat, .tl-item, .stu-card {
  border: 1px solid #edf0f9;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(23,26,63,.04), 0 6px 20px rgba(23,26,63,.05);
}
.card h3 { letter-spacing: .3px; }

/* --- 指标卡：渐变侧标 + 渐变数字 --- */
.stat { position: relative; overflow: hidden; }
.stat::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, #6366f1, #a855f7); border-radius: 0 4px 4px 0;
}
.stat .num {
  font-size: 28px;
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --- 按钮：渐变主按钮 + 悬浮微抬 --- */
.btn { border-radius: 10px; border-color: #e6e9f4; box-shadow: 0 1px 2px rgba(23,26,63,.05); transition: .18s; }
.btn:hover { border-color: #c7cdf5; box-shadow: 0 4px 12px rgba(79,70,229,.14); }
.btn.primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border: none; box-shadow: 0 4px 14px rgba(99,102,241,.35);
}
.btn.primary:hover {
  background: linear-gradient(135deg, #4338ca, #6d28d9);
  box-shadow: 0 6px 18px rgba(99,102,241,.45);
}
.btn:active { transform: translateY(1px); box-shadow: none; }

/* --- 表格 --- */
table.data { border-radius: 14px; border-color: #edf0f9; }
table.data th { background: #f7f8fd; color: #6b7394; letter-spacing: .5px; font-size: 12px; }

/* --- 输入聚焦：靛蓝光圈 --- */
.filters input:focus, .filters select:focus,
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus,
.memo-search input:focus, .memo-search select:focus,
.auth-form input:focus {
  outline: none; border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

/* --- 弹窗：毛玻璃遮罩 + 大阴影 --- */
.modal-mask { background: rgba(17,22,52,.5); backdrop-filter: blur(6px); }
.modal { border-radius: 18px; box-shadow: 0 24px 70px rgba(15,20,55,.3); }

/* --- 今日信息条：更深的紫罗兰渐变 + 高光 --- */
.today-strip {
  border-radius: 18px;
  background: linear-gradient(120deg, #4338ca 0%, #6d28d9 52%, #9333ea 100%);
  box-shadow: 0 10px 30px rgba(109,40,217,.32);
  position: relative; overflow: hidden;
}
.today-strip::after {
  content: ""; position: absolute; right: -50px; top: -70px; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(255,255,255,.12); pointer-events: none;
}

/* --- 校历今日：与主题同色 --- */
.cal-cell.today { border-color: transparent !important; background: linear-gradient(160deg, #eef2ff, #f5f3ff 60%, #fff) !important; box-shadow: inset 0 0 0 2px #6366f1, 0 6px 16px rgba(99, 102, 241, .22); }
.cal-cell.today .cal-day { background: linear-gradient(135deg, #6366f1, #8b5cf6); }

/* --- 进度条统一渐变 --- */
.cover-fill, .ph-bar > div { background: linear-gradient(90deg, #6366f1, #a855f7); }

/* --- 报告预览：顶部渐变饰条 --- */
.report-preview { position: relative; border: 1px solid #edf0f9; border-radius: 16px; box-shadow: 0 8px 28px rgba(23,26,63,.08); overflow: hidden; }
.report-preview::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #4f46e5, #a855f7, #06b6d4);
}

/* --- 学生头像渐变统一 --- */
.stu-avatar, .seat-ava-ph { background: linear-gradient(135deg, #6366f1, #a855f7); }
.stu-avatar.girl { background: linear-gradient(135deg, #f472b6, #fb7185); }

/* --- Toast --- */
.toast { background: #1c2344; border-radius: 12px; box-shadow: 0 8px 24px rgba(15,20,55,.35); }

/* --- 座位表已占座位 --- */
.seat-cell.filled { border-color: #a5b4fc; background: #fff; box-shadow: 0 2px 8px rgba(99,102,241,.10); }
/* 座位按性别着色：男蓝 / 女粉 */
.seat-cell.filled.g-m { background: linear-gradient(160deg, #dbeafe, #bfdbfe); border-color: #3b82f6; box-shadow: 0 2px 8px rgba(59,130,246,.25); }
.seat-cell.filled.g-f { background: linear-gradient(160deg, #fbcfe8, #f9a8d4); border-color: #ec4899; box-shadow: 0 2px 8px rgba(236,72,153,.25); }
.seat-cell.filled.g-m .seat-ava-ph { background: #2563eb; }
.seat-cell.filled.g-f .seat-ava-ph { background: #db2777; }
.pool-chip.g-m { background: #dbeafe; border-color: #3b82f6; }
.pool-chip.g-f { background: #fbcfe8; border-color: #ec4899; }
/* ---- 总览：石英钟 + 每日名言 ---- */
.ts-clock { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.ts-clock svg { filter: drop-shadow(0 4px 10px rgba(0,0,0,.28)); display: block; }
.qt-digital { color: #fff; font-weight: 700; font-size: 16px; letter-spacing: 1.5px; font-variant-numeric: tabular-nums; text-shadow: 0 1px 4px rgba(0,0,0,.25); }
.quotes-grid { display: grid; grid-template-columns: 1fr; }
.quote-item { position: relative; background: linear-gradient(135deg, #f6f7ff, #fdf7ff);
  border: 1px solid #eceffe; border-radius: 14px; padding: 18px 18px 12px 30px; }
.quote-item::before { content: "\201C"; position: absolute; top: 0; left: 10px; font-family: Georgia, "Times New Roman", serif;
  font-size: 46px; color: rgba(99,102,241,.20); line-height: 1; pointer-events: none; }
.quote-item p { font-family: "KaiTi", "STKaiti", "FangSong", serif; font-size: 16.5px; line-height: 1.9; color: #2a2f55; }
.quote-item span { display: block; text-align: right; font-size: 12.5px; color: #8a90ad; margin-top: 4px; }
@media (max-width: 860px) {
  .ts-clock { margin-left: auto; }
  .ts-clock svg { width: 56px; height: 56px; }
  .qt-digital { font-size: 13px; }
}

/* ---- 校历活动导入 ---- */
.cal-tag.tg-imp { background: #ede9fe; color: #6d28d9; }
.cal-schedule { border: 1px solid #eceafe; background: linear-gradient(135deg, #f8f7ff, #fdfcff); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.cal-sch-title { font-size: 13px; font-weight: 700; color: #5b21b6; margin-bottom: 6px; }
.cal-sch-item { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; border-bottom: 1px dashed #eae6f8; font-size: 13px; }
.cal-sch-item:last-child { border-bottom: none; }
.cal-sch-time { min-width: 88px; color: #7c6bb1; font-size: 12px; font-variant-numeric: tabular-nums; }
.cal-sch-main { flex: 1; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }

/* ---- 周安排侧栏清单 ---- */
.side-sec { font-size: 12px; font-weight: 700; color: #7c6bb1; margin: 12px 0 6px; letter-spacing: .5px; }
.side-sec:first-child { margin-top: 4px; }
.sched-item { display: flex; align-items: flex-start; gap: 8px; padding: 7px 8px; border-radius: 10px; border: 1px solid transparent; }
.sched-item:hover { background: #f6f5ff; }
.sched-item.now { background: linear-gradient(135deg, #f3f0ff, #fdf7ff); border-color: #ddd6fe; }
.sched-item.past .sched-title, .sched-item.past .sched-meta { text-decoration: line-through; color: #b3b8c9; }
.sched-item.past { opacity: .75; }
.sched-badge { flex-shrink: 0; font-size: 11px; color: #6d28d9; background: #ede9fe; border-radius: 8px; padding: 2px 7px; margin-top: 1px; white-space: nowrap; }
.sched-title { font-size: 13.5px; font-weight: 600; color: #2a2f55; line-height: 1.4; }
.sched-meta { font-size: 12px; color: #8a90ad; margin-top: 2px; line-height: 1.5; }
.sched-flag { flex-shrink: 0; font-size: 11px; color: #9aa0b5; border: 1px solid var(--border); border-radius: 8px; padding: 1px 6px; margin-top: 2px; }
.sched-flag.today { color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); border: none; }
.memo-item.past .memo-text, .memo-item.past .memo-date { color: #8a90a8; }
/* ---- 日历有安排高亮 ---- */
.cal-cell.hassched { background: linear-gradient(160deg, #f4f1ff, #fdfbff); border-color: #c7bdf6; box-shadow: inset 0 0 0 1px rgba(139,92,246,.18); }
.cal-cell.hassched .cal-day { color: #6d28d9; }

/* ---- 周清单分组版式（上一周/下一周切换） ---- */
.wk-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.wk-list { max-height: 430px; overflow: auto; padding-right: 2px; }
.wk-day { font-size: 14px; font-weight: 700; color: #5b21b6; margin: 10px 0 4px; }
.wk-day.now { color: #4f46e5; }
.wk-day.past { color: #b3b8c9; }
.wk-row { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; border-bottom: 1px dashed #ece9f8; font-size: 13px; }
.wk-row:last-child { border-bottom: none; }
.wk-row.past .wk-main, .wk-row.past .wk-time, .wk-row.past .wk-loc { text-decoration: line-through; color: #b3b8c9; }
.wk-time { min-width: 84px; color: #7c6bb1; font-size: 12.5px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.wk-main { flex: 1; color: #2a2f55; line-height: 1.5; }
.wk-loc { color: #9aa0b5; font-size: 12px; text-align: right; flex-shrink: 0; max-width: 40%; }

.wk-cur { font-size: 12.5px; font-weight: 700; color: #6d28d9; background: #f3f0ff; border-radius: 8px; padding: 3px 10px; display: inline-block; margin: 6px 0 2px; }

/* ===================== 六自评价 ===================== */
.six-prog { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.six-prog .tag { min-width: 60px; text-align: center; }
.six-prog .cover-track { flex: 1; margin: 0; }
.six-miss { display: flex; flex-wrap: wrap; gap: 8px; }
.six-miss-item { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; font-size: 13px; }
.six-miss-item i { color: var(--muted); font-style: normal; margin-left: 6px; font-size: 12px; }
.six-link { background: var(--bg); border: 1px dashed var(--border); border-radius: 8px; padding: 10px; font-size: 13px; word-break: break-all; text-align: center; }
.six-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.six-table th, .six-table td { border-bottom: 1px solid var(--border); padding: 8px 10px; text-align: center; }
.six-table th { color: var(--muted); font-weight: 600; background: var(--bg); }
.six-row { cursor: pointer; }
.six-row:hover td { background: var(--bg); }
.six-comp { font-weight: 700; color: var(--primary); font-size: 15px; }
.six-good { color: #16a34a; font-weight: 600; }
.six-bad { color: #dc2626; font-weight: 600; }
.six-cmt { font-size: 13.5px; line-height: 1.7; margin: 6px 0; }
.six-tbtn { border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: 13.5px; color: var(--text, #334155); }
.six-tbtn.done { border-color: #86efac; background: #f0fdf4; }
.six-tbtn:hover { border-color: var(--primary); }
.six-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 10px 0; }
.six-group { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.six-group > b { color: var(--primary); font-size: 13px; }
.six-gmem { display: inline-block; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 2px 10px; margin: 4px 4px 0 0; font-size: 13px; }
.six-gsel { padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 13.5px; }
/* 星星打分 */
.star-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.star-lb { width: 44px; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.stars { font-size: 22px; letter-spacing: 4px; cursor: pointer; line-height: 1; user-select: none; }
.star { color: #d4d4d8; transition: color .15s, transform .15s; }
.star.on { color: #f59e0b; }
.star:hover { transform: scale(1.15); }
.star-val { min-width: 40px; font-size: 12px; }
/* ===================== 六自免登录填写页 ===================== */
.fill-wrap { min-height: 100vh; background: linear-gradient(160deg, #eef2ff, #fdf4ff 55%, #ecfeff); display: flex; align-items: flex-start; justify-content: center; padding: 24px 14px 60px; }
.fill-card { background: #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(79, 70, 229, .12); padding: 22px 18px; width: 100%; max-width: 520px; }
.fill-brand { text-align: center; font-weight: 800; font-size: 19px; color: var(--primary); letter-spacing: 1px; }
.fill-who { background: #eef2ff; color: #4338ca; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 10px 0; }
.fill-err { background: #fef2f2; color: #b91c1c; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin: 8px 0; }
/* 软提示（不是错误）：作业时间只选了一端＝本次不设时间，仍可正常发布/保存 */
.fill-err.soft { background: #eef3ff; color: #3b5578; }
.fill-peer { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin: 10px 0; background: #fafafa; }
.fill-peer > b { font-size: 14.5px; }
.fill-peer-cmt { width: 100%; box-sizing: border-box; margin-top: 6px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }
.fill-card h4 { margin: 14px 0 2px; }
.fill-card label { display: block; font-size: 13.5px; margin-top: 10px; }
.fill-card input:not(.fill-peer-cmt), .fill-card select, .fill-card textarea { width: 100%; box-sizing: border-box; margin-top: 4px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.fill-card .block { margin-top: 14px; }
@media (max-width: 640px) {
  .star-lb { width: 38px; font-size: 13px; }
  .stars { font-size: 24px; letter-spacing: 6px; }
  .fill-card { padding: 18px 14px; }
  .six-table { font-size: 12.5px; }
  /* 防 iOS 聚焦自动放大：输入保持 ≥16px */
  .fill-card input, .fill-card select, .fill-card textarea, .fill-peer-cmt { font-size: 16px; }
}

/* ===================== 六自问卷设计器 ===================== */
.six-design { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.six-dcard { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: #fff; }
.six-dcard > b { color: var(--primary); font-size: 14px; }
.six-ditems { width: 100%; box-sizing: border-box; margin-top: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13.5px; line-height: 1.8; font-family: inherit; resize: vertical; }
/* ===================== 维度观察点打星（填写页 / 老师评定） ===================== */
.six-dim { border: 1px solid var(--border); border-radius: 12px; padding: 8px 14px 6px; margin: 10px 0; background: #fafbfc; }
.six-dim-t { font-weight: 700; color: var(--primary); margin: 2px 0 4px; font-size: 14px; }
.six-scroll { max-height: 55vh; overflow: auto; padding-right: 4px; }
.six-dim .star-row { margin: 5px 0; }
/* 长题目：观察点文字占主行，星星靠右 */
.fill-card .star-lb, #sixTStars .star-lb { flex: 1; width: auto; font-size: 13.5px; font-weight: 400; }
.fill-card .star-val, #sixTStars .star-val { min-width: 34px; text-align: right; }
@media (max-width: 640px) {
  .fill-card .stars, #sixTStars .stars { font-size: 22px; letter-spacing: 4px; }
}

/* 引导文案与必填标记 */
.fill-intro { background: #eef2ff; border: 1px solid #e0e7ff; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.8; color: #3730a3; margin: 10px 0; }
.fill-req { display: block; color: #b45309; font-style: normal; font-size: 12px; margin-top: 2px; }
.fill-card textarea { line-height: 1.7; }

/* 考勤打卡 */
.att-badge { display: inline-block; border: 1px solid var(--border, #e2e8f0); border-radius: 12px; padding: 2px 10px; font-size: 12px; background: var(--bg, #f1f5f9); color: var(--muted, #64748b); white-space: nowrap; }
.att-badge.att-ok { background: #ecfdf5; border-color: #a7f3d0; color: #059669; }
.att-badge.att-late { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.att-badge.att-abs { background: #fef2f2; border-color: #fecaca; color: #dc2626; }

/* 登录页：六自体系介绍 */
.fill-about { background: linear-gradient(180deg, #eef2ff, #fdf4ff); border: 1px solid #e0e7ff; border-radius: 12px; padding: 12px 14px; margin: 12px 0 2px; font-size: 13px; line-height: 1.8; color: #3730a3; text-align: left; }
.fill-about .ft { display: block; text-align: center; font-size: 14px; font-weight: 800; color: #4338ca; margin-bottom: 4px; letter-spacing: 1px; }
.fill-about p { margin: 4px 0; }
.fill-about .fa-t { font-weight: 800; color: #4338ca; }
.fill-about .fa-t::after { content: "："; }

/* ---- 家长端：成长报告单查看 ---- */
.rp-wrap { width: 100%; max-width: 820px; }
.rp-head { text-align: center; margin-bottom: 10px; }
.rp-title { font-size: 19px; font-weight: 800; color: #312e81; }
.rp-sub { font-size: 12.5px; color: #6b7280; margin-top: 4px; }
.rp-nav { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px; box-shadow: 0 4px 16px rgba(79,70,229,.08); }
.rp-nav .btn { white-space: nowrap; }
.rp-nav .btn[disabled] { opacity: .45; }
.rp-sel { flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid var(--border); border-radius: 9px; font-size: 14px; background: #fff; color: var(--text); }
.rp-meta { font-size: 12.5px; color: #6b7280; margin: 10px 2px 12px; }
.rp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
/* 家长「已阅读」回执 */
.rp-ack { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 16px 14px; margin-top: 16px; text-align: center; box-shadow: 0 4px 16px rgba(79,70,229,.08); }
.rp-ack.done { background: #f0fdf4; border-color: #bbf7d0; box-shadow: none; }
.rp-ack-main { font-size: 15.5px; font-weight: 800; color: #312e81; }
.rp-ack.done .rp-ack-main { color: #15803d; }
.rp-ack-sub { font-size: 12.5px; color: #6b7280; margin-top: 5px; line-height: 1.6; }
.rp-ack-note { margin-top: 10px; padding: 9px 12px; background: #fff; border: 1px dashed #bbf7d0; border-radius: 10px; font-size: 14px; color: #374151; text-align: left; line-height: 1.6; }
.ack-sum { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.ack-chip { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: #6b7280; }
.ack-chip.on { background: #ecfdf5; border-color: #a7f3d0; color: #15803d; font-weight: 700; }
.ack-ok { color: #15803d; font-weight: 700; font-size: 13px; }

/* 科任老师作业登记（?hw=令牌）与教师端作业布置区 */
.hw-recent { border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; margin-bottom: 8px; background: #fafbff; font-size: 13.5px; }
.hw-recent > b { font-size: 13.5px; color: #312e81; }
.hw-by { margin-left: 8px; font-size: 12px; color: #4338ca; background: #eef2ff; border-radius: 999px; padding: 1px 8px; }
.hw-txt { margin-top: 4px; color: #374151; line-height: 1.6; white-space: pre-wrap; }
.hw-sum { margin: 14px 0 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.hw-sum > div { display: flex; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--border); font-size: 14px; line-height: 1.7; }
.hw-sum > div:first-child { border-top: 0; }
.hw-sum > div > span { flex: 0 0 76px; color: #6b7280; font-size: 13px; }
.hw-sum > div > b { flex: 1; color: #111827; font-weight: 600; word-break: break-word; }
.hw-sum .hw-sum-full > span { flex-basis: 76px; }
.hw-card-title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hw-logged { font-size: 12px; color: #15803d; }

/* 登记页双入口（成绩登记 / 布置作业） */
.hw-tabs { display: flex; gap: 8px; margin: 12px 0 4px; }
.hw-tab { flex: 1; padding: 9px 8px; border: 1px solid var(--border); background: #fff; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: #4b5563; cursor: pointer; }
.hw-tab.on { background: var(--primary); border-color: var(--primary); color: #fff; }
/* 教师端：科任老师成绩提交到账提示 */
.sc-new { margin-top: 10px; padding: 9px 11px; background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 10px; font-size: 13px; color: #166534; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sc-new-item { border: 1px solid #86efac; background: #fff; color: #15803d; border-radius: 999px;
  padding: 4px 11px; font-size: 12.5px; cursor: pointer; }
.sc-new-item:hover { background: #dcfce7; }

/* 成绩登记：录入方式三选一 */
.sc-picks { display: flex; gap: 8px; margin: 12px 0 6px; }
.sc-pick { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  padding: 11px 6px; border: 1px dashed #c7d2fe; background: #f8faff; border-radius: 12px; cursor: pointer; }
.sc-pick:active { background: #eef2ff; }
.sc-pick-ico { font-size: 22px; line-height: 1.2; }
.sc-pick b { font-size: 13.5px; color: #312e81; }
.sc-pick span { font-size: 11px; color: #6b7280; line-height: 1.5; }

/* 成绩登记：识别结果校对 */
.sc-stat { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0 6px;
  padding: 8px 10px; background: #f3f4f6; border-radius: 10px; font-size: 13px; color: #374151; }
.sc-stat .sc-ok-t { color: #15803d; }
.sc-stat .sc-warn-t { color: #b45309; }
.sc-stat #scClear { margin-left: auto; }
.sc-list { max-height: 46vh; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; }
.sc-row { display: flex; gap: 8px; align-items: center; padding: 7px 9px; border-top: 1px solid var(--border); background: #fff; }
.sc-row:first-child { border-top: 0; }
.sc-row.un { background: #fffbeb; }
.sc-row.over { background: #fef2f2; }
.sc-name { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; color: #111827;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-score { flex: 0 0 74px; width: 74px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 16px; text-align: center; }
.sc-stu { flex: 0 0 auto; display: flex; align-items: center; }
.sc-pickstu { max-width: 150px; padding: 5px 6px; border: 1px solid #fbbf24; border-radius: 8px; font-size: 13px; background: #fff; }
.sc-badge { border: 0; background: #dcfce7; color: #15803d; border-radius: 999px; padding: 3px 9px;
  font-size: 12px; cursor: pointer; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-del { flex: 0 0 auto; border: 0; background: #f3f4f6; color: #6b7280; border-radius: 8px;
  width: 30px; height: 30px; font-size: 13px; cursor: pointer; }
.sc-del:active { background: #fee2e2; color: #b91c1c; }
.sc-loading { text-align: center; padding: 26px 10px; }
.sc-loading p { margin-top: 10px; font-size: 13.5px; color: #4b5563; }
.sc-loading .spinner { margin: 0 auto; }

@media (max-width: 640px) {
  .rp-title { font-size: 17px; }
  .rp-nav { flex-wrap: wrap; }
  .rp-nav .btn { flex: 1; }
  .rp-sel { order: 3; flex-basis: 100%; font-size: 16px; }
  .rp-actions .btn { flex: 1; }
  .hw-sum > div { flex-direction: column; gap: 2px; }
  .hw-sum > div > span { flex: none; }
  .sc-picks { flex-direction: column; }
  .sc-pick { flex-direction: row; gap: 10px; text-align: left; padding: 10px 12px; }
  .sc-pick-ico { font-size: 20px; }
  .sc-pick span { flex: 1; }
  .sc-row { flex-wrap: wrap; }
  .sc-pickstu { max-width: 100%; }
  .sc-stu { flex: 1 1 100%; }
}

/* ============================================================
   家长端成长报告单 · 高端精美版（20260922）
   变量与内容规则挂在 .rp-page 上（PDF 装载容器会继承同类以保留样式），
   页面外壳规则挂 #reportView.rp-page；
   不触碰 .report-preview 原有规则（教师端预览、快照均不受影响）
   ============================================================ */
.rp-page {
  --rp-ink: #1b1f3b;
  --rp-ink-2: #3c4266;
  --rp-gold: #b98a3c;
  --rp-gold-2: #e0c07a;
  --rp-line: #e6e2d8;
  --rp-paper: #fffefb;
}
#reportView.rp-page {
  display: block;
  min-height: 100vh;
  padding: 0 0 56px;
  background:
    radial-gradient(900px 460px at 82% -8%, rgba(185,138,60,.10), transparent 62%),
    radial-gradient(760px 420px at 6% 12%, rgba(79,70,229,.09), transparent 58%),
    linear-gradient(178deg, #f7f6f2 0%, #f4f2ee 46%, #f1efea 100%);
}
.rp-page .rp-wrap {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- 顶部品牌横幅 ---- */
.rp-page .rp-hero {
  position: relative;
  margin: 18px 0 16px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 42%, #4c1d95 100%);
  box-shadow: 0 20px 46px rgba(30,27,75,.26), 0 2px 0 rgba(255,255,255,.4) inset;
  padding: 26px 24px 22px;
  color: #fff;
}
.rp-page .rp-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(520px 220px at 88% 8%, rgba(224,192,122,.30), transparent 66%),
    radial-gradient(400px 200px at 4% 96%, rgba(129,140,248,.30), transparent 62%);
  pointer-events: none;
}
.rp-page .rp-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--rp-gold-2), var(--rp-gold), transparent);
  opacity: .85;
}
.rp-page .rp-hero-in { position: relative; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rp-page .rp-crest {
  flex: 0 0 auto;
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; letter-spacing: 1px;
  color: #1e1b4b;
  background: linear-gradient(150deg, #fdf6e3, var(--rp-gold-2));
  box-shadow: 0 8px 20px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.7);
}
.rp-page .rp-hero-txt { flex: 1 1 220px; min-width: 0; }
.rp-page .rp-eyebrow {
  font-size: 11.5px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--rp-gold-2); font-weight: 700;
}
.rp-page .rp-hero-name {
  font-size: 25px; font-weight: 800; letter-spacing: 1px; margin-top: 4px;
  line-height: 1.25; text-shadow: 0 2px 10px rgba(0,0,0,.22);
  word-break: break-word;
}
.rp-page .rp-hero-name small { font-size: 15px; font-weight: 500; opacity: .82; margin-left: 6px; letter-spacing: 0; }
.rp-page .rp-hero-sub { margin-top: 7px; font-size: 12.5px; color: rgba(255,255,255,.82); letter-spacing: .3px; }
.rp-page .rp-hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; position: relative; }
.rp-page .rp-chip {
  font-size: 12px; padding: 4px 11px; border-radius: 999px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24);
  color: rgba(255,255,255,.94); backdrop-filter: blur(4px);
}
.rp-page .rp-seal {
  flex: 0 0 auto; align-self: flex-start;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding-left: 4px;
}
.rp-page .rp-seal-ring {
  width: 78px; height: 78px; border-radius: 50%;
  border: 2px solid rgba(224,192,122,.62);
  box-shadow: 0 0 0 5px rgba(224,192,122,.12), inset 0 0 18px rgba(224,192,122,.16);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--rp-gold-2); line-height: 1.15;
}
.rp-page .rp-seal-ring b { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.rp-page .rp-seal-ring i { font-style: normal; font-size: 10px; letter-spacing: 1.6px; opacity: .9; margin-top: 2px; }
.rp-page .rp-seal-cap { font-size: 10.5px; color: rgba(255,255,255,.6); letter-spacing: .8px; }

/* ---- 工具栏（导航 + 切换）---- */
.rp-page .rp-bar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--rp-line);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(27,31,59,.06);
  backdrop-filter: blur(8px);
}
.rp-page .rp-bar .btn { white-space: nowrap; }
.rp-page .rp-bar .btn[disabled] { opacity: .4; }
.rp-page .rp-sel {
  flex: 1 1 180px; min-width: 0;
  padding: 9px 12px; border: 1px solid var(--rp-line); border-radius: 10px;
  font-size: 13.5px; background: #fff; color: var(--rp-ink);
}
.rp-page .rp-meta {
  font-size: 12.5px; color: #7a7f95; margin: 12px 4px 14px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.rp-page .rp-meta b { color: var(--rp-ink-2); font-weight: 700; }
.rp-page .rp-meta .rp-dot { width: 4px; height: 4px; border-radius: 50%; background: #c9cbd6; }
.rp-page .rp-count {
  margin-left: auto; font-size: 11.5px; letter-spacing: .5px;
  border: 1px solid var(--rp-line); border-radius: 999px; padding: 2px 10px;
  background: #fff; color: #7a7f95;
}

/* ---- 报告纸：纸张质感 + 装订金线 ---- */
.rp-page .rp-paper-wrap { position: relative; }
.rp-page .report-preview {
  position: relative;
  /* 只用单层纯色：html2canvas 解析「多层/含 var 的 background 简写」会抛
     "Unsupported image type"（导出 PDF 时静默兜底丢失全部样式）。
     顶部那道白色渐隐光改为独立伪元素 .rp-veil（见下）绘制。 */
  background-color: var(--rp-paper);
  border: 1px solid var(--rp-line);
  border-radius: 20px;
  padding: 42px 46px 46px;
  box-shadow: 0 26px 60px rgba(27,31,59,.13), 0 3px 10px rgba(27,31,59,.05);
  overflow: hidden;
  color: var(--rp-ink);
  max-width: 794px;
  margin: 0 auto;
}
/* 纸张顶部白色渐隐光晕（原 background 第二层渐变的等价实现） */
/* 纸张顶部白色渐隐（铺在内容之下，纯装饰） */
.rp-page .report-preview .rp-veil {
  position: absolute; top: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,0));
  pointer-events: none; z-index: 0;
}
.rp-page .report-preview::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, #1e1b4b, #4f46e5 35%, var(--rp-gold) 68%, var(--rp-gold-2));
  z-index: 2;
}
.rp-page .report-preview::after {
  content: "";
  position: absolute; top: 5px; bottom: 0; left: 0; width: 34px;
  background: linear-gradient(90deg, rgba(185,138,60,.10), rgba(185,138,60,0));
  pointer-events: none;
  z-index: 0;
}
.rp-page .report-preview > * { position: relative; z-index: 1; }

/* ---- 报告标题区 ---- */
.rp-page .report-preview h1 {
  text-align: center;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--rp-ink);
  margin: 2px 0 0;
  line-height: 1.3;
}
.rp-page .report-preview h1::after {
  content: "";
  display: block;
  width: 78px; height: 3px;
  margin: 14px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--rp-gold), var(--rp-gold-2), var(--rp-gold));
}
.rp-page .report-preview .r-sub {
  text-align: center;
  color: #8b8fa6;
  font-size: 12.5px;
  letter-spacing: 1.6px;
  margin: 12px 0 26px;
}

/* ---- 章节标题：编号徽章（生成时写入 .r-no）+ 金色底纹 ---- */
.rp-page .report-preview h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 800; letter-spacing: 1.2px;
  color: #2b2f55;
  margin: 30px 0 14px;
  padding: 0 0 9px;
  border-left: 0;
  border-bottom: 1px solid var(--rp-line);
}
.rp-page .report-preview h2 .r-no {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0;
  color: #6b4e13;
  background: linear-gradient(150deg, #fdf6e3, #f0dcae);
  border: 1px solid #e6d3a4;
  box-shadow: 0 2px 6px rgba(185,138,60,.16);
}
.rp-page .report-preview h2::after {
  content: "";
  flex: 1 1 auto;
  height: 3px;
  margin-left: 2px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(185,138,60,.34), rgba(185,138,60,0));
}

/* ---- 表格：精致无网格线 + 隔行浅底 + 表头金线 ---- */
.rp-page .report-preview table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 4px;
  font-size: 13px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(27,31,59,.05);
}
.rp-page .report-preview th,
.rp-page .report-preview td {
  border: 0;
  border-bottom: 1px solid #f0eee8;
  padding: 10px 13px;
  font-size: 13px;
  text-align: left;
  vertical-align: middle;
}
.rp-page .report-preview th {
  background: #faf8f3;
  color: #5c6284;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .4px;
  border-bottom: 2px solid #ece5d5;
  white-space: nowrap;
}
.rp-page .report-preview tbody tr:nth-child(even) td,
.rp-page .report-preview tr:nth-child(even) td { background: #fcfbf8; }
.rp-page .report-preview tbody tr:hover td,
.rp-page .report-preview tr:hover td { background: #f7f6ff; }
.rp-page .report-preview td b { color: #3a2f10; font-weight: 800; }
.rp-page .report-preview td small { font-weight: 500; }

/* ---- 正文段落 ---- */
.rp-page .report-preview p {
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--rp-ink-2);
}
.rp-page .report-preview > p { margin: 8px 0; }

/* ---- 照片墙 ---- */
.rp-page .report-preview .r-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.rp-page .report-preview .r-photo-grid img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--rp-line);
  box-shadow: 0 4px 14px rgba(27,31,59,.10);
  display: block;
}

/* ---- 回执卡：信笺质感 ---- */
.rp-page .rp-ack {
  position: relative;
  background: #fff;
  border: 1px solid var(--rp-line);
  border-radius: 18px;
  padding: 20px 20px 18px;
  margin-top: 20px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(27,31,59,.07);
  overflow: hidden;
}
.rp-page .rp-ack::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--rp-gold-2), var(--rp-gold), transparent);
}
.rp-page .rp-ack.done {
  background: linear-gradient(180deg, #f6fdf9, #fff);
  border-color: #c9ead9;
  box-shadow: 0 12px 30px rgba(5,150,105,.08);
}
.rp-page .rp-ack.done::before { background: linear-gradient(90deg, transparent, #6ee7b7, #059669, transparent); }
.rp-page .rp-ack-main { font-size: 16.5px; font-weight: 800; color: var(--rp-ink); letter-spacing: .5px; }
.rp-page .rp-ack.done .rp-ack-main { color: #0f7a4d; }
.rp-page .rp-ack-sub { font-size: 12.5px; color: #7a7f95; margin-top: 6px; line-height: 1.7; }
.rp-page .rp-ack-note {
  margin-top: 12px; padding: 11px 14px;
  background: #fffdf7;
  border: 1px dashed #e6d3a4;
  border-radius: 12px;
  font-size: 14px; color: var(--rp-ink-2); text-align: left; line-height: 1.75;
}
.rp-page .rp-ack textarea {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--rp-line); border-radius: 12px;
  padding: 10px 12px; font-size: 14px; line-height: 1.7;
  font-family: inherit; color: var(--rp-ink); background: #fff;
  resize: vertical;
}

/* ---- 底部操作与落款 ---- */
.rp-page .rp-actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px;
  justify-content: center;
}
.rp-page .rp-actions .btn.primary {
  background: linear-gradient(135deg, #312e81, #4f46e5 55%, #6d28d9);
  border: 0; color: #fff;
  box-shadow: 0 10px 24px rgba(79,70,229,.30);
  padding: 12px 22px; font-size: 15px; font-weight: 700;
}
.rp-page .rp-actions .btn.primary:hover { filter: brightness(1.06); }
.rp-page .rp-foot {
  margin: 26px auto 0;
  max-width: 620px;
  text-align: center;
}
.rp-page .rp-foot-line {
  width: 60px; height: 3px; margin: 0 auto 14px; border-radius: 3px;
  background: linear-gradient(90deg, var(--rp-gold), var(--rp-gold-2), var(--rp-gold));
}
.rp-page .rp-foot-org { font-size: 13px; font-weight: 800; color: #3c4266; letter-spacing: 2.5px; }
.rp-page .rp-foot-note { font-size: 12px; color: #8b8fa6; margin-top: 7px; line-height: 1.85; }
.rp-page .rp-end-mark {
  text-align: center;
  margin: 34px 0 0;
  font-size: 12px;
  color: #9a94a8;
  letter-spacing: 3px;
}
.rp-page .rp-end-mark::before,
.rp-page .rp-end-mark::after {
  content: "";
  display: inline-block; vertical-align: middle;
  width: 46px; height: 1px; margin: 0 12px;
  background: linear-gradient(90deg, transparent, #cfc8b8);
}
.rp-page .rp-end-mark::after { background: linear-gradient(270deg, transparent, #cfc8b8); }

/* ---- 填写码入口页同样升级 ---- */
.rp-page .rp-gate {
  max-width: 480px;
  margin: 56px auto 0;
  background: #fff;
  border: 1px solid var(--rp-line);
  border-radius: 22px;
  padding: 34px 30px 30px;
  box-shadow: 0 24px 60px rgba(27,31,59,.11);
  position: relative;
  overflow: hidden;
}
.rp-page .rp-gate::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, #1e1b4b, #4f46e5 40%, var(--rp-gold) 72%, var(--rp-gold-2));
}
.rp-page .rp-gate-crest {
  width: 62px; height: 62px; margin: 2px auto 14px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 27px;
  background: linear-gradient(150deg, #eef2ff, #e0e7ff);
  border: 1px solid #dcdcf7;
  box-shadow: 0 8px 20px rgba(79,70,229,.14);
}
.rp-page .rp-gate-title {
  text-align: center; font-size: 20px; font-weight: 800;
  color: var(--rp-ink); letter-spacing: 1.5px;
}
.rp-page .rp-gate-sub {
  text-align: center; font-size: 12.5px; color: #8b8fa6;
  margin-top: 8px; line-height: 1.8;
}
.rp-page .rp-gate-label {
  display: block; margin-top: 24px; font-size: 13px; font-weight: 700; color: #5c6284;
  letter-spacing: .5px;
}
.rp-page .rp-gate-input {
  width: 100%; box-sizing: border-box; margin-top: 9px;
  padding: 13px 14px; border: 1px solid var(--rp-line); border-radius: 13px;
  font-size: 22px; letter-spacing: 9px; text-align: center;
  font-weight: 700; color: var(--rp-ink); background: #fffdf9;
  transition: border-color .15s, box-shadow .15s;
}
.rp-page .rp-gate-input:focus {
  outline: none; border-color: #a5b4fc;
  box-shadow: 0 0 0 4px rgba(99,102,241,.13);
  background: #fff;
}
.rp-page .rp-gate .btn.primary {
  width: 100%; margin-top: 16px;
  background: linear-gradient(135deg, #312e81, #4f46e5 55%, #6d28d9);
  border: 0; color: #fff;
  box-shadow: 0 10px 24px rgba(79,70,229,.28);
  padding: 13px 20px; font-size: 15.5px; font-weight: 700;
}
.rp-page .rp-gate-note {
  margin-top: 18px; font-size: 12px; color: #9a94a8;
  line-height: 1.85; text-align: center;
  padding-top: 16px; border-top: 1px dashed #ece7dc;
}
.rp-page .rp-err { color: #b91c1c; font-size: 13px; text-align: center; margin-top: 12px; font-weight: 600; }

/* ---- 空状态 ---- */
.rp-page .rp-empty { text-align: center; padding: 8px 4px; }
.rp-page .rp-empty-ico { font-size: 44px; line-height: 1; }
.rp-page .rp-empty h3 { font-size: 17px; font-weight: 800; color: var(--rp-ink); margin: 14px 0 8px; }
.rp-page .rp-empty p { font-size: 13px; color: #8b8fa6; line-height: 1.85; }

/* ---- 移动端 ---- */
@media (max-width: 700px) {
  #reportView.rp-page { padding-bottom: 40px; }
  .rp-page .rp-wrap { padding: 0 11px; }
  .rp-page .rp-hero { padding: 20px 17px 18px; border-radius: 18px; }
  .rp-page .rp-hero-name { font-size: 20px; }
  .rp-page .rp-hero-name small { display: block; margin: 3px 0 0; font-size: 13px; }
  .rp-page .rp-crest { width: 48px; height: 48px; border-radius: 14px; font-size: 20px; }
  .rp-page .rp-seal { display: none; }
  .rp-page .rp-bar { padding: 9px 10px; gap: 8px; }
  .rp-page .rp-bar .btn { flex: 1 1 40%; font-size: 13px; }
  .rp-page .rp-sel { flex: 1 1 100%; order: 3; font-size: 13px; }
  .rp-page .report-preview { padding: 26px 17px 30px; border-radius: 16px; max-width: 100%; }
  .rp-page .report-preview::after { display: none; }
  .rp-page .report-preview h1 { font-size: 21px; letter-spacing: 3px; }
  .rp-page .report-preview h2 { font-size: 15px; gap: 8px; }
  .rp-page .report-preview h2::before { width: 26px; height: 26px; border-radius: 8px; font-size: 11.5px; }
  .rp-page .report-preview table { font-size: 12px; }
  .rp-page .report-preview th,
  .rp-page .report-preview td { padding: 8px 10px; font-size: 12px; }
  .rp-page .report-preview .r-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .rp-page .rp-actions .btn { flex: 1 1 100%; }
  .rp-page .rp-gate { margin-top: 28px; padding: 26px 19px 22px; border-radius: 18px; }
}



/* ============================================================
   六自评价免登录填写页 · 高端精美版（20260922c）
   与家长端报告单同源设计语言：深紫品牌横幅 + 米白信纸 + 金色点缀
   作用域：#fillView.rp-page（页面外壳）+ .rp-page（内容规则）；
   不触碰教师端既有规则与 .fill-card（?hw= 登记页仍在用）
   ============================================================ */
#fillView.rp-page {
  display: block;
  min-height: 100vh;
  padding: 0 0 56px;
  background:
    radial-gradient(900px 460px at 82% -8%, rgba(185,138,60,.10), transparent 62%),
    radial-gradient(760px 420px at 6% 12%, rgba(79,70,229,.09), transparent 58%),
    linear-gradient(178deg, #f7f6f2 0%, #f4f2ee 46%, #f1efea 100%);
}

/* ---- 品牌横幅 ---- */
.rp-page .fl-hero {
  position: relative;
  margin: 18px 0 16px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 42%, #4c1d95 100%);
  box-shadow: 0 20px 46px rgba(30,27,75,.26), 0 2px 0 rgba(255,255,255,.4) inset;
  padding: 24px 24px 20px;
  color: #fff;
}
.rp-page .fl-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(520px 220px at 88% 8%, rgba(224,192,122,.30), transparent 66%),
    radial-gradient(400px 200px at 4% 96%, rgba(129,140,248,.30), transparent 62%);
  pointer-events: none;
}
.rp-page .fl-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--rp-gold-2), var(--rp-gold), transparent);
  opacity: .85;
}
.rp-page .fl-hero-in { position: relative; display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.rp-page .fl-crest {
  flex: 0 0 auto;
  width: 54px; height: 54px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 23px; font-weight: 800; letter-spacing: 1px;
  color: #1e1b4b;
  background: linear-gradient(150deg, #fdf6e3, var(--rp-gold-2));
  box-shadow: 0 8px 20px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.7);
}
.rp-page .fl-hero-txt { flex: 1 1 220px; min-width: 0; }
.rp-page .fl-eyebrow {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--rp-gold-2); font-weight: 700;
}
.rp-page .fl-hero-name {
  font-size: 22px; font-weight: 800; letter-spacing: 1px; margin-top: 4px;
  line-height: 1.3; text-shadow: 0 2px 10px rgba(0,0,0,.22);
  word-break: break-word;
}
.rp-page .fl-hero-sub { margin-top: 7px; font-size: 12.5px; color: rgba(255,255,255,.82); }
.rp-page .fl-hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; position: relative; }
.rp-page .fl-hero .rp-chip {
  font-size: 12px; padding: 4px 11px; border-radius: 999px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24);
  color: rgba(255,255,255,.94);
}
.rp-page .fl-hero .rp-chip b { color: var(--rp-gold-2); font-weight: 800; }

/* ---- 信纸（主卡片）---- */
.rp-page .fl-paper {
  position: relative;
  background-color: var(--rp-paper);
  border: 1px solid var(--rp-line);
  border-radius: 20px;
  padding: 34px 34px 38px;
  box-shadow: 0 26px 60px rgba(27,31,59,.13), 0 3px 10px rgba(27,31,59,.05);
  overflow: hidden;
  color: var(--rp-ink);
  max-width: 794px;
  margin: 0 auto;
  box-sizing: border-box;
}
.rp-page .fl-paper::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 5px; z-index: 2;
  background: linear-gradient(90deg, #1e1b4b, #4f46e5 35%, var(--rp-gold) 68%, var(--rp-gold-2));
}
.rp-page .fl-paper::after {
  content: "";
  position: absolute; top: 5px; bottom: 0; left: 0; width: 34px; z-index: 0;
  background: linear-gradient(90deg, rgba(185,138,60,.10), rgba(185,138,60,0));
  pointer-events: none;
}
.rp-page .fl-paper > * { position: relative; z-index: 1; }

.rp-page .fl-hd { text-align: center; margin: 0 0 6px; }
.rp-page .fl-hd-ico {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  background: linear-gradient(150deg, #eef2ff, #e0e7ff);
  border: 1px solid #dcdcf7;
  box-shadow: 0 8px 20px rgba(79,70,229,.14);
}
.rp-page .fl-hd-title {
  font-size: 22px; font-weight: 800; letter-spacing: 4px; color: var(--rp-ink);
}
.rp-page .fl-hd-title::after {
  content: "";
  display: block; width: 72px; height: 3px; margin: 13px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--rp-gold), var(--rp-gold-2), var(--rp-gold));
}
.rp-page .fl-hd-sub {
  font-size: 12.5px; color: #8b8fa6; letter-spacing: 1.2px; margin-top: 12px; line-height: 1.9;
}

/* ---- 六自说明（信笺块）---- */
.rp-page .rl-about {
  margin: 22px 0 4px;
  background: #fffdf7;
  border: 1px solid #f0e6cd;
  border-radius: 16px;
  padding: 16px 18px 14px;
}
.rp-page .rl-about-t {
  display: block; text-align: center;
  font-size: 14px; font-weight: 800; letter-spacing: 2px;
  color: #6b4e13; margin-bottom: 10px;
}
.rp-page .rl-about p {
  margin: 7px 0; font-size: 13px; line-height: 1.9; color: var(--rp-ink-2);
}
.rp-page .rl-about .fa-t {
  font-weight: 800; color: #8a6a1f;
  background: rgba(224,192,122,.28);
  border-radius: 5px; padding: 1px 6px; margin-right: 6px;
  font-size: 12.5px; white-space: nowrap;
}

/* ---- 身份选择（学生 / 家长）---- */
.rp-page .fl-modes { display: flex; gap: 10px; margin: 20px 0 4px; }
.rp-page .fl-mode {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 15px 10px 13px;
  background: #fff;
  border: 1.5px solid var(--rp-line);
  border-radius: 15px;
  cursor: pointer;
  transition: border-color .16s, box-shadow .16s, transform .16s, background .16s;
}
.rp-page .fl-mode-ico { font-size: 24px; line-height: 1.15; }
.rp-page .fl-mode b { font-size: 14.5px; font-weight: 800; color: var(--rp-ink-2); letter-spacing: .5px; }
.rp-page .fl-mode span { font-size: 11.5px; color: #9a94a8; }
.rp-page .fl-mode:hover { border-color: #c7c9e8; transform: translateY(-1px); }
.rp-page .fl-mode.on {
  background: linear-gradient(160deg, #f8f7ff, #fdfbff);
  border-color: #a5b4fc;
  box-shadow: 0 10px 24px rgba(79,70,229,.14);
}
.rp-page .fl-mode.on b { color: #312e81; }

/* ---- 表单字段 ---- */
.rp-page .fl-fld { display: block; margin-top: 18px; }
.rp-page .fl-fld-lb {
  display: block; font-size: 13px; font-weight: 700; color: #5c6284;
  letter-spacing: .5px; margin-bottom: 8px;
}
.rp-page .fl-fld-lb i { font-style: normal; color: #b45309; font-weight: 600; font-size: 11.5px; margin-left: 6px; }
.rp-page .fl-paper input:not(.fl-peer-cmt),
.rp-page .fl-paper select,
.rp-page .fl-paper textarea {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--rp-line);
  border-radius: 12px;
  font-size: 14.5px; font-family: inherit; color: var(--rp-ink);
  background: #fffdf9;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.rp-page .fl-paper input:focus,
.rp-page .fl-paper select:focus,
.rp-page .fl-paper textarea:focus {
  outline: none; border-color: #a5b4fc;
  box-shadow: 0 0 0 4px rgba(99,102,241,.13);
  background: #fff;
}
.rp-page .fl-paper textarea { line-height: 1.85; resize: vertical; }
.rp-page .fl-code {
  font-size: 22px !important; letter-spacing: 9px !important; text-align: center;
  font-weight: 700;
}
.rp-page .fl-btn {
  width: 100%; margin-top: 20px;
  background: linear-gradient(135deg, #312e81, #4f46e5 55%, #6d28d9);
  border: 0; color: #fff;
  box-shadow: 0 10px 24px rgba(79,70,229,.28);
  padding: 14px 20px; font-size: 15.5px; font-weight: 700;
  border-radius: 12px; cursor: pointer;
  transition: filter .15s, transform .15s;
}
.rp-page .fl-btn:hover { filter: brightness(1.06); }
.rp-page .fl-btn:active { transform: translateY(1px); }
.rp-page .fl-tip { margin: 12px 0 0; font-size: 12.5px; color: #8b8fa6; line-height: 1.9; }
.rp-page .fl-err {
  margin: 14px 0 0; padding: 11px 14px;
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px;
  color: #b91c1c; font-size: 13px; font-weight: 600; line-height: 1.7;
}

/* ---- 当前填写人 ---- */
.rp-page .fl-who {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 20px 0 2px;
  padding: 12px 15px;
  background: linear-gradient(160deg, #f8f7ff, #fdfbff);
  border: 1px solid #e0e7ff;
  border-radius: 14px;
  font-size: 14px; color: #3730a3; font-weight: 600;
}
.rp-page .fl-who .fl-who-ico { font-size: 19px; }
.rp-page .fl-who small { font-size: 12px; color: #6b7280; font-weight: 500; }

/* ---- 章节标题（步骤）---- */
.rp-page .fl-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 15.5px; font-weight: 800; letter-spacing: 1px; color: #2b2f55;
  margin: 30px 0 8px; padding: 0 0 9px;
  border-bottom: 1px solid var(--rp-line);
}
.rp-page .fl-step .r-no {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 9px;
  font-size: 12px; font-weight: 800; letter-spacing: 0;
  color: #6b4e13;
  background: linear-gradient(150deg, #fdf6e3, #f0dcae);
  border: 1px solid #e6d3a4;
  box-shadow: 0 2px 6px rgba(185,138,60,.16);
}
.rp-page .fl-step::after {
  content: "";
  flex: 1 1 auto; height: 3px; margin-left: 2px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(185,138,60,.34), rgba(185,138,60,0));
}

/* ---- 引导语 ---- */
.rp-page .fl-intro {
  margin: 12px 0 4px; padding: 13px 16px;
  background: #f8f9ff;
  border: 1px solid #e8eafb;
  border-left: 3px solid var(--rp-gold);
  border-radius: 12px;
  font-size: 13px; line-height: 1.9; color: var(--rp-ink-2);
}

/* ---- 观察点打星（信纸内重绘）---- */
.rp-page .fl-paper .six-dim {
  background: #fff;
  border: 1px solid var(--rp-line);
  border-radius: 14px;
  padding: 12px 16px 10px;
  margin: 12px 0;
}
.rp-page .fl-paper .six-dim-t {
  display: flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 800; color: #2b2f55; letter-spacing: .8px;
  margin: 0 0 6px; padding-bottom: 8px;
  border-bottom: 1px dashed #eee7d8;
}
.rp-page .fl-paper .six-dim-t::before {
  content: "";
  width: 4px; height: 15px; border-radius: 3px;
  background: linear-gradient(180deg, var(--rp-gold), var(--rp-gold-2));
}
.rp-page .fl-paper .star-row {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 0; padding: 9px 0;
  border-bottom: 1px solid #f5f3ee;
}
.rp-page .fl-paper .star-row:last-child { border-bottom: 0; }
.rp-page .fl-paper .star-lb {
  flex: 1 1 auto; width: auto; min-width: 0;
  font-size: 13.5px; font-weight: 400; line-height: 1.7; color: var(--rp-ink-2);
  padding-top: 2px;
}
.rp-page .fl-paper .stars { flex: 0 0 auto; font-size: 25px; letter-spacing: 3px; line-height: 1; }
.rp-page .fl-paper .star { color: #dcd9d1; }
.rp-page .fl-paper .star.on { color: #e0a92c; text-shadow: 0 1px 3px rgba(224,169,44,.32); }
.rp-page .fl-paper .star-val {
  flex: 0 0 auto; min-width: 34px; text-align: right;
  font-size: 11.5px; color: #a9adbd; padding-top: 5px;
}

/* ---- 互评卡片 ---- */
.rp-page .fl-peer {
  position: relative;
  background: #fff;
  border: 1px solid var(--rp-line);
  border-radius: 16px;
  padding: 16px 18px 14px;
  margin: 14px 0;
}
.rp-page .fl-peer::before {
  content: "";
  position: absolute; top: 0; left: 18px; right: 18px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--rp-gold-2), rgba(224,192,122,0));
}
.rp-page .fl-peer-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.rp-page .fl-peer-ava {
  width: 32px; height: 32px; border-radius: 10px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #3c2f0c;
  background: linear-gradient(150deg, #fdf6e3, #f0dcae);
  border: 1px solid #e6d3a4;
}
.rp-page .fl-peer-hd b { font-size: 15px; font-weight: 800; color: var(--rp-ink); letter-spacing: .5px; }
.rp-page .fl-peer-hd span { font-size: 11.5px; color: #9a94a8; }
.rp-page .fl-peer-cmt {
  width: 100%; box-sizing: border-box; margin-top: 10px;
  padding: 11px 13px; border: 1px solid var(--rp-line); border-radius: 12px;
  font-size: 13.5px; font-family: inherit; line-height: 1.8; color: var(--rp-ink);
  background: #fffdf9;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.rp-page .fl-peer-cmt:focus {
  outline: none; border-color: #a5b4fc;
  box-shadow: 0 0 0 4px rgba(99,102,241,.13);
  background: #fff;
}

/* ---- 提交区 ---- */
.rp-page .fl-submit-wrap {
  margin-top: 26px; padding-top: 20px;
  border-top: 1px dashed #ece7dc;
}
.rp-page .fl-foot { margin: 26px auto 0; max-width: 620px; text-align: center; }
.rp-page .fl-foot-line {
  width: 60px; height: 3px; margin: 0 auto 14px; border-radius: 3px;
  background: linear-gradient(90deg, var(--rp-gold), var(--rp-gold-2), var(--rp-gold));
}
.rp-page .fl-foot-org { font-size: 13px; font-weight: 800; color: #3c4266; letter-spacing: 2.5px; }
.rp-page .fl-foot-note { font-size: 12px; color: #8b8fa6; margin-top: 7px; line-height: 1.85; }

/* ---- 提交成功 ---- */
.rp-page .fl-done { text-align: center; padding: 16px 4px 6px; }
.rp-page .fl-done-ico {
  width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 38px;
  background: radial-gradient(circle at 34% 28%, #fdf6e3, #f0dcae);
  border: 2px solid rgba(224,192,122,.6);
  box-shadow: 0 0 0 7px rgba(224,192,122,.13);
}
.rp-page .fl-done h3 {
  font-size: 21px; font-weight: 800; letter-spacing: 2px; color: var(--rp-ink);
  margin: 0 0 12px;
}
.rp-page .fl-done p { font-size: 13.5px; color: var(--rp-ink-2); line-height: 1.9; margin: 6px 0; }
.rp-page .fl-done .fl-done-sub { font-size: 12.5px; color: #9a94a8; }

/* ---- 错误 / 空状态 ---- */
.rp-page .fl-state { text-align: center; padding: 14px 4px 8px; }
.rp-page .fl-state-ico { font-size: 42px; line-height: 1; margin-bottom: 14px; }
.rp-page .fl-state h3 { font-size: 18px; font-weight: 800; color: var(--rp-ink); margin: 0 0 10px; letter-spacing: 1px; }
.rp-page .fl-state p { font-size: 13px; color: #8b8fa6; line-height: 1.9; margin: 6px 0; }

/* ---- 移动端 ---- */
@media (max-width: 700px) {
  #fillView.rp-page { padding-bottom: 40px; }
  .rp-page .fl-hero { padding: 19px 17px 17px; border-radius: 18px; margin-top: 12px; }
  .rp-page .fl-hero-name { font-size: 19px; }
  .rp-page .fl-crest { width: 46px; height: 46px; border-radius: 14px; font-size: 20px; }
  .rp-page .fl-paper { padding: 24px 16px 28px; border-radius: 16px; max-width: 100%; }
  .rp-page .fl-paper::after { display: none; }
  .rp-page .fl-hd-title { font-size: 19px; letter-spacing: 2.5px; }
  .rp-page .fl-hd-sub { font-size: 12px; }
  .rp-page .rl-about { padding: 14px 14px 12px; }
  .rp-page .fl-modes { gap: 8px; }
  .rp-page .fl-mode { padding: 13px 6px 11px; }
  .rp-page .fl-mode b { font-size: 13.5px; }
  .rp-page .fl-paper .star-row { gap: 9px; }
  .rp-page .fl-paper .star-lb { font-size: 13px; }
  .rp-page .fl-paper .stars { font-size: 23px; letter-spacing: 2px; }
  .rp-page .fl-paper .star-val { min-width: 30px; font-size: 11px; }
  /* 防 iOS 聚焦自动放大：输入保持 ≥16px */
  .rp-page .fl-paper input, .rp-page .fl-paper select, .rp-page .fl-paper textarea,
  .rp-page .fl-peer-cmt { font-size: 16px; }
  .rp-page .fl-code { font-size: 20px !important; letter-spacing: 7px !important; }
  .rp-page .fl-step { font-size: 14.5px; }
}

/* 座位表一键重排下拉（20260925c） */
.seat-rx-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 70; min-width: 176px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 30px rgba(15, 23, 42, .16); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.seat-rx-menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 11px; border-radius: 8px; font-size: 13.5px; color: var(--text); cursor: pointer; font-family: inherit; }
.seat-rx-menu button:hover { background: var(--primary-soft); }
.seat-rx-sep { height: 1px; background: var(--border); margin: 4px 2px; }

/* ============ 日常管理看板（20261009 · 第 25 迭代） ============ */
/* 顶部：标题 + 工具 + 三个汇总数字 */
.bd-head { padding: 18px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bd-hl { min-width: 290px; }
.bd-title { font-size: 21px; font-weight: 800; letter-spacing: .5px; line-height: 1.2; }
.bd-sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.bd-sub b { color: var(--text); }
.bd-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bd-chips { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 2px; }
.bd-chip { border: none; background: transparent; border-radius: 999px; padding: 5px 13px; font-size: 13px; font-weight: 600; color: var(--muted); transition: .15s; }
.bd-chip:hover { color: var(--text); }
.bd-chip.on { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(23,26,63,.12); }
.bd-sum { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.bd-sum .k { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 7px 14px; min-width: 96px; text-align: center; }
.bd-sum .k b { display: block; font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.bd-sum .k span { font-size: 11.5px; color: var(--muted); }
/* 达标率配色（表达好坏：绿=好 / 蓝=尚可 / 橙=待改进 / 红=差 / 灰=无数据） */
.r-g { color: #059669 !important; }
.r-b { color: #2563eb !important; }
.r-o { color: #d97706 !important; }
.r-r { color: #dc2626 !important; }
.r-na { color: #9aa8bd !important; }
/* 今日待办条 */
.bd-todo { padding: 12px 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-left: 5px solid var(--warn); }
.bd-todo.all-done { border-left-color: var(--ok); }
.bd-todo-t { font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.bd-todo .spacer, .bd-foot .spacer, .mx-head .spacer { flex: 1; }
.bd-todo-chip { border: 1px solid #fcd9a1; background: var(--warn-soft); color: #a9670a; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; }
.bd-todo-chip:hover { box-shadow: 0 4px 12px rgba(217,119,6,.18); }
.bd-todo-chip:disabled { opacity: .75; cursor: default; }
.bd-todo-chip.done { border-color: #a7e2c0; background: var(--ok-soft); color: #067647; }
/* 空数据提示 */
.bd-empty { padding: 16px 20px; border-left: 5px solid var(--border); }
/* 各项卡片 */
.bd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 14px; }
.bd-grid .card, .bd-cols .card { margin-top: 0; }
.card.bd-card { padding: 15px 17px 13px; border-top: 4px solid var(--primary); display: flex; flex-direction: column; gap: 9px; }
.bd-card-top { display: flex; align-items: center; gap: 11px; }
.bd-ic { width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.bd-card-nm { min-width: 0; }
.bd-card-nm h2 { font-size: 16px; white-space: nowrap; }
.bd-card-nm .desc { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 168px; }
.bd-rate { margin-left: auto; text-align: right; flex: none; }
.bd-rate b { font-size: 25px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.bd-rate small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.bd-prog { height: 8px; border-radius: 999px; background: #eef1f8; overflow: hidden; }
.bd-prog i { display: block; height: 100%; border-radius: 999px; transition: width .35s; }
.bd-foot { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.bd-stat { font-size: 12px; color: var(--muted); }
.bd-stat b { color: var(--text); font-variant-numeric: tabular-nums; }
.bd-stat b.warn { color: var(--warn); }
.bd-stat b.bad { color: var(--danger); }
/* 关注 / 优秀 / 趋势 三栏 */
.bd-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 16px; }
.bd-panel { padding: 15px 17px; }
.bd-panel .sect-title, .mx-head .sect-title { font-size: 14px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bd-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-height: 330px; overflow: auto; }
.bd-row { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 10px; background: #fafbff; border: 1px solid var(--border); }
.bd-row.top { background: #f7fdfa; border-color: #d8f0e4; }
.bd-no { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 7px; background: var(--bg); color: var(--muted); font-size: 11.5px; font-weight: 700; padding: 0 4px; flex: none; }
.bd-no.medal { background: transparent; font-size: 15px; }
.bd-row .nm { font-weight: 700; min-width: 62px; }
.bd-row .sc { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 14px; margin-left: auto; }
.bd-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.bd-tag { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--danger-soft); color: #b3261e; white-space: nowrap; }
.bd-tag.w { background: var(--warn-soft); color: #a9670a; }
.bd-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.bd-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.bd-bar .d { width: 74px; color: var(--muted); white-space: nowrap; }
.bd-bar .t { flex: 1; height: 14px; border-radius: 999px; background: #eef1f8; overflow: hidden; }
.bd-bar .t i { display: block; height: 100%; border-radius: 999px; transition: width .35s; }
.bd-bar .v { width: 44px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
/* 达标矩阵 / 明细表 */
.bd-mx { margin-top: 16px; padding: 15px 17px; }
.mx-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.bd-matrix { overflow: auto; max-height: 66vh; border: 1px solid var(--border); border-radius: 10px; }
table.bdm { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.bdm th, table.bdm td { padding: 6px 8px; text-align: center; border-bottom: 1px solid #f1f3f9; white-space: nowrap; }
table.bdm thead th { position: sticky; top: 0; background: #f8fafd; z-index: 3; font-size: 12px; color: #3c4f6b; font-weight: 700; }
table.bdm tbody tr:nth-child(even) td { background: #fcfdff; }
table.bdm th.nm, table.bdm td.nm { position: sticky; left: 0; background: #fff; text-align: left; z-index: 2; min-width: 116px; box-shadow: 1px 0 0 var(--border); }
table.bdm thead th.nm { z-index: 4; background: #f8fafd; }
table.bdm tbody tr:nth-child(even) td.nm { background: #fcfdff; }
table.bdm tbody tr:hover td { background: #f5f8ff; }
.bdm i.cell { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 23px; border-radius: 7px; font-style: normal; font-weight: 800; font-size: 13px; }
.bdm i.c-ok { background: var(--ok-soft); color: #067647; }
.bdm i.c-w { background: var(--warn-soft); color: #a9670a; }
.bdm i.c-bad { background: var(--danger-soft); color: #b3261e; }
.bdm i.c-na { background: #f4f6fa; color: #c3cddc; }
.bd-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 9px; font-size: 12px; color: var(--muted); }
.bd-legend span { display: inline-flex; align-items: center; gap: 5px; }
.bd-legend i.lg { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
.bd-legend i.lg.ok { background: var(--ok-soft); border: 1px solid #a7e2c0; }
.bd-legend i.lg.w { background: var(--warn-soft); border: 1px solid #fcd9a1; }
.bd-legend i.lg.bad { background: var(--danger-soft); border: 1px solid #f6c9c9; }
.bd-legend i.lg.na { background: #f4f6fa; border: 1px solid #dde3ec; }
/* 项目筛选条 */
.dash-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; }
.dash-bar .lbl { color: var(--muted); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.dash-bar .spacer { flex: 1; }
.dash-bar input[type=date] { border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; font-size: 13px; color: var(--text); background: #fff; }
.dash-bar select { border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; font-size: 13px; background: #fff; color: var(--text); }
.dash-chip { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-weight: 600; font-size: 13px; cursor: pointer; transition: .15s; color: var(--muted); font-family: inherit; }
.dash-chip:hover { border-color: #c7d2fe; color: var(--text); }
.dash-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.dash-table { min-width: 100%; }
.dash-table th, .dash-table td { white-space: nowrap; }
.dash-table td .mini { font-size: 11.5px; margin-top: 2px; }
.dash-table tr.dim td { opacity: .5; }
@media (max-width: 860px) {
  .bd-title { font-size: 18px; }
  .bd-sum { margin-left: 0; width: 100%; }
  .bd-tools { width: 100%; }
}

/* ---------- 总览：课程表（20261012 紧凑版：每天一行，无时间无晚自习） ---------- */
.tt-card { margin: 16px 0; padding: 14px 18px; }
.tt-card .tt-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.tt-card .tt-head h3 { margin: 0; font-size: 15px; }
.tt-card .tt-lines { display: flex; flex-direction: column; gap: 5px; }
.tt-card .tt-row { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; padding: 4px 10px; border-radius: 10px; overflow-x: auto; }
.tt-card .tt-row .tt-day { font-size: 12px; font-weight: 800; color: #8a7fa8; min-width: 40px; flex: none; }
.tt-card .tt-row.today { background: #ece7fb; }
.tt-card .tt-row.today .tt-day { color: #5343a0; }
.tt-card .tt-nm { font-size: 12.5px; font-weight: 700; background: #f4f1fb; color: #463a6e; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.tt-card .tt-row.today .tt-nm { background: #fff; }


/* ---------- 总览：家长晚自习值班反馈（20261012） ---------- */
.pd-card { margin: 16px 0; }
.pd-card .pd-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.pd-card .pd-item { border: 1px solid #eef1f7; border-radius: 12px; padding: 10px 12px; background: #fcfdff; }
.pd-card .pd-ihead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.pd-card .pd-date { font-weight: 800; color: #4c3d75; }
.pd-card .pd-by { color: #5b6b85; }
.pd-card .pd-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.pd-card .pd-note { margin-top: 8px; font-size: 13.5px; line-height: 1.7; color: #33455f;
  background: #f6f8fd; border-left: 3px solid #c7b9f0; border-radius: 0 8px 8px 0; padding: 7px 10px; }
.pd-more { font-size: 12.5px; font-weight: 800; color: #4c3d75; white-space: nowrap; margin-left: 2px; }
.pd-more:hover { text-decoration: underline; }
.pd-card .pd-names { margin-top: 6px; font-size: 12.5px; line-height: 1.7; color: #6a7a93; }
/* 教师端：默认只读展示家长提交的原始留言/署名（20261013），点「更改」才展开编辑框 */
.pd-card .pd-raw { margin-top: 9px; border-top: 1px dashed #e7ecf5; padding-top: 9px; }
.pd-card .pd-rawrow { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 6px; }
.pd-card .pd-rawlbl { flex: none; width: 74px; font-size: 12.5px; font-weight: 800; color: #4c3d75; padding-top: 2px; }
.pd-card .pd-rawtext { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.75; color: #33455f;
  white-space: pre-wrap; word-break: break-word; background: #f8fafd; border: 1px solid #eef1f7;
  border-radius: 9px; padding: 7px 11px; }
.pd-card .pd-rawtext.empty { color: #9aa8bd; font-style: italic; background: #fbfcfe; }
/* 家长上传的现场照片（20261014）：晚修反馈页 / 总览卡片共用；点开看大图（.pd-zoom 全屏遮罩） */
.pd-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; align-items: flex-start; }
.pd-photos .pd-ph { width: 104px; height: 104px; object-fit: cover; border: 1px solid #e7ecf5;
  border-radius: 10px; cursor: zoom-in; background: #f4f7fc; display: block; }
.pd-photos .pd-ph:hover { border-color: #9dc3f5; }
.pd-photos .pd-phmore { align-self: center; font-size: 12.5px; font-weight: 800; color: #6a7a93;
  background: #f2f5fb; border-radius: 999px; padding: 4px 10px; }
.pd-phhint { margin-top: 6px; }
.pd-zoom { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center;
  justify-content: center; background: rgba(8, 14, 26, .9); cursor: zoom-out; padding: 24px; }
.pd-zoom.on { display: flex; }
.pd-zoom img { max-width: 96vw; max-height: 92vh; border-radius: 10px; }
.pd-zoom .pd-zoomtip { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
  color: #cfd8e6; font-size: 12.5px; }
.pd-card .pd-rawacts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.pd-card .pd-editby { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.pd-card .pd-editby label { flex: none; font-size: 12.5px; font-weight: 800; color: #4c3d75; }
.pd-card .pd-editby input { flex: 1; max-width: 260px; box-sizing: border-box; font-family: inherit;
  font-size: 13.5px; padding: 8px 10px; border: 1.5px solid #dfe6f2; border-radius: 10px; background: #fcfdff; }
.pd-card .pd-editby input:focus { outline: none; border-color: #9dc3f5; background: #fff; }
.pd-card .pd-editacts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
/* 教师端留言编辑（20261012 晚）：家长端不回显不留修改入口，改在这里 */
.pd-card .pd-editrow { margin-top: 9px; }
.pd-card .pd-editlbl { font-size: 12.5px; font-weight: 800; color: #4c3d75; margin-bottom: 5px; }
.pd-card .pd-editlbl .hint { font-weight: 600; }
.pd-card .pd-edit { width: 100%; box-sizing: border-box; resize: vertical; font-family: inherit;
  font-size: 13.5px; line-height: 1.7; color: #33455f; padding: 8px 10px;
  border: 1.5px solid #dfe6f2; border-radius: 10px; background: #fcfdff; }
.pd-card .pd-edit:focus { outline: none; border-color: #9dc3f5; background: #fff; }
.pd-card .pd-editrow .btn { margin-top: 6px; }
.pd-card .pd-editacts .btn { margin-top: 0; }
.pd-page .pd-list { gap: 12px; }
.pd-page .pd-item { padding: 12px 14px; }
.pd-page .pd-item.pub { border-color: #bfe4cd; background: #f7fdf9; }
.pd-page .pd-ihead .btn { flex: none; }
@media (max-width: 700px) {
  .pd-card .pd-rawlbl { width: 62px; }
  .pd-photos .pd-ph { width: 88px; height: 88px; }
}

/* ===== 班务管理 · 晚自习学生管理（20261012）===== */
.nt-card h3 { display: flex; align-items: center; gap: 8px; }
.nt-card .hint { font-weight: 400; }
.nt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.nt-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 9px 6px; border-radius: 11px; border: 1.5px solid #cfe6d8; background: #f4fbf6;
  font-family: inherit; cursor: pointer; transition: .15s; text-align: center; }
.nt-chip:hover { border-color: #8fd0ab; }
.nt-chip .nt-nm { font-size: 13.5px; font-weight: 800; color: #22304a; white-space: nowrap; }
.nt-chip .nt-st { font-size: 10.5px; font-weight: 700; color: #0b7c3d; white-space: nowrap; }
.nt-chip.off { border-style: dashed; border-color: #dcdfe8; background: #f3f4f7; }
.nt-chip.off .nt-nm { color: #8b95a8; }
.nt-chip.off .nt-st { color: #95a0b5; }
.nt-dirty { margin: 12px 0 0; font-size: 13px; font-weight: 700; color: #a35a00;
  background: #fff7e8; border: 1px solid #f3dfb8; border-radius: 9px; padding: 7px 11px; }
@media (max-width: 700px) { .nt-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; } }
.nt-share #pdShareQr img, .nt-share #pdShareQr table { display: block; }

/* ============ 作业公告牌（20261013 board6 · 七科同屏 / 精美高端 / 时段倒计时） ============ */
/* 标题居中：head 居中，右侧信息绝对定位靠右，互不挤压 */
.board-top { position: relative; display: block; min-height: 62px; padding: 4px 0 2px; }
.board-head { text-align: center; margin: 0 auto; }
.board-head-right { position: absolute; top: 2px; right: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.board-count { font-size: 15px; font-weight: 700; color: #55617a; letter-spacing: 1px; }
.board-title { display: inline-block; margin: 0; font-size: var(--fs-title); font-weight: 800; letter-spacing: 6px;
  font-family: "Microsoft YaHei", "PingFang SC", "Heiti SC", serif;
  background: var(--board-title-bg);
  color: #fff; -webkit-text-fill-color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.16);
  padding: 10px 32px; border-radius: 16px;
  box-shadow: var(--board-title-shadow); border: 1px solid rgba(255,255,255,.3); }
.board-date { font-size: var(--fs-date); color: #66718c; margin-top: 6px; letter-spacing: 2px; font-weight: 600; }
.board-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; width: 100%; }

/* 时段倒计时条 */
.board-cd { padding: 8px 12px; font-size: var(--fs-cd); font-weight: 700; text-align: center;
  border-bottom: 1.5px solid var(--bc-bd, var(--border)); letter-spacing: .5px; }
.board-cd b { font-size: var(--fs-cd); font-variant-numeric: tabular-nums; }
.board-cd.running { background: linear-gradient(180deg, #fff3e6, #ffe6d1); color: #b45309; }
.board-cd.running b { color: #c2410c; }
.board-cd.before { background: #eef3ff; color: #3b5578; }
.board-cd.ended { background: #f1f4f8; color: #8894a8; }

/* 七科同屏：固定三科（语文/数学/英语）占大列，其余四科占小列；永不出现横向滚动条 */
.board-table { display: grid; grid-template-columns: repeat(3, 1.22fr) repeat(4, 1fr);
  gap: 10px; margin-top: 10px; width: 100%; align-items: stretch; overflow: visible; padding: 0; }
.board-table[data-n="3"] { grid-template-columns: repeat(3, 1fr); }
.board-table[data-n="4"] { grid-template-columns: repeat(4, 1fr); }
.board-table[data-n="5"] { grid-template-columns: repeat(3, 1.2fr) repeat(2, 1fr); }
.board-table[data-n="6"] { grid-template-columns: repeat(3, 1.2fr) repeat(3, 1fr); }
.board-table[data-n="7"] { grid-template-columns: repeat(3, 1.22fr) repeat(4, 1fr); }
/* 每列用 --bc-bg/--bc-bd/--bc-hd/--bc-ac 上色，minmax(0,1fr) 防溢出 */
.board-col { min-width: 0; display: flex; flex-direction: column; background: var(--bc-bg, #fff);
  border: 1.5px solid var(--bc-bd, var(--border)); border-radius: 14px; overflow: hidden;
  min-height: 40vh; box-shadow: 0 1px 3px rgba(24, 34, 60, .06); transition: box-shadow .18s, transform .18s; }
.board-col.has { box-shadow: 0 3px 12px rgba(24, 34, 60, .09); }
.board-col.editing { box-shadow: 0 0 0 3px rgba(59, 108, 235, .28), 0 4px 16px rgba(24, 34, 60, .12); }
.board-col:hover { transform: translateY(-1px); }
/* 表头：学科名称居中显示，字号大于作业内容（--fs-sub > --fs-content）；
   作业时间胶囊居中排在学科名下方；编辑入口 ✎ 绝对定位右上角，不干扰居中 */
.board-header { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 10px 12px; text-align: center;
  border-bottom: 1.5px solid var(--bc-bd, var(--border)); background: var(--bc-hd, #f6f8ff); }
.board-col.has .board-header, .board-col.editing .board-header { cursor: pointer; }
.board-sub { display: block; width: 100%; font-size: var(--fs-sub); font-weight: 800; color: var(--bc-ac, #1b2436);
  line-height: 1.15; text-align: center;
  font-family: "Microsoft YaHei", "PingFang SC", "Heiti SC", sans-serif; letter-spacing: 1px; }
/* 作业时间：居中排在学科名称下方 */
.board-slot { font-size: var(--fs-slot); font-weight: 700; color: #3b4864; background: #ffffffcc;
  border: 1px solid var(--bc-bd, var(--border)); padding: 1px 10px; border-radius: 999px; white-space: nowrap; }
.board-count { margin: 6px 0 0; font-size: var(--fs-meta); font-weight: 700; color: #55617a; text-align: center; letter-spacing: 1px; }
.board-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.board-col.has .board-body { cursor: pointer; }
.board-col.has .board-body:hover { background: #00000005; }
/* 正文默认：黑体 36 号加粗（--fs-content） */
.board-content { font-size: var(--fs-content); line-height: 1.42; white-space: pre-wrap; word-break: break-word; color: #111;
  font-family: "Microsoft YaHei", "PingFang SC", "Heiti SC", "SimHei", sans-serif; font-weight: 700; }
.board-media { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.board-thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--bc-bd, var(--border));
  cursor: pointer; background: #000; display: block; }
video.board-thumb { cursor: default; }
.board-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.board-by { font-size: var(--fs-meta); color: #33415c; background: #ffffffcc; border: 1px solid var(--bc-bd, var(--border));
  padding: 1px 9px; border-radius: 999px; }
.board-posted { font-size: 14px; color: #55617a; }
.board-edit { position: absolute; top: 8px; right: 10px; margin: 0; background: none; border: none;
  font-size: 17px; padding: 0 4px; cursor: pointer; opacity: .7; }
.board-edit:hover { opacity: 1; }
/* 未布置：整列留白，点此填写 */
.board-col .board-empty { flex: 1; display: flex; align-items: center; justify-content: center; padding: 14px 8px; cursor: pointer; min-height: 110px; }
.board-add { color: #7b869c; font-size: 19px; font-weight: 700; border: 2px dashed var(--bc-bd, #c8cfe0); border-radius: 12px;
  padding: 12px 18px; background: #ffffffcc; transition: .15s; text-align: center; }
.board-empty:hover .board-add { color: #1b2436; border-style: solid; }
/* 展开编辑态：输入区也放大，方便直接写 */
.board-edit-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.board-edit-body textarea { min-height: 30vh; font-size: 34px; line-height: 1.42; color: #111;
  font-family: "Microsoft YaHei", "PingFang SC", "Heiti SC", "SimHei", sans-serif; font-weight: 700; background: #fff; }
.board-edit-body input { font-size: 18px; }
.board-slot-lab { font-size: 14px; font-weight: 600; color: #33415c; display: flex; flex-direction: column; gap: 4px; margin: 0; }
.board-slot-lab input { margin: 0; }
/* 作业时间改为下拉选择（2026-10-14）：直接选，避免手输错导致倒计时启动不了 */
.board-slot-picks { display: flex; align-items: center; gap: 6px; }
.board-slot-sel { flex: 1; min-width: 0; padding: 8px 10px; font-size: 15px; font-weight: 700; color: #22304a;
  border: 1px solid var(--border); border-radius: 10px; background: #fff; font-family: inherit; }
.board-slot-wave { color: var(--muted); font-weight: 700; }
.board-edit-acts { display: flex; gap: 8px; margin-top: 6px; }
.board-edit-acts .btn { flex: 1; font-size: 17px; padding: 9px; }
.btn.tiny { padding: 5px 12px; font-size: 14px; border-radius: 8px; }

/* 其他科目勾选开关（一排） */
.br-opts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 2px;
  padding: 5px 12px; background: #f7f9fc; border: 1px solid var(--border); border-radius: 12px; }
.br-opts-lab { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.br-opt { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; color: #55617a;
  background: #fff; border: 1.5px solid #d9dfea; border-radius: 999px; padding: 3px 11px; cursor: pointer; user-select: none; }
.br-opt.on { color: #1b2436; border-color: #6f8ff5; background: #eef3ff; }
.br-opt input { width: 15px; height: 15px; accent-color: #3b6ceb; margin: 0; }
.br-exit { margin-left: auto; font-size: 14px; font-weight: 700; color: #55617a; background: #fff;
  border: 1.5px solid #d9dfea; border-radius: 999px; padding: 5px 14px; cursor: pointer; }
.br-exit:hover { color: #1b2436; border-color: #6f8ff5; }

/* 免登录页全屏时的容器：占满屏幕、内容居中（初一10班主题底色） */
.fill-card.fill-wide { max-width: 96vw; width: 96vw; background: var(--board-page-bg);
  box-shadow: 0 18px 48px rgba(60,70,140,.16); }
/* 公告牌视图整页底色（教师端 + 免登录页共用 body.board-theme） */
body.board-theme { background: var(--board-page-bg) fixed; }
:fullscreen .fill-card.fill-wide, :-webkit-full-screen .fill-card.fill-wide { max-width: 99vw; width: 99vw; }

/* ============================================================
   移动端优化：手机单列 + 中屏双列，不横滚、不遮挡、字号适配
   ============================================================ */
@media (max-width: 900px) {
  :root { --fs-title: 32px; --fs-date: 15px; --fs-sub: 30px; --fs-content: 26px; --fs-cd: 16px;
    --fs-affair: 34px; --fs-slot: 14px; --fs-meta: 13px; }
  .page-wrap { padding: 12px; }
  .fill-card.fill-wide { max-width: 98vw; width: 98vw; }
  .board-table, .board-table[data-n="3"], .board-table[data-n="4"], .board-table[data-n="5"], .board-table[data-n="6"], .board-table[data-n="7"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-table[data-n="3"] { grid-template-columns: repeat(3, 1fr); }
  .board-title { letter-spacing: 3px; padding: 8px 24px; }
  .board-content { line-height: 1.45; }
  .board-col { min-height: 34vh; }
  .board-slot { padding: 1px 8px; }
  .board-edit-body textarea { font-size: 24px; min-height: 26vh; }
  .affair-chip { padding: 12px 18px; }
}
@media (max-width: 480px) {
  :root { --fs-title: 26px; --fs-date: 14px; --fs-sub: 25px; --fs-content: 22px; --fs-cd: 14px;
    --fs-affair: 28px; --fs-slot: 13px; --fs-meta: 12px; }
  .page-wrap { padding: 10px; }
  .fill-card.fill-wide { max-width: 100vw; width: 100vw; border-radius: 0; padding: 12px 12px 28px; min-height: 100vh; }
  .board-top { min-height: auto; padding: 2px 0 8px; }
  .board-head { text-align: center; padding: 0 4px; }
  .board-head-right { position: static; margin-top: 8px; justify-content: center; width: 100%; }
  .board-title { letter-spacing: 2px; line-height: 1.25; padding: 7px 16px; border-radius: 12px; }
  .board-date { margin-top: 3px; }
  .board-table, .board-table[data-n="3"], .board-table[data-n="4"], .board-table[data-n="5"], .board-table[data-n="6"], .board-table[data-n="7"] {
    grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .board-col { min-height: auto; border-radius: 12px; }
  .board-header { padding: 10px 12px; }
  .board-slot { padding: 1px 8px; }
  .board-cd { padding: 7px 10px; }
  .board-body { padding: 10px 12px; gap: 6px; }
  .board-content { line-height: 1.55; font-weight: 700; }
  .board-media { gap: 8px; margin-top: 4px; }
  .board-thumb { width: 72px; height: 72px; }
  .board-meta { margin-top: 8px; padding-top: 6px; }
  .board-by { padding: 1px 8px; }
  .board-col .board-empty { min-height: 76px; }
  .board-add { font-size: 16px; padding: 10px 16px; }
  .br-opts { padding: 6px 10px; gap: 7px; margin: 8px 0 4px; }
  .br-opts-lab { width: 100%; font-size: 12.5px; }
  .br-opt { font-size: 13px; padding: 3px 10px; }
  .br-opt input { width: 14px; height: 14px; }
  .board-edit-body { padding: 10px 12px; }
  .board-edit-body textarea { min-height: 22vh; font-size: 17px; line-height: 1.55; padding: 10px; }
  .board-edit-body input { font-size: 15px; }
  .board-slot-lab { font-size: 13px; }
  .board-slot-sel { font-size: 15px; padding: 8px 8px; }
  .br-media-row { gap: 8px; margin: 4px 0; }
  .btn.tiny { padding: 5px 10px; font-size: 13px; }
  .board-edit-acts { margin-top: 8px; }
  .board-edit-acts .btn { font-size: 14px; padding: 9px; }
  .br-mi { width: 56px; height: 56px; }
  .modal { padding: 16px; }
  .modal h3 { font-size: 15px; }
  .toast { top: 12px; font-size: 12px; padding: 8px 14px; border-radius: 10px; max-width: 90vw; }
}

/* ============ 作业公告牌 · 媒体上传（教师端 + 免登录页共用） ============ */
.br-media-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0; }
.br-media-box { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 6px; }
.br-mi { position: relative; width: 66px; height: 66px; }
.br-mi-thumb { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; background: #000; }
.br-mi-x { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--danger); color: #fff; border: 2px solid #fff; font-size: 13px; line-height: 1; padding: 0; cursor: pointer; }

/* ============ 公告牌：班务栏 + 每科默认时间保存（20261014，与 hwboard 同款） ============ */
.board-slot-save { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.board-slot-save .btn { flex: none; }
.board-slot-save .btn[disabled] { opacity: .45; cursor: default; }
.board-slot-save .hint { font-size: 12.5px; line-height: 1.5; }
/* 班务栏（20261014 三次调整：勾选显示，呈现位置即编辑位置）——
   勾选「📌 班务栏」后，就在原来公示条的位置出现金色面板，面板本身可编辑 */
.board-affairs { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 10px 0 4px; }
.affair-chip { flex: 1 1 0; min-width: 220px; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: var(--fs-affair); font-weight: 900; letter-spacing: 1px; color: #63340a; text-align: center; word-break: break-word;
  line-height: 1.3; text-shadow: 0 1px 0 rgba(255,255,255,.75);
  background: linear-gradient(180deg, #fff8e6 0%, #ffeec2 100%);
  border: 2px solid #e9b64f; border-left-width: 10px; border-left-color: #d98f0b; border-radius: 14px;
  padding: 14px 24px; box-shadow: 0 3px 14px rgba(180, 120, 10, .20); }
.affair-chip .af-pin { font-size: calc(var(--fs-affair) * 0.92); line-height: 1; flex: none; }
.affair-chip .af-cx { white-space: pre-wrap; }
/* 班务栏勾选项（与其他科目同一排，金色区分） */
.br-opt.af-on { color: #7a5210; border-color: #e9b64f; background: #fffaf0; }
.br-opt.af-on.on { color: #4a2f05; border-color: #d98f0b; background: #fff3d6; }
.br-opt.af-on input { accent-color: #d98f0b; }
.br-opts-sep { width: 1px; align-self: stretch; min-height: 22px; background: #dfe5ee; margin: 0 2px; }
/* 金色可编辑面板：呈现与编辑同一处。
   注意：免登录发布页整页包在 .fill-card 里，而 `.fill-card ... textarea`（0,1,1）
   会压过裸 `.af-input`（0,1,0）→ 必须写成 `.board-affairs.af-edit .af-input`（0,2,0）。 */
.board-affairs.af-edit { align-items: center; }
.board-affairs.af-edit .af-pin { font-size: calc(var(--fs-affair) * 0.92); line-height: 1; flex: none; }
.board-affairs.af-edit .af-input { flex: 1 1 520px; min-width: 220px; min-height: calc(var(--fs-affair) * 1.75); max-height: 40vh; resize: vertical;
  font-family: inherit; font-size: var(--fs-affair); font-weight: 900; letter-spacing: 1px; line-height: 1.3;
  color: #63340a; text-shadow: 0 1px 0 rgba(255,255,255,.75);
  background: linear-gradient(180deg, #fff8e6 0%, #ffeec2 100%);
  border: 2px solid #e9b64f; border-left-width: 10px; border-left-color: #d98f0b; border-radius: 14px;
  padding: 12px 20px; outline: none; box-shadow: 0 3px 14px rgba(180, 120, 10, .20); }
.board-affairs.af-edit .af-input:focus { box-shadow: 0 0 0 3px rgba(217, 143, 11, .28), 0 3px 14px rgba(180, 120, 10, .25); }
.board-affairs.af-edit .af-input::placeholder { color: #b08a3c; font-weight: 700; }
.board-affairs.af-edit .btn.tiny { flex: none; align-self: center; font-size: 16px; padding: 10px 16px; }
.board-affairs.af-edit #afSave[disabled] { opacity: .45; cursor: default; }
.board-affairs.af-edit .hint { flex: 1 1 100%; text-align: right; }

/* ============ 公告牌管理（20261014）：36 个班级槽位卡片 ============ */
.bm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; margin-top: 10px; }
.bm-item { border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 12px; background: #fff;
  display: flex; flex-direction: column; gap: 6px; }
.bm-item.on { border-color: #bfd0f7; background: linear-gradient(180deg, #fbfcff, #f6f9ff); }
.bm-item.off { border-color: #f0d3d3; background: #fffafa; opacity: .92; }
.bm-item.none { border-style: dashed; background: #fafbfd; }
.bm-head { display: flex; align-items: center; gap: 7px; font-size: 14.5px; }
.bm-dot { width: 13px; height: 13px; border-radius: 4px; display: inline-block; flex: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.bm-tag { margin-left: auto; font-size: 11.5px; padding: 1px 8px; border-radius: 999px;
  background: #e7f4ec; color: #1c7a43; font-weight: 700; }
.bm-tag.mute { background: #f3f4f6; color: #8b93a3; }
.bm-sub { font-size: 12.5px; color: var(--muted); }
.bm-acts { display: flex; gap: 5px; flex-wrap: wrap; }
.bm-acts .btn.tiny { padding: 3px 8px; font-size: 12px; border-radius: 7px; }
.bm-pick { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #4c5fa8; cursor: pointer; }
.bm-pick input { accent-color: #4f46e5; width: 15px; height: 15px; }
.bm-theme { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 2px solid #e2e6f0;
  border-radius: 999px; font-size: 13px; cursor: pointer; background: #fff; }
.bm-theme.on { border-color: #6f8ff5; background: #eef3ff; }
.bm-fixed-pick { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .bm-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .affair-chip { flex: 1 1 100%; padding: 10px 14px; }
  .board-affairs.af-edit .af-input { flex: 1 1 100%; min-width: 0; padding: 10px 14px; }
  .board-affairs.af-edit .btn.tiny { flex: 1 1 100%; }
  .bm-acts .btn.tiny { padding: 3px 6px; }
}
