/* ============================================================
   board-v6.css — 我的任务 / 提交完成证据 / 验收 / 通知 / 团队账号 / 强制改密 增量样式（2026-11-19）
   作用域：我的任务 / 提交完成证据 / 验收中心 / 通知铃 / 团队账号 / 强制改密
   规则：只复用 board-v5.css 既有变量与色板，不新建设计系统；
        深蓝 #1F4E79 主色、浅蓝 #e8f0fe、无动画无渐变、暗色手动切换
   ============================================================ */

/* ---------- 通用：页面骨架 / KPI / 页签 ---------- */
.p2-page { padding: 4px 0 24px; }
.p2-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.p2-page-head h2 { font-size: 18px; font-weight: 600; color: var(--text-primary); }
.p2-page-sub { margin: 4px 0 0; font-size: 12px; color: var(--text-secondary); }

.p2-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.p2-kpi { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.p2-kpi-label { font-size: 12px; color: var(--text-secondary); }
.p2-kpi-val { font-size: 22px; font-weight: 600; color: var(--text-primary); margin-top: 2px; }
.p2-kpi.tone-r .p2-kpi-val { color: var(--red); }
.p2-kpi.tone-y .p2-kpi-val { color: var(--yellow); }

.p2-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; flex-wrap: wrap; }
.p2-tab { border: 0; background: none; padding: 8px 14px; font-size: 13px; color: var(--text-secondary); cursor: pointer; border-bottom: 2px solid transparent; }
.p2-tab.active { color: var(--accent-text); border-bottom-color: var(--accent); font-weight: 600; }
.p2-tab:hover { color: var(--accent-text); }

.p2-empty { text-align: center; padding: 48px 16px; color: var(--text-muted); font-size: 13px; background: var(--bg-card); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.p2-loading { text-align: center; padding: 32px 16px; color: var(--text-muted); font-size: 13px; }
.p2-muted { color: var(--text-muted); font-size: 12px; margin: 4px 0 0; }
.p2-inline-error { font-size: 12px; color: var(--red); background: var(--red-bg); border: 1px solid var(--red-line); border-radius: var(--radius-sm); padding: 8px 10px; }
.p2-error-box { display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 24px 16px; background: var(--red-bg); border: 1px solid var(--red-line); border-radius: var(--radius); font-size: 13px; color: var(--text-primary); }

/* ---------- 通用按钮（复刻主站 btn 体系，仅补 sm/xs 尺寸） ---------- */
.p2-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; font-size: 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-card); color: var(--text-primary); cursor: pointer; }
.p2-btn:hover { background: var(--bg-hover); }
.p2-btn.p2-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.p2-btn.p2-btn-primary:hover { background: var(--accent-text); }
.p2-btn.p2-btn-danger { background: var(--red-bg); border-color: var(--red-line); color: var(--red); }
.p2-btn.p2-btn-ghost { background: transparent; }
.p2-btn.p2-btn-sm { padding: 4px 10px; font-size: 12px; }
.p2-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- 我的任务卡片 ---------- */
.p2-cards { display: grid; gap: 10px; }
.p2-card { display: block; width: 100%; text-align: left; background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; }
.p2-card:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.p2-card.tone-overdue { border-left-color: var(--red); }
.p2-card.tone-done { border-left-color: var(--green); }
.p2-card-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.p2-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-secondary); }
.p2-card-meta .num-red { color: var(--red); font-weight: 600; }
.p2-card-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.p2-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-secondary); color: var(--text-secondary); }
.p2-chip.proj { background: var(--bg-secondary); }
.p2-chip.pri-high { background: var(--red-bg); border-color: var(--red-line); color: var(--red); }
.p2-chip.pri-medium { background: var(--yellow-bg); border-color: var(--yellow); color: var(--text-primary); }
.p2-chip.pri-low { background: var(--bg-secondary); color: var(--text-secondary); }
.p2-chip.acc { background: var(--accent-bg); border-color: var(--accent-line); color: var(--accent-text); }
.p2-due.overdue { color: var(--red); font-weight: 600; }
.p2-due.none { color: var(--text-muted); }

/* 徽标体系（复用 chip 语义） */
.p2-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-secondary); color: var(--text-secondary); }
.p2-badge.ac-screenshot { background: var(--accent-bg); border-color: var(--accent-line); color: var(--accent-text); }
.p2-badge.ac-record { background: var(--yellow-bg); border-color: var(--yellow); color: var(--text-primary); }
.p2-badge.ac-manual { background: var(--bg-secondary); color: var(--text-secondary); }
.p2-badge.st-pending_ai, .p2-badge.st-needs_human, .p2-badge.st-overturned,
.p2-acc-status.st-pending_ai, .p2-acc-status.st-needs_human, .p2-acc-status.st-overturned { background: var(--yellow-bg); border-color: var(--yellow); color: var(--text-primary); }
.p2-badge.st-ai_pass, .p2-badge.st-approved,
.p2-acc-status.st-ai_pass, .p2-acc-status.st-approved { background: var(--green-bg); border-color: var(--green); color: var(--text-primary); }
.p2-badge.st-ai_fail, .p2-badge.st-rejected,
.p2-acc-status.st-ai_fail, .p2-acc-status.st-rejected { background: var(--red-bg); border-color: var(--red-line); color: var(--red); }
.p2-badge.prio-high { background: var(--red-bg); border-color: var(--red-line); color: var(--red); }
.p2-badge.prio-medium { background: var(--yellow-bg); border-color: var(--yellow); color: var(--text-primary); }
.p2-badge.prio-low { background: var(--bg-secondary); color: var(--text-secondary); }

