/* ==========================================================================
   828 People OS —— V0.1 样式（light theme）
   设计目标：老板在 3–5 分钟内完成一次月度考核，页面必须一眼看懂、零学习成本。
   ========================================================================== */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #e3e6ea;
  --border-strong: #cfd4da;

  --text: #1b1f24;
  --text-sub: #5b636e;
  --text-muted: #868e99;

  --accent: #1f5eff;
  --accent-soft: #eef3ff;

  --brand: #0f766e;
  --brand-soft: rgba(15, 118, 110, 0.08);

  --warn-bg: #fff6e6;
  --warn-border: #f3d19b;
  --warn-text: #8a5a00;

  --info-bg: #eef4ff;
  --info-border: #c3d5ff;
  --info-text: #1c4bc4;

  --ok-bg: #edf8f0;
  --ok-border: #b7e0c3;
  --ok-text: #1f6b39;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(20, 25, 35, 0.04), 0 2px 8px rgba(20, 25, 35, 0.04);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.muted { color: var(--text-muted); }

/* ---------------------------------------------------------------- 顶栏 */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15px; }
.brand-text small { color: var(--text-muted); font-size: 11px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }

.nav-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 13px;
}

.nav-link.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-link.is-disabled { color: #b6bcc5; cursor: not-allowed; }
.nav-link:not(.is-disabled):not(.is-active):hover { background: #f1f3f6; }

.topbar-meta { margin-left: auto; display: flex; gap: 6px; }

.chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: #fbfcfd;
}

/* ---------------------------------------------------------------- 布局 */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.page-head h1 { margin: 0; font-size: 22px; letter-spacing: -0.2px; }
.page-sub { margin: 4px 0 0; color: var(--text-sub); font-size: 13px; }

.breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 6px; }

/* ------------------------------------------------------------ 统计卡 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow);
}

.stat-card-warn { border-color: var(--warn-border); background: var(--warn-bg); }
.stat-label { font-size: 12px; color: var(--text-sub); }
.stat-value { font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stat-card-warn .stat-value { color: var(--warn-text); }

/* -------------------------------------------------------------- 卡片 */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.card-title {
  margin: 0;
  padding: 14px 18px;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.card-title-note { font-size: 13px; font-weight: 400; color: var(--text-sub); }
.card-planned { background: #fbfcfd; }
.card-planned .card-title { color: var(--text-sub); }

/* -------------------------------------------------------------- 表格 */
.table { width: 100%; border-collapse: collapse; }

.table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  background: #fafbfc;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f0f2f5;
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }
.table-compact td, .table-compact th { padding: 8px 14px; }

.row-link { cursor: pointer; }
.row-link:hover { background: #f8fafd; }

.col-code { width: 90px; }
.col-money { text-align: right; width: 170px; }
.col-tags { width: 200px; }
.col-action { width: 34px; text-align: right; color: var(--text-muted); }

.link-strong { font-weight: 600; }
.link-strong:hover { color: var(--accent); }
.chev { font-size: 18px; color: #c3c9d2; }

.empty { text-align: center; color: var(--text-muted); padding: 32px 0; }
.empty-inline { padding: 16px 18px; color: var(--text-muted); margin: 0; }

/* -------------------------------------------------------------- 标签 */
.tag {
  display: inline-block;
  font-size: 11px;
  line-height: 1.7;
  padding: 0 7px;
  border-radius: 100px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.tag-muted { background: #f2f4f7; color: var(--text-sub); border-color: var(--border); }
.tag-warn { background: var(--warn-bg); color: var(--warn-text); border-color: var(--warn-border); }
.tag-info { background: var(--info-bg); color: var(--info-text); border-color: var(--info-border); }
.tag-ok { background: var(--ok-bg); color: var(--ok-text); border-color: var(--ok-border); }
.tag-danger { background: #fdf1f1; color: #9b2626; border-color: #f0b9b9; }

.col-tags .tag { margin: 2px 4px 2px 0; }

/* --------------------------------------------------------- 员工身份 */
.identity { display: flex; align-items: center; gap: 14px; }

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 650;
  flex-shrink: 0;
}

.code-inline { font-size: 12px; color: var(--text-muted); font-weight: 400; margin-left: 8px; }

/* ------------------------------------------------------------ 提示条 */
.notices { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
}

/* ------------------------------------------------------- 详情字段表 */
.detail-grid {
  margin: 0;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px 28px;
}

.detail-item { min-width: 0; }

.detail-item dt {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.detail-item dd { margin: 0; font-size: 15px; font-weight: 500; }

.dd-note {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-sub);
  margin-top: 3px;
}

/* -------------------------------------------------------- 技能区块 */
.skill-group { border-bottom: 1px solid var(--border); }
.skill-group:last-of-type { border-bottom: none; }

.skill-group-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: 0.3px;
  padding: 10px 18px 4px;
  background: #fbfcfd;
}

.col-skills { width: 80px; }
.col-skill-level { width: 130px; }
.col-skill-bar { width: 120px; }
.col-note { max-width: 320px; }

/* 档位条：用 6 档离散刻度表达，而不是伪装成连续能力百分比 */
.skill-bar {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #eceff3;
  overflow: hidden;
}

.skill-bar > span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}

.detail-item-wide { grid-column: 1 / -1; }

/* -------------------------------------------------------------- 其它 */
.hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 10px 2px 0;
  line-height: 1.7;
}

.planned-list { margin: 0; padding: 14px 18px 16px 34px; color: var(--text-sub); font-size: 13px; }
.planned-list li { margin-bottom: 4px; }

.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* 出勤台账显示切换：桌面默认显示表格、隐藏卡片（必须写在 media query 之前，
   否则后面的规则会覆盖媒体查询内的同名规则 —— CSS 同权重后者胜） */
.att-desk { display: block; }
.att-mobile { display: none; }

@media (max-width: 820px) {
  .topbar-inner { flex-wrap: wrap; gap: 12px; padding: 10px 16px; }
  .topbar-meta { gap: 4px; }
  /* 时区徽章在窄屏非关键，隐藏以杜绝顶栏横向溢出 */
  .chip-tz { display: none; }
  /* §14：导航单行横向滚动，中文绝不竖排换行 */
  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .nav-link { flex: 0 0 auto; }
  .col-tags { display: none; }

  /* §12/§13：桌面表格在移动端隐藏，改显示员工卡片 */
  .att-desk { display: none; }
  .att-mobile { display: block; }

  /* §22：窄屏杜绝横向溢出 —— 标题与操作按钮纵向堆叠 */
  .page-head {
    flex-direction: column;
    align-items: stretch; /* stretch 而非 flex-start：长文本按容器宽度换行，不横向溢出 */
    gap: 10px;
  }
  .page { padding: 20px 16px 40px; }
}


/* ==========================================================================
   Closure 3 —— 月度考核
   ========================================================================== */

/* --------------------------------------------------------- 期间切换与操作条 */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.period-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

.period-tab {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  color: var(--text-sub);
}

.period-tab:hover { border-color: var(--border-strong); color: var(--text); }
.period-tab.is-active {
  background: var(--accent-soft);
  border-color: #c9d8ff;
  color: var(--accent);
  font-weight: 600;
}

/* -------------------------------------------------------------------- 表单 */
.field { display: flex; flex-direction: column; gap: 4px; }
.field-label { font-size: 12px; color: var(--text-sub); }

.input, .select, .textarea {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 94, 255, 0.12);
}

.textarea { resize: vertical; min-height: 58px; font-size: 13px; line-height: 1.5; }

.input-score {
  width: 88px;
  text-align: right;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 600;
}

.input:disabled, .textarea:disabled, .input-score:disabled {
  background: #f6f7f9;
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover { border-color: #b9c0c9; background: #fbfcfd; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: #1a51e0; border-color: #1a51e0; }

.btn-danger { color: #a32222; border-color: #e6bcbc; }
.btn-danger:hover { background: #fdf3f3; border-color: #d99b9b; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------ 提示与结果条 */
.alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
  border: 1px solid transparent;
}

.alert-ok { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ok-text); }
.alert-err { background: #fdf1f1; border-color: #efc9c9; color: #9b2626; }

/* -------------------------------------------------------------- 评分录入表 */
.review-table td { vertical-align: top; }

.dim-name { font-weight: 600; }
.dim-code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--text-muted);
}
.dim-guidance {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 4px;
  max-width: 340px;
  line-height: 1.5;
}

.col-dim { width: 300px; }
.col-weight { width: 84px; text-align: right; }
.col-raw { width: 110px; }
.col-na { width: 74px; text-align: center; }
.col-contrib { width: 90px; text-align: right; }
.col-evidence { min-width: 200px; }

.weight-cell { font-variant-numeric: tabular-nums; }
.weight-na { color: var(--text-muted); text-decoration: line-through; }

.na-reason-input { margin-top: 6px; }

/* ------------------------------------------------------------ 总分与等级盘 */
.scoreboard {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
}

.score-main {
  padding: 20px 22px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.score-main-label { font-size: 12px; color: var(--text-sub); }

.score-main-value {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}

.score-main-value.is-pending { color: var(--text-muted); font-size: 30px; }

.score-main-sub { font-size: 12px; color: var(--text-sub); }

.score-meta {
  padding: 20px 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px 22px;
}

.meta-item { min-width: 0; }
.meta-item dt { font-size: 12px; color: var(--text-sub); margin-bottom: 2px; }
.meta-item dd { margin: 0; font-size: 15px; font-weight: 600; }

.grade-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 700;
  border: 1px solid transparent;
}

.grade-S { background: #eaf6ee; color: #14612f; border-color: #a9dcbc; }
.grade-A { background: #eef4ff; color: #1c4bc4; border-color: #c3d5ff; }
.grade-B { background: #f1f5fb; color: #33506f; border-color: #c9d6e6; }
.grade-C { background: #fff8e8; color: #7d5a12; border-color: #f0dcae; }
.grade-D { background: #fdf1e8; color: #8a4a15; border-color: #eecfae; }
.grade-E { background: #fdf1f1; color: #9b2626; border-color: #efc9c9; }
.grade-none { background: #f2f4f7; color: var(--text-muted); border-color: var(--border); font-size: 15px; }

.grade-badge small { font-size: 12px; font-weight: 500; opacity: 0.85; }

/* ----------------------------------------------------------------- 分档表 */
.band-table td, .band-table th { font-size: 13px; }
.band-table .band-current { background: var(--accent-soft); font-weight: 600; }

.band-range {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------- 进度提示 */
.progress-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--text-sub);
}

.pending-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  font-size: 12px;
}

/* ------------------------------------------------------------ 名单统计卡 */
.mini-dist { display: flex; gap: 10px; flex-wrap: wrap; }

.mini-dist span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-sub);
}

.mini-dist b { font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }

.score-cell { font-variant-numeric: tabular-nums; font-weight: 600; }

@media (max-width: 980px) {
  .scoreboard { grid-template-columns: 1fr; }
  .score-main { border-right: none; border-bottom: 1px solid var(--border); }
  .col-dim { width: auto; }
  .col-guidance { display: none; }
}

/* ==========================================================================
   Closure 4 —— 分析 / 目标 / 跟进 / 事件 / 成长时间线
   ========================================================================== */

:root {
  --err-bg: #fdeeee;
  --err-border: #f0bcbc;
  --err-text: #9b2226;
}

.tag-err { background: var(--err-bg); color: var(--err-text); border-color: var(--err-border); }

/* ---- 评审模式徽标（§4）---- */
.mode-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  white-space: nowrap;
}

.mode-DEMO { background: #f2f4f7; color: var(--text-sub); border-color: var(--border); }
.mode-SHADOW { background: var(--info-bg); color: var(--info-text); border-color: var(--info-border); }
.mode-OFFICIAL { background: var(--ok-bg); color: var(--ok-text); border-color: var(--ok-border); }

/* ---- N/A 关闭提示 ---- */
.na-locked {
  display: inline-block;
  font-size: 11px;
  color: var(--text-muted);
  padding: 2px 6px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: help;
}

/* ---- 分析结论 ---- */
.analysis-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 22px 6px;
}

.tone-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
}

.tone-POSITIVE { background: var(--ok-bg); color: var(--ok-text); border-color: var(--ok-border); }
.tone-NEUTRAL { background: var(--info-bg); color: var(--info-text); border-color: var(--info-border); }
.tone-ATTENTION { background: var(--warn-bg); color: var(--warn-text); border-color: var(--warn-border); }

.analysis-comment {
  margin: 0 22px 14px;
  padding: 12px 14px;
  background: #fafbfc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  line-height: 1.7;
}

.finding-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 22px 20px;
}

.finding-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--surface);
}

