/* ============================================================
   老杨陪跑 · 获客台 —— 设计系统 v4
   活泼蓝紫渐变侧边栏 + 品牌蓝 + 大字号 + 强立体感 + 年轻化
   ============================================================ */
:root {
  /* 品牌 */
  --brand: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-soft: #eff4ff;
  --accent: #7c5cff;
  --accent-soft: #f1edff;
  --grad-brand: linear-gradient(135deg, #4a6cf7 0%, #7c5cff 100%);

  /* 侧边栏（活泼蓝紫渐变，非黑） */
  --side-bg: #3d5ce0;
  --side-bg-2: #4b46e8;
  --side-bg-3: #5b48dd;
  --side-line: rgba(255, 255, 255, .14);
  --side-text: #dbe3ff;
  --side-text-2: #a8b6e8;
  --side-active-bg: linear-gradient(135deg, #4a6cf7 0%, #7c5cff 100%);
  --side-active: #c7d4ff;

  /* 内容区 */
  --bg: #f4f7fb;
  --panel: #ffffff;
  --ink: #14203a;
  --ink-2: #5a6b8a;
  --ink-3: #8b9ab8;
  --line: #e8edf5;
  --line-2: #dbe3ef;

  /* 语义色 */
  --green: #12b76a;
  --green-soft: #ecfdf3;
  --amber: #f59e0b;
  --amber-soft: #fff7e8;
  --red: #ef4444;
  --red-soft: #fef2f2;
  --cyan: #06b6d4;
  --pink: #ec4899;

  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 1px 3px rgba(20, 32, 58, .05), 0 3px 12px rgba(20, 32, 58, .06);
  --shadow-lg: 0 12px 36px rgba(20, 32, 58, .15);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, .9);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink); background: var(--bg); font-size: 15px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

.app { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

/* ============ 顶栏（品牌 + 主力板块 + 同步） ============ */
.topnav {
  height: 66px; flex-shrink: 0; display: flex; align-items: center; gap: 20px;
  background: linear-gradient(90deg, rgba(74,108,247,.08), rgba(255,255,255,0) 30%), #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 24px; position: relative; z-index: 5;
  box-shadow: 0 2px 12px rgba(70, 80, 220, .07);
}
.topnav-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.topnav-brand .side-logo { width: 42px; height: 42px; box-shadow: 0 0 0 3px rgba(74,108,247,.15), 0 4px 12px rgba(74,108,247,.28); }
.topnav-brand .side-name { color: var(--ink); font-size: 20px; text-shadow: none; letter-spacing: 1px; }
.topnav-brand .side-sub { color: var(--brand); letter-spacing: 3px; font-size: 12px; }

.topnav-tabs { flex: 1; display: flex; align-items: center; gap: 4px; overflow-x: auto; min-width: 0; }
.topnav-tabs::-webkit-scrollbar { height: 4px; }
.topnav-tabs::-webkit-scrollbar-thumb { background: #d5dce6; border-radius: 2px; }
.topnav-tabs::-webkit-scrollbar-track { background: transparent; }
.top-tab {
  display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px;
  cursor: pointer; color: var(--ink-2); font-size: 15.5px; font-weight: 600;
  white-space: nowrap; user-select: none; transition: all .15s; position: relative;
  flex-shrink: 0;
}
.top-tab svg { width: 18px; height: 18px; opacity: .8; }
.top-tab:hover { background: var(--brand-soft); color: var(--brand); }
.top-tab.active {
  background: var(--grad-brand);
  color: #fff; font-weight: 700;
  box-shadow: 0 4px 14px rgba(74, 108, 247, .4), inset 0 1px 0 rgba(255,255,255,.25);
}
.top-tab.active svg { opacity: 1; }
.top-tab .side-badge { margin-left: 2px; }

.topnav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* ============ 主体：内容 + 右侧账号面板 ============ */
.body { flex: 1; display: flex; min-height: 0; overflow: hidden; }

/* ============ 右侧账号面板 ============ */
.acct-panel {
  width: 286px; flex-shrink: 0; display: flex; flex-direction: column; min-height: 0;
  background: #fbfcff; border-left: 1px solid var(--line);
}
.acct-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 8px; flex-shrink: 0;
}
.acct-panel-head h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0; }
.acct-panel-head h2 svg { width: 18px; height: 18px; color: var(--brand); }
.acct-panel-tools { padding: 0 16px 10px; flex-shrink: 0; }
.acct-panel-tools .btn { width: 100%; }
.acct-panel-list { flex: 1; overflow-y: auto; padding: 0 10px; }
.acct-panel-list::-webkit-scrollbar { width: 6px; }
.acct-panel-list::-webkit-scrollbar-thumb { background: #dce3f0; border-radius: 4px; }
.acct-panel-foot { padding: 10px 16px 14px; border-top: 1px solid var(--line); flex-shrink: 0; }
.acct-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 10px;
  cursor: pointer; transition: all .14s; position: relative;
}
.acct-row:hover { background: var(--brand-soft); }
.acct-row.active { background: linear-gradient(135deg, var(--brand-soft), rgba(124,92,255,.08)); }
.acct-row .acct-ava { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  overflow: hidden; background: linear-gradient(135deg, #e8eeff, #f0e8ff);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
  color: var(--brand); font-size: 15px; }
.acct-row .acct-ava img { width: 100%; height: 100%; object-fit: cover; }
.acct-row-main { flex: 1; min-width: 0; }
.acct-row-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.acct-row-name .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.acct-row-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-row-lvl { font-size: 11px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 7px; border-radius: 8px; flex-shrink: 0; }


/* ============ 侧边栏 ============ */
.sidebar {
  width: 248px; flex-shrink: 0;
  background: linear-gradient(180deg, #4a6cf7 0%, var(--side-bg-2) 42%, var(--side-bg-3) 100%);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 2px 0 18px rgba(70, 80, 220, .28);
  position: relative;
}
/* 顶部柔光 */
.sidebar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 60% at 0% 0%, rgba(255,255,255,.14), transparent 60%);
}
.side-brand {
  display: flex; align-items: center; gap: 13px; padding: 22px 20px 20px;
  border-bottom: 1px solid var(--side-line); position: relative; z-index: 1;
}
.side-logo {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  overflow: hidden; background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.28), 0 5px 16px rgba(20, 30, 90, .35);
}
.side-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-name {
  color: #fff; font-weight: 800; font-size: 21px; line-height: 1.2;
  letter-spacing: 1px; text-shadow: 0 2px 5px rgba(20, 30, 90, .35);
}
.side-sub {
  display: block; color: rgba(255,255,255,.78); font-size: 13px; font-weight: 600;
  margin-top: 4px; letter-spacing: 4px;
}

