/* =========================================================
   org-system 主样式（配色与登录页统一 + 主站风格专业组件）
   ========================================================= */
:root {
  --primary: #2E7D32;
  --primary-dark: #1B5E20;
  --secondary: #2563eb;
  --accent: #3B82F6;
  --accent-dark: #1E40AF;
  --gold: #D4A843;
  --gold-light: #E8C96A;
  --success: #27ae60;
  --success-dark: #1e8449;
  --warning: #e67e22;
  --danger: #e74c3c;
  --danger-dark: #c0392b;
  --text: #333;
  --text-light: #666;
  --text-lighter: #6b7280;
  --bg: #f2f6f2;
  --card-bg: #ffffff;
  --hover-bg: #f8f9fa;
  --border: #dde6de;
  --fade-light: #eef4ee;
  --radius: 10px;
  --card-radius: 16px;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.12);
  --card-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --header-start: #2d6cb5;
  --header-bg: linear-gradient(180deg,#4a98e8,#3579c9 60%,#2d6cb5);
  --primary-rgb: 46,125,50;
  --accent-rgb: 59,130,246;
  --success-rgb: 39,174,96;
  --danger-rgb: 231,76,60;
  --warning-rgb: 230,126,34;
  --gold-rgb: 212,168,67;
  --text-rgb: 51,51,51;
  --bg-rgb: 242,246,242;
  --bg-top: #f6faf7;
  --bg-bottom: #e4efe6;
  --btn-min-height: 44px;
  --input-font-size: 16px;   /* 必须 >=16px：低于此值 iOS Safari 聚焦时会强制放大页面 */
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }

/* 内联 SVG 图标（由 emoji 替换而来，Lucide ISC 许可）
   尺寸随所在文字大小缩放，并与文字基线对齐。
   类名用 .svg-ic 而非 .ic：后者已被多个页面用作「图标槽」容器类，会冲突。 */
.svg-ic { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; flex-shrink: 0; }

/* 键盘可见焦点（无障碍 P1）
   旧实现用半透明色（45% / 18%），实测对白底仅 1.72:1 / 1.23:1，等于看不见。
   WCAG 2.4.11 要求指示器至少 2px 粗、与相邻色 ≥3:1。改为实色描边。 */
:focus-visible {
  outline: 3px solid #1d4ed8;   /* 对白底 6.70:1 */
  outline-offset: 2px;
  border-radius: 4px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 1px;
}
/* 深色底（顶栏 / 英雄区 / CTA / 页脚）改用亮金：深绿上 8.9:1，白/浅底不适用 */
.head :focus-visible, .hero :focus-visible,
.cta :focus-visible, .foot :focus-visible {
  outline-color: #ffd76a;
}

/* 表单校验错误提示（无障碍 P1） */
.field-error { color: var(--danger); font-size: 12px; margin: 6px 0 0; font-weight: 500; }

/* 无障碍：屏幕阅读器专用文本 + 跳过导航（无障碍 P1） */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100000; background: #fff; color: var(--primary-dark); padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600; box-shadow: var(--shadow); }
.skip-link:focus { left: 0; }
[aria-busy="true"] { cursor: progress; }
input.invalid, textarea.invalid, select.invalid { border-color: var(--danger); }
input.invalid:focus { box-shadow: 0 0 0 3px rgba(var(--danger-rgb), .15); }

/* 容器 */
.page { flex: 1 0 auto; width: 100%; max-width: 960px; margin: 0 auto; padding: 18px 16px 48px; }
.page.wide { max-width: 1200px; }
.app-footer { flex-shrink: 0; }

/* 卡片 */
.card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,.03);
  margin-bottom: 16px;
}
.card h2, .card h3 { margin-top: 0; }

