/* ==========================================================================
   脉知 · 运营中台（admin-v2） 设计系统 v3
   语言：深色导航 + 纸感画布 + 发丝线卡片；数据密度优先，装饰只服务于层级。
   规则：只用一个品牌色（玉青），其余颜色仅承担语义（成功/警示/危险/信息）。
   ========================================================================== */

:root {
  /* 画布与表面 */
  --bg: #f4f5f2;
  --panel: #ffffff;
  --panel-2: #fafaf8;
  --panel-3: #f1f3ef;
  --line: rgba(17, 26, 21, 0.09);
  --line-2: rgba(17, 26, 21, 0.055);
  --line-strong: rgba(17, 26, 21, 0.14);

  /* 导航（深色） */
  --nav-bg: #111a15;
  --nav-bg-2: #0c1310;
  --nav-ink: rgba(255, 255, 255, 0.66);
  --nav-ink-dim: rgba(255, 255, 255, 0.34);
  --nav-on: #f2fbf6;

  /* 文字阶梯 */
  --ink: #121a16;
  --ink-2: #48554e;
  --ink-3: #77837c;
  --ink-4: #9aa49d;

  /* 品牌与语义 */
  --brand: #12754d;
  --brand-ink: #0b5537;
  --brand-soft: #e8f3ed;
  --brand-line: #c6ded2;
  --brand-bright: #35b27c;
  --gold: #966f1f;
  --gold-soft: #f8f1de;
  --blue: #2f6d9e;
  --blue-soft: #e9f1f7;
  --red: #b03a2b;
  --red-soft: #fcece9;
  --purple: #6257a0;
  --purple-soft: #eeecf8;

  --r-card: 12px;
  --r-ctl: 8px;
  --sh-1: 0 1px 2px rgba(17, 26, 21, 0.045);
  --sh-2: 0 1px 3px rgba(17, 26, 21, 0.06), 0 12px 28px -18px rgba(17, 26, 21, 0.35);
  --sh-3: 0 24px 64px -28px rgba(17, 26, 21, 0.45), 0 2px 8px rgba(17, 26, 21, 0.06);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --num: "SF Pro Display", -apple-system, "Segoe UI", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 13px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 1;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: #cfe8d9; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d2d7d1; border-radius: 6px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #b9c0b8; background-clip: content-box; border: 3px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }

/* ============================== 外壳 ============================== */
.app { display: flex; min-height: 100vh; }

.side {
  position: fixed; inset: 0 auto 0 0;
  width: 244px; z-index: 30;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--nav-bg) 0%, var(--nav-bg-2) 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.35);
}

.brand {
  display: flex; align-items: center; gap: 11px;
  height: 62px; padding: 0 18px;
  flex: none;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(150deg, #35b27c, #0f6a46);
  display: grid; place-items: center; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 4px 12px -4px rgba(53, 178, 124, 0.6);
}
.brand-t { font-size: 13.5px; font-weight: 650; letter-spacing: 0.2px; color: #f4faf7; }
.brand-s { font-size: 9.5px; color: var(--nav-ink-dim); letter-spacing: 1.6px; text-transform: uppercase; margin-top: 0; }

.nav { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 12px 18px; }
.nav::-webkit-scrollbar { width: 5px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }
.nav:hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); }

.nav-g { margin-top: 14px; }
.nav-g:first-child { margin-top: 4px; }
.nav-gt {
  font-size: 9.5px; color: var(--nav-ink-dim); letter-spacing: 1.3px;
  padding: 0 10px 6px; font-weight: 600; text-transform: uppercase;
}
.nav a {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 33px; padding: 0 10px; border-radius: 8px;
  color: var(--nav-ink); font-size: 12.8px;
  transition: background 0.14s, color 0.14s;
}
.nav a svg { flex: none; opacity: 0.62; transition: opacity 0.14s; }
.nav a:hover { background: rgba(255, 255, 255, 0.055); color: #fff; }
.nav a:hover svg { opacity: 0.9; }
.nav a.on { background: rgba(53, 178, 124, 0.15); color: var(--nav-on); font-weight: 550; }
.nav a.on svg { opacity: 1; color: var(--brand-bright); }
.nav a.on::before {
  content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px;
  width: 2.5px; border-radius: 0 3px 3px 0; background: var(--brand-bright);
}
.nav a .n-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 6px;
  border-radius: 9px; background: #c4442f; color: #fff;
  font-size: 10.5px; font-weight: 600; display: grid; place-items: center;
}
/* 二级导航：小标题 + 缩进子项，对齐 CRMEB 的菜单层级 */
.nav-st {
  font-size: 11.5px; color: rgba(255, 255, 255, 0.42); font-weight: 600;
  padding: 10px 10px 3px; letter-spacing: 0.3px;
}
.nav a.sub { height: 30px; padding: 0 10px 0 22px; font-size: 12.3px; color: rgba(232, 240, 235, 0.72); }
.nav a.sub::after {
  content: ""; position: absolute; left: 11px; top: 50%; width: 4px; height: 4px;
  margin-top: -2px; border-radius: 50%; background: rgba(255, 255, 255, 0.2);
}
.nav a.sub:hover::after { background: rgba(255, 255, 255, 0.5); }
.nav a.sub.on::after { background: var(--brand-bright); }