/* ---------- 任务详情页：验收要求条 + 进度 ---------- */
#task-acceptance-bar { margin: 12px 0; }

.p2-progress { margin-top: 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-secondary); padding: 10px 12px; font-size: 12px; }
.p2-progress.tone-g { border-color: var(--green); background: var(--green-bg); }
.p2-progress.tone-r { border-color: var(--red-line); background: var(--red-bg); }
.p2-progress.tone-y { border-color: var(--yellow); background: var(--yellow-bg); }
.p2-progress.tone-a { border-color: var(--accent-line); background: var(--accent-bg); }
.p2-progress-reason { margin-top: 4px; color: var(--text-secondary); }

/* ---------- 提交完成证据表单 ---------- */
.p2-form { display: flex; flex-direction: column; gap: 14px; }
.p2-field { display: flex; flex-direction: column; gap: 6px; }
.p2-field > label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.p2-field textarea, .p2-field input[type="text"], .p2-field input[type="datetime-local"], .p2-field select {
  width: 100%; padding: 8px 10px; font-size: 13px; font-family: inherit;
  background: var(--bg-card); color: var(--text-primary);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
.p2-field textarea { min-height: 88px; resize: vertical; }

.p2-drop { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 20px; text-align: center; font-size: 12px; color: var(--text-secondary); background: var(--bg-secondary); cursor: pointer; }
.p2-drop.over { border-color: var(--accent); background: var(--accent-bg); }
.p2-drop strong { color: var(--accent-text); }

.p2-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.p2-thumb { position: relative; width: 96px; height: 96px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-secondary); }
.p2-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p2-thumb-del { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; font-size: 12px; line-height: 20px; cursor: pointer; }
.p2-file-list { display: flex; flex-direction: column; gap: 6px; }
.p2-form-error { font-size: 12px; color: var(--red); background: var(--red-bg); border: 1px solid var(--red-line); border-radius: var(--radius-sm); padding: 8px 10px; }
.p2-form-hint { font-size: 12px; color: var(--text-secondary); }

/* ---------- 验收中心 ---------- */
.p2-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.p2-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.p2-table th { text-align: left; font-size: 12px; color: var(--text-secondary); font-weight: 600; background: var(--bg-secondary); padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.p2-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-primary); vertical-align: middle; }
.p2-table tr:last-child td { border-bottom: 0; }
.p2-table .cell-title { font-weight: 600; max-width: 260px; }

.p2-acc-status { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-secondary); color: var(--text-secondary); white-space: nowrap; }
/* 状态色由 .p2-badge.st-* 的共用选择器统一给（见上方 .p2-badge 段），此处不再复制 */