.finding-group-wide { grid-column: 1 / -1; }

.finding-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.finding-title-ok { color: var(--ok-text); }
.finding-title-warn { color: var(--warn-text); }
.finding-title-alert { color: var(--err-text); }
.finding-title-muted { color: var(--text-sub); }

.finding {
  padding: 8px 0;
  border-top: 1px dashed var(--border);
}

.finding:first-of-type { border-top: none; padding-top: 0; }
.finding-attention { background: #fffafa; border-radius: var(--radius-sm); padding: 8px 10px; }

.finding-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.finding-dim { font-size: 12px; font-weight: 600; color: var(--text-sub); }
.finding-statement { margin: 0 0 4px; line-height: 1.65; }
.finding-action { margin: 0 0 4px; font-size: 13px; color: var(--info-text); }
.finding-evidence {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.focus-list { margin: 0; padding-left: 20px; }
.focus-list li { margin-bottom: 6px; line-height: 1.6; }
.focus-statement { display: block; }

/* ---- 目标 ---- */
.subsection-title {
  margin: 4px 22px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}

.goal-list { padding: 0 22px 8px; display: grid; gap: 12px; }

.goal-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--warn-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: #fffdf8;
}

.goal-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.goal-text { margin: 0 0 4px; font-weight: 600; }
.goal-action { margin: 0 0 4px; font-size: 13px; color: var(--text-sub); }

.field-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.field-row .field-label { min-width: 84px; margin: 0; font-size: 12px; color: var(--text-sub); }
.field-row .input { flex: 1; }

.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-sub);
}

/* ---- 跟进 ---- */
.follow-up-forms { padding: 0 22px 20px; display: grid; gap: 12px; }

.follow-up-form {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: #fafbfc;
}

.follow-up-form-head {
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border);
}

.event-form {
  margin: 0 22px 20px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fafbfc;
}

.event-form .subsection-title { margin: 0 0 10px; border: none; padding: 0; }

/* ---- 成长时间线 ---- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 4px 22px 20px;
}

.timeline-item {
  position: relative;
  padding: 0 0 16px 22px;
  border-left: 2px solid var(--border);
}

.timeline-item:last-child { border-left-color: transparent; padding-bottom: 4px; }

.timeline-marker {
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-strong);
}

.timeline-positive .timeline-marker { border-color: var(--ok-border); background: var(--ok-bg); }
.timeline-attention .timeline-marker { border-color: var(--err-border); background: var(--err-bg); }
.timeline-neutral .timeline-marker { border-color: var(--info-border); background: var(--info-bg); }

.timeline-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.timeline-date { font-size: 12px; color: var(--text-muted); }
.timeline-title { font-weight: 600; }
.timeline-detail { font-size: 13px; color: var(--text-sub); line-height: 1.6; }
.timeline-link { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--accent); }

.trend-UP { color: var(--ok-text); font-weight: 600; }
.trend-DOWN { color: var(--err-text); font-weight: 600; }
.trend-FLAT { color: var(--text-sub); }

@media (max-width: 980px) {
  .finding-groups { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; align-items: stretch; gap: 4px; }
}

/* ---------------------------------------------------------------------------
   Closure 5 —— 工资
   --------------------------------------------------------------------------- */

