/* ============================================================
   账号运营台 — 样式表
   ============================================================ */

:root {
  --bg: #f4f6f9;
  --panel: #ffffff;
  --ink: #0f172a;
  --ink2: #475467;
  --muted: #8a94a6;
  --line: #e7eaf0;
  --line2: #d7dce5;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eef4ff;
  --good: #067647;
  --good-soft: #e9f9f0;
  --bad: #c01048;
  --bad-soft: #fff1f4;
  --warn: #b54708;
  --warn-soft: #fef6e7;
  --side: #0c1424;
  --side-2: #131d31;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 12px 28px -16px rgba(16, 24, 40, .18);
  --shadow-lg: 0 24px 60px -20px rgba(16, 24, 40, .3);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
[hidden] { display: none !important; }

.num { font-variant-numeric: tabular-nums; }

/* ---------- 启动态 ---------- */
.boot {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  z-index: 60;
  transition: opacity .25s ease;
}
.boot.is-out { opacity: 0; pointer-events: none; }
.boot-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.boot-logo {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--side); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 19px;
  animation: pulse 1.6s ease-in-out infinite;
}
.boot-text { color: var(--muted); font-size: 13px; letter-spacing: .04em; }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.94); opacity: .7; }
}

/* ============================================================
   登录页
   ============================================================ */
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(400px, .95fr);
  background: var(--bg);
}

.login-brand {
  position: relative;
  background: radial-gradient(120% 90% at 12% 0%, #1b2c4d 0%, #0c1424 55%, #070d19 100%);
  color: #fff;
  padding: 44px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.login-brand::after {
  content: "";
  position: absolute;
  right: -180px; bottom: -220px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .55) 0%, rgba(37, 99, 235, 0) 68%);
  pointer-events: none;
}
.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 75%);
  pointer-events: none;
}

.lb-top { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
.lb-logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
  backdrop-filter: blur(6px);
}
.lb-name { font-weight: 600; letter-spacing: .06em; font-size: 14px; }

.lb-main { position: relative; z-index: 1; max-width: 470px; padding: 40px 0; }
.lb-main h1 {
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.32;
  font-weight: 650;
  letter-spacing: -.01em;
}
.lb-desc {
  margin-top: 18px;
  color: rgba(255, 255, 255, .62);
  font-size: 14.5px;
  line-height: 1.75;
}
.lb-points { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }
.lb-points li {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 13.5px; color: rgba(255, 255, 255, .78);
}
.lb-points span {
  font-size: 11px;
  color: #6f9bff;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  padding-top: 1px;
}
.lb-foot {
  position: relative; z-index: 1;
  font-size: 12px; color: rgba(255, 255, 255, .34);
  letter-spacing: .1em;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 40px 28px;
}
.login-card { width: 100%; max-width: 372px; }
.login-card h2 { font-size: 22px; font-weight: 620; letter-spacing: -.01em; }
.login-sub { color: var(--muted); font-size: 13px; margin-top: 6px; margin-bottom: 26px; }

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: #eceff4;
  padding: 3px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.seg-item {
  border: 0; background: transparent; cursor: pointer;
  padding: 7px 0; border-radius: 7px;
  color: var(--ink2); font-size: 13px; font-weight: 500;
  transition: background .15s, color .15s, box-shadow .15s;
}
.seg-item.is-active {
  background: #fff; color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .1);
  font-weight: 600;
}

.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 12.5px; font-weight: 500;
  color: var(--ink2); margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line2);
  border-radius: var(--radius-sm);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-variant-numeric: tabular-nums;
}
.field input::placeholder, .field textarea::placeholder { color: #aeb6c4; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.field textarea { resize: vertical; min-height: 72px; }
.field-err { color: var(--bad); font-size: 12px; margin-top: 5px; }

.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 9px 15px;
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .08s;
  background: transparent;
}
.btn:active { transform: translateY(.5px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, .3); }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }

