/* ============================================================================
 * 初禾成长 · 规划师工作台（桌面版）
 * 定位：内部规划师/咨询顾问用的宽屏工作台，与 H5（/index.html）完全独立，
 *       样式不共用，避免互相牵连。
 * ========================================================================== */

:root {
  --brand: #10b981;
  --brand-dark: #059669;
  --brand-soft: #ecfdf5;
  --ink: #1f2937;
  --ink-2: #4b5563;
  --ink-3: #9ca3af;
  --line: #e5e7eb;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --warn-bg: #fffbeb;
  --warn-line: #fde68a;
  --warn-ink: #92400e;
  --danger: #ef4444;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 14px;
  min-width: 1180px;
}

button { font-family: inherit; cursor: pointer; }

/* ---------------- 顶栏 ---------------- */
.top {
  height: 56px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 0 18px;
  position: sticky; top: 0; z-index: 50;
}
.top .brand { display: flex; align-items: center; gap: 10px; }
.top .logo {
  width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #34d399, #10b981);
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.top .title { font-size: 15px; color: var(--ink-2); }
.top .title b { color: var(--ink); font-weight: 800; }
.top .tag {
  font-size: 11px; color: var(--brand-dark); background: var(--brand-soft);
  padding: 2px 7px; border-radius: 5px; font-weight: 700;
}
.top .grow { flex: 1; }
.user-info { font-size: 13px; color: var(--ink-2); }
.user-info b { color: var(--ink); }

.btn-pri {
  background: var(--brand); color: #fff; border: none; padding: 8px 16px;
  border-radius: 8px; font-size: 13px; font-weight: 700; transition: .15s;
}
.btn-pri:hover { background: var(--brand-dark); }
.btn-pri:disabled { background: #d1d5db; cursor: not-allowed; }
.btn-ghost {
  background: #f3f4f6; color: var(--ink-2); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 8px; font-size: 13px;
}
.btn-ghost:hover { background: #e5e7eb; }
.wide { width: 100%; }

/* 录入简历是规划师最高频的动作，之前跟「退出」一样大、贴在最右边，
   宽屏下经常被忽略，这里单独放大并加阴影让它从顶栏里跳出来 */
.btn-lg { padding: 10px 20px; font-size: 14px; border-radius: 9px; box-shadow: 0 2px 6px rgba(16, 185, 129, .32); }

/* 账号管理入口 + 待审批数量角标 */
.btn-acct { position: relative; padding-right: 12px; }
.btn-acct .badge {
  display: inline-block; margin-left: 6px; min-width: 16px; text-align: center;
  background: var(--danger); color: #fff; border-radius: 9px; padding: 1px 5px; font-size: 10px;
}

/* ---------------- 三栏布局 ---------------- */
.desk {
  display: grid;
  grid-template-columns: 340px minmax(420px, 1fr) 430px;
  gap: 12px; padding: 12px;
  height: calc(100vh - 56px);
  align-items: start;
}
.col { height: 100%; overflow-y: auto; padding-bottom: 8px; }
.col::-webkit-scrollbar { width: 8px; }
.col::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.col::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden;
}
.card-flat { height: 100%; display: flex; flex-direction: column; margin-bottom: 0; }
.card-h {
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 700; color: var(--ink);
  background: linear-gradient(180deg, #fff, #fafbfc);
}
.card-h .cnt { color: var(--brand-dark); margin-left: 4px; }
/* 标题栏右侧可能不止一个按钮（如「删除」+「编辑」），用容器兜住间距 */
.card-h-btns { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.card-b { padding: 14px; }
.card-flat .card-b { flex: 1; overflow-y: auto; }

.mini {
  background: transparent; border: 1px solid var(--line); color: var(--ink-2);
  font-size: 11px; padding: 3px 8px; border-radius: 6px;
}
.mini:hover { background: #f3f4f6; }

/* ---------------- 表单 ---------------- */
.ta {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px;
  font-size: 13px; font-family: inherit; resize: vertical; outline: none; line-height: 1.6;
}
.ta:focus { border-color: var(--brand); }
label { font-size: 12px; color: var(--ink-2); font-weight: 600; }
input, select, textarea {
  font-family: inherit; font-size: 13px; color: var(--ink);
}
.cond-form, .resume-form { display: grid; gap: 9px; margin-top: 12px; }
.cond-form input, .resume-form input, .resume-form select, .resume-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; outline: none;
}
.cond-form input:focus, .resume-form input:focus,
.resume-form select:focus, .resume-form textarea:focus { border-color: var(--brand); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.cond-form > div > label, .resume-form > div > label { display: block; margin-bottom: 3px; }
.row-between { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-top: 10px; }

.switch { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.switch input { width: 14px; height: 14px; accent-color: var(--brand); }

.note { font-size: 12px; line-height: 1.6; margin-top: 8px; }
.note .ok { color: var(--brand-dark); }
.note .warn { color: var(--warn-ink); }
.note-inline { font-size: 12px; color: var(--ink-3); }

.btn-match {
  width: 100%; margin-top: 12px; padding: 11px; border: none; border-radius: 9px;
  background: linear-gradient(135deg, #34d399, #10b981); color: #fff;
  font-size: 14px; font-weight: 800; letter-spacing: 1px;
}
.btn-match:disabled { background: #d1d5db; cursor: not-allowed; }

/* ---------------- 空态 ---------------- */
.empty-big { text-align: center; padding: 70px 20px; color: var(--ink-3); }
.eb-icon { font-size: 40px; margin-bottom: 10px; opacity: .55; }
.eb-t { font-size: 14px; color: var(--ink-2); font-weight: 700; margin-bottom: 6px; }
.eb-s { font-size: 12px; line-height: 1.8; }
.empty-sm { text-align: center; color: var(--ink-3); font-size: 12px; padding: 18px; }

/* ---------------- 需求列表 ---------------- */
.demand-item {
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; margin-bottom: 8px;
  cursor: pointer; transition: .15s;
}
.demand-item:hover { border-color: var(--brand); background: var(--brand-soft); }
.demand-item .di-h { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.demand-item .di-name { font-weight: 700; font-size: 13px; flex: 1; }
.demand-item .di-time { font-size: 11px; color: var(--ink-3); }
.demand-item .di-desc {
  font-size: 12px; color: var(--ink-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.badge { font-size: 10px; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.badge.new { background: #fee2e2; color: #991b1b; }
.badge.matched { background: #d1fae5; color: #065f46; }

/* ---------------- 匹配结果 ---------------- */
.engine-tip { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 5px; }
.engine-tip.ai { background: #ede9fe; color: #5b21b6; }
.engine-tip.rule { background: #fef3c7; color: #92400e; }
.engine-tip.off { background: #f3f4f6; color: #6b7280; }

/* ---------------- 结果筛选栏 ---------------- */
.filter-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 14px; border-bottom: 1px solid var(--line); background: #fafbfc;
}
.filter-bar select {
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 7px;
  font-size: 12px; background: #fff; color: var(--ink-2); outline: none;
}
.filter-bar select:focus { border-color: var(--brand); }
.filter-bar .grow { flex: 1; }

.warn-box {
  margin: 10px 14px 0; padding: 9px 12px; background: var(--warn-bg);
  border: 1px solid var(--warn-line); border-radius: 8px;
  font-size: 12px; color: var(--warn-ink); line-height: 1.7;
}

.cand {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; margin-bottom: 10px;
  cursor: pointer; transition: .15s; background: #fff;
}
.cand:hover { border-color: var(--brand); box-shadow: 0 2px 8px rgba(16, 185, 129, .12); }
.cand.active { border-color: var(--brand); background: var(--brand-soft); }
.cand .c-h { display: flex; align-items: center; gap: 10px; }
.cand .c-rank {
  width: 24px; height: 24px; border-radius: 7px; background: #f3f4f6; color: var(--ink-2);
  font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none;
}
.cand.top1 .c-rank { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.cand .c-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #a7f3d0, #6ee7b7);
  color: #065f46; font-weight: 800; font-size: 16px; display: flex; align-items: center;
  justify-content: center; flex: none; overflow: hidden;
}
.cand .c-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cand .c-id { flex: 1; min-width: 0; }
.cand .c-name { font-size: 14px; font-weight: 800; color: var(--ink); }
.cand .c-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.cand .c-score { text-align: center; flex: none; }
.cand .c-score b { display: block; font-size: 20px; color: var(--brand-dark); line-height: 1; }
.cand .c-score span { font-size: 10px; color: var(--ink-3); }
.cand .c-reason {
  font-size: 12px; color: var(--ink-2); line-height: 1.6; margin-top: 8px;
  background: #f9fafb; border-left: 3px solid var(--brand); padding: 6px 9px; border-radius: 0 6px 6px 0;
}
.cand .c-risk {
  font-size: 11px; color: var(--warn-ink); margin-top: 6px; background: var(--warn-bg);
  padding: 4px 8px; border-radius: 5px;
}
.cand .c-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.chip {
  font-size: 11px; padding: 2px 7px; border-radius: 5px;
  background: #f3f4f6; color: var(--ink-2);
}
.chip.hit { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.chip.miss { background: #fee2e2; color: #991b1b; }
.chip.ai { background: #ede9fe; color: #5b21b6; }

/* ---------------- 简历详情 ---------------- */
.dt-h { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dt-avatar {
  width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #a7f3d0, #6ee7b7);
  color: #065f46; font-weight: 800; font-size: 20px; display: flex; align-items: center;
  justify-content: center; overflow: hidden; flex: none;
}
.dt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dt-name { font-size: 17px; font-weight: 800; }
.dt-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.dt-sec { margin-top: 16px; }
.dt-sec-t {
  font-size: 12px; font-weight: 800; color: var(--ink-2); margin-bottom: 7px;
  padding-left: 8px; border-left: 3px solid var(--brand);
}
.kv { display: grid; grid-template-columns: 74px 1fr; gap: 5px 10px; font-size: 12.5px; }
.kv .k { color: var(--ink-3); }
.kv .v { color: var(--ink); }
.kv .v.empty { color: var(--ink-3); }
.dt-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.exp-item {
  border-left: 2px solid var(--line); padding: 0 0 0 10px; margin-bottom: 10px; font-size: 12.5px;
}
.exp-item .ei-t { font-weight: 700; color: var(--ink); }
.exp-item .ei-c { color: var(--ink-2); line-height: 1.6; margin-top: 2px; }
.contact-box {
  background: var(--brand-soft); border: 1px solid #a7f3d0; border-radius: 8px;
  padding: 10px 12px; font-size: 13px; margin-top: 10px;
}
.contact-box b { color: var(--brand-dark); }

/* ---------------- 弹窗 ---------------- */
.modal {
  position: fixed; inset: 0; background: rgba(17, 24, 39, .5); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-box {
  background: #fff; border-radius: 14px; width: 900px; max-width: 100%;
  max-height: 100%; display: flex; flex-direction: column; overflow: hidden;
}
.modal-h {
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 800;
}
.modal-b { padding: 18px; overflow-y: auto; flex: 1; }
.modal-f {
  padding: 12px 18px; border-top: 1px solid var(--line);
  display: flex; gap: 10px; justify-content: flex-end; background: #fafbfc;
}
.upload-zone {
  border: 2px dashed var(--line); border-radius: 12px; padding: 28px; text-align: center;
  cursor: pointer; transition: .15s;
}
.upload-zone:hover, .upload-zone.over { border-color: var(--brand); background: var(--brand-soft); }
.uz-icon { font-size: 30px; opacity: .6; }
.uz-t { font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 6px; }
.uz-s { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
/* 录入方式三选一：三个入口平级，别让规划师以为只支持 Word */
/* 2026-09-03：intake-tabs 三选一已改为三入口平铺（.intake-tabs/.itab/.intake-pane 样式保留防外部引用） */
/* 录入素材区：三个入口同页平铺（2026-09-03 起不再三选一切换）。
   uz-compact 是紧凑版上传区：两个竖排（Word / 图片视频）+ 中间粘贴框，弹窗不至于太长 */
.uz-compact { padding: 12px 14px; margin-bottom: 10px; }
.uz-compact .uz-t { font-size: 13px; font-weight: 700; }
.uz-compact .uz-s { font-size: 11.5px; margin-top: 3px; }
#rawResume { margin-bottom: 10px; }
.or-line {
  text-align: center; color: var(--ink-3); font-size: 12px; margin: 14px 0;
  position: relative;
}
.or-line::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--line); z-index: 0;
}
.or-line span { background: #fff; padding: 0 10px; position: relative; z-index: 1; }
.rf-sec {
  font-size: 12px; font-weight: 800; color: var(--ink-2); margin: 14px 0 8px;
  padding-left: 8px; border-left: 3px solid var(--brand);
}
.resume-form .grid2, .resume-form .grid3 { margin-bottom: 2px; }
.resume-form > div > label { display: block; margin-bottom: 3px; }
.resume-form textarea { resize: vertical; }

/* ---------------- 登录 ---------------- */
.login-mask {
  position: fixed; inset: 0; z-index: 500; background: linear-gradient(135deg, #ecfdf5, #f0fdfa 40%, #f4f6f8);
  display: flex; align-items: center; justify-content: center;
}
.login-mask.hide { display: none; }
.login-box {
  background: #fff; padding: 32px 34px; border-radius: 16px; width: 380px;
  box-shadow: 0 12px 40px rgba(16, 24, 40, .12);
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.login-logo {
  width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg, #34d399, #10b981);
  color: #fff; font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center;
}
.login-brand h1 { margin: 0; font-size: 17px; font-weight: 800; }
.login-brand p { margin: 3px 0 0; font-size: 12px; color: var(--ink-3); }
.login-box label { display: block; font-size: 12px; margin: 12px 0 5px; }
.login-box input {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; outline: none;
}
.login-box input:focus { border-color: var(--brand); }
.login-err { color: var(--danger); font-size: 12px; min-height: 18px; margin-top: 10px; }
.login-box .btn-pri { width: 100%; padding: 11px; font-size: 14px; margin-top: 4px; }
.login-tip { text-align: center; font-size: 11px; color: var(--ink-3); margin-top: 14px; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  background: rgba(17, 24, 39, .92); color: #fff; padding: 10px 20px; border-radius: 8px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; z-index: 600;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- 加载态 ---------------- */
.loading-bar {
  height: 3px; background: var(--brand-soft); border-radius: 2px; overflow: hidden; margin-top: 8px;
}
.loading-bar i {
  display: block; height: 100%; width: 40%; background: var(--brand);
  animation: slide 1s linear infinite;
}
@keyframes slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }

/* ============================================================================
 * 简历库（左栏）
 * 存在的理由：顶栏的「录入简历」贴边易被忽略，这里常驻一个列表 + 录入按钮，
 * 规划师进了页面就能看到库里有什么、从哪儿新增。
 * ========================================================================== */
.lib-box { display: grid; gap: 8px; }
.lib-search {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 11px; outline: none; font-size: 13px;
}
.lib-search:focus { border-color: var(--brand); }
.btn-new-resume { margin-bottom: 2px; }
.lib-item {
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px;
  cursor: pointer; transition: .12s;
}
.lib-item:hover { border-color: var(--brand); background: var(--brand-soft); }
.lib-item.active { border-color: var(--brand); background: var(--brand-soft); }
.lib-item .li-h { display: flex; align-items: center; gap: 6px; }
.lib-item .li-name { font-weight: 700; font-size: 13px; flex: 1; }
.lib-item .li-st { font-size: 10px; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.lib-item .li-st.idle { background: #d1fae5; color: #065f46; }
.lib-item .li-st.busy { background: #fef3c7; color: #92400e; }
.lib-item .li-m { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* ---- 数据待核对标记（早期版本编造默认值的存量档案）---- */
/* 用红色而非黄色：黄色在库里已经代表「待岗/已入户」这类中性状态，
   待核对是会直接影响给客户报价的，必须和普通提醒区分开。 */
.lib-pend-tip {
  margin: 0 0 8px; padding: 7px 10px; border-radius: 8px;
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  font-size: 11px; font-weight: 700; line-height: 1.6;
}
.lib-item.pend { border-color: #fca5a5; background: #fff5f5; }
.lib-item.pend:hover, .lib-item.pend.active { border-color: #ef4444; background: #fee2e2; }
.li-pend {
  font-size: 10px; padding: 1px 6px; border-radius: 4px; font-weight: 700;
  background: #ef4444; color: #fff; white-space: nowrap;
}
.dt-pend {
  padding: 10px 12px; border-radius: 10px; margin-bottom: 12px;
  background: #fef2f2; border: 1px solid #fecaca;
}
.dt-pend .dt-pend-t { font-size: 13px; font-weight: 800; color: #b91c1c; }
.dt-pend .dt-pend-c { font-size: 11.5px; color: #7f1d1d; line-height: 1.75; margin-top: 4px; }

/* 未归类的历史素材：老档案的图/视频在这兜底，不能让它们从视图里消失 */
.mk-view-unsorted { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.mk-view-unsorted .mk-v-t { color: var(--warn-ink); }
.mk-v-hint { font-size: 10.5px; color: var(--ink-3); line-height: 1.6; margin-top: 5px; }

/* 结果区空态里的快捷入口 */
.eb-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }

/* ============================================================================
 * 账号管理弹窗
 * ========================================================================== */
.modal-wide { width: 1060px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.grid4 > div > label { display: block; margin-bottom: 3px; }
.grid4 input, .grid4 select {
  width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; outline: none;
}
.grid4 input:focus, .grid4 select:focus { border-color: var(--brand); }

/* 待审批区 */
.acct-pending {
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 14px;
}
.acct-pending .ap-t { font-size: 13px; font-weight: 800; color: var(--warn-ink); margin-bottom: 8px; }
.acct-pending .ap-t b { color: var(--danger); }
.acct-pending .ap-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; border-top: 1px dashed var(--warn-line);
}
.acct-pending .ap-row:first-of-type { border-top: none; }
.acct-pending .ap-n { font-size: 13px; font-weight: 700; }
.acct-pending .ap-r { font-size: 11px; color: var(--ink-2); background: #fff; padding: 1px 7px; border-radius: 4px; }
.acct-pending .ap-p { font-size: 12px; color: var(--ink-2); }
.acct-pending .grow { flex: 1; }

/* 列表：表头 + 行用同一套列宽，保证对齐 */
.acct-tb-head, .acct-row {
  display: grid;
  grid-template-columns: 2fr 1.1fr .9fr 1fr 1.9fr;
  gap: 8px; align-items: center;
}
.acct-tb-head {
  padding: 7px 10px; background: #f9fafb; border: 1px solid var(--line);
  border-radius: 8px 8px 0 0; font-size: 11px; font-weight: 800; color: var(--ink-3);
}
.acct-row {
  padding: 8px 10px; border: 1px solid var(--line); border-top: none;
  font-size: 13px; transition: .12s;
}
.acct-row:last-child { border-radius: 0 0 8px 8px; }
.acct-row:hover { background: #fafbfc; }
.acct-row.dim { background: #f9fafb; color: var(--ink-3); }
.acct-row .ar-name { font-weight: 700; }
.acct-row .ar-sub { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.acct-row .ar-role {
  width: 100%; border: 1px solid var(--line); border-radius: 6px;
  padding: 4px 6px; font-size: 12px; background: #fff; outline: none;
}
.acct-row .ar-role:focus { border-color: var(--brand); }
.acct-row .ar-role-t { font-size: 12px; color: var(--ink-2); }
.acct-row .ar-c4 { font-size: 11px; color: var(--ink-3); }
.acct-row .ar-c5 { display: flex; align-items: center; gap: 5px; justify-content: flex-end; flex-wrap: wrap; }

/* 状态胶囊 */
.st { font-size: 11px; padding: 2px 8px; border-radius: 5px; font-weight: 700; }
.st.ok { background: #d1fae5; color: #065f46; }
.st.wait { background: #fef3c7; color: #92400e; }
.st.off { background: #f3f4f6; color: #6b7280; }

.mini.ok { border-color: #a7f3d0; color: var(--brand-dark); background: var(--brand-soft); }
.mini.ok:hover { background: #d1fae5; }
.mini.danger { border-color: #fecaca; color: #991b1b; background: #fef2f2; }
.mini.danger:hover { background: #fee2e2; }

.chip.me { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.warn-inline { color: var(--warn-ink); }

/* ============================================================================
 * 页内对话框（替代被宿主拦截的原生 confirm / prompt）
 * ========================================================================== */
.ask-mask { z-index: 300; } /* 要盖在账号弹窗（z-index:200）之上 */
.ask-box { width: 440px; }
.ask-body { font-size: 14px; line-height: 1.7; color: var(--ink); }
.ask-body b { color: var(--ink); }
.ask-note {
  margin-top: 10px; padding: 9px 11px; background: #f9fafb;
  border-left: 3px solid var(--line); border-radius: 0 6px 6px 0;
  font-size: 12px; line-height: 1.7; color: var(--ink-2);
}
.ask-note.ask-danger { background: #fef2f2; border-left-color: var(--danger); color: #991b1b; }
.ask-input {
  width: 100%; margin-top: 12px; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 11px; font-size: 14px; outline: none; font-family: ui-monospace, Consolas, monospace;
}
.ask-input:focus { border-color: var(--brand); }
.ask-box .note-inline { display: block; margin-top: 6px; line-height: 1.7; }
.ask-pwd {
  font-family: ui-monospace, Consolas, monospace; font-size: 20px; font-weight: 700;
  letter-spacing: 2px; text-align: center; padding: 14px; margin: 4px 0 2px;
  background: var(--brand-soft); border: 1px dashed var(--brand); border-radius: 8px;
  color: var(--brand-dark); user-select: all;
}
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #dc2626; }

/* ==========================================================================
   照片 / 头像（录入弹窗）
   列表卡片和对外分享页都读 avatar_url，所以这里必须让规划师能显式指定哪张是头像，
   不能只靠"第一张图"——Word 解析出来的第一张常常是页眉 logo 或证书照片。
   ========================================================================== */
.media-box {
  display: flex; gap: 14px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fafbfc;
}
.mb-av { width: 96px; flex: none; text-align: center; }
.mb-av-img {
  width: 88px; height: 88px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: var(--brand-soft); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.mb-av-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-av-tip { margin-top: 6px; font-size: 11px; line-height: 1.5; color: var(--ink-3); }
.mb-main { flex: 1; min-width: 0; }
.mb-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.mb-thumb {
  position: relative; width: 76px; height: 76px; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--line); background: #fff;
}
.mb-thumb.on { border-color: var(--brand); }
.mb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-thumb .mb-tb {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; gap: 4px; padding: 3px;
  background: linear-gradient(to top, rgba(0, 0, 0, .62), transparent);
  opacity: 0; transition: opacity .15s;
}
.mb-thumb:hover .mb-tb { opacity: 1; }
.mb-thumb .mb-tb .mini { flex: 1; min-width: 0; font-size: 10px; padding: 2px 0; }
.mb-flag {
  position: absolute; top: 0; left: 0; padding: 1px 5px;
  background: var(--brand); color: #fff; font-size: 10px; border-radius: 0 0 6px 0;
}

/* ==========================================================================
   佐证材料九分类（模板五~九板块）
   分类清单来自 lib/mediaKits.js，前端只负责排版。
   ========================================================================== */
.mk-unsorted:not(:empty) {
  padding: 8px; margin-bottom: 10px;
  border: 1px dashed var(--brand); border-radius: 8px; background: var(--brand-soft);
}
.mk-u-t { font-size: 12px; color: var(--brand-dark); font-weight: 600; margin-bottom: 6px; }
.mk-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.btn-ai {
  background: linear-gradient(135deg, #f5e9ff, #ffe7ee);
  border: 1px solid #e9d5ff;
  color: #6b21a8;
  font-weight: 700;
}
.btn-ai:hover { background: linear-gradient(135deg, #ecd9ff, #ffd5e1); }
.btn-ai:disabled { opacity: 0.6; cursor: wait; }
.mk-box {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fff;
  min-width: 0;
}
.mk-box.mk-empty { background: #fbfcfd; }
.mk-h { display: flex; align-items: center; gap: 6px; }
.mk-t { font-size: 12px; font-weight: 600; color: var(--ink); flex: 1; min-width: 0; }
.mk-n {
  font-size: 10px; padding: 0 6px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand-dark);
}
.mk-add { flex: none; padding: 1px 6px; font-size: 11px; }
.mk-tip { font-size: 10px; color: var(--ink-3); margin: 2px 0 6px; line-height: 1.4; }
.mk-none { font-size: 11px; color: var(--ink-3); padding: 6px 0; }
.mk-req {
  margin-left: 4px; padding: 0 4px; border-radius: 4px; font-size: 9px; font-weight: 600;
  background: #fef3c7; color: #92400e;
}
/* 归类下拉框：缩略图只有 76px 宽，必须压扁 */
.mb-sel {
  flex: 1; min-width: 0; font-size: 10px; padding: 1px; height: 18px;
  border: 1px solid #fff; border-radius: 3px; background: #fff; color: var(--ink);
}
.mb-video {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: #f3f4f6;
}

/* ---- 详情页：九大板块 ---- */
.dt-sub-t { font-size: 11px; font-weight: 600; color: var(--ink-3); margin: 6px 0 3px; }
.mk-view { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.mk-view:last-child { border-bottom: none; }
.mk-v-t { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.mk-v-n { font-weight: 400; color: var(--ink-3); font-size: 11px; }
.mk-v-thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-v-thumb {
  width: 54px; height: 54px; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line); display: block; background: #f3f4f6;
  text-decoration: none; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.mk-v-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rf-sec-note { font-size: 11px; font-weight: 400; color: var(--ink-3); margin-left: 8px; }

/* ---- 回收站（已删除档案） ---- */
.trash-tip {
  font-size: 11.5px; line-height: 1.75; color: var(--ink-3);
  background: #f9fafb; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; margin-bottom: 10px;
}
.trash-tip b { color: var(--warn-ink); }
.tr-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px;
  margin-bottom: 8px; background: #fff;
}
.tr-item:hover { border-color: var(--brand); background: #fafcff; }
.tr-av {
  width: 42px; height: 42px; border-radius: 8px; object-fit: cover;
  flex: none; border: 1px solid var(--line); background: #f3f4f6;
}
.tr-av-no { display: flex; align-items: center; justify-content: center; font-size: 18px; }
.tr-main { flex: 1; min-width: 0; }
.tr-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.tr-sub {
  font-size: 11px; color: var(--ink-3); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tr-ops { display: flex; gap: 6px; flex: none; }
