/* styles.css —— 福源一体化平台 APK 界面 v0.3
 *
 * 视觉口径（照作者给的 UI 设计图）：
 *   主色深青 #0E7490，渐变 #0891B2 → #06B6D4（工业安全感，不是 v0.2 那个蓝）
 *   警示 #F59E0B / #EF4444，通过 #10B981
 *   文字 #1F2937 / #6B7280 / #9CA3AF，底 #F3F6F9
 *   卡片：白底、圆角 16、阴影 0 2px 8px rgba(0,0,0,.06)，间距宽松
 *   按钮高 ≥48px —— 码头一线戴手套也能点
 *
 * 只有纯 CSS + 内联 SVG：没有 CDN、没有 web font、没有框架，断网照常显示。
 * 老五个模块（隐患/请假/劳保/答题/刷题）的 class 名一个没改，只换皮。
 */

:root {
  --cyan: #0E7490;
  --cyan-2: #0891B2;
  --cyan-3: #06B6D4;
  --cyan-soft: #E6F6FA;
  --grad: linear-gradient(135deg, #0891B2 0%, #06B6D4 100%);
  --grad-head: linear-gradient(150deg, #0E7490 0%, #0891B2 62%, #06B6D4 100%);
  --ink: #1F2937;
  --ink-2: #6B7280;
  --ink-3: #9CA3AF;
  --bg: #F3F6F9;
  --card: #ffffff;
  --line: #EEF2F6;
  --orange: #F59E0B;
  --red: #EF4444;
  --green: #10B981;
  --ok: #10B981;
  --danger: #EF4444;
  --warn-bg: #FFF9ED;
  --warn-text: #9A6412;
  --radius: 16px;
  --tap: 48px;
  --shadow-1: 0 1px 3px rgba(0, 0, 0, .04);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, .06);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}

/* ---------- 视图 ---------- */
.view {
  min-height: 100vh;
  padding: 0 16px calc(96px + env(safe-area-inset-bottom));
  max-width: 720px;
  margin: 0 auto;
  animation: viewIn .26s var(--ease) both;
}
.view.hidden { display: none !important; }
.hidden { display: none !important; }

/* 内页（模块页/占位页）不挂底部 Tab：底部留一点点就够了 */
body.no-tab .view { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }

@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.ico { display: block; }

/* ---------- 首页品牌区（深青渐变） ---------- */
.hero {
  position: relative;
  margin: 0 -16px 0;
  padding: calc(18px + var(--sat, env(safe-area-inset-top, 0px))) 18px 58px;
  border-radius: 0 0 24px 24px;
  background: var(--grad-head);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -70px;
  top: -96px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 68%);
}
.hero-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-mark {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5);
}
.hero-mark img { display: block; height: 27px; width: auto; }
.hero-text { flex: 1; min-width: 0; }
.hero-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1.2;
}
.hero-sub {
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: .6px;
  color: rgba(255, 255, 255, .82);
}
.avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}
.avatar:active { background: rgba(255, 255, 255, .3); }

/* ---------- 数据概览卡片（浮在渐变上） ---------- */
.stats {
  position: relative;
  z-index: 1;
  margin: -38px 0 0;
  padding: 14px 2px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(14, 116, 144, .10), var(--shadow-2);
}
.stat {
  padding: 0 4px;
  text-align: center;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--cyan);
  letter-spacing: -.3px;
}
.stat-label { font-size: 11.5px; color: var(--ink); font-weight: 600; }
.stat-hint { font-size: 9.5px; color: var(--ink-3); font-style: normal; line-height: 1.35; }

/* ---------- 分组 ---------- */
.group { margin-top: 18px; }
.group-title {
  margin: 0 4px 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .6px;
  color: var(--ink-3);
}

.entry-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