.btn-outline { border-color: var(--line2); background: #fff; color: var(--ink2); }
.btn-outline:hover:not(:disabled) { border-color: var(--ink2); color: var(--ink); background: #fbfcfd; }

.btn-ghost { color: var(--ink2); }
.btn-ghost:hover:not(:disabled) { background: #f2f4f8; color: var(--ink); }

.btn-danger { color: var(--bad); border-color: #f5c6d2; background: #fff; }
.btn-danger:hover:not(:disabled) { background: var(--bad-soft); }

.btn-subtle { background: var(--brand-soft); color: var(--brand-dark); }
.btn-subtle:hover:not(:disabled) { background: #e2ecff; }

.btn-wechat { background: #07c160; color: #fff; }
.btn-wechat:hover:not(:disabled) { background: #06ad56; }

.btn-code { min-width: 106px; }

.btn-block + .btn-block { margin-top: 10px; }

.form-err {
  margin-top: 12px;
  background: var(--bad-soft);
  color: var(--bad);
  font-size: 12.5px;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid #f8d3dc;
}

/* 忘记密码：验证码一行（输入框 + 发送按钮） */
.code-row { display: flex; gap: 8px; align-items: stretch; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn { flex: none; white-space: nowrap; }

/* 忘记密码链接行 */
.login-links { text-align: right; margin-top: -4px; font-size: 13px; }
.login-links a { color: var(--brand, #2f6fed); text-decoration: none; }
.login-links a:hover { text-decoration: underline; }

.or-line {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
  color: var(--muted); font-size: 12px;
}
.or-line::before, .or-line::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.login-note {
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* 分公司注册入口提示 */
.join-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--brand-soft);
  border: 1px solid #d7e4ff;
}
.join-banner.is-error { background: #fff8ef; border-color: #fbe0be; }
.jb-ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.join-banner.is-error .jb-ico { color: var(--warn); }
.jb-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.join-banner.is-error .jb-title { color: var(--warn); }
.jb-sub { font-size: 11.5px; color: var(--ink2); margin-top: 2px; line-height: 1.5; }

/* 注册链接弹窗 */
.invite-box { display: flex; align-items: center; gap: 8px; }
.invite-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line2);
  border-radius: var(--radius-sm);
  background: #f7f9fc;
  color: var(--ink2);
  font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.invite-facts { display: grid; gap: 7px; }
.invite-facts div { display: flex; gap: 10px; font-size: 12.8px; line-height: 1.6; }
.invite-facts span { flex: 0 0 72px; color: var(--muted); }
.invite-facts b { color: var(--ink); font-weight: 550; }

@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-panel { padding: 32px 20px; min-height: 100vh; align-items: center; }
}

/* ============================================================
   应用外壳
   ============================================================ */
.shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--side);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 40;
}

.side-head {
  display: flex; align-items: center; gap: 10px;
  padding: 2px 6px 18px;
}
.side-logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(150deg, #3b82f6, #1d4ed8);
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 12px -4px rgba(59, 130, 246, .8);
  flex: none;
}
.side-title { font-size: 13.5px; font-weight: 600; letter-spacing: .03em; }
.side-sub { font-size: 11px; color: rgba(255, 255, 255, .38); margin-top: 1px; }

.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; flex: 1; }
.nav-group {
  font-size: 10.5px;
  color: rgba(255, 255, 255, .3);
  letter-spacing: .14em;
  padding: 16px 10px 7px;
  font-weight: 500;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .66);
  font-size: 13.5px;
  cursor: pointer;
  border: 0; background: transparent; width: 100%; text-align: left;
  transition: background .15s, color .15s;
}
.nav-item svg { flex: none; opacity: .8; }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.is-active {
  background: rgba(59, 130, 246, .16);
  color: #fff;
  font-weight: 550;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .24);
}
.nav-item.is-active svg { opacity: 1; color: #7aa7ff; }
.nav-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .8);
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 20px;
  font-variant-numeric: tabular-nums;
}

.side-foot { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 12px; }
.me { display: flex; align-items: center; gap: 9px; padding: 4px 6px 10px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .14);
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 600; color: #dce6ff;
  flex: none;
}
.me-info { min-width: 0; }
.me-name {
  font-size: 12.5px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.me-role { font-size: 11px; color: rgba(255, 255, 255, .38); }
.side-foot .btn-ghost { color: rgba(255, 255, 255, .5); }
.side-foot .btn-ghost:hover { background: rgba(255, 255, 255, .07); color: #fff; }

.side-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.side-actions .btn {
  padding: 6px 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .12);
}
.side-actions .btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
}

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 28px 14px;
  position: sticky; top: 0;
  background: rgba(244, 246, 249, .88);
  backdrop-filter: blur(10px);
  z-index: 20;
  border-bottom: 1px solid transparent;
}
.tb-left { min-width: 0; }
.page-title { font-size: 19px; font-weight: 620; letter-spacing: -.01em; }
.page-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tb-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.icon-btn {
  border: 1px solid var(--line2); background: #fff;
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  cursor: pointer; color: var(--ink2);
}
.icon-btn:hover { border-color: var(--ink2); color: var(--ink); }
.only-mobile { display: none; }