.side-foot {
  flex: none; padding: 10px 12px 14px; display: grid; gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.side-foot .sf-row { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--nav-ink-dim); }
.side-foot a.sf-link { color: var(--brand-bright); font-weight: 600; }
.side-foot .btn.ghost { color: var(--nav-ink); border-color: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); }
.side-foot .btn.ghost:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }

/* ============================== 主区 ============================== */
.main { flex: 1; min-width: 0; margin-left: 244px; display: flex; flex-direction: column; }

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 28px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.crumb b { color: var(--ink); font-weight: 600; }
.crumb .sep { color: var(--ink-4); }
.top-spacer { flex: 1; }

.searchbox { position: relative; width: 272px; }
.searchbox input {
  width: 100%; height: 33px; padding: 0 34px 0 31px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2);
  outline: none; font-size: 12.5px; transition: 0.15s;
}
.searchbox input:focus { background: #fff; border-color: var(--brand-line); box-shadow: 0 0 0 3px rgba(18, 117, 77, 0.09); }
.searchbox .ic { position: absolute; left: 10px; top: 9px; color: var(--ink-4); }
.searchbox kbd {
  position: absolute; right: 8px; top: 8px; font-size: 10px; color: var(--ink-4);
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px; background: #fff; font-family: var(--mono);
}
.search-pop {
  position: absolute; left: 0; right: 0; top: 40px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
  box-shadow: var(--sh-3); padding: 6px; display: none; max-height: 420px; overflow: auto; z-index: 60;
}
.search-pop.on { display: block; }
.search-pop .sp-h { font-size: 10px; color: var(--ink-4); padding: 7px 8px 4px; letter-spacing: 0.8px; text-transform: uppercase; }
.search-pop a { display: flex; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 7px; font-size: 12.5px; }
.search-pop a:hover { background: var(--brand-soft); }
.search-pop .sp-meta { margin-left: auto; color: var(--ink-4); font-size: 11px; }

.todo-pill {
  display: flex; align-items: center; gap: 7px; height: 31px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 12px; color: var(--ink-2);
}
.todo-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(176, 58, 43, 0.12); }
.todo-pill b { color: var(--red); font-weight: 650; font-variant-numeric: tabular-nums; }

.who { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.ava {
  width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, #d9ece2, #bcdccb); color: var(--brand-ink);
  font-size: 11.5px; font-weight: 650;
}

.body { padding: 22px 28px 72px; max-width: 1620px; width: 100%; }
.db { flex: 1; overflow: auto; padding: 16px 18px; }

.pagehead { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; }
.pagehead h1 {
  font-size: 24px; margin: 0; letter-spacing: -0.55px; font-weight: 650; line-height: 1.2;
}
.pagehead p { margin: 5px 0 0; color: var(--ink-3); font-size: 12.5px; }
.pagehead .ph-r { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* 小节标题：用于把一页切成几个语义块 */
.sec { display: flex; align-items: center; gap: 9px; margin: 26px 0 12px; }
.sec:first-child { margin-top: 0; }
.sec h2 {
  margin: 0; font-size: 13px; font-weight: 650; letter-spacing: 0.2px; color: var(--ink);
  text-transform: none;
}
.sec .sec-line { flex: 1; height: 1px; background: var(--line-2); }
.sec .sec-act { margin-left: auto; }

/* ============================== 卡片 ============================== */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--sh-1); overflow: hidden;
}
.card + .card { margin-top: 14px; }
.card-h {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--line-2);
  min-height: 46px;
}
.card-h h3 { margin: 0; font-size: 13px; font-weight: 650; letter-spacing: 0.1px; }
.card-h .hint { font-size: 11.5px; color: var(--ink-4); }
.card-h .r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-b { padding: 16px; }
.card-b.p0 { padding: 0; }
.card-b.dense { padding: 12px 14px; }