.section-title {
  font-size: 16px; font-weight: 800; margin: 24px 0 14px;
  display: flex; align-items: center; gap: 8px; color: var(--text);
}
.section-title::before {
  content: ''; width: 4px; height: 17px; border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

/* 网格 */
.grid { display: grid; gap: 16px; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* 统计卡 */
.stat-card {
  background: var(--card-bg); border-radius: var(--card-radius); padding: 20px 16px;
  box-shadow: var(--card-shadow); border: 1px solid rgba(0,0,0,.03); text-align: center;
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; right: -22px; top: -22px; width: 80px; height: 80px;
  border-radius: 50%; background: rgba(var(--primary-rgb), .05);
}
.stat-card .num {
  font-size: 30px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-card .label { font-size: 13px; color: var(--text-light); margin-top: 4px; font-weight: 500; }

/* 紧凑 KPI 条（机构仪表盘，替代大号统计卡；docs/12 §2.2 统计数字 30px 仅用于重点页） */
.kpi-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.kpi {
  flex: 1 1 110px; min-width: 96px; background: var(--card-bg); border: 1px solid rgba(0,0,0,.04);
  border-radius: 12px; padding: 10px 14px; box-shadow: var(--card-shadow);
  display: flex; flex-direction: column; gap: 2px;
}
.kpi-num {
  font-size: 24px; font-weight: 800; line-height: 1.1;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.kpi-label { font-size: 12px; color: var(--text-light); }

/* 机构代码/宣传页 细条 */
.idbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--card-bg); border: 1px solid rgba(0,0,0,.04); border-radius: 12px;
  padding: 10px 14px; box-shadow: var(--card-shadow); margin-bottom: 14px; font-size: 13px;
}
.idbar .orgcode { font-size: 18px; letter-spacing: 2px; color: var(--primary); }
.idbar .muted { color: var(--text-light); }
.idbar .link { color: var(--primary); text-decoration: none; }

/* 仪表盘两栏（各测验 / 班级汇总） */
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .dash-cols { grid-template-columns: 1fr; } }
/* 网格/栅格子项默认 min-width:auto —— 里面一旦有宽表格，单项就缩不下去、把整页撑出横向滚动。
   置 0 让子项能收缩，宽内容交给 .table-wrap 自己横滚（机构后台 375px 实测修过）。 */
.dash-cols > * { min-width: 0; }
.grid > * { min-width: 0; }
.card-h { margin: 0 0 12px; font-size: 15px; }

/* 紧凑指标列表行（各测验完成情况） */
.metric-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #eef; }
.metric-row:last-of-type { border-bottom: 0; }
.metric-name { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-val { font-size: 12px; color: var(--text-light); white-space: nowrap; }
.metric-bar { flex: 0 0 84px; height: 8px; background: #eef2f0; border-radius: 99px; overflow: hidden; }
.metric-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.metric-sum { margin-top: 8px; font-size: 12px; color: var(--text-light); }

/* 只读信息网格（机构信息 / 个人中心同款展示） */
.muted { color: var(--text-light); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.info-item { background: #f8fafc; border: 1px solid #eef1f0; border-radius: 10px; padding: 10px 12px; }
.info-item .k { font-size: 12px; color: #999; margin-bottom: 2px; }
.info-item .v { font-size: 14px; color: #333; font-weight: 600; word-break: break-all; }

/* 模块卡片（首页测验/工具入口） */
.module-card {
  position: relative; background: var(--card-bg); border-radius: var(--card-radius);
  overflow: hidden; cursor: pointer; box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,.03); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column;
}
.module-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(0,0,0,.1); }
.module-card .mc-top { height: 6px; background: linear-gradient(135deg, var(--secondary), var(--primary)); }
.module-card .mc-body { padding: 18px 18px 16px; flex: 1; }
.module-card .mc-icon {
  width: 50px; height: 50px; border-radius: 13px; display: flex; align-items: center;
  justify-content: center; font-size: 27px; margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.module-card h3 { margin: 0 0 4px; font-size: 16px; color: var(--text); }
.module-card p { margin: 0; color: var(--text-light); font-size: 13px; line-height: 1.6; }
.module-card .mc-footer { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; }
.module-card .mc-tag {
  font-size: 11px; color: var(--secondary); background: rgba(var(--accent-rgb), .1);
  padding: 2px 10px; border-radius: 12px; font-weight: 600;
}
.module-card .mc-arrow { font-size: 16px; color: var(--text-lighter); transition: all .2s; }
.module-card:hover .mc-arrow { color: var(--primary); transform: translateX(4px); }

/* 可点击卡片改用真链接后，避免全局 a{color:var(--primary)} 污染卡片内文字 */
a.module-card { color: inherit; text-decoration: none; }

/* 容器型按钮（div/span 等补了 role="button" 的元素）统一指针手势；
   键盘焦点环由上面的 :focus-visible 统一提供，无需另行声明 */
[role="button"]:not(button):not(a) { cursor: pointer; }

/* 图标底色 */
.ic-green { background: linear-gradient(135deg, rgba(39,174,96,.18), rgba(39,174,96,.08)); }
.ic-blue { background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(59,130,246,.08)); }
.ic-gold { background: linear-gradient(135deg, rgba(243,156,18,.2), rgba(243,156,18,.1)); }
.ic-red { background: linear-gradient(135deg, rgba(231,76,60,.16), rgba(231,76,60,.07)); }
.ic-purple { background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(139,92,246,.08)); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--btn-min-height); padding: 8px 18px; border: none; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform .25s, box-shadow .25s, background-color .25s, border-color .25s, color .25s, opacity .25s;
  position: relative; overflow: hidden;
}
.btn:active { transform: scale(.97); }
.btn.primary {
  background: radial-gradient(circle at top left, rgba(255,255,255,.25), transparent 42%), linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(var(--primary-rgb), .35); }
.btn.success {
  background: radial-gradient(circle at top left, rgba(255,255,255,.22), transparent 42%), linear-gradient(135deg, var(--success), var(--success-dark));
  color: #fff;
}
.btn.success:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(var(--success-rgb), .3); }
.btn.gray { background: #f0f1f3; color: #555; }
.btn.gray:hover { background: var(--hover-bg); filter: brightness(.96); }
.btn.danger { background: #fdeceb; color: var(--danger); border: 1px solid #f5c2c0; }
.btn.danger:hover { background: #fbdedb; }
.btn.sm { min-height: 32px; padding: 5px 13px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 表单 */
input, select, textarea {
  width: 100%; padding: 11px 13px; border: 2px solid var(--border); border-radius: 10px;
  font-size: var(--input-font-size); background: var(--card-bg); color: var(--text);
  outline: none; font-family: inherit; transition: all .25s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
label { display: block; font-size: 13px; color: var(--text-light); margin: 10px 0 5px; font-weight: 500; }
.form-inline { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.form-inline > div { flex: 1; min-width: 140px; }

/* 表格 */
.table-wrap { overflow-x: auto; border-radius: 12px; }
table {
  width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card-bg);
  border-radius: 12px; overflow: hidden; box-shadow: var(--card-shadow);
}
th, td { padding: 12px 13px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { background: linear-gradient(180deg, #f6f9f6, #eef4ee); color: var(--primary-dark); font-weight: 700; white-space: nowrap; font-size: 12px; letter-spacing: .5px; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafcfa; }

/* 徽章 */
.badge {
  display: inline-block; padding: 3px 11px; border-radius: 99px; font-size: 12px; font-weight: 600;
  border: 1px solid transparent;
}
.badge.green { background: rgba(var(--success-rgb), .12); color: var(--success-dark); border-color: rgba(var(--success-rgb), .22); }
.badge.red { background: rgba(var(--danger-rgb), .1); color: var(--danger); border-color: rgba(var(--danger-rgb), .2); }
.badge.gray { background: #eef0f2; color: #6b7280; border-color: #e6e9eb; }
.badge.orange { background: rgba(var(--warning-rgb), .12); color: #8a4f08; border-color: rgba(var(--warning-rgb), .2); }

/* 批量操作栏（表格多选后出现；见超管「学员账号」） */
.bulk-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 14px; margin-bottom: 10px; border-radius: var(--radius);
  background: rgba(var(--primary-rgb), .06); border: 1px solid rgba(var(--primary-rgb), .18);
}
.bulk-bar > span:first-child { font-size: 13px; font-weight: 600; color: var(--primary-dark); margin-right: 4px; }
.bulk-bar[hidden] { display: none; }   /* hidden 属性优先级：显式声明，避免被 display:flex 覆盖 */

/* 表格里的勾选框：加大点击区域到 44px 触控友好（对齐 ui 规范） */
.table-wrap td > input[type="checkbox"],
.table-wrap th > input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }

/* 密集列表（后台表格列多时）：单元格不折行，靠 .table-wrap 横向滚动兜底。
   ⚠️ 不加这条时，15 列表格会把「2027-06-30」折成三行、「仅提示」折成两行，很难看（实测）。 */
.table-wrap table.grid-dense { min-width: 1040px; }
.table-wrap table.grid-dense td { white-space: nowrap; }
.table-wrap table.grid-dense td.metrics { white-space: normal; min-width: 200px; }
/* 指标列内部：每项一行内紧凑排列，数字加粗便于扫读 */
td.metrics .m { display: inline-block; margin-right: 9px; color: #5b6b5e; font-size: 12px; }
td.metrics .m b { color: var(--primary-dark); font-size: 13px; }
/* 名称列的小字副行（代号 · 地区） */
.grid-dense td.name { white-space: normal; }
.grid-dense td.name .sub { color: #9aa5a0; font-size: 11.5px; margin-top: 2px; }

/* 操作列固定在右侧：列多时它最先被挤出可视区，而它恰恰是最需要点的（实测踩过）。
   🔴 必须把 table 的 overflow:hidden 去掉 —— 它会让 position:sticky 失效（sticky 会相对
      表格自身而不是滚动容器定位，结果还是被截断）。圆角改用首末单元格自己做。 */
.table-wrap table.sticky-actions { overflow: visible; }
.table-wrap table.sticky-actions th.act,
.table-wrap table.sticky-actions td.act {
  position: sticky; right: 0; z-index: 2;
  background: var(--card-bg);
  box-shadow: -8px 0 10px -8px rgba(0, 0, 0, .16);
}
.table-wrap table.sticky-actions th.act { background: linear-gradient(180deg, #f6f9f6, #eef4ee); }
.table-wrap table.sticky-actions tr:hover td.act { background: #fafcfa; }
.table-wrap table.sticky-actions td.act { white-space: nowrap; }
.table-wrap table.sticky-actions td.act .btn { padding: 4px 8px; font-size: 12px; }

/* 空态 */
.empty { text-align: center; color: var(--text-light); padding: 30px; font-size: 14px; }

/* 加载骨架 / 可重试错误态（共享状态组件，配 UiKit.skeleton / UiKit.errorState）
   目的：把页面里散落的「加载中…」「加载失败」收成两种一致的状态，
   加载时给稳定骨架（减少 CLS），失败时给**可点的重试**而不是一句死文案。 */
.skel { padding: 8px 0; }
.skel-row {
  height: 14px; border-radius: 6px; margin: 10px 0;
  background: linear-gradient(90deg, #eef2f0 25%, #e3e9e6 37%, #eef2f0 63%);
  background-size: 400% 100%; animation: skel-shine 1.2s ease-in-out infinite;
}
.skel-row:nth-child(2) { width: 88%; }
.skel-row:nth-child(3) { width: 62%; }
@keyframes skel-shine { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.state-error { color: var(--danger-dark, #a03a2c); }
.state-error .btn { margin-top: 10px; }
/* 字段级错误（配 UiKit.fieldError）：贴在输入框下方，并让出错的输入框自己标红 */
.field-error { color: #c0392b; font-size: 12px; margin-top: 4px; line-height: 1.5; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #c0392b !important; }
@media (prefers-reduced-motion: reduce) { .skel-row { animation: none; background: #eef2f0; } }

/* 顶栏链接 */
.toplink { color: #fff; text-decoration: none; font-size: 13px; opacity: .9; margin-right: 12px; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.pagination button {
  min-width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; cursor: pointer; font-weight: 600; transition: all .2s; color: var(--text);
}
.pagination button:hover { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border-color: transparent; }

/* 减少动效（无障碍 P2） */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 打印 */
@media print {
  body { background: #fff; }
  .no-print, .topbar-no-print, nav, header, button, .btn { display: none !important; }
  .page { padding: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  body > div:first-child { display: none !important; }
}

/* ============================================================
   学员首页卡片体系（2026-10 重排）
   设计意图：
   · 分区按「学生要做什么」而非「系统模块」命名，每区加一句说明（.sec-sub）
   · 卡片顶条统一为一条极细的弱色规则，去掉每卡不同高饱和渐变 —— 降噪；
     分类色改由图标底色承担（ic-green / ic-blue / ic-gold / ic-red / ic-purple）
   · 描述统一截断两行 + 等高，卡片整齐，扫读更快
   ============================================================ */
.sec-sub {
  font-size: 13px; line-height: 1.65; color: var(--text-light);
  margin: -4px 0 14px 2px; max-width: 60ch;
}
/* 组内子标题（如「机构配置的固定测验」）：与一级分区标题形成层级差 */
.sub-title {
  font-size: 13.5px; font-weight: 600; color: var(--text-light);
  margin: 20px 0 10px; padding-left: 10px; border-left: 3px solid var(--primary);
  line-height: 1.4;
}
/* 顶条：统一弱色细线（其它页面若写了内联渐变仍会覆盖，不受影响） */
.module-card .mc-top { height: 3px; background: var(--primary); opacity: .22; }
.module-card:hover .mc-top { opacity: .5; }
/* 通栏卡：单卡收尾时用，视觉上明确「这一区就这一件事」 */
.module-card.wide { grid-column: 1 / -1; }
.module-card.wide .mc-body { padding: 18px 20px; }
/* 描述截断两行 + 等高，避免长短不齐参差 */
.module-card p {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.6em;
}
@media (max-width: 640px) {
  .sec-sub { font-size: 12.5px; }
  .module-card p { min-height: auto; }

  /* ==========================================================
   * 移动端输入框字号兜底（docs/22 阶段 4 §3 实测确认的缺陷）
   *
   * 现象：`:root` 里早就有 `--input-font-size: 16px`（注释也写着"低于此值 iOS Safari
   *   聚焦时会强制放大页面"），**但有 20 处页面内联样式把它盖掉了**：
   *   `.field input{font-size:14px}`、`.gate-card .field input{font-size:14px}`、
   *   `.composer input{font-size:14px}`、`.sj-nav .jump-input input{font-size:12px}` …
   *   实测（`node scripts/mobile-audit.py` @375px）：22 个输入框里 **17 个 <16px**。
   *   后果不是"字小一点"，是**聚焦时整个页面被 iOS 放大、布局跳动**，
   *   用户填到一半找不到自己刚才填的字段。
   *
   * 🔴 这里用 `!important` 是**有意为之**，不是偷懒：
   *   · 页面内联样式的选择器（`.field input`）特异性高于这里能写的任何选择器，
   *     不加 `!important` 就盖不住 —— 而"盖不住"正是这个 bug 拖到现在的原因；
   *   · 这条规则表达的是**平台限制**（iOS 行为），不是视觉偏好。
   *     平台限制应当**优先于局部设计**，所以 `!important` 在这里是语义正确的。
   *   · 它被限制在 `max-width:640px` 内 —— **桌面端视觉完全不变**。
   *
   * ⚠️ 别再"顺手"把每处 14px 改成 16px 就算修完：那样只是这次修好，
   *    下次新增页面写个 `font-size:14px` 又会回归。
   *    `scripts/verify-input-font.mjs` 已把"不得低于 16px"变成门禁。
   * ========================================================== */
  input, select, textarea { font-size: 16px !important; }
}

/* 学员申请：地区分布一览（超管据此决定去哪个地区拓机构） */
.stat-row { margin-bottom: 12px; }
.stat-inline {
  padding: 9px 13px; margin-bottom: 6px; border-radius: var(--radius);
  background: rgba(var(--primary-rgb), .05); border: 1px solid rgba(var(--primary-rgb), .14);
  font-size: 13px; color: var(--primary-dark);
}
.stat-inline b { color: var(--primary); font-size: 15px; }

/* 发邮件：变量标记 / 预览框 / 按钮行 */
code.var {
  background: rgba(var(--primary-rgb), .08); color: var(--primary-dark);
  border: 1px solid rgba(var(--primary-rgb), .18); border-radius: 5px;
  padding: 1px 6px; font-size: 12.5px; font-family: ui-monospace, Consolas, monospace;
}
.actions-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.preview-box {
  margin-top: 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fbfdfb; padding: 14px 16px; max-height: 380px; overflow: auto;
}
.preview-head { font-size: 12px; color: #9aa5a0; margin-bottom: 8px; }
.preview-subj { font-weight: 700; font-size: 15px; margin-bottom: 10px; color: var(--primary-dark); }
.preview-body { font-size: 14px; line-height: 1.8; white-space: pre-wrap; }

/* ============================================================
   统一加载过渡与操作反馈（配套 src/js/core/ux.js，2026-10-14）
   · #_ux_progress 顶部进度条：页面跳转与数据请求共用，避免生硬切换
   · .is-busy 按钮忙碌态：触发请求时由 Ux 自动加；请求结束/失败都会恢复
   · body 进场淡入：整页不再"啪"地出现（纯 CSS，脚本挂了也不会白屏）
   ============================================================ */

/* ① 顶部进度条 */
#_ux_progress{
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100000;
  pointer-events: none; opacity: 0; transition: opacity .25s ease; overflow: hidden;
}
#_ux_progress.on { opacity: 1; }
#_ux_progress::before{
  content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 36%;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  border-radius: 0 3px 3px 0; transform: translateX(-120%);
  animation: _ux_slide 1.05s cubic-bezier(.4,.1,.3,1) infinite;
}
#_ux_progress.done::before{
  animation: none; width: 100%; transform: none; border-radius: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width .17s ease;
}
@keyframes _ux_slide { from { transform: translateX(-120%); } to { transform: translateX(320%); } }

/* ② 按钮忙碌态：保留文字、右侧补一个小转圈；请求在途时已 disabled（防重复提交） */
.btn.is-busy, button.is-busy, input.is-busy, [role="button"].is-busy { cursor: progress; opacity: .82; }
.btn.is-busy::after, button.is-busy::after, [role="button"].is-busy::after{
  content: ''; display: inline-block; width: 13px; height: 13px; margin-left: 8px;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
  vertical-align: -2px; animation: _ux_spin .6s linear infinite;
}
@keyframes _ux_spin { to { transform: rotate(360deg); } }

/* ③ 页面进场淡入 */
@keyframes _ux_page_in { from { opacity: 0; } to { opacity: 1; } }
body { animation: _ux_page_in .22s ease; }

/* 受限动效：进度条退化成静态细条（否则会被全局 .01ms 规则压成不可见），转圈免动 */
@media (prefers-reduced-motion: reduce) {
  #_ux_progress::before{ animation: none !important; width: 100%; transform: none; opacity: .65; }
  #_ux_progress.done::before{ opacity: 1; }
  .btn.is-busy::after, button.is-busy::after, [role="button"].is-busy::after{ animation: none !important; }
}