.view { padding: 6px 28px 56px; flex: 1; }

/* 未分配分公司提示 */
.assign-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 28px 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff8ef;
  border: 1px solid #fbe0be;
}
.an-ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  color: var(--warn);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.an-text { display: flex; flex-direction: column; gap: 3px; }
.an-text b { font-size: 13px; color: #93400a; font-weight: 600; }
.an-text span { font-size: 12.5px; color: var(--ink2); line-height: 1.65; }

/* 待分配成员列表 */
.pending-list { display: grid; gap: 8px; }
.pending-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfe;
}
.pending-info { flex: 1; min-width: 0; }
.pending-info .name-cell { font-size: 13.2px; }
.pending-info .sub-cell { font-size: 11.8px; }

.mask {
  display: none;
  position: fixed; inset: 0;
  background: rgba(8, 14, 26, .45);
  z-index: 35;
  backdrop-filter: blur(2px);
}

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: 246px; height: 100%;
    transform: translateX(-102%);
    transition: transform .22s ease;
    box-shadow: var(--shadow-lg);
  }
  .shell.nav-open .sidebar { transform: translateX(0); }
  .shell.nav-open .mask { display: block; }
  .only-mobile { display: grid; }
  .topbar { padding: 14px 16px 10px; }
  .view { padding: 4px 16px 90px; }
  .assign-notice { margin: 0 16px 12px; padding: 11px 12px; }
  .pending-item { flex-wrap: wrap; }
  .pending-item .btn { width: 100%; }
  .page-title { font-size: 17px; }
  .tb-actions .btn span.lbl { display: none; }
}

/* ============================================================
   通用卡片 / 网格
   ============================================================ */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 18px 20px; }
.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.card-head h3 { font-size: 14px; font-weight: 600; }
.card-head .sub { font-size: 12px; color: var(--muted); }
.card-head .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }

.grid { display: grid; gap: 14px; }
.kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split-2 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.split-2-r { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-2, .split-2-r { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* KPI */
.kpi { padding: 16px 18px 15px; position: relative; overflow: hidden; }
.kpi-top { display: flex; align-items: center; gap: 8px; }
.kpi-label { font-size: 12.5px; color: var(--ink2); font-weight: 500; }
.kpi-icon {
  width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  margin-left: auto;
}
.kpi-value {
  font-size: 27px; font-weight: 640; letter-spacing: -.02em;
  margin-top: 12px; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.kpi-unit { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.kpi-foot { margin-top: 9px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.org-group-head { display: flex; align-items: center; gap: 10px; margin: 20px 0 12px; }
.org-group-bar { width: 4px; height: 18px; border-radius: 2px; background: var(--brand, #2563eb); flex: none; }
.org-group-title { font-size: 14px; font-weight: 650; color: var(--ink); letter-spacing: .02em; }
.org-group-stat { font-size: 11.5px; color: var(--muted); padding: 1px 8px; background: var(--bg, #f4f6f9); border-radius: 99px; }
.org-group { border-left: none; }
.rank-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; background: #eef1f6; color: #667085; font-weight: 650; font-size: 12px; font-variant-numeric: tabular-nums; }
.rank-badge.top1 { background: linear-gradient(135deg, #f6c453, #e8a020); color: #fff; }
.rank-badge.top2 { background: linear-gradient(135deg, #cfd6e0, #aab3c0); color: #fff; }
.rank-badge.top3 { background: linear-gradient(135deg, #e3a374, #cd7f4e); color: #fff; }
tr.row-me td { background: rgba(37, 99, 235, .055); }
.org-sort-btns { display: inline-flex; gap: 4px; flex: none; }
.org-sort-btn { width: 24px; height: 24px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; background: var(--bg, #f4f6f9); color: var(--ink2); font-size: 13px; cursor: pointer; padding: 0; transition: all .15s; }
.org-sort-btn:hover:not(:disabled) { border-color: var(--brand, #2563eb); color: var(--brand, #2563eb); background: rgba(37, 99, 235, .06); }
.org-sort-btn:disabled { opacity: .3; cursor: default; }
.kpi-sub { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 4px 12px; }
/* 可点击的 KPI 卡片 */
.kpi-click { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.kpi-click:hover { border-color: #b9d0fb; box-shadow: 0 4px 14px rgba(37, 99, 235, .1); }
.kpi-click:active { border-color: #8ab0f9; }
.kpi-peek { margin-left: auto; color: #2563eb; font-weight: 550; white-space: nowrap; }
.kpi-detail-body { max-height: 62vh; overflow: auto; margin: 0 -4px; padding: 0 4px; }
.p-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink2); white-space: nowrap; }
.p-chip i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.p-chip b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }
.delta.flat { color: var(--muted); }

/* 进度条 */
.bar-track { height: 6px; border-radius: 6px; background: #eef0f4; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: var(--brand); transition: width .4s ease; }

/* 徽章 */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
  background: #f1f3f7;
  color: var(--ink2);
  white-space: nowrap;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill.ok { background: var(--good-soft); color: var(--good); }
.pill.off { background: #f2f4f7; color: #98a2b3; }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.brand { background: var(--brand-soft); color: var(--brand-dark); }
.pill.super { background: #fff4e5; color: #b54708; }

.ok-mark { color: var(--good); font-weight: 600; }
.no-mark { color: #c4ccd8; }

.role-tag {
  font-size: 10.5px; padding: 1px 7px; border-radius: 20px;
  background: #eef4ff; color: var(--brand-dark); font-weight: 600;
  letter-spacing: .02em;
}

/* ============================================================
   表格
   ============================================================ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
  white-space: nowrap;
  position: sticky; top: 0;
}
.tbl th.r, .tbl td.r { text-align: right; }
.tbl th.c, .tbl td.c { text-align: center; }
.tbl td {
  padding: 11px 14px;
  border-bottom: 1px solid #f0f2f6;
  vertical-align: middle;
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #fafbfd; }
.tbl tbody tr.is-mine { background: #fcfdff; }
.tbl .name-cell { font-weight: 550; color: var(--ink); }
.tbl .sub-cell { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.tbl tfoot td {
  padding: 12px 14px;
  font-weight: 650;
  border-top: 1.5px solid var(--line2);
  background: #fbfcfe;
}

.plat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink2); white-space: nowrap;
}
.plat-badge {
  height: 20px; min-width: 20px; padding: 0 7px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 600; color: #fff;
  flex: none; letter-spacing: 0; white-space: nowrap;
}

.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty-ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: #f2f5fa; color: #a9b4c6;
  display: grid; place-items: center;
  margin: 0 auto 12px;
}
.empty strong { display: block; color: var(--ink2); font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }

/* ============================================================
   筛选栏 / 工具条
   ============================================================ */
.toolbar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.toolbar .grow { flex: 1; }
.input-sm, .select-sm {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input-sm:focus, .select-sm:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}
.input-sm::placeholder { color: #aeb6c4; }
.select-sm { padding-right: 26px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a94a6' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}

.search-box { position: relative; }
.search-box svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box .input-sm { padding-left: 31px; width: 200px; }

/* ============================================================
   登记表
   ============================================================ */
.entry-tbl input.cell-in {
  width: 92px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f7f9fc;
  text-align: right;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.entry-tbl input.cell-in:hover:not(:disabled) { background: #f1f5fa; }
.entry-tbl input.cell-in:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}
.entry-tbl input.cell-in:disabled { background: transparent; color: var(--muted); cursor: not-allowed; }
.entry-tbl input.cell-in.has-val { background: #fff; border-color: var(--line2); }
.entry-tbl input.cell-in.changed { background: #fff; border-color: #7aa7ff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.entry-tbl td { padding: 8px 10px; }
.entry-tbl th { padding: 9px 10px; }
.entry-tbl th.grp-th { background: #f7f9fc; border-left: 1px solid var(--line2); }
.entry-tbl td.grp { border-left: 1px solid #f2f4f8; }
.entry-tbl td.muted { color: #c4ccd8; }

.save-bar {
  position: sticky;
  bottom: 16px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #0f172a;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px -16px rgba(15, 23, 42, .55);
  z-index: 10;
}
.save-bar .sb-info { font-size: 12.5px; color: rgba(255, 255, 255, .66); }
.save-bar .sb-info b { color: #fff; font-variant-numeric: tabular-nums; }
.save-bar .spacer { flex: 1; }
.save-bar .btn-primary { background: #2563eb; }
.save-bar .btn-ghost { color: rgba(255, 255, 255, .7); }
.save-bar .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ============================================================
   图表
   ============================================================ */
.chart-box { padding: 8px 4px 0; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-legend {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 0 20px 14px;
  font-size: 12px; color: var(--ink2);
}
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

.chart-tip {
  position: fixed;
  pointer-events: none;
  background: #0f172a;
  color: #fff;
  font-size: 11.5px;
  padding: 6px 9px;
  border-radius: 7px;
  transform: translate(-50%, -130%);
  z-index: 70;
  white-space: nowrap;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity .12s;
}
.chart-tip.on { opacity: 1; }
.chart-tip b { font-variant-numeric: tabular-nums; }

.rank-list { display: flex; flex-direction: column; }
.rank-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 20px;
  border-bottom: 1px solid #f2f4f8;
}
.rank-row:last-child { border-bottom: 0; }
.rank-no {
  width: 19px; height: 19px; border-radius: 6px;
  display: grid; place-items: center;
  font-size: 10.5px; font-weight: 700;
  background: #f2f4f8; color: var(--muted);
  flex: none;
}
.rank-row:nth-child(1) .rank-no { background: #fef3c7; color: #b45309; }
.rank-row:nth-child(2) .rank-no { background: #eef2f6; color: #64748b; }
.rank-row:nth-child(3) .rank-no { background: #fdece2; color: #b45309; }
.rank-name { font-size: 13px; font-weight: 500; min-width: 0; }
.rank-sub { font-size: 11px; color: var(--muted); }
.rank-val { margin-left: auto; text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rank-val small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }

.plat-dist { padding: 6px 20px 16px; display: flex; flex-direction: column; gap: 13px; }
.pd-row .pd-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 5px; }
.pd-row .pd-val { margin-left: auto; color: var(--ink2); font-variant-numeric: tabular-nums; font-weight: 550; }

/* ============================================================
   弹窗
   ============================================================ */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(10, 17, 30, .45);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 80;
  animation: fade .16s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px -24px rgba(10, 17, 30, .5);
  animation: rise .2s cubic-bezier(.2, .8, .3, 1);
}
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.modal.wide { max-width: 640px; }
.modal-head {
  display: flex; align-items: center;
  padding: 18px 22px 14px;
}
.modal-head h3 { font-size: 15.5px; font-weight: 620; }
.modal-head .x {
  margin-left: auto;
  border: 0; background: transparent; cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  color: var(--muted);
}
.modal-head .x:hover { background: #f2f4f8; color: var(--ink); }
.modal-body { padding: 4px 22px 8px; overflow-y: auto; }
.modal-foot {
  display: flex; gap: 8px; justify-content: flex-end;
  padding: 16px 22px 18px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.confirm-text { font-size: 13.5px; color: var(--ink2); line-height: 1.7; }
.confirm-text b { color: var(--ink); }

/* ============================================================
   Toast
   ============================================================ */
.toast-root {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px;
  z-index: 90;
  pointer-events: none;
  align-items: center;
}
.toast {
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 16px 40px -14px rgba(15, 23, 42, .6);
  animation: toastIn .22s ease;
  max-width: 86vw;
  display: flex; align-items: center; gap: 8px;
}
.toast.err { background: #9f1239; }
.toast.ok { background: #065f46; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============================================================
   杂项
   ============================================================ */
.section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  margin: 22px 0 10px;
}
.section-title .right { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--muted); }

.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }

.link-btn {
  border: 0; background: transparent; padding: 0;
  color: var(--brand); cursor: pointer; font-size: inherit;
}
.link-btn:hover { text-decoration: underline; }

.avatar-sm {
  width: 26px; height: 26px; border-radius: 50%;
  background: #eef4ff; color: var(--brand-dark);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600; flex: none;
}
.who { display: flex; align-items: center; gap: 8px; }

.danger-text { color: var(--bad); }

.scroll-y { max-height: 420px; overflow-y: auto; }

/* ============================================================
   组织架构：分公司 → 部门
   ============================================================ */
.org-dot {
  width: 8px; height: 8px; border-radius: 3px;
  flex: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.org-depts {
  border-top: 1px solid var(--line);
  padding: 4px 0 6px;
}

.org-dept {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 36px;
  position: relative;
  font-size: 13px;
  border-bottom: 1px solid #f5f7fb;
}
.org-dept:last-child { border-bottom: 0; }
.org-dept:hover { background: #fafbfd; }

.org-dept-line {
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #e3e8f1;
}
.org-dept:first-child .org-dept-line { top: 50%; }
.org-dept:last-child .org-dept-line { bottom: 50%; }
.org-dept-line::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 50%;
  width: 9px;
  height: 1px;
  background: #e3e8f1;
}

.org-dept-name {
  font-weight: 550;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.org-dept-stat {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.org-dept-act {
  margin-left: auto;
  display: flex;
  gap: 12px;
  white-space: nowrap;
}

.org-empty {
  padding: 16px 18px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .org-dept { padding-left: 30px; flex-wrap: wrap; row-gap: 4px; }
  .org-dept-line { left: 18px; }
  .org-dept-stat { margin-left: 0; }
  .org-dept-act { margin-left: auto; }
  .org-branch .card-head { flex-wrap: wrap; row-gap: 8px; }
  .org-branch .card-head .right { margin-left: 0; width: 100%; }
}

.m-only { display: none; }
.cell-lbl { display: none; }

/* ============================================================
   手机端：登记表改为卡片
   ============================================================ */
@media (max-width: 760px) {
  .m-only { display: inline; }

  .entry-tbl { display: block; width: 100%; }
  .entry-tbl thead { display: none; }
  .entry-tbl tbody { display: block; width: 100%; }
  .entry-tbl tr {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 10px;
    padding: 14px 15px;
    border-bottom: 1px solid var(--line);
    box-sizing: border-box;
  }
  .entry-tbl tbody tr:last-child { border-bottom: 0; }
  .entry-tbl tbody tr:hover { background: transparent; }
  .entry-tbl td,
  .entry-tbl td.r,
  .entry-tbl td.c {
    display: block;
    min-width: 0;
    padding: 0;
    text-align: left;
    border-left: 0;
  }
  .entry-tbl td.e-acc { grid-column: 1 / -1; }
  .entry-tbl td.e-owner { display: none; }
  .entry-tbl td.grp.muted { display: none; }
  .entry-tbl .cell-lbl {
    display: block;
    font-size: 10.5px;
    color: var(--muted);
    margin-bottom: 3px;
    letter-spacing: .01em;
    font-weight: 400;
    white-space: nowrap;
  }
  .entry-tbl input.cell-in {
    width: 100%;
    text-align: left;
    padding: 7px 8px;
    font-size: 14px;
    background: #f7f9fc;
  }
  .entry-tbl td[data-label="昨日粉丝"],
  .entry-tbl td[data-delta="f"],
  .entry-tbl td[data-label="昨日群数"],
  .entry-tbl td[data-delta="g"] {
    font-size: 14px;
    font-weight: 600;
    padding-top: 15px;
  }

  .save-bar {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 10px 12px;
    gap: 8px;
  }
  .save-bar .sb-info { display: none; }
  .save-bar .btn { flex: 1; }
  .toast-root { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }

  .card-head { flex-wrap: wrap; row-gap: 8px; }
  .toolbar { gap: 7px; }
  .toolbar .grow { flex-basis: 100%; height: 0; }
  .search-box { flex: 1 1 100%; }
  .search-box .input-sm { width: 100%; }
  .kpi-value { font-size: 23px; }
  .page-sub { display: none; }
  .modal-foot { padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .invite-box { flex-direction: column; align-items: stretch; }
  .invite-input { font-size: 12px; }
  .invite-facts div { flex-direction: column; gap: 2px; }
}

/* 打印/导出时隐藏 */
@media print {
  .sidebar, .topbar, .tb-actions, .toolbar, .save-bar { display: none !important; }
  .shell { display: block; }
  .view { padding: 0; }
  body { background: #fff; }
}

/* ============================================================
   手机端：数据表改卡片式（账号管理 / 数据汇总）
   ============================================================ */
@media (max-width: 760px) {
  .tbl.card-tbl { display: block; width: 100%; }
  .tbl.card-tbl thead { display: none; }
  .tbl.card-tbl tbody { display: block; width: 100%; }
  .tbl.card-tbl tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px 15px 14px;
    margin-bottom: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    box-sizing: border-box;
  }
  .tbl.card-tbl tbody tr:last-child { margin-bottom: 0; }
  .tbl.card-tbl tbody tr:hover { background: #fff; }
  .tbl.card-tbl tbody tr.row-me {
    border-color: #b9d0fb;
    background: linear-gradient(180deg, #f5f9ff, #fff);
    box-shadow: 0 1px 3px rgba(37, 99, 235, .1);
  }
  .tbl.card-tbl td {
    display: block;
    min-width: 0;
    padding: 0;
    text-align: left;
    border: 0;
  }
  /* 首列（账号名/人员名）作为卡片标题占满一行 */
  .tbl.card-tbl tbody tr > td:not([data-label]) {
    grid-column: 1 / -1;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--line);
  }
  .tbl.card-tbl td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 10.5px;
    color: var(--muted);
    margin-bottom: 3px;
    letter-spacing: .01em;
    font-weight: 400;
    white-space: nowrap;
  }
  .tbl.card-tbl td[data-label] { font-size: 13.5px; }
  .tbl.card-tbl td.grp.muted { display: none; }
  .tbl.card-tbl td.ft-sp { display: none; }

  /* 合计行 = 汇总卡片 */
  .tbl.card-tbl tfoot { display: block; }
  .tbl.card-tbl tfoot tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 16px;
    background: #f7f9fc;
    border: 0;
    border-radius: 14px;
    padding: 12px 15px 13px;
    box-sizing: border-box;
  }
  .tbl.card-tbl tfoot td {
    display: block;
    padding: 0;
    border: 0;
    text-align: left;
    background: transparent;
    font-size: 13.5px;
  }
  .tbl.card-tbl tfoot td::before {
    content: attr(data-label);
    display: block;
    font-size: 10.5px;
    color: var(--muted);
    margin-bottom: 3px;
    font-weight: 400;
  }
  .tbl.card-tbl tfoot td.ft-title {
    grid-column: 1 / -1;
    font-weight: 650;
    font-size: 13px;
    color: var(--ink);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line2);
  }
  .tbl.card-tbl tfoot td.ft-title::before { display: none; }
}

/* ============================================================
   弹窗体验优化：滚动锁 + 关闭动画 + 移动端防聚焦缩放
   ============================================================ */
body.modal-open { overflow: hidden; }

.modal-mask.closing { animation: fadeOut .14s ease forwards; pointer-events: none; }
.modal-mask.closing .modal { animation: sink .14s ease forwards; }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes sink { to { opacity: 0; transform: translateY(8px) scale(.99); } }

@media (max-width: 760px) {
  /* 低端机去掉毛玻璃，避免掉帧 */
  .modal-mask { backdrop-filter: none; background: rgba(10, 17, 30, .55); }
  /* 关闭按钮加大点击热区 */
  .modal-head .x { width: 40px; height: 40px; margin-left: auto; margin-right: -10px; }
  /* 表单控件 16px：iOS 聚焦时不再自动放大页面 */
  .field input, .field select, .field textarea,
  .modal input, .modal select, .modal textarea { font-size: 16px; }
  .search-box .input-sm, .toolbar .select-sm, .toolbar .input-sm { font-size: 16px; }
  .modal { max-height: calc(92vh - env(safe-area-inset-top, 0px)); }
}

/* ===== 待审核注册提示 ===== */
.nav-badge.is-review {
  background: #f97316;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, .16);
}
h3 .review-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 20px;
  background: #f97316;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}
.review-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 14px;
}
.review-banner .rb-ico {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f97316;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.review-banner .rb-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.review-banner .rb-text b { font-size: 13.5px; color: #7c2d12; font-weight: 600; }
.review-banner .rb-text span {
  font-size: 12px;
  color: #9a5b25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-banner .btn { margin-left: auto; flex: none; }
@media (max-width: 560px) {
  .review-banner { flex-wrap: wrap; }
  .review-banner .btn { margin-left: 38px; }
}

/* ===== 底部固定快捷导航（所有页面常驻） ===== */
.quick-dock {
  position: fixed;
  left: 232px;
  right: 0;
  bottom: 0;
  z-index: 34;
  display: flex;
  justify-content: center;
  padding: 0 16px calc(14px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.dock-inner {
  pointer-events: auto;
  width: min(660px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px -14px rgba(16, 24, 40, .32), 0 2px 6px rgba(16, 24, 40, .06);
}
.dock-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px 7px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink2);
  font: inherit;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.dock-btn svg { width: 19px; height: 19px; opacity: .82; }
.dock-btn:hover { background: var(--brand-soft); color: var(--brand-dark); }
.dock-btn:active { background: #e3edff; }
.dock-btn.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
}
.dock-btn.is-active svg { opacity: 1; color: var(--brand); }
.dock-btn.is-active::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}
.dock-dot {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(6px);
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 20px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  line-height: 15px;
  font-weight: 600;
  text-align: center;
}

/* 给页面底部留出导航条高度，避免内容被遮住 */
.view { padding-bottom: 108px; }

@media (max-width: 980px) {
  .quick-dock { left: 0; padding: 0 10px calc(10px + env(safe-area-inset-bottom)); }
  .dock-inner { width: 100%; }
  .view { padding-bottom: 100px; }
}
@media print {
  .quick-dock { display: none; }
  .view { padding-bottom: 0; }
}

/* 自动同步账号的输入框：禁用态始终灰显（覆盖 has-val 白底） */
.entry-tbl input.cell-in:disabled.has-val,
.entry-tbl input.cell-in:disabled { background: transparent !important; border-color: transparent !important; color: #98a2b3; cursor: not-allowed; }
