/* ============================================================
 * 外勤管家 · 管理后台（PC）布局与页面样式
 * 顶栏 56 / 侧栏 224 / 内容区 padding 24 / 最小宽 1280
 * ============================================================ */

/* ---------------- 整体布局 ---------------- */
.layout {
  display: flex;
  min-height: 100vh;
  min-width: 1280px;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--topbar-h);
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #3b8bf5, #1557b0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
}
.brand-logo svg { width: 17px; height: 17px; }
.brand-name { font-size: 14px; font-weight: 700; letter-spacing: .2px; }
.brand-tag {
  font-size: 11px;
  color: var(--text-3);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 0 4px;
  line-height: 16px;
}

.nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px 20px;
}
.nav-group { margin-top: 14px; }
.nav-group-title {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .6px;
  color: var(--text-3);
  text-transform: uppercase;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 10px;
  margin: 2px 0;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.nav-item:hover { background: var(--hover); color: var(--text); }
.nav-item .ico { color: var(--text-3); flex: none; }
.nav-item:hover .ico { color: var(--text-2); }
.nav-item.on {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}
.nav-item.on .ico { color: var(--primary); }
.nav-item.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--primary);
}
.nav-item .nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-item.on .nav-badge { background: var(--danger); }

.sidebar-foot {
  flex: none;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------------- 主区 ---------------- */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--topbar-h);
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar-search {
  width: 320px;
  flex: none;
}
.topbar-search .input { height: 32px; background: #f6f8fa; border-color: #eef1f5; }
.topbar-search .input:focus { background: #fff; }

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-date {
  font-size: 12px;
  color: var(--text-3);
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
}

/* 三层身份的顶栏徽标：L1 运营商 / L2 租户主账号 */
.layer-chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: 11px; font-size: 11.5px; font-weight: 600; letter-spacing: .2px;
  flex: none; border: 1px solid transparent;
}
.layer-chip.l1 { background: #f4f0ff; color: #6b4fd8; border-color: #e4dcff; }
.layer-chip.l2 { background: #eef6ff; color: #1a73e8; border-color: #d7e7ff; }
.tenant-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px;
  border-radius: 11px; background: #f6f8fa; border: 1px solid #eef1f5;
  font-size: 11.5px; color: var(--text-2); flex: none; max-width: 190px;
}
.tenant-chip svg { width: 13px; height: 13px; fill: var(--text-3); flex: none; }
.tenant-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { background: var(--hover); }
.icon-btn .red-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 2px #fff;
}

.who {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 6px 0 4px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}
.who:hover { background: var(--hover); }
.who-name { font-size: 13px; font-weight: 600; }
.who-role { font-size: 11px; color: var(--text-3); }
.who-menu {
  position: absolute;
  top: 46px;
  right: 0;
  width: 180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  z-index: 30;
}
.who-menu.show { display: block; animation: menuIn .16s ease; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.who-menu .mi {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}
.who-menu .mi:hover { background: var(--hover); color: var(--text); }
.who-menu .mi.danger { color: var(--danger); }
.who-menu .sep { height: 1px; background: var(--line); margin: 4px 6px; }

.content {
  padding: 24px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}

/* ---------------- 页头 ---------------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -.2px; }
.page-desc { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.page-actions { display: flex; align-items: center; gap: 10px; }

/* ---------------- 筛选条 ---------------- */
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filters .f-item { display: flex; align-items: center; gap: 8px; }
.filters .f-label { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.filters .input, .filters .select { width: auto; min-width: 120px; height: 32px; }
.filters .f-actions { margin-left: auto; display: flex; gap: 8px; }

/* ---------------- 工作台 ---------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.stat-card {
  position: relative;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat-card .s-top { display: flex; align-items: center; justify-content: space-between; }
.stat-card .s-label { font-size: 13px; color: var(--text-3); }
.stat-card .s-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.stat-card .s-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
}
.stat-card .s-unit { font-size: 12px; font-weight: 400; color: var(--text-3); }
.stat-card .s-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 12px;
}
.stat-card .s-trend.up { color: var(--success); }
.stat-card .s-trend.down { color: var(--danger); }
.stat-card .s-trend.flat { color: var(--text-3); }

.s-icon.blue { background: var(--primary-light); color: var(--primary); }
.s-icon.green { background: var(--success-light); color: var(--success); }
.s-icon.orange { background: var(--warning-light); color: #b67409; }
.s-icon.purple { background: var(--purple-light); color: var(--purple); }
.s-icon.red { background: var(--danger-light); color: var(--danger); }

.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-item i { width: 14px; height: 3px; border-radius: 2px; background: var(--primary); display: inline-block; }
.legend-item i.dashed {
  background: repeating-linear-gradient(90deg, var(--purple) 0 4px, transparent 4px 7px);
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 16px;
  align-items: start;
}

/* 折线图 */
.chart { height: 210px; }
.chart svg { width: 100%; height: 100%; display: block; }
.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-3);
}

/* 异常列表 */
.alert-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.alert-row:last-child { border-bottom: 0; }
.alert-row:hover { background: var(--hover); }
.alert-type {
  width: 74px;
  flex: none;
}
.alert-main { flex: 1; min-width: 0; }
.alert-main .t { font-weight: 600; }
.alert-main .s { font-size: 12px; color: var(--text-3); }

/* 团队进度 */
.team-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
}
.team-row:last-child { border-bottom: 0; }
.team-row .name { width: 62px; flex: none; font-size: 13px; }
.team-row .bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #eef1f5;
  overflow: hidden;
}
.team-row .bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #4a90f7, #1a73e8);
  transition: width .5s ease;
}
.team-row .bar i.full { background: linear-gradient(90deg, #4ecb8d, #12a150); }
.team-row .cnt { width: 46px; text-align: right; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.team-row .cnt strong { color: var(--text); }

/* 地图缩略 */
.map-card {
  position: relative;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #eef4fb, #e7eef7),
    repeating-linear-gradient(90deg, rgba(26, 115, 232, .06) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(26, 115, 232, .06) 0 1px, transparent 1px 48px);
  border: 1px solid var(--line);
}
.map-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 58%;
  height: 10px;
  background: rgba(255, 255, 255, .75);
  transform: rotate(-4deg);
}
.map-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, .18);
  cursor: pointer;
  z-index: 2;
}
.map-dot:hover { transform: scale(1.35); }
.map-dot.warn { background: var(--warning); box-shadow: 0 0 0 3px rgba(245, 166, 35, .2); }
.map-dot.end {
  width: 13px; height: 13px;
  background: #fff; border: 2px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, .12);
}
.map-dot.end.last { background: var(--primary); border-color: var(--primary); }
.map-label {
  position: absolute;
  padding: 1px 6px;
  background: rgba(27, 31, 36, .78);
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  z-index: 3;
}
.map-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 12px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, .92);
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-2);
  z-index: 4;
}
.map-legend span { display: flex; align-items: center; gap: 4px; }
.map-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--primary); }
.map-legend i.warn { background: var(--warning); }