/* ---------- 首页入口行 ---------- */
.entry {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .16s var(--ease);
}
.entry:last-child { border-bottom: 0; }
.entry:active { background: #F6FAFC; }

.entry-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.entry-icon .ico { width: 23px; height: 23px; }
.entry-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.entry-name { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: .2px; }
.entry-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.entry-arrow {
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-top: 1.8px solid #C9D2DC;
  border-right: 1.8px solid #C9D2DC;
  border-radius: 1px;
  transform: rotate(45deg);
}

/* 图标砖色系：同亮度区间，浅底深图 */
.tone-cyan   { background: linear-gradient(150deg, #E4F7FB, #CFEFF7); color: #0E7490; }
.tone-teal   { background: linear-gradient(150deg, #E5F8F4, #CBEFE6); color: #0D9488; }
.tone-blue   { background: linear-gradient(150deg, #EAF2FE, #D8E6FD); color: #2563EB; }
.tone-orange { background: linear-gradient(150deg, #FFF4E5, #FFE6C7); color: #D97706; }
.tone-amber  { background: linear-gradient(150deg, #FFF6E0, #FFE9B8); color: #B45309; }
.tone-red    { background: linear-gradient(150deg, #FEECEB, #FDD9D6); color: #DC2626; }
.tone-green  { background: linear-gradient(150deg, #E9F9F1, #D2F2E1); color: #059669; }
.tone-purple { background: linear-gradient(150deg, #F1EDFF, #E3D9FF); color: #6D49D2; }
.tone-slate  { background: linear-gradient(150deg, #EEF2F6, #E1E8EF); color: #64748B; }

/* ---------- 页脚说明（作者点名的两行） ---------- */
.foot-note {
  margin: 22px 8px 0;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
  text-align: center;
}
.foot-ver {
  margin: 5px 0 0;
  font-size: 10.5px;
  color: #B9C1CB;
  text-align: center;
}

/* ---------- 普通页标题（应用/消息/我的） ---------- */
.page-head { padding: calc(22px + var(--sat, env(safe-area-inset-top, 0px))) 4px 10px; }
.page-head h1 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: .3px; }
.page-head p { margin: 5px 0 0; font-size: 12.5px; color: var(--ink-3); }

/* ---------- 应用：九宫格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 100px;
  padding: 15px 6px 13px;
  border: 0;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-2);
  font-family: inherit;
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.grid-item:active { transform: scale(.975); box-shadow: var(--shadow-1); }
.grid-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.grid-icon .ico { width: 24px; height: 24px; }
.grid-name {
  font-size: 12.5px;
  color: var(--ink);
  text-align: center;
  line-height: 1.3;
}

/* ---------- 我的 ---------- */
.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  margin-bottom: 12px;
}
.profile-avatar {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-name { font-size: 17px; font-weight: 600; }
.profile-sub { margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- 我的 · v0.4 重做（头像 / 四格 / 证书进度条 / 荣誉 / 上报） ----------
 * 上面 .profile-card / .profile-avatar 那几行是人事档案详情页在用的，不动；
 * 这里整套用 pv- 前缀，只长在 #view-profile 里。 */
.pv-card { align-items: flex-start; }
.pv-avatar {
  flex: none;
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
}
.pv-avatar svg, .pv-avatar img { display: block; width: 72px; height: 72px; }
.pv-avatar img { object-fit: cover; }
.pv-text { flex: 1; min-width: 0; }
.pv-job { margin-top: 5px; font-size: 13px; color: var(--ink-2); }
.pv-text .profile-sub { margin-top: 2px; }

/* 四格：跟数据看板同一个 .stats，只是它不浮在渐变上 */
.pv-stats { margin: 0; }

/* 证书：白卡里再套一层带边框的区，免得四条横条糊在一起 */
.pv-cert-card { padding: 14px 14px 12px; }
.pv-cert-sub {
  margin: 0 2px 10px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.pv-cert-box {
  border: 1px solid #E3EAF1;
  border-radius: 12px;
  background: #FBFCFE;
  padding: 2px 12px;
}
.pv-certs { list-style: none; margin: 0; padding: 0; }
.pv-cert { padding: 11px 0; }
.pv-cert + .pv-cert { border-top: 1px solid #EDF2F7; }
.pv-cert-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
.pv-cert-name {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.pv-cert-meta { margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }

/* 进度条：轨道淡一档，填充实色 */
.pv-track {
  height: 7px;
  border-radius: 999px;
  background: #EEF2F6;
  overflow: hidden;
}
.pv-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width .3s var(--ease);
}
/* 黄档（30 天内）按天数算只有几 %，给它一条看得见的短头；已过期那条保持空条 */
.pv-fill.ok, .pv-fill.watch, .pv-fill.soon { min-width: 10px; }

/* 四档颜色：绿 #10B981 / 蓝 #0891B2 / 黄 #F59E0B / 红 #EF4444 */
.pv-track.ok    { background: #E9F9F1; }
.pv-track.watch { background: #E6F6FA; }
.pv-track.soon  { background: #FFF4E5; }
.pv-track.over  { background: #FEECEB; }
.pv-fill.ok     { background: #10B981; }
.pv-fill.watch  { background: #0891B2; }
.pv-fill.soon   { background: #F59E0B; }
.pv-fill.over   { background: #EF4444; }

.pv-badge {
  flex: none;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.6;
  padding: 1px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.pv-badge.ok    { background: #E9F9F1; color: #059669; }
.pv-badge.watch { background: #E6F6FA; color: #0891B2; }
.pv-badge.soon  { background: #FFF4E5; color: #F59E0B; }
.pv-badge.over  { background: #FEECEB; color: #EF4444; }

/* 色阶说明：四色圆点 + 一行小字 */
.pv-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 11px 2px 0;
  font-size: 11.5px;
  color: var(--ink-2);
}
.pv-lg { display: inline-flex; align-items: center; gap: 5px; }
.pv-lg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.pv-lg-dot.ok    { background: #10B981; }
.pv-lg-dot.watch { background: #0891B2; }
.pv-lg-dot.soon  { background: #F59E0B; }
.pv-lg-dot.over  { background: #EF4444; }
.pv-legend-tip { margin: 7px 2px 0; font-size: 11px; color: var(--ink-3); }

/* 荣誉 */
.pv-honors { list-style: none; margin: 0; padding: 6px 16px; }
.pv-honor { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; }
.pv-honor + .pv-honor { border-top: 1px solid var(--line); }
.pv-honor-dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: #D97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, .14);
}
.pv-honor-main { flex: 1; min-width: 0; }
.pv-honor-name { font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.pv-honor-date { margin-top: 2px; font-size: 12px; color: var(--ink-3); }

/* 上报记录 */
.pv-report {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}
.pv-report-line {
  flex: 1;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.info-row:last-child { border-bottom: 0; }
.info-key { color: var(--ink-2); }
.info-val { color: var(--ink); font-weight: 500; }

/* ---------- 占位页 ---------- */
.demo-box {
  margin: 0;
  padding: 44px 22px 38px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-2);
  text-align: center;
}
.demo-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-icon .ico { width: 40px; height: 40px; }
.demo-big {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--cyan);
}
.demo-note {
  margin: 10px 6px 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.demo-tag {
  display: inline-block;
  margin-top: 18px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------- 内页深色 app bar ---------- */
.head.bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 -16px 16px;
  padding: calc(10px + var(--sat, env(safe-area-inset-top, 0px))) 16px 14px;
  border-radius: 0 0 20px 20px;
  background: var(--grad-head);
  color: #fff;
  box-shadow: 0 10px 24px -20px rgba(14, 116, 144, .9);
}
.head.bar .bar-text { flex: 1; min-width: 0; }
.head.bar h1 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: .4px; }
.head.bar .sub { margin-top: 3px; font-size: 12px; color: rgba(255, 255, 255, .78); line-height: 1.45; }

.back {
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: -8px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.back::before {
  content: '';
  width: 9px;
  height: 9px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  border-radius: 1px;
  transform: rotate(45deg);
}
.back:active { background: rgba(255, 255, 255, .16); }

/* 题目来源那一行 */
.source {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 7px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, .68);
}
.source span {
  color: #fff;
  background: rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11.5px;
  line-height: 1.6;
}

/* ---------- 空状态 ---------- */
.empty { padding: 52px 18px; text-align: center; color: var(--ink-2); }
.empty.hidden { display: none; }
.empty-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-icon .ico { width: 34px; height: 34px; }
.empty-title { margin-top: 16px; font-size: 16px; font-weight: 600; color: var(--ink); }
.empty-note { margin-top: 6px; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }

/* ---------- 列表 ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list:empty { display: none; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px 13px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-2);
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.card:active { transform: scale(.985); box-shadow: var(--shadow-1); }
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cyan);
  background: var(--cyan-soft);
  border-radius: 8px;
  padding: 4px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 62%;
}
.time { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 10px 0 9px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.card-area { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-level { color: #C98A00; white-space: nowrap; }
.card-meta { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 58%; }

/* ---------- 列表页右上角的「＋ 添加」 ----------
 * 原来进新建靠右下角悬浮球（.fab）：它 fixed 在底部，会挡住列表最后一条，
 * 也压在底部 Tab 上。现在整颗去掉，入口挪到页头右边——一直在、不遮内容。 */
.head-add {
  flex: none;
  align-self: flex-start;
  margin-top: 3px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.head-add:active { background: rgba(255, 255, 255, .3); }

/* ---------- 表单 ---------- */
.form { margin: 0; }
.row {
  background: var(--card);
  border-radius: var(--radius);
  padding: 13px 15px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-2);
}
.row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.star { color: var(--danger); font-style: normal; margin-right: 3px; }
.hint { font-size: 12px; color: var(--ink-3); text-align: right; }

.ctl {
  display: block;
  width: 100%;
  min-height: var(--tap);
  border: 1px solid #E3E9F0;
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 17px;
  font-family: inherit;
  color: var(--ink);
  background: #F8FAFC;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.ctl:focus {
  outline: none;
  border-color: var(--cyan-2);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, .14);
}
textarea.ctl { min-height: 116px; resize: vertical; line-height: 1.55; }

select.ctl {
  padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 9px;
}
select.ctl:invalid, select.ctl.is-empty { color: #A9B3C0; }
select.ctl option { color: var(--ink); }

input[type="date"].ctl { min-height: var(--tap); }

.ctl.is-bad { border-color: var(--danger); background: #FFF7F5; }
.counter {
  margin-top: 7px;
  text-align: right;
  font-size: 12.5px;
  color: #A9B3C0;
}
.counter.ok { color: var(--ok); }
.counter.bad { color: var(--danger); }

/* ---------- 照片 ---------- */
.photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.photo-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow: visible;
}
.photo-wrap img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  background: #EEF2F7;
  display: block;
}
.photo-del {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: #2B2F36;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}
.add-photo {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  border: 1.5px dashed #C7D2E0;
  background: #F8FAFC;
  color: var(--ink-3);
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background .16s, border-color .16s;
}
.add-photo.hidden { display: none; }
.add-photo:active { background: #EEF7FA; border-color: var(--cyan-2); }
.add-plus { display: block; color: #7C8794; }
.add-plus .ico { width: 24px; height: 24px; }
.add-text { font-size: 12px; }

/* ---------- 说明块 ---------- */
.row.note {
  background: var(--warn-bg);
  box-shadow: none;
  border-left: 3px solid #F2C75C;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--warn-text);
}

/* ---------- 底部按钮 ---------- */
.actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.btn {
  flex: 1;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn.main {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 20px -14px rgba(8, 145, 178, .95);
}
.btn.ghost {
  background: #fff;
  color: var(--cyan);
  box-shadow: var(--shadow-2);
}

/* ---------- 详情 ---------- */
.kv { font-size: 15.5px; line-height: 1.6; word-break: break-word; color: var(--ink); }
.kv.muted { color: #A9B3C0; }
.detail-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.detail-photos img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  background: #EEF2F7;
}

/* ---------- 提示条 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  max-width: 88vw;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(31, 41, 55, .95);
  color: #fff;
  font-size: 14.5px;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 40;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 答题 / 刷题 ---------- */
.quiz-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-2);
  padding: 0 4px 10px;
}
.quiz-type {
  color: var(--cyan);
  background: var(--cyan-soft);
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 12.5px;
  font-weight: 600;
}
.quiz-stem {
  background: var(--card);
  border-radius: 18px;
  padding: 18px 16px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  box-shadow: var(--shadow-2);
  margin-bottom: 12px;
  word-break: break-word;
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid #E7EDF3;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-1);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.opt:active { background: #F4FAFC; }
.opt-key {
  flex: none;
  min-width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #EFF3F8;
  color: #5E6A78;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  transition: background .16s, color .16s;
}
.opt-text { flex: 1; }
.opt.selected {
  border-color: var(--cyan-2);
  background: #F1FAFD;
  box-shadow: 0 0 0 2px rgba(8, 145, 178, .14);
}
.opt.selected .opt-key { background: var(--cyan); color: #fff; }
.opt.right { border-color: var(--ok); background: #F1FAF5; box-shadow: 0 0 0 2px rgba(16, 185, 129, .14); }
.opt.right .opt-key { background: var(--ok); color: #fff; }
.opt.wrong { border-color: var(--danger); background: #FFF6F4; box-shadow: 0 0 0 2px rgba(239, 68, 68, .13); }
.opt.wrong .opt-key { background: var(--danger); color: #fff; }

#exam-next[disabled] { opacity: .45; box-shadow: none; }

/* ---------- 交卷结果 ---------- */
.result {
  display: flex;
  gap: 10px;
  margin: 6px 0 12px;
}
.result-cell {
  flex: 1;
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 8px 14px;
  text-align: center;
  box-shadow: var(--shadow-2);
}
.result-num { display: block; font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -.5px; color: var(--ink); }
.result-num.ok { color: var(--ok); }
.result-num.bad { color: var(--danger); }
.result-label { display: block; margin-top: 5px; font-size: 12.5px; color: var(--ink-3); }
#exam-result .sub { margin: 2px 4px 14px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- 刷题的即时反馈 ---------- */
.feedback {
  margin: 14px 4px 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.feedback.ok { color: var(--ok); }
.feedback.bad { color: var(--danger); }

/* ---------- 底部 Tab ---------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  max-width: 720px;
  margin: 0 auto;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #EDF1F5;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .03);
}
body.no-tab .tabbar { display: none; }
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  padding: 3px 0 1px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tab-ico { width: 22px; height: 22px; }
.tab.on { color: var(--cyan); }
.tab.on span { font-weight: 600; }
.tab:active { opacity: .7; }

/* ---------- 小屏（≤359：老 4.7 寸、部分千元机） ----------
 * 四格概览在 320 宽会挤成两行小字，改成 2×2；入口描述改单行省略，
 * 免得出现"流"这种孤字换行。 */
@media (max-width: 359px) {
  .hero { padding-top: calc(16px + var(--sat, env(safe-area-inset-top, 0px))); padding-bottom: 54px; }
  .hero-title { font-size: 19px; }
  .hero-mark { width: 40px; height: 40px; }
  .hero-mark img { height: 24px; }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 12px;
    padding: 14px 4px;
  }
  .stat { border-right: 0; padding: 0 8px; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat-num { font-size: 20px; }
  .stat-hint { font-size: 10px; }

  .entry { padding: 12px 12px; gap: 10px; }
  .entry-icon { width: 38px; height: 38px; }
  .entry-icon .ico { width: 21px; height: 21px; }
  .entry-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .grid { gap: 8px; }
  .grid-item { min-height: 92px; padding: 13px 4px 11px; }
  .grid-name { font-size: 12px; }
}

/* ---------- 平板 / 大屏 ---------- */
@media (min-width: 520px) {
  .hero-title { font-size: 24px; }
  .photo-wrap, .photo-wrap img, .add-photo, .detail-photos img { width: 104px; height: 104px; }
  .grid { gap: 12px; }
  .grid-item { min-height: 108px; }
}

/* ==================================================================
 * v0.4（2026-11-14）：人事档案 / 通知公告 / 物资申领 / 考勤打卡
 * 还是纯 CSS，不加图片、不加字体。
 * ================================================================== */

/* ---------- 搜索框 ---------- */
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 0 14px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  margin-bottom: 10px;
}
.search .ico { width: 20px; height: 20px; flex: none; color: #9CA3AF; }
.search input {
  flex: 1;
  min-width: 0;
  min-height: var(--tap);
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.search input:focus { outline: none; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search input::placeholder { color: #A9B3C0; }

/* ---------- 分段筛选 ---------- */
.seg { display: flex; gap: 8px; margin: 0 0 12px; }
.seg-item {
  flex: 1;
  min-height: 40px;
  padding: 0 4px;
  border: 1px solid #E3E9F0;
  border-radius: 12px;
  background: #fff;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s, border-color .16s, color .16s;
}
.seg-item.on {
  background: var(--cyan-soft);
  border-color: #BFE7F0;
  color: var(--cyan);
}
.seg-item:active { background: #F2FAFD; }

/* ---------- 人事：一行的长相 ---------- */
.hr-item { display: flex; align-items: center; gap: 12px; }
.hr-ava {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(150deg, #EAF2FE, #D8E6FD);
  color: #2563EB;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hr-main { flex: 1; min-width: 0; }
.hr-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.hr-meta {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 状态小标（在岗绿 / 试用期橙 / 离职灰） */
.badge {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  padding: 1px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge.on { background: #E9F9F1; color: #059669; }
.badge.prob { background: #FFF4E5; color: #B45309; }
.badge.off { background: #EEF2F6; color: #94A3B8; }

/* ---------- 通知：列表与正文 ---------- */
.notice-item { display: flex; align-items: flex-start; gap: 11px; }
.notice-dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--cyan-3);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, .16);
}
.notice-dot.read { background: #D5DCE4; box-shadow: none; }
.notice-main { flex: 1; min-width: 0; }
.notice-title { font-size: 15.5px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.notice-item.read .notice-title { color: #98A2B0; font-weight: 500; }
.notice-when {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.notice-state {
  font-size: 11.5px;
  color: #A9B3C0;
  border: 1px solid #E3E9F0;
  border-radius: 999px;
  padding: 0 7px;
  line-height: 1.6;
}
.notice-state.unread { color: var(--cyan); border-color: #BFE7F0; background: var(--cyan-soft); }

.notice-card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px 16px 6px;
  box-shadow: var(--shadow-2);
}
.notice-h {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.notice-body { padding-bottom: 8px; }
.notice-p {
  margin: 0 0 12px;
  font-size: 15.5px;
  line-height: 1.75;
  color: #374151;
  word-break: break-word;
}
.notice-p:last-child { margin-bottom: 4px; color: var(--ink-2); font-size: 14px; }

#nt-read[disabled] {
  background: #E7ECF2;
  color: #94A3B8;
  box-shadow: none;
}

/* ---------- 「我的」页的小按钮 ---------- */
.mini-btn {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #D9E4EC;
  border-radius: 999px;
  background: #fff;
  color: var(--cyan);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.mini-btn:active { background: var(--cyan-soft); }

/* ---------- 考勤打卡 ---------- */
.att-clock {
  padding: 24px 16px 20px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-2);
  text-align: center;
}
.att-time {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.att-date { margin-top: 7px; font-size: 13.5px; color: var(--ink-2); }
.att-btn {
  width: 100%;
  min-height: 62px;
  margin-top: 18px;
  border: 0;
  border-radius: 18px;
  background: var(--grad);
  color: #fff;
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 14px 26px -16px rgba(8, 145, 178, .95);
  transition: transform .14s var(--ease);
}
.att-btn:active { transform: scale(.985); }
.att-btn.out { background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%); box-shadow: 0 14px 26px -16px rgba(249, 115, 22, .95); }
.att-btn.done { background: #E7ECF2; color: #94A3B8; box-shadow: none; cursor: default; }
.att-state { margin-top: 12px; font-size: 13.5px; color: var(--ink-2); }

.att-tip {
  margin: 10px 2px 14px;
  font-size: 11.5px;
  color: var(--ink-3);
  text-align: center;
  letter-spacing: .3px;
}

.att-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
  padding: 0 16px 8px;
  font-size: 12px;
  color: var(--ink-3);
}
.att-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
  align-items: center;
  font-size: 14.5px;
  color: var(--ink);
  cursor: default;
}
.att-row:active { transform: none; }
.att-day { font-weight: 600; font-variant-numeric: tabular-nums; }
.att-in, .att-out { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- 表单校验汇总（ui.js 里贴上去的那一条） ---------- */
.form-alert {
  position: sticky;
  top: 8px;
  z-index: 15;
  margin-bottom: 10px;
  padding: 10px 13px;
  border: 1px solid #FBD5D0;
  border-left: 3px solid var(--danger);
  border-radius: 12px;
  background: #FFF5F4;
  color: #B42318;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: var(--shadow-2);
}

/* ---------- 答题加载骨架 ---------- */
.sk-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  margin: 20px auto 0;
}
.sk {
  border-radius: 14px;
  background: linear-gradient(90deg, #EEF2F7 25%, #F7FAFC 37%, #EEF2F7 63%);
  background-size: 400% 100%;
  animation: skShine 1.3s ease infinite;
}
@keyframes skShine {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .sk { animation: none; }
}

/* ==================================================================
 * v0.4（2026-11-14 晚）：数据看板 #/dashboard
 * 上：请假类型分布　下：各班组隐患填报
 * 横条全靠 div + width 百分比，没有 canvas、没有图表库、没有图片。
 * 条宽由 dashboard.js 算好写进 style.width；这里只管长相。
 * ================================================================== */

/* 顶部 app bar 跟着滚也钉在上面（整页可滚，标题不跑） */
.dash-bar {
  position: sticky;
  top: 0;
  z-index: 20;
}

/* 概览三格：跟首页 .stats 一个长相，只是少一格、不留浮起来的负边距 */
.dash-stats {
  margin: 0;
  grid-template-columns: repeat(3, 1fr);
}

.dash-card { padding: 6px 16px 14px; }

.dash-sub {
  margin: 8px 0 2px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}

.dash-row { padding: 9px 0 0; }
.dash-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
}
.dash-name {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-num {
  flex: none;
  font-weight: 700;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.dash-track {
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: #EDF2F6;
  overflow: hidden;
}
.dash-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0E7490, #06B6D4);
}
.dash-fill.is-low { background: linear-gradient(90deg, #DC2626, #EF4444); }

/* 标红：名字和数字一起红，条短也看得见 */
.dash-row.low .dash-name { color: #B42318; font-weight: 600; }
.dash-row.low .dash-num { color: #DC2626; }

.dash-ex {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.dash-row.low .dash-ex { color: #DC2626; }

.dash-legend {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.6;
}
.dash-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: #EF4444;
  vertical-align: 1px;
}

/* ==================================================================
 * v0.4（2026-11-14 晚）：消息列表 #/messages
 * 左侧 4px 彩色竖条 + 图标底色同色（作者："用不同的颜色给它显示一下，做成分离式的"）
 * 已读整条变淡；色值走 tone-* 那套（蓝 #0891B2 / 橙 #F59E0B / 红 #EF4444 / 灰蓝 #64748B）
 * ================================================================== */

.msg-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 10px;
  padding: 13px 14px 13px 18px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-2);
  cursor: pointer;
  overflow: hidden;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.msg-item:active { transform: scale(.985); box-shadow: var(--shadow-1); }
.msg-item:focus-visible { outline: 2px solid #0891B2; outline-offset: 2px; }

/* 左边那根竖条 */
.msg-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--msg-c, #0891B2);
}

/* 类型色：一个变量喂给竖条、图标、类型小标 */
.msg-item.tone-blue   { --msg-c: #0891B2; --msg-bg: #E6F6FA; }
.msg-item.tone-orange { --msg-c: #F59E0B; --msg-bg: #FFF4E5; }
.msg-item.tone-red    { --msg-c: #EF4444; --msg-bg: #FEECEB; }
.msg-item.tone-slate  { --msg-c: #64748B; --msg-bg: #EEF2F6; }

.msg-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--msg-bg, #E6F6FA);
  color: var(--msg-c, #0891B2);
}
.msg-icon .ico { width: 20px; height: 20px; }

.msg-main { flex: 1; min-width: 0; }
.msg-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.msg-type {
  flex: none;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  background: var(--msg-bg, #E6F6FA);
  color: var(--msg-c, #0891B2);
}
.msg-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.msg-desc {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}
.msg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.msg-time { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.msg-new {
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  color: #fff;
  background: var(--msg-c, #0891B2);
}

/* 已读：整条退到后面去，但还认得出是哪类 */
.msg-item.read::before { background: #D5DCE4; }
.msg-item.read .msg-icon { background: #F1F4F7; color: #A6B0BC; }
.msg-item.read .msg-type { background: #F1F4F7; color: #98A2B0; }
.msg-item.read .msg-title { color: #98A2B0; font-weight: 500; }
.msg-item.read .msg-desc { color: #A6B0BC; }

/* ==================== 隐患处置（#/fix、#/fix/<id>） ====================
 * 施工方填报整改 → 主管验收。四态各一色，跟证书那套一个逻辑：
 *   待处置 橙 / 待验收 蓝 / 退回整改 红 / 已闭环 绿 */
.fix-stats { margin: 0 0 14px; }

.fix-badge {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.6;
  padding: 1px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.fix-badge.todo  { background: #FFF4E5; color: #D97706; }
.fix-badge.check { background: #E6F6FA; color: #0891B2; }
.fix-badge.back  { background: #FEECEB; color: #DC2626; }
.fix-badge.done  { background: #E9F9F1; color: #059669; }

/* 列表卡片：沿用 .card 的皮，只把状态徽章放右上 */
.fix-card { cursor: pointer; }
.fix-card .card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* 详情：隐患本体 */
.fix-info { padding: 15px 16px; margin-bottom: 12px; }
.fix-info-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fix-info-desc {
  margin: 10px 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
}
.fix-kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.fix-k { color: var(--ink-3); flex: none; }
.fix-v { color: var(--ink-2); text-align: right; }

/* 详情：三段流程 */
.fix-flow { padding: 16px 16px 6px; }
.fix-flow-title { margin: 0 0 10px; }
.fix-step {
  position: relative;
  padding: 0 0 16px 26px;
}
.fix-step::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 16px;
  bottom: 0;
  width: 2px;
  background: #E7EDF3;
}
.fix-step:last-child::before { display: none; }
.fix-dot {
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #CBD5E1;
  box-sizing: border-box;
}
.fix-step.done .fix-dot { border-color: #10B981; }
.fix-step.doing .fix-dot { border-color: #0891B2; }
.fix-step.wait .fix-dot { border-color: #D5DCE4; }

.fix-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fix-title { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.fix-when { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fix-note { margin-top: 6px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); word-break: break-word; }
.fix-meta { margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }
.fix-pass {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 9px;
  border-radius: 999px;
  background: #E9F9F1;
  color: #059669;
  font-size: 11.5px;
  font-weight: 600;
}
.fix-back {
  margin: 8px 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #FFF6F5;
  border: 1px solid #FBD9D5;
}
.fix-back-t { font-size: 12px; font-weight: 700; color: #DC2626; }
.fix-back-n { margin-top: 4px; font-size: 13px; line-height: 1.55; color: #8A3A34; }
.fix-tip { margin-top: 6px; font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }

/* 详情：表单 */
.fix-field { margin-top: 12px; }
.fix-field-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.fix-textarea { min-height: 78px; resize: vertical; line-height: 1.6; }
.fix-acts { display: flex; gap: 10px; margin-top: 14px; }
.fix-acts .btn { flex: 1; }
.fix-acts .btn.ghost { flex: 0 0 38%; }

/* 已闭环那一行 */
.fix-closed {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #E9F9F1;
  color: #059669;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* ==================== 器具管理（#/assets） ====================
 * 台账 + 定期校验。校验倒计时直接复用证书那套 .pv-track/.pv-fill 四色，
 * 别再造一套色阶——同一个"剩多少天了"就该长一个样。 */
.as-card { cursor: pointer; }

/* 器具名（编号）比隐患描述短，字号往上提一点 */
.as-name {
  margin-top: 2px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .2px;
}
.as-model { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.as-card .pv-track { margin-top: 8px; }
.as-when { font-size: 12px; color: var(--ink-2); }
.as-card .card-bottom { margin-top: 8px; }

/* 状态徽章：位置跟隐患处置的 .fix-badge 一样，颜色沿用四色 */
.as-flags { display: flex; align-items: center; gap: 6px; }

/* 「校验 / 保养」小标：与状态徽章并排，说明这条到期要送检还是要保养 */
.as-mode {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  padding: 0 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.as-mode.check { background: #EAF2FE; color: #2563EB; }
.as-mode.care  { background: #E5F8F4; color: #0D9488; }
.as-mode.inspect { background: #FFF6E0; color: #B45309; }

.as-badge {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.6;
  padding: 1px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.as-badge.ok    { background: #E9F9F1; color: #059669; }
.as-badge.watch { background: #E6F6FA; color: #0891B2; }
.as-badge.soon  { background: #FFF4E5; color: #D97706; }
.as-badge.over  { background: #FEECEB; color: #DC2626; }
.as-badge.plain { background: #EEF2F6; color: #64748B; }
.as-badge.handover { background: #F1EDFF; color: #6D49D2; }

/* 项目部那一排：切一下就是另一个项目的台账 */
.as-projects { margin: 4px 0 12px; }
.as-projects .seg-item { font-size: 13px; }

/* 详情里移交那一块：三个按钮一行，比登记按钮窄 */
.as-hand { border-top: 1px dashed #E3E9F0; }
.as-hand-acts { gap: 8px; }
.as-hand-btn { flex: 1 !important; padding: 0 6px; font-size: 13px; min-height: 40px; }

/* 详情里"登记一次"那块，跟记录之间留条缝 */
.fix-flow-form {
  margin: 4px 0 12px 26px;
  padding-top: 12px;
  border-top: 1px dashed #E3E9F0;
}


/* ==================================================================
 * 求职登记 v2（#/onboard）：五步 / 内容长了就滚 / 底部按钮固定
 * 版式照设计稿：青绿渐变头 + 白色弧形 + 白色大圆角卡片浮在弧上；
 * 字段左标签（约 30%）/ 右控件（约 70%）；底部两个胶囊按钮。
 * 只用 :root 现有颜色 + 设计稿给的青绿 #2fbfc6 / #17a2a8。
 * ================================================================== */

#view-onboard {
  padding: 0;
  max-width: 720px;
  background: var(--bg);
  /* 入场动画的 transform 会给 fixed 造一个新包含块（底部按钮就跟着页面滚）-> 这一屏不要它 */
  animation: none;
}
body.no-tab #view-onboard {
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

/* ---------- 顶部：青绿渐变 + 白色弧形 ---------- */
.ob-hero {
  position: relative;
  margin: 0;
  padding: calc(12px + var(--sat, env(safe-area-inset-top, 0px))) 20px 54px;
  background: linear-gradient(160deg, #2fbfc6, #17a2a8);
  overflow: hidden;
}
.ob-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
}
.ob-back {
  position: absolute;
  top: calc(8px + var(--sat, env(safe-area-inset-top, 0px)));
  left: 8px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.ob-back:active { background: rgba(255, 255, 255, .16); }
.ob-back-ico { width: 22px; height: 22px; }
.ob-hero-head { position: relative; z-index: 2; text-align: center; padding-top: 8px; }
.ob-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(9, 78, 82, .18);
}
.ob-step {
  margin: 7px 0 0;
  font-size: 13px;
  letter-spacing: .5px;
  color: rgba(255, 255, 255, .88);
}

/* 进度条：细线，已走实心白、未走半透明白，当前点一个白色圆点 */
.ob-prog { position: relative; z-index: 2; margin: 20px 4px 0; }
.ob-prog-line {
  position: relative;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .38);
}
.ob-prog-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 20%;
  border-radius: 2px;
  background: #fff;
  transition: width .3s var(--ease);
}
.ob-prog-dots { position: absolute; left: 0; right: 0; top: 50%; height: 0; }
.ob-dot {
  position: absolute;
  top: -3px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  transition: all .25s var(--ease);
}
.ob-dot.on { background: #fff; }
.ob-dot.cur {
  top: -5.5px;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .28);
}
.ob-pct {
  margin-top: 12px;
  text-align: right;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .5px;
  color: rgba(255, 255, 255, .95);
}

/* 网络状态条：离线常驻琥珀，在线只闪 2 秒「已联网」 */
.ob-net {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 2px -2px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.45;
}
.ob-net.is-hidden { display: none; }
.ob-net.is-off { background: rgba(255, 244, 214, .97); color: #7A5200; }
.ob-net.is-on { background: rgba(255, 255, 255, .20); color: #fff; }
.ob-net-ico { flex: none; width: 15px; height: 15px; }
.ob-net-t { min-width: 0; }

/* 待上传条数（第 5 步 / 结果页） */
.ob-queue {
  margin: 2px 2px 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #FFF4E5;
  color: #8A5A00;
  font-size: 12.5px;
  text-align: center;
}

/* 三种提交反馈：绿 / 琥珀 / 红 */
#toast.ob-toast.is-ok { background: #0F9D74; }
#toast.ob-toast.is-warn { background: #B45309; }
#toast.ob-toast.is-bad { background: #B91C1C; }

/* 结果页上传状态 */
.ob-rev-state { margin-top: 6px; font-size: 12px; }
.ob-rev-state.is-ok { color: #0F9D74; }
.ob-rev-state.is-wait { color: #B45309; }
/* 底部白色弧形：过渡到卡片区 */
.ob-arc {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -1px;
  height: 46px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* ---------- 卡片 ---------- */
.ob-body { position: relative; z-index: 2; margin: -32px 14px 0; }
.ob-card {
  background: #fff;
  border-radius: 26px;
  padding: 6px 18px;
  margin-bottom: 14px;
  box-shadow: 0 8px 28px rgba(17, 68, 73, .10), 0 1px 2px rgba(17, 68, 73, .05);
}
.ob-card-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 2px 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid #EFF4F7;
  font-size: 15px;
  font-weight: 700;
  color: #12333a;
}
.ob-card-t { font-size: 15px; }

/* 字段：左标签 30% / 右控件 70% */
.ob-row {
  display: grid;
  grid-template-columns: 30% minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 0;
  border-bottom: 1px solid #F2F6F9;
}
.ob-row:last-child { border-bottom: 0; }
.ob-lab {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13.5px;
  line-height: 1.3;
  color: #566771;
}
.ob-lab-t { word-break: break-word; }
.ob-star {
  font-style: normal;
  font-weight: 700;
  color: var(--red);
  margin-right: 1px;
}
.ob-ctl { min-width: 0; }

/* 输入框：细边框白底，聚焦变青绿 */
.ob-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #E3EAEF;
  border-radius: 11px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.ob-input:focus {
  border-color: #2fbfc6;
  box-shadow: 0 0 0 3px rgba(47, 191, 198, .15);
}
.ob-input::placeholder { color: #B3BDC7; }
.ob-textarea {
  height: auto;
  min-height: 78px;
  padding: 10px 12px;
  line-height: 1.55;
  resize: vertical;
}
.ob-select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA6B2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 13px;
}
.ob-select.is-empty { color: #9AA6B2; }

/* 横排标签（选项都用这个，不做下拉）：等分一整行，四个也不换行 */
.ob-chips { display: flex; flex-wrap: nowrap; gap: 8px; }
.ob-chip {
  flex: 1 1 0;
  min-width: 0;
  height: 38px;
  padding: 0 6px;
  white-space: nowrap;
  border: 1px solid #E3EAEF;
  border-radius: 10px;
  background: #F8FBFC;
  color: #4B5563;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.ob-chip.on {
  background: rgba(47, 191, 198, .12);
  border-color: #2fbfc6;
  color: #12878c;
}

/* 一寸照：小方框居中，下写「上传一寸照」 */
.ob-av {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 8px;
}
.ob-av-box {
  width: 88px;
  height: 123px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  border: 1px dashed #BFD5DA;
  border-radius: 10px;
  background: #F7FBFC;
  cursor: pointer;
}
.ob-av-box.has { border-style: solid; border-color: #DDE7EC; }
.ob-av-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ob-av-plus { font-size: 20px; line-height: 1; color: #2fbfc6; }
.ob-av-t { font-size: 11px; color: #8A97A3; }
.ob-av-cap { margin-top: 9px; font-size: 12.5px; color: #5C6B78; }

/* 身份证号下面那行带出值 */
.ob-idwrap { display: flex; flex-direction: column; gap: 8px; }
.ob-auto {
  padding: 9px 11px;
  border: 1px solid #E3F1F3;
  border-radius: 12px;
  background: #F4FBFC;
}
.ob-auto-tip { margin: 0; font-size: 12px; line-height: 1.45; color: #7C8B95; }
.ob-auto-v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.ob-auto-val { font-size: 14px; font-weight: 700; color: #134E52; }
.ob-auto-sub { font-size: 11.5px; color: #6B8790; }
.ob-auto-acts { display: flex; gap: 16px; margin-top: 7px; }
.ob-auto-done { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.ob-ok-txt { font-size: 12px; font-weight: 600; color: #0F9D74; }
.ob-lnk {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #6B7B86;
  cursor: pointer;
}
.ob-lnk.ok { color: #0F9D74; }
.ob-lnk.bad { color: #C2761A; }

.ob-manual {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed #DDEBEE;
}
.ob-manual-t { margin: 0; font-size: 11.5px; color: #7C8B95; }
.ob-manual .ob-input { height: 38px; font-size: 14px; }
.ob-manual-acts { display: flex; gap: 10px; }
.ob-mini {
  height: 34px;
  padding: 0 15px;
  border: 1px solid #E3EAEF;
  border-radius: 9px;
  background: #fff;
  color: #4B5563;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ob-mini.main { background: #2fbfc6; border-color: #2fbfc6; color: #fff; }

.ob-bwrap { display: flex; flex-direction: column; gap: 6px; }
.ob-val { font-size: 15px; font-weight: 600; color: #111827; }
.ob-val.is-blank { font-size: 13.5px; font-weight: 400; color: #A9B4BE; }
.ob-alert {
  display: none;
  padding: 7px 10px;
  border: 1px solid #FAD9A5;
  border-radius: 9px;
  background: #FFF4E5;
  color: #B45309;
  font-size: 12px;
  line-height: 1.45;
}
.ob-alert.show { display: block; }

/* 地址两格 */
.ob-stack { display: flex; flex-direction: column; gap: 8px; }
.ob-addr { display: flex; flex-direction: column; gap: 8px; }
.ob-pair { display: flex; gap: 8px; }
.ob-pair .ob-mini { flex: 1 1 0; height: 38px; }
.ob-hint { margin: 0; font-size: 11.5px; line-height: 1.45; color: #93A0AB; }

/* 是否全日制：圆圈打勾 + 文字 */
.ob-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  cursor: pointer;
}
.ob-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.ob-check-box {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #CBD8DF;
  border-radius: 50%;
  background: #fff;
  color: #fff;
  transition: background .18s, border-color .18s;
}
.ob-check-ico { width: 14px; height: 14px; opacity: 0; }
.ob-check input:checked + .ob-check-box { background: #2fbfc6; border-color: #2fbfc6; }
.ob-check input:checked + .ob-check-box .ob-check-ico { opacity: 1; }
.ob-check input:focus-visible + .ob-check-box { box-shadow: 0 0 0 3px rgba(47, 191, 198, .2); }
.ob-check-t { font-size: 14px; color: #374151; }

/* 上传：虚线框 + 图标；缩略图 + 计数 */
.ob-up { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ob-drop {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 78px;
  padding: 12px;
  border: 1.5px dashed #C6DBE1;
  border-radius: 14px;
  background: #F8FCFD;
  color: #228f97;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.ob-drop:active { background: #EFF9FA; }
.ob-drop-ico { width: 22px; height: 22px; }
.ob-thumbs { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.ob-thumbs:empty { display: none; }
.ob-th {
  position: relative;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid #E6EEF2;
  border-radius: 10px;
  -webkit-touch-callout: none;
  user-select: none;
  touch-action: manipulation;
  transition: transform .15s, box-shadow .15s;
}
.ob-th img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
/* 长按删除时的那一下反馈 */
.ob-th.press {
  transform: scale(.94);
  box-shadow: 0 0 0 2px #2fbfc6;
}
.ob-th-x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, .62);
  color: #fff;
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}
.ob-count { font-size: 11px; color: #A9B4BE; }

/* 工作经历：卡内两列 */
.ob-wgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  padding: 12px 0 14px;
}
.ob-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ob-f.wide { grid-column: 1 / -1; }
.ob-f-lab { font-size: 12.5px; color: #6B7B86; }
.ob-f .ob-input { height: 40px; font-size: 14px; }
.ob-del {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #C2761A;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.ob-addwrap { display: flex; justify-content: center; margin: 0 0 14px; }
.ob-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 22px;
  border: 1.5px dashed #9FD3D8;
  border-radius: 999px;
  background: #fff;
  color: #18959b;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.ob-add-ico { width: 16px; height: 16px; }

/* 第 5 步：确认清单（黄底：待核对，不是"全合格"） */
.ob-card.ob-checkcard {
  background: #FFF8E6;
  border-left: 3px solid #F5A623;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(180, 130, 20, .10);
}
.ob-checkcard .ob-card-h { border-bottom-color: #F3E3B8; color: #3A3427; }
.ob-chk-hint { margin-left: auto; font-size: 11px; font-weight: 400; color: #A9832F; }
.ob-chk {
  display: grid;
  grid-template-columns: 38% minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #F5E8C7;
  font-size: 13.5px;
  cursor: pointer;
  border-radius: 8px;
}
.ob-chk:last-of-type { border-bottom: 0; }
.ob-chk:active { background: rgba(245, 166, 35, .10); }
.ob-chk-k { color: #6B5F43; }
.ob-chk-vwrap { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ob-chk-v { font-weight: 600; color: #2B2415; word-break: break-word; }
.ob-chk-v.is-blank { font-weight: 400; color: #A79A7C; }
.ob-chk-note { font-size: 11px; color: #B45309; }
.ob-chk-mark {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #EDE6D4;
  color: #9A8E73;
}
.ob-chk-mark.ok { background: #10B981; color: #fff; box-shadow: 0 0 0 3px rgba(16, 185, 129, .14); }
.ob-chk-mark.bad { background: #EF4444; color: #fff; box-shadow: 0 0 0 3px rgba(239, 68, 68, .14); }
.ob-chk-mark.none { background: #E8E2D2; color: #A79A7C; }
.ob-chk-dash { font-size: 13px; line-height: 1; font-weight: 700; }
.ob-chk-ico { width: 13px; height: 13px; }
.ob-chk-bad .ob-chk-k { color: #8A3A12; }
.ob-chk-bad .ob-chk-v { color: #B45309; }

.ob-foot {
  margin: 12px 2px 6px;
  font-size: 11.5px;
  line-height: 1.55;
  text-align: center;
  color: #93A0AB;
}

/* 必填没填：那一行标红 */
.ob-row.is-bad { border-radius: 10px; box-shadow: inset 0 0 0 1.5px rgba(239, 68, 68, .45); }
.ob-row.is-bad .ob-input,
.ob-row.is-bad .ob-check-box { border-color: var(--red); background: #FFF8F7; }
.ob-f.is-bad .ob-input { border-color: var(--red); background: #FFF8F7; }

/* ---------- 底部按钮：固定不动 ---------- */
.ob-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #EDF2F5;
  background: #fff;
  box-shadow: 0 -8px 24px rgba(17, 68, 73, .07);
}
.ob-bar-in { display: flex; gap: 12px; max-width: 720px; margin: 0 auto; }
.ob-btn {
  flex: 1 1 0;
  height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s, opacity .18s;
}
.ob-btn:active { transform: scale(.985); }
.ob-btn.ghost { background: #fff; border-color: #D9E4EA; color: #4B5563; }
.ob-btn.ghost[disabled] { opacity: .4; cursor: default; }
.ob-btn.main {
  background: linear-gradient(135deg, #2fbfc6, #17a2a8);
  color: #fff;
  box-shadow: 0 6px 16px rgba(23, 162, 168, .28);
}
/* 清单里还有红叉：按钮变灰，但仍可点（点了告诉你缺什么、跳过去补） */
.ob-btn.main.is-disabled {
  background: #D7DDE3;
  color: #FBFCFD;
  box-shadow: none;
  cursor: default;
}
.ob-full { flex-basis: 100%; }

/* 从清单点回某一步时，闪一下那一项 */
.ob-flash {
  box-shadow: 0 0 0 3px rgba(245, 166, 35, .55);
  border-radius: 10px;
  transition: box-shadow .2s;
}

/* ---------- 复核页（#/onboard/done） ---------- */
.ob-rev-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 14px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(17, 68, 73, .07);
}
.ob-rev-av {
  flex: none;
  width: 54px;
  height: 76px;
  overflow: hidden;
  border-radius: 8px;
  background: #F1F6F8;
}
.ob-rev-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ob-rev-htext { min-width: 0; }
.ob-rev-title { font-size: 16px; font-weight: 700; color: #111827; }
.ob-rev-sub { margin-top: 4px; font-size: 12px; color: #93A0AB; }
.ob-rev-card {
  padding: 4px 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(17, 68, 73, .07);
}
.ob-rev-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F2F6F9;
  font-size: 13.5px;
}
.ob-rev-row:last-child { border-bottom: 0; }
.ob-rev-k { flex: 0 0 36%; color: #6B7B86; }
.ob-rev-v { flex: 1; min-width: 0; font-weight: 500; color: #111827; word-break: break-all; }
.ob-rev-v.is-blank { font-weight: 400; color: #B3BDC7; }
.ob-rev-foot { display: flex; margin: 16px 0 8px; }
.ob-rev-foot .ob-btn { flex: 1; font-size: 14px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 360px) {
  .ob-body { margin-left: 10px; margin-right: 10px; }
  .ob-card { padding: 6px 14px; }
  .ob-row { grid-template-columns: 34% minmax(0, 1fr); gap: 8px; }
  .ob-lab { font-size: 13px; }
  .ob-btn { font-size: 15px; }
}

/* ==========================================================================
   答题 / 刷题 —— 2026-11-15 重做（题库线）
   色：主色 #1664FF、页面底 #F5F7FA、描边 #E5E8EF、卡片白底 8px 圆角极柔阴影。
   只作用于 #view-exam / #view-practice 和 .qx-* 前缀的类，不动上面任何一个旧选择器。
   ========================================================================== */
#view-exam, #view-practice {
  --qx-primary: #1664FF;
  --qx-primary-soft: #EDF3FF;
  --qx-bg: #F5F7FA;
  --qx-line: #E5E8EF;
  --qx-ink: #0E1B2C;
  --qx-ink-2: #5A6472;
  --qx-ink-3: #86909C;
  --qx-ok: #00B42A;
  --qx-ok-soft: #EAF9EE;
  --qx-bad: #F54A45;
  --qx-bad-soft: #FFF1F0;
  background: var(--qx-bg);
  min-height: 100vh;
  color: var(--qx-ink);
}
#view-exam .qx-page, #view-practice .qx-page { padding-top: 8px; }

#view-exam .qx-head, #view-practice .qx-head {
  display: flex; align-items: center; gap: 12px; padding: 8px 0 14px;
}
.qx-back {
  flex: none; width: 36px; height: 36px; border: 1px solid var(--qx-line);
  background: #fff; border-radius: 10px; position: relative; cursor: pointer;
  box-shadow: 0 1px 2px rgba(14, 27, 44, .04);
}
.qx-back::before {
  content: ''; position: absolute; left: 14px; top: 12px; width: 9px; height: 9px;
  border-left: 2px solid var(--qx-ink); border-bottom: 2px solid var(--qx-ink);
  transform: rotate(45deg);
}
.qx-head-t { flex: 1; min-width: 0; }
.qx-title { display: block; font-size: 18px; font-weight: 600; letter-spacing: .2px; }
.qx-src {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 3px;
  font-size: 12.5px; color: var(--qx-ink-3);
}
.qx-src .qx-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--qx-ok);
}
.qx-src.is-local .qx-dot { background: #FA8C16; }

/* 顶部进度 */
#view-exam .qx-progress { padding: 0 2px 12px; }
.qx-progress-txt { font-size: 13px; color: var(--qx-ink-2); margin-bottom: 8px; font-weight: 600; }
.qx-bar { height: 4px; border-radius: 999px; background: #E8ECF3; overflow: hidden; }
.qx-bar-fill {
  display: block; height: 100%; width: 5%; border-radius: 999px;
  background: var(--qx-primary); transition: width .28s cubic-bezier(.22, .61, .36, 1);
}

/* 题卡 */
.qx-card {
  background: #fff; border: 1px solid var(--qx-line); border-radius: 8px;
  padding: 18px 16px 16px; box-shadow: 0 1px 3px rgba(14, 27, 44, .04);
}
.qx-type {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--qx-primary);
  background: var(--qx-primary-soft); border-radius: 6px; padding: 3px 9px; margin-bottom: 12px;
}
.qx-stem {
  font-size: 17px; line-height: 1.75; font-weight: 500; letter-spacing: .1px;
  word-break: break-word; margin-bottom: 16px;
}
.qx-options { display: flex; flex-direction: column; gap: 10px; }
.qx-opt {
  display: flex; align-items: flex-start; gap: 12px; width: 100%;
  padding: 14px 14px; min-height: 58px; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--qx-line); border-radius: 8px;
  font-family: inherit; font-size: 15.5px; line-height: 1.55; color: var(--qx-ink);
  transition: border-color .16s, background .16s, box-shadow .16s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.qx-opt:active { transform: scale(.995); }
.qx-opt-key {
  flex: none; width: 26px; height: 26px; border-radius: 7px; background: #F2F4F8;
  color: var(--qx-ink-2); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
  transition: background .16s, color .16s;
}
.qx-opt-text { flex: 1; padding-top: 2px; }
.qx-opt.is-on {
  border-color: var(--qx-primary); background: var(--qx-primary-soft);
  box-shadow: 0 0 0 2px rgba(22, 100, 255, .12);
}
.qx-opt.is-on .qx-opt-key { background: var(--qx-primary); color: #fff; }

/* 底部固定条 */
#view-exam .qx-foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--qx-line);
  max-width: 720px; margin: 0 auto;
  box-shadow: 0 -2px 10px rgba(14, 27, 44, .04);
}
#view-exam .qx-foot.hidden { display: none; }

/* 按钮 */
.qx-btn {
  flex: 1; height: 46px; border-radius: 8px; border: 1px solid transparent;
  font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background .16s, opacity .16s;
}
.qx-btn.main { background: var(--qx-primary); color: #fff; }
.qx-btn.main:active { background: #0E51D6; }
.qx-btn.ghost { background: #fff; color: var(--qx-primary); border-color: var(--qx-primary); }
.qx-btn.ghost:active { background: var(--qx-primary-soft); }
.qx-btn:disabled, .qx-btn.is-off { opacity: .4; cursor: default; }
.qx-btn.small {
  flex: none; height: 36px; padding: 0 14px; font-size: 13.5px; font-weight: 600;
  background: var(--qx-primary-soft); color: var(--qx-primary); border-color: transparent;
}

/* 加载骨架 */
.qx-loading { padding: 20px 4px; }
.qx-loading-t { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.qx-loading-n { font-size: 13px; color: var(--qx-ink-3); margin-bottom: 16px; }
.qx-sk {
  height: 52px; border-radius: 8px; margin-bottom: 10px;
  background: linear-gradient(90deg, #EEF1F6 25%, #F7F9FC 37%, #EEF1F6 63%);
  background-size: 400% 100%; animation: qxShine 1.3s ease infinite;
}
.qx-sk:first-of-type { height: 86px; }
@keyframes qxShine { 0% { background-position: 100% 0 } 100% { background-position: 0 0 } }

/* 成绩 */
#view-exam .qx-result { padding-bottom: 8px; }
.qx-ring-wrap { display: flex; justify-content: center; padding: 12px 0 4px; }
.qx-ring { position: relative; width: 132px; height: 132px; }
.qx-ring svg { width: 100%; height: 100%; }
.qx-ring-bg { fill: none; stroke: #E8ECF3; stroke-width: 8; }
.qx-ring-fg {
  fill: none; stroke: var(--qx-primary); stroke-width: 8; stroke-linecap: round;
  transition: stroke-dashoffset .6s cubic-bezier(.22, .61, .36, 1);
}
.qx-ring-fg.is-bad { stroke: var(--qx-bad); }
.qx-ring-txt {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
}
.qx-ring-txt b { font-size: 27px; font-weight: 700; letter-spacing: -.5px; }
.qx-ring-txt span { font-size: 12px; color: var(--qx-ink-3); }
.qx-result-nums {
  display: flex; background: #fff; border: 1px solid var(--qx-line); border-radius: 8px;
  margin: 12px 0; padding: 14px 0; box-shadow: 0 1px 3px rgba(14, 27, 44, .04);
}
.qx-rn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qx-rn + .qx-rn { border-left: 1px solid var(--qx-line); }
.qx-rn-n { font-size: 22px; font-weight: 700; }
.qx-rn-n.ok { color: var(--qx-ok); }
.qx-rn-n.bad { color: var(--qx-bad); }
.qx-rn span { font-size: 12px; color: var(--qx-ink-3); }
.qx-result-note { font-size: 13px; color: var(--qx-ink-2); line-height: 1.7; margin: 0 2px 14px; }
.qx-wrong-head { font-size: 13px; font-weight: 600; color: var(--qx-ink-2); margin: 4px 2px 8px; }
.qx-wrong-list { margin-bottom: 16px; }
.qx-wrong-row {
  background: #fff; border: 1px solid var(--qx-line); border-radius: 8px;
  padding: 12px 14px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(14, 27, 44, .03);
}
.qx-wrong-stem { font-size: 14px; line-height: 1.6; margin-bottom: 6px; word-break: break-word; }
.qx-wrong-meta { font-size: 12.5px; color: var(--qx-ink-3); }
.qx-result-foot { display: flex; gap: 12px; margin-top: 6px; }
.qx-error {
  margin-top: 12px; background: var(--qx-bad-soft); color: #B3261E; border-radius: 8px;
  padding: 14px; font-size: 14px; line-height: 1.7;
}
.qx-error.hidden { display: none; }

/* ---------- 刷题：章节折叠列表 ---------- */
#view-practice .qx-head { padding-bottom: 8px; }
.qx-practice-sub { font-size: 13px; color: var(--qx-ink-2); padding: 0 2px 12px; }
.qx-groups { padding-bottom: 8px; }
.qx-group {
  background: #fff; border: 1px solid var(--qx-line); border-radius: 8px;
  margin-bottom: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(14, 27, 44, .04);
}
.qx-group-head {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 14px;
  background: #fff; border: 0; font-family: inherit; cursor: pointer; text-align: left;
}
.qx-group-name { flex: 1; font-size: 14.5px; font-weight: 600; color: var(--qx-ink); }
.qx-group-cnt {
  font-size: 12px; color: var(--qx-primary); background: var(--qx-primary-soft);
  border-radius: 999px; padding: 2px 9px; font-weight: 600;
}
.qx-chev {
  flex: none; width: 8px; height: 8px; border-right: 2px solid var(--qx-ink-3);
  border-bottom: 2px solid var(--qx-ink-3); transform: rotate(45deg) translateY(-2px);
  transition: transform .18s;
}
.qx-group.is-open .qx-chev { transform: rotate(225deg) translateY(-1px); }
.qx-group-body { display: none; border-top: 1px solid var(--qx-line); }
.qx-group.is-open .qx-group-body { display: block; }
.qx-wrow { border-bottom: 1px solid #F1F3F7; }
.qx-wrow:last-child { border-bottom: 0; }
.qx-wrow-line {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 12px 14px;
  background: #fff; border: 0; font-family: inherit; cursor: pointer; text-align: left;
}
.qx-wrow-line:active { background: #FAFBFD; }
.qx-wrow-stem {
  flex: 1; font-size: 14px; line-height: 1.6; color: var(--qx-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qx-wrow-badge {
  flex: none; font-size: 11.5px; color: var(--qx-bad); background: var(--qx-bad-soft);
  border-radius: 999px; padding: 2px 8px; font-weight: 600; margin-top: 1px;
}
.qx-wrow-panel {
  padding: 0 14px 14px; background: #FAFBFD; border-top: 1px dashed var(--qx-line);
  animation: qxOpen .18s ease both;
}
@keyframes qxOpen { from { opacity: 0; transform: translateY(-4px) } to { opacity: 1; transform: none } }
.qx-wrow-full { font-size: 13.5px; line-height: 1.7; color: var(--qx-ink-2); padding: 10px 0 8px; }
.qx-wopt {
  display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.6;
  padding: 6px 0; color: var(--qx-ink-2);
}
.qx-wopt-key {
  flex: none; width: 20px; text-align: center; font-weight: 700; color: var(--qx-ink-3);
}
.qx-wopt.is-right { color: var(--qx-ok); font-weight: 600; }
.qx-wopt.is-right .qx-wopt-key { color: var(--qx-ok); }
.qx-wopt.is-bad { color: var(--qx-bad); }
.qx-wopt.is-bad .qx-wopt-key { color: var(--qx-bad); }
.qx-wrow-meta { font-size: 12.5px; color: var(--qx-ink-3); margin-top: 6px; }
.qx-wrow-ana {
  font-size: 13px; line-height: 1.7; color: var(--qx-ink-2); margin-top: 8px;
  padding: 10px 12px; background: #fff; border: 1px solid var(--qx-line); border-radius: 8px;
}
.qx-wrow-panel .qx-btn.small { margin-top: 10px; }

/* 空状态 */
.qx-empty { padding: 48px 8px; text-align: center; }
.qx-empty.hidden { display: none; }
.qx-empty-t { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.qx-empty-n { font-size: 13.5px; color: var(--qx-ink-3); margin-bottom: 20px; }
.qx-empty .qx-btn { max-width: 200px; margin: 0 auto; }

/* ==================================================================
 * 2026-11-15 体验修复（只追加，不改上面任何一条）
 * ================================================================== */

/* 看板 0 数据：一句人话，不画条 */
.dash-empty {
  padding: 20px 8px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.5;
}

/* 首页全 0 时的下一步引导 */
.home-guide {
  margin: 10px 0 2px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-2);
}
.home-guide-t { margin: 0 0 9px; font-size: 12.5px; color: var(--ink-2); }
.home-guide-btns { display: flex; gap: 10px; }
.home-guide-btn {
  flex: 1 1 0;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.home-guide-btn.ghost { background: #fff; border: 1px solid #D9E4EA; color: var(--ink-2); }

/* 应用页：13 格不再硬塞一屏，手机上换行、整页可滚 */
.view .grid { flex-wrap: wrap; align-content: flex-start; }

/* ---------- 民族：可搜索的底部弹层 ---------- */
.ob-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #E3EAEF;
  border-radius: 11px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.ob-pick.is-empty { color: #B3BDC7; }
.ob-pick-ico { flex: none; width: 14px; height: 14px; color: #9AA6B2; }
.ob-sheet-mask {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  background: rgba(17, 24, 39, .42);
}
.ob-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 76vh;
  padding: 14px 16px calc(10px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  background: #fff;
}
.ob-sheet-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ob-sheet-t { font-size: 16px; font-weight: 700; color: #111827; }
.ob-sheet-x {
  margin-left: auto;
  width: 32px; height: 32px;
  border: 0; border-radius: 50%;
  background: #F1F5F8;
  color: #6B7B86;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.ob-sheet-search {
  width: 100%;
  height: 42px;
  margin-bottom: 8px;
  padding: 0 12px;
  border: 1px solid #E3EAEF;
  border-radius: 11px;
  font: inherit;
  font-size: 15px;
  outline: none;
}
.ob-sheet-search:focus { border-color: #2fbfc6; }
.ob-sheet-list { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ob-sheet-item { padding: 12px 4px; border-bottom: 1px solid #F2F6F9; font-size: 15px; color: #111827; cursor: pointer; }
.ob-sheet-item.on { color: #12878c; font-weight: 700; }
.ob-sheet-empty { padding: 24px; text-align: center; color: #9AA6B2; font-size: 13px; }

/* ---------- 第 5 步附件材料：一行一个 chip ---------- */
.ob-att { display: flex; flex-wrap: wrap; gap: 6px; }
.ob-att-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: #E9F8F2;
  color: #0B7A57;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.ob-att-chip.miss { background: #F1F3F5; color: #8A97A3; font-weight: 400; }
.ob-att-chip.req-miss { background: #FDECEC; color: #B91C1C; }
/* ==========================================================================
   答题页 v3 —— 2026-11-15 按《题库前端设计规范（豆包）》重做
   这一块是**追加**在文件末尾的，靠"后写的赢"覆盖上面 v2 那套尺寸/颜色。
   强光适配：12px 进度条、48px 选项、44px 热区、去掉大渐变、弱阴影、状态配 SVG。
   全程没有呼吸动效（培训考核，不是告警）。
   ========================================================================== */

/* 顶栏 52px sticky */
#view-exam .qx-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 4px;
  background: #fff; border-bottom: 1px solid var(--qx-line);
}
#view-exam .qx-back {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 8px;
  background: transparent; color: var(--qx-ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: none; position: static;
}
#view-exam .qx-back::before { content: none; }
#view-exam .qx-back .qx-ico { width: 22px; height: 22px; }
#view-exam .qx-back:active { background: #F0F3F8; }
#view-exam .qx-top-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
#view-exam .qx-chap {
  font-size: 12.5px; line-height: 1.3; color: var(--qx-ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#view-exam .qx-count { font-size: 16px; line-height: 1.35; font-weight: 700; color: var(--qx-ink); }
#view-exam .qx-cardbtn {
  flex: none; min-width: 44px; height: 44px; padding: 0 8px;
  display: flex; align-items: center; gap: 5px;
  border: 1px solid var(--qx-line); border-radius: 8px; background: #fff;
  color: var(--qx-primary); font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
#view-exam .qx-cardbtn .qx-ico { width: 17px; height: 17px; }
#view-exam .qx-cardbtn:active { background: var(--qx-primary-soft); }

/* 进度：12px 加厚 + 右对齐已答 */
#view-exam .qx-prog { padding: 10px 2px 12px; }
#view-exam .qx-prog-txt {
  text-align: right; font-size: 12.5px; color: var(--qx-ink-2);
  font-weight: 600; margin-bottom: 6px;
}
#view-exam .qx-track { height: 12px; border-radius: 6px; background: var(--qx-line); overflow: hidden; }
#view-exam .qx-fill {
  display: block; height: 100%; width: 0; background: var(--qx-primary);
  border-radius: 6px; transition: width .2s linear;
}

/* 题干卡 */
#view-exam .qx-stemcard {
  background: #fff; border: 1px solid var(--qx-line); border-radius: 8px;
  padding: 16px; box-shadow: 0 1px 2px rgba(14, 27, 44, .04);
}
#view-exam .qx-type {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--qx-primary);
  background: transparent; padding: 0; margin-bottom: 10px;
}
#view-exam .qx-type .qx-ico { width: 16px; height: 16px; }
#view-exam .qx-stem {
  font-size: 17px; line-height: 1.5; font-weight: 500; color: var(--qx-ink);
  margin: 0 0 12px; word-break: break-word;
}
#view-exam .qx-flagbtn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px 0 8px;
  border: 1px solid var(--qx-line); border-radius: 8px; background: #fff;
  color: var(--qx-ink-2); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
#view-exam .qx-flagbtn .qx-ico { width: 17px; height: 17px; color: var(--qx-ink-3); }
#view-exam .qx-flagbtn.is-on { color: #FA8C16; border-color: #FA8C16; background: #FFF7EC; }
#view-exam .qx-flagbtn.is-on .qx-ico { color: #FA8C16; }

/* 选项：48px 起、14/12 内边距、左侧 SVG 单选圈 */
#view-exam .qx-options { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
#view-exam .qx-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 48px; padding: 12px 14px; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--qx-line); border-radius: 8px;
  font-family: inherit; font-size: 15px; line-height: 1.45; color: var(--qx-ink);
  box-shadow: none; transition: border-color .12s, background .12s;
  -webkit-tap-highlight-color: transparent;
}
#view-exam .qx-opt:active { transform: none; background: #FAFBFD; }
#view-exam .qx-radio { flex: none; width: 20px; height: 20px; color: var(--qx-ink-3); }
#view-exam .qx-opt.is-on { background: #F0F6FF; border-color: var(--qx-primary); box-shadow: none; }
#view-exam .qx-opt.is-on .qx-radio { color: var(--qx-primary); }
#view-exam .qx-opt-key {
  flex: none; min-width: 14px; width: auto; height: auto; border-radius: 0; background: none;
  color: var(--qx-ink-2); font-size: 14px; font-weight: 700; margin: 0; padding: 0;
}
#view-exam .qx-opt.is-on .qx-opt-key { color: var(--qx-primary); background: none; }
#view-exam .qx-opt-text { flex: 1; padding: 0; }

/* 来源标识 */
#view-exam .qx-src {
  display: flex; align-items: center; gap: 6px; padding: 12px 2px 0;
  font-size: 12px; color: var(--qx-ink-3);
}
#view-exam .qx-src .qx-dot { width: 6px; height: 6px; border-radius: 50%; background: #36CFC9; }
#view-exam .qx-src.is-local .qx-dot { background: #FA8C16; }

/* 底栏 60px */
#view-exam .qx-foot { height: 60px; padding: 7px 16px calc(7px + env(safe-area-inset-bottom)); gap: 12px; }
#view-exam .qx-foot .qx-btn { height: 46px; border-radius: 8px; font-size: 16px; }
#view-exam .qx-btn.main { background: var(--qx-primary); }
#view-exam .qx-btn.ghost { border-color: var(--qx-line); color: var(--qx-ink-2); }
#view-exam .qx-btn.ghost:active { background: #F0F3F8; }
#view-exam .qx-btn.ghost:disabled, #view-exam .qx-btn.ghost.is-off {
  color: #B8BFC9; border-color: var(--qx-line); background: #F7F8FA; opacity: 1;
}

/* 成绩页：状态三元组配色 + 图标 */
#view-exam .qx-ring-fg { stroke: #36CFC9; }
#view-exam .qx-ring-fg.is-bad { stroke: #F53F3F; }
#view-exam .qx-nums { border-radius: 8px; }
#view-exam .qx-num { gap: 6px; }
#view-exam .qx-num .qx-ico { width: 18px; height: 18px; }
#view-exam .qx-num .qx-ico.is-ok { color: #36CFC9; }
#view-exam .qx-num .qx-ico.is-bad { color: #F53F3F; }
#view-exam .qx-num .qx-ico.is-idle { color: var(--qx-ink-3); }
#view-exam .qx-num-v { font-size: 22px; font-weight: 700; color: var(--qx-ink); }
#view-exam .qx-wrong-top { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
#view-exam .qx-wrong-top .qx-ico { width: 16px; height: 16px; color: #F53F3F; }
#view-exam .qx-wrong-tag { font-size: 12px; font-weight: 600; color: #F53F3F; }
#view-exam .qx-wrong-head { font-size: 13px; font-weight: 600; color: var(--qx-ink-2); margin: 4px 2px 8px; }

/* 答题卡弹窗 */
.qx-sheet { position: fixed; inset: 0; z-index: 60; }
.qx-sheet.hidden { display: none !important; }
.qx-mask { position: absolute; inset: 0; background: rgba(14, 27, 44, .45); }
.qx-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 78vh; overflow: auto;
  background: #fff; border-radius: 16px 16px 0 0;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(14, 27, 44, .12);
}
.qx-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.qx-panel-head b { font-size: 16px; font-weight: 700; color: #0E1B2C; }
.qx-panel-close {
  width: 40px; height: 40px; border: 0; background: transparent; color: #86909C;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.qx-panel-close .qx-ico { width: 20px; height: 20px; }
.qx-legend { display: flex; gap: 14px; margin: 2px 0 12px; font-size: 12px; color: #86909C; }
.qx-legend .qx-lg { display: inline-flex; align-items: center; gap: 4px; }
.qx-legend .qx-ico { width: 15px; height: 15px; }
.qx-ico.is-ok { color: #36CFC9; }
.qx-ico.is-bad { color: #F53F3F; }
.qx-ico.is-idle { color: #86909C; }
.qx-ico.is-warn { color: #FA8C16; }
.qx-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.qx-cell {
  position: relative; height: 52px; border: 1px solid #E5E8EF; border-radius: 8px;
  background: #fff; color: #86909C; font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.qx-cell.is-done { border-color: #1664FF; background: #F0F6FF; color: #1664FF; }
.qx-cell .qx-cell-mark { position: absolute; right: 5px; bottom: 4px; width: 13px; height: 13px; color: #B8BFC9; }
.qx-cell.is-done .qx-cell-mark { color: #1664FF; }
.qx-cell .qx-cell-tri { position: absolute; right: 4px; top: 2px; font-size: 9px; color: #FA8C16; }
.qx-panel-foot { padding-top: 14px; }
.qx-panel-foot .qx-btn { width: 100%; }

/* 图标通用尺寸（没有专门规则时） */
.qx-ico { display: inline-flex; width: 18px; height: 18px; flex: none; }
.qx-ico svg { display: block; }

/* ==========================================================================
   答题页 v3 补丁（同一天追加，接在 v3 后面）
   1) 成绩页三个数字：v2 的 .qx-rn 换成了 .qx-num，布局要重新给（截图里发现挤成一行了）
   2) 成绩页把"答题卡"按钮收起来（在 exam.js 的 showOnly 里配合）
   ========================================================================== */
#view-exam .qx-nums {
  display: flex; align-items: stretch; padding: 14px 0;
  background: #fff; border: 1px solid var(--qx-line); border-radius: 8px;
  margin: 12px 0; box-shadow: 0 1px 2px rgba(14, 27, 44, .04);
}
#view-exam .qx-num {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 4px;
}
#view-exam .qx-num + .qx-num { border-left: 1px solid var(--qx-line); }
#view-exam .qx-num-l { font-size: 12px; color: var(--qx-ink-3); }
#view-exam .qx-cardbtn.hidden { display: none !important; }

/* ==========================================================================
   题库学习（v4 · 2026-11-15 早）—— 分类首页 + 模式选择 + 练习即时反馈
   追加在文件末尾，只作用于 #view-exam 下的新类和新弹层。
   ========================================================================== */

/* 首页顶栏 */
#view-exam .qx-top2 {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 4px 12px; background: #F5F7FA;
}
#view-exam .qx-h1 { font-size: 19px; font-weight: 700; color: var(--qx-ink); line-height: 1.3; }
#view-exam .qx-sub { font-size: 12.5px; color: var(--qx-ink-3); margin-top: 2px; }
#view-exam .qx-wrongbtn {
  position: relative; flex: none; min-width: 44px; height: 44px; padding: 0 10px;
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--qx-line); border-radius: 8px; background: #fff;
  color: var(--qx-ink-2); font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
#view-exam .qx-wrongbtn .qx-ico { width: 17px; height: 17px; color: var(--qx-primary); }
#view-exam .qx-badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #F53F3F; color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
#view-exam .qx-badge.hidden { display: none !important; }

/* 分类卡片 */
#view-exam .qx-cards { display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; }
#view-exam .qx-cards-loading { font-size: 13.5px; color: var(--qx-ink-3); padding: 24px 4px; }
#view-exam .qx-chapcard {
  width: 100%; text-align: left; cursor: pointer; font-family: inherit;
  background: #fff; border: 1px solid var(--qx-line); border-radius: 8px;
  padding: 14px; box-shadow: 0 1px 2px rgba(14, 27, 44, .04);
}
#view-exam .qx-chapcard:active { background: #FAFBFD; }
#view-exam .qx-chapcard.is-all { border-color: rgba(22, 100, 255, .35); background: #F7FAFF; }
#view-exam .qx-chapcard-top { display: flex; align-items: flex-start; gap: 8px; }
#view-exam .qx-chapcard-top > .qx-ico:first-child { width: 18px; height: 18px; color: var(--qx-primary); margin-top: 2px; }
#view-exam .qx-chapname {
  flex: 1; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--qx-ink);
  word-break: break-word;
}
#view-exam .qx-chev { width: 14px; height: 14px; color: var(--qx-ink-3); margin-top: 4px; }
#view-exam .qx-chapmeta { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-left: 26px; }
#view-exam .qx-chapcount { font-size: 12.5px; font-weight: 600; color: var(--qx-primary); background: var(--qx-primary-soft); border-radius: 999px; padding: 2px 9px; }
#view-exam .qx-chapstat { font-size: 12.5px; color: var(--qx-ink-2); }
#view-exam .qx-chapstat.is-muted { color: var(--qx-ink-3); }
#view-exam .qx-offline-note {
  margin: 4px 0 12px; padding: 10px 12px; border-radius: 8px;
  background: #FFF7EC; color: #8A5A00; font-size: 12.5px; line-height: 1.6;
}
#view-exam .qx-offline-note.hidden { display: none !important; }

/* 模式选择弹层 */
.qx-sheet .qx-panel-title { display: block; font-size: 17px; font-weight: 700; color: #0E1B2C; margin-bottom: 4px; }
.qx-sheet .qx-panel-sub { font-size: 13px; line-height: 1.6; color: #86909C; margin: 0 0 14px; }
.qx-sheet .qx-mode {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid #E5E8EF; border-radius: 10px;
  padding: 14px; margin-bottom: 10px; font-family: inherit;
}
.qx-sheet .qx-mode:active { background: #F7FAFF; }
.qx-sheet .qx-mode > .qx-ico { width: 22px; height: 22px; }
.qx-sheet .qx-mode > .qx-ico.is-ok { color: #36CFC9; }
.qx-sheet .qx-mode > .qx-ico.is-bad { color: #1664FF; }
.qx-sheet .qx-mode-txt { display: flex; flex-direction: column; gap: 3px; }
.qx-sheet .qx-mode-txt b { font-size: 15px; color: #0E1B2C; }
.qx-sheet .qx-mode-txt span { font-size: 12.5px; color: #86909C; }
.qx-sheet .qx-btn { width: 100%; margin-top: 2px; }

/* 练习模式的即时反馈 */
#view-exam .qx-feedback {
  margin-top: 12px; border-radius: 8px; padding: 12px 14px;
  border: 1px solid var(--qx-line); background: #fff;
}
#view-exam .qx-feedback.hidden { display: none !important; }
#view-exam .qx-feedback.is-ok { border-color: rgba(54, 207, 201, .55); background: #F2FCFB; }
#view-exam .qx-feedback.is-bad { border-color: rgba(245, 63, 63, .45); background: #FFF6F6; }
#view-exam .qx-fb-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#view-exam .qx-fb-head .qx-ico { width: 18px; height: 18px; }
#view-exam .qx-fb-head b { font-size: 14.5px; }
#view-exam .qx-feedback.is-ok .qx-fb-head b { color: #22A99F; }
#view-exam .qx-feedback.is-bad .qx-fb-head b { color: #F53F3F; }
#view-exam .qx-fb-ans { font-size: 12.5px; color: var(--qx-ink-2); margin-left: 4px; }
#view-exam .qx-fb-ana { font-size: 13px; line-height: 1.7; color: var(--qx-ink-2); margin-top: 8px; }
#view-exam .qx-fb-ana.is-muted { color: var(--qx-ink-3); }

/* 练习模式里选项的对错着色（考试模式不显示，交卷才出成绩） */
#view-exam .qx-opt.is-right { border-color: #36CFC9; background: #F2FCFB; }
#view-exam .qx-opt.is-right .qx-radio { color: #36CFC9; }
#view-exam .qx-opt.is-wrong { border-color: #F53F3F; background: #FFF6F6; }
#view-exam .qx-opt.is-wrong .qx-radio { color: #F53F3F; }

/* ==========================================================================
   培训学习（v5 · 2026-11-15 早）—— 学习记录卡 + 两个大类 + 空状态
   追加在文件末尾，只作用于 #view-exam 下的新类。
   ========================================================================== */

/* 学习记录卡 */
#view-exam .qx-record {
  background: #fff; border: 1px solid var(--qx-line); border-radius: 8px;
  padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(14, 27, 44, .04);
}
#view-exam .qx-record-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
#view-exam .qx-record-head .qx-ico { width: 17px; height: 17px; color: var(--qx-primary); }
#view-exam .qx-record-head b { font-size: 14.5px; font-weight: 700; color: var(--qx-ink); }
#view-exam .qx-record-note { font-size: 13px; line-height: 1.65; color: var(--qx-ink-3); margin: 0 0 12px; }
#view-exam .qx-record-actions { display: flex; gap: 10px; }
#view-exam .qx-record-actions .qx-btn { flex: none; width: auto; min-width: 120px; padding: 0 16px; }
#view-exam .qx-record-nums { display: flex; gap: 8px; }
#view-exam .qx-record-cell {
  flex: 1; display: flex; flex-direction: column; gap: 3px; align-items: flex-start;
  background: #F7FAFF; border-radius: 8px; padding: 10px 12px;
}
#view-exam .qx-record-num { font-size: 18px; font-weight: 700; color: var(--qx-ink); line-height: 1.2; }
#view-exam .qx-record-lab { font-size: 11.5px; color: var(--qx-ink-3); }
#view-exam .qx-record-sub { font-size: 12.5px; font-weight: 600; color: var(--qx-ink-2); margin: 12px 0 6px; }
#view-exam .qx-record-sub.is-muted { font-weight: 400; color: var(--qx-ink-3); margin-bottom: 0; }
#view-exam .qx-recent-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 7px 0; border-top: 1px dashed var(--qx-line);
}
#view-exam .qx-recent-chap {
  font-size: 13px; color: var(--qx-ink); flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#view-exam .qx-recent-meta { font-size: 11.5px; color: var(--qx-ink-3); flex: none; }

/* 大类列表 */
#view-exam .qx-cats { display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; }
#view-exam .qx-cat {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--qx-line); border-radius: 8px;
  padding: 14px; font-family: inherit; cursor: pointer;
  box-shadow: 0 1px 2px rgba(14, 27, 44, .04);
}
#view-exam .qx-cat:active { background: #FAFBFD; }
#view-exam .qx-cat > .qx-ico { width: 22px; height: 22px; color: var(--qx-primary); }
#view-exam .qx-cat > .qx-ico.qx-chev { width: 14px; height: 14px; color: var(--qx-ink-3); }
#view-exam .qx-cat-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#view-exam .qx-cat-name { font-size: 15px; font-weight: 600; color: var(--qx-ink); }
#view-exam .qx-cat-note { font-size: 12px; color: var(--qx-ink-3); }
#view-exam .qx-cat-count { font-size: 12px; font-weight: 600; color: var(--qx-primary); background: var(--qx-primary-soft); border-radius: 999px; padding: 2px 9px; flex: none; }

/* 空状态页 */
#view-exam .qx-empty-page { padding-bottom: 24px; }
#view-exam .qx-empty-box {
  margin-top: 28px; background: #fff; border: 1px solid var(--qx-line); border-radius: 8px;
  padding: 40px 20px; text-align: center;
  box-shadow: 0 1px 2px rgba(14, 27, 44, .04);
}
#view-exam .qx-empty-ico { width: 44px; height: 44px; color: #B8BFC9; margin: 0 auto 14px; }
#view-exam .qx-empty-title { font-size: 16px; font-weight: 600; color: var(--qx-ink); margin-bottom: 8px; }
#view-exam .qx-empty-note { font-size: 13px; line-height: 1.7; color: var(--qx-ink-3); }

/* 培训学习 v5 补丁：折角图标用 .qx-caret（避开 practice 页 .qx-chev 的 rotate）*/
#view-exam .qx-caret { width: 14px; height: 14px; color: var(--qx-ink-3); transform: none; border: 0; }
#view-exam .qx-cat > .qx-caret { margin-top: 0; }
#view-exam .qx-record-actions .qx-btn { flex: none; width: auto; min-width: 120px; padding: 0 16px; }

/* ==================================================================
   登录页 + 账号块（2026-11-15 接后端后加；只往后追加，不动上面任何一条）
   ================================================================== */
#view-login { background: #F1F5F9; }
.lg-wrap { min-height: 100vh; padding: 56px 22px 40px; display: flex; flex-direction: column; justify-content: center; }
.lg-brand { text-align: center; margin-bottom: 26px; }
.lg-logo { display: block; margin: 0 auto 12px; border-radius: 14px; }
.lg-brand h1 { margin: 0 0 6px; font-size: 21px; font-weight: 700; color: #0F172A; letter-spacing: .5px; }
.lg-brand p { margin: 0; font-size: 13px; color: #64748B; }
.lg-card { background: #fff; border-radius: 16px; padding: 20px 18px 18px; box-shadow: 0 6px 24px rgba(15,23,42,.08); }
.lg-row { display: block; margin-bottom: 14px; }
.lg-label { display: block; font-size: 13px; color: #475569; margin-bottom: 6px; }
.lg-input { width: 100%; box-sizing: border-box; height: 46px; padding: 0 12px; font-size: 16px;
  color: #0F172A; background: #F8FAFC; border: 1px solid #CBD5E1; border-radius: 10px; outline: none;
  -webkit-appearance: none; appearance: none; }
.lg-input:focus { border-color: #0E7490; background: #fff; box-shadow: 0 0 0 3px rgba(14,116,144,.12); }
.lg-err { margin: 0 0 10px; min-height: 18px; font-size: 13px; line-height: 1.5; color: #DC2626; }
.lg-btn { width: 100%; height: 48px; border: 0; border-radius: 12px; font-size: 16px; font-weight: 600;
  color: #fff; background: #0E7490; }
.lg-btn:active { background: #0B5C73; }
.lg-btn[disabled] { background: #94A3B8; }
.lg-foot { margin: 18px 0 0; text-align: center; font-size: 12px; color: #94A3B8; }

/* 「我的」页账号块 */
.pv-account { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pv-account .pv-report-line { margin: 0; flex: 1 1 auto; font-size: 13px; color: #334155; }
.pv-account .mini-btn { flex: 0 0 auto; color: #B91C1C; border-color: #FCA5A5; background: #FEF2F2; }

/* ==================================================================
   首页任务流工作台（2026-11-15 追加；上面 3153 行一行没动）
   三段：待我办 / 待我确认 / 我发起的；底部中间一个凸起的「随手拍隐患」圆钮。
   尺寸按 390 宽的手机会员机排的：卡片一行标题 + 一行副信息 + 右侧动作按钮。
   ================================================================== */

/* 品牌区的标：原来是 <img>，现在用同一张图当背景（index.html 里只引一次，省一次 55 KB） */
.hero-mark { background: #fff url("./icons/logo-mark.png") center / 27px auto no-repeat; }

/* 首页要给自己留出圆钮的位置（圆钮离底 74px、高 68px） */
#view-home { padding-bottom: calc(152px + env(safe-area-inset-bottom)); }

.flow-head { margin: 14px 0 0; }
.flow-top { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: .2px; color: var(--ink); }
.flow-sub { margin: 5px 0 0; font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.flow { margin-top: 14px; }

/* admin 的全员数字条 + 原看板入口 */
.flow-admin { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 12px; padding: 9px 12px; border-radius: 12px; background: var(--cyan-soft); }
.flow-admin-t { font-size: 12.5px; font-weight: 600; color: #0E7490; }
.flow-admin-go { flex: none; height: 32px; padding: 0 12px; border: 1px solid rgba(14,116,144,.35);
  border-radius: 999px; background: #fff; color: #0E7490; font: inherit; font-size: 12.5px; font-weight: 600; }
.flow-admin-go:active { background: #E6F6FA; }

/* 一段 */
.flow-sec { margin: 0 0 18px; }
.flow-sec-h { display: flex; align-items: baseline; gap: 8px; margin: 0 0 9px; padding-left: 2px; }
.flow-sec-t { font-size: 15px; font-weight: 700; color: var(--ink); }
.flow-sec-n { min-width: 22px; padding: 0 7px; border-radius: 999px; background: #E2E8F0; color: #475569;
  font-size: 12px; line-height: 20px; text-align: center; font-weight: 700; }
.flow-sec[data-sec="confirm"] .flow-sec-n { background: #FFF3D6; color: #9A6412; }

/* 一张卡：左标题/副信息，右动作按钮 */
.flow-card { display: flex; align-items: center; gap: 10px; margin: 0 0 9px; padding: 12px 12px 12px 14px;
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow-2); }
.flow-card.is-late { box-shadow: 0 0 0 1px rgba(239,68,68,.35), var(--shadow-2); }
.flow-card-main { flex: 1 1 auto; min-width: 0; }
.flow-card-t { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.flow-card-s { margin: 4px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--ink-3); }
.flow-card.is-late .flow-card-s { color: #DC2626; }

.flow-tag { display: inline-block; margin-right: 5px; padding: 0 5px; border-radius: 5px;
  font-size: 11px; font-weight: 700; line-height: 17px; vertical-align: 1px; }
.flow-tag.is-urgent { background: #FEE2E2; color: #B91C1C; }
.flow-tag.is-check { background: #FFF3D6; color: #9A6412; }

.flow-act { flex: 0 0 auto; height: 34px; min-width: 64px; padding: 0 12px; border: 1px solid #D7E1E9;
  border-radius: 999px; background: #fff; color: #0E7490; font: inherit; font-size: 12.5px;
  font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.flow-act.is-main { border-color: transparent; background: var(--grad); color: #fff; }
.flow-act:active { opacity: .82; }
.flow-act[disabled] { opacity: .6; }

/* 空了一段 / 还有几条 / 没读上 */
.flow-empty { margin: 0 0 9px; padding: 14px; border: 1px dashed #DAE3EA; border-radius: 14px;
  background: #fff; color: var(--ink-3); font-size: 12.5px; line-height: 1.5; }
.flow-more { margin: -2px 0 9px; padding-left: 4px; font-size: 12px; color: var(--ink-3); }
.flow-note { margin: 0 0 8px; font-size: 12px; line-height: 1.5; color: #B45309; }
.flow-retry { display: block; width: 100%; height: 44px; margin: 2px 0 10px; border: 0; border-radius: 12px;
  background: var(--cyan); color: #fff; font: inherit; font-size: 15px; font-weight: 600; }

/* 底部中间凸起的圆钮（只在首页：app.js 的 syncTab 给 body 挂 on-home） */
.fab-shot { position: fixed; left: 50%; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 31;
  transform: translateX(-50%); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 1px; padding: 0; width: 68px; height: 68px; border: 3px solid #fff; border-radius: 50%;
  background: var(--grad); color: #fff; box-shadow: 0 10px 22px -8px rgba(8,145,178,.75);
  -webkit-tap-highlight-color: transparent; }
.fab-shot-ico { width: 24px; height: 24px; }
.fab-shot-t { font-size: 10px; line-height: 1.1; letter-spacing: 0; white-space: nowrap; }
.fab-shot:active { transform: translateX(-50%) scale(.96); }
body:not(.on-home) .fab-shot { display: none; }

/* ==========================================================================
   离线提交队列（2026-11-15 追加；上面的行一行没动）
   首页一行角标 .q-home / 我的页一张卡 .q-card / 点开是底部面板 .q-sheet
   ========================================================================== */
.q-home { margin: 12px 0 0; }

.q-chip { display: flex; align-items: center; gap: 9px; width: 100%; padding: 11px 13px;
  border: 1px solid #F6D9A8; border-radius: 14px; background: var(--warn-bg);
  font: inherit; text-align: left; color: var(--warn-text);
  -webkit-tap-highlight-color: transparent; }
.q-chip:active { transform: scale(.995); }
.q-chip-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.q-chip-t { flex: 0 0 auto; font-size: 14px; font-weight: 700; }
.q-chip-s { flex: 1 1 auto; min-width: 0; font-size: 11.5px; line-height: 1.35; color: #B07B22;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-chip-go { flex: 0 0 auto; font-size: 18px; line-height: 1; color: #C08A2E; }

.q-card { display: block; }
.q-card-t { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--ink); }
.q-card-n { font-size: 18px; color: var(--warn-text); }
.q-card-bad { margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: #FEECEC;
  font-size: 11px; font-weight: 600; color: var(--red); vertical-align: 2px; }
.q-card-s { margin: 0 0 10px; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.q-card .mini-btn { margin-top: 2px; }

/* 底部面板 */
.q-sheet { position: fixed; inset: 0; z-index: 60; }
.q-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .42); }
.q-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 78vh; overflow-y: auto;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0;
  background: var(--card); box-shadow: 0 -12px 30px rgba(15, 23, 42, .18);
  -webkit-overflow-scrolling: touch; }
.q-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.q-h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.q-close { padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font: inherit; font-size: 13px; color: var(--ink-2); }
.q-sum { margin: 6px 0 12px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }

.q-list { list-style: none; margin: 0; padding: 0; }
.q-item { margin: 0 0 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; box-shadow: var(--shadow-1); }
.q-item.is-failed { border-color: #FBD5D5; background: #FFFCFC; }
.q-item.is-sending { border-color: #CFE9F1; }
.q-item-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.q-kind { padding: 1px 7px; border-radius: 6px; background: var(--cyan-soft);
  font-size: 11.5px; font-weight: 600; color: var(--cyan); }
.q-time { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.q-state { margin-left: auto; font-size: 11.5px; font-weight: 600; color: #B07B22; }
.q-state.is-failed { color: var(--red); }
.q-state.is-sending { color: var(--cyan-2); }
.q-label { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.q-err { margin: 5px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--red); word-break: break-all; }
.q-photo { margin: 5px 0 0; font-size: 11.5px; color: var(--ink-3); }
.q-acts { display: flex; gap: 8px; margin-top: 10px; }
.q-btn { flex: 1 1 0; height: 38px; border: 1px solid var(--line); border-radius: 11px; background: #fff;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--cyan);
  -webkit-tap-highlight-color: transparent; }
.q-btn.is-del { color: var(--red); border-color: #FBD5D5; }
.q-btn:active { transform: scale(.98); }
.q-btn[disabled] { color: var(--ink-3); opacity: .7; }
.q-empty { padding: 22px 4px; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.q-tip { margin: 12px 0 0; font-size: 11.5px; line-height: 1.55; color: var(--ink-3); }


/* ==================================================================
 * 2026-11-15 豆包评审清单（只追加，前面一条不动）
 *   首页：44px 窄栏 / 网络状态 / 卡片小字里的类型标签
 *   应用页：通知公告未读角标
 *   我的页：证书上移后的图例、「我的数据」降为二级
 * ================================================================== */

/* ---------- 首页顶栏：青蓝大色块压成 44px 窄栏（评审第 1 条） ---------- */
/* 原 .hero 是 padding 18+58、圆角 24 的大块，光色块就吃掉大半屏；
   现在只留 logo + 站名，高度锁 44px（真机刘海高度另加 safe-area）。
   量法：document.querySelector('.hero').getBoundingClientRect().height */
.hero--bar {
  height: calc(44px + var(--sat, env(safe-area-inset-top, 0px)));
  min-height: calc(44px + var(--sat, env(safe-area-inset-top, 0px)));
  padding: var(--sat, env(safe-area-inset-top, 0px)) 16px 0;
  border-radius: 0 0 12px 12px;
  box-sizing: border-box;
}
.hero--bar::after { display: none; }          /* 右上那团白光是给大块的，窄栏里不要 */
.hero--bar .hero-row { width: 100%; gap: 9px; }
.hero--bar .hero-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  box-shadow: none;
  background-size: 18px auto;
}
.hero--bar .hero-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .3px;
}

/* ---------- 顶栏右侧网络/同步状态（评审第 7 条） ---------- */
.net-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34D399;                        /* 在线：绿点 */
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .22);
}
.net-dot.off {
  background: #FBBF24;                        /* 离线：黄点，底下还有一条黄条 */
  box-shadow: 0 0 0 3px rgba(251, 191, 36, .22);
}
.net-txt {
  flex: none;
  font-size: 11.5px;
  letter-spacing: .2px;
  color: rgba(255, 255, 255, .88);
}

/* 离线黄条：断网才出现，N 来自 offline_queue（home.js 现取） */
.net-off {
  display: flex;
  align-items: center;
  margin: 0 -16px;
  padding: 8px 16px;
  background: #FFF7E6;
  border-bottom: 1px solid #FDE3AD;
  font-size: 12.5px;
  line-height: 1.4;
  color: #A16207;
}
.net-off b { margin: 0 3px; font-size: 13.5px; color: #B45309; }

/* 卡片小字里的类型/状态标签（评审第 4 条：标签从标题挪到小字行） */
.flow-card-s .flow-tag { margin-right: 4px; vertical-align: 1px; }

/* ---------- 应用页：通知公告未读角标（评审第 12 条） ---------- */
.grid-icon { position: relative; }             /* 角标挂在这个方块右上角 */
.grid-badge {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1.5px solid #fff;
  background: #EF4444;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- 我的页：证书图例排成标准四格（评审第 15 条） ---------- */
.pv-legend {
  justify-content: space-between;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #E6EDF3;
  color: var(--ink-2);
}
.pv-lg { flex: 0 0 auto; font-size: 11.5px; }
.pv-lg-dot { width: 9px; height: 9px; }

/* ---------- 我的页：「我的数据」降为二级（评审第 14 条） ---------- */
/* 四格本身不动（跟数据看板同一个 .stats 长相），只把这一组往后退一档：
   小标题变灰变细、数字缩小，眼睛先落在上面那块证书上 */
.pv-sub .group-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: .2px;
}
.pv-sub .stat-num { font-size: 19px; color: var(--ink-2); }
.pv-sub .stat-label { font-size: 11.5px; }

/* ==================================================================
 * 2026-11-15 第三轮：「我报的那条后来咋样了」（只追加）
 *   首页卡片：状态徽标 + 时间话（已挂 N 天 · 预计 … · 已超期 N 天）
 *   隐患详情：处理时间线
 * 颜色只用现有的：待办黄 --warn-* 、进行中青 --cyan-* 、完成灰绿 --green 、超期红 --red
 * ================================================================== */

/* ---------- 首页「我发起的」卡片：徽标 + 时间话 ---------- */
.flow-prog {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
}
.flow-state {
  flex: none;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.flow-state.is-wait  { background: #FFF3D6; color: #9A6412; }   /* 待派单 / 待验收：待办黄 */
.flow-state.is-doing { background: #E6F6FA; color: #0E7490; }   /* 已派给 / 整改中：进行中青 */
.flow-state.is-done  { background: #EDF2F6; color: #64748B; }   /* 已闭环：完成灰绿 */

.flow-age {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.flow-age.is-over { color: var(--red); font-weight: 600; }      /* 超期：整行标红 */

/* ---------- 隐患详情：处理时间线 ---------- */
.tl { padding: 2px 0 0; }
.tl-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 0;
}
.tl-item + .tl-item { border-top: 1px solid var(--line); }
.tl-dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--cyan-2);
}
.tl-main { flex: 1 1 auto; min-width: 0; }
.tl-line { font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.tl-note { margin-top: 2px; font-size: 11.5px; line-height: 1.45; color: var(--ink-3); word-break: break-all; }

.q-card-pic { margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: #E6F6FA; font-size: 11px; font-weight: 600; color: var(--cyan); vertical-align: 2px; }

/* 2026-11-15 豆包第 4 条：待办为空时那个虚线框占了小半屏，空着也是空的——压成一行高。 */
.flow-empty { padding: 10px 12px; line-height: 1.5; }

/* ---------- 风险研判 S/L（2026-11-15 第五轮，只追加） ---------- */
.risk-box { margin: 6px 0 0; }
.risk-picks { display: flex; gap: 10px; margin-top: 8px; }
.risk-picks .ctl { flex: 1 1 0; }
.risk-live { margin: 8px 2px 0; font-size: 12.5px; color: var(--cyan); font-weight: 600; }
.risk-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 60;
  background: rgba(15, 23, 42, .38); display: flex; align-items: flex-end;
}
.risk-sheet.hidden { display: none !important; }
.risk-sheet-box {
  width: 100%; padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  background: #fff; border-radius: 18px 18px 0 0;
}
.risk-sheet-t { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }

/* ==================== 状态栏高度兜底（2026-11-15） ====================
 * APK 里 manifest 的 fullscreen=false，系统状态栏回来了，顶上会占掉一条；
 * 但 5+ 的 WebView 里 env(safe-area-inset-top) 是 0，躲不开。
 * 所以真实高度由 app.js 用 plus.navigator.getStatusbarHeight() 写进 --sat（写在 <html> 的内联样式上，优先级高于这里）；
 * 浏览器里没有 plus → --sat 退回 env()，正常就是 0，排版跟以前一模一样。
 * 本文件里原来直接写 env(safe-area-inset-top) 的地方，已统一改成 var(--sat, env(safe-area-inset-top, 0px))。
 */
:root { --sat: env(safe-area-inset-top, 0px); }

/* 2026-11-15 作者说顶部有"割裂感"：状态栏是白的、首页顶栏是青的，中间一道硬边。
   解法不是把两边弄成一个颜色（那样别的白底页又不搭），而是让它"化开"：
   顶上先从白淡入到青，再给一条极淡的线收边。 */
.hero {
  background: linear-gradient(180deg, #FFFFFF 0, var(--grad-head) 22px) !important;
  box-shadow: inset 0 1px 0 rgba(15, 124, 140, .10);
}

/* ==================================================================
 * 2026-11-15 个人档案（#/me，只追加，不动上面任何一行）
 *   一屏：身份卡 / 四格数字 / 证书（没数据不长）/ 最近动态 / 档案卡
 *   颜色全用现成的：--cyan 主色、--ink-2/3 灰、--line 虚线
 * ================================================================== */

/* 「我的」页那张个人卡上多一个「档案卡」入口，两个钮竖着排 */
.pv-card-btns { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; }

/* ---------- 1. 顶部身份卡 ---------- */
.me-id {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}
.me-av {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(150deg, #0E7490, #155E75);
}
.me-id-t { flex: 1 1 auto; min-width: 0; }
.me-name { font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--ink); letter-spacing: .3px; }
.me-org { margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.me-meta { margin-top: 4px; font-size: 12px; color: var(--ink-3); }

/* ---------- 2. 四格（沿用 .stats，只把 -38px 那个跟 hero 咬合的外边距去掉） ---------- */
.me-stats { margin: 12px 0 0; box-shadow: var(--shadow-2); }
.me-stats .stat-num { font-size: 21px; }
.me-stats .stat-hint { min-height: 13px; }

/* ---------- 3. 证书（库里没数据时整块 hidden，这里是长出来的样子） ---------- */
.me-certs { list-style: none; margin: 0; padding: 4px 14px 8px; }
.me-cert { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.me-cert:last-child { border-bottom: 0; }
.me-cert-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.me-cert-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.me-cert-meta { margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }
.me-badge { flex: none; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.me-badge.ok { background: #ECFDF5; color: #047857; }
.me-badge.soon { background: #FFF7ED; color: #B45309; }
.me-badge.over { background: #FEF2F2; color: #B91C1C; }

/* ---------- 4. 最近动态：一行一条 ---------- */
.me-feed { list-style: none; margin: 0; padding: 6px 14px 8px; }
.me-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
}
.me-row:last-child { border-bottom: 0; }
.me-row-d { flex: none; width: 46px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.me-row-t {
  flex: none;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--cyan-soft);
  color: var(--cyan);
}
.me-row-t.is-hazard { background: #FEF2F2; color: #B91C1C; }
.me-row-t.is-leave { background: #EFF6FF; color: #1D4ED8; }
.me-row-t.is-fix { background: #ECFDF5; color: #047857; }
.me-row-t.is-exam { background: #F5F3FF; color: #6D28D9; }
.me-row-t.is-att { background: #FFF7ED; color: #B45309; }
.me-row-x { flex: 1 1 auto; min-width: 0; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-feed-empty { margin: 0; padding: 22px 14px; text-align: center; font-size: 12.5px; color: var(--ink-3); }

/* ---------- 5. 底部按钮 + 一行来源说明 ---------- */
.me-actions { display: flex; margin-top: 18px; }
.me-note { margin: 10px 2px 0; font-size: 11.5px; line-height: 1.5; color: var(--ink-3); text-align: center; }
.me-note.is-off { color: #B45309; }

/* ---------- 档案卡弹层（canvas → <img>，长按可存） ---------- */
.me-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, .72);
}
.me-sheet-box { width: 100%; max-width: 420px; max-height: 92vh; overflow: auto; }
.me-card-img {
  display: block;
  width: 100%;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
}
.me-sheet-tip {
  width: fit-content;
  margin: 10px auto 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .55);
  font-size: 12px;
  text-align: center;
  color: rgba(255, 255, 255, .92);
}
/* .btn 本来是 flex:1（给两钮并排用的），弹层里只有一个钮，让它占满一行 */
.me-sheet-box .btn { width: 100%; flex: 0 0 auto; color: #0E7490; background: #fff; border: 0; }
/* ==================== 2026-11-16 「我的」页底部（作者口径） ====================
   作者：「顶部显示个人信息，底部就单纯的显示一个退出按钮就行了」
       ＋「退出按钮下面加一个版本号吧」。
   所以底部整块 = 一个占满整行的退出按钮 + 按钮下面一行小灰字版本号。
   账号那行「孙宇 · FY20190021 · 生产运行部 · 成品油1班 · 管理员」已删（顶部身份卡已有）。
   注：这里只追加，不改上面任何一条已有规则；.pv-account 原有的红字描边（L3153 那行）照旧管按钮配色。 */
.pv-account-solo {
  /* 原来 .pv-account 是横向一行（文字 + 按钮），现在只剩一个按钮 + 小字，改成纵向 */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding-bottom: 24px;          /* 按钮距页底 24px */
}
.pv-account-solo .mini-btn {
  flex: 0 0 auto;
  display: flex;
  width: 100%;                   /* 占满整行 */
  align-items: center;
  justify-content: center;
  min-height: 44px;              /* 好按：手湿、戴手套也点得中 */
  font-size: 14px;
}
.pv-account-solo .pv-ver {
  margin: 12px 0 0;              /* 版本号距按钮 12px */
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: #999;
}

/* ---------- 隐患上报：二级选中值超宽时补一行全名（2026-11-16 作者定） ----------
 * 只由 hazard.js 的 paintSubcatFull() 在"字宽 > 控件内宽"时才取消 hidden；
 * 不超宽就 hidden，不占位、不留间距。 */
#f-subcat-full {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #6b7785;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#f-subcat-full[hidden] { display: none; }
/* ---------- 题库选择器（2026-11-19 分层）：只列出已放出的库，当前只有 safety ---------- */
#view-exam .qx-bankbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 0 2px 14px;
}
#view-exam .qx-bankbar-label {
  font-size: 12px; color: var(--qx-ink-3); flex: none;
}
#view-exam .qx-bankchip {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 6px 14px; min-height: 34px;
  border: 1px solid var(--qx-line, #d9e0e8); border-radius: 999px;
  background: #fff; color: var(--qx-ink-2, #4a5568); cursor: pointer;
}
#view-exam .qx-bankchip.is-on {
  border-color: var(--qx-primary, #1654ff);
  background: var(--qx-primary-soft, #f0f5ff);
  color: var(--qx-primary, #1654ff);
}

/* ===== 2026-11-19 v16 请假审批状态标签（只追加，不改上面的规则） =====
   leave.js 列表用；.pending 灰 / .approved 绿 / .rejected 红；驳回理由另起一截。
   管理端 admin.html 不加载本文件，那边在 admin.js 里复用 .tag.plain/.done/.back 上色。 */
.card-status-line {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  margin: -3px 0 9px;
}
.leave-status {
  display: inline-block; padding: 2px 9px; border-radius: 10px;
  font-size: 11.5px; line-height: 18px; white-space: nowrap; vertical-align: middle;
  font-weight: 600;
}
.leave-status.pending  { color: #86909c; background: #f2f3f5; }
.leave-status.approved { color: #00a870; background: #e8fffb; }
.leave-status.rejected { color: #f53f3f; background: #ffece8; }
.leave-reject-reason {
  color: #f53f3f; font-size: 12px; line-height: 1.4; word-break: break-all;
}
