/* =========================================================
   食刻 · 商户后台 Demo — 样式
   ========================================================= */

:root {
  --brand: #ee6c2b;
  --brand-strong: #d95a18;
  --brand-soft: #fef2ea;
  --brand-soft-2: #fde7d9;

  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --line: #edf0f4;
  --line-strong: #e2e6ec;

  --text: #171b22;
  --text-2: #5b6270;
  --text-3: #8d94a3;

  --green: #0e9f6e;  --green-soft: #e8f7f0;
  --blue: #2f6feb;   --blue-soft: #ebf1fe;
  --teal: #0e9384;   --teal-soft: #e6f6f4;
  --amber: #d97706;  --amber-soft: #fef4e4;
  --red: #dc2626;    --red-soft: #fdecec;
  --gray-soft: #f1f3f6;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-2: 0 8px 24px rgba(16, 24, 40, 0.08), 0 2px 6px rgba(16, 24, 40, 0.04);
  --shadow-3: 0 24px 56px rgba(16, 24, 40, 0.18);

  --sidebar-w: 184px;
  --topbar-h: 64px;

  /* =========================================================
     字体与间距规范（2026-11 统一）
     目标：无论 Retina(DPR=2) 还是外接 1x 屏(DPR=1)，字号都落在
     整数设备像素上，字形栅格化一致，不再出现「同一份 CSS、两块屏
     字重/字宽不一样」。
     规则：
       1) 字号只用整数 px，禁止 10.5 / 11.5 / 12.5 / 13.5 这类半像素值；
       2) 字重只用 400 / 500 / 600，禁止 650 / 700（苹方没有这两档，
          浏览器会合成加粗，1x 屏上糊成一团）；
       3) 中文不要负字距（-0.01em / -0.02em 已全部移除），
          只有全大写英文标签用 0.06em、码值用 0.02em；
       4) 行高五档，正文 1.6；
       5) 组件直接用下面的 var()，不要在组件里写死字号。
     ========================================================= */

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC",
    "Source Han Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue",
    Arial, sans-serif;

  /* 字号刻度（全部整数 px） */
  --fs-9: 9px;    /* 步骤点、角标数字 */
  --fs-10: 10px;  /* 极小辅助文字、图表刻度 */
  --fs-11: 11px;  /* 标签、时间、表格注脚 */
  --fs-12: 12px;  /* 表格正文、次要说明 */
  --fs-13: 13px;  /* 控件文字、列表正文 */
  --fs-14: 14px;  /* 正文基准（body） */
  --fs-15: 15px;  /* 小标题 */
  --fs-16: 16px;  /* 卡片标题、抽屉标题 */
  --fs-18: 18px;  /* 区块标题 */
  --fs-20: 20px;  /* 页面主标题 */
  --fs-24: 24px;  /* 关键指标数字 */
  --fs-28: 28px;  /* 大号数字、空状态 */

  /* 行高刻度 */
  --lh-1: 1;        /* 单行图标/徽标容器 */
  --lh-tight: 1.25; /* 大标题 */
  --lh-snug: 1.4;   /* 小标题、卡片标题 */
  --lh-base: 1.6;   /* 正文 */
  --lh-loose: 1.7;  /* 长段说明 */

  /* 间距刻度（4px 栅格）
     16px 以上只用 4 的倍数：16 / 20 / 24 / 32 / 40 / 48 / 56 / 64
     16px 以下允许 2px 步进：2 / 4 / 6 / 8 / 10 / 12
     1px 仅用于描边对齐与徽标内边距微调。
     新增组件请从刻度里取值，不要再出现 5 / 7 / 9 / 13 / 14 / 15 / 17 / 18 / 22px。 */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-14);
  line-height: var(--lh-base);
  /* 不写 -webkit-font-smoothing / text-rendering：
     它们会让 1x 外接屏关掉次像素抗锯齿，字形变细发虚，
     与 Retina 上的观感不一致，交给系统默认渲染。 */
}
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
b, strong { font-weight: 600; }
svg { display: block; }
::selection { background: #fcd9c4; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d9dee6; border-radius: 6px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #c3cad5; background-clip: content-box; border: 3px solid transparent; }

/* ============ 布局 ============ */
.app { display: flex; min-height: 100vh; }
.main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ============ 侧边栏 ============ */
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 20px 16px 16px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #ff8a4c, #e85a15);
  color: #fff; font-weight: 600; font-size: var(--fs-16);
  box-shadow: 0 6px 14px rgba(238, 108, 43, 0.28);
}
.brand-text { display: flex; flex-direction: column; line-height: var(--lh-tight); }
.brand-text strong { font-size: var(--fs-15); letter-spacing: 0.02em; }
.brand-text em { font-style: normal; font-size: var(--fs-11); color: var(--text-3); letter-spacing: 0.06em; }

