/* ============================================================
   CRM系统 · 样式
   
   设计取舍：
   1. 不用 UI 框架。这套系统只有十几张表、七八个页面，
      引一个几百 KB 的组件库，换来的主要是「看起来熟悉」，
      代价是每次改样式都要跟框架的优先级打架。
   2. 表格在窄屏变卡片。手机上横向滚动的表格基本没法用，
      所以 < 760px 时用 data-label 把表头塞进每行行首。
   3. 颜色只用一套变量。改主题只改 :root 一处。
   ============================================================ */

:root {
  /* 绿色主调。语义色（ok/warn/danger）保持各自的颜色不变——
     红色表示有问题是全站共识，把它也染绿会让警告失去警示作用。 */
  --bg:        #f0f7f2;
  --surface:   #ffffff;
  --border:    #dbe9e0;
  /* 文字一律纯黑（2026-11-07 业务方定）。原来三档是深绿黑 / 灰绿 / 浅灰绿，
     绿色文字在浅绿底上对比度不够，长时间看发灰；而且"绿"在这套系统里
     本来代表"正常/通过"，用绿写字会让语义色失去辨识度。
     三档仍保留，只用明度拉开层次，色相全部归零：
     纯黑正文 → 近黑次要 → 深灰注释。 */
  --text:      #000000;
  --text-dim:  #121212;
  --text-mute: #2b2b2b;
  --primary:   #1f9d55;
  --primary-d: #157f43;
  --primary-l: #e7f6ec;
  --ok:        #16a34a;
  --warn:      #c2760a;
  --danger:    #d33b3b;
  --danger-l:  #fdf0f0;
  --radius:    12px;
  --shadow:    0 1px 2px rgba(18,60,36,.05), 0 1px 3px rgba(18,60,36,.08);
  --shadow-lg: 0 10px 28px rgba(18,60,36,.13);
  --nav-w:     248px;
  /* 中文微软雅黑、英文与数字 Times New Roman。
     顺序不能反：Times New Roman 里没有汉字，浏览器逐字回退到第二个字体，
     于是西文走 TNR、汉字走雅黑，一个 font-family 就分流完了。
     反过来写（雅黑在前）结果全是雅黑——雅黑自带完整西文字形。 */
  --font: "Times New Roman", "Microsoft YaHei", "PingFang SC",
          "Hiragino Sans GB", serif;
  /* 品牌渐变，用在侧栏品牌区、登录页、主按钮的悬浮态 */
  --brand-grad: linear-gradient(135deg, #26ab5f 0%, #0f7a46 100%);
  --ring: rgba(31, 157, 85, .32);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 链接也是正文，用黑字 + 下划线（2026-11-07 配色归黑）。
   原来链接是主色绿，在浅绿底上和"通过/正常"的绿几乎同色，
   于是一句普通说明里的链接看起来像状态标记。 */
a { color: var(--text); text-decoration: underline; text-underline-offset: 2px;
    text-decoration-thickness: 1px; }
a:hover { color: var(--primary-d); }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---------------------------------------------------------- 登录页 */

.login-wrap {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  /* 背景全部用 CSS 画，不引任何图片：
     一层柔光渐变打底 → 一层 24px 网格 → 两团品牌绿光斑。
     网格透明度压到 .05，是为了给白卡片留对比；再清楚一点就像没做完的原型稿。 */
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 16% 18%, rgba(31,157,85,.13), rgba(31,157,85,0) 42%),
    radial-gradient(circle at 84% 82%, rgba(31,157,85,.11), rgba(31,157,85,0) 40%),
    repeating-linear-gradient(0deg,  rgba(31,157,85,.075) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(31,157,85,.075) 0 1px, transparent 1px 24px),
    linear-gradient(160deg, #eef3ff 0%, var(--bg) 55%);
}
/* 两个描边圆做景深，压在卡片下面。绝对定位，不参与 flex 布局，也不挡住点击。 */
.login-wrap::before,
.login-wrap::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.login-wrap::before {
  width: 560px; height: 560px;
  left: -190px; top: -190px;
  border: 1px solid rgba(31,157,85,.16);
  box-shadow: inset 0 0 0 44px rgba(31,157,85,.035);
}
.login-wrap::after {
  width: 420px; height: 420px;
  right: -140px; bottom: -150px;
  border: 1px solid rgba(31,157,85,.14);
  background: radial-gradient(circle, rgba(31,157,85,.07), rgba(31,157,85,0) 70%);
}
@media (max-width: 760px) {
  /* 手机上两个圆会压到卡片边缘，缩小并往角落里退 */
  .login-wrap::before { width: 340px; height: 340px; left: -140px; top: -130px; }
  .login-wrap::after  { width: 260px; height: 260px; right: -110px; bottom: -110px; }
}
.login-card {
  position: relative;
  z-index: 1;
  width: 100%; max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}
.login-card h1 { font-size: 22.5px; margin: 0 0 4px; font-weight: 600; }
.login-card .sub { color: var(--text-dim); font-size: 16px; margin-bottom: 24px; }
/* 没有副标题时（登录页），把 .sub 原本那 24px 的下边距补给标题 */
.login-card.no-sub h1 { margin-bottom: 24px; }
/* ICP 备案号：放在登录页底部，且必须能点进工信部备案系统。
   管局核查看的就是这一处，字号不必大，但不能藏、不能只有图片。 */
.login-card .icp {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--border);
  text-align: center; font-size: 13.5px;
}
.login-card .icp a { color: var(--text-mute); text-decoration: none; }
.login-card .icp a:hover { color: var(--text-dim); text-decoration: underline; }

/* ---------------------------------------------------------- 布局 */

.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--nav-w);
  flex: 0 0 var(--nav-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.brand { font-weight: 600; font-size: 18px; padding: 0 10px 20px; letter-spacing: .2px; }
.brand small { display: block; font-weight: 400; color: var(--text-mute); font-size: 15px; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  color: var(--text-dim); font-size: 17px;
  margin-bottom: 2px; border: none; background: none;
  width: 100%; text-align: left;
}
.nav-item:hover { background: #f3f4f6; color: var(--text); }
.nav-item.active { background: var(--primary-l); color: var(--text); font-weight: 600; }
.nav-item .ico {
  width: 18px; height: 18px; flex: 0 0 18px;
  display: flex; align-items: center; justify-content: center;
}
.nav-item .ico svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  display: block;
}

/* 侧栏徽标：待办条数（现在只有「素材库」的待标注在用）。
   margin-left:auto 把它推到最右——挂在文字后面会跟着标签名浮动，
   长标签（比如以后改成"素材标注"）会把它挤到中间去。 */
.nav-badge {
  margin-left: auto;
  min-width: 20px; height: 18px; padding: 0 6px;
  border-radius: 9px; background: var(--danger); color: #fff;
  font-size: 13px; line-height: 18px; text-align: center; font-weight: 600;
}

.sidebar-foot {
  margin-top: auto; padding: 12px 10px 0;
  border-top: 1px solid var(--border);
  font-size: 15px; color: var(--text-mute);
}
.sidebar-foot b { color: var(--text-dim); font-weight: 500; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 56px; flex: 0 0 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  gap: 12px; padding: 0 20px;
  position: sticky; top: 0; z-index: 20;
}
.topbar h2 { font-size: 18px; font-weight: 600; margin: 0; }
.topbar .spacer { flex: 1; }

/* 顶栏铃铛。红点放在图标右上角，用绝对定位而不是 flex：
   数字宽度会变（1 → 9+），跟着布局走会把图标挤歪。 */
.notif-wrap { position: relative; }
.notif-bell {
  position: relative; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 8px;
  background: transparent; cursor: pointer; color: var(--text-mute);
}
.notif-bell:hover { background: var(--hover, #f3f4f6); color: var(--text-dim); }
.notif-bell .ico svg { width: 19px; height: 19px; }
.notif-dot {
  position: absolute; top: 2px; right: 0;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--danger); color: #fff;
  font-size: 12px; line-height: 17px; text-align: center; font-weight: 600;
}
.notif-panel {
  position: absolute; top: 42px; right: 0; z-index: 40;
  width: min(380px, 86vw); max-height: 70vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 23, 42, .14);
  padding: 6px;
}
.notif-head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; font-size: 15px; font-weight: 600;
  border-bottom: 1px solid var(--border); color: var(--text-dim);
}
.notif-head .grow { flex: 1; }
.notif-empty { padding: 22px 10px; text-align: center; color: var(--text-mute); font-size: 15px; }
.notif-item {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: 0; border-bottom: 1px solid var(--border);
  padding: 10px; font: inherit;
}
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: var(--hover, #f8fafc); }
.notif-row { display: flex; align-items: flex-start; gap: 8px; }
.notif-kind { flex: 0 0 auto; }
.notif-title { font-size: 15px; line-height: 1.5; color: var(--text); }
.notif-time { margin-top: 4px; font-size: 13px; color: var(--text-mute); }

.content { padding: 20px; flex: 1; }

/* ---------------------------------------------------------- 卡片 / 看板 */

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.card .label { color: var(--text-dim); font-size: 16px; }
.card .value { font-size: 29px; font-weight: 600; margin-top: 6px; line-height: 1.2; }
.card .value small { font-size: 16px; font-weight: 400; color: var(--text-mute); margin-left: 3px; }
.card.alert { border-color: #fbd38d; background: #fffdf7; }
.card.alert .value { color: var(--warn); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}
.panel-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.panel-head h3 { margin: 0; font-size: 17px; font-weight: 600; }
.panel-body { padding: 18px; }

/* 卡片内的第二层工具条：tab 页和它下面的「共 N 条 / 新建」用它。
   和 panel-head 的区别只是更轻——同一个 panel 里出现两条同样重的横栏，
   看起来像两张卡片粘在一起。 */
.panel-toolbar {
  padding: 9px 18px;
  background: #fafbfc;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.panel-toolbar h3 { margin: 0; font-size: 16px; font-weight: 500; color: var(--text-dim); }

/* ---------------------------------------------------------- 表单 */

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 16px; color: var(--text-dim); margin-bottom: 5px; }
.field .hint { font-size: 15px; color: var(--text-mute); margin-top: 4px; }

input[type=text], input[type=password], input[type=number],
input[type=date], input[type=datetime-local], select, textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
textarea { resize: vertical; min-height: 76px; }
select { appearance: none; background-image: none; padding-right: 28px; }

.form-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }

/* ---------------------------------------------------------- 按钮 */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  font-size: 16px; font-weight: 500;
  transition: background .12s, border-color .12s;
  white-space: nowrap;
}
.btn:hover { background: #f6f7f9; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-d); }
.btn.danger { color: var(--danger); border-color: #f3c0c0; background: var(--danger-l); }
.btn.sm { padding: 5px 10px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-dim); }
.btn.ghost:hover { background: #f3f4f6; }

/* ---------------------------------------------------------- 表格 */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th {
  text-align: left; font-weight: 500; color: var(--text-dim);
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  white-space: nowrap; background: #fafbfc;
}
td { padding: 11px 14px; border-bottom: 1px solid #f0f1f3; vertical-align: middle; }
tbody tr:hover { background: #fafbfc; }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-empty { padding: 40px 20px; text-align: center; color: var(--text-mute); }

/* ---------------------------------------------------------- 徽标 */

.tag {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 15px; line-height: 18px; white-space: nowrap;
  background: #f1f3f5; color: var(--text-dim);
}
.tag.ok      { background: #e8f7ee; color: #15803d; }
.tag.warn    { background: #fff5e6; color: #b45309; }
.tag.danger  { background: #fdecec; color: #b91c1c; }
.tag.info    { background: var(--primary-l); color: var(--primary-d); }

/* ---------------------------------------------------------- 抽屉 */

.drawer-mask {
  position: fixed; inset: 0; background: rgba(16,24,40,.4);
  z-index: 60; opacity: 0; pointer-events: none; transition: opacity .18s;
}
.drawer-mask.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(520px, 100%);
  background: var(--surface);
  z-index: 61;
  transform: translateX(100%);
  transition: transform .2s ease;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 32px rgba(16,24,40,.12);
}
.drawer.open { transform: none; }
.drawer-head {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.drawer-head h3 { margin: 0; font-size: 18px; font-weight: 600; flex: 1; }
.drawer-body { padding: 20px; overflow-y: auto; flex: 1; }
.drawer-foot {
  padding: 14px 20px; border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: flex-end;
}

/* ---------------------------------------------------------- 提示 */

.toast-wrap {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 10px 16px; border-radius: 8px;
  background: #1f2328; color: #fff; font-size: 16px;
  box-shadow: var(--shadow-lg);
  animation: toast-in .18s ease;
  max-width: 420px;
}
.toast.err { background: #b91c1c; }
.toast.ok  { background: #15803d; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }

.alert-box {
  padding: 12px 14px; border-radius: 8px; font-size: 16px;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  margin-bottom: 16px;
}
.alert-box.danger { background: var(--danger-l); border-color: #fecaca; color: #991b1b; }

.muted { color: var(--text-mute); font-size: 16px; }
.mono { font-variant-numeric: tabular-nums; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }

.kv { display: grid; grid-template-columns: 112px 1fr; gap: 10px 14px; font-size: 16px; }
.kv dt { color: var(--text-mute); }
.kv dd { margin: 0; }

.section-title {
  font-size: 16px; font-weight: 600; color: var(--text-dim);
  margin: 22px 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.section-title:first-child { margin-top: 0; }

/* 加载骨架 */
.skeleton { background: linear-gradient(90deg,#f1f2f4 25%,#e8eaed 37%,#f1f2f4 63%);
  background-size: 400% 100%; animation: sk 1.2s infinite; border-radius: 6px; height: 16px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------------------------------------------------------- 三审工作台 */

.rv-stats { display: grid; gap: 12px; grid-template-columns: repeat(5, 1fr); margin-bottom: 14px; }

.rv-stat {
  text-align: left; cursor: pointer; font-family: inherit;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px 15px;
  box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.rv-stat:hover { border-color: #c7cbd1; }
.rv-stat.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-l); }
.rv-stat-label { font-size: 15px; color: var(--text-dim); }
.rv-stat-label span { color: var(--text-mute); font-size: 14px; }
.rv-stat-value { font-size: 28px; font-weight: 600; margin-top: 4px; line-height: 1.1; }
.rv-stat.zero .rv-stat-value { color: var(--text-mute); }
.danger-stat .rv-stat-value { color: var(--danger); }
.danger-stat.active { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-l); }

.rv-toolbar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.rv-check { display: flex; align-items: center; gap: 6px; font-size: 15.5px; color: var(--text-dim); cursor: pointer; }
.rv-check input { accent-color: var(--primary); }

.rv-list { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.rv-row {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); cursor: pointer;
  transition: border-color .15s;
  /* flex 子项默认 min-width:auto —— 内容里只要有一个不肯换行的长串
     （比如标题 + 三个标签排成一行），这一行就会比容器还宽，
     在手机上直接顶出屏幕，右边按钮点不到。必须显式归零。 */
  min-width: 0; max-width: 100%;
}
.rv-row:hover { border-color: #c7cbd1; }
.rv-row.overdue { border-left: 3px solid var(--danger); }

.rv-row-main { flex: 1; min-width: 0; }
.rv-row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.rv-title-text { font-weight: 600; font-size: 17px; min-width: 0; overflow-wrap: anywhere; }

.rv-gate-chip { font-size: 14px; padding: 1px 8px; border-radius: 20px; font-weight: 500; flex: 0 0 auto; }
.g-plan    { background: #eef2ff; color: #4338ca; }
.g-copy    { background: #ecfdf5; color: #047857; }
.g-image   { background: #fef3c7; color: #b45309; }
.g-publish { background: var(--primary-l); color: var(--primary-d); }

.rv-flag { font-size: 14px; padding: 1px 6px; border-radius: 4px; flex: 0 0 auto; }
.rv-flag.danger { background: var(--danger-l); color: #b91c1c; }
.rv-flag.warn { background: #fff5e6; color: #b45309; }

.rv-row-sub {
  display: flex; align-items: center; gap: 6px;
  margin-top: 5px; font-size: 15px; color: var(--text-mute);
  min-width: 0; overflow: hidden;
}
.rv-dot { opacity: .5; flex: 0 0 auto; }
/* 账号名和学科不允许被压缩换行——"会计专硕小课/堂"这种断法会让人
   读两遍才反应过来。要挤就挤摘要那一段。 */
.rv-row-sub > span:not(.rv-excerpt):not(.rv-dot) {
  flex: 0 0 auto; white-space: nowrap;
}
/* 摘要那一段是唯一允许收缩的：账号名、学科不能截，摘要可以截。
   nowrap 放在自己身上而不是父级，否则父级整行都不换行，反而撑宽。 */
.rv-excerpt {
  flex: 0 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 500px;
}

.rv-row-side { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.rv-row-due { display: flex; flex-direction: column; align-items: flex-end; font-size: 15px; min-width: 128px; }
.due-over { color: var(--danger); font-weight: 600; }

.rv-dots { display: flex; gap: 6px; align-items: center; }
.rv-dot-item { display: flex; align-items: center; }
.rv-dot-item i { width: 8px; height: 8px; border-radius: 50%; background: #e5e7eb; display: block; }
.rv-dot-item.done i { background: var(--ok); }
.rv-dot-item.now  i { background: var(--primary); box-shadow: 0 0 0 3px var(--primary-l); }

.rv-empty { padding: 56px 20px; text-align: center; color: var(--text-dim); }
.rv-empty-icon {
  width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%;
  background: #e8f7ee; color: var(--ok);
  display: flex; align-items: center; justify-content: center;
  font-size: 25px;
}

/* ---- 详情抽屉 ---- */

.rv-detail { display: flex; flex-direction: column; gap: 16px; }

.rv-steps { display: flex; }
.rv-step {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; color: var(--text-mute);
  padding-bottom: 8px; border-bottom: 2px solid var(--border);
}
.rv-step.done { color: var(--ok); border-color: var(--ok); }
.rv-step.now  { color: var(--primary); border-color: var(--primary); font-weight: 600; }
.rv-step-no {
  width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%;
  background: #eef0f3; color: var(--text-dim); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.rv-step.done .rv-step-no { background: var(--ok); color: #fff; }
.rv-step.now  .rv-step-no { background: var(--primary); color: #fff; }
.rv-step-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rv-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.rv-meta-item { display: flex; gap: 6px; align-items: baseline; font-size: 16px; }
.rv-meta-key { color: var(--text-mute); font-size: 15px; }
.rv-meta-val { font-weight: 500; }

.rv-seg { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.rv-seg.open { border-color: #d6dae0; box-shadow: var(--shadow); }
.rv-seg-head {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; cursor: pointer; background: #fafbfc;
  user-select: none;
}
.rv-seg-head:hover { background: #f3f5f7; }
.rv-seg-no {
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%;
  background: var(--primary-l); color: var(--primary-d);
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.rv-seg-title { font-weight: 600; font-size: 16px; flex: 0 0 auto; white-space: nowrap; }
.rv-seg-meta { font-size: 15px; color: var(--text-mute); min-width: 0; }
/* 折叠时的摘要：单行省略。展开时是同宽度的"431 字"，所以这里加个
   上限而不是全部挤掉——摘要是给人扫的，不是给人读的。 */
.rv-seg-meta.preview {
  flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 58%;
}
.rv-seg-stamp { margin-left: auto; font-size: 14px; padding: 2px 8px; border-radius: 20px; }
.rv-seg-stamp.ok  { background: #e8f7ee; color: #15803d; }
.rv-seg-stamp.now { background: var(--primary-l); color: var(--primary-d); }
/* chev 自己带 margin-left:auto，是为了"没有状态徽标时"也靠在最右；
   有徽标时徽标先吃掉这份 auto，chev 紧跟其后，两个都在右侧。 */
.rv-chev { margin-left: auto; color: var(--text-mute); display: flex; align-items: center; transition: transform .15s; }
.rv-seg-stamp + .rv-chev { margin-left: 0; }
.rv-chev svg { display: block; }
.rv-seg-head.collapsed .rv-chev { transform: rotate(-90deg); }

.rv-seg-body { padding: 14px 16px; border-top: 1px solid var(--border); }
.rv-seg-body.hidden { display: none; }
.rv-seg-empty { color: var(--text-mute); font-size: 16px; padding: 3px 0; line-height: 1.7; }
.rv-seg-note {
  padding: 10px 16px; background: #fffbeb;
  border-top: 1px solid #fde68a; font-size: 15.5px; color: #92400e;
}
.rv-title-line { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--text-mute); }
.rv-title-key { color: var(--text-mute); font-size: 15px; margin-right: 8px; }

.rv-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.rv-img {
  position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden;
  border: 1px solid var(--border); border-radius: 8px; background: #f3f4f6;
}
.rv-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 移除角标常显不放 hover 里：触屏没有 hover，藏在 hover 后等于给一半人没有 */
.rv-img-x {
  position: absolute; top: 4px; right: 4px; z-index: 2;
  width: 22px; height: 22px; line-height: 1; border-radius: 50%;
  border: none; cursor: pointer; font: inherit; font-size: 18px;
  color: #fff; background: rgba(0,0,0,.45);
}
.rv-img-x:hover { background: var(--danger); }
.rv-img-status { display: flex; align-items: center; gap: 8px; font-size: 15px; }

.rv-hist { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.rv-sec-title { font-size: 15px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.rv-hist-row { font-size: 15.5px; color: var(--text-dim); padding: 6px 0; border-top: 1px dashed var(--border); }
.rv-hist-row:first-of-type { border-top: none; }
.rv-hist-gate { display: inline-block; min-width: 34px; font-weight: 600; color: var(--text); }
.rv-hist-note {
  margin-top: 5px; padding: 6px 9px; border-radius: 6px;
  background: #fffbeb; color: #92400e; font-size: 15.5px;
}

.rv-ref { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; background: #fafbfc; }
.rv-ref summary { cursor: pointer; font-size: 15.5px; color: var(--text-dim); font-weight: 500; list-style: none; }
.rv-ref summary::-webkit-details-marker { display: none; }
/* 用 CSS 画三角而不是 ▸ 字符：字符在不同字体下大小差很多，三角可控 */
.rv-ref summary::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 0; height: 0; margin-right: 7px;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform .15s;
}
.rv-ref[open] summary::before { transform: rotate(90deg); }
.rv-ref-item { margin-top: 12px; }
.rv-ref-key { font-size: 14px; color: var(--text-mute); letter-spacing: .4px; margin-bottom: 4px; }
.rv-ref-val { font-size: 16px; }
.rv-ref-line { font-size: 15.5px; padding: 2px 0; }
.rv-ref-line-title { color: var(--text); }
.rv-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; align-items: center; }
.rv-chip-k { font-size: 14px; color: var(--text-mute); margin-right: 2px; }
.rv-chip { font-size: 14px; padding: 1px 7px; border-radius: 20px; background: #eef0f3; color: var(--text-dim); }
.rv-chip.bad { background: var(--danger-l); color: #b91c1c; }

.rv-reject-box { border: 1px solid #fecaca; background: var(--danger-l); border-radius: 10px; padding: 14px; }
.rv-reject-title { font-size: 16px; font-weight: 600; color: #991b1b; margin-bottom: 9px; }
.rv-reject-box textarea {
  width: 100%; border: 1px solid #f3c0c0; border-radius: 8px;
  padding: 9px 10px; resize: vertical; font-size: 16px; line-height: 1.6;
  background: #fff;
}
.rv-reject-hint { font-size: 15px; color: #b45309; margin-top: 7px; line-height: 1.6; }
.rv-reject-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }

/* 演示模式标记：必须显眼，否则有人会把假数据当成真实经营数据 */
.demo-mark {
  display: inline-block; margin-top: 8px;
  font-size: 15px; color: #b45309;
  background: #fff5e6; border: 1px solid #fde68a;
  padding: 2px 8px; border-radius: 6px;
}

/* ---- Markdown 正文（方案/文案/手册共用）---- */

.md { font-size: 16.5px; line-height: 1.72; }
.md > *:first-child { margin-top: 0; }
.md > *:last-child { margin-bottom: 0; }
.md p { margin: 0 0 9px; }
.md h3, .md h4, .md h5, .md h6 { margin: 15px 0 7px; font-size: 16.5px; font-weight: 600; }
/* 方案是分节的，小标题必须一眼能扫到。只加粗不够——长度差不多的加粗行
   在一屏里会被当成正文，所以左边加一条竖线做视觉锚点。 */
.md h3 {
  font-size: 17px; padding-left: 9px;
  border-left: 3px solid var(--primary);
  line-height: 1.4;
}
.md ul, .md ol { margin: 0 0 9px; padding-left: 20px; }
.md li { margin: 3px 0; }
.md blockquote {
  margin: 0 0 9px; padding: 7px 12px;
  border-left: 3px solid var(--border); border-radius: 0 6px 6px 0;
  background: #fafbfc; color: var(--text-dim);
}
.md code {
  background: #f1f3f5; padding: 1px 5px; border-radius: 4px; font-size: 15.5px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.md hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }

/* ============================================================
   审核历史时间线
   
   为什么用竖线时间线而不是表格：
   审核是有先后因果的（交稿→驳回→改稿→通过），表格抹掉了这个顺序，
   而"是先驳回还是先通过"正是复盘时要看的。
   ============================================================ */

.rv-hist-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rv-hist-head .rv-sec-title { margin-bottom: 0; }
.rv-hist-empty { font-size: 15.5px; color: var(--text-mute); padding: 6px 0; }

.rv-timeline { position: relative; padding-left: 4px; }
.rv-tl-row {
  position: relative; display: flex; gap: 10px;
  padding: 7px 0 7px 16px;
  border-left: 1px solid var(--border);
  margin-left: 5px;
}
.rv-tl-row:last-child { border-left-color: transparent; }
.rv-tl-dot {
  position: absolute; left: -4.5px; top: 13px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-mute); box-shadow: 0 0 0 2px var(--surface);
}
.rv-tl-row.approve .rv-tl-dot { background: var(--ok); }
.rv-tl-row.reject  .rv-tl-dot { background: var(--warn); }
.rv-tl-row.submit  .rv-tl-dot { background: var(--primary); }
.rv-tl-row.undo    .rv-tl-dot { background: var(--text-mute); }
.rv-tl-row.direct  .rv-tl-dot { background: var(--danger); }

.rv-tl-main { min-width: 0; flex: 1; }
.rv-tl-title { font-size: 16px; color: var(--text); display: flex; flex-wrap: wrap; gap: 5px; align-items: baseline; }
.rv-tl-gate {
  font-size: 14px; padding: 1px 5px; border-radius: 4px;
  background: var(--primary-l); color: var(--primary-d); font-weight: 600;
}
.rv-tl-act { font-weight: 600; }
.rv-tl-row.reject .rv-tl-act { color: var(--warn); }
.rv-tl-row.direct .rv-tl-act { color: var(--danger); }
.rv-tl-time { font-size: 15px; color: var(--text-mute); margin-top: 2px; }
.rv-tl-note {
  margin-top: 5px; padding: 5px 9px; border-radius: 6px;
  background: #f7f8fa; color: var(--text-dim); font-size: 15.5px;
  white-space: pre-wrap;
}
.rv-tl-row.reject .rv-tl-note { background: #fffbeb; color: #92400e; }

/* 被撤回的那条：划掉 + 变灰，但仍然看得见。
   直接隐藏会让人以为历史被抹了——留着才叫"留痕"。 */
.rv-tl-row.void .rv-tl-title,
.rv-tl-row.void .rv-tl-note { text-decoration: line-through; opacity: .55; }
.rv-tl-void {
  font-size: 14px; padding: 1px 5px; border-radius: 4px;
  background: #f1f3f5; color: var(--text-mute);
}

.rv-undo-why {
  margin-top: 8px; font-size: 15px; color: var(--text-mute);
  padding: 6px 10px; border-radius: 6px; background: #f7f8fa;
}

.rv-undo-box {
  margin-top: 10px; padding: 12px 14px;
  border: 1px solid #fecaca; border-radius: 10px; background: var(--danger-l);
}
.rv-undo-box textarea { margin-top: 8px; }

/* ============================================================
   账号工作台
   ============================================================ */

.acc-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.acc-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  cursor: pointer; transition: box-shadow .15s, border-color .15s, transform .15s;
}
.acc-card:hover { border-color: #c7d2fe; box-shadow: var(--shadow-lg); transform: translateY(-1px); }

.acc-card-top { display: flex; align-items: center; gap: 8px; }
.acc-name { font-weight: 600; font-size: 18px; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-status { font-size: 14px; color: var(--text-mute); }
.acc-code { font-size: 15px; color: var(--text-dim); margin-top: 3px; }
.acc-persona { font-size: 15px; color: var(--text-mute); margin-top: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.acc-stats { display: flex; gap: 18px; margin-top: 12px; }
.acc-stat { display: flex; align-items: baseline; gap: 4px; }
.acc-stat-n { font-size: 21.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.acc-stat-l { font-size: 15px; color: var(--text-mute); }
.acc-stat.warn .acc-stat-n { color: var(--warn); }

.acc-last { font-size: 15px; color: var(--text-mute); margin-top: 8px; }

.acc-empty { text-align: center; padding: 70px 20px; color: var(--text-dim); }
.acc-empty-icon { font-size: 37px; color: var(--text-mute); margin-bottom: 10px; }

/* 抽屉内 */
.acc-detail { display: flex; flex-direction: column; gap: 12px; }
.acc-head-name { font-size: 20px; font-weight: 650; }
.acc-head-sub { font-size: 15.5px; color: var(--text-mute); margin-top: 2px; }

.acc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.acc-tab {
  border: none; background: none; cursor: pointer;
  padding: 8px 13px; font-size: 16px; color: var(--text-dim);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.acc-tab:hover { color: var(--text); }
.acc-tab.active { color: var(--primary-d); border-bottom-color: var(--primary); font-weight: 600; }

.acc-pane { min-height: 120px; }
.acc-sec-title { font-size: 15px; font-weight: 600; color: var(--text-dim); margin: 14px 0 6px; }

/* 帖子列表 */
.acc-filter { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.acc-chip {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
  border-radius: 999px; padding: 3px 11px; font-size: 15.5px; cursor: pointer;
}
.acc-chip:hover { border-color: #c7d2fe; }
.acc-chip.active { background: var(--primary-l); border-color: #bfd3fe; color: var(--primary-d); font-weight: 600; }

/* ---- 分组方式 / 排序（v1.12.0）
   放在 chips 上方单独一行：chips 是「筛到某一组」，下拉是「按什么分组」，
   层级不同，混在一排会让人以为托管缺口也是一个筛选项。 */
.acc-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 0 16px 10px; }
/* 标签不许折成两行：「分组方式」在窄屏被挤成「分组/方式」会读成两个词。 */
.acc-sel { display: inline-flex; align-items: center; gap: 6px; font-size: 15.5px; color: var(--text-dim); white-space: nowrap; }
.acc-sel > span { flex: none; }
.acc-select {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 8px; padding: 4px 8px; font-size: 15.5px; font-family: inherit; cursor: pointer;
}
.acc-select:focus { outline: 2px solid var(--ring); outline-offset: 1px; }

/* ---- 卡片上的托管标记与私聊数 */
.acc-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.acc-flag {
  font-size: 15px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-mute); background: #fafdfb;
}
.acc-flag.good { color: var(--primary-d); border-color: #bfe6cf; background: var(--primary-l); }
.acc-flag.warn { color: var(--warn); border-color: #f0dcc0; background: #fdf7ec; }
.acc-flag.auto.editable { cursor: pointer; }
.acc-flag.auto.editable:hover { filter: brightness(.96); }

/* ---- 托管抽屉 */
.preset-row { display: flex; gap: 8px; flex-wrap: wrap; }
.preset-btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
  border-radius: 8px; padding: 6px 12px; font-size: 15.5px; cursor: pointer;
}
.preset-btn:hover { border-color: var(--primary); color: var(--primary-d); }
.mode-box { display: flex; flex-direction: column; gap: 8px; }
.mode-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mode-label { width: 52px; font-size: 15.5px; color: var(--text-dim); flex: 0 0 auto; }
.mode-btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
  border-radius: 8px; padding: 5px 10px; font-size: 15.5px; cursor: pointer;
}
.mode-btn.on { background: var(--primary-l); border-color: var(--primary); color: var(--primary-d); font-weight: 600; }
.hint-box {
  margin-top: 12px; padding: 8px 10px; border-radius: 8px;
  background: #fbfdf9; border: 1px dashed var(--border);
  font-size: 15px; color: var(--text-mute); line-height: 1.6;
}

.acc-post-title { display: flex; flex-direction: column; gap: 2px; max-width: 420px; }
.acc-post-t { font-weight: 500; }
/* 帖子唯一身份编码：等宽数字，方便逐位核对与口头报号 */
.acc-post-code { font-size: 15px; color: var(--text-dim);
  font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.acc-post-ex { font-size: 15px; color: var(--text-mute);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 人设卡（37 字段 · A–F 分组） */
.pc-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 2px 0 12px; border-bottom: 1px solid var(--border); font-size: 16px;
}
.pc-groups { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; }
.pc-group { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.pc-group-head {
  cursor: pointer; padding: 10px 13px; font-weight: 650; font-size: 16px;
  color: var(--primary-d); list-style: none;
}
.pc-group-head::-webkit-details-marker { display: none; }
.pc-group-head::before { content: "▸ "; color: var(--text-mute); }
.pc-group[open] > .pc-group-head::before { content: "▾ "; }
.pc-group-body { padding: 2px 13px 13px; display: flex; flex-direction: column; gap: 11px; }
.pc-field { display: flex; flex-direction: column; gap: 4px; }
.pc-label { font-size: 15.5px; color: var(--text-dim); }
.pc-req { color: var(--danger); margin-left: 2px; }
.pc-field input, .pc-field textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 16px;
  line-height: 1.7; padding: 7px 9px;
  border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg); color: var(--text);
}
.pc-field textarea { overflow: hidden; min-height: 40px; resize: vertical; }
.pc-field input:focus, .pc-field textarea:focus {
  outline: none; border-color: var(--primary); background: var(--surface);
}
.pc-ro { background: #f4f7f5 !important; color: var(--text-dim) !important; }

/* 内容占比：目标（人工设定）× 实际（按已发布帖子现算） */
.pc-ratio { gap: 8px; }
.pc-ratio-hint { font-size: 15px; color: var(--text-mute); line-height: 1.65; }
.pc-ratio-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.pc-ratio-table th, .pc-ratio-table td {
  padding: 7px 8px; border-bottom: 1px solid var(--border); text-align: left;
}
.pc-ratio-table thead th {
  font-size: 15px; font-weight: 600; color: var(--text-dim); background: var(--bg);
}
.pc-ratio-table th.num, .pc-ratio-table td.num { text-align: right; }
.pc-ratio-table tbody tr:last-child td { border-bottom: 0; }
.pc-ratio-table tfoot td { border-top: 1px solid var(--border); font-weight: 600; }
.pc-ratio-name, .pc-ratio-target { white-space: nowrap; }
/* 列宽钉住：目标那列如果自动撑开，会把数字和表头推到两边对不齐 */
.pc-ratio-col-target { width: 162px; }
.pc-ratio-col-actual { width: 132px; }
.pc-ratio-col-cnt    { width: 110px; }
.pc-ratio-target { text-align: right; }
.pc-ratio-table .pc-ratio-in {
  width: 76px; box-sizing: border-box; text-align: right;
  font: inherit; font-size: 16px; padding: 4px 6px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text);
}
.pc-ratio-in:focus { outline: none; border-color: var(--primary); }
.pc-ratio-pct { margin-left: 4px; color: var(--text-dim); font-size: 15px; }
.pc-ratio-actual, .pc-ratio-cnt, .pc-ratio-sum { font-variant-numeric: tabular-nums; }
.pc-ratio-actual { color: var(--text-dim); }
.pc-ratio-sum.bad { color: var(--danger); }
.pc-ratio-foot { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.pc-ratio-note { font-size: 15px; color: var(--text-mute); line-height: 1.6; }

/* 发布记录里的类型下拉：跟在标题后面一小格，不抢宽度 */
.acc-type-sel {
  font: inherit; font-size: 15px; padding: 2px 4px; max-width: 120px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text);
}
.pc-actions {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0 2px; border-top: 1px solid var(--border);
}
.pc-actions input {
  width: 260px; box-sizing: border-box; font: inherit; font-size: 16px;
  padding: 7px 9px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg); color: var(--text);
}

/* 发布记录的数据表现：上行累计赞/评，下行近一周增量。
   增量单占一行、字号小一档，是为了让「总分」和「最近走势」分开读；
   挤在一行会用 · 连成一条，眼睛要切好几次。 */
.acc-metric { line-height: 1.45; }
.acc-metric-sub { font-size: 15.5px; color: var(--text-dim); margin-top: 2px; }

/* 导回预览（抽屉内） */
.pc-imp { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.pc-imp-tip {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  padding: 9px 12px; border-radius: 8px; font-size: 15.5px;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
}
.pc-imp-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding-bottom: 9px; border-bottom: 1px solid var(--border);
}
.pc-imp-head b { color: var(--primary-d); }
.pc-imp-warn { color: #b45309; }
.pc-imp-file { font-size: 15px; width: 100%; }
.pc-imp-li { margin-top: 3px; line-height: 1.6; }
.pc-imp-title { font-weight: 650; color: var(--text-dim); margin-top: 2px; }
.pc-imp-list {
  display: flex; flex-direction: column; gap: 1px;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.pc-imp-row {
  display: grid; grid-template-columns: 152px 1fr; gap: 10px;
  padding: 8px 11px; background: var(--surface); align-items: start;
}
.pc-imp-row + .pc-imp-row { border-top: 1px solid var(--border); }
.pc-imp-label { font-size: 15.5px; color: var(--text-dim); }
.pc-imp-vals { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pc-imp-old {
  color: var(--text-mute); text-decoration: line-through;
  white-space: pre-wrap; word-break: break-word;
}
.pc-imp-new {
  color: var(--text); white-space: pre-wrap; word-break: break-word;
  border-left: 2px solid var(--primary-l); padding-left: 8px;
}
.pc-imp-same { padding: 10px 0; }
.pc-imp-hint { font-size: 15px; line-height: 1.7; padding-top: 2px; }

/* 人设卡表单 */
.acc-form { display: flex; flex-direction: column; gap: 11px; }
.acc-form-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  flex-wrap: wrap; font-size: 16px;
}
.acc-form-actions { display: flex; justify-content: flex-end; margin-top: 12px; }

.acc-versions { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 4px; }
.pv-row {
  display: grid; grid-template-columns: 46px 104px 150px 1fr auto;
  gap: 10px; align-items: center;
  padding: 7px 0; border-bottom: 1px dashed var(--text-mute); font-size: 15.5px;
}
.pv-no { font-weight: 650; color: var(--primary-d); }
.pv-who { color: var(--text); }
.pv-time { color: var(--text-mute); font-variant-numeric: tabular-nums; }
.pv-note { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-cur { font-size: 14px; color: var(--ok); font-weight: 600; }

.pv-detail {
  margin: 8px 0 12px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px; background: #fafbfc;
}
.pv-detail-head { display: flex; align-items: center; gap: 10px;
  font-size: 15.5px; color: var(--text-dim); margin-bottom: 8px; }
.pv-note-line { font-size: 15.5px; color: var(--text-dim); margin-bottom: 8px; }
.pv-f { margin-bottom: 8px; }
.pv-k { font-size: 15px; color: var(--text-mute); margin-bottom: 2px; }
.pv-v { font-size: 15.5px; white-space: pre-wrap; line-height: 1.65; }

/* 归属 */
.acc-assign { display: flex; flex-direction: column; }
.as-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--text-mute); font-size: 16px;
}
.as-row.old { opacity: .65; }
.as-name { font-weight: 600; }
.as-add { margin-top: 20px; }
.as-add-row { display: flex; gap: 8px; align-items: center; }
.as-add-row select { flex: 1; max-width: 240px; }

/* ------------------------------------------------- 金额遮罩（默认不显示） */

.page-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}

.money {
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
  color: var(--text);
  /* 虚线底提示"这个能点"，同时不显眼 */
  border-bottom: 1px dashed var(--text-mute);
  user-select: none;
}
.money:hover { border-bottom-color: var(--text-dim); }
.money-on { letter-spacing: 0; border-bottom-color: transparent; }
.money-btn.on { color: var(--primary); border-color: currentColor; }

/* ---------------------------------------------------------- 账号总览 */

/* 汇总条：四个数字，一眼看完"140 个号里有多少有问题"。
   数字在前、标签在后，是因为老板扫这一行的时候先看数不看字。 */
.ov-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ov-stat {
  background: var(--surface);
  padding: 14px 18px;
}
.ov-stat-num {
  font-size: 29px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.ov-stat-label { font-size: 16px; color: var(--text-dim); margin-top: 2px; }
.ov-stat-hint  { font-size: 15px; color: var(--text-mute); margin-top: 4px; line-height: 1.45; }
.ov-stat.ok  .ov-stat-num { color: var(--ok); }
.ov-stat.warn .ov-stat-num { color: var(--warn); }
.ov-stat.bad .ov-stat-num { color: var(--danger); }

.ov-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* 账号码等宽：一眼能看出 DM-KJ-01 和 DM-KJ-1 的差别，
   这在批量建号之后是对账的第一道眼睛 */
.ov-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  letter-spacing: -.2px;
  white-space: nowrap;
}

.ov-dim { color: var(--text-mute); font-size: 15.5px; }

/* ---- 导入抽屉 ---- */
.ov-import { display: flex; flex-direction: column; gap: 12px; }

.ov-drop {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.ov-drop:hover { border-color: var(--primary); background: var(--primary-l); }
.ov-drop-main { font-size: 18px; font-weight: 500; margin-bottom: 4px; }

.ov-opts { display: flex; flex-direction: column; gap: 8px; }
.ov-opts label {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 16.5px; color: var(--text-dim); cursor: pointer;
}
.ov-opts input[type="checkbox"] { margin-top: 4px; flex: none; }

.ov-result:empty { display: none; }
.ov-res-head { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.ov-hint {
  font-size: 15.5px; color: var(--primary-d);
  background: var(--primary-l);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
}
.ov-warn-line {
  font-size: 15.5px; color: var(--warn);
  background: #fff5e6;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 10px 0;
}
.ov-alert {
  font-size: 16px; color: var(--danger);
  background: var(--danger-l);
  border-radius: 8px;
  padding: 10px 12px;
}

.ov-err  { font-size: 15.5px; color: var(--danger); line-height: 1.55; }
.ov-warn { font-size: 15.5px; color: var(--warn);   line-height: 1.55; }

/* ---------------------------------------------------------- 手机 */

@media (max-width: 760px) {
  :root { --nav-w: 0px; }

  .layout { flex-direction: column; }

  .sidebar {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    width: 100%; height: auto; flex: none;
    flex-direction: row; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    border-right: none; border-top: 1px solid var(--border);
    z-index: 50; overflow-x: auto; overflow-y: hidden;
    gap: 2px;
  }
  .brand, .sidebar-foot { display: none; }

  /* 导航项外面还套了一层 <nav>，它是 .sidebar 的子元素、.nav-item 的父元素。
     只给 .sidebar 设 row 是不够的——真正的排列发生在 nav 里面。
     少了这一条，六个按钮会在 nav 里纵向堆成一列，把内容全挡住。 */
  .sidebar nav {
    display: flex; flex-direction: row;
    width: 100%; gap: 2px;
  }

  .nav-item {
    /* 必须显式 width: auto——桌面规则里是 width:100%，
       手机上不覆盖的话每个按钮都占满整行，底部导航会堆成六层。
       flex 也不能再等分：字号抬到 13.5px 后「内容审核」四个字在
       375px 屏的六等分格子里放不下，会折成「内容 / 审核」两行，
       十一项时更惨。改成按内容占宽 + 不换行，条数多了由 .sidebar
       横向滚动（它本来就是 overflow-x:auto）。 */
    flex: 0 0 auto; width: auto; min-width: 60px;
    flex-direction: column; gap: 3px;
    padding: 6px 8px; font-size: 13.5px; text-align: center;
    margin-bottom: 0; white-space: nowrap;
  }
  .nav-item .ico { width: 20px; height: 20px; flex-basis: 20px; }
  .nav-item .ico svg { width: 19px; height: 19px; }

  .content { padding: 14px 12px 84px; }
  .topbar { padding: 0 14px; height: 56px; flex-basis: 56px; }
  .topbar h2 { font-size: 18px; }

  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 13px 14px; }
  .card .value { font-size: 25px; }

  .form-row { grid-template-columns: 1fr; }

  /* 表格 → 卡片 */
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  tbody tr {
    border: 1px solid var(--border); border-radius: 10px;
    margin-bottom: 10px; padding: 6px 2px; background: var(--surface);
  }
  tbody tr:hover { background: var(--surface); }
  td {
    border: none; padding: 7px 14px;
    display: flex; justify-content: space-between; gap: 14px;
    text-align: right;
  }
  td::before {
    content: attr(data-label);
    color: var(--text-mute); font-size: 15px;
    text-align: left; flex: 0 0 auto;
  }
  td.num { text-align: right; }
  td:empty { display: none; }

  /* 三审：手机上四步条要留字，数字 + 两字标签在 25% 宽度里放得下；
     再窄就得砍标签，那样人要看序号猜是哪一关。 */
  .rv-stats { grid-template-columns: 1fr 1fr; gap: 9px; }
  .rv-stat { padding: 11px 12px; }
  .rv-stat-value { font-size: 23.5px; }
  .rv-stat-label span { display: none; }

  .rv-row { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 13px; }
  /* 手机上底下这一排改成"左对齐 + 按钮靠右"：
     原来用 space-between 会在圆点和截止日之间留一大段空白，
     看着像少了个元素。 */
  .rv-row-side { justify-content: flex-start; gap: 10px 12px; flex-wrap: wrap; }
  .rv-row-side .btn { margin-left: auto; }
  .rv-row-due { align-items: flex-start; min-width: 0; }
  .rv-excerpt { max-width: 100%; }
  .rv-steps { font-size: 14px; }
  .rv-step { gap: 4px; padding-bottom: 7px; }
  .rv-step-no { width: 18px; height: 18px; flex-basis: 18px; font-size: 13.5px; }
  .rv-meta { gap: 8px 16px; }
  /* 三张图一行看完。2 列时每张 240×320，一屏只能放两张，
     审图的人要滑三次才能看完一组图，太慢。 */
  .rv-imgs { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  /* 窄屏只留"谁审的"，时间移到审痕区看——时间挤在这里会把摘要吃掉 */
  .rv-stamp-time { display: none; }
  .rv-seg-meta.preview { max-width: 44%; }
  .rv-detail { gap: 13px; }

  .drawer { width: 100%; }
  .drawer-body { padding: 16px; }

  /* 账号页：手机上一列铺满，卡片高度压扁——手机屏幕竖着看，
     两列会把昵称挤成两个字，认不出是哪个号。 */
  .acc-grid { grid-template-columns: 1fr; gap: 10px; }
  .acc-stats { gap: 14px; }
  /* 版本行的 5 列在 375px 上放不下"人+时间+说明"三样，
     收成两行：版本+人 一行，时间+说明 一行。 */
  .pv-row { grid-template-columns: 40px 1fr auto; row-gap: 2px; }
  .pv-time { grid-column: 2 / 3; }
  .pv-note { grid-column: 2 / 4; }
  .acc-post-title { max-width: 100%; }
  .as-add-row { flex-wrap: wrap; }
}

/* ============================================================
   改稿：标题条码 + 字数计数 + 编辑抽屉 + 改前改后 + 配图管理
   （2026-10-30 增，配合 contentedit.js）

   这里的规则只有一条：颜色跟着状态走。
   绿=在限制内，黄=超出本号自定义值但还发得出去，红=超平台上限一定发不出去。
   三种颜色必须一眼分得开，因为人是在打字的时候扫一眼，
   不是停下来读字。
   ============================================================ */

/* ---------- 标题与话题标签行 ---------- */
.rv-titlebar {
  margin: 10px 0 2px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.rv-title-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rv-title-text { font-size: 18px; color: var(--text); flex: 1 1 auto; word-break: break-all; }
.rv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rv-tag {
  font-size: 15px; color: var(--primary-d); background: var(--primary-l);
  border: 1px solid #c7d7fe; border-radius: 999px; padding: 2px 9px;
}
.rv-tag.muted { color: var(--text-mute); background: transparent; border-color: var(--border); }

/* ---------- 字数计数 ---------- */
.ct-count { font-size: 15px; color: var(--text-mute); margin-left: 8px; white-space: nowrap; }
.ct-count.warn { color: var(--warn); }
.ct-count.bad  { color: var(--danger); font-weight: 600; }

/* ---------- 段内的「改」 ---------- */
.rv-seg-edit {
  font-size: 15px; color: var(--primary); border: 1px solid var(--border);
  border-radius: 6px; padding: 1px 8px; margin-left: 6px; cursor: pointer;
}
.rv-seg-edit:hover { background: var(--primary-l); border-color: var(--primary); }

.rv-img-ops { display: flex; gap: 8px; margin: 10px 0 4px; flex-wrap: wrap; }
.rv-img-passed {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 10px; padding: 8px 10px;
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius);
  font-size: 16px;
}

/* ---------- 编辑抽屉 ---------- */
.ce-edit { display: flex; flex-direction: column; gap: 14px; }
.ce-field { display: flex; flex-direction: column; gap: 6px; }
.ce-field > label { font-size: 16px; font-weight: 600; color: var(--text); }
.ce-field input[type=text], .ce-field textarea {
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px;
  font: inherit; font-size: 17px; color: var(--text); background: var(--surface);
  width: 100%; resize: vertical;
}
.ce-field input[type=text]:focus, .ce-field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-l);
}
.ce-force { display: flex; align-items: flex-start; gap: 8px; font-size: 16px; color: var(--text-dim); }
/* 手写改动理由：左下拉是粗分类（可选），右输入框是必须写够字的那段说明 */
.ce-reason-row { display: flex; gap: 8px; align-items: flex-start; }
.ce-reason-row select { flex: none; max-width: 116px; padding: 7px 8px; border: 1px solid var(--border);
                        border-radius: 8px; background: var(--surface); font: inherit; font-size: 16px; }
.ce-reason-row textarea { flex: 1; min-height: 66px; resize: vertical; }
.ce-reason-foot { display: flex; justify-content: flex-start; font-size: 15px; }
.ct-count.ok-count { color: var(--ok); }
.ce-rev-note {
  font-size: 15.5px; line-height: 1.7; color: var(--text);
  padding: 9px 12px; border-top: 1px solid var(--border);
  background: #fbfbfc;
}
.ce-rev-note-key { color: var(--text-mute); margin-right: 6px; }
.ce-rev-note.none { color: var(--text-mute); }
.ce-remove p { margin: 0 0 8px; font-size: 16px; line-height: 1.6; }
.ce-remove textarea {
  width: 100%; min-height: 62px; margin-bottom: 4px;
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px;
  font: inherit; font-size: 16px; resize: vertical;
}
.ce-actions { display: flex; gap: 8px; justify-content: flex-end; }

.ce-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ce-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 16px; color: var(--primary-d); background: var(--primary-l);
  border: 1px solid #c7d7fe; border-radius: 999px; padding: 3px 6px 3px 10px;
}
.ce-chip-x {
  border: none; background: transparent; color: var(--text-mute);
  cursor: pointer; font-size: 17px; line-height: 1; padding: 0 2px;
}
.ce-chip-x:hover { color: var(--danger); }
.ce-sug { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 15px; }
.ce-sug-key { color: var(--text-mute); }
.ce-sug-btn {
  font-size: 15px; color: var(--text-dim); background: var(--surface);
  border: 1px dashed var(--border); border-radius: 999px; padding: 2px 8px; cursor: pointer;
}
.ce-sug-btn:hover { color: var(--primary-d); border-color: var(--primary); }

/* ---------- 改前 vs 改后 ---------- */
.ce-rev { display: flex; flex-direction: column; gap: 16px; }
.ce-rev-row { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ce-rev-fields {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px; background: var(--bg); border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.ce-rev-no { color: var(--text-mute); font-variant-numeric: tabular-nums; }
.ce-rev-when { color: var(--text-mute); }
.ce-rev-who { margin-left: auto; color: var(--text-dim); }
.ce-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.ce-cmp-col { background: var(--surface); padding: 10px 12px; }
.ce-cmp-head { font-size: 15px; color: var(--text-mute); margin-bottom: 6px; }
.ce-cmp-col.before .ce-cmp-head { color: var(--text-mute); }
.ce-cmp-col.after  .ce-cmp-head { color: var(--ok); font-weight: 600; }
.ce-cmp-text {
  font-size: 16px; line-height: 1.7; white-space: pre-wrap; word-break: break-word;
  max-height: 340px; overflow: auto;
}
.ce-cmp-col.before .ce-cmp-text { color: var(--text-dim); }

/* ---------- 配图管理 ---------- */
.ce-imgs { display: flex; flex-direction: column; gap: 10px; }
.ce-upload {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  padding: 12px; border: 1px dashed var(--border); border-radius: var(--radius);
  background: var(--bg);
}
.ce-file { display: none; }
.ce-sec-title { font-size: 16px; font-weight: 600; color: var(--text); margin-top: 8px; }
.ce-img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.ce-img {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); display: flex; flex-direction: column; gap: 4px; padding-bottom: 8px;
}
.ce-img-pic { width: 100%; height: 150px; object-fit: cover; background: var(--bg); }
.ce-img-name { font-size: 15px; padding: 0 8px; word-break: break-all; }
.ce-img-meta { font-size: 14px; color: var(--text-mute); padding: 0 8px; }
.ce-img-btns { display: flex; gap: 4px; padding: 0 8px; flex-wrap: wrap; }

/* ============================================================
   小红书效果图预览（preview.js）
   目标是"看版式"，不是"做皮肤"——
   所以只还原版面结构（封面比例、两行标题、标签区、互动栏），
   不做像素级模仿，也不编造点赞数这类数字。
   ============================================================ */
.xhs-head { display: flex; align-items: center; gap: 8px; font-size: 14.5px; margin-bottom: 8px; }
.xhs-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.xhs-tab {
  font: inherit; font-size: 14.5px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer;
}
.xhs-tab.on { background: var(--primary-l); border-color: var(--primary); color: var(--primary-d); }
.xhs-wrap {
  background: #f2f2f4; border-radius: 12px; padding: 12px;
  display: flex; justify-content: center;
}
.xhs-warn { font-size: 12.5px; color: var(--danger); padding: 4px 6px; }

/* 发现页：两列瀑布流。同一篇按两种封面版式各画一块，上下排布好对比 */
.xhs-layouts { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.xhs-layout {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 10px 8px;
}
.xhs-layout-head {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 0 2px 8px;
}
.xhs-layout-title { font-size: 14.5px; font-weight: 700; color: var(--text); }
.xhs-layout-px { font-size: 12.5px; color: var(--primary-d); background: var(--primary-l);
                 border-radius: 999px; padding: 1px 7px; }
.xhs-layout-sub { font-size: 12.5px; color: var(--text-mute); }
.xhs-crop-note {
  font-size: 13.5px; line-height: 1.65; color: var(--text-dim);
  margin-top: 8px; padding: 7px 8px; background: #f7f8fa;
  border-left: 3px solid var(--border); border-radius: 0 6px 6px 0;
}
.xhs-crop-note.bad { background: var(--danger-l); border-left-color: var(--danger); color: #991b1b; }
.xhs-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 340px; margin: 0 auto; }
.xhs-flow-col { display: flex; flex-direction: column; gap: 8px; }
.xhs-flow-card {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.xhs-flow-ghost { opacity: .45; }
/* 封面比例不写死 px：卡片宽度跟着抽屉变，高度必须按比例走，
   否则两种版式在页面上会长得一样高，"两种版式"就白画了 */
.xhs-flow-img { position: relative; width: 100%; background: #f0f0f2; }
.xhs-flow-img.r34 { aspect-ratio: 3 / 4; }
.xhs-flow-img.r11 { aspect-ratio: 1 / 1; }
.xhs-flow-cover { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.xhs-flow-title {
  font-size: 13.5px; line-height: 1.4; padding: 6px 8px 0; color: #333;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.xhs-flow-foot { display: flex; align-items: center; gap: 5px; padding: 6px 8px 8px; }
.xhs-flow-name { font-size: 12.5px; color: #999; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xhs-flow-like { font-size: 13.5px; color: #999; }
.xhs-avatar {
  width: 18px; height: 18px; border-radius: 50%; background: #d9d9de; color: #666;
  font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none;
}
.xhs-ghost-av { background: #dbdbde; }
.xhs-ghost-line { height: 10px; background: #e6e6e8; border-radius: 3px; margin: 6px 8px 0; }
.xhs-ghost-line.short { width: 50%; }
.xhs-cover-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 13.5px; color: #9a9aa0; background: #ececf0;
}
.xhs-cover-empty.big { height: 260px; }

/* 笔记详情 */
.xhs-detail { background: #fff; border-radius: 10px; overflow: hidden; width: 100%; max-width: 340px; }
.xhs-nav { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #fff; }
.xhs-nav-back { font-size: 19px; color: #333; }
.xhs-nav-name { font-size: 14.5px; color: #333; flex: 1; }
.xhs-btn-follow {
  font-size: 12.5px; color: #ff2442; border: 1px solid #ff2442;
  border-radius: 999px; padding: 1px 8px;
}
.xhs-detail-img { position: relative; width: 100%; background: #f5f5f7; }
.xhs-detail-pic { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.xhs-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.xhs-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.6); }
.xhs-dot.on { background: #ff2442; }
.xhs-pager {
  position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,.25); color: #fff; font-size: 12.5px; border-radius: 999px; padding: 1px 6px;
}
.xhs-pager-arrow { opacity: .8; }
.xhs-body { padding: 12px 12px 60px; }
.xhs-title { font-size: 16.5px; font-weight: 700; line-height: 1.45; margin-bottom: 8px; color: #333; }
.xhs-text { font-size: 14.5px; line-height: 1.75; color: #333; white-space: pre-wrap; }
.xhs-text p { margin: 0 0 6px; }
.xhs-text.empty { color: #aaa; }
.xhs-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.xhs-tag { font-size: 14.5px; color: #13386c; }
.xhs-tag.muted { color: #aaa; }
.xhs-time { font-size: 12.5px; color: #aaa; margin-top: 10px; }
.xhs-stat { font-size: 12.5px; color: #aaa; margin-top: 10px; display: flex; gap: 10px; align-items: center; }
.xhs-stat-note { color: #c0c0c6; }
.xhs-bar {
  position: sticky; bottom: 0; display: flex; gap: 18px; justify-content: center;
  padding: 10px; border-top: 1px solid #f0f0f2; background: #fff; font-size: 16.5px; color: #666;
}
.xhs-bar-icon { margin-left: auto; }

@media (max-width: 760px) {
  .ce-cmp { grid-template-columns: 1fr; }
  .ce-img-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------- 下载中心
   卡片按可用宽度自动排，窄屏单列。用它而不是固定三列：
   不同角色的可见数据集数量不一样（财务看 4 个、内容看 2 个），
   固定列数会出现"一行只有一张卡、旁边一大片空白"。
---------------------------------------------------------------- */
.export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
  padding: 14px;
}
.export-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--surface);
}
.export-card .row { display: flex; align-items: center; gap: 6px; }
.export-card .grow { flex: 1; }

@media (max-width: 760px) {
  .export-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   v1.7.0 视觉升级：绿色主调 + 放大字号 + 交互反馈
   ----------------------------------------------------------------
   放在文件末尾靠"后来者胜出"覆盖前面的基础样式，不去逐条改原来的规则——
   改原文意味着要动一千多行里散落的几十处字号，漏一处就是一处不一致。
   统一在末尾抬一档，规则集中，以后要整体调也只改这一块。
   ================================================================ */

/* ---- 字号：整体抬一档 ---- */
.nav-item        { font-size: 18px; padding: 10px 13px; border-radius: 9px; }
.brand           { font-size: 19px; }
.brand small     { font-size: 15.5px; }
.btn             { font-size: 17px; padding: 7px 14px; border-radius: 9px; }
.btn.sm          { font-size: 16px; padding: 5px 11px; }
table            { font-size: 17px; }
td               { padding: 12px 14px; }
th               { padding: 11px 14px; font-size: 16.5px; }
.muted, .field label, .field .hint { font-size: 16.5px; }
.panel-head h3, .panel-toolbar h3  { font-size: 18.5px; }
.topbar h2       { font-size: 20px; }
.card .label     { font-size: 17px; }
.card .value     { font-size: 33px; }
.acc-name        { font-size: 19px; }
.acc-stat-n      { font-size: 23.5px; }
.acc-stat-l      { font-size: 15.5px; }
.acc-code, .acc-persona, .acc-last { font-size: 16px; }
.tag             { font-size: 15.5px; padding: 2px 9px; }
input, select, textarea { font-size: 17px; }

/* ---- 侧栏：品牌区用绿色渐变，选中项加左侧色条 ---- */
.sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f7fcf9 100%);
  border-right: 1px solid var(--border);
}
.brand {
  padding: 12px 12px 18px;
  margin: -8px -4px 6px;
  border-radius: 10px;
  background: var(--brand-grad);
  color: #fff;
  letter-spacing: .3px;
}
.brand small { color: rgba(255, 255, 255, .78); }
.nav-item { color: var(--text-dim); transition: background .16s, color .16s; }
.nav-item:hover { background: var(--primary-l); color: var(--primary-d); }
.nav-item.active {
  background: var(--primary-l);
  color: var(--primary-d);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--primary);
}
.nav-item .ico svg { width: 19px; height: 19px; }

/* ---- 顶栏：一层很浅的绿色渐变，和纯白内容区拉开层次 ---- */
.topbar {
  height: 64px; flex-basis: 64px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
  box-shadow: 0 1px 0 rgba(18, 60, 36, .05);
}

/* ---- 面板与卡片：圆角更大、悬浮抬起 ---- */
.panel, .card {
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: box-shadow .18s, transform .18s;
}
.panel:hover, .card:hover { box-shadow: 0 6px 18px rgba(18, 60, 36, .10); }
.panel-head {
  padding: 14px 18px;
  background: linear-gradient(180deg, #f8fcf9 0%, transparent 100%);
  border-radius: 14px 14px 0 0;
}

/* ---- 按钮：主按钮走品牌渐变 ---- */
.btn {
  border-radius: 9px;
  transition: background .16s, box-shadow .16s, transform .12s;
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--brand-grad);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(21, 127, 67, .28);
}
.btn.primary:hover { filter: brightness(1.06); box-shadow: 0 4px 12px rgba(21, 127, 67, .34); }
.btn:hover { background: var(--primary-l); border-color: #bfe3cd; }
.btn.ghost:hover { background: var(--primary-l); }

/* ---- 输入框：聚焦时绿色光圈 ---- */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

/* ---- 表格：表头淡绿，行悬浮淡绿 ---- */
th {
  background: #f3faf5;
  color: var(--primary-d);
  font-weight: 600;
  letter-spacing: .2px;
}
td { border-bottom: 1px solid #eef4f0; }
tbody tr:hover { background: #f6fbf8; }
tbody tr { transition: background .14s; }

/* ---- 徽标 ---- */
.tag { border-radius: 20px; font-weight: 500; }
.tag.ok     { background: #e6f7ec; color: #157f43; }
.tag.info   { background: var(--primary-l); color: var(--primary-d); }

/* ---- 入场动画：页面切换时轻微上浮，避免"啪"一下刷出来 ---- */
@keyframes pcrm-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.content > * { animation: pcrm-fade-up .22s ease-out both; }

/* ---- 滚动条 ---- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: #c9ddcf; border-radius: 6px;
  border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #a9c9b4; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ================================================================
   账号：按类别分组
   ================================================================ */

.acc-catbar {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 0 18px 12px;
  border-bottom: 1px solid var(--border);
}
.acc-groups { padding: 4px 0 8px; }
.acc-group { padding: 0 18px 6px; }
.acc-group + .acc-group { border-top: 1px dashed #e3efe7; padding-top: 14px; }
.acc-group-head {
  display: flex; align-items: center; gap: 8px;
  margin: 14px 0 10px;
}
.acc-group-head b { font-size: 18px; font-weight: 650; }
.acc-group-n {
  font-size: 15.5px; color: var(--text-mute);
  background: #eef6f0; border-radius: 20px; padding: 1px 9px;
  font-variant-numeric: tabular-nums;
}

/* 类别色点：绿/常规/橙/红/灰，和徽标同一套语义色 */
.cat-dot {
  width: 9px; height: 9px; border-radius: 50%;
  display: inline-block; flex: 0 0 9px;
  background: #b9c7bd;
}
.cat-dot.cat-good   { background: #16a34a; }
.cat-dot.cat-normal { background: #6b8b76; }
.cat-dot.cat-warn   { background: #e0900a; }
.cat-dot.cat-bad    { background: #d33b3b; }
.cat-dot.cat-mute   { background: #b9c7bd; }

/* 类别徽标。editable 的带下拉箭头，表示点得动 */
.cat-chip {
  font-size: 15.5px; line-height: 19px;
  padding: 1px 9px; border-radius: 20px;
  border: 1px solid transparent; background: #eef3f0; color: var(--text-dim);
  white-space: nowrap; font-weight: 500;
}
.cat-chip.cat-good   { background: #e6f7ec; color: #157f43; }
.cat-chip.cat-warn   { background: #fdf3e0; color: #a4650a; }
.cat-chip.cat-bad    { background: #fdecec; color: #b02424; }
.cat-chip.cat-mute   { background: #eef0ef; color: #7b8b80; }
.cat-chip.editable { cursor: pointer; }
.cat-chip.editable:hover { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }

/* 改类别的抽屉：一行一个类别，当前项左侧高亮 */
.cat-pick { display: flex; flex-direction: column; gap: 6px; }
.cat-pick-row {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 17px; text-align: left; width: 100%;
  transition: border-color .15s, background .15s;
}
.cat-pick-row:hover { border-color: var(--primary); background: #f6fbf8; }
.cat-pick-row.on {
  border-color: var(--primary);
  background: var(--primary-l);
  box-shadow: inset 3px 0 0 var(--primary);
  font-weight: 600;
}
.cat-pick-row span { flex: 1; }

/* 类别管理（老板）：一行一个类别，就地改 */
.cat-manage-head {
  display: grid; grid-template-columns: 1fr 90px 112px 116px;
  gap: 8px; font-size: 15.5px; color: var(--text-mute);
  padding: 0 2px 6px;
}
.cat-manage-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 10px; margin-bottom: 6px;
  border: 1px solid var(--border); border-radius: 10px;
  background: #fbfdfc;
}
.cat-manage-row input[type="text"],
.cat-manage-row input[type="number"],
.cat-manage-row select { padding: 6px 8px; }
.cat-on { display: flex; align-items: center; gap: 4px; font-size: 16.5px; color: var(--text-dim); }

/* ---------------------------------------------------------- 全站水印 */

/* 图（账号名）由 watermark.js 画好后塞进 background-image，这里只管"铺在哪"。
   层级取 9999：抽屉 60 / 弹窗 61 / 提示 90，水印必须在它们之上，
   否则点开大图再截图就绕过去了。pointer-events:none 让它不吃任何点击。 */
.wm-layer {
  position: fixed; inset: 0;
  z-index: 9999;
  pointer-events: none;
  user-select: none;
  /* 打印、另存为 PDF 时背景图默认会被丢掉，这两行把它留住 */
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

@media (max-width: 760px) {
  .acc-group { padding: 0 12px 6px; }
  .acc-catbar { padding: 0 12px 12px; }
  .cat-manage-head { display: none; }
}

/* ================================================================
   v1.14.0 抽屉加宽 + 抽屉内字号 + 西文字体统一
   ----------------------------------------------------------------
   抽屉是「坐下来逐项填、逐条审」的地方（改稿、三审、人设卡、运维档案），
   和扫一眼的列表页不是同一种阅读。520px 的默认宽度在 1366 的笔记本上
   一屏只放得下一段半，正文和标签还要凑近看——所以这里只动抽屉：
   默认 520 → 760（v1.13.0 是 720，字又大了一档，宽度跟着让一点，
   免得一行断成两截），正文 15 → 17，表格、标签、说明各抬两档。
   列表页不动，否则一屏信息量骤减，翻页次数变多。
   ================================================================ */

/* ---- 宽度：默认加宽，窄屏仍然铺满 ---- */
/* 宽度（2026-11-07 业务方定）：抽屉是逐条审、逐项填的地方，880px 在
   1680 宽屏上只用了半个屏，右边的列表还露着一大片——而审的人要的是
   一眼看到八条候选 + 配比 + 留档。改成"贴边取最大"：
   宽屏 1440 封顶（再宽一行字太长，眼睛回行会串行），窄屏留 96px 露出底页。 */
.drawer { width: min(1440px, calc(100vw - 96px)); font-size: 20px; line-height: 1.7; }
.drawer-head { padding: 18px 26px; }
.drawer-head h3 { font-size: 21px; }
.drawer-body { padding: 24px 28px; }
.drawer-foot { padding: 16px 26px; }

@media (max-width: 780px) {
  .drawer { width: 100%; }
  .drawer-body { padding: 16px; }
}

/* 内联字号兜底。
   页面上有一批 h("span", { style: "font-size: 15px" }) 的次要说明
   （「N 个账号」「共 M 行」这类）。内联样式的优先级高于任何类选择器，
   不写 !important 就压不住，12px 会在 17px 的正文旁边显得格外小。
   属性选择器只命中真的写了内联 font-size 的元素，其余一律不受影响。
   值取 14.5：比正文低一档，保持主次，但不再是需要凑近看的字号。 */
.drawer [style*="font-size"] { font-size: 17.5px !important; }

/* ---- 通用元素：表格、说明、表单、按钮 ---- */
.drawer table { font-size: 19px; }
.drawer th { font-size: 18px; }
.drawer td { padding: 13px 14px; }
.drawer .muted { font-size: 18px; }
.drawer .tag { font-size: 17px; }
.drawer .btn { font-size: 18.5px; }
.drawer .btn.sm { font-size: 17.5px; }
.drawer .alert-box { font-size: 18.5px; }
.drawer input, .drawer select, .drawer textarea { font-size: 19px; }
.drawer .field label { font-size: 18.5px; }
.drawer .field .hint { font-size: 17.5px; }
.drawer .kv { font-size: 18.5px; }
.drawer .panel-head h3, .drawer .panel-toolbar h3 { font-size: 20px; }

/* ---- 账号抽屉：标签页与卡片内的说明 ---- */
.drawer .acc-tab { font-size: 18px; padding: 9px 15px; }
.drawer .acc-metric-sub { font-size: 17px; }
.drawer .acc-head-sub { font-size: 18px; }
.drawer .acc-sec-title { font-size: 17.5px; }
.drawer .acc-post-ex { font-size: 17.5px; }
.drawer .acc-post-code { font-size: 17.5px; }
.drawer .acc-last { font-size: 17.5px; }

/* ---- 人设卡 ---- */
.drawer .pc-head { font-size: 18.5px; }
.drawer .pc-label { font-size: 18px; }
.drawer .pc-field input, .drawer .pc-field textarea { font-size: 19px; line-height: 1.8; }
.drawer .pc-group-head { font-size: 18.5px; }
.drawer .pc-imp { font-size: 18.5px; }
.drawer .pc-imp-label { font-size: 18px; }
.drawer .pc-imp-file, .drawer .pc-imp-hint { font-size: 17.5px; }
.drawer .pc-imp-tip { font-size: 18px; }

/* ---- 三审 ---- */
/* 方案/文案正文走 .md，全局是 13.5px；审核要逐字看这一段，抬到 16px */
.drawer .md { font-size: 19px; line-height: 1.78; }
.drawer .md code { font-size: 17.5px; }
.drawer .rv-seg-title { font-size: 18.5px; }
.drawer .rv-seg-meta, .drawer .rv-seg-note { font-size: 17px; }
.drawer .rv-meta-item { font-size: 18px; }
.drawer .rv-ref-val { font-size: 18px; }
.drawer .rv-ref summary { font-size: 18px; }
.drawer .rv-hist-row { font-size: 17.5px; }
.drawer .rv-title-text { font-size: 19px; }

/* ---- 账号总览 / 运维档案 ---- */
.drawer .ov-stat-label { font-size: 17.5px; }
.drawer .ov-hint, .drawer .ov-alert { font-size: 17.5px; }
.drawer .ov-dim { font-size: 17.5px; }

/* ---- 账号编号：跟着全站西文字体走 ----
   原来是等宽字体，为了一眼分辨 DM-KJ-01 与 DM-KJ-1。
   现在统一到 Times New Roman：数字本身仍是逐位可辨的，
   真要核对编码时看的是尾号两位数，不是列对齐。 */
.ov-code { font-family: var(--font); }

/* ============================================================
   周方案审核（v1.20.0）
   
   版式取舍：一行一份方案，左边账号、中间周次与主线、右边进度。
   为什么把「待 / 过 / 驳」三个数并排放：审核人真正要看的是
   "这份还剩几条没看"，而不是"它是什么状态"。状态徽章只是兜底。
   ============================================================ */

.wp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.wp-title { font-size: 20.5px; font-weight: 600; }
.wp-check { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; color: var(--text-dim); }

.wp-list { display: flex; flex-direction: column; gap: 10px; }

.wp-card {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.wp-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.wp-card-l { width: 172px; flex: none; }
.wp-card-m { flex: 1; min-width: 0; }
.wp-card-r { display: flex; align-items: center; gap: 12px; flex: none; }

.wp-nick {
  font-size: 17px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wp-acc { font-size: 14px; color: var(--text-mute); letter-spacing: .2px;
  font-variant-numeric: tabular-nums; }
.wp-subj { font-size: 14px; color: var(--text-dim); }
.wp-week { font-size: 17px; font-weight: 600; }
.wp-theme {
  font-size: 16px; color: var(--text-dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wp-counts { display: flex; gap: 8px; font-size: 15px; }
.wp-c { padding: 2px 7px; border-radius: 6px; background: #f2f5f3; color: var(--text-dim); }
.wp-c.wait { background: #fdf6e7; color: var(--warn); }
.wp-c.pass { background: var(--primary-l); color: var(--primary-d); }
.wp-c.rej  { background: var(--danger-l); color: var(--danger); }

.wp-badge {
  display: inline-block; padding: 2px 9px; border-radius: 20px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  background: #f2f5f3; color: var(--text-dim);
}
.wp-st-wait { background: #fdf6e7; color: var(--warn); }
.wp-st-part { background: #eef4ff; color: #2b5fbf; }
.wp-st-pass { background: var(--primary-l); color: var(--primary-d); }
.wp-st-rej  { background: var(--danger-l); color: var(--danger); }
.wp-st-void { background: #f2f5f3; color: var(--text-mute); }
/* 「未采用」与「已作废」刻意用同一档灰：两者都不是失败，只是"这轮没用上"。
   区别只在能不能再选回来，而那是行为差异，不该用颜色去表达。 */
.wp-st-unused { background: #f2f5f3; color: var(--text-mute); }

/* 生成中提示（2026-11-08）
   提交「立即生成」后，后端只等到扣子收下，方案要几分钟才写完。
   提示留在列表上方，方案出现时换成「已生成」，5 秒后自动收起。 */
.wp-gen {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; margin-bottom: 12px;
  background: var(--primary-l); border: 1px solid #bfe6cd;
  border-radius: var(--radius); font-size: 16px;
}
.wp-gen.done { border-color: var(--primary); }
.wp-gen-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--primary); animation: wp-pulse 1.2s ease-in-out infinite;
}
.wp-gen.done .wp-gen-dot { animation: none; }
@keyframes wp-pulse {
  0%, 100% { opacity: .25; transform: scale(.8); }
  50%      { opacity: 1;   transform: scale(1); }
}
.wp-gen-t { font-size: 17px; font-weight: 600; }
.wp-gen-sub { font-size: 15px; color: var(--text-dim); margin-top: 2px; }
.wp-gen-wait {
  font-size: 15px; color: var(--text-mute); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.wp-empty {
  padding: 56px 24px; text-align: center; background: var(--surface);
  border: 1px dashed var(--border); border-radius: var(--radius);
}
.wp-empty-t { font-size: 19px; font-weight: 600; margin-bottom: 6px; }

/* ---- 抽屉 ---- */
.wp-detail { font-size: 17px; }
.wp-detail-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.wp-detail-week { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.wp-detail-theme {
  font-size: 18px; font-weight: 600; color: var(--primary-d);
  padding: 8px 12px; background: var(--primary-l); border-radius: 8px; margin-bottom: 8px;
}
.wp-detail-md {
  font-size: 16px; color: var(--text-dim); white-space: pre-wrap;
  padding: 8px 12px; background: #f8faf9; border-radius: 8px; margin-bottom: 12px;
}
.wp-warn {
  font-size: 16px; color: var(--danger); background: var(--danger-l);
  padding: 6px 12px; border-radius: 8px; margin-bottom: 10px;
}
/* 归档说明刻意用灰色小字，不用警告色：
   归档是正常流程（满 7 天转存），不是异常。用红底会让人以为出了问题，
   然后跑去问"我的候选怎么没了"。 */
.wp-archived {
  font-size: 15.5px; color: var(--text-mute);
  padding: 6px 12px; border-radius: 8px; margin-bottom: 10px;
  background: #f6f8f7;
}

.wp-items { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }

.wp-item {
  display: flex; gap: 12px; padding: 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  border-left-width: 3px;
}
.wp-item-wait { border-left-color: #e8c37a; }
.wp-item-pass { border-left-color: var(--primary); }
.wp-item-rej  { border-left-color: var(--danger); }

.wp-item-no {
  width: 22px; flex: none; font-size: 18px; font-weight: 600;
  color: var(--text-mute); text-align: center; padding-top: 6px;
}
.wp-item-body { flex: 1; min-width: 0; }
.wp-item-line { display: flex; gap: 8px; align-items: center; }
.wp-sel {
  flex: none; width: 158px; padding: 5px 6px; font-size: 16px;
  border: 1px solid var(--border); border-radius: 7px; background: #fff;
}
.wp-topic {
  flex: 1; min-width: 0; padding: 6px 9px; font-size: 17px; font-weight: 500;
  border: 1px solid var(--border); border-radius: 7px;
}
.wp-topic:disabled, .wp-sel:disabled { background: #f7f9f8; color: var(--text-dim); }
.wp-item-angle { font-size: 16px; color: var(--text-dim); margin-top: 6px; }
/* 两段理由是候选制下唯一的挑选依据，所以给它比角度稍强的字色，
   但不能抢过标题——人先扫标题，再读理由。 */
.wp-item-reason { font-size: 16px; color: var(--text-dim); margin-top: 5px; line-height: 1.65; }
.wp-item-reason em { font-style: normal; color: var(--text-mute); margin-right: 6px; }
.wp-over { color: var(--danger); font-weight: 500; }
.wp-item-hook { font-size: 16px; color: var(--text-dim); margin-top: 3px; }
.wp-item-outline {
  font-size: 15.5px; color: var(--text-mute); margin-top: 4px;
  white-space: pre-wrap; max-height: 72px; overflow: hidden;
}
.wp-item-meta { display: flex; gap: 12px; font-size: 15px; color: var(--text-mute); margin-top: 6px; }
.wp-linked { color: var(--primary-d); }
.wp-note {
  font-size: 15.5px; color: var(--danger); background: var(--danger-l);
  padding: 4px 9px; border-radius: 6px; margin-top: 6px;
}

.wp-item-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.wp-btnrow { display: flex; gap: 6px; }

.wp-rejectbox { margin-top: 8px; }
.wp-ta {
  width: 100%; padding: 8px 10px; font-size: 16px; line-height: 1.6;
  border: 1px solid var(--border); border-radius: 8px; resize: vertical;
}
.wp-rejectbox .wp-btnrow { justify-content: flex-end; margin-top: 6px; }

/* 类型配比：目标 vs 实际的双条对比。
   两列网格是因为八类排成一列会占掉抽屉小半屏，而这一块只是"扫一眼"的参考；
   四行两列，一屏内跟候选条目同框，判断不用来回滚。 */
.wp-ratio {
  margin-top: 16px; padding: 16px 18px; border-radius: 10px; background: #f8faf9;
  border: 1px solid var(--border);
}
.wp-ratio-head {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.wp-ratio-t { font-size: 16px; font-weight: 600; color: var(--text); }
.wp-ratio-lg { display: flex; gap: 16px; margin-left: auto; font-size: 13.5px; color: var(--text-dim); }
.wp-ratio-k { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.wp-ratio-dot {
  width: 11px; height: 11px; border-radius: 2px; display: inline-block;
}
.wp-ratio-dot.t { background: #a3b3aa; }
.wp-ratio-dot.a { background: var(--primary); }

.wp-ratio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 56px; }
.wp-ratio-row {
  display: grid; grid-template-columns: 118px 1fr 96px;
  align-items: center; gap: 12px; font-size: 14.5px;
}
.wp-ratio-n {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text);
}
.wp-ratio-bars { display: flex; flex-direction: column; gap: 3px; }
.wp-ratio-track {
  display: block; height: 7px; border-radius: 4px;
  background: rgba(0, 0, 0, .05); overflow: hidden;
}
.wp-ratio-bar { display: block; height: 100%; border-radius: 4px; }
.wp-ratio-bar.t { background: #a3b3aa; }
.wp-ratio-bar.a { background: var(--primary); }
.wp-ratio-v {
  display: flex; gap: 7px; justify-content: flex-end;
  font-size: 13.5px; font-variant-numeric: tabular-nums;
}
.wp-ratio-v b { font-weight: 600; color: var(--text-dim); }
.wp-ratio-v em { font-style: normal; font-weight: 600; color: var(--text); }

@media (max-width: 1100px) {
  .wp-ratio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .wp-card { flex-wrap: wrap; }
  .wp-card-l { width: auto; }
  .wp-card-r { width: 100%; justify-content: space-between; }
  .wp-item { flex-wrap: wrap; }
  .wp-item-act { flex-direction: row; width: 100%; justify-content: space-between; }
}

/* ============================================================
   v1.21.0 · 审核页类型标注 / 排产规划 / 驳回闭环
   ============================================================ */

/* ---- 审核页：内容类型 ---- */

.rv-type-chip {
  flex: none; padding: 1px 8px; border-radius: 6px;
  font-size: 15px; font-weight: 500;
  background: #eef4ff; color: #2b5fbf; white-space: nowrap;
}
.rv-type-chip.empty { background: #f2f5f3; color: var(--text-mute); font-weight: 400; }

.rv-type-sel {
  padding: 3px 6px; font-size: 17px; border: 1px solid var(--border);
  border-radius: 7px; background: #fff; color: var(--text);
}

/* ---- 账号卡：每周篇数 / 暂停 ---- */

.acc-flag.pause { background: var(--danger-l); color: var(--danger); }

/* ---- 排产规划 ---- */

.plan-box { font-size: 17.5px; }
.plan-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.plan-week { font-size: 18px; font-weight: 600; }
.plan-bulk { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 17px; color: var(--text-dim); }
.plan-num {
  width: 84px; padding: 5px 8px; font-size: 17.5px; text-align: center;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
}
.plan-sum {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 8px 12px; margin-bottom: 10px; font-size: 16.5px;
  background: #f8faf9; border-radius: 9px; color: var(--text-dim);
}
.plan-sum-k { font-weight: 600; color: var(--text); }
.plan-sum-warn { color: var(--warn); }
.plan-sum-dirty { color: var(--danger); }

.plan-rows { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.plan-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-bottom: 1px solid var(--border);
  font-size: 17px;
}
.plan-row:last-child { border-bottom: 0; }
.plan-row.paused { background: #fdf7f7; }
.plan-head {
  background: #f6f9f7; font-size: 16px; color: var(--text-dim); font-weight: 500;
}
.plan-c-acc { width: 212px; flex: none; min-width: 0; }
.plan-c-cat { width: 98px; flex: none; color: var(--text-dim); font-size: 16px; }
.plan-c-num { width: 106px; flex: none; }
.plan-c-plan { flex: 1; min-width: 120px; }
.plan-c-stat { width: 94px; flex: none; text-align: center; color: var(--text-dim); }
.plan-c-stat.warn { color: var(--warn); font-weight: 600; }
.plan-acc-code { font-weight: 600; letter-spacing: .2px; }
.plan-acc-nick {
  font-size: 15.5px; color: var(--text-dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.plan-miss { color: var(--warn); font-size: 16px; }

/* ---- 周方案：版本 / 回执 / 留档 / 加一条 ---- */

.wp-card.need-human { border-left: 3px solid var(--danger); }
.wp-need { display: inline-block; margin-left: 8px; font-size: 15px; color: var(--danger); }

.wp-log {
  margin-top: 14px; padding: 10px 12px; border-radius: 9px;
  background: #f8faf9; border: 1px solid var(--border);
}
.wp-log-t { font-size: 15.5px; color: var(--text-dim); margin-bottom: 6px; }
.wp-log-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 4px 0; font-size: 16px; border-top: 1px dashed var(--border);
}
.wp-log-row:first-of-type { border-top: 0; }
.wp-log-a { width: 82px; flex: none; font-weight: 600; }
.wp-log-n { flex: 1; min-width: 0; color: var(--text-dim); }
.wp-log-m { flex: none; font-size: 15px; color: var(--text-mute); }

.wp-addbox {
  margin: 8px 0 12px; padding: 12px; border-radius: 10px;
  background: #f6f9f7; border: 1px dashed var(--border);
}
.wp-add-head { font-size: 15.5px; color: var(--text-dim); margin-bottom: 8px; }
.wp-date {
  width: 164px; flex: none; padding: 6px 8px; font-size: 16.5px;
  border: 1px solid var(--border); border-radius: 7px; background: #fff;
}

@media (max-width: 760px) {
  .plan-c-cat, .plan-c-stat { display: none; }
  .plan-c-acc { width: 142px; }
  .plan-row { gap: 6px; }
}

/* ================================================================
   v1.25.0 字号整体再抬一档（2026-11-06）
   ----------------------------------------------------------------
   业务方要求「所有版面字号加大，含多级目录与抽屉等次生页面」。

   做法是**改值**，不是在末尾再叠一层覆盖块——v1.7.0 那次的覆盖块只兜住了
   二十来个常用类，散落在各段的次要说明（.rv-*、.acc-*、.wp-*、.plan-*、
   .pc-*）当时并没吃上，所以那些地方一直比正文小两档。这次按换算表
   把 276 处 font-size 一次性对齐：

     12 → 13.5   12.5 → 14   13.5 → 15   14 → 15.5   14.5 → 16
     15 → 16.5   15.5 → 17   16 → 17.5   16.5 → 18   17.5 → 19
     19 → 20.5   22 → 23.5   27 → 29     31 → 33     35 → 37

   小字抬 1.5px、大数字抬 2px，比例不塌：正文 18 / 表格 16 / 次要说明 16 /
   抽屉正文 20 / 抽屉表格 19 —— 四级层次仍然一眼分得开。

   字号一动，装字的盒子必须跟着动，否则就是「字大了，挤成两行」：
   --nav-w 216→248（菜单 18px，「内容审核」「账号总览」要更多横位）、
   抽屉 760→880、键值表 96→112、版本行与占比表列宽、顶栏 60→64。

   小红书效果图预览（.xhs-*）**排除在外**：那是照着别家 App 的版面比例
   画的对照图，放大就不像那个产品了；而且它是「看图」不是「读字」。
   ================================================================ */

/* ============================================================
   排版规范（2026-11-07）

   目的：统一字号层级与间距，让页面以数据为主体。
   原来正文 18px、辅助文字 16px，两者只差 2px，层级看不出来，
   页面上一片灰色说明文字反而比数据更显眼。
   现在压成四级：正文 16.5 / 表格 15.5 / 辅助 14 / 微标注 13。
   ============================================================ */

html, body { font-size: 16.5px; }
.muted { font-size: 14px; }
table { font-size: 15.5px; }
th { padding: 9px 12px; font-size: 14.5px; }
td { padding: 10px 12px; }
.kv { font-size: 15px; grid-template-columns: 104px 1fr; gap: 9px 14px; }
.section-title { font-size: 15.5px; margin: 20px 0 8px; }
.panel-body { padding: 16px; }
.panel-toolbar { padding: 8px 16px; }
.card { padding: 14px 16px; }
.card .value { font-size: 26px; }
.card .label { font-size: 15px; }
.content { padding: 20px 24px; }
.field label { font-size: 15px; }
.field .hint { font-size: 13.5px; }
.wp-title { font-size: 19px; }
.wp-theme { font-size: 15px; }
.wp-detail-week { font-size: 16.5px; }
.wp-detail-theme { font-size: 17px; }
.wp-item-meta { font-size: 14px; }

/* 生产时间：全站统一的微标注样式。
   比正文小两号、等宽数字，让它"查得到"但不与正文争注意力。 */
.rv-prod, .rv-seg-prod, .wp-prod, .wp-prod-inline {
  font-size: 13px;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rv-prod { line-height: 1.35; }
.rv-seg-prod { padding-left: 8px; border-left: 1px solid var(--border); }
.wp-prod { margin-top: 3px; }

/* ---------------------------------------------------------------- 账号标识
   昵称为主、编码为辅（2026-11-07 业务方定，见 ui.js 的 accLabel）。
   全站一处定义：各页不要再自己拼 "编码 昵称" 的顺序，否则改口径要改十几处。 */
.acc-lbl {
  display: inline-flex; flex-direction: column;
  line-height: 1.32; vertical-align: middle;
}
.acc-nm { font-weight: 500; }
.acc-cd { font-size: 13px; color: var(--text-dim); }
.acc-inline .acc-cd { font-size: 13px; margin-left: 2px; }

/* ---------------------------------------------------------------- 驳回台账
   2026-11-07 排版重做：砍掉「版本」列（v1.36.0 起恒为 1），类型压成短名，
   驳回意见吃剩余宽度——这一页的全部价值都在那列文字上。
   分布块原来是 inline style 拼的，条和数没对齐；改成 grid，三栏固定。 */
/* 说明区：左右内边距与 panel-head 的 18px 对齐。
   这一条是这一页排版的主要毛病来源——.panel 不带 padding，直接挂上去的文字
   会顶到边框上，比标题往左偏 18px，看着像整块内容被推到了左边。 */
.rj-brief { padding: 14px 18px 16px; }
.rj-sum {
  font-size: 15.5px; line-height: 1.6; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.rj-sum b { font-weight: 600; }
/* 分隔点：用圆点而不是"·"，中文字体里"·"容易被当成标点粘在字上。 */
.rj-dot {
  display: inline-block; width: 3px; height: 3px; border-radius: 50%;
  background: #c3d3c9; vertical-align: middle; margin: 0 9px;
}
.rj-hint { font-size: 14px; line-height: 1.6; color: var(--text-dim); margin-top: 4px; }

.rj-dist {
  display: flex; gap: 44px; flex-wrap: wrap; align-items: flex-start;
  padding: 14px 18px 18px;
}
.rj-dist-col { flex: 0 1 420px; min-width: 360px; }
.rj-dist-title { font-size: 14px; color: var(--text-dim); margin-bottom: 8px; }
.rj-dist-row {
  display: grid; grid-template-columns: 160px 1fr 36px;
  align-items: center; gap: 10px; margin: 5px 0;
}
.rj-dist-lbl {
  font-size: 15.5px; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rj-dist-track {
  display: block; height: 8px; border-radius: 4px;
  background: rgba(18, 60, 36, .07); overflow: hidden;
}
.rj-dist-bar { display: block; height: 100%; border-radius: 4px; background: var(--primary); }
.rj-dist-n {
  text-align: right; font-size: 14px; color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.rj-tbl th, .rj-tbl td { vertical-align: top; line-height: 1.55; }
/* 表格是通栏的（左右贴边框），首列比标题少 6px；补到 18px 让三块（标题 / 说明 /
   表头）落在同一条竖线上。末列同理收 18px，右边不顶边。 */
.rj-tbl th:first-child, .rj-tbl td:first-child { padding-left: 18px; }
.rj-tbl th:last-child, .rj-tbl td:last-child { padding-right: 18px; }
/* 固定列宽（table-layout: fixed）。
   这七列的分量差得很远：类型、范围只有两三个字，驳回意见才是要看的那一列。
   交给浏览器自动分配时它按"最长内容"分，结果是意见被挤成三行、账号被挤成三行
   （"码字不秃头（CPA 版）"折成"…（CPA" + "版）"）——内容是给人读的，
   宁可让选题那一列多折一行，也不能让意见和账号挤成一列字。 */
.rj-tbl { table-layout: fixed; }
.rj-tbl th:nth-child(1) { width: 9%; }   /* 周次 2026-11-30 */
.rj-tbl th:nth-child(2) { width: 22%; }  /* 账号：昵称 + 编码两行 */
.rj-tbl th:nth-child(3) { width: 7%; }   /* 范围 整周 / 第 3 条 */
.rj-tbl th:nth-child(4) { width: 7%; }   /* 类型 方法讲解 */
.rj-tbl th:nth-child(5) { width: 20%; }  /* 选题 */
.rj-tbl th:nth-child(6) { width: 25%; }  /* 驳回意见——唯一要吃宽度的列 */
.rj-tbl th:nth-child(7) { width: 10%; }  /* 审核人 + 时间 */
.rj-tbl .rj-week {
  white-space: nowrap; color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.rj-tbl .rj-scope, .rj-tbl .rj-type { white-space: nowrap; }
.rj-tbl .rj-topic { color: var(--text-dim); }
.rj-tbl .rj-note { color: var(--text); }
.rj-tbl .rj-time { font-size: 13px; color: var(--text-mute); white-space: nowrap; }

/* ============================================================
   方向校准（v1.61.0）
   这一页的正文是 diff 与草案，都是采集侧给的长文本，不是表格数据。
   所以整块用等宽留白 + 可滚动的盒子，而不是卡片网格：
   人要能一眼扫过"哪条被删了、哪条只是改名"，卡片会把行吃掉。
   ============================================================ */
.dc-diff-head {
  font-size: 13px; color: var(--text-mute); white-space: pre-wrap;
  margin-top: 3px; max-height: 5.2em; overflow: hidden;
}
.dc-diff {
  font-family: var(--font);
  font-size: 15.5px; line-height: 1.7; color: var(--text);
  white-space: pre-wrap; word-break: break-word;
  background: #f8faf9; border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; margin: 0;
  max-height: 340px; overflow: auto;
}

.dc-head { padding-bottom: 4px; }
.dc-summary {
  margin-top: 8px; padding: 8px 12px; border-radius: 8px;
  background: var(--primary-l); color: var(--primary-d);
  font-size: 16px; font-weight: 600; white-space: pre-wrap;
}
.dc-note {
  margin-top: 8px; padding: 7px 11px; border-radius: 8px;
  background: #fffbeb; color: #92400e; font-size: 15.5px;
  white-space: pre-wrap;
}

/* 草案里的每个方向：一屏能放下两三个，字段名与内容分两列对齐。
   160px 是「近 30 天事件」这几个字的宽度，再窄就要折行。 */
.dc-dir {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 11px; margin-bottom: 8px; background: var(--surface);
}
.dc-dir-name { margin-bottom: 4px; font-size: 16.5px; }
.dc-dir-row {
  display: grid; grid-template-columns: 96px 1fr; gap: 8px;
  padding: 3px 0; align-items: start;
}
.dc-dir-label { font-size: 15px; color: var(--text-mute); }
.dc-dir-val {
  font-size: 15.5px; color: var(--text-dim);
  white-space: pre-wrap; word-break: break-word;
}

.dc-hist { padding: 7px 0; border-top: 1px dashed var(--border); }
.dc-hist:first-child { border-top: none; }
.dc-hist-note {
  margin-top: 4px; padding: 5px 9px; border-radius: 6px;
  background: #f7f8fa; color: var(--text-mute);
  font-size: 15px; white-space: pre-wrap;
}
