:root {
  /* ===== 全套换肤：workstation-BOSS 白色科技感（白底卡片+动效） ===== */
  --bg: #f5f5f4;
  --card: #ffffff;
  --card-solid: #ffffff;
  --glass: rgba(255, 255, 255, 0.92);
  --glass-strong: #ffffff;
  --line: rgba(23, 23, 23, 0.08);
  --line-strong: rgba(23, 23, 23, 0.14);
  /* 文字对比度 */
  --text: #171717;
  --muted: #5c5c5a;
  --muted-soft: #6b6b68;
  --brand: #2f7ff0;          /* BOSS 蓝 */
  --brand-soft: #e8f1fe;
  --green: #1d9a57;         /* 微信绿 · 仅用于涨跌/通过 */
  --green-soft: #e6f5ec;
  --red: #e5483b;
  --red-soft: #fdecea;
  --amber: #e89a0c;
  --amber-soft: #fdf3df;
  --radius: 16px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  --sh-card: 0 12px 40px rgba(0, 0, 0, .075), 0 2px 6px rgba(0, 0, 0, .04);
  --sh-pop: 0 18px 60px rgba(0, 0, 0, .12), 0 3px 10px rgba(0, 0, 0, .05);
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* 所有可点的地方都显示手指光标 */
a, button:not(:disabled), [onclick], .row[onclick], .stat.clk, label, .seg button, .kindbtn { cursor: pointer; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: transparent; color: var(--text); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* 玻璃拟态底：BOSS 白色科技风，柔和浅灰底 + 顶部一束柔光 */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(760px 420px at 88% -8%, rgba(47,127,240,.08), transparent 70%),
    radial-gradient(560px 420px at 12% 108%, rgba(255,255,255,.5), transparent 72%),
    linear-gradient(170deg, #f8f8f7 0%, #f5f5f4 55%, #f1f3f2 100%);
}
body::after {
  content: ''; position: fixed; z-index: -1; pointer-events: none;
  left: -80px; top: 38%; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(47,127,240,.05); filter: blur(40px);
}
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: 15px; }
.hidden { display: none !important; }

/* ---------- 动效 ---------- */
@keyframes xinxi-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes xinxi-pop { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes xinxi-fade { from { opacity: 0; } to { opacity: 1; } }
.card, .stat, .formcard, .wx-approval-card, .org-dep { animation: xinxi-enter .28s ease-out both; }
.sheet { animation: xinxi-pop .22s ease-out both; }
.lightbox { animation: xinxi-fade .16s ease-out; }
.card, .stat, .formcard, .wx-approval-card, .org-dep, .menulinks a {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover, .stat:hover, .formcard:hover, .wx-approval-card:hover, .org-dep:hover, .menulinks a:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-card);
}

/* 登录 */
.login-wrap { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 32px 24px; }
.brand { text-align: center; margin-bottom: 32px; }
.brand h1 { font-size: 22px; margin: 0 0 6px; font-weight: 600; letter-spacing: .5px; }
.brand p { color: var(--muted); margin: 0; font-size: 13px; }
.login-card { background: var(--card); border-radius: 18px; padding: 24px 20px; box-shadow: var(--sh-card); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fbfbfc; outline: none; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); background: #fff; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 13px; border: 0; border-radius: 999px; background: var(--brand);
  color: #fff; font-weight: 500; cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: scale(.98); opacity: .9; }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn.sm { width: auto; padding: 8px 14px; font-size: 13px; border-radius: 9px; }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.ok { background: var(--green-soft); color: var(--green); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.err { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 18px; }

/* 外壳 */
.shell { max-width: 640px; margin: 0 auto; min-height: 100vh; padding-bottom: 84px; }
.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px; display: flex; align-items: center; justify-content: space-between;
}
.topbar h2 { font-size: 17px; margin: 0; font-weight: 600; }
.topbar .who { font-size: 12px; color: var(--muted); }
.content { padding: 14px 16px 20px; }
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  display: flex; max-width: 640px; margin: 0 auto; padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(0,0,0,.04);
}
.bottomnav a {
  flex: 1; text-align: center; padding: 9px 0 8px; font-size: 11px; color: var(--muted);
}
.bottomnav a .ico { display: block; font-size: 19px; line-height: 1.2; margin-bottom: 2px; }
.bottomnav a .sic { width: 20px; height: 20px; margin: 0 auto 1px; }
.bottomnav a.active { color: var(--brand); font-weight: 500; }