/* 行内提示条：解释「为什么这块是空的」以及怎么修 */
.notice {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 9px 12px; border-radius: 9px; font-size: 12px; line-height: 1.55;
  background: #fdf8ec; border: 1px solid #efe1bb; color: #74581a;
}
.notice svg { flex: none; margin-top: 1px; opacity: 0.8; }
.notice b { font-weight: 650; }
.notice code {
  font-family: var(--mono); font-size: 11.2px;
  background: rgba(116, 88, 26, 0.09); padding: 1px 5px; border-radius: 4px;
}
.notice.info { background: #f1f6fb; border-color: #cfe0f2; color: #28527a; }
.notice + .card, .notice + .grid { margin-top: 12px; }

/* 分布条 */
.dist { display: grid; gap: 11px; }
.dist-row { display: grid; grid-template-columns: 70px 1fr 46px; align-items: center; gap: 10px; font-size: 12px; }
.dist-l { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dist-b { display: block; height: 6px; border-radius: 3px; background: #edf0ea; overflow: hidden; }
.dist-b > i { display: block; height: 100%; border-radius: 3px; background: var(--brand); min-width: 3px; }
.dist-v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.dist-v small { font-weight: 400; color: var(--ink-4); margin-left: 1px; }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.split2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }

/* ============================== KPI ============================== */
/* 不用彩色装饰条：颜色只留给「环比涨跌」这类真正的语义 */
.kpi {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--sh-1);
  padding: 15px 16px 14px;
  transition: box-shadow 0.16s, border-color 0.16s;
}
/* KPI 可带 href 变成链接（如「回收站」磁贴），这里抹掉 a 的默认外观 */
a.kpi { display: block; color: inherit; text-decoration: none; }
a.kpi:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); }
.kpi:hover { box-shadow: var(--sh-2); border-color: var(--line-strong); }
.kpi .l {
  font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px;
  letter-spacing: 0.1px;
}
.kpi .l .k-ic { color: var(--ink-4); display: inline-flex; }
.kpi .v {
  display: flex; align-items: baseline; gap: 4px;
  font-size: 27px; font-weight: 650; letter-spacing: -0.9px; line-height: 1.12; margin-top: 8px;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
  color: var(--ink);
}
.kpi .v small { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 2px; letter-spacing: 0; }
.kpi .v .cur { font-size: 15px; font-weight: 550; color: var(--ink-2); margin-right: 1px; letter-spacing: 0; }
.kpi .f { font-size: 11.5px; color: var(--ink-4); margin-top: 7px; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.kpi .f b { color: var(--ink-2); font-weight: 600; }

/* 环比徽标：涨=绿，跌=红（可按业务反转） */
.delta {
  display: inline-flex; align-items: center; gap: 3px;
  height: 19px; padding: 0 6px; border-radius: 5px;
  font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--panel-3); color: var(--ink-3);
}
.delta.up { background: var(--brand-soft); color: var(--brand-ink); }
.delta.down { background: var(--red-soft); color: var(--red); }
.delta.flat { background: var(--panel-3); color: var(--ink-3); }