/* ---------------- 实时地图 ---------------- */
.track-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
.map-canvas {
  position: relative; height: 440px; border-radius: 10px; overflow: hidden;
  background:
    linear-gradient(0deg, rgba(26,115,232,.04) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, rgba(26,115,232,.04) 1px, transparent 1px) 0 0 / 34px 100%,
    radial-gradient(circle at 30% 30%, #f4f8fd, #eef2f7);
  border: 1px solid var(--line);
}
.map-canvas svg.track-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.track-side { display: flex; flex-direction: column; }
.track-list { padding: 6px 0; overflow-y: auto; max-height: 440px; }
.track-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px; cursor: pointer; transition: background .18s;
}
.track-item:hover { background: var(--hover); }
.track-item.on { background: var(--primary-light); }
.track-item .ti-main { flex: 1; min-width: 0; }
.track-item .ti-name { font-size: 13px; font-weight: 600; }
.track-item .ti-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.track-item .ti-state { font-size: 11px; }
.legend-item i.warn-mark { background: var(--warning); }
.legend-item i.line-mark { background: var(--purple); height: 2px; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-row { display: flex; gap: 12px; }
.tl-time { width: 52px; font-size: 12px; color: var(--text-3); flex: none; padding-top: 1px; }
.tl-dot-col { display: flex; flex-direction: column; align-items: center; flex: none; width: 12px; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); flex: none; }
.tl-line { width: 1px; flex: 1; background: var(--line); }
.tl-body { flex: 1; padding-bottom: 16px; }
.tl-title { font-size: 13px; font-weight: 600; }
.tl-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.form-card { padding: 0 0 6px; }
.form-group { padding: 18px 24px 6px; border-bottom: 1px solid var(--line); }
.form-group:last-of-type { border-bottom: 0; }
.form-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.form-group-desc { font-size: 12px; color: var(--text-3); margin-bottom: 14px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  padding-bottom: 16px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.input-suffix {
  position: relative;
  display: flex;
  align-items: center;
}
.input-suffix .suffix {
  position: absolute;
  right: 10px;
  font-size: 12px;
  color: var(--text-3);
  pointer-events: none;
}
.input-suffix .input { padding-right: 44px; }

/* 只读提示 */
.readonly-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--warning-light);
  border: 1px solid #f7ddb4;
  color: #8a5a00;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ---------------- 登录页 ---------------- */
.login-shell {
  min-height: 100vh;
  display: flex;
  background: #f5f7fa;
}
.login-brand {
  position: relative;
  width: 46%;
  min-width: 520px;
  padding: 64px 64px 40px;
  background: linear-gradient(150deg, #1557b0 0%, #1a73e8 45%, #3b8bf5 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.login-brand::before,
.login-brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
}
.login-brand::before { width: 420px; height: 420px; right: -140px; top: -120px; }
.login-brand::after { width: 260px; height: 260px; left: -90px; bottom: -80px; }

.login-brand .lb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.login-brand .lb-logo .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.login-brand .lb-name { font-size: 15px; font-weight: 700; letter-spacing: .4px; }

.login-brand .lb-copy { margin-top: 76px; position: relative; z-index: 2; }
.login-brand h1 {
  font-size: 34px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.5px;
}
.login-brand p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .82);
  max-width: 400px;
}
.lb-points { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 2; }
.lb-point { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: rgba(255, 255, 255, .9); }
.lb-point .pi {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.lb-point strong { display: block; font-size: 13px; font-weight: 600; color: #fff; }
.lb-point span { font-size: 12px; color: rgba(255, 255, 255, .72); }
.login-brand .lb-foot {
  margin-top: auto;
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
  position: relative;
  z-index: 2;
}

.login-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-box { width: 384px; }
.login-box h2 { font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
.login-box .lsub { font-size: 13px; color: var(--text-3); margin-top: 6px; }

.login-form { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.lg-field { display: flex; flex-direction: column; gap: 8px; }
.lg-field label { font-size: 13px; color: var(--text-2); }
.lg-input-box {
  position: relative;
  display: flex;
  align-items: center;
}
.lg-input-box .ico { position: absolute; left: 12px; color: var(--text-3); }
.lg-input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 38px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  outline: none;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.lg-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, .12);
}
.lg-eye {
  position: absolute;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lg-eye:hover { color: var(--primary); background: var(--primary-light); }

.lg-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #f6f8fa;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.65;
}
.lg-hint .ico { flex: none; margin-top: 1px; color: var(--text-3); }
.lg-hint.err { background: var(--danger-light); color: #a5221a; }
.lg-hint.err .ico { color: var(--danger); }

.lg-row { display: flex; align-items: center; justify-content: space-between; }
.lg-link { font-size: 12px; color: var(--text-3); cursor: pointer; }
.lg-link:hover { color: var(--primary); }

.lg-submit { height: 44px; font-size: 15px; border-radius: 10px; font-weight: 600; }

.demo-box {
  margin-top: 26px;
  padding: 14px 16px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  background: #fbfcfd;
}
.demo-box .db-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 10px;
}
.demo-chips { display: flex; flex-direction: column; gap: 8px; }
.demo-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
  transition: border-color .15s, background .15s;
}
.demo-chip:hover { border-color: var(--primary); background: var(--primary-light); }
.demo-chip .dc-role {
  padding: 0 6px;
  border-radius: 4px;
  font-size: 11px;
  background: var(--primary-light);
  color: var(--primary-dark);
  line-height: 18px;
}
.demo-chip .dc-role.owner { background: var(--warning-light); color: #b67409; }
.demo-chip .dc-name { font-weight: 600; color: var(--text); }
.demo-chip .dc-account { margin-left: auto; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ---------------- 分组标签页 ---------------- */
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 8px;
  background: #eef1f5;
}
.seg .sg {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
}
.seg .sg.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(16,24,40,.1); }

/* ---------------- 人员分组（拜访记录） ---------------- */
.group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
}
.group-head .gname { font-size: 13px; font-weight: 600; color: var(--text); }
.group-head .gmeta { display: flex; gap: 14px; }
.group-head .gmeta strong { color: var(--text); font-weight: 600; }

/* ============================================================
 * v0.5.14 新增：卡片头 / 品牌覆盖 / 字典树 / 图片库
 * ============================================================ */

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.card-head h3 { font-size: 15px; font-weight: 600; }
.card-head .ch-sub { font-size: 12.5px; color: var(--text-3); margin-left: 10px; }