.nav { padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
/* 侧栏项是 flex 子项，默认 flex-shrink:1 + min-height:auto 会在窗口变矮时
   把 38px 的行一路压到 20px（文字没缩小，盒子缩小 → 看起来「字体和间距变了」）。
   固定不收缩，让 .nav 自己滚动。 */
.nav > * { flex: 0 0 auto; }
.nav-label { font-size: var(--fs-11); color: var(--text-3); padding: 16px 8px 6px; letter-spacing: 0.06em; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 10px; border-radius: var(--radius-sm);
  color: #4b5261; font-size: var(--fs-14); font-weight: 500;
  transition: background 0.16s, color 0.16s;
}
.nav-item:hover { background: #f5f6f8; color: var(--text); }
.nav-item.active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.nav-icon { width: 18px; height: 18px; color: #98a0ae; flex: none; }
.nav-icon svg { width: 18px; height: 18px; }
.nav-item.active .nav-icon { color: var(--brand); }
.nav-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--red); color: #fff;
  font-size: var(--fs-11); font-weight: 600; display: grid; place-items: center;
}

.sidebar-foot { padding: 10px; border-top: 1px solid var(--line); }
.plan {
  background: linear-gradient(180deg, #fff7f1, #fffdfb);
  border: 1px solid #f8dfce; border-radius: 10px;
  padding: 10px 12px 12px;
}
.plan-row { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-12); font-weight: 600; color: #9a4314; }
.plan-days { font-weight: 500; font-size: var(--fs-12); color: #b26a3e; }
.plan-bar { height: 4px; border-radius: 2px; background: #f6e2d4; margin: 8px 0; }
.plan-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #ff9a5c, #ee6c2b); }
.plan a { font-size: var(--fs-12); color: #b26a3e; }
.plan a:hover { color: var(--brand-strong); }
.foot-link { display: block; padding: 10px 4px 2px; font-size: var(--fs-12); color: var(--text-3); }
.foot-link:hover { color: var(--text-2); }

/* ============ 顶栏 ============ */
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 10px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-spacer { flex: 1; }

.store-switch {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px 0 8px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; font-size: var(--fs-14); font-weight: 600;
  transition: background 0.16s;
  user-select: none;
}
.store-switch:hover { background: #f5f6f8; }
.store-switch > svg:first-child { color: var(--text-3); }
.store-switch .chev { color: var(--text-3); }

.global-search {
  display: flex; align-items: center; gap: 8px;
  height: 36px; width: 250px; padding: 0 10px;
  border-radius: var(--radius-sm); background: #f4f5f7;
  border: 1px solid transparent; color: var(--text-3);
  transition: background 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.global-search:focus-within {
  background: #fff; border-color: #f0c3a6;
  box-shadow: 0 0 0 3px rgba(238, 108, 43, 0.12);
}
.global-search input {
  border: 0; background: transparent; outline: none; flex: 1; min-width: 0;
  font-size: var(--fs-13); color: var(--text); font-family: inherit;
}
.global-search input::placeholder { color: #9aa1af; }
.global-search kbd {
  font-family: inherit; font-size: var(--fs-11); color: #9aa1af;
  background: #fff; border: 1px solid #e6e9ef; border-radius: 5px;
  padding: 1px 4px; line-height: var(--lh-snug);
}

.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; background: transparent; border-radius: var(--radius-sm);
  color: #5b6270; cursor: pointer; position: relative;
  transition: background 0.16s, color 0.16s;
}
.icon-btn:hover { background: #f5f6f8; color: var(--text); }
.icon-btn .dot {
  position: absolute; top: 8px; right: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); border: 1.5px solid #fff;
}

.user { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 9px; cursor: pointer; }
.user:hover { background: #f5f6f8; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #ffb27a, #ee6c2b);
  color: #fff; display: grid; place-items: center; font-size: var(--fs-13); font-weight: 600;
}
.user-meta { display: flex; flex-direction: column; line-height: var(--lh-tight); }
.user-meta strong { font-size: var(--fs-13); font-weight: 600; }
.user-meta em { font-style: normal; font-size: var(--fs-11); color: var(--text-3); }

/* ============ 内容区 ============ */
.content { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 24px 28px 64px; }
.page { display: flex; flex-direction: column; gap: 16px; }

/* ---------------- 二级菜单（页面左列）+ 面包屑 ----------------
   与参考图一致：二级菜单是**贴在侧栏右侧的一整列**（白底、整列到底、右边界一条线），
   不是内容区里的浮动卡片。只有有子结构的一级模块才出这一列
   （订单 / 店铺装修横向 / 设备 / 报表）；营销挂在「应用」下，不出二级菜单。
   状态即菜单项：订单的「待出餐」不是筛选器，URL 带子路由 #/orders/pending。
   ------------------------------------------------------------------ */
.page-body { display: flex; align-items: flex-start; gap: 16px; }
.page-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* 出二级菜单的页面：内容区取消居中与内边距，整列从顶栏一直贴到侧栏右侧 */
.content.has-rail { max-width: none; padding: 0; }
.page.rail {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  min-height: calc(100vh - var(--topbar-h));
}
/* 二级菜单第一行已经写着这是哪个模块：内容区顶部不再重复面包屑和大标题，
   只留一行说明 + 右侧操作，把首屏高度让给内容。h1 保留给读屏，不显示。 */
.page.rail > .page-head {
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  padding: 14px 24px 10px;
}
.page.rail > .page-head .crumb { display: none; }
.page.rail > .page-head h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.page.rail > .page-head p { margin-top: 0; font-size: var(--fs-13); }
.page.rail > .page-body { display: contents; }
.page.rail .subnav { grid-column: 1; grid-row: 1 / span 2; }
.page.rail .page-main { grid-column: 2; grid-row: 2; padding: 0 24px 48px; gap: 12px; }

.subnav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 172px;
  width: 172px;
  padding: 12px 8px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.subnav-title {
  padding: 2px 10px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--text-2);
}
.subnav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: var(--fs-13);
  color: var(--text-2);
  transition: background 0.16s ease, color 0.16s ease;
}
.subnav-item:hover { background: var(--surface-2); color: var(--text); }
.subnav-item.active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.subnav-count {
  margin-left: auto;
  font-size: var(--fs-12);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
}
.subnav-item.active .subnav-count { color: var(--brand-strong); }
.subnav-foot {
  margin-top: auto;
  padding: 10px 10px 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-11);
  line-height: var(--lh-snug);
  color: var(--text-3);
}
.crumb { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: var(--fs-12); color: var(--text-3); }
.crumb a { color: var(--text-3); }
.crumb a:hover { color: var(--brand-strong); }
.crumb b { font-weight: 500; color: var(--text-2); }

/* 画布类页面（店铺装修）：二级栏横向，避免挤压画布与手机预览 */
.subnav.horizontal {
  min-height: 0;
  border-right: 0;
  width: auto;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  padding: 6px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.subnav.horizontal .subnav-item { padding: 6px 12px; white-space: nowrap; }
.subnav.horizontal .subnav-item.active { background: var(--brand-soft); box-shadow: none; }
.subnav.horizontal .subnav-count { margin-left: 2px; }

@media (max-width: 1080px) {
  .content.has-rail { max-width: 1320px; padding: 24px 16px 64px; }
  .page.rail { display: block; }
  .page.rail > .page-head { padding: 0 0 10px; }
  /* 窄屏上二级菜单塌成横向条，模块名回到内容区，标题要显示出来 */
  .page.rail > .page-head h1 {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }
  .page.rail .page-main { padding: 0; }
  .page-body { display: flex; flex-direction: column; align-items: stretch; }
  .subnav {
    width: 100%;
    min-height: 0;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 6px;
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .subnav-title, .subnav-foot { display: none; }
  .subnav-item { padding: 6px 12px; white-space: nowrap; }
  .subnav-item.active { background: var(--brand-soft); box-shadow: none; }
  .subnav-count { margin-left: 2px; }
}

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 2px; }
.page-head h1 { font-size: var(--fs-20); font-weight: 600; }
.page-head p { font-size: var(--fs-13); color: var(--text-3); margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: #fff; color: var(--text);
  font-size: var(--fs-13); font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background 0.16s, border-color 0.16s, color 0.16s, box-shadow 0.16s;
}
.btn svg { width: 15px; height: 15px; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(238, 108, 43, 0.35); }
.btn.primary:hover { background: var(--brand-strong); }
.btn.secondary { border-color: var(--line-strong); color: #3e4553; }
.btn.secondary:hover { background: #f7f8fa; border-color: #d6dae2; }
.btn.ghost { color: var(--text-2); }
.btn.ghost:hover { background: #f1f3f6; }
.btn.danger { color: var(--red); border-color: #f5d3d3; }
.btn.danger:hover { background: var(--red-soft); }
.btn.sm { height: 28px; padding: 0 10px; font-size: var(--fs-12); border-radius: 7px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ============ 卡片 ============ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-title { font-size: var(--fs-14); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 20px; }
.link-more { font-size: var(--fs-13); color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; }
.link-more:hover { color: var(--brand); }
.link-more svg { width: 13px; height: 13px; }

/* 实时指示灯 */
.live { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-12); font-weight: 500; color: var(--green); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 rgba(14, 159, 110, 0.45); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 6px rgba(14, 159, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(14, 159, 110, 0); } }

/* ============ 待办提醒 ============ */
.alerts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.alert {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 16px; border-radius: var(--radius); border: 1px solid;
  box-shadow: var(--shadow-1); cursor: pointer;
  transition: box-shadow 0.18s, transform 0.18s;
}
.alert:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.alert-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.alert-icon svg { width: 19px; height: 19px; }
.alert-main { flex: 1; min-width: 0; }
.alert-label { font-size: var(--fs-13); font-weight: 500; color: var(--text-2); }
.alert-value { font-size: var(--fs-20); font-weight: 600; line-height: var(--lh-tight); margin-top: 1px; font-variant-numeric: tabular-nums; }
.alert-value small { font-size: var(--fs-12); font-weight: 500; color: var(--text-3); margin-left: 4px; }
.alert-sub { font-size: var(--fs-12); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-go { color: var(--text-3); flex: none; }
.alert-go svg { width: 16px; height: 16px; }
.alert.amber { background: #fffcf6; border-color: #f7e6c8; }
.alert.amber .alert-icon { background: #fdf1dc; color: var(--amber); }
.alert.red { background: #fffafa; border-color: #f8dddd; }
.alert.red .alert-icon { background: var(--red-soft); color: var(--red); }
.alert.blue { background: #fafcff; border-color: #dde9fb; }
.alert.blue .alert-icon { background: var(--blue-soft); color: var(--blue); }

/* ============ KPI ============ */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 12px; box-shadow: var(--shadow-1); }
.kpi-label { font-size: var(--fs-13); color: var(--text-2); }
.kpi-value { font-size: var(--fs-24); font-weight: 600; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.kpi-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* 应用详情页顶部的小指标卡（券/订单池共用，由 app.js 的 miniKpis() 生成） */
.mini-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.mini-kpi { padding: 12px 16px; }
.mini-kpi-label { font-size: var(--fs-12); color: var(--text-3); }
.mini-kpi-value { font-size: var(--fs-24); font-weight: 600; line-height: var(--lh-tight); margin: 4px 0; font-variant-numeric: tabular-nums; }
.mini-kpi-note { font-size: var(--fs-12); color: var(--text-3); }
.delta { font-size: var(--fs-12); font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.delta svg { width: 12px; height: 12px; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
.delta span { color: var(--text-3); font-weight: 400; margin-left: 4px; }
.spark { width: 76px; height: 30px; flex: none; }

/* ============ 双列 ============ */
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }

/* ============ 订单流 ============ */
.feed { display: flex; flex-direction: column; }
.feed-row { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background 0.14s; }
.feed-row:last-child { border-bottom: 0; }
.feed-row:hover { background: var(--surface-2); }
.feed-time { font-size: var(--fs-12); color: var(--text-3); font-variant-numeric: tabular-nums; }
.feed-main { min-width: 0; }
.feed-title { font-size: var(--fs-13); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.feed-sub { font-size: var(--fs-12); color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.feed-amt { font-size: var(--fs-13); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ============ 热销 ============ */
.hot-row { display: flex; align-items: center; gap: 12px; padding: 8px 20px; border-bottom: 1px solid var(--line); }
.hot-row:last-child { border-bottom: 0; }
.rank { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: var(--fs-11); font-weight: 600; background: var(--gray-soft); color: #8d94a3; flex: none; }
.rank.r1 { background: #fff0e2; color: #e06818; }
.rank.r2 { background: #eef1f6; color: #7c8494; }
.rank.r3 { background: #fbeee3; color: #b9756d; }
.hot-main { flex: 1; min-width: 0; }
.hot-top { display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-13); }
.hot-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-sales { color: var(--text-3); font-variant-numeric: tabular-nums; flex: none; }
.bar { height: 5px; border-radius: 3px; background: var(--gray-soft); margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #ffa061, #ee6c2b); }

/* ============ 表格 ============ */
.table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd3de transparent;
}
.table-wrap::-webkit-scrollbar { height: 7px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }
.table-wrap::-webkit-scrollbar-thumb { background: #d3dae4; border-radius: 99px; }
.table-wrap.has-scroll { box-shadow: inset -18px 0 18px -18px rgba(15, 23, 42, 0.32); }

/* 移动端卡片列表（桌面隐藏） */
.list-cards { display: none; }
.lc { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background 0.14s; }
.lc:last-child { border-bottom: 0; }
.lc:hover { background: var(--surface-2); }
.lc-top { display: flex; align-items: center; gap: 8px; }
.lc-id { font-size: var(--fs-13); font-weight: 600; font-variant-numeric: tabular-nums; }
.lc-amt { margin-left: auto; font-size: var(--fs-14); font-weight: 600; font-variant-numeric: tabular-nums; }
.lc-sub { font-size: var(--fs-12); color: var(--text-3); }
.lc-dish { flex-direction: row; align-items: center; gap: 12px; }
.lc-main { flex: 1; min-width: 0; }
.lc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.lc-right .lc-amt { margin-left: 0; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-13); }
thead th {
  text-align: left; font-weight: 500; font-size: var(--fs-12); color: var(--text-3);
  padding: 8px 20px; background: var(--surface-2);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 12px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; transition: background 0.14s; }
tbody tr.clickable:hover { background: var(--surface-2); }
th.r, td.r { text-align: right; }
.num { font-variant-numeric: tabular-nums; }
.cell-main { font-weight: 600; font-size: var(--fs-13); }
.cell-sub { font-size: var(--fs-12); color: var(--text-3); margin-top: 2px; }
.cell-dish { display: flex; align-items: center; gap: 8px; }

/* 菜品图标 */
.dish-thumb {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-size: var(--fs-18);
  background: linear-gradient(150deg, #fff4ea, #fbe7d8);
  border: 1px solid #f7e3d3;
}
/* 有真实菜品图时铺满，不再显示 emoji 和暖色底 */
.dish-thumb.has-img { border-color: rgba(23, 27, 34, 0.06); }

/* ============ 标签 ============ */
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 5px; background: var(--gray-soft); color: #5b6270; font-size: var(--fs-12); font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: var(--fs-12); font-weight: 500; white-space: nowrap; }
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.blue { background: var(--blue-soft); color: var(--blue); }
.pill.teal { background: var(--teal-soft); color: var(--teal); }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.gray { background: var(--gray-soft); color: #7b8291; }
.pill.plain::before { display: none; }
.mode-hq { background: var(--brand-soft); color: var(--brand-strong); }
.mode-ind { background: var(--blue-soft); color: var(--blue); }

/* ============ 标签页 ============ */

/* ============ 工具栏 ============ */
.toolbar { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.field { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; font-size: var(--fs-13); color: var(--text-2); transition: border-color 0.16s; }
.field:hover { border-color: #d3d8e0; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  outline: none;
  padding: 0 20px 0 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23707886' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 12px;
  font-size: var(--fs-13);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
}
.field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field select:focus-visible { outline: none; }
.field input { border: 0; background: transparent; outline: none; font-size: var(--fs-13); color: var(--text); width: 168px; font-family: inherit; }
.field input::placeholder { color: #9aa1af; }
.field > svg { color: var(--text-3); flex: none; }
.select-mini { border: 1px solid var(--line-strong); background: #fff; border-radius: var(--radius-sm); height: 34px; padding: 0 8px; font-size: var(--fs-13); font-family: inherit; color: var(--text); cursor: pointer; outline: none; }

/* ============ 开关 ============ */
.switch { width: 36px; height: 20px; border-radius: 10px; background: #dde1e8; border: 0; position: relative; cursor: pointer; padding: 0; transition: background 0.18s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.2); transition: transform 0.18s; }
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(16px); }

/* ============ 门店 / 设备卡片 ============ */
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.store-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); transition: box-shadow 0.18s, transform 0.18s; }
.store-card:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.store-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.store-name { font-size: var(--fs-15); font-weight: 600; }
.store-addr { font-size: var(--fs-13); color: var(--text-3); line-height: var(--lh-base); margin-top: 2px; }
.store-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 0; border-top: 1px dashed var(--line-strong); border-bottom: 1px dashed var(--line-strong); }
.store-stat b { display: block; font-size: var(--fs-15); font-weight: 600; font-variant-numeric: tabular-nums; }
.store-stat span { font-size: var(--fs-12); color: var(--text-3); }
.store-foot { display: flex; gap: 8px; margin-top: auto; }
.add-card { display: grid; place-items: center; gap: 6px; min-height: 196px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); color: var(--text-3); font-size: var(--fs-13); cursor: pointer; background: transparent; transition: all 0.18s; }
.add-card:hover { border-color: #f0b68c; color: var(--brand); background: #fffbf7; }

/* 设备 */
.device-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.device-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.device-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none; background: #f4f6f9; color: #6b7382; }
.device-icon svg { width: 20px; height: 20px; }
.device-main { flex: 1; min-width: 0; }
.device-name { font-size: var(--fs-14); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.device-meta { font-size: var(--fs-12); color: var(--text-3); margin-top: 4px; line-height: var(--lh-base); }
.device-actions { display: flex; gap: 8px; margin-top: 10px; }
.status-dot { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-12); font-weight: 500; }
.status-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-dot.online { color: var(--green); }
.status-dot.offline { color: var(--red); }

/* ============ 报表 ============ */
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 20px 0; }
.chart-legend { font-size: var(--fs-12); color: var(--text-3); }
.chart { display: flex; align-items: flex-end; gap: 16px; height: 208px; padding: 24px 20px 16px; position: relative; }
.chart::before {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 42px; height: 140px;
  background: repeating-linear-gradient(to top, transparent 0 34px, var(--line) 34px 35px);
  pointer-events: none;
}
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; position: relative; z-index: 1; }
.chart-val { font-size: var(--fs-11); color: var(--text-3); font-variant-numeric: tabular-nums; }
.chart-bar { width: 100%; max-width: 40px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #ffa468, #ee6c2b); transition: filter 0.16s; min-height: 4px; }
.chart-bar:hover { filter: brightness(1.06); }
.chart-bar.soft { background: linear-gradient(180deg, #ffd0b0, #ffb183); }
.chart-x { font-size: var(--fs-12); color: var(--text-3); height: 16px; }
.chart-x.today { color: var(--brand); font-weight: 600; }

/* ============ 设置 ============ */
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-title { font-size: var(--fs-14); font-weight: 500; }
.setting-desc { font-size: var(--fs-12); color: var(--text-3); margin-top: 2px; }
.input { height: 34px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0 10px; font-size: var(--fs-13); font-family: inherit; color: var(--text); outline: none; background: #fff; transition: border-color 0.16s, box-shadow 0.16s; }
.input:focus { border-color: #f0b68c; box-shadow: 0 0 0 3px rgba(238, 108, 43, 0.12); }
.input.w220 { width: 220px; }
.setting-inline { display: flex; align-items: center; gap: 8px; }

/* ============ 分段选择 ============ */
.chips { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line-strong); border-radius: 9px; padding: 4px; }
.chip { height: 27px; padding: 0 12px; border: 0; background: transparent; border-radius: 6px; font-size: var(--fs-13); color: var(--text-2); cursor: pointer; font-family: inherit; transition: background 0.15s, color 0.15s; }
.chip:hover { color: var(--text); background: #f5f6f8; }
.chip.active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }

/* ============ 空状态 ============ */
.empty { padding: 56px 20px; text-align: center; color: var(--text-3); font-size: var(--fs-13); }
.empty svg { width: 34px; height: 34px; color: #c9cfd9; margin: 0 auto 10px; }

/* ============ 抽屉 ============ */
.drawer-scrim { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.34); opacity: 0; transition: opacity 0.24s; z-index: 60; }
.drawer-scrim.show { opacity: 1; }
.drawer {
  position: fixed; top: 50%; left: 50%; z-index: 61;
  width: min(640px, calc(100vw - 32px)); max-height: min(86vh, 860px);
  background: #fff; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  transform: translate(-50%, -46%) scale(0.97); opacity: 0;
  transition: opacity 0.22s ease, transform 0.24s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: var(--shadow-3);
}
.drawer.open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.drawer.wide { width: min(760px, calc(100vw - 32px)); }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.drawer-head > div { min-width: 0; }
.drawer-head > .icon-btn { flex: 0 0 auto; }
.drawer-title { font-size: var(--fs-16); font-weight: 600; }
.drawer-sub { font-size: var(--fs-13); color: var(--text-3); margin-top: 4px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.drawer-body > * { flex: 0 0 auto; }
.drawer-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }
.drawer-section { display: flex; flex-direction: column; gap: 10px; }
.drawer-section > h4 { margin: 0; font-size: var(--fs-12); font-weight: 600; color: var(--text-3); letter-spacing: 0.06em; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.detail-label { font-size: var(--fs-12); color: var(--text-3); }
.detail-value { font-size: var(--fs-14); font-weight: 500; margin-top: 1px; }

/* 订单进度：横向步骤条（5 个点等分，中间一条进度线） */
.dt-steps { position: relative; display: flex; padding-top: 2px; }
.dt-steps-track { position: absolute; left: 10%; right: 10%; top: 8px; height: 2px; border-radius: 2px; background: var(--line-strong); }
.dt-steps-fill { position: absolute; left: 10%; top: 8px; height: 2px; border-radius: 2px; background: var(--green); transition: width 0.3s; }
.dt-step { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 16px; text-align: center; }
.dt-dot { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); box-sizing: border-box; }
.dt-step.done .dt-dot { border-color: var(--green); background: var(--green); }
.dt-step.current .dt-dot { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 4px rgba(238, 108, 43, 0.14); }
.dt-step-name { font-size: var(--fs-12); color: var(--text-3); }
.dt-step.done .dt-step-name { color: var(--text-2); }
.dt-step.current .dt-step-name { color: var(--brand-strong); font-weight: 600; }
.dt-step-time { display: inline-flex; align-items: baseline; gap: 5px; font-size: var(--fs-11); color: var(--text-3); font-variant-numeric: tabular-nums; }
.timeline { position: relative; padding-left: 20px; display: flex; flex-direction: column; gap: 16px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1.5px; background: var(--line-strong); }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -20px; top: 3px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong); box-sizing: border-box; }
.tl-item.done::before { border-color: var(--green); background: var(--green); }
.tl-item.current::before { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 4px rgba(238, 108, 43, 0.14); }
.tl-title { font-size: var(--fs-13); font-weight: 500; }
.tl-time { font-size: var(--fs-12); color: var(--text-3); margin-top: 1px; }

.item-row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-13); padding: 8px 0; }
.item-row span:first-child { color: var(--text-2); }
.item-row .qty { color: var(--text-3); }
.money { display: flex; justify-content: space-between; font-size: var(--fs-13); padding: 4px 0; color: var(--text-2); }
.money.total { border-top: 1px dashed var(--line-strong); margin-top: 6px; padding-top: 10px; color: var(--text); font-weight: 600; font-size: var(--fs-15); }

/* ---------------- 订单列表（8 列，密度高一点） ---------------- */
.tbl-dense th { padding: 8px 12px; }
.tbl-dense td { padding: 10px 12px; vertical-align: top; }
.o-id { display: flex; align-items: center; gap: 6px; font-size: var(--fs-13); font-weight: 600; font-variant-numeric: tabular-nums; }
.o-ch { height: 18px; line-height: 18px; padding: 0 5px; border-radius: 4px; background: var(--gray-soft); color: var(--text-2); font-size: var(--fs-11); font-weight: 500; }
.o-line { font-size: var(--fs-13); }
.o-goods .o-line { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.o-goods-in { display: flex; align-items: center; gap: 10px; }
.o-thumb { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 7px; background-color: var(--gray-soft); background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(23, 27, 34, 0.05); }
.o-thumb-empty { background-image: linear-gradient(140deg, var(--surface-2), var(--line)); }
.o-amt { font-size: var(--fs-14); font-weight: 600; }
.o-seat { font-size: var(--fs-13); color: var(--text-2); }

/* ---------------- 订单详情：双列详情面板 ---------------- */
.drawer.dt-drawer { width: min(880px, calc(100vw - 32px)); }
.dt-drawer .drawer-head { padding: 18px 20px 14px; }
.drawer-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dt-drawer .drawer-body { gap: 12px; padding: 16px 20px 18px; }

.dt-panel { min-width: 0; padding: 12px 14px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.dt-panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 10px; margin-bottom: 8px; }
.dt-panel-head h4 { margin: 0; font-size: var(--fs-12); font-weight: 600; color: var(--text-3); letter-spacing: 0.06em; }
.dt-hint { font-size: var(--fs-12); color: var(--text-3); }
.dt-panel.tone-red { background: var(--red-soft); border-color: #f6d5d5; }
.dt-panel.tone-red .dt-panel-head h4 { color: #b81f1f; }
.dt-panel.tone-gray { background: var(--surface-2); }

.dt-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.dt-hero-amt { flex: 0 0 auto; min-width: 216px; }
.dt-hero-label { font-size: var(--fs-12); color: var(--text-3); }
.dt-amt { font-size: var(--fs-28); font-weight: 600; line-height: 1.15; margin-top: 2px; }
.dt-hero-note { font-size: var(--fs-12); color: var(--text-3); margin-top: 4px; }
.dt-facts { flex: 1 1 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dt-fact { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 0 14px; border-left: 1px solid var(--line-strong); }
.dt-fact:first-child { padding-left: 0; border-left: 0; }
.dt-fact span { font-size: var(--fs-11); color: var(--text-3); }
.dt-fact b { font-size: var(--fs-13); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 键值行：标签在左、值在右 */
.dt-rows { display: grid; grid-template-columns: minmax(0, 1fr); }
.dt-rows.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.dt-rows.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
.dt-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 24px; padding: 3px 0; font-size: var(--fs-13); border-bottom: 1px dashed var(--line); }
.dt-row > span { flex: 0 0 auto; font-size: var(--fs-12); color: var(--text-3); }
.dt-row > b { min-width: 0; font-weight: 500; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; word-break: break-word; }
.dt-row.span-all { grid-column: 1 / -1; }

.dt-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.dt-p-cust { grid-column: 1 / -1; }

.dt-tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-13); }
.dt-tbl th { padding: 0 0 6px; border-bottom: 1px solid var(--line); background: none; color: var(--text-3); font-size: var(--fs-12); font-weight: 500; text-align: left; }
.dt-tbl th.r, .dt-tbl td.r { text-align: right; }
.dt-tbl td { padding: 7px 0; border-bottom: 1px dashed var(--line); vertical-align: middle; white-space: normal; }
.dt-tbl tr:last-child td { border-bottom: 0; padding-bottom: 0; }
/* 订单抽屉头部的操作按钮：放右上角，不占底部一条 */
.drawer-head-main { min-width: 0; }
.drawer-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.dt-item { display: flex; align-items: center; gap: 10px; }
.dt-thumb { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 9px; background-color: var(--gray-soft); background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(23, 27, 34, 0.05); }
.dt-name { font-weight: 500; }
.dt-spec { font-size: var(--fs-12); color: var(--text-3); margin-top: 2px; }
.dt-gift { margin-left: 6px; padding: 0 4px; border-radius: 3px; background: var(--green-soft); color: var(--green); font-size: var(--fs-11); font-weight: 500; }
.dt-money { display: flex; flex-direction: column; }
.dt-mrow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: var(--fs-13); color: var(--text-2); }
.dt-mrow em { margin-left: 6px; font-style: normal; font-size: var(--fs-12); color: var(--text-3); }
.dt-mrow b { font-weight: 500; color: var(--text); }
.dt-mrow.total { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line-strong); font-size: var(--fs-15); font-weight: 600; color: var(--text); }
.dt-mrow.total b { font-size: var(--fs-15); font-weight: 600; }
.dt-mrow.refund b { color: var(--red); }

/* 顾客条：头像 + 会员标签 + 4 个会员指标 */
.dt-cust { display: flex; align-items: center; gap: 14px; }
.dt-cust-avatar { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-size: var(--fs-18); font-weight: 600; }
.dt-cust-avatar.is-guest { background: var(--gray-soft); color: var(--text-3); }
.dt-cust-main { flex: 0 1 auto; min-width: 160px; }
.dt-cust-name { display: flex; align-items: center; gap: 6px; font-size: var(--fs-14); font-weight: 600; }
.dt-cust-phone { margin-top: 2px; font-size: var(--fs-12); color: var(--text-3); font-variant-numeric: tabular-nums; }
.dt-cust-stats { flex: 1 1 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dt-cust-stats > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-left: 14px; border-left: 1px solid var(--line); }
.dt-cust-stats > div:first-child { padding-left: 0; border-left: 0; }
.dt-cust-stats span { font-size: var(--fs-11); color: var(--text-3); }
.dt-cust-stats b { font-size: var(--fs-13); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 进度节点之间的间隔（+N 分）直接显示，不再塞进 title */
.dt-progress { padding-bottom: 10px; }
.dt-progress .dt-panel-head { margin-bottom: 2px; }
.dt-progress .dt-steps { padding-top: 4px; }
.dt-step-gap { font-style: normal; font-size: var(--fs-10); color: var(--green); }

.dt-note { padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: var(--fs-13); color: var(--text-2); line-height: var(--lh-base); }
.dt-panel.tone-gray .dt-note { background: var(--surface); }
.dt-rating { display: flex; align-items: center; gap: 10px; }
.dt-stars { color: #e8a317; letter-spacing: 2px; font-size: var(--fs-15); }
.dt-rating-text { font-size: var(--fs-13); color: var(--text-2); }
.dt-logs { display: flex; flex-direction: column; }
.dt-log { display: grid; grid-template-columns: 84px 96px minmax(0, 1fr); gap: 12px; padding: 5px 0; font-size: var(--fs-12); color: var(--text-2); border-bottom: 1px dashed var(--line); }
.dt-log:last-child { border-bottom: 0; padding-bottom: 0; }
.dt-log-time { color: var(--text-3); font-variant-numeric: tabular-nums; }
.dt-log-who { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-gap { margin-left: 6px; font-size: var(--fs-11); font-weight: 400; color: var(--text-3); font-style: normal; }

@media (max-width: 720px) {
  .dt-drawer .drawer-head { padding: 16px; }
  .dt-drawer .drawer-body { gap: 10px; padding: 14px 14px 16px; }
  .dt-hero { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
  .dt-hero-amt { min-width: 0; }
  .dt-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
  .dt-fact { padding: 0 10px; }
  .dt-fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .dt-fact:nth-child(even) { padding-right: 0; }
  .dt-grid { display: flex; flex-direction: column; gap: 10px; }
  .dt-p-items { order: 1; }
  .dt-p-money { order: 2; }
  .dt-p-cust { order: 3; }
  .dt-p-order { order: 4; }
  .dt-p-pay { order: 5; }
  .dt-rows.cols-2, .dt-rows.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .dt-panel { padding: 12px; }
  .dt-cust { flex-wrap: wrap; gap: 10px 12px; }
  .dt-cust-main { flex: 1 1 140px; min-width: 0; }
  .dt-cust-stats { flex-basis: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
  .dt-cust-stats > div { padding-left: 0; border-left: 0; }
  .dt-step-gap { display: none; }
  .dt-rating { flex-direction: column; align-items: flex-start; gap: 4px; }
  .dt-log { grid-template-columns: 72px 84px minmax(0, 1fr); gap: 8px; }
}

/* ============ 浮层 ============ */
.popover {
  position: fixed; z-index: 70; min-width: 208px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-2); padding: 6px;
  animation: pop 0.14s ease both;
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(0.99); } to { opacity: 1; transform: none; } }
.popover-label { font-size: var(--fs-11); color: var(--text-3); padding: 6px 8px 4px; letter-spacing: 0.06em; }
.popover-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px; border: 0; background: none; border-radius: 7px;
  font-size: var(--fs-13); color: var(--text); cursor: pointer; text-align: left; font-family: inherit;
}
.popover-item:hover { background: #f5f6f8; }
.popover-item .check { margin-left: auto; color: var(--brand); opacity: 0; }
.popover-item.active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.popover-item.active .check { opacity: 1; }
.popover-divider { height: 1px; background: var(--line); margin: 4px 2px; }
.note-item { display: flex; gap: 8px; padding: 8px 8px; border-radius: 7px; }
.note-item:hover { background: #f7f8fa; }
.note-icon { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.note-icon svg { width: 14px; height: 14px; }
.note-text { font-size: var(--fs-13); line-height: var(--lh-snug); }
.note-time { font-size: var(--fs-11); color: var(--text-3); margin-top: 2px; }

/* ============ Toast ============ */
.toast-root { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 90; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; background: #1d232e; color: #fff; font-size: var(--fs-13); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow-2); animation: toastIn 0.22s ease both; }
.toast svg { width: 15px; height: 15px; color: #5ee0a6; flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastOut 0.2s ease both; }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* ============ 遮罩（移动端） ============ */
.scrim { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.34); z-index: 39; animation: fade 0.2s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ============ 响应式 ============ */
@media (max-width: 1180px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1); box-shadow: var(--shadow-3); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 20px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .alerts { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .store-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .device-grid { grid-template-columns: 1fr; }
  .global-search { width: 190px; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1); box-shadow: var(--shadow-3); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .only-desktop { display: none; }
  .list-cards { display: flex; flex-direction: column; }
  .content { padding: 20px 16px 56px; }
  .topbar { padding: 0 16px; gap: 6px; }
  .global-search { display: none; }
  .user-meta { display: none; }
  .store-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mini-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 12px 16px 12px; }
  .kpi-value { font-size: var(--fs-20); }
  .spark { display: none; }
  .page-head { align-items: flex-start; }
  .page-head h1 { font-size: var(--fs-20); }
  .drawer, .drawer.wide { width: calc(100vw - 20px); max-height: 90vh; border-radius: 14px; }
  .drawer-head { padding: 16px; flex-wrap: wrap; }
  .drawer-head:not(:has(.drawer-actions)) { flex-wrap: nowrap; }
  .drawer-actions { width: 100%; justify-content: flex-end; }
  .drawer-body { padding: 16px; }
  .drawer-foot { padding: 12px 16px; }
  .toolbar { padding: 10px 12px; }
  .tabs { padding: 0 12px; gap: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
}
@media (max-width: 720px) {
  .tabs { overflow-x: auto; flex-wrap: nowrap; gap: 16px; padding: 0 12px; scrollbar-width: thin; scrollbar-color: #cbd3de transparent; }
  .tabs::-webkit-scrollbar { display: block; height: 3px; }
  .tabs::-webkit-scrollbar-track { background: transparent; }
  .tabs::-webkit-scrollbar-thumb { background: #d3dae4; border-radius: 99px; }
}
@media (max-width: 560px) {
  .tabs { gap: 8px; }
  .toolbar .field:has(input) { flex: 1 1 100%; }
  .toolbar .field input { width: 100%; }
  .toolbar .link-more { display: none; }
  .setting-row:has(> .input), .setting-row:has(> .setting-inline) { flex-direction: column; align-items: stretch; gap: 8px; }
  .setting-row > .input { width: 100%; }
  .setting-row > .setting-inline { justify-content: flex-start; }
  .feed-row { grid-template-columns: 40px 1fr auto; gap: 8px; padding: 12px 12px; }
  .alert { padding: 12px 16px; }
  .store-stats { gap: 6px; }
}
@media (max-width: 520px) {
  .tabs { gap: 12px; padding: 0 10px; }
  .tab .count { display: none; }
}
@media (min-width: 1181px) { .menu-btn { display: none; } }

/* =========================================================
   店铺装修 / 渠道管理 / 平台应用
   ========================================================= */
:root { --violet: #7c5cf0; --violet-soft: #f1edfe; }

button.link-more { background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }

/* ---- 装修状态条 ---- */
.deco-status { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; font-size: var(--fs-13); }
.deco-status b { font-weight: 600; }
.deco-status .status-dot.ok { color: var(--green); }
.deco-status .status-dot.draft { color: var(--amber); }
.deco-status .spacer { flex: 1; }
.deco-status-meta { font-size: var(--fs-12); color: var(--text-3); }

/* ---- 两栏：编辑区 + 手机预览 ---- */
.deco { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.deco-editor { overflow: hidden; }
.deco-panel { padding: 16px 20px 20px; }

.panel-group + .panel-group { margin-top: 20px; }
.panel-label { margin-bottom: 8px; font-size: var(--fs-13); font-weight: 600; color: var(--text-2); }
.panel-hint { margin-top: 8px; font-size: var(--fs-12); line-height: var(--lh-base); color: var(--text-3); }

.sec-list { display: flex; flex-direction: column; gap: 8px; }
.sec-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.sec-row.off { background: var(--surface-2); }
.sec-row.off .sec-main b { color: var(--text-3); }
.drag { display: inline-flex; color: var(--text-3); }
.drag svg { width: 15px; height: 15px; }
.sec-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sec-main b { font-size: var(--fs-13); font-weight: 500; }
.sec-main i { font-size: var(--fs-12); font-style: normal; color: var(--text-3); }
.sec-ops { display: flex; align-items: center; gap: 2px; }
.icon-btn.xs { width: 26px; height: 26px; border-radius: 7px; }
.icon-btn.xs svg { width: 14px; height: 14px; }
.icon-btn:disabled { opacity: .32; cursor: default; }
.add-block { width: 100%; margin-top: 10px; padding: 10px; border: 1px dashed var(--line-strong); border-radius: 10px; background: none; font-family: inherit; font-size: var(--fs-13); color: var(--text-3); cursor: pointer; }
.add-block:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }

.color-row { display: flex; align-items: center; gap: 10px; }
.color-input { width: 42px; height: 34px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); cursor: pointer; }
.color-input::-webkit-color-swatch-wrapper { padding: 0; }
.color-input::-webkit-color-swatch { border: 0; border-radius: 5px; }
.color-hex { width: 100px; flex: 0 0 100px; font-variant-numeric: tabular-nums; text-transform: uppercase; }
.color-hint { margin-left: auto; font-size: var(--fs-12); color: var(--text-3); }
.swatches.mini { gap: 8px; margin-top: 8px; }
.swatches.mini .swatch { width: 24px; height: 24px; padding: 2px; border-radius: 7px; }
.swatches.mini .swatch span { border-radius: 5px; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 30px; height: 30px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); cursor: pointer; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 6px; }
.swatch.active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.swatch.bg span { box-shadow: inset 0 0 0 1px var(--line-strong); }

.seg { display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.seg-item { padding: 6px 12px; border: 0; border-radius: 7px; background: none; font-family: inherit; font-size: var(--fs-13); color: var(--text-2); cursor: pointer; }
.seg-item.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-1); }

.upload-box { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 24px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--surface-2); font-family: inherit; color: var(--text-3); cursor: pointer; }
.upload-box svg { width: 20px; height: 20px; }
.upload-box b { font-size: var(--fs-13); font-weight: 500; color: var(--text-2); }
.upload-box i { font-size: var(--fs-11); font-style: normal; }
.upload-box:hover { border-color: var(--brand); color: var(--brand); }

.w-full { width: 100%; }
.two-inputs { display: flex; align-items: center; gap: 8px; }
.two-inputs span { font-size: var(--fs-12); color: var(--text-3); }
.hint-box { margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: var(--amber-soft); color: #8a5208; font-size: var(--fs-12); line-height: var(--lh-base); }

/* ---- 手机预览 ---- */
.deco-preview { position: sticky; top: 84px; }
.phone { width: 300px; margin: 0 auto; padding: 8px; border-radius: 38px; background: #1b1f27; box-shadow: 0 22px 44px -22px rgba(16, 24, 40, .45); }
.phone-screen { position: relative; display: flex; flex-direction: column; height: 578px; border-radius: 30px; overflow: hidden; }
.phone-status { display: flex; justify-content: space-between; padding: 8px 20px 2px; font-size: var(--fs-10); color: #171b22; opacity: .75; }
.phone-nav { display: flex; align-items: center; justify-content: space-between; padding: 4px 16px 8px; }
.phone-title { font-size: var(--fs-13); font-weight: 600; }
.phone-capsule { display: inline-flex; align-items: center; gap: 8px; padding: 2px 8px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 12px; font-size: var(--fs-9); opacity: .8; }
.phone-capsule b { font-weight: 400; }
.phone-body { flex: 1; overflow-y: auto; padding: 4px 12px 12px; font-size: var(--fs-12); scrollbar-width: none; }
.phone-body > * { flex: 0 0 auto; }
.phone-body::-webkit-scrollbar { display: none; }
.phone-tabs { display: flex; padding: 8px 6px 8px; border-top: 1px solid var(--line); background: var(--surface); }
.phone-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: var(--fs-9); color: var(--text-3); }
.phone-tab em { font-style: normal; }
.phone-tab-dot { width: 15px; height: 15px; border-radius: 5px; background: currentColor; opacity: .5; }
.phone-tab.active { color: var(--brand); }
.phone-tab.active .phone-tab-dot { opacity: .9; }

.ph-banner { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; padding: 12px; color: #fff; }
.ph-banner-tag { font-size: var(--fs-9); opacity: .8; }
.ph-banner-title { font-size: var(--fs-14); font-weight: 600; }
.ph-banner-price { font-size: var(--fs-12); }
.ph-banner-price s { margin-left: 4px; opacity: .65; }
.ph-notice { margin-bottom: 8px; padding: 6px 8px; border-radius: 8px; font-size: var(--fs-11); }
.ph-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.ph-cat { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: var(--fs-10); color: var(--text-2); }
.ph-cat em { font-style: normal; }
.ph-cat-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-size: var(--fs-12); font-weight: 600; }
.ph-coupon { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding: 8px 10px; border: 1px dashed; border-radius: 9px; font-size: var(--fs-11); }
.ph-list { display: flex; flex-direction: column; gap: 8px; }
.ph-dish { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-1); }
.ph-thumb { flex: none; width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #f8efe7, #efe0d1); }
.ph-dish-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ph-dish-main b { font-size: var(--fs-12); font-weight: 500; }
.ph-dish-main i { font-size: var(--fs-10); font-style: normal; color: var(--text-3); }
.ph-add { flex: none; padding: 4px 8px; border-radius: 20px; font-size: var(--fs-10); color: #fff; }
.ph-store { margin-top: 10px; font-size: var(--fs-10); color: var(--text-2); }
.preview-note { margin: 12px auto 0; text-align: center; font-size: var(--fs-12); color: var(--text-3); }

.phone-ad { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: rgba(15, 18, 25, .4); }
.phone-ad-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-ad-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; width: 80%; aspect-ratio: 9 / 13; padding: 16px; border-radius: 14px; color: #fff; }
.phone-ad-card b { font-size: var(--fs-15); }
.ph-ad-tag { position: absolute; top: 10px; left: 10px; padding: 2px 8px; border-radius: 20px; background: rgba(255, 255, 255, .22); font-size: var(--fs-9); }
.phone-ad-skip { position: absolute; top: 10px; right: 10px; padding: 4px 8px; border-radius: 20px; background: rgba(0, 0, 0, .32); font-size: var(--fs-9); }

/* ---- 渠道 ---- */
.ch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.ch-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ch-card.off { background: var(--surface-2); }
.ch-top { display: flex; align-items: center; gap: 10px; }
.ch-badge { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: var(--fs-12); font-weight: 600; }
.ch-badge.green { background: var(--green-soft); color: var(--green); }
.ch-badge.blue { background: var(--blue-soft); color: var(--blue); }
.ch-badge.gray { background: var(--gray-soft); color: var(--text-3); }
.ch-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ch-name b { font-size: var(--fs-14); font-weight: 600; }
.ch-name i { font-size: var(--fs-11); font-style: normal; color: var(--text-3); }
.ch-desc { margin: 0; min-height: 38px; font-size: var(--fs-12); line-height: var(--lh-base); color: var(--text-2); }
.ch-rows { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.ch-rows div { display: flex; justify-content: space-between; font-size: var(--fs-12); }
.ch-rows span { color: var(--text-3); }
.ch-rows b { font-weight: 500; }
.ch-card.off .ch-rows b { color: var(--text-3); }
.ch-actions { display: flex; gap: 8px; margin-top: auto; }
.ch-actions .btn { flex: 1; justify-content: center; }

.steps { display: flex; flex-direction: column; margin-bottom: 12px; }
.step { position: relative; display: flex; align-items: flex-start; gap: 10px; padding-bottom: 20px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 1px; background: var(--line-strong); }
.step:last-child::before { display: none; }
.step-dot { z-index: 1; flex: none; display: grid; place-items: center; width: 13px; height: 13px; margin-top: 2px; border-radius: 50%; background: var(--line-strong); font-size: var(--fs-9); color: #fff; }
.step.done .step-dot { background: var(--green); }
.step.current .step-dot { background: var(--brand); }
.step b { display: block; font-size: var(--fs-13); font-weight: 500; }
.step i { font-size: var(--fs-11); font-style: normal; color: var(--text-3); }

.qr-row { display: flex; gap: 20px; }
.qr-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qr-box { width: 78px; height: 78px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); }
.qr-item b { font-size: var(--fs-12); font-weight: 500; }
.qr-item i { font-size: var(--fs-11); font-style: normal; color: var(--text-3); }

/* ---- 平台应用 ---- */
.plan-banner { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; padding: 16px 20px; border: 1px solid #fbe3d2; border-radius: 14px; background: linear-gradient(120deg, #fff6ef, #fffdfb 62%); }
.plan-main { flex: 1; min-width: 0; }
.plan-title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-15); font-weight: 600; }
.plan-sub { margin-top: 4px; font-size: var(--fs-12); color: var(--text-2); }
.plan-points { display: flex; gap: 12px; font-size: var(--fs-12); color: var(--text-2); }
.plan-points span { display: inline-flex; align-items: center; gap: 4px; }
.plan-points svg { width: 13px; height: 13px; color: var(--green); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.app-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.app-card[data-app-enter] { cursor: pointer; }
.app-card[data-app-enter]:hover { border-color: var(--brand); box-shadow: 0 8px 24px rgba(238, 108, 43, .08); }
.app-card.is-active .app-name b { color: var(--text); }
.app-top { display: flex; align-items: center; gap: 10px; }
.app-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; }
.app-icon svg { width: 18px; height: 18px; }
.app-icon.amber { background: var(--amber-soft); color: var(--amber); }
.app-icon.red { background: var(--red-soft); color: var(--red); }
.app-icon.blue { background: var(--blue-soft); color: var(--blue); }
.app-icon.teal { background: var(--teal-soft); color: var(--teal); }
.app-icon.violet { background: var(--violet-soft); color: var(--violet); }
.app-icon.green { background: var(--green-soft); color: var(--green); }
.app-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.app-name b { font-size: var(--fs-14); font-weight: 600; }
.app-name i { font-size: var(--fs-11); font-style: normal; color: var(--text-3); }
.app-desc { margin: 0; min-height: 38px; font-size: var(--fs-12); line-height: var(--lh-base); color: var(--text-2); }
.app-mkt-line { display: flex; align-items: center; gap: 8px; margin-top: 2px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: var(--fs-12); color: var(--text-3); cursor: pointer; }
.app-mkt-line:hover { color: var(--text-2); }
.app-mkt-line b { margin-left: auto; color: var(--brand); font-size: var(--fs-12); font-weight: 600; }
.app-mkt-dot { width: 6px; height: 6px; border-radius: 50%; background: #c8beb2; }
.app-mkt-dot.on { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.app-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.app-price { font-size: var(--fs-13); font-weight: 600; font-variant-numeric: tabular-nums; }
.app-price i { font-size: var(--fs-11); font-weight: 400; font-style: normal; color: var(--text-3); }
.app-note { flex: 1; text-align: right; font-size: var(--fs-11); color: var(--text-3); }
.foot-note { margin: 16px 0 0; font-size: var(--fs-12); line-height: var(--lh-loose); color: var(--text-3); }

.app-drawer-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.app-drawer-head .app-icon { width: 46px; height: 46px; border-radius: 13px; }
.app-drawer-head .app-icon svg { width: 22px; height: 22px; }
.app-drawer-head .app-price { font-size: var(--fs-18); }
.drawer-desc { margin: 0 0 16px; font-size: var(--fs-13); line-height: var(--lh-loose); color: var(--text-2); }
.feat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.feat-list li { display: flex; align-items: center; gap: 8px; font-size: var(--fs-13); color: var(--text-2); }
.feat-list svg { flex: none; width: 14px; height: 14px; color: var(--green); }

/* ---- 响应式 ---- */
@media (max-width: 1180px) {
  .ch-grid, .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-points { display: none; }
}
@media (max-width: 980px) {
  .deco { grid-template-columns: minmax(0, 1fr); }
  .deco-preview { position: static; order: -1; }
  .phone { height: auto; }
  .phone-screen { height: 520px; }
}
@media (max-width: 860px) {
  .ch-grid, .app-grid { grid-template-columns: minmax(0, 1fr); }
  .deco-status { flex-wrap: wrap; }
  .deco-status .spacer { display: none; }
  .plan-banner { flex-wrap: wrap; }
  .qr-row { justify-content: space-between; }
  .app-desc, .ch-desc { min-height: 0; }
}
@media (max-width: 560px) {
  .deco-panel { padding: 16px; }
  .phone { width: 100%; max-width: 320px; }
  .seg { width: 100%; }
  .seg-item { flex: 1; text-align: center; }
  .two-inputs { flex-wrap: wrap; }
}

/* 抽屉内的分段控件：避免被 flex 拉伸到整行 */
.drawer-section > .seg, .drawer-body > .seg { align-self: flex-start; }
@media (max-width: 560px) {
  .drawer-section > .seg, .drawer-body > .seg { align-self: stretch; }
}

/* 移动端：编辑器优先，预览跟在后面 */
@media (max-width: 980px) {
  .deco-preview { order: 2; }
  .phone-screen { height: 480px; }
}
@media (max-width: 560px) {
  .plan-banner { flex-direction: column; align-items: stretch; gap: 12px; }
  .plan-banner .btn { width: 100%; }
  .plan-main { text-align: left; }
}

/* =========================================================
   多规格商品编辑
   ========================================================= */
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-13); color: var(--text-3); margin-bottom: 6px; text-decoration: none; }
.back-link:hover { color: var(--brand); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: var(--fs-13); color: var(--text-2); font-weight: 500; }
.form-hint { font-size: var(--fs-12); color: var(--text-3); font-style: normal; line-height: var(--lh-base); }
.price-input { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.price-input > span { font-size: var(--fs-13); color: var(--text-3); }
.price-input .suffix { margin-left: auto; }
.price-input input { border: 0; outline: 0; background: transparent; font-size: var(--fs-14); width: 100%; font-family: var(--font); color: var(--text); font-variant-numeric: tabular-nums; }
.input.w-full { width: 100%; }

.spec-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 24px; }
.spec-groups { display: flex; flex-direction: column; gap: 10px; }
.spec-group { padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); transition: opacity 0.15s; }
.spec-group.off { opacity: 0.55; }
.spec-head { display: flex; align-items: center; gap: 8px; }
.spec-head b { font-size: var(--fs-14); font-weight: 600; }
.spec-head .spacer { flex: 1; }
.spec-items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.spec-item { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px dashed var(--line-strong); background: var(--surface); color: var(--text-3); font-size: var(--fs-13); font-family: var(--font); cursor: pointer; transition: all 0.14s; }
.spec-item i { font-style: normal; font-size: var(--fs-11); color: var(--text-3); font-variant-numeric: tabular-nums; }
.spec-item.on { border-style: solid; border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.spec-item.on i { color: var(--brand-strong); }
.spec-add { width: 28px; height: 28px; border-radius: 7px; border: 1px dashed var(--line-strong); background: transparent; color: var(--text-3); cursor: pointer; font-size: var(--fs-14); line-height: var(--lh-1); }
.spec-add:hover { border-color: var(--brand); color: var(--brand); }
.spec-note { margin-top: 8px; font-size: var(--fs-11); color: var(--text-3); }
.add-block { height: 40px; border-radius: 10px; border: 1px dashed var(--line-strong); background: transparent; color: var(--text-3); font-size: var(--fs-13); font-family: var(--font); cursor: pointer; }
.add-block:hover { border-color: var(--brand); color: var(--brand); }

.sku-panel { display: flex; flex-direction: column; gap: 10px; }
.sku-head { display: flex; align-items: baseline; gap: 8px; }
.sku-head b { font-size: var(--fs-13); }
.sku-head i { font-style: normal; font-size: var(--fs-12); color: var(--text-3); }
.sku-table { width: 100%; border-collapse: collapse; font-size: var(--fs-13); }
.sku-table th { text-align: left; font-weight: 500; color: var(--text-3); font-size: var(--fs-12); padding: 0 8px 8px; border-bottom: 1px solid var(--line); }
.sku-table td { padding: 8px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.sku-table tr:last-child td { border-bottom: 0; }

/* =========================================================
   营销中心
   ========================================================= */
.tag-amber { background: var(--amber-soft); color: #a45c07; }
.tag-green { background: var(--green-soft); color: #0a7d57; }
.tag-red { background: var(--red-soft); color: #b81f1f; }
.tag-blue { background: var(--blue-soft); color: #2458c4; }
.tag-teal { background: var(--teal-soft); color: #0b7367; }
.tag-violet { background: #f1edfe; color: #5b3fd1; }
.tag-gray { background: var(--gray-soft); color: #5b6270; }

.mkt-menu-input { width: 108px; height: 30px; padding: 0 8px; font-size: var(--fs-12); }
.lc-menu { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.lc-menu > span { font-size: var(--fs-11); color: var(--text-3); flex: none; }
.lc-menu .input { flex: 1; width: auto; }
.mkt-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.mkt-type { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; font-family: var(--font); transition: all 0.14s; text-decoration: none; color: inherit; }
.mkt-type:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.mkt-type.active { border-color: var(--brand); background: var(--brand-soft); }
.mkt-type b { font-size: var(--fs-13); font-weight: 600; margin-top: 2px; }
.mkt-type i { font-style: normal; font-size: var(--fs-11); color: var(--text-3); line-height: var(--lh-base); }
.mkt-type-count { font-style: normal; font-size: var(--fs-11); color: var(--brand-strong); margin-top: 2px; }
.mkt-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.mkt-filter { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-12); color: var(--text-2); cursor: pointer; font-family: var(--font); transition: all 0.14s; }
.mkt-filter:hover { border-color: var(--line-strong); color: var(--text); }
.mkt-filter.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.mkt-filter b { font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.mkt-filter.active b { color: var(--brand-strong); }
.mkt-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; }
.mkt-icon svg { width: 17px; height: 17px; }
.mkt-icon.red { background: var(--red-soft); color: var(--red); }
.mkt-icon.amber { background: var(--amber-soft); color: var(--amber); }
.mkt-icon.green { background: var(--green-soft); color: var(--green); }
.mkt-icon.blue { background: var(--blue-soft); color: var(--blue); }
.mkt-icon.teal { background: var(--teal-soft); color: var(--teal); }
.mkt-icon.violet { background: #f1edfe; color: #5b3fd1; }

.mkt-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mkt-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; font-family: var(--font); transition: all 0.14s; }
.mkt-pick:hover { border-color: var(--brand); background: var(--brand-soft); }
.mkt-pick b { font-size: var(--fs-13); font-weight: 600; margin-top: 2px; }
.mkt-pick i { font-style: normal; font-size: var(--fs-11); color: var(--text-3); line-height: var(--lh-base); }

.rules-card .card-body { display: flex; flex-direction: column; gap: 12px; }
.rule-row { display: grid; grid-template-columns: 48px 1fr; gap: 10px; font-size: var(--fs-13); line-height: var(--lh-base); color: var(--text-2); }
.rule-row b { color: var(--text); font-weight: 600; font-size: var(--fs-12); }
.lc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--fs-12); color: var(--text-3); }

@media (max-width: 1100px) {
  .spec-wrap { grid-template-columns: 1fr; }
  .mkt-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .form-grid { grid-template-columns: 1fr; }
  .mkt-picker { grid-template-columns: 1fr; }
  .rules-card .rule-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 860px) {
  .card-head { flex-wrap: wrap; gap: 8px 12px; }
  .card-head .chip-row { width: 100%; margin: 0; }
  .card-head > .tag { order: 3; }
}

/* =========================================================
   智能管理（AI）
   ========================================================= */
.pill.violet { background: var(--violet-soft); color: var(--violet); }
.input.textarea { height: auto; min-height: 84px; padding: 10px 12px; line-height: var(--lh-base); resize: vertical; }
.app-price i { font-style: normal; font-size: var(--fs-11); color: var(--text-3); margin-left: 2px; }

.ai-empty { padding: 20px; border: 1px dashed var(--line-strong); border-radius: 10px; text-align: center; font-size: var(--fs-13); color: var(--text-3); }
.ai-block { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: var(--fs-13); line-height: var(--lh-loose); color: var(--text-2); }
.ai-block + .ai-block { margin-top: 8px; }
.ai-block b { font-size: var(--fs-12); color: var(--brand-strong); font-weight: 600; }
.ai-block p { margin: 0; }
.ai-src { display: block; margin-top: 2px; font-size: var(--fs-11); color: var(--text-3); }

.ai-loading { display: flex; flex-direction: column; gap: 8px; }
.ai-loading span { height: 44px; border-radius: 10px; background: linear-gradient(90deg, #f1f3f6 25%, #e8ebf0 37%, #f1f3f6 63%); background-size: 400% 100%; animation: ai-shimmer 1.2s ease infinite; }
.ai-loading span:nth-child(2) { height: 36px; width: 88%; }
.ai-loading span:nth-child(3) { height: 30px; width: 62%; }
@keyframes ai-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.ai-actions { display: flex; gap: 8px; margin-top: 6px; }

/* =========================================================
   餐桌管理
   ========================================================= */
.tbl-wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.tbl-card { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .14s, box-shadow .14s, transform .14s; }
.tbl-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); transform: translateY(-1px); }
.tbl-top { display: flex; align-items: center; gap: 8px; }
.tbl-top .spacer { flex: 1; }
.tbl-no { font-size: var(--fs-15); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.tbl-body { display: flex; align-items: center; gap: 12px; }
.qr-box.sm { width: 58px; height: 58px; padding: 4px; flex: none; }
.tbl-meta { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tbl-code { font-size: var(--fs-12); color: var(--text-2); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.tbl-foot { display: flex; gap: 6px; margin-top: auto; padding-top: 2px; }
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 16px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--surface-2); }
.qr-box.big { width: 152px; height: 152px; padding: 10px; }
.big-code { font-size: var(--fs-14); letter-spacing: 0.08em; color: var(--text); font-weight: 600; }
.qr-actions { display: flex; gap: 8px; margin-top: 4px; }
.tbl-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.sum-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.sum-item span { font-size: var(--fs-12); color: var(--text-3); }
.sum-item b { font-size: var(--fs-15); font-weight: 600; font-variant-numeric: tabular-nums; }

@media (max-width: 1180px) {
  .tbl-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .tbl-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 10px; }
  .tbl-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tbl-group { display: flex; align-items: baseline; gap: 8px; padding: 16px 16px 0; }
.tbl-group b { font-size: var(--fs-13); font-weight: 600; }
@media (max-width: 860px) { .tbl-group { padding: 12px 12px 0; } }
.rec-id { font-size: var(--fs-12); font-variant-numeric: tabular-nums; }
.rec-items { font-size: var(--fs-12); color: var(--text-3); max-width: 208px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl-meta { flex: 1; min-width: 0; }
.tbl-code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .drawer .table th, .drawer .table td { padding-left: 6px; padding-right: 6px; }
  .rec-items { max-width: 124px; }
  .page-sub { font-size: var(--fs-12); }
}
@media (max-width: 560px) {
  .tbl-wrap { gap: 8px; padding: 10px 12px 12px; }
  .tbl-card { padding: 12px 12px; gap: 8px; }
  .qr-box.sm { width: 46px; height: 46px; padding: 4px; }
  .tbl-body { gap: 8px; }
  .tbl-code { font-size: var(--fs-11); letter-spacing: 0; }
  .tbl-foot .btn { padding: 0 8px; font-size: var(--fs-12); }
}

/* =========================================================
   用户管理
   ========================================================= */
.user-tags { display: flex; align-items: center; gap: 8px; }
.rec-list { display: flex; flex-direction: column; gap: 2px; }
.rec-line { display: grid; grid-template-columns: 84px 104px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-12); }
.rec-line:last-child { border-bottom: 0; }
.rec-line span { color: var(--text-3); font-size: var(--fs-12); }
.rec-line b { font-weight: 600; font-variant-numeric: tabular-nums; font-size: var(--fs-12); }
.rec-line i { font-style: normal; color: var(--text-3); font-size: var(--fs-12); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-line em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.rec-line .in { color: var(--green); }
.table td.in { color: var(--green); }
.avatar.sm { width: 26px; height: 26px; font-size: var(--fs-12); }
.cell-dish .avatar { width: 30px; height: 30px; font-size: var(--fs-12); flex: none; }
@media (max-width: 560px) {
  .rec-line { grid-template-columns: 72px 1fr auto; }
  .rec-line i { display: none; }
}
.lc-cap { font-size: var(--fs-11); color: var(--text-3); margin-top: -4px; }

/* ============ 子页 Tabs ============ */

.neg { color: var(--red); }

/* ============ 员工与角色 ============ */
.role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.role-card { padding: 16px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.role-top { display: flex; align-items: center; gap: 8px; }
.role-top b { font-size: var(--fs-14); font-weight: 600; }
.role-meta { margin-top: 6px; font-size: var(--fs-12); color: var(--text-3); }
.role-desc { margin-top: 8px; font-size: var(--fs-12); color: var(--text-2); line-height: var(--lh-base); }
.avatar.sm { width: 30px; height: 30px; font-size: var(--fs-12); }

/* ============ 退款抽屉 ============ */
.refund-list { display: flex; flex-direction: column; gap: 8px; }
.refund-line { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: var(--fs-13); cursor: pointer; }
.refund-line input { width: 15px; height: 15px; accent-color: var(--brand); }
.refund-name { flex: 1; }

@media (max-width: 1180px) { .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .role-grid { grid-template-columns: minmax(0, 1fr); }
  .sub-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .sub-tabs::-webkit-scrollbar { display: none; }
}

/* ============ 应用模块分组 ============ */
.app-mod { margin-bottom: 24px; }
.app-mod-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.app-mod-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-strong); flex: none; }
.app-mod-icon svg { width: 16px; height: 16px; }
.app-mod-text { display: flex; align-items: baseline; gap: 8px; flex: 1; min-width: 0; }
.app-mod-text b { font-size: var(--fs-14); font-weight: 600; }
.app-mod-text span { font-size: var(--fs-12); color: var(--text-3); }
@media (max-width: 860px) {
  .app-mod-text { flex-direction: column; align-items: flex-start; gap: 1px; }
  .app-mod-text span { font-size: var(--fs-12); }
}

/* =========================================================
   应用详情页
   ========================================================= */
.app-head { align-items: flex-start; }
.app-title { display: flex; align-items: flex-start; gap: 16px; }
.app-title .app-icon { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.app-title .app-icon svg { width: 22px; height: 22px; }
.app-title-main { min-width: 0; }
.app-title-main h1 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-20); }
.app-title-main h1 .pill { font-size: var(--fs-11); }
.app-title-main p { margin-top: 4px; font-size: var(--fs-13); color: var(--text-3); }

.input.readonly { display: flex; align-items: center; height: 38px; background: var(--surface-2); color: var(--text-2); }
.setting-main { flex: 1; min-width: 0; }

@media (max-width: 860px) {
  .app-head { flex-direction: column; gap: 12px; }
  .app-title-main h1 { font-size: var(--fs-18); }
  .app-head .page-actions { width: 100%; }
  .app-head .page-actions .btn { flex: 1; }
}
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager-total { font-size: var(--fs-12); color: var(--text-3); }
.pager-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.pg { min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; font-size: var(--fs-13); color: var(--text-2); cursor: pointer; font-family: var(--font); }
.pg:hover { border-color: var(--brand); color: var(--brand); }
.pg.active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.pg:disabled { opacity: .45; cursor: not-allowed; }
.pg-dots { padding: 0 4px; color: var(--text-3); font-size: var(--fs-12); }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.board-col { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.board-col header { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: var(--fs-13); font-weight: 600; border-bottom: 1px solid var(--line); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.amber { background: var(--amber); } .dot.blue { background: var(--blue); } .dot.green { background: var(--green); }
.board-body { display: flex; flex-direction: column; gap: 8px; padding: 10px; min-height: 320px; }
.tk { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); }
.tk-top { display: flex; align-items: center; justify-content: space-between; }
.tk-top b { font-size: var(--fs-14); }
.tk-min { font-size: var(--fs-12); color: var(--text-3); font-variant-numeric: tabular-nums; }
.tk-min.late { color: var(--red); font-weight: 600; }
.tk-items { font-size: var(--fs-12); color: var(--text-2); margin: 4px 0 8px; line-height: var(--lh-base); }
.tk-foot { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-11); color: var(--text-3); }
.tk-empty { font-size: var(--fs-12); color: var(--text-3); text-align: center; padding: 24px 0; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.auth-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: var(--fs-13); }
.auth-row span { color: var(--text-3); }
.auth-row b { font-weight: 500; }
.auth-row b.ok { color: var(--green); } .auth-row b.warn { color: var(--amber); }
@media (max-width: 980px) { .board { grid-template-columns: 1fr; } .board-body { min-height: 0; } .auth-grid { grid-template-columns: 1fr; } }
.kpi-sub { font-size: var(--fs-12); color: var(--text-3); }
@media (max-width: 980px) { .svc-grid { grid-template-columns: 1fr !important; } }

/* ---- 装修编辑器 / 图库 ---- */
.sec-block { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.sec-block > .sec-row { border: 0; border-radius: 0; }
.sec-block.off { background: var(--surface-2); }
.sec-block.off .sec-main b { color: var(--text-3); }
.sec-fields { padding: 4px 12px 12px; border-top: 1px dashed var(--line); }
.sec-fields .panel-group { margin-top: 10px; }
.deco-items { display: flex; flex-direction: column; }
.deco-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.deco-item:last-child { border-bottom: 0; }
.deco-thumb { width: 92px; height: 70px; flex: 0 0 auto; border: 1px dashed var(--line); border-radius: 9px; background: var(--surface-2) center/cover no-repeat; color: var(--text-3); font-size: var(--fs-18); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.deco-thumb span { font-size: var(--fs-10); }
.deco-thumb.has-img { border-style: solid; }
.deco-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.deco-item-ops { display: flex; gap: 6px; justify-content: flex-end; }
.deco-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: var(--fs-13); color: var(--text-2); }
.deco-checks label { display: flex; align-items: center; gap: 6px; }
.ph-banner-btn { align-self: flex-start; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.22); font-size: var(--fs-10); }
.asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.asset-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); text-align: left; }
.asset-img { aspect-ratio: 4 / 3; background: var(--surface-2) center/cover no-repeat; }
.asset-meta { padding: 8px 8px 4px; display: flex; flex-direction: column; gap: 2px; }
.asset-meta b { font-size: var(--fs-13); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-meta i { font-size: var(--fs-11); color: var(--text-3); font-style: normal; }
.asset-ops { display: flex; gap: 6px; padding: 4px 8px 8px; flex-wrap: wrap; }
.asset-card.pick { cursor: pointer; padding: 0; }
.asset-group-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.asset-groups { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.asset-group-tools { display: flex; gap: 6px; }
.group-chip { border: 1px solid var(--line); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: var(--fs-13); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all .16s; }
.group-chip em { font-style: normal; font-size: var(--fs-11); color: var(--text-3); background: var(--surface-2); border-radius: 999px; padding: 1px 6px; }
.group-chip:hover { border-color: #e7b593; color: var(--brand); }
.group-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.group-chip.active em { background: rgba(255,255,255,.2); color: #fff; }
.asset-tag { align-self: flex-start; font-size: var(--fs-11); color: var(--brand); background: var(--brand-soft); border-radius: 4px; padding: 1px 4px; margin-bottom: 1px; }
.asset-group-note { margin-top: 10px; font-size: var(--fs-12); color: var(--text-3); }
.group-picker { width: min(460px, 94vw); }
.group-pick-list { display: flex; flex-direction: column; gap: 6px; }
.group-pick-item { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; background: var(--surface); font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.group-pick-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-pick-item em { font-style: normal; font-size: var(--fs-11); color: var(--text-3); }
.group-pick-item b { font-size: var(--fs-10); color: var(--brand); background: var(--brand-soft); border-radius: 4px; padding: 2px 4px; }
.group-pick-item.active, .group-pick-item:hover { border-color: var(--brand); background: #fffaf5; }
.picker-groups { margin-bottom: 10px; }
.asset-card.pick:hover { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.picker-mask { position: fixed; inset: 0; z-index: 80; background: rgba(20,16,12,.45); display: flex; align-items: center; justify-content: center; padding: 20px; }
.picker { width: min(920px, 94vw); max-height: 86vh; background: var(--surface); border-radius: 14px; box-shadow: 0 24px 80px rgba(0,0,0,.28); display: flex; flex-direction: column; overflow: hidden; }
.picker-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px; border-bottom: 1px solid var(--line); }
.picker-body { padding: 16px; overflow: auto; }
.picker-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
@media (max-width: 980px) { .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .deco-item { flex-wrap: wrap; } .deco-thumb { width: 100%; height: 120px; } }

/* 链接选择器 */
.link-pick { width: 100%; height: 34px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0 10px; background: #fff; color: var(--text); font: inherit; font-size: var(--fs-13); display: flex; align-items: center; gap: 8px; text-align: left; cursor: pointer; transition: border-color 0.16s, box-shadow 0.16s; }
.link-pick:hover { border-color: #f0b68c; }
.link-pick-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-pick-arrow { width: 15px; height: 15px; color: var(--text-3); display: flex; flex: none; }
.link-pick-arrow svg { width: 15px; height: 15px; }
.link-picker { width: min(680px, 94vw); }
.link-tabs { display: flex; gap: 2px; padding: 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.link-tab { border: 0; background: none; padding: 10px 12px; color: var(--text-2); font: inherit; font-size: var(--fs-13); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.link-tab:hover { color: var(--text); }
.link-tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.link-search { margin: 12px 16px 0; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; display: flex; align-items: center; gap: 8px; background: #fff; }
.link-search svg { width: 15px; height: 15px; color: var(--text-3); flex: none; }
.link-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: var(--fs-13); color: var(--text); }
.link-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; min-height: 180px; }
.link-item { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; text-align: left; cursor: pointer; font: inherit; }
.link-item:hover { border-color: #f0b68c; }
.link-item.active { border-color: var(--brand); background: var(--brand-soft); }
.link-item-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.link-item-body b { font-size: var(--fs-13); font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-item-body i { font-size: var(--fs-11); font-style: normal; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-check { width: 16px; height: 16px; color: var(--brand); flex: none; }
.link-check svg { width: 16px; height: 16px; }
@media (max-width: 720px) { .link-list { grid-template-columns: 1fr; } }

/* 底部导航图标选择 */
.nav-icon-trigger {
  flex: 0 0 126px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  cursor: pointer;
  text-align: left;
}
.nav-icon-trigger:hover { border-color: var(--brand); }
.nav-icon-preview {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.nav-icon-preview.lg { width: 44px; height: 44px; }
.nav-icon-emoji { font-size: var(--fs-20); line-height: var(--lh-1); color: var(--brand); }
.nav-icon-emoji.sm { font-size: var(--fs-14); }
.nav-icon-emoji.lg { font-size: var(--fs-28); }
.nav-icon-img { width: 24px; height: 24px; object-fit: contain; border-radius: 5px; color: var(--text-2); }
.nav-icon-preview .nav-icon-img { color: var(--brand); }
.nav-icon-cell.active .nav-icon-img { color: var(--brand); }
.phone-tab-ico .nav-icon-img { color: inherit; }
.nav-icon-img.sm { width: 15px; height: 15px; }
.nav-icon-img.lg { width: 42px; height: 42px; }
.nav-icon-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nav-icon-copy b { font-size: var(--fs-12); color: var(--text); line-height: var(--lh-tight); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-icon-copy i { font-size: var(--fs-10); color: var(--text-3); font-style: normal; }
.phone-tab-ico { width: 15px; height: 15px; display: flex; align-items: center; justify-content: center; }
.phone-tab-ico .nav-icon-emoji { font-size: var(--fs-13); }
.phone-tab-ico .nav-icon-img { width: 15px; height: 15px; }
.nav-icon-picker { width: min(520px, 94vw); }
.nav-icon-current { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.nav-icon-current > div { display: flex; flex-direction: column; gap: 4px; }
.nav-icon-current b { font-size: var(--fs-14); color: var(--text); }
.nav-icon-current i { font-size: var(--fs-12); color: var(--text-3); font-style: normal; }
.nav-icon-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.nav-icon-cell { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.nav-icon-cell span { font-size: var(--fs-20); line-height: var(--lh-1); color: var(--text-2); }
.nav-icon-cell em { font-size: var(--fs-11); font-style: normal; color: var(--text-3); }
.nav-icon-cell:hover { border-color: var(--brand); }
.nav-icon-cell.active { border-color: var(--brand); background: var(--brand-soft); }
.nav-icon-cell.active span, .nav-icon-cell.active em { color: var(--brand); }
@media (max-width: 900px) {
  .nav-icon-trigger { flex-basis: 108px; }
  .nav-icon-grid { grid-template-columns: repeat(4, 1fr); }
}
.nav-icon-cell .nav-icon-img { width: 26px; height: 26px; }
.nav-icon-cell.active .nav-icon-img { opacity: 1; }

/* 店铺装修：结构列表 + 单组件编辑 */
.deco-page { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 20px; align-items: start; }
.deco-structure { position: sticky; top: 16px; border-right: 1px solid var(--line); padding-right: 16px; }
.structure-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.structure-head b { font-size: var(--fs-13); color: var(--text); }
.structure-head span { font-size: var(--fs-11); color: var(--text-3); }
.structure-list { display: flex; flex-direction: column; gap: 4px; }
.structure-item { display: flex; align-items: center; gap: 8px; padding: 8px 8px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; transition: background .15s, border-color .15s; }
.structure-item:hover { background: var(--surface-2); }
.structure-item.active { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 28%, transparent); }
.structure-item.off { opacity: .58; }
.structure-ico { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; background: var(--surface); color: var(--text-2); font-size: var(--fs-14); flex: 0 0 auto; }
.structure-item.active .structure-ico { background: #fff; color: var(--brand); }
.structure-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.structure-main b { font-size: var(--fs-13); line-height: var(--lh-tight); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.structure-main i { font-size: var(--fs-11); font-style: normal; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.structure-index { font-size: var(--fs-10); color: var(--text-3); font-variant-numeric: tabular-nums; }
.structure-item.active .structure-index { color: var(--brand); }
.structure-tip { margin-top: 12px; font-size: var(--fs-11); line-height: var(--lh-base); color: var(--text-3); }
.deco-detail { min-width: 0; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.detail-title { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.detail-ico { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); font-size: var(--fs-18); flex: 0 0 auto; }
.detail-title h3 { margin: 0 0 4px; font-size: var(--fs-15); color: var(--text); }
.detail-title p { margin: 0; font-size: var(--fs-12); line-height: var(--lh-base); color: var(--text-3); }
.detail-ops { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.detail-body { padding-top: 2px; }
.detail-hidden { margin-top: 12px; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); color: var(--text-3); font-size: var(--fs-12); line-height: var(--lh-base); }
@media (max-width: 1320px) {
  .deco-page { grid-template-columns: minmax(0, 1fr); }
  .deco-structure { position: static; border-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .structure-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .structure-item { min-width: 0; }
  .structure-tip { display: none; }
}
@media (max-width: 560px) {
  .structure-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .structure-item { min-width: 0; }
  .detail-head { flex-wrap: wrap; }
}

/* 店铺装修：页面风格 / 导航栏 / 开屏广告 */
.style-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.setting-card { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 16px; min-width: 0; }
.setting-card-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.setting-ico { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); font-size: var(--fs-14); flex: 0 0 auto; }
.setting-card-head b { display: block; font-size: var(--fs-13); line-height: var(--lh-snug); color: var(--text); }
.setting-card-head i { display: block; margin-top: 2px; font-size: var(--fs-11); line-height: var(--lh-snug); font-style: normal; color: var(--text-3); }
.setting-card .panel-group:last-child { margin-bottom: 0; }
.setting-card .panel-hint { margin-top: 8px; }
.setting-card .seg { display: flex; width: 100%; }
.setting-card .seg-item { flex: 1; min-width: 0; }
.style-grid .color-row { margin-bottom: 0; }
.style-grid .swatches.mini { margin-top: 8px; }

.nav-top-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.nav-split { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px; align-items: start; }
.nav-tab-list { border-right: 1px solid var(--line); padding-right: 12px; }
.nav-tab-item { display: flex; align-items: center; gap: 8px; padding: 8px 8px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; }
.nav-tab-item:hover { background: var(--surface-2); }
.nav-tab-item.active { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 26%, transparent); }
.nav-tab-thumb { width: 28px; height: 28px; border-radius: 7px; background: var(--surface); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.nav-tab-thumb .nav-icon-img { width: 22px; height: 22px; object-fit: contain; }
.nav-tab-copy { flex: 1; min-width: 0; }
.nav-tab-copy b { display: block; font-size: var(--fs-12); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-tab-copy i { display: block; margin-top: 2px; font-size: var(--fs-10); font-style: normal; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-tab-index { font-size: var(--fs-10); color: var(--text-3); font-variant-numeric: tabular-nums; }
.nav-tab-item.active .nav-tab-index { color: var(--brand); }
.nav-editor { min-width: 0; }
.nav-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.nav-editor-head span { font-size: var(--fs-11); color: var(--text-3); }
.nav-editor-head h3 { margin: 2px 0 0; font-size: var(--fs-15); color: var(--text); }
.nav-editor-badge { padding: 4px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-3); font-size: var(--fs-11); white-space: nowrap; }
.nav-icon-trigger-lg { width: 100%; }

.ad-layout { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 12px; align-items: start; }
.ad-controls { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ad-media { position: sticky; top: 16px; }
.ad-cover { display: block; width: 100%; aspect-ratio: 9 / 13; max-height: 300px; padding: 0; border: 1px dashed var(--line-strong); border-radius: 9px; background: var(--surface-2); overflow: hidden; cursor: pointer; }
.ad-cover.has-img { border-style: solid; }
.ad-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-cover-empty { width: 100%; height: 100%; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-3); }
.ad-cover-empty svg { width: 22px; height: 22px; }
.ad-cover-empty b { font-size: var(--fs-12); color: var(--text-2); }
.ad-cover-empty i { font-size: var(--fs-11); font-style: normal; }
.ad-change { width: 100%; margin-top: 8px; }
@media (max-width: 1120px) {
  .style-grid { grid-template-columns: minmax(0, 1fr); }
  .nav-split { grid-template-columns: minmax(0, 1fr); }
  .nav-tab-list { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 10px; }
  .nav-tab-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .nav-tab-list .structure-head, .nav-tab-list .structure-tip { grid-column: 1 / -1; }
  .ad-layout { grid-template-columns: minmax(0, 1fr); }
  .ad-media { position: static; }
}
@media (max-width: 560px) {
  .nav-top-grid { grid-template-columns: minmax(0, 1fr); }
  .nav-tab-list { grid-template-columns: minmax(0, 1fr); }
}

/* 图库：分组侧栏 + 紧凑素材网格 */
.gallery-shell { display: grid; grid-template-columns: 218px minmax(0, 1fr); padding: 0; min-height: max(560px, calc(100vh - 230px)); }
.gallery-side { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px; background: var(--surface-2); border-right: 1px solid var(--line); }
.gallery-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 2px; }
.gallery-side-head b { font-size: var(--fs-13); color: var(--text); }
.gallery-group-list { display: flex; flex-direction: column; gap: 2px; }
.gallery-group { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text-2); font: inherit; font-size: var(--fs-13); text-align: left; cursor: pointer; }
.gallery-group:hover { background: var(--surface); }
.gallery-group.active { background: var(--surface); border-color: var(--line); color: var(--brand); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.gallery-group-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); flex: 0 0 auto; }
.gallery-group.active .gallery-group-dot { background: var(--brand); }
.gallery-group-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-group em { margin-left: auto; font-style: normal; font-size: var(--fs-11); line-height: var(--lh-1); color: var(--text-3); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px; }
.gallery-group.active em { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.gallery-new-group { margin-top: 2px; display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; padding: 8px 8px; border: 1px dashed var(--line-strong); border-radius: 8px; background: transparent; color: var(--text-3); font: inherit; font-size: var(--fs-12); cursor: pointer; }
.gallery-new-group:hover { color: var(--brand); border-color: var(--brand); background: var(--surface); }
.gallery-new-group svg { width: 13px; height: 13px; }
.gallery-group-actions { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.gallery-group-actions > span { font-size: var(--fs-11); color: var(--text-3); margin-right: auto; }
.gallery-mini { border: 0; background: none; padding: 0; font: inherit; font-size: var(--fs-12); color: var(--text-3); cursor: pointer; }
.gallery-mini:hover { color: var(--brand); }
.gallery-mini.danger { color: var(--red); }
.gallery-mini:disabled { opacity: .35; cursor: not-allowed; }
.gallery-side-tip { margin-top: auto; padding: 8px 10px; border-radius: 8px; background: var(--surface); color: var(--text-3); font-size: var(--fs-11); line-height: var(--lh-base); }
.gallery-main { min-width: 0; padding: 16px 20px; display: flex; flex-direction: column; }
#gallery-results { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.gallery-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.gallery-search { flex: 1; min-width: 220px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text-3); }
.gallery-search:focus-within { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 2px var(--brand-soft); }
.gallery-search svg { width: 15px; height: 15px; flex: 0 0 auto; }
.gallery-search input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: var(--fs-13); }
.gallery-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.gallery-count { font-size: var(--fs-12); color: var(--text-3); white-space: nowrap; }
.gallery-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1180px) { .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); transition: border-color .16s, box-shadow .16s, transform .16s; }
.gallery-card:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: 0 6px 16px rgba(70, 40, 20, .08); transform: translateY(-1px); }
.gallery-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-badge { position: absolute; left: 6px; top: 6px; max-width: calc(100% - 12px); padding: 3px 6px; border-radius: 5px; background: rgba(255,255,255,.9); color: var(--text-2); font-size: var(--fs-10); line-height: var(--lh-tight); backdrop-filter: blur(4px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-ops { position: absolute; right: 5px; top: 5px; display: flex; gap: 3px; opacity: 0; transform: translateY(-2px); transition: opacity .15s, transform .15s; }
.gallery-card:hover .gallery-ops { opacity: 1; transform: none; }
.gallery-op { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: rgba(255,255,255,.94); color: var(--text-2); cursor: pointer; }
.gallery-op:hover { color: var(--brand); background: #fff; }
.gallery-op.danger:hover { color: var(--red); }
.gallery-op svg { width: 12px; height: 12px; }
.gallery-meta { padding: 7px 9px 8px; display: flex; flex-direction: column; gap: 2px; }
.gallery-meta b { font-size: var(--fs-12); font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-meta i { font-size: var(--fs-10); font-style: normal; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-empty { flex: 1 1 auto; min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text-3); text-align: center; }
.gallery-empty > span svg { width: 34px; height: 34px; opacity: .7; }
.gallery-empty b { font-size: var(--fs-13); color: var(--text-2); }
.gallery-empty i { font-size: var(--fs-11); font-style: normal; }
.gallery-empty .btn { margin-top: 8px; }
.gallery-pager { margin-top: auto; padding: 14px 2px 0; }
@media (hover: none) { .gallery-ops { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .gallery-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  #gallery-results { min-height: 0; }
  .gallery-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .gallery-group-list { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 1px; }
  .gallery-group { width: auto; min-width: 132px; flex: 0 0 auto; background: var(--surface); border-color: var(--line); }
  .gallery-new-group, .gallery-side-tip { display: none; }
  .gallery-group-actions { padding-top: 6px; }
  .gallery-main { padding: 16px; }
}
@media (max-width: 560px) {
  .gallery-main { padding: 12px; }
  .gallery-toolbar { gap: 8px; }
  .gallery-search { order: 1; min-width: 100%; }
  .gallery-actions { order: 2; width: 100%; }
  .gallery-count { margin-right: auto; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gallery-meta { padding: 8px 8px 8px; }
}

/* 营销活动配置表单 */
.mkt-cfg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.mkt-cfg-grid .form-field { margin: 0; }
.mkt-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; }
.mkt-check { display: flex; align-items: center; gap: 8px; font-size: var(--fs-13); color: var(--text-2); min-width: 0; }
.mkt-check input { accent-color: var(--brand); }
.mkt-check span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.mkt-row .input { width: 100%; }
.mkt-row-label { font-size: var(--fs-11); color: var(--text-3); }
@media (max-width: 560px) { .mkt-cfg-grid, .mkt-check-grid, .mkt-row { grid-template-columns: 1fr; } }
.mkt-pickbox { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; background: #fff; }
.mkt-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: var(--fs-12); color: var(--text-3); }
.mkt-pick-head b { color: var(--brand); font-size: var(--fs-13); }
.mkt-pick-head .link-btn { border: 0; background: transparent; color: var(--brand); font-size: var(--fs-12); cursor: pointer; padding: 2px 0; }
.mkt-pick-actions { display: inline-flex; align-items: center; gap: 10px; }
.mkt-pick-toolbar { margin-bottom: 8px; }
.mkt-pick-toolbar .input { width: 100%; height: 32px; font-size: var(--fs-12); }
.mkt-pick-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: var(--fs-12); color: var(--text-3); }
.mkt-pick-foot .link-btn { border: 0; background: transparent; color: var(--brand); font-size: var(--fs-12); cursor: pointer; padding: 2px 0; }
.mkt-pick-pager { display: flex; align-items: center; gap: 6px; }
.mkt-pick-pager .link-btn { border: 0; background: transparent; color: var(--brand); font-size: var(--fs-12); cursor: pointer; padding: 2px 0; }
.mkt-pick-pager .link-btn[disabled] { color: var(--text-4); cursor: default; }
.mkt-pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 260px; overflow: auto; }
.mkt-dish { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.mkt-dish:hover { border-color: #e6b9aa; }
.mkt-dish.is-on, .mkt-dish:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.mkt-dish input { flex: 0 0 auto; accent-color: var(--brand); }
.mkt-dish-emoji { flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: #f7f2ea; font-size: var(--fs-16); }
.mkt-dish-body { min-width: 0; display: flex; flex-direction: column; line-height: var(--lh-tight); }
.mkt-dish-body b { font-size: var(--fs-12); font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-dish-body i { font-style: normal; font-size: var(--fs-11); color: var(--text-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .mkt-pick-grid { grid-template-columns: 1fr; max-height: 300px; } }
.mkt-flash-items { display: flex; flex-direction: column; gap: 8px; }
.mkt-flash-items > .empty { padding: 12px; border: 1px dashed var(--line); border-radius: 9px; font-size: var(--fs-12); color: var(--text-3); text-align: center; }
.mkt-flash-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 0.8fr); align-items: end; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.mkt-flash-name { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-bottom: 2px; }
.mkt-flash-name b { font-size: var(--fs-12); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-flash-name i { font-style: normal; font-size: var(--fs-11); color: var(--text-3); }
.mkt-flash-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: var(--fs-11); color: var(--text-3); }
.mkt-flash-field .input { height: 32px; font-size: var(--fs-12); }
@media (max-width: 560px) {
  .mkt-flash-row { grid-template-columns: 1fr 1fr; }
  .mkt-flash-name { grid-column: 1 / -1; }
}


.mkt-hex { font-size: var(--fs-12); color: var(--text-3); font-variant-numeric: tabular-nums; }
.mkt-data-pre { margin: 0; padding: 12px; border-radius: 8px; background: #f7f8fa; border: 1px solid var(--line); font-size: var(--fs-12); line-height: var(--lh-base); color: var(--text-2); white-space: pre-wrap; word-break: break-all; max-height: 280px; overflow: auto; }
.row-actions { display: flex; gap: 4px; flex-wrap: nowrap; }
.row-actions .btn { padding: 2px 4px; white-space: nowrap; }
.lc-actions { display: flex; gap: 6px; margin-top: 10px; }

/* ============ 菜品：三级菜单 / 状态卡 / 分类管理 ============ */
.subnav-caret {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: none;
  margin-left: 2px;
  border-radius: 6px;
  font-size: 0;
  line-height: 1;
  color: var(--text-3);
  transition: background 0.16s, color 0.16s;
}
.subnav-caret::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.18s ease;
}
.subnav-item.open .subnav-caret::before { transform: translateY(1px) rotate(225deg); }
.subnav-item.open .subnav-caret { color: var(--text-2); }
.subnav-item.active .subnav-caret { color: var(--brand-strong); }
.subnav-caret:hover { background: rgba(16, 24, 40, 0.07); }
.subnav-item.open:not(.active) { color: var(--text); }
.subnav-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 3px 0 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8f9fb;
}
.subnav-subitem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 6px;
  font-size: var(--fs-12);
  color: var(--text-2);
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}
.subnav-subitem::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 50%;
  background: transparent;
}
.subnav-subitem:hover { background: #fff; color: var(--text); }
.subnav-subitem.active {
  background: #fff;
  color: var(--brand-strong);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), inset 0 0 0 1px rgba(238, 108, 43, 0.14);
}
.subnav-subitem.active::before { background: var(--brand); }
.subnav-subitem .subnav-count { font-size: var(--fs-11); }
.subnav-subitem.active .subnav-count { color: var(--brand-strong); }
@media (prefers-reduced-motion: reduce) {
  .subnav-caret { transition: none; }
}

/* 状态卡：既是概览也是快捷入口 */
.dish-kpi {
  display: block;
  padding: 13px 16px;
  color: inherit;
  transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}
.dish-kpi:hover { border-color: #f0b68c; box-shadow: var(--shadow-2); transform: translateY(-1px); }
.dish-kpi.active { border-color: var(--brand); background: linear-gradient(150deg, #fff, #fff7f1); }
.dish-kpi.active .mini-kpi-value { color: var(--brand-strong); }

/* 菜品行 */
.dish-name-btn {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.dish-name-btn:hover .cell-main { color: var(--brand-strong); }
.dish-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.lc-dish-manage { align-items: flex-start; }
.lc-dish-manage .lc-main { display: flex; flex-direction: column; gap: 8px; }
.lc-dish-manage .dish-actions { justify-content: flex-start; }

/* 分类排序 */
.cat-sort-btns { display: flex; flex-direction: column; gap: 2px; }
.cat-sort-btn {
  width: 24px;
  height: 18px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--text-2);
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}
.cat-sort-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-strong); }
.cat-sort-btn:disabled { opacity: 0.35; cursor: not-allowed; }
tr.is-hidden { background: #fafbfc; }
tr.is-hidden td { opacity: 0.62; }
tr.is-hidden .cell-main { text-decoration: none; }

/* 分类页：左表 + 右客户端左栏预览 */
.dish-cat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 12px;
  align-items: start;
}
.cat-preview { position: sticky; top: 84px; }
.cat-preview .card-head { padding: 14px 16px; }
.cat-preview-body { padding: 14px 16px 16px; }
.cat-preview-store {
  font-size: var(--fs-12);
  color: var(--text-3);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.cat-preview-list {
  margin: 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
}
.cat-preview-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-13);
  color: var(--text-2);
}
.cat-preview-item:last-child { border-bottom: 0; }
.cat-preview-item i { margin-left: auto; font-style: normal; font-size: var(--fs-11); color: var(--text-3); }
.cat-preview-item.active {
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--brand);
}
.cat-preview-item.active i { color: var(--brand-strong); }
.cat-preview-foot { font-size: var(--fs-11); line-height: var(--lh-snug); color: var(--text-3); }

@media (max-width: 1180px) {
  .dish-cat-layout { grid-template-columns: 1fr; }
  .cat-preview { position: static; }
}
@media (max-width: 1080px) {
  .subnav-sub { display: none; }
  .subnav-caret { display: none; }
}
@media (max-width: 860px) {
  .dish-kpi { padding: 11px 12px; }
  .dish-kpi .mini-kpi-value { font-size: var(--fs-20); }
  .lc-dish-manage { align-items: center; }
  .lc-dish-manage .dish-actions { justify-content: flex-start; }
  .cat-preview { display: none; }
}

/* 规格组选择抽屉 */
.spec-pick-list { display: flex; flex-direction: column; gap: 0; }
.spec-pick-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.spec-pick-row:last-child { border-bottom: 0; }
.spec-pick-row > div:first-child { flex: 1; min-width: 0; }
.spec-pick-row .cell-sub { margin-top: 3px; }

/* 新建菜品：创建前配置规格与加料 */
.new-spec-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.new-spec-head h4 { margin: 0; font-size: var(--fs-12); font-weight: 600; color: var(--text-3); letter-spacing: 0.06em; }
.new-spec-head .form-hint { margin: 0; }
.new-spec-head .spacer { flex: 1; }
.new-spec-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.new-spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.new-spec-card { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color 0.15s, background 0.15s; }
.new-spec-card.on { border-color: #f0b68c; background: #fffbf8; }
.new-spec-card-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.new-spec-card-head b { font-size: 13px; }
.new-spec-card-head .btn { margin-left: auto; }
.new-spec-card .spec-items { margin-top: 8px; gap: 6px; }
.new-spec-card .spec-item { font-size: 12px; padding: 3px 7px; }
.new-spec-card .form-hint { margin-top: 6px; font-size: 11px; }
.new-spec-preview { margin-top: 2px; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 7px; }
.new-spec-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.new-spec-preview-head b { font-size: 12px; }
.new-spec-preview-list { display: flex; flex-wrap: wrap; gap: 6px; }
.new-spec-sku { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--text-2); font-size: 12px; }
@media (max-width: 560px) {
  .new-spec-list { grid-template-columns: 1fr; }
  .new-spec-head .btn { padding: 0 7px; }
}
.spec-item[title] { cursor: default; }
.spec-edit-btn { height: 26px; padding: 0 9px; font-size: var(--fs-12); }
.spec-edit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 10px; }
.spec-edit-head b { font-size: var(--fs-14); }
.spec-edit-list { display: flex; flex-direction: column; gap: 8px; }
.spec-edit-row { display: grid; grid-template-columns: minmax(0, 1fr) 132px 30px; align-items: center; gap: 8px; }
.spec-edit-row .price-input { width: 132px; }
.spec-edit-row .icon-btn { color: var(--text-3); }
.spec-edit-row .icon-btn:hover { color: var(--red); }
.spec-edit-row .icon-btn svg { width: 15px; height: 15px; }
@media (max-width: 560px) {
  .spec-edit-row { grid-template-columns: minmax(0, 1fr) 104px 30px; }
  .spec-edit-row .price-input { width: 104px; }
}
.cat-sort-btns.inline { flex-direction: row; }
.cat-card-actions { align-items: center; flex-wrap: wrap; gap: 8px; }
.cat-card-actions .spacer { flex: 1; }
.cat-card-actions .switch { flex: none; }

/* 菜品客户端预览 */
.dish-preview-wrap { display: flex; justify-content: center; padding: 6px 0 14px; }
.dish-preview-phone {
  position: relative;
  width: 300px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-2);
}
.dish-preview-cat { font-size: var(--fs-11); color: var(--text-3); margin-bottom: 8px; }
.dish-preview-cover { margin-bottom: 12px; }
.dish-preview-name { font-size: var(--fs-18); font-weight: 700; color: var(--text); }
.dish-preview-desc { margin-top: 5px; font-size: var(--fs-12); line-height: var(--lh-snug); color: var(--text-3); min-height: 34px; }
.dish-preview-meta { margin-top: 8px; font-size: var(--fs-11); color: var(--text-3); }
.dish-preview-price { margin-top: 12px; display: flex; align-items: baseline; gap: 3px; color: var(--brand-strong); }
.dish-preview-price b { font-size: var(--fs-24); font-weight: 700; font-variant-numeric: tabular-nums; }
.dish-preview-price span { font-size: var(--fs-11); color: var(--text-3); }
.dish-preview-status { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.dish-preview-sold {
  position: absolute;
  top: 44px;
  right: 22px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(31, 35, 41, 0.78);
  color: #fff;
  font-size: var(--fs-11);
  letter-spacing: 0.08em;
}

/* 用户模块：多选 / 发券 / 资料与积分 */
.check-col { width: 34px; padding-right: 0 !important; }
.check-col input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; vertical-align: middle; }
.sel-bar { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.sel-bar b { color: var(--brand); font-size: 13px; }
.tpl-picker { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; text-align: left; cursor: pointer; transition: border-color .16s, box-shadow .16s; }
.tpl-picker:hover { border-color: var(--line-strong); }
.tpl-picker.open, .tpl-picker.picked { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(238,108,43,.08); }
.tpl-picker-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.tpl-picker-main b { font-size: 13.5px; color: var(--text); }
.tpl-picker-arrow { display: flex; color: var(--text-3); transition: transform .15s; }
.tpl-picker-arrow svg { width: 16px; height: 16px; }
.tpl-picker.open .tpl-picker-arrow { transform: rotate(180deg); }
.tpl-panel { margin-top: 8px; border: 1px solid var(--line); border-radius: 11px; background: #fff; overflow: hidden; }
.tpl-panel[hidden] { display: none; }
.tpl-search { padding: 10px; border-bottom: 1px solid var(--line); }
.tpl-types { display: flex; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tpl-type { border: 1px solid transparent; background: transparent; color: var(--text-2); font-size: 12px; padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.tpl-type:hover { background: #fff; }
.tpl-type.on { background: #fff; border-color: var(--brand); color: var(--brand); font-weight: 600; }
.tpl-list { max-height: 300px; overflow: auto; padding: 6px; }
.tpl-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.tpl-item:hover { background: var(--surface-2); }
.tpl-item.on { background: rgba(238,108,43,.06); border-color: rgba(238,108,43,.35); }
.tpl-item-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.tpl-item-main b { font-size: 13px; color: var(--text); font-weight: 600; }
.tpl-item-amt { font-size: 13px; font-weight: 700; color: var(--brand); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tpl-item-pick { width: 18px; display: flex; justify-content: center; color: var(--brand); }
.tpl-item-pick svg { width: 15px; height: 15px; }
.tpl-empty, .tpl-loading { padding: 22px 12px; text-align: center; font-size: 12.5px; color: var(--text-3); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tpl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface-2); }
.tpl-foot .btn[hidden] { display: none; }
.issue-opts { display: flex; flex-direction: column; gap: 7px; }
.issue-opt { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; cursor: pointer; background: #fff; }
.issue-opt:has(input:checked) { border-color: var(--brand); background: rgba(238,108,43,.05); }
.issue-opt input { accent-color: var(--brand); }
.issue-qty { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.issue-qty .input { width: 76px; text-align: center; }
.issue-preview { margin-top: 4px; padding: 10px 12px; border-radius: 9px; background: var(--surface-2); font-size: 12.5px; color: var(--text-2); }
.issue-preview b { color: var(--text); font-size: 14px; }
.edit-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-3); }
.edit-field + .edit-field { margin-top: 4px; }
.edit-field .input { color: var(--text); }

/* 状态筛选：自定义下拉，替代系统 select */
.dish-status-field { position: relative; gap: 8px; padding: 0 10px; }
.dish-status-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: var(--fs-13);
  color: var(--text);
  cursor: pointer;
}
.dish-status-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--text-3); }
.dish-status-dot.green { background: #12b76a; }
.dish-status-dot.amber { background: #f79009; }
.dish-status-dot.gray { background: #98a2b3; }
.dish-status-dot.red { background: #f04438; }
.dish-status-count {
  padding: 1px 6px;
  border-radius: 9px;
  background: var(--surface-2);
  font-size: var(--fs-11);
  font-weight: 500;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.dish-status-chev { margin-left: 1px; font-size: 9px; color: var(--text-3); transition: transform 0.16s; }
.dish-status-trigger[aria-expanded="true"] .dish-status-chev { transform: rotate(180deg); }
.dish-status-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 7px);
  left: -1px;
  width: 196px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.14);
  animation: subnavDrop 0.14s ease;
}
.dish-status-menu[hidden] { display: none; }
.dish-status-option {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font: inherit;
  font-size: var(--fs-13);
  color: var(--text-2);
  text-align: left;
  cursor: pointer;
}
.dish-status-option:hover { background: var(--surface-2); color: var(--text); }
.dish-status-option.active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.dish-status-option-count { margin-left: auto; font-size: var(--fs-11); color: var(--text-3); font-variant-numeric: tabular-nums; }
.dish-status-option.active .dish-status-option-count { color: var(--brand-strong); }
.dish-status-check { margin-left: 2px; color: var(--brand); font-size: var(--fs-12); }

/* 表格操作列：表头与按钮组统一左对齐，避免「操作」悬浮在按钮上方偏左 */
tbody td .dish-actions { justify-content: flex-start; }

/* 移动端菜品卡片：名称按钮不能被 width:100% 撑满整行，否则右侧信息列被压成 0 */
.lc-dish-manage .dish-name-btn {
  width: auto;
  max-width: 46%;
  flex: 0 1 auto;
  min-width: 0;
}
.lc-dish-manage .dish-name-btn .cell-main {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 用户 CRUD：新增/编辑/等级/余额/操作记录 */
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.profile-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: 10px;
}
.profile-grid span { font-size: var(--fs-12); color: var(--text-3); }
.profile-grid b { font-size: var(--fs-13); font-weight: 600; color: var(--text); }
.profile-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.level-opt { align-items: flex-start; }
.level-opt.current { opacity: 0.72; background: var(--surface-2); cursor: default; }
.level-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.level-opt .tag { margin-left: auto; }
.log-cell { max-width: 220px; white-space: normal; word-break: break-word; }
@media (max-width: 760px) {
  .edit-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr 1fr; }
}


/* 一级路由切换的入场：只做很轻的透明度过渡，不做位移，避免整页“抖一下” */
/* 只让内容区轻微落位，左侧 rail 与二级菜单保持静止 */
#view.view-enter .page-main { animation: pageMainIn 0.18s cubic-bezier(0.22, 0.61, 0.36, 1); }
@keyframes pageMainIn { from { opacity: 0.72; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #view.view-enter .page-main { animation: none; } }

/* 菜品图片：图库 / 图片链接 + 实时预览 */
.dish-image-field { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: start; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px dashed var(--line); }
.dish-image-preview { position: relative; width: 132px; aspect-ratio: 1; padding: 0; border: 1px dashed var(--line-strong); border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(145deg, var(--surface-2), var(--surface)); cursor: pointer; transition: border-color .16s, box-shadow .16s; }
.dish-image-preview:not(.is-empty) { border-style: solid; border-color: var(--line); }
.dish-image-preview:hover { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(238, 108, 43, .1); }
.dish-image-preview:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dish-image-preview:disabled { cursor: default; box-shadow: none; border-color: var(--line); }
.dish-image-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dish-image-preview.is-empty img { display: none; }
.dish-image-emoji { font-size: 44px; line-height: 1; opacity: .9; }
.dish-image-pick-hint { position: absolute; left: 50%; bottom: 8px; z-index: 1; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(23, 27, 34, .62); color: #fff; font-size: var(--fs-11); line-height: 1.4; white-space: nowrap; backdrop-filter: blur(4px); }
.dish-image-pick-hint i { font-style: normal; }
.dish-image-pick-hint svg { width: 12px; height: 12px; }
.dish-image-preview.is-empty .dish-image-pick-hint { background: rgba(238, 108, 43, .92); }
.dish-image-preview:disabled .dish-image-pick-hint { display: none; }
.dish-image-meta { min-width: 0; }
.dish-image-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 7px; }
.dish-image-label { font-weight: 600; color: var(--text); }
.dish-image-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.dish-image-actions .btn svg { width: 14px; height: 14px; }
.dish-image-value { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 18px; }
.dish-image-value.is-empty { color: var(--text-3); }
.dish-image-path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-12); color: var(--text-3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.dish-image-copy { flex: none; border: 0; padding: 0; background: none; color: var(--brand); font: inherit; font-size: var(--fs-12); cursor: pointer; }
.dish-image-copy:hover { text-decoration: underline; }
.dish-image-copy[hidden] { display: none; }
.dish-image-foot { display: flex; align-items: flex-start; justify-content: flex-start; gap: 10px; margin-top: 5px; }
.dish-image-foot .tag { flex: none; }
.dish-image-foot .form-hint { line-height: 1.5; }
@media (max-width: 640px) {
  .dish-image-field { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .dish-image-preview { width: 96px; border-radius: 12px; }
  .dish-image-emoji { font-size: 32px; }
  .dish-image-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .dish-image-actions { gap: 2px; }
  .dish-image-actions .btn.sm { padding: 0 7px; }
  .dish-image-actions .btn svg { display: none; }
  .dish-image-foot { flex-direction: column; gap: 4px; }
}

/* 菜品图片选择器（图库 / 图片链接） */
.dish-image-picker { width: min(840px, 94vw); }
.picker-head-copy { min-width: 0; }
.picker-head-copy b { display: block; font-size: var(--fs-16); font-weight: 600; }
.picker-head-copy span { display: block; margin-top: 3px; font-size: var(--fs-12); color: var(--text-3); }
.dish-picker-tabs { padding: 0 12px; }
.dish-picker-tabs .link-tab em { margin-left: 5px; font-style: normal; font-size: var(--fs-11); color: var(--text-3); }
.dish-picker-tabs .link-tab.active em { color: var(--brand); }
.dish-picker-body { min-height: 300px; }
.dish-picker-grid .asset-card { position: relative; }
.dish-picker-grid .asset-card.selected { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.dish-asset-check { position: absolute; top: 7px; right: 7px; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(23, 27, 34, .24); }
.dish-asset-check svg { width: 12px; height: 12px; }
.dish-picker-empty { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.dish-picker-empty b { font-size: var(--fs-13); font-weight: 500; color: var(--text-2); }
.dish-picker-empty i { font-size: var(--fs-12); font-style: normal; color: var(--text-3); }
.dish-picker-foot { justify-content: space-between; align-items: center; }
.dish-picker-foot-left, .dish-picker-foot-right { display: flex; align-items: center; gap: 8px; }
.dish-link-panel { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.dish-link-preview { position: relative; width: 200px; aspect-ratio: 1; border: 1px dashed var(--line-strong); border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(145deg, var(--surface-2), var(--surface)); color: #c9cfd9; }
.dish-link-preview img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.dish-link-placeholder { display: grid; place-items: center; }
.dish-link-placeholder svg { width: 34px; height: 34px; }
.dish-link-main { min-width: 0; padding-top: 2px; }
.dish-link-label { display: block; margin-bottom: 6px; font-size: var(--fs-13); font-weight: 500; color: var(--text); }
.dish-link-row { display: flex; align-items: center; gap: 8px; }
.dish-link-row .input { flex: 1; min-width: 0; }
.dish-link-error { min-height: 19px; margin-top: 5px; font-size: var(--fs-12); color: var(--red); opacity: 0; }
.dish-link-error.show { opacity: 1; }
.dish-link-main .form-hint { margin-top: 1px; line-height: 1.55; }
@media (max-width: 720px) {
  .dish-link-panel { grid-template-columns: 1fr; gap: 12px; }
  .dish-link-preview { width: 132px; }
  .dish-picker-body { min-height: 240px; }
}

.profile-tags-label { margin-right: 2px; font-size: var(--fs-12); color: var(--text-3); }

/* 菜品批量选择 / 编辑页标签 */
.dish-sel-bar { padding: 0 18px 10px; }
.dish-sel-bar:empty { display: none; }
.dish-sel-bar .sel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 7px 10px;
  border: 1px solid var(--brand-soft-2);
  border-radius: 9px;
  background: var(--brand-soft);
}
.dish-sel-bar .sel-bar > b { color: var(--brand); }
#dishRows tr.is-selected td { background: #fffaf6; }
#dishRows tr.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.lc-dish-manage.is-selected { border-color: var(--brand-soft-2); background: #fffaf6; }
.lc-dish-manage .lc-check { display: flex; justify-content: flex-end; margin-bottom: 2px; }
.lc-dish-manage .lc-check input { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }
.form-tags { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.form-tags .form-label { display: block; margin-bottom: 8px; }
.check-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check-inline input { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }
@media (max-width: 860px) {
  .dish-sel-bar { padding: 0 12px 10px; }
  .dish-sel-bar .sel-bar { width: 100%; }
}

/* 用户等级：分布条 + 规则表 */
.level-dist { display: flex; flex-direction: column; }
.level-dist-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  outline: none;
}
.level-dist-row:first-child { border-top: 0; padding-top: 2px; }
.level-dist-row:last-child { padding-bottom: 2px; }
.level-dist-row:hover .level-dist-num b,
.level-dist-row:focus-visible .level-dist-num b { color: var(--brand); }
.level-dist-row:focus-visible { box-shadow: inset 0 0 0 2px var(--brand-soft); border-radius: 6px; }
.level-dist-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.level-dist-name .pill { align-self: flex-start; }
.level-dist-name .cell-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.level-dist-bar .bar { margin-top: 0; height: 8px; }
.level-dist-num { text-align: right; white-space: nowrap; }
.level-dist-num b { font-size: 20px; font-weight: 600; color: var(--text); }
.level-dist-num span { display: block; font-size: 11px; color: var(--text-3); }
@media (max-width: 720px) {
  .level-dist-row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .level-dist-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* 用户详情：操作区上移到标题下，避免长抽屉滚到底才能操作 */
.drawer-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.drawer-actions-bar .spacer { flex: 1 1 12px; }
@media (max-width: 560px) {
  .drawer-actions-bar { padding: 10px 16px; gap: 6px; }
  .drawer-actions-bar .btn { padding: 0 9px; }
}

/* 用户列表列多，收窄单元格内边距，1280 宽度下仍能完整显示操作列 */
.user-table thead th,
.user-table tbody td { padding-left: 12px; padding-right: 12px; }

/* =========================================================
   设备 / 小票打印（2026-11）
   ========================================================= */
.print-kpis { margin-bottom: 0; }
.print-kpis .kpi-foot .cell-sub { margin-top: 0; }

.print-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.print-toolbar .chips { background: #fff; }
.print-toolbar-note { font-size: var(--fs-12); color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }
.chip-count { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: 5px; padding: 0 4px; border-radius: 5px; background: rgba(23, 27, 34, 0.06); font-size: var(--fs-10); font-weight: 600; color: var(--text-3); }
.chip.active .chip-count { background: rgba(238, 108, 43, 0.14); color: var(--brand-strong); }

/* 场景标签 */
.scene-tag { display: inline-flex; align-items: center; height: 21px; padding: 0 7px; border-radius: 5px; font-size: var(--fs-11); font-weight: 500; background: var(--gray-soft); color: #5b6270; white-space: nowrap; }
.scene-tag.blue { background: var(--blue-soft); color: #2458c4; }
.scene-tag.amber { background: var(--amber-soft); color: #a45c07; }
.scene-tag.teal { background: var(--teal-soft); color: #0b7367; }
.scene-tag.red { background: var(--red-soft); color: #b81f1f; }
.scene-tag.gray { background: var(--gray-soft); color: #5b6270; }
.mini-badge { display: inline-flex; align-items: center; height: 19px; padding: 0 6px; border-radius: 4px; background: var(--brand-soft); color: var(--brand-strong); font-size: var(--fs-10); font-weight: 600; letter-spacing: 0.01em; }
.mini-badge.gray { background: var(--gray-soft); color: var(--text-3); }
.text-red { color: var(--red); }
.danger-text { color: var(--red); }
.link-btn { border: 0; background: none; padding: 0; color: var(--brand-strong); font: inherit; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-12); letter-spacing: 0.01em; }

/* 设备卡片 */
.device-card { position: relative; }
.device-card.online { border-color: #e2f2e9; }
.device-card.offline { border-color: #f6dede; background: #fffdfd; }
.device-card.unbound { border-style: dashed; background: #fffdf8; }
.device-card .device-name { flex-wrap: wrap; }
.device-card .status-dot.unbound { color: var(--amber); }
.device-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.device-foot-note { font-size: var(--fs-11); color: var(--text-3); margin-top: 8px; line-height: var(--lh-base); }
.device-actions { flex-wrap: wrap; }
.device-card .device-icon { background: linear-gradient(145deg, #fff4ec, #fde9dc); color: var(--brand-strong); }

/* 出票链路 */
.print-flow { display: flex; align-items: center; gap: 10px; padding: 18px 20px 20px; overflow-x: auto; }
.print-flow-step { flex: 1; min-width: 108px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); display: flex; flex-direction: column; gap: 3px; }
.print-flow-step b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); font-size: var(--fs-10); }
.print-flow-step span { font-size: var(--fs-13); font-weight: 600; }
.print-flow-step i { font-size: var(--fs-11); color: var(--text-3); font-style: normal; }
.print-flow-arrow { color: #c8ced8; flex: none; }

/* 模板 */
.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.template-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.18s, transform 0.18s; }
.template-card:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.template-preview { padding: 18px 18px 0; background: linear-gradient(180deg, #f7f8fa, #f2f3f6); border-bottom: 1px dashed var(--line-strong); display: flex; justify-content: center; min-height: 214px; overflow: hidden; }
.template-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.template-title { font-size: var(--fs-14); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.template-meta { font-size: var(--fs-11); color: var(--text-3); }
.template-flags { display: flex; flex-wrap: wrap; gap: 4px; min-height: 20px; }
.template-flags span { font-size: var(--fs-10); color: var(--text-3); background: var(--gray-soft); padding: 2px 5px; border-radius: 4px; }
.template-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 2px; }
.tpl-paper { width: 100%; max-width: 196px; background: #fff; border: 1px solid #ece8e1; border-radius: 2px; box-shadow: 0 8px 18px rgba(23, 27, 34, 0.08); padding: 12px 10px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 8px; line-height: 1.65; color: #3a3a3a; position: relative; transform: translateY(1px); }
.tpl-paper.p80 { max-width: 226px; }
.tpl-paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; background: radial-gradient(circle at 4px -2px, transparent 4px, #ece8e1 4.5px) repeat-x; background-size: 8px 8px; }
.tpl-center { text-align: center; }
.tpl-strong { font-weight: 700; }
.tpl-big { font-size: 11px; font-weight: 700; margin: 4px 0 6px; }
.tpl-small { font-size: 7px; color: #666; }
.tpl-dash { border-top: 1px dashed #cfcfcf; margin: 6px 0; }
.tpl-row { display: flex; justify-content: space-between; gap: 8px; }
.tpl-row span:last-child { white-space: nowrap; }
.tpl-empty { padding: 40px 12px; text-align: center; color: var(--text-3); font-size: var(--fs-12); }

/* 打印规则 */
.rule-head, .rule-row { display: grid; grid-template-columns: minmax(180px, 1.5fr) minmax(150px, 1fr) minmax(150px, 1fr) 74px 88px; gap: 14px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.rule-head { font-size: var(--fs-11); color: var(--text-3); background: var(--surface-2); letter-spacing: 0.02em; }
.rule-row:last-of-type { border-bottom: 0; }
.rule-row:hover { background: #fcfcfd; }
.rule-scene { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.rule-scene b { font-size: var(--fs-13); font-weight: 600; }
.rule-scene span { font-size: var(--fs-11); color: var(--text-3); line-height: var(--lh-base); }
.rule-field { display: flex; flex-direction: column; gap: 4px; }
.rule-field > span { display: none; font-size: var(--fs-11); color: var(--text-3); }
.rule-field .select-mini, .rule-field .input { width: 100%; }
.rule-copies .input { width: 64px; }
.rule-auto { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: var(--fs-11); color: var(--text-3); }
.card-foot-note { padding: 12px 20px; border-top: 1px dashed var(--line-strong); font-size: var(--fs-11); color: var(--text-3); line-height: var(--lh-base); }
.split-note { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.split-note > div { padding: 16px 20px; border-right: 1px solid var(--line); }
.split-note > div:last-child { border-right: 0; }
.split-note b { font-size: var(--fs-13); }
.split-note p { font-size: var(--fs-12); color: var(--text-3); line-height: var(--lh-base); margin-top: 5px; }

.mock-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); display: inline-block; box-shadow: 0 0 0 3px var(--amber-soft); }
.mock-dot.live { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: #c3c9d3; display: inline-block; }
.dot-live.ok { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }

/* 表单网格 / 开关行 */
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-field { display: flex; flex-direction: column; gap: 6px; }
.pf-field > span { font-size: var(--fs-12); color: var(--text-2); }
.pf-field > span b { color: var(--red); font-weight: 500; }
.pf-field .input { width: 100%; }
.pf-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line-strong); }
.pf-switch:last-child { border-bottom: 0; }
.pf-switch > div { display: flex; flex-direction: column; gap: 2px; }
.pf-switch b { font-size: var(--fs-13); font-weight: 500; }
.pf-switch span { font-size: var(--fs-11); color: var(--text-3); }
.pf-default { margin-top: 4px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-row { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); cursor: pointer; }
.check-row:hover { border-color: #f0b68c; background: #fffbf8; }
.check-row input { margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.check-row > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.check-row b { font-size: var(--fs-12); font-weight: 600; }
.check-row i { font-size: var(--fs-10); color: var(--text-3); font-style: normal; line-height: var(--lh-base); }
.paper-chips { background: transparent; border: 0; padding: 0; gap: 6px; }
.paper-chips .chip { border: 1px solid var(--line-strong); height: 34px; border-radius: 8px; background: #fff; }
.paper-chips .chip.active { border-color: #f0b68c; background: var(--brand-soft); }

/* 模板编辑 */
.editor-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.drawer.drawer-editor { width: 920px; }
.drawer.drawer-editor .editor-split { grid-template-columns: minmax(0, 1fr) 380px; }
.editor-preview .receipt-sheet.p80 .receipt-text { font-size: 10px; }
.editor-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.editor-preview { position: sticky; top: 0; background: #f7f6f3; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.editor-preview-head { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-12); font-weight: 600; color: var(--text-2); }
.tpl-toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.tpl-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.tpl-toggle > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tpl-toggle b { font-size: var(--fs-12); font-weight: 500; }
.tpl-toggle span { font-size: var(--fs-10); color: var(--text-3); }

/* 纸质预览 */
.print-preview-slot { min-height: 120px; }
.print-preview-loading { display: grid; place-items: center; min-height: 160px; font-size: var(--fs-12); color: var(--text-3); background: #f7f6f3; border: 1px dashed var(--line-strong); border-radius: 12px; }
.print-preview-error { padding: 18px; font-size: var(--fs-12); color: var(--red); background: #fff7f7; border: 1px solid #f6dede; border-radius: 10px; line-height: var(--lh-base); }
.receipt-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 14px 14px; background: radial-gradient(120% 90% at 50% 0%, #fbfaf7 0%, #f1efe9 100%); border: 1px solid var(--line); border-radius: 12px; }
.receipt-sheet { position: relative; width: 280px; max-width: 100%; background: #fff; box-shadow: 0 10px 26px rgba(23, 27, 34, 0.14), 0 1px 0 rgba(0, 0, 0, 0.04); padding: 16px 14px 24px; border-radius: 2px; }
.receipt-sheet.p80 { width: 360px; }
.receipt-sheet::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 7px; background: radial-gradient(circle at 5px 7px, transparent 5px, #fff 5.5px) repeat-x; background-size: 10px 7px; }
.receipt-sheet::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 7px; background: radial-gradient(circle at 5px -1px, transparent 5px, #fff 5.5px) repeat-x; background-size: 10px 7px; }
.receipt-roll { height: 5px; margin: -10px -14px 10px; background: repeating-linear-gradient(90deg, #f6f2eb 0 6px, #eee9e0 6px 12px); border-radius: 2px; }
.receipt-text { margin: 0; white-space: pre-wrap; word-break: normal; overflow-wrap: normal; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; line-height: 1.65; color: #2b2b2b; letter-spacing: 0; }
.receipt-sheet.p80 .receipt-text { font-size: 11px; }
.receipt-caption { font-size: var(--fs-10); color: var(--text-3); text-align: center; }

/* 订单补打 */
.print-order-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.print-order-summary > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.print-order-summary span { font-size: var(--fs-11); color: var(--text-3); }
.print-order-summary b { font-size: var(--fs-14); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.print-order-controls { display: flex; flex-direction: column; gap: 12px; }
.print-order-controls > .chips { align-self: flex-start; }
.print-order-fields { grid-template-columns: 1.2fr 1.2fr 80px; }
.print-order-tip { font-size: var(--fs-11); color: var(--text-3); line-height: var(--lh-base); padding: 9px 12px; background: #f8fafc; border: 1px dashed var(--line-strong); border-radius: 8px; }
.print-order-tip b { color: var(--text-2); }
.print-history { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.print-history-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: var(--fs-12); flex-wrap: wrap; }
.print-history-row:last-child { border-bottom: 0; }
.print-history-row .cell-sub { margin-top: 0; }
.print-history-scene { font-weight: 500; }
.print-history-row .btn { margin-left: auto; }
.print-order-body .receipt-sheet { transform-origin: top center; }

/* 其它 */
.print-sync { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: 9px; font-size: var(--fs-12); color: var(--text-3); }
.spin { width: 12px; height: 12px; border: 1.5px solid #d5dbe5; border-top-color: var(--brand); border-radius: 50%; display: inline-block; animation: print-spin 0.8s linear infinite; flex: none; }
@keyframes print-spin { to { transform: rotate(360deg); } }
.card-sub { font-size: var(--fs-11); color: var(--text-3); }

@media (max-width: 1320px) {
  .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1120px) {
  .split-note { grid-template-columns: 1fr; }
  .split-note > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .split-note > div:last-child { border-bottom: 0; }
}
@media (max-width: 900px) {
  .rule-head { display: none; }
  .rule-row { grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 14px 16px; }
  .rule-scene { grid-column: 1 / -1; }
  .rule-field > span { display: block; }
  .rule-auto { flex-direction: row; align-items: center; justify-content: space-between; grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 8px; }
  .rule-auto span { font-size: var(--fs-12); }
  .editor-split { grid-template-columns: 1fr; }
  .editor-preview { position: static; order: 2; }
  .editor-preview .receipt-sheet { width: 260px; }
  .template-grid { grid-template-columns: 1fr; }
  .template-preview { min-height: 190px; }
}
@media (max-width: 640px) {
  .page-head { align-items: flex-start; }
  .device-grid { grid-template-columns: 1fr; }
  .print-flow { padding: 14px 16px 16px; }
  .print-flow-step { min-width: 100px; padding: 9px; }
  .print-flow-arrow { display: none; }
  .print-order-summary { grid-template-columns: 1fr 1fr; }
  .print-order-fields { grid-template-columns: 1fr 1fr; }
  .print-order-fields .pf-field:last-child { grid-column: 1 / -1; }
  .pf-grid, .check-grid, .tpl-toggle-grid { grid-template-columns: 1fr; }
  .rule-row { grid-template-columns: 1fr; }
  .rule-scene { grid-column: auto; }
  .rule-auto { grid-column: auto; }
  .receipt-stage { padding: 14px 10px 12px; }
  .receipt-sheet { width: 100%; }
  .receipt-sheet.p80 { width: 100%; }
  .print-toolbar { align-items: flex-start; }
  .print-toolbar-note { line-height: var(--lh-base); }
  .print-order-body { padding: 14px 16px 18px; }
}

/* =========================================================
   项目内置确认/输入弹层（替代浏览器 window.confirm/prompt）
   ========================================================= */
.modal-scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0; transition: opacity 0.2s ease;
}
.modal-scrim.show { opacity: 1; }
.modal-card {
  position: fixed; left: 50%; top: 50%; z-index: 81;
  width: min(460px, calc(100vw - 32px));
  max-height: min(86vh, 760px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-3);
  opacity: 0; transform: translate(-50%, -46%) scale(0.97);
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}
.modal-card.open { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.modal-card.wide { width: min(600px, calc(100vw - 32px)); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface-2);
}
.modal-msg { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.75; white-space: pre-wrap; }
.modal-field { display: block; }
.modal-field > span { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.modal-field .input { width: 100%; box-sizing: border-box; }
.modal-field small { display: block; margin-top: 6px; color: var(--text-3); font-size: 12px; line-height: 1.5; }
.modal-err {
  margin-top: 12px; padding: 8px 10px; border-radius: 8px;
  background: #fef2f2; color: #b91c1c; font-size: 12px; line-height: 1.5;
}
.modal-hint { margin-top: 10px; padding: 9px 11px; border-radius: 8px; background: var(--surface-2); color: var(--text-3); font-size: 12px; line-height: 1.6; }
.modal-balance {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px; padding: 10px 12px; border-radius: 10px;
  background: linear-gradient(135deg, #fff8f1, #fff); border: 1px solid var(--line);
  color: var(--text-2); font-size: 12px;
}
.modal-balance b { color: var(--brand-ink); font-size: 20px; font-variant-numeric: tabular-nums; }
.quick-amounts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
@media (max-width: 560px) {
  .modal-head { padding: 16px 16px 12px; }
  .modal-body { padding: 16px; }
  .modal-foot { padding: 12px 16px; }
}
.quick-amounts .btn { border: 1px solid var(--line); background: #fff; }
.quick-amounts .btn:hover { border-color: var(--brand); color: var(--brand-ink); }

/* 设备模块：窄屏二级菜单与打印任务卡片 */
@media (max-width: 640px) {
  .subnav.horizontal { gap: 2px; padding: 5px; }
  .subnav.horizontal .subnav-item { padding: 6px 8px; font-size: 12px; }
  .scene-chips { flex-wrap: wrap; max-width: 100%; }
  .scene-chips .chip { flex: 0 0 auto; white-space: nowrap; }
  .print-jobs-table thead { display: none; }
  .print-jobs-table, .print-jobs-table tbody { display: block; width: 100%; }
  .print-jobs-table tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .print-jobs-table tr:last-child { border-bottom: 0; }
  .print-jobs-table td { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 4px 0; border: 0; text-align: left; }
  .print-jobs-table td::before { content: attr(data-label); flex: 0 0 58px; color: var(--text-3); font-size: 12px; line-height: 1.55; }
  .print-jobs-table td[data-label=""]::before { display: none; }
  .print-jobs-table td[data-label=""] { justify-content: flex-end; padding-top: 8px; }
  .print-jobs-table td .row-actions { width: 100%; justify-content: flex-end; }
  .print-jobs-table td.num { text-align: left; }
}

@media (max-width: 640px) {
  .subnav.device-subnav {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px; padding: 4px; width: auto; overflow: visible;
  }
  .subnav.device-subnav .subnav-title,
  .subnav.device-subnav .subnav-foot { display: none; }
  .subnav.device-subnav .subnav-item {
    justify-content: center; padding: 7px 2px; font-size: 11.5px; white-space: nowrap;
  }
  .subnav.device-subnav .subnav-count { margin-left: 2px; font-size: 10px; }
}


/* 设备模块：打印机表格与筛选 */
.device-list-card { margin-top: 0; }
.device-list-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex: 1; }
.device-search { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; min-width: 230px; color: var(--text-3); transition: border-color 0.16s, box-shadow 0.16s; }
.device-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.device-search svg { width: 14px; height: 14px; flex: none; }
.device-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: var(--fs-13); color: var(--text); }
.device-table { min-width: 1040px; table-layout: fixed; }
.device-table th:nth-child(1) { width: 18%; }
.device-table th:nth-child(2) { width: 13%; }
.device-table th:nth-child(3) { width: 15%; }
.device-table th:nth-child(4) { width: 21%; }
.device-table th:nth-child(5) { width: 15%; }
.device-table th:nth-child(6) { width: 18%; }
.device-table .cell-main, .device-table .cell-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-table .device-heartbeat { font-variant-numeric: tabular-nums; }
.device-table .danger-text { color: var(--red); }
.device-table td { white-space: normal; vertical-align: middle; }
.device-table .mono { white-space: nowrap; }
.device-table .device-tags { display: flex; flex-wrap: wrap; gap: 4px; max-width: 236px; }
.device-table .row-actions { display: flex; flex-wrap: nowrap; gap: 2px; justify-content: flex-end; }
.device-table td .btn.sm { padding: 4px 8px; }
.device-table th:last-child, .device-table td:last-child { text-align: right; }
.device-table td:last-child { white-space: nowrap; }
.print-list-note { margin: 10px 2px 0; font-size: var(--fs-12); color: var(--text-3); line-height: var(--lh-base); }

@media (max-width: 900px) {
  .device-list-card .card-head { flex-wrap: wrap; }
  .device-list-tools { width: 100%; flex-basis: 100%; justify-content: flex-start; }
  .device-search { flex: 1; min-width: 0; }
  .device-table { min-width: 0; }
  .device-table thead { display: none; }
  .device-table, .device-table tbody { display: block; width: 100%; }
  .device-table tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .device-table tr:last-child { border-bottom: 0; }
  .device-table td { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 4px 0; border: 0; text-align: left; }
  .device-table td::before { content: attr(data-label); flex: 0 0 60px; color: var(--text-3); font-size: 12px; line-height: 1.55; }
  .device-table td:first-child { padding-bottom: 8px; }
  .device-table td:last-child { justify-content: flex-end; padding-top: 8px; }
  .device-table td:last-child::before { display: none; }
  .device-table td .row-actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .device-table .device-tags { max-width: none; }
}

/* 设备离线兜底提示 */
.alert.print-offline { cursor: default; }
.alert.print-offline:hover { box-shadow: var(--shadow-1); transform: none; }
.alert.print-offline .btn { margin-left: auto; flex: none; }
@media (max-width: 640px) {
  .alert.print-offline { flex-wrap: wrap; }
  .alert.print-offline .btn { margin-left: 50px; width: calc(100% - 50px); justify-content: center; }
}

/* ==================== 门店模块 ==================== */
.store-page { gap: 16px; }
.store-list-card { overflow: hidden; }
.store-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.store-filter-chips { flex-wrap: wrap; gap: 8px; }
.store-tools { display: flex; align-items: center; gap: 8px; }
.store-search { width: 260px; }
.store-search .input, .store-search input { flex: 1; min-width: 0; }
.store-mode-select { width: 124px; height: 34px; }
.store-table { min-width: 920px; }
.store-table td { vertical-align: middle; }
.store-name-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.store-name-cell > div { min-width: 0; }
.store-name-cell .cell-main { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-avatar { width: 32px; height: 32px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-14); font-weight: 600; flex: none; }
.store-avatar.sm { width: 26px; height: 26px; border-radius: 8px; font-size: var(--fs-12); }
.store-avatar.lg { width: 56px; height: 56px; border-radius: 14px; font-size: var(--fs-24); }
.store-kpis .kpi-value { white-space: nowrap; }
.store-kpis .kpi-value small { font-size: var(--fs-12); font-weight: 400; color: var(--text-3); margin-left: 2px; }

.store-detail-page .page-head h1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.store-detail-page .page-head p { margin-top: 4px; }
.store-hero { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.store-hero-main { flex: 1; min-width: 0; }
.store-hero-title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-16); font-weight: 600; color: var(--text); }
.store-hero-addr { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: var(--fs-13); color: var(--text-2); }
.store-hero-addr svg { width: 14px; height: 14px; color: var(--text-3); flex: none; }
.store-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; font-size: var(--fs-12); color: var(--text-3); }
.store-hero-meta span { display: inline-flex; align-items: center; gap: 4px; }
.store-hero-meta svg { width: 13px; height: 13px; }
.store-hero-side { display: flex; align-items: center; gap: 24px; padding-left: 20px; border-left: 1px solid var(--line); flex: none; }
.store-hero-side > div { display: flex; flex-direction: column; gap: 4px; }
.store-hero-side b { font-size: var(--fs-14); font-weight: 600; color: var(--text); white-space: nowrap; }
.store-hero-side span { font-size: var(--fs-12); color: var(--text-3); }
.store-kpis { margin-bottom: 0; }
.store-trend-body { padding: 14px 20px 8px; }
.store-trend { display: flex; align-items: flex-end; gap: 10px; height: 132px; }
.store-trend-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.store-trend-bar { flex: 1; width: 100%; display: flex; align-items: flex-end; background: #f8f9fb; border-radius: 6px; overflow: hidden; }
.store-trend-bar i { display: block; width: 100%; min-height: 3px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #f08b52, var(--brand)); }
.store-trend-bar i.is-zero { min-height: 0; background: transparent; }
.store-trend-col span { font-size: var(--fs-11); color: var(--text-3); white-space: nowrap; }
.store-os-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.store-os { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: var(--radius-sm); background: #f8f9fb; }
.store-os span { font-size: var(--fs-12); color: var(--text-3); }
.store-os b { font-size: var(--fs-18); font-weight: 600; color: var(--text); }
.store-mini-empty { padding: 22px 12px; text-align: center; font-size: var(--fs-12); color: var(--text-3); background: #fafbfc; border-radius: var(--radius-sm); }
.store-mini-table { min-width: 0; }
.store-week { display: flex; flex-direction: column; }
.store-week-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-13); }
.store-week-row:last-child { border-bottom: 0; }
.store-week-row > span { color: var(--text-2); }
.store-week-row > div { color: var(--text); text-align: right; }
.store-week-row.is-closed > div { color: var(--text-3); }
.store-facility { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin: 2px 6px 2px 0; border-radius: 6px; background: var(--bg); color: var(--text-2); font-size: var(--fs-12); }
.store-printer-list { display: flex; flex-direction: column; gap: 8px; }
.store-printer { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.store-printer-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.store-printer-main b { font-size: var(--fs-13); font-weight: 500; color: var(--text); }
.store-printer-main span { font-size: var(--fs-12); color: var(--text-3); }
.store-printer-main em { font-size: var(--fs-12); color: var(--red); font-style: normal; }
.store-online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex: none; }
.store-online-dot.on { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.store-timeline { padding-top: 2px; }
.store-danger-bar, .store-restore-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.store-danger-bar { border-color: #f7d4d4; background: linear-gradient(180deg, #fff, var(--red-soft)); }
.store-restore-bar { border-color: #dbe6fb; background: linear-gradient(180deg, #fff, var(--blue-soft)); }
.store-danger-bar b, .store-restore-bar b { font-size: var(--fs-14); font-weight: 600; color: var(--text); }
.store-danger-bar p, .store-restore-bar p { margin: 4px 0 0; font-size: var(--fs-12); color: var(--text-3); }

/* 门店表单 */
.span-2 { grid-column: span 2; }
.store-form-body { padding-bottom: 10px; }
.store-switch-row { padding: 6px 0; border-bottom: 0; }
.store-switch-row + .form-grid { margin-top: 4px; }
.store-service-checks, .store-facility-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.store-check { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-13); color: var(--text-2); cursor: pointer; }
.store-check input { width: 15px; height: 15px; accent-color: var(--brand); }
.store-check.sm { font-size: var(--fs-12); color: var(--text-3); }
.store-facility-checks { margin-top: 2px; padding-top: 12px; border-top: 1px dashed var(--line); }
.store-hours-editor { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.store-hours-head { display: grid; grid-template-columns: 54px 42px 1fr auto; align-items: center; gap: 8px; padding: 8px 12px; background: var(--surface-2); color: var(--text-3); font-size: var(--fs-12); }
.store-hours-row { display: grid; grid-template-columns: 54px 42px 1fr; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line); }
.store-hours-row.is-closed { background: #fafbfc; }
.store-hours-day { font-size: var(--fs-13); color: var(--text-2); }
.store-hours-times { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.store-hours-times .input { width: 86px; height: 30px; padding: 0 5px; font-size: var(--fs-12); }
.store-hours-times > span { font-size: var(--fs-12); color: var(--text-3); }
.store-hours-sep { margin: 0 4px; }
.store-hours-row.is-closed .store-hours-times { opacity: 0.45; }
.store-status-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.store-status-option { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; text-align: left; font: inherit; }
.store-status-option b { font-size: var(--fs-13); font-weight: 600; color: var(--text); }
.store-status-option span { font-size: var(--fs-12); color: var(--text-3); line-height: 1.5; }
.store-status-option.active { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.store-status-option.active b { color: var(--brand-strong); }
.is-hidden { display: none !important; }

@media (max-width: 1180px) {
  .store-hero { flex-wrap: wrap; }
  .store-hero-side { width: 100%; padding: 12px 0 0; border-left: 0; border-top: 1px dashed var(--line); justify-content: flex-start; }
}
@media (max-width: 860px) {
  .store-toolbar { align-items: stretch; }
  .store-tools { width: 100%; }
  .store-search { flex: 1; width: auto; min-width: 0; }
  .store-mode-select { width: 118px; flex: none; }
  .store-hero { padding: 16px; }
  .store-kpis { margin-bottom: 0; }
  .store-hours-head { grid-template-columns: 46px 38px 1fr; }
  .store-hours-head > :last-child { grid-column: 1 / -1; justify-self: start; }
  .store-hours-row { grid-template-columns: 46px 38px 1fr; }
  .store-hours-times .input { width: 78px; }
  .store-os-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .store-hero { align-items: flex-start; gap: 12px; }
  .store-avatar.lg { width: 44px; height: 44px; border-radius: 12px; font-size: var(--fs-18); }
  .store-hero-title { font-size: var(--fs-14); flex-wrap: wrap; }
  .store-hero-side { gap: 18px; flex-wrap: wrap; }
  .store-hero-side b { font-size: var(--fs-13); }
  .store-danger-bar, .store-restore-bar { flex-direction: column; align-items: flex-start; }
  .store-danger-bar .btn, .store-restore-bar .btn { width: 100%; justify-content: center; }
  .store-status-options { grid-template-columns: 1fr; }
  .store-tools { flex-wrap: wrap; }
  .store-search { flex-basis: 100%; }
  .store-mode-select { width: 100%; }
  .store-hours-head { display: none; }
  .store-hours-row { grid-template-columns: 46px 38px 1fr; padding: 10px 12px; }
  .store-hours-times { grid-column: 1 / -1; margin-top: 2px; }
  .store-hours-times .input { width: calc(50% - 18px); min-width: 72px; }
  .store-hours-sep { display: none; }
  .store-form-body .form-grid { grid-template-columns: 1fr; }
  .store-form-body .span-2 { grid-column: span 1; }
}
.switch[disabled] { opacity: 0.45; cursor: not-allowed; }
@media (max-width: 640px) {
  .store-kpis .kpi-foot { flex-wrap: wrap; justify-content: flex-start; gap: 2px 10px; }
  .store-kpis .kpi-foot .cell-sub { white-space: nowrap; }
}

/* ============ 店铺：左列二级菜单 / 页面管理 / 模板库 ============ */
.page.rail { background: linear-gradient(to right, var(--surface) 0 172px, var(--line) 172px 173px, transparent 173px); }
.deco-subnav { padding: 0; }
.deco-subnav-inner {
  position: sticky;
  top: var(--topbar-h);
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: calc(100vh - var(--topbar-h));
  padding: 12px 8px;
  overflow-y: auto;
}
.deco-subnav .subnav-group {
  width: 100%;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.deco-subnav .subnav-group.active { background: none; color: var(--text); font-weight: 600; }
.deco-subnav .subnav-group.active .subnav-caret { color: var(--text-3); }
.deco-subnav .subnav-group .subnav-caret { margin-left: auto; }
.deco-subnav .subnav-sub[hidden] { display: none; }
.deco-subnav .subnav-foot { display: flex; flex-direction: column; gap: 8px; }
.deco-subnav-note { display: block; }
.deco-subnav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: var(--fs-12);
  font-weight: 500;
}
.deco-subnav-link svg { width: 14px; height: 14px; flex: none; }
.deco-subnav-link svg:last-child { width: 12px; height: 12px; margin-left: auto; color: var(--text-3); }
.deco-subnav-link:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-strong); }

.page.rail .deco-status { margin-bottom: 0; }
.deco-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.deco-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.deco-stat span { font-size: var(--fs-12); color: var(--text-3); }
.deco-stat b { font-size: var(--fs-20); font-weight: 600; line-height: 1.2; }
.deco-stat i { font-size: var(--fs-11); font-style: normal; color: var(--text-3); }

.deco-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.deco-card-head h2 { font-size: var(--fs-16); font-weight: 600; }
.deco-card-head p { margin-top: 4px; font-size: var(--fs-12); color: var(--text-3); line-height: var(--lh-base); }
.deco-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.deco-count { font-size: var(--fs-12); color: var(--text-3); white-space: nowrap; }

.deco-app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 20px 20px;
}
.deco-app {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.deco-app-thumb {
  display: flex;
  justify-content: center;
  padding: 18px 16px 14px;
  background: linear-gradient(180deg, #f6f7f9, #fbfbfc);
  border-bottom: 1px dashed var(--line);
}
.deco-app-body { display: flex; flex-direction: column; gap: 7px; padding: 14px 16px 16px; flex: 1; }
.deco-app-top { display: flex; align-items: center; gap: 6px; }
.deco-type {
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: var(--fs-11);
  font-weight: 600;
}
.deco-app-body h3 { font-size: var(--fs-14); font-weight: 600; }
.deco-app-body p { font-size: var(--fs-12); line-height: var(--lh-base); color: var(--text-3); min-height: 34px; }
.deco-app-meta { font-size: var(--fs-11); color: var(--text-3); }
.deco-app-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.deco-app-actions .btn { flex: 0 0 auto; justify-content: center; }

.deco-path-list { display: flex; flex-direction: column; padding: 4px 20px 8px; }
.deco-path-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.deco-path-row:last-child { border-bottom: 0; }
.deco-path-ico { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--surface-2); color: var(--text-2); }
.deco-path-ico svg { width: 15px; height: 15px; }
.deco-path-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.deco-path-main b { font-size: var(--fs-13); font-weight: 500; }
.deco-path-main code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-11); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.deco-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 20px 20px;
}
.deco-template {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.deco-template.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.deco-template-thumb { display: flex; justify-content: center; padding: 18px 16px 14px; border-bottom: 1px dashed var(--line); }
.deco-template-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.deco-template-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.deco-template-top h3 { font-size: var(--fs-14); font-weight: 600; }
.deco-template-body p { font-size: var(--fs-12); line-height: var(--lh-base); color: var(--text-3); min-height: 34px; }
.deco-swatches { display: flex; gap: 4px; }
.deco-swatches span { width: 16px; height: 16px; border-radius: 5px; border: 1px solid rgba(16, 24, 40, .08); }
.deco-template-actions { margin-top: auto; }
.deco-template-actions .btn { width: 100%; justify-content: center; }
.deco-inuse { display: flex; align-items: center; justify-content: center; gap: 4px; height: 28px; color: var(--brand-strong); font-size: var(--fs-12); font-weight: 600; }
.deco-inuse svg { width: 14px; height: 14px; }

.mini-phone {
  display: flex;
  flex-direction: column;
  width: 132px;
  height: 236px;
  flex: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 28px -18px rgba(16, 24, 40, .4), inset 0 0 0 1px rgba(16, 24, 40, .06);
}
.mini-nav { display: flex; align-items: center; justify-content: space-between; flex: none; padding: 9px 10px 6px; }
.mini-nav b { max-width: 90px; font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-nav span { font-size: 7px; letter-spacing: 1px; opacity: .75; }
.mini-home { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 4px 8px 8px; overflow: hidden; }
.mini-banner { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 62px; padding: 8px; color: #fff; }
.mini-banner b { font-size: 9px; }
.mini-banner i { font-size: 6px; font-style: normal; opacity: .82; }
.mini-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.mini-quick span { padding: 4px 0; border-radius: 5px; text-align: center; font-size: 6px; }
.mini-row { display: flex; align-items: center; gap: 5px; }
.mini-thumb { width: 18px; height: 18px; flex: none; border-radius: 5px; }
.mini-lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mini-lines i { display: block; width: 82%; height: 3px; border-radius: 2px; }
.mini-lines i.short { width: 55%; }
.mini-row em { flex: none; padding: 2px 4px; border-radius: 8px; color: #fff; font-size: 6px; font-style: normal; }
.mini-tabbar { display: flex; justify-content: space-between; margin-top: auto; padding-top: 5px; border-top: 1px solid rgba(16, 24, 40, .08); }
.mini-tabbar span { font-size: 6px; }
.mini-tabbar .on { font-weight: 600; }
.mini-menu { flex: 1; min-height: 0; display: flex; }
.mini-cats { width: 38px; display: flex; flex-direction: column; gap: 4px; padding: 6px 3px; background: rgba(16, 24, 40, .03); }
.mini-cats span { padding: 5px 2px; border-radius: 4px; text-align: center; font-size: 6px; color: rgba(44, 29, 20, .5); }
.mini-cats span.on { font-weight: 600; }
.mini-dishes { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 6px; }
.mini-member { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 8px; }
.mini-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 11px; font-weight: 600; }
.mini-member > b { font-size: 8px; }
.mini-member > i { font-size: 6px; font-style: normal; }
.mini-cell { display: flex; justify-content: space-between; width: 100%; padding: 5px 6px; border-radius: 5px; background: rgba(16, 24, 40, .04); font-size: 6px; color: rgba(44, 29, 20, .6); }
.mini-phone.dark .mini-cats { background: rgba(255, 255, 255, .03); }
.mini-phone.dark .mini-cats span { color: rgba(255, 255, 255, .5); }
.mini-phone.dark .mini-cell { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .62); }
.mini-phone.dark .mini-tabbar { border-top-color: rgba(255, 255, 255, .1); }

.deco-info { display: flex; flex-direction: column; gap: 12px; }
.deco-info-row { display: flex; align-items: center; gap: 12px; font-size: var(--fs-13); }
.deco-info-row > span { width: 72px; flex: none; color: var(--text-3); }
.deco-info-row code { flex: 1; min-width: 0; padding: 6px 8px; border-radius: 7px; background: var(--surface-2); font-size: var(--fs-12); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deco-info-row b { font-weight: 500; }
.deco-info .hint-box { margin-top: 4px; }
.deco-preview-modal { display: flex; justify-content: center; padding: 4px 0 8px; }
.deco-preview-modal .deco-preview { position: static; }
.deco-preview-modal .preview-note { display: none; }

@media (max-width: 1320px) {
  .deco-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .deco-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deco-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .deco-app-grid, .deco-template-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .deco-subnav { padding: 6px; }
  .page.rail { background: none; }
  .deco-subnav-inner {
    position: static;
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }
  .deco-subnav .subnav-sub { display: contents; }
  .deco-subnav .subnav-group { display: none; }
  .deco-subnav .subnav-subitem { padding: 6px 12px; border-radius: 6px; font-size: var(--fs-13); white-space: nowrap; }
  .deco-subnav .subnav-subitem::before { display: none; }
  .deco-subnav .subnav-subitem.active { background: var(--brand-soft); box-shadow: none; }
  .deco-subnav .subnav-foot { display: none; }
}
@media (max-width: 640px) {
  .deco-stats { gap: 8px; }
  .deco-stat { padding: 12px; }
  .deco-stat b { font-size: var(--fs-18); }
  .deco-card-head { padding: 14px 16px; }
  .deco-app-grid, .deco-template-grid { padding: 14px 16px 16px; }
  .deco-app-actions .btn { flex: 1 1 100%; }
  .deco-path-list { padding: 0 16px 8px; }
  .deco-path-row { flex-wrap: wrap; }
  .deco-path-main { flex-basis: calc(100% - 42px); }
  .deco-path-row .btn { margin-left: auto; }
}

/* ==================== 个人中心装修 ==================== */
.mem-editor { display: flex; flex-direction: column; gap: 14px; }
.mem-editor-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 4px 2px 0; }
.mem-editor-head h3 { margin: 0; font-size: var(--fs-14); font-weight: 600; color: var(--text); }
.mem-editor-head p { margin: 3px 0 0; font-size: var(--fs-12); color: var(--text-3); }
.mem-section.is-off { background: #fbfbfc; }
.mem-section.is-off .mem-sec-body { opacity: .5; }
.mem-sec-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.mem-sec-title { flex: 1; min-width: 0; }
.mem-sec-title b { display: block; font-size: var(--fs-13); color: var(--text); }
.mem-sec-title i { display: block; margin-top: 2px; font-size: var(--fs-11); font-style: normal; color: var(--text-3); }
.mem-sec-ops { display: flex; align-items: center; gap: 6px; flex: none; }
.mem-sec-ops .btn[disabled] { opacity: .4; pointer-events: none; }
.mem-sec-body { border-top: 1px solid var(--line); padding-top: 12px; }
.mem-sec-body .form-grid { margin-bottom: 4px; }
.mem-toggle-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 4px; }
.mem-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mem-toggle-row:last-child { border-bottom: 0; }
.mem-toggle-row b { display: block; font-size: var(--fs-12); color: var(--text); }
.mem-toggle-row i { display: block; margin-top: 2px; font-size: var(--fs-11); font-style: normal; color: var(--text-3); }
.mem-style-seg { max-width: 360px; }
.mem-link-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: var(--fs-12); color: var(--text-2); }
.mem-link-row .link-pick { max-width: 240px; }
.mem-menu-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.mem-menu-row { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: #fcfcfd; }
.mem-menu-main { display: grid; grid-template-columns: minmax(0, 1fr) 108px auto; gap: 7px; align-items: center; }
.mem-menu-main .input { height: 30px; font-size: var(--fs-12); }
.mem-menu-sub { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.mem-menu-sub .input { height: 30px; width: 120px; font-size: var(--fs-12); }
.mem-menu-sub .link-pick { flex: 1; min-width: 0; height: 30px; }
.mem-item-ops { display: flex; gap: 4px; flex: none; }
.mem-item-ops .btn { height: 28px; padding: 0 8px; }
.mem-link-none { font-size: var(--fs-11); color: var(--text-3); }
.mem-menu-row .btn.danger { padding: 0 8px; }
@media (max-width: 860px) {
  .mem-menu-main { grid-template-columns: minmax(0, 1fr) 100px; }
  .mem-menu-main .btn.danger { grid-column: 1 / -1; justify-self: end; }
  .mem-menu-sub { flex-wrap: wrap; }
  .mem-menu-sub .link-pick { flex: 1 1 150px; }
}

/* 个人中心手机预览 */
.pm-hero { margin: -4px -12px 0; padding: 16px 14px 13px; border-radius: 0 0 18px 18px; }
.pm-profile { display: flex; align-items: center; gap: 8px; }
.pm-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-family: 'Songti SC', serif; font-weight: 700; flex: none; }
.pm-profile div { flex: 1; min-width: 0; }
.pm-profile b { display: block; font-size: 12px; line-height: 1.3; }
.pm-profile i { display: block; font-size: 8px; font-style: normal; margin-top: 1px; }
.pm-profile em { font-size: 7px; font-style: normal; flex: none; }
.pm-kicker { font-size: 7px; letter-spacing: .6px; opacity: .8; margin-top: 10px; }
.pm-tagline { font-size: 9px; font-weight: 600; margin-top: 2px; }
.pm-growth { margin-top: 9px; padding: 7px 8px; border-radius: 7px; background: rgba(255,255,255,.1); }
.pm-growth-top { display: flex; justify-content: space-between; font-size: 7px; opacity: .8; }
.pm-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); margin-top: 5px; overflow: hidden; }
.pm-bar i { display: block; height: 100%; border-radius: 4px; }
.pm-assets { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 9px; }
.pm-assets div { text-align: center; border-right: 1px solid rgba(255,255,255,.16); }
.pm-assets div:last-child { border-right: 0; }
.pm-assets b { display: block; font-size: 9px; }
.pm-assets span { display: block; font-size: 7px; opacity: .65; margin-top: 1px; }
.pm-paid { display: flex; align-items: center; gap: 7px; margin: 9px 0 0; padding: 9px 10px; border-radius: 10px; background: linear-gradient(120deg,#f3e0b6,#d9b675 60%,#c19a52); }
.pm-paid-copy { flex: 1; min-width: 0; }
.pm-paid-copy b { display: block; font-size: 10px; color: #3b2418; margin-top: 1px; font-family: 'Songti SC', serif; }
.pm-paid-copy i { display: block; font-size: 7px; font-style: normal; color: #6b4c18; margin-top: 1px; }
.pm-badge { font-size: 6px; letter-spacing: .4px; color: #7a5a20; }
.pm-paid-btn { flex: none; background: #3b2418; color: #f6e7c8; border-radius: 99px; font-size: 7px; padding: 4px 7px; }
.pm-hook { display: flex; align-items: center; gap: 7px; margin: 8px 0 0; padding: 8px 9px; border: 1px solid #eadcc6; border-radius: 9px; background: #fffdf7; }
.pm-hook-ico { width: 20px; height: 20px; border-radius: 6px; background: #f2e8d7; color: #8e6a3c; display: flex; align-items: center; justify-content: center; font-size: 9px; flex: none; }
.pm-hook div { flex: 1; min-width: 0; }
.pm-hook b { display: block; font-size: 9px; color: #2c1d14; }
.pm-hook i { display: block; font-size: 7px; color: #a1907c; font-style: normal; margin-top: 1px; }
.pm-hook em { font-size: 7px; color: #a8452f; font-style: normal; flex: none; }
.pm-invite { display: flex; align-items: center; gap: 7px; margin: 8px 0 0; padding: 9px 10px; border: 1px solid #f0dfbe; border-radius: 9px; background: #fdf3df; }
.pm-invite div { flex: 1; min-width: 0; }
.pm-invite b { display: block; font-size: 9px; color: #2c1d14; }
.pm-invite i { display: block; font-size: 7px; color: #9a8b78; font-style: normal; margin-top: 1px; }
.pm-invite em { font-size: 7px; color: #a8452f; font-style: normal; flex: none; }
.pm-menu { margin: 8px 0 0; border: 1px solid #eadcc6; border-radius: 10px; background: #fffdf7; padding: 2px 9px; }
.pm-menu-head { font-size: 8px; font-weight: 600; color: #8e7a66; padding: 6px 0 3px; }
.pm-menu-row { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid #f5eee1; }
.pm-menu-ico { width: 18px; height: 18px; border-radius: 5px; background: #f6efe1; display: flex; align-items: center; justify-content: center; font-size: 8px; color: #8e6a3c; flex: none; }
.pm-menu-row b { flex: 1; font-size: 9px; color: #2c1d14; font-weight: 400; }
.pm-menu-row em { font-size: 9px; color: #c3b29a; font-style: normal; }

/* ==================== 页面路径（客户端真实路由） ==================== */
.deco-routes { overflow: hidden; }
.deco-route-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.deco-route-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.deco-route-filter { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--text-2); font: inherit; font-size: var(--fs-12); cursor: pointer; }
.deco-route-filter i { font-style: normal; font-size: var(--fs-11); color: var(--text-3); }
.deco-route-filter:hover { border-color: var(--line-strong); color: var(--text); }
.deco-route-filter.active { border-color: var(--brand-soft-2); background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.deco-route-filter.active i { color: var(--brand-strong); }
.deco-route-search { margin-left: auto; display: flex; align-items: center; gap: 8px; width: 250px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.deco-route-search svg { width: 15px; height: 15px; color: var(--text-3); flex: none; }
.deco-route-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: var(--fs-12); color: var(--text); }
.deco-route-head, .deco-route-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 60px 96px 52px; gap: 12px; align-items: center; }
.deco-route-head { padding: 9px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: var(--fs-11); color: var(--text-3); }
.deco-route-row { padding: 11px 20px; border-bottom: 1px dashed var(--line); }
.deco-route-row:last-child { border-bottom: 0; }
.deco-route-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); }
.deco-route-ico svg { width: 15px; height: 15px; }
.deco-route-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.deco-route-main b { font-size: var(--fs-13); font-weight: 500; color: var(--text); }
.deco-route-main code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-11); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deco-route-meta { grid-column: span 2; display: flex; align-items: center; gap: 10px; min-width: 0; }
.deco-route-group { flex: none; font-size: var(--fs-11); color: var(--text-3); }
.deco-route-type { display: flex; }
.deco-route-row .btn { justify-self: end; }
.deco-route-foot { display: flex; flex-direction: column; gap: 6px; padding: 12px 20px 16px; border-top: 1px solid var(--line); font-size: var(--fs-11); color: var(--text-3); }
.deco-route-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.deco-route-foot-row .pager-btns { margin-left: auto; }
.deco-route-hint { font-size: var(--fs-11); color: var(--text-3); }

@media (max-width: 760px) {
  .deco-route-toolbar { padding: 12px 16px; gap: 10px; }
  .deco-route-filter { height: 26px; padding: 0 9px; font-size: var(--fs-11); }
  .deco-route-search { width: 100%; margin-left: 0; }
  .deco-route-head { display: none; }
  .deco-route-row { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "ico main btn" "ico meta btn"; gap: 2px 10px; padding: 12px 16px; }
  .deco-route-ico { grid-area: ico; align-self: start; margin-top: 2px; }
  .deco-route-main { grid-area: main; }
  .deco-route-meta { grid-area: meta; grid-column: auto; gap: 8px; }
  .deco-route-row .btn { grid-area: btn; align-self: center; }
  .deco-route-foot { padding: 12px 16px 16px; gap: 4px; }
  .deco-route-foot-row { align-items: flex-start; }

}
@media (max-width: 860px) {
  .deco-route-search { width: 100%; margin-left: 0; }
}

/* =========================================================
   设置模块 2.0
   统一在订单二级菜单的 rail 骨架里承载 12 个子页
   ========================================================= */
.settings-identity { display: flex; align-items: center; gap: 16px; padding: 20px; }
.settings-logo { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; border: 1px solid #fbe3d2; background: linear-gradient(135deg, #fff3e8, #ffe2ca); font-size: var(--fs-24); }
.settings-identity-main { flex: 1; min-width: 0; }
.settings-identity-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-17); font-weight: 600; letter-spacing: -0.2px; }
.settings-identity-meta { margin-top: 4px; font-size: var(--fs-12); color: var(--text-3); }
.settings-identity-side { flex: none; }
.settings-avatar { flex: none; width: 56px; height: 56px; font-size: var(--fs-20); }

.settings-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.settings-grid-hot { grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.95fr); }
.settings-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.settings-card-heading { min-width: 0; }
.settings-card-desc { margin-top: 3px; font-size: var(--fs-12); color: var(--text-3); line-height: var(--lh-base); }
.settings-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); font-size: var(--fs-12); color: var(--text-3); }

.settings-row-main { min-width: 0; }
.settings-row-side { flex: none; display: flex; align-items: center; gap: 10px; }
.settings-scope { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); font-size: var(--fs-11); color: var(--text-3); white-space: nowrap; }

.settings-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.settings-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.settings-field.full { grid-column: 1 / -1; }
.settings-field-label { display: flex; align-items: center; gap: 6px; font-size: var(--fs-13); font-weight: 500; color: var(--text-2); }
.settings-field .input { width: 100%; }
.settings-field .textarea { height: auto; min-height: 64px; padding: 8px 10px; line-height: 1.6; resize: vertical; }
.settings-field-hint { font-size: var(--fs-11); font-style: normal; color: var(--text-3); line-height: var(--lh-base); }
.settings-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.settings-inline-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: var(--fs-12); color: var(--text-3); line-height: var(--lh-base); }
.settings-inline-note svg { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--amber); }
.settings-upload { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--surface-2); font: inherit; color: var(--text-3); cursor: pointer; text-align: left; }
.settings-upload:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.settings-upload svg { width: 18px; height: 18px; flex: none; }
.settings-upload span { font-size: var(--fs-13); color: var(--text-2); }
.settings-upload em { margin-left: auto; font-size: var(--fs-11); font-style: normal; color: var(--text-3); }

.settings-select { height: 32px; min-width: 136px; }
.settings-select-time { min-width: 112px; }
.settings-input { width: 84px; height: 32px; text-align: right; font-variant-numeric: tabular-nums; }
.settings-input-wide { width: 210px; height: 32px; }
.settings-input-text { width: 280px; }
.settings-unit { font-size: var(--fs-12); color: var(--text-3); white-space: nowrap; }
.settings-inline { display: flex; align-items: center; gap: 6px; }
.settings-hint { font-size: var(--fs-11); color: var(--text-3); }
.settings-plain { font-size: var(--fs-13); color: var(--text-2); line-height: 1.7; }
.settings-price { font-size: var(--fs-14); font-weight: 600; font-variant-numeric: tabular-nums; }

.settings-hot-hint { display: flex; align-items: flex-start; gap: 8px; margin-top: 0; }
.settings-hot-hint svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.settings-hot-card { overflow: hidden; }
.settings-toolbar { padding: 12px 20px; }
.settings-toolbar-note { font-size: var(--fs-12); color: var(--text-3); }
.settings-search { display: flex; align-items: center; gap: 7px; min-width: 200px; height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.settings-search svg { width: 14px; height: 14px; flex: none; color: var(--text-3); }
.settings-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: var(--fs-12); color: var(--text); }
.settings-search:focus-within { border-color: #f0b68c; box-shadow: 0 0 0 3px rgba(238, 108, 43, 0.12); }

.settings-table thead th { padding: 9px 14px; }
.settings-table tbody td { padding: 10px 14px; }
.settings-table tbody tr:hover { background: var(--surface-2); }
.settings-table tbody tr[data-hot-empty]:hover { background: transparent; }
.settings-scope-cell { font-size: var(--fs-12); color: var(--text-2); }
.settings-row-actions .btn + .btn { margin-left: 2px; }
.settings-word { font-size: var(--fs-13); font-weight: 500; color: var(--text); }
.settings-word-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: var(--fs-11); color: var(--text-3); }
.settings-word-meta .tag { flex: none; }
.settings-word-meta-mobile { display: none; }
.danger-text { color: var(--red); }
.danger-text:hover { background: var(--red-soft); color: var(--red); }
.settings-sort { display: flex; align-items: center; gap: 8px; }
.settings-sort-no { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-strong); font-size: var(--fs-11); font-weight: 600; font-variant-numeric: tabular-nums; }
.settings-sort-btns { display: flex; flex-direction: column; gap: 1px; }
.settings-sort-btn { display: grid; place-items: center; width: 18px; height: 14px; padding: 0; border: 0; border-radius: 3px; background: transparent; color: var(--text-3); cursor: pointer; }
.settings-sort-btn svg { width: 11px; height: 11px; }
.settings-sort-btn:hover { background: var(--gray-soft); color: var(--text); }
.settings-sort-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.settings-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 20px; color: var(--text-3); font-size: var(--fs-12); }
.settings-empty svg { width: 26px; height: 26px; color: #c9cfd9; }
.settings-empty b { font-size: var(--fs-13); font-weight: 500; color: var(--text-2); }

.settings-preview-card { overflow: hidden; }
.settings-preview-body { padding: 16px 16px 2px; background: linear-gradient(180deg, #fbfaf8, #fff); }
.settings-preview-note { padding: 12px 16px 16px; font-size: var(--fs-11); color: var(--text-3); text-align: center; }

.mp-preview { overflow: hidden; border: 1px solid #ece7df; border-radius: 18px; background: #fff; box-shadow: 0 14px 28px -22px rgba(80, 55, 30, 0.5); }
.mp-preview-top { padding: 10px 12px 12px; background: linear-gradient(160deg, #fff7ee, #ffe9d5); }
.mp-brand { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.mp-logo { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--brand); color: #fff; font-size: var(--fs-11); font-weight: 600; }
.mp-brand b { font-size: var(--fs-12); }
.mp-capsule { margin-left: auto; padding: 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.72); font-size: var(--fs-10); color: var(--text-3); }
.mp-search { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 99px; background: #fff; color: #a0a6b3; font-size: var(--fs-11); box-shadow: inset 0 0 0 1px #f3e9de; }
.mp-search svg { width: 13px; height: 13px; }
.mp-hot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.mp-hot-label { font-size: var(--fs-10); font-weight: 600; color: #b47848; }
.mp-key { padding: 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.86); font-size: var(--fs-10); color: #6b5a49; }
.mp-hot-empty { font-size: var(--fs-10); color: var(--text-3); }
.mp-preview-body { padding: 10px 12px 14px; }
.mp-section { margin-bottom: 6px; font-size: var(--fs-11); font-weight: 600; }
.mp-dish { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed #f0ece5; }
.mp-dish:last-child { border-bottom: 0; }
.mp-thumb { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fbf3e9; font-size: var(--fs-14); }
.mp-dish-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mp-dish-main b { font-size: var(--fs-11); font-weight: 500; }
.mp-dish-main i { font-style: normal; font-size: var(--fs-10); color: var(--brand-strong); }
.mp-add { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-size: var(--fs-12); }

.settings-pay-hero { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-color: #d9f0e3; background: linear-gradient(120deg, #f2fbf6, #fff 62%); }
.settings-pay-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #e7f8ef; color: var(--green); }
.settings-pay-icon svg { width: 22px; height: 22px; }
.settings-pay-main { flex: 1; min-width: 0; }
.settings-pay-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-15); font-weight: 600; }
.settings-pay-sub { margin-top: 4px; font-size: var(--fs-12); color: var(--text-2); }
.settings-pay-sub b { font-variant-numeric: tabular-nums; }
.settings-pay-actions { flex: none; display: flex; gap: 8px; flex-wrap: wrap; }
.settings-cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.settings-cap { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.settings-cap-icon { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e7f8ef; color: var(--green); }
.settings-cap-icon svg { width: 12px; height: 12px; }
.settings-cap b { display: block; font-size: var(--fs-12); font-weight: 500; }
.settings-cap em { font-style: normal; font-size: var(--fs-11); color: var(--text-3); }
.settings-cap.off .settings-cap-icon { background: var(--gray-soft); color: var(--text-3); }

.settings-notice-table td { padding: 10px 14px; }
.settings-notice-name { font-size: var(--fs-13); font-weight: 500; }
.settings-time { font-size: var(--fs-12); color: var(--text-3); font-variant-numeric: tabular-nums; }
.settings-dash { color: #c3c9d4; }

.settings-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.settings-stat { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.settings-stat span { font-size: var(--fs-12); color: var(--text-3); }
.settings-stat b { font-size: var(--fs-24); font-weight: 600; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
.settings-stat b small { margin-left: 2px; font-size: var(--fs-12); font-weight: 400; color: var(--text-3); }
.settings-stat em { font-style: normal; font-size: var(--fs-11); color: var(--text-3); }

.settings-release { display: flex; flex-direction: column; gap: 6px; }
.settings-release-head { display: flex; align-items: center; gap: 8px; font-size: var(--fs-14); }
.settings-release-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.settings-release-meta { font-size: var(--fs-12); color: var(--text-3); }
.settings-release-actions { display: flex; gap: 8px; margin-top: 8px; }
.settings-entry-list { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: var(--fs-12); }
.settings-entry-list span { color: var(--text-2); }
.settings-entry-list b { font-weight: 500; color: var(--green); }

.settings-drawer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.settings-drawer-row b { display: block; font-size: var(--fs-13); font-weight: 500; }
.settings-drawer-row span { font-size: var(--fs-12); color: var(--text-3); }

.settings-link-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.settings-link-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); }
.settings-link-icon svg { width: 18px; height: 18px; }
.settings-link-card p { font-size: var(--fs-13); color: var(--text-2); line-height: 1.65; }

.settings-role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.settings-role { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.settings-role-head { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.settings-role-head b { font-size: var(--fs-14); font-weight: 600; }
.settings-role p { min-height: 18px; font-size: var(--fs-12); color: var(--text-3); }
.settings-role .btn { margin-top: 4px; }
.settings-perm-table th, .settings-perm-table td { padding: 9px 14px; }
.perm-yes { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.perm-yes svg { width: 11px; height: 11px; }
.perm-no { color: #c3c9d4; }

.settings-usage-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.settings-usage { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.settings-usage-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: var(--fs-12); color: var(--text-2); }
.settings-usage-top b { font-size: var(--fs-13); font-weight: 600; font-variant-numeric: tabular-nums; }
.settings-usage-top em { font-style: normal; font-weight: 400; color: var(--text-3); }
.settings-usage-bar { height: 4px; margin-top: 8px; border-radius: 99px; background: var(--gray-soft); overflow: hidden; }
.settings-usage-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffa061, #ee6c2b); }
.settings-plan-banner { margin-bottom: 16px; }

.settings-faq { display: flex; flex-direction: column; }
.settings-faq-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.settings-faq-item:first-child { padding-top: 0; }
.settings-faq-item:last-child { padding-bottom: 0; border-bottom: 0; }
.settings-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--fs-13); font-weight: 500; cursor: pointer; list-style: none; }
.settings-faq-item summary::-webkit-details-marker { display: none; }
.settings-faq-item summary svg { width: 14px; height: 14px; flex: none; color: var(--text-3); transition: transform 0.15s; }
.settings-faq-item[open] summary svg { transform: rotate(180deg); }
.settings-faq-item p { margin-top: 8px; font-size: var(--fs-12); color: var(--text-2); line-height: 1.7; }

.settings-contact { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center; }
.settings-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text-2); }
.settings-qr svg { width: 40px; height: 40px; color: var(--text); }
.settings-qr span { font-size: var(--fs-11); color: var(--text-3); }
.settings-contact-list { display: flex; flex-direction: column; gap: 8px; }
.settings-contact-list div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: var(--fs-12); }
.settings-contact-list span { color: var(--text-3); }
.settings-contact-list b { font-weight: 500; color: var(--text); }

.settings-changelog { display: flex; flex-direction: column; gap: 12px; }
.settings-changelog div { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: var(--fs-12); }
.settings-changelog b { font-weight: 600; color: var(--text); }
.settings-changelog span { text-align: right; color: var(--text-3); }
.settings-changelog p { grid-column: 1 / -1; color: var(--text-2); line-height: 1.6; }
.settings-doc-links { display: flex; flex-direction: column; }
.settings-doc-links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-13); color: var(--text-2); text-decoration: none; }
.settings-doc-links a:last-child { padding-bottom: 0; border-bottom: 0; }
.settings-doc-links a:hover { color: var(--brand-strong); }
.settings-doc-links svg { width: 13px; height: 13px; color: var(--text-3); }

@media (max-width: 1100px) {
  .settings-grid, .settings-grid-hot { grid-template-columns: 1fr; }
  .settings-usage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .settings-role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .settings-identity { flex-wrap: wrap; padding: 16px; }
  .settings-identity-side { width: 100%; display: flex; justify-content: flex-end; }
  .settings-form { grid-template-columns: 1fr; }
  .settings-stats { grid-template-columns: 1fr; gap: 10px; }
  .settings-pay-hero { flex-wrap: wrap; align-items: flex-start; }
  .settings-pay-actions { width: 100%; justify-content: flex-end; }
  .settings-cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-usage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-role-grid { grid-template-columns: 1fr; }
  .settings-contact { grid-template-columns: 1fr; }
  .settings-qr { flex-direction: row; justify-content: center; }
  .settings-search { width: 100%; min-width: 0; }
  .settings-toolbar .settings-hint { display: none; }
  .settings-card-foot { flex-wrap: wrap; }
  .settings-row-side { flex-wrap: wrap; justify-content: flex-end; }
  .settings-hot-table { table-layout: fixed; }
  .settings-table thead th, .settings-table tbody td { padding-left: 8px; padding-right: 8px; white-space: normal; }
  .settings-hot-table thead th:nth-child(3),
  .settings-hot-table thead th:nth-child(4),
  .settings-hot-table tbody td:nth-child(3),
  .settings-hot-table tbody td:nth-child(4) { display: none; }
  .settings-row-actions { white-space: nowrap; }
  .settings-word-meta-mobile { display: flex; margin-top: 5px; }
  .setting-row { gap: 12px; }
  .settings-input-wide { width: 100%; }
}

/* =========================================================
   权限与日志 2.0
   - 大模块下拉：角色管理 / 人员管理 / 操作日志
   ========================================================= */
.settings-subnav .subnav-group {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.settings-subnav .subnav-group .subnav-caret { margin-left: auto; }
.settings-subnav .subnav-group.active { background: transparent; color: var(--brand-strong); }
.settings-subnav .subnav-sub {
  margin: 2px 0 6px 10px;
  padding: 2px 0 2px 8px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  gap: 1px;
}
.settings-subnav .subnav-subitem { padding: 6px 8px; }
.settings-subnav .subnav-subitem.active { background: var(--brand-soft); box-shadow: none; }
.settings-subnav .subnav-subitem::before { width: 3px; height: 3px; }

.access-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.access-toolbar-count { margin-left: auto; font-size: var(--fs-12); color: var(--text-3); white-space: nowrap; }
.access-toolbar-count b { color: var(--text); font-weight: 600; }
.access-log-search { min-width: 260px; }

.access-role-table { min-width: 780px; }
.access-staff-table { min-width: 820px; }
.access-log-table { min-width: 860px; }
.access-log-row { cursor: pointer; }
.access-log-row:hover { background: var(--surface-2); }

.access-role-name { display: flex; align-items: center; gap: 9px; }
.access-role-icon {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.access-role-icon svg { width: 15px; height: 15px; }
.access-role-icon.custom { background: var(--blue-soft); color: var(--blue); }
.access-role-name b { display: block; font-size: var(--fs-13); font-weight: 500; }
.access-role-desc { max-width: 230px; font-size: var(--fs-12); line-height: 1.55; color: var(--text-2); }

.access-perm-meter { min-width: 120px; }
.access-perm-meter b { font-size: var(--fs-13); font-weight: 600; }
.access-perm-meter span { margin-left: 2px; font-size: var(--fs-11); color: var(--text-3); }
.access-perm-meter i { display: block; height: 4px; margin-top: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.access-perm-meter em { display: block; height: 100%; border-radius: 99px; background: var(--brand); }

.access-user { display: flex; align-items: center; gap: 9px; }
.access-avatar {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: var(--fs-12);
  font-weight: 600;
}
.access-user b { display: block; font-size: var(--fs-13); font-weight: 500; }
.access-muted { font-size: var(--fs-12); color: var(--text-3); }
.access-log-module {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-2);
  font-size: var(--fs-11);
  color: var(--text-2);
  white-space: nowrap;
}
.access-log-action { font-size: var(--fs-12); color: var(--text); line-height: 1.45; }

.access-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 30px 12px;
  text-align: center;
  font-size: var(--fs-12);
  color: var(--text-3);
}
.access-empty b { font-size: var(--fs-13); font-weight: 500; color: var(--text-2); }

.access-perm-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.access-perm-toolbar b { display: block; font-size: var(--fs-13); font-weight: 600; }
.access-perm-toolbar span { display: block; margin-top: 2px; font-size: var(--fs-11); color: var(--text-3); }
.access-perm-actions { display: flex; gap: 4px; flex: none; }

.access-perm-groups { display: flex; flex-direction: column; gap: 10px; }
.access-perm-group { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.access-perm-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  cursor: pointer;
}
.access-perm-group-head input { width: 15px; height: 15px; flex: none; accent-color: var(--brand); }
.access-perm-group-head span { min-width: 0; }
.access-perm-group-head b { display: block; font-size: var(--fs-13); font-weight: 500; }
.access-perm-group-head i { display: block; margin-top: 1px; font-size: var(--fs-11); font-style: normal; color: var(--text-3); }
.access-perm-group-head em { margin-left: auto; font-size: var(--fs-11); font-style: normal; color: var(--text-3); white-space: nowrap; }
.access-perm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px 12px;
  padding: 10px 12px 12px;
}
.access-perm-item { display: flex; align-items: center; gap: 7px; padding: 4px 2px; font-size: var(--fs-12); color: var(--text-2); cursor: pointer; }
.access-perm-item input { width: 14px; height: 14px; flex: none; accent-color: var(--brand); }

.access-log-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.access-log-meta div { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.access-log-meta div:nth-last-child(-n+2) { border-bottom: 0; }
.access-log-meta span { display: block; margin-bottom: 3px; font-size: var(--fs-11); color: var(--text-3); }
.access-log-meta b { font-size: var(--fs-12); font-weight: 500; color: var(--text); }

.access-diff { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.access-diff-head, .access-diff-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 20px 1.2fr;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
}
.access-diff-head {
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: var(--fs-11);
  color: var(--text-3);
}
.access-diff-rows { display: flex; flex-direction: column; }
.access-diff-row { font-size: var(--fs-12); }
.access-diff-row + .access-diff-row { border-top: 1px solid var(--line); }
.access-diff-row.changed { background: #fffaf5; }
.access-diff-key { color: var(--text-3); }
.access-diff-before { color: var(--text-3); word-break: break-word; }
.access-diff-arrow { text-align: center; color: var(--text-3); }
.access-diff-after { color: var(--text); font-weight: 500; word-break: break-word; }
.access-diff-row.changed .access-diff-after { color: var(--brand-strong); }
.access-diff-none { padding: 18px 14px; border: 1px dashed var(--line-strong); border-radius: 10px; font-size: var(--fs-12); color: var(--text-3); text-align: center; }

@media (max-width: 1080px) {
  .settings-subnav .subnav-group { display: none; }
  .settings-subnav .subnav-sub {
    display: flex;
    flex-direction: row;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
  }
  .settings-subnav .subnav-sub[hidden] { display: flex !important; }
  .settings-subnav .subnav-subitem { padding: 6px 10px; white-space: nowrap; border-radius: 6px; }
  .settings-subnav .subnav-subitem::before { display: none; }
  .settings-subnav .subnav-subitem.active { background: var(--brand-soft); box-shadow: none; }
}

@media (max-width: 760px) {
  .access-toolbar { padding: 10px 12px; }
  .access-toolbar .settings-search { width: 100%; min-width: 0; }
  .access-toolbar-count { margin-left: 0; }
  .access-role-table, .access-staff-table, .access-log-table { min-width: 0; }
  .access-role-table thead th:nth-child(2),
  .access-role-table tbody td:nth-child(2),
  .access-role-table thead th:nth-child(5),
  .access-role-table tbody td:nth-child(5) { display: none; }
  .access-staff-table thead th:nth-child(3),
  .access-staff-table tbody td:nth-child(3),
  .access-staff-table thead th:nth-child(4),
  .access-staff-table tbody td:nth-child(4),
  .access-staff-table thead th:nth-child(6),
  .access-staff-table tbody td:nth-child(6) { display: none; }
  .access-staff-table .settings-row-actions { flex-wrap: wrap; justify-content: flex-end; }
  .access-staff-table .settings-row-actions .btn { padding: 2px 4px; }
  .access-log-table thead th:nth-child(5),
  .access-log-table tbody td:nth-child(5),
  .access-log-table thead th:nth-child(6),
  .access-log-table tbody td:nth-child(6) { display: none; }
  .access-log-table .access-log-table { min-width: 0; }
  .access-perm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access-perm-toolbar { align-items: flex-start; }
  .access-log-meta { grid-template-columns: 1fr; }
  .access-log-meta div { border-bottom: 1px solid var(--line); }
  .access-log-meta div:last-child { border-bottom: 0; }
  .access-log-meta div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .access-log-meta div:last-child { border-bottom: 0; }
  .access-diff-head, .access-diff-row { grid-template-columns: 1fr 1fr 14px 1fr; gap: 5px; padding: 8px; }
  .access-diff-head { font-size: 10px; }
}

/* 权限与日志：窄屏把表格改成卡片，避免操作列挤成竖排 */
@media (max-width: 900px) {
  .access-role-table,
  .access-staff-table,
  .access-log-table { display: block; width: 100%; }
  .access-role-table thead,
  .access-staff-table thead,
  .access-log-table thead { display: none; }
  .access-role-table tbody,
  .access-staff-table tbody,
  .access-log-table tbody { display: block; }
  .access-role-table tbody tr,
  .access-staff-table tbody tr,
  .access-log-table tbody tr { border-top: 1px solid var(--line); }
  .access-role-table tbody tr:first-child,
  .access-staff-table tbody tr:first-child,
  .access-log-table tbody tr:first-child { border-top: 0; }
  .access-role-table tbody td,
  .access-staff-table tbody td,
  .access-log-table tbody td { display: block; padding: 0; border: 0; text-align: left; }

  .access-role-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name people" "meter meter" "actions actions";
    gap: 8px 12px;
    padding: 12px 14px;
  }
  .access-role-table tbody td:nth-child(1) { grid-area: name; min-width: 0; }
  .access-role-table tbody td:nth-child(3) { grid-area: meter; }
  .access-role-table tbody td:nth-child(4) { grid-area: people; align-self: start; }
  .access-role-table tbody td:nth-child(6) { grid-area: actions; }
  .access-role-table .access-role-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .access-role-table .settings-row-actions,
  .access-staff-table .settings-row-actions { justify-content: flex-end; }
  .access-perm-meter { min-width: 0; }

  .access-staff-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "user status" "role scope" "login last" "actions actions";
    gap: 7px 12px;
    padding: 12px 14px;
  }
  .access-staff-table tbody td:nth-child(1) { grid-area: user; }
  .access-staff-table tbody td:nth-child(2) { grid-area: role; }
  .access-staff-table tbody td:nth-child(3) { grid-area: scope; display: block; justify-self: end; }
  .access-staff-table tbody td:nth-child(4) { grid-area: login; display: block; }
  .access-staff-table tbody td:nth-child(5) { grid-area: status; align-self: center; }
  .access-staff-table tbody td:nth-child(6) { grid-area: last; display: block; text-align: right; }
  .access-staff-table tbody td:nth-child(7) { grid-area: actions; }
  .access-staff-table tbody td:nth-child(2)::before,
  .access-staff-table tbody td:nth-child(4)::before,
  .access-staff-table tbody td:nth-child(6)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    color: var(--text-3);
  }
  .access-staff-table .settings-time { font-size: var(--fs-12); }

  .access-log-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "time result" "user module" "action action" "detail detail";
    gap: 8px 12px;
    padding: 12px 14px;
  }
  .access-log-table tbody td:nth-child(1) { grid-area: time; }
  .access-log-table tbody td:nth-child(2) { grid-area: user; }
  .access-log-table tbody td:nth-child(3) { grid-area: module; justify-self: end; align-self: center; }
  .access-log-table tbody td:nth-child(4) { grid-area: action; }
  .access-log-table tbody td:nth-child(5) { display: none; }
  .access-log-table tbody td:nth-child(6) { grid-area: result; display: block; justify-self: end; }
  .access-log-table tbody td:nth-child(7) { grid-area: detail; text-align: right; }
  .access-log-table .access-log-action { font-size: var(--fs-12); }
  .access-log-table .access-log-row { cursor: pointer; }
}

@media (max-width: 900px) {
  .access-staff-table tbody td:nth-child(3)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    color: var(--text-3);
  }
  .access-log-table tbody tr {
    grid-template-areas: "time result" "user module" "action detail";
  }
  .access-log-table tbody td:nth-child(7) { align-self: center; }
}

@media (max-width: 1080px) {
  .settings-subnav.has-group-active .subnav-sub { order: -1; }
}


/* 搜索过滤依赖 hidden 属性，卡片 display 不能覆盖它 */
.access-role-table tbody tr[hidden],
.access-staff-table tbody tr[hidden],
.access-log-table tbody tr[hidden] { display: none !important; }

@media (max-width: 900px) {
  .access-role-table,
  .access-staff-table,
  .access-log-table { min-width: 0; }
  .access-role-table tbody td:nth-child(2),
  .access-role-table tbody td:nth-child(5),
  .access-log-table tbody td:nth-child(5) { display: none; }
  .access-role-table tbody td:nth-child(6),
  .access-staff-table tbody td:nth-child(7) { text-align: right; }
}

/* =========================================================
   设置模块：细节收敛
   ========================================================= */
/* 父级分组只做层级提示，选中的子项才是视觉焦点 */
.settings-subnav .subnav-group.active {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}
.settings-subnav .subnav-group.active .subnav-caret { color: var(--brand); }
.settings-subnav .subnav-group:hover .subnav-caret { color: var(--text-2); }

/* 表格行操作：弱化成文本按钮，hover 才出现底 */
.access-role-table .settings-row-actions,
.access-staff-table .settings-row-actions { gap: 0; }
.access-role-table .settings-row-actions .btn,
.access-staff-table .settings-row-actions .btn {
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  font-weight: 500;
  color: var(--text-2);
}
.access-role-table .settings-row-actions .btn:hover:not(:disabled),
.access-staff-table .settings-row-actions .btn:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.access-role-table .settings-row-actions .btn:disabled,
.access-staff-table .settings-row-actions .btn:disabled { color: #c3c9d4; }
.access-role-table .settings-row-actions .danger-text,
.access-staff-table .settings-row-actions .danger-text { color: var(--text-3); }
.access-role-table .settings-row-actions .danger-text:hover:not(:disabled),
.access-staff-table .settings-row-actions .danger-text:hover:not(:disabled) { background: #fef2f2; color: var(--red); }

.access-role-table tbody tr,
.access-staff-table tbody tr { transition: background 0.14s; }
.access-role-table tbody tr:hover,
.access-staff-table tbody tr:hover { background: #fbfcfd; }
.access-role-table tbody tr:hover .access-role-icon { background: #fdeadd; }

/* 状态胶囊加一个小圆点，信息密度更像业务系统 */
.access-staff-table .pill.green.plain,
.access-staff-table .pill.gray.plain { gap: 0; }
.access-staff-table .pill.green.plain::before,
.access-staff-table .pill.gray.plain::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* 统计卡顶部一条很淡的品牌线，避免大片白卡显得空 */
.settings-stat { position: relative; overflow: hidden; }
.settings-stat::after {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  width: 26px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--brand), #f6b58f);
  opacity: 0.5;
}

@media (max-width: 760px) {
  .settings-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .settings-stat { padding: 10px 12px; gap: 1px; }
  .settings-stat b { font-size: var(--fs-20); letter-spacing: -0.2px; }
  .settings-stat span { font-size: var(--fs-11); }
  .settings-stat em {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.35;
  }
  .access-role-table .settings-row-actions .btn,
  .access-staff-table .settings-row-actions .btn { height: 30px; padding: 0 8px; }
}

.access-perm-total { margin-right: auto; font-size: var(--fs-12); color: var(--text-3); }
.access-perm-total b { font-weight: 600; color: var(--text); }
@media (max-width: 760px) { .access-perm-total { display: none; } }

/* 键盘可达性与数字对齐 */
.btn:focus-visible,
.subnav-item:focus-visible,
.subnav-subitem:focus-visible,
.settings-row-actions .btn:focus-visible {
  outline: 2px solid rgba(238, 108, 43, 0.38);
  outline-offset: 2px;
}
.access-role-table .settings-time,
.access-staff-table .settings-time,
.access-log-table .settings-time,
.access-role-table td,
.access-toolbar-count { font-variant-numeric: tabular-nums; }

@media (max-width: 1080px) {
  .settings-subnav .subnav-sub { order: initial; }
  .settings-subnav .subnav-sub.group-sub-active { order: -1; }
}

/* 支付设置 3.0 */
.pay-channel-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 9px;
  background: #eef1f5;
  margin: 0 0 14px;
}
.pay-channel-tab {
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  padding: 7px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.pay-channel-tab:hover { color: var(--text); }
.pay-channel-tab.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(23, 27, 34, .08);
}
.pay-channel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 12px;
}
.pay-channel-head b { font-size: 13px; font-weight: 600; color: var(--text); }
.pay-channel-head span { margin-left: 8px; font-size: 12px; color: var(--text-3); }
.pay-channel-state { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.pay-channel-state b { color: var(--brand-strong); font-weight: 600; }
.pay-method-list { display: flex; flex-direction: column; gap: 10px; }
.pay-method { overflow: hidden; }
.pay-method.is-on { box-shadow: inset 3px 0 0 var(--brand); }
.pay-method-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
}
.pay-method-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex: none;
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.pay-method-icon svg { width: 19px; height: 19px; }
.pay-method-icon.wechat { background: #e9f9f0; color: #0e9f6e; }
.pay-method-icon.alipay { background: #eaf2ff; color: #2f6feb; }
.pay-method-icon.cod { background: #fff6e8; color: #d97706; }
.pay-method-icon.offline { background: #f1f3f6; color: #5b6270; }
.pay-method-icon.balance { background: #f1f3f6; color: #8d94a3; }
.pay-method-main { flex: 1; min-width: 0; }
.pay-method-title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.pay-method-title .tag { font-weight: 400; }
.pay-method-main p { margin: 3px 0 0; font-size: 12px; color: var(--text-3); line-height: 1.55; }
.pay-method-head .pill { flex: none; }
.pay-method-head .switch { margin-left: 4px; flex: none; }
.pay-method.is-phase { background: #fbfcfd; }
.pay-method-body {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.pay-method-fields { display: flex; gap: 18px; flex: 1; }
.pay-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.pay-field > span { font-size: 12px; color: var(--text-2); }
.pay-field > em {
  font-style: normal;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.5;
}
.pay-field .input { width: 100%; }
.pay-field-row { display: flex; align-items: center; gap: 8px; }
.pay-field-row .input { flex: 1; min-width: 0; }
.pay-field-row .btn { flex: none; }
.pay-method-side {
  width: 190px;
  flex: none;
  border-left: 1px solid var(--line);
  padding-left: 18px;
  min-height: 46px;
}
.pay-method-side-label { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 4px; }
.pay-method-side b { font-size: 12px; font-weight: 500; color: var(--text-2); }
.pay-hint { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; }
.pay-hint svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--brand-strong); }
.pay-hint span { line-height: 1.65; }

.pay-payout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-payout-card { overflow: hidden; }
.pay-payout-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.pay-payout-title { flex: 1; min-width: 0; }
.pay-payout-title b { display: block; font-size: 14px; font-weight: 600; }
.pay-payout-title span { display: block; margin-top: 3px; font-size: 12px; color: var(--text-3); }
.pay-payout-body { padding: 14px 18px 4px; border-top: 1px solid var(--line); }
.pay-payout-body .pay-field { margin-bottom: 14px; }
.pay-unit { font-size: 12px; color: var(--text-3); }
.pay-payout-note { padding: 16px 18px; }
.pay-payout-note-head { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pay-payout-note-head svg { width: 16px; height: 16px; color: #d97706; }
.pay-payout-note p { margin: 7px 0 0; font-size: 12px; color: var(--text-2); line-height: 1.75; }

.pay-template-card { overflow: hidden; }
.pay-template-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.pay-template-toolbar .settings-search { width: 320px; max-width: 100%; }
.pay-template-table td { padding: 12px 14px; vertical-align: middle; }
.pay-tpl-name { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.pay-tpl-merchant { font-size: 12px; color: var(--text-2); }
.pay-tpl-mobile { display: none; margin-top: 2px; }
.pay-type-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pay-type-tag.green { color: #0e9f6e; background: #e9f9f0; border-color: #c9f0dc; }
.pay-type-tag.blue { color: #2f6feb; background: #eaf2ff; border-color: #d6e5ff; }
.pay-type-tag.gray { color: var(--text-2); background: #f1f3f6; border-color: var(--line-strong); }
.pay-template-form .settings-form { padding: 0; }
.pay-form-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pay-form-section-title { margin-bottom: 12px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.pay-form-section .settings-form { padding: 0; }

@media (max-width: 900px) {
  .pay-payout-grid { grid-template-columns: 1fr; }
  .pay-method-head { flex-wrap: wrap; }
  .pay-method-head .pill { display: none; }
  .pay-method-head .switch { margin-left: auto; }
  .pay-method-body { flex-direction: column; gap: 12px; }
  .pay-method-fields { flex-direction: column; gap: 12px; width: 100%; }
  .pay-method-side { width: auto; border-left: 0; border-top: 1px solid var(--line); padding: 10px 0 0; min-height: 0; }
  .pay-channel-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .pay-channel-head span { display: block; margin: 3px 0 0; }
  .pay-template-toolbar { flex-wrap: wrap; }
  .pay-template-toolbar .settings-search { width: 100%; }
  .pay-template-table th:nth-child(3),
  .pay-template-table td:nth-child(3),
  .pay-template-table th:nth-child(4),
  .pay-template-table td:nth-child(4) { display: none; }
  .pay-tpl-mobile { display: block; }
}
.pay-payout-grid { align-items: start; }
.pay-channel-tabs { width: fit-content; max-width: 100%; }
@media (max-width: 900px) {
  .pay-template-table th:nth-child(2), .pay-template-table td:nth-child(2) { width: 92px; }
  .pay-template-table th:nth-child(5), .pay-template-table td:nth-child(5) { width: 84px; }
  .pay-template-table td:nth-child(1) { width: auto; }
  .pay-tpl-name { flex-wrap: wrap; gap: 4px; }
  .pay-tpl-name .tag { white-space: nowrap; flex: none; }
}

@media (max-width: 1080px) {
  .settings-subnav.has-group-active .subnav-sub { order: initial; }
  .settings-subnav.has-group-active .subnav-sub.group-sub-active { order: -1; }
}

/* 支付模块：参考后台表单的克制样式 */
@media (min-width: 1081px) {
  .settings-subnav .subnav-sub[hidden] { display: none; }
}
.pay-method-list {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(23, 27, 34, .03);
}
.pay-method-list .pay-method {
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}
.pay-method-list .pay-method + .pay-method { border-top: 1px solid var(--line); }
.pay-method-list .pay-method.is-on { box-shadow: none; }
.pay-method-head { padding: 15px 20px; }
.pay-method-head:hover { background: #fcfcfd; }
.pay-method.is-phase { background: #fbfcfd; }
.pay-method-body { padding: 15px 20px 17px; }
.pay-method-fields { flex-direction: column; gap: 12px; }
@media (min-width: 901px) {
  .pay-method-body .pay-field {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 5px 14px;
    align-items: start;
  }
  .pay-method-body .pay-field > span { padding-top: 8px; font-size: 12px; }
  .pay-method-body .pay-field > .pay-field-row,
  .pay-method-body .pay-field > .input,
  .pay-method-body .pay-field > em { grid-column: 2; }
  .pay-method-body .pay-field > em { margin-top: -1px; }
  .pay-method-side { width: 200px; padding-left: 20px; }
}
.pay-channel-head { margin-bottom: 10px; }
.pay-channel-head b { font-size: 14px; }
.pay-channel-state { padding: 4px 8px; border-radius: 6px; background: var(--surface-2); }
.pay-payout-card { box-shadow: 0 1px 2px rgba(23, 27, 34, .03); }
.pay-template-card { box-shadow: 0 1px 2px rgba(23, 27, 34, .03); }
.pay-template-table tbody tr:hover { background: #fcfcfd; }
.pay-method-side em { display: block; margin-top: 3px; font-size: 11px; font-style: normal; line-height: 1.5; color: var(--text-3); }
.pay-payout-list { overflow: hidden; box-shadow: 0 1px 2px rgba(23,27,34,.03); }
.pay-payout-section + .pay-payout-section { border-top: 1px solid var(--line); }
.pay-payout-section .pay-payout-head { padding: 15px 20px; }
.pay-payout-section .pay-payout-body { padding: 15px 20px 3px; background: var(--surface-2); }
.pay-payout-section .pay-field { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 5px 14px; align-items: start; }
.pay-payout-section .pay-field > span { padding-top: 8px; }
.pay-payout-section .pay-field > .input,
.pay-payout-section .pay-field > .pay-field-row,
.pay-payout-section .pay-field > em { grid-column: 2; }
@media (max-width: 900px) {
  .pay-payout-section .pay-field { display: flex; flex-direction: column; gap: 5px; }
  .pay-payout-section .pay-field > span { padding-top: 0; }
}
@media (max-width: 900px) {
  .pay-tpl-name { flex-wrap: nowrap; }
  .pay-tpl-name .tag { margin-left: 0; }
}
.pay-tpl-sys-mobile { display: none; }
@media (max-width: 900px) {
  .pay-tpl-name { flex-wrap: wrap; }
  .pay-tpl-name > .tag { display: none; }
  .pay-tpl-sys-mobile { display: inline; color: var(--text-3); }
}
.pay-tpl-sys-mobile { display: none; }

/* =========================================================
   设置模块 3.0：内容补充与交互细节
   ========================================================= */
.settings-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.settings-saved-at { color: var(--text-3); }
.settings-avatar { overflow: hidden; }
.settings-avatar img { width: 100%; height: 100%; object-fit: cover; }

.settings-fee-demo { display: flex; flex-direction: column; gap: 0; }
.settings-fee-demo > div { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; color: var(--text-2); }
.settings-fee-demo > div:last-child { border-bottom: 0; }
.settings-fee-demo b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.settings-fee-demo .is-total { margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text); }
.settings-fee-demo .is-total b { color: var(--brand-strong); font-size: 18px; }
.settings-fee-note { margin: 10px 0 0; font-size: 11px; line-height: 1.7; color: var(--text-3); }

.settings-rule-flow { margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.settings-rule-flow li { position: relative; padding: 0 0 18px 34px; counter-increment: flow; }
.settings-rule-flow li:last-child { padding-bottom: 0; }
.settings-rule-flow li::before { content: counter(flow); position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.settings-rule-flow li:not(:last-child)::after { content: ''; position: absolute; left: 10.5px; top: 25px; bottom: 4px; width: 1px; background: var(--line); }
.settings-rule-flow b { display: block; font-size: 13px; color: var(--text); margin-bottom: 2px; }
.settings-rule-flow span { font-size: 12px; color: var(--text-3); line-height: 1.6; }

.settings-notice-summary { display: flex; align-items: center; gap: 18px; padding: 10px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.settings-notice-summary span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.settings-notice-summary svg { width: 14px; height: 14px; color: var(--text-3); }
.settings-notice-summary b { color: var(--text); font-weight: 600; }
.settings-notice-tip { margin-left: auto; color: var(--text-3) !important; }
.settings-notice-event { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; text-align: left; }
.settings-notice-event svg { width: 12px; height: 12px; color: var(--text-3); transition: transform .15s ease, color .15s ease; }
.settings-notice-event:hover { color: var(--brand-strong); }
.settings-notice-event:hover svg { color: var(--brand-strong); transform: translateX(2px); }
.settings-recipient { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.settings-recipient .tag { transition: border-color .15s ease, color .15s ease; }
.settings-recipient:hover .tag { border-color: var(--brand); color: var(--brand-strong); }
.settings-time-range .input { width: 92px; padding: 0 8px; }
.settings-time-range span { color: var(--text-3); font-size: 12px; }
.settings-dash { color: var(--text-3); }

.settings-profile-card { display: flex; align-items: center; gap: 16px; padding: 20px; }
.settings-profile-main { min-width: 0; }
.settings-profile-name { font-size: 18px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.settings-profile-meta { margin-top: 4px; font-size: 12px; color: var(--text-3); }
.settings-security-list { display: flex; flex-direction: column; }
.settings-security-list > div { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.settings-security-list > div:last-child { border-bottom: 0; }
.settings-security-list svg { width: 14px; height: 14px; color: var(--text-3); margin-top: 2px; flex: none; }
.settings-security-list b { color: var(--text); font-weight: 500; }

.settings-faq-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 36px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm, 8px); background: #fff; color: var(--text-3); }
.settings-faq-search svg { width: 15px; height: 15px; }
.settings-faq-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--text); }
.settings-faq-empty { padding: 28px 0; text-align: center; color: var(--text-3); font-size: 12px; }
.settings-ticket-table td { vertical-align: top; }
.settings-ticket-status { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 20px; background: var(--surface-2); color: var(--text-2); font-size: 11px; }
.settings-ticket-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #d97706; }
.settings-doc-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text-2); font-size: 13px; cursor: pointer; text-align: left; }
.settings-doc-btn:last-child { border-bottom: 0; }
.settings-doc-btn:hover { color: var(--brand-strong); }
.settings-doc-btn svg { width: 14px; height: 14px; color: var(--text-3); }
.settings-upload.has-image { color: var(--brand-strong); border-color: var(--brand); background: var(--brand-soft); }
.settings-upload img { width: 20px; height: 20px; object-fit: cover; border-radius: 4px; }

.settings-plan-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.settings-plan-quota { color: var(--text-3); font-size: 11px; }
.settings-invoice-form { display: flex; flex-direction: column; gap: 14px; }
.settings-invoice-total { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 8px; background: var(--surface-2); font-size: 12px; color: var(--text-3); }
.settings-invoice-total b { font-size: 20px; color: var(--text); font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .settings-notice-summary { flex-wrap: wrap; gap: 8px 14px; padding: 10px 14px; }
  .settings-notice-tip { width: 100%; margin-left: 0; }
  .settings-notice-event { font-size: 12px; }
  .settings-time-range .input { width: 84px; }
  .settings-profile-name { font-size: 16px; }
}

.settings-detail-list { display: flex; flex-direction: column; }
.settings-detail-list > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.settings-detail-list > div:last-child { border-bottom: 0; }
.settings-detail-list span { color: var(--text-3); flex: none; }
.settings-detail-list b { color: var(--text); font-weight: 500; text-align: right; line-height: 1.6; }
.settings-qr-lg { width: 168px; height: 168px; margin: 4px auto 14px; }
.settings-qr-lg svg { width: 64px; height: 64px; }
.settings-mini-preview { display: flex; justify-content: center; padding: 4px 0 2px; }
.settings-mini-preview .phone { width: 280px; height: 520px; }
.settings-mini-preview .phone-screen { overflow: hidden; }
.settings-template-preview { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: 14px 16px; }
.settings-template-head { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); }
.settings-template-head svg { width: 14px; height: 14px; color: var(--brand); }
.settings-template-head b { color: var(--text); font-weight: 500; }
.settings-template-head .tag { margin-left: auto; }
.settings-template-preview p { margin: 10px 0 6px; font-size: 13px; line-height: 1.8; color: var(--text); }
.settings-template-preview small { font-size: 11px; line-height: 1.6; color: var(--text-3); }
.settings-check-list { display: flex; flex-direction: column; gap: 8px; }
.settings-check { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.settings-check:hover { border-color: var(--line-strong); background: var(--surface-2); }
.settings-check input { margin-top: 2px; accent-color: var(--brand); width: 15px; height: 15px; }
.settings-check span { display: flex; flex-direction: column; gap: 3px; }
.settings-check b { font-size: 13px; font-weight: 500; color: var(--text); }
.settings-check em { font-style: normal; font-size: 11px; color: var(--text-3); }
.member-card-preview { position: relative; overflow: hidden; border-radius: 14px; padding: 22px; color: #fff; background: linear-gradient(135deg, #ee6c2b 0%, #c94e17 55%, #7f2f0d 100%); }
.member-card-preview::after { content: ''; position: absolute; right: -40px; bottom: -70px; width: 190px; height: 190px; border-radius: 50%; background: rgba(255,255,255,.1); }
.member-card-top { display: flex; align-items: center; gap: 8px; font-size: 12px; opacity: .9; }
.member-card-top b { margin-left: auto; font-size: 15px; font-weight: 500; }
.member-card-logo { width: 24px; height: 24px; border-radius: 7px; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 12px; }
.member-card-tier { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; font-size: 20px; font-weight: 600; }
.member-card-tier span { font-size: 11px; font-weight: 400; opacity: .78; }
.member-card-meta { display: flex; gap: 22px; margin-top: 22px; font-size: 11px; opacity: .82; }
.member-card-meta b { display: block; font-size: 15px; font-weight: 500; margin-top: 3px; opacity: 1; }
.settings-welcome { width: 280px; min-height: 64px; resize: vertical; }
.settings-plan-quota { display: block; margin-top: 6px; font-size: 11px; color: var(--text-3); text-decoration: none; }
.settings-plan-quota:hover { color: var(--brand-strong); }
@media (max-width: 760px) {
  .settings-detail-list > div { gap: 16px; }
  .settings-welcome { width: 100%; }
  .settings-mini-preview .phone { width: 240px; height: 460px; }
}

.settings-fee-demo { display: flex; flex-direction: column; }
.settings-fee-demo > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.settings-fee-demo > div:last-of-type { border-bottom: 0; }
.settings-fee-demo span { color: var(--text-3); }
.settings-fee-demo b { font-size: 13px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.settings-fee-demo .is-total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.settings-fee-demo .is-total span { color: var(--text-2); font-weight: 500; }
.settings-fee-demo .is-total b { color: var(--brand-strong); font-size: 18px; font-weight: 600; }
.settings-fee-note { margin: 10px 0 0; font-size: 11px; line-height: 1.7; color: var(--text-3); }
.settings-notice-summary { display: flex; align-items: center; gap: 22px; margin-bottom: 12px; }
.settings-notice-summary > span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.settings-notice-summary svg { width: 15px; height: 15px; color: var(--text-3); }
.settings-notice-summary b { color: var(--text); font-weight: 600; }
.settings-notice-event { display: inline-flex; align-items: flex-start; gap: 5px; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.settings-notice-event b { font-size: 13px; font-weight: 500; color: var(--text); transition: color .15s ease; }
.settings-notice-event:hover b { color: var(--brand-strong); }
.settings-notice-event svg { width: 13px; height: 13px; margin-top: 2px; color: var(--text-3); }
.settings-recipient { border: 0; background: none; padding: 0; cursor: pointer; }
.settings-recipient .tag { margin-right: 2px; }
.settings-recipient:hover .tag { border-color: var(--brand); color: var(--brand-strong); }
.settings-rule-flow { display: flex; flex-direction: column; gap: 0; }
.settings-rule-flow > div { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 12px; color: var(--text-2); }
.settings-rule-flow > div:last-child { border-bottom: 0; }
.settings-rule-flow b { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); color: var(--text-3); display: grid; place-items: center; font-size: 10px; font-weight: 500; }
.settings-rule-flow { list-style: none; margin: 0; padding: 0; }
.settings-rule-flow > li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 12px; line-height: 1.6; color: var(--text-2); }
.settings-rule-flow > li:last-child { border-bottom: 0; }
.settings-rule-flow > li b { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--surface-2); color: var(--text-3); display: grid; place-items: center; font-size: 10px; font-weight: 500; }
@media (max-width: 1080px) {
  .settings-subnav .subnav-group { display: flex; }
  .settings-subnav .subnav-sub[hidden] { display: none !important; }
  .settings-subnav .subnav-group.active { order: -2; }
  .settings-subnav .subnav-sub.group-sub-active { order: -1; }
}
.settings-security-list { padding: 2px 20px 6px; }
@media (max-width: 760px) {
  .settings-usage-grid > .settings-usage:last-child:nth-child(odd) { grid-column: span 2; }
}
.settings-ticket-list { display: flex; flex-direction: column; }
.settings-ticket { padding: 12px 0; border-bottom: 1px solid var(--line); }
.settings-ticket:last-child { border-bottom: 0; }
.settings-ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.settings-ticket-head .tag { margin: 0; }
.settings-ticket-status { font-size: 11px; color: var(--amber); }
.settings-ticket p { margin: 8px 0 6px; font-size: 13px; line-height: 1.65; color: var(--text); }
.settings-ticket-time { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .settings-notice-table thead { display: none; }
  .settings-notice-table,
  .settings-notice-table tbody { display: block; width: 100%; }
  .settings-notice-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name name" "wx sms" "rcpt time";
    gap: 7px 14px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
  }
  .settings-notice-table tbody tr:last-child { border-bottom: 0; }
  .settings-notice-table tbody td { display: block; padding: 0; border: 0; }
  .settings-notice-table tbody td:nth-child(1) { grid-area: name; }
  .settings-notice-table tbody td:nth-child(2) { grid-area: wx; display: flex; align-items: center; gap: 8px; }
  .settings-notice-table tbody td:nth-child(3) { grid-area: sms; display: flex; align-items: center; gap: 8px; }
  .settings-notice-table tbody td:nth-child(4) { grid-area: rcpt; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
  .settings-notice-table tbody td:nth-child(5) { grid-area: time; justify-self: end; align-self: center; }
  .settings-notice-table tbody td:nth-child(2)::before { content: "微信"; font-size: 11px; color: var(--text-3); }
  .settings-notice-table tbody td:nth-child(3)::before { content: "短信"; font-size: 11px; color: var(--text-3); }
  .settings-notice-table tbody td:nth-child(4)::before { content: "接收人"; font-size: 11px; color: var(--text-3); }
  .settings-notice-name { text-align: left; }
}

/* 员工身份预览与门店数据范围 */
.actor-scope-badge {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 280px; height: 30px; padding: 0 10px;
  border: 1px solid rgba(238, 108, 43, .22); border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-strong);
  font-size: 11px; white-space: nowrap; cursor: pointer;
}
.actor-scope-badge span { overflow: hidden; text-overflow: ellipsis; }
.actor-scope-badge em { font-style: normal; color: var(--text-3); }
.actor-scope-badge:hover em { color: var(--brand-strong); }
.access-scope-picker { border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.access-scope-all { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.access-scope-all input { width: 15px; height: 15px; accent-color: var(--brand); }
.access-scope-all span { display: flex; align-items: baseline; gap: 8px; }
.access-scope-all b { font-size: 13px; font-weight: 500; }
.access-scope-all em { font-style: normal; font-size: 11px; color: var(--text-3); }
.access-scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px; }
.access-scope-option { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.access-scope-option:hover { border-color: var(--line-strong); background: var(--surface-2); }
.access-scope-option:has(input:checked) { border-color: rgba(238, 108, 43, .45); background: var(--brand-soft); }
.access-scope-option:has(input:disabled) { opacity: .48; cursor: default; }
.access-scope-option input { width: 14px; height: 14px; accent-color: var(--brand); flex: none; }
.access-scope-option span { font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.access-scope-option em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--text-3); }
@media (max-width: 760px) {
  .actor-scope-badge { max-width: 150px; }
  .access-scope-grid { grid-template-columns: 1fr; }
}
.actor-scope-badge[hidden] { display: none !important; }
@media (max-width: 760px) {
  .actor-scope-badge { max-width: 104px; padding: 0 9px; font-size: 10px; }
  .actor-scope-badge span { max-width: 84px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .actor-scope-badge em { display: none; }
  .store-switch { min-width: 0; max-width: 100px; }
  .store-switch .store-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 760px) {
  .topbar .store-switch { flex: 0 0 auto; max-width: 96px; }
  .topbar .store-switch .store-name { max-width: 62px; display: inline-block; }
}
@media (max-width: 760px) {
  .topbar .store-switch { max-width: 128px; }
  .topbar .store-switch .store-name { max-width: 78px; }
}

/* 设置内容与顶部说明之间留出呼吸位，避免统计卡顶到页头 */
.page.rail .settings-main { padding-top: 12px; }
@media (max-width: 1080px) {
  .page.rail .settings-main { padding-top: 8px; }
}
/* 顶栏账号菜单 */
.user-wrap { position: relative; }
.user {
  border: 0; background: transparent; font: inherit; color: inherit;
  text-align: left; -webkit-appearance: none; appearance: none;
}
.user-caret { width: 13px; height: 13px; color: var(--text-3); transition: transform .16s ease; }
.user[aria-expanded="true"] { background: #f5f6f8; }
.user[aria-expanded="true"] .user-caret { transform: rotate(180deg); }
.user-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 80;
  width: 226px; padding: 6px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface);
  box-shadow: 0 16px 38px rgba(15, 23, 42, .14), 0 2px 8px rgba(15, 23, 42, .06);
}
.user-menu[hidden] { display: none; }
.user-menu-head { display: flex; align-items: center; gap: 9px; padding: 9px 10px 11px; }
.user-menu-head .avatar { width: 32px; height: 32px; font-size: 12px; }
.user-menu-head strong { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.user-menu-head em { display: block; margin-top: 2px; font-size: 11px; font-style: normal; color: var(--text-3); }
.user-menu-item {
  display: flex; width: 100%; align-items: center; min-height: 34px;
  padding: 0 10px; border: 0; border-radius: 8px; background: transparent;
  font: inherit; font-size: 13px; color: var(--text-2); text-decoration: none; cursor: pointer;
}
.user-menu-item:hover { background: var(--surface-2); color: var(--text); }
.user-menu-item.danger { color: var(--red); }
.user-menu-item.danger:hover { background: #fef2f2; }
.user-menu-sep { height: 1px; margin: 5px 7px; background: var(--line); }
@media (max-width: 760px) {
  .user-menu { position: fixed; right: 10px; top: 58px; width: 216px; }
}
@media (max-width: 760px) { .user-menu { top: 68px; } }
.user-menu-item svg { width: 15px; height: 15px; flex: none; color: var(--text-3); margin-right: 8px; }
.user-menu-item.danger svg { color: var(--red); }
.user-menu-item.danger:hover { background: #fef2f2; }

/* =========================================================
   套餐权益中心
   ========================================================= */

/* 侧栏套餐卡：真实套餐接口回填后仍保留原来的紧凑形态 */
.plan { position: relative; overflow: hidden; }
.plan::after {
  content: ""; position: absolute; right: -18px; top: -26px; width: 64px; height: 64px;
  border-radius: 50%; background: radial-gradient(circle, rgba(238, 108, 43, .14), transparent 70%);
  pointer-events: none;
}
.plan-row > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.plan-row > span:first-child::before {
  content: ""; width: 6px; height: 6px; border-radius: 2px; transform: rotate(45deg);
  background: linear-gradient(135deg, #ffb27a, #ee6c2b); flex: none;
}
.plan.is-soon { border-color: #f3d9bd; background: linear-gradient(180deg, #fffaf4, #fffdfb); }
.plan.is-soon .plan-day, .plan.is-soon .plan-days { color: #a45a20; }
.plan.is-expired { border-color: #f3d2d2; background: linear-gradient(180deg, #fff7f7, #fffdfd); }
.plan.is-expired .plan-row, .plan.is-expired .plan-days, .plan.is-expired a { color: #a43c3c; }
.plan.is-expired .plan-bar i { background: linear-gradient(90deg, #f08a8a, #d94b4b); }

.planx { --plx-ink: #241811; --plx-soft: #fbf7f2; --plx-line: #eeeae4; gap: 18px; }
.planx-head .btn { gap: 7px; }
.planx-head .btn svg { width: 15px; height: 15px; }

/* ---------- 深色套餐主卡 ---------- */
.planx-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) 214px; gap: 26px; align-items: center;
  padding: 28px 30px; border-radius: 20px;
  color: #fdf8f2;
  background:
    radial-gradient(120% 170% at 104% -12%, rgba(238, 108, 43, .52), transparent 46%),
    radial-gradient(80% 130% at -8% 108%, rgba(255, 186, 120, .16), transparent 54%),
    linear-gradient(128deg, #21150e 0%, #2d1b11 46%, #3b2315 100%);
  box-shadow: 0 22px 44px -30px rgba(46, 24, 12, .72), 0 2px 0 rgba(255, 255, 255, .04) inset;
}
.planx-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 236, 216, .2) .8px, transparent .8px);
  background-size: 17px 17px;
  -webkit-mask-image: linear-gradient(115deg, #000 6%, transparent 58%);
  mask-image: linear-gradient(115deg, #000 6%, transparent 58%);
}
.planx-hero::after {
  content: ""; position: absolute; z-index: -1; right: -60px; bottom: -110px; width: 330px; height: 330px;
  border-radius: 50%; border: 1px solid rgba(255, 214, 173, .16);
  box-shadow: 0 0 0 34px rgba(255, 206, 158, .035), 0 0 0 70px rgba(255, 206, 158, .025);
}
.planx-hero-glow {
  position: absolute; z-index: -1; right: 120px; top: -80px; width: 280px; height: 200px;
  background: rgba(255, 150, 82, .18); filter: blur(58px); pointer-events: none;
}
.planx-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 650; letter-spacing: .18em; color: rgba(255, 228, 204, .64);
  text-transform: uppercase;
}
.planx-dot { width: 4px; height: 4px; border-radius: 50%; background: #f2b47e; }
.planx-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.planx-title-row h2 {
  margin: 0; font-size: 34px; line-height: 1.15; font-weight: 650; letter-spacing: -.035em;
  color: #fff8f1;
}
.planx-badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .09);
  font-size: 11px; font-weight: 600; letter-spacing: .02em; color: #ffe5cb; backdrop-filter: blur(6px);
}
.planx-badge.ok { color: #c8f1d2; border-color: rgba(160, 226, 177, .26); background: rgba(77, 170, 101, .17); }
.planx-badge.warn { color: #ffdda8; border-color: rgba(247, 196, 118, .28); background: rgba(206, 142, 45, .18); }
.planx-badge.bad { color: #ffc6c1; border-color: rgba(241, 145, 136, .28); background: rgba(198, 71, 61, .2); }
.planx-badge.gold { color: #ffe1b0; border-color: rgba(244, 195, 122, .42); background: linear-gradient(135deg, rgba(241, 187, 104, .24), rgba(194, 128, 47, .16)); }
.planx-hero-desc { max-width: 560px; margin: 10px 0 0; font-size: 13px; line-height: 1.7; color: rgba(255, 237, 220, .66); }
.planx-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 22px; }
.planx-meta > div { display: flex; flex-direction: column; gap: 4px; min-width: 108px; }
.planx-meta span { font-size: 10px; letter-spacing: .08em; color: rgba(255, 226, 201, .5); }
.planx-meta b { font-size: 13px; font-weight: 600; color: #fff6ed; font-variant-numeric: tabular-nums; }
.planx-meta b i { font-style: normal; font-weight: 400; font-size: 11px; color: rgba(255, 228, 204, .5); margin-left: 4px; }
.planx-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.planx-btn-light {
  background: linear-gradient(180deg, #fffaf5, #fbe9d8); color: #5a2c10;
  border: 1px solid rgba(255, 255, 255, .5); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .55);
}
.planx-btn-light:hover { background: #fff; color: #3f1d08; }
.planx-btn-ghost {
  background: rgba(255, 255, 255, .06); color: #ffe8d2; border: 1px solid rgba(255, 219, 185, .26);
  backdrop-filter: blur(6px);
}
.planx-btn-ghost:hover { background: rgba(255, 255, 255, .13); color: #fff6ec; border-color: rgba(255, 219, 185, .4); }
.planx-auto-hint { margin-left: 4px; font-size: 11px; color: rgba(255, 226, 201, .5); }
.planx-hero-side { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.planx-ring { position: relative; width: 164px; height: 164px; }
.planx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.planx-ring-track { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 9; }
.planx-ring-fill {
  fill: none; stroke: #f3c08b; stroke-width: 9; stroke-linecap: round;
  transition: stroke-dashoffset .8s cubic-bezier(.22, .61, .36, 1);
  filter: drop-shadow(0 0 7px rgba(244, 179, 120, .4));
}
.planx-ring-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.planx-ring-inner b { font-size: 42px; line-height: 1; font-weight: 600; letter-spacing: -.035em; color: #fff9f3; font-variant-numeric: tabular-nums; }
.planx-ring-inner span { font-size: 11px; letter-spacing: .1em; color: rgba(255, 229, 205, .55); }
.planx-ring-note { font-size: 11px; color: rgba(255, 227, 201, .58); text-align: center; }

/* ---------- 用量卡 ---------- */
.planx-usage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.planx-usage {
  padding: 16px 17px 14px; border: 1px solid var(--plx-line); border-radius: 15px; background: #fff;
  box-shadow: 0 1px 2px rgba(20, 24, 33, .03);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.planx-usage:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -18px rgba(31, 24, 18, .3); border-color: #e6ded4; }
.planx-usage-head { display: flex; align-items: center; gap: 8px; }
.planx-usage-icon {
  display: grid; place-items: center; width: 28px; height: 28px; flex: none;
  border-radius: 9px; background: var(--brand-soft); color: var(--brand);
}
.planx-usage-icon svg { width: 15px; height: 15px; }
.planx-usage-label { font-size: 12px; color: var(--text-2); }
.planx-usage-head b { margin-left: auto; font-size: 19px; font-weight: 650; color: var(--text); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.planx-usage-head b i { font-size: 11px; font-style: normal; font-weight: 400; color: var(--text-3); letter-spacing: 0; }
.planx-usage .planx-bar { height: 5px; margin: 13px 0 8px; border-radius: 99px; background: #f2efe9; overflow: hidden; }
.planx-usage .planx-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f5a568, #ee6c2b); transition: width .6s ease; }
.planx-usage-foot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-3); }
.planx-usage-foot span:last-child { font-variant-numeric: tabular-nums; color: #a99f93; }
.planx-usage.is-hot { border-color: #f1d2c1; background: linear-gradient(180deg, #fffdfb, #fff9f5); }
.planx-usage.is-hot .planx-bar i { background: linear-gradient(90deg, #f28d5a, #d94b2b); }
.planx-usage.is-hot .planx-usage-icon { background: #fdece3; }

/* ---------- 主区 / 侧栏 ---------- */
.planx-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr); gap: 16px; align-items: start; }
.planx-card { border: 1px solid var(--plx-line); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(20, 24, 33, .03); overflow: hidden; }
.planx-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 17px 19px 10px; }
.planx-card-head h3 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -.01em; color: var(--text); }
.planx-card-head p { margin: 4px 0 0; font-size: 11.5px; color: var(--text-3); }
.planx-link {
  display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 2px 0;
  font: inherit; font-size: 11.5px; color: var(--brand); cursor: pointer; white-space: nowrap;
}
.planx-link:hover { color: var(--brand-strong); }
.planx-link svg { width: 12px; height: 12px; }
.planx-filters { padding: 2px 19px 8px; flex-wrap: wrap; gap: 6px; }
.planx-filters .chip { height: 27px; font-size: 11.5px; padding: 0 10px; }
.planx-chip-count { margin-left: 5px; color: var(--text-3); font-size: 10px; font-variant-numeric: tabular-nums; }
.planx-filters .chip.active .planx-chip-count { color: inherit; opacity: .72; }

/* ---------- 应用行 ---------- */
.planx-app-list { display: flex; flex-direction: column; }
.planx-app {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) 116px 82px; gap: 13px; align-items: center;
  width: 100%; padding: 12px 19px; border: 0; border-top: 1px solid #f4f1ec; background: transparent;
  font: inherit; text-align: left; cursor: pointer; color: inherit;
  transition: background .15s ease, box-shadow .15s ease;
}
.planx-app:first-child { border-top: 0; }
.planx-app:hover { background: #fdfaf6; box-shadow: inset 3px 0 0 var(--brand); }
.planx-app .app-icon { width: 38px; height: 38px; border-radius: 11px; }
.planx-app .app-icon svg { width: 18px; height: 18px; }
.planx-app-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.planx-app-main b { font-size: 13px; font-weight: 600; color: var(--text); }
.planx-app-main i { font-size: 11px; font-style: normal; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.planx-app-state { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.planx-app-state .pill { height: 20px; font-size: 10px; padding: 0 7px; }
.planx-app-state i { font-size: 10.5px; font-style: normal; color: var(--text-3); white-space: nowrap; }
.planx-app-cta {
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px;
  font-size: 11.5px; font-weight: 600; color: var(--brand); white-space: nowrap;
}
.planx-arrow { display: inline-flex; width: 12px; height: 12px; opacity: .55; transition: transform .16s ease; }
.planx-app:hover .planx-arrow { transform: translateX(2px); opacity: 1; }
.planx-arrow svg { width: 12px; height: 12px; }
.planx-more {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 40px;
  border: 0; border-top: 1px solid #f4f1ec; background: #fdfbf8; font: inherit; font-size: 11.5px;
  color: var(--text-2); cursor: pointer;
}
.planx-more:hover { color: var(--brand); background: #fcf7f2; }
.planx-more svg { width: 12px; height: 12px; }
.planx-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 160px; color: var(--text-3); font-size: 12px; }
.planx-empty svg { width: 26px; height: 26px; opacity: .42; }
.planx-empty.small { min-height: 96px; font-size: 11px; }

/* ---------- 侧栏 ---------- */
.planx-side { display: flex; flex-direction: column; gap: 16px; }
.planx-manage { padding-bottom: 6px; }
.planx-switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 4px 19px 2px; padding: 12px 0; border-bottom: 1px solid #f4f1ec; cursor: pointer;
}
.planx-switch-row > span:first-child { display: flex; flex-direction: column; gap: 3px; }
.planx-switch-row b { font-size: 12.5px; font-weight: 600; color: var(--text); }
.planx-switch-row i { font-size: 10.5px; font-style: normal; color: var(--text-3); }
.planx-switch-row .switch { flex: none; pointer-events: none; }
.planx-kv { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 19px; border-bottom: 1px solid #f7f4ef; font-size: 11.5px; }
.planx-kv span { color: var(--text-3); flex: none; }
.planx-kv b { font-weight: 600; color: var(--text-2); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.planx-wide-link {
  display: flex; align-items: center; justify-content: space-between; width: calc(100% - 38px);
  margin: 10px 19px 8px; padding: 0; border: 0; background: none; font: inherit; font-size: 11.5px;
  color: var(--brand); cursor: pointer;
}
.planx-wide-link span { display: inline-flex; width: 12px; height: 12px; }
.planx-wide-link svg { width: 12px; height: 12px; }
.planx-mini-bills { padding-bottom: 6px; }
.planx-mini-bill {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center;
  width: 100%; padding: 10px 19px; border: 0; border-top: 1px solid #f6f3ee; background: none;
  font: inherit; text-align: left; cursor: pointer;
}
.planx-mini-bill:first-of-type { border-top: 0; }
.planx-mini-bill:hover { background: #fdfaf6; }
.planx-mini-bill-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.planx-mini-bill-main b { font-size: 11.5px; font-weight: 600; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.planx-mini-bill-main i { font-size: 10px; font-style: normal; color: var(--text-3); }
.planx-mini-bill-amount { font-size: 11.5px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.planx-mini-bill .pill { height: 19px; font-size: 9.5px; padding: 0 6px; }
.planx-upsell {
  position: relative; overflow: hidden; padding: 18px 19px; border-radius: 16px; color: #fff6ec;
  background:
    radial-gradient(110% 140% at 100% 0%, rgba(255, 171, 105, .3), transparent 56%),
    linear-gradient(135deg, #2a1a11, #432716);
  box-shadow: 0 16px 30px -24px rgba(48, 28, 16, .62);
}
.planx-upsell::after {
  content: ""; position: absolute; right: -32px; bottom: -48px; width: 130px; height: 130px;
  border: 1px solid rgba(255, 219, 182, .17); border-radius: 50%;
}
.planx-upsell-kicker { font-size: 10px; letter-spacing: .1em; color: rgba(255, 224, 195, .55); }
.planx-upsell b { display: block; margin-top: 4px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.planx-upsell p { margin: 7px 0 13px; font-size: 11.5px; line-height: 1.65; color: rgba(255, 232, 209, .62); }
.planx-upsell button {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px;
  border: 1px solid rgba(255, 220, 187, .28); border-radius: 8px; background: rgba(255, 255, 255, .08);
  font: inherit; font-size: 11.5px; color: #ffe5cb; cursor: pointer;
}
.planx-upsell button:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.planx-upsell button svg { width: 12px; height: 12px; }

/* ---------- 抽屉 ---------- */
.planx-drawer { gap: 18px; }
.planx-drawer-app { display: flex; align-items: flex-start; gap: 13px; padding: 15px; border: 1px solid var(--plx-line); border-radius: 14px; background: linear-gradient(180deg, #fdfaf6, #fff); }
.planx-drawer-app .app-icon.xl { width: 50px; height: 50px; border-radius: 14px; }
.planx-drawer-app .app-icon.xl svg { width: 24px; height: 24px; }
.planx-drawer-app > div { flex: 1; min-width: 0; }
.planx-drawer-app h3 { margin: 0; font-size: 16px; font-weight: 650; color: var(--text); }
.planx-drawer-app p { margin: 5px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--text-3); }
.planx-fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--plx-line); border-radius: 12px; background: var(--plx-line); }
.planx-fact-grid > div { display: flex; flex-direction: column; gap: 4px; padding: 11px 13px; background: #fff; }
.planx-fact-grid span { font-size: 10px; letter-spacing: .05em; color: var(--text-3); }
.planx-fact-grid b { font-size: 12px; font-weight: 600; color: var(--text-2); }
.planx-term-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.planx-term-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.planx-term {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff;
  font: inherit; text-align: left; cursor: pointer; transition: border-color .16s, background .16s, box-shadow .16s;
}
.planx-term:hover { border-color: #ddc6b2; }
.planx-term b { font-size: 12px; font-weight: 600; color: var(--text); }
.planx-term b i { font-style: normal; font-size: 9px; color: #fff; background: var(--brand); border-radius: 4px; padding: 1px 4px; margin-left: 3px; }
.planx-term span { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.planx-term em { position: absolute; right: 8px; top: 8px; font-style: normal; font-size: 9.5px; color: var(--brand); }
.planx-term.active { border-color: var(--brand); background: #fffaf5; box-shadow: 0 0 0 3px var(--brand-soft); }
.planx-pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.planx-pay {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 11px 12px;
  border: 1px solid var(--line-strong); border-radius: 11px; background: #fff; font: inherit; text-align: left; cursor: pointer;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.planx-pay:hover { border-color: #ddc6b2; }
.planx-pay b { font-size: 12px; font-weight: 600; color: var(--text); }
.planx-pay span { font-size: 10px; color: var(--text-3); }
.planx-pay.active { border-color: var(--brand); background: #fffaf5; box-shadow: 0 0 0 3px var(--brand-soft); }
.planx-pay-summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 13px 15px; border-radius: 12px; background: linear-gradient(135deg, #fff8f1, #fdf1e7); border: 1px solid #f6e3d3; }
.planx-pay-summary span { font-size: 11.5px; color: #9a6a4a; }
.planx-pay-summary b { font-size: 22px; font-weight: 650; letter-spacing: -.03em; color: #a84513; font-variant-numeric: tabular-nums; }
.planx-pay-summary i { grid-column: 1 / -1; font-size: 10.5px; font-style: normal; color: #b08769; }
.planx-drawer-hint { margin: 0; font-size: 10.5px; line-height: 1.65; color: var(--text-3); }
.planx-textarea { width: 100%; height: auto; min-height: 82px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.planx-pay-hero { display: flex; align-items: center; gap: 12px; padding: 15px; border-radius: 14px; color: #fff8f1; background: linear-gradient(130deg, #2a1a11, #452916); }
.planx-pay-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: rgba(255, 224, 190, .12); color: #f5c491; }
.planx-pay-icon svg { width: 21px; height: 21px; }
.planx-pay-hero > div { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.planx-pay-hero span { font-size: 10px; color: rgba(255, 228, 204, .55); }
.planx-pay-hero b { font-size: 13px; font-weight: 600; }
.planx-pay-hero strong { font-size: 20px; font-weight: 650; letter-spacing: -.02em; color: #ffe3c7; white-space: nowrap; }
.planx-pay-hero strong i { font-size: 10px; font-style: normal; font-weight: 400; color: rgba(255, 228, 204, .55); }
.planx-compare { overflow: hidden; border: 1px solid var(--plx-line); border-radius: 12px; }
.planx-compare-head, .planx-compare-row { display: grid; grid-template-columns: 1fr 90px 90px; align-items: center; gap: 10px; padding: 10px 13px; font-size: 11.5px; }
.planx-compare-head { background: #fbf8f4; color: var(--text-3); font-size: 10px; letter-spacing: .05em; }
.planx-compare-head b, .planx-compare-row b { text-align: right; font-weight: 600; color: var(--text-2); }
.planx-compare-head b.is-target, .planx-compare-row b.is-target { color: var(--brand); }
.planx-compare-row { border-top: 1px solid #f6f2ec; }
.planx-compare-row span { color: var(--text-3); }
.planx-transfer { text-align: center; padding: 4px 4px 8px; }
.planx-transfer-icon { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 12px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.planx-transfer-icon svg { width: 24px; height: 24px; }
.planx-transfer p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.7; color: var(--text-2); }
.planx-soon { text-align: center; padding: 8px 0 4px; }
.planx-soon svg { width: 34px; height: 34px; color: var(--brand); }
.planx-soon b { display: block; margin-top: 8px; font-size: 14px; }
.planx-soon p { margin: 7px 0 0; font-size: 12px; color: var(--text-3); }

/* ---------- 账单抽屉 ---------- */
.planx-bills-drawer { gap: 14px; }
.planx-bill-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--plx-line); border-radius: 12px; background: var(--plx-line); }
.planx-bill-summary > div { display: flex; flex-direction: column; gap: 5px; padding: 12px 13px; background: #fff; }
.planx-bill-summary span { font-size: 10px; color: var(--text-3); }
.planx-bill-summary b { font-size: 17px; font-weight: 650; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.planx-bill-summary b.is-pending { color: #b7791f; }
.planx-bill-filters { gap: 6px; }
.planx-bill-filters .chip { height: 27px; font-size: 11.5px; padding: 0 10px; }
.planx-bill-list { display: flex; flex-direction: column; border: 1px solid var(--plx-line); border-radius: 12px; overflow: hidden; }
.planx-bill { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 13px; border-top: 1px solid #f5f1eb; background: #fff; }
.planx-bill:first-child { border-top: 0; }
.planx-bill-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.planx-bill-main b { font-size: 12px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.planx-bill-main span { font-size: 10.5px; color: var(--text-3); }
.planx-bill-amount { align-self: center; font-size: 13px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }
.planx-bill-status { display: flex; flex-wrap: wrap; gap: 5px; grid-column: 1; }
.planx-bill-status .pill { height: 19px; font-size: 9.5px; padding: 0 6px; }
.planx-bill-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; grid-column: 2; grid-row: 2; }
.planx-bill-actions .btn { height: 26px; font-size: 10.5px; padding: 0 9px; }
.planx-invoice-form { display: flex; flex-direction: column; gap: 14px; }
.planx-invoice-bill { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 10px; background: #fbf8f4; font-size: 12px; color: var(--text-2); }
.planx-invoice-bill b { color: var(--text); font-variant-numeric: tabular-nums; }
.planx-field { display: flex; flex-direction: column; gap: 6px; }
.planx-field > span { font-size: 11px; color: var(--text-3); }
.planx-field .input { width: 100%; }

/* ---------- 骨架 / 错误 ---------- */
.planx-skeleton { position: relative; overflow: hidden; border-radius: 16px; background: #eeeae3; }
.planx-skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: planxShimmer 1.35s infinite;
}
@keyframes planxShimmer { 100% { transform: translateX(100%); } }
.planx-skeleton-hero { height: 240px; border-radius: 20px; }
.planx-skeleton-usage { height: 104px; }
.planx-skeleton-list { height: 420px; }
.planx-skeleton-side { height: 320px; }
.planx-skeleton-line { height: 54px; border-radius: 10px; }
.planx-error {
  display: flex; align-items: center; gap: 14px; padding: 22px; border: 1px solid #f2d4d0; border-radius: 16px;
  background: linear-gradient(180deg, #fffafa, #fff); color: var(--text-2);
}
.planx-error-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: #fdeeeb; color: #c64b3c; }
.planx-error-icon svg { width: 19px; height: 19px; }
.planx-error > div { flex: 1; }
.planx-error b { font-size: 13px; color: var(--text); }
.planx-error p { margin: 4px 0 0; font-size: 11.5px; color: var(--text-3); }
.planx-error.mini { padding: 14px; }
.planx-error.mini .planx-error-icon { width: 30px; height: 30px; }
.planx-error.mini .planx-error-icon svg { width: 15px; height: 15px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .planx-body { grid-template-columns: minmax(0, 1.4fr) minmax(286px, .85fr); }
  .planx-app { grid-template-columns: 36px minmax(0, 1fr) 108px 74px; }
}
@media (max-width: 1040px) {
  .planx-body { grid-template-columns: 1fr; }
  .planx-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .planx-upsell { grid-column: 1 / -1; }
  .planx-skeleton-side { display: none; }
}
@media (max-width: 900px) {
  .planx-usage-grid { grid-template-columns: 1fr 1fr; }
  .planx-hero { grid-template-columns: minmax(0, 1fr) 178px; padding: 24px; gap: 16px; }
  .planx-title-row h2 { font-size: 30px; }
  .planx-ring { width: 144px; height: 144px; }
  .planx-ring-inner b { font-size: 36px; }
}
@media (max-width: 760px) {
  .planx-head { align-items: flex-start; }
  .planx-head .page-actions { width: 100%; }
  .planx-head .page-actions .btn { flex: 1; justify-content: center; }
  .planx-hero { grid-template-columns: 1fr; padding: 22px 20px; }
  .planx-hero-side { flex-direction: row; justify-content: flex-start; gap: 16px; padding-top: 4px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .planx-ring { width: 108px; height: 108px; flex: none; }
  .planx-ring-inner b { font-size: 28px; }
  .planx-ring-inner span { font-size: 9px; }
  .planx-ring-note { text-align: left; max-width: 160px; }
  .planx-meta { gap: 16px 22px; }
  .planx-meta > div { min-width: 92px; }
  .planx-auto-hint { width: 100%; margin-left: 0; }
  .planx-usage-grid { gap: 9px; }
  .planx-usage { padding: 13px 13px 11px; }
  .planx-side { grid-template-columns: 1fr; }
  .planx-app { grid-template-columns: 32px minmax(0, 1fr) auto auto; padding: 11px 12px; gap: 8px; }
  .planx-app-state { align-items: flex-end; }
  .planx-app-state i { display: none; }
  .planx-app-cta { display: inline-flex; font-size: 10.5px; }
  .planx-app-cta .planx-arrow { display: none; }
  .planx-filters .chip { flex: none; }
  .planx-card-head { padding: 15px 14px 8px; }
  .planx-filters { padding: 2px 14px 8px; }
  .planx-kv, .planx-switch-row { margin-left: 14px; margin-right: 14px; }
  .planx-kv { padding-left: 0; padding-right: 0; }
  .planx-wide-link { width: calc(100% - 28px); margin-left: 14px; margin-right: 14px; }
  .planx-mini-bill { padding-left: 14px; padding-right: 14px; }
  .planx-bill-summary { grid-template-columns: 1fr; }
  .planx-bill-summary > div { flex-direction: row; align-items: center; justify-content: space-between; }
  .planx-bill-summary b { font-size: 15px; }
  .planx-fact-grid { grid-template-columns: 1fr; }
  .planx-compare-head, .planx-compare-row { grid-template-columns: 1fr 64px 64px; font-size: 11px; padding: 9px 10px; }
}
@media (max-width: 480px) {
  .planx-usage-grid { grid-template-columns: 1fr 1fr; }
  .planx-usage { padding: 12px 12px 10px; }
  .planx-usage-head b { font-size: 17px; }
  .planx-usage-foot { font-size: 10px; }
  .planx-term-grid.three { grid-template-columns: 1fr; }
  .planx-title-row h2 { font-size: 27px; }
}

/* =========================================================
   经营报表：总部直管 / 独立经营 / 对账
   ========================================================= */
.report-range { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.report-custom-range { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: var(--fs-12); }
.report-custom-range .input { height: 34px; width: 142px; padding: 0 10px; font-size: var(--fs-12); }
.report-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.report-kpis .kpi-value { font-size: var(--fs-24); letter-spacing: -0.02em; }
.report-kpis .kpi-foot { gap: 6px; flex-wrap: wrap; }
.report-kpis .kpi-sub { font-size: var(--fs-11); white-space: nowrap; }

.report-settle { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.report-settle-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 14px; background: #fff; box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.report-settle-card::after { content: ""; position: absolute; right: -28px; top: -38px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(238, 108, 43, 0.08), transparent 68%); }
.report-settle-card.independent::after { background: radial-gradient(circle, rgba(14, 116, 144, 0.08), transparent 68%); }
.report-settle-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--fs-13); color: var(--text-2); }
.report-settle-num { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.report-settle-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: var(--fs-12); color: var(--text-2); }
.report-settle-meta span:first-child { color: var(--red); }
.report-settle-card p { margin-top: 10px; font-size: var(--fs-11); line-height: 1.6; color: var(--text-3); }

.report-chart-card { overflow: hidden; }
.report-chart { gap: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 10px; }
.report-chart-col { min-width: 52px; }
.report-bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 122px; width: 100%; }
.report-bar { display: block; width: 10px; border-radius: 4px 4px 2px 2px; min-height: 0; }
.report-bar.gross { background: linear-gradient(180deg, #ffb27d, #ee6c2b); }
.report-bar.net { background: linear-gradient(180deg, #9ed9c8, #2f9e7c); }
.report-bar.refund { background: linear-gradient(180deg, #f6b5ad, #d9534f); }
.report-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: var(--fs-11); color: var(--text-3); }
.report-legend span { display: inline-flex; align-items: center; gap: 5px; }
.report-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.report-legend i.gross { background: #ee6c2b; }
.report-legend i.net { background: #2f9e7c; }
.report-legend i.refund { background: #d9534f; }
.report-chart-foot { padding: 0 20px 14px; font-size: var(--fs-11); color: var(--text-3); }
.report-closed-dot { width: 5px; height: 5px; border-radius: 50%; background: #d8dee7; margin-top: 4px; }
.report-closed-dot.on { background: var(--green); }

.report-store-table tfoot td { background: #fafbfc; font-weight: 600; color: var(--text-1); border-top: 1px solid var(--line); }
.report-store-table tr.selected td { background: rgba(238, 108, 43, 0.035); }
.report-store-link { border: 0; background: none; padding: 0; color: var(--text-1); font: inherit; font-weight: 500; cursor: pointer; text-align: left; }
.report-store-link:hover { color: var(--brand); }
.report-share { color: var(--text-2); font-variant-numeric: tabular-nums; }
.report-two-col { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }
.report-channel { padding: 8px 20px 12px; border-top: 1px solid var(--line-soft); }
.report-channel:first-of-type { border-top: 0; }
.report-channel-head { display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-13); }
.report-channel-head b { font-variant-numeric: tabular-nums; }
.report-channel-bar { height: 7px; border-radius: 99px; background: #f0f2f5; overflow: hidden; margin: 7px 0 5px; }
.report-channel-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb07c, #ee6c2b); }
.report-channel-meta { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-11); color: var(--text-3); }

.report-recon { padding-bottom: 12px; }
.report-recon.ok { border-color: #cbe8da; }
.report-recon.bad { border-color: #f2c8c4; }
.report-recon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 20px; }
.report-recon-grid > div { background: #fafbfc; border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; }
.report-recon-grid span { display: block; color: var(--text-3); font-size: var(--fs-11); margin-bottom: 4px; }
.report-recon-grid b { font-size: var(--fs-18); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.report-mismatch { margin: 0 20px 4px; border: 1px solid var(--line-soft); border-radius: 10px; }
.report-mismatch .table th, .report-mismatch .table td { padding: 7px 10px; font-size: var(--fs-12); }
.report-note { padding: 4px 20px 0; font-size: var(--fs-11); line-height: 1.7; color: var(--text-3); }
.report-footnote { font-size: var(--fs-11); line-height: 1.8; color: var(--text-3); padding: 2px 2px 10px; }
.report-empty { padding: 26px 12px; text-align: center; color: var(--text-3); font-size: var(--fs-13); }
.report-loading { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.report-error { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-color: #f2c8c4; }
.report-error-icon { width: 34px; height: 34px; border-radius: 50%; background: #fdeceb; color: #c94742; display: grid; place-items: center; font-weight: 700; }
.report-error b { font-size: var(--fs-14); }
.report-error p { margin-top: 2px; font-size: var(--fs-12); color: var(--text-3); }
.report-error .btn { margin-left: auto; }

@media (max-width: 1080px) {
  .report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .report-range { width: 100%; }
  .report-custom-range { width: 100%; }
  .report-custom-range .input { flex: 1; width: auto; min-width: 0; }
  .report-settle { grid-template-columns: 1fr; }
  .report-chart { padding-left: 14px; padding-right: 14px; }
  .report-chart-col { min-width: 46px; }
  .report-recon-grid { padding: 12px 14px; gap: 6px; }
  .report-recon-grid > div { padding: 8px 9px; }
  .report-recon-grid b { font-size: var(--fs-14); }
  .report-channel { padding-left: 14px; padding-right: 14px; }
  .report-footnote { font-size: var(--fs-11); }
}
@media (max-width: 480px) {
  .report-kpis { gap: 8px; }
  .report-kpis .kpi { padding: 12px 12px 10px; }
  .report-kpis .kpi-value { font-size: var(--fs-20); }
  .report-settle-num { font-size: 22px; }
  .report-bars { height: 100px; }
}

/* 报表：单卡 KPI 带 + 门店金额条 */
.report-kpi-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden; }
.report-kpi { min-width: 0; padding: 16px 20px 14px; border-left: 1px solid var(--line-soft); }
.report-kpi:first-child { border-left: 0; }
.report-kpi-label { display: block; font-size: var(--fs-12); color: var(--text-3); margin-bottom: 5px; }
.report-kpi-value { display: block; font-size: 26px; line-height: 1.15; font-weight: 650; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-kpi-foot { display: block; margin-top: 6px; font-size: var(--fs-11); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-kpi-value.neg { color: var(--red); }
.report-amount-cell { min-width: 92px; }
.report-amount-cell b { display: block; font-weight: 550; }
.report-mini-track { display: block; height: 3px; width: 78px; margin: 5px 0 0 auto; border-radius: 99px; background: #f0f2f5; overflow: hidden; }
.report-mini-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffc39b, #ee6c2b); }
.report-bar { width: 12px; min-height: 0; }
@media (max-width: 1080px) {
  .report-kpi-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-kpi:nth-child(3) { border-left: 0; }
  .report-kpi:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 760px) {
  .report-kpi { padding: 13px 14px 11px; }
  .report-kpi-value { font-size: 21px; }
  .report-bar { width: 8px; }
  .report-mini-track { width: 58px; }
}
@media (max-width: 480px) {
  .report-kpi-value { font-size: 19px; }
  .report-kpi-foot { white-space: normal; line-height: 1.5; }
}

/* 报表：rail 布局仍保留页面主标题 */
.page.rail.report-page > .page-head > div:first-child h1 {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  margin: 0 0 3px;
  font-size: var(--fs-24);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.page.rail.report-page > .page-head p { margin-top: 0; }

/* 报表：门店选择 / 流水分页 / 日结状态 */
.report-store-select { width: 148px; height: 36px; flex: 0 0 auto; }
.report-txns-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 2px 2px 10px; }
.report-txns-head b { display: block; font-size: 14px; color: var(--text); margin-bottom: 3px; }
.report-txns-head span { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.report-txns-kpi { margin-bottom: 0; }
.report-txn-card .table-wrap { border-radius: 0; }
.report-txn-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.report-page-size { width: 118px; height: 32px; padding: 0 8px; font-size: 12px; }
.report-txn-pager .btn { min-width: 34px; padding-left: 9px; padding-right: 9px; }
.report-page-gap { color: var(--text-3); padding: 0 2px; font-size: 12px; }
.report-daily-partial td { background: #fffaf4; }
.report-daily-partial td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
@media (max-width: 760px) {
  .report-store-select { width: 100%; }
  .page-actions .report-range { width: 100%; }
  .report-txns-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .report-txn-pager { align-items: flex-start; }
  .report-txn-pager .pager-btns { width: 100%; }
  .report-page-size { margin-left: auto; }
}

/* 报表：点餐方式与通兑二维码 */
.report-source-table td.num { vertical-align: top; line-height: 1.35; }
.report-source-table td.num b { font-size: var(--fs-14); font-weight: 650; }
.report-source-table .report-tongdu b { color: #0e7490; }
.report-source-table tfoot td { background: var(--bg-soft); font-weight: 600; }
.report-source-note { padding: 10px 16px 14px; font-size: var(--fs-11); line-height: 1.6; color: var(--text-3); border-top: 1px dashed var(--line); background: #fcfcfd; }
@media (max-width: 760px) {
  .report-source-table { min-width: 620px; }
  .report-source-table th, .report-source-table td { padding-left: 12px; padding-right: 12px; }
  .report-source-note { padding: 10px 12px 12px; }
}

/* ===== 营业报表应用页：日报周报 / 时段 / 客单价走势 ===== */
.report-app-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.report-app-toolbar-end { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.report-app-kpi-band { margin-bottom: 10px; }
.report-kpi-value small { font-size: var(--fs-12); font-weight: 500; color: var(--text-3); margin-left: 2px; }
.report-app-subline { display: flex; gap: 16px; flex-wrap: wrap; padding: 0 2px 18px; font-size: var(--fs-11); color: var(--text-3); }
.report-app-subline .neg { color: var(--red); }
.report-app-delta { font-weight: 600; }
.report-app-delta.good { color: var(--green); }
.report-app-delta.bad { color: var(--red); }
.report-app-delta.note-even { color: var(--text-3); font-weight: 400; }
.report-app-delta-note { color: var(--text-3); margin-left: 4px; }

.report-app-card { margin-bottom: 16px; overflow: hidden; }
.report-app-card .card-head { align-items: center; gap: 12px; flex-wrap: wrap; }
.report-app-scroll { overflow-x: auto; }
.report-app-table { min-width: 620px; }
.report-app-table td.num, .report-app-table th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-app-table tr.report-app-idle td { color: var(--text-3); }
.report-app-period-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: #fcfcfd; }
.report-app-period-strip > div { padding: 10px 16px; border-left: 1px solid var(--line-soft); }
.report-app-period-strip > div:first-child { border-left: 0; }
.report-app-period-strip span { display: block; font-size: var(--fs-11); color: var(--text-3); margin-bottom: 3px; }
.report-app-period-strip b { font-size: var(--fs-16); font-variant-numeric: tabular-nums; }
.report-app-period-strip small { margin-left: 6px; color: var(--text-3); font-size: var(--fs-10); }

.report-app-peak-line { display: flex; gap: 20px; flex-wrap: wrap; padding: 10px 20px 0; font-size: var(--fs-12); color: var(--text-2); }
.report-app-peak-line b { color: var(--text); font-variant-numeric: tabular-nums; }
.report-dayparts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 16px 20px 4px; }
.report-daypart { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 10px; background: #fff; }
.report-daypart.peak { border-color: #f3b98f; background: linear-gradient(180deg, #fff8f2, #fff); box-shadow: 0 0 0 1px rgba(238, 108, 43, 0.08); }
.report-daypart-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.report-daypart-head b { font-size: var(--fs-13); }
.report-daypart-flag { font-size: var(--fs-10); color: #c2571f; background: var(--brand-soft-2); border-radius: 99px; padding: 1px 6px; }
.report-daypart-range { font-size: var(--fs-10); color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-daypart-value { font-size: var(--fs-18); font-weight: 650; letter-spacing: -0.02em; margin-top: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-daypart-meta { font-size: var(--fs-10); color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-daypart-track { height: 5px; border-radius: 99px; background: #f0f2f5; overflow: hidden; margin-top: 9px; }
.report-daypart-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffc39b, #ee6c2b); }
.report-daypart-share { font-size: var(--fs-10); color: var(--text-3); margin-top: 5px; }

.report-hourly-wrap { margin-top: 14px; padding: 8px 20px 0; border-top: 1px dashed var(--line); }
.report-hourly { display: flex; align-items: flex-end; gap: 4px; height: 154px; overflow-x: auto; padding-bottom: 2px; }
.report-hour { flex: 1 0 22px; min-width: 22px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.report-hour-bar { width: 12px; border-radius: 4px 4px 2px 2px; background: #e9edf2; }
.report-hour.peak .report-hour-bar { background: linear-gradient(180deg, #ffb27d, #ee6c2b); }
.report-hour span { font-size: var(--fs-10); color: var(--text-3); white-space: nowrap; }

.report-app-trend-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line-soft); background: #fcfcfd; }
.report-app-trend-strip > div { padding: 10px 16px; border-left: 1px solid var(--line-soft); }
.report-app-trend-strip > div:first-child { border-left: 0; }
.report-app-trend-strip span { display: block; font-size: var(--fs-11); color: var(--text-3); margin-bottom: 3px; }
.report-app-trend-strip b { font-size: var(--fs-16); font-variant-numeric: tabular-nums; }
.report-app-trend-strip small { margin-left: 6px; font-size: var(--fs-10); color: var(--text-3); }
.report-trend-wrap { padding: 8px 18px 4px; }
.report-trend-wrap svg { display: block; width: 100%; height: auto; }
.report-trend-grid { stroke: #eef1f5; stroke-width: 1; }
.report-trend-axis { font-size: 10px; fill: var(--text-3); }
.report-trend-line { fill: none; stroke: #ee6c2b; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.report-trend-dot { fill: #fff; stroke: #ee6c2b; stroke-width: 2; }
.report-trend-value { font-size: 10px; fill: #c2571f; font-weight: 600; }
.report-trend-avg { stroke: #b7c0cc; stroke-width: 1; stroke-dasharray: 4 4; }
.report-trend-avg-label { font-size: 10px; fill: var(--text-3); }
.report-app-note { padding: 8px 20px 14px; font-size: var(--fs-10); line-height: 1.6; color: var(--text-3); }

.report-app-links { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.report-app-links b { font-size: var(--fs-14); }
.report-app-links p { margin-top: 4px; font-size: var(--fs-12); color: var(--text-2); line-height: 1.6; }
.report-app-link-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== 菜品销售榜 ===== */
.dish-rank-no { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: var(--fs-11); font-weight: 700; color: var(--text-2); background: var(--bg-2); }
.dish-rank-no.top1 { color: #fff; background: #ee6c2b; }
.dish-rank-no.top2 { color: #fff; background: #8b96a5; }
.dish-rank-no.top3 { color: #fff; background: #b98352; }
.dish-rank-table .cell-main { font-weight: 600; }
.dish-rank-share { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dish-rank-share b { font-size: var(--fs-11); font-weight: 600; }
.dish-rank-bar { display: block; width: 56px; height: 4px; border-radius: 999px; overflow: hidden; background: var(--bg-2); }
.dish-rank-bar i { display: block; height: 100%; border-radius: inherit; background: #ee6c2b; }
.dish-slow-list { display: flex; flex-direction: column; }
.dish-slow-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--line-soft); }
.dish-slow-item:first-child { border-top: 0; }
.dish-slow-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dish-slow-main b { font-size: var(--fs-13); }
.dish-slow-main span { font-size: var(--fs-11); color: var(--text-3); }
.dish-slow-suggest { flex: none; max-width: 46%; font-size: var(--fs-11); color: var(--text-2); text-align: right; line-height: 1.5; }

@media (max-width: 1080px) {
  .report-app-period-strip, .report-app-trend-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-app-period-strip > div:nth-child(3), .report-app-trend-strip > div:nth-child(3) { border-left: 0; }
  .report-app-period-strip > div:nth-child(n+3), .report-app-trend-strip > div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .report-dayparts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .report-app-toolbar { padding: 12px 14px; align-items: flex-start; flex-direction: column; }
  .report-app-toolbar .report-range, .report-app-toolbar-end { width: 100%; }
  .report-app-toolbar-end .report-store-select { flex: 1 1 140px; width: auto; }
  .report-dayparts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px 14px 4px; }
  .report-app-peak-line, .report-hourly-wrap { padding-left: 14px; padding-right: 14px; }
  .report-app-peak-line { gap: 10px 16px; }
  .report-hourly { height: 130px; gap: 1px; }
  .report-hour { flex: 1 1 0; min-width: 0; }
  .report-hour-bar { width: 6px; }
  .report-hour span { font-size: 9px; }
  .report-trend-wrap { padding-left: 8px; padding-right: 8px; }
  .report-app-links { align-items: flex-start; flex-direction: column; padding: 14px; }
  .report-app-link-btns { width: 100%; }
  .report-app-link-btns .btn { flex: 1; }
  .report-app-note { padding-left: 14px; padding-right: 14px; }
  .report-app-table { min-width: 0; width: 100%; font-size: var(--fs-11); }
  .report-app-table th, .report-app-table td { padding: 8px 6px; }
  .report-app-table th:first-child, .report-app-table td:first-child { padding-left: 12px; }
  .report-app-table th:last-child, .report-app-table td:last-child { padding-right: 12px; }
  .report-daypart:last-child:nth-child(odd) { grid-column: span 2; }
  .dish-rank-cat, .dish-rank-orders { display: none; }
  .dish-rank-share { align-items: flex-start; }
  .dish-rank-bar { width: 44px; }
  .dish-slow-item { padding: 11px 14px; align-items: flex-start; flex-direction: column; gap: 5px; }
  .dish-slow-suggest { max-width: none; text-align: left; }
}
@media (max-width: 480px) {
  .report-app-period-strip b, .report-app-trend-strip b { font-size: var(--fs-14); }
  .report-app-period-strip > div, .report-app-trend-strip > div { padding: 9px 12px; }
  .report-daypart-value { font-size: var(--fs-16); }
}


/* ===== 渠道来源分析 ===== */
.source-channel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px 20px 4px; }
.source-channel { --sc: #ee6c2b; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 13px 14px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.source-channel::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--sc); }
.source-channel.ch-online { --sc: #ee6c2b; }
.source-channel.ch-table { --sc: #2f7de1; }
.source-channel.ch-delivery { --sc: #16a34a; }
.source-channel.ch-tongdu { --sc: #7c3aed; }
.source-channel.is-empty { opacity: .58; }
.source-channel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--fs-12); color: var(--text-2); }
.source-channel-head b { font-size: var(--fs-13); color: var(--text); }
.source-channel-value { font-size: 20px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.source-channel-bar { height: 5px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.source-channel-bar i { display: block; height: 100%; border-radius: inherit; background: var(--sc); }
.source-channel-meta { font-size: var(--fs-11); color: var(--text-2); }
.source-channel-foot { font-size: var(--fs-10); color: var(--text-3); line-height: 1.5; }
.source-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.source-dot.ch-online { background: #ee6c2b; }
.source-dot.ch-table { background: #2f7de1; }
.source-dot.ch-delivery { background: #16a34a; }
.source-dot.ch-tongdu { background: #7c3aed; }
.source-table { min-width: 760px; }
.source-table tr.is-empty-row td { color: var(--text-3); }
.source-store-table { min-width: 680px; }
.source-store-table small { display: block; color: var(--text-3); font-size: 10px; margin-top: 2px; }
.source-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 4px 20px 8px; font-size: var(--fs-11); color: var(--text-2); }
.source-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.source-legend-item i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; }
.source-legend-item i.ch-online { background: #ee6c2b; }
.source-legend-item i.ch-table { background: #2f7de1; }
.source-legend-item i.ch-delivery { background: #16a34a; }
.source-legend-item i.ch-tongdu { background: #7c3aed; }
.source-daily-wrap { padding: 4px 20px 10px; overflow-x: auto; }
.source-daily { display: flex; align-items: flex-end; gap: 5px; height: 170px; }
.source-day { flex: 1 0 24px; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; min-width: 24px; }
.source-day-bars { display: flex; flex-direction: column-reverse; width: 100%; height: 140px; border-radius: 3px 3px 0 0; overflow: hidden; background: #f4f6f8; }
.source-day-bars i { display: block; width: 100%; min-height: 0; }
.source-day-bars i.ch-online { background: #ee6c2b; }
.source-day-bars i.ch-table { background: #2f7de1; }
.source-day-bars i.ch-delivery { background: #16a34a; }
.source-day-bars i.ch-tongdu { background: #7c3aed; }
.source-day > span { font-size: 9px; color: var(--text-3); white-space: nowrap; transform: scale(.92); }
.source-insight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-soft); }
.source-insight { padding: 14px 20px 16px; border-left: 1px solid var(--line-soft); min-width: 0; }
.source-insight:first-child { border-left: 0; }
.source-insight span { display: block; font-size: var(--fs-11); color: var(--text-3); }
.source-insight b { display: block; margin-top: 4px; font-size: var(--fs-15); }
.source-insight p { margin-top: 6px; font-size: var(--fs-11); line-height: 1.6; color: var(--text-2); }
.source-insight.is-empty { grid-column: 1 / -1; border-left: 0; }
.source-lock { padding: 22px; }
.source-lock-main { display: flex; gap: 14px; align-items: flex-start; }
.source-lock-main h2 { margin: 0 0 6px; font-size: 18px; }
.source-lock-main p { margin: 0; color: var(--text-2); font-size: var(--fs-13); line-height: 1.7; max-width: 760px; }
.source-lock-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 18px 0 0; padding: 0 0 0 18px; color: var(--text-2); font-size: var(--fs-12); line-height: 1.7; }
.source-lock-list li { padding-left: 2px; }
.source-lock-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.source-lock .report-app-note { padding-left: 0; padding-right: 0; padding-bottom: 0; }
.source-store-mobile { display: none; padding: 4px 14px 14px; }
.source-store-card { border: 1px solid var(--line); border-radius: 10px; margin: 10px 14px; padding: 11px 12px; }
.source-store-mobile .source-store-card:first-child { margin-top: 4px; }
.source-store-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.source-store-head b { font-size: var(--fs-13); }
.source-store-head span { font-size: var(--fs-10); color: var(--text-3); }
.source-store-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.source-store-cell { min-width: 0; }
.source-store-cell span { display: block; font-size: 10px; color: var(--text-3); }
.source-store-cell b { display: block; margin-top: 2px; font-size: var(--fs-12); font-variant-numeric: tabular-nums; }
.source-store-cell small { display: block; font-size: 9px; color: var(--text-3); }
.source-store-total { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: var(--fs-11); color: var(--text-2); }
.source-store-total b { font-size: var(--fs-14); color: var(--text); }
.source-store-total small { color: var(--text-3); }

.member-compare-table { min-width: 560px; }
.member-level-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 20px 6px; }
.member-level-card { border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; --mc: #64748b; }
.member-level-card.gold { --mc: #b45309; background: #fffbeb; border-color: #fde68a; }
.member-level-card.silver { --mc: #64748b; background: #f8fafc; }
.member-level-card.normal { --mc: #475569; }
.member-level-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--fs-12); color: var(--text-2); }
.member-level-value { margin-top: 6px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.member-level-bar { height: 5px; border-radius: 3px; background: #eef2f6; margin-top: 8px; overflow: hidden; }
.member-level-bar i { display: block; height: 100%; border-radius: 3px; background: var(--mc); }
.member-level-meta { margin-top: 7px; font-size: var(--fs-10); color: var(--text-3); }
.member-daily-wrap { padding: 4px 20px 10px; overflow-x: auto; }
.member-daily { display: flex; align-items: flex-end; gap: 5px; height: 170px; }
.member-day { flex: 1 0 24px; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; min-width: 24px; }
.member-day-bars { display: flex; flex-direction: column-reverse; width: 100%; height: 140px; border-radius: 3px 3px 0 0; overflow: hidden; background: #f4f6f8; }
.member-day-bars i { display: block; width: 100%; min-height: 0; }
.member-day-bars i.ch-member, .source-legend-item i.ch-member { background: #ee6c2b; }
.member-day-bars i.ch-guest, .source-legend-item i.ch-guest { background: #94a3b8; }
.member-day > span { font-size: 9px; color: var(--text-3); white-space: nowrap; transform: scale(.92); }
.member-top-table { min-width: 820px; }
.member-top-table .pill.gold { background: #fef3c7; color: #b45309; }
.member-top-table .pill.silver { background: #e2e8f0; color: #475569; }
.member-top-table .pill.normal { background: #f1f5f9; color: #64748b; }

.roi-funnel { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 8px; padding: 16px 20px 18px; }
.roi-step { border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; background: #fbfcfd; min-width: 0; }
.roi-step span { display: block; font-size: var(--fs-11); color: var(--text-3); }
.roi-step b { display: block; margin-top: 4px; font-size: 22px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.roi-step small { display: block; margin-top: 5px; font-size: var(--fs-10); color: var(--text-2); line-height: 1.5; }
.roi-arrow { display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 14px; }
.roi-table { min-width: 820px; }
.roi-table tr.roi-zero td { color: var(--text-3); }
.roi-table tr.roi-zero td .cell-main { font-weight: 500; }
.roi-share-cell { min-width: 104px; }
.roi-share { height: 5px; border-radius: 3px; background: #eef2f6; overflow: hidden; }
.roi-share i { display: block; height: 100%; border-radius: 3px; background: #ee6c2b; }
.roi-share-cell span { display: block; margin-top: 3px; font-size: 10px; color: var(--text-3); }

.bom-subline-note { margin-left: 10px; color: var(--text-3); }
.bom-note { margin: 0 0 14px; font-size: var(--fs-11); line-height: 1.6; color: var(--text-2); }
.bom-head-note { margin-left: 8px; font-size: var(--fs-11); font-weight: 400; color: var(--text-3); }
.bom-head-right { font-size: var(--fs-11); color: var(--text-3); }
.bom-empty { margin: 16px 20px 4px; border: 1px dashed #e6d2bf; border-radius: 10px; padding: 13px 15px; background: #fffaf4; }
.bom-empty b { display: block; font-size: var(--fs-13); color: var(--text-1); }
.bom-empty p { margin-top: 5px; font-size: var(--fs-11); line-height: 1.65; color: var(--text-2); }
.bom-cost-table { min-width: 720px; }
.bom-cost-cell { display: flex; align-items: center; gap: 3px; }
.bom-cost-cell span { color: var(--text-3); font-size: var(--fs-11); }
.bom-cost-input { width: 92px; height: 30px; padding: 0 7px; font-size: var(--fs-12); text-align: right; }
.bom-cost-actions { white-space: nowrap; }
.bom-cost-actions .btn + .btn { margin-left: 5px; }
.bom-margin { font-size: var(--fs-12); font-variant-numeric: tabular-nums; font-weight: 600; }
.bom-margin.good { color: #1f8a52; }
.bom-margin.warn { color: #b7791f; }
.bom-margin.bad { color: #c0392b; }
.bom-margin.none { color: var(--text-3); font-weight: 400; }
.bom-rank-table { min-width: 640px; }
.bom-rank-table tr.is-bad td { background: #fff7f5; }
.bom-cat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; padding: 16px 20px 18px; }
.bom-cat-row { min-width: 0; }
.bom-cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bom-cat-head b { font-size: var(--fs-12); }
.bom-cat-head span { font-size: var(--fs-11); color: var(--text-2); }
.bom-cat-bar { height: 6px; margin-top: 6px; border-radius: 4px; background: #eef2f6; overflow: hidden; }
.bom-cat-bar i { display: block; height: 100%; border-radius: 4px; background: #2f9e63; }
.bom-cat-bar i.warn { background: #d29a2e; }
.bom-cat-bar i.bad { background: #c0392b; }
.bom-cat-foot { margin-top: 4px; font-size: 10px; color: var(--text-3); }
.bom-insight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.bom-insight { padding: 16px 20px; border-left: 1px solid var(--line); min-width: 0; }
.bom-insight:first-child { border-left: 0; }
.bom-insight span { display: block; font-size: var(--fs-11); color: var(--text-3); }
.bom-insight b { display: block; margin-top: 5px; font-size: var(--fs-13); line-height: 1.4; }
.bom-insight p { margin-top: 6px; font-size: var(--fs-11); line-height: 1.6; color: var(--text-2); }

@media (max-width: 1080px) {
  .bom-insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bom-insight:nth-child(3) { border-left: 0; }
  .bom-insight:nth-child(n+3) { border-top: 1px solid var(--line); }
  .roi-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roi-arrow { display: none; }
  .source-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-insight:nth-child(3) { border-left: 0; border-top: 1px solid var(--line-soft); }
  .source-insight:nth-child(4) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 760px) {
  .source-channel-grid { padding: 12px 14px 2px; gap: 8px; }
  .source-channel { padding: 11px 11px 10px; }
  .source-channel-value { font-size: 18px; }
  .source-channel-foot { display: none; }
  .source-col-secondary { display: none; }
  .source-table { min-width: 0; }
  .source-table-wrap { overflow: visible; }
  .source-table-card .card-head { flex-wrap: wrap; gap: 4px 12px; padding: 14px; }
  .source-table .cell-sub { display: none; }
  .source-store-table-wrap { display: none; }
  .source-store-mobile { display: block; }
  .source-store-card-wrap .card-head { flex-wrap: wrap; gap: 4px 12px; padding: 14px; }
  .member-level-grid { grid-template-columns: 1fr; padding: 14px; gap: 8px; }
  .member-level-card { padding: 11px 12px; }
  .member-compare-table { min-width: 0; }
  .member-daily-wrap { padding: 4px 14px 10px; }
  .member-top-table { min-width: 0; }
  .member-top-table th:nth-child(2), .member-top-table td:nth-child(2),
  .member-top-table th:nth-child(5), .member-top-table td:nth-child(5),
  .member-top-table th:nth-child(7), .member-top-table td:nth-child(7) { display: none; }
  .member-top-table .cell-sub { display: none; }
  .roi-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; gap: 8px; }
  .roi-arrow { display: none; }
  .roi-step { padding: 10px 11px; }
  .roi-step b { font-size: 19px; }
  .roi-table { min-width: 0; }
  .roi-table th:nth-child(4), .roi-table td:nth-child(4),
  .roi-table th:nth-child(7), .roi-table td:nth-child(7) { display: none; }
  .bom-cost-table { min-width: 0; }
  .bom-cost-table .bom-col-cat, .bom-cost-table .bom-col-price { display: none; }
  .bom-cost-input { width: 76px; height: 28px; }
  .bom-cost-actions { white-space: normal; }
  .bom-cost-actions .btn + .btn { margin-left: 0; margin-top: 4px; }
  .bom-rank-table { min-width: 0; }
  .bom-rank-table th:nth-child(2), .bom-rank-table td:nth-child(2) { display: none; }
  .bom-cat-list { grid-template-columns: 1fr; padding: 14px; }
  .bom-insight-grid { grid-template-columns: 1fr; }
  .bom-insight { border-left: 0; border-top: 1px solid var(--line); }
  .bom-insight:first-child { border-top: 0; }
  .bom-head-note { display: none; }
  .bom-subline-note { display: block; margin: 4px 0 0; }
  .source-legend { padding-left: 14px; padding-right: 14px; }
  .source-daily-wrap { padding-left: 8px; padding-right: 8px; }
  .source-insight { padding: 12px 14px 14px; }
  .source-insight-grid { grid-template-columns: 1fr; }
  .source-insight:nth-child(n+2) { border-left: 0; border-top: 1px solid var(--line-soft); }
  .source-lock { padding: 16px; }
  .source-lock-list { grid-template-columns: 1fr; gap: 6px; }
  .source-lock-actions .btn { flex: 1; }
}
@media (max-width: 430px) {
  .source-channel-head { font-size: 11px; }
  .source-channel-value { font-size: 17px; }
}


/* ===== 备货预测 ===== */
.forecast-subline-note { margin-left: 8px; color: var(--text-3); }
.forecast-note { margin: 0 0 12px; padding: 0 2px; color: var(--text-3); font-size: var(--fs-11); line-height: 1.7; }
.forecast-head-note { margin-left: 8px; color: var(--text-3); font-size: var(--fs-11); font-weight: 400; }
.forecast-head-right { color: var(--text-3); font-size: var(--fs-11); }
.report-app-kpi-band .report-kpi-value small { font-size: 12px; font-weight: 500; color: var(--text-3); margin-left: 2px; }
.forecast-list-table { min-width: 820px; }
.forecast-suggest { font-size: 18px; font-weight: 700; color: var(--text); }
.forecast-list-table td small { color: var(--text-3); font-size: 10px; }
.forecast-conf { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.forecast-conf.good { background: #e8f6ee; color: #237a4b; }
.forecast-conf.warn { background: #fbf1dc; color: #92651b; }
.forecast-conf.bad { background: #fbe9e7; color: #a33a2c; }
.forecast-trend { font-variant-numeric: tabular-nums; font-size: var(--fs-12); }
.forecast-trend.up { color: #c0392b; }
.forecast-trend.down { color: #237a4b; }
.forecast-trend.flat { color: var(--text-3); }
.forecast-empty { padding: 26px 20px; }
.forecast-daily-wrap { overflow-x: auto; padding: 10px 18px 14px; }
.forecast-daily { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 8px; }
.forecast-day { flex: 1 0 30px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.forecast-day-bar { width: 100%; height: 112px; display: flex; align-items: flex-end; justify-content: center; background: #f3f6fa; border-radius: 5px 5px 0 0; overflow: hidden; }
.forecast-day-bar i { display: block; width: 72%; min-height: 2px; background: #4f8ff0; border-radius: 4px 4px 0 0; }
.forecast-day span { margin-top: 6px; font-size: 10px; color: var(--text-3); white-space: nowrap; }
.forecast-day small { font-size: 10px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.forecast-zero-list { padding: 4px 18px 14px; }
.forecast-zero-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.forecast-zero-item:last-child { border-bottom: 0; }
.forecast-zero-item div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.forecast-zero-item b { font-size: var(--fs-13); }
.forecast-zero-item span { color: var(--text-3); font-size: 10px; }
.forecast-zero-item em { flex: none; font-style: normal; color: var(--text-3); font-size: var(--fs-11); }
.forecast-insight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.forecast-insight { padding: 16px 20px; border-left: 1px solid var(--line); min-width: 0; }
.forecast-insight:first-child { border-left: 0; }
.forecast-insight span { display: block; font-size: var(--fs-11); color: var(--text-3); }
.forecast-insight b { display: block; margin-top: 5px; font-size: var(--fs-13); line-height: 1.4; }
.forecast-insight p { margin-top: 6px; font-size: var(--fs-11); line-height: 1.6; color: var(--text-2); }

@media (max-width: 1080px) {
  .forecast-insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forecast-insight:nth-child(3) { border-left: 0; }
  .forecast-insight:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .forecast-list-table { min-width: 0; }
  .forecast-list-table th:nth-child(3), .forecast-list-table td:nth-child(3),
  .forecast-list-table th:nth-child(5), .forecast-list-table td:nth-child(5) { display: none; }
  .forecast-list-table .cell-sub { display: none; }
  .forecast-head-note { display: none; }
  .forecast-subline-note { display: block; margin: 4px 0 0; }
  .forecast-daily-wrap { padding-left: 10px; padding-right: 10px; }
  .forecast-zero-list { padding: 2px 14px 10px; }
  .forecast-insight-grid { grid-template-columns: 1fr; }
  .forecast-insight { border-left: 0; border-top: 1px solid var(--line); }
  .forecast-insight:first-child { border-top: 0; }
}

/* ===== 订单账本 ===== */
.report-ledger { display: flex; flex-direction: column; gap: 16px; }
.report-ledger-kpi { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.report-ledger-card { overflow: hidden; }
.report-ledger-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.report-ledger-head h3 { margin: 0 0 4px; font-size: 15px; }
.report-ledger-head p { margin: 0; color: var(--text-2); font-size: 12px; }
.report-ledger-filters { display: flex; align-items: center; gap: 8px; flex: none; }
.report-ledger-filters .input { width: 170px; }
.report-ledger-filters select.input { width: 112px; }
.report-ledger-summary { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 10px 18px; background: var(--bg); border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 12px; }
.report-ledger-summary b { color: var(--text); font-variant-numeric: tabular-nums; margin-left: 4px; }
.report-ledger-table { min-width: 1000px; }
.report-ledger-table th { white-space: nowrap; }
.report-ledger-table tbody tr { cursor: pointer; }
.report-ledger-table tbody tr:hover { background: var(--brand-soft); }
.report-ledger-table td { vertical-align: middle; }
.report-ledger-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-ledger-table .ledger-discount { color: var(--green); }
.ledger-date { font-weight: 500; white-space: nowrap; }
.ledger-date small { color: var(--text-3); font-weight: 400; margin-left: 2px; }
.ledger-no { color: var(--text-3); font-size: 11px; margin-top: 2px; }
.ledger-store { font-weight: 500; margin-bottom: 3px; }
.ledger-items { max-width: 220px; color: var(--text-2); font-size: 12px; line-height: 1.45; }
.ledger-link { color: var(--brand-strong); font-size: 12px; white-space: nowrap; }
.report-ledger .report-txn-pager select.input { width: auto; height: 28px; font-size: 12px; }
.report-note { color: var(--text-3); font-size: 12px; line-height: 1.7; margin: 0; }

/* 账本抽屉 */
.ledger-drawer { display: flex; flex-direction: column; gap: 18px; }
.ledger-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.ledger-fact span { display: block; color: var(--text-3); font-size: 11px; margin-bottom: 4px; }
.ledger-fact b { font-size: 13px; font-weight: 500; word-break: break-all; }
.ledger-section { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ledger-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.ledger-sec-head h4 { margin: 0; font-size: 13px; }
.ledger-sec-head span { color: var(--text-3); font-size: 11px; }
.ledger-items { min-width: 0; }
.ledger-items th, .ledger-items td { font-size: 12px; }
.ledger-items .r { white-space: nowrap; }
.ledger-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ledger-money-list { padding: 6px 14px 10px; }
.ledger-money { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 12px; color: var(--text-2); }
.ledger-money b { color: var(--text); font-variant-numeric: tabular-nums; }
.ledger-money.total { margin-top: 4px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 13px; }
.ledger-money.total b { font-size: 16px; }
.ledger-money.refund b, .negative { color: var(--red); }
.ledger-money.net { padding-top: 8px; border-top: 1px dashed var(--line); font-weight: 500; }
.ledger-money.net b { color: var(--brand-strong); font-size: 15px; }
.ledger-money.muted { color: var(--text-3); }
.ledger-record-list { padding: 5px 14px; }
.ledger-record { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 12px; color: var(--text-2); }
.ledger-record:last-child { border-bottom: 0; }
.ledger-record b { font-variant-numeric: tabular-nums; color: var(--text); }
.ledger-sub { display: flex; justify-content: space-between; gap: 10px; padding: 5px 14px; font-size: 12px; color: var(--text-3); }
.ledger-sub b { color: var(--text-2); font-weight: 500; }
.ledger-empty { padding: 12px 0; color: var(--text-3); font-size: 12px; }
.ledger-marketing { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; padding: 12px 14px; }
.ledger-marketing span { display: block; color: var(--text-3); font-size: 11px; margin-bottom: 3px; }
.ledger-marketing b { font-size: 12px; font-weight: 500; word-break: break-all; }
.ledger-foot { margin: 0; padding: 0 14px 12px; color: var(--text-3); font-size: 11px; line-height: 1.6; }
.ledger-gift { color: var(--brand-strong); font-size: 11px; background: var(--brand-soft); border-radius: 4px; padding: 1px 4px; }
.dt-gift { display: inline-block; margin-left: 4px; padding: 0 4px; border-radius: 3px; background: var(--brand-soft); color: var(--brand-strong); font-size: 10px; }

@media (max-width: 1180px) {
  .report-ledger-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-ledger-head { flex-direction: column; }
  .report-ledger-filters { width: 100%; }
  .report-ledger-filters .input { flex: 1; width: auto; }
  .ledger-cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .report-ledger-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-ledger-filters { flex-wrap: wrap; }
  .report-ledger-filters .input { min-width: 0; }
  .report-ledger-filters .input:first-child { flex-basis: 100%; }
  .report-ledger-table { min-width: 980px; }
  .ledger-facts { grid-template-columns: 1fr 1fr; }
  .ledger-marketing { grid-template-columns: 1fr; }
  .ledger-drawer-wide { width: 100%; max-width: 100%; }
}

/* =====================================================================
   套餐购买收银台（模拟支付）：先下单，再完成支付，权益即时生效
   ===================================================================== */
.planx-cashier { padding: 2px 2px 0; }
.planx-cashier-top { display: flex; align-items: center; justify-content: center; gap: 8px; }
.planx-cashier-icon {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: #fff0e4; color: var(--orange);
}
.planx-cashier-icon svg { width: 15px; height: 15px; }
.planx-cashier-kicker {
  font-family: var(--mono); color: #a0866f; font-size: 8px; letter-spacing: .12em;
}
.planx-cashier-amount {
  display: block; margin-top: 15px; color: var(--ink);
  font-family: var(--serif); font-size: 42px; line-height: 1; letter-spacing: -.04em;
}
.planx-cashier-title {
  margin: 8px 0 0; color: var(--ink-2); font-size: 11px; line-height: 1.55;
}
.planx-cashier-order {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 17px; padding: 9px 10px; border: 1px dashed rgba(145, 107, 76, .2);
  border-radius: 8px; background: rgba(250, 246, 237, .7); font-size: 9px;
}
.planx-cashier-order span { color: #a28b75; }
.planx-cashier-order b { max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #745642; font-family: var(--mono); font-weight: 500; }
.planx-cashier-method {
  display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 11px 12px;
  border: 1px solid rgba(224, 92, 28, .26); border-radius: 10px; background: #fffbf6;
  text-align: left;
}
.planx-cashier-method-icon {
  display: grid; place-items: center; width: 24px; height: 24px; flex: none;
  border-radius: 50%; background: #eaf7ef; color: #15895f; font-size: 12px;
}
.planx-cashier-method > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.planx-cashier-method b { color: #4d3b2b; font-size: 10px; font-weight: 600; }
.planx-cashier-method i { color: #a28b75; font-size: 8.5px; font-style: normal; }
.planx-cashier-method .pill { margin-left: auto; flex: none; }
.planx-cashier-note {
  display: flex; align-items: flex-start; gap: 6px; margin-top: 13px; padding: 10px 11px;
  border-radius: 9px; background: #faf6ee; color: #9a8169; font-size: 8.5px; line-height: 1.65;
  text-align: left;
}
.planx-cashier-note svg { width: 13px; height: 13px; flex: none; margin-top: 1px; color: #b4957a; }
@media (max-width: 520px) {
  .planx-cashier-amount { font-size: 37px; }
  .planx-cashier-method { padding: 10px; }
  .planx-cashier-method .pill { display: none; }
}


/* AI image result */
.ai-image-result {
  margin: 14px 0 4px;
  overflow: hidden;
  background: #f4f1ea;
  border: 1px solid #e8e1d7;
  border-radius: 14px;
}
.ai-image-result img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #f8f6f1;
}

/* =========================================================
   评价 / 会员权益 / 礼品卡
   ========================================================= */
.stars { display: inline-flex; align-items: center; gap: 1px; color: #d8dde5; font-size: 13px; line-height: 1; letter-spacing: 1px; }
.stars .on { color: #f2a51f; }
.kpi-unit { margin-left: 4px; font-size: var(--fs-12); font-weight: 500; color: var(--text-3); }
.cell-main { font-size: var(--fs-13); font-weight: 500; color: var(--text); }
.cell-sub { font-size: var(--fs-12); color: var(--text-3); }
.review-kpis { margin-bottom: 0; }
.review-filter-card { overflow: hidden; }
.review-toolbar { flex-wrap: wrap; row-gap: 8px; }
.review-toolbar .field { min-width: 140px; }
.review-person { display: flex; align-items: center; gap: 9px; min-width: 130px; }
.review-avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: #fff2e7; color: var(--brand-strong); border: 1px solid #ffe2cc; font-size: var(--fs-12); font-weight: 700; }
.review-avatar.lg { width: 44px; height: 44px; font-size: var(--fs-14); }
.review-rating-cell { display: flex; flex-direction: column; gap: 3px; }
.review-content-cell { max-width: 340px; }
.review-content-line { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.55; color: var(--text); }
.review-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.review-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 5px; background: #f4f6f9; color: var(--text-2); font-size: var(--fs-11); line-height: 1.6; }
.review-tag.removable { background: #fff; border: 1px solid var(--line); }
.review-tag.removable button { border: 0; padding: 0; background: transparent; color: var(--text-3); cursor: pointer; font-size: 13px; line-height: 1; }
.review-mobile { padding: 0; }
.review-mobile .lc-top { gap: 8px; }
.review-mobile-content { margin: 10px 0 2px; color: var(--text); font-size: var(--fs-13); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.review-settings-layout { align-items: start; }
.review-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px 20px 20px; }
.review-field { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-12); color: var(--text-2); }
.review-field > span { font-weight: 500; color: var(--text-2); }
.review-field > small { color: var(--text-3); font-size: var(--fs-11); }
.review-input-unit { position: relative; display: flex; align-items: center; }
.review-input-unit .input { padding-right: 38px; width: 100%; }
.review-input-unit i { position: absolute; right: 11px; font-style: normal; color: var(--text-3); font-size: var(--fs-12); }
.review-tag-box { display: flex; flex-wrap: wrap; gap: 6px; min-height: 40px; padding: 8px 0 10px; }
.review-tag-add { display: flex; gap: 8px; }
.review-tag-add .input { flex: 1; min-width: 0; }
.review-save-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 0 2px 4px; }
.review-preview-card { position: sticky; top: 18px; }
.review-preview { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; }
.review-preview-head { display: flex; align-items: center; gap: 8px; }
.review-preview-head .pill { margin-left: auto; }
.review-preview-stars { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font-size: var(--fs-13); }
.review-preview p { margin: 0; color: var(--text); font-size: var(--fs-13); line-height: 1.6; }
.review-preview .review-tags { margin-top: 9px; }
.review-preview-reward { display: flex; align-items: center; gap: 7px; margin-top: 14px; padding: 9px 10px; border-radius: 9px; background: #fff7ef; color: #9b4b16; font-size: var(--fs-12); }
.review-preview-reward svg { width: 15px; height: 15px; }
.review-drawer-person { display: flex; align-items: center; gap: 10px; padding: 2px 0 14px; }
.review-drawer-person .pill { margin-left: auto; }
.review-drawer-stars { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.review-drawer-content { padding: 16px 0 4px; font-size: var(--fs-14); line-height: 1.75; color: var(--text); white-space: pre-wrap; }
.review-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.review-images img { width: 84px; height: 84px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); cursor: zoom-in; }
.review-drawer .detail-grid { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.review-drawer .drawer-section { margin-top: 22px; }
.drawer-section h4 { margin: 0 0 8px; font-size: var(--fs-13); }
.drawer-section .textarea { width: 100%; }
.review-drawer .modal-err,
.review-preview-card .modal-err { margin-top: 8px; }

/* 权益 */
.benefit-hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; gap: 28px; padding: 26px 28px; border-radius: var(--radius); color: #f4f5ef; background: radial-gradient(circle at 82% 22%, rgba(207, 167, 92, 0.28), transparent 34%), linear-gradient(135deg, #1d2923 0%, #243a2e 58%, #17241e 100%); box-shadow: 0 10px 30px rgba(20, 34, 26, 0.16); }
.benefit-hero::after { content: ""; position: absolute; width: 240px; height: 240px; right: -100px; bottom: -140px; border-radius: 50%; border: 1px solid rgba(222, 190, 131, 0.22); }
.benefit-hero-main { position: relative; z-index: 1; max-width: 620px; }
.benefit-eyebrow { display: block; font-size: 10px; letter-spacing: 0.2em; color: #d9b978; font-weight: 600; }
.benefit-hero h2 { margin: 9px 0 8px; font-size: 25px; letter-spacing: 0.02em; font-weight: 600; color: #fff; }
.benefit-hero p { margin: 0; max-width: 520px; color: rgba(240, 242, 233, 0.72); font-size: var(--fs-12); line-height: 1.7; }
.benefit-hero-levels { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.benefit-hero-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06); font-size: var(--fs-11); color: rgba(255, 255, 255, 0.82); }
.benefit-hero-chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--tone, #b9c6b8); }
.benefit-hero-ring { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; flex: none; }
.benefit-ring { width: 92px; height: 92px; border-radius: 50%; padding: 7px; background: conic-gradient(#d9b978 0 72%, rgba(255, 255, 255, 0.13) 72% 100%); }
.benefit-ring > div { width: 100%; height: 100%; border-radius: 50%; background: #203127; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.benefit-ring b { font-size: 22px; color: #fff; line-height: 1.2; }
.benefit-ring span { font-size: 10px; color: rgba(255, 255, 255, 0.55); }
.benefit-ring-note { font-size: 11px; color: rgba(255, 255, 255, 0.56); line-height: 1.6; }
.benefit-ring-note b { color: #e5c98f; font-size: 15px; }
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.benefit-card { --tone: #9aa7a0; position: relative; display: flex; flex-direction: column; gap: 13px; padding: 17px; border: 1px solid var(--line); border-top: 3px solid var(--tone); border-radius: 13px; background: #fff; overflow: hidden; }
.benefit-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 76px; background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 10%, transparent), transparent); pointer-events: none; }
.benefit-card > * { position: relative; z-index: 1; }
.benefit-card-top { display: flex; align-items: center; gap: 9px; }
.benefit-medal { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--tone) 15%, #fff); color: color-mix(in srgb, var(--tone) 70%, #222); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; }
.benefit-card-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.benefit-card-title b { font-size: var(--fs-14); color: var(--text); }
.benefit-card-title span { font-size: var(--fs-11); color: var(--text-3); }
.benefit-card-top .pill { margin-left: auto; }
.benefit-threshold { display: flex; align-items: baseline; gap: 5px; }
.benefit-threshold b { font-size: 26px; line-height: 1; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.benefit-threshold span { font-size: var(--fs-11); color: var(--text-3); }
.benefit-card-meta { display: grid; grid-template-columns: 1fr 0.8fr 0.8fr; gap: 8px; padding: 10px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.benefit-card-meta span { display: block; color: var(--text-3); font-size: 10px; margin-bottom: 3px; }
.benefit-card-meta b { display: block; color: var(--text); font-size: var(--fs-12); font-weight: 600; }
.benefit-progress { display: flex; flex-direction: column; gap: 5px; }
.benefit-progress .bar { height: 4px; border-radius: 4px; background: #eef1f4; overflow: hidden; }
.benefit-progress .bar i { display: block; height: 100%; border-radius: 4px; background: var(--tone); }
.benefit-progress span { font-size: 10px; color: var(--text-3); }
.benefit-list { display: flex; flex-wrap: wrap; gap: 4px; min-height: 22px; }
.benefit-pill { padding: 2px 6px; border-radius: 4px; background: #f6f7f8; color: var(--text-2); font-size: 10px; }
.benefit-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.benefit-card-foot .cell-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.benefit-card.is-off { opacity: 0.62; }
.benefit-lower { grid-template-columns: 1.15fr 0.85fr; }
.benefit-dist { padding-top: 14px; }
.benefit-dist-row { display: grid; grid-template-columns: 150px 1fr 64px; align-items: center; gap: 12px; padding: 8px 0; }
.benefit-dist-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.benefit-dist-name b { font-size: var(--fs-12); white-space: nowrap; }
.benefit-dist-name .cell-sub { font-size: 10px; white-space: nowrap; }
.benefit-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--tone); }
.benefit-dist-bar .bar { height: 5px; border-radius: 5px; background: #eff1f3; overflow: hidden; }
.benefit-dist-bar .bar i { display: block; height: 100%; border-radius: 5px; background: var(--tone); }
.benefit-dist-num { text-align: right; }
.benefit-dist-num b { display: block; font-size: var(--fs-13); }
.benefit-dist-num span { font-size: 10px; color: var(--text-3); }
.benefit-rules { display: flex; flex-direction: column; gap: 15px; }
.benefit-rule { display: flex; gap: 10px; }
.benefit-rule > span { width: 28px; height: 28px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #f5f2ea; color: #8c7244; }
.benefit-rule svg { width: 14px; height: 14px; }
.benefit-rule b { display: block; font-size: var(--fs-12); margin-bottom: 2px; }
.benefit-rule p { margin: 0; font-size: var(--fs-11); line-height: 1.6; color: var(--text-3); }
.tone-neutral { --tone: #98a29a; }
.tone-silver { --tone: #8e9aa8; }
.tone-amber { --tone: #c99a4a; }
.tone-dark { --tone: #43524a; }
.tone-violet { --tone: #8068a4; }
.benefit-card.tone-dark { background: #252d28; border-color: #252d28; }
.benefit-card.tone-dark .benefit-card-title b, .benefit-card.tone-dark .benefit-threshold b { color: #fff; }
.benefit-card.tone-dark .benefit-card-title span, .benefit-card.tone-dark .benefit-threshold span, .benefit-card.tone-dark .benefit-progress span, .benefit-card.tone-dark .benefit-card-foot .cell-sub { color: rgba(255, 255, 255, 0.54); }
.benefit-card.tone-dark .benefit-card-meta span { color: rgba(255, 255, 255, 0.5); }
.benefit-card.tone-dark .benefit-card-meta b { color: rgba(255, 255, 255, 0.9); }
.benefit-card.tone-dark .benefit-card-meta, .benefit-card.tone-dark .benefit-card-foot { border-color: rgba(255, 255, 255, 0.14); }
.benefit-card.tone-dark .benefit-pill { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.76); }
.benefit-card.tone-dark .btn.ghost { color: #e7d6b0; border-color: rgba(255, 255, 255, 0.2); }

/* 礼品卡 */
.gift-product-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.gift-product-head b { display: block; font-size: var(--fs-15); }
.gift-product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.gift-product-card { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow 0.18s, transform 0.18s; }
.gift-product-card:hover { box-shadow: 0 10px 28px rgba(24, 32, 44, 0.08); transform: translateY(-1px); }
.gift-product-card.is-off { opacity: 0.72; }
.gift-product-visual { position: relative; overflow: hidden; min-height: 132px; padding: 16px; color: #f4eee2; background: radial-gradient(circle at 84% 16%, rgba(206, 169, 100, 0.34), transparent 32%), linear-gradient(135deg, #202724 0%, #353027 55%, #1e2421 100%); }
.gift-product-brand { font-size: 9px; letter-spacing: 0.16em; color: #d2b47e; }
.gift-product-amount { display: flex; align-items: baseline; gap: 7px; margin-top: 20px; }
.gift-product-amount b { font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }
.gift-product-amount span { font-size: 10px; color: #d6bb89; }
.gift-product-no { margin-top: 11px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.54); }
.gift-product-shine { position: absolute; width: 130px; height: 130px; border-radius: 50%; right: -46px; top: 20px; border: 1px solid rgba(232, 204, 155, 0.22); }
.gift-product-shine::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 1px solid rgba(232, 204, 155, 0.15); }
.gift-product-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 15px 13px; flex: 1; }
.gift-product-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gift-product-title b { font-size: var(--fs-14); }
.gift-product-body p { margin: 0; min-height: 32px; color: var(--text-3); font-size: var(--fs-11); line-height: 1.5; }
.gift-product-stats { display: grid; grid-template-columns: 1fr 0.7fr 0.9fr; gap: 6px; padding: 9px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.gift-product-stats span { display: block; font-size: 10px; color: var(--text-3); margin-bottom: 2px; }
.gift-product-stats b { font-size: var(--fs-12); }
.gift-product-foot { display: flex; align-items: center; gap: 2px; }
.gift-product-foot .cell-sub { margin-right: auto; font-size: 10px; }
.gift-no { font-family: "SFMono-Regular", Consolas, monospace; letter-spacing: 0.04em; font-size: var(--fs-12); }
.gift-drawer-card { position: relative; overflow: hidden; border-radius: 16px; padding: 18px 20px; color: #f3eddf; background: radial-gradient(circle at 86% 14%, rgba(212, 176, 109, 0.35), transparent 32%), linear-gradient(135deg, #222a26 0%, #393229 56%, #1e2521 100%); box-shadow: 0 12px 30px rgba(27, 35, 29, 0.18); }
.gift-drawer-top, .gift-drawer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10px; color: rgba(255, 255, 255, 0.56); }
.gift-drawer-top .pill { background: rgba(255, 255, 255, 0.1); color: #f0dbb2; }
.gift-drawer-balance { margin: 22px 0 2px; font-family: Georgia, "Times New Roman", serif; font-size: 34px; letter-spacing: -0.03em; }
.gift-drawer-balance span { margin-left: 7px; font-family: inherit; font-size: 10px; letter-spacing: 0; color: rgba(255, 255, 255, 0.5); }
.gift-drawer-no { font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; letter-spacing: 0.15em; color: rgba(255, 255, 255, 0.58); }
.gift-drawer-bottom { margin-top: 20px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.gift-log .tl-title { font-size: var(--fs-12); }
.gift-log .tl-time { font-size: 10px; }
.review-tag-box .cell-sub { width: 100%; }

@media (max-width: 1080px) {
  .benefit-hero { flex-direction: column; gap: 18px; }
  .benefit-hero-ring { align-self: flex-start; }
  .benefit-lower { grid-template-columns: 1fr; }
  .review-preview-card { position: static; }
}
@media (max-width: 760px) {
  .review-settings-layout { grid-template-columns: 1fr; }
  .review-settings-grid { grid-template-columns: 1fr; }
  .review-toolbar .field { flex: 1 1 130px; min-width: 0; }
  .review-toolbar .spacer { display: none; }
  .review-content-cell { max-width: none; }
  .benefit-hero { padding: 20px; }
  .benefit-hero h2 { font-size: 21px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-dist-row { grid-template-columns: 92px 1fr 48px; gap: 8px; }
  .benefit-dist-name .cell-sub { display: none; }
  .benefit-card-meta { grid-template-columns: 1fr 1fr 1fr; }
  .gift-product-grid { grid-template-columns: 1fr; }
  .gift-product-head { align-items: flex-start; flex-direction: column; }
  .gift-product-head .cell-sub { display: none; }
  .review-save-bar { position: sticky; bottom: 0; z-index: 2; padding: 10px 0; background: var(--bg); }
}

/* 评价筛选栏：1440 首屏一行排下 */
@media (min-width: 761px) {
  .review-toolbar { gap: 6px; }
  .review-toolbar .field { min-width: 124px; }
  .review-toolbar .field input { width: 156px; }
}

/* 设置 → 余额管理 */
.balance-amount-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 20px 0; }
.balance-rules-field { padding: 12px 20px 4px; }
.balance-rules-field .textarea { width: 100%; min-height: 108px; }
.balance-plan-table th, .balance-plan-table td { vertical-align: middle; }
.balance-plan-input { width: 100%; min-width: 88px; }
.balance-plan-check { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: var(--fs-12); color: var(--text-2); }
.balance-plan-check input { width: 15px; height: 15px; accent-color: var(--brand); }
.balance-plan-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); font-size: var(--fs-12); color: var(--text-3); }
.balance-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 180px; color: var(--text-3); }
.balance-empty-cell { padding: 22px 12px; text-align: center; color: var(--text-3); }
.balance-member-phone { display: block; margin-top: 2px; font-size: var(--fs-11); color: var(--text-3); }
.balance-gift { display: block; margin-top: 2px; font-size: var(--fs-11); color: var(--green); }
.balance-reject-reason { display: block; margin-top: 3px; font-size: var(--fs-11); color: var(--red); }
.balance-row-actions { white-space: nowrap; }
.balance-row-actions .btn + .btn { margin-left: 4px; }
.balance-operator { font-size: var(--fs-12); color: var(--text-3); }
.balance-pay-note { padding: 0 20px 14px; font-size: var(--fs-12); color: var(--text-3); line-height: var(--lh-base); }
@media (max-width: 760px) {
  .balance-amount-grid { grid-template-columns: 1fr; }
  .balance-plan-foot { align-items: flex-start; flex-direction: column; }
}

/* 余额管理：4 个 KPI 一行展示，窄屏自动降列 */
.balance-stats .settings-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 0; }
.balance-stats .settings-stat { gap: 1px; padding: 12px 16px; }
.balance-stats .settings-stat b { font-size: 22px; }
@media (max-width: 1180px) {
  .balance-stats .settings-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .balance-stats .settings-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .balance-stats .settings-stat { padding: 10px 12px; }
  .balance-stats .settings-stat b { font-size: 20px; }
}
@media (max-width: 360px) {
  .balance-stats .settings-stats { grid-template-columns: 1fr; }
}

/* 余额管理：配置区左右分栏，避免单列卡片留下整列空白 */
.balance-config-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.9fr); gap: 12px; align-items: start; }
.balance-config-main, .balance-config-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.balance-config-main .setting-row { padding: 13px 18px; }
.balance-config-main .balance-amount-grid { padding: 12px 18px 0; }
.balance-config-main .balance-rules-field { padding: 10px 18px 4px; }
.balance-config-main .balance-rules-field .textarea { min-height: 92px; }
.balance-config-main .hint-box { margin: 8px 18px 14px; }
.balance-config-side .setting-row { padding: 13px 18px; }
.balance-config-side .balance-pay-note { padding: 0 18px 12px; }
.balance-flow { display: flex; flex-direction: column; margin: 0; padding: 6px 18px 2px; list-style: none; }
.balance-flow li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.balance-flow li:last-child { border-bottom: 0; }
.balance-flow-num { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: var(--fs-11); font-weight: 600; }
.balance-flow b { display: block; font-size: var(--fs-12); font-weight: 600; }
.balance-flow small { display: block; margin-top: 2px; font-size: var(--fs-11); color: var(--text-3); line-height: 1.5; }
.balance-flow-note { padding: 8px 18px 13px; font-size: var(--fs-11); color: var(--text-3); }
@media (max-width: 980px) {
  .balance-config-grid { grid-template-columns: 1fr; }
  .balance-config-side { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .balance-amount-grid { grid-template-columns: 1fr; }
}

/* 设置 → 积分管理 */
.points-stats .settings-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.points-stats .settings-stat { gap: 1px; padding: 12px 16px; }
.points-stats .settings-stat b { font-size: 22px; }
.points-config-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(290px, 0.9fr); gap: 12px; align-items: start; }
.points-config-main, .points-config-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.points-config-main .setting-row { padding: 13px 18px; }
.points-config-main .hint-box { margin: 8px 18px 14px; }
.points-amount-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 12px 18px 0; }
.points-text-field { padding: 10px 18px 4px; }
.points-text-field .textarea { min-height: 88px; }
.points-flow { display: flex; flex-direction: column; margin: 0; padding: 6px 18px 2px; list-style: none; }
.points-flow li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.points-flow li:last-child { border-bottom: 0; }
.points-flow-num { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: var(--fs-11); font-weight: 600; }
.points-flow b { display: block; font-size: var(--fs-12); font-weight: 600; }
.points-flow small { display: block; margin-top: 2px; font-size: var(--fs-11); color: var(--text-3); line-height: 1.5; }
.points-flow-note { padding: 8px 18px 13px; font-size: var(--fs-11); color: var(--text-3); }
.points-goods-cell { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.points-goods-thumb { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); font-size: 20px; }
.points-goods-cell b { display: block; font-size: var(--fs-13); font-weight: 600; }
.points-goods-cell small { display: block; margin-top: 2px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-11); color: var(--text-3); }
.points-row-actions { white-space: nowrap; }
.points-row-actions .btn + .btn { margin-left: 4px; }
.points-plus { color: var(--green); font-weight: 600; font-variant-numeric: tabular-nums; }
.points-minus { color: var(--red); font-weight: 600; font-variant-numeric: tabular-nums; }
.points-muted { display: block; margin-top: 2px; font-size: var(--fs-11); color: var(--text-3); }
.points-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 160px; color: var(--text-3); }
.points-empty-cell { padding: 22px 12px; text-align: center; color: var(--text-3); }
.points-table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); font-size: var(--fs-12); color: var(--text-3); }
.points-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.points-form-full { grid-column: 1 / -1; }
.points-coupon-fields { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.points-coupon-fields[hidden] { display: none; }
@media (max-width: 1180px) {
  .points-stats .settings-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .points-config-grid { grid-template-columns: 1fr; }
  .points-config-side { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .points-amount-grid, .points-form-grid { grid-template-columns: 1fr; }
  .points-table-foot { align-items: flex-start; flex-direction: column; }
  .points-stats .settings-stat b { font-size: 20px; }
}