/* 迷你趋势线：放在 KPI 右下，替代装饰性色条 */
.spark { display: block; width: 100%; height: 30px; margin-top: 8px; }
.spark path.line { fill: none; stroke: var(--brand); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.spark path.fill { stroke: none; }

/* 主指标磁贴（横向布局，用于经营总览首行） */
.stat { display: flex; align-items: center; gap: 14px; }
.stat .s-l { flex: 1; min-width: 0; }
.stat .s-v { font-size: 30px; font-weight: 650; letter-spacing: -1px; font-variant-numeric: tabular-nums; line-height: 1.1; }

/* ============================== 表格 ============================== */
.tw { width: 100%; overflow: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.6px; }
.tbl th {
  position: sticky; top: 0; z-index: 2;
  background: var(--panel-2); text-align: left; font-weight: 600; color: var(--ink-3);
  font-size: 11px; letter-spacing: 0.5px; padding: 9px 14px; border-bottom: 1px solid var(--line);
  white-space: nowrap; text-transform: uppercase;
}
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background 0.1s; }
.tbl tbody tr:hover td { background: #fbfcfa; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl th.num { text-align: right; }
.tbl .mono { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.tbl .sub { color: var(--ink-4); font-size: 11.3px; }
.tbl .act { white-space: nowrap; text-align: right; }
/* 通用缩略图：表格之外（编辑器、评价、售后凭证）也需要固定的方形尺寸，
   否则原图会按原始像素撑开容器 */
.thumb { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; background: #eef0ec; flex: none; display: block; }
.thumb.lg { width: 130px; height: 130px; border-radius: 9px; }
.thumb.xs { width: 26px; height: 26px; border-radius: 5px; }

.tbl .thumb {
  width: 38px; height: 38px; border-radius: 8px; object-fit: cover; background: #f0f2ee;
  border: 1px solid var(--line-2); flex: none;
}
.tbl .strong { font-weight: 600; color: var(--ink); }
.tbl .thumb.xs { width: 26px; height: 26px; border-radius: 5px; }
/* 缺价格的规格行淡红底：一屏几十行时靠颜色就能看出哪行没填 */
.tbl tr.need-price td { background: #fdf7f4; }
.tbl tr.need-price:hover td { background: #fbf0ea; }
/* 规格图上传位：空白时是一格虚线框，鼠标移上去变品牌色 */
.sku-shot { border: 0; background: none; padding: 0; width: 100%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sku-shot:hover span { border-color: var(--brand-line); color: var(--brand); }
.tbl .neg { color: var(--red); }
.tbl .pos { color: var(--brand-ink); }
.cellmain { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cellmain .cm-t { font-weight: 550; }
.cellmain .cm-s { font-size: 11.3px; color: var(--ink-4); }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================== 控件 ============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 13px; border-radius: var(--r-ctl);
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
  transition: background 0.13s, border-color 0.13s, box-shadow 0.13s, transform 0.06s;
  user-select: none;
}
.btn:hover { background: #f8f9f7; border-color: var(--line-strong); }
.btn:active { transform: translateY(0.5px); }
.btn.primary {
  background: linear-gradient(180deg, #16905d, var(--brand)); border-color: var(--brand-ink); color: #fff; font-weight: 550;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(11, 85, 55, 0.25);
}
.btn.primary:hover { background: linear-gradient(180deg, #127a4f, var(--brand-ink)); }
.btn.danger { color: var(--red); border-color: #eccfc9; background: #fff; }
.btn.danger:hover { background: var(--red-soft); border-color: #e0b8b0; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--panel-3); color: 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: 0.45; pointer-events: none; }
.btn-link { color: var(--brand); font-size: 12.2px; font-weight: 550; background: none; border: 0; padding: 0; }
.btn-link:hover { text-decoration: underline; }
.btn-group { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-ctl); overflow: hidden; background: #fff; }
.btn-group button { border: 0; background: transparent; height: 30px; padding: 0 11px; font-size: 12px; color: var(--ink-3); border-right: 1px solid var(--line-2); }
.btn-group button:last-child { border-right: 0; }
.btn-group button:hover { color: var(--ink); background: #f8f9f7; }
.btn-group button.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label { font-size: 11.8px; color: var(--ink-2); font-weight: 550; display: flex; gap: 5px; align-items: center; }
.field > label .req { color: var(--red); }
.field .hint { font-size: 11.2px; color: var(--ink-4); }
.input, .select, .textarea {
  width: 100%; height: 34px; padding: 0 11px; border: 1px solid var(--line);
  border-radius: var(--r-ctl); background: #fff; outline: none; font-size: 12.8px;
  transition: border-color 0.14s, box-shadow 0.14s;
}
.textarea { height: auto; min-height: 78px; padding: 9px 11px; resize: vertical; line-height: 1.65; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand-line); box-shadow: 0 0 0 3px rgba(18, 117, 77, 0.09); }
.input.sm { height: 29px; font-size: 12.2px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2377837c' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 28px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row .grow { flex: 1; min-width: 0; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.f3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }

.check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.3px; cursor: pointer; }
.check input { width: 14px; height: 14px; accent-color: var(--brand); }

.switch { position: relative; width: 34px; height: 19px; border-radius: 999px; background: #d8dcd6; border: 0; transition: 0.15s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); transition: 0.15s; }
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(15px); }

/* 状态标签 */
.pill {
  display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 7px;
  border-radius: 6px; font-size: 11.3px; font-weight: 550; white-space: nowrap;
  background: var(--panel-3); color: var(--ink-2);
}
.pill.ok { background: var(--brand-soft); color: var(--brand-ink); }
.pill.warn { background: var(--gold-soft); color: #7a5a15; }
.pill.danger { background: var(--red-soft); color: var(--red); }
.pill.info { background: var(--blue-soft); color: var(--blue); }
.pill.purple { background: var(--purple-soft); color: var(--purple); }
.pill.gray { background: var(--panel-3); color: var(--ink-3); }
.pill .d { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.solid { background: var(--ink); color: #fff; }

.tag { display: inline-block; padding: 1px 6px; border-radius: 4px; background: var(--panel-3); color: var(--ink-2); font-size: 11px; }
.tag.mono { font-family: var(--mono); }

.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 25px; padding: 0 9px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 11.8px; color: var(--ink-2);
  cursor: pointer;
}
.chip.on { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-ink); font-weight: 600; }
/* 本商品自定义值（模板里没有）：虚线边，和模板值区分开 */
.chip.custom { border-style: dashed; }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 4px; }
.tabs button {
  height: 38px; padding: 0 13px; border: 0; background: none; color: var(--ink-3);
  font-size: 12.8px; position: relative; font-weight: 500;
}
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--brand-ink); font-weight: 650; }
.tabs button.on::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: -1px; height: 2px; background: var(--brand); border-radius: 2px 2px 0 0; }
.tabs button .cnt { font-size: 10.5px; color: var(--ink-4); margin-left: 4px; font-variant-numeric: tabular-nums; }

.toolbar { display: flex; gap: 8px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line-2); background: var(--panel-2); flex-wrap: wrap; }
.toolbar .grow { flex: 1; }

.bar { height: 6px; border-radius: 999px; background: #edf0ea; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.bar.gold > i { background: var(--gold); }
.bar.red > i { background: var(--red); }

/* 空态 / 骨架 */
.empty { padding: 44px 16px; text-align: center; color: var(--ink-4); font-size: 12.5px; }
.empty .e-ic { width: 42px; height: 42px; margin: 0 auto 9px; border-radius: 12px; background: var(--panel-3); display: grid; place-items: center; color: #b6beb7; }
.empty b { display: block; color: var(--ink-2); font-weight: 600; margin-bottom: 3px; font-size: 12.8px; }
/* 骨架屏用柔和呼吸，不用流动高光：避免整页看起来在「闪」 */
.sk { background: #eef1ec; border-radius: 5px; animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 0.62; } 50% { opacity: 1; } }
.loading { padding: 36px; text-align: center; color: var(--ink-4); font-size: 12.4px; }

/* ============================== 抽屉 / 弹层 ============================== */
.mask {
  position: fixed; inset: 0; background: rgba(13, 20, 16, 0.36);
  z-index: 80; backdrop-filter: blur(2px);
  opacity: 0; animation: fade 0.16s ease forwards;
}
@keyframes fade { to { opacity: 1; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 640px; max-width: 96vw;
  background: var(--panel); z-index: 81; display: flex; flex-direction: column;
  box-shadow: -24px 0 64px -28px rgba(13, 20, 16, 0.45);
  transform: translateX(24px); opacity: 0; animation: slidein 0.2s cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
}
.drawer.wide { width: 820px; }
.drawer.xwide { width: 960px; max-width: 96vw; }
@keyframes slidein { to { transform: none; opacity: 1; } }
.dh { display: flex; align-items: center; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--line); flex: none; }
.dh h3 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -0.1px; }
.dh .x { margin-left: auto; width: 29px; height: 29px; border-radius: 8px; border: 0; background: var(--panel-3); display: grid; place-items: center; color: var(--ink-3); }
.dh .x:hover { background: #eaede8; color: var(--ink); }
.df { flex: none; border-top: 1px solid var(--line); padding: 12px 20px; display: flex; gap: 8px; justify-content: flex-end; background: var(--panel-2); }
.df .l { margin-right: auto; color: var(--ink-4); font-size: 11.6px; align-self: center; }

.modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -48%);
  width: 474px; max-width: 94vw; background: var(--panel); border-radius: 14px;
  z-index: 81; box-shadow: var(--sh-3); opacity: 0;
  animation: pop 0.18s cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
  display: flex; flex-direction: column; max-height: 86vh;
}
@keyframes pop { to { transform: translate(-50%, -50%); opacity: 1; } }
.modal .mb { padding: 16px 20px; overflow: auto; }
.modal .mh { padding: 18px 20px 0; font-size: 15px; font-weight: 650; }
.modal .mf { padding: 13px 20px; display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid var(--line-2); }

#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; }
.tmsg {
  background: #16211b; color: #fff; padding: 10px 16px; border-radius: 9px; font-size: 12.5px;
  box-shadow: 0 14px 32px -12px rgba(0, 0, 0, 0.45); animation: toastin 0.18s ease;
  display: flex; gap: 8px; align-items: center;
}
.tmsg.err { background: #8f2f22; }
.tmsg.ok { background: #0e5a3b; }
@keyframes toastin { from { opacity: 0; transform: translateY(6px); } }

/* ============================== 图表 ============================== */
.chart { width: 100%; display: block; overflow: visible; }
.chart text { font-size: 10px; fill: var(--ink-4); font-family: inherit; font-variant-numeric: tabular-nums; }
.chart .axis-label { font-size: 10px; fill: var(--ink-4); }
.chart .gridline { stroke: var(--line-2); stroke-width: 1; }
.chart .zero-line { stroke: var(--line); stroke-width: 1; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-3); }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; }

/* 图表脚注：告诉用户这份图的统计窗口 */
.chart-foot { display: flex; gap: 12px; align-items: center; margin-top: 10px; font-size: 11.3px; color: var(--ink-4); }

/* 定义列表 */
.dl { display: grid; grid-template-columns: 100px 1fr; gap: 9px 10px; font-size: 12.5px; }
.dl dt { color: var(--ink-4); }
.dl dd { margin: 0; color: var(--ink); word-break: break-all; }
.kv { display: grid; gap: 0; }
.kv .r { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 12.5px; }
.kv .r:last-child { border-bottom: 0; }
.kv .r .k { color: var(--ink-3); }
.kv .r .v { font-variant-numeric: tabular-nums; font-weight: 550; }

.note {
  display: flex; gap: 8px; padding: 9px 12px; border-radius: 9px;
  background: var(--gold-soft); color: #6f5418; font-size: 11.9px; line-height: 1.55;
}
.note.blue { background: var(--blue-soft); color: #2f5a80; }
.note.red { background: var(--red-soft); color: #8f2f22; }
.note.gray { background: var(--panel-3); color: var(--ink-3); }

/* 商品卡预览 */
.pv-phone { width: 100%; max-width: 268px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--sh-1); }
.pv-phone img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #f2f4f0; }
.pv-phone .pb { padding: 11px 12px 13px; }
.pv-phone .pt { font-size: 12.8px; font-weight: 600; line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pv-phone .pp { color: var(--red); font-weight: 650; margin-top: 6px; font-size: 16px; letter-spacing: -0.3px; }
.pv-phone .pp small { font-size: 10.5px; font-weight: 400; }

/* 上传格 */
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
.up-item { position: relative; aspect-ratio: 1; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); background: #f6f7f4; }
.up-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-item .del {
  position: absolute; top: 3px; right: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: rgba(13, 20, 16, 0.64); color: #fff; border: 0; display: grid; place-items: center;
  font-size: 12px; line-height: 1; opacity: 0; transition: 0.12s;
}
.up-item:hover .del { opacity: 1; }
.up-add {
  aspect-ratio: 1; border: 1px dashed #cfd5cd; border-radius: 9px; background: #fbfcfa;
  display: grid; place-items: center; color: var(--ink-4); font-size: 11px; gap: 3px; text-align: center;
}
.up-add:hover { border-color: var(--brand-line); color: var(--brand); background: var(--brand-soft); }

/* 时间线 */
.tl { display: grid; gap: 0; }
.tl .i { display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding-bottom: 16px; position: relative; }
.tl .i::before { content: ""; position: absolute; left: 6px; top: 15px; bottom: 0; width: 1px; background: var(--line); }
.tl .i:last-child { padding-bottom: 0; }
.tl .i:last-child::before { display: none; }
.tl .d { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-top: 5px; box-shadow: 0 0 0 3px var(--brand-soft); }
.tl .d.gray { background: var(--ink-4); box-shadow: 0 0 0 3px var(--panel-3); }
.tl .d.red { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.tl .t { font-size: 12.5px; }
.tl .m { font-size: 11.3px; color: var(--ink-4); margin-top: 1px; }

/* 规格矩阵 */
table.mx { width: 100%; border-collapse: collapse; font-size: 12.2px; }
.mx th, .mx td { border: 1px solid var(--line-2); padding: 6px 8px; }
.mx th { background: var(--panel-2); font-weight: 600; color: var(--ink-3); font-size: 11.2px; text-align: left; text-transform: uppercase; letter-spacing: 0.4px; }
.mx input { width: 100%; height: 27px; border: 1px solid transparent; border-radius: 6px; padding: 0 7px; background: transparent; }
.mx input:hover { border-color: var(--line); background: #fff; }
.mx input:focus { border-color: var(--brand-line); background: #fff; outline: none; }

.hr { height: 1px; background: var(--line-2); margin: 16px 0; border: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 11.5px; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.flex { display: flex; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; }

/* 数字等宽，表格/报表里对齐才不抖 */
.num, .tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* 图表版式：图形用 SVG 拉伸，文字用 HTML 排——避免 preserveAspectRatio=none 把标签压变形 */
.cbox { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; }
.cbox.no-y { grid-template-columns: minmax(0, 1fr); }
.cbox .cy {
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: 10px; color: var(--ink-4); text-align: right;
  font-variant-numeric: tabular-nums; padding-bottom: 1px;
}
.cbox .cplot { position: relative; min-width: 0; }
.cbox .cplot svg { display: block; width: 100%; }
/* .cx 是 .cbox 的兄弟节点，必须用同级选择器 */
.cx {
  display: flex; justify-content: space-between;
  margin: 7px 0 0; font-size: 10px; color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
.cbox + .cx { margin-left: 46px; }
.cbox.no-y + .cx { margin-left: 0; }
.cx span { flex: none; text-align: center; white-space: nowrap; }
.cx span:first-child { text-align: left; }
.cx span:last-child { text-align: right; }

/* 图表空态：不要用大块空白冒充「有数据」 */
.cvoid {
  display: grid; place-items: center; gap: 6px;
  min-height: 150px; color: var(--ink-4); font-size: 12px; text-align: center;
  border: 1px dashed var(--line); border-radius: 10px; background: var(--panel-2);
}
.cvoid b { color: var(--ink-2); font-weight: 600; font-size: 12.5px; }

/* 财务对账：日结表 */
.fin-bar { height: 6px; border-radius: 3px; background: var(--panel-3); overflow: hidden; min-width: 56px; }
.fin-bar > i { display: block; height: 100%; border-radius: 3px; background: var(--brand); opacity: 0.72; }
.fin-tbl tfoot td { padding: 10px 14px; border-top: 1px solid var(--line); border-bottom: 0; }
.fin-tbl tbody tr:hover td { background: var(--brand-soft); }

@media (max-width: 1360px) {
  .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .side { transform: translateX(-100%); transition: 0.2s; }
  .side.open { transform: none; box-shadow: var(--sh-3); }
  .main { margin-left: 0; }
  .searchbox { display: none; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .body { padding: 18px 16px 64px; }
}

/* ==========================================================================
   小程序页面与功能 / 页面装修
   ========================================================================== */

/* --- 发布状态条 --- */
.ap-status {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  padding: 9px 12px; border-radius: 8px; font-size: 12.2px; line-height: 1.6;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--ink-2);
}
.ap-status b { color: var(--ink); font-weight: 600; }
.ap-status span { color: var(--ink-3); }
.ap-status.ok { background: var(--brand-soft); border-color: var(--brand-line); }
.ap-status.ok b, .ap-status.ok svg { color: var(--brand-ink); }
.ap-status.warn { background: var(--gold-soft); border-color: #e8d7a8; }
.ap-status.warn b, .ap-status.warn svg { color: #7a5a15; }

/* --- 清单表格 --- */
.ap-tbl td { vertical-align: middle; }
.ap-tbl tr.ap-grp td { background: var(--panel-2); padding: 7px 12px; border-bottom: 1px solid var(--line); }
.ap-tbl tr.ap-grp:hover td { background: var(--panel-2); }
.ap-gt { display: flex; align-items: center; gap: 8px; font-size: 11.6px; font-weight: 650; color: var(--ink-2); letter-spacing: .3px; }
.ap-tbl tr.ap-off td { background: #fbfbf9; }
.ap-tbl tr.ap-off .ap-path { opacity: .55; }
.ap-ord { white-space: nowrap; }
/* 固定表格布局：列宽只由 thead 的 th 决定，路径列吃掉剩余空间。
   auto 布局下长路径（pages/health-report-detail/health-report-detail）
   会把表格撑到比容器还宽，右侧的开关/状态被挤出可视区。 */
.ap-tbl { table-layout: fixed; width: 100%; }
.ap-tbl td.ap-name .input { width: 100%; min-width: 0; }
.ap-tbl td { overflow: hidden; }
.ap-ord .btn-link {
  display: inline-grid; place-items: center; width: 22px; height: 22px;
  border: 1px solid var(--line); border-radius: 5px; background: #fff;
  color: var(--ink-2); line-height: 1; vertical-align: middle;
}
.ap-ord .btn-link svg { display: block; }
.ap-ord .btn-link + .btn-link { margin-left: 3px; }
.ap-ord .btn-link:hover:not([disabled]) { border-color: var(--brand-line); color: var(--brand); background: var(--brand-soft); }
.ap-ord .btn-link[disabled] { opacity: .38; cursor: default; }
.ap-path { font-family: var(--mono); font-size: 11.4px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; min-width: 0; }
.ap-path .ap-p { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-tag {
  font-family: var(--sans, inherit); font-size: 10px; font-weight: 600; letter-spacing: .2px;
  padding: 1px 5px; border-radius: 4px; background: var(--blue-soft); color: var(--blue);
  flex: none; white-space: nowrap;
}
/* 从属页面：详情页跟着父页面走，灰色区分于 tabBar 的蓝标 */
.ap-tag.sub { background: var(--panel-3); color: var(--ink-3); }
.ap-desc { font-size: 11.4px; color: var(--ink-4); margin-top: 2px; }

/* --- 规则说明 --- */
.ap-note { padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 11.9px; color: var(--ink-3); line-height: 1.75; }
.ap-note:last-child { border-bottom: 0; padding-bottom: 0; }
.ap-note-t { display: flex; align-items: center; gap: 5px; font-size: 12.2px; font-weight: 600; color: var(--ink-2); margin-bottom: 3px; }
.ap-note-t svg { color: var(--brand); }

/* --- 装修两栏 --- */
.dc-split { grid-template-columns: minmax(0, 1fr) 340px; }
.dc-add { display: flex; align-items: center; gap: 6px; }
.dc-empty {
  padding: 24px 18px 22px; text-align: center; background: var(--panel-2);
  border: 1px dashed var(--line); border-radius: 8px;
}
.dc-empty-t { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dc-empty-s { margin-top: 5px; font-size: 11.8px; color: var(--ink-4); line-height: 1.7; }
.dc-empty-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  margin-top: 14px; text-align: left;
}
.dc-empty-grid > div {
  padding: 9px 11px; background: #fff; border: 1px solid var(--line);
  border-radius: 7px;
}
.dc-empty-grid b { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.dc-empty-grid span { display: block; margin-top: 3px; font-size: 11.2px; color: var(--ink-4); line-height: 1.6; }

/* --- 模块卡 --- */
.dc-mod { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.dc-mod.off { opacity: .6; background: var(--panel-2); }
.dc-mod-h {
  display: flex; align-items: center; gap: 6px; padding: 7px 9px;
  background: var(--panel-2); border-bottom: 1px solid var(--line-2);
}
.dc-mod-h .input { height: 26px; }
.dc-mod-h .btn-link {
  display: inline-grid; place-items: center; width: 20px; height: 22px;
  padding: 0; color: var(--ink-3); font-size: 14px; line-height: 1;
}
.dc-mod-h .btn-link svg { display: block; }
.dc-mod-h .btn-link:hover:not([disabled]) { color: var(--brand); }
.dc-mod-h .btn-link.danger:hover { color: var(--red); }
.dc-mod-h .btn-link[disabled] { opacity: .25; cursor: default; }
.dc-mod-type {
  flex: none; font-size: 10.5px; font-weight: 600; padding: 2px 6px; border-radius: 4px;
  background: var(--brand-soft); color: var(--brand-ink);
}
.dc-mod-b { padding: 10px 11px 11px; }
.dc-mod-b .field { margin-bottom: 0; }

/* --- 装修条目（轮播 / 宫格 / 图文配图） --- */
.dc-item { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.dc-item:last-of-type { border-bottom: 0; }
.dc-item-img {
  width: 62px; height: 40px; flex: none; border-radius: 5px; overflow: hidden;
  background: var(--panel-3); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-4);
}
.dc-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-item-act { display: flex; flex-direction: column; gap: 4px; flex: none; }
.dc-item .input.sm { height: 26px; }

/* --- 手机预览 --- */
.dc-preview-wrap { position: sticky; top: 12px; }
.dc-preview-lab { font-size: 11.4px; color: var(--ink-4); margin-bottom: 7px; letter-spacing: .2px; }
.dc-phone {
  width: 300px; height: 588px; margin: 0 auto; border-radius: 26px; overflow: hidden;
  background: #f5f7f4; border: 7px solid #1b241f; box-shadow: 0 8px 24px rgba(17, 26, 21, .16);
  display: flex; flex-direction: column; position: relative;
}
.dc-phone-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 96px; height: 16px; background: #1b241f; border-radius: 0 0 10px 10px; z-index: 2;
}
.dc-phone-nav {
  flex: none; height: 40px; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 7px; font-size: 12.4px; font-weight: 600; color: #121a16; background: #f5f7f4;
}
.dc-phone-body { flex: 1; overflow-y: auto; padding: 4px 11px 14px; }
.dc-phone-body::-webkit-scrollbar { width: 0; }

/* --- 预览内的模块 --- */
.pm-fixed {
  margin: 7px 0; padding: 13px 10px; border-radius: 9px; text-align: center;
  font-size: 10.5px; color: #7d8a82; background: #eaeeea; border: 1px dashed #d3dbd5;
}
.pm { margin: 7px 0; border-radius: 9px; overflow: hidden; }
.pm-notice {
  display: flex; align-items: center; min-height: 30px; padding: 0 9px;
  font-size: 11px; color: #5a6b62; background: #fff; border: 1px solid #e6eae6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pm-banner { position: relative; height: 96px; background: #e4e9e5; }
.pm-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-banner > span { display: grid; place-items: center; height: 100%; font-size: 10.5px; color: #8d9a92; }
.pm-dots {
  position: absolute; right: 7px; bottom: 6px; font-style: normal; font-size: 9px;
  padding: 1px 5px; border-radius: 999px; background: rgba(0, 0, 0, .38); color: #fff;
}
.pm-grid { display: grid; gap: 6px; background: #fff; padding: 10px 8px; border: 1px solid #e6eae6; }
.pm-g { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pm-gi {
  width: 30px; height: 30px; border-radius: 9px; background: #e8f3ed; border: 1px solid #d6e8de;
  display: grid; place-items: center; color: #14754c;
}
.pm-g span { font-size: 9.5px; color: #5a6b62; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pm-card { background: #fff; border: 1px solid #e6eae6; padding: 0 0 10px; }
.pm-card img { width: 100%; height: 84px; object-fit: cover; display: block; margin-bottom: 7px; }
.pm-card b { display: block; padding: 0 9px; font-size: 11.5px; color: #121a16; }
.pm-card span { display: block; padding: 2px 9px 0; font-size: 10px; color: #7d8a82; line-height: 1.6; }
.pm-card i {
  display: inline-block; margin: 7px 0 0 9px; font-style: normal; font-size: 9.5px;
  padding: 3px 9px; border-radius: 999px; background: #12754d; color: #fff;
}

@media (max-width: 1180px) {
  .dc-split { grid-template-columns: 1fr; }
  .dc-preview-wrap { position: static; }
}
.pm-title { font-size: 10.5px; font-weight: 600; color: #48554e; margin: 8px 0 -2px 2px; letter-spacing: .2px; }