.seg-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* 品牌覆盖 */
.cover-num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--primary); cursor: pointer; }
.cover-num:hover { text-decoration: underline; }
.cover-bar { height: 7px; border-radius: 4px; background: #eef1f5; overflow: hidden; }
.cover-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4a90f7, #1a73e8); transition: width .4s ease; }
.cov-tag { font-size: 12px; color: var(--text-3); }

/* 字典管理：左树 + 右清单 */
.dict-layout { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
.dict-tree { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.dict-tree .dt-title { padding: 9px 10px 5px; font-size: 12px; color: var(--text-3); letter-spacing: .3px; }
.dt-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 10px; border-radius: 8px; cursor: pointer;
  font-size: 13.5px; color: var(--text-2);
}
.dt-item:hover { background: #f5f7fa; }
.dt-item.on { background: rgba(26, 115, 232, .08); color: var(--primary); font-weight: 600; }
.dt-item .dt-count { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.dt-item.on .dt-count { color: var(--primary); }

/* 图片库 */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(198px, 1fr)); gap: 14px; }
.g-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; cursor: pointer;
  transition: box-shadow .18s, transform .18s;
}
.g-card:hover { box-shadow: 0 6px 18px rgba(16, 24, 40, .10); transform: translateY(-2px); }
.g-thumb {
  position: relative; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  color: rgba(26, 115, 232, .30);
}
.g-thumb.t1 { background: linear-gradient(135deg, #dbe7f6, #c2d4ea); }
.g-thumb.t2 { background: linear-gradient(135deg, #dfe6ef, #c8d3e0); }
.g-thumb.t3 { background: linear-gradient(135deg, #dbeee5, #c2e0d3); }
.g-thumb.t4 { background: linear-gradient(135deg, #f7e3d6, #efcbb4); color: rgba(217, 48, 38, .35); }
.g-thumb .g-type {
  position: absolute; left: 8px; top: 8px; padding: 2px 7px; border-radius: 4px;
  background: rgba(27, 31, 36, .62); color: #fff; font-size: 11px;
}
.g-thumb .g-wm {
  position: absolute; right: 8px; bottom: 6px; font-size: 10px;
  color: rgba(255, 255, 255, .92); text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}
.g-meta { padding: 9px 11px 11px; }
.g-meta .gm-name { font-size: 13px; font-weight: 600; color: var(--text-1); }
.g-meta .gm-sub { margin-top: 3px; font-size: 12px; color: var(--text-3); }
.g-big {
  position: relative; height: 320px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(26, 115, 232, .30);
}
.g-big.t1 { background: linear-gradient(135deg, #dbe7f6, #c2d4ea); }
.g-big.t2 { background: linear-gradient(135deg, #dfe6ef, #c8d3e0); }
.g-big.t3 { background: linear-gradient(135deg, #dbeee5, #c2e0d3); }
.g-big.t4 { background: linear-gradient(135deg, #f7e3d6, #efcbb4); color: rgba(217, 48, 38, .35); }
.g-big .g-type {
  position: absolute; left: 12px; top: 12px; padding: 3px 9px; border-radius: 5px;
  background: rgba(27, 31, 36, .62); color: #fff; font-size: 12px;
}
.g-big .g-wm {
  position: absolute; right: 12px; bottom: 10px; font-size: 12px;
  color: rgba(255, 255, 255, .95); text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
/* 品牌覆盖抽屉：门店清单（不用表格，避免窄抽屉横向滚动） */
.cov-list { display: flex; flex-direction: column; }
.cov-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 2px; border-bottom: 1px solid var(--line);
}
.cov-item:last-child { border-bottom: 0; }
.cov-main { min-width: 0; }
.cov-main .cell-sub { margin-top: 3px; }
.cov-side { display: flex; align-items: center; gap: 8px; flex: none; }
/* 字典树：组织类只读引用 */
.dt-item.ro { opacity: .78; }
.dt-item.ro:hover { opacity: 1; background: var(--bg-soft, #f6f8fb); }
.dt-go { margin-left: 4px; color: var(--text-hint); font-size: 11px; }

/* ---------- 门店库：主次分明的两行单元格 ---------- */
.st-main { display: flex; align-items: center; gap: 10px; }
.st-ava {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  background: var(--primary-light); color: var(--primary-dark);
  font-size: 13px; font-weight: 600;
}
.st-id { min-width: 0; }
.st-name { font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.25; }
.st-addr {
  max-width: 236px; font-size: 12px; color: var(--text-3); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.st-line { display: flex; align-items: center; gap: 6px; }
.st-strong { font-size: 13px; color: var(--text); }
.st-dim { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.st-owner { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.st-mini {
  width: 20px; height: 20px; border-radius: 6px; flex: none;
  display: grid; place-items: center; font-size: 11px;
  background: #eef2ff; color: #4f46e5;
}
.st-coop { display: flex; align-items: center; font-size: 13px; color: var(--text); }
.st-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 6px; flex: none; }
.st-dot.green { background: #22c55e; }
.st-dot.blue { background: #3b82f6; }
.st-dot.red { background: #ef4444; }
.st-dot.purple { background: #8b5cf6; }
.st-dot.gray { background: #cbd5e1; }

.chip {
  display: inline-block; padding: 1px 7px; border-radius: 6px;
  font-size: 11.5px; line-height: 18px; white-space: nowrap;
}
.chip.g-low { background: #f1f5f9; color: #64748b; }
.chip.g-mid { background: #eff6ff; color: #2563eb; }
.chip.g-high { background: #eef2ff; color: #4338ca; }
.chip.g-lux { background: #faf5ff; color: #7e22ce; }
.chip.mode { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; }
.chip.crowd { background: #f8fafc; color: #64748b; border: 1px solid var(--line); }
.chip.brand { background: #f8fafc; color: #475569; border: 1px solid var(--line); font-size: 12px; }

/* 门店详情抽屉 */
.sd-block { margin-bottom: 18px; }
.sd-title {
  font-size: 12.5px; font-weight: 600; color: var(--text-2); line-height: 1.2;
  margin-bottom: 8px; padding-left: 8px; border-left: 3px solid var(--primary);
}
.sd-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.sd-kv .k { font-size: 12px; color: var(--text-3); }
.sd-kv .v { font-size: 13px; color: var(--text); margin-top: 2px; word-break: break-all; }
.sd-item { display: flex; gap: 10px; font-size: 13px; color: var(--text); }
.sd-time { color: var(--text-3); font-size: 12px; flex: none; }

/* ---------- 通知公告 ---------- */
.nt-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; }
.nt-title .imp { color: #b45309; }
.nt-sum {
  font-size: 12.5px; color: var(--text-3); margin-top: 3px;
  max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nt-meta { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.read-bar { width: 120px; }
.read-bar .rb-track { height: 6px; border-radius: 3px; background: #eef2f7; overflow: hidden; }
.read-bar .rb-fill { height: 100%; border-radius: 3px; background: var(--primary); }
.read-bar .rb-text { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.read-bar.low .rb-fill { background: #f59e0b; }
.nt-readers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nt-readers .col-head { font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.nt-readers .who-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line);
}
.nt-readers .who-item:last-child { border-bottom: 0; }
.who-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex: none; }
.who-dot.off { background: #e2e8f0; }

/* 通知页用到的通用件 */
.badge.gray { background: #f1f5f9; color: #64748b; }
.textarea { height: auto; min-height: 108px; padding: 9px 10px; line-height: 1.6; resize: vertical; }
.panel-text { font-size: 13.5px; line-height: 1.75; color: var(--text); word-break: break-word; }

/* ---------- 导航小角标（专业版 / 自定义 / 新） ---------- */
.nav-tag {
  margin-left: auto; font-size: 10.5px; line-height: 15px; padding: 0 5px;
  border-radius: 5px; background: #f1f5f9; color: #64748b; white-space: nowrap;
}
.nav-item.on .nav-tag { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------- 通用面板 / 开关 / 宽度工具 ---------- */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px 18px 18px; box-shadow: var(--shadow);
}
.panel-head-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.panel-h { font-size: 14px; font-weight: 600; color: var(--text); }
.empty-note {
  padding: 26px 12px; text-align: center; font-size: 13px; color: var(--text-3);
  background: #fbfcfd; border: 1px dashed var(--line-2); border-radius: 10px;
}
.switch {
  display: inline-block; width: 36px; height: 20px; border-radius: 10px;
  background: #e2e8f0; position: relative; cursor: pointer; flex: none;
  transition: background .18s ease;
}
.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, .18);
  transition: left .18s ease;
}
.switch.on { background: var(--primary); }
.switch.on::after { left: 18px; }
.switch.dis { opacity: .45; cursor: not-allowed; }
.w-70 { width: 70px; }
.w-90 { width: 90px; }
.w-110 { width: 110px; }

/* ---------- 功能市场 ---------- */
.mk-quota {
  font-size: 12.5px; color: var(--text-2); background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 12px; font-variant-numeric: tabular-nums;
}
.mk-rule {
  display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-2);
  background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 14px; line-height: 1.6;
}
.mk-rule .ico { color: var(--primary); flex: none; }
.mk-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.mk-tab {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px;
  border-radius: 8px; border: 1px solid var(--line); background: #fff;
  font-size: 13px; color: var(--text-2); cursor: pointer; transition: all .16s ease;
}
.mk-tab:hover { border-color: var(--line-2); background: var(--hover); }
.mk-tab.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.mk-tab i {
  font-style: normal; font-size: 11px; line-height: 16px; padding: 0 5px;
  border-radius: 5px; background: #f1f5f9; color: var(--text-3);
}
.mk-tab.on i { background: rgba(255, 255, 255, .22); color: #fff; }
.mk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mk-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px 14px;
  display: flex; flex-direction: column; gap: 9px; transition: box-shadow .18s ease, transform .18s ease;
}
.mk-card:hover { box-shadow: 0 6px 18px rgba(16, 24, 40, .08); transform: translateY(-1px); }
.mk-card.off { background: #fcfdff; }
.mk-card.locked { background: #fafbfc; }
.mk-card.off .mk-ico, .mk-card.locked .mk-ico { background: #f1f5f9; color: #94a3b8; }
.mk-head { display: flex; align-items: center; gap: 9px; }
.mk-ico {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: var(--primary-light); color: var(--primary);
}
.mk-ico.on { background: #e6f6ec; color: #0b7a3b; }
.mk-ico.core { background: #eef2ff; color: #4338ca; }
.mk-title { font-size: 14.5px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.mk-tag {
  font-style: normal; font-size: 10.5px; line-height: 15px; padding: 0 5px; border-radius: 5px;
  background: #fff2e8; color: #b45309;
}
.mk-status { margin-left: auto; font-size: 11.5px; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.mk-status.core { background: #eef2ff; color: #4338ca; }
.mk-status.on { background: var(--success-light); color: #0b7a3b; }
.mk-status.off { background: #f1f5f9; color: #64748b; }
.mk-status.locked { background: #f5f3ff; color: #6d28d9; }
.mk-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.6; min-height: 40px; }
.mk-meta {
  display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--text-3);
  padding-top: 9px; border-top: 1px dashed var(--line);
}
.mk-dep { color: #b45309; }
.mk-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.mk-price { font-size: 14px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.mk-price i { font-style: normal; font-size: 11px; font-weight: 400; color: var(--text-3); }
.mk-foot .btn { margin-left: auto; }
.mk-foot .btn + .btn { margin-left: 8px; }
.mk-core-hint { font-size: 11.5px; color: var(--text-3); }
.mk-warn {
  display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; line-height: 1.6;
  background: var(--warning-light); border: 1px solid #f7ddb4; color: #8a5a00;
  border-radius: 8px; padding: 9px 11px; margin-top: 4px;
}
.mk-warn .ico { flex: none; margin-top: 2px; }
.mk-warn-inline { color: #b45309; font-size: 12.5px; display: inline-block; margin-top: 6px; }
.mk-add-body { display: flex; flex-direction: column; gap: 12px; }
.mk-add-step { display: flex; gap: 11px; align-items: flex-start; }
.mk-add-step i {
  font-style: normal; width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--primary-light); color: var(--primary);
}
.mk-add-step b { display: block; font-size: 13.5px; color: var(--text); margin-bottom: 2px; }
.mk-add-step span { font-size: 12.5px; color: var(--text-3); line-height: 1.6; }

/* ---------- 行业模板卡片 ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tpl-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff;
  display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: all .16s ease;
}
.tpl-card:hover { border-color: #bcd3f5; box-shadow: 0 4px 14px rgba(26, 115, 232, .09); }
.tpl-card.cur { border-color: #a9c8f2; background: #fbfdff; }
.tpl-top { display: flex; align-items: center; gap: 8px; }
.tpl-name { font-size: 14px; font-weight: 600; color: var(--text); }
.tpl-desc { font-size: 12px; color: var(--text-3); line-height: 1.6; min-height: 38px; }
.tpl-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.tpl-list { display: flex; flex-direction: column; }
.tpl-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 2px; border-bottom: 1px solid var(--line);
}
.tpl-row:last-child { border-bottom: 0; }
.tpl-row .tpl-desc { min-height: 0; }

/* ---------- 字段管理 ---------- */
.fd-rule, .cfg-rule {
  display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-2);
  background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 14px; line-height: 1.6;
}
.fd-rule .ico, .cfg-rule .ico { color: var(--primary); flex: none; }
.fd-ents { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.fd-ent {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px;
  border-radius: 8px; border: 1px solid var(--line); background: #fff;
  font-size: 13px; color: var(--text-2); cursor: pointer; transition: all .16s ease;
}
.fd-ent:hover { background: var(--hover); }
.fd-ent.on { background: var(--primary-light); border-color: #b7d3f7; color: var(--primary-dark); font-weight: 600; }
.fd-ent .ico { color: inherit; }
.fd-ent-n {
  font-size: 11px; line-height: 16px; padding: 0 5px; border-radius: 5px;
  background: #f1f5f9; color: var(--text-3);
}
.fd-ent.on .fd-ent-n { background: #fff; color: var(--primary-dark); }
.fd-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.fd-list { padding: 15px 16px 6px; }
.fd-list-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.fd-preview { padding: 15px 14px; }
.fd-name { font-size: 13.5px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 7px; }
.fd-name code {
  font-size: 11px; font-weight: 400; color: var(--text-3); background: #f4f6f8;
  padding: 1px 6px; border-radius: 5px; font-family: ui-monospace, Menlo, Consolas, monospace;
}
.fd-opt {
  font-size: 11.5px; color: var(--text-3); margin-top: 3px;
  max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fd-hint { font-size: 11.5px; color: #b45309; margin-top: 3px; }
.fd-req { font-size: 11.5px; color: #a5221a; background: var(--danger-light); padding: 1px 6px; border-radius: 5px; }
.fd-prev-note { font-size: 11.5px; color: var(--text-3); line-height: 1.6; margin-top: 10px; }

/* 手机预览 */
.phone-mini {
  width: 100%; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; overflow: hidden; box-shadow: 0 2px 8px rgba(16, 24, 40, .05);
}
.pp-bar { height: 38px; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: #f7f9fc; border-bottom: 1px solid var(--line); }
.pp-body { padding: 12px 12px 14px; max-height: 360px; overflow-y: auto; }
.pp-sec { font-size: 11px; color: var(--text-3); margin: 4px 0 7px; }
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 8px; }
.pp-field { display: flex; flex-direction: column; gap: 4px; }
.pp-field.span-2 { grid-column: 1 / -1; }
.pp-field label { font-size: 11.5px; color: var(--text-2); }
.pp-field label i { font-style: normal; color: var(--danger); margin-left: 2px; }
.pp-input {
  height: 28px; border-radius: 7px; border: 1px solid var(--line); background: #fcfdfe;
  font-size: 11px; color: #b0b8c1; display: flex; align-items: center; padding: 0 8px;
}
.pp-img {
  height: 46px; border-radius: 7px; border: 1px dashed #c7d2de; background: #fafcfe;
  font-size: 11px; color: #9aa5b1; display: grid; place-items: center;
}
.pp-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pp-chip {
  font-size: 10.5px; line-height: 20px; padding: 0 8px; border-radius: 11px;
  border: 1px solid var(--line); color: var(--text-3); background: #fff;
}
.pp-chip.on { background: var(--primary-light); border-color: #b7d3f7; color: var(--primary-dark); }
.pp-empty { grid-column: 1 / -1; font-size: 11px; color: var(--text-3); padding: 10px; text-align: center; border: 1px dashed var(--line-2); border-radius: 8px; }
.pp-foot {
  height: 36px; display: grid; place-items: center; font-size: 12px; color: #fff;
  background: var(--primary); font-weight: 600;
}

/* ---------- 模块配置 ---------- */
.cfg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cfg-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px;
  display: flex; flex-direction: column; gap: 9px; cursor: pointer; transition: all .18s ease;
}
.cfg-card:hover { box-shadow: 0 6px 18px rgba(16, 24, 40, .08); transform: translateY(-1px); }
.cfg-card.module-only { border-style: dashed; background: #fcfdff; }
.cfg-head { display: flex; align-items: center; gap: 9px; }
.cfg-ico {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: var(--primary-light); color: var(--primary);
}
.cfg-title { font-size: 14.5px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.cfg-dot { font-style: normal; font-size: 10.5px; padding: 0 5px; border-radius: 5px; background: var(--warning-light); color: #b67409; }
.cfg-gear {
  margin-left: auto; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--text-2); display: grid; place-items: center; cursor: pointer;
}
.cfg-gear:hover { background: var(--primary-light); border-color: #b7d3f7; color: var(--primary); }
.cfg-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.6; min-height: 38px; }
.cfg-meta {
  display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--text-3);
  padding-top: 9px; border-top: 1px dashed var(--line);
}
.cfg-sys { padding: 15px 18px 16px; }
.cfg-sys-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cfg-sys-item {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2);
  background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px;
}
.cfg-reset { margin-right: 2px; }

/* 抽屉内的模块配置 */
.mc-tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--line); padding-bottom: 10px; flex-wrap: wrap; }
.mc-tab {
  font-size: 13px; color: var(--text-2); padding: 5px 12px; border-radius: 7px; cursor: pointer;
}
.mc-tab:hover { background: var(--hover); }
.mc-tab.on { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }
.mc-body { min-height: 200px; }
.mc-note {
  margin-top: 16px; font-size: 12px; color: var(--text-3); line-height: 1.6;
  background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px;
}
.mc-tab-note { margin-top: 12px; font-size: 12px; color: #b45309; background: var(--warning-light); border-radius: 8px; padding: 8px 11px; }
.mc-switch-list { display: flex; flex-direction: column; }
.mc-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--text-2); padding: 10px 2px; border-bottom: 1px solid var(--line);
}
.mc-switch:last-child { border-bottom: 0; }
.mc-rules th, .mc-rules td { padding: 9px 10px; }

/* ---------- v0.5.17 重构：资源归属（字段 / 字典 / 品牌 跟着模块走） ---------- */
.own-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-2);
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--primary);
  border-radius: 10px; padding: 9px 13px; margin-bottom: 14px;
}
.own-bar .ico { color: var(--primary); flex: none; }
.own-bar b { color: var(--text); font-weight: 600; }
.own-back { margin-left: auto; color: var(--primary); text-decoration: none; font-size: 12.5px; white-space: nowrap; }
.own-back:hover { text-decoration: underline; }

/* 模块卡上的「管：…」一行 */
.mk-owns {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 7px 0 0; margin-top: 2px;
  border-top: 1px dashed var(--line);
}
.mk-owns-label { font-size: 11.5px; color: var(--text-3); flex: none; }
.mk-owns .link-btn { font-size: 12px; }

/* 模块配置卡上的归属说明 */
.cfg-own { font-size: 11.5px; color: var(--text-3); line-height: 1.6; margin-top: 6px; }

/* 抽屉里的资源页签：字段表 / 字典 chips / 品牌 chips */
.mc-res-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0 8px; margin-top: 4px;
  font-size: 13px; color: var(--text-2);
}
.mc-res-head b { color: var(--text); font-weight: 600; }
.mc-res-head .btn { margin-left: auto; }
.mc-fd-table { font-size: 12.5px; }
.mc-fd-table th, .mc-fd-table td { padding: 8px 10px; }
.mc-fd-name { display: flex; align-items: center; gap: 7px; font-weight: 500; color: var(--text); }
.mc-fd-name code {
  font-size: 11px; font-weight: 400; color: var(--text-3);
  background: #f3f6fa; border-radius: 4px; padding: 1px 5px;
}
.mc-fd-opt { font-size: 11px; color: var(--text-3); margin-top: 3px; line-height: 1.5; }

.mc-dict-row { padding: 10px 0 12px; border-bottom: 1px dashed var(--line); }
.mc-dict-row:last-child { border-bottom: 0; }
.mc-dict-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.mc-dict-head b { font-size: 13px; color: var(--text); }
.mc-dict-head .btn { margin-left: auto; }
.mc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-2);
  background: #f7f9fc; border: 1px solid var(--line-2); border-radius: 7px;
  padding: 3px 4px 3px 9px;
}
.mc-chip.off { color: var(--text-3); background: #fbfcfd; text-decoration: line-through; }
.mc-chip small { font-size: 10.5px; color: var(--text-3); text-decoration: none; }
.mc-chip i {
  font-style: normal; cursor: pointer; color: var(--text-3);
  width: 16px; height: 16px; line-height: 15px; text-align: center;
  border-radius: 4px; transition: all .14s ease;
}
.mc-chip i:hover { background: var(--danger-light); color: #a5221a; }

/* ---------- 座舱结论（工作台条） ---------- */
.ck-strip { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.ck-strip-head { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; font-size: 13px; }
.ck-strip-head .ico { color: var(--primary); }
.ck-more { margin-left: auto; }
.ck-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ck-card {
  display: flex; flex-direction: column; gap: 6px; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--line); background: #fcfdff; text-decoration: none; transition: all .16s ease;
}
.ck-card:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(16, 24, 40, .08); }
.ck-card.red { border-left: 3px solid #ef4444; background: #fffafa; }
.ck-card.orange { border-left: 3px solid #f5a623; background: #fffdf8; }
.ck-card.green { border-left: 3px solid #22c55e; background: #f9fefb; }
.ck-title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.ck-desc { font-size: 12px; color: var(--text-3); line-height: 1.6; }
.ck-act { font-size: 12px; color: var(--primary); display: flex; align-items: center; gap: 3px; margin-top: 2px; }

/* ---------- 数据座舱页 ---------- */
.ck-plan { font-size: 12.5px; padding: 5px 11px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.ck-plan.on { color: #0b7a3b; background: var(--success-light); border-color: #bfe8ce; }
.ck-plan.off { color: #b67409; background: var(--warning-light); border-color: #f7ddb4; }
.ck-hero { margin-bottom: 14px; }
.ck-hero-title { font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
.ck-hero-sub { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.ck-big { display: flex; flex-direction: column; gap: 12px; }
.ck-big-card {
  display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 20px; text-decoration: none; transition: all .18s ease;
}
.ck-big-card:hover { box-shadow: 0 8px 22px rgba(16, 24, 40, .09); transform: translateY(-1px); }
.ck-big-card.red { border-left: 4px solid #ef4444; }
.ck-big-card.orange { border-left: 4px solid #f5a623; }
.ck-big-card.green { border-left: 4px solid #22c55e; }
.ckb-no { font-size: 26px; font-weight: 800; color: #dbe3ec; font-variant-numeric: tabular-nums; flex: none; }
.ckb-body { flex: 1; min-width: 0; }
.ckb-title { font-size: 15px; font-weight: 600; color: var(--text); }
.ckb-desc { font-size: 12.5px; color: var(--text-3); margin-top: 4px; line-height: 1.6; }
.ckb-act { font-size: 13px; color: var(--primary); display: flex; align-items: center; gap: 4px; flex: none; }
.ck-dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ck-dim {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 15px; background: #fcfdff;
  display: flex; flex-direction: column; gap: 5px;
}
.ck-dim.on { background: #fff; border-color: #bfe8ce; }
.ck-dim-name { font-size: 13px; font-weight: 600; color: var(--text); }
.ck-dim-value { font-size: 22px; font-weight: 700; color: #c2cad4; letter-spacing: -.5px; }
.ck-dim.on .ck-dim-value { color: var(--success); }
.ck-dim-hint { font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.ck-dim .link-btn { align-self: flex-start; margin-top: 2px; }
.ck-note { font-size: 13px; line-height: 1.8; color: var(--text-2); }
.ck-note b { color: var(--text); }
/* ============================================================
 * v0.5.19 调试控制台
 * 一块总闸门 + 6 个维度 + 下发地址 + 审计说明
 * ============================================================ */
.dbg-gate {
  border: 1px solid var(--line); border-left: 4px solid #94a3b8;
  border-radius: 12px; background: #fff; padding: 18px 20px; margin-bottom: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.dbg-gate.on { border-left-color: #22c55e; box-shadow: 0 6px 18px rgba(34, 197, 94, .10); }
.dbg-gate-main { display: flex; align-items: center; gap: 14px; }
.dbg-gate-ico {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: #f1f5f9; display: flex; align-items: center; justify-content: center;
}
.dbg-gate-ico svg { width: 22px; height: 22px; fill: #64748b; }
.dbg-gate.on .dbg-gate-ico { background: #e8f7ee; }
.dbg-gate.on .dbg-gate-ico svg { fill: #16a34a; }
.dbg-gate-text { flex: 1; min-width: 0; }
.dbg-gate-title { font-size: 16px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 10px; }
.dbg-gate-state {
  font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 20px;
  background: #f1f5f9; color: #64748b;
}
.dbg-gate.on .dbg-gate-state { background: #e8f7ee; color: #15803d; }
.dbg-gate-sub { font-size: 13px; color: var(--text-3); margin-top: 7px; line-height: 1.7; }
.dbg-gate-sub code { background: #f4f7fb; padding: 1px 6px; border-radius: 4px; font-size: 12.5px; }
.dbg-gate-meta { font-size: 11.5px; color: #94a3b8; margin-top: 6px; }
.dbg-switch { width: 44px; height: 24px; flex: none; }

.dbg-note {
  display: flex; gap: 9px; align-items: flex-start;
  border: 1px dashed #cfdcec; background: #f8fbff; border-radius: 10px;
  padding: 12px 16px; margin-bottom: 16px; font-size: 12.5px; line-height: 1.8; color: var(--text-3);
}
.dbg-note svg { width: 15px; height: 15px; fill: #1a73e8; flex: none; margin-top: 3px; }
.dbg-note b { color: var(--text); }
.dbg-note code { background: #eef4ff; color: #1a4fa8; padding: 1px 5px; border-radius: 4px; }

.dbg-dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.dbg-dim {
  border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 15px 16px;
  display: flex; flex-direction: column; gap: 9px; transition: box-shadow .18s ease, border-color .18s ease;
}
.dbg-dim.on { border-color: #bfe8ce; background: #fcfffd; }
.dbg-dim:hover { box-shadow: 0 6px 16px rgba(16, 24, 40, .07); }
.dbg-dim-head { display: flex; align-items: center; gap: 10px; }
.dbg-dim-ico {
  width: 32px; height: 32px; border-radius: 9px; flex: none; background: #f4f7fb;
  display: flex; align-items: center; justify-content: center;
}
.dbg-dim-ico svg { width: 17px; height: 17px; fill: #475569; }
.dbg-dim.on .dbg-dim-ico { background: #e8f7ee; }
.dbg-dim.on .dbg-dim-ico svg { fill: #16a34a; }
.dbg-dim-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dbg-dim-count { font-size: 11px; color: #94a3b8; font-weight: 400; }
.dbg-chip.red { font-size: 11px; color: #b42318; background: #fef3f2; border: 1px solid #fecdca; padding: 1px 7px; border-radius: 20px; font-weight: 500; }
.dbg-dim-desc { font-size: 12px; color: var(--text-3); line-height: 1.7; }
.dbg-items { border-top: 1px dashed var(--line); padding-top: 9px; display: flex; flex-direction: column; gap: 7px; }
.dbg-item { display: flex; flex-direction: column; gap: 2px; }
.dbg-item b { font-size: 12.5px; color: var(--text); font-weight: 600; }
.dbg-item span { font-size: 11.5px; color: #94a3b8; line-height: 1.5; }

.dbg-send { margin-bottom: 14px; }
.dbg-send-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; }
.dbg-url-row { display: flex; gap: 8px; align-items: center; }
.dbg-url-row .input { flex: 1; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: #475569; }
.dbg-state-tag { font-size: 12px; padding: 2px 10px; border-radius: 20px; background: #f1f5f9; color: #64748b; }
.dbg-state-tag.on { background: #e8f7ee; color: #15803d; }

.dbg-audit .card-body { padding: 4px 20px 16px; }
.dbg-list { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 2; color: var(--text-2); }
.dbg-list b { color: var(--text); }
.dbg-list code { background: #f4f7fb; padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* ---------- 三层身份（租户与套餐页） ---------- */
.ts-layer-strip { display: flex; gap: 12px; margin-bottom: 14px; }
.ts-layer {
  flex: 1; position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px;
}
.ts-layer.on { border-color: #c9dcff; background: #f7fbff; box-shadow: 0 2px 8px rgba(26, 115, 232, .08); }
.ts-layer-code {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .6px;
  color: #6b4fd8; background: #f4f0ff; border-radius: 6px; padding: 2px 7px;
}
.ts-layer.on .ts-layer-code { color: #1a73e8; background: #e8f1ff; }
.ts-layer-name { font-size: 14px; font-weight: 600; color: var(--text); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ts-layer-who { font-size: 11.5px; font-weight: 400; color: var(--text-3); }
.ts-layer-desc { font-size: 12px; line-height: 1.7; color: var(--text-2); }
.ts-layer-cur {
  position: absolute; top: 12px; right: 14px; font-size: 11px; color: #1a73e8;
  background: #e8f1ff; border-radius: 10px; padding: 2px 8px;
}
.ts-tenant { display: flex; align-items: center; gap: 9px; }
.ts-tenant .cell-main { font-weight: 600; }

/* L2 撞 L1 页面：说明 + 返回 */
.ts-blocked { background:#fff; border:1px solid var(--border); border-radius:12px; padding:20px 22px; }
.ts-blocked-t { font-size:15px; font-weight:600; color:var(--text); margin-bottom:8px; }
.ts-blocked-d { font-size:12.5px; line-height:1.8; color:var(--text-2); margin-bottom:14px; max-width:620px; }


/* ============================================================
 * v0.5.22 两套后台：品牌副行、走错门拦截、平台运营台页面
 * ============================================================ */
.brand-sub {
  display: flex; align-items: center; gap: 5px;
  padding: 0 18px 9px; margin-top: -2px;
  font-size: 12px; color: var(--text-3, #8a93a0);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-sub svg { width: 13px; height: 13px; fill: #1a73e8; flex: none; }
.brand-sub.tenant { color: #334155; font-weight: 600; }

.scope-block {
  max-width: 640px; margin: 72px auto; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 34px 36px; text-align: center;
}
.scope-block svg { width: 26px; height: 26px; fill: #94a3b8; }
.scope-block h2 { font-size: 19px; margin: 12px 0 8px; color: var(--text); }
.scope-block p { font-size: 13.5px; line-height: 1.75; color: var(--text-2); margin: 0 0 8px; }
.scope-block .scope-acts { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }

/* 平台概览 */
.pl-hero {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(120deg, #ffffff 0%, #f3f8ff 100%);
  border: 1px solid #e3edfb; border-radius: 14px; padding: 18px 22px; margin-bottom: 16px;
}
.pl-hero h1 { font-size: 17px; margin: 0 0 4px; }
.pl-hero .sub { font-size: 12.5px; color: var(--text-2); }
.pl-hero .acts { display: flex; gap: 8px; }

.pl-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 16px; }
.pl-kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.pl-kpi .k { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.pl-kpi .v { font-size: 24px; font-weight: 700; line-height: 1.1; }
.pl-kpi .v small { font-size: 12px; font-weight: 500; color: var(--text-3); margin-left: 4px; }
.pl-kpi.warn .v { color: #d97706; }

.pl-two { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }

/* 套餐分布 */
.plan-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.plan-row .nm { width: 72px; font-size: 12.5px; color: var(--text-2); flex: none; }
.plan-row .bar { flex: 1; height: 8px; background: #f1f5f9; border-radius: 5px; overflow: hidden; }
.plan-row .bar i { display: block; height: 100%; border-radius: 5px; background: #1a73e8; }
.plan-row .bar i.b { background: #60a5fa; }
.plan-row .bar i.c { background: #c7d2fe; }
.plan-row .num { width: 54px; text-align: right; font-size: 12px; color: var(--text-3); }

/* 到期预警 */
.due-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.due-item:last-child { border-bottom: 0; }
.due-item .nm { font-weight: 600; font-size: 13px; }
.due-item .mt { font-size: 11.5px; color: var(--text-3); }
.due-item .tag { margin-left: auto; }

/* 平台动作流 */
.act-line { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.act-line:last-child { border-bottom: 0; }
.act-line time { color: var(--text-3); flex: none; width: 42px; }
.act-line span { color: var(--text-2); }

/* 模块与套餐 */
.cat-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.cat-tab {
  padding: 7px 14px; border-radius: 8px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--text-2);
}
.cat-tab.on { background: #eef6ff; border-color: #bfdcff; color: #1a5fd0; font-weight: 600; }
.mod-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mod-row:last-child { border-bottom: 0; }
.mod-row .ic {
  width: 34px; height: 34px; border-radius: 9px; background: #f3f7fe; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.mod-row .ic svg { width: 18px; height: 18px; fill: #1a73e8; }
.mod-row .txt { flex: 1; min-width: 0; }
.mod-row .txt .nm { font-size: 13.5px; font-weight: 600; }
.mod-row .txt .ds { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.mod-row .pr { width: 74px; text-align: right; font-size: 12.5px; color: var(--text-2); }
.mod-row .pr b { font-size: 14px; color: #1c2128; }

.plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fff; }
.plan-card.hot { border-color: #bfdcff; box-shadow: 0 4px 14px rgba(26,115,232,.08); }
.plan-card .nm { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.plan-card .price { font-size: 22px; font-weight: 700; margin: 10px 0 2px; }
.plan-card .price small { font-size: 12px; color: var(--text-3); font-weight: 500; }
.plan-card ul { margin: 12px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--text-2); line-height: 1.9; }
.plan-card .use { margin-top: 14px; font-size: 12px; color: var(--text-3); }

.tpl-card .hd { display: flex; align-items: center; gap: 10px; }
.tpl-card .hd .ic { width: 32px; height: 32px; border-radius: 9px; background: #f4f7fb; display:flex; align-items:center; justify-content:center; }
.tpl-card .hd .ic svg { width: 17px; height: 17px; fill: #475569; }
.tpl-card .hd .nm { font-size: 14px; font-weight: 600; }
.tpl-card .hd .tag { margin-left: auto; }

/* 通用小件（平台页复用） */
.panel-body { font-size: 13px; color: var(--text-2); }
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 11px; background: #f1f5f9; color: #64748b; font-size: 11.5px; white-space: nowrap;
}
.tag-warn { background: #fff7ed; color: #c2410c; }
.tag-info { background: #eef6ff; color: #1a5fd0; }
.mod-ico {
  width: 32px; height: 32px; border-radius: 9px; background: #f3f7fe; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.mod-ico svg { width: 16px; height: 16px; fill: #1a73e8; }
.pl-gap { height: 16px; }

/* 调试页 · 租户级授权 */
.dbg-tenants {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px 18px; margin-bottom: 14px;
}
.dbg-tenant-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dbg-tenant-title { font-size: 14px; font-weight: 600; }
.dbg-tenant-sub { font-size: 12.5px; color: var(--text-3); line-height: 1.7; margin-bottom: 8px; }
.dbg-tenant-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dbg-tenant-row {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.dbg-tenant-ico { width: 26px; height: 26px; border-radius: 8px; background: #f3f7fe; display:flex; align-items:center; justify-content:center; flex:none; }
.dbg-tenant-ico svg { width: 14px; height: 14px; fill: #1a73e8; }
.dbg-tenant-txt { flex: 1; min-width: 0; }
.dbg-tenant-txt .nm { font-size: 13px; font-weight: 600; }
.dbg-tenant-txt .mt { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

/* 工作台 · 套餐与续费条（L2） */
.sub-band {
  display: flex; align-items: center; gap: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 12px 18px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.sub-band.warn { border-color: #fed7aa; background: linear-gradient(120deg,#fffdf8,#fff7ed); }
.sub-band.soon { border-color: #bfdcff; }
.sub-main { flex: 1; min-width: 0; }
.sub-plan { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.sub-plan svg { width: 15px; height: 15px; fill: #1a73e8; }
.sub-plan b { font-size: 14px; }
.sub-tag { font-size: 11px; color: #1a5fd0; background: #eef6ff; border-radius: 8px; padding: 1px 6px; }
.sub-name { font-size: 12.5px; color: var(--text-3); margin: 4px 0 2px; }
.sub-meta { font-size: 12.5px; color: var(--text-2); }
.sub-meta b.red, .red { color: #d93025; }
.sub-seat { width: 190px; flex: none; font-size: 11.5px; color: var(--text-3); }
.sub-seat .bar { height: 7px; background: #f1f5f9; border-radius: 4px; overflow: hidden; margin-bottom: 5px; }
.sub-seat .bar i { display: block; height: 100%; background: #1a73e8; border-radius: 4px; }
.sub-acts { display: flex; gap: 8px; flex: none; }

.kv-list { display: flex; flex-direction: column; gap: 10px; }
.kv { display: flex; justify-content: space-between; font-size: 13px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.kv span { color: var(--text-3); }
.kv b { color: var(--text); }
.w-full { width: 100%; }

.pn-title-cell .tag { margin-left: 6px; }

/* 运营商后台 10 模块新增页 */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot.ok { background: #10b981; }
.dot.warn { background: #f59e0b; }
.plan-card-h { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.plan-price { font-size: 22px; font-weight: 700; margin: 10px 0 2px; color: var(--text); }
.plan-card ul { margin: 12px 0 14px; padding-left: 16px; font-size: 12.5px; color: var(--text-2); line-height: 1.9; }
.tpl-card-h { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.tpl-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.tpl-card p { margin: 0 0 8px; }

.pd-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 14px; }
.pd-kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.pd-kpi-value { font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.pd-kpi-label { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.pd-kpi-sub { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.pd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pd-list { padding: 4px 0; }
.pd-line { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.pd-line:last-child { border-bottom: 0; }
.pd-line span:first-child { flex: 1; color: var(--text-2); }
.mini-bar { display: inline-block; width: 90px; height: 6px; background: #eef2f7; border-radius: 4px; overflow: hidden; margin-right: 8px; vertical-align: middle; }
.mini-bar i { display: block; height: 100%; background: #1a73e8; border-radius: 4px; }

.geo-list { padding: 6px 0; }
.geo-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.geo-city { width: 60px; font-weight: 700; }
.geo-bar { flex: 1; height: 8px; background: #eef2f7; border-radius: 4px; overflow: hidden; }
.geo-bar i { display: block; height: 100%; background: #1a73e8; }

.health-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.health-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.health-h { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; margin-bottom: 4px; }

.check-list { display: flex; flex-direction: column; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.check-name { width: 140px; font-weight: 600; }
.debug-entry { display: flex; align-items: center; gap: 24px; padding: 18px 0 6px; }
.debug-entry .small { flex: 1; line-height: 1.9; }

.bucket-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bucket { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fff; }
.bucket-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 13.5px; }
.bucket .bar { height: 7px; background: #eef2f7; border-radius: 4px; overflow: hidden; margin: 8px 0 4px; }
.bucket .bar i { display: block; height: 100%; background: #1a73e8; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.red { color: #d93025; }

/* v0.5.25 L1 折叠树侧栏 */
.nav-tree { margin: 2px 0; }
.nav-parent { position: relative; }
.nav-parent .nav-item { padding-right: 30px; }
.nav-caret {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
}
.nav-caret:hover { background: var(--hover); color: var(--text-2); }
.nav-caret .ico { transition: transform .18s ease; }
.nav-caret.open .ico { transform: rotate(180deg); }
.nav-sub {
  display: none;
  margin: 2px 0 6px 18px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.nav-sub.open { display: block; }
.nav-sub-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--text-2);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-sub-item:hover { background: var(--hover); color: var(--text); }
.nav-sub-item.on { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }
.nav-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); flex: none; }
.nav-sub-item.on .nav-dot { background: var(--primary); }
/* v0.5.26 通用工具类（补内联样式迁移后的缺口） */
.mt-10 { margin-top: 10px; }
.mt-14 { margin-top: 14px; }
.form-w-720 { max-width: 720px; }
.bold { font-weight: 600; }
.flex-1 { flex: 1; min-width: 0; }
.tag-on { background: #ecfdf5; color: #047857; }
.mt-16 { margin-top: 16px; }
.form-w-520 { max-width: 520px; }
.tpl-desc { margin: 10px 0 6px; line-height: 1.7; }