* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #1e1e24; color: #e8e8ea; }
/* 应用外壳（2026-11-04 由「左侧 180px 竖栏」改横式导航）：
   一列 = 顶栏 / 横排主导航 / 内容区。高度锁 100vh，顶栏与导航条不参与滚动，
   只有下方 .tab 内部滚动 —— 页面滚到哪儿菜单都还在手边。 */
.app { display: flex; flex-direction: column; min-height: 100vh; height: 100vh; height: 100dvh; }

/* 横排主导航条：紧贴顶栏下方，左侧菜单横向铺开（放不下就内部横滚，绝不压字），右端挂版本号。
   品牌只在顶栏出现，这里不再重复 logo（2026-11-04 用户定）。 */
.side { width: 100%; background: #16161a; border-bottom: 1px solid #2a2a32;
  padding: 6px 20px; display: flex; flex-direction: row; align-items: center; gap: 10px; }
.side nav { display: flex; flex-direction: row; align-items: center; gap: 4px;
  flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.side nav::-webkit-scrollbar { display: none; }
.side-foot { margin: 0 0 0 8px; flex: 0 0 auto; font-size: 12px; color: #6a6a72; white-space: nowrap; }
/* 导航按钮：由「满宽块级」改「横排胶囊」（选中仍是品牌红底白字，与旧版一致） */
.nav-btn { display: block; flex: 0 0 auto; width: auto; text-align: center; white-space: nowrap;
  background: none; border: none; color: #cfcfd6; padding: 8px 14px; border-radius: 8px;
  cursor: pointer; font-size: 14.5px; position: relative; }
.nav-btn:hover { background: #2a2a32; }
.nav-btn.active { background: #ff5a5f; color: #fff; }

main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
h2 { font-size: 20px; margin-bottom: 16px; }
h3 { font-size: 15px; margin-bottom: 10px; color: #ffd0d2; }
.tab { display: none; padding: 24px 28px; overflow-y: auto; flex: 1; }
.tab.active { display: block; }

/* 顶栏：左标题 / 右用户信息 + 退出登录（醒目） */
#topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 28px; background: #20202a; border-bottom: 1px solid #33333c; }
.topbar-left { display: flex; align-items: baseline; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-logo { width: 26px; height: 26px; flex: 0 0 auto; }
.brand-name { font-size: 23px; font-weight: 500; color: #ff6b70; letter-spacing: 1px; line-height: 1; white-space: nowrap; }
.page-title { font-size: 18px; color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.ub-info { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #cfcfd6; }
.ub-info .uname { color: #ffd0d2; font-weight: 600; }
.role-tag { background: #3a5fb0; color: #eef3ff; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.bw-tag { color: #9a9aa4; }
.logout-btn { background: #c0392b; color: #fff; border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; }
.logout-btn:hover { background: #e04b3a; }
.pw-btn { background: #2d6cdf; color: #fff; border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; }
.pw-btn:hover { background: #3f7ef0; }

/* 工作台顶栏：标题 + 工具栏 */
.work-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.work-head h2 { margin-bottom: 0; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar .hint { margin: 0; }

button.mini { margin-top: 0; padding: 8px 12px; font-size: 13px; background: #2f6f4f; color: #eafff2; align-self: flex-end; }
button.mini:hover { background: #3a8a62; }
button.mini.btn-new { background: #3a5fb0; color: #eef3ff; }
button.mini.btn-new:hover { background: #4a73c8; }
button.mini.btn-submit { background: #b8841f; color: #fff; }
button.mini.btn-submit:hover { background: #d09a26; }
/* 出卡区「保存」：把期号/名称/内容同步进归档（青色，与绿色「顺延+1」区分） */
button.mini.btn-sync { background: #2b6d78; color: #e8fbff; }
button.mini.btn-sync:hover { background: #35818e; }
button.mini:disabled { opacity: .45; cursor: not-allowed; }

/* 省预警信息徽标 */
.badge { align-self: flex-end; background: #b8521f; color: #fff; font-size: 12px; padding: 5px 10px; border-radius: 999px; line-height: 1; }
.hint-inline { font-size: 13px; color: #9a9aa4; align-self: flex-end; }
/* 省预警条目整行高亮 + 行内徽标（2026-11-15 用户要求：档案/待审批/过审日报均标明省预警）
   2026-11-16 修（v202）：底色一律画在 tr「整行 / 整卡」，不再逐格画在 td。
   手机端表格转卡片后 tr 是 flex 卡片、td 是带 column-gap 的独立小块，逐格上色会让
   缝隙露出卡片底色 #20202a，视觉上碎成左右两截（用户实拍截图）。
   选择器里必须带 #recTable / #approveTable（ID，1,1,1）才能压过手机端
   .table-wrap > table tr{background:#20202a}（0,1,2）——媒体查询不增加特异性。 */
#recTable tr.arc-prov, #approveTable tr.arc-prov,
.table-wrap > table tr.arc-prov, .monthly-table-wrap > table tr.arc-prov,
#userTable tr.arc-prov, tr.arc-prov {
  background: rgba(184, 82, 31, .18);
  box-shadow: inset 3px 0 0 #b8521f;
}
tr.arc-prov > td { background: transparent; }
#recTable tr.arc-prov:hover, #approveTable tr.arc-prov:hover,
tr.arc-prov:hover { background: rgba(184, 82, 31, .26); }
.prov-badge { display: inline-block; background: #b8521f; color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 999px; vertical-align: middle; margin-left: 4px; line-height: 1.7; white-space: nowrap; }

/* 日报状态徽标 */
.status-badge { align-self: flex-end; font-size: 12px; padding: 5px 12px; border-radius: 999px; line-height: 1; }
.st-draft { background: #444; color: #ddd; }
.st-pending { background: #b8841f; color: #fff; }
.st-approved { background: #2f6f4f; color: #eafff2; }

/* 待审批角标 */
.badge-count { display: inline-block; margin-left: 6px; background: #ff5a5f; color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 999px; vertical-align: middle; }
.nav-btn.blink { animation: blink 0.9s ease-in-out infinite; }
.nav-btn.blink-persist { animation: blink 0.9s ease-in-out infinite; }
@keyframes blink {  0%, 100% { background: #ff5a5f; color: #fff; box-shadow: 0 0 0 rgba(255,90,95,0); }
  50% { background: #ffd34d; color: #222; box-shadow: 0 0 14px rgba(255,211,77,.9); }
}

/* 整窗闪烁提醒（审批/出卡事件：导航按钮 + 窗口标题 + 整窗红框） */
.app.flash-window { animation: flashWindow 0.9s ease-in-out infinite; }
.app.flash-window-persist { animation: flashWindow 0.9s ease-in-out infinite; }
@keyframes flashWindow {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(255,90,95,0); }
  50% { box-shadow: inset 0 0 0 7px rgba(255,90,95,.9); }
}

/* 顶栏「强提醒」入口：关闭时灰、开启时红，一眼看出状态 */
.alarm-btn { background: #2a2a32; color: #cfcfd6; border: 1px solid #3f3f4a; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; margin-top: 0; }
.alarm-btn:hover { background: #34343e; }
.alarm-btn.on { background: #7a1f26; color: #ffe3e5; border-color: #b23b45; box-shadow: 0 0 0 1px rgba(255,90,95,.35); }

/* 强提醒悬浮条（响铃中）：置顶居中、脉动，点「我知道了」停止 */
.alarm-bar {
  position: fixed; left: 50%; top: 10px; transform: translateX(-50%); z-index: 900;
  display: flex; align-items: center; gap: 12px; max-width: 94vw;
  background: #b3121b; color: #fff; padding: 10px 14px; border-radius: 12px;
  animation: alarmPulse 1s ease-in-out infinite;
}
.alarm-bar .alarm-ico { font-size: 18px; }
.alarm-bar .alarm-text { font-size: 14px; line-height: 1.4; }
.alarm-bar button { margin-top: 0; min-height: 40px; background: #fff; color: #b3121b; font-weight: 700; padding: 7px 14px; border-radius: 8px; white-space: nowrap; }
.alarm-bar button:hover { background: #ffe9ea; }
@keyframes alarmPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(0,0,0,.55); }
  50% { box-shadow: 0 8px 28px rgba(0,0,0,.55), 0 0 0 7px rgba(255,90,95,.42); }
}

/* 强提醒配置弹层 */
.alarm-opts { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 4px; }
.alarm-opts label.chk { flex-direction: row; align-items: center; gap: 10px; color: #e8e8ea; font-size: 14px; flex: none; }
.alarm-opts input[type="radio"] { width: auto; flex: none; margin: 0; }
.alarm-row { align-items: center; }
#btnAlarmTest, #btnAlarmNotify, #btnAlarmStop2 { margin-top: 0; }
#alarmLimits { margin-top: 10px; }

/* 卡片内步骤序号视觉强化 */
.card h3 { display: flex; align-items: center; gap: 8px; }
/* 卡片标题后缀计数（如「今日过审日报 3 条」）：与 .st-approved 同一绿色系，弱化底、等宽数字 */
.card h3 .h3-cnt {
  font-size: 12px; font-weight: 600; letter-spacing: 0; line-height: 1;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(47, 111, 79, .38); color: #b6ecc9;
  border: 1px solid rgba(47, 111, 79, .85);
  font-variant-numeric: tabular-nums;
}
/* 卡片标题行：h3 在左、「清除信息」等操作按钮在右上角 */
.card .work-head.card-head { margin-bottom: 12px; align-items: center; }
.card-head h3 { margin-bottom: 0; }
button.mini.clear-raw-btn { align-self: center; margin-top: 0; background: #43262a; color: #ffd7d7; border: 1px solid #7a3a3a; }
button.mini.clear-raw-btn:hover { background: #573034; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.card { background: #26262e; border-radius: 12px; padding: 18px; border: 1px solid #30303a; box-sizing: border-box; }
.row { display: flex; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.row.search { max-width: 520px; }
.row label, label { display: flex; flex-direction: column; font-size: 13px; color: #b9b9c2; gap: 4px; flex: 1; }
label.chk { flex-direction: row; align-items: center; gap: 8px; color: #cfcfd6; }
.approve-chk { flex: 1; }

/* 账号权限管理：功能权限复选框组 */
.perm-new { flex-direction: column; align-items: flex-start; }
.perm-new-label { color: #b9b9c2; font-size: 13px; margin-bottom: 6px; }
/* 权限项：整块可点的大卡片按钮（2026-11-20 版本一）。勾选后整块变红 + 白勾白字。
   2026-11-20 整齐化：固定宽度、不随 flex 拉伸，所有卡片同一尺寸/字体/间距。 */
.pchk { position: relative; box-sizing: border-box; display: inline-flex; flex: 0 0 auto; width: 100%;
  flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px;
  min-height: 38px; padding: 7px 10px 7px 9px; margin: 0; color: #e6e6ec; font-size: 13.5px; font-weight: 600;
  white-space: nowrap; cursor: pointer; user-select: none;
  background: rgba(255,255,255,.045); border: 1px solid #45454f; border-radius: 8px;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
/* 卡片前的勾标记：未选空心圈，选中白勾 */
.pchk::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; box-sizing: border-box;
  border: 2px solid #7a7a86; border-radius: 50%; background: transparent; line-height: 14px;
  text-align: center; font-size: 13px; font-weight: 700; transition: all .15s; }
/* 原生复选框透明铺满整块，点卡片任意位置都切到它；:has 让整块随勾选态变色 */
.pchk input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; box-sizing: border-box;
  margin: 0; opacity: 0; cursor: pointer; }
.pchk:hover:not(.is-locked) { border-color: #ff6a6f; background: rgba(255,90,95,.13); }
.pchk:has(input:checked):not(.is-locked) { background: linear-gradient(180deg,#ff6469,#e84046);
  border-color: #ff7a7f; color: #fff; box-shadow: 0 2px 9px rgba(232,64,70,.30); }
.pchk:has(input:checked)::before { content: "✓"; color: #fff; border-color: rgba(255,255,255,.75); background: transparent; }
/* 表单里的复选框也须「勾选框+文字」同行（优先级需高于 .row label 的 column 规则） */
.row .pchk { flex-direction: row; align-items: center; }
/* 用户列表角色分区标题行（管理员组/领导组/用户组） */
#userTable tr.role-sep td { background: rgba(255,138,138,.09); color: #ff9c9c; font-weight: 700;
  font-size: 13px; letter-spacing: .5px; padding: 7px 12px; border-left: 3px solid #ff6469; }
#userTable tr.role-sep:hover td { background: rgba(255,138,138,.09); }
/* 用户与权限表：账号/角色/时间不换行；功能权限按分组平铺，不再散乱 */
#userTable td.acct-cell,
#userTable td.role-cell,
#userTable td:nth-child(4) { white-space: nowrap; }
#userTable td.perm-cell { padding-top: 8px; padding-bottom: 8px; }
/* 权限格子：等宽网格，卡片一律同一宽度、整齐换行对齐，不再随项数拉伸变宽 */
.perm-box { display: grid; grid-template-columns: repeat(3, 116px); gap: 8px 8px;
  align-items: stretch; justify-content: start; }

/* ===== 2026-11-20 权限选择页展示优化：分组 + 快捷操作 + 禁用态说明 ===== */
/* 一、新增账号表单的权限区 */
.perm-new-wrap { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.perm-new-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.perm-new-label { color: #b9b9c2; font-size: 13px; }
.perm-quick { display: inline-flex; gap: 8px; flex-wrap: wrap; }
button.mini { padding: 4px 12px; font-size: 12px; margin-top: 0; border-radius: 6px; }
.perm-groups { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.perm-group { display: flex; flex-direction: column; gap: 6px; padding: 8px 12px;
  background: rgba(255,255,255,.025); border: 1px solid #30303a; border-radius: 9px; }
.perm-group-title { font-size: 12px; letter-spacing: .5px; color: #ff8a8a; font-weight: 600; }
/* 二、用户列表每行的权限格子：4 组竖排，组名淡色，锁态灰化 */
.perm-grid { display: flex; flex-direction: column; gap: 10px; }
.perm-grid-group { display: flex; align-items: flex-start; gap: 12px; }
.perm-grid-title { flex: 0 0 64px; font-size: 11px; color: #8a9aa8; line-height: 38px; white-space: nowrap; }
/* 用户列表权限格：固定 3 列等宽网格；宽屏卡片更舒展，窄屏由媒体查询收窄 */
.perm-grid-group .perm-box { flex: 1; grid-template-columns: repeat(3, minmax(96px, 132px)); gap: 8px; }
/* 三、禁用态（管理员/领导恒拥有）：灰化 + 锁标记，仍可见但不可点 */
.pchk.is-locked { color: #8a8a94; cursor: not-allowed; background: rgba(255,255,255,.025); border-color: #34343d; box-shadow: none; }
.pchk.is-locked::before { border-color: #5c5c66; }
.pchk.is-locked:has(input:checked) { background: rgba(120,120,130,.16); border-color: #4a4a54; color: #a8a8b2; box-shadow: none; }
.pchk.is-locked:has(input:checked)::before { content: "✓"; color: #a8a8b2; border-color: #70707a; }
.pchk.is-locked input { cursor: not-allowed; }
.perm-lock { font-size: 12px; margin-left: 2px; opacity: .75; }
/* 组标题在大卡片下垂直居中留白更舒展 */
.perm-group { gap: 9px; padding: 10px 13px; }
.acct-cell { white-space: nowrap; }
.acct-name { color: #9a9aa4; }
input, select, textarea { background: #1b1b21; border: 1px solid #3a3a44; color: #eee; border-radius: 8px; padding: 8px 10px; font-size: 14px; font-family: inherit; width: 100%; }
textarea { resize: vertical; }
button { background: #3a3a44; color: #eee; border: none; padding: 9px 16px; border-radius: 8px; cursor: pointer; font-size: 14px; margin-top: 8px; }
button:hover { background: #4a4a56; }
button.primary { background: #ff5a5f; color: #fff; }
button.primary:hover { background: #ff7378; }
button:disabled { opacity: .5; cursor: not-allowed; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.msg { font-size: 13px; margin-top: 8px; color: #8fd; min-height: 16px; }
.msg.err { color: #ff8a8a; }

table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid #33333c; font-size: 14px; }
th { color: #9a9aa4; font-weight: 500; }
td a { color: #ff8a8f; cursor: pointer; margin-right: 10px; }
.hint { font-size: 13px; color: #9a9aa4; margin-bottom: 12px; }
/* ================= 表格显示优化：100% 缩放下不折字（2026-09-22） =================
   病根：表格只写 width:100%，列宽全靠浏览器按内容自动分配。中文没有词边界，
   自动布局会把「中风险」「草稿」「办文人」压成一列一个字，看着像被折叠。
   解法：① 表头一律不换行；② 短列（期号/风险/状态/办文人/时间/操作）不换行；
        ③ 表格改用固定布局并显式给列宽，列宽由我们定，不再由内容定；
        ④ 装进可横向滚动的容器，窗口真的不够宽时出滚动条，而不是把字挤成竖排。 */
.table-wrap { overflow-x: auto; margin-top: 12px; }
.table-wrap > table { margin-top: 0; }
th { white-space: nowrap; }
.st-tag, .dup-badge { white-space: nowrap; }

/* 归档表（7 列，2026-11-03 起删除「驳回理由」列合并进「状态」）：
   期号/风险/状态/办文人/时间/操作 定宽不换行；标题列吃掉剩余空间。
   ⚠ 列数与 nth-child 必须同步：上一版删列后宽度仍挂在 nth-child(8)（表里根本没有第 8 列），
   操作列丢宽退化为自动宽度 → 6 个操作被挤成 3 行。 */
#recTable { table-layout: fixed; min-width: 1102px; }
#recTable th:nth-child(1) { width: 156px; }
#recTable th:nth-child(2) { width: auto; }
#recTable th:nth-child(3) { width: 72px; }
#recTable th:nth-child(4) { width: 148px; }   /* 状态：要放下「由李津通过（待终审）」+ 可能并排的「超时回滚」 */
#recTable th:nth-child(5) { width: 84px; }
#recTable th:nth-child(6) { width: 142px; }   /* 创建时间：装得下「2026-11-03 10:21:08」整串，不被裁 */
#recTable th:nth-child(7) { width: 276px; }   /* 操作：两行胶囊，每行最多 4 颗（实测单行 243px） */
#recTable td { overflow-wrap: break-word; }
/* 期号格允许在「数字 ↔ 重复徽标」之间折行（两枚徽标时才折），数字与徽标本身不断字 */
#recTable td:nth-child(1) { word-break: keep-all; }
/* 标题：唯一允许自由换行的正文列 */
#recTable td:nth-child(2) { word-break: break-word; line-height: 1.55; }
/* 状态列不 nowrap：两枚徽标（通过 + 超时回滚）时允许在徽标之间折行，而不是撑破单元格 */
#recTable td:nth-child(3), #recTable td:nth-child(5),
#recTable td:nth-child(6), #recTable td:nth-child(7) { white-space: nowrap; }

/* 待审批表（5 列，2026-11-12 二次调整：用户要「占满全宽、后面不留空、字号大些便于审阅」）
   ① width:100% + 百分比列宽 → 表格铺满内容区、右侧不留白；min-width:0 去掉底部横向滚动行；
   ② 标题列吃满剩余空间（长标题一行放下、不被挤成竖排）；
   ③ 字号 15px（全局表格 14px）、padding 11px、行高 1.55，比紧凑版更舒展、便于审阅。
   ⚠ 窄窗口（<1180px）下百分比列宽会随之收缩，不再有固定 880px 撑出滚动条。 */
#approveTable { table-layout: fixed; width: 100%; min-width: 0; font-size: 15px; }
#approveTable th:nth-child(1) { width: 8%; }
#approveTable th:nth-child(2) { width: auto; }
#approveTable th:nth-child(3) { width: 9%; }
#approveTable th:nth-child(4) { width: 26%; }
#approveTable th:nth-child(5) { width: 8%; }
#approveTable th, #approveTable td { padding: 11px 12px; }
#approveTable td { overflow-wrap: break-word; }
#approveTable td:nth-child(2) { word-break: break-word; line-height: 1.55; }
#approveTable td:nth-child(1), #approveTable td:nth-child(3),
#approveTable td:nth-child(4), #approveTable td:nth-child(5) { white-space: nowrap; }
/* 提交时间列第二行「最近：…」字号放大，便于审阅流转记录 */
#approveTable .flow-last { font-size: 12.5px; }

/* 每日台账历史列表（5 列，两个时间列最容易被压断） */
#ledgerTable { table-layout: fixed; min-width: 760px; }
#ledgerTable th:nth-child(1) { width: 116px; }
#ledgerTable th:nth-child(2) { width: 90px; }
#ledgerTable th:nth-child(3) { width: 168px; }
#ledgerTable th:nth-child(4) { width: 168px; }
#ledgerTable th:nth-child(5) { width: 140px; }
#ledgerTable td:nth-child(1), #ledgerTable td:nth-child(2),
#ledgerTable td:nth-child(3), #ledgerTable td:nth-child(4),
#ledgerTable td:nth-child(5) { white-space: nowrap; }

/* 窄窗口：表格保底宽度不变（宁可横滚），只把外边距收紧一点多留出显示空间 */
@media (max-width: 1180px) {
  .tab { padding: 20px 18px; }
}

/* 归档状态标签 */
.st-tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; }
/* 驳回原因明文（2026-11-12）：紧跟在「由XX驳回」标签后面，长理由自动折行 */
.st-td .reject-reason-inline { font-size: 12px; color: #ffb3b8; word-break: break-word; white-space: normal; }
.st-tag.st-draft { background: #444; color: #ddd; }
.st-tag.st-pending { background: #b8841f; color: #fff; }
.st-tag.st-approved { background: #2f6f4f; color: #eafff2; }
/* 超时回滚标记：该草稿因「提交后超 48h 未审」被自动打回日报页，待重新编辑 */
.st-tag.st-rollback { background: #7a5b00; color: #fff3cf; border: 1px solid #b8841f; }

/* 待审批列表：提交超过 48h 仍未通过 → 整行标红提示「将自动回滚」 */
#approveTable tr.stale { background: #3a2024 !important; }
#approveTable tr.stale td { color: #ffd9d9; }
.stale-tip { margin-top: 3px; font-size: 11px; color: #ff9a9a; }
/* 待审批列表期号兜底：提交时未预占到号的历史/异常记录（正常不会出现） */
.qh-tbd { color: #9a9aa4; font-size: 12.5px; }

/* 归档重复标记徽标：期号重复（红）/ 内容重复（橙）。只做标记，系统不覆盖不删除 */
.dup-badge { display: inline-block; margin-left: 4px; padding: 0 5px; font-size: 10px; line-height: 1.55; border-radius: 3px; background: #dc2626; color: #fff; vertical-align: 1px; }
.dup-badge.dup-content { background: #d97706; }
/* 重复徽标可点（2026-11-20）：点「期号重 / 内容重」弹出所有冲突记录正文对比 */
.dup-badge-clickable { cursor: pointer; }
.dup-badge-clickable:hover { filter: brightness(1.18); box-shadow: 0 0 0 2px rgba(255,255,255,.22); }
/* 带重复标记的行整行可点（2026-11-20）：光标提示 + 悬停高亮 + 左侧色条 */
tr.dup-row-clickable { cursor: pointer; }
tr.dup-row-clickable:hover { background: rgba(217,119,6,.12); }
tr.dup-row-clickable td:first-child { box-shadow: inset 3px 0 0 #d97706; }
/* 重复内容对比弹层 */
.dupcmp-list { max-height: 66vh; overflow-y: auto; }
.dupcmp-loading { padding: 20px; color: #9aa0b0; font-size: 13px; }
.dupcmp-item { padding: 12px 14px; margin-bottom: 12px; background: #202028; border: 1px solid #3a3a46; border-radius: 9px; }
.dupcmp-item.is-self { border-color: #6aa6e0; background: #1e2632; }
.dupcmp-meta { font-size: 12px; color: #b9becb; line-height: 1.7; }
.dupcmp-self { color: #8ec5ff; font-weight: 600; }
.dupcmp-other { color: #f0b063; font-weight: 600; }
.dupcmp-title { margin: 6px 0 8px; font-size: 13.5px; color: #eceef4; font-weight: 600; }
.dupcmp-pre { max-height: 260px; margin-top: 0; }
.dupcmp-sub { margin: 10px 0 4px; font-size: 11.5px; color: #9aa0b0; }
/* 为什么重复：顶部原因横幅 + 本条/另一条并排 + 相同正文高亮（2026-11-20） */
.dupcmp-box { width: min(1040px, 94vw); }
.dupcmp-why { padding: 11px 14px; margin: 2px 0 12px; background: rgba(217,119,6,.12); border: 1px solid rgba(217,119,6,.45); border-left: 3px solid #d97706; border-radius: 7px; color: #f3d7a6; font-size: 13px; line-height: 1.85; }
.dupcmp-why b { color: #ffca76; font-weight: 700; }
.dupcmp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.dupcmp-cols .dupcmp-item { margin-bottom: 0; }
.dupcmp-same { background: rgba(224,182,58,.12); border-left: 3px solid #e0b63a; }
@media (max-width: 760px) { .dupcmp-cols { grid-template-columns: 1fr; } }
/* 「正文命中」徽标：搜索命中正文/全文索引（非标题），用中性蓝区别于重复告警色 */
.hit-badge { display: inline-block; margin-left: 5px; padding: 1px 6px; font-size: 11px; line-height: 1.6; border-radius: 4px; background: #2563eb; color: #fff; vertical-align: middle; white-space: nowrap; }

/* 归档「作废」（2026-09-22）：作废是**逻辑失效**（数据仍在、可恢复），
   故用灰调与「驳回」的红调、「重复」的红/橙标明确区分 —— 一眼看出这条不是出错，而是主动停用 */
.st-tag.st-voided, .status-badge.st-voided { background: #4a4a55; color: #d8d8de; }
/* 归档「状态」悬停详情（2026-11-04）：鼠标停在状态徽标上，浮层列出 报审 / 修改 / 驳回 / 初审 / 终审。
   用 fixed 定位——归档表格外层是 overflow:auto，绝对定位的子元素会被裁掉。 */
.st-tip { position: fixed; z-index: 960; display: none; max-width: 480px; padding: 9px 12px;
  background: #22232a; border: 1px solid #3c3d48; border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5); font-size: 12.5px; line-height: 1.8; color: #dcdee6; pointer-events: none; }
.st-tip-row { white-space: nowrap; }
.st-tip-k { display: inline-block; min-width: 2.6em; margin-right: 8px; color: #9aa0b0; }
.dup-badge.dup-voided { background: #4a4a55; color: #e6e6ec; }
/* 归档页：未过审且期号已回收的记录，期号格弱化显示（只保留标题事件） */
.qi-recycled { color: #8a8a96; font-style: italic; }
/* 作废筛选按钮：选中时用灰调（红色留给「全部」这类常规筛选，避免误读成危险操作） */
.filter-btn.filter-voided.active { background: #4a4a55; border-color: #5a5a66; color: #fff; }

/* ===== 归档表「操作」列：胶囊按钮 + 主次两行（2026-11-03 用户选定的方案 A）=====
   第 1 行放日常高频（打开/重报 / 驳回 / 查询 / 反馈；未过审的「期号」也在此行与「重报」并排），
   第 2 行放管理类（已过审期号 / 作废 / 删除）。
   为什么分两行：276px 里最多放 4 颗胶囊，
   6 个操作硬塞一行只会折成参差的 3 行（即改造前的样子）。分两行后行数固定、左右对齐。
   颜色语义：蓝=主操作、蓝绿=查看文件、青=反馈（有反馈时更亮）、琥珀=作废、红=删除、绿=恢复。 */
#recTable td.ops-td { padding: 5px 8px; }
.ops { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.ops .ops-row { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.ops .ops-row:empty { display: none; }   /* 没有管理类操作时不留空行与间距 */
.ops a {
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0; padding: 5px 15px; border-radius: 8px;
  font-size: 13.5px; line-height: 1.5; min-width: 62px; white-space: nowrap; cursor: pointer;
  background: #2a2a33; border: 1px solid #3a3a46; color: #cfcfd6;
  transition: background .12s, border-color .12s, color .12s;
}
#recTable td.ops-td a:hover { background: #34343f; border-color: #4d4d5c; color: #fff; text-decoration: none; }
/* 主次两行统一尺寸：所有操作按钮相同大小、适当放大，整体视觉更协调（2026-11-04） */
.ops .ops-row.man a { font-size: 13.5px; padding: 5px 15px; min-width: 62px; }
.ops a sup { font-size: 10px; margin-left: 2px; vertical-align: super; line-height: 0; }
/* 语义配色（id 前缀保证优先级高于全局 td a 的红色） */
#recTable td.ops-td a.op-open { background: #2b3f63; border-color: #3a5fb0; color: #dfeaff; }
#recTable td.ops-td a.op-open:hover { background: #34507d; border-color: #4a73c8; }
#recTable td.ops-td a.op-query { background: #24455e; border-color: #2b6d94; color: #bfe3ff; }
#recTable td.ops-td a.op-query:hover { background: #2d5675; border-color: #3a86b8; }
/* 「反馈」：沉稳青色；已有反馈时高亮加粗，份数标在右上角 */
#recTable td.ops-td a.op-feedback { background: #1e3f3d; border-color: #2b6d68; color: #8fe6dc; }
#recTable td.ops-td a.op-feedback.has-fb { background: #24615c; border-color: #35e0c8; color: #d9fff9; font-weight: 600; }
/* 「期号」：仅管理员、已过审记录显示 */
#recTable td.ops-td a.op-change-qi { background: #24455e; border-color: #2b6d94; color: #bfe3ff; }
/* 「作废」用琥珀警示（刻意不用删除的红，避免与删除混淆）；「恢复」用绿色 */
#recTable td.ops-td a.op-void { background: #463517; border-color: #8a6420; color: #ffcf85; }
#recTable td.ops-td a.op-void:hover { background: #57401b; border-color: #a97a28; }
#recTable td.ops-td a.op-unvoid { background: #1d4030; border-color: #3d8a64; color: #9cf0c4; }
#recTable td.ops-td a.op-unvoid:hover { background: #245040; }
/* 「删除」：唯一用红色的操作，与「作废」明确区分 */
#recTable td.ops-td a.op-del { background: #45191d; border-color: #8a3038; color: #ffb3b8; }
#recTable td.ops-td a.op-del:hover { background: #571f24; border-color: #b03b45; }
/* 归档表更紧凑（2026-10-15）：仅桌面表格视图收紧内边距与字号，一屏能多看几行。
   窄屏(≤768px)是卡片式布局，保持其原有间距，不在此覆盖，避免影响手机端可读性。 */
@media (min-width: 769px) {
  #recTable th, #recTable td { padding: 6px 8px; font-size: 13px; }
  #recTable td:nth-child(2) { line-height: 1.45; }
  /* 已上传反馈的记录：整行左侧留一道青色标记，列表里一眼可见 */
  #recTable tr.has-fb > td:first-child { box-shadow: inset 3px 0 0 #35e0c8; }
}

/* 反馈信息弹层内的文件列表：每条反馈做成卡片（单位+时间一行、文件名一行、操作一行），
   避免长文件名把「单位」压成竖排、把时间与操作挤成一团；文件名可点直接预览 */
.fb-list { margin: 10px 0 14px; max-height: 46vh; overflow-y: auto; border: 1px solid #3a3a44; border-radius: 10px; padding: 10px; }
.fb-list .muted { color: #9a9aa4; padding: 8px 4px; }
.fb-item { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid #2e2e38; border-radius: 10px; background: #23232b; }
.fb-item:last-child { margin-bottom: 0; }
.fb-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fb-unit { font-weight: 600; color: #7fe0d6; }
.fb-meta { color: #9a9aa4; font-size: 12px; white-space: nowrap; flex-shrink: 0; }
.fb-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #ffd27f; background: rgba(255,180,60,0.14); border: 1px solid rgba(255,180,60,0.4); vertical-align: middle; }
.fb-name { color: #e8e8ee; word-break: break-all; line-height: 1.5; cursor: pointer; }
.fb-name:hover { color: #5bd1c9; text-decoration: underline; }
.fb-ops { display: flex; gap: 16px; }
.fb-ops a { cursor: pointer; }
.fb-ops a.fb-dl { color: #8fd; }
.fb-ops a.fb-del { color: #ff5c5c; }
.fb-upload-row { align-items: center; gap: 10px; flex-wrap: wrap; }
.fb-unit-label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #b8b8c0; }
/* 反馈上传拖拽区 + 逐条上传状态 */
.fb-drop { border: 2px dashed #c7d0e0; border-radius: 10px; padding: 20px 16px; text-align: center;
  cursor: pointer; background: #fafbfe; transition: .15s; margin: 6px 0 2px; outline: none; }
.fb-drop:hover, .fb-drop:focus { background: #f0f4ff; border-color: #9bb4ff; }
.fb-drop.drag-over { background: #e7eeff; border-color: #4a7bff; box-shadow: 0 0 0 3px rgba(74,123,255,.18); }
.fb-drop-ico { font-size: 22px; color: #4a7bff; line-height: 1; }
.fb-drop-main { font-size: 15px; color: #33415c; font-weight: 600; margin-top: 6px; }
.fb-drop-sub { font-size: 12px; color: #8a93a6; margin-top: 4px; }
.fb-drop-status { margin: 8px 0 2px; display: flex; flex-direction: column; gap: 4px; }
.fb-up-item { font-size: 13px; padding: 5px 10px; border-radius: 6px; border: 1px solid transparent; word-break: break-all; }
.up-wait { color: #8a93a6; background: #f3f5f9; }
.up-doing { color: #2456c8; background: #eaf1ff; border-color: #cfe0ff; }
.up-ok { color: #1d7a3a; background: #e8f8ee; border-color: #bfe9cc; }
.up-err { color: #c0392b; background: #fdecea; border-color: #f3c4bf; }
/* 账号「删除」是真正的破坏性操作，用更重的红 + 加粗，与默认色（重置密码/改办文人）拉开区分 */
#userTable td a.op-del { color: #ff5c5c; font-weight: 600; }
#userTable td a.op-del:hover { text-decoration: underline; }
/* 「当前登录」标记：自己那一行不给删除入口，用灰字说明原因 */
#userTable td span.op-self { color: #9a9aa4; font-size: 13px; }
/* 登录锁定徽标：永久锁定(红) / 临时锁定(琥珀)，紧跟在账号名后 */
.lock-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; font-size: 12px;
  line-height: 1.5; border-radius: 999px; font-weight: 700; vertical-align: middle; white-space: nowrap; }
.lock-badge.lock-locked { background: rgba(255, 90, 95, .20); color: #ff9a9e; border: 1px solid rgba(255, 90, 95, .45); }
.lock-badge.lock-temp { background: rgba(255, 176, 87, .18); color: #ffcd94; border: 1px solid rgba(255, 176, 87, .45); }
/* 解锁操作入口 */
#userTable td a.op-unlock { color: #ffcd94; font-weight: 600; }
#userTable td a.op-unlock:hover { text-decoration: underline; }
/* 操作列不换行，避免多个操作项被挤成两行 */
#userTable td:last-child { white-space: nowrap; }
/* 已作废横幅：复用驳回横幅版式，换成灰调，读起来是「停用通知」而不是「错误告警」 */
.reject-banner.void-state { background: #2b2b33; border-color: #4a4a55; border-left-color: #8a8a96; }
.reject-banner.void-state .rb-head b { color: #d8d8de; }
.reject-banner.void-state .rb-reason { color: #c7c7d0; }
.reject-banner.void-state .rb-meta { color: #9a9aa4; }
.reject-banner.void-state .rb-tip { color: #8a8a96; }

/* 归档页「归档PDF档案」清单（列出所有上传的 PDF 原件，含未挂账的，不丢件） */
.arc-files { margin: 18px 0 8px; padding: 14px 16px; border: 1px solid #3a3a44; border-radius: 12px; background: #1e1e26; }
.arc-files .arc-files-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.arc-files .arc-files-head b { font-size: 15px; color: #e8e8ee; }
.arc-files .arc-files-head .hint-inline { color: #9a9aa4; font-size: 12px; }
.arc-files .arc-files-head .mini { margin-left: 0; }
.arc-files .arc-files-head #btnArcFilesToggle { margin-left: auto; }
.arc-files .arc-files-note { display: block; color: #9a9aa4; font-size: 12px; line-height: 1.6; margin: 0 0 8px; }
.arc-files-body[hidden] { display: none; }
.arc-files .arc-files-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.arc-files .arc-files-filters .mini { align-self: center; margin-top: 0; padding: 5px 11px; font-size: 12.5px; background: #2a2a34; color: #c8c8d2; border: 1px solid #3a3a46; }
.arc-files .arc-files-filters .mini:hover { background: #34343f; }
.arc-files .arc-files-filters .mini.active { background: #2b6f6a; color: #eafffb; border-color: #3aa39a; font-weight: 600; }
.arc-files td .arcf-dup { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 8px; font-size: 11px; color: #ffd9a8; background: #4a3620; border: 1px solid #7a5a2e; }
.arc-files td .arcf-orphan { color: #ffb454; }
.arc-files table { width: 100%; border-collapse: collapse; font-size: 13px; }
.arc-files th, .arc-files td { border-bottom: 1px solid #2e2e38; padding: 7px 8px; text-align: left; color: #d8d8de; }
.arc-files th { color: #9a9aa4; font-weight: 600; }
.arc-files td.arcf-name { max-width: 360px; word-break: break-all; color: #e8e8ee; }
.arc-files td a { cursor: pointer; margin-right: 10px; color: #5bd1c9; }
.arc-files td a.op-void { color: #ff5c5c; }
.arc-files td a.op-attach { color: #6ee7a8; }

/* 审批详情弹层 */
.modal { position: fixed; inset: 0; background: rgba(12,12,16,.7); display: flex; align-items: center; justify-content: center; z-index: 500; }
.modal-box { width: 560px; max-width: 92vw; background: #26262e; border-radius: 14px; padding: 24px; box-shadow: 0 10px 40px rgba(0,0,0,.5);
  /* 内容可能很长（如强提醒弹层里的铃音候选网格）：必须限高并允许滚动，
     否则窄屏下底部按钮会溢出视口、根本滚不到。 */
  max-height: 90vh; overflow-y: auto; }
/* ===== 首次登录强制改密 / 高强度密码规则（2026-11-15 用户定）===== */
.pw-rule { font-size: 12.5px; color: #9fc4e8; background: rgba(70,125,180,.14);
  border: 1px solid rgba(120,170,220,.35); border-radius: 8px;
  padding: 8px 10px; margin-top: 10px; line-height: 1.6; }
.modal.force { background: rgba(8,10,16,.88); z-index: 900; }
.modal.force .modal-box { border: 1px solid #6aa6e0; box-shadow: 0 12px 48px rgba(40,110,190,.28); }
.modal.force #pwTitle { color: #9fc4e8; }
.modal-meta { font-size: 13px; color: #b9b9c2; margin: 10px 0; }
.modal-pre { background: #1b1b21; border: 1px solid #3a3a44; border-radius: 8px; padding: 12px; max-height: 320px; overflow-y: auto; white-space: pre-wrap; font-size: 13px; line-height: 1.6; color: #e8e8ea; }

/* ===== 起草时「历史相似舆情」弹窗 ===== */
.sim-top { background: rgba(184,132,31,.16); border: 1px solid #b8841f; color: #ffd9a8;
  font-size: 14px; font-weight: 700; padding: 12px 14px; border-radius: 10px; margin-bottom: 10px; line-height: 1.5; }
.sim-tip { font-size: 12.5px; color: #9aa6b8; margin-bottom: 12px; line-height: 1.6; }
.sim-list { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow-y: auto; }
.sim-row { background: #1b1b21; border: 1px solid #3a3a44; border-radius: 10px; padding: 10px 12px;
  cursor: pointer; transition: border-color .15s, background .15s; }
.sim-row:hover { border-color: #b8841f; background: #20202a; }
.sim-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sim-qh { font-weight: 700; color: #ffd9a8; font-size: 13.5px; }
.sim-type { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: rgba(91,157,255,.18); color: #a9ccff; font-weight: 700; }
.sim-date { font-size: 12px; color: #9aa6b8; }
.sim-pct { margin-left: auto; font-weight: 700; font-size: 13px; padding: 1px 8px; border-radius: 6px; }
.sim-pct.hi { background: rgba(255,90,95,.2); color: #ff7a7f; }
.sim-pct.mid { background: rgba(184,132,31,.2); color: #ffc46b; }
.sim-pct.lo { background: rgba(120,120,130,.18); color: #b9b9c2; }
.sim-title { font-size: 14px; color: #e8e8ea; margin: 6px 0 4px; line-height: 1.5; }
.sim-meta { font-size: 12px; color: #9aa6b8; }
.sim-snippet { margin-top: 8px; padding: 10px; background: #15151b; border-radius: 8px;
  font-size: 12.5px; line-height: 1.7; color: #c8c8d0; white-space: pre-wrap; }
.sim-view { margin-top: 8px; }
.sim-btns { margin-top: 16px; }
/* v284：≥90% 强提醒 / 75~90% 折叠「可能相关」 */
.sim-top.strong { background: rgba(255,90,95,.18); border-color: #e24b4a; color: #ffb3b5; }
.sim-top.maybe { background: rgba(184,132,31,.16); border-color: #b8841f; color: #ffd9a8; }
.sim-group { font-size: 12.5px; font-weight: 700; margin: 2px 0 8px; }
.sim-group.sim-strong { color: #ff8a8f; }
.sim-maybe { margin-top: 12px; border: 1px solid #4a4a54; border-radius: 10px; padding: 8px 12px; background: #1b1b21; }
.sim-maybe-sum { cursor: pointer; font-size: 12.5px; font-weight: 700; color: #ffc46b; list-style: none; }
.sim-maybe-sum::-webkit-details-marker { display: none; }
.sim-maybe-sum::before { content: "▸ "; }
.sim-maybe[open] .sim-maybe-sum::before { content: "▾ "; }
.sim-maybe .sim-list { max-height: 30vh; margin-top: 10px; }
.sim-row.strong { border-left: 3px solid #e24b4a; }
.sim-row.maybe { border-left: 3px solid #b8841f; }

/* 全局提示 toast */
#toasts { position: fixed; top: 16px; right: 16px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #2a2a32; color: #eee; border-left: 4px solid #888; padding: 12px 16px; border-radius: 8px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.4); opacity: 0; transform: translateX(20px); transition: all .3s; max-width: 360px; }
.toast.show { opacity: 1; transform: translateX(0); }
.toast.ok { border-left-color: #2f6f4f; }
.toast.warn { border-left-color: #b8841f; }

/* ===== 登录遮罩（修复：登录后必须隐藏）===== */
.hidden { display: none !important; }
#loginMask { position: fixed; inset: 0; background: rgba(12,12,16,.88); display: flex; align-items: center; justify-content: center; z-index: 900; }
#loginMask.hidden { display: none !important; }
#loginMask > * { width: 380px; max-width: 92vw; background: #26262e; border-radius: 14px; padding: 26px 24px; box-shadow: 0 12px 44px rgba(0,0,0,.55); box-sizing: border-box; }
#loginMask h1, #loginMask .login-title, #loginMask .login-logo { font-size: 34px; font-weight: 700; color: #ff5a5f; text-align: center; margin-bottom: 14px; letter-spacing: 4px; }
#loginMask label { margin-bottom: 10px; }
#loginMask button { width: 100%; background: #ff5a5f; color: #fff; margin-top: 14px; font-weight: 600; }
#loginMask button:hover { background: #ff7378; }
/* 登录门户壳（纯前端，内核不变）：带单位标识的登录页 */
#loginMask .lp-card { width: 400px; flex-direction: column; }
#loginMask .lp-brand { font-size: 34px; font-weight: 700; color: #ffd9a8; text-align: center; letter-spacing: 6px; margin: 4px 0 20px; }
#loginMask .lp-sub { font-size: 14px; color: #b9b9c4; text-align: center; margin: 4px 0 18px; letter-spacing: 2px; }
#loginMask .lp-sep { height: 1px; background: rgba(255,255,255,.10); margin: 0 0 18px; }
#loginMask .lp-card input { width: 100%; box-sizing: border-box; padding: 11px 12px; margin-bottom: 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: #1d1d24; color: #f2f2f6; font-size: 14px; }
#loginMask .lp-card input::placeholder { color: #8a8a96; }
#loginMask .lp-card input:focus { outline: none; border-color: #ff8a5f; }
#loginMask #btnLogin { background: #ff5a5f; color: #fff; border: none; border-radius: 8px; padding: 12px; font-size: 15px; font-weight: 600; margin-top: 4px; letter-spacing: 4px; }
#loginMask #btnLogin:hover { background: #ff7378; }
#loginMask .lp-foot { font-size: 11px; color: #7a7a86; text-align: center; margin-top: 14px; }
#loginMask #loginMsg { min-height: 18px; font-size: 12px; text-align: center; margin-top: 10px; color: #ffb3b3; }
#loginMask #loginMsg.ok { color: #9fe1c5; }

/* ===== 标题开关：媒体 / 省预警（两个独立可同时选）===== */
.toggle-row { gap: 12px; align-items: center; }
/* ===== 对齐规范（方案 1：对称双栏）=====
   快捷栏内所有控件按中线对齐、统一高度，避免高矮不齐造成的错位 */
.toggle-row { align-items: center; row-gap: 10px; }
.toggle-row > * { margin-top: 0; }
.toggle-row .chk.tg,
.toggle-row .risk-btn,
.toggle-row label.tg-field input { height: 32px; box-sizing: border-box; }
.toggle-row label.chk.tg { display: inline-flex; align-items: center; padding-top: 0; padding-bottom: 0; }
.toggle-row .risk-field,
.toggle-row label.tg-field { height: 32px; align-items: center; }
label.tg { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 8px; background: #1b1b21; border: 1px solid #3a3a44; border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 13px; color: #cfcfd6; }
label.tg:hover { border-color: #ff5a5f; color: #fff; }
label.tg input { width: auto; flex: 0 0 auto; accent-color: #ff5a5f; cursor: pointer; }
label.tg:has(input:checked) { background: #4a2a2e; border-color: #ff5a5f; color: #fff; }
label.tg.tg-dual:has(input:checked) { background: #1f3a2e; border-color: #46c08a; color: #fff; }
label.tg.tg-dual input { accent-color: #46c08a; }

/* ===== 期号行右侧：研判快捷菜单（风险等级 / 预警单位），与开关同排 ===== */
label.tg-field { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 6px; font-size: 13px; color: #b9b9c2; white-space: nowrap; }
label.tg-field select, label.tg-field input { width: auto; padding: 6px 9px; font-size: 13px; background: #16161c; }
label.tg-field select#risk { min-width: 100px; }
/* 期号：与风险等级同排，宽度紧凑（“高风险”按钮之后） */
label.tg-field.tg-field-qi { flex: 0 0 auto; }
label.tg-field.tg-field-qi select.qi-select { width: 170px; min-width: 170px; text-align: center; letter-spacing: .5px; }
label.tg-field.tg-field-wide { flex: 1 1 230px; }
label.tg-field.tg-field-wide input { flex: 1; min-width: 150px; }
/* 期号下拉（建议号 + 复用回收号），统一外观、可自适应窄屏 */
.qi-select { width: 150px; max-width: 100%; box-sizing: border-box; padding: 6px 8px; border-radius: 8px;
  border: 1px solid #3a3a44; background: #1f1f26; color: #e8e8ee; font-size: 14px; }
.qi-select:focus { outline: none; border-color: #5b9dff; }
label.ad-field select.qi-select { width: 100%; text-align: left; }
/* 期号占用实时提示（2026-10-29）：编报中发现该号正被别人（或自己另一个草稿）占着时就地提醒，
   右侧直接给「改用 XXX」按钮 —— 号被抢不该让人翻下拉慢慢找。别人占用=红、自己占用=黄。 */
.qi-conflict { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin: 8px 0 2px; padding: 9px 12px; border-radius: 8px; font-size: 12.5px; line-height: 1.6;
  background: #3a1f22; border: 1px solid #7d3238; color: #ffd7d9; }
.qi-conflict.mine { background: #3a3218; border-color: #7d6a2b; color: #ffe9b8; }
.qi-conflict .qc-dot { flex: none; font-weight: 700; }
.qi-conflict .qc-text { flex: 1 1 320px; min-width: 0; word-break: break-word; }
.qi-conflict .qc-text b { color: #fff; font-weight: 600; }
.qi-conflict .qc-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.qi-conflict .qc-btn { margin: 0; padding: 4px 10px; font-size: 12.5px; border-radius: 6px;
  background: #2a2a33; color: #dcdce4; border: 1px solid #3d3d48; cursor: pointer; }
.qi-conflict .qc-btn:hover { background: #33333e; }
.qi-conflict .qc-btn.primary { background: #2b5d8a; border-color: #3a6f9e; color: #eaf4ff; }
.qi-conflict .qc-btn.primary:hover { background: #356ea3; }

/* ===== 风险等级：三色按钮（低=蓝 / 中=黄 / 高=红），点选即同步生成内容 ===== */
.risk-field { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; flex: 0 0 auto; white-space: nowrap; }
.risk-field-label { font-size: 13px; color: #b9b9c2; }
.risk-group { display: inline-flex; gap: 6px; }
.risk-btn {
  margin-top: 0; padding: 6px 13px; font-size: 13px; line-height: 1.2;
  border-radius: 999px; background: #16161c; border: 1px solid #3a3a44;
  color: #cfcfd6; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.risk-btn:hover { color: #fff; border-color: #6a6a78; }
.risk-btn.r-low.active { background: #1d4ed8; border-color: #3b82f6; color: #fff; box-shadow: 0 0 0 2px rgba(59,130,246,.3); }
.risk-btn.r-mid.active { background: #f59e0b; border-color: #fbbf24; color: #1b1b21; font-weight: 600; box-shadow: 0 0 0 2px rgba(245,158,11,.3); }
.risk-btn.r-high.active { background: #dc2626; border-color: #ef4444; color: #fff; box-shadow: 0 0 0 2px rgba(239,68,68,.3); }
.risk-raw { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; padding: 0; border: 0; }

/* ===== 生成的舆情内容：字号加大、更醒目 ===== */
#dailyCard { border-left: 3px solid #ff5a5f; }
#daily { font-size: 17.5px; line-height: 1.95; padding: 14px 16px; background: #21212a; border-color: #4b4b5a; color: #f5f5f8; letter-spacing: .2px; }
#yuqing { font-size: 16.5px; line-height: 1.9; padding: 12px 14px; background: #21212a; border-color: #4b4b5a; color: #f5f5f8; }
#summary { font-size: 15.5px; line-height: 1.85; }
#analysis { font-size: 14.5px; line-height: 1.8; }
#daily:focus, #yuqing:focus { border-color: #ff5a5f; box-shadow: 0 0 0 2px rgba(255,90,95,.18); outline: none; }
.hint.mb0 { margin-bottom: 0; }

/* ===== 链接抓取结果预览 ===== */
.link-fetch { margin: 6px 0 2px; background: #16161c; border: 1px solid #3a3a44; border-radius: 8px; padding: 6px 10px; color: #cfcfd6; }
.link-fetch summary { cursor: pointer; font-size: 13px; color: #9fb4ff; user-select: none; }
.link-fetch summary:hover { color: #cdd9ff; }
.link-fetch-text { margin: 8px 0 4px; max-height: 220px; overflow: auto; white-space: pre-wrap; word-break: break-all; font-size: 12.5px; line-height: 1.6; color: #d8d8e0; background: #0f0f14; border: 1px solid #2a2a32; border-radius: 6px; padding: 8px 10px; }

/* ==== 图文舆情：传图 / 粘贴截图识别 ==== */
button.btn-img { border-color: #4a6bb5; color: #cdd9ff; }
button.btn-img:hover { border-color: #6d8fe0; color: #e6edff; }

/* ==== ③ 解析视频/图片并补研判 ==== */
button.media-btn { border-color: #b58a4a; color: #ffe0a8; margin-top: 8px; }
button.media-btn:hover { border-color: #e0b06d; color: #fff0d0; }
.media-result { margin-top: 10px; background: #14141b; border: 1px solid #3a3a44; border-radius: 10px; padding: 12px 14px; }
.media-note { font-size: 12.5px; color: #9fb4ff; margin-bottom: 10px; line-height: 1.6; }
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-bottom: 10px; }
.media-item { background: #0f0f14; border: 1px solid #2a2a32; border-radius: 6px; padding: 7px 10px; font-size: 13px; line-height: 1.6; }
.media-item .mk { display: inline-block; color: #8fd; font-weight: 600; margin-right: 6px; }
.media-item .mv { color: #d8d8e0; }
.media-daily-head { font-size: 13px; color: #9fb4ff; margin: 4px 0 6px; }
.media-actions { margin-top: 10px; }
.paste-hint { font-size: 12px; color: #7f8798; margin-top: 6px; }
.paste-hint b { color: #9fb4ff; }
.app.drag-over::after {
  content: "松开鼠标即可读图识别";
  position: fixed; inset: 8px; z-index: 400; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; background: rgba(40, 70, 140, .55);
  border: 2px dashed #9fb4ff; border-radius: 12px; pointer-events: none;
}
.img-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.img-thumbs:empty { display: none; }
.img-thumb { position: relative; width: 104px; border: 1px solid #2a2a32; border-radius: 6px; overflow: hidden; background: #0f0f14; }
.img-thumb img { display: block; width: 100%; height: 78px; object-fit: cover; }
.img-thumb .del {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; line-height: 16px; text-align: center;
  border-radius: 9px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 13px; cursor: pointer; border: none; padding: 0;
}
.img-thumb .del:hover { background: #c0392b; }
.img-thumb .tag { display: block; font-size: 11px; color: #9aa1b0; padding: 3px 5px; text-align: center; }

/* ===== 预警卡页：三栏（左列表 / 中表单 / 右预览）===== */
.grid.cols3 { grid-template-columns: minmax(200px, .82fr) minmax(360px, 1.45fr) minmax(320px, 1.1fr); }
#tab-yujing .col { gap: 14px; }

/* 期号查找 */
.qh-search { display: flex; align-items: center; gap: 6px; }
.qh-search input { width: 170px; padding: 7px 10px; font-size: 13px; }
.qh-search .mini { margin-top: 0; }

/* 左栏：今日过审 / 查找结果 列表 */
.todo-list { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow: auto; }
.todo-item { border: 1px solid #30303a; border-radius: 8px; padding: 9px 11px; cursor: pointer; background: #1b1b21; transition: border-color .15s, background .15s; }
.todo-item:hover { border-color: #ff5a5f; background: #22222b; }
.todo-item .ti-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.todo-item .ti-qi { color: #ffd166; font-weight: 700; font-size: 13px; }
.todo-item .ti-carded { font-size: 11px; color: #4ade80; }
/* 初审通过、仍待终审（2026-11-10）：用琥珀色与「已出卡」绿标区分 */
.todo-item .ti-first { font-size: 11px; color: #ffb84d; font-weight: 600; }
.todo-item .ti-title { font-size: 12.5px; color: #c9c9d1; margin-top: 5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.todo-item .ti-meta { font-size: 11.5px; color: #8a8a96; margin-top: 5px; }

/* ===== 待审批页「当天已过审日报」列表（2026-11-04 需求）=====
   2026-11-16 用户定案：桌面端保持原样——一行多个横排卡片（flex row + wrap、每项 flex:0 1 250px），
   与上方待审表并排展示；「过审与待审等宽」只在手机端做（见文件末尾 @media 里的
   v207 手机段），桌面端绝不改成竖排通栏。期号+撤回在顶行、标题两行截断、脚注不变。 */
.ap-list { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.ap-list .hint { flex: 1 1 100%; }
.ap-item { flex: 0 1 250px; min-width: 210px; }
.ap-item:hover { border-color: #3a6d94; }   /* 横排卡片悬停用蓝调，区别于预警卡列表的红色 */
.ap-revoke {
  margin-left: auto; padding: 2px 12px; border-radius: 7px; cursor: pointer;
  font-size: 12px; line-height: 1.6; white-space: nowrap; font-family: inherit;
  background: #45191d; border: 1px solid #8a3038; color: #ffb3b8;
  transition: background .12s, border-color .12s, color .12s;
}
.ap-revoke:hover { background: #571f24; border-color: #b03b45; color: #fff; }
.ap-revoke:disabled { opacity: .55; cursor: default; }

/* 链接校验按钮组 */
.link-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 6px; }
.link-bar-label { font-size: 12.5px; color: #9a9aa4; }
.lc-btn { margin-top: 0; padding: 6px 13px; border-radius: 999px; border: 1px solid #3a3a44; background: #1b1b21; color: #cfcfd6; font-size: 12.5px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.lc-btn:hover { border-color: #6a6a78; color: #fff; }
.lc-btn.active { background: #36507e; border-color: #4a6ea8; color: #fff; font-weight: 600; }
.lc-btn.ghost { background: transparent; }
.link-status { font-size: 12.5px; color: #9a9aa4; }
.link-status.ok { color: #4ade80; }
.link-status.bad { color: #ff8a8a; }
.link-status.warn { color: #ffd166; }

/* 出卡下载按钮（2026-11-26：去掉一键打印/复制文件，改 PDF / WORD 两个下载） */
button.btn-download { background: #3b5f9e; color: #fff; border: 1px solid #4a6ea8; }
button.btn-download:hover { background: #4a72b8; }
button.btn-download:disabled { background: #3a3a44; color: #9a9aa4; border-color: #46464f; cursor: not-allowed; }
button.btn-download.btn-word { background: #2f6f4f; border-color: #3a8a62; }
button.btn-download.btn-word:hover { background: #3a8a62; }

/* 右栏：成品预览 —— 服务端渲图替代浏览器内置 PDF 阅读器（后者会把整页缩得看不清） */
.grid.cols3 { grid-template-columns: minmax(200px, .78fr) minmax(350px, 1.35fr) minmax(392px, 1.5fr); align-items: stretch; }
.pv-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pv-zoom { font-size: 12px; color: #9a9aa4; min-width: 44px; text-align: center; }
button.mini.pv-strong { background: #3b5f9e; border: 1px solid #4a6ea8; color: #fff; }
button.mini.pv-strong:hover { background: #4a72b8; }

/* 宽屏预览：预览卡占满整行，卡片宽度≈整栏 → 正文按 100% 显示，关键信息一眼看清 */
.grid.cols3 .col.pv-wide { grid-column: 1 / -1; }
.grid.cols3 .col.pv-wide .pv-scroll { height: clamp(560px, 76vh, 980px); }

/* 三栏以中间窗口为准等高对齐后，让右栏预览卡片铺满整栏、卡片按 A4 比例最大化显示（不变形） */
#tab-yujing #pvCol .card { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
#tab-yujing #pvCol .card > .work-head { flex: 0 0 auto; }
#tab-yujing #cardPreviewWrap { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
#tab-yujing #cardPreviewWrap .pv-scroll { height: auto; flex: 1 1 auto; min-height: 0; }
#tab-yujing #cardPreviewWrap .pv-img { width: 100%; height: 100%; object-fit: contain; }

.pv-wrap { margin-top: 8px; }
.pv-scroll {
  height: clamp(430px, 58vh, 720px);
  overflow: auto;
  border: 1px solid #30303a;
  border-radius: 8px;
  background: #44444c;
  padding: 10px;
  cursor: zoom-in;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.pv-img { display: block; width: 100%; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.pv-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.pv-meta { flex: 1 1 150px; min-width: 0; font-size: 11.5px; color: #8a8a96; word-break: break-all; }
.pv-fallback { margin-top: 8px; }
.card-preview { width: 100%; height: 620px; border: 1px solid #30303a; border-radius: 8px; background: #fff; }

/* 成品预览：全屏放大层 */
/* 2026-11-03：整层可点击关闭 → 全层用 zoom-out 光标（工具条指回默认），一眼看出「点任意处关」 */
.pv-modal {
  position: fixed; inset: 0; z-index: 300;
  cursor: zoom-out;
  display: flex; flex-direction: column;
  padding: 12px 16px 8px;
  background: rgba(10, 10, 14, .97);
}
.pv-modal-head, .pv-modal-head .pv-tools { cursor: default; }
.pv-modal-head {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  padding-bottom: 10px; border-bottom: 1px solid #33333d;
}
.pv-modal-title { font-size: 14px; font-weight: 700; color: #fff; }
.pv-modal-scroll {
  flex: 1; overflow: auto; margin-top: 12px;
  cursor: zoom-out;
  background: #44444c; border-radius: 8px; padding: 14px;
  display: flex; justify-content: center; align-items: flex-start;
}
.pv-modal-tip { font-size: 11.5px; color: #8a8a96; margin: 8px 0 0; text-align: center; }

/* 2026-11-05：全屏预览翻页淡入 —— 配合 JS 端「先预加载、加载完再换图」，
   换页瞬间图片从 25% 透明度淡入（220ms），消除旧版直接换 src 的白屏与跳跃感 */
.pv-page-in { animation: pvPageIn .22s ease-out; }
@keyframes pvPageIn { from { opacity: .25; } to { opacity: 1; } }

/* （2026-11-05：档案查询中间弹层（.q-modal / .q-body / .q-doc 等整套 q-* 样式）已随
   「查询 → 直接全屏预览」改造整体下线；反馈材料改从行内「反馈」按钮查看） */

/* ===== 2026-11-05（二改）：档案查询全屏双栏（左原件 / 右反馈，长图连续滚动）===== */
.q2-modal {
  position: fixed; inset: 0; z-index: 620;
  display: flex; flex-direction: column;
  padding: 12px 16px 10px;
  background: rgba(10, 10, 14, .97);
}
.q2-bar {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 10px; border-bottom: 1px solid #33333d;
}
/* 两个小标签分别对齐左右栏，中间 auto 撑开，关闭按钮靠右 */
.q2-bar .q2-tab { flex: 1 1 0; font-size: 13px; font-weight: 700; color: #cfcfd6; }
.q2-split { flex: 1; display: flex; gap: 14px; min-height: 0; margin-top: 12px; }
.q2-col {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column;
  border: 1px solid #30303a; border-radius: 10px;
  background: #1f1f26; overflow: hidden;
}
/* 每栏独立连续滚动；图片居中、页与页紧挨 —— 反馈多页像看一张长图 */
.q2-scroll {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 14px; display: flex; flex-direction: column;
  gap: 14px; align-items: center;
  scrollbar-width: thin;
}
.q2-doc { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.q2-doc-cap {
  font-size: 12px; color: #fff; background: #2c2c36;
  border-radius: 6px; padding: 6px 8px; margin-bottom: 4px;
  text-align: center; word-break: break-all;
}
.q2-page-img {
  width: 100%; display: block; background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .45); border-radius: 2px;
  /* 高度由 JS 按页宽高比预设 aspect-ratio：图片未加载也占住位置，
     滚动条不伸缩、布局不跳 —— 这是「连续滑动不跳跃」的关键。
     注意：默认就是可见的（不靠 JS 加类才显示），避免加载标记缺失时整页空白。 */
}
/* 加载完成补一个极轻的淡入，只是观感加分，不承担「显示」职责 */
.q2-page-img.ld { animation: q2ImgIn .18s ease-out; }
@keyframes q2ImgIn { from { opacity: .35; } to { opacity: 1; } }
.q2-muted { color: #d2d2da; font-size: 13px; padding: 22px 10px; text-align: center; line-height: 1.7; }
.q2-muted .q2-dl { color: #8fb8ff; }
@media (max-width: 760px) {
  .q2-split { flex-direction: column; }
  .q2-col { min-height: 46vh; }
  .q2-bar .q2-tab { display: none; } /* 窄屏上下堆叠，栏标签让位给关闭按钮 */
}

@media (max-width: 1180px) {
  .grid.cols3 { grid-template-columns: 1fr 1fr; }
  .grid.cols3 .col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .grid, .grid.cols3 { grid-template-columns: 1fr; }
  .grid.cols3 .col:last-child { grid-column: auto; }
  #topbar { flex-wrap: wrap; gap: 10px; }
}

/* ===== 每日台账：状态条 / 双栏 / 行卡片 / 投喂结果 ===== */
/* ===== v268：每日台账三大模块顶部标签切换 ===== */
.lb-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid #30303a; margin-bottom: 18px; }
.lb-tab { background: none; border: none; border-bottom: 2px solid transparent; color: #b9b9c2;
  padding: 10px 22px; margin-top: 0; font-size: 14.5px; cursor: pointer; border-radius: 8px 8px 0 0;
  transition: color .15s, background .15s; white-space: nowrap; }
.lb-tab:hover { color: #fff; background: #2a2a32; }
.lb-tab.active { color: #fff; font-weight: 600; border-bottom-color: #ff5a5f; background: #26262e; }
.lb-pane { display: none; }
.lb-pane.active { display: block; }
.lb-pane > .card:first-child,
.lb-pane > .work-head + .ledger-status { margin-top: 0; }

.ledger-status { font-size: 13.5px; color: #cfcfd6; background: #22222b; border: 1px solid #30303a; border-left: 3px solid #4a6ea8; border-radius: 8px; padding: 11px 14px; margin-bottom: 16px; line-height: 1.7; }
.ledger-status b { color: #ffd0d2; }
.ledger-status.ok { border-left-color: #2f6f4f; }
.ledger-status.warn { border-left-color: #b8841f; }

.ledger-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr); gap: 18px; align-items: start; }

.lg-list { display: flex; flex-direction: column; gap: 10px; max-height: 640px; overflow: auto; }
.lg-row { border: 1px solid #30303a; border-left: 3px solid #4a6ea8; border-radius: 8px; padding: 10px 12px; background: #1b1b21; }
.lg-row:hover { border-color: #4a6ea8; }
.lg-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lg-no { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 999px; background: #3a5fb0; color: #eef3ff; font-size: 12px; font-weight: 700; padding: 0 6px; }
.lg-area { color: #ffd166; font-weight: 700; font-size: 13.5px; }
.lg-tag { font-size: 11.5px; color: #b9b9c2; background: #26262e; border: 1px solid #383843; border-radius: 999px; padding: 2px 8px; }
.lg-tag.lg-risk { color: #ffd0d2; border-color: #5a3a3e; }
.lg-ti { font-size: 12px; color: #8a8a96; }
.lg-top .lg-edit, .lg-top .lg-save, .lg-top .lg-cancel { margin: 0 0 0 auto; }
.lg-top .lg-save + .lg-cancel { margin-left: 6px; }

.lg-title { font-size: 13.5px; color: #e8e8ea; margin: 7px 0 6px; line-height: 1.6; }
.lg-line { font-size: 12.5px; color: #c9c9d1; line-height: 1.65; margin-top: 3px; word-break: break-word; }
.lg-line b { color: #9fb4ff; font-weight: 600; }
.lg-empty { color: #7a7a86; font-style: italic; }
.lg-row label { margin-top: 8px; font-size: 12.5px; }
.lg-row textarea { font-size: 12.5px; line-height: 1.6; }
.lg-note-field { max-width: 200px; }

.lg-mapped { margin-top: 10px; }
.lg-mapped-tip { font-size: 12.5px; color: #8fd; margin-bottom: 6px; }
.lg-mapped-item { font-size: 12.5px; color: #d8d8e0; background: #16161c; border: 1px solid #2a2a32; border-radius: 6px; padding: 7px 9px; margin-bottom: 6px; line-height: 1.6; word-break: break-word; }
.lg-mapped-item b { color: #ffd166; }

.lg-unmatched { margin-top: 10px; font-size: 12.5px; color: #ffd0a0; background: #2a2118; border: 1px solid #5a4a2a; border-radius: 8px; padding: 9px 11px; }
.lg-un-line { color: #e8d8c8; line-height: 1.6; margin-top: 4px; word-break: break-word; }

.lg-archive { margin-top: 18px; }
#ledgerTable td a { color: #ff8a8f; cursor: pointer; margin-right: 12px; }

/* ================= 月台账（时间段汇总 + 实时饼图） ================= */
.lg-monthly { margin-top: 18px; }
.monthly-filters { align-items: flex-end; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.monthly-filters .tg-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #9a9aa4; }
.monthly-filters input[type="date"], .monthly-filters select {
  background: #1e1e24; border: 1px solid #3a3a44; color: #e8e8ea;
  border-radius: 8px; padding: 8px 10px; font-size: 14px; font-family: inherit;
}
.monthly-filters select { min-width: 150px; }
.monthly-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.monthly-stats .ms-item { background: #22222b; border: 1px solid #30303a; border-radius: 8px; padding: 8px 14px; font-size: 13.5px; color: #cfcfd6; }
.monthly-stats .ms-item b { color: #ffd0d2; font-size: 16px; margin: 0 2px; }
.monthly-charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.chart-box { background: #1e1e24; border: 1px solid #30303a; border-radius: 12px; padding: 14px; }
.chart-box h4 { font-size: 14px; color: #ffd0d2; margin-bottom: 10px; text-align: center; font-weight: 600; }
.pie { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.pie svg { flex: 0 0 auto; }
.monthly-table-wrap { overflow-x: auto; }
#monthlyTable { width: 100%; border-collapse: collapse; font-size: 13px; }
#monthlyTable th, #monthlyTable td { border: 1px solid #34343e; padding: 8px 10px; text-align: left; vertical-align: top; }
#monthlyTable th { background: #2a2a32; color: #ffd0d2; font-weight: 600; white-space: nowrap; }
#monthlyTable td.m-title { min-width: 240px; color: #e8e8ea; line-height: 1.5; }

@media (max-width: 1180px) {
  .ledger-grid { grid-template-columns: 1fr; }
  .monthly-charts { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .monthly-filters { flex-direction: column; align-items: stretch; }
  .monthly-filters .tg-field { width: 100%; }
}

/* ================= 审批流转增强：驳回理由 / 归档筛选 / 审批改稿 ================= */

/* 驳回理由横幅（日报页顶部，被驳回时显示） */
.reject-banner { background: #3a1f22; border: 1px solid #7d3238; border-left: 4px solid #ff5a5f; border-radius: 10px; padding: 12px 16px; margin: 0 0 14px; }
.rb-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rb-head b { color: #ff8a8f; font-size: 15px; }
.rb-meta { font-size: 12.5px; color: #c9a9ab; }
.rb-reason { margin-top: 8px; font-size: 14px; line-height: 1.7; color: #ffe9ea; white-space: pre-wrap; word-break: break-word; }
.rb-tip { margin-top: 6px; font-size: 12.5px; color: #b98e91; }

/* 归档筛选（全部 / 已过审 / 未过审） */
.filter-row { display: flex; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.filter-btn { background: #26262e; border: 1px solid #3a3a44; color: #cfcfd6; border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; font-family: inherit; }
.filter-btn:hover { border-color: #55555f; color: #fff; }
.filter-btn.active { background: #ff5a5f; border-color: #ff5a5f; color: #fff; }
.filter-btn i { font-style: normal; opacity: .85; margin-left: 4px; font-size: 12px; }
.arc-reason { max-width: 240px; color: #ffb0b3; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arc-empty { text-align: center; color: #9a9aa4; padding: 18px 0; }
.tag-re { display: inline-block; margin-left: 8px; font-size: 11.5px; color: #ffc9a3; background: #4a3320; border: 1px solid #7a5230; border-radius: 999px; padding: 1px 8px; vertical-align: middle; }

/* 归档重新定位（2026-11-05 四视图）：正式归档 / 未过审 / 草稿箱 / 已作废 各自配色
   （2026-11-15 按用户要求去掉「全部」视图） */
.arc-views { margin-top: 4px; }
.arc-views .filter-btn[data-filter="approved"].active { background: #2f8f5b; border-color: #2f8f5b; }
.arc-views .filter-btn[data-filter="not_approved"].active { background: #b45f06; border-color: #b45f06; }
.arc-views .filter-btn[data-filter="draft"].active { background: #b8860b; border-color: #b8860b; }
.arc-views .filter-btn[data-filter="voided"].active { background: #6b6b75; border-color: #6b6b75; }

/* 归档页：风险 / 状态 / 办文人 三字段独立筛选（互不干扰、可独立生效） */
.arc-field-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.ff-group { position: relative; }
.ff-btn {
  background: #26262e; border: 1px solid #3a3a44; color: #cfcfd6;
  border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
.ff-btn:hover { border-color: #55555f; color: #fff; }
.ff-btn.active { background: #3b5f9e; border-color: #4a6ea8; color: #fff; }
.ff-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 50;
  background: #1f1f26; border: 1px solid #3a3a44; border-radius: 10px;
  padding: 6px; min-width: 150px; max-height: 320px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.ff-item {
  background: transparent; border: 0; color: #d8d8e0; text-align: left;
  padding: 7px 10px; border-radius: 6px; font-size: 13px; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
.ff-item:hover { background: #2c2c36; color: #fff; }
.ff-item.active { background: #3b5f9e; color: #fff; }
.ff-clear { margin-left: 4px; }

/* 视图说明文案 */
.arc-cap { font-size: 12.5px; color: #9fb0c8; margin: 2px 0 10px; line-height: 1.6; }

/* 期号连续性健康条 */
.arc-health { border-radius: 10px; padding: 10px 14px; margin: 4px 0 12px; font-size: 13px; line-height: 1.6; border: 1px solid transparent; }
.arc-health b { font-weight: 700; }
.arc-health.ok { background: #16321f; border-color: #2f8f5b; color: #b6f0c8; }
.arc-health.warn { background: #352c12; border-color: #b8860b; color: #ffe2a3; }
.arc-health.bad { background: #3a1f22; border-color: #ff5a5f; color: #ffc9cc; }
.arc-health:not(.ok):not(.warn):not(.bad) { background: #26262e; border-color: #3a3a44; color: #cfcfd6; }

/* 全文检索索引状态条 */
.arc-index-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 10px; }
.arc-index-bar #arcIndexStatus { color: #9a9aa4; font-size: 12px; }
.arc-index-bar .mini { font-size: 12px; }

/* 归档导入（上传历史表格补录） */
.arc-import { margin: 4px 0 12px; padding: 10px 12px; border: 1px dashed #3a6ea5; border-radius: 10px; background: #1b2230; }
.arc-import .hint-inline { color: #9fb3c8; font-size: 12px; margin-left: 8px; }
.import-panel { margin-top: 10px; }
.import-panel .row { align-items: center; gap: 8px; flex-wrap: wrap; }
.import-panel input[type="file"] { color: #cfcfd6; max-width: 320px; }
#importPreviewTable { margin-top: 8px; font-size: 13px; }
#importPreviewTable th, #importPreviewTable td { padding: 5px 8px; white-space: nowrap; }
.imp-status { color: #ffd479; }
.imp-status:empty::before { content: "ok"; color: #8fe0a8; }
.imp-warn { color: #ff9f6b; }
/* 智能文件夹导入：文件夹行 + 结果表类型标签 */
.import-smart-row { border-bottom: 1px dashed #3a4a63; padding-bottom: 10px; margin-bottom: 10px; }
.import-drop { margin: 4px 0 10px; padding: 16px 14px; border: 1px dashed #3a6ea5; border-radius: 10px; background: #171d28; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.import-drop:hover, .import-drop.drag-over { background: #1d2736; border-color: #2fcdb6; }
.import-drop-main { color: #cfd8e3; font-size: 14px; }
.import-drop-sub { color: #8fa2b6; font-size: 12px; margin-top: 4px; }
.import-summary { margin: 8px 0 8px; padding: 8px 12px; border-radius: 8px; background: #1b2230; color: #cfe3ff; font-size: 13px; line-height: 1.7; border-left: 3px solid #2fcdb6; }
.import-summary b { color: #2fcdb6; }
#importSmartTable { margin-top: 8px; font-size: 13px; }
#importSmartTable th, #importSmartTable td { padding: 5px 8px; }
.imp-tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.imp-tag.imp-card { background: rgba(47, 205, 182, 0.16); color: #2fcdb6; }
.imp-tag.imp-fb { background: rgba(91, 157, 255, 0.16); color: #5b9dff; }
.imp-tag.imp-sheet { background: rgba(255, 159, 67, 0.16); color: #ff9f43; }
.imp-tag.imp-skip { background: rgba(160, 160, 176, 0.16); color: #a0a0b0; }
/* 「卡+反馈」合并件已自动拆分标记 */
.imp-tag.imp-split { background: rgba(255, 122, 158, 0.16); color: #ff8fa3; }
/* 历史台账表格导入（默认折叠，避免与主入口抢注意力） */
.import-legacy { margin-top: 12px; padding-top: 8px; border-top: 1px dashed #3a4a63; font-size: 12px; }
.import-legacy > summary { cursor: pointer; color: #9fb3c8; font-size: 12.5px; padding: 2px 0; }
.import-legacy[open] > summary { color: #cfe3ff; }
.import-legacy > .row { margin-top: 8px; }

/* 反馈文件批量上传（自动归位） */
.fb-batch { margin: 14px 0 8px; padding: 12px 16px; border: 1px solid #3a3a44; border-radius: 12px; background: #1e1e26; }
.fb-batch > .hint-inline { color: #9a9aa4; font-size: 12px; }
#fbBatchResultTable { margin-top: 8px; font-size: 13px; }
#fbBatchResultTable th, #fbBatchResultTable td { padding: 5px 8px; white-space: nowrap; color: #d8d8de; }
#fbBatchResultTable th { color: #9a9aa4; font-weight: 600; }
.fb-ok { color: #8fe0a8; }
.fb-warn { color: #ffd479; }
.fb-assign { display: inline-flex; align-items: center; gap: 6px; }
/* 反馈单位识别后可在结果表/弹层修正（v229） */
.fb-unit { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; color: #7fe0d6; }
.fb-unit input.fbUnitIn { background: #1b1b22; color: #d8f5ee; border: 1px solid #3a4a48;
  border-radius: 5px; padding: 3px 6px; font-size: 12px; }
.fb-unit input.fbUnitIn:focus { outline: none; border-color: #5fd0b8; }
.fb-unit input[readonly] { opacity: .75; }
.fb-unit .fbUnitBtn { padding: 2px 7px; font-size: 11px; background: #2f7d5b; color: #eafff4; }
.fb-unit-edit { margin-left: 6px; font-size: 11px; color: #ffd479; cursor: pointer; white-space: nowrap; }
.fb-unit-edit:hover { color: #fff0c0; text-decoration: underline; }

/* 审批弹窗期号提示 */
.qh-hint { font-size: 12.5px; color: #9fb0c8; margin: 4px 0 0; line-height: 1.5; }
.qh-hint.qh-ok { color: #b6f0c8; }
.qh-hint.qh-manual { color: #ffd9a0; }
.qh-hint.qh-bad { color: #ff8a8f; font-weight: 600; }

/* 状态色：新增「已驳回」 */
.st-rejected { background: #7d3238; color: #ffe9ea; }

/* 审批弹层：可改稿 + 驳回原因 */
.modal-box.modal-wide { width: 780px; max-height: 90vh; overflow-y: auto; }
.ad-field { display: block; font-size: 13px; color: #b9b9c2; margin: 10px 0 0; }
.ad-field textarea, .ad-field input, .ad-field select { margin-top: 5px; }
/* 字段标题行：标签在左、操作按钮（如「一键复制」）在右 */
.ad-field-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ad-field-head .ad-field-name { flex: none; }
button.mini.copy-btn { margin-top: 0; align-self: center; padding: 5px 12px; font-size: 12.5px; background: #2b5d8a; color: #eaf4ff; border: 1px solid #3a6f9e; }
button.mini.copy-btn:hover { background: #356ea3; }
button.mini.copy-btn:active { background: #24507a; }
button.mini.copy-btn.copied { background: #2f6f4f; border-color: #3a8a62; color: #eafff2; }
.ad-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* 期号 + 风险等级 + 预警单位 三列（审批弹层）：窄屏回退单列，避免挤压 */
.ad-row.cols3 { grid-template-columns: 1fr 1fr 1fr; }
/* 期号 / 风险等级 / 预警单位 / 办文人 四列（2026-10-29）：办文人放进同一行，
   不额外占一行高度；单位与办文人给到 1.2 份额，避免长单位名被压窄看不见。 */
.ad-row.cols4 { grid-template-columns: .78fr .78fr 1.25fr 1.25fr; }
@media (max-width: 760px) { .ad-row.cols4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ad-row.cols4 { grid-template-columns: 1fr; } }
/* 办文人只读态（非管理员）：看起来是数据，不像可填的空框，避免误以为没填 */
#adHandler[readonly] { background: #232329; color: #c7c7d0; cursor: default; border-style: dashed; }
.ad-reject-old { background: #3a1f22; border: 1px solid #7d3238; border-radius: 8px; padding: 9px 12px; font-size: 12.5px; color: #ffd7d9; margin: 8px 0 2px; line-height: 1.6; word-break: break-word; }
/* 曾过审又被重报（状态退回待审批）：偏青，与「驳回」的红色区分开，避免审批人误以为被驳过 */
.ad-approve-old { background: #16323a; border: 1px solid #2b6b7d; border-radius: 8px; padding: 9px 12px; font-size: 12.5px; color: #cdeef7; margin: 8px 0 2px; line-height: 1.6; word-break: break-word; }
/* 原始舆情信息区（2026-10-23）：只读展示编报时录入的原文 + 监测信息 + 链接 */
.ad-raw-body { margin-top: 5px; background: #1c1c22; border: 1px solid #34343e; border-radius: 8px; padding: 10px 12px; }
.ad-raw-label { font-size: 12px; color: #8f8f9b; margin: 2px 0 4px; }
.ad-raw-label:not(:first-child) { margin-top: 10px; }
.ad-raw-text { font-size: 13px; color: #e6e6ec; line-height: 1.7; white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow-y: auto; }
.ad-raw-text.ad-raw-empty { color: #9a9aa4; }
.ad-raw-note { font-size: 12px; color: #7d8798; margin-top: 4px; }
.ad-raw-meta { display: flex; flex-direction: column; gap: 4px; }
.ad-raw-row { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.6; }
.ad-raw-k { flex: none; width: 64px; color: #8f8f9b; }
.ad-raw-v { color: #d7d7de; word-break: break-all; }
.ad-raw-v a { color: #6db3f2; }
/* 流程历史时间线（2026-10-23）：每步操作可追溯到责任人 */
.ad-flow-log { background: #1a1e24; border: 1px solid #2f3a46; border-radius: 8px; padding: 9px 12px; margin: 8px 0 2px; }
.ad-flow-title { font-size: 12.5px; color: #9fb4c7; margin-bottom: 6px; font-weight: 600; }
.ad-flow-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 12.5px; line-height: 1.7; padding: 2px 0; }
.ad-flow-time { flex: none; color: #8f8f9b; font-variant-numeric: tabular-nums; }
.ad-flow-act { flex: none; font-weight: 600; }
.ad-flow-by { flex: none; color: #ffd9a0; }
.ad-flow-note { color: #b9b9c2; word-break: break-all; }
.ad-flow-approve .ad-flow-act { color: #7fd6a8; }
.ad-flow-reject .ad-flow-act { color: #ff9b9f; }
.ad-flow-submit .ad-flow-act, .ad-flow-resubmit .ad-flow-act { color: #6db3f2; }
.ad-flow-edit .ad-flow-act { color: #c9a6f2; }
/* 待审批列表：最近一次流程动作（悬浮看全量历史） */
.flow-last { font-size: 11.5px; color: #9a9aa4; margin-top: 2px; }
.modal-box .btns { margin-top: 16px; }
/* 审批弹层：操作按钮（通过并保存修改/驳回/关闭）已上移到「标题」行右端，抵消 .btns 顶部外边距 */
.modal-box .ad-field-head .btns { margin-top: 0; }
#btnReject.danger { background: #7d3238; color: #fff; }
#btnReject.danger:hover { background: #9c3f46; }
/* 驳回原因弹层（v230）：快捷下拉 + 自定义原因 */
#rejectModal #rejTarget { color: #e8c4c4; margin: 0 0 10px; font-size: 13px; line-height: 1.5; }
#rejectModal #rejQuick { width: 100%; padding: 7px 9px; background: #1e1e25;
  color: #f0d9a8; border: 1px solid #6b5a35; border-radius: 6px; font-size: 13px; margin-top: 5px; }
#rejectModal #rejQuick:focus { outline: none; border-color: #d8a33a; }
#rejectModal #rejReason { width: 100%; box-sizing: border-box; background: #1b1b22;
  color: #e8e8ea; border: 1px solid #4a4a56; border-radius: 7px; padding: 8px 10px;
  font-size: 13px; line-height: 1.6; font-family: inherit; resize: vertical; margin-top: 5px; }
#rejectModal #rejReason:focus { outline: none; border-color: #d8a33a; }
#rejectModal #rejConfirm { background: #9c3f46; color: #fff; border: 1px solid #b34a52;
  border-radius: 7px; padding: 7px 18px; cursor: pointer; }
#rejectModal #rejConfirm:hover { background: #b34a52; }
#rejectModal #rejConfirm:disabled { opacity: .55; cursor: default; }
#rejectModal #rejCancel { background: #3a3a44; color: #d8d8de; border: 1px solid #4a4a56;
  border-radius: 7px; padding: 7px 18px; cursor: pointer; }

@media (max-width: 1180px) {
  .modal-box.modal-wide { width: 92vw; }
}
@media (max-width: 860px) {
  .ad-row { grid-template-columns: 1fr; }
  .ad-row.cols3 { grid-template-columns: 1fr; }
  .arc-reason { max-width: 140px; }
}

/* ============ 移动端 H5 适配（平板 ≤1024px 先收多栏，手机 ≤768px 全面堆叠） ============ */
@media (max-width: 1024px) {
  .grid.cols3 { grid-template-columns: 1fr; }
  .ledger-grid { grid-template-columns: 1fr; }
  .monthly-charts { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* 整体：顶部堆叠（桌面端本来已是横排导航，这里只补手机专属的尺寸与安全区） */
  .app { height: auto; min-height: 100vh; }
  /* ⚠ 安全区改挂在顶栏：改横式后导航条不再是页面第一个元素，刘海/状态栏压在顶栏上 */
  #topbar { padding-top: calc(env(safe-area-inset-top, 0px) + 10px); }
  .side {
    padding: 4px 10px 6px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;   /* iOS 横向滚动更顺滑 */
  }
  .side nav { gap: 6px; }
  .nav-btn {
    padding: 10px 14px;
    font-size: 14px;
    min-height: 44px;   /* iOS 人机规范最小可点高度，手指更好按 */
  }
  .side-foot { display: none; }
  main { padding: 12px; }

  /* 顶栏允许换行 */
  #topbar { flex-wrap: wrap; gap: 8px; }
  .topbar-left, .topbar-right { flex-wrap: wrap; }
  .topbar-right { gap: 8px; }

  /* 卡片内双栏 → 单栏 */
  .grid { grid-template-columns: 1fr; }
  .col { gap: 14px; }
  .card { padding: 14px; }

  /* 表单：字体 16px 防 iOS 聚焦自动缩放；输入框可收缩 */
  input, select, textarea, button { font-size: 16px; }
  .row { gap: 10px; }
  .row label, label { gap: 5px; min-width: 0; flex: 1 1 150px; }
  .row.search { max-width: 100%; }
  textarea { width: 100%; }

  /* 按钮/工具点击区放大，便于手指点 */
  .toolbar, .work-head, .filter-row, .monthly-filters { gap: 8px; }
  .toolbar button, .work-head button, .filter-btn, .mini,
  .btn-new, .btn-submit, .primary, .btn-img, .btn-download {
    min-height: 42px;
    font-size: 14px;
  }
  button.mini.copy-btn { font-size: 14px; padding: 8px 14px; }
  .toggle-row { flex-wrap: wrap; }

  /* 表格：手机端转卡片式（thead 隐藏，每行一张卡，字段用 ::before 标签，纯 CSS 不改 JS） */
  .table-wrap { -webkit-overflow-scrolling: touch; overflow-x: visible; }
  .table-wrap > table,
  .monthly-table-wrap > table,
  #userTable {
    display: block;
    width: 100%;
    white-space: normal;
  }
  .table-wrap > table thead,
  .monthly-table-wrap > table thead,
  #userTable thead { display: none; }
  .table-wrap > table tbody,
  .monthly-table-wrap > table tbody,
  #userTable tbody { display: block; }
  .table-wrap > table tr,
  .monthly-table-wrap > table tr,
  #userTable tr {
    display: block;
    background: #20202a;
    border: 1px solid #30303a;
    border-radius: 10px;
    padding: 6px 12px 8px;
    margin-bottom: 10px;
  }
  .table-wrap > table td,
  .monthly-table-wrap > table td,
  #userTable td {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    padding: 6px 0;
    border: none !important;
    white-space: normal;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.55;
    vertical-align: top;
  }
  .table-wrap > table td::before,
  .monthly-table-wrap > table td::before,
  #userTable td::before {
    content: "";
    flex: 0 0 70px;
    color: #8f8f9a;
    font-size: 12.5px;
    padding-top: 2px;
  }
  /* 空态整行（colspan）居中，不显示字段标签 */
  .table-wrap > table td[colspan],
  .monthly-table-wrap > table td[colspan],
  #userTable td[colspan] { justify-content: center; }
  .table-wrap > table td[colspan]::before,
  .monthly-table-wrap > table td[colspan]::before,
  #userTable td[colspan]::before { content: "" !important; flex: none; }

  /* 卡片内操作链接：字段标签 */
  #recTable td:nth-child(1)::before { content: "期号"; }
  #recTable td:nth-child(2)::before { content: "标题"; }
  #recTable td:nth-child(3)::before { content: "风险"; }
  #recTable td:nth-child(4)::before { content: "状态"; }
  #recTable td:nth-child(5)::before { content: "办文人"; }
  #recTable td:nth-child(6)::before { content: "创建时间"; }
  /* 2026-11-03：归档表改为 7 列，「驳回理由」列已并入「状态」，第 7 列是「操作」。
     ⚠ 这里必须与 thead 列数同步，否则手机上会给操作列挂上「驳回理由」的错标签。 */
  #recTable td:nth-child(7)::before { content: "操作"; }

  /* 手机端操作列：胶囊放大到可点（高约 36px），并占满标签右侧剩余宽度 */
  #recTable td.ops-td { padding: 8px 0 2px; }
  .ops { flex: 1 1 auto; min-width: 0; gap: 8px; }
  .ops .ops-row { gap: 8px; }
  .ops a { padding: 6px 12px; font-size: 13.5px; border-radius: 8px; }
  .ops .ops-row.man a { font-size: 13px; padding: 5px 11px; }
  #approveTable td:nth-child(1)::before { content: "期号"; }
  #approveTable td:nth-child(2)::before { content: "标题"; }
  #approveTable td:nth-child(3)::before { content: "办文人"; }
  #approveTable td:nth-child(4)::before { content: "提交时间"; }
  #approveTable td:nth-child(5)::before { content: "操作"; }
  #ledgerTable td:nth-child(1)::before { content: "日期"; }
  #ledgerTable td:nth-child(2)::before { content: "条目数"; }
  #ledgerTable td:nth-child(3)::before { content: "首次生成"; }
  #ledgerTable td:nth-child(4)::before { content: "最近刷新"; }
  #ledgerTable td:nth-child(5)::before { content: "操作"; }
  #userTable td:nth-child(1)::before { content: "账号"; }
  #userTable td:nth-child(2)::before { content: "用户"; }
  #userTable td:nth-child(3)::before { content: "角色"; }
  #userTable td:nth-child(4)::before { content: "功能权限"; }
  #userTable td:nth-child(5)::before { content: "创建时间"; }
  #userTable td:nth-child(6)::before { content: "操作"; }
  #monthlyTable td:nth-child(1)::before { content: "日期"; }
  #monthlyTable td:nth-child(2)::before { content: "属地"; }
  #monthlyTable td:nth-child(3)::before { content: "类别"; }
  #monthlyTable td:nth-child(4)::before { content: "风险"; }
  #monthlyTable td:nth-child(5)::before { content: "内容摘要"; }
  #monthlyTable td:nth-child(6)::before { content: "平台"; }
  #monthlyTable td:nth-child(7)::before { content: "时间"; }

  /* 操作列链接点击区放大 */
  #recTable td a, #approveTable td a, #ledgerTable td a,
  #userTable td a, #monthlyTable td a {
    display: inline-block;
    padding: 8px 10px;
    margin: 2px 0;
    font-size: 14px;
    min-height: 36px;
  }

  /* 登录门户：满宽居中，遮罩加深避免背景透出 */
  #loginMask { padding: 16px; background: rgba(12,12,16,.97); }
  #loginMask .lp-card { width: 100%; max-width: 420px; }
  #loginMask .lp-card button { min-height: 46px; font-size: 16px; }

  /* 弹层接近满屏 */
  .modal-box.modal-wide { width: 94vw; }
  .pv-modal { padding: 8px; }
}

/* 超小屏（≤420px）进一步收紧 */
@media (max-width: 420px) {
  .nav-btn { padding: 9px 11px; font-size: 13px; }
  .card { padding: 12px; }
  .toolbar { gap: 6px; }
}

/* ===== 热搜榜页（微博 / 百度 / 头条 / 抖音 / 快手） ===== */
/* 5 平台卡片：桌面两列，最后一张（快手）占满整行，避免右侧留空 */
.hot-platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.hot-platforms > .hot-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* 5 平台专属色：徽章底色 + 该平台结果标题同色，便于快速区分来源 */
[data-platform="weibo"]    { --pl: #ff9f43; --pl-d: #d97706; }
[data-platform="baidu"]    { --pl: #5b9dff; --pl-d: #2563eb; }
[data-platform="toutiao"]  { --pl: #ff6b6b; --pl-d: #dc2626; }
[data-platform="douyin"]   { --pl: #2fcdb6; --pl-d: #0d9488; }
[data-platform="kuaishou"] { --pl: #ffc53d; --pl-d: #b7791f; }

.hot-card { padding: 14px; min-width: 0; }
.hot-card .card-head { margin-bottom: 6px; }
.hot-card h3.hot-pl-title { margin-bottom: 0; display: flex; align-items: center; gap: 8px; }
/* 平台名 + TOP.50 合成一体徽章：渐变底 + 白字 + 内嵌 TOP 小胶囊，醒目但不刺眼 */
.hot-pl-badge { display: inline-flex; align-items: center; gap: 9px; padding: 6px 15px;
  border-radius: 999px; background: linear-gradient(135deg, var(--pl), var(--pl-d));
  color: #fff; font-size: 16px; font-weight: 800; letter-spacing: 1px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .20), 0 6px 16px -6px var(--pl);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .30); }
.hot-pl-badge em { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .5px;
  padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .30); color: #fff; }
.hot-refresh-btn { background: #2b6d78; color: #e8fbff; }
.hot-refresh-btn:hover { background: #35818e; }
.hot-time { font-size: 12px; color: #8f99a8; margin-bottom: 8px; }
.hot-list { list-style: none; margin: 0; padding: 0; height: 52vh; overflow-y: auto; }
.hot-item { display: flex; align-items: flex-start; gap: 8px; padding: 6px; border-radius: 6px; font-size: 13px; line-height: 1.45; }
.hot-item + .hot-item { border-top: 1px solid #2a2a32; }
.hot-item:hover { background: #24242c; }
/* 只显示热度排名序号：1~3 暖红、4~10 琥珀、其余浅灰蓝 */
.hot-rank { flex: 0 0 26px; text-align: center; font-weight: 700; color: #9aa6b8; }
.hot-rank.top3 { color: #ff6b6b; }
.hot-rank.top10 { color: #ffb057; }
.hot-title { flex: 1 1 auto; min-width: 0; word-break: break-word; }
/* 标题：暖米白，醒目而不刺眼；悬停转暖金 */
.hot-title a { color: #efe8da; text-decoration: none; }
.hot-card[data-platform] .hot-title a { color: var(--pl); }
.hot-title a:hover { text-decoration: underline; }
.hot-card[data-platform] .hot-title a:hover { color: #fff; }
.hot-num { flex: 0 0 auto; font-size: 12px; color: #d0b06a; font-weight: 600; }
/* 邯郸相关条目：整行高亮 */
.hot-item.hot-hit { background: rgba(255, 90, 95, .14); box-shadow: inset 3px 0 0 #ff5a5f; }
.hot-item.hot-hit .hot-title a { font-weight: 700; }

/* 邯郸相关置顶汇总区 */
.hot-handan-card { border: 1px solid rgba(255, 90, 95, .35); }
.hot-handan-list { display: flex; flex-direction: column; gap: 6px; }
.hot-handan-item { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 6px 8px; background: rgba(255, 90, 95, .10); border-radius: 6px; }
.hot-handan-item a { color: #ffd6b0; text-decoration: none; flex: 1 1 auto; min-width: 0; word-break: break-word; }
.hot-handan-item a:hover { text-decoration: underline; }
.hot-src { flex: 0 0 auto; background: #3a5fb0; color: #eef3ff; font-size: 12px; padding: 1px 8px; border-radius: 999px; }
.hot-src[data-platform] { background: var(--pl); color: #fff; }
.hot-rank-sm { flex: 0 0 auto; color: #ffb057; font-weight: 700; font-size: 12px; }
.hot-hit-kw { flex: 0 0 auto; color: #a7b0bf; font-size: 12px; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 自动归类标签 + 关联依据（2026-11-10） */
.hot-hit-cat { flex: 0 0 auto; background: rgba(255, 90, 95, .30); color: #ffd6b0; border: 1px solid rgba(255, 90, 95, .45); font-size: 11px; padding: 1px 7px; border-radius: 999px; }
.hot-hit-mark { flex: 0 0 auto; margin-left: 6px; font-size: 12px; }
.hot-hit-ai { flex: 0 0 auto; font-size: 11px; color: #b7d8ff; border: 1px solid rgba(120, 170, 230, .5); border-radius: 999px; padding: 1px 7px; }

/* 相关性核验台账（2026-11-22）：逐条展示判定结果与过滤原因 */
.hot-verify-card { border: 1px solid rgba(120, 170, 230, .35); }
/* v262：核验台账压成一行统计，点头部展开；无关项不再铺开 */
.hot-verify-head { width: 100%; cursor: pointer; background: transparent; border: 0; color: inherit;
  text-align: left; margin: 0; padding: 0; font: inherit; line-height: normal; }
.hot-verify-head:hover .hint-inline { color: #eaf1ff; }
.hot-verify-head .hint-inline { margin-left: 6px; }
.hot-verify-caret { margin-left: auto; display: inline-block; font-size: 13px; color: #c8d2e0;
  transition: transform .15s ease; }
.hot-verify-head[aria-expanded="true"] .hot-verify-caret { transform: rotate(180deg); }
.hot-verify-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto;
  padding-right: 2px; margin-top: 10px; }
.hot-verify-list[hidden] { display: none; }
.hot-verify-item { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; font-size: 12px; padding: 6px 8px; border-radius: 6px; background: rgba(130, 140, 160, .10); border-left: 3px solid #7d8798; }
.hot-verify-item.pass { background: rgba(65, 180, 130, .12); border-left-color: #41b482; }
.hot-verify-item.blocked { background: rgba(255, 90, 95, .12); border-left-color: #ff5a5f; }
.hot-verify-item.irrelevant { background: rgba(130, 140, 160, .08); border-left-color: #7d8798; }
.hot-verify-verdict { flex: 0 0 auto; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; color: #e8ecf3; background: #5a6474; }
.hot-verify-item.pass .hot-verify-verdict { background: #2f8f68; }
.hot-verify-item.blocked .hot-verify-verdict { background: #b4474b; }
.hot-verify-title { flex: 1 1 42%; min-width: 0; word-break: break-word; color: #e9e4d8; }
.hot-verify-title a { color: inherit; text-decoration: none; }
.hot-verify-title a:hover { text-decoration: underline; }
.hot-verify-reason { flex: 1 1 46%; min-width: 0; color: #a7b0bf; word-break: break-word; }
.hot-verify-anchor { flex: 0 0 auto; color: #ffb057; font-size: 11px; }
@media (max-width: 768px) {
  .hot-verify-title, .hot-verify-reason { flex: 1 1 100%; }
  .hot-verify-list { max-height: 260px; }
}

/* 关键词手动监测区（不影响邯郸自动监测） */
.hot-kw-card { border: 1px solid rgba(80, 170, 220, .35); }
.hot-kw-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.hot-kw-input { flex: 1 1 240px; min-width: 0; background: #1e1e24; border: 1px solid #3a3a44; color: #efe8da; border-radius: 6px; padding: 8px 10px; font-size: 13px; }
.hot-kw-input::placeholder { color: #7d7d88; }
.hot-kw-btn { background: #2b7bb0; color: #eef6ff; }
.hot-kw-btn:hover { background: #3489c2; }
.hot-kw-clear { background: #44444e; color: #cfcfd6; }
.hot-kw-clear:hover { background: #52525e; }
/* 命中关键词的条目：蓝青色左条高亮（与邯郸红区分）；邯郸命中优先红色 */
.hot-item.hot-kw-hit { background: rgba(80, 170, 220, .12); box-shadow: inset 3px 0 0 #4aa3dc; }
.hot-kw-mark { flex: 0 0 auto; margin-left: 6px; font-size: 13px; }
.hot-kw-item { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 6px 8px; background: rgba(80, 170, 220, .10); border-radius: 6px; }
.hot-kw-item a { color: #bfe3ff; text-decoration: none; flex: 1 1 auto; min-width: 0; word-break: break-word; }
.hot-kw-item a:hover { text-decoration: underline; }
.hot-kw-term { flex: 0 0 auto; background: #2b7bb0; color: #eef6ff; font-size: 12px; padding: 1px 8px; border-radius: 999px; }
.hot-empty, .hot-loading { color: #8f99a8; font-size: 13px; padding: 10px 4px; }
.hot-err { color: #ffb37a; font-size: 12px; margin-bottom: 6px; }

/* ---------- 盯办处置 ---------- */
.tb-stat-card { margin-top: 14px; padding: 14px 16px; }
.tb-stats { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.tb-stat { display: flex; flex-direction: column; align-items: center; min-width: 74px; }
.tb-stat-num { font-size: 26px; font-weight: 800; color: #efe8da; line-height: 1.1; }
.tb-stat-label { font-size: 12px; color: #9aa6b8; margin-top: 4px; }
.tb-stat-main { border-right: 1px solid #3a3a44; padding-right: 26px; }
.tb-stat-main .tb-stat-num { font-size: 42px; color: #4ecb8f; }
.tb-stat-main .tb-stat-label { color: #cfe7d9; font-size: 13px; }
/* 事件分类统计（2026-11-10） */
.tb-event-summary { margin-top: 10px; padding-top: 9px; border-top: 1px solid #34343e; font-size: 12px; color: #9aa6b8; }
.tb-event-summary b { color: #ffd6a0; font-weight: 700; }
.tb-event-summary span { margin-right: 16px; white-space: nowrap; }

.tb-add-card { margin-top: 14px; }
.tb-event-title-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 9px; }
.tb-event-title-bar label { font-size: 12px; color: #c3cbd7; }
.tb-event-title-input { flex: 1 1 320px; min-width: 0; background: #1e1e24; border: 1px solid #4a5a50; color: #efe8da;
  border-radius: 6px; padding: 7px 10px; font-size: 13px; font-family: inherit; }
.tb-event-title-input::placeholder { color: #7d7d88; }
.tb-input { width: 100%; box-sizing: border-box; background: #1e1e24; border: 1px solid #3a3a44; color: #efe8da;
  border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.6; resize: vertical; font-family: inherit; }
.tb-input::placeholder { color: #7d7d88; }
.tb-add-bar { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.btn-tb-add { background: #2f7d5b; color: #eafff4; }
.btn-tb-add:hover { background: #388f68; }
.btn-tb-addcheck { background: #2b7bb0; color: #eef6ff; }
.btn-tb-addcheck:hover { background: #3489c2; }
.tb-clear { background: #44444e; color: #cfcfd6; }
.tb-clear:hover { background: #52525e; }
.tb-clear-dead { background: #6b3a3a; color: #ffe0e0; }
.tb-clear-dead:hover { background: #7e4545; }
/* 刷新检测（v228 移到按钮栏末尾） */
.btn-tb-check { background: #2b6b8f; color: #eef8ff; }
.btn-tb-check:hover { background: #3480aa; }
.btn-tb-check:disabled { opacity: .55; cursor: default; }

.tb-list-card { margin-top: 14px; }
.tb-list { display: flex; flex-direction: column; gap: 6px; }
.tb-item { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 8px 10px;
  background: #24242c; border-radius: 6px; border-left: 3px solid #3a3a44; }
.tb-item.tb-ok { border-left-color: #4ecb8f; }
.tb-item.tb-dead { border-left-color: #ff5a5f; background: rgba(255, 90, 95, .10); }
.tb-item.tb-low { border-left-color: #ffb057; }
.tb-item.tb-pending { border-left-color: #6b7280; }
.tb-badge { flex: 0 0 auto; font-size: 12px; padding: 2px 10px; border-radius: 999px; font-weight: 700; }
.tb-badge.tb-ok { background: rgba(78, 203, 143, .18); color: #7ee2b3; }
.tb-badge.tb-dead { background: rgba(255, 90, 95, .20); color: #ff9a9e; }
.tb-badge.tb-low { background: rgba(255, 176, 87, .20); color: #ffcd94; }
.tb-badge.tb-pending { background: #3a3a44; color: #b8c0cc; }
.tb-badge.tb-confirmed { background: rgba(78, 203, 143, .30); color: #9af0c6; }
.tb-badge.tb-unverified { background: rgba(255, 176, 87, .16); color: #ffd9a8; }
.tb-url { flex: 1 1 auto; min-width: 0; color: #cfe3ff; text-decoration: none; word-break: break-all; }
.tb-url:hover { text-decoration: underline; }
.tb-item.tb-dead .tb-url { color: #ff9a9e; text-decoration: line-through; }
.tb-reason { flex: 0 1 auto; max-width: 34%; color: #9aa6b8; font-size: 12px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.tb-time { flex: 0 0 auto; color: #8f99a8; font-size: 12px; }
.tb-del { flex: 0 0 auto; background: #44444e; color: #cfcfd6; padding: 2px 8px; }
.tb-del:hover { background: #6b2b2f; color: #ffd9da; }
.tb-confirm-btn { flex: 0 0 auto; background: rgba(78, 203, 143, .18); color: #7ee2b3;
  border: 1px solid rgba(78, 203, 143, .42); padding: 2px 9px; border-radius: 6px; font-weight: 700; }
.tb-confirm-btn:hover { background: rgba(78, 203, 143, .32); }
/* 手动处置按钮：✓未删除 / ✕已删除，互斥；当前状态高亮（tb-act-current） */
.tb-valid-btn { flex: 0 0 auto; background: rgba(78, 203, 143, .16); color: #7ee2b3;
  border: 1px solid rgba(78, 203, 143, .40); padding: 2px 9px; border-radius: 6px; font-weight: 700; }
.tb-valid-btn:hover { background: rgba(78, 203, 143, .30); }
.tb-dead-btn { flex: 0 0 auto; background: rgba(255, 90, 95, .14); color: #ff9a9e;
  border: 1px solid rgba(255, 90, 95, .40); padding: 2px 9px; border-radius: 6px; font-weight: 700; }
.tb-dead-btn:hover { background: rgba(255, 90, 95, .28); }
.tb-act-current { opacity: 1; cursor: default; box-shadow: 0 0 0 2px rgba(255,255,255,.18) inset; }
.tb-act-current:hover { background: inherit; filter: brightness(1.05); }
/* v226 人工补录（微信等反爬测不到时） */
.tb-info-btn { flex: 0 0 auto; background: rgba(90,140,220,.16); color: #a9c6ff;
  border: 1px solid rgba(90,140,220,.42); padding: 2px 9px; border-radius: 6px; }
.tb-info-btn:hover { background: rgba(90,140,220,.30); }
.tb-badge.tb-noted { background: rgba(90,140,220,.22); color: #bcd4ff; }
.tb-empty { color: #8f99a8; font-size: 13px; padding: 10px 4px; }

/* 事件分组：相同舆情事件归一块（便于不同事件同时检测时一眼区分） */
.tb-event { margin-bottom: 14px; border: 1px solid #31313b; border-radius: 10px; overflow: hidden; background: #1f1f26; }
.tb-event-head { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; background: #2a2a33; border-bottom: 1px solid #31313b; }
.tb-event-title { font-size: 14px; font-weight: 700; color: #efe8da; word-break: break-all; }
.tb-event-head-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tb-event-cat { flex: 0 0 auto; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: rgba(78,203,143,.16); color: #7ee2b3; }
.tb-event-cat.tb-ev-dead { background: rgba(255,90,95,.20); color: #ff9a9e; }
.tb-event-cat.tb-ev-unknown { background: rgba(255,176,87,.18); color: #ffcd94; }
.tb-event-cat.tb-ev-pending { background: #3a3a44; color: #b8c0cc; }
.tb-event-rename { flex: 0 0 auto; background: #35415c; color: #cfe0ff; padding: 2px 8px; }
/* 每组单独刷新按钮（v228） */
.tb-event-check { flex: 0 0 auto; background: rgba(78,203,143,.14); color: #8fdcb4;
  border: 1px solid rgba(78,203,143,.4); padding: 2px 8px; }
.tb-event-check:hover { background: rgba(78,203,143,.28); color: #d6ffe9; }
.tb-event-check:disabled { opacity: .5; cursor: default; }
.tb-event-manual { flex: 0 0 auto; font-size: 11px; color: #8fd3a8; }
.tb-event-meta { flex: 0 0 auto; font-size: 12px; color: #9aa6b8; white-space: nowrap; }
.tb-event-meta b.tb-dead-t { color: #ff9a9e; }
.tb-event-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; }

/* 检测置信度条：明确给出自动化判决的置信度，替代原「待复核」人工兜底 */
.tb-conf { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center;
  width: 74px; height: 16px; border-radius: 999px; background: #34343f; overflow: hidden; }
.tb-conf-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.tb-conf-num { position: relative; z-index: 1; width: 100%; text-align: center; font-size: 11px;
  font-weight: 700; color: #11131a; mix-blend-mode: difference; }
.tb-conf-high .tb-conf-fill { background: #4ecb8f; }
.tb-conf-mid .tb-conf-fill { background: #ffd166; }
.tb-conf-low .tb-conf-fill { background: #ffb057; }
.tb-low-item .tb-url { color: #ffcd94; }


/* 粘贴即时识别预览：自动抽取有效链接 + 滤除冗余内容 */
.tb-preview { margin-top: 10px; padding: 10px 12px; background: #1d1d24; border: 1px dashed #3a3a44;
  border-radius: 8px; font-size: 13px; }
.tb-prev-head { color: #cfe3ff; margin-bottom: 8px; }
.tb-prev-head b { color: #4ecb8f; }
.tb-prev-list { display: flex; flex-direction: column; gap: 5px; max-height: 200px; overflow: auto; }
.tb-prev-item { display: flex; align-items: center; gap: 8px; }
.tb-prev-url { color: #9aa6b8; word-break: break-all; min-width: 0; }

/* 安全性徽章（与状态徽章并列展示，一眼看清「是否有效 + 是否安全」） */
.tb-badge.tb-safe { background: rgba(78, 203, 143, .14); color: #7ee2b3; }
.tb-badge.tb-warn { background: rgba(255, 176, 87, .18); color: #ffcd94; }
.tb-badge.tb-risk { background: rgba(255, 90, 95, .22); color: #ff9a9e; }
.tb-badge.tb-dup { background: rgba(150, 160, 180, .18); color: #c3ccd9; }
.tb-dup-item { outline: 1px dashed rgba(150, 160, 180, .45); }

/* ===== 主题分区（v257）：每个监测主题一张独立卡片，网格并排可同屏查看 ===== */
.tb-zone-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  flex-wrap: wrap; margin: 2px 0 12px; }
.tb-zone-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.tb-zone-filter { background: #26262f; border: 1px solid #3a3a44; color: #b8c0cc; border-radius: 999px;
  padding: 5px 14px; font-size: 12.5px; cursor: pointer; transition: all .15s; }
.tb-zone-filter:hover { border-color: #5a6a80; color: #e6ecf5; }
.tb-zone-filter.is-on { background: rgba(78,203,143,.18); border-color: #4ecb8f; color: #9af0c6; font-weight: 700; }
.tb-zone-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tb-zone-sort-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #9aa6b8; }
.tb-zone-sort { background: #1e1e24; border: 1px solid #4a4a55; color: #dfe6ef; border-radius: 6px;
  padding: 4px 8px; font-size: 12.5px; }
.tb-zone-layout { background: #2a2a33; border: 1px solid #4a4a55; color: #cfe0ff; border-radius: 6px;
  padding: 5px 12px; font-size: 12.5px; cursor: pointer; }
.tb-zone-layout:hover { border-color: #5a6a80; }

/* 网格：桌面自适应多列，每列最小 400px；单列视图切 tb-zones-single */
.tb-zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 14px; align-items: start; }
.tb-zones.tb-zones-single { grid-template-columns: 1fr; }
.tb-zone { display: flex; flex-direction: column; min-width: 0; border: 1px solid #31313b; border-top: 3px solid #4ecb8f;
  border-radius: 10px; overflow: hidden; background: #1f1f26; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.tb-zone.tb-ev-dead { border-top-color: #ff5a5f; }
.tb-zone.tb-ev-unknown { border-top-color: #ffb057; }
.tb-zone.tb-ev-pending { border-top-color: #6b7280; }
.tb-zone-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  flex-wrap: wrap; padding: 10px 12px; background: #26262f; border-bottom: 1px solid #31313b; }
.tb-zone-head-main { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; min-width: 0; flex-wrap: wrap; }
.tb-zone-head-ops { display: flex; gap: 6px; flex: 0 0 auto; flex-wrap: wrap; }
/* 每主题独立统计条 */
.tb-zone-stats { display: flex; gap: 0; padding: 8px 6px; background: #1b1b22; border-bottom: 1px solid #2c2c35; }
.tb-zs { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; min-width: 0;
  border-right: 1px solid #303039; }
.tb-zs:last-child { border-right: none; }
.tb-zs b { font-size: 17px; font-weight: 800; color: #efe8da; line-height: 1.15; }
.tb-zs i { font-style: normal; font-size: 11px; color: #9aa6b8; margin-top: 2px; }
.tb-zs-ok b { color: #7ee2b3; }
.tb-zs-dead b { color: #ff9a9e; }
.tb-zs-unknown b { color: #ffcd94; }
.tb-zs-progress b { color: #8fd0ff; }
/* 处置进度条：分段 */
.tb-zone-progress { display: flex; height: 8px; margin: 9px 12px 2px; border-radius: 999px; overflow: hidden;
  background: #34343f; }
.tb-zp-seg { display: block; height: 100%; transition: width .3s; }
.tb-zp-valid { background: #4ecb8f; }
.tb-zp-dead { background: #ff5a5f; }
.tb-zp-unknown { background: #ffb057; }
.tb-zp-pending { background: #6b7280; }
/* 重点提醒 */
.tb-zone-alerts { display: flex; flex-direction: column; gap: 4px; padding: 6px 12px 8px; }
.tb-zone-alert { font-size: 12px; line-height: 1.4; padding: 5px 9px; border-radius: 6px; word-break: break-word; }
.tb-zone-alert.za-dead { background: rgba(255,90,95,.14); color: #ffb3b6; border-left: 3px solid #ff5a5f; }
.tb-zone-alert.za-unknown { background: rgba(255,176,87,.13); color: #ffcf9c; border-left: 3px solid #ffb057; }
.tb-zone-alert.za-low { background: rgba(255,209,102,.10); color: #ffe1a0; border-left: 3px solid #ffd166; }
.tb-zone-alert.za-pending { background: rgba(107,114,128,.16); color: #c3ccd9; border-left: 3px solid #6b7280; }
.tb-zone-alert.za-ok { background: rgba(78,203,143,.12); color: #9af0c6; border-left: 3px solid #4ecb8f; }
.tb-zone .tb-event-body { flex: 1 1 auto; }

/* ===== 版本二（v258）：工作台分栏卡片 ===== */
/* 每张卡更宽，桌面 1280 下 2 列，左「主题明细」+ 右「状态栏」分栏不挤压 */
.tb-zones { grid-template-columns: repeat(auto-fill, minmax(600px, 1fr)); }
.tb-zones.tb-zones-single { grid-template-columns: 1fr; }
.tb-zone-grid { display: grid; grid-template-columns: minmax(0, 1fr) 190px; align-items: stretch; }
.tb-zone-main { display: flex; flex-direction: column; min-width: 0; }
.tb-zone-main .tb-zone-head { border-bottom: 1px solid #31313b; }
/* 主题标题加大加粗（v258）：「魏县」等主题名一眼可辨 */
.tb-zone-head .tb-event-title { font-size: 20px; font-weight: 800; color: #fff5e0; letter-spacing: .5px; }
.tb-zone-head .tb-event-cat, .tb-zone-head .tb-event-manual { align-self: center; }
.tb-zone-rail { display: flex; flex-direction: column; gap: 8px; min-width: 0;
  padding: 10px; background: #1b1b22; border-left: 1px solid #31313b; }
.tb-zone-rail .tb-zone-stats { display: flex; flex-direction: column; gap: 2px; padding: 0; background: transparent; border: none; }
.tb-zone-rail .tb-zs { flex: 0 0 auto; flex-direction: row; justify-content: space-between; align-items: center;
  border-right: none; border-bottom: 1px dashed #303039; padding: 3px 2px; }
.tb-zone-rail .tb-zs:last-child { border-bottom: none; }
.tb-zone-rail .tb-zs b { font-size: 14px; }
.tb-zone-rail .tb-zone-progress { margin: 2px 0; }
.tb-zone-rail .tb-zone-alerts { padding: 0; gap: 5px; }
.tb-zone-rail .tb-zone-head-ops { display: flex; flex-direction: column; gap: 6px; margin-top: 0; padding-bottom: 9px;
  border-bottom: 1px solid #31313b; }
.tb-zone-rail .tb-zone-head-ops .mini { align-self: stretch; width: 100%; text-align: center; margin-top: 0; }
/* 链接明细卡片：三行（标题 / 精准判定 / 操作），标题独占一行防竖排 */
.tb-zone .tb-item { display: block; padding: 9px 11px; }
.tbi-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tbi-head .tb-url { flex: 1 1 100%; min-width: 0; width: 100%; line-height: 1.5; overflow-wrap: anywhere; word-break: break-word; }
.tbi-verdict { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; margin-top: 6px; padding: 6px 9px;
  background: #1c1c24; border-radius: 6px; font-size: 11.5px; color: #9aa6b8; }
.vd-label { flex: 0 0 auto; font-size: 12px; padding: 1px 9px; border-radius: 999px; font-weight: 700; }
.vd-label.vd-dead { background: rgba(255,90,95,.20); color: #ff9a9e; }
.vd-label.vd-valid { background: rgba(78,203,143,.18); color: #7ee2b3; }
.vd-label.vd-unknown { background: rgba(255,176,87,.18); color: #ffcd94; }
.vd-label.vd-pending { background: #3a3a44; color: #b8c0cc; }
.vd-reason { flex: 1 1 180px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-checks { flex: 1 1 180px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #7f8b9d; }
.vd-conf, .vd-time, .vd-manual { flex: 0 0 auto; }
.vd-manual { color: #9af0c6; }
.tbi-ops { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.tbi-ops .mini { align-self: auto; margin-top: 0; }

@media (max-width: 900px) {
  .tb-zone-grid { grid-template-columns: 1fr; }
  .tb-zone-rail { border-left: none; border-top: 1px solid #31313b; }
  .tb-zone-rail .tb-zone-stats { flex-direction: row; flex-wrap: wrap; }
  .tb-zone-rail .tb-zs { flex: 1 1 30%; flex-direction: column; align-items: center; border-bottom: none; }
  .tb-zone-rail .tb-zone-head-ops { flex-direction: row; }
  .tb-zone-rail .tb-zone-head-ops .mini { width: auto; }
}

@media (max-width: 768px) {
  .hot-platforms { grid-template-columns: 1fr; }
  .hot-list { height: auto; max-height: none; }
  .hot-item { font-size: 14px; padding: 9px 6px; }
  .hot-pl-badge { font-size: 15px; padding: 5px 13px; }
  .hot-handan-item { flex-wrap: wrap; }
  .hot-handan-item a { flex: 1 1 100%; }
  .hot-hit-kw { max-width: 100%; }
  .hot-kw-bar { flex-direction: column; align-items: stretch; }
  .hot-kw-input { flex: 1 1 auto; }
  .hot-kw-item { flex-wrap: wrap; }
  .hot-kw-item a { flex: 1 1 100%; }
  .tb-stats { gap: 16px; }
  .tb-event-title-bar { flex-direction: column; align-items: stretch; }
  .tb-event-title-input { flex: 1 1 auto; }
  .tb-event-summary span { display: block; margin: 3px 0; }
  .tb-event-head { flex-wrap: wrap; }
  .tb-event-meta { white-space: normal; }
  .tb-stat-main { border-right: none; padding-right: 0; }
  .tb-stat-main .tb-stat-num { font-size: 34px; }
  .tb-item { flex-wrap: wrap; }
  .tb-url { flex: 1 1 100%; }
  .tb-reason { max-width: 100%; white-space: nowrap; }
  /* 主题分区：手机强制单列；工具条分区换行，统计条与进度保持不遮挡 */
  .tb-zones { grid-template-columns: 1fr !important; gap: 12px; }
  .tb-zone-toolbar { align-items: stretch; }
  .tb-zone-filters { width: 100%; }
  .tb-zone-filter { flex: 1 1 auto; padding: 7px 8px; text-align: center; }
  .tb-zone-tools { width: 100%; justify-content: space-between; }
  .tb-zone-head { padding: 9px 10px; }
  .tb-zs b { font-size: 15px; }
  .tb-zone-progress { margin-left: 10px; margin-right: 10px; }
}

/* ===== 舆情指挥中心：实时指标 + 图表 + 督办 + 通知 ===== */
/* 全宽模式：隐藏左侧导航栏；顶栏左侧「品牌 + 页标题」与「角色 / 办文人」一并收起（页内已有居中大标题） */
body.leader-mode .side { display: none; }
body.leader-mode main { overflow: visible; }
/* 2026-11-12：领导切换条并入顶栏同一行——顶栏左让位给切换条、右侧操作按钮仍在右，两端分布 */
body.leader-mode #topbar { justify-content: space-between; gap: 14px; }
body.leader-mode #topbar .topbar-left,
body.leader-mode #topbar .ub-info { display: none; }

/* 页头大标题：位于全局切换条上方（标题在上、按钮条在下），仅领导在「指挥总览」页显示 */
.ld-h2 { display: none; font-size: 72px; font-weight: 800; color: #fff; text-align: center; letter-spacing: 18px; text-indent: 18px;
  margin: 4px 0 12px; line-height: 1.16; padding-bottom: 16px; border-bottom: 1px solid #33333c;
  font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", "Noto Sans SC", sans-serif; }
body.leader-mode[data-tab="leader"] .ld-h2 { display: block; }
.ld-me { font-size: 13px; color: #cfe3ff; background: #1e2740; border: 1px solid #2b3a5e; padding: 4px 12px; border-radius: 999px; }
/* 全局筛选条：单行工具栏，各控件定宽不再撑满整行（日期区间 / 属地 / 平台 / 领域） */
.ld-filters { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; background: #1e1e24; border: 1px solid #30303a; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
/* B版分层：筛选条吸顶常驻（.tab 是滚动容器，sticky 相对它生效），滚动时统计口径始终可见 */
.ld-filters { position: sticky; top: 0; z-index: 6; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.ld-f-grp { display: flex; align-items: center; gap: 7px; flex: none; }
.ld-f-cap { font-size: 12.5px; color: #8f9aad; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.ld-f-date, .ld-f-sel { width: auto; flex: none; background: #26262e; border: 1px solid #3a3a44; color: #efe8da; border-radius: 6px; font-size: 13px; font-family: inherit; }
.ld-f-date { width: 118px; padding: 5px 8px; }
.ld-f-sel { min-width: 92px; max-width: 106px; padding: 6px 9px; }
.ld-f-date::-webkit-calendar-picker-indicator { filter: invert(0.7); cursor: pointer; }
.ld-f-sep { color: #6f7a8c; font-size: 13px; }
.ld-f-quick { display: flex; align-items: center; gap: 6px; margin-left: 2px; }
.ld-f-chip { background: #262a36; border: 1px solid #36406a; color: #c3cde4; border-radius: 999px; padding: 3px 9px; font-size: 12px; cursor: pointer; transition: background .15s, color .15s; }
.ld-f-chip:hover { background: #2f3a56; color: #fff; }
.ld-f-chip.is-on { background: #2f6db0; border-color: #3a82cf; color: #fff; }
.ld-f-reset { flex: none; }
.ld-f-msg { font-size: 12px; color: #8f9aad; margin-left: 4px; white-space: nowrap; }
/* 当前用户 + 刷新数据：靠右并入筛选条（margin-left:auto 吃掉剩余空间），不再单独占一行 */
.ld-f-acc { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.ld-f-acc button.mini { align-self: center; padding: 5px 9px; font-size: 12.5px; }
/* 窄屏笔记本（≤1400 / ≤1320）：控件逐级收窄，保证「账号 + 刷新数据」与筛选控件同行，不折行 */
@media (max-width: 1400px) {
  .ld-filters { gap: 10px 10px; }
  .ld-f-date { width: 108px; }
  .ld-f-sel { max-width: 96px; }
  .ld-f-chip { padding: 3px 7px; }
}
@media (max-width: 1320px) {
  .ld-filters { gap: 9px 8px; }
  .ld-f-date { width: 102px; }
  .ld-f-sel { max-width: 88px; }
  .ld-f-grp { gap: 6px; }
  .ld-f-acc { gap: 6px; }
  .ld-me { font-size: 11.5px; padding: 3px 8px; }
  .ld-f-acc button.mini { padding: 5px 7px; font-size: 12px; }
}
/* 领导横向切换条：默认隐藏，仅 leader 可见；2026-11-12 并入顶栏同一行——
   去掉独立的 sticky / 外边距 / 背景边框，作为顶栏内的内联按钮组，不再单独占一行 */
.ld-quick-global { display: none; gap: 8px; flex-wrap: wrap; align-items: center; }
body.leader-mode #topbar .ld-quick-global { display: flex; }
.ld-quick { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ld-q { background: #2b3550; color: #dbe6ff; border: 1px solid #36436a; border-radius: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer; }
.ld-q.is-active { background: #2f6db0; border-color: #3a82cf; color: #fff; }
.ld-q:hover { background: #34416a; }

/* 2026-11-26 v276：概况页整体收紧（卡片内边距 / 栅格间距），去掉松散留白 */
body.leader-mode[data-tab="leader"] .card { padding: 14px; }
.ld-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin-bottom: 10px; }
.ld-metric { background: #26262e; border: 1px solid #30303a; border-radius: 12px; padding: 11px 10px; text-align: center; }
.ld-metric-num { font-size: 28px; font-weight: 800; color: #fff; line-height: 1.1; }
.ld-metric-label { font-size: 12px; color: #9aa6b8; margin-top: 6px; }
.ld-metric.m-warn .ld-metric-num { color: #ffb057; }
.ld-metric.m-danger .ld-metric-num { color: #ff6b6b; }
.ld-metric.m-info .ld-metric-num { color: #5b9dff; }
.ld-metric.m-total .ld-metric-num { color: #4ecb8f; }

/* 分区栅格：成对两栏（左宽右窄）；单栏板块占满整行 */
.ld-grid { display: grid; gap: 10px; margin-bottom: 10px; align-items: start; }
.ld-grid-single { grid-template-columns: minmax(0, 1fr); }
.ld-grid-a { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.ld-grid-b { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.ld-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ld-card-head h3 { margin-bottom: 0; }
.ld-chart { margin-top: 8px; min-height: 200px; position: relative; }
.ld-chart-sm { min-height: 124px; }
.ld-pies-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.ld-pies-4.compact { gap: 8px; }
.ld-pies-4.compact .ld-mini-t { margin-bottom: 4px; }
/* B版：结构分析删反馈率环、领域饼上移 → 只剩平台 + 风险两等分 */
.ld-pies-4.ld-pies-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* v277：左侧「结构分析 + 领域占比」上下叠放，趋势折线整体右移占据宽区 */
.ld-grid-top { display: grid; grid-template-columns: minmax(268px, 1fr) minmax(0, 2.5fr); gap: 10px;
  margin-bottom: 6px; align-items: start; }
.ld-top-left { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ld-grid-top > .ld-card, .ld-top-left > .ld-card { min-width: 0; }
.ld-top-left > .ld-card { flex: 0 0 auto; }
/* v278：左列两卡 + 右趋势卡显式等高（423px），不用 grid stretch，避免 flex 把整行撑到 557px */
.ld-grid-top .ld-top-left, .ld-grid-top .ld-trend-card { height: 445px; }
.ld-ind-card { display: flex; flex-direction: column; }
/* v285：两卡统一「左侧大饼 + 右侧图例」——饼图尽量放大且左边缘/顶点同列对齐；
   图例四列（色点/名称/数值/占比）贴饼右侧，11px 紧凑行高，不再上下堆叠占高 */
.ld-top-left #ldIndustryPie { flex: 0 0 auto; display: block; }
.ld-top-left > .ld-card { flex: 1 1 0; }
.ld-top-left .pie-wrap { display: flex; flex-direction: row; align-items: center;
  gap: 10px; width: 100%; min-height: 150px; }
.ld-top-left .pie-wrap svg { width: 144px; height: 144px; flex: 0 0 144px; }
.ld-top-left .pie-legend { flex: 1 1 auto; min-width: 0; width: auto;
  max-height: none; overflow: visible;
  grid-template-columns: 8px fit-content(12em) max-content max-content;
  column-gap: 5px; }
.ld-top-left .pie-dot { margin-top: 5px; }
.ld-top-left .pie-label,
.ld-top-left .pie-legend-item b,
.ld-top-left .pie-pct { font-size: 11px; line-height: 1.5; }
.ld-top-left .pie-center-num { font-size: 30px; }
.ld-top-left .pie-center-cap { font-size: 12px; }
.ld-note-top { margin: 0 0 10px; }
/* v278：趋势卡栅格拉伸到底，与左列「结构分析 + 领域占比」底边齐平；
   图区固定 330px（SVG 固定宽高比，flex 拉伸会把图区撑到 479px 造成上下大空白），
   提示文字 margin-top:auto 贴卡片底，行高由左列两卡决定。 */
.ld-grid-top .ld-trend-card { margin-bottom: 0; display: flex; flex-direction: column; }
.ld-grid-top .ld-trend-box { flex: 0 0 350px; height: 350px; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.ld-grid-top .ld-trend-tip { margin-top: auto; padding-top: 4px; }
.ld-mini { min-width: 0; }
.ld-mini-t { font-size: 12.5px; color: #9aa6b8; margin-bottom: 6px; }
.ld-fb-rate { margin-left: 6px; color: #ffd166; font-size: 11.5px; font-weight: 600; }
.ld-note { margin-top: 8px; font-size: 12px; color: #9a9aa4; line-height: 1.7; }
/* 领域舆情趋势卡（2026-11-26 B版） */
.ld-trend-card { margin-bottom: 0; }
.ld-trend-box { min-height: 196px; }
.ld-trend-box .tb-wrap svg { max-height: 300px; }
/* 折线趋势图顶部图例（v274）：横排、色条+名称，点选显隐；置于图上方，不占图内空间 */
.tl-legend-row { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; margin: 0 0 2px 2px; }
.tl-legend-row .trend-legend { font-size: 11.5px; }
.tl-legend-row .trend-legend { cursor: pointer; }
.tl-legend-row .ld-lg-btn { padding: 1px 2px; }
.tl-legend-row .is-off { opacity: .35; text-decoration: line-through; }
.ld-trend-box .tb-zone { cursor: pointer; }
.ld-tg { display: inline-flex; gap: 0; border: 1px solid #3a3a46; border-radius: 7px; overflow: hidden; }
.ld-tg-btn { background: transparent; border: 0; color: #9aa6b8; padding: 4px 13px; font-size: 12px; cursor: pointer; }
.ld-tg-btn + .ld-tg-btn { border-left: 1px solid #3a3a46; }
.ld-tg-btn.is-on { background: #3a3a46; color: #ffd166; }
.ld-trend-tip { margin-top: 4px; font-size: 11px; color: #8b8b95; line-height: 1.5; }
.ld-trend-modal .ld-drill-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ld-drill-tbl th, .ld-drill-tbl td { padding: 6px 8px; border-bottom: 1px solid #33333c; text-align: left; }
.ld-drill-tbl th { color: #9aa6b8; font-weight: 500; white-space: nowrap; }
.ld-drill-tbl td:nth-child(2) { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 小尺寸条形（月度汇总内） */
.ld-bars-sm .hbar-row { margin: 4px 0; font-size: 12px; }
.ld-bars-sm .hbar-label { flex: 0 0 84px; }
.ld-bars-sm .hbar-track { height: 11px; }
.pie-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-start; }
.pie-wrap svg { flex: 0 0 auto; }
.pie-center-num { fill: #fff; font-size: 22px; font-weight: 800; }
.pie-center-cap { fill: #9aa6b8; font-size: 10px; }
/* 图例：整块 grid（色点 / 名称 / 数值 / 占比），列宽按内容共享，整块靠左 ——
   名称与它的数据挨在一起，不把数值/百分比推向两端；
   名称列 fit-content(6.5em)：短名称按内容宽度（不留空隙），超长名称封顶换行（不撑宽整列） */
.pie-legend { flex: 0 1 auto; max-width: 100%; max-height: 180px; overflow: auto;
  display: grid; grid-template-columns: 8px fit-content(6.5em) max-content max-content;
  justify-content: start; column-gap: 9px; align-items: start; align-content: start; }
.pie-legend-item { display: contents; }
.pie-dot { display: block; width: 8px; height: 8px; border-radius: 50%; align-self: start; margin-top: 7.5px; }
.pie-label { color: #d4d4da; font-size: 12.5px; line-height: 1.9; white-space: normal; overflow-wrap: anywhere; }
.pie-legend-item b { color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.9; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pie-pct { color: #9aa6b8; font-size: 12.5px; line-height: 1.9; white-space: nowrap; font-variant-numeric: tabular-nums; }
.trend-legend-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.trend-legend { font-size: 12px; color: #cdd3df; display: inline-flex; align-items: center; gap: 6px; }
.trend-legend i { width: 12px; height: 4px; border-radius: 2px; display: inline-block; }
.ax-x { fill: #8f99a8; font-size: 9px; }
.ax-y { fill: #8f99a8; font-size: 9px; }
.hbar-row { display: flex; align-items: center; gap: 10px; margin: 7px 0; font-size: 13px; }
.hbar-label { flex: 0 0 120px; color: #d4d4da; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { flex: 1 1 auto; background: #1e1e24; border-radius: 6px; height: 14px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; border-radius: 6px; }
.hbar-val { flex: 0 0 auto; color: #fff; font-weight: 700; }
.chart-empty { color: #8f99a8; font-size: 13px; padding: 14px 4px; }

/* 可交互柱状趋势图：悬停浮层 + 图例开关 + 堆叠/分组切换 */
.tb-wrap { position: relative; }
.tb-zone { cursor: crosshair; }
.tb-tip { position: absolute; z-index: 5; pointer-events: none; background: #1b1b22; border: 1px solid #3a3a44;
  border-radius: 8px; padding: 8px 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); min-width: 108px; }
.tb-tip-date { color: #fff; font-weight: 700; font-size: 12.5px; margin-bottom: 6px; }
.tb-tip-row { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #d4d4da; line-height: 1.7; }
.tb-tip-row b { margin-left: auto; color: #fff; padding-left: 10px; }
.tb-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.tb-tip-name { color: #cdd3df; }
.tb-tip-sum { border-top: 1px dashed #3a3a44; margin-top: 5px; padding-top: 5px; font-size: 12px; color: #9aa6b8; }
.tb-tip-sum b { color: #fff; }
.ld-lg-btn { background: none; border: none; cursor: pointer; padding: 2px 4px; font: inherit; color: #cdd3df; }
.ld-lg-btn.is-off { opacity: .38; text-decoration: line-through; }
.ld-mode-btn { margin-left: auto; background: #2b3550; color: #dbe6ff; border: 1px solid #36436a; border-radius: 6px;
  padding: 3px 12px; font-size: 12px; cursor: pointer; }
.ld-mode-btn:hover { background: #34416a; }
.tb-hint { color: #7d8798; font-size: 11.5px; }

/* 月度统计汇总 */
.ldm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin-bottom: 12px; }
.ldm-stat { background: #23232b; border: 1px solid #30303a; border-radius: 10px; padding: 10px; text-align: center; }
.ldm-num { font-size: 22px; font-weight: 800; color: #fff; line-height: 1.15; }
.ldm-num.up { color: #ff8f6b; }
.ldm-num.down { color: #4ecb8f; }
.ldm-k { font-size: 12px; color: #9aa6b8; margin-top: 4px; }
.ldm-sub { font-size: 11px; color: #7d8798; margin-top: 2px; }
.ldm-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.1fr); gap: 14px; }
.ldm-col { min-width: 0; }
.ldm-col-t { font-size: 12.5px; color: #9aa6b8; margin-bottom: 6px; }

/* 月度统计汇总（左）＋ 反馈率对比（右）：两卡同高、底部齐平、内容纵向撑满。
   2026-10-29 版式调整：原先全局 .ld-grid 是 align-items:start，两卡各自按内容高度撑开 ——
   左卡内容本就多出「风险构成」一整列，底边一高一低（1920px 差 64px，125% 缩放的 1536px 差 200px+）。
   现在只对这一对两栏改成 stretch 取齐（其它成对板块不受影响），再把卡内做成弹性列：
   · 左卡：三小列等高、小条形列与饼图列纵向撑满，底部不留死白；
   · 右卡：2026-11-04 由「属地 TOP」换成「反馈率对比」，#ldFbCmp 同样是弹性列，
     中间 7 日小柱随卡高长高（柱高百分比 + flex 撑高），底部「超时未反馈」贴底。 */
.ld-grid-b { align-items: stretch; }
.ld-grid-b > .ld-card { display: flex; flex-direction: column; }
.ld-grid-b > .ld-card > #ldMonthly {
  flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0;
}
.ld-grid-b > .ld-card > #ldMonthly > .ldm-cols { flex: 1 1 auto; min-height: 0; }
.ldm-cols > .ldm-col { display: flex; flex-direction: column; }
.ldm-cols > .ldm-col > .ld-bars-sm {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; justify-content: space-between;
}
.ldm-cols > .ldm-col > .ld-chart-sm {
  flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center;
}
/* 省预警占比（2026-11-15，替换原「本月平台 TOP」）：百分比 + 具体条数 + 进度条，随筛选范围同步 */
.ldm-cols > .ldm-col > .ld-prov-sm {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.ld-prov-num { font-size: 30px; font-weight: 700; color: #ff8a5c; line-height: 1; }
.ld-prov-num span { font-size: 15px; font-weight: 600; margin-left: 2px; }
.ld-prov-meta { font-size: 12.5px; color: #9aa6b8; }
.ld-prov-meta b { color: #e8eef7; font-weight: 700; }
.ld-prov-track { height: 10px; background: #262b36; border-radius: 999px; overflow: hidden; }
.ld-prov-track > span { display: block; height: 100%; background: linear-gradient(90deg, #ff8a5c, #ff5a5f); border-radius: 999px; transition: width .4s ease; }
/* 2026-11-04：右卡原为「交办属地 / 单位 TOP」（#ldArea，与月度汇总里的「本月属地 TOP」重复），
   现换成「反馈率对比」（#ldFbCmp）：三行窗口进度条 + 近 7 日逐日小柱 + 超时未反馈入口。
   弹性链照旧（吃满卡高），但不再需要「条形随高度长高」那套 #ldArea 规则。 */
.ld-fbcmp { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ld-fbcmp-row { margin-bottom: 9px; }
.ld-fbcmp-row-top { display: flex; align-items: baseline; justify-content: space-between;
  font-size: 12.5px; color: #cfd3dd; margin-bottom: 4px; }
.ld-fbcmp-row-top b { font-size: 14px; color: #f0f0f4; font-weight: 700; }
.ld-fbcmp-sub { font-size: 11.5px; color: #8b93a5; margin-left: 6px; }
.ld-fbcmp-track { height: 8px; background: #33333d; border-radius: 999px; overflow: hidden; }
.ld-fbcmp-fill { height: 100%; border-radius: 999px; transition: width .35s ease; }
.ld-fbcmp-daily { flex: 1 1 auto; min-height: 46px; display: flex; align-items: stretch;
  gap: 6px; margin: 2px 0 0; }
.ld-fbcmp-day { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
/* 柱高用百分比：外层 wrap 由 flex 撑出确定高度，Chrome 对 flex 项的百分比高度可正常解析
   （沿用原 #ldArea 轨道 60% 的做法），因此不用在 JS 里量像素。 */
.ld-fbcmp-barwrap { flex: 1 1 auto; min-height: 0; display: flex; align-items: flex-end; }
.ld-fbcmp-bar { position: relative; width: 100%; max-width: 26px; margin: 0 auto;
  background: #33333d; border-radius: 4px; overflow: hidden; }
.ld-fbcmp-bar i { position: absolute; left: 0; right: 0; bottom: 0; background: #6bd968; border-radius: 4px; }
.ld-fbcmp-daylab { font-size: 11.5px; color: #7c8394; margin-top: 4px; text-align: center; }
.ld-fbcmp-over { margin-top: 10px; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; cursor: pointer;
  background: rgba(255, 159, 67, .10); border: 1px solid rgba(255, 159, 67, .38); color: #ffb26b; }
.ld-fbcmp-over:hover { background: rgba(255, 159, 67, .18); }
.ld-fbcmp-over b { font-size: 14px; }
.ld-fbcmp-over.is-none { cursor: default; color: #7c8394; background: #2b2b34; border-color: #3a3a45; }

/* ===== v263 反馈率统计（按做报人汇总，替代原反馈率对比卡）===== */
.ld-fbsw { background: transparent; border: 1px solid #3a3a45; color: #9aa6b8; margin: 0;
  padding: 3px 11px; border-radius: 999px; font-size: 12px; cursor: pointer; }
.ld-fbsw:hover { color: #eaf1ff; border-color: #5b9dff; }
.ld-fbsw.is-on { color: #cfe0ff; border-color: #5b9dff; background: rgba(91, 157, 255, .14); }
.ld-fbstat { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ld-fbstat-hd, .ld-fbstat-row { display: grid;
  grid-template-columns: 20px minmax(52px, 1fr) minmax(60px, 1.3fr) 48px 66px 30px;
  align-items: center; gap: 7px; }
.ld-fbstat-hd { font-size: 11.5px; color: #7c8394; padding-bottom: 5px; border-bottom: 1px solid #363640; }
.ld-fbstat-hd span:nth-child(n+4) { text-align: right; }
.ld-fbstat-row { padding: 6px 0; border-bottom: 1px solid #31313b; font-size: 12.5px; color: #cfd3dd; }
.ld-fbstat-row:last-of-type { border-bottom: 0; }
.ld-fsr-rk { text-align: center; color: #8b93a5; }
.ld-fsr-nm { font-weight: 700; color: #eef0f6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-fsr-bar { height: 8px; background: #33333d; border-radius: 999px; overflow: hidden; }
.ld-fsr-bar i { display: block; height: 100%; border-radius: 999px; transition: width .35s ease; }
.ld-fsr-rate { text-align: right; font-weight: 700; }
.ld-fsr-rate.g { color: #6bd968; } .ld-fsr-rate.b { color: #5b9dff; } .ld-fsr-rate.o { color: #ff9f43; }
.ld-fsr-sub, .ld-fsr-files { text-align: right; font-size: 11.5px; color: #8b93a5; }
.ld-fbstat-empty { padding: 18px 6px; text-align: center; font-size: 12.5px; color: #8b93a5; }
.ld-fbstat-ft { margin-top: auto; padding-top: 8px; font-size: 11px; line-height: 1.5; color: #7c8394; }
.ld-fbcmp-legacy { flex: 0 0 auto; }
@media (max-width: 640px) {
  .ld-fbstat-hd { display: none; }
  .ld-fbstat-row { grid-template-columns: 18px minmax(48px, 1fr) minmax(50px, 1.2fr) 44px 58px 26px; gap: 5px; }
}

/* 超时未反馈清单弹层 */
.ld-od-box { width: 860px; max-width: 94vw; }
/* 弹层标题不在 .card 里，拿不到 .card h3 的 flex+gap 与胶囊底，这里补一套（橙色＝待办警示） */
.ld-od-box .modal-head h3 { display: flex; align-items: center; gap: 8px; }
.ld-od-box .modal-head h3 .h3-cnt {
  font-size: 12px; font-weight: 600; line-height: 1; padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 159, 67, .16); color: #ffb26b; border: 1px solid rgba(255, 159, 67, .45);
  font-variant-numeric: tabular-nums;
}
.ld-od-tip { display: block; margin: 2px 0 12px; line-height: 1.55; }
.ld-od-list { max-height: 56vh; overflow: auto; border-top: 1px solid #30303a; }
.ld-od-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-bottom: 1px solid #2c2c34; }
.ld-od-item:hover { background: #2a2a33; }
.ld-od-main { flex: 1 1 auto; min-width: 0; }
.ld-od-title { font-size: 13px; color: #e8e8ea; line-height: 1.55; word-break: break-all; }
.ld-od-meta { font-size: 11.5px; color: #8b93a5; margin-top: 3px; }
.ld-od-op { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.ld-od-op .mini { margin-top: 0; }

/* 每日重点舆情列表（按天分组） */
/* 每日重点舆情 + 待审批督办：两栏等高、各自内部滚动（2026-11-04 版式优化）
   .ld-grid 默认 align-items:start，两栏各按内容撑高 → 底部永远参差；
   这一组固定行高并由卡片内部滚动接管，底边齐平，首屏高度也可控。 */
.ld-grid-split { align-items: stretch; grid-template-rows: min(58vh, 520px); }
.ld-card-fill { display: flex; flex-direction: column; min-height: 0; height: 100%; }

.ld-keydaily { display: flex; flex-direction: column; gap: 10px; margin-top: 6px;
  flex: 1 1 auto; min-height: 0; max-height: none; overflow: auto; padding-right: 2px; }
.ldk-day { flex: 0 0 auto; border: 1px solid #2c2c34; border-radius: 10px; overflow: hidden; }
.ldk-day-h { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px;
  background: #23232b; padding: 6px 12px; font-size: 12.5px; border-bottom: 1px solid #2c2c34;
  color: #cdd3df; font-weight: 700; }
.ldk-day-n { margin-left: auto; color: #9aa6b8; font-weight: 400; }
.ldk-item { padding: 8px 12px; border-top: 1px solid #2a2a32; cursor: pointer; font-size: 13px; }
.ldk-day-h + .ldk-item { border-top: none; }
.ldk-item:hover { background: #26262e; }
.ldk-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ldk-bot { display: flex; align-items: center; gap: 8px; margin-top: 5px; padding-left: 2px; }
.ldk-time { flex: 0 0 auto; color: #8f99a8; font-size: 12px; font-variant-numeric: tabular-nums; }
.ldk-qh { flex: 0 0 auto; color: #cfe3ff; font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums; }
.ldk-title { flex: 1 1 auto; min-width: 0; color: #efe8da; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ldk-unit { flex: 0 1 auto; min-width: 0; max-width: 46%; color: #9aa6b8; font-size: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ldk-act { flex: 0 0 auto; margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ldk-st { flex: 0 0 auto; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: #2f2f38; color: #b9b9c2; }
.ldk-st.st-approved { background: rgba(91, 157, 255, .16); color: #a9ccff; }
.ldk-st.st-pending { background: rgba(255, 176, 87, .16); color: #ffcd94; }
.ldk-st.st-rejected { background: rgba(255, 90, 95, .16); color: #ff9a9e; }
.ldk-sup { flex: 0 0 auto; background: #2f6db0; color: #eef6ff; }

.ld-pending { display: flex; flex-direction: column; gap: 10px; margin-top: 10px;
  flex: 1 1 auto; min-height: 0; overflow: auto; padding-right: 2px; }
.ld-pend-item { flex: 0 0 auto; background: #24242c; border: 1px solid #30303a; border-radius: 10px;
  padding: 10px 14px; }
.ld-pend-main { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.ld-pend-qh { flex: 0 0 auto; color: #cfe3ff; font-weight: 700; font-size: 13px;
  font-variant-numeric: tabular-nums; }
.ld-pend-title { color: #efe8da; font-weight: 600; flex: 1 1 auto; min-width: 0; word-break: break-word;
  line-height: 1.5; }
.ld-risk-badge { font-size: 12px; padding: 2px 10px; border-radius: 999px; font-weight: 700; }
.ld-risk-badge.r-低风险, .ld-risk-badge.r-低 { background: rgba(78, 203, 143, .16); color: #7ee2b3; }
.ld-risk-badge.r-中风险, .ld-risk-badge.r-中 { background: rgba(255, 176, 87, .18); color: #ffcd94; }
.ld-risk-badge.r-高风险, .ld-risk-badge.r-高 { background: rgba(255, 90, 95, .20); color: #ff9a9e; }
.ld-sup-badge { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: rgba(91, 157, 255, .18); color: #a9ccff; font-weight: 700; }
.ld-pend-sub { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #9aa6b8;
  margin-top: 8px; }
.ld-pend-meta { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.ld-pend-actions { flex: 0 0 auto; margin-left: auto; display: flex; gap: 8px; }

/* 筛选结果明细列表（舆情指挥中心） */
.ld-result-list { margin-top: 6px; max-height: 480px; overflow: auto; }
.ldr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ldr-table th, .ldr-table td { padding: 8px 10px; border-bottom: 1px solid #2e2e38; text-align: left; color: #d8d8de; vertical-align: middle; }
.ldr-table th { color: #9a9aa4; font-weight: 600; white-space: nowrap; }
.ldr-table tbody .ldr-row { cursor: pointer; transition: background .12s; }
.ldr-table tbody .ldr-row:hover { background: #2f2f3a; }
.ldr-title { max-width: 360px; color: #e8e8ee; }
.ldr-qh, .ldr-time, .ldr-plat, .ldr-area { white-space: nowrap; }
.ldr-st { font-size: 12px; }
.st-draft { color: #b9b9c2; }
.st-pending { color: #ffcd94; }
.st-approved { color: #a9ccff; }
.st-rejected { color: #ff9a9e; }
.ld-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; white-space: nowrap; }
.ld-badge.ok { background: rgba(78, 203, 143, .16); color: #7ee2b3; }
.ld-badge.no { background: rgba(255, 255, 255, .06); color: #b9b9c2; }
.ld-result-list .hint { padding: 14px 4px; }

/* 记录详情弹窗（舆情 / 预警卡 / 反馈 三区） */
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.modal-head h3 { margin: 0; font-size: 17px; color: #f0f0f4; }
.modal-x { background: transparent; border: none; color: #b9b9c2; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.modal-x:hover { color: #fff; }
.lrm-body { font-size: 13px; color: #d8d8de; }
.lrm-sec { margin-bottom: 18px; }
.lrm-sec-t { font-size: 14px; font-weight: 600; color: #7fd1ff; margin-bottom: 8px; border-left: 3px solid #5b9dff; padding-left: 8px; }
.lrm-sec-t2 { font-size: 13px; font-weight: 600; color: #b9b9c2; margin: 12px 0 6px; }
.lrm-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }
.lrm-meta-item { display: flex; gap: 8px; }
.lrm-meta-k { color: #9a9aa4; flex: none; min-width: 64px; }
.lrm-meta-v { color: #e8e8ee; word-break: break-all; }
.lrm-tl { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lrm-tl-item { display: flex; gap: 6px; font-size: 12.5px; }
.lrm-tl-k { color: #9a9aa4; }
.lrm-tl-v { color: #cfcfe0; }
.lrm-pre { max-height: 280px; }
.lrm-ok { color: #7ee2b3; font-weight: 600; margin-bottom: 6px; }
.lrm-no { color: #b9b9c2; }
.lrm-dl-row, .lrm-fb-op { margin-top: 6px; }
.ldr-dl { display: inline-block; margin-right: 10px; padding: 4px 12px; background: #2b5d8a; color: #eaf4ff; border-radius: 6px; text-decoration: none; font-size: 12.5px; }
.ldr-dl:hover { background: #356ea3; }
.lrm-fb-list { display: flex; flex-direction: column; gap: 10px; }
.lrm-fb-item { border: 1px solid #3a3a44; border-radius: 8px; padding: 10px 12px; background: #1e1e25; }
.lrm-fb-name { color: #e8e8ee; font-weight: 600; word-break: break-all; }
.lrm-fb-meta { color: #9a9aa4; font-size: 12.5px; margin-top: 4px; }
.lrm-muted { color: #7a7a84; }
/* 内联预览（记录详情弹窗：预警卡 / 反馈原件，页面内直接看，无需下载） */
.lrm-pv { margin-top: 10px; border: 1px solid #33333d; border-radius: 8px; background: #14141a; padding: 8px; }
.lrm-pv-loading, .lrm-nopv { color: #9a9aa4; font-size: 12.5px; padding: 14px 6px; text-align: center; }
.lrm-pv-img { display: block; width: 100%; height: auto; margin: 0 auto 8px; border: 1px solid #2c2c34; border-radius: 4px; background: #fff; }
.lrm-pv-img:last-child { margin-bottom: 0; }
.lrm-pv-frame { display: block; width: 100%; height: 460px; border: 0; border-radius: 4px; background: #fff; }
.lrm-pv-more { color: #ffb86b; font-size: 12.5px; padding: 6px 2px 2px; text-align: center; }
.lrm-docx { background: #fff; color: #1c1c22; border-radius: 4px; padding: 14px 16px; line-height: 1.7; font-size: 13.5px; max-height: 480px; overflow: auto; }
.lrm-docx p { margin: 0 0 8px; }
.lrm-docx h3 { margin: 12px 0 8px; font-size: 15px; }
.dcx-tb { border-collapse: collapse; width: 100%; margin: 8px 0; }
.dcx-tb td { border: 1px solid #c9c9cf; padding: 5px 8px; font-size: 12.5px; }
@media (max-width: 600px) { .lrm-meta { grid-template-columns: 1fr; } .lrm-pv-frame { height: 320px; } }

.ld-cmd-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.ld-sel { background: #1e1e24; border: 1px solid #3a3a44; color: #efe8da; border-radius: 6px; padding: 8px 10px; font-size: 13px; min-width: 150px; }
.ld-sel::placeholder { color: #7d7d88; }
.ld-cmd-input { width: 100%; box-sizing: border-box; background: #1e1e24; border: 1px solid #3a3a44; color: #efe8da;
  border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.6; resize: vertical; font-family: inherit; min-height: 64px; }
.ld-cmd-input::placeholder { color: #7d7d88; }
.ld-send { background: #2f6db0; color: #eef6ff; }
.ld-send:hover { background: #3a82cf; }
.ld-cmd-history { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.ld-cmd-item { background: #24242c; border: 1px solid #30303a; border-radius: 8px; padding: 10px 12px; }
.ld-cmd-item.is-recalled { opacity: .55; }
.ld-cmd-body { color: #efe8da; font-size: 13.5px; line-height: 1.55; word-break: break-word; }
.ld-cmd-meta { font-size: 12px; color: #9aa6b8; margin-top: 4px; }
.ld-cmd-op { margin-top: 6px; }
.ld-recalled { color: #ff9a9e; font-size: 12px; }
.ld-recall { background: #44444e; color: #cfcfd6; }

.ld-notif-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; max-height: 360px; overflow: auto; }
.ld-notif { display: flex; gap: 10px; align-items: flex-start; background: #24242c; border: 1px solid #30303a; border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.ld-notif.is-unread { border-left: 3px solid #ffb057; }
.ld-notif-ico { font-size: 16px; }
.ld-notif-body { flex: 1 1 auto; min-width: 0; }
.ld-notif-title { color: #fff; font-weight: 700; font-size: 13.5px; }
.ld-notif-text { color: #cdd3df; font-size: 12.5px; line-height: 1.5; margin-top: 3px; word-break: break-word; }
.ld-notif-meta { color: #9aa6b8; font-size: 12px; margin-top: 4px; }
.ld-notif-read { background: #44444e; color: #cfcfd6; flex: 0 0 auto; }

.notif-btn { position: relative; background: transparent; border: 1px solid #3a3a44; color: #d4d4da; border-radius: 8px; padding: 7px 12px; font-size: 13px; cursor: pointer; }
.notif-btn:hover { background: #2a2a32; }
.notif-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; line-height: 18px; text-align: center;
  background: #ff5a5f; color: #fff; border-radius: 999px; font-size: 11px; padding: 0 5px; box-sizing: border-box; }
.notif-btn.has-unread { border-color: #ff5a5f; }

.notif-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 60; }
.notif-panel { position: fixed; top: 56px; right: 14px; width: 340px; max-width: 92vw; max-height: 70vh;
  background: #26262e; border: 1px solid #3a3a44; border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); z-index: 61;
  display: flex; flex-direction: column; overflow: hidden; }
.notif-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid #3a3a44; color: #fff; font-weight: 700; }
.notif-panel-tools { display: flex; gap: 6px; }
.notif-panel-list { padding: 10px 12px; overflow: auto; }
.ntf-item { display: flex; gap: 10px; align-items: flex-start; background: #24242c; border: 1px solid #30303a; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.ntf-item.is-unread { border-left: 3px solid #ffb057; }
.ntf-ico { font-size: 16px; }
.ntf-body { flex: 1 1 auto; min-width: 0; }
.ntf-title { color: #fff; font-weight: 700; font-size: 13.5px; }
.ntf-text { color: #cdd3df; font-size: 12.5px; line-height: 1.5; margin-top: 3px; word-break: break-word; }
.ntf-meta { color: #9aa6b8; font-size: 12px; margin-top: 4px; }
.ntf-read { background: #44444e; color: #cfcfd6; flex: 0 0 auto; }

.ringtone-row { border-top: 1px dashed #3a3a44; margin-top: 14px; padding-top: 12px; }
.rt-label { font-size: 13px; color: #cdd3df; margin-bottom: 8px; }
.sound-list { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; }
.sound-item { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 5px 10px; border-radius: 6px; background: #1e1e24; border: 1px solid #30303a; }
.sound-item .si-ev { color: #cdd3df; font-weight: 700; width: 72px; flex: none; }
.sound-item .si-file { color: #8f9aad; flex: 1 1 auto; font-family: ui-monospace, Menlo, Consolas, monospace; }
.sound-item .si-st { flex: none; padding: 1px 8px; border-radius: 999px; font-size: 11px; }
.sound-item.ok .si-st { background: #234a36; color: #b7f3cf; }
.sound-item.miss .si-st { background: #4a3a23; color: #f3d9a7; }
/* 提醒铃音候选（点选即试听）：网格卡片，选中项高亮 */
.rt-label-sub { margin-top: 14px; }
.ring-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; margin: 6px 0 4px; }
.ring-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left;
  padding: 9px 12px; border-radius: 8px; background: #1e1e24; border: 1px solid #30303a;
  color: #cdd3df; font-size: 12.5px; cursor: pointer; }
.ring-opt:hover { border-color: #4a4a58; background: #24242c; }
.ring-opt.on { border-color: #3d8bfd; background: #1b2a44; color: #fff; box-shadow: inset 0 0 0 1px #3d8bfd; }
.ring-opt .ro-name { font-weight: 700; }
.ring-opt .ro-play { flex: none; font-size: 11px; color: #8f9aad; }
.ring-opt.on .ro-play { color: #bcd6ff; }
/* 其它提示音下拉：必须显式 width:auto —— 全局 input,select{width:100%} 会让它独占整行 */
.sound-item .si-sel { width: auto; flex: 1 1 auto; min-width: 0; max-width: 190px; padding: 4px 8px;
  border-radius: 6px; background: #16161b; color: #cdd3df; border: 1px solid #30303a; font-size: 12.5px; }
.sound-item .si-play { flex: none; width: auto; padding: 2px 9px; border-radius: 6px; background: #2a2a34;
  border: 1px solid #3a3a46; color: #cdd3df; font-size: 11px; cursor: pointer; }
.sound-item .si-play:hover { background: #34343f; }
.rt-ctl { font-size: 12.5px; color: #cdd3df; display: flex; align-items: center; gap: 6px; }
.rt-ctl input[type=range] { width: 110px; }
.rt-val { color: #fff; font-weight: 700; min-width: 34px; }

@media (max-width: 1024px) {
  .ld-grid-a, .ld-grid-b { grid-template-columns: 1fr; }
  .ld-grid-top { grid-template-columns: 1fr; }
  .ld-pies-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .ld-grid-a, .ld-grid-b { grid-template-columns: 1fr; }
  .ld-grid-top { grid-template-columns: 1fr; }
  .ld-pies-4 { grid-template-columns: 1fr; }
  .ldm-cols { grid-template-columns: 1fr; }
  .ld-metrics { grid-template-columns: repeat(2, 1fr); }
  /* 窄屏：两栏堆叠后不再固定行高，各列表限高 65vh 内部滚动（2026-11-04） */
  .ld-grid-split { grid-template-rows: none; }
  .ld-card-fill { height: auto; }
  .ld-keydaily, .ld-pending { max-height: 65vh; }
  .ld-pend-actions { flex-wrap: wrap; }
  .ldk-bot { flex-wrap: wrap; }
  .ldk-unit { max-width: 100%; }
  .notif-panel { right: 8px; left: 8px; width: auto; }
  /* 平台名与筛选条在窄屏收敛：标题缩小、筛选项折行铺满 */
  .ld-h2 { font-size: 40px; letter-spacing: 7px; text-indent: 7px; padding-bottom: 12px; }
  .ld-filters { gap: 8px 12px; padding: 10px; }
  .ld-f-grp-date { flex: 1 1 100%; flex-wrap: wrap; }
  .ld-f-date { width: 132px; }
  .ld-f-sel { flex: 1 1 130px; max-width: none; }
  .ld-f-msg { margin-left: 0; flex: 1 1 auto; }
  .ld-f-acc { margin-left: 0; flex: 1 1 100%; justify-content: flex-end; }
}


/* ---------- 分页器（归档记录列表 / 归档PDF档案清单，每页 50 条） ---------- */
.pager {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 4px 4px;
  font-size: 13px;
  color: var(--muted, #8a93a6);
}
.pager:empty { display: none; }
.pager .pg-btn {
  min-width: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line, #d5d9e2);
  border-radius: 8px;
  background: var(--card, #fff);
  color: var(--fg, #222);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
}
.pager .pg-btn:hover:not(:disabled) { border-color: var(--accent, #3b82f6); color: var(--accent, #3b82f6); }
.pager .pg-btn:disabled { opacity: .45; cursor: not-allowed; }
.pager .pg-btn.active { background: var(--accent, #3b82f6); border-color: var(--accent, #3b82f6); color: #fff; }
.pager .pg-info { margin-left: 4px; }
.pager .pg-jump { width: 56px; padding: 4px 6px; border: 1px solid var(--line, #d5d9e2); border-radius: 8px; background: var(--card, #fff); color: var(--fg, #222); }

/* ===== 手工编报（不研判）面板 2026-10-29 =====
   整篇编报一次性粘贴 → 自动拆字段 → 照常保存/提交/出卡。
   复用 .link-fetch 的折叠外观，这里只补 textarea 与按钮行。 */
.manual-box { margin: 8px 0 10px; }
.manual-box textarea {
  width: 100%;
  margin: 8px 0 6px;
  box-sizing: border-box;
  font-size: 13px;
  line-height: 1.75;
  min-height: 180px;
  resize: vertical;
}
.manual-box .row { margin: 2px 0 4px; flex-wrap: wrap; }
.manual-box .msg { margin-top: 4px; }

/* ===== 指挥平台·舆情详情弹窗：顶部信息区吸顶（2026-10-29 用户要求）=====
   问题：.modal-wide 是整框滚动，滚到预警卡/反馈时标题栏和「×」一起滚出屏幕，关不掉也看不到主要信息。
   改法：整框改 flex 列布局、不滚动；标题栏固定；内部 #lrmBody 单独滚动；
        「舆情信息 + 正文」小标题一块 position:sticky 吸顶，往下滑只走正文与预警卡/反馈。 */
#leaderRecordModal .modal-box {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;            /* 覆盖 .modal-wide 的整框 overflow-y:auto */
}
#leaderRecordModal .modal-head { flex: 0 0 auto; }
#leaderRecordModal .lrm-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#leaderRecordModal .lrm-sticky {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #26262e;         /* 与 .modal-box 同色：内容从底下滑过时不透字 */
  padding: 2px 0 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid #3a3a44;   /* 明确的固定边界：内容滑到此处被裁断，不像渲染错位 */
  box-shadow: 0 8px 12px -4px rgba(0, 0, 0, .92);   /* 边界处压暗，半截行不会显得像渲染错位 */
}
#leaderRecordModal .lrm-sec-body { margin-bottom: 18px; }
#leaderRecordModal .lrm-pre { max-height: none; }   /* 外面已能滚，避免嵌套滚动条 */

/* ===== 手工编报开关（日报页工具栏 · 2026-10-29）=====
   位置：日报页右上角「＋ 新建下一期」左侧。一次性临时开关——默认关闭、每次手动开启，
   提交审批或「新建下一期」后自动关闭。关闭态深灰轨道，开启态整颗按钮转绿、滑块右移。
   ⚠ 必须压过全局 `button.mini`（它也带 background，同权重且先定义会赢）：
     这里统一用 `.toolbar button.manual-toggle`（类×2 + 元素），并在 `.on` 后再补一层。 */
.toolbar button.manual-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #2a2a33;
  color: #cfcfd6;
  border: 1px solid #3a3a44;
}
.toolbar button.manual-toggle:hover { background: #34343f; border-color: #4a4a58; color: #fff; }
.toolbar button.manual-toggle .mt-track {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 16px;
  border-radius: 999px;
  background: #565663;
  transition: background .18s;
  flex: 0 0 auto;
}
.toolbar button.manual-toggle .mt-dot {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.toolbar button.manual-toggle .mt-label { white-space: nowrap; }
/* 开启态：整颗按钮转绿（含 hover），滑块右移、轨道变浅 */
.toolbar button.manual-toggle.on,
.toolbar button.manual-toggle.on:hover {
  background: #2f9e63;
  border-color: #2f9e63;
  color: #eafff2;
  font-weight: 600;
}
.toolbar button.manual-toggle.on .mt-track { background: rgba(255, 255, 255, .42); }
.toolbar button.manual-toggle.on .mt-dot { transform: translateX(14px); }

/* ===== 档案查询：一次性搜索的「当前筛选」状态条（2026-10-29）=====
   搜索执行后输入框自动清空，靠这条把「现在按什么在筛」讲清楚，并给一个一键清除。
   默认 display:none（无搜索词时不留空行）。 */
.arc-query-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 2px 0 10px;
  padding: 7px 12px;
  max-width: 520px;
  background: #26262e;
  border: 1px solid #3a3a44;
  border-left: 3px solid #2d6cdf;
  border-radius: 8px;
  font-size: 13px;
  color: #cfcfd6;
}
.arc-query-bar b { color: #ffd0d2; font-weight: 600; word-break: break-all; }
.arc-query-bar .arc-q-clear {
  margin-left: auto;
  background: #3a3a44;
  color: #e8e8ea;
  border: 1px solid #4a4a58;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
}
.arc-query-bar .arc-q-clear:hover { background: #4a4a58; color: #fff; }
@media (max-width: 900px) {
  .arc-query-bar { max-width: 100%; }
}

/* ==========================================================================
   A 版移动端布局改良（2026-11-15，v199）
   原则：只重排版式，不动路由 / 接口 / 业务逻辑；四个低频按钮仍是原来那四个 DOM，
   只是手机端把 .topbar-right 变成头像下拉面板，所有 onclick 绑定与实时角标照常生效。
   本块统一追加在文件末尾：同优先级下后写覆盖先写，且不影响 check_nav_horizontal.js
   对「第一处 @media (max-width:768px)」的历史源码断言。
   ========================================================================== */

/* 桌面端：A 版新增的三个控件一律不出现 */
#btnUserMenu, #btnNavAll, #navAllPanel, #mActionBar { display: none; }

@media (max-width: 768px) {
  /* 1) 外壳回到 100dvh：顶栏 + 导航吸顶，只有 .tab 内部滚动；
       给底部固定操作条留出内边距，避免最后一条内容被浏览器工具栏 / 操作条盖住。 */
  .app { height: 100dvh; min-height: 100dvh; }
  main { padding: 0; overflow: hidden; }
  .tab { padding: 14px 12px calc(96px + env(safe-area-inset-bottom, 0px)); }
  body.leader-mode main { overflow: hidden !important; }

  /* 2) 顶栏压成一行（品牌 + 当前页 + 头像），不再允许换行堆叠 */
  #topbar {
    position: relative;
    flex-wrap: nowrap;
    gap: 8px;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 8px;
  }
  body.leader-mode #topbar { gap: 8px; }
  .topbar-left { min-width: 0; flex: 1 1 auto; gap: 8px; }
  body.leader-mode #topbar .topbar-left { display: flex !important; }
  .brand { gap: 6px; }
  .brand-logo { width: 18px; height: 18px; }
  .brand-name { font-size: 15px; letter-spacing: 0; }
  .page-title { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* 领导端 5 个快捷按钮在手机上不占顶栏；其目标页全部进入「≡ 全部功能」面板 */
  #topbar .ld-quick-global,
  body.leader-mode #topbar .ld-quick-global { display: none !important; }
  body.leader-mode[data-tab="leader"] .ld-h2 {
    font-size: 20px; letter-spacing: 2px; text-indent: 2px; line-height: 1.3;
    margin: 6px 0 10px; padding-bottom: 8px;
  }

  /* 3) 低频按钮收进头像下拉：面板就是 .topbar-right 本身，按钮不复制、不改名 */
  .topbar-right {
    position: absolute;
    top: calc(100% + 4px);
    right: 10px;
    min-width: 196px;
    max-width: calc(100vw - 20px);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    background: #26262e;
    border: 1px solid #3a3a44;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
    z-index: 120;
    display: none;
  }
  .topbar-right.open { display: flex; }
  .topbar-right .ub-info {
    flex-wrap: wrap; gap: 6px; font-size: 12px;
    padding-bottom: 8px; margin-bottom: 2px; border-bottom: 1px solid #3a3a44;
  }
  .topbar-right button {
    width: 100%; min-height: 44px; padding: 8px 12px;
    text-align: left; border-radius: 8px; font-size: 14px;
  }
  .user-menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
    background: #3a5fb0; color: #fff; border: none;
    font-size: 15px; font-weight: 600; cursor: pointer;
  }

  /* 4) 导航吸顶 + 「≡ 全部功能」：面板按当前可见的 .nav-btn 动态生成 */
  .side { position: relative; padding: 4px 8px; gap: 4px; }
  body.leader-mode .side { display: flex !important; }
  .side nav { gap: 4px; }
  .nav-btn { padding: 8px 10px; font-size: 13px; min-height: 40px; }
  .nav-all-btn {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto; width: 36px; height: 36px; border-radius: 8px;
    background: #2a2a32; color: #cfcfd6; border: none;
    font-size: 18px; cursor: pointer;
  }
  .nav-all-panel {
    position: absolute; top: calc(100% + 4px); left: 6px; right: 6px;
    z-index: 130; display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px;
    background: #26262e; border: 1px solid #3a3a44; border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  }
  .nav-all-panel.open { display: grid; }
  .nav-all-item {
    min-height: 44px; padding: 8px 6px; border: none; border-radius: 8px;
    background: #20202a; color: #e8e8ea; font-size: 13px; cursor: pointer;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .nav-all-item.is-active { background: #ff5a5f; color: #fff; }

  /* 5) 底部固定主操作条：纯代理点击已有按钮，不新增业务动作 */
  .m-action-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0;
    gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    /* 55：低于通知遮罩(60)/审批弹层(500)/预览(300)/登录(900)，避免挡住浮层 */
    background: #20202a; border-top: 1px solid #33333c; z-index: 55;
  }
  .m-action-bar.hidden { display: none; }
  .m-act-btn {
    min-height: 44px; border: none; border-radius: 8px;
    font-size: 14px; cursor: pointer;
  }
  .m-act-sec { flex: 0 0 auto; padding: 0 14px; background: #2a2a32; color: #d8d8de; }
  .m-act-main { flex: 1 1 auto; padding: 0 12px; background: #2f5fb0; color: #fff; font-weight: 600; }
  .m-act-main.gold { background: #b8861b; }
  .m-act-btn:disabled { opacity: .5; cursor: not-allowed; }

  /* 6) 内容密度：页头、卡片、表格行都收紧，一屏能多看 2–3 条 */
  h2 { font-size: 18px; margin-bottom: 10px; }
  .hint { font-size: 12.5px; line-height: 1.5; }
  .work-head { gap: 8px; margin-bottom: 10px; }
  .toolbar, .filter-row, .monthly-filters { gap: 6px; }
  .card { padding: 12px; }
  .table-wrap > table tr,
  .monthly-table-wrap > table tr,
  #userTable tr { padding: 8px 10px 9px; margin-bottom: 8px; }
  .table-wrap > table td,
  .monthly-table-wrap > table td,
  #userTable td { padding: 2px 0; gap: 6px; font-size: 13px; line-height: 1.42; }
  .table-wrap > table td::before,
  .monthly-table-wrap > table td::before,
  #userTable td::before { flex: 0 0 50px; font-size: 11.5px; padding-top: 2px; }
  .ops a { min-height: 36px; }
  #recTable td a, #approveTable td a, #ledgerTable td a,
  #userTable td a, #monthlyTable td a { min-height: 36px; padding: 7px 10px; }
}

@media (max-width: 420px) {
  .nav-btn { padding: 7px 9px; font-size: 12.5px; }
  .tab { padding-left: 10px; padding-right: 10px; }
  .nav-all-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-name { font-size: 13px; }
  .page-title { font-size: 15px; }
}

/* ==========================================================================
   A 版 · 密度优化：竖排字段改横排（2026-11-15，v200）
   实机截图反馈：档案一条占近 1/3 屏、待审批一屏只看 1.5 条，顶部工具区也在吃高度。
   依旧是纯 CSS：手机端表格本来就是「tr 成卡片 + td::before 出标签」，这里只改排布，
   不改 JS 渲染、不改 DOM 结构、不改接口与权限；桌面端（>768px）完全不受影响。
   追加在文件末尾：同优先级后写覆盖，且不影响历史测试对「第一处 768px 块」的定位。
   ========================================================================== */
@media (max-width: 768px) {
  /* ---- 1) 档案顶部工具区：输入框/按钮、索引状态/按钮、四个视图按钮全部横排 ---- */
  .row.search { flex-wrap: nowrap; gap: 6px; margin-bottom: 8px; }
  .row.search input { flex: 1 1 auto; min-width: 0; }   /* 保持 16px 字号，防 iOS 聚焦缩放 */
  .row.search #btnSearch { flex: 0 0 auto; min-height: 40px; padding: 0 14px; font-size: 13px; }

  .arc-index-bar { flex-wrap: nowrap; gap: 6px; margin: 2px 0 6px; }
  .arc-index-bar #arcIndexStatus {
    flex: 1 1 auto; min-width: 0; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; font-size: 11.5px;
  }
  .arc-index-bar #btnArcReindex { flex: 0 0 auto; min-height: 36px; padding: 0 10px; font-size: 12px; }

  .arc-health { padding: 7px 9px; margin: 4px 0 8px; font-size: 11.5px; line-height: 1.45; }

  /* 四个视图一行排开，不再折成 3+1 两行 */
  .arc-views {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px; margin: 4px 0 6px;
  }
  .arc-views .filter-btn {
    min-width: 0; min-height: 38px; padding: 5px 2px;
    font-size: 11.5px; white-space: nowrap; text-align: center;
  }
  .arc-views .filter-btn i { font-size: 10.5px; font-style: normal; margin-left: 2px; }
  .arc-cap {
    font-size: 11.5px; line-height: 1.4; margin: 0 0 6px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  }
  .arc-field-filters { gap: 5px; margin-bottom: 6px; }
  .arc-field-filters .ff-btn { padding: 5px 8px; min-height: 36px; font-size: 11.5px; }

  /* 批量导入：按钮与说明同排，长说明压成两行（点开面板里仍有完整说明） */
  .arc-import { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 10px; margin: 4px 0 8px; }
  .arc-import > #btnImportOpen { flex: 0 0 auto; min-height: 36px; padding: 5px 9px; font-size: 12px; }
  .arc-import > .hint-inline {
    flex: 1 1 auto; min-width: 0; margin-left: 0; font-size: 11.5px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .arc-import > .import-panel { flex: 0 0 100%; }

  /* ---- 2) 卡片字段横排 ---- */
  /* 标签不再占固定 50px 左列，改成小灰字紧跟值，为两列并排腾出宽度 */
  .table-wrap > table td::before,
  .monthly-table-wrap > table td::before,
  #userTable td::before { flex: 0 0 auto; font-size: 11px; padding-top: 1px; }

  /* 档案查询：标题整行 → 期号|风险 → 状态|办文人 → 创建时间 → 操作。
     用 flex + order 而不是 grid 显式定位：草稿箱/已作废视图会隐藏期号 td，
     flex 自动流动不会留下半行空格。 */
  #recTable tr { display: flex; flex-wrap: wrap; column-gap: 10px; row-gap: 0; align-items: flex-start; }
  #recTable td { min-width: 0; }
  #recTable td[colspan] { flex: 0 0 100%; }
  #recTable td:nth-child(2) { order: 1; flex: 0 0 100%; }
  #recTable td:nth-child(1) { order: 2; flex: 1 1 calc(50% - 5px); }
  #recTable td:nth-child(3) { order: 3; flex: 1 1 calc(50% - 5px); }
  #recTable td:nth-child(4) { order: 4; flex: 1 1 calc(50% - 5px); }
  #recTable td:nth-child(5) { order: 5; flex: 1 1 calc(50% - 5px); }
  #recTable td:nth-child(6) { order: 6; flex: 0 0 100%; }
  #recTable td:nth-child(7) { order: 7; flex: 0 0 100%; }

  /* 操作按钮：main/man 两排 DOM 用 display:contents 合流成一行，放不下才自动折行。
     桌面端两排分组不变，这里只改手机端视觉。 */
  #recTable td.ops-td { padding: 5px 0 1px; }
  #recTable td.ops-td::before { display: none; }
  #recTable .ops { flex-direction: row; flex-wrap: wrap; width: 100%; gap: 6px; }
  #recTable .ops .ops-row { display: contents; }
  #recTable .ops a { margin: 0; padding: 5px 10px; min-height: 34px; font-size: 12.5px; white-space: nowrap; }
  #recTable .ops .ops-row.man a { font-size: 12px; padding: 5px 9px; }

  /* 待审批：期号|办文人 → 标题 → 提交时间|审批，5 行压成 3 行 */
  #approveTable tr { display: flex; flex-wrap: wrap; column-gap: 10px; row-gap: 0; align-items: flex-start; }
  #approveTable td { min-width: 0; }
  #approveTable td:nth-child(1) { order: 1; flex: 1 1 calc(50% - 5px); }
  #approveTable td:nth-child(3) { order: 2; flex: 1 1 calc(50% - 5px); }
  #approveTable td:nth-child(2) { order: 3; flex: 0 0 100%; }
  #approveTable td:nth-child(4) { order: 4; flex: 1 1 calc(50% - 5px); }
  #approveTable td:nth-child(4)::before { content: "提交"; }
  #approveTable td:nth-child(4) .flow-last,
  #approveTable td:nth-child(4) .stale-tip { flex: 0 0 100%; }
  #approveTable td:nth-child(5) { order: 5; flex: 0 0 calc(50% - 5px); justify-content: flex-end; }
  #approveTable td:nth-child(5)::before { display: none; }
  #approveTable td:nth-child(5) a { margin: 0; padding: 5px 12px; min-height: 34px; }

  /* 徽标跟着标题走，别再单独撑一行 */
  .prov-badge, .tag-re, .hit-badge, .dup-badge { font-size: 10.5px; }

  /* ---- 3) 底部操作条：贴住 100dvh 容器底部（视觉视口），不被浏览器工具栏盖住 ----
     fixed bottom:0 在手机浏览器里相对 layout viewport，会被底部工具栏压住；
     #mActionBar 已移入 .app 内，改用 absolute 相对 100dvh 容器定位。 */
  .app { position: relative; }
  .m-action-bar { position: absolute; bottom: 0; }
}

@media (max-width: 420px) {
  /* 超小屏：四个视图按钮计数换行显示，一行仍放得下 */
  .arc-views { gap: 4px; }
  .arc-views .filter-btn { font-size: 11px; padding: 5px 1px; }
  .arc-views .filter-btn i { display: block; font-size: 10px; line-height: 1.1; margin-left: 0; }
  #recTable .ops a, #approveTable td:nth-child(5) a { padding: 5px 8px; font-size: 12px; }
}

/* ==========================================================================
   A 版 · 解封与二次密度优化（2026-11-15，v201）
   实机截图里头像菜单 / ≡ 全部功能 / 底部主操作条一个都没出现 —— 定位为 CSS 优先级 bug：
   桌面端写的是 #btnUserMenu,#btnNavAll,#navAllPanel,#mActionBar{display:none}（ID，1,0,0），
   而 A 版 media 里的 .user-menu-btn/.nav-all-btn/.m-action-bar 都是 class（0,1,0），
   压不过 ID，所以手机端也一直被隐藏。这里在 media 内用同级别 ID（含状态类）显式解封。
   同时把剩下几处仍吃高度的大块文字再压一轮；依旧纯 CSS，不动 JS / 接口 / 权限。
   ========================================================================== */
@media (max-width: 768px) {
  /* 1) 解封 A 版三个手机端控件（同特异性 + 后写覆盖全局 ID 隐藏） */
  #btnUserMenu { display: inline-flex; }
  #btnNavAll { display: inline-flex; }
  #navAllPanel { display: none; }
  #navAllPanel.open { display: grid; }
  #mActionBar { display: flex; }
  #mActionBar.hidden { display: none; }

  /* 2) 期号连续性：三行文字改一行横向可滑，信息一条不丢 */
  .arc-health {
    white-space: nowrap; overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 6px 9px; margin: 4px 0 6px;
    font-size: 11.5px; line-height: 1.5;
  }
  .arc-health b { display: inline; }

  /* 3) 批量导入：手机端只留按钮；按钮文字已说明用途，完整说明在展开面板里 */
  .arc-import { padding: 6px 10px; margin: 4px 0 6px; }
  .arc-import > .hint-inline { display: none; }

  /* 4) 卡片密度再收一点：间距 8→6、上下内边距各减 2 */
  .table-wrap > table tr,
  .monthly-table-wrap > table tr,
  #userTable tr { padding: 6px 10px 7px; margin-bottom: 6px; }
  #recTable td, #approveTable td { padding: 1px 0; }
}

/* ==========================================================================
   省预警卡片「整卡填充」（2026-11-16，v202）
   用户实拍：手机端省预警卡片左右两截深棕、中间一道裂缝，不是一整块。
   病根：底色画在每个 td 上；v200 起 tr 改 flex 卡片、td 是带 column-gap 的小块，
   缝隙露出的是卡片底色 #20202a。修法不是补色，而是把底色上移到 tr（见文件开头全局规则），
   这里再补一圈闭合描边强化「一整张卡」的边界，并显式清空 td 底色防残留。
   选择器一律带 ID / 更高特异性，压过手机端 .table-wrap > table tr{background:#20202a}——
   沿用 v201 的教训：媒体查询不增加特异性，只写 class 会被前面的规则盖掉。
   超时回滚行 stale 的 #3a2024 带 !important 仍优先（更紧急），橙线由 box-shadow 保留。
   ========================================================================== */
@media (max-width: 768px) {
  #recTable tr.arc-prov, #approveTable tr.arc-prov,
  .table-wrap > table tr.arc-prov, .monthly-table-wrap > table tr.arc-prov,
  #userTable tr.arc-prov {
    /* 手机端略提亮 + 边框换橙棕色，让「整张卡是一块」更明确；
       桌面端保持 .18，避免整屏表格过艳。 */
    background: rgba(184, 82, 31, .22);
    border-color: rgba(184, 82, 31, .55);
    box-shadow: inset 3px 0 0 #b8521f, inset 0 0 0 1px rgba(184, 82, 31, .38);
  }
  #recTable tr.arc-prov > td, #approveTable tr.arc-prov > td,
  .table-wrap > table tr.arc-prov > td,
  .monthly-table-wrap > table tr.arc-prov > td,
  #userTable tr.arc-prov > td { background: transparent; }

  /* 审批 / 修改：由「一行小红字」改成实心大胶囊，拇指好点、一眼可见。
     同一元素按办文人是否本人显示「审批」或「修改」，一条规则同时覆盖。
     写在文件末尾且用 ID 级选择器，压过 420px 块里的 12px 小字规则。 */
  #approveTable td:nth-child(5) a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 100%;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    margin: 3px 0 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background: #c0392b;
    border: 1px solid #e05a45;
    border-radius: 10px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .25);
    text-decoration: none;
    white-space: nowrap;
  }
  #approveTable td:nth-child(5) a:active {
    background: #a53024;
    box-shadow: none;
  }
}

/* ==========================================================================
   审批弹层「日报正文优先」（2026-11-16，v203）
   用户实拍：点开审批先看到流程历史 + 5 行操作说明 + 标题/期号/风险等表单，
   日报正文原排第 7 位、要滚一屏才看到。index.html 已重排 DOM，这里只补版式：
   操作按钮吸顶常驻（滚到正文任何位置都能直接通过/驳回）、正文放大、低频区压低存在感。
   选择器带 #approveDetail（ID 级），压过 .modal-box .btns{margin-top:16px} 等旧规则——
   媒体查询不加特异性，沿用 v201 的教训。桌面端同样受益，不影响任何字段/按钮 id。
   ========================================================================== */
#approveDetail .modal-box .ad-ops-bar {
  position: sticky; top: 0; z-index: 3;
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 10px 0 12px; padding: 8px 0 10px;
  background: #26262e;
  border-bottom: 1px solid #3a3a44;
}
.ad-daily-field { margin-top: 4px; }
.ad-daily-field .ad-field-name { font-size: 14px; font-weight: 700; color: #e8e8ea; }
#adDaily { min-height: 190px; font-size: 14px; line-height: 1.7; }
.ad-low { margin-top: 14px; padding-top: 10px; border-top: 1px solid #33333c; }
.ad-low-title { font-size: 12px; color: #8f8f9a; letter-spacing: .5px; margin-bottom: 2px; }
.ad-low .hint { font-size: 12px; line-height: 1.6; }

@media (max-width: 768px) {
  #approveDetail .modal-box.modal-wide {
    width: 96vw; max-height: calc(100dvh - 16px);
    padding: 14px 12px calc(20px + env(safe-area-inset-bottom, 0px));
  }
  #approveDetail h3 { font-size: 15px; line-height: 1.45; margin: 0 0 6px; }
  #approveDetail .modal-meta { font-size: 11.5px; line-height: 1.5; margin: 6px 0; }
  #approveDetail .modal-box .ad-ops-bar { gap: 6px; margin: 8px 0 10px; padding: 8px 0 9px; }
  #approveDetail .modal-box .ad-ops-bar button {
    flex: 1 1 auto; min-width: 0; min-height: 44px;
    padding: 8px 4px; font-size: 13px; font-weight: 600;
  }
  #approveDetail .modal-box .ad-ops-bar #btnApprove { flex: 1.25 1 auto; }
  #adDaily { min-height: 220px; font-size: 15px; line-height: 1.7; }
  #approveDetail .ad-low .hint { font-size: 11.5px; }
}

/* ===== v205 领导手机端 5 模块导航（2026-11-16 用户定）=====
   需求：领导手机界面只保留「指挥总览 / 待审批督办 / 热搜榜 / 盯办处置 / 档案查询」5 个模块，
        按此顺序铺满，不再显示完整侧栏（日报/预警卡/台账/设置等对领导无意义的入口）。
   做法：复用 #ldQuick 现成的 5 个按钮（DOM 顺序已符合要求，零 JS/HTML 改动），
        让顶栏在领导模式下换行，快捷条 order 排到末行占满整行；侧栏在领导模式手机端隐藏。
   特异性：桌面 body.leader-mode #topbar .ld-quick-global{display:flex} 与手机
        #topbar .ld-quick-global{display:none!important} 均需在媒体内用更高/同级 ID 选择器覆盖。 */
@media (max-width: 768px) {
  /* 领导端顶栏换行，给第二行的 5 模块条让位 */
  body.leader-mode #topbar { flex-wrap: wrap; row-gap: 8px; }
  /* 隐藏领导手机端的完整侧栏导航（≡ 面板也随之不用，5 模块即全部入口） */
  body.leader-mode .side { display: none !important; }
  /* 恢复 5 模块快捷条：占满整行、末行显示、压过隐藏规则 */
  body.leader-mode #topbar .ld-quick-global {
    display: flex !important;
    order: 9;
    flex: 1 1 100%;
    width: 100%;
    gap: 6px;
    flex-wrap: wrap;
    padding: 2px 0 0;
  }
  /* 5 个按钮均分铺满：每行 2~3 个、44px 热区、字号加大好点 */
  body.leader-mode #topbar .ld-quick-global .ld-q {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 0;
    min-height: 44px;
    padding: 8px 4px;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
  }
}

/* ===== v206 手机端查询预览：一个窗口连续滚动（2026-11-16 用户定）=====
   需求：手机端「查询」里原件 + 反馈不再分成上下两个各自滚动的小窗口，
        改为一个窗口、从上到下连续滚动（第1321期原件 → 各反馈件依次排开）。
   做法：纯 CSS。让 .q2-split 成为唯一滚动容器，两个 .q2-col 去掉独立边框/背景/
        独立 overflow，变成透明内容块依次纵向排列；.q2-scroll 保留内部长图拼接但不自身滚动。
        桌面端双栏完全不变（媒体查询仅 max-width:760px）。 */
@media (max-width: 760px) {
  /* 唯一滚动窗口：.q2-split 占满剩余高度并自身滚动 */
  .q2-split {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    margin-top: 10px;
    gap: 0;
  }
  /* 两栏退成透明内容块：无边框、无背景、不再各自滚动 */
  .q2-col {
    display: block;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }
  /* 栏内长图仍纵向拼接，但把滚动权交给 .q2-split */
  .q2-scroll {
    display: flex;
    flex: 0 0 auto;
    overflow: visible;
    overscroll-behavior: auto;
    padding: 0 0 12px;
    gap: 10px;
  }
  /* 原件与反馈两组之间留一条分隔，连贯但能看出分界 */
  .q2-col + .q2-col { margin-top: 6px; border-top: 1px solid #33333d; padding-top: 12px; }
}

/* ===== v207 热搜榜手机端布局优化（2026-11-16 用户需求）=====
   4 项：①关键词按钮并排铺满 ②底栏不遮挡最后卡片 ③移动端隐藏顶部重复「刷新全部」
        ④空状态「暂无/—」规整。仅 max-width:768px 生效，桌面端零影响。
   追加在文件末尾：同优先级后写覆盖先写，不动既有 DOM / JS / 按钮 id。 */
@media (max-width: 768px) {
  /* ③ 顶部工作区那个「刷新全部」与底部固定操作条重复：移动端隐藏顶部，只留底部主操作。
     注意 hot.js 仍给 #btnHotAll 绑定刷新、底部条代理点击它，隐藏 DOM 不影响功能。 */
  #tab-hot .work-head #btnHotAll { display: none !important; }

  /* ① 关键词监测：输入框独占首行，「检测监测 / 清除」两个按钮并排各占一半铺满。
     做法：bar 用 row + wrap，input flex-basis:100% 强制换行独占首行，两按钮各 50% 落到第二行。
     原 .mini{align-self:flex-end} 会让按钮沉到右下，这里统一覆盖为 stretch 并加大热区。 */
  #tab-hot .hot-kw-bar { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 8px; }
  #tab-hot .hot-kw-bar .hot-kw-input { flex: 1 1 100%; width: 100%; align-self: stretch; }
  #tab-hot .hot-kw-bar .hot-kw-btn,
  #tab-hot .hot-kw-bar .hot-kw-clear {
    flex: 1 1 calc(50% - 4px);
    width: 100%;
    align-self: stretch;
    margin-top: 0;
    min-height: 44px;
    padding: 9px 6px;
    font-size: 14px;
    font-weight: 600;
  }

  /* ② 底部遮挡：热搜 tab 滚动区在通用 96px 之上再加 8px，并给最后一排平台卡留出安全尾距 */
  #tab-hot { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
  #tab-hot .hot-platforms { margin-bottom: 8px; }
  #tab-hot .hot-platforms > .hot-card:last-child { margin-bottom: 6px; }

  /* ④ 空状态规整：邯郸相关 / 关键词监测无数据时，计数「暂无」与提示文字灰色弱化、居中留白 */
  #tab-hot .hot-handan-card .hint-inline,
  #tab-hot .hot-kw-card .hint-inline { color: #8f99a8; font-size: 12px; }
  #tab-hot .hot-empty { text-align: center; padding: 14px 4px 10px; color: #8f99a8; }
}

/* ===== v208 过审卡片等宽——仅手机端（2026-11-16 用户定案）=====
   用户明确：桌面端过审卡片保持横排原样（见上文全局 .ap-list row + .ap-item flex:0 1 250px），
   只改手机端：过审卡片通栏、与上方待审卡片左右边缘对齐（以待审宽度为准）。
   放在 @media(max-width:768px) 内、同优先级后写覆盖全局横排规则；桌面端零影响。 */
@media (max-width: 768px) {
  #apApprovedBox .ap-list { flex-direction: column; flex-wrap: nowrap; }
  #apApprovedBox .ap-item {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }
}

/* ===== 每日焦点（替换每日台账主区）=====
   预览保持「目录＋正文」纯文本层次；【待补：…】高亮，方便下载前一眼看到缺项。
   原台账存档/月统计收进 details，功能不丢，主界面只服务每日焦点。 */
.focus-preview {
  max-height: 620px;
  overflow: auto;
  background: #17171d;
  border: 1px solid #33333d;
  border-radius: 8px;
  padding: 14px 16px;
}
.focus-text {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13.5px;
  line-height: 1.85;
  color: #e8e8ea;
}
.focus-ph {
  background: #6a3a00;
  color: #ffd08a;
  border-radius: 3px;
  padding: 0 2px;
}
.focus-manual { max-height: 340px; overflow: auto; }
.focus-manual-item {
  padding: 8px 10px;
  border-bottom: 1px solid #33333d;
  font-size: 12.5px;
  color: #cfcfd6;
}
.focus-manual-item b { color: #ff8a8f; }
.focus-manual-text { margin-top: 3px; color: #ffcf8f; word-break: break-word; }
.focus-legacy { margin-top: 16px; }
.focus-legacy > summary {
  cursor: pointer;
  color: #ffd0d2;
  font-weight: 600;
  padding: 8px 0;
  list-style: none;
}
.focus-legacy > summary::-webkit-details-marker { display: none; }
.focus-legacy > summary::before { content: "▸ "; }
.focus-legacy[open] > summary::before { content: "▾ "; }
@media (max-width: 768px) {
  .focus-preview { max-height: 460px; padding: 12px; }
  .focus-text { font-size: 13px; }
  .focus-manual { max-height: 260px; }
}

/* ===== 领导看板：统计卡片明细 + 督办闭环（v210）=====
   卡片整块可点；弹层表格复用 .ldr-table 视觉，顶部督办页签切换状态。
   办结/撤回按钮用细边框，避免覆盖「督办中」徽标；手机端按钮换行不挤压标题。 */
.ld-metric[role="button"] { cursor: pointer; transition: border-color .15s, transform .15s, background .15s; }
.ld-metric[role="button"]:hover { border-color: #ff8a8f; background: #30303a; transform: translateY(-1px); }
.ld-metric[role="button"]:focus-visible { outline: 2px solid #ff5a5f; outline-offset: 2px; }
.lmm-box { max-width: 1100px; }
.lmm-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 18px 0; border-bottom: 1px solid #33333d; }
.lmm-tab { background: none; border: 1px solid transparent; border-bottom: none; color: #9aa6b8;
  padding: 8px 14px; border-radius: 8px 8px 0 0; cursor: pointer; font-size: 13px; }
.lmm-tab:hover { color: #e8e8ea; background: #26262e; }
.lmm-tab.is-on { color: #ffd0d2; background: #2c2c35; border-color: #3a3a46; font-weight: 600; }
.lmm-tab b { color: #ff8a8f; margin-left: 4px; }
.lmm-body { padding: 14px 18px 18px; max-height: 70vh; overflow: auto; }
.lmm-table { width: 100%; table-layout: auto; }
.lmm-table th, .lmm-table td { padding: 9px 8px; }
.lmm-table .lmm-title { min-width: 220px; max-width: 460px; word-break: break-word; text-align: left; }
.lmm-table .lmm-qh { white-space: nowrap; }
.lmm-table .lmm-time, .lmm-table .lmm-area { white-space: nowrap; font-size: 12px; color: #9aa6b8; }
.lmm-table .lmm-ops { white-space: nowrap; }
.lmm-table .lmm-ops .mini { margin-left: 6px; }
.lmm-sup { font-size: 12px; font-weight: 600; }
.lmm-sup.st-active { color: #5b9dff; }
.lmm-sup.st-done { color: #4ecb8f; }
.lmm-sup.st-recalled { color: #9aa6b8; }
.lmm-sup-meta { font-size: 11px; color: #8a8a94; margin-top: 3px; }
.lmm-foot { margin-top: 10px; color: #9aa6b8; font-size: 12px; }
.lmm-foot b { color: #ffd0d2; }
.lmm-done, .ldk-done, .ld-pend-done { color: #4ecb8f !important; border-color: #2f6b4c !important; }
.lmm-recall, .ldk-recall, .ld-pend-recall { color: #ffb057 !important; border-color: #7a5528 !important; }
.lmm-done:hover, .ldk-done:hover, .ld-pend-done:hover { background: #203b2e; }
.lmm-recall:hover, .ldk-recall:hover, .ld-pend-recall:hover { background: #3b3020; }
@media (max-width: 768px) {
  .lmm-tabs { gap: 4px; padding: 8px 10px 0; }
  .lmm-tab { padding: 7px 9px; font-size: 12px; }
  .lmm-body { padding: 10px; max-height: 76vh; }
  .lmm-table .lmm-title { min-width: 150px; }
  .lmm-table .lmm-ops { white-space: normal; }
  .lmm-table .lmm-ops .mini { margin: 3px 4px 0 0; }
}

/* ===== 每日焦点：字段边界说明（v212）===== */
.focus-boundary { margin: 10px 0 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; background: rgba(0,0,0,.12); }
.focus-boundary > summary {
  cursor: pointer; color: #ffd0d2; font-weight: 600; font-size: 12.5px;
  padding: 8px 10px; list-style: none;
}
.focus-boundary > summary::-webkit-details-marker { display: none; }
.focus-boundary > summary::before { content: "▸ "; }
.focus-boundary[open] > summary::before { content: "▾ "; }
.fb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 2px 12px 8px; }
.fb-grid > div { min-width: 0; }
.fb-grid b.fb-auto { color: #7fd6a3; font-size: 12.5px; }
.fb-grid b.fb-manual { color: #ffcf8f; font-size: 12.5px; }
.fb-grid ul { margin: 6px 0 0; padding-left: 18px; }
.fb-grid li { color: #cfcfd6; font-size: 12px; line-height: 1.6; margin-bottom: 3px; }
.focus-boundary > .hint { padding: 0 12px 10px; }
@media (max-width: 768px) {
  .fb-grid { grid-template-columns: 1fr; gap: 6px; }
}

/* ===== 每日焦点：标准化预览 + 拖拽排序（v213）===== */
.fp-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 0 2px 10px; }
.fp-hint { color: #9aa6b8; font-size: 12px; }
.fp-grip { color: #ffcf8f; letter-spacing: 1px; }
.fp-switch { display: inline-flex; border: 1px solid #3a3a45; border-radius: 6px; overflow: hidden; }
.fp-tab { background: transparent; color: #9aa6b8; border: 0; padding: 4px 12px; font-size: 12px; cursor: pointer; }
.fp-tab.on { background: #7a2b32; color: #fff; }
.fp-doc { border: 1px solid #33333d; border-radius: 8px; padding: 16px 18px; background: rgba(0,0,0,.10); }
.fp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 2px solid #8a2f37; padding-bottom: 8px; }
.fp-head b { font-size: 18px; color: #ffd0d2; letter-spacing: 2px; }
.fp-head span { font-size: 12px; color: #9aa6b8; }
.fp-sub { text-align: center; color: #cfcfd6; font-size: 13px; padding: 10px 0 4px; }
.fp-sec { margin: 14px 0 6px; font-weight: 700; font-size: 13px; color: #ffd0d2; }
.fp-catalog { margin: 0; padding-left: 22px; columns: 2; -webkit-columns: 2; }
.fp-catalog li { color: #e8e8ea; font-size: 12.5px; line-height: 1.9; break-inside: avoid; }
.fp-list { display: flex; flex-direction: column; gap: 8px; }
.fp-item { display: flex; gap: 10px; border: 1px solid #33333d; border-radius: 7px; padding: 10px 12px; background: rgba(255,255,255,.02); cursor: grab; }
.fp-item.fp-dragging { opacity: .45; }
.fp-item.fp-over { border-color: #ff8a8f; background: rgba(255,138,143,.08); }
.fp-side { flex: 0 0 34px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #9aa6b8; }
.fp-no { font-weight: 700; color: #ffcf8f; font-size: 13px; }
.fp-ord { display: flex; flex-direction: column; gap: 2px; }
.fp-ord button { width: 24px; height: 20px; line-height: 1; border: 1px solid #44444f; background: #2a2a33; color: #cfcfd6; border-radius: 4px; cursor: pointer; font-size: 12px; }
.fp-ord button:disabled { opacity: .35; cursor: default; }
.fp-ord button:not(:disabled):hover { border-color: #ff8a8f; color: #fff; }
.fp-main { flex: 1; min-width: 0; }
.fp-title { color: #fff; font-weight: 600; font-size: 13.5px; margin-bottom: 4px; }
.fp-body { color: #cfcfd6; font-size: 12.5px; line-height: 1.75; word-break: break-word; }
@media (max-width: 768px) {
  .fp-catalog { columns: 1; }
  .fp-doc { padding: 12px; }
  .fp-item { padding: 9px; gap: 7px; }
  .fp-side { flex-basis: 30px; }
}

/* ===== 每日焦点：卡片工具条归位（v214）===== */
.fp-side { flex: 0 0 30px; justify-content: flex-start; gap: 2px; }
.fp-title-row { display: flex; align-items: flex-start; gap: 8px; }
.fp-title-row .fp-title { flex: 1; min-width: 0; margin: 0; }
.fp-ord { flex: 0 0 auto; flex-direction: row; gap: 3px; }
.fp-ord button { width: 22px; height: 22px; line-height: 20px; }

/* ===== 每日焦点：条目卡片改版（v215）===== */
.fp-list { display: flex; flex-direction: column; gap: 12px; }
.fp-item {
  position: relative;
  display: flex; gap: 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-left: 3px solid #8a2f37;
  border-radius: 10px;
  padding: 12px 12px 12px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.018));
  cursor: grab;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.fp-item:hover { border-color: rgba(255,138,143,.45); box-shadow: 0 4px 16px rgba(0,0,0,.28); }
.fp-item.is-edited { border-left-color: #d8a33a; }
.fp-item.fp-dragging { opacity: .45; }
.fp-item.fp-over { border-color: #ff8a8f; background: rgba(255,138,143,.08); }
.fp-badge {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  background: #8a2f37; color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  user-select: none;
}
.fp-item.is-edited .fp-badge { background: #b07d22; }
.fp-main { flex: 1; min-width: 0; }
.fp-title-row { display: flex; align-items: flex-start; gap: 10px; }
.fp-title-row .fp-title { flex: 1; min-width: 0; margin: 0; }
/* 正文字数计数器（v227）：标题右侧醒目徽章，编辑时实时更新 */
.fp-count {
  flex: 0 0 auto; align-self: flex-start; white-space: nowrap;
  padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  color: #0d1b12; line-height: 1.5; letter-spacing: .2px;
  background: linear-gradient(135deg, #7ee0a1, #46c688);
  box-shadow: 0 0 0 1px rgba(120,230,160,.35), 0 2px 8px rgba(70,198,136,.22);
}
.fp-count b { font-size: 13px; font-weight: 800; margin-right: 1px; }
.fp-acts { flex: 0 0 auto; display: flex; gap: 5px; }
.fp-act {
  width: 30px; height: 28px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
  color: #cfcfd6; border-radius: 7px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.fp-act svg { width: 15px; height: 15px; display: block; }
.fp-act:not(:disabled):hover { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,138,143,.5); }
.fp-act:disabled { opacity: .28; cursor: default; }
.fp-del { color: #ff9b9b; }
.fp-del:not(:disabled):hover { background: rgba(255,90,90,.2); border-color: #ff6b6b; color: #ffd6d6; }
.fp-body {
  margin-top: 9px; padding-left: 11px;
  border-left: 2px solid rgba(255,138,143,.35);
  color: #d4d4da; font-size: 12.5px; line-height: 1.8; word-break: break-word;
}
.fp-editor { margin-top: 9px; }
.fp-edit-ta {
  width: 100%; box-sizing: border-box; min-height: 96px;
  background: #1b1b21; color: #e8e8ea; border: 1px solid #4a4a56; border-radius: 8px;
  padding: 9px 10px; font-size: 12.5px; line-height: 1.7; font-family: inherit; resize: vertical;
}
.fp-edit-ta:focus { outline: none; border-color: #d8a33a; }
.fp-edit-ops { display: flex; gap: 8px; margin-top: 7px; }
.fp-save, .fp-cancel {
  min-width: 62px; height: 30px; border-radius: 7px; cursor: pointer; font-size: 12.5px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: #e8e8ea;
}
.fp-save { background: #8a2f37; border-color: #a83a44; color: #fff; }
.fp-save:hover { background: #a83a44; }
.fp-cancel:hover { background: rgba(255,255,255,.14); }
.fp-hidden-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 10px; padding: 7px 11px; border-radius: 8px;
  background: rgba(216,163,58,.12); border: 1px solid rgba(216,163,58,.35);
  color: #e8d3a8; font-size: 12px;
}
.fp-restore {
  margin-left: auto; height: 26px; padding: 0 12px; border-radius: 6px; cursor: pointer;
  border: 1px solid rgba(216,163,58,.5); background: transparent; color: #f0d9a8; font-size: 12px;
}
.fp-restore:hover { background: rgba(216,163,58,.2); }

@media (max-width: 768px) {
  .fp-list { gap: 10px; }
  .fp-item { padding: 10px; gap: 8px; }
  .fp-badge { flex-basis: 24px; width: 24px; height: 24px; font-size: 12px; }
  .fp-act { width: 34px; height: 32px; }
  .fp-act svg { width: 16px; height: 16px; }
  .fp-acts { gap: 4px; }
  .fp-title { font-size: 13.5px; }
  .fp-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .fp-head b { font-size: 16px; }
  .fp-edit-ta { font-size: 16px; }   /* 手机防聚焦缩放 */
}

/* 手机：操作按钮换行到标题下方右对齐，标题独占整行（v215） */
@media (max-width: 768px) {
  .fp-title-row { flex-wrap: wrap; row-gap: 6px; }
  .fp-count { align-self: center; font-size: 12px; padding: 3px 9px; }
  .fp-acts { flex: 0 0 100%; width: 100%; justify-content: flex-end; }
  .fp-body { margin-top: 7px; }
}

/* 按钮可见性增强（v215 终版） */
.fp-act { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); color: #e8e8ea; }
.fp-act svg { width: 16px; height: 16px; }
.fp-del { background: rgba(255,90,90,.16); border-color: rgba(255,90,90,.45); color: #ff9b9b; }
.fp-del:not(:disabled):hover { background: rgba(255,90,90,.32); border-color: #ff7b7b; color: #fff; }
@media (max-width: 768px) {
  .fp-act { width: 36px; height: 34px; }
  .fp-act svg { width: 17px; height: 17px; }
}

/* ============ v216 生成控制条（日报日期+刷新+期数+生成/下载/复制 合并置顶） ============ */
.focus-gen { margin-bottom: 16px; }
.focus-gen .fg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.focus-gen .fg-row .tg-field input[type="date"] { min-width: 138px; }
.focus-gen .fg-sep { flex: 0 0 1px; width: 1px; height: 26px; background: #3a3a44; margin: 0 2px; }
.focus-gen .hint.mb0 { margin: 0; }
@media (max-width: 768px) {
  .focus-gen .fg-row { gap: 8px; }
  .focus-gen .fg-sep { display: none; }
  .focus-gen .fg-row .tg-field { flex: 1 1 calc(50% - 8px); }
  .focus-gen .fg-row .tg-field input { flex: 1; min-width: 0; }
  .focus-gen .fg-row button { flex: 1 1 calc(50% - 8px); height: 36px; }
}

/* ============ v224 今日/昨日分段切换（唯一规则集，手机/电脑同款契合） ============
   病根：v217 与 v222 两套 .fg-seg 叠加，v222 只覆盖部分属性，
   造成外框圆角/高度与按钮不一致、按钮没嵌进外框。此处合并为唯一一套。 */
.focus-gen .fg-row .fg-seg {
  display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center;
  gap: 2px; line-height: 0; /* 消除行盒基线，按钮在框内真正垂直居中 */
  box-sizing: border-box; height: 32px; padding: 2px;
  background: #16161c; border: 1px solid #4a4a58; border-radius: 999px;
}
.focus-gen .fg-row .fg-seg-btn {
  box-sizing: border-box; min-width: 64px; height: 26px; padding: 0 14px;
  margin: 0; align-self: center; /* 抵消全局 button{margin-top:8px}，否则按钮下沉、底边溢出外框 */
  border: 0; border-radius: 999px; background: transparent; color: #9aa6b8;
  font-size: 12.5px; line-height: 1; letter-spacing: 0; cursor: pointer;
  transition: background .15s, color .15s;
}
.focus-gen .fg-row .fg-seg-btn:hover { color: #e8e8ea; background: rgba(255,255,255,.06); }
.focus-gen .fg-row .fg-seg-btn.is-on {
  background: #8a2f37; color: #fff; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.focus-gen .fg-row .fg-seg-btn.is-on:hover { background: #9b3740; }
@media (max-width: 768px) {
  /* 手机端固定三行：①今日/昨日+刷新 ②期数整行 ③一键生成+下载 */
  /* 注意：下方 .fg-seg-btn 特异性须高于 2828 行 .fg-row button{height:36px}，否则被撑出外框 */
  .focus-gen .fg-row .fg-seg { flex: 1 1 auto; height: 38px; }
  .focus-gen .fg-row .fg-seg-btn { flex: 1 1 auto; height: 32px; min-width: 0; font-size: 13.5px; }
  .focus-gen .fg-row .tg-field { flex: 1 1 100%; }
  .focus-gen #btnFocusRefresh { flex: 0 0 auto; height: 38px; }
  .focus-gen #btnFocusGen,
  .focus-gen #btnFocusDownload { flex: 1 1 calc(50% - 8px); height: 38px; }
}

/* ===== v218 领导看板「明细列表」弹层重排：不再挤压竖排 =====
   病根：.lmm-box 只写 max-width，基础 .modal-box 仍是 560px，表格被塞进 512px，
   导致「低风险 / 已过审」逐字换行、属地被截。改为真宽弹层 + 固定列宽 + 表头吸顶。 */
.ld-risk-badge { white-space: nowrap; display: inline-block; }
.lmm-box.modal-wide {
  width: min(1100px, 94vw); max-width: 94vw; padding: 0;
  display: flex; flex-direction: column; max-height: 92vh; overflow: hidden;
}
.lmm-box .modal-head { padding: 18px 20px 14px; margin: 0; border-bottom: 1px solid #33333d; }
.lmm-box .modal-head h3 { font-size: 16px; }
.lmm-body { padding: 0; max-height: none; flex: 1 1 auto; overflow: auto; }
.lmm-scroll { overflow: visible; }
.lmm-table { width: 100%; min-width: 900px; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.lmm-table .c-qh { width: 100px; }
.lmm-table .c-title { width: auto; }
.lmm-table .c-risk { width: 88px; }
.lmm-table .c-status { width: 92px; }
.lmm-table .c-area { width: 178px; }
.lmm-table .c-time { width: 130px; }
.lmm-table .c-sup { width: 118px; }
.lmm-table .c-ops { width: 112px; }
.lmm-table th, .lmm-table td { padding: 10px 12px; }
.lmm-table thead th {
  position: sticky; top: 0; z-index: 2; background: #26262e;
  box-shadow: inset 0 -1px 0 #3a3a46; font-size: 12.5px;
}
.lmm-table tbody tr { cursor: pointer; transition: background .12s; }
.lmm-table tbody tr:nth-child(even) { background: rgba(255,255,255,.02); }
.lmm-table tbody tr:hover { background: #2f2f3a; }
.lmm-table .lmm-title { min-width: 0; max-width: none; text-align: left; }
.lmm-table .lmm-title-txt {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.55; word-break: break-word;
}
.lmm-table .lmm-risk, .lmm-table .lmm-status { text-align: center; white-space: nowrap; }
.lmm-table .lmm-area { overflow: hidden; text-overflow: ellipsis; }
.lmm-st { font-size: 12.5px; color: #c8c8d0; white-space: nowrap; }
.lmm-st.st-approved { color: #8fc0ff; }
.lmm-st.st-pending, .lmm-st.st-pending_director { color: #ffcd94; }
.lmm-st.st-rejected { color: #ff9a9e; }
.lmm-st.st-draft { color: #9aa6b8; }
.lmm-foot {
  margin: 0; padding: 11px 18px; position: sticky; bottom: 0; background: #26262e;
  border-top: 1px solid #33333d;
}
@media (max-width: 768px) {
  .lmm-box.modal-wide { width: 96vw; max-width: 96vw; }
  .lmm-box .modal-head { padding: 13px 14px 10px; }
  .lmm-box .modal-head h3 { font-size: 15px; }
  /* 手机端取消固定列宽，整表横向滚动（隐藏列会与 colgroup 列宽错位，不能用） */
  .lmm-table { table-layout: auto !important; min-width: 720px; }
  .lmm-table colgroup { display: none; }
  .lmm-table .lmm-risk, .lmm-table .lmm-status { min-width: 76px; }
  .lmm-table .lmm-title { min-width: 170px; max-width: 260px; }
  .lmm-table .c-area { width: 148px; }
  .lmm-table .c-time { width: 118px; }
  .lmm-table .c-ops { width: 100px; }
  .lmm-table th, .lmm-table td { padding: 9px 9px; }
  .lmm-table .lmm-ops { white-space: nowrap; }
  .lmm-table .lmm-ops .mini { margin: 0 0 0 4px; }
  .lmm-foot { padding: 9px 12px; }
}

/* ===== v220 已出卡/省预警竖排同列（手机+电脑同步）=====
   期号在左，右侧独立徽标列：已出卡在上、省预警紧随其下，不再随标题乱跑。 */
.todo-item .ti-flags {
  margin-left: auto; display: flex; flex-direction: column;
  align-items: flex-end; gap: 3px; flex: 0 0 auto;
}
.todo-item .ti-flags .prov-badge { white-space: nowrap; }

/* ===== v220 手机审批按钮收敛：大胶囊改为右对齐紧凑按钮（协调不喧宾夺主）===== */
@media (max-width: 768px) {
  #approveTable td:nth-child(5) a {
    flex: 0 0 auto; width: auto; min-height: 30px;
    padding: 4px 12px; margin: 0;
    font-size: 12.5px; font-weight: 600; letter-spacing: 0;
    border-radius: 7px; box-shadow: none;
  }
  #approveTable td:nth-child(5) a:active { box-shadow: none; }
}

/* ===== v221 待补占位：只显示红字「待补」，醒目且不占篇幅 ===== */
.focus-ph {
  background: transparent; color: #ff5a5f; font-weight: 700;
  padding: 0 2px; border-bottom: 1px dashed #ff5a5f;
}

/* ===== v225 回收站（防误删）===== */
.filter-btn.filter-trash { border-color: #7a4a52; color: #e8b9be; }
.filter-btn.filter-trash i { color: #ff9a9a; }
.trash-list { max-height: 60vh; overflow-y: auto; }
.trash-item { border: 1px solid #3a3a44; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #202028; }
.trash-meta { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.trash-qh { color: #ffb3b8; font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.trash-title { color: #e8e8ee; font-size: 14px; }
.trash-sub { color: #8e8e99; font-size: 12px; margin-top: 5px; }
.trash-acts { display: flex; gap: 8px; margin-top: 10px; }
.trash-acts .mini { margin-top: 0; }
.trash-acts .trash-purge { background: #6b2f35; color: #ffdada; border: 1px solid #8a3a42; }
.trash-acts .trash-purge:hover { background: #8a3a42; }

/* ===== 公文（直报）v231 ===== */
.gw-bar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 14px 0 18px; }
.gw-bar label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #9aa6b8; }
.gw-bar select, .gw-bar input { min-width: 200px; }
.gw-bar .mini { margin-top: 0; align-self: flex-end; }
.gw-editor { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.gw-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: #c8d0dc; }
.gw-field .gw-tip { color: #8fd3a8; font-size: 12px; font-weight: 400; }
.gw-field input, .gw-field textarea { width: 100%; box-sizing: border-box; }
.gw-actions { display: flex; gap: 14px; align-items: center; margin-top: 6px; }
.gw-actions #gwGenerate { margin-top: 0; }
.gw-actions #gwDownload { color: #8fd3a8; text-decoration: none; font-size: 13px; }
.gw-actions #gwDownload:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .gw-bar label { flex: 1 1 100%; }
  .gw-bar select, .gw-bar input { width: 100%; min-width: 0; }
}
/* v233 三文种分支 */
.gw-bar label.gw-wide { flex: 1 1 100%; min-width: 0; }
.gw-manual { width: 100%; min-width: 0; box-sizing: border-box; resize: vertical; }
.gw-letter-grid { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 980px; }
@media (min-width: 900px) { .gw-letter-grid { grid-template-columns: 1fr 1fr; } }
.gw-letter-grid .gw-field { min-width: 0; }
.gw-letter-grid .gw-field textarea, .gw-letter-grid .gw-field input { width: 100%; box-sizing: border-box; }
.gw-actions #gwLetterGenerate { margin-top: 0; }
.gw-actions #gwLetterDownload { color: #8fd3a8; text-decoration: none; font-size: 13px; }
.gw-actions #gwLetterDownload:hover { text-decoration: underline; }

/* ===== v237 公文页左右分栏铺满窗口：左功能面板 / 右编辑预览 ===== */
/* 去掉限宽，铺满标签页可用宽度；左栏随屏微扩、右栏吃掉剩余空间 */
#tab-gongwen { max-width: none; margin-left: 0; margin-right: 0; }
.gw-layout { display: grid; grid-template-columns: clamp(360px, 30vw, 470px) minmax(0, 1fr); gap: 24px; align-items: start; }
.gw-left { min-width: 0; padding-right: 22px; border-right: 1px solid #343943; }
.gw-right { min-width: 0; }
.gw-right-empty { padding: 26px 18px; color: #8d98a8; font-size: 13px; line-height: 1.7; text-align: center; background: #212631; border: 1px dashed #3a4150; border-radius: 10px; }
.gw-sec-label { color: #9ec6e8; font-size: 13px; font-weight: 600; margin: 4px 0 9px; }
.gw-sec-inline { margin: 0; flex: 1 1 180px; }
.gw-rec-count { color: #8d98a8; font-size: 12px; font-weight: 400; }
/* v236：列表自然展开，不再限高、不出现内层滚动条 */
.gw-rec-list { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.gw-rec-empty { padding: 16px; color: #8d98a8; font-size: 13px; text-align: center; }
.gw-rec-card { display: block; width: 100%; box-sizing: border-box; text-align: left; margin: 0; padding: 10px 13px; background: #252a34; border: 1px solid #3a3a46; border-radius: 10px; cursor: pointer; }
.gw-rec-card:hover { border-color: #6a7a8c; background: #2a303b; }
.gw-rec-card.on { border: 2px solid #e2574c; background: #332a2e; padding: 9px 12px; }
.gw-rec-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gw-rec-no { color: #d7e2f0; font-size: 15px; font-weight: 600; }
.gw-rec-badges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.gw-rec-badges i { font-style: normal; font-size: 11px; line-height: 1.6; padding: 1px 7px; border-radius: 9px; border: 1px solid #3d4552; color: #9fb0c4; background: #20252e; }
.gw-rec-badges i.st-approved { color: #8fe0a8; border-color: #3a6b4c; }
.gw-rec-badges i.st-pending, .gw-rec-badges i.st-pending_director { color: #ffd479; border-color: #7a6635; }
.gw-rec-badges i.st-rejected { color: #ff9a9a; border-color: #7a3a3a; }
.gw-rec-badges i.fb-yes { color: #8fd3a8; }
.gw-rec-badges i.ap-yes { color: #9ec6e8; }
.gw-rec-badges i.gw-rec-day { font-weight: 600; }
.gw-rec-badges i.gw-rec-day.today { color: #fff; background: #b51f27; border-color: #b51f27; }
.gw-rec-badges i.gw-rec-day.yest { color: #c8d2e0; background: #2f3946; border-color: #4a5768; }
.gw-rec-title { margin: 5px 0 3px; color: #d8d8de; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.gw-rec-meta { color: #8d98a8; font-size: 11.5px; }

/* ===== v234 公文流程与版式优化 ===== */
/* 说明收成一行，点「? 使用说明」再展开，避免顶部一整段字堆 */
.gw-hintline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.gw-hint-note { color: #9aa6b8; font-size: 12px; line-height: 1.6; }
.gw-help-btn { margin-top: 0; padding: 2px 9px; font-size: 12px; color: #8fb8d8; background: transparent; border: 1px solid #3a4a5c; border-radius: 10px; cursor: pointer; }
.gw-help-btn:hover { border-color: #6a8aa8; color: #b9d8f2; }
.gw-help-box { margin: -4px 0 12px; padding: 9px 12px; font-size: 12px; line-height: 1.75; color: #aab6c6; background: #242b36; border: 1px solid #354154; border-radius: 8px; }
.gw-bar .gw-pick { flex: 2 1 320px; }
.gw-bar .gw-num { flex: 0 1 170px; }
.gw-bar .gw-pick select { flex: 1; min-width: 0; }
.gw-manual-row { margin: -6px 0 12px; }
.gw-manual-row .gw-wide { width: 100%; }

/* 文种卡片三选一：不遮挡、点了即换字段 */
.gw-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0 0 16px; max-width: 100%; }
.gw-types .gw-type { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; margin: 0; padding: 9px 8px; font-size: 12px; color: #c8d0dc; background: #252a34; border: 1px solid #3a3a46; border-radius: 10px; cursor: pointer; }
.gw-types .gw-type span { font-size: 10.5px; line-height: 1.4; color: #8d98a8; }
.gw-types .gw-type:hover { border-color: #6a7a8c; }
.gw-types .gw-type.on { color: #bfe3ff; background: #223140; border-color: #4d86b8; }

/* 字段统一两列网格：标签在上、列宽一致、长文本通栏；分组标题跨整行 */
.gw-editor .gw-grid, .gw-letter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; max-width: none; }
.gw-group { grid-column: 1 / -1; margin-top: 4px; padding-top: 9px; border-top: 1px solid #343943; color: #9ec6e8; font-size: 13px; font-weight: 600; }
.gw-group:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.gw-field { min-width: 0; }
.gw-field.gw-fw, .gw-letter-grid .gw-fw { grid-column: 1 / -1; }
.gw-field input, .gw-field textarea { width: 100%; box-sizing: border-box; }
.gw-letter-grid .gw-field { min-width: 0; }

/* 操作条：生成、预览、结果卡片、状态提示都在字段下方，不再跑到页面顶上 */
.gw-actions { flex-wrap: wrap; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #343943; }
.gw-actions .gw-preview-btn { background: #2d3542; border-color: #4a5a6c; color: #bcd3e8; }
.gw-actions .gw-preview-btn:hover { border-color: #6a8aa8; }
.gw-result { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 12px; background: #1f2d26; border: 1px solid #3a6b4c; border-radius: 8px; }
.gw-result span { color: #b8e4c8; font-size: 12px; max-width: 520px; overflow-wrap: anywhere; }
.gw-result a { color: #8fd3a8; font-size: 13px; text-decoration: none; }
.gw-result a:hover { text-decoration: underline; }
.gw-action-msg { color: #9aa6b8; font-size: 12px; line-height: 1.6; }

/* v238：真实 Word 排版预览（内嵌 PDF） */
.gw-preview-box { width: min(980px, 96vw); height: 92vh; max-height: 92vh; overflow: hidden; display: flex; flex-direction: column; }
.gw-preview-box h3 { margin: 0 0 10px; }
.gw-preview-tip { font-size: 12px; font-weight: 400; color: #8d98a8; }
.gw-preview-loading { padding: 8px 12px; color: #9ec6e8; font-size: 12.5px; }
.gw-preview-scroll { overflow: auto; flex: 1; padding: 10px; background: #1c1c24; }
.gw-preview-frame { width: 100%; height: 100%; min-height: 60vh; border: 0; background: #fff; }
.gw-paper { width: 100%; max-width: 720px; min-height: 960px; margin: 0 auto; padding: 62px 60px; box-sizing: border-box; background: #fff; color: #111; font-family: "SimSun", "宋体", serif; font-size: 15px; line-height: 1.9; box-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.gw-paper .gw-pp-title { text-align: center; font-size: 21px; line-height: 1.55; font-weight: 600; margin: 0 0 22px; }
.gw-paper .gw-pp-to { margin: 0 0 14px; }
.gw-paper .gw-pp-p { text-indent: 2em; margin: 0 0 10px; }
.gw-paper .gw-pp-h { margin: 14px 0 6px; font-weight: 600; }
.gw-paper .gw-pp-sign { text-align: right; margin-top: 26px; line-height: 1.9; white-space: pre-line; }

@media (max-width: 1080px) {
  /* 窄屏回落单栏：左面板在上、编辑区在下，仍无内层滚动条 */
  .gw-layout { grid-template-columns: 1fr; gap: 14px; }
  .gw-left { padding-right: 0; border-right: 0; border-bottom: 1px solid #343943; padding-bottom: 14px; }
  .gw-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  #tab-gongwen { max-width: 100%; }
  .gw-layout { grid-template-columns: 1fr; }
  .gw-types { grid-template-columns: 1fr; }
  .gw-types .gw-type { flex-direction: row; align-items: center; gap: 8px; }
  .gw-editor .gw-grid, .gw-letter-grid { grid-template-columns: 1fr; }
  .gw-bar .gw-pick, .gw-bar .gw-num, .gw-sec-inline { flex: 1 1 100%; }
  .gw-bar .gw-pick select, .gw-bar .gw-num input { width: 100%; min-width: 0; }
  .gw-result, .gw-result span { max-width: 100%; }
  .gw-paper { padding: 26px 20px; min-height: 0; }
}

/* ===== 权限大卡片整齐化：窄屏等宽换行（2026-11-20） ===== */
@media (max-width: 860px) {
  /* 用户列表权限格：组名占满一行、卡片在其下等宽排列 */
  .perm-grid-group { flex-direction: column; gap: 6px; }
  .perm-grid-title { flex: none; line-height: 1.4; }
  .perm-grid-group .perm-box, .perm-box { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); width: 100%; }
}
@media (max-width: 480px) {
  .perm-grid-group .perm-box, .perm-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== v264 日报详情只读弹窗（领导 / 管理员）=====
   过审卡片、档案页标题共用；只放「日报正文 + 原始链接」两块，一屏能看完，手机不溢出。 */
#apApprovedBox .ap-item.rv-clickable { cursor: pointer; }
#apApprovedBox .ap-item.rv-clickable:hover { border-color: #4b82ad; }
.arc-detail-open { cursor: pointer; color: #e8e8ea; border-bottom: 1px dotted #5b8db3; }
.arc-detail-open:hover { color: #8ec5ff; border-bottom-color: #8ec5ff; }
.rv-open-tag { margin-left: 6px; font-size: 11px; color: #7fb4e0; border: 1px solid #3a6f9e;
  border-radius: 999px; padding: 0 6px; white-space: nowrap; }
.rv-box { width: 760px; max-width: 94vw; padding: 20px 22px 22px; }
.rv-box .modal-head { margin-bottom: 6px; }
.rv-box .modal-head h3 { font-size: 17px; }
.rv-meta { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px;
  color: #9aa6b8; margin-bottom: 14px; line-height: 1.5; }
.rv-meta-title { color: #e8e8ea; font-weight: 600; }
.rv-meta-line { color: #9aa6b8; }
.rv-sec { border-top: 1px solid #383842; padding-top: 12px; margin-top: 12px; }
.rv-sec:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.rv-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.rv-sec-name { font-size: 14px; font-weight: 700; color: #e8e8ea; }
.rv-sec-head button.mini.copy-btn { margin-top: 0; flex: none; }
.rv-text { margin: 0; background: #1b1b21; border: 1px solid #34343e; border-radius: 8px;
  padding: 12px 14px; max-height: 46vh; overflow: auto; white-space: pre-wrap; word-break: break-word;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif; font-size: 13.5px; line-height: 1.8; color: #e8e8ea; }
.rv-link { background: #1b1b21; border: 1px solid #34343e; border-radius: 8px;
  padding: 10px 12px; font-size: 13px; line-height: 1.7; color: #e8e8ea; word-break: break-all; }
.rv-link a { color: #6fb1ff; text-decoration: none; }
.rv-link a:hover { text-decoration: underline; }
.rv-empty { color: #8f99a8; }
@media (max-width: 768px) {
  .rv-box { width: 100%; max-width: 100%; max-height: calc(100dvh - 24px);
    border-radius: 12px; padding: 16px; }
  .rv-meta { font-size: 12px; }
  .rv-text { max-height: 42vh; font-size: 14px; line-height: 1.75; padding: 10px 12px; }
  .rv-sec-head button.mini.copy-btn { padding: 7px 14px; font-size: 13px; }
}

/* v268 每日台账三标签：手机端均分一行（追加在末尾，避免占用首个 768px 断点断言） */
@media (max-width: 768px) {
  .lb-tabs { gap: 0; flex-wrap: nowrap; }
  .lb-tab { flex: 1 1 0; min-width: 0; padding: 11px 4px; font-size: 14px; text-align: center; }
}

/* ===== v280 设置页继续压缩：删批量卡 + 相似开关并入顶部 + 全局压行距 ===== */
#tab-settings.active { display: flex; flex-direction: column; gap: 8px; padding: 14px 20px; }
.set-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.set-head h2 { margin: 0; font-size: 18px; }
/* v284：相似舆情提醒开关——位置仍在设置页标题行，改成看清得见的浅底描边胶囊 */
.set-inline-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px;
  color: #d9ecff; background: rgba(64,132,214,.16); border: 1px solid #4d87c9;
  border-radius: 999px; padding: 5px 12px; cursor: pointer; user-select: none;
  transition: background .15s, border-color .15s, color .15s; }
.set-inline-toggle:hover { background: rgba(64,132,214,.28); border-color: #7ab2ef; }
.set-inline-toggle input { accent-color: #5b9dff; margin: 0; width: 14px; height: 14px; cursor: pointer; }
.set-inline-toggle.is-off { color: #a8a8b2; background: rgba(120,120,130,.14); border-color: #55555f; }
.sim-toggle-state { font-size: 11px; font-weight: 700; color: #8fd0ff; padding-left: 6px; border-left: 1px solid rgba(255,255,255,.18); }
.set-inline-toggle.is-off .sim-toggle-state { color: #b9b9c2; }
/* v288：右栏收窄靠右——相似舆情开关收进期号回收卡卡头右侧，右栏只剩一个窗口，两卡顶边齐平 */
.set-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 8px; align-items: start; }
.set-right { min-width: 0; }
#setQiCard h3 .set-inline-toggle { margin-left: auto; font-size: 12px; padding: 3px 8px; white-space: nowrap; }
#setQiCard h3 .set-inline-toggle input { width: 14px; height: 14px; }
#setQiCard h3 .sim-toggle-state { font-size: 11px; }
.set-right .set-card { width: 100%; }
#setQiCard h3 { font-size: 15px; }
#setQiCard .set-hint { font-size: 12.5px; line-height: 1.5; }
/* v287：期号回收卡开关组——改显式 grid，杜绝 flex column + wrap 下 label 行宽塌陷、
   标签文字被挤出可视区（只剩勾选框）的问题；label 锁定横排左对齐、整行不换行 */
#setQiCard .set-switches { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 8px 10px; }
#setQiCard .set-switches label {
  display: flex; flex-direction: row; align-items: center; gap: 8px;
  width: 100%; min-width: 0; flex: none; font-size: 13px; color: #d8d8df; white-space: nowrap;
}
#setQiCard .set-switches input[type="checkbox"] { flex: 0 0 auto; width: 15px; height: 15px; accent-color: #5b9dff; margin: 0; }
#setQiCard .set-actions button { font-size: 12.5px; padding: 7px 12px; }
#setQiCard .set-stat { font-size: 12.5px; }
#tab-settings .set-card { padding: 10px 12px; }
#tab-settings .set-card h3 { margin: 0 0 6px; font-size: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
#tab-settings .set-card .hint { margin-bottom: 6px; font-size: 11.5px; line-height: 1.45; }
.set-sub { font-size: 10.5px; font-weight: 400; color: #8a9aa8; }
.set-rec { font-size: 10.5px; font-weight: 700; color: #fff; background: #d99334; border-radius: 999px; padding: 1px 7px; }
.set-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.set-form label { font-size: 12px; gap: 2px; }
.set-form input { padding: 6px 8px; font-size: 12.5px; }
.set-mini-hint { font-size: 10.5px; line-height: 1.3; color: #8a9aa4; }
.set-actions { gap: 8px; margin: 8px 0 0; }
.set-actions button { margin-top: 0; padding: 6px 12px; }
.set-switches { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 6px 8px;
  background: rgba(255,255,255,.03); border: 1px solid #30303a; border-radius: 8px; }
.set-switches label { flex: 0 0 auto; font-size: 12px; color: #d8d8df; }
.set-stat { margin: 6px 0 0 !important; font-size: 11.5px; line-height: 1.45; color: #9fb6c8; }
#setQiMsg, #setMsg { margin-top: 2px; font-size: 12px; }
#tab-settings #userMgmt { padding: 10px 12px; }
#tab-settings #userMgmt .row { margin-bottom: 6px; gap: 8px; }
#tab-settings #userMgmt label { font-size: 12px; gap: 2px; }
#tab-settings #userMgmt input, #tab-settings #userMgmt select { padding: 6px 8px; font-size: 12.5px; }
#tab-settings #userMgmt .perm-new-wrap { gap: 6px; }
#tab-settings #userMgmt .perm-new-head { gap: 6px 12px; }
#tab-settings #userMgmt .perm-group { gap: 5px; padding: 6px 8px; }
#tab-settings #userMgmt .perm-group-title { font-size: 11px; }
#tab-settings #userMgmt .pchk { min-height: 30px; padding: 4px 8px; font-size: 12.5px; }
#tab-settings #userMgmt .pchk::before { width: 16px; height: 16px; }
#tab-settings #userMgmt .perm-box { gap: 5px; }
#tab-settings #userMgmt .table-wrap { margin-top: 6px; }
#tab-settings #userMgmt th, #tab-settings #userMgmt td { padding: 6px 8px; font-size: 12.5px; }
#tab-settings #auditCard { margin-top: 0 !important; }
@media (max-width: 900px) {
  .set-grid { grid-template-columns: 1fr; }
  #setQiCard h3 .set-inline-toggle { margin-left: 0; }
  .set-form { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .set-switches { flex-direction: column; gap: 6px; }
  .set-head { flex-wrap: wrap; }
}