.input-money {
  max-width: 110px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.btn-small {
  padding: 4px 10px;
  font-size: 12px;
}

.manual-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.manual-form .input {
  max-width: 150px;
}

.col-money.is-deduction {
  color: var(--err-text);
}

.row-total td {
  border-top: 2px solid var(--border-strong);
  background: #fafbfc;
}

.dd-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.dd-value {
  display: block;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tone-notice {
  background: #fff7e6;
  color: #8a5a00;
  border: 1px solid #ffe0a3;
}

.tone-positive {
  background: #eaf7ee;
  color: #17663a;
  border: 1px solid #bfe6cd;
}

.tone-neutral {
  background: #f2f4f7;
  color: #475467;
  border: 1px solid #e0e4ea;
}

/* ============================================================ Closure 6 · Employee 360 */
.tab-bar { display:flex; gap:0; border-bottom:1px solid var(--border); background:#f8fafc; padding:0 14px; flex-wrap:wrap; }
.tab-link { padding:11px 16px; color:var(--text-sub); text-decoration:none; font-size:13px; border-bottom:2px solid transparent; }
.tab-link:hover { color:var(--text); }
.tab-link.is-active { color:var(--text); font-weight:600; border-bottom-color:#3a6df0; background:#fff; }
.detail-grid-3 { grid-template-columns:repeat(3, minmax(0, 1fr)); }
.card-inner { background:#fafbfd; padding:12px 18px; margin-bottom:12px; }
.card-inner h3 { margin:0 0 8px; font-size:13px; }

/* Mini SVG chart */
.mini-chart { background:#fff; border:1px solid var(--border); border-radius:6px; padding:6px 8px; }
.mini-svg { display:block; width:100%; height:auto; max-width:560px; }
.mini-svg .svg-label { font:11px/1.4 ui-sans-serif, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif; fill:#94a3b8; }
.mini-svg .svg-value { font:600 12px/1.4 ui-sans-serif, system-ui, sans-serif; fill:#1f2937; }
.mini-svg .svg-tick { font:10px/1.4 ui-sans-serif, system-ui, sans-serif; fill:#94a3b8; }
.mini-svg .svg-empty { font:12px/1.4 ui-sans-serif, system-ui, sans-serif; fill:#cbd5e1; }

/* Timeline */
.timeline { list-style:none; padding:0; margin:0; position:relative; }
.timeline::before { content:""; position:absolute; left:11px; top:6px; bottom:6px; width:1px; background:#e2e8f0; }
.timeline-item { position:relative; padding:10px 0 10px 36px; }
.timeline-dot { position:absolute; left:7px; top:14px; width:9px; height:9px; border-radius:50%; background:#3a6df0; box-shadow:0 0 0 3px #fff; }
.timeline-problem .timeline-dot { background:#f59e0b; }
.timeline-critical .timeline-dot { background:#dc2626; }
.timeline-neutral .timeline-dot { background:#94a3b8; }
.timeline-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:13px; }
.timeline-text { font-size:13px; color:var(--text-sub); margin-top:6px; }
.inline-list { list-style:none; padding:0; margin:0; }
.inline-list li { padding:6px 0; border-bottom:1px dashed #f0f2f5; }
.inline-list li:last-child { border-bottom:none; }

/* Skill timeline */
.skill-timeline-row { display:grid; grid-template-columns:minmax(140px,1fr) minmax(220px,2fr) minmax(140px,1fr); gap:18px; align-items:center; padding:14px 0; border-bottom:1px solid #f0f2f5; }
.skill-timeline-row:last-child { border-bottom:none; }
.skill-timeline-stops { display:flex; gap:8px; }
.skill-stop { flex:1; border:1px solid var(--border); border-radius:6px; padding:6px 0; font-size:11px; color:#cbd5e1; text-align:center; background:#fafbfd; }
.skill-stop.is-reached { color:#1f2937; border-color:#c7d2fe; background:#eef2ff; }
.skill-stop.is-current { background:#3a6df0; border-color:#3a6df0; color:#fff; font-weight:600; }
.skill-stop-label { display:block; }
.notice-info { background:#eef6ff; border-color:#bfdbfe; color:#1d4ed8; padding:10px 14px; }
.notice-warn { background:#fef3c7; border-color:#fcd34d; color:#92400e; padding:10px 14px; }

/* ============================================================ Closure 7 · Dashboard */
.kpi-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:14px; margin-bottom:18px; }
.kpi-card { display:block; padding:14px 18px; background:#fff; border:1px solid var(--border); border-radius:8px; text-decoration:none; color:inherit; transition:box-shadow .15s, border-color .15s; }
.kpi-card:hover { box-shadow:0 1px 8px rgba(60,90,140,0.08); border-color:#c7d2fe; }
.kpi-label { font-size:12px; color:var(--text-sub); margin-bottom:8px; }
.kpi-value { font-size:24px; font-weight:700; color:var(--text); line-height:1; }
.kpi-value.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.kpi-foot { font-size:11px; color:var(--text-sub); margin-top:8px; }
.kpi-card-tone-ok { background:#f0fdf4; border-color:#bbf7d0; }
.kpi-card-tone-warn { background:#fffbeb; border-color:#fde68a; }
.kpi-card-tone-danger { background:#fef2f2; border-color:#fecaca; }
.kpi-card-tone-info { background:#eff6ff; border-color:#bfdbfe; }
.kpi-card-tone-money { background:#faf5ff; border-color:#e9d5ff; }

/* ==== Trial UX (CTO 2026-09-12 §11–§16) ====================== */

.cta-trial {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #1c4bc4 0%, #1e40af 100%);
  color: #ffffff;
  border-radius: 10px;
  margin-bottom: 18px;
  text-decoration: none;
  border: 1px solid #1c4bc4;
  transition: box-shadow .15s, transform .05s;
}
.cta-trial:hover { box-shadow: 0 6px 18px rgba(28,75,196,0.18); transform: translateY(-1px); color:#fff; }
.cta-trial-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,255,255,0.18); display:flex; align-items:center; justify-content:center;
  font-size: 22px; font-weight: 700; flex-shrink: 0;
}
.cta-trial-body { flex: 1; }
.cta-trial-body strong { font-size: 18px; }
.cta-trial-body small { display: block; opacity: .85; font-size: 12px; margin-top: 2px; }
.cta-trial-arrow { font-size: 22px; opacity: .85; }

.trial-score-input {
  width: 92px; padding: 7px 10px; font-size: 16px; font-weight: 600;
  border: 1px solid var(--border); border-radius: 6px; text-align: center;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}
.trial-score-input:focus { outline: 2px solid #93c5fd; outline-offset: 0; }
.trial-evidence-input {
  width: 100%; padding: 6px 10px;
  border: 1px solid var(--border); border-radius: 6px; font-size: 13px;
}
.trial-facts { display: grid; gap: 14px; padding: 14px 18px 22px; }
.trial-fact label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--text); }
.trial-fact textarea {
  width: 100%; min-height: 64px; resize: vertical;
  border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px;
  font: inherit;
}
.trial-fact textarea:focus { outline: 2px solid #93c5fd; outline-offset: 0; }

.form-actions {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; margin-bottom: 16px; background:#fff;
  border: 1px solid var(--border); border-radius: 8px;
}
.btn-large { padding: 10px 18px; font-size: 15px; font-weight: 600; }

.trial-projection-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  padding: 14px 18px;
}
@media (max-width: 880px) { .trial-projection-grid { grid-template-columns: 1fr; } }

.trial-proj-section {
  border: 1px solid var(--border); border-radius: 8px;
  background: #fbfcfd; overflow: hidden;
}
.trial-proj-section-title {
  padding: 10px 14px; font-weight: 600; border-bottom: 1px solid var(--border);
  background: #f4f7fb;
}
.trial-proj-section-title small {
  display: block; font-weight: 400; color: var(--text-sub); margin-top: 2px;
}
.trial-proj-section table { background: transparent; }
.trial-proj-section td { vertical-align: top; }
.col-money { text-align: right; min-width: 100px; }
.col-action { text-align: right; min-width: 120px; }
.col-dim { min-width: 200px; }
.col-weight { width: 80px; text-align: center; }
.col-score { width: 130px; }
.col-evidence { }

.trial-proj-totals {
  display: flex; flex-wrap: wrap; gap: 22px; padding: 14px 18px;
  border-top: 1px dashed var(--border); background: #fbfcfd;
}
.trial-proj-totals div { display: flex; flex-direction: column; gap: 4px; }
.trial-proj-totals .mono { font-size: 16px; }

.trial-proj-notes {
  list-style: none; margin: 0; padding: 10px 18px 18px;
  font-size: 12px; color: var(--text-sub);
}
.trial-proj-notes li::before { content: '\2022 '; margin-right: 6px; color: #9bb6da; }

.btn-row .btn { padding: 7px 13px; }
.btn-ghost { background: #fff; color: var(--text); }

.mode-badge { display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; border: 1px solid var(--border); }


/* ==========================================================================
   工资条 / Payslip（屏幕与打印）
   --------------------------------------------------------------------------
   设计取舍：
     * 屏幕预览要清晰 → 800px 居中、保留盒子阴影、隐藏按钮可见；
     * 打印要纯净 → @media print 隐藏所有 .no-print，让顶栏/导航消失，
       仅留一张 A4 的清晰工资单。
   ========================================================================== */

.payslip-body {
  background: #eef0f3;
  margin: 0;
  padding: 24px 12px;
}

.payslip {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 14px rgba(20, 25, 35, 0.06);
  padding: 36px 44px 28px;
  position: relative;
  overflow: hidden;
}

/* 操作栏（屏幕上看得到，打印被隐藏） */
.payslip-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 0 18px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.payslip-actions .btn .zh { font-weight: 700; }
.payslip-actions .btn .en { font-weight: 500; margin-left: 6px; }
.payslip-actions .payslip-hint { font-size: 12px; margin-left: auto; }
.payslip-actions .payslip-hint .zh { margin-right: 6px; }

/* SHADOW 印章 —— 旋转 + 半透明，仅在「试运行」记录上显示 */
.payslip-stamp-stamp {
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  border: 6px double #d8233a;
  color: #d8233a;
  padding: 18px 26px;
  text-align: center;
  opacity: 0.78;
  pointer-events: none;
  border-radius: 12px;
  background: rgba(255, 245, 245, 0.6);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.payslip-stamp-stamp .stamp-zh { font-size: 22px; }
.payslip-stamp-stamp .stamp-en { font-size: 13px; font-weight: 600; margin-top: 4px; }

/* 文档头：左公司 / 中标题 / 右期间 */
.payslip-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--text);
}
.payslip-co .payslip-co-zh { font-size: 18px; font-weight: 700; color: var(--text); }
.payslip-co .payslip-co-en { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.payslip-title { text-align: center; }
.payslip-title .payslip-title-zh { font-size: 26px; font-weight: 800; letter-spacing: 0.05em; }
.payslip-title .payslip-title-en { font-size: 12px; color: var(--text-muted); margin-top: 4px; letter-spacing: 0.03em; }
.payslip-period { text-align: right; }
.payslip-period .label-zh,
.payslip-period .label-en { font-size: 11px; color: var(--text-muted); }
.payslip-period .value { font-size: 22px; font-weight: 700; margin: 2px 0 4px; }
.payslip-period .status { font-size: 12px; }

/* 元信息行：4 列均分 */
.payslip-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.payslip-meta .meta-cell .label-zh { font-size: 11px; color: var(--text-muted); }
.payslip-meta .meta-cell .label-en { font-size: 10px; color: var(--text-muted); margin-bottom: 4px; }
.payslip-meta .meta-cell .value { font-size: 14px; font-weight: 600; }

/* 章节 */
.payslip-section { padding: 18px 0; border-bottom: 1px solid var(--border); }
.payslip-section:last-of-type { border-bottom: none; }
.payslip-h2 {
  display: flex;
  flex-direction: column;
  margin: 0 0 12px;
}
.payslip-h2 .zh { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; }
.payslip-h2 .en { font-size: 11px; font-weight: 500; }

/* 员工信息表（2x4） */
.payslip-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.payslip-info-table th,
.payslip-info-table td {
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.payslip-info-table th {
  background: #f7f8fa;
  width: 18%;
  font-weight: 600;
}
.payslip-info-table th .zh { display: block; font-weight: 700; }
.payslip-info-table th .en { display: block; font-size: 10px; color: var(--text-muted); }

/* 主要工资条目表 */
.payslip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
.payslip-table thead th {
  background: #f1f3f6;
  text-align: left;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 12px;
  border-bottom: 2px solid var(--text);
  border-top: 1px solid var(--border);
}
.payslip-table thead th .zh { display: block; }
.payslip-table thead th .en { display: block; font-size: 10px; color: var(--text-muted); font-weight: 500; }
.payslip-table thead th.col-money { text-align: right; }
.payslip-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.payslip-table .col-item { width: 70%; }
.payslip-table .col-money { text-align: right; width: 30%; white-space: nowrap; }
.payslip-table .item-zh { font-weight: 600; font-size: 13px; }
.payslip-table .item-en { font-size: 11px; }
.payslip-table .item-note { font-size: 11px; margin-top: 2px; font-style: italic; }
.payslip-table .is-deduction { color: #a32222; }
.payslip-table .row-subtotal td {
  background: #fbfcfd;
  font-weight: 700;
  border-top: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
}

/* 应发合计行（突出） */
.payslip-summary {
  background: #f6f8fb;
  margin: 0 -44px;
  padding: 18px 44px;
  border-top: 1px solid var(--border);
}
.payslip-summary-table {
  width: 100%;
  border-collapse: collapse;
}
.payslip-summary-table td {
  padding: 6px 0;
  vertical-align: middle;
}
.payslip-summary-table .item-zh { font-size: 14px; font-weight: 700; }
.payslip-summary-table .item-en { font-size: 11px; }
.payslip-summary-table .col-money { text-align: right; font-size: 18px; }
.payslip-summary-table .big-total {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.payslip-summary-table .row-withheld td {
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
}

/* 签字栏 */
.payslip-signatures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 26px 0 18px;
}
.payslip-signatures .sig-block { display: flex; flex-direction: column; }
.payslip-signatures .sig-line {
  height: 28px;
  border-bottom: 1px solid var(--text);
  margin-bottom: 6px;
}
.payslip-signatures .sig-label .zh { font-size: 12px; font-weight: 700; }
.payslip-signatures .sig-label .en { font-size: 10px; color: var(--text-muted); margin-left: 6px; }
.payslip-signatures .sig-date { font-size: 11px; margin-top: 4px; }

/* 页脚 */
.payslip-footer {
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}
.payslip-footer .gen-row { margin-bottom: 4px; }
.payslip-footer .gen-row .zh { font-weight: 600; color: var(--text-sub); margin-right: 8px; }

/* 内联中英标签 —— 「中文 / English」并排 */
.zh { display: inline; }
.en { display: inline; }

/* ---------- 打印样式 ---------- */
@media print {
  body.payslip-body { background: #fff; padding: 0; }
  .payslip {
    max-width: none;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
  .no-print { display: none !important; }
  .payslip-actions { border-bottom: none; margin-bottom: 8px; }
  .payslip-stamp-stamp {
    /* 打印时也保留印章 */
    opacity: 0.85;
    border-width: 4px;
  }
  .payslip-section,
  .payslip-meta,
  .payslip-header,
  .payslip-footer,
  .payslip-summary { page-break-inside: avoid; break-inside: avoid; }
  /* 减少强制分页 */
  .payslip-table tr { page-break-inside: avoid; break-inside: avoid; }
}

/* ==========================================================================
   员工端 /m/* （M 系列）
   手机优先 + 中/缅/英三语并排。
   缅文行高必须 >= 1.9 —— 叠字符会被裁掉，这是硬要求不是审美。
   ========================================================================== */

/* ==========================================================================
   828 People OS —— 员工端（M 系列）样式
   设计目标：手机优先 · 三语（缅文为主）· 大点击区 · 零打字友好
   品牌色 teal（与 <meta theme-color> 一致）
   ========================================================================== */

.m-body {
  background: linear-gradient(180deg, #e8f4f0 0%, #f4f6f8 240px);
  margin: 0;
  font-family: var(--font, system-ui), "Noto Sans Myanmar", "Padauk", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* C2 PILOT UX-03：快速跳转锚点平滑滚动 */
html { scroll-behavior: smooth; }

.m-shell {
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 14px 56px;
}

/* ---- 卡片 ---- */
.m-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
  box-shadow: 0 1px 2px rgba(18, 28, 40, 0.04), 0 6px 20px rgba(18, 28, 40, 0.05);
}

/* ---- C2 PILOT UX-03.1：WORK 区序号胶囊 + 轻量工作态（纯展示元数据） ---- */
.m-sec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.m-sec-no {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  background: rgba(15, 118, 110, 0.10);
  border-radius: 999px;
  padding: 1px 8px;
  letter-spacing: 0.3px;
  line-height: 1.6;
}
/* WORK 区卡片标题在 head 内取消自身下边距，由 head 统一控制 */
.m-sec-head .m-h2 { margin: 0; }
/* 轻量工作态小圆点：取既有 canonical 字段，仅展示，绝不影响任何业务 */
.m-sec-status {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-left: auto;
}
.m-status-DONE { background: #16a34a; }
.m-status-PENDING { background: #cbd5e1; }
.m-status-NEEDS_ATTENTION { background: #ef4444; }

/* ---- C2 PILOT UX-03.1：回到顶部（定位于底部导航之上，不遮挡） ---- */
.m-to-top {
  position: fixed;
  right: 14px;
  bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--brand);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(18, 28, 40, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.m-to-top[hidden] { display: none; }
.m-to-top:active { background: var(--brand); color: #fff; }

/* 顶部区段导航条：粘性、仅展示当前区段 + 快速跳转，不回传任何数据 */
.m-home-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(18, 28, 40, 0.04);
  transition: opacity 160ms ease;
}

/* UX-03.1 热修：WORK 区之外（INFORMATION / GROWTH）隐藏粘性工作导航条。
   刻意用 visibility + opacity 隐藏而**不用 display:none**：元素保留原有占位，
   因此导航条出现/消失时绝不会把下方内容顶上顶下（无布局跳动）。 */
.m-home-nav.is-out {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.m-home-cur {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
}
.m-home-cur-prefix {
  color: var(--text-sub);
  font-weight: 700;
  font-size: 12px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.m-home-cur-sep { color: var(--text-muted); flex: 0 0 auto; margin: 0 3px; }
.m-home-cur-no { color: var(--brand); flex: 0 0 auto; }
.m-home-cur-title {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-home-quick {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex: 0 0 auto;
}
.m-secnub {
  flex: 0 0 auto;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  background: #f1f5f4;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px 7px;
  line-height: 1.4;
}
.m-secnub:active { background: var(--brand); color: #fff; border-color: var(--brand); }

.m-center { margin-top: 24px; text-align: left; }

/* ---- 品牌区（登录页） ---- */
.m-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.m-brand-logo {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff; font-size: 19px; font-weight: 800; letter-spacing: -0.5px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.28);
}
.m-brand-mark { font-size: 22px; font-weight: 800; color: #0f766e; letter-spacing: -0.5px; }
.m-brand-sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

.m-h1 { font-size: 18px; font-weight: 700; margin: 0 0 16px; line-height: 1.6; }
.m-h2 { font-size: 15px; font-weight: 700; margin: 0 0 10px; line-height: 1.6; }
.m-h3 {
  font-size: 12px; font-weight: 700; color: var(--text-sub);
  margin: 16px 0 8px; line-height: 1.7;
  letter-spacing: 0.3px; text-transform: uppercase;
}

/* ---- 今日待办：按岗位分组，可展开/收拢（多面手） ---- */
.m-task-group {
  border: 1px solid var(--border); border-radius: 14px;
  margin-top: 10px; background: #fff; overflow: hidden;
}
.m-task-group[open] { box-shadow: 0 2px 8px rgba(15, 118, 110, 0.06); }
.m-task-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; cursor: pointer; list-style: none;
  background: #f7faf9; user-select: none; -webkit-tap-highlight-color: transparent;
}
.m-task-group-head::-webkit-details-marker { display: none; }
.m-task-group-head::after {
  content: ""; flex: none; width: 8px; height: 8px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg); transition: transform .2s;
}
.m-task-group[open] > .m-task-group-head::after { transform: rotate(-135deg); }
.m-task-group-name { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; min-width: 0; }
.m-task-group-name .m-my { font-size: 15px; font-weight: 700; color: var(--text); display: inline; }
.m-task-group-name .m-zh { font-size: 12.5px; display: inline; }
.m-task-group-name .m-en { font-size: 11px; display: inline; }
.m-task-group-badge {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: #0f766e; color: #fff; font-size: 12px; font-weight: 700;
}
.m-task-group-count {
  flex: none; font-size: 12.5px; font-weight: 700; color: #0f766e;
  padding: 3px 10px; border-radius: 999px; background: #e6f5ef;
}
.m-task-group-body { padding: 0 14px 12px; }
.m-task-group-body .m-h3 { margin-top: 12px; }

/* ---- 员工手册阅读提醒 / 确认 ---- */
.m-handbook-nudge {
  border-left: 4px solid #d97706; background: #fffbeb;
}
.m-nudge-body { margin-bottom: 10px; }
.m-nudge-body .m-my { font-weight: 600; }
.m-nudge-body .m-zh, .m-nudge-body .m-en { color: var(--text-sub); }
.m-handbook-confirm { border-top: 2px solid var(--border-strong); }
.m-handbook-confirm form { margin-top: 12px; }
.m-read-done {
  display: flex; align-items: center; gap: 10px; padding: 6px 0;
  color: var(--ok-text); font-weight: 600;
}
.m-read-done .m-check {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: #16a34a; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}
.m-read-done .m-my { font-size: 14px; color: var(--ok-text); display: inline; }
.m-read-done .m-zh, .m-read-done .m-en { display: block; font-size: 12px; color: var(--text-sub); }

/* ---- 三语并排：缅文为主视觉，中文次之，英文最弱 ---- */
.m-my { display: block; font-size: 14px; line-height: 1.9; color: var(--text); font-weight: 500; }
.m-zh { display: block; font-size: 12.5px; line-height: 1.6; color: var(--text-sub); }
.m-en { display: block; font-size: 11.5px; line-height: 1.6; color: var(--text-muted); }
.m-pending { color: var(--text-muted); font-style: italic; }

/* ---- 顶部 header（沉浸式品牌条） ---- */
.m-top {
  display: flex; align-items: center; justify-content: space-between;
  margin: -4px -2px 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 60%, #115e59 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.3);
}
.m-top-name { font-size: 16px; font-weight: 700; color: #fff; }
.m-top-sub { font-size: 12px; color: rgba(255, 255, 255, 0.82); margin-top: 3px; }
.m-link {
  flex: 0 0 auto; font-size: 12px; color: #fff; text-decoration: none;
  padding: 7px 12px; border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px; background: rgba(255, 255, 255, 0.12);
}
.m-link .m-my, .m-link .m-zh, .m-link .m-en { display: inline; font-size: 12px; color: #fff; }

/* ---- 提示条 ---- */
.m-alert {
  background: #fdecec; border: 1px solid #f5c2c2; color: #8a2c2c;
  border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px;
  line-height: 1.7;
}
.m-alert-ok { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ok-text); }

/* ---- 表单 ---- */
.m-form { display: block; }
.m-label { display: block; margin: 14px 0 6px; font-weight: 600; }
.m-label .m-my { font-size: 13px; }
.m-label .m-zh, .m-label .m-en { font-size: 12px; }

.m-input {
  width: 100%; box-sizing: border-box;
  padding: 13px 14px; font-size: 16px; /* 16px 防止 iOS 聚焦时自动放大 */
  border: 1.5px solid var(--border-strong); border-radius: 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.m-input:focus {
  outline: none; border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}
.m-input-pin { letter-spacing: 10px; text-align: center; font-size: 24px; font-weight: 700; }

/* ---- 按钮 ---- */
.m-btn {
  display: block; width: 100%; box-sizing: border-box;
  padding: 14px 16px; margin-top: 14px;
  border: 1px solid var(--border-strong); border-radius: 12px;
  background: #fff; color: var(--text); font-size: 15px; font-weight: 600;
  cursor: pointer; line-height: 1.6;
  transition: transform .08s, box-shadow .15s, background .15s;
}
.m-btn:active { transform: translateY(1px); }
.m-btn-primary {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  border: none; color: #fff;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.32);
}
.m-btn-primary:active { box-shadow: 0 2px 6px rgba(15, 118, 110, 0.32); }
.m-btn-primary .m-en { color: rgba(255, 255, 255, 0.85); }
.m-btn-big { padding: 18px 16px; font-size: 17px; }
.m-btn-small { width: auto; margin-top: 0; padding: 9px 16px; font-size: 13px; font-weight: 600; }
.m-btn-small.is-undo { background: #f4f5f7; border-color: var(--border); }

/* ---- 打卡 deadline 提示 ---- */
.m-deadline {
  font-size: 13px; color: var(--text-sub); margin-bottom: 4px; line-height: 1.8;
}

/* ---- 打卡完成 hero ---- */
.m-checkin-done { text-align: center; padding: 8px 0 4px; }
.m-checkin-badge {
  width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff; font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(21, 128, 61, 0.3);
}
.m-checkin-badge.is-late { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 6px 16px rgba(217, 119, 6, 0.3); }
.m-checkin-time { font-size: 32px; font-weight: 700; letter-spacing: 1px; color: var(--text); }
.m-checkin-state { font-size: 13px; color: var(--ok-text); margin-top: 6px; font-weight: 600; }
.m-checkin-state.is-late { color: #b45309; }
.m-checkin-state .m-my, .m-checkin-state .m-zh, .m-checkin-state .m-en {
  display: inline; font-size: 13px;
}

/* ---- 祝福标语 ---- */
.m-greeting {
  background: linear-gradient(135deg, #ecfdf5, #d9f5e7);
  border: 1px solid #bfe3d2;
  text-align: center; padding: 18px 16px;
}
.m-greeting .m-my { font-size: 17px; font-weight: 700; color: #14624a; }
.m-greeting .m-zh { font-size: 14px; margin-top: 5px; color: #1f6b39; }
.m-greeting .m-en { font-size: 12px; margin-top: 3px; color: #4d7c67; }

/* ---- 空态 ---- */
.m-empty { font-size: 13px; color: var(--text-muted); line-height: 1.8; margin: 6px 0; }
.m-empty .m-my, .m-empty .m-zh, .m-empty .m-en { display: inline; font-size: 13px; }

/* ---- 任务列表 ---- */
.m-list { list-style: none; padding: 0; margin: 0; }
.m-list-item {
  position: relative;
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px; background: #fff;
  transition: background .15s, border-color .15s;
}
.m-list-item.is-done { background: #f2faf5; border-color: #bfe3d2; }
.m-check {
  position: absolute; top: 12px; right: 12px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: transparent;
  background: #fff;
}
.m-list-item.is-done .m-check {
  background: #16a34a; border-color: #16a34a; color: #fff;
}
.m-item-title { font-weight: 600; padding-right: 30px; }
.m-item-title .m-my { font-size: 14px; }
.m-item-title .m-zh { font-size: 12.5px; }
.m-item-desc { margin-top: 4px; color: var(--text-sub); padding-right: 26px; }
.m-item-desc .m-zh { font-size: 12px; }
.m-item-note {
  margin-top: 6px; font-size: 12px; color: var(--text-sub);
  background: #f7f8fa; border-radius: 8px; padding: 5px 10px;
}
.m-item-state { margin-top: 6px; font-size: 12px; color: var(--warn-text); font-weight: 600; }
.m-item-state .m-zh, .m-item-state .m-en { display: inline; font-size: 12px; }
.m-item-src { margin-top: 5px; font-size: 11px; color: var(--text-muted); }

/* ---- 任务操作行 ---- */
.m-task-form {
  display: flex; gap: 8px; align-items: center; margin-top: 10px;
}
.m-note {
  flex: 1; min-width: 0; box-sizing: border-box; padding: 9px 12px; font-size: 13px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
.m-note:focus { outline: none; border-color: #0f766e; }

/* ---- 页脚 ---- */
.m-foot { font-size: 12px; color: var(--text-muted); margin-top: 18px; line-height: 1.7; }
.m-foot .m-my, .m-foot .m-zh, .m-foot .m-en { display: block; font-size: 12px; }

/* 缅文键盘切到全角数字时输入框不至于错位 */
.m-input-pin::-webkit-input-placeholder { letter-spacing: normal; }

/* ---- 生日 / 节日祝福横幅 ---- */
.m-celebration {
  display: flex; align-items: center; gap: 14px;
  border-radius: 16px; padding: 16px 18px; margin-bottom: 12px;
}
.m-celebration-birthday {
  background: linear-gradient(135deg, #fff3e6, #ffe4d6);
  border: 1px solid #f5c8a8;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.12);
}
.m-celebration-holiday {
  background: linear-gradient(135deg, #e6f7f3, #d3efe8);
  border: 1px solid #a8dcd0;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.12);
}
.m-celebrate-icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.m-celebrate-title { flex: 1; }
.m-celebrate-title .m-my { font-size: 16px; font-weight: 700; color: #7c2d12; }
.m-celebrate-title .m-zh { font-size: 14px; margin-top: 4px; color: #92400e; }
.m-celebrate-title .m-en { font-size: 12px; margin-top: 3px; color: #b45309; }
.m-celebration-holiday .m-celebrate-title .m-my { color: #0f5c53; }
.m-celebration-holiday .m-celebrate-title .m-zh { color: #14624a; }
.m-celebration-holiday .m-celebrate-title .m-en { color: #3d7d6d; }

/* ---- 性别单选组 ---- */
.m-radio-group { display: flex; gap: 8px; }
.m-radio {
  flex: 1; position: relative; display: block;
  border: 1.5px solid var(--border-strong); border-radius: 12px;
  padding: 10px 8px; text-align: center; cursor: pointer;
  background: #fff; transition: border-color .15s, background .15s;
}
.m-radio input { position: absolute; opacity: 0; }
.m-radio:has(input:checked) {
  border-color: #0f766e; background: #ecfdf5;
}
.m-radio .m-my { font-size: 13px; font-weight: 600; }
.m-radio .m-zh { font-size: 12px; }
.m-radio .m-en { font-size: 11px; }

/* 无障碍：减少动效偏好时关闭过渡 */
@media (prefers-reduced-motion: reduce) {
  .m-btn, .m-input { transition: none; }
}

/* ---------------------------------------------------------------------------
 * 匿名意见反馈（M3 提前落地）
 * ------------------------------------------------------------------------- */

/* ---- 员工端 /m/feedback ---- */
.m-feedback-cats { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0 0 14px; }
.m-feedback-cats .m-radio { flex: none; text-align: left; }
.m-feedback-body { width: 100%; min-height: 110px; margin-bottom: 14px; resize: vertical; }
.m-feedback-item { border-bottom: 1px solid var(--border); padding: 12px 0; }
.m-feedback-item:last-child { border-bottom: 0; }
.m-feedback-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 8px; }
.m-feedback-date { font-size: 12px; color: var(--text-muted); }
.m-feedback-text { font-size: 14px; line-height: 1.8; word-break: break-word; white-space: pre-wrap; }
.m-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: #ecfdf5; color: #0f766e; font-size: 12px; font-weight: 600;
}

/* ---- 员工端 /m/report（每日工作汇报，§23/§30/§31/§32） ---- */
.m-card-warn { background: #fff8f1; border: 1px solid #f3d6b5; }
.m-return-reason { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-top: 8px; }
.m-return-reason span.m-zh, .m-return-reason span.m-my { font-size: 12px; color: var(--text-muted); display: block; }
.m-return-reason p { margin: 4px 0 0; font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.m-report-readonly { margin-top: 10px; display: flex; flex-direction: column; gap: 12px; }
.m-report-field span.m-zh, .m-report-field span.m-my { font-size: 12px; color: var(--text-muted); display: block; }
.m-report-field p { margin: 4px 0 0; font-size: 14px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.m-form-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.m-form-actions .m-btn-primary { flex: 1; }

/* ---- 桌面端 /reports（每日工作汇报队列，§20/§21/§22） ---- */
.badge-blue { background: #e7f0ff; color: #1d4ed8; }
.badge-warn { background: #fff3e0; color: #b45309; }
.btn-warn { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; border: 0; }
.btn-warn:hover { filter: brightness(1.05); }
.report-list { display: flex; flex-direction: column; gap: 12px; }
.report-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: #fff; }
.report-card.report-status-returned { border-color: #f3d6b5; background: #fffcf8; }
.report-card.report-status-submitted { border-color: #cfe2ff; }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.report-meta { display: flex; align-items: center; gap: 8px; }
.report-body { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.report-stat { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.report-stat b { font-size: 15px; }
.report-reason { margin-top: 10px; padding: 8px 12px; background: #fff8f1; border: 1px solid #f3d6b5; border-radius: 8px; font-size: 13px; line-height: 1.7; }
.report-actions { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; flex-wrap: wrap; }
.report-return-form { display: flex; gap: 6px; align-items: center; }
.input-sm { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: #fff; min-width: 180px; }

/* ---- 桌面端 /reports/assignment ---- */
.form-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.form-row label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; }

/* ---- Owner 端 /admin/feedback ---- */
.feedback-list { display: flex; flex-direction: column; gap: 14px; }
.feedback-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; background: #fff; }
.feedback-card.is-urgent { border-color: #efc9c9; background: #fffafa; }
.feedback-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; flex-wrap: wrap; }
.feedback-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.feedback-status { display: flex; align-items: center; }
.feedback-author { font-size: 13px; margin-bottom: 12px; }
.feedback-author strong { margin-right: 4px; }
.feedback-body-original { margin-bottom: 12px; }
.feedback-body-translated { background: #f7faf9; border-radius: 8px; padding: 10px 12px; margin-bottom: 4px; }
.feedback-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-muted); margin-bottom: 4px;
}
.feedback-text { font-size: 14px; line-height: 1.7; word-break: break-word; white-space: pre-wrap; }
.feedback-body-translated .feedback-text { margin-bottom: 6px; }
.feedback-body-translated .feedback-text:last-child { margin-bottom: 0; }

.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.6;
}
.badge-teal { background: #ecfdf5; color: #0f766e; }
.badge-danger { background: #fdf1f1; color: #9b2626; }
.badge-muted { background: #f3f4f6; color: #6b7280; }

/* ---- 资料页：生日三段直接输入（替代 iOS date 滚轮） ---- */
.m-birthday-row { display: flex; gap: 8px; align-items: center; }
.m-birthday-seg { width: 76px; text-align: center; font-size: 18px; font-weight: 600; }
.m-birthday-year { width: 100px; }
.m-birthday-sep { font-size: 20px; font-weight: 700; color: var(--text-muted); }
.m-birthday-hint .m-zh, .m-birthday-hint .m-my, .m-birthday-hint .m-en {
  display: block; font-size: 12px; line-height: 1.6; color: var(--text-muted); margin-top: 2px;
}
a.m-btn { display: block; text-align: center; text-decoration: none; }

.inline-form { display: flex; gap: 6px; align-items: center; }
.select-sm { padding: 5px 8px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: #fff; }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 8px; }
.empty-state { padding: 48px 20px; text-align: center; color: var(--text-muted); }

/* ---- 新增员工表单 ---- */
.form-row { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-row .input, .form-row .select { width: 100%; max-width: 420px; }
.form-row .muted { margin-top: 6px; font-size: 12px; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 8px 16px; max-width: 560px; }
.checkbox-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; font-size: 13px; cursor: pointer; transition: border-color .15s, background .15s;
}
.checkbox-item input { accent-color: #0f766e; }

/* ---- 岗位与职责（P1 岗位调整管理）---- */
.pos-card .pos-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 18px; border-top: 1px solid var(--border);
}
.pos-card > .pos-row:first-of-type { border-top: none; }
.pos-badge {
  font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--border); background: #f2f4f7; color: var(--text-sub);
  white-space: nowrap;
}
.pos-badge-primary { background: var(--info-bg); color: var(--info-text); border-color: var(--info-border); }
.pos-badge-secondary { background: #f2f4f7; color: var(--text-sub); }
.pos-name { font-weight: 500; }
.pos-en { color: var(--text-muted); font-weight: 400; font-size: 12px; }
.pos-subhead {
  padding: 12px 18px 0; font-size: 12px; font-weight: 600;
  color: var(--text-sub); letter-spacing: .02em;
}
.pos-list { list-style: none; margin: 0; padding: 0; }
.pos-list .pos-row { justify-content: space-between; }
.pos-actions {
  padding: 14px 18px; display: flex; flex-direction: column; gap: 12px;
  border-top: 1px solid var(--border);
}
.pos-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pos-form .pos-select { max-width: 250px; flex: 1 1 160px; }
.pos-label { font-size: 13px; font-weight: 500; color: var(--text); }
.pos-check { font-size: 12px; color: var(--text-sub); display: inline-flex; align-items: center; gap: 4px; }
.pos-note { padding: 0 18px 16px; margin: 0; font-size: 12px; color: var(--text-muted); }

@media (max-width: 560px) {
  .pos-form { flex-direction: column; align-items: stretch; }
  .pos-form .pos-select { max-width: none; flex: 1 1 auto; }
  .pos-form .btn { width: 100%; }
  .pos-list .pos-row { gap: 6px; }
  .pos-list .pos-row form { width: 100%; }
  .pos-list .pos-row form .btn { width: 100%; }
}
.checkbox-item:has(input:checked) { border-color: #0f766e; background: #ecfdf5; }

/* ---- Owner 桌面端登录页 ---- */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #f4f6f8; margin: 0; }
.login-card { width: 360px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.login-logo { width: 52px; height: 52px; border-radius: 12px; background: #0f766e; color: #fff; font-weight: 700; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.login-title { font-size: 20px; font-weight: 700; }
.login-sub { font-size: 13px; color: var(--text-muted); }
.login-form .form-label { margin-top: 14px; }
.login-form .input { width: 100%; }
.btn-block { width: 100%; margin-top: 18px; }
.login-hint { margin-top: 14px; font-size: 12px; color: var(--text-muted); text-align: center; }

/* ---- 员工状态统一面板 ---- */
.status-feedback-list { list-style: none; margin: 0; padding: 0; }
.status-feedback-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.status-feedback-item:last-child { border-bottom: 0; }
.status-feedback-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.status-feedback-body { font-size: 14px; line-height: 1.7; }
.status-cele-item { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.status-cele-item:last-child { margin-bottom: 0; }

/* ---- 员工手册 / 学习 ---- */
.m-handbook-body { margin-top: 8px; }
.m-handbook-body .m-my { display: block; font-size: 15px; line-height: 1.9; white-space: pre-line; font-weight: 500; }
.m-handbook-body .m-zh, .m-handbook-body .m-en { display: block; font-size: 14px; line-height: 1.9; white-space: pre-line; }
.m-handbook-body .m-en { color: var(--text-muted); font-size: 12.5px; }
/* 手册章节条目 + 纸质手册页码角标 */
.m-hb-item { padding: 14px 0; border-top: 1px dashed var(--border); }
.m-hb-item:first-of-type { border-top: 0; }
.m-hb-title { display: block; margin: 0; line-height: 1.7; }
.m-hb-title .m-my { font-size: 15px; font-weight: 600; }
.m-page {
  display: inline-block; margin-bottom: 4px; padding: 1px 8px;
  border-radius: 999px; background: #ccfbf1; color: #115e59;
  font-size: 11px; font-weight: 700; letter-spacing: 0.4px;
}
.m-learn-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.m-learn-item:last-child { border-bottom: 0; }
.m-learn-zh { font-size: 22px; font-weight: 700; color: #0f766e; }
/* 拼音独立成行 + 标签徽标：员工看得清、知道这行是拼音 */
.m-learn-pinyin-line { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.m-learn-pinyin-tag {
  flex: none; padding: 1px 8px; border-radius: 999px;
  background: #fef3c7; color: #92400e; font-size: 10.5px; font-weight: 700; line-height: 1.8;
}
.m-learn-pinyin { font-size: 17px; font-weight: 600; color: #b45309; letter-spacing: 0.3px; }
.m-learn-my { font-size: 16px; line-height: 1.9; margin-top: 4px; }
.m-learn-pron { font-size: 13.5px; color: var(--text-muted); }
.m-learn-en { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.m-entry-row { display: flex; gap: 10px; margin-top: 4px; }
.m-entry-row a.m-btn { flex: 1; }

/* ---- 技能学习（分岗课程） ---- */
.m-skill-topic { padding: 12px 0; border-top: 1px dashed var(--border); }
.m-skill-topic:first-child { border-top: 0; }
.m-skill-topic-title { display: block; margin: 0 0 6px; line-height: 1.7; }
.m-skill-topic-title .m-my { font-size: 14px; font-weight: 600; color: #0f766e; }
.m-skill-item { border: 1px solid var(--border); border-radius: 10px; margin-top: 8px; background: var(--surface); }
.m-skill-item[open] { border-color: #99f6e4; }
.m-skill-title { display: flex; align-items: flex-start; gap: 8px; padding: 11px 13px; cursor: pointer; line-height: 1.7; }
.m-skill-caret { flex: none; color: #0f766e; transition: transform 0.15s ease; }
.m-skill-item[open] .m-skill-caret { transform: rotate(90deg); }
.m-skill-title .m-my { font-size: 15px; font-weight: 600; }
.m-skill-body { padding: 0 13px 12px 32px; }
.m-skill-body p { margin: 0 0 6px; line-height: 1.9; }
.m-skill-body p:last-child { margin-bottom: 0; }
.m-skill-body .m-my { font-size: 15px; }
.m-skill-body .m-zh { font-size: 14px; color: #333; }
.m-skill-body .m-en { font-size: 12.5px; color: var(--text-muted); }

/* ---- 员工端：记事本（便利贴式） ---- */
.m-card-notes { padding-bottom: 14px; }
.m-sticky-wrap { display: flex; flex-direction: column; gap: 8px; }
.m-sticky {
  background: #fef9c3; border: 1px solid #f5e6a8; border-radius: 3px 12px 3px 12px;
  padding: 8px 11px 8px; box-shadow: 0 1px 2px rgba(120, 90, 0, 0.07);
}
.m-sticky.is-order { background: #fff4e5; border-color: #f7dcae; }
.m-sticky.is-future { background: #f4f8ff; border-color: #d5e2f7; }
.m-sticky-text { font-size: 14.5px; line-height: 1.85; color: var(--text); overflow-wrap: anywhere; }
.m-sticky-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.m-sticky-tag {
  display: inline-block; padding: 0 7px; border-radius: 999px;
  background: #ffe3c2; color: #9a3412; font-size: 10.5px; font-weight: 700; line-height: 1.8;
}
.m-sticky-tag .m-my, .m-sticky-tag .m-zh, .m-sticky-tag .m-en { display: inline; font-size: 10.5px; }
.m-sticky-cust { font-size: 12.5px; font-weight: 600; color: #9a3412; }
.m-sticky-amt { font-size: 12.5px; font-weight: 700; color: #b45309; }
.m-sticky-date {
  margin-left: auto; padding: 0 7px; border-radius: 999px;
  background: rgba(255,255,255,0.75); color: #8a7a3a; font-size: 11px; font-weight: 700; line-height: 1.8;
}
.m-sticky-date.is-overdue { background: #fee2e2; color: #b42318; }
.m-sticky-acts { display: flex; gap: 6px; margin-top: 6px; }
.m-sticky-acts form { margin: 0; }
.m-chip {
  display: inline-flex; align-items: center; gap: 3px; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: 999px; background: #fff;
  padding: 3px 11px; font-size: 12px; font-weight: 600; color: var(--text-sub); line-height: 1.8;
  transition: border-color .15s, background .15s, color .15s;
}
.m-chip .m-my, .m-chip .m-zh { display: inline; font-size: 12px; }
.m-chip.m-chip-ok { border-color: #a7d9bc; background: #f2fbf5; color: #1f6b39; }
.m-chip.m-chip-ghost { border-style: dashed; font-size: 11px; padding: 1px 9px; }
.m-chip.is-pick { position: relative; }
.m-chip.is-pick input { position: absolute; opacity: 0; }
.m-chip.is-pick:has(input:checked) { border-color: #0f766e; background: #ecfdf5; color: #0f766e; }
.m-note-sec {
  display: flex; gap: 6px; align-items: baseline; margin: 12px 0 8px;
  font-size: 12px; font-weight: 700; color: var(--text-sub);
}
.m-note-sec .m-my { font-size: 12px; }
.m-note-sec .m-zh, .m-note-sec .m-en { font-size: 11px; }
.m-note-done { margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 8px; }
.m-note-done-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.m-note-done-text {
  flex: 1; min-width: 0; font-size: 12.5px; color: var(--text-muted);
  text-decoration: line-through; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.m-note-done-row form { margin: 0; }
.m-sticky-form { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 10px; }
.m-sticky-form-row { display: flex; gap: 8px; align-items: center; }
.m-sticky-form-row + .m-sticky-form-row { margin-top: 8px; }
.m-sticky-form-row.is-chips { justify-content: space-between; flex-wrap: wrap; }
.m-sticky-form-row.is-optional .m-note.is-half { flex: 1; min-width: 0; }
/* 记事本输入框：调大、字更清晰，确保能看到自己输入的文字 */
.m-sticky-form .m-note {
  flex: 1; min-width: 0; width: auto; padding: 13px 14px; font-size: 16px; line-height: 1.5;
  color: #111; border: 1.5px solid var(--border-strong); border-radius: 12px;
  background: #fff; caret-color: #0f766e;
}
.m-sticky-form .m-note::placeholder { color: #8a9097; font-weight: 400; }
.m-sticky-form .m-note:focus { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15,118,110,0.12); }
.m-sticky-form-row.is-optional .m-note.is-half { padding: 13px 14px; font-size: 16px; color: #111; }
/* 「记」按钮：覆盖 .m-btn 的 width:100%，缩成内容大小 */
.m-btn-sticky {
  flex: none; width: auto; display: inline-flex; align-items: center; justify-content: center;
  margin-top: 0; padding: 8px 16px; font-size: 14px; line-height: 1.5; border-radius: 10px;
  white-space: nowrap;
}
.m-chip-row { display: flex; gap: 6px; }

/* ---- 员工端：今日自评（M3）—— 题干加黑标粗，与答案明显区分 ---- */
.m-sr-form { margin-top: 12px; }
.m-sr-item {
  border: 1px solid var(--border); border-radius: 14px; padding: 14px 14px 12px;
  margin-bottom: 14px; background: #fafbfc;
}
.m-sr-dim { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.m-sr-no {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: #0f766e; color: #fff; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.m-sr-dim-body .m-my {
  display: inline-block; padding: 1px 10px; border-radius: 999px;
  background: #ccfbf1; color: #115e59; font-size: 13px; font-weight: 700;
  line-height: 1.9;
}
.m-sr-dim-body .m-zh { font-size: 12px; margin-top: 3px; }
.m-sr-dim-body .m-en { font-size: 11px; }
.m-sr-stem {
  margin: 10px 0 12px; padding: 12px 14px;
  background: #fff; border-left: 4px solid #0f766e; border-radius: 8px;
}
.m-sr-stem .m-my { font-size: 17px; font-weight: 700; line-height: 1.9; color: var(--text); }
.m-sr-stem .m-zh { font-size: 15px; font-weight: 600; color: var(--text); }
.m-sr-stem .m-en { font-size: 13px; color: var(--text-sub); }
.m-sr-opt {
  position: relative; display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 8px; cursor: pointer;
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 10px 12px; background: #fff;
  transition: border-color .15s, background .15s;
}
.m-sr-opt input { position: absolute; opacity: 0; }
.m-sr-opt-key {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: #f4f5f7; border: 1.5px solid var(--border-strong); color: var(--text-sub);
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.m-sr-opt:has(input:checked) { border-color: #0f766e; background: #ecfdf5; }
.m-sr-opt:has(input:checked) .m-sr-opt-key {
  background: #0f766e; border-color: #0f766e; color: #fff;
}
.m-sr-opt-body .m-my { font-size: 14px; font-weight: 500; line-height: 1.9; }
.m-sr-opt-body .m-zh { font-size: 12.5px; color: var(--text-sub); }
.m-sr-opt-body .m-en { font-size: 11.5px; color: var(--text-muted); }

/* ---- 员工端：学习中文 —— 缅文拼读 ---- */
.m-learn-sound { font-size: 16px; font-weight: 600; color: #115e59; margin-top: 2px; line-height: 1.9; }
.m-learn-sound-label { font-size: 11px; color: var(--text-muted); margin-right: 6px; font-weight: 400; }
.m-learn-sound-label .m-my, .m-learn-sound-label .m-zh, .m-learn-sound-label .m-en { display: inline; font-size: 11px; }

/* ==========================================================================
   V0.2 UX Quick Win 01 —— 员工移动工作区（底部导航 + Dashboard）
   目标：从一个「很长网页」变成一个「每日工作台」。
   ========================================================================== */

/* ---- 外壳：给底部导航留出空间 + 安全区 ---- */
.m-body { padding-bottom: 0; }
.m-shell { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px) + 12px); }

/* ---- 顶部 header：简化，去掉显眼的退出按钮，只留标题 + 紧凑设置入口 ---- */
.m-top { margin-bottom: 14px; }
.m-top .m-link { font-size: 11px; padding: 6px 10px; }
.m-top .m-link .m-my, .m-top .m-link .m-zh, .m-top .m-link .m-en { margin-right: 4px; }
.m-top .m-link span:last-child { margin-right: 0; }
/* 英文 tertiary：header 副标题默认不展示（DOM 里保留，不删翻译） */
.m-top-sub .m-en { display: none; }

/* ---- 底部导航 ---- */
.m-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  max-width: 520px; margin: 0 auto;
  display: flex; align-items: stretch;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 16px rgba(18, 28, 40, 0.06);
}
.m-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px 7px; text-decoration: none; color: var(--text-muted);
  transition: color .15s;
}
.m-nav-ico { font-size: 20px; line-height: 1.1; }
.m-nav-label { text-align: center; }
.m-nav-label .m-my { display: block; font-size: 11px; line-height: 1.35; color: inherit; font-weight: 600; }
.m-nav-label .m-zh { display: block; font-size: 10px; line-height: 1.3; color: inherit; }
.m-nav-label .m-en { display: none; }
.m-nav-item.is-active { color: #0f766e; }
.m-nav-item.is-active .m-nav-label .m-my { color: #0f766e; }

/* ---- 三语层级强化（Burmese-first）：紧凑卡里中文/英文缩小、弱化 ---- */
.m-compact .m-my { font-size: 15px; font-weight: 600; }
.m-compact .m-zh { font-size: 12px; color: var(--text-muted); }
.m-compact .m-en { font-size: 10.5px; color: var(--text-muted); }

/* ---- Dashboard 布局 ---- */
.m-dash-hello { display: flex; align-items: center; gap: 12px; }
.m-dash-avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #0f766e); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.m-dash-id { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* 打卡卡 */
.m-dash-checkin { display: flex; align-items: center; gap: 14px; }
.m-dash-checkin .m-checkin-badge { margin: 0; }
.m-dash-checkin-cta { flex: 1; }

/* 进度条 */
.m-progress { height: 8px; border-radius: 999px; background: #eef1f4; overflow: hidden; margin: 8px 0 4px; }
.m-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #0d9488, #16a34a); transition: width .2s; }
.m-progress-label { font-size: 12px; color: var(--text-sub); }

/* 今日重点：紧凑行 */
.m-priority-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-top: 1px solid var(--border);
}
.m-priority-row:first-of-type { border-top: 0; }
.m-priority-dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%; background: #e3e6ea;
}
.m-priority-dot.is-done { background: #16a34a; }
.m-priority-body { flex: 1; min-width: 0; }
.m-priority-body .m-my { font-size: 14px; font-weight: 600; display: block; line-height: 1.6; }
.m-priority-body .m-zh { font-size: 11.5px; display: block; color: var(--text-muted); }

/* 需关注：紧凑统计条 */
.m-attn-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); }
.m-attn-row:first-of-type { border-top: 0; }
.m-attn-num {
  flex: none; min-width: 30px; text-align: center;
  font-size: 17px; font-weight: 800; color: #0f766e;
}
.m-attn-num.is-warn { color: #b45309; }
.m-attn-body { flex: 1; min-width: 0; }
.m-attn-body .m-my { font-size: 13.5px; font-weight: 600; display: block; line-height: 1.6; }
.m-attn-body .m-zh { font-size: 11.5px; display: block; color: var(--text-muted); }
.m-attn-arrow { flex: none; color: var(--text-muted); font-size: 16px; }

/* 成长快捷卡：2 列网格 */
.m-grow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-grow-tile {
  display: block; border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 12px; background: #fff; text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.m-grow-tile:active { border-color: #0f766e; box-shadow: 0 2px 8px rgba(15,118,110,.1); }
.m-grow-ico { font-size: 20px; line-height: 1; }
.m-grow-tile .m-my { display: block; font-size: 13.5px; font-weight: 700; margin-top: 6px; line-height: 1.5; }
.m-grow-tile .m-zh { display: block; font-size: 11px; color: var(--text-muted); }
.m-grow-tile .m-en { display: none; }
.m-grow-tile .m-grow-meta { display: block; font-size: 10.5px; color: #0f766e; font-weight: 600; margin-top: 3px; }

/* ---- TASKS 页：分区标题 ---- */
.m-sec-title { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 10px; }
.m-sec-title .m-my { font-size: 14px; font-weight: 700; color: var(--text); }
.m-sec-title .m-zh { font-size: 12px; color: var(--text-muted); }
.m-sec-title .m-count { margin-left: auto; font-size: 12px; font-weight: 700; color: #0f766e; }

/* 任务卡：紧凑、状态点 + 缅主/中次 */
.m-task-card {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 13px;
  border: 1px solid var(--border); border-radius: 12px; background: #fff; margin-bottom: 9px;
}
.m-task-card.is-done { background: #f2faf5; border-color: #bfe3d2; }
.m-task-card-flag { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; color: transparent; margin-top: 1px; }
.m-task-card.is-done .m-task-card-flag { background: #16a34a; border-color: #16a34a; color: #fff; }
.m-task-card-body { flex: 1; min-width: 0; }
.m-task-card-body .m-my { display: block; font-size: 14px; font-weight: 600; line-height: 1.6; }
.m-task-card-body .m-zh { display: block; font-size: 12px; color: var(--text-sub); }
.m-task-card-body .m-en { display: none; }
.m-task-card-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; line-height: 1.6; }
.m-task-card-acts { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* Quick Notes 与任务视觉分离 */
.m-notes-sep { margin: 18px 0 10px; border: 0; border-top: 1px dashed var(--border-strong); }

/* ---- GROWTH 页：卡片入口 ---- */
.m-grow-card {
  display: flex; align-items: center; gap: 14px; padding: 15px 14px;
  border: 1px solid var(--border); border-radius: 14px; background: #fff; margin-bottom: 12px;
  text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.m-grow-card:active { border-color: #0f766e; }
.m-grow-card-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #e6f7f3, #d3efe8); color: #0f766e;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.m-grow-card-body { flex: 1; min-width: 0; }
.m-grow-card-body .m-my { display: block; font-size: 15px; font-weight: 700; line-height: 1.5; }
.m-grow-card-body .m-zh { display: block; font-size: 12px; color: var(--text-sub); }
.m-grow-card-body .m-en { display: none; }
.m-grow-card-meta { font-size: 11.5px; color: #0f766e; font-weight: 600; margin-top: 3px; }
.m-grow-card-meta.is-pending { color: var(--text-muted); }
.m-grow-card-arrow { flex: none; color: var(--text-muted); font-size: 18px; }

/* ---- ME 页：资料列表 ---- */
.m-me-head { display: flex; align-items: center; gap: 14px; padding: 4px 0 6px; }
.m-me-avatar {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #0f766e); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800;
}
.m-me-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--border); }
.m-me-row:first-of-type { border-top: 0; }
.m-me-key .m-my { font-size: 13px; font-weight: 600; color: var(--text-sub); display: block; }
.m-me-key .m-zh { font-size: 11px; color: var(--text-muted); display: block; }
.m-me-key .m-en { display: none; }
.m-me-val { text-align: right; min-width: 0; }
.m-me-val .m-my { font-size: 14px; font-weight: 600; }
.m-me-val .m-zh { font-size: 12px; color: var(--text-sub); }
.m-me-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.m-me-actions a.m-btn { margin-top: 0; }

/* 手册占位压缩 */
.m-hb-placeholder {
  display: block; padding: 10px 12px; margin-top: 6px; border-radius: 10px;
  background: #f7f8fa; color: var(--text-muted); font-size: 12px; line-height: 1.6;
}
.m-hb-placeholder .m-my { font-size: 12.5px; display: inline; }

/* 响应式：窄屏不挤压 */
@media (max-width: 374px) {
  .m-shell { padding-left: 12px; padding-right: 12px; }
  .m-grow-grid { gap: 8px; }
}

/* ---- 学习页：使用说明折叠（缅文摘要 + 展开三语全文） ---- */
.m-learn-help {
  border: 1px solid var(--border); border-radius: 12px;
  background: #fff; margin-bottom: 12px; overflow: hidden;
}
.m-learn-help-head {
  display: block; padding: 12px 14px; cursor: pointer; list-style: none;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.m-learn-help-head::-webkit-details-marker { display: none; }
.m-learn-help-head .m-my { display: block; font-size: 13px; font-weight: 600; line-height: 1.7; }
.m-learn-help-head .m-zh { display: block; font-size: 11px; color: var(--text-muted); }
.m-learn-help-body { padding: 0 14px 12px; border-top: 1px dashed var(--border); padding-top: 10px; }

/* ==========================================================================
   V0.2 UX Quick Win 01 · Final Polish —— 降低 TASKS 默认密度 + 导航打磨
   ========================================================================== */

/* ---- 任务卡：长说明按需展开 ---- */
.m-task-more { margin-top: 4px; }
.m-task-more-head {
  display: inline-flex; align-items: baseline; gap: 5px; cursor: pointer;
  list-style: none; padding: 2px 0; -webkit-tap-highlight-color: transparent;
}
.m-task-more-head::-webkit-details-marker { display: none; }
.m-task-more-head .m-my { font-size: 11.5px; color: #0f766e; font-weight: 600; }
.m-task-more-head .m-zh { font-size: 11px; color: var(--text-muted); }
.m-task-more-head::after {
  content: ""; width: 5px; height: 5px; margin-left: 2px;
  border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg); transition: transform .2s; align-self: center;
}
.m-task-more[open] > .m-task-more-head::after { transform: rotate(-135deg); }
.m-task-more-body { padding: 4px 0 2px; }

/* ---- 已完成：默认收起为一行计数 ---- */
.m-done-group {
  border: 1px solid var(--border); border-radius: 12px;
  background: #fafbfc; overflow: hidden;
}
.m-done-head {
  display: flex; align-items: center; gap: 8px; padding: 11px 13px;
  cursor: pointer; list-style: none; user-select: none;
}
.m-done-head::-webkit-details-marker { display: none; }
.m-done-head .m-my { font-size: 13px; font-weight: 600; }
.m-done-head .m-zh { font-size: 11.5px; color: var(--text-muted); }
.m-done-head .m-count {
  margin-left: auto; font-size: 12px; font-weight: 700; color: #0f766e;
  background: #e6f5ef; border-radius: 999px; padding: 2px 10px;
}
.m-done-head::after {
  content: ""; width: 6px; height: 6px; margin-left: 4px; flex: none;
  border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg); transition: transform .2s;
}
.m-done-group[open] > .m-done-head::after { transform: rotate(-135deg); }
.m-done-body { padding: 2px 13px 12px; }

/* ---- 每日自评：紧凑摘要卡 + 折叠问卷 ---- */
.m-sr-toggle { margin: 0; }
.m-sr-summary {
  display: flex; align-items: center; gap: 11px; cursor: pointer;
  list-style: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.m-sr-summary::-webkit-details-marker { display: none; }
.m-sr-badge {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--border-strong); background: #fff; color: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}
.m-sr-badge.is-done { background: #16a34a; border-color: #16a34a; color: #fff; }
.m-sr-summary-body { flex: 1; min-width: 0; }
.m-sr-summary-body .m-my { display: block; font-size: 14px; font-weight: 600; line-height: 1.5; }
.m-sr-summary-body .m-zh { display: block; font-size: 11.5px; color: var(--text-muted); }
.m-sr-cta {
  flex: none; padding: 5px 12px; border-radius: 999px;
  background: #e6f5ef; color: #0f766e; text-align: center;
}
.m-sr-cta .m-my { display: block; font-size: 12px; font-weight: 700; }
.m-sr-cta .m-zh { display: block; font-size: 10px; color: #0f766e; opacity: .75; }
.m-sr-panel { padding-top: 12px; margin-top: 12px; border-top: 1px dashed var(--border); }

/* ---- ME 页操作按钮：缅主 / 中次 / 英隐藏（仅呈现层，不删翻译） ---- */
.m-me-actions a.m-btn { padding: 12px 14px; }
.m-me-actions a.m-btn .m-my { font-size: 14px; font-weight: 600; }
.m-me-actions a.m-btn .m-zh { font-size: 11px; color: var(--text-muted); }
.m-me-actions a.m-btn .m-en { display: none; }

/* ---- 底部导航打磨：icon + 缅文 + 小中文，节奏与 active 态一致 ---- */
.m-nav {
  padding-top: 2px;
  box-shadow: 0 -2px 12px rgba(18, 28, 40, 0.07);
}
.m-nav-item {
  position: relative; padding: 9px 4px 8px; gap: 3px;
  align-items: center; justify-content: flex-start;
}
.m-nav-ico { font-size: 19px; line-height: 1.15; opacity: .85; }
.m-nav-label { display: flex; flex-direction: column; align-items: center; gap: 0; }
.m-nav-label .m-my { font-size: 11.5px; line-height: 1.3; }
.m-nav-label .m-zh { font-size: 9.5px; line-height: 1.25; opacity: .8; }
.m-nav-item.is-active .m-nav-ico { opacity: 1; }
/* active 态：顶部一道细指示条 + 文字加色，四 Tab 一致 */
.m-nav-item.is-active::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 2.5px; border-radius: 0 0 3px 3px; background: #0f766e;
}
.m-nav-item.is-active .m-nav-label .m-zh { color: #0f766e; opacity: .85; }

/* ---- Slice D：员工工资中心（PAY）与工资单明细 ---- */
.m-pay-hero {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff; border: none;
}
.m-pay-hero-period {
  font-size: 13px; opacity: .92; margin-bottom: 6px;
}
.m-pay-hero-period .m-zh { font-size: 11px; opacity: .8; }
.m-pay-net { margin: 4px 0 10px; }
.m-pay-net-label { font-size: 13px; opacity: .9; }
.m-pay-net-label .m-zh { font-size: 11px; opacity: .75; }
.m-pay-net-amount {
  font-size: 34px; font-weight: 800; line-height: 1.15; letter-spacing: -.5px;
}
.m-pay-ccy { font-size: 14px; font-weight: 600; opacity: .8; }
.m-pay-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-top: 1px solid rgba(255,255,255,.18);
  font-size: 13.5px;
}
.m-pay-meta .m-zh { font-size: 11px; opacity: .78; }
.m-pay-meta-val { font-weight: 700; }
.m-pay-hero .m-btn-primary {
  background: #fff; color: #0f766e; margin-top: 8px; box-shadow: none;
}
.m-pay-hero .m-btn-primary .m-en { color: #0f766e; }

.m-pay-history-head {
  font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text);
}
.m-pay-history-head .m-zh { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.m-pay-history-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 2px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text);
}
.m-pay-history-row:last-child { border-bottom: none; }
.m-pay-history-period { flex: 1; min-width: 0; }
.m-pay-history-period .m-my { font-size: 14px; font-weight: 600; }
.m-pay-history-period .m-zh { font-size: 11px; color: var(--text-muted); }
.m-pay-history-net { font-size: 15px; font-weight: 700; }
.m-pay-history-chev { font-size: 20px; color: var(--text-muted); }

/* 工资单明细 */
.m-ps-head { margin-bottom: 4px; }
.m-ps-period .m-my { font-size: 17px; font-weight: 700; }
.m-ps-period .m-zh { font-size: 12px; color: var(--text-muted); }
.m-ps-section-head {
  font-size: 15px; font-weight: 700; color: var(--text);
  padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--border);
}
.m-ps-section-head .m-zh { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.m-ps-line {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid #f0f2f5;
}
.m-ps-line:last-child { border-bottom: none; }
.m-ps-line-label { min-width: 0; }
.m-ps-line-label .m-my { font-size: 14px; font-weight: 600; }
.m-ps-line-label .m-zh { font-size: 11.5px; color: var(--text-muted); }
.m-ps-reason { margin-top: 3px; color: var(--text-muted); font-size: 11px; }
.m-ps-reason-missing { color: #b7791f; }
.m-ps-line-amount { font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.m-ps-line-amount-neg { color: #b91c1c; }
.m-ps-none { padding: 8px 0; color: var(--text-muted); font-size: 13px; }
.m-ps-subtotal {
  display: flex; align-items: baseline; gap: 8px;
  padding-top: 9px; margin-top: 4px; border-top: 1px solid var(--border);
  font-size: 14px; font-weight: 700;
}
.m-ps-subtotal .m-zh { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.m-ps-subtotal-amt { margin-left: auto; white-space: nowrap; }

.m-ps-summary { display: flex; flex-direction: column; gap: 6px; }
.m-ps-summary-row {
  display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--text-sub);
}
.m-ps-summary-row .m-zh { font-size: 12px; color: var(--text-muted); }
.m-ps-summary-amt { margin-left: auto; font-weight: 700; color: var(--text); white-space: nowrap; }
.m-ps-summary-net {
  padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--border);
  font-size: 16px; color: #0f766e;
}
.m-ps-summary-net .m-ps-summary-amt { color: #0f766e; font-size: 18px; }

.m-ps-why-list { margin: 4px 0 0; padding-left: 18px; }
.m-ps-why-list li { padding: 4px 0; font-size: 13px; }
.m-ps-why-list .m-my { font-size: 13.5px; font-weight: 600; }
.m-ps-why-list .m-zh { font-size: 12px; color: var(--text-muted); }

/* ==========================================================================
   V0.2.1 出勤智能 —— Owner 出勤台账（桌面表格 + 移动卡片 + 紧凑月历）
   ========================================================================== */

/* ---- 移动端员工卡片（§12/§13） ---- */
.att-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  color: var(--text);
}
.att-card:hover { border-color: var(--border-strong); }
.att-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.att-card-head .chev { margin-left: auto; color: var(--text-muted); }
.att-card-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-card-sub { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.att-card-stats {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.att-stat {
  flex: 1 1 auto;
  min-width: 64px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.3;
}
.att-stat em { font-style: normal; font-size: 11px; color: var(--text-muted); }
.att-stat b { font-size: 14px; font-variant-numeric: tabular-nums; }
.att-stat-text { font-size: 12px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-stat-warn { border-color: var(--warn-border); background: var(--warn-bg); }
.att-stat-warn b { color: var(--warn-text); }

/* ---- 紧凑月历（§11） ---- */
.att-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.att-day {
  position: relative;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 2px;
  line-height: 1.2;
}
.att-day-num { font-size: 12px; font-weight: 600; color: var(--text-sub); }
.att-day-time { font-size: 10px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* 各判定态的背景色（与图例色点一一对应） */
.att-day-present { border-color: var(--ok-border); background: var(--ok-bg); }
.att-day-late { border-color: var(--warn-border); background: var(--warn-bg); }
.att-day-leave { border-color: var(--info-border); background: var(--info-bg); }
.att-day-rest_day { border-color: var(--border); background: #fafbfc; }
.att-day-holiday { border-color: var(--border); background: #f5f0ff; }
.att-day-missing_pending { border-color: var(--warn-border); background: #fff3e0; }
.att-day-absent_confirmed { border-color: #f0b9b9; background: #fdecec; }
.att-day-calendar_not_configured { border-color: var(--border); background: #fff; opacity: 0.55; }

/* ---- 图例 ---- */
.att-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12px;
  color: var(--text-sub);
}
.att-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.att-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid var(--border);
}
.att-dot-present { background: var(--ok-bg); border-color: var(--ok-border); }
.att-dot-late { background: var(--warn-bg); border-color: var(--warn-border); }
.att-dot-leave { background: var(--info-bg); border-color: var(--info-border); }
.att-dot-rest_day { background: #fafbfc; }
.att-dot-holiday { background: #f5f0ff; }
.att-dot-missing_pending { background: #fff3e0; border-color: var(--warn-border); }
/* ---- 日历维护 / 缺卡确认 表单（§1/§2/§7/§11 390px 可用） ---- */
.btn-xs { padding: 3px 10px; font-size: 12px; }

.cal-form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.cal-label { font-size: 12px; color: var(--text-sub); }
.cal-input {
  width: 100%;
  max-width: 320px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}
.cal-form .btn { align-self: flex-start; }

/* 桌面表格内的行内编辑（details 展开，无 JS） */
.cal-edit > summary { cursor: pointer; list-style: none; }
.cal-edit > summary::-webkit-details-marker { display: none; }
.cal-edit[open] > summary { opacity: 0.7; }

/* 移动端按天折叠卡片 */
.cal-day {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 8px;
  padding: 0 12px 10px;
}
.cal-day-sum {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  cursor: pointer;
  font-size: 14px;
  list-style: none;
  flex-wrap: wrap;
}
.cal-day-sum::-webkit-details-marker { display: none; }
.cal-day-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40%; }

.cal-help { margin: 0; padding-left: 20px; font-size: 13px; color: var(--text-sub); }
.cal-help li { padding: 3px 0; }

/* ---- 单日详情事实列表（§10） ---- */
.day-facts {
  display: grid;
  grid-template-columns: minmax(90px, auto) 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 14px;
}
.day-facts dt { color: var(--text-sub); font-size: 13px; }
.day-facts dd { margin: 0; word-break: break-word; }

@media (max-width: 820px) {
  .day-facts { grid-template-columns: 1fr; gap: 2px 0; }
  .day-facts dd { margin-bottom: 8px; }
  .cal-input { max-width: 100%; }
}

.att-dot-absent_confirmed { background: #fdecec; border-color: #f0b9b9; }


/* ============================================================
   V0.2.2-C1 出勤即时激励（Employee Engagement Foundation）
   ------------------------------------------------------------
   §11 隐私：打卡弹层只展示「展示名 / 名次 / 时刻」。
   §8/§10：自己那一行高亮（YOU / 我），非 Top 3 也能看到自己的顺序。
   ============================================================ */

/* ---- 打卡即时反馈弹层（服务端渲染，无 JS） ---- */
.m-feedback-popup {
  border: 1px solid var(--ok-border);
  background: var(--ok-bg);
}
.m-pop-hero { display: flex; flex-direction: column; gap: 2px; padding: 6px 0 10px; }
.m-pop-hero .m-my { font-size: 17px; font-weight: 700; color: var(--ok-text); line-height: 1.9; }
.m-pop-hero .m-zh { font-size: 14px; color: var(--text); line-height: 1.7; }
.m-pop-hero .m-en { font-size: 12px; color: var(--text-sub); }

.m-pop-list { display: flex; flex-direction: column; gap: 6px; }
.m-pop-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
}
.m-pop-row.is-self {
  border-color: var(--ok-border);
  background: #f0fdf7;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, .12);
}
.m-pop-rank { font-size: 15px; font-weight: 700; color: var(--text-sub); text-align: center; }
.m-pop-row.is-self .m-pop-rank { color: var(--ok-text); }
.m-pop-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.m-pop-name .m-my { font-size: 14px; line-height: 1.9; overflow: hidden; text-overflow: ellipsis; }
.m-pop-you {
  flex: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
  background: var(--ok-text);
  border-radius: 999px;
  padding: 2px 6px;
}
.m-pop-time { font-size: 13px; color: var(--text-sub); }

/* ---- HOME 激励卡 ---- */
.m-eng-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
}
.m-eng-row:last-of-type { border-bottom: none; }
.m-eng-label { display: flex; flex-direction: column; gap: 1px; }
.m-eng-label .m-my { font-size: 13px; color: var(--text-sub); line-height: 1.9; }
.m-eng-label .m-zh { font-size: 12px; color: var(--text-muted); }
.m-eng-value { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.m-eng-value .m-my { font-size: 14px; line-height: 1.9; }
.m-eng-value .m-zh { font-size: 12px; color: var(--text-sub); line-height: 1.7; }
.m-eng-value .m-en { font-size: 11px; color: var(--text-muted); }

@media (max-width: 360px) {
  .m-eng-row { grid-template-columns: 1fr; gap: 2px; }
}

/* ---- 出勤激励：并列裁定并排卡片（§16/§18） ---- */
.tie-group {
  border: 1px solid var(--warn-border, var(--border));
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.tie-candidates {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}
.tie-card {
  flex: 1 1 180px;
  min-width: 160px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2, var(--surface));
  padding: 10px 12px;
  font-size: 13px;
}
.tie-card-head {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