/* 卡片 */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 15px 16px; margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.02);
}
.card h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.02);
}
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 21px; font-weight: 600; margin-top: 4px; letter-spacing: -.4px; }
.stat .v.pos { color: var(--green); }
.stat .v.neg { color: var(--red); }
.stat .s { font-size: 11px; color: var(--muted); margin-top: 3px; }
.row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .l { min-width: 0; }
.row .l .t { font-weight: 500; font-size: 14px; }
.row .l .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.row .r { text-align: right; white-space: nowrap; margin-left: 10px; }
.amt-in { color: var(--green); font-weight: 600; }
.amt-out { color: var(--red); font-weight: 600; }
.tag { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 6px; background: #f0f2f5; color: var(--muted); }
.tag.brand { background: var(--brand-soft); color: var(--brand); }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.amber { background: var(--amber-soft); color: var(--amber); }
.empty { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 0; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 4px; }
.filters select, .filters input {
  padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 13px;
}
.searchbar { display: flex; gap: 8px; margin-bottom: 10px; }
.searchbar input { flex: 1; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* 底部操作条 */
.fab {
  position: fixed; right: 16px; bottom: 92px; z-index: 25;
  background: var(--brand); color: #fff; border: 0; border-radius: 26px;
  padding: 13px 18px; font-weight: 500; box-shadow: 0 6px 18px rgba(31,111,229,.3); cursor: pointer;
}
.sheet-mask { position: fixed; inset: 0; background: rgba(15,20,30,.4); z-index: 40; display: flex; align-items: flex-end; }
.sheet {
  background: #fff; width: 100%; max-width: 640px; margin: 0 auto;
  border-radius: 18px 18px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  max-height: 88vh; overflow-y: auto;
}
.sheet h3 { margin: 0 0 14px; font-size: 17px; }
.kindgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kindbtn {
  border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 16px 12px;
  text-align: left; cursor: pointer;
}
.kindbtn .ico { font-size: 20px; }
.kindbtn .t { font-weight: 500; margin-top: 6px; font-size: 14px; }
.kindbtn .s { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: right; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl th { color: var(--muted); font-weight: 500; font-size: 12px; }
.tbl tr.total td { font-weight: 600; background: #fafbfc; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 表单页 */
.formcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.02); }
.seg { display: flex; background: #f3f3f2; border-radius: 12px; padding: 3px; margin-bottom: 14px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--text); font-weight: 500; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.attach { display: flex; gap: 10px; align-items: center; }
.attach input[type=file] { font-size: 13px; }
.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.subline { font-size: 12px; color: var(--muted); }
.big-amt { font-size: 30px; font-weight: 600; letter-spacing: -1px; }
.big-amt.in { color: var(--green); }
.big-amt.out { color: var(--red); }
.notice { background: var(--amber-soft); color: var(--amber); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; margin-bottom: 12px; }
.notice.info { background: var(--brand-soft); color: var(--brand); }
.notice.ok { background: var(--green-soft, #e6f7ee); color: var(--green); }
.notice.red { background: var(--red-soft); color: var(--red); }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* ===== 工作台看板 ===== */
.stat.clk { transition: box-shadow .15s, transform .15s; }
.stat.clk:hover { box-shadow: 0 4px 14px rgba(31,111,229,.14); transform: translateY(-1px); }
.stat.clk:hover .k { color: var(--brand); }
.legend { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; }
.bar { height: 6px; background: #eef0f4; border-radius: 3px; margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #4d92f2); border-radius: 3px; }
.row.rk { padding: 10px 0; }
.row.rk:hover .t { color: var(--brand); }

/* ===== 菜单（PC 侧栏 / 手机底部栏共用数据） ===== */
.sidebar { display: none; }
.grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bdg { display: inline-block; background: var(--red); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; line-height: 1.5; }
.bdg.amber { background: var(--amber); }
.menulinks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menulinks a { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: flex; justify-content: space-between; align-items: center; color: var(--text); font-size: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.02); }
.menulinks a b { font-weight: 500; }

/* ===== PC 宽屏自适应（≥1024px 出左侧菜单） ===== */
@media (min-width: 1024px) {
  .shell { display: flex; max-width: none; padding-bottom: 0; align-items: stretch; }
  .sidebar {
    display: block; width: 216px; flex-shrink: 0; background: #fbfbfa;
    border-right: 1px solid var(--line); min-height: 100vh; position: sticky; top: 0;
    align-self: flex-start; max-height: 100vh; overflow-y: auto; padding: 14px 0 26px;
  }
  .sbrand { font-size: 15px; font-weight: 600; padding: 8px 18px 6px; letter-spacing: .3px; }
  .sbrand small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; }
  .snav .lb { font-size: 11px; color: var(--muted-soft); padding: 16px 18px 5px; }
  .snav a { display: flex; justify-content: space-between; align-items: center; margin: 1px 10px; padding: 9px 12px; color: var(--text); font-size: 14px; border-radius: 10px; transition: background .13s; }
  .snav a:hover { background: #f1f1ef; }
  .snav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
  .shell .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .bottomnav { display: none; }
  .content { max-width: 1060px; margin: 0 auto; width: 100%; padding: 22px 30px 52px; }
  .topbar { padding: 15px 30px; }
  .topbar h2 { font-size: 18px; }
  .grid4 { grid-template-columns: repeat(4, 1fr); }
  .fab { bottom: 30px; right: 34px; border-radius: 999px; }
  .card { padding: 17px 20px; }
  .stat .v { font-size: 25px; }
  .login-wrap { align-items: center; }
  .login-card { width: 380px; box-shadow: var(--sh-card); }
  .sheet { max-width: 560px; margin: 0 auto; border-radius: 18px; margin-top: 8vh; align-self: center; }
  .sheet-mask { align-items: flex-start; }
}

/* ===== P3 第四批：金额隐私 / 图片放大 / 员工业绩 ===== */
/* 金额遮罩：隐藏时显示圆点 */
.mval { letter-spacing: 1px; }
/* 小眼睛按钮 */
.eye {
  border: none; background: transparent; cursor: pointer; font-size: 15px;
  padding: 2px 4px; line-height: 1; vertical-align: middle; opacity: .75;
}
.eye:hover { opacity: 1; }
.eye.inline { margin-left: 4px; font-size: 13px; }
/* 图片点击放大 */
img.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 14, 22, .82);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  cursor: zoom-out; animation: lbIn .15s ease-out;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox .lbx { max-width: 94vw; max-height: 92vh; display: flex; flex-direction: column; align-items: center; }
.lightbox .lbx img {
  max-width: 94vw; max-height: 84vh; object-fit: contain;
  border-radius: 10px; background: #fff; box-shadow: 0 12px 48px rgba(0, 0, 0, .45);
}
.lightbox .lbar { margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .85); display: flex; gap: 16px; align-items: center; }
.lightbox .lbar a { color: #7ecbff; text-decoration: none; font-weight: 500; }
/* 员工业绩每日矩阵：有数字的日子高亮 */
.tbl.daily td { text-align: center; padding: 5px 6px; font-size: 12px; color: var(--muted); }
.tbl.daily td.hit { color: var(--brand); font-weight: 600; background: var(--brand-soft); border-radius: 4px; }
.tbl.daily th { font-size: 11px; padding: 5px 4px; }

/* ================= 玻璃拟态（P3 四批改版） ================= */
.glass {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 3px rgba(0,0,0,.02);
}
.glass-solid {
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 3px rgba(0,0,0,.02);
}
/* 排行榜 */
.rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0,0,0,.02);
  transition: transform .15s, box-shadow .15s;
}
.rank-item:hover { transform: translateY(-1px); box-shadow: var(--sh-card); }
.rank-item.top { background: #ffffff; border-color: rgba(232,154,12,.45); }
.rank-no {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  font-size: 12px; font-weight: 600; color: #fff; flex: 0 0 auto;
  background: rgba(16,24,40,.16);
}
.rank-item.top .rank-no { background: linear-gradient(135deg, #FFD66B, #F0A020); }
.rank-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; color: var(--text); }
.rank-name .role { font-size: 12px; color: var(--muted-soft); margin-left: 6px; font-weight: 400; }
.rank-bar { height: 4px; border-radius: 2px; background: rgba(16,24,40,.07); margin-top: 6px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #07C160, #34d186); }
.rank-amt { text-align: right; font-size: 15px; font-weight: 600; color: var(--text); }
.rank-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.rank-tabs { display: flex; gap: 4px; background: #f3f3f2; padding: 3px; border-radius: 20px; }
.rank-tabs button {
  border: 0; background: transparent; padding: 6px 14px; border-radius: 17px;
  font-size: 13px; color: var(--muted); cursor: pointer; transition: .15s;
}
.rank-tabs button.on { background: #fff; color: var(--text); font-weight: 500; box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.rank-note {
  margin-top: 12px; padding: 11px 13px; border-radius: 12px;
  background: var(--brand-soft); font-size: 12px; color: var(--muted); line-height: 1.6;
}
/* 扣点提示 */
.fee-hint { margin-top: 8px; font-size: 13px; color: var(--muted); }
.fee-hint b { color: var(--text); font-weight: 600; }
.fee-hint .fee-net { color: var(--green); }
/* 退款榜行 */
.refund-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: .5px solid var(--line); font-size: 13px;
}
.refund-row:last-child { border-bottom: 0; }
.refund-row .amt { color: var(--red); font-weight: 500; }
.refund-row .muted2 { color: var(--muted); font-size: 12px; }
/* 统计卡（玻璃） */
.stat.glass { background: var(--glass); }
.stat.glass:hover { background: var(--glass-strong); }

/* ================= 业务类型搜索选择器 ================= */
.picker { position: relative; }
.picker-input {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px; border-radius: 10px;
  border: 0.5px solid var(--line-strong); background: rgba(255,255,255,.72);
  font-size: 14px; color: var(--text); font-family: inherit;
}
.picker-input:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 3px rgba(10,114,232,.10);
}
.picker-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60;
  max-height: 260px; overflow-y: auto;
  background: #fff; border: 0.5px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 8px 28px rgba(16,24,40,.14);
  padding: 4px;
}
.picker-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 11px; border-radius: 8px; cursor: pointer; font-size: 14px;
}
.picker-opt:hover { background: var(--brand-soft); }
.picker-opt b { font-weight: 500; color: var(--text); }
.picker-opt span { font-size: 12px; color: var(--muted); flex: 0 0 auto; }
.picker-empty { padding: 14px 12px; text-align: center; color: var(--muted); font-size: 13px; }
.picker-add { margin-top: 8px; }
.picker-add .btn { width: 100%; }

/* ===== P6 2026-11-20：类型筛选 / 改标签 / 组织架构 / 公司信息 / 审批中心 ===== */
.ck { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12.5px; color: var(--muted); cursor: pointer; user-select: none; white-space: nowrap; }
.ck.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 500; }
.rtag { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 11px 10px; text-align: left; font-size: 12.5px; cursor: pointer; color: var(--text); }
.rtag.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 500; }
.txlog { background: #f8f9fb; border-radius: 9px; padding: 8px 11px; margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.txlog .subline { margin: 0; font-weight: 600; color: var(--text); font-size: 12px; }
.org-dep { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; background: var(--card); }
.org-dep .dep-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.org-dep .dep-h .t { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.org-card { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 11px; background: #fff; }
.org-card .av { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; flex-shrink: 0; }
.org-card .nm { font-size: 13.5px; font-weight: 500; }
.org-card .role { font-size: 12px; color: var(--muted); margin-top: 2px; }
.qr-cell { border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; background: #fff; }
.qr-cell img { max-width: 180px; max-height: 180px; border-radius: 8px; }
.cpbtn { margin-left: 6px; font-size: 12px; }

.permgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.permck { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 13px; color: var(--text); cursor: pointer; user-select: none; }
.permck.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 500; }
.permck:has(input:disabled) { background: #f4f5f7; color: var(--muted); cursor: default; }

/* ===== 移动端：通讯录部门树横排、成员单列 ===== */
@media (max-width: 1023px) {
  .wx-contacts { flex-direction: column; }
  .wx-dept-tree { width: 100%; position: static; }
  .wx-dept-tree .tree-scroll { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .wx-dept-tree .tree-scroll .wx-dept { flex-shrink: 0; }
  .wx-org-grid { grid-template-columns: 1fr; }
}

/* ===== 企业微信管理后台风格 ===== */
/* 通讯录：左侧部门树 + 右侧成员 */
.wx-contacts { display: flex; gap: 14px; align-items: flex-start; }
.wx-dept-tree { width: 210px; flex-shrink: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px; position: sticky; top: 16px; }
.wx-dept-tree .tree-h { font-size: 13px; color: var(--muted); padding: 4px 10px 8px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.wx-dept-tree .tree-search { width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbfbfc; font-size: 12.5px; outline: none; margin-bottom: 8px; }
.wx-dept { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; cursor: pointer; color: var(--text); user-select: none; }
.wx-dept:hover { background: rgba(16,24,40,.05); }
.wx-dept.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.wx-dept .cnt { font-size: 12px; color: var(--muted); font-weight: 400; }
.wx-dept.on .cnt { color: var(--brand); }
.wx-members { flex: 1; min-width: 0; }
.wx-members .mem-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.wx-members .mem-h .t { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.wx-org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.wx-org-card { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--card-solid); }
.wx-org-card:hover { box-shadow: 0 2px 10px rgba(20,30,50,.08); }
.wx-org-card .av { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; flex-shrink: 0; }
.wx-org-card .av.off { background: #eef0f3; color: var(--muted); }
.wx-org-card .nm { font-size: 14px; font-weight: 500; }
.wx-org-card .nm .off-tag { font-size: 11px; color: var(--red); margin-left: 4px; }
.wx-org-card .role { font-size: 12px; color: var(--muted); margin-top: 3px; }
.wx-org-card .ops { margin-left: auto; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
/* 审批流：申请卡片 + 流转时间线 */
.wx-approval-card { border: 1px solid var(--line); border-radius: 14px; background: var(--card-solid); padding: 14px 16px; margin-bottom: 12px; }
.wx-approval-card .a-h { display: flex; align-items: center; gap: 10px; }
.wx-approval-card .av { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.wx-approval-card .who { font-size: 12.5px; color: var(--muted); }
.wx-approval-card .who b { color: var(--text); font-weight: 600; }
.wx-approval-card .a-body { margin-top: 10px; }
.wx-approval-card .a-title { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wx-approval-card .a-meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.7; }
.wx-approval-card .a-acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.wx-timeline { margin-top: 10px; padding-left: 4px; display: flex; flex-direction: column; }
.wx-timeline .tl-item { position: relative; padding: 0 0 12px 22px; font-size: 12.5px; }
.wx-timeline .tl-item:last-child { padding-bottom: 2px; }
.wx-timeline .tl-item::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: -2px; width: 2px; background: var(--line); }
.wx-timeline .tl-item:last-child::before { display: none; }
.wx-timeline .tl-item::after { content: ''; position: absolute; left: 1px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }
.wx-timeline .tl-item.done::after { background: var(--brand); }
.wx-timeline .tl-item.reject::after { border-color: var(--red); background: var(--red); }
.wx-timeline .tl-item.pending::after { border-color: var(--amber); background: #fff; }
.wx-timeline .tl-item .tl-time { color: var(--muted); font-size: 11.5px; }
.wx-timeline .tl-item .tl-act { margin-top: 1px; }
.wx-timeline .tl-item .tl-act b { font-weight: 600; }
.wx-timeline .tl-item .tl-reason { color: var(--red); }
.wx-timeline .tl-more { margin-top: 2px; font-size: 12px; }
.wx-timeline .tl-more summary { cursor: pointer; color: var(--muted); user-select: none; }
.wx-timeline .tl-more summary:hover { color: var(--brand); }
.wx-timeline .tl-more .tl-item { margin-left: 18px; }
/* 审批分类导航 */
.wx-approval-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.wx-approval-nav .nav-item { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.wx-approval-nav .nav-item.on { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 500; }
/* 业务线占比饼图图例 */
.pie-legend { display: flex; flex-direction: column; gap: 7px; }
.pie-legend-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1.3; }
.pie-legend-item .dot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.pie-legend-item .name { flex: 1; min-width: 0; word-break: break-all; }
.pie-legend-item .amt { color: var(--muted); white-space: nowrap; }
.pie-legend-item .pct { font-weight: 600; white-space: nowrap; width: 46px; text-align: right; }
/* ===== BOSS 换肤增强层（参考 workstation-BOSS 视觉：白底卡片 + 柔和阴影 + 动效） ===== */
html, body { background: var(--bg); }
body {
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(47,127,240,.06), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgba(219,68,55,.04), transparent 60%);
}
/* 卡片入场动效 */
.glass, .glass-solid, .formcard, .menulinks a, .rank-item, .login-card {
  animation: bossEnter .4s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes bossEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
/* 状态卡悬停上浮 */
.stat-card, .org-card, .dep-card, .item, .order-item {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.stat-card:hover, .org-card:hover, .dep-card:hover, .item:hover, .order-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-card);
}
/* 进度条/标签柔和化 */
.badge, .tag { border-radius: 6px; }
/* 面包屑/顶栏固定卡片化 */
.topbar { background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
/* 分段控件 pill 化 */
.seg button.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); border-radius: 9px; }
/* 输入框聚焦蓝色 */
input:focus, select:focus, textarea:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(47,127,240,.15) !important;
  outline: none;
}
/* 表格 hover 行 */
table tbody tr { transition: background .12s; }
table tbody tr:hover { background: #f7f9fc; }
/* 弹层圆角 */
.modal, .pop { border-radius: var(--r-lg) !important; }
/* PC 侧栏卡片化 */
@media (min-width: 900px) {
  .pcside, .pc-side, .sidebar {
    background: var(--card);
    border-right: 1px solid var(--line);
    box-shadow: 0 0 14px rgba(20,30,50,.04);
  }
  .pcside a, .pc-side a, .sidebar a {
    border-radius: 10px !important;
    transition: background .12s, color .12s;
  }
  .pcside a:hover, .pc-side a:hover, .sidebar a:hover { background: #f4f4f2 !important; }
}

/* 应收账龄分档卡片 */
.age-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 12px 0; }
.age-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.age-card .age-label { font-size: 12px; color: var(--muted); }
.age-card .age-amt { font-size: 19px; font-weight: 600; margin-top: 4px; letter-spacing: -.3px; }
.age-card .age-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.age-card.amber { border-color: var(--amber-soft); }
.age-card.amber .age-amt { color: var(--amber); }
.age-card.red { border-color: var(--red-soft); }
.age-card.red .age-amt { color: var(--red); }
@media (max-width: 900px) { .age-grid { grid-template-columns: repeat(2, 1fr); } }

/* 线索漏斗看板 */
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: start; }
.board-col { background: #f3f3f2; border-radius: var(--r-md); padding: 10px; min-height: 120px; }
.board-col-h { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.board-col-h span { font-size: 12px; color: var(--muted); background: #fff; border-radius: 10px; padding: 1px 9px; }
.board-cards { display: flex; flex-direction: column; gap: 8px; }
.board-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 11px; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.board-card[draggable="true"] { cursor: grab; }
.board-card:active { cursor: grabbing; }
.board-card .t { font-size: 13px; font-weight: 500; }
.board-card .s { font-size: 11px; color: var(--muted); margin-top: 3px; }
.empty.sm { padding: 14px 0; font-size: 12px; }
@media (max-width: 900px) { .board { grid-template-columns: repeat(2, 1fr); } }

/* 跟进/催收日历 */
.cal-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.cal-title { font-size: 16px; font-weight: 600; min-width: 92px; text-align: center; }
.cal-seg { margin-left: auto; }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.cal-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.dot.brand { background: var(--brand); } .dot.amber { background: var(--amber); }
.dot.green { background: var(--green); } .dot.red { background: var(--red); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell, .cal-week-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px; min-height: 96px; }
.cal-cell.empty { background: transparent; border: 0; }
.cal-cell.today, .cal-week-col.today { border-color: var(--brand); background: var(--brand-soft); }
.cal-d { font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.cal-cell.today .cal-d, .cal-week-col.today .cal-d { color: var(--brand); }
.cal-evs { display: flex; flex-direction: column; gap: 4px; }
.cal-none { display: block; min-height: 12px; }
.cal-chip { display: block; font-size: 11px; line-height: 1.3; border-radius: 6px; padding: 4px 7px; text-decoration: none; color: var(--text); background: #f3f3f2; border-left: 3px solid var(--muted-soft); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-chip.brand { background: var(--brand-soft); border-left-color: var(--brand); }
.cal-chip.amber { background: var(--amber-soft); border-left-color: var(--amber); }
.cal-chip.green { background: var(--green-soft); border-left-color: var(--green); }
.cal-chip.overdue { background: var(--red-soft); border-left-color: var(--red); color: var(--red); }
@media (max-width: 900px) { .cal-grid, .cal-week { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   视觉升级 v2 —— 桌面工作台（嫁接 workstation-BOSS 的设计语言）
   要点：固定侧栏 + 页头 + 大留白内容区；卡片去描边改柔和投影环；
         KPI 卡带环形进度；分段控件 pill 化（选中深色实底）。
   开发者署名：参考并改编自 workstation-BOSS（Developed by @赛博老爸）
   ========================================================================== */
:root {
  --ink: #171717;
  --ink2: #5c5c5a;
  --ink3: #8a8a86;
  --fill: #f4f4f2;
  --fill2: #ececea;
  --ring-line: rgba(23, 23, 23, .07);
  --sh-ring: 0 0 0 1px rgba(23, 23, 23, .06);
  --sh-lift: 0 16px 40px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .04);
  --side-w: 232px;
}

/* —— 卡片：去硬描边，改“细线环 + 柔影” —— */
.card, .formcard, .glass, .glass-solid {
  border: 0; border-radius: 18px; box-shadow: var(--sh-ring);
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover, .formcard:hover { box-shadow: var(--sh-lift); transform: translateY(-1px); }
.card h3 {
  font-size: 13px; font-weight: 600; color: var(--ink2); letter-spacing: .2px;
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--ring-line);
}

/* —— KPI 统计卡：标签 + 大数字 + 环形进度 —— */
.stat {
  position: relative; border: 0; border-radius: 18px; padding: 16px 18px;
  background: linear-gradient(160deg, #fff 0%, #fcfcfb 100%);
  box-shadow: var(--sh-ring);
  overflow: hidden;
}
.stat::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 110px; height: 110px;
  border-radius: 50%; background: radial-gradient(circle, rgba(47,127,240,.07), transparent 70%);
  pointer-events: none;
}
.stat .k { font-size: 12px; color: var(--ink3); letter-spacing: .3px; }
.stat .v {
  font-size: 27px; font-weight: 650; margin-top: 6px; letter-spacing: -.8px;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
  line-height: 1.15;
}
.stat .s { font-size: 11.5px; color: var(--ink3); margin-top: 6px; line-height: 1.45; }
.stat .ring { position: absolute; right: 14px; top: 14px; opacity: .95; }
.stat.clk:hover { box-shadow: var(--sh-lift); transform: translateY(-2px); }
.stat.clk:hover .k { color: var(--brand); }

/* —— 页头：标题 + 说明 + 用户胶囊 —— */
.topbar {
  background: rgba(245, 245, 244, .82); border-bottom: 0;
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  padding: 18px 30px 12px;
}
.topbar h2 { font-size: 20px; font-weight: 700; letter-spacing: .2px; }
.topbar .who {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 5px 12px 5px 6px;
  box-shadow: var(--sh-ring); font-size: 12.5px; color: var(--ink2);
}
.topbar .who .av {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
  background: var(--brand-soft); color: var(--brand);
}

/* —— 侧栏：品牌块 + 分组 + 选中左标识 —— */
.sbrand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 14px 16px; margin: 8px 6px 4px;
}
.sbrand .mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, #2f7ff0, #5ee0ff);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(47,127,240,.28);
}
.sbrand .txt { min-width: 0; }
.sbrand .txt b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.sbrand .txt small { display: block; font-size: 11px; color: var(--ink3); margin-top: 2px; }
.snav a {
  position: relative; margin: 2px 8px; padding: 9px 12px; border-radius: 10px;
  font-size: 13.5px; color: var(--ink); transition: background .14s, color .14s;
  display: flex; align-items: center; gap: 10px;
}
.snav a .ico {
  width: 18px; display: grid; place-items: center; flex: none; color: var(--ink3);
  transition: color .14s;
}
.sic { width: 17px; height: 17px; display: block; }
.snav a .lb-t { flex: 1; min-width: 0; }
.snav a:hover .ico { color: var(--ink2); }
.snav a.active .ico { color: var(--brand); }
.snav a:hover { background: var(--fill); }
.snav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.snav a.active::before {
  content: ''; position: absolute; left: -8px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--brand);
}
.snav .lb { font-size: 11px; color: var(--ink3); padding: 18px 20px 6px; letter-spacing: .5px; }

/* —— 分段控件 pill 化，选中为深色实底 —— */
.seg {
  background: var(--fill); border-radius: 999px; padding: 3px; gap: 2px;
  box-shadow: inset 0 0 0 1px rgba(23,23,23,.04);
}
.seg button { border-radius: 999px; font-size: 12.5px; padding: 8px 12px; color: var(--ink2); transition: .15s; }
.seg button:hover { color: var(--ink); }
.seg button.on {
  background: var(--ink); color: #fff; font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
/* 日历/看板里的浅色分段保持白底款 */
.seg.light button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* —— 按钮：胶囊 + 主按钮深色（BOSS 风格），保留品牌蓝给强调动作 —— */
.btn { border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.10); font-weight: 500; }
.btn:hover { background: #2c2c2c; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: var(--sh-ring); }
.btn.ghost:hover { background: var(--fill); }
.btn.sm { border-radius: 999px; padding: 7px 14px; }
.btn.ok { background: var(--green-soft); color: var(--green); box-shadow: none; }
.btn.danger { background: var(--red-soft); color: var(--red); box-shadow: none; }

/* —— 表格：头部分隔线更轻，数值右对齐 + 等宽数字 —— */
.tbl th { font-size: 11.5px; letter-spacing: .3px; color: var(--ink3); border-bottom: 1px solid var(--ring-line); }
.tbl td { border-bottom: 1px solid rgba(23,23,23,.045); font-variant-numeric: tabular-nums; }
.tbl tr.total td { background: var(--fill); }

/* —— 提示条：左侧色条 —— */
.notice { border-radius: 12px; border-left: 3px solid var(--amber); padding: 11px 14px; }

/* —— 桌面版：更宽的阅读区 + 更大留白 —— */
@media (min-width: 1024px) {
  .sidebar { width: var(--side-w); background: #fff; border-right: 1px solid var(--ring-line); padding: 0 0 20px; }
  .content { max-width: 1240px; padding: 8px 32px 60px; }
  .grid4 { gap: 14px; }
  .card { padding: 18px 20px; margin-bottom: 14px; }
  .board { gap: 14px; }
  .cal-grid, .cal-week { gap: 8px; }
}
@media (max-width: 1023px) {
  .sbrand .mark { display: none; }
}

/* ==========================================================================
   视觉升级 v3 —— 精确对齐 workstation-BOSS 的设计语言
   取 BOSS 原值：底色 #f5f5f4 / 侧栏 #fbfbfa / 描边环 #ececea / 面板圆角 16
   导航行高 34 + 选中灰底加粗 / 输入框浅灰填充 + 内描边聚焦 / 数字等宽字体
   参考改编自 workstation-BOSS（Developed by @赛博老爸），仅借视觉，不搬业务
   ========================================================================== */
:root {
  --num: "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --panel-line: #ececea;
  --panel-line2: #e2e2df;
}
body { font-family: var(--font); font-size: 14px; }
/* 底色改纯色（去掉蓝光晕），更接近 BOSS 的干净白灰 */
body::before { background: #f5f5f4; }
body::after { display: none; }

/* —— 侧栏 —— */
@media (min-width: 1024px) {
  .sidebar {
    width: 216px; background: #fbfbfa; border-right: 1px solid var(--panel-line);
    box-shadow: none; padding: 18px 12px 12px;
    display: flex; flex-direction: column;
  }
  .shell { padding-bottom: 0; }
}
.sbrand { padding: 2px 8px 16px; margin: 0; gap: 9px; }
.sbrand .mark {
  width: 30px; height: 30px; border-radius: 8px; font-size: 14px;
  background: linear-gradient(135deg, #2e2e2e, #171717);
  box-shadow: 0 4px 12px rgba(0,0,0,.16);
}
.sbrand .txt b { font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.sbrand .txt small { font-size: 11px; color: #9a9a97; margin-top: 1px; }

.snav { display: flex; flex-direction: column; }
.snav .lb { font-size: 12px; color: #9a9a97; padding: 14px 10px 6px; letter-spacing: 0; }
.snav a {
  height: 34px; padding: 0 10px; margin: 1px 0; border-radius: 9px; gap: 10px;
  font-size: 13.5px; color: var(--ink); font-weight: 400;
}
.snav a:hover { background: #f1f1ef !important; }
.snav a.active {
  background: #ececea !important; color: var(--ink); font-weight: 600;
}
.snav a.active::before { display: none; }
.snav a.active .ico, .snav a.active .sic { color: var(--ink); }
.snav a .ico { width: 18px; }
.snav a .bdg { font-size: 11.5px; color: #9a9a97; font-weight: 400; }

/* 侧栏底部“我” */
.side-foot { margin-top: auto; padding-top: 10px; }
.me { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 10px; }
.me:hover { background: #f1f1ef; }
.me .av {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  background: #ececea; color: var(--ink);
}
.me-t { min-width: 0; flex: 1; }
.me-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.me-sub { font-size: 11.5px; color: #9a9a97; line-height: 1.2; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .gear { color: #9a9a97; font-size: 13px; }
.sign { font-size: 10.5px; color: #c2c2bf; padding: 8px 10px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--num); }

/* —— 页头 —— */
.topbar {
  position: sticky; top: 0; z-index: 20; border-bottom: 0;
  background: rgba(245,245,244,.92); backdrop-filter: saturate(1.2) blur(10px);
  padding: 26px 34px 14px; align-items: flex-start;
}
.topbar h2 { font-size: 20px; font-weight: 700; letter-spacing: .2px; }
.topbar .who { color: var(--ink2); border-radius: 999px; padding: 5px 12px 5px 6px; box-shadow: 0 0 0 1px var(--panel-line); background: #fff; }
.topbar .who .av { background: #ececea; color: var(--ink); }

/* —— 内容区 —— */
.content { padding: 4px 34px 40px; }
@media (min-width: 1024px) { .content { max-width: 1240px; margin: 0 auto; width: 100%; padding: 4px 34px 48px; } }

/* —— 面板：细线环，无渐变无大投影 —— */
.card, .formcard, .glass-solid {
  background: #fff; border: 0; border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 0 0 1px var(--panel-line);
}
.card:hover, .formcard:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--panel-line2), 0 6px 18px rgba(0,0,0,.05);
}
.card h3 {
  font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: 0;
  margin: 0 0 12px; padding-bottom: 0; border-bottom: 0;
}

/* —— KPI 卡：BOSS 的 kpi 规格 —— */
.stat {
  background: #fff; border-radius: 14px; padding: 13px 16px;
  box-shadow: 0 0 0 1px var(--panel-line);
}
.stat::after { display: none; }
.stat .k { font-size: 12px; color: #9a9a97; }
.stat .v { font-family: var(--num); font-size: 22px; font-weight: 700; letter-spacing: -.3px; margin-top: 5px; }
.stat .s { font-size: 12px; color: #9a9a97; }
.stat .ring { right: 12px; top: 12px; }

/* —— 输入类：浅灰填充 + 聚焦内描边 —— */
.field input, .field select, .field textarea, .inp, .sel, .ta {
  border: 0; border-radius: 9px; background: #f3f3f2;
  padding: 0 12px; height: 38px; font-size: 13.5px; transition: box-shadow .15s, background .15s;
}
.field textarea, .ta { padding: 10px 12px; height: auto; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus,
.inp:focus, .sel:focus, .ta:focus, input:focus, select:focus, textarea:focus {
  background: #fff !important; border-color: transparent !important;
  box-shadow: 0 0 0 1.5px var(--ink) inset !important; outline: none;
}
.field label { font-size: 13px; color: var(--ink); font-weight: 500; }

/* —— 按钮：深色胶囊，按下缩微 —— */
.btn { background: var(--ink); color: #fff; border: 0; }
.btn:hover { background: #333; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: #fff; box-shadow: 0 0 0 1px var(--panel-line2); color: var(--ink); }
.btn.ghost:hover { background: #f3f3f2; }

/* —— 分段控件 —— */
.seg { background: #f3f3f2; box-shadow: none; }
.seg button { height: 28px; padding: 0 14px; font-size: 13px; }
.seg button.on { background: var(--ink); color: #fff; font-weight: 500; box-shadow: none; }

/* —— 表格：更轻的分隔线，行悬停淡灰 —— */
.tbl th { color: #9a9a97; font-size: 12px; font-weight: 500; background: transparent; border-bottom: 1px solid var(--panel-line); letter-spacing: 0; }
.tbl td { border-bottom: 1px solid #f2f2f0; }
.tbl tbody tr:hover, .tbl tr:hover { background: #fafaf9; }
.tbl tr.total td { background: #f3f3f2; }

/* —— 标签 —— */
.tag, .badge, .pill { border-radius: 6px; }

/* ==========================================================================
   办公室工位场景（首页）—— 5 个同事的小人 + 当月数据
   视觉参考 workstation-BOSS 的教室舞台（Developed by @赛博老爸）
   ========================================================================== */
.office-card { padding: 18px 20px 20px; }
.office-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.office-head h3 { font-size: 15px; font-weight: 600; color: var(--ink); }
.office-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink3); }
.office-legend span { display: inline-flex; align-items: center; gap: 6px; }
.office-legend .ld { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.ld.green { background: var(--green); } .ld.blue { background: var(--brand); }
.ld.amber { background: var(--amber); } .ld.red { background: var(--red); }

.office-floor {
  position: relative; border-radius: 14px; padding: 16px 14px 20px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 120%, rgba(47,127,240,.05), transparent 62%),
    repeating-linear-gradient(0deg, rgba(23,23,23,.028) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(23,23,23,.028) 0 1px, transparent 1px 26px),
    #fafaf8;
  box-shadow: inset 0 0 0 1px rgba(23,23,23,.045);
}
.desk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; position: relative; z-index: 1; }
@media (min-width: 720px) { .desk-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1024px) { .desk-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; } }
.deco-plant { position: absolute; bottom: 8px; width: 38px; opacity: .9; pointer-events: none; display: none; }
.deco-plant.left { left: 6px; } .deco-plant.right { right: 6px; }
@media (min-width: 1024px) { .deco-plant { display: block; } }

.seat {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 8px 8px 10px; border-radius: 12px; cursor: pointer;
  animation: xinxi-enter .4s ease-out both; animation-delay: calc(var(--i) * 60ms);
  transition: background .18s, box-shadow .18s, transform .18s;
}
.seat:hover { background: #fff; box-shadow: 0 8px 22px rgba(15,23,42,.07); transform: translateY(-2px); }
.seat-art { width: 100%; max-width: 118px; animation: seatIdle 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * -320ms); }
.seat-svg { width: 100%; height: auto; display: block; }
/* 举手只给“有待审批”的人（和 BOSS 的 .seat.hand 一致：默认收着手臂） */
.seat-svg .arm { opacity: 0; transition: opacity .25s; }
.seat.hand .seat-svg .arm { opacity: 1; }
@keyframes seatIdle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }

.plate { display: flex; align-items: center; gap: 6px; margin-top: 2px; max-width: 100%; }
.plate b { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.plate small { font-size: 11px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.st-dot.green { background: var(--green); box-shadow: 0 0 0 0 rgba(29,154,87,.5); animation: dotPing 2.2s ease-out infinite; }
.st-dot.blue { background: var(--brand); box-shadow: 0 0 0 0 rgba(47,127,240,.5); animation: dotPing 2.2s ease-out infinite; }
.st-dot.amber { background: var(--amber); box-shadow: 0 0 0 0 rgba(232,154,12,.5); animation: dotPing 2.2s ease-out infinite; }
.st-dot.red { background: var(--red); box-shadow: 0 0 0 0 rgba(229,72,59,.5); animation: dotPing 2.2s ease-out infinite; }
.st-dot.gray { background: #c9c9c6; }
@keyframes dotPing { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 6px rgba(0,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }

.figs { text-align: center; margin-top: 5px; }
.fig-main { font-family: var(--num); font-size: 15px; font-weight: 700; color: var(--green); letter-spacing: -.2px; }
.fig-sub { font-size: 11.5px; color: var(--ink3); margin-top: 1px; white-space: nowrap; }
.st-txt { margin-top: 5px; font-size: 11px; color: var(--ink2); background: #fff; border-radius: 6px; padding: 2px 7px; box-shadow: 0 0 0 1px var(--panel-line); }

/* 点到工位时飘一条提示 */
.float-note {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%);
  font-family: var(--num); font-size: 12px; font-weight: 700; color: var(--green);
  pointer-events: none; animation: floatUp 1.35s ease-out forwards;
}
@keyframes floatUp {
  0% { opacity: 0; transform: translate(-50%, 6px); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -34px); }
}

/* 悬浮人卡 */
.hcard {
  position: fixed; z-index: 999; width: 288px; max-width: calc(100vw - 24px); background: #fff;
  border-radius: 16px; box-shadow: var(--sh-pop); padding: 16px 18px 14px;
  opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s;
  pointer-events: none;
}
.hcard.on { opacity: 1; transform: none; pointer-events: auto; }
.hcard .hc-head { display: flex; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--panel-line); }
.hcard .hc-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 700; flex: none; }
.hcard .hc-name { font-size: 16px; font-weight: 700; line-height: 1.2; }
.hcard .hc-role { font-size: 12px; color: var(--ink3); margin-top: 2px; }
.hcard .hc-st.green { color: var(--green); } .hcard .hc-st.amber { color: var(--amber); }
.hcard .hc-st.red { color: var(--red); } .hcard .hc-st.blue { color: var(--brand); }
.hcard .hc-st.gray { color: var(--ink3); }
.hcard .hc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 12px; }
.hcard .hc-grid span { display: block; font-size: 11.5px; color: var(--ink3); }
.hcard .hc-grid b { font-family: var(--num); font-size: 14px; font-weight: 700; color: var(--ink); }
.hcard .hc-grid b.pos { color: var(--green); } .hcard .hc-grid b.neg { color: var(--red); }
.hcard .hc-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--panel-line); font-size: 12.5px; }




/* ---- 员工端简洁工作台 ---- */
.simple-hello{padding:18px 18px 14px}
.simple-hello .t{font-size:20px;font-weight:600;letter-spacing:-.3px}
.simple-hello .s{font-size:12px;color:var(--muted);margin-top:5px}
.quick{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
.quick a{display:flex;align-items:center;justify-content:center;padding:15px 10px;border-radius:14px;background:#fff;box-shadow:0 0 0 1px #ececea;font-size:14px;font-weight:600;color:var(--text);text-decoration:none}
.quick a:hover{box-shadow:0 4px 14px rgba(31,111,229,.12)}
.quick a:active{background:#f4f4f2}
@media (min-width:1024px){.quick{grid-template-columns:repeat(4,1fr)}}

/* ==================================================================
   统一观感层 v4（参考 GitHub: satnaing/shadcn-admin, MIT 许可的视觉风格）
   只改观感，不新增业务：字体层级、按钮/下拉/输入框尺寸、卡片与表格间距
   ================================================================== */
:root{
  --ui-radius: 8px;
  --ui-radius-lg: 10px;
  --ui-line: #e6e6e4;
  --ui-line-soft: #eeeef0;
  --ui-text: #18181b;
  --ui-muted: #71717a;
  --ui-fill: #f4f4f5;
  --ui-fill-hover: #ebebed;
  --ui-ring: 0 0 0 3px rgba(24,24,27,.08);
}
body{
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ui-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea{ font-family: inherit; font-size: 13px; }
h1,h2,h3,h4{ letter-spacing: -0.01em; }
.card h3{ font-size: 15px; font-weight: 600; color: var(--ui-text); letter-spacing: -0.01em; }

/* 按钮：统一 36px 高、8px 圆角、常规字重，不再用大胶囊 */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; min-height: 36px; padding: 0 14px;
  border-radius: var(--ui-radius); border: 1px solid transparent;
  font-size: 13px; font-weight: 500; line-height: 1;
  background: var(--ui-text); color: #fff; box-shadow: none;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover{ background: #27272a; }
.btn:active{ transform: none; opacity: .92; }
.btn.ghost{ background: #fff; color: var(--ui-text); border-color: var(--ui-line); box-shadow: none; }
.btn.ghost:hover{ background: var(--ui-fill); }
.btn.ok{ background: var(--ui-fill); color: #15803d; border-color: #d7e8da; box-shadow: none; }
.btn.ok:hover{ background: #eaf5ec; }
.btn.danger{ background: var(--ui-fill); color: #b91c1c; border-color: #f0d9d7; box-shadow: none; }
.btn.danger:hover{ background: #fbeceb; }
.btn.sm{ height: 30px; min-height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn[disabled]{ opacity: .45; }

/* 输入框 / 下拉：统一高度与边框，去掉内部阴影 */
input:not([type=checkbox]):not([type=radio]), select, textarea{
  height: 36px; padding: 0 10px;
  border: 1px solid var(--ui-line); border-radius: var(--ui-radius);
  background-color: #fff; color: var(--ui-text);
  font-size: 13px; box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea{ height: auto; padding: 8px 10px; }
input::placeholder, textarea::placeholder{ color: #a1a1aa; }
input:hover, select:hover, textarea:hover{ border-color: #d4d4d8; }
input:focus, select:focus, textarea:focus{
  outline: none; border-color: var(--ui-text); box-shadow: var(--ui-ring);
}
select{
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
input[type=month], input[type=date]{ padding-right: 8px; }

/* 卡片：10px 圆角、1px 细边、几乎无阴影，悬停不再上浮 */
.card, .formcard, .stat{
  border-radius: var(--ui-radius-lg);
  border: 1px solid var(--ui-line);
  background: #fff;
  box-shadow: 0 1px 2px rgba(24,24,27,.04);
}
.card:hover, .formcard:hover{ transform: none; box-shadow: 0 1px 2px rgba(24,24,27,.06); }

/* 表格：13px、行高更松、表头弱化 */
table{ font-size: 13px; }
table th{ font-size: 12px; font-weight: 500; color: var(--ui-muted); letter-spacing: .01em; }
table th, table td{ padding: 10px 12px; }
table tbody tr:hover{ background: #fafafa; }

/* 标签 / 分段控件 */
.tag, .badge, .pill{ border-radius: 6px; font-size: 11.5px; padding: 2px 7px; }
.notice{ border-radius: var(--ui-radius); font-size: 13px; }
.subline{ color: var(--ui-muted); font-size: 12.5px; }
.empty{ color: var(--ui-muted); font-size: 13px; }

/* 排行榜名单 */
.rank-row .rank-no{
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; margin-right: 6px; border-radius: 5px;
  background: var(--ui-fill); color: var(--ui-muted); font-size: 11.5px; font-weight: 600;
}
.rank-row .rank-no.top{ background: var(--ui-text); color: #fff; }
.rank-row.me{ background: #fafafa; }

/* 权限勾选项：改成标准勾选框样式，选中一眼看得出来 */
.permgrid{ gap:6px; }
.permck{
  gap:9px; padding:9px 11px; border-radius:8px; font-size:13px; font-weight:400;
  border:1px solid var(--ui-line); background:#fff; color:var(--ui-text);
  transition:background .15s ease, border-color .15s ease;
}
.permck::before{
  content:''; flex:0 0 16px; width:16px; height:16px; border-radius:4px;
  border:1px solid #d4d4d8; background:#fff; display:inline-block;
  font-size:12px; line-height:14px; text-align:center; color:#fff;
}
.permck.on{ background:#fafafa; border-color:#d4d4d8; color:var(--ui-text); font-weight:500; }
.permck.on::before{ content:'✓'; background:var(--ui-text); border-color:var(--ui-text); }
.permck:has(input:disabled){ background:#fafafa; color:var(--ui-muted); }

/* 普通复选框/单选：固定 16px，不再被输入框高度规则撑高 */
input[type=checkbox], input[type=radio]{
  width:16px !important; height:16px !important; min-height:16px !important;
  padding:0 !important; margin:0; border:0 !important; background:none !important;
  border-radius:4px; flex:0 0 auto; accent-color:var(--ui-text);
}
/* 弹窗/表单被误点外部时的抖动提醒 */
@keyframes xx-shake{
  0%,100%{ transform:translateX(0); }
  20%{ transform:translateX(-7px); }
  40%{ transform:translateX(7px); }
  60%{ transform:translateX(-5px); }
  80%{ transform:translateX(5px); }
}
.shake{ animation:xx-shake .36s ease; }

/* 敏感信息：脱敏值 + 小眼睛查看 */
.sec-val { font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.eye-btn { border: 0; background: transparent; cursor: pointer; font-size: 14px; padding: 2px 6px; border-radius: 6px; line-height: 1; }
.eye-btn:hover { background: #f1f1ef; }

/* ==========================================================================
   方案 B：窄页主栏收窄居中 + 右侧动态边栏（待办 / 预警 / 站内信）
   宽页（台账 / 报表 / 看板）保持宽表格居中，不显示边栏
   ========================================================================== */
.stage { display: flex; gap: 24px; align-items: flex-start; width: 100%; }
.rail { width: 300px; flex: none; display: flex; flex-direction: column; gap: 14px; }
.rail-card { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: 0 0 0 1px var(--panel-line); }
.rail-card h3 { font-size: 14px; font-weight: 600; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.rail-list { display: flex; flex-direction: column; gap: 10px; }
.rail-item { padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.rail-item:hover { background: #f4f4f2; }
.rail-item .t { font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.rail-item .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rail-item.unread .t { font-weight: 600; }
.rail-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); display: inline-block; flex: none; }
.rail-detail { display: flex; flex-direction: column; gap: 8px; }
.rd-row { display: flex; gap: 12px; font-size: 13.5px; line-height: 1.5; }
.rd-k { width: 76px; flex: none; color: var(--muted); }
.rd-v { flex: 1; word-break: break-all; }
.rd-body { font-size: 13.5px; line-height: 1.7; color: var(--text); white-space: pre-wrap; padding: 10px 12px; background: #f6f6f4; border-radius: 10px; }

@media (min-width: 1024px) {
  .shell .stage { max-width: 1240px; margin: 0 auto; width: 100%; padding: 4px 34px 48px; }
  .shell .content { flex: 1; min-width: 0; margin: 0; padding: 0; }
  .shell.narrow .content { max-width: 760px; }
  .shell:not(.narrow) .content { max-width: none; }
}
@media (max-width: 1023px) {
  .stage { display: block; }
  .rail { display: none; }
}

/* ===== 通讯录：轻量人员列表 + 右侧抽屉 ===== */
.mem-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.mem-tool-l { display: flex; gap: 10px; flex-wrap: wrap; }
.mem-tool-l input, .mem-tool-l select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfbfc; font-size: 13.5px; outline: none; }
.mem-tool-l input { width: 200px; }
.mem-list { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.mem-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.mem-row:last-child { border-bottom: 0; }
.mem-row:hover { background: #fafbfc; }
.mem-row.off .nm { color: var(--muted); }
.mem-row .av { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; color: #fff; flex: none; }
.mem-main { flex: 1; min-width: 0; }
.mem-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mem-top .nm { font-size: 14px; font-weight: 600; }
.mem-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.role-badge { font-size: 11px; color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 2px 8px; font-weight: 500; }
.mem-ops { display: flex; gap: 6px; flex: none; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 15px; display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { background: var(--brand-soft); color: var(--brand); }
.off-tag { font-size: 11px; color: var(--red); }

.role-block { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.role-block summary { padding: 15px 18px; cursor: pointer; font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.role-block summary::-webkit-details-marker { display: none; }
.role-block[open] summary { border-bottom: 1px solid var(--line); }
.role-body { padding: 16px 18px; }

.drawer-mask { position: fixed; inset: 0; background: rgba(15,20,30,.4); z-index: 40; display: flex; justify-content: flex-end; }
.drawer { width: 100%; max-width: 420px; background: #fff; height: 100%; overflow-y: auto; box-shadow: -8px 0 24px rgba(20,30,50,.12); animation: drawer-in .22s ease-out both; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.dh-title { font-size: 16px; font-weight: 600; }
.drawer-close { border: 0; background: #f1f1ef; width: 32px; height: 32px; border-radius: 9px; cursor: pointer; font-size: 14px; color: var(--muted); }
.drawer-close:hover { background: #e7e7e4; }
.drawer-body { padding: 18px 20px; }
.mem-head { display: flex; align-items: center; gap: 12px; }
.mem-head .av.lg { width: 52px; height: 52px; font-size: 19px; }
.mem-head .nm { font-size: 16px; font-weight: 600; }
.drawer-ops { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