.side-nav { flex: 1; overflow-y: auto; padding: 16px 12px; position: relative; z-index: 1; }
.side-nav::-webkit-scrollbar { width: 0; }
.side-group { margin-bottom: 22px; }
.side-group-title {
  color: var(--side-text-2); font-size: 13px; padding: 6px 14px 10px;
  letter-spacing: 2px; font-weight: 700; text-transform: uppercase;
}
.side-item {
  display: flex; align-items: center; gap: 13px; padding: 12px 14px;
  border-radius: var(--radius-sm); cursor: pointer; color: var(--side-text);
  font-size: 16.5px; font-weight: 600; user-select: none; transition: all .16s;
  margin-bottom: 4px; position: relative; letter-spacing: .5px;
  text-shadow: 0 1px 2px rgba(20, 30, 90, .2);
}
.side-item:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateX(2px); }
.side-item.active {
  background: var(--side-active-bg); color: #fff; font-weight: 700;
  box-shadow: 0 5px 16px rgba(40, 60, 200, .45), inset 0 1px 0 rgba(255,255,255,.25);
  text-shadow: 0 1px 3px rgba(20, 30, 90, .3);
}
.side-item.active::before {
  content: ""; position: absolute; left: -12px; top: 12px; bottom: 12px;
  width: 4px; border-radius: 0 3px 3px 0; background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, .95);
}
.side-item svg { width: 20px; height: 20px; flex-shrink: 0; opacity: .92; }
.side-item.active svg { opacity: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.28)); }
.side-badge {
  margin-left: auto; font-size: 12px; padding: 2px 9px; border-radius: 10px;
  background: rgba(255, 255, 255, .16); color: #e6ecff; font-weight: 700;
}
.side-badge.warn { background: #ff6b6b; color: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(255,80,80,.5); }

.side-foot { padding: 15px 16px; border-top: 1px solid var(--side-line); position: relative; z-index: 1; }
.side-user { display: flex; align-items: center; gap: 12px; color: var(--side-text); font-size: 15px; }
.side-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  overflow: hidden; background: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,.28), 0 3px 10px rgba(20, 30, 90, .3);
}
.side-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-user-name { color: #fff; font-weight: 700; font-size: 15px; text-shadow: 0 1px 3px rgba(20,30,90,.3); }
.side-user-role { display: block; font-size: 12.5px; color: var(--side-text-2); margin-top: 2px; }

/* ============ 主区 ============ */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

.topbar {
  height: 64px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; flex-shrink: 0;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.crumb { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: .3px; }
.crumb-tag {
  font-size: 13px; color: var(--brand); background: var(--brand-soft);
  padding: 3px 11px; border-radius: 9px; font-weight: 700;
}
.topbar-right { display: flex; align-items: center; gap: 18px; }
.clock { color: var(--ink-2); font-size: 14.5px; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.operator-switch { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 15px; cursor: pointer; }
.operator-switch .side-avatar { width: 30px; height: 30px; }

.content { flex: 1; overflow-y: auto; padding: 26px 30px 52px; }
.content::-webkit-scrollbar { width: 8px; }
.content::-webkit-scrollbar-thumb { background: #d5dce6; border-radius: 4px; }

.page { display: none; }
.page.active { display: block; animation: pageIn .25s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ============ 驾驶舱首页 ============ */
.hero { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.hero-title {
  font-size: 30px; font-weight: 900; letter-spacing: .4px;
  background: linear-gradient(120deg, #14203a 0%, #4a6cf7 60%, #7c5cff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1px rgba(20,32,58,.12));
}
.hero-sub { color: var(--ink-2); font-size: 16px; }
.hero-sub b { color: var(--brand); font-weight: 800; }

/* KPI 卡片 */
.kpi-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 22px;
}
.kpi {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px 16px; position: relative; overflow: hidden;
  box-shadow: var(--shadow), var(--highlight); transition: transform .14s, box-shadow .14s;
}
.kpi::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--grad-brand); opacity: 0; transition: opacity .14s;
}
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg), var(--highlight); }
.kpi:hover::before { opacity: 1; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kpi-ico {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.kpi-ico svg { width: 21px; height: 21px; }
.kpi-ico.blue { background: var(--brand-soft); color: var(--brand); }
.kpi-ico.green { background: var(--green-soft); color: var(--green); }
.kpi-ico.amber { background: var(--amber-soft); color: var(--amber); }
.kpi-ico.red { background: var(--red-soft); color: var(--red); }
.kpi-ico.cyan { background: var(--accent-soft); color: var(--accent); }
.kpi-ico.gray { background: #f1f4f8; color: var(--ink-2); }
.kpi-label { font-size: 14.5px; color: var(--ink-2); font-weight: 600; }
.kpi-value {
  font-size: 38px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
  text-shadow: 0 2px 1px rgba(255,255,255,.7), 0 1px 2px rgba(20,32,58,.12);
}
.kpi-value.blue { color: var(--brand); }
.kpi-value.green { color: var(--green); }
.kpi-value.amber { color: var(--amber); }
.kpi-value.red { color: var(--red); }
.kpi-foot { margin-top: 11px; font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.kpi-foot .up { color: var(--green); font-weight: 700; }
.kpi-foot .warn { color: var(--red); font-weight: 700; }

/* 两栏布局 */
.grid-2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-bottom: 20px; align-items: start; }
@media (max-width: 1180px) { .grid-2 { grid-template-columns: 1fr; } }

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 18px; box-shadow: var(--shadow), var(--highlight);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.panel-head h2 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; letter-spacing: .2px; }
.panel-head h2 svg { width: 20px; height: 20px; color: var(--brand); }
.panel-sub { font-size: 13.5px; color: var(--ink-3); font-weight: 400; }
.panel-link { color: var(--brand); font-size: 15px; cursor: pointer; text-decoration: none; font-weight: 600; }
.panel-link:hover { text-decoration: underline; }

/* 待办任务流 */
.todo-list { display: flex; flex-direction: column; gap: 12px; }
.todo-item {
  display: flex; align-items: center; gap: 15px; padding: 15px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfcfe;
  transition: border-color .14s, background .14s, transform .14s;
}
.todo-item:hover { border-color: var(--line-2); background: #fff; transform: translateX(2px); }
.todo-item.off { opacity: .55; background: #fafbfc; }
.todo-ico {
  width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.todo-ico svg { width: 24px; height: 24px; }
.todo-ico.blue { background: var(--brand-soft); color: var(--brand); }
.todo-ico.green { background: var(--green-soft); color: var(--green); }
.todo-ico.amber { background: var(--amber-soft); color: var(--amber); }
.todo-ico.red { background: var(--red-soft); color: var(--red); }
.todo-ico.cyan { background: var(--accent-soft); color: var(--accent); }
.todo-ico.gray { background: #f1f4f8; color: var(--ink-3); }
.todo-body { flex: 1; min-width: 0; }
.todo-title { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.todo-desc { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.todo-count {
  font-size: 14px; padding: 3px 12px; border-radius: 12px; font-weight: 800;
  background: var(--brand-soft); color: var(--brand);
}
.todo-count.red { background: var(--red-soft); color: var(--red); }
.todo-count.amber { background: var(--amber-soft); color: var(--amber); }
.todo-count.off { background: #eef1f5; color: var(--ink-3); }

/* 账号矩阵 */
.acct-matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.acct-cell {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 14px;
  cursor: pointer; background: #fbfcfe; transition: all .15s; position: relative;
}
.acct-cell:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.acct-cell-top { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.acct-ava {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #eef2ff, #dfe7ff); color: var(--brand-700);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  overflow: hidden;
}
.acct-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-cell-name { font-weight: 700; font-size: 15px; line-height: 1.2; word-break: break-all; }
.acct-cell-plat { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.acct-cell-meta { display: flex; align-items: center; justify-content: space-between; }
.acct-fans { font-size: 13.5px; color: var(--ink-2); }
.acct-fans b { color: var(--ink); font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.ok { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.dot.warn { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.dot.bad { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.dot.gray { background: #cbd5e1; box-shadow: 0 0 0 3px #f1f4f8; }

/* 客资速览表 */
.lead-table { width: 100%; border-collapse: collapse; }
.lead-table th {
  text-align: left; font-size: 13.5px; color: var(--ink-3); font-weight: 600;
  padding: 10px 10px; border-bottom: 1px solid var(--line);
}
.lead-table td { padding: 12px 10px; border-bottom: 1px solid #f0f3f8; font-size: 14.5px; }
.lead-table tr:last-child td { border-bottom: none; }
.lead-table tr:hover td { background: #fafcff; }
.cell-nick { font-weight: 700; }
.cell-account { color: var(--ink-3); font-size: 13px; }
.cell-contact { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cell-time { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.cell-time.overdue { color: var(--red); font-weight: 700; }

/* 标签 */
.tag { font-size: 12.5px; padding: 3px 10px; border-radius: 10px; white-space: nowrap; font-weight: 600; }
.tag.strong { background: var(--red-soft); color: var(--red); }
.tag.mid { background: var(--amber-soft); color: var(--amber); }
.tag.weak { background: #f1f5f9; color: var(--ink-3); }
.tag.ok { background: var(--green-soft); color: var(--green); }
.tag.blue { background: var(--brand-soft); color: var(--brand); }

/* 筛选 chips */
.filter-row { display: flex; gap: 9px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-2);
  padding: 8px 18px; border-radius: 22px; cursor: pointer; font-size: 14.5px;
  transition: all .13s; font-family: inherit; font-weight: 600;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 3px 12px rgba(59,130,246,.35); }

/* ============ 客资池 ============ */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 14px; }
.page-title {
  font-size: 28px; font-weight: 900; letter-spacing: .3px;
  text-shadow: 0 1px 1px rgba(255,255,255,.7);
}
.page-desc { color: var(--ink-2); font-size: 15px; margin-top: 6px; }

.lead-list { display: flex; flex-direction: column; gap: 13px; }
.lead-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: flex; justify-content: space-between; gap: 16px;
  box-shadow: var(--shadow), var(--highlight); transition: border-color .14s;
}
.lead-card:hover { border-color: var(--line-2); }
.lead-card.overdue { border-color: var(--red); background: #fffafa; }
.lead-card.overdue::before {
  content: ""; width: 4px; align-self: stretch; border-radius: 4px; background: var(--red); margin: -18px 0 -18px -20px;
}
.lead-main { flex: 1; min-width: 0; }
.lead-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.lead-nick { font-weight: 800; font-size: 16px; }
.lead-account { color: var(--ink-3); font-size: 13.5px; }
.lead-text { color: var(--ink-2); margin-bottom: 10px; word-break: break-all; font-size: 14.5px; line-height: 1.6; }
.lead-contact { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14.5px; }
.lead-contact .k { color: var(--ink-3); }
.lead-contact .val { font-weight: 700; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.lead-time { color: var(--ink-3); font-size: 13.5px; margin-top: 9px; display: flex; align-items: center; gap: 5px; }
.lead-time.overdue { color: var(--red); font-weight: 700; }
.lead-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; align-items: stretch; min-width: 100px; }

/* ============ 账号矩阵页 ============ */
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 16px; }
.acct-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; cursor: pointer; box-shadow: var(--shadow), var(--highlight); transition: all .15s;
}
.acct-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-lg), var(--highlight); }
.acct-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.acct-card .acct-ava { width: 52px; height: 52px; font-size: 19px; border-radius: 14px; }
.acct-card-name { font-weight: 800; font-size: 17px; }
.acct-card-plat { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }
.acct-stats { display: flex; gap: 0; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.acct-stat { flex: 1; text-align: center; }
.acct-stat .v { font-size: 21px; font-weight: 900; font-variant-numeric: tabular-nums; text-shadow: 0 1px 1px rgba(255,255,255,.6); }
.acct-stat .k { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.acct-stat + .acct-stat { border-left: 1px solid var(--line); }
.acct-pills { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.acct-pill { font-size: 12.5px; padding: 3px 10px; border-radius: 10px; white-space: nowrap; font-weight: 700; }
.acct-pill.ok { background: var(--green-soft); color: var(--green); }
.acct-pill.warn { background: var(--amber-soft); color: var(--amber); }
.acct-pill.bad { background: var(--red-soft); color: var(--red); }

/* ============ 单账号详情 ============ */
.back-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.detail-head {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow), var(--highlight); margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.detail-id { display: flex; align-items: center; gap: 16px; }
.detail-id .acct-ava { width: 60px; height: 60px; font-size: 24px; border-radius: 16px; }
.detail-name { font-size: 22px; font-weight: 900; }
.detail-meta { color: var(--ink-2); font-size: 14.5px; margin-top: 5px; display: flex; gap: 16px; flex-wrap: wrap; }
.detail-kpis { display: flex; gap: 32px; }
.detail-kpi { text-align: center; }
.detail-kpi .v { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; text-shadow: 0 1px 1px rgba(255,255,255,.6); }
.detail-kpi .k { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab {
  padding: 12px 22px; cursor: pointer; color: var(--ink-2); font-size: 15.5px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; user-select: none; font-weight: 600;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 800; }

/* ============ IP 内核 ============ */
.ip-intro {
  display: flex; align-items: center; gap: 15px; padding: 20px 22px; margin-bottom: 24px;
  background: linear-gradient(120deg, #eff4ff, #f1edff); border: 1px solid #dbe7ff;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.ip-intro-ico {
  width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
  background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(74,108,247,.4);
}
.ip-intro-ico svg { width: 26px; height: 26px; }
.ip-intro-title { font-size: 18px; font-weight: 900; }
.ip-intro-desc { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; }

.ip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 1000px) { .ip-grid { grid-template-columns: 1fr; } }
.ip-cat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow), var(--highlight);
  position: relative; overflow: hidden;
}
.ip-cat::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
}
.ip-cat.laoyang::before { background: var(--grad-brand); }
.ip-cat.parent::before { background: linear-gradient(180deg, #f59e0b, #f97316); }
.ip-cat.student::before { background: linear-gradient(180deg, #12b76a, #06b6d4); }
.ip-cat.boom::before { background: linear-gradient(180deg, #ef4444, #ec4899); }
.ip-cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ip-cat-ico {
  width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.ip-cat-ico svg { width: 22px; height: 22px; }
.ip-cat.laoyang .ip-cat-ico { background: var(--brand-soft); color: var(--brand); }
.ip-cat.parent .ip-cat-ico { background: var(--amber-soft); color: var(--amber); }
.ip-cat.student .ip-cat-ico { background: var(--green-soft); color: var(--green); }
.ip-cat.boom .ip-cat-ico { background: var(--red-soft); color: var(--red); }
.ip-cat-name { font-size: 19px; font-weight: 900; letter-spacing: .2px; }
.ip-cat-cnt { font-size: 13px; color: var(--ink-3); }

.ip-item {
  padding: 16px 17px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fbfcfe; margin-bottom: 13px; transition: all .14s;
}
.ip-item:last-child { margin-bottom: 0; }
.ip-item:hover { border-color: var(--line-2); background: #fff; }
.ip-item-title { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.ip-item-title::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--brand); flex-shrink: 0; }
.ip-cat.parent .ip-item-title::before { background: var(--amber); }
.ip-cat.student .ip-item-title::before { background: var(--green); }
.ip-cat.boom .ip-item-title::before { background: var(--red); }
.ip-item-content { color: var(--ink-2); font-size: 14.5px; line-height: 1.75; margin-top: 8px; }
.ip-item-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 11px; }
.ip-tag { font-size: 12.5px; padding: 2px 10px; border-radius: 9px; background: #eef2f8; color: var(--ink-2); font-weight: 600; }

/* ============ 占位/预告页 ============ */
.coming-soon {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 72px 20px; text-align: center;
}
.coming-ico {
  width: 76px; height: 76px; border-radius: 22px; margin-bottom: 24px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.coming-ico svg { width: 36px; height: 36px; }
.coming-title { font-size: 24px; font-weight: 900; margin-bottom: 10px; }
.coming-desc { color: var(--ink-2); max-width: 480px; line-height: 1.8; margin-bottom: 26px; font-size: 15.5px; }
.coming-plan { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 560px; }
.coming-plan .chip { cursor: default; }
.coming-plan .chip:hover { border-color: var(--line); color: var(--ink-2); }
.phase-pill {
  display: inline-block; font-size: 14px; font-weight: 800; color: var(--amber);
  background: var(--amber-soft); padding: 4px 14px; border-radius: 10px; margin-bottom: 16px;
}

/* ============ 按钮 ============ */
.btn {
  border: none; border-radius: var(--radius-sm); padding: 11px 20px; cursor: pointer;
  font-size: 15px; font-family: inherit; font-weight: 700; transition: all .14s;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 4px 14px rgba(74, 108, 247, .42), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 6px 18px rgba(74, 108, 247, .5), inset 0 1px 0 rgba(255,255,255,.28); transform: translateY(-1px); }
.btn-primary:disabled { background: #a5bcf5; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg); border-color: var(--line-2); }
.btn-outline { background: var(--panel); border: 1px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }
.btn-danger { background: var(--red-soft); color: var(--red); border: 1px solid #fecaca; }
.btn-danger:hover { background: #fee2e2; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-ghost-sm { background: transparent; color: var(--ink-2); border: 1px solid var(--line); padding: 7px 11px; font-size: 13px; border-radius: 9px; cursor: pointer; font-family: inherit; }
.btn-ghost-sm:hover { background: var(--bg); }

/* ============ 弹窗 ============ */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-mask { position: absolute; inset: 0; background: rgba(20, 32, 58, .5); backdrop-filter: blur(2px); }
.modal-card {
  position: relative; background: #fff; border-radius: 18px; width: 480px;
  max-width: 92vw; box-shadow: var(--shadow-lg); overflow: hidden;
}
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 17px;
}
.modal-close { border: none; background: none; font-size: 26px; cursor: pointer; color: var(--ink-3); line-height: 1; }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 24px; }
.modal-foot {
  padding: 15px 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.modal-tip { color: var(--ink-3); font-size: 13.5px; }

.full-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.full-row:last-child { border-bottom: none; }
.full-row .k { color: var(--ink-3); }
.full-row .val { font-weight: 800; letter-spacing: .5px; font-variant-numeric: tabular-nums; }

/* 空态 */
.empty {
  text-align: center; padding: 52px 20px; color: var(--ink-3);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.empty svg { width: 46px; height: 46px; opacity: .5; }

/* toast */
.toast {
  position: fixed; top: 78px; right: 28px; z-index: 200;
  background: #14203a; color: #fff; padding: 14px 22px; border-radius: 12px;
  font-size: 14.5px; box-shadow: var(--shadow-lg); display: none; align-items: center; gap: 10px;
  animation: toastIn .22s ease;
}
.toast.show { display: flex; }
.toast.ok { background: #0a7d4c; }
.toast.err { background: #b42318; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ============ 表单输入（业务页通用） ============ */
.text-input {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 14.5px; font-family: inherit; color: var(--ink);
  background: #fff; transition: border-color .14s, box-shadow .14s; resize: vertical;
}
.text-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.text-input::placeholder { color: var(--ink-3); }
.form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.form-row .grow { flex: 1; min-width: 200px; }
.form-label { font-size: 13px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }

/* ============ 文案线 ============ */
.script-ai { display: flex; gap: 10px; margin-bottom: 12px; }
.script-ai .text-input { flex: 1; }
.script-manual { display: flex; gap: 10px; align-items: flex-start; }
.script-manual .text-input { flex: 1; }
.script-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 16px;
  margin-bottom: 12px; background: #fbfcfe; transition: all .14s;
}
.script-item:hover { border-color: var(--line-2); background: #fff; }
.script-item.overdue { border-color: var(--red); background: #fffafa; }
.script-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.script-item-title { font-weight: 800; font-size: 15px; }
.script-item-body { color: var(--ink-2); font-size: 14px; line-height: 1.65; margin-bottom: 10px; word-break: break-all; }
.script-item-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.script-item-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.hit-word { color: var(--red); font-weight: 700; background: var(--red-soft); padding: 1px 5px; border-radius: 4px; }

/* 文案状态色 */
.st-draft { background: #f1f5f9; color: var(--ink-3); }
.st-pending { background: var(--amber-soft); color: var(--amber); }
.st-approved { background: var(--green-soft); color: var(--green); }
.st-rejected { background: var(--red-soft); color: var(--red); }
.st-used { background: var(--brand-soft); color: var(--brand); }
.st-in_use { background: var(--accent-soft); color: var(--accent); }

/* ============ 数据看板 ============ */
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }
.stat-line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.stat-line:last-child { border-bottom: none; }
.stat-line .k { color: var(--ink-2); }
.stat-line .v { font-weight: 800; font-variant-numeric: tabular-nums; }
.health-bar { height: 8px; border-radius: 4px; background: #eef1f5; overflow: hidden; margin-top: 6px; }
.health-bar i { display: block; height: 100%; border-radius: 4px; background: var(--grad-brand); }
.health-bar i.warn { background: linear-gradient(90deg, #f59e0b, #f97316); }
.health-bar i.bad { background: var(--red); }

/* 看板数字大块 */
.big-stat { text-align: center; padding: 18px; }
.big-stat .v { font-size: 34px; font-weight: 900; line-height: 1; text-shadow: 0 2px 1px rgba(255,255,255,.7); }
.big-stat .k { color: var(--ink-2); font-size: 14px; margin-top: 8px; font-weight: 600; }

@media (max-width: 980px) {
  .topnav { gap: 10px; padding: 0 14px; }
  .topnav-brand { gap: 9px; }
  .topnav-brand .side-name { font-size: 17px; letter-spacing: 0; }
  .topnav-brand .side-sub { display: none; }
  .top-tab { padding: 8px 11px; font-size: 14px; }
  .top-tab .side-badge { display: none; }
  .acct-panel { width: 236px; }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .topnav-brand .side-name { display: none; }
  .clock { font-size: 13px; }
}

/* ============ 账号工作台 ============ */
.pipeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 1000px) { .pipeline-grid { grid-template-columns: repeat(2, 1fr); } }
.pipeline-step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; cursor: pointer; box-shadow: var(--shadow), var(--highlight);
  transition: all .15s; position: relative; overflow: hidden;
}
.pipeline-step:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-lg), var(--highlight); }
.pipeline-step::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--grad-brand); opacity: 0; transition: opacity .14s;
}
.pipeline-step:hover::before { opacity: 1; }
.pipeline-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pipeline-step-ico {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.pipeline-step-ico svg { width: 21px; height: 21px; }
.pipeline-step-title { font-weight: 800; font-size: 16px; }
.pipeline-step-n { font-size: 30px; font-weight: 900; line-height: 1; text-shadow: 0 2px 1px rgba(255,255,255,.7); }
.pipeline-step-k { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.pipeline-step-go { margin-top: 12px; font-size: 13px; color: var(--brand); font-weight: 700; }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
@media (max-width: 800px) { .profile-grid { grid-template-columns: 1fr; } }
.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-group .chip { padding: 7px 15px; font-size: 13.5px; }

/* ============ 账号矩阵：左列表 + 右详情（豆包式） ============ */
/* 账号矩阵页独占整个内容区：取消 content 内边距与滚动 */
.content.no-scroll { overflow: hidden; padding: 0; }
.page-accounts { height: 100%; }
.page-accounts.active { display: flex; flex-direction: column; }
.acct-layout { flex: 1; display: flex; min-height: 0; }

/* 左侧账号列表 */
.acct-side {
  width: 300px; flex-shrink: 0; display: flex; flex-direction: column; min-height: 0;
  background: #fbfcff; border-right: 1px solid var(--line);
}
.acct-side-search { padding: 14px 14px 10px; flex-shrink: 0; }
.acct-side-search .text-input { border-radius: 10px; padding: 9px 13px; }
.acct-side-list { flex: 1; overflow-y: auto; padding: 0 8px 8px; }
.acct-side-list::-webkit-scrollbar { width: 6px; }
.acct-side-list::-webkit-scrollbar-thumb { background: #dce3f0; border-radius: 4px; }
.acct-side-foot { padding: 10px 14px 14px; border-top: 1px solid var(--line); flex-shrink: 0; }

/* 平台分组 */
.acct-group { margin-bottom: 6px; }
.acct-group-title {
  display: flex; align-items: center; gap: 7px; padding: 12px 10px 6px;
  font-size: 12.5px; font-weight: 800; color: var(--ink-3); letter-spacing: .6px;
  user-select: none;
}
.acct-group-title .gdot { width: 8px; height: 8px; border-radius: 3px; }
.acct-group-title .cnt { font-weight: 600; color: var(--ink-3); opacity: .75; margin-left: auto; }
.gdot.wechat { background: #07c160; }
.gdot.douyin { background: #161823; }
.gdot.xiaohongshu { background: #ff2442; }
.gdot.other { background: #cbd5e1; }

/* 账号项 */
.acct-side-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 11px;
  cursor: pointer; transition: all .14s; position: relative;
}
.acct-side-item:hover { background: var(--brand-soft); }
.acct-side-item.active {
  background: linear-gradient(135deg, var(--brand-soft), rgba(124,92,255,.10));
  box-shadow: inset 0 0 0 1.5px var(--brand);
}
.acct-side-item .acct-ava { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; flex-shrink: 0; }
.acct-side-item-main { flex: 1; min-width: 0; }
.acct-side-item-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.acct-side-item-name .dot { width: 8px; height: 8px; flex-shrink: 0; }
.acct-side-item-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-side-item-num { font-weight: 800; font-size: 14px; color: var(--brand); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.acct-group-empty { padding: 8px 12px 4px; font-size: 12.5px; color: var(--ink-3); opacity: .7; }

/* 右侧详情 */
.acct-detail { flex: 1; min-width: 0; overflow-y: auto; padding: 24px 28px 48px; }
.acct-detail::-webkit-scrollbar { width: 8px; }
.acct-detail::-webkit-scrollbar-thumb { background: #d5dce6; border-radius: 4px; }

/* 右侧子板块 tab */
.acct-subtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 16px 0 0; flex-wrap: wrap; }
.acct-subtab {
  padding: 11px 19px; cursor: pointer; color: var(--ink-2); font-size: 15px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; user-select: none; font-weight: 600;
  display: flex; align-items: center; gap: 7px;
}
.acct-subtab svg { width: 16px; height: 16px; }
.acct-subtab:hover { color: var(--ink); }
.acct-subtab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 800; }
.acct-subtab .cnt { font-size: 12px; background: var(--brand-soft); color: var(--brand); border-radius: 9px; padding: 1px 7px; font-weight: 700; }
.acct-subpanel { margin-top: 18px; }

@media (max-width: 900px) {
  .acct-side { width: 240px; }
  .acct-detail { padding: 18px; }
}

/* ============================================================
   竖版手机卡片（文案池 / 成片池 / 发布库存 共用）
   一条内容 = 一个 9:16 手机屏框，正文竖排，符合手机刷屏阅读习惯
   ============================================================ */
.phone-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 18px; align-items: start;
}
.phone-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 14px 12px; box-shadow: var(--shadow), var(--highlight);
  transition: border-color .14s, box-shadow .14s, transform .14s;
  display: flex; flex-direction: column; position: relative;
}
.phone-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.phone-card.selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
/* 手机屏幕外框 */
.phone-screen {
  position: relative; background: #0b0f1a; border-radius: 20px;
  padding: 8px; box-shadow: 0 8px 22px rgba(20,32,58,.22), inset 0 0 0 1px rgba(255,255,255,.08);
  aspect-ratio: 9 / 16; overflow: hidden;
}
.phone-screen-inner {
  width: 100%; height: 100%; background: #f7f9fc; border-radius: 13px;
  display: flex; flex-direction: column; overflow: hidden;
}
.phone-statusbar {
  flex-shrink: 0; padding: 10px 12px 6px; display: flex; align-items: center; gap: 6px;
  background: linear-gradient(180deg, #eef2ff, #f7f9fc); border-bottom: 1px solid #eef1f6;
}
.phone-statusbar .pdot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.phone-statusbar .pname { font-size: 11px; font-weight: 700; color: var(--ink-2); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-statusbar .ptag { font-size: 10px; font-weight: 800; color: #fff; padding: 2px 8px; border-radius: 8px; flex-shrink: 0; }
.phone-body {
  flex: 1; overflow-y: auto; padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 10px;
}
.phone-body::-webkit-scrollbar { width: 4px; }
.phone-body::-webkit-scrollbar-thumb { background: #d5dce6; border-radius: 2px; }
.phone-title {
  font-size: 16px; font-weight: 900; line-height: 1.4; color: #14203a; word-break: break-all;
}
.phone-text {
  font-size: 13.5px; line-height: 1.75; color: #3a4763; white-space: pre-wrap; word-break: break-all;
}
.phone-text .hit-word { color: var(--red); font-weight: 700; background: var(--red-soft); padding: 1px 5px; border-radius: 4px; }
/* 手机屏底部留白：模拟口播进度 */
.phone-progress {
  flex-shrink: 0; padding: 8px 14px 14px; display: flex; align-items: center; gap: 8px;
  background: #f7f9fc; border-top: 1px solid #eef1f6;
}
.phone-progress .bar { flex: 1; height: 4px; border-radius: 2px; background: #e6ebf3; overflow: hidden; }
.phone-progress .bar i { display: block; height: 100%; background: var(--grad-brand); border-radius: 2px; }
.phone-progress .sec { font-size: 11px; color: var(--ink-3); flex-shrink: 0; font-variant-numeric: tabular-nums; }
/* 手机屏下方：元信息 + 操作 */
.phone-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.phone-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.phone-actions .btn { flex: 1 1 auto; }

/* ============================================================
   文案三列工作台（左待处理 → 中手机框点字直改 → 右库存）
   ============================================================ */
.script-3col { display: grid; grid-template-columns: 1fr 1.28fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1180px) {
  .script-3col { grid-template-columns: 1fr 1.3fr; }
  .script-3col .script-col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) { .script-3col { grid-template-columns: 1fr; } }
.script-col {
  background: #fbfcfe; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; min-height: 420px; display: flex; flex-direction: column;
}
.script-col-edit { background: #fff; border-color: var(--line-2); }
.script-col-head {
  display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800;
  color: var(--ink-2); margin-bottom: 11px; flex-shrink: 0;
}
.script-col-head svg { width: 15px; height: 15px; color: var(--brand); }
.col-count {
  margin-left: auto; font-size: 12px; font-weight: 800; color: var(--brand);
  background: var(--brand-soft); padding: 1px 9px; border-radius: 9px; min-width: 20px; text-align: center;
}
.col-count.ok { color: var(--green); background: var(--green-soft); }
.col-count.subtle { color: var(--ink-3); background: #eef1f6; font-weight: 600; }
.script-col-list { flex: 1; overflow-y: auto; max-height: 560px; }
.script-col-list::-webkit-scrollbar { width: 6px; }
.script-col-list::-webkit-scrollbar-thumb { background: #d5dce6; border-radius: 3px; }
.col-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 11px;
  margin-bottom: 8px; cursor: pointer; background: #fff; transition: all .13s;
}
.col-item:hover { border-color: var(--brand-soft); }
.col-item.selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.col-item-title { display: flex; align-items: center; gap: 7px; }
.col-item-name { font-weight: 800; font-size: 13.5px; color: var(--ink); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-item-body { font-size: 12px; line-height: 1.55; color: var(--ink-3); margin-top: 6px; word-break: break-all; }
/* 中列手机框：点字直改 */
.editor-screen { max-width: 300px; margin: 0 auto 6px; }
[contenteditable="true"] { outline: none; cursor: text; border-radius: 4px; }
[contenteditable="true"]:hover { box-shadow: 0 0 0 1px var(--brand-soft) inset; }
[contenteditable="true"]:focus { box-shadow: 0 0 0 2px var(--brand) inset; background: rgba(255,255,255,.65); }
[contenteditable="true"]:empty::before { content: attr(data-ph); color: #b4bccb; }

/* ============================================================
   出片两列选择器（左列选文案 → 右列选数字人/音色/音乐）
   ============================================================ */
.pick-2col { display: grid; grid-template-columns: 1.05fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1020px) { .pick-2col { grid-template-columns: 1fr; } }
.pick-col {
  background: #fbfcfe; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; max-height: 560px; overflow-y: auto;
}
.pick-col::-webkit-scrollbar { width: 6px; }
.pick-col::-webkit-scrollbar-thumb { background: #d5dce6; border-radius: 3px; }
.pick-col-title { font-size: 13px; font-weight: 800; color: var(--ink-2); margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.pick-col-title svg { width: 15px; height: 15px; color: var(--brand); }
/* 文案选择项（可展开看全文全貌） */
.pick-script {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px;
  margin-bottom: 9px; cursor: pointer; background: #fff; transition: all .13s;
}
.pick-script:hover { border-color: var(--brand-soft); }
.pick-script.selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.pick-script-title { font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.pick-script-title .ck { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; }
.pick-script.selected .pick-script-title .ck { background: var(--brand); border-color: var(--brand); }
.pick-script-body { font-size: 13px; line-height: 1.6; color: var(--ink-2); margin-top: 7px; white-space: pre-wrap; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pick-script.expanded .pick-script-body { -webkit-line-clamp: unset; display: block; }
.pick-script-toggle { font-size: 12px; color: var(--brand); font-weight: 700; margin-top: 5px; cursor: pointer; }
/* 素材选择（形象/音色/音乐 卡片单选） */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 9px; }
.asset-cell {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 11px;
  cursor: pointer; background: #fff; transition: all .13s; text-align: center;
}
.asset-cell:hover { border-color: var(--brand-soft); }
.asset-cell.selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.asset-cell .a-ico { width: 34px; height: 34px; margin: 0 auto 7px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.asset-cell .a-ico svg { width: 18px; height: 18px; }
.asset-cell.voice .a-ico { background: var(--accent-soft); color: var(--accent); }
.asset-cell.music .a-ico { background: var(--amber-soft); color: var(--amber); }
.asset-cell .a-img { width: 42px; height: 42px; margin: 0 auto 7px; border-radius: 12px; object-fit: cover; display: block; background: #eef2ff; }
.asset-cell-name { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.35; word-break: break-all; }
.asset-cell-sub { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.asset-upload-row { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.asset-upload-row .btn { flex-shrink: 0; }
/* 素材子 tab：克隆表单 / 来源徽标 / 分区标题 */
.asset-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.asset-hint { font-size: 12px; color: var(--amber); }
.asset-sec-title { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); margin: 16px 0 8px; }
.asset-sec-title:first-child { margin-top: 0; }
.asset-sec-cnt { font-size: 11.5px; font-weight: 400; color: var(--ink-3); }
.asset-empty { font-size: 12px; color: var(--ink-3); padding: 10px 2px; }
.asset-cell.disabled { opacity: .48; cursor: not-allowed; }
.asset-cell.disabled:hover { border-color: var(--line); }
.asset-cell.default { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.asset-badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin-top: 5px; }
.ab { font-size: 10.5px; padding: 1px 6px; border-radius: 999px; line-height: 1.6; white-space: nowrap; }
.ab-src { background: #f1f3f9; color: var(--ink-3); }
.ab-bound { background: var(--brand-soft); color: var(--brand); }
.ab-def { background: var(--amber-soft); color: var(--amber); }
.ab-training { background: #fff4e0; color: var(--amber); }
.ab-failed { background: #fdeaea; color: #c0392b; }
.asset-sid { font-size: 10.5px; color: var(--ink-3); margin-top: 4px; word-break: break-all; font-family: ui-monospace, Consolas, monospace; }
.asset-sid.warn { color: var(--amber); }
.asset-acts { display: flex; gap: 5px; justify-content: center; margin-top: 7px; flex-wrap: wrap; }
.asset-acts .btn { font-size: 11.5px; padding: 3px 9px; }
.asset-wait { font-size: 11.5px; color: var(--amber); }
.asset-fail { font-size: 11.5px; color: #c0392b; cursor: help; }
.clone-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px 14px; align-items: end; }
.clone-grid > div { min-width: 0; }
.clone-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.clone-chk { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 5px; cursor: pointer; }
@media (max-width: 760px) { .clone-grid { grid-template-columns: 1fr; } }
.pick-field { margin-bottom: 14px; }
.pick-field .form-label { display: flex; align-items: center; gap: 6px; }
.pick-field .form-label svg { width: 14px; height: 14px; color: var(--brand); }

/* ============================================================
   发布板块：库存视频 + 审核 + 模拟视频号/抖音发布表单
   ============================================================ */
.section-band { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.section-band .band-ico { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.section-band .band-ico svg { width: 16px; height: 16px; }
.section-band .band-title { font-weight: 800; font-size: 15px; }
.section-band .band-sub { font-size: 12.5px; color: var(--ink-3); }
.section-band .band-count { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 9px; border-radius: 9px; }
/* 视频卡片（成片池/发布库存） */
.video-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  padding: 16px; margin-bottom: 13px; box-shadow: var(--shadow), var(--highlight);
  display: flex; gap: 16px; transition: all .14s;
}
.video-card:hover { border-color: var(--line-2); }
.video-card.selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.video-thumb {
  width: 132px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden;
  background: #0b0f1a; aspect-ratio: 9 / 16; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85); position: relative;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-thumb .thumb-holder { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.7); }
.video-thumb .thumb-holder svg { width: 30px; height: 30px; opacity: .8; }
.video-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.video-title { font-weight: 800; font-size: 15.5px; line-height: 1.4; word-break: break-all; }
.video-desc { color: var(--ink-2); font-size: 13.5px; line-height: 1.6; margin-top: 6px; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.video-desc.expanded { -webkit-line-clamp: unset; display: block; }
.video-assets { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.video-assets .chip-tag { font-size: 11.5px; padding: 2px 9px; border-radius: 8px; background: #eef2f8; color: var(--ink-2); font-weight: 600; }
.video-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: auto; padding-top: 11px; }
/* 模拟发布表单 */
.publish-sim {
  background: linear-gradient(180deg, #fbfcfe, #f4f6fb); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin-top: 4px;
}
.publish-sim-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.publish-sim-head .sim-logo { width: 38px; height: 38px; border-radius: 10px; background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; }
.publish-sim-head .sim-title { font-weight: 900; font-size: 17px; }
.publish-sim-head .sim-sub { font-size: 12.5px; color: var(--ink-3); }
.publish-sim-head .sim-platform { margin-left: auto; display: flex; gap: 6px; }
.publish-sim-head .sim-platform .chip-tag { font-size: 12px; padding: 3px 11px; border-radius: 10px; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 700; }
.publish-sim-head .sim-platform .chip-tag.on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.publish-sim .sim-grid { display: grid; grid-template-columns: 200px 1fr; gap: 18px; }
@media (max-width: 760px) { .publish-sim .sim-grid { grid-template-columns: 1fr; } }
.sim-preview { width: 100%; aspect-ratio: 9/16; border-radius: var(--radius-sm); overflow: hidden; background: #0b0f1a; display: flex; align-items: center; justify-content: center; }
.sim-preview img, .sim-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sim-preview .thumb-holder { color: rgba(255,255,255,.7); font-size: 12.5px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sim-preview .thumb-holder svg { width: 34px; height: 34px; opacity: .8; }
.sim-form .form-label { margin-bottom: 5px; }
.sim-form .text-input { margin-bottom: 14px; }
.sim-form textarea.text-input { min-height: 72px; }
.sim-chars { text-align: right; font-size: 12px; color: var(--ink-3); margin-top: -9px; margin-bottom: 12px; }


/* ============================================================
   数字人库（顶级资产总账）
   ============================================================ */
.lib-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.lib-stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(20, 32, 58, .04));
}
.lib-stat-num {
  font-family: var(--font-num, inherit);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.5px;
}
.lib-stat-num span { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-left: 3px; }
.lib-stat-label { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; font-weight: 600; }
.lib-stat.warn { background: var(--red-soft); border-color: #fbd5d5; }
.lib-stat.warn .lib-stat-num { color: var(--red); }
.lib-stat.idle { background: var(--amber-soft); border-color: #fbe3b8; }
.lib-stat.idle .lib-stat-num { color: var(--amber); }

.lib-toolbar { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; align-items: center; }
.lib-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lib-chip {
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
}
.lib-chip:hover { border-color: var(--brand); color: var(--brand); }
.lib-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.lib-sec { margin-bottom: 22px; }
.lib-sec-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.lib-sec-head h3 { font-size: 15.5px; font-weight: 800; color: var(--ink); margin: 0; }
.lib-sec-head span { font-size: 12.5px; color: var(--ink-3); }

.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(372px, 1fr)); gap: 12px; }
.lib-card {
  display: flex;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  transition: box-shadow .15s, border-color .15s;
}
.lib-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm, 0 2px 8px rgba(20, 32, 58, .06)); }
.lib-cover { position: relative; width: 76px; flex-shrink: 0; }
.lib-cover img { width: 76px; height: 100px; object-fit: cover; border-radius: 9px; background: #eef2f9; display: block; }
.lib-ph {
  width: 76px; height: 100px; border-radius: 9px;
  background: linear-gradient(135deg, #eef3ff, #f6f1ff);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
}
.lib-ph svg { width: 26px; height: 26px; }
.lib-tags { display: flex; flex-direction: column; gap: 3px; margin-top: 5px; align-items: flex-start; }
.lib-tags .ab { font-size: 10px; }
.ab-green { background: var(--green-soft); color: var(--green); }
.ab-rotate { background: var(--red); color: #fff; }
.ab-near { background: var(--amber); color: #fff; }
.ab-training { background: var(--brand-soft); color: var(--brand); }
.ab-failed { background: var(--red-soft); color: var(--red); }

.lib-main { flex: 1; min-width: 0; }
.lib-name { font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 3px; }
.lib-meta { font-size: 11.5px; color: var(--ink-3); margin-bottom: 8px; }
.lib-meta .warn { color: var(--red); font-weight: 600; }
.lib-bar-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.lib-bar { flex: 1; height: 6px; border-radius: 999px; background: #eef2f9; overflow: hidden; }
.lib-bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.lib-bar.near i { background: var(--amber); }
.lib-bar.over i { background: var(--red); }
.lib-bar-txt { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.lib-accts { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.lib-acct {
  font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-600);
}
.lib-acct.def { background: var(--brand); color: #fff; }
.lib-acct.none { background: #f1f4f8; color: var(--ink-3); font-weight: 500; }
.lib-acts { display: flex; flex-wrap: wrap; gap: 5px; }
.lib-acts .btn { padding: 3px 8px; font-size: 11.5px; white-space: nowrap; }
.btn-danger-ghost { background: var(--red-soft); color: var(--red); border: 1px solid #fbd5d5; }

.lib-extra {
  margin-top: 9px; padding: 9px 10px;
  background: #f8fafd; border: 1px dashed var(--line-2); border-radius: 9px;
  font-size: 12px; color: var(--ink-2);
  display: flex; flex-direction: column; gap: 7px;
}
.lib-extra audio { width: 100%; height: 32px; }
.lib-assign { flex-direction: row; align-items: center; gap: 7px; }
.lib-assign .text-input { flex: 1; min-width: 90px; }
.lib-assign input[type="number"] { max-width: 96px; }
.lib-try-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lib-try-note { font-size: 11.5px; color: var(--ink-3); }
.lib-try-img { width: 108px; height: 144px; object-fit: cover; border-radius: 8px; }
.asset-none-hint { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); padding: 8px 2px; }
.pick-col-tip { font-size: 11.5px; font-weight: 500; color: var(--ink-3); margin-left: 8px; }
.pick-col-tip .warn { color: var(--red); font-weight: 700; }

/* ============================================================
   登录态 · 顶栏用户区（2026-11-15 加，上公网必须有闸）
   ============================================================ */
.me { position: relative; }
.me-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 10px 4px 4px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid var(--line-2);
  transition: border-color .15s, box-shadow .15s;
}
.me-btn:hover { border-color: var(--brand); box-shadow: 0 2px 10px rgba(59,130,246,.16); }
.me-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--grad-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.me-name { font-size: 13px; font-weight: 600; color: var(--ink); max-width: 84px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-caret { font-size: 10px; color: var(--ink-3); }
.me-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 186px; padding: 6px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 14px 38px rgba(20,32,58,.16);
  display: none;
}
.me-menu.show { display: block; }
.me-menu-hd {
  padding: 8px 10px 9px; font-size: 12px; color: var(--ink-3); line-height: 1.6;
  border-bottom: 1px solid var(--line); margin-bottom: 5px;
}
.me-menu-hd b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 700; }
.me-menu-item {
  display: block; width: 100%; text-align: left; padding: 9px 10px;
  border: 0; background: none; border-radius: 8px; cursor: pointer;
  font-size: 13.5px; color: var(--ink); font-family: inherit;
}
.me-menu-item:hover { background: var(--brand-soft); color: var(--brand-600); }
.me-menu-item.danger:hover { background: var(--red-soft); color: var(--red); }
.me-menu-sep { height: 1px; background: var(--line); margin: 5px 4px; }

/* 用户管理表 */
.usr-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 4px; border-bottom: 1px solid var(--line);
}
.usr-row:last-child { border-bottom: 0; }
.usr-main { flex: 1; min-width: 170px; }
.usr-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.usr-name .usr-login { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 7px; }
.usr-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.usr-tag {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-600); white-space: nowrap;
}
.usr-tag.admin { background: #f1edff; color: #6d4ede; }
.usr-tag.viewer { background: #f1f4f8; color: var(--ink-3); }
.usr-tag.off { background: var(--red-soft); color: var(--red); }
.usr-acts { display: flex; gap: 5px; flex-wrap: wrap; }
.usr-acts .btn { padding: 3px 9px; font-size: 11.5px; white-space: nowrap; }

/* 弹层里的表单 */
.modal-form { display: flex; flex-direction: column; gap: 13px; }
.modal-form label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; display: block; }
.modal-form .text-input { width: 100%; }
.modal-note { font-size: 12px; color: var(--ink-3); line-height: 1.7; }

@media (max-width: 860px) {
  .me-name { display: none; }
  .usr-acts { width: 100%; }
}

/* 顶栏塞了 10 个 tab + 用户区后的密度调整（2026-11-15） */
.topnav-tabs { gap: 2px; }
.top-tab { padding: 8px 11px; font-size: 14.5px; gap: 6px; }
.top-tab svg { width: 16px; height: 16px; }
.topnav-right { gap: 10px; }
@media (max-width: 1500px) {
  .top-tab { padding: 8px 9px; font-size: 14px; }
  .top-tab svg { width: 15px; height: 15px; }
  .topnav-brand .side-sub { display: none; }
}

/* 克隆表单里的"输入框 + 上传按钮"同行（2026-11-15 上云后加） */
.inline-up { display: flex; gap: 6px; align-items: center; }
.inline-up .text-input { flex: 1; min-width: 0; }
.inline-up .btn { white-space: nowrap; flex: none; }