/* ---------- 抽屉 / 遮罩（验收详情、重置密码） ---------- */
.p2-mask { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.45); padding: 20px; }
.p2-drawer { width: min(760px, 100%); max-height: 88vh; display: flex; flex-direction: column; background: var(--bg-primary); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-modal); }
.p2-drawer.p2-drawer-sm { width: min(480px, 100%); }
.p2-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.p2-drawer-head h3 { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.p2-drawer-body { padding: 16px 18px; overflow-y: auto; font-size: 13px; color: var(--text-primary); }

.p2-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 18px; margin-bottom: 14px; }
.p2-detail-item { display: flex; flex-direction: column; gap: 2px; }
.p2-detail-item label { font-size: 11px; color: var(--text-muted); }
.p2-detail-block { margin-bottom: 14px; }
.p2-detail-block h4 { font-size: 13px; font-weight: 600; color: var(--text-primary); margin: 0 0 6px; }
.p2-detail-block p { margin: 0; line-height: 1.7; color: var(--text-primary); }
.p2-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.p2-missing { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.p2-chip.warn { background: var(--yellow-bg); border-color: var(--yellow); color: var(--text-primary); }

.p2-evidence { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.p2-ev-item { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-card); }
.p2-ev-item img { width: 100%; height: 96px; object-fit: cover; display: block; cursor: zoom-in; }
.p2-ev-name { font-size: 11px; color: var(--text-muted); padding: 4px 6px; word-break: break-all; }
.p2-ev-item .p2-btn { margin: 6px; }

/* 重置密码结果 */
.p2-reset-done { display: flex; flex-direction: column; gap: 12px; }
.p2-reset-pwd label { font-size: 12px; color: var(--text-secondary); }
.p2-reset-pwd-row { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.p2-reset-pwd-row code { flex: 1; font-size: 16px; font-weight: 600; letter-spacing: 1px; padding: 10px 12px; background: var(--accent-bg); border: 1px solid var(--accent-line); border-radius: var(--radius-sm); color: var(--accent-text); }
.p2-reset-warn { font-size: 12px; color: var(--red); background: var(--red-bg); border: 1px solid var(--red-line); border-radius: var(--radius-sm); padding: 8px 10px; }

/* ---------- 强制改密遮罩 ---------- */
.p2-mask.p2-fcp-mask { z-index: 10001; background: rgba(15,23,42,0.55); }
.p2-fcp-panel { width: min(420px, 100%); background: var(--bg-primary); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-modal); padding: 22px; }
.p2-fcp-title { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.p2-fcp-sub { font-size: 12px; color: var(--text-secondary); margin: 6px 0 16px; }
.p2-fcp-panel .p2-field { margin-bottom: 12px; }
.p2-fcp-foot { margin-top: 14px; font-size: 12px; color: var(--text-muted); text-align: center; }

/* ---------- 通知面板（P2 语义补强） ---------- */
.notif-panel { width: 340px; max-width: calc(100vw - 24px); }
.notif-item.unread .notif-title { color: var(--accent-text); font-weight: 600; }
.notif-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-left: 6px; vertical-align: middle; }
.notif-item:hover { background: var(--bg-hover); }
.notif-empty, .notif-loading { padding: 24px 12px; text-align: center; font-size: 12px; color: var(--text-muted); }
#notif-more { margin-left: auto; }

/* ---------- 团队页追加元素 ---------- */
.team-table .row-inactive { opacity: 0.6; }
.cell-member { display: flex; align-items: center; gap: 8px; }
.member-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-bg); color: var(--accent-text); border: 1px solid var(--accent-line); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.member-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.member-username { font-size: 11px; color: var(--text-muted); }
.cell-ops { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 10px; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-secondary); color: var(--text-secondary); }
.chip.warn { background: var(--yellow-bg); border-color: var(--yellow); color: var(--text-primary); }
.role-chip { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-secondary); color: var(--text-secondary); }
.role-chip.role-manager { background: var(--accent-bg); border-color: var(--accent-line); color: var(--accent-text); }
.role-chip.role-developer { background: var(--green-bg); border-color: var(--green); color: var(--text-primary); }
.role-chip.role-ops { background: var(--yellow-bg); border-color: var(--yellow); color: var(--text-primary); }
.cell-recent { max-width: 200px; color: var(--text-secondary); font-size: 12px; }
.num { text-align: center; }
.num.red { color: var(--red); font-weight: 600; }

/* ---------- 2026-11-20 B 项：账号类型 / 系统与测试账号折叠区 / 审计抽屉 ---------- */
.acc-type-person { background: var(--green-bg); border-color: var(--green); color: var(--text-primary); }
.acc-type-system { background: var(--accent-bg); border-color: var(--accent-line); color: var(--accent-text); }
.acc-type-test { background: var(--yellow-bg); border-color: var(--yellow); color: var(--text-primary); }
.team-sys-section { margin-top: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-secondary); }
.team-sys-section > summary { cursor: pointer; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.team-sys-section > summary:hover { color: var(--text-primary); }
.team-sys-section[open] > summary { border-bottom: 1px solid var(--border); }
.p2-audit-filter { font-size: 12px; padding: 4px 10px; width: 200px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--bg-card); color: var(--text-primary); }
.audit-impact { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ---------- 移动端 ---------- */
@media (max-width: 720px) {
  .p2-page-head { flex-direction: column; gap: 8px; }
  .p2-kpis { grid-template-columns: repeat(2, 1fr); }
  .p2-drawer { width: 100%; max-height: 92vh; }
  .p2-evidence { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .p2-task-meta { gap: 4px 10px; }
}

/* ---------- 提交完成证据：验收要求条 / 提交表单（2026-11-19 补齐，类名以 app-p2-*.js 实际引用为准） ---------- */
.p2-accept-bar { margin-top: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.p2-accept-bar-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 320px; }
.p2-accept-req { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

.p2-submit-card { margin-top: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.p2-submit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p2-submit-head h3 { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.p2-field-count { font-size: 11px; color: var(--text-muted); text-align: right; margin-top: -4px; }

.p2-file-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; }
.p2-modal-actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 4px; }
.p2-modal-foot { font-size: 11px; color: var(--text-muted); margin: 0; }
.p2-thumb-name { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; color: #fff; background: rgba(0,0,0,0.55); padding: 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p2-progress-head { font-size: 12px; color: var(--text-primary); }
.p2-progress-more { margin-top: 6px; font-size: 11px; color: var(--text-muted); }

/* 暗色无需覆盖：本文件底色全部走 board-v5 的 --bg-* 变量，切主题自动生效 */
