/* ============================================================
   家庭守护 · PC 运营中台
   设计令牌与小程序同源，保持三端视觉一致
   ============================================================ */
:root {
  --brand: #FF7A45; --brand-dark: #E05A22; --brand-2: #FFF0E9; --brand-3: #FFE1D2;
  --green: #0FA968; --green-2: #E7F7F0;
  --red: #E5484D; --red-2: #FDEBEC;
  --blue: #3B82F6; --blue-2: #EAF1FE;
  --gold: #E8930C; --gold-2: #FEF4E0;
  --purple: #7C5CFC; --purple-2: #F0EDFF;
  --cyan: #0E9CB5; --cyan-2: #E4F6F9;
  --ink: #21262E; --ink-2: #5A6472; --ink-3: #98A2B0;
  --line: #EDF0F3; --line-2: #E3E7EC; --bg: #F5F6F8; --card: #fff;
  --r-lg: 16px; --r-md: 12px; --r-sm: 8px;
  --shadow: 0 1px 2px rgba(31, 35, 47, .04), 0 8px 24px rgba(31, 35, 47, .05);
  --sidebar: 216px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
table { border-collapse: collapse; width: 100%; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #D6DBE1; border-radius: 6px; border: 3px solid var(--bg); }

/* ---------------- 布局 ----------------
   ★★ 容器类名必须与 JS 设的一致（1.0.94 修）。app.js 登录后把 #root 的 class
   设成 `app-root`（见 paint()），若这里只写 `.app`，则那份样式**根本不匹配** →
   容器退回普通块级、`display:flex` 失效 → 100vh 侧栏把 `.main`（顶栏+页面）
   整个挤到首屏下方，右侧一片空白（用户截图反馈的"首页样式乱/顶栏空白"）。
   登录屏没事，是因为它走 `#root.login-root { display:block }`（与骨架无关）。
   测试断言：test-ops-console.js 会核对「JS 给 #root 设的每个类名都得有对应 CSS」。 */
.app-root { display: flex; min-height: 100vh; }

.side {
  width: var(--sidebar); flex-shrink: 0; background: #fff;
  border-right: 1px solid var(--line); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.side__brand { padding: 20px 20px 16px; display: flex; gap: 12px; align-items: center; }
.side__logo {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #FF7A45, #FFB38A);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(255, 122, 69, .3);
}
/* ★ 素材是白底不透明 png：直接铺满会盖掉整块品牌色渐变，看着像「渐变没了」。
   内缩 4px 铺白色圆角底，外圈渐变正好当描边，logo 主色（橙棕）也压得住白底。 */
.side__logoImg { width: 30px; height: 30px; border-radius: 9px; display: block; background: #fff; }
.side__name { font-size: 15px; font-weight: 700; letter-spacing: .2px; }
.side__sub { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.side__nav { flex: 1; overflow-y: auto; padding: 6px 12px 16px; }
.side__group { font-size: 11px; color: var(--ink-3); padding: 16px 10px 6px; letter-spacing: .5px; }
.side__item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  color: var(--ink-2); font-size: 13.5px; margin-bottom: 2px; width: 100%; text-align: left;
}
.side__item:hover { background: #F5F6F8; color: var(--ink); }
.side__item.on { background: var(--brand-2); color: var(--brand-dark); font-weight: 650; }
.side__item .em { width: 20px; text-align: center; font-size: 15px; }
.side__item .cnt {
  margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center;
  justify-content: center; padding: 0 5px;
}
.side__item.on .cnt { background: var(--brand); }
.side__foot { padding: 14px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ★★ 顶栏（1.0.91 重做；根因已于 1.0.94 更正）。
   ⚠️ 更正：1.0.91 当时把"首页样式乱"归因于 `.top` 定高被撑到 98px —— **那个归因是错的**。
      真实根因是容器类名不匹配（JS 设 `app-root`、CSS 只写 `.app`，见上方布局段），
      整页 flex 行塌陷、`.main` 被顶到首屏下方，看起来才像"顶栏一大块空白"。
      1.0.91 的下列改动本身无害（更耐窄屏），保留，但别再拿它当那次故障的根因。
   三个必须记住的点：
   ① 用 `min-height` 而不是 `height` —— 定高 + flex 子项放不下时，子项会撑破容器。
      min-height 让顶栏随内容自然长高，窄屏最多变两行，不会出现无主空白。
   ② 分两组 `top__lead` / `top__side`，各自 `flex:1 1 auto` + 换行。
      原来靠 `<span class="top__spacer">` 撑开 —— **`<span>` 里的 `flex:1` 是无效的**
      （行内元素不进 flex 化，实测 computed flex-grow=0、宽度 0），
      六个元素全被挤到换行。分组之后不再需要 spacer（已删除该类）。
   ③ `flex-wrap: wrap` 是刻意留的：顶栏元素会随「是否登录 / 数据源名长短」变化，
      宁可换行也不要把元素压扁成 0 宽。 */
.top {
  min-height: 60px; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center;
  flex-wrap: wrap; gap: 8px 16px;
  padding: 9px 24px; position: sticky; top: 0; z-index: 30;
}
.top__lead { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.top__heading { min-width: 0; }
.top__side { flex: 0 1 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.top__title { font-size: 16px; font-weight: 700; }
.top__desc { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
/* 「数据截至 xx」：告诉运营屏幕上的数是几分几秒前的。
   没有它，点了「查询最新」也看不出有没有变化，运营会一直点、或者干脆回去按 F5 */
.top__fetched { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.top__pill {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px;
  border-radius: 15px; background: var(--bg); font-size: 12px; color: var(--ink-2);
  border: 1px solid var(--line-2);
}
.top__pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.top__pill.ok .dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-2); }
.top__pill.bad .dot { background: var(--red); box-shadow: 0 0 0 3px var(--red-2); }
.top__me {
  position: relative;
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px; cursor: pointer; user-select: none;
  transition: background .15s, border-color .15s;
}
.top__me:hover, .top__me.open { background: var(--bg); border-color: var(--field-line); }
.top__me .av {
  width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #0E9CB5, #2BB5CC);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}
.top__me .caret { font-size: 10px; color: var(--ink-3); margin-left: 2px; transition: transform .15s; }
.top__me.open .caret { transform: rotate(180deg); }
/* 账号下拉菜单：退出登录的唯一入口（侧栏底部的那个已收口到这里）。
   用绝对定位挂在头像下方，点遮罩或选中任意项都会关闭。 */
.top__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; z-index: 60;
  background: #fff; border: 1px solid var(--field-line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(31, 35, 47, .14); padding: 6px; animation: pop .14s ease;
}
.top__menu__id {
  padding: 9px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px;
}
.top__menu__id b { display: block; font-size: 13px; font-weight: 650; }
.top__menu__id span { font-size: 11.5px; color: var(--ink-3); }
.top__menu__item {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 8px; font-size: 13px; color: var(--ink-2);
}
.top__menu__item:hover { background: var(--bg); color: var(--ink); }
.top__menu__item.danger { color: var(--red); }
.top__menu__item.danger:hover { background: var(--red-2); color: var(--red); }

.page { padding: 20px 24px 60px; }
.page__loading { padding: 80px 0; text-align: center; color: var(--ink-3); }

/* ---------------- 通用组件 ---------------- */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px 20px; }
.card + .card { margin-top: 16px; }
.card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card__head h3 { font-size: 14.5px; font-weight: 700; }
.card__head .sub { font-size: 12px; color: var(--ink-3); }
.card__head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.grid { display: grid; gap: 16px; }
.grid.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.k2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.k2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

.kpi { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px 18px; }
.kpi__lb { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.kpi__num { font-size: 27px; font-weight: 760; letter-spacing: -.5px; margin-top: 6px; line-height: 1.1; }
.kpi__num small { font-size: 14px; font-weight: 600; margin-left: 3px; color: var(--ink-2); }
.kpi__ft { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.kpi__ft b { color: var(--ink-2); font-weight: 600; }
.kpi.brand .kpi__num { color: var(--brand-dark); }
.kpi.green .kpi__num { color: var(--green); }
.kpi.red .kpi__num { color: var(--red); }
.kpi.gold .kpi__num { color: var(--gold); }
.kpi.cyan .kpi__num { color: var(--cyan); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 14px; border-radius: var(--r-sm); background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 600; transition: opacity .15s, background .15s; white-space: nowrap;
}
.btn:hover { opacity: .88; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn.ghost:hover { background: var(--bg); }
.btn.green { background: var(--green); }
.btn.red { background: var(--red); }
.btn.blue { background: var(--blue); }
.btn.dark { background: var(--ink); }
.btn.sm { height: 27px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn.xs { height: 24px; padding: 0 8px; font-size: 11.5px; border-radius: 6px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btnlink { color: var(--blue); font-size: 12.5px; font-weight: 600; padding: 2px 0; }
.btnlink:hover { text-decoration: underline; }
.btnlink.red { color: var(--red); }
.btnlink.gray { color: var(--ink-3); }

.tag {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 650;
  padding: 2px 8px; border-radius: 6px; line-height: 1.6; white-space: nowrap;
}
.tag.brand { background: var(--brand-2); color: var(--brand-dark); }
.tag.green { background: var(--green-2); color: var(--green); }
.tag.red { background: var(--red-2); color: var(--red); }
.tag.blue { background: var(--blue-2); color: var(--blue); }
.tag.gold { background: var(--gold-2); color: var(--gold); }
.tag.purple { background: var(--purple-2); color: var(--purple); }
.tag.cyan { background: var(--cyan-2); color: var(--cyan); }
.tag.gray { background: #F1F3F5; color: var(--ink-3); }
.tag.dark { background: var(--ink); color: #fff; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.filters .fld { display: flex; align-items: center; gap: 6px; }
.filters label { font-size: 12px; color: var(--ink-3); }
/* ---------------- 表单控件（全端统一样式） ----------------
   ★ 统一收口：所有 input / select / textarea 只有这一处定义。
     运营台曾有「筛选条一套、弹窗表单另一套」两套边框（一个圆角 8px、
     一个更圆），同一个表单里两行输入框长得不一样，看着像没做完。
     现在统一为「细线 + 浅灰 + 小圆角」的简洁样式：
       · 边框 1px solid 中性浅灰（--field-line），不用语义色
       · 圆角 6px，比卡片(16px)小得多，视觉上「方」才显得规整
       · 高度 34px（弹窗/筛选同一高度，标签在上在下都不跳）
       · 聚焦才出现品牌色描边，静默态一律中性
     ★ 只改这一处即可全站生效 —— 新增页面不要再写局部 input 样式。
   ★★ 必须带 `input:not([type])`：代码里有大量不带 type 属性的裸 input
      （如 `<input id="rbacName" style="width:100%">`、登录页用户名框）。
      CSS 属性选择器 **匹配不到缺省 type** —— 少了这一条，那些框会退回浏览器
      默认边框（粗 inset 线、圆角随系统），正是「同一个表单里两行长得不一样」
      的根因。这是历史上真实漏过的一处，测试里有断言守着（别删）。 */
:root {
  --field-line: #DCE0E6;   /* 输入框静默边框：中性浅灰，不带任何色相 */
  --field-line-hi: #C3C9D2; /* hover 时略深，给一点点「可点」的反馈 */
  --field-h: 34px;          /* 统一控件高度 */
  --field-r: 6px;           /* 统一圆角：小圆角才显得规整、不圆润 */
}
select, input:not([type]),
input[type="text"], input[type="search"], input[type="password"], input[type="email"],
input[type="tel"], input[type="url"],
input[type="number"], input[type="date"], input[type="time"], textarea {
  height: var(--field-h); border: 1px solid var(--field-line); border-radius: var(--field-r);
  padding: 0 10px; font: inherit; font-size: 13px; color: var(--ink); background: #fff;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
select:hover, input:not([type]):hover,
input[type="text"]:hover, input[type="search"]:hover, input[type="password"]:hover, input[type="email"]:hover,
input[type="tel"]:hover, input[type="url"]:hover,
input[type="number"]:hover, input[type="date"]:hover, input[type="time"]:hover, textarea:hover {
  border-color: var(--field-line-hi);
}
select:focus, input:focus, textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-2);
}
textarea { height: auto; min-height: 72px; padding: 8px 10px; width: 100%; resize: vertical; line-height: 1.6; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 28px; padding: 0 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line-2);
  font-size: 12.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { background: var(--bg); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.tbl { width: 100%; font-size: 13px; }
.tbl th {
  text-align: left; font-size: 11.5px; font-weight: 650; color: var(--ink-3);
  padding: 9px 12px; background: #FAFBFC; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 2; white-space: nowrap;
}
.tbl th:first-child { border-radius: var(--r-sm) 0 0 0; }
.tbl th:last-child { border-radius: 0 var(--r-sm) 0 0; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:hover { background: #FAFBFC; }
.tbl tbody tr.hl { background: var(--red-2); }
.tbl tbody tr.hl:hover { background: #FBE0E1; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .strong { font-weight: 650; }
.tbl .dim { color: var(--ink-3); font-size: 12px; }
.tbl .ops { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* 1.0.156：不能操作的说明文字（服务中不可改派）—— 灰色、有 tooltip，明确不可点 */
.tbl .ops .ops-note { color: var(--dim); font-size: 12.5px; cursor: default; }
.tblwrap { overflow: auto; max-height: 60vh; border-radius: var(--r-sm); }
.tbl.empty td { padding: 56px 0; text-align: center; color: var(--ink-3); }

/* 1.0.154：用户账号是 9 位数字，等宽才不会在表格里对不齐、
   也不会把 1 和 7 看串（运营要照着它去客服系统里查人）。 */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .03em; }

.stack { display: flex; flex-direction: column; gap: 2px; }
.stack b { font-weight: 650; }
.stack span { color: var(--ink-3); font-size: 12px; }

.bar7 { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding: 6px 2px 0; }
.bar7 .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.bar7 .bar { width: 100%; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #9ECBFF, #5B9BF6); min-height: 4px; position: relative; }
.bar7 .col.hot .bar { background: linear-gradient(180deg, #FFB38A, var(--brand)); }
.bar7 .bar .v { position: absolute; top: -19px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--ink-2); font-weight: 600; }
.bar7 .xl { font-size: 11px; color: var(--ink-3); }

.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel .st { display: flex; align-items: center; gap: 12px; }
.funnel .st .lb { width: 106px; font-size: 12.5px; color: var(--ink-2); flex-shrink: 0; }
.funnel .st .track { flex: 1; height: 26px; background: #F2F4F7; border-radius: 6px; overflow: hidden; position: relative; }
.funnel .st .fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2BB5CC, #0E9CB5); display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; color: #fff; font-size: 11.5px; font-weight: 700; min-width: 34px; }
.funnel .st .rate { width: 62px; text-align: right; font-size: 12px; color: var(--ink-3); flex-shrink: 0; }

.donut { display: flex; gap: 20px; align-items: center; }
.donut svg { flex-shrink: 0; }
.donut .lg { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.donut .lg .it { display: flex; align-items: center; gap: 8px; }
.donut .lg .sw { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.donut .lg .vl { margin-left: auto; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.prog { height: 8px; border-radius: 4px; background: #EDF0F3; overflow: hidden; }
.prog > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #2BB5CC, #0E9CB5); }
.prog.brand > i { background: linear-gradient(90deg, #FFB38A, var(--brand)); }
.prog.green > i { background: linear-gradient(90deg, #5FD3A0, var(--green)); }

.kv { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--ink-2); flex-shrink: 0; }
.kv .v { text-align: right; font-weight: 550; }

/* 抽屉 */
.drawer-mask { position: fixed; inset: 0; background: rgba(20, 24, 32, .42); z-index: 100; display: flex; justify-content: flex-end; }
.drawer {
  width: min(620px, 92vw); background: var(--bg); height: 100%; overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0, 0, 0, .12); animation: slideIn .22s ease;
}
@keyframes slideIn { from { transform: translateX(28px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer__head {
  background: #fff; padding: 18px 22px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 5;
}
.drawer__head h3 { font-size: 15.5px; font-weight: 700; flex: 1; }
.drawer__head .x { font-size: 22px; color: var(--ink-3); line-height: 1; padding: 0 4px; }
.drawer__body { padding: 18px 22px 48px; }

.modal-mask { position: fixed; inset: 0; background: rgba(20, 24, 32, .42); z-index: 120; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { background: #fff; border-radius: var(--r-lg); width: min(520px, 100%); max-height: 88vh; overflow: auto; box-shadow: 0 24px 64px rgba(0, 0, 0, .2); }
.modal__head { padding: 18px 22px 0; }
.modal__head h3 { font-size: 15.5px; font-weight: 700; }
.modal__body { padding: 14px 22px 4px; }
.modal.wide { width: min(760px, 100%); }
/* 表单字段：独立成行（不是 .filters 里的横排），label 在输入框上方 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form-grid .fld label { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.form-grid .fld input,
.form-grid .fld select,
.form-grid .fld textarea { width: 100%; box-sizing: border-box; }
.form-grid .fld textarea { height: auto; padding: 8px 10px; }
.form-grid .full { grid-column: 1 / -1; }

.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 10px; width: 2px; background: var(--line); }
.tl { position: relative; padding-bottom: 16px; }
.tl:last-child { padding-bottom: 0; }
.tl .dot { position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #D8DDE4; }
.tl.done .dot { background: var(--green); border-color: var(--green); }
.tl.doing .dot { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-3); }
.tl b { font-size: 13px; font-weight: 650; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.tl .tm { font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
.tl p { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }

/* 履约留痕 · 现场照片（1.0.152）：质检时「服务者真在现场」就靠这几张图 */
.trkpics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.trkpic { display: block; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.trkpic img { width: 100%; height: 100%; object-fit: cover; display: block; }

.notice { border-radius: 10px; padding: 12px 14px; font-size: 12.5px; line-height: 1.7; }
.notice.o { background: var(--brand-2); color: #B4551D; }
.notice.b { background: var(--blue-2); color: #2E6BB8; }
.notice.g { background: var(--green-2); color: #0B7A50; }
.notice.r { background: var(--red-2); color: #B33840; }
.notice + .notice { margin-top: 10px; }

.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #1E242E; color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 13px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24); max-width: 380px; animation: pop .2s ease;
}
.toast.ok { background: #0B7A50; }
.toast.err { background: #B33840; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

.hint { font-size: 12px; color: var(--ink-3); line-height: 1.7; }
.sectitle { font-size: 12px; color: var(--ink-3); letter-spacing: .4px; padding: 4px 0 10px; }

/* ============================================================
   分页条（1.0.149）
   ------------------------------------------------------------
   ★ 贴着表格下沿、不另起卡片：翻页是这张表的操作，
     套一层卡片会让「这个分页条管的是哪张表」变得要猜。
   ★ 顶部一条 1px 分隔线：运营一屏里上下两张表各有各的分页条，
     没有线的话两条会糊成一条，点错就是翻了隔壁那张表。
   ============================================================ */
.pager {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
.pager__info { font-size: 12.5px; color: var(--ink-2); }
.pager__info b { color: var(--ink); font-weight: 600; }
.pager__info .dim { color: var(--ink-3); }
.pager__lb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.pager__lb select {
  height: 27px; padding: 0 6px; font: inherit; font-size: 12px;
  color: var(--ink); background: #fff;
  border: 1px solid var(--line-2); border-radius: 7px; cursor: pointer;
}
.pager__lb select:hover { border-color: var(--ink-3); }

/* ============================================================
   活动运营 · 单行统计条
   ------------------------------------------------------------
   原来用 .stats + .kpi 大卡片，4 张卡就吃掉大半屏，而运营在这页
   真正要操作的是下面的表格。指标改成「一条横着的条」：
   数字大、说明小，纵向只占一行（约 44px），筛选器和「发布活动」
   入口也并进同一条，整页只剩一个视觉重心 —— 列表。
   ============================================================ */
.actbar {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  padding: 0 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px;
}
.actbar__i {
  display: flex; align-items: baseline; gap: 4px;
  padding: 5px 12px 5px 0; margin-right: 8px;
  border-right: 1px solid var(--line); line-height: 1;
}
.actbar__i b { font-size: 19px; font-weight: 760; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.actbar__i i { font-size: 11.5px; font-style: normal; color: var(--ink-3); }
.actbar__i.brand b { color: var(--brand-dark); }
.actbar__sp { flex: 1; min-width: 8px; }
.actbar .chips { align-items: center; }
.actbar .chips__lb { font-size: 11px; color: var(--ink-3); margin-right: 2px; }
.actbar .chip { height: 26px; padding: 0 10px; font-size: 12px; }
.actbar .chip b { font-weight: 700; opacity: .65; font-variant-numeric: tabular-nums; }
.actbar .btn { margin-left: 4px; }
.acthint { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; margin-bottom: 10px; }

/* 卡片内的小节标题。
   ★ 服务号身份归属卡片里有三张语义完全不同的表（还没绑的人 / 还没认出的粉丝 / 已绑定的人），
   不加标题就会连成一片，运营会把「该动手的」和「只是看看的」混在一起扫。 */
.secttl {
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  margin: 14px 0 6px; padding-left: 8px; border-left: 3px solid var(--brand);
}
/* 「数据截至 hh:mm:ss」回执。手动查询不改变页面结构，运营靠这一行确认点生效了，
   所以给它一点存在感（比 acthint 略深、带等宽数字，扫一眼就能看出秒数变没变） */
.actqline {
  font-size: 11.5px; color: var(--ink-2); margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

/* 列表里的活动缩略图：有图用图，没图用 emoji，统一 34px 方块保证行高一致 */
.actcell { display: flex; align-items: center; gap: 10px; }
.actcell__im {
  width: 34px; height: 34px; border-radius: var(--r-sm); flex: 0 0 34px;
  overflow: hidden; background: var(--bg); display: inline-block;
}
.actcell__im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.actcell__im.em {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; line-height: 1; background: var(--brand-2);
}
.card__head h3 .actcell__im { vertical-align: middle; margin-right: 6px; }

/* 封面选择器 */
.cover { display: flex; gap: 12px; align-items: flex-start; }
.cover__prev {
  width: 132px; height: 82px; border-radius: var(--r-sm); overflow: hidden; flex: 0 0 132px;
  background: var(--bg); border: 1px dashed var(--line-2);
  display: flex; align-items: center; justify-content: center;
}
.cover__prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover__prev.empty span { font-size: 12px; color: var(--ink-3); }
.cover__ops { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.cover__hint { font-size: 11.5px; color: var(--ink-3); }
/* 存量 base64 封面的告警态：这条提示必须比普通说明显眼，
   否则运营看不出「需要重传」，小程序端就一直是空白封面 */
.cover__hint.warn { color: var(--red); font-weight: 600; max-width: 320px; line-height: 1.5; }.cover__emoji { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.cover__emoji input {
  width: 58px; height: 30px; text-align: center; font-size: 16px; padding: 0 4px;
}

/* 活动相册（1.0.172）：最多 5 张，小程序端可左右滑动查看 */
.cover__grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.cover__cell {
  position: relative; width: 84px; height: 56px; border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--bg); flex: 0 0 auto;
}
.cover__cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover__cell.is-first::after {
  content: '封面'; position: absolute; left: 0; top: 0; z-index: 1;
  font-size: 10px; line-height: 16px; padding: 0 4px; color: #fff;
  background: rgba(0, 0, 0, .55); border-bottom-right-radius: 4px;
}
.cover__del {
  position: absolute; right: 0; top: 0; z-index: 2; width: 18px; height: 18px; padding: 0;
  line-height: 16px; text-align: center; font-size: 13px; cursor: pointer;
  color: #fff; background: rgba(0, 0, 0, .5); border: 0; border-bottom-left-radius: 4px;
}
.cover__del:hover { background: var(--red); }
/* 缩略图可点：给个手型，否则运营看不出能放大 */
.cover__cell img { cursor: zoom-in; }

/* 富文本编辑器（1.0.173）：活动详情 */
.rte {
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  overflow: hidden; background: var(--card);
}
.rte:focus-within { border-color: var(--brand); }
.rte__bar {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px;
  border-bottom: 1px solid var(--line); background: var(--bg);
}
.rte__btn {
  padding: 3px 9px; font-size: 12px; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 6px; background: var(--card);
}
.rte__btn:hover { border-color: var(--brand); color: var(--brand); }
.rte__body {
  min-height: 150px; max-height: 420px; overflow: auto; outline: none;
  padding: 10px 12px; font-size: 14px; line-height: 1.7;
}
/* 空编辑区显示占位语：contenteditable 没有 placeholder 属性 */
.rte__body:empty::before { content: attr(data-ph); color: var(--ink-3); }
.rte__body h3 { font-size: 15px; font-weight: 600; margin: 14px 0 6px; }
.rte__body h4 { font-size: 14px; font-weight: 600; margin: 12px 0 4px; }
.rte__body p { margin: 0 0 8px; }
.rte__body ul, .rte__body ol { margin: 0 0 8px; padding-left: 22px; }
.rte__body li { margin-bottom: 2px; }
.rte__body blockquote {
  margin: 0 0 8px; padding: 6px 10px; border-left: 3px solid var(--brand);
  background: var(--bg); color: var(--ink-2);
}
.rte__body img { display: block; max-width: 100%; height: auto; margin: 8px 0; border-radius: 6px; }
.rte__body a { color: var(--brand); }

/* 站内图片预览（1.0.172）：点缩略图不再跳原图地址（那会直接下载） */
.lb-mask {
  /* 200 = 高于弹窗(120)与抽屉(100)、低于 toast(300)：预览要压住它们，但不能挡住提示 */
  position: fixed; inset: 0; z-index: 200; background: rgba(17, 21, 28, .72);
  display: flex; align-items: center; justify-content: center; padding: 32px;
}
.lb {
  background: #fff; border-radius: var(--r); overflow: hidden;
  max-width: min(1100px, 92vw); max-height: 88vh; display: flex; flex-direction: column;
}
.lb__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600;
}
.lb__ops { display: flex; gap: 6px; align-items: center; }
.lb__img { padding: 14px; overflow: auto; background: var(--bg); }
/* 大图按视口收缩：证件照要看得清字，但也不能撑出滚动条把「关闭」顶没了 */
.lb__img img { display: block; max-width: 100%; max-height: 62vh; margin: 0 auto; }
.lb__foot { padding: 8px 14px; font-size: 11.5px; color: var(--ink-3); border-top: 1px solid var(--line); }

/* 日期 + 时间分体：左日期右时间，两个都是原生选择器 */
.dt { display: flex; gap: 8px; }
.dt .dt__d { flex: 1 1 60%; min-width: 0; }
.dt .dt__t { flex: 0 0 104px; }
/* ★ 日期/时间不再单独定义边框 —— 已由顶部统一控件规则覆盖（1px --field-line / 6px 圆角）。
   这里只保留一个时间选择器的宽度收敛。 */
.fld__hint { font-size: 11px; color: var(--ink-3); margin-top: 4px; }

/* 超宽屏：统计条与筛选不换行 */
@media (max-width: 1280px) {
  .actbar { gap: 2px; }
  .actbar__i { padding-right: 9px; margin-right: 6px; }
}

@media (max-width: 1180px) {
  .grid.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.k2-1 { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   登录屏（1.0.90）
   ------------------------------------------------------------
   ★ 从「盖在运营台上的弹窗」改为「整页」：
     弹窗能看见底下的侧栏菜单与半张数据表 —— 对未登录的人是信息泄露，
     也不像一个正式入口。整页替换后，背景一定是空的。
   ★ 布局：左侧品牌欢迎区（渐变底）+ 右侧登录表单，窄屏纵向堆叠。
   ============================================================ */
#root.login-root { display: block; }
.login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 28px; background: var(--bg);
}
.login__card {
  display: grid; grid-template-columns: 1.05fr .95fr; width: min(920px, 100%);
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 24px 64px rgba(20, 24, 32, .14);
}

/* ---- 左：品牌欢迎区 ---- */
.login__brand {
  padding: 40px 36px; color: #fff; position: relative;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.login__brand::after {  /* 右上角一层柔光，避免大色块太平 */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 82% 12%, rgba(255, 255, 255, .22), transparent 58%);
  pointer-events: none;
}
.login__logo {
  width: 52px; height: 52px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; font-size: 27px;
  /* ★ 白底圆角卡：素材是透明底 png（橙色螺旋），直接放在品牌色渐变上对比不够 */
  background: #fff; border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  overflow: hidden;
}
.login__logoImg { width: 100%; height: 100%; display: block; }
.login__welcome { font-size: 23px; font-weight: 750; margin-top: 20px; letter-spacing: .3px; }
.login__slogan { font-size: 13px; margin-top: 8px; color: rgba(255, 255, 255, .86); line-height: 1.7; }
.login__facts { margin-top: 26px; display: grid; gap: 11px; position: relative; }
.login__fact { display: flex; gap: 11px; align-items: flex-start; font-size: 12.5px; }
.login__fact .em {
  width: 28px; height: 28px; flex: none; border-radius: 9px; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .16);
}
.login__fact b { display: block; font-weight: 650; font-size: 12.5px; }
.login__fact span { color: rgba(255, 255, 255, .78); font-size: 11.5px; }

/* ---- 右：登录表单 ---- */
.login__form { padding: 40px 38px; display: flex; flex-direction: column; justify-content: center; }
.login__form h2 { font-size: 19px; font-weight: 720; }
.login__sub { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.login__msg { margin-top: 16px; }
.login__fld { margin-top: 15px; }
.login__fld label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.login__fld input {
  width: 100%; height: 40px; padding: 0 12px; font-size: 14px;
  border: 1px solid var(--field-line); border-radius: var(--field-r);
  background: #fff; color: var(--ink); outline: none; transition: border-color .15s;
}
.login__fld input:hover { border-color: var(--field-line-hi); }
.login__fld input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-3); }
.login__fld input[disabled] { background: var(--bg); color: var(--ink-3); }
.login__btn { margin-top: 22px; height: 42px; font-size: 15px; font-weight: 650; letter-spacing: .5px; width: 100%; }
.login__tip { font-size: 11.5px; color: var(--ink-3); line-height: 1.7; margin-top: 16px; }

@media (max-width: 820px) {
  .login__card { grid-template-columns: minmax(0, 1fr); }
  .login__brand { padding: 30px 26px; }
  .login__facts { display: none; }   /* 窄屏优先保证登录可用 */
  .login__form { padding: 30px 26px; }
}
