/* assets/css/base.css — split from index.html */

:root {
  --primary: #165DFF;
  --primary-hover: #4080FF;
  --primary-light: #E8F3FF;
  --bg: #F2F3F5;
  --card: #fff;
  --text: #1D2129;
  --text2: #4E5969;
  --text3: #86909C;
  --border: #E5E6EB;
  --danger: #F53F3F;
  --success: #00B42A;
  --header-h: 60px;
  --tabs-h: 44px;
  --sider-w: 200px;
  --font: "Microsoft YaHei", "微软雅黑", "PingFang SC", SimHei, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 14px; color: var(--text); background: var(--bg);
}

body.admin-body { height: 100vh; overflow: hidden; }

/* 鉴权完成前不展示登录框，避免刷新闪登录 */
.auth-boot {
  display:flex; align-items:center; justify-content:center; height:100vh;
  background:linear-gradient(180deg,#f7f8fa,#eef2ff); color:#86909C; font-size:14px;
}

.auth-boot.is-hide { display:none !important; }

/* 登录 */
.login-wrap {
  display:none; align-items:center; justify-content:center; height:100vh;
  background:linear-gradient(180deg,#f7f8fa,#eef2ff);
}

.login-wrap.is-show { display:flex; }

.login-box { width:380px; background:#fff; border-radius:12px; padding:28px 32px; box-shadow:0 8px 30px rgba(22,93,255,.08); border:1px solid var(--border); }

.login-box .login-brand {
  display:flex; justify-content:center; align-items:center; margin-bottom:8px;
}
.login-box .login-brand img {
  display:block; height:40px; width:auto; max-width:180px; object-fit:contain;
}

.login-box h2 { text-align:center; font-size:22px; margin-bottom:4px; color:var(--text); }

.login-box .sub { text-align:center; color:var(--text3); margin-bottom:16px; font-size:13px; }

.login-box input { width:100%; height:40px; border:1px solid var(--border); border-radius:8px; padding:0 12px; margin-bottom:10px; font-size:14px; background:#F7F8FA; }

.login-box input:focus { outline:none; border-color:var(--primary); background:#fff; }

.login-box button { width:100%; height:40px; border:none; border-radius:8px; background:var(--primary); color:#fff; font-size:15px; cursor:pointer; margin-top:4px; }

.login-box button:hover { background:var(--primary-hover); }

.login-box button:disabled { opacity:.65; cursor:not-allowed; }

.login-box .hint { margin-top:10px; text-align:center; }

.app { display:none; height:100vh; }

/* 顶栏 */
.topbar {
  position:fixed; z-index:100; left:0; top:0; width:100%; height:var(--header-h);
  background:#fff; border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
  padding:0 20px; box-sizing:border-box;
  user-select:none;
}

.brand { display:flex; align-items:center; gap:10px; }

.brand-mark {
  display:block; height:28px; width:auto; max-width:140px;
  object-fit:contain;
}

.brand-logo { width:24px; height:24px; display:block; }

.brand-text { font-size:20px; font-weight:700; color:#374151; letter-spacing:.5px; }

.brand-build {
  margin-left:8px; font-size:11px; font-weight:400; color:#86909C;
  background:#F2F3F5; border-radius:4px; padding:2px 6px; line-height:16px;
}

.brand-meta {
  margin-left:8px;
  display:flex; flex-direction:column; justify-content:center; gap:0;
  min-height:0; padding:2px 10px; box-sizing:border-box;
  background:#F2F3F5; border-radius:6px;
}
.brand-meta-title {
  font-size:12px; font-weight:600; color:#4E5969; line-height:16px;
  white-space:nowrap; letter-spacing:0.3px;
}
.brand-meta-date {
  font-size:11px; font-weight:400; color:#86909C; line-height:14px;
  white-space:nowrap;
}

.header-right { display:flex; align-items:center; gap:10px; }

/* 侧栏 */
.sider {
  position:fixed; z-index:99; left:0; top:0; width:var(--sider-w); height:100%;
  padding-top:var(--header-h); background:#fff; border-right:1px solid var(--border);
  overflow-y:auto;
  scrollbar-width:thin; scrollbar-color:#B0B4BC transparent;
}
.sider::-webkit-scrollbar { width:6px; }
.sider::-webkit-scrollbar-track { background:transparent; }
.sider::-webkit-scrollbar-thumb {
  background:#B0B4BC; border-radius:6px;
}
.sider::-webkit-scrollbar-thumb:hover { background:#86909C; }

.menu { padding:12px 8px 20px 12px; }

.menu-group { margin-bottom:6px; }

.menu-group-hd {
  display:flex; align-items:center; gap:8px;
  height:42px; padding:0 8px 0 10px; border-radius:4px; cursor:pointer;
  color:#1D2129; font-size:15px; font-weight:600;
}

.menu-group-hd:hover { background:#F7F8FA; }

.menu-group-hd .menu-hd-left { display:inline-flex; align-items:center; gap:8px; flex:1; min-width:0; }

.menu-group-hd .menu-ico {
  width:16px; height:16px; flex-shrink:0; color:#1D2129; opacity:1;
}

.menu-group-hd .caret { width:12px; height:12px; color:#1D2129; opacity:.55; transition:transform .2s; flex-shrink:0; }

.menu-group-hd.open .caret { transform:rotate(180deg); }

.menu-sub { padding:2px 0 6px; display:flex; flex-direction:column; gap:2px; }

.menu-item {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  width:100%; text-align:left; border:none; background:transparent;
  height:38px; padding:0 10px 0 34px; border-radius:4px; cursor:pointer;
  color:var(--text2); font-size:15px; margin:0; line-height:38px;
  box-sizing:border-box; position:relative; z-index:0;
}

.menu-item::before {
  content:''; position:absolute; left:0; right:0; top:1px; bottom:1px;
  border-radius:4px; background:transparent; z-index:-1; pointer-events:none;
}

.menu-item:hover { color:var(--text); }
.menu-item:hover::before { background:#F7F8FA; }

.menu-item.on { color:var(--primary); font-weight:500; }
.menu-item.on::before { background:var(--primary-light); }

.menu-item .menu-item-lab { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.form-row label.pick-item {
  display:flex; align-items:center; gap:8px; margin-bottom:0;
  padding:6px 8px; border-radius:8px; cursor:pointer;
  font-size:14px; color:#1D2129; line-height:22px;
}

.form-row input:not([type="checkbox"]):not([type="radio"]), .form-row select, .form-row textarea {
  width:100%; height:36px; border:1px solid var(--border); border-radius:8px; padding:0 12px; font-size:14px; color:var(--text); background:#fff;
  font-family:inherit; transition:border-color .15s ease;
}

.form-row .pick-item input[type="checkbox"] {
  width:14px; height:14px; margin:0; padding:0; border:none; border-radius:0;
  flex-shrink:0; accent-color:var(--primary); cursor:pointer;
}

/* 主区 */
.main {
  margin-left:var(--sider-w); margin-top:var(--header-h);
  height:calc(100vh - var(--header-h)); overflow:auto; padding:0;
  display:flex; flex-direction:column; box-sizing:border-box;
}

.page-chrome {
  position:sticky; top:0; z-index:20; flex-shrink:0;
  height:44px;
  background:#fff; border-bottom:1px solid var(--border);
  display:flex; align-items:center; gap:8px; padding:0 10px 0 12px; box-sizing:border-box;
}

.page-tabs {
  display:flex; align-items:center; gap:6px;
  height:100%; flex:1; min-width:0; overflow-x:auto; overflow-y:hidden;
  scrollbar-width:thin; scrollbar-color:#C9CDD4 transparent;
}
.page-tabs::-webkit-scrollbar { height:3px; }
.page-tabs::-webkit-scrollbar-thumb { background:#C9CDD4; border-radius:4px; }

.page-tab {
  display:inline-flex; align-items:center; gap:4px;
  max-width:180px; height:30px; padding:0 4px 0 10px;
  border:none; border-radius:4px; background:transparent;
  color:#4E5969; font-size:14px; line-height:1; cursor:pointer;
  box-sizing:border-box; flex-shrink:0; user-select:none;
}
.page-tab:hover { color:#1D2129; background:#F7F8FA; }
.page-tab.on {
  background:var(--primary-light); color:var(--primary);
  font-weight:500; box-shadow:none; border:none;
}
.page-tab-lab {
  min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.page-tab-close {
  flex-shrink:0; width:18px; height:18px; padding:0; border:none; border-radius:3px;
  background:transparent; color:#86909C; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:16px; line-height:1; font-family:inherit; opacity:.85;
}
.page-tab:hover .page-tab-close { opacity:1; color:#4E5969; }
.page-tab-close:hover { color:#F53F3F !important; background:rgba(245,63,63,.1); }
.page-tab.on .page-tab-close { color:#94BFFF; opacity:1; }
.page-tab.on .page-tab-close:hover { color:#F53F3F !important; background:rgba(245,63,63,.12); }

.page-tabs-clear {
  flex-shrink:0; height:28px; padding:0 10px; border:none; border-radius:4px;
  background:transparent; color:#86909C; font-size:13px; line-height:28px;
  cursor:pointer; white-space:nowrap;
}
.page-tabs-clear:hover { color:#F53F3F; background:rgba(245,63,63,.08); }

.main-body {
  flex:1; min-height:0; padding:16px; box-sizing:border-box;
}

.page { display:none; }

.page.active { display:block; }

.card {
  background:var(--card); border-radius:6px; padding:16px; min-height:calc(100vh - var(--header-h) - var(--tabs-h) - 32px);
}

.card-toolbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; gap:12px; flex-wrap:wrap; }

.card-toolbar h3 { font-size:16px; font-weight:600; margin:0; }

.card-toolbar-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }

.card-toolbar-main {
  display:flex; flex-direction:column; justify-content:center; gap:2px; min-width:0; flex:1 1 auto;
}

.card-toolbar-main .card-desc {
  margin:0; color:var(--text3); font-size:13px; line-height:18px;
}

.sub-hint { color:var(--text3); font-size:13px; font-weight:400; }

.card-desc { margin:0; color:var(--text3); font-size:13px; line-height:18px; }

.modal.modal-member-group { width:320px; max-width:calc(100vw - 48px); }

.modal-member-group .modal-header { padding:18px 24px; }

.modal-member-group .modal-body { padding:24px; }

.modal-member-group .modal-footer { padding:16px 24px; }

.modal-member-group .form-row-inline {
  display:flex; align-items:center; gap:8px;
}

.modal-member-group .form-row-inline label {
  flex-shrink:0; width:auto; margin:0; color:#86909C; font-size:14px; white-space:nowrap;
}

.modal-member-group .form-row-inline input {
  flex:1; min-width:0; height:36px; border:1px solid var(--border); border-radius:8px;
  padding:0 12px; font-size:14px; background:#F7F8FA; font-family:inherit;
}

.modal-member-group .form-row-inline input:focus {
  outline:none; border-color:var(--primary); background:#fff;
}

.tag-chip-row { display:flex; flex-wrap:wrap; gap:6px; }

.tag-chip {
  display:inline-flex; align-items:center; height:28px; padding:0 10px; background:#F2F3F5;
  color:#1D2129; border-radius:4px; font-size:12px; line-height:28px; box-sizing:border-box;
}

.tag-chip.on { background:var(--primary-light); color:var(--primary); }

.tag-chip.pickable { cursor:pointer; border:1px solid transparent; }

.tag-chip.pickable:hover { border-color:#94BFFF; }

.tag-chip.picked { background:var(--primary-light); color:var(--primary); border-color:var(--primary); }

.tag-chip .x {
  margin-left:6px; border:none; background:transparent; color:#86909C; cursor:pointer;
  font-size:14px; line-height:1; padding:0;
}

.tag-chip .x:hover { color:#F53F3F; }

.modal.modal-tag-group { width:440px; max-width:calc(100vw - 48px); }

.modal-tag-group .tag-label-row {
  display:flex; align-items:center; justify-content:space-between; margin-bottom:6px;
}

.modal-tag-group .tag-label-row label { margin:0; }

.modal-tag-group .tag-add-btn {
  display:inline-flex; align-items:center; justify-content:center;
  height:24px; padding:0 6px; min-width:0; width:auto;
  border:1px solid var(--primary); border-radius:4px; background:#fff;
  color:var(--primary); font-size:12px; line-height:1; cursor:pointer; font-family:inherit;
  white-space:nowrap; flex:0 0 auto;
}

.modal-tag-group .tag-add-btn:hover { background:#E8F3FF; }

.tag-group-tags { display:flex; flex-direction:column; gap:8px; max-height:320px; overflow:auto; }

.tag-group-input-wrap {
  position:relative; flex:1; min-width:0;
}

.tag-group-input-wrap input {
  width:100%; height:36px; border:1px solid var(--border); border-radius:8px;
  padding:0 44px 0 12px; font-size:14px; background:#fff; font-family:inherit;
  box-sizing:border-box; color:var(--text);
}

.tag-group-input-wrap input:focus {
  outline:none; border-color:var(--primary); background:#fff;
}

.tag-group-input-wrap .cnt {
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  color:#C9CDD4; font-size:12px; line-height:1; pointer-events:none;
}

.tag-group-tag-row {
  display:flex; align-items:center; gap:8px;
}

.tag-group-tag-row .tag-del {
  flex-shrink:0; width:36px; height:36px; border:none; border-radius:8px;
  background:#F2F3F5; color:#4E5969; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; padding:0;
}

.tag-group-tag-row .tag-del:hover,
.tag-group-tag-row .tag-del:active {
  background:#E5E6EB;
}

.tag-group-tag-row .tag-del svg {
  display:block; width:14px; height:14px;
}

.remark-var-box {
  margin-top:12px; border:1px solid #E5E6EB; border-radius:8px; overflow:hidden;
  background:#F2F3F5;
}

.remark-var-opts {
  display:flex; flex-wrap:wrap; gap:8px; align-items:center; padding:10px 12px;
  background:transparent;
}

.remark-var-opts .lab { font-size:12px; color:#86909C; margin-right:2px; }

.remark-var-opt {
  height:28px; padding:0 12px; border:1px solid #E5E6EB; border-radius:4px;
  background:#fff; color:#1D2129; font-size:13px; line-height:26px;
  cursor:pointer; font-family:inherit;
}

.remark-var-opt:hover { border-color:#165DFF; color:#165DFF; }

.remark-var-opt.on { border-color:#165DFF; color:#165DFF; background:#E8F3FF; }

.remark-var-selected {
  display:flex; flex-wrap:wrap; gap:8px; align-items:center;
  min-height:44px; padding:8px 12px; border-top:1px solid #E5E6EB;
  background:#fff; box-sizing:border-box;
}

.remark-var-selected .empty-tip {
  padding:0; margin:0; font-size:12px; color:#86909C; line-height:28px;
}

.remark-var-chip {
  display:inline-flex; align-items:center; gap:2px; height:28px; padding:0 4px 0 10px;
  border-radius:4px; background:#F2F3F5; font-size:13px; color:#1D2129; line-height:28px;
  border:none;
}

.remark-var-chip .x {
  border:none; background:transparent; color:#86909C; cursor:pointer;
  font-size:14px; line-height:1; padding:0 6px; font-family:inherit;
}

.remark-var-chip .x:hover { color:#F53F3F; }

.remark-var-sep {
  color:#86909C; font-size:13px; line-height:28px; user-select:none;
}

.tag-pick-groups { max-height:360px; overflow:auto; }

.tag-pick-group { margin-bottom:14px; }

.tag-pick-group h4 { margin:0 0 8px; font-size:13px; color:#86909C; font-weight:500; }

.status-off { background:#F2F3F5; color:#86909C; }

.modal.modal-tag-pick { width:480px; max-width:calc(100vw - 48px); }

.hint { color:var(--text3); font-size:13px; line-height:1.6; }

.empty {
  padding:48px 0; text-align:center; color:var(--text3); font-size:15px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px;
}

.empty-ico {
  width:64px; height:64px; line-height:0; flex-shrink:0;
}

.empty-ico svg { width:64px; height:64px; display:block; }

.table-empty-tip {
  text-align:center !important; color:var(--text3); padding:48px 12px !important;
  overflow:visible !important; white-space:normal !important;
}

.table-empty-box {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px;
  color:var(--text3); font-size:14px; line-height:1.5;
}

.table-empty-box .empty-ico { width:64px; height:64px; }

.table-empty-box .empty-ico svg { width:64px; height:64px; display:block; }

.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:4px;
  height:32px; padding:0 16px; border-radius:4px; border:1px solid transparent;
  font-size:14px; cursor:pointer; background:#fff; color:var(--text); line-height:1;
}

.btn-primary { background:var(--primary); border-color:var(--primary); color:#fff; }

.btn-primary:hover { background:var(--primary-hover); border-color:var(--primary-hover); }

.btn-default { border-color:var(--border); }

.btn-default:hover { color:var(--primary); border-color:var(--primary); }

.btn-danger { background:var(--danger); border-color:var(--danger); color:#fff; }

.btn-success { background:var(--success); border-color:var(--success); color:#fff; }

.btn-warn { background:#614bed; border-color:#614bed; color:#fff; }

.btn-warn:hover { background:#5239d4; border-color:#5239d4; }

.btn-pause { background:#86909C; border-color:#86909C; color:#fff; }

.btn-pause:hover { background:#6B7785; border-color:#6B7785; }

.btn-copy { background:#00AED1; border-color:#00AED1; color:#fff; }

.btn-copy:hover { background:#0098B8; border-color:#0098B8; }

.btn-cross-copy { padding:0 12px; }

.btn-sm { height:28px; padding:0 12px; font-size:13px; }

.btn:disabled { opacity:.55; cursor:not-allowed; }

/* 与确认提交一致：主操作按钮 */
.btn-cta {
  height:32px !important; min-height:32px; min-width:88px; padding:0 16px !important;
  border-radius:4px !important; font-size:14px !important; font-weight:500;
  display:inline-flex !important; align-items:center; justify-content:center;
  line-height:1 !important; text-align:center; box-sizing:border-box;
  flex-shrink:0; gap:4px; letter-spacing:0;
}

table { width:100%; border-collapse:collapse; }

th, td {
  padding:12px 16px; border-bottom:1px solid var(--border);
  text-align:left; vertical-align:middle;
  font-family: inherit;
}

th {
  color:#1D2129; font-weight:600; background:#F5F5F5;
  font-size:14px; line-height:22px;
}

td { color:var(--text); font-size:14px; line-height:22px; }

td.mono-id {
  font-family: inherit;
  font-size:14px;
  letter-spacing:0;
  word-break:break-all;
}

.qr-img { width:64px; height:64px; object-fit:contain; border:1px solid var(--border); border-radius:4px; }

.status {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:52px; padding:0 8px; height:22px; line-height:22px;
  border-radius:2px; font-size:12px; box-sizing:border-box; text-align:center;
}

.status-1, .status-0 { background:#E8FFEA; color:#00B42A; }

.status-0 { background:#F2F3F5; color:var(--text3); }

.status-2 { background:#FFECE8; color:var(--danger); }

.status-3 { background:#FFF7E8; color:#FF7D00; }

.status-fail-wrap {
  position:relative; display:inline-flex; align-items:center; cursor:default;
}

.status-fail-tip {
  display:none; position:absolute; left:0; bottom:calc(100% + 8px);
  z-index:40; min-width:160px; max-width:280px; padding:8px 10px;
  background:#1D2129; color:#fff; font-size:12px; line-height:18px; font-weight:400;
  border-radius:6px; box-shadow:0 6px 16px rgba(0,0,0,.16);
  white-space:normal; word-break:break-word; pointer-events:none;
}

.status-fail-tip::after {
  content:''; position:absolute; left:14px; top:100%;
  border:6px solid transparent; border-top-color:#1D2129;
}

.status-fail-wrap:hover .status-fail-tip { display:block; }

.msg-type { display:inline-block; padding:0 6px; height:20px; line-height:20px; background:#F2F3F5; border-radius:2px; font-size:12px; color:var(--text2); }

/* 下拉 */
.tenant-dd, .admin-dd { position:relative; }

.tenant-dd-btn, .admin-dd-btn {
  display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 10px;
  border:1px solid var(--border); border-radius:4px; background:#fff; color:var(--text); cursor:pointer; font-size:13px; max-width:200px;
}

.tenant-dd-btn:hover, .admin-dd-btn:hover { border-color:var(--primary); color:var(--primary); }

.tenant-label { max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.tenant-icon, .admin-avatar-icon, .tenant-dd-caret, .admin-dd-caret { width:14px; height:14px; opacity:.8; flex-shrink:0; }

.admin-dd-btn {
  border:none; padding:0; background:transparent; height:auto; max-width:none;
}

.admin-dd-btn:hover { border:none; color:inherit; }

.admin-avatar {
  width:32px; height:32px; border-radius:50%; background:var(--primary); color:#fff;
  display:inline-flex; align-items:center; justify-content:center;
  overflow:hidden; flex-shrink:0;
}
.admin-avatar img { width:100%; height:100%; object-fit:cover; display:block; }

.tenant-dd-menu {
  display:none; position:absolute; right:0; top:calc(100% + 6px); min-width:220px;
  background:#fff; border:1px solid var(--border); border-radius:8px;
  box-shadow:0 8px 28px rgba(0,0,0,.12); padding:8px; z-index:10000;
}

.tenant-dd-menu.show { display:block; }

.tenant-dd-menu .tenant-co-item {
  display:flex; width:100%; align-items:center; gap:10px; border:none; background:transparent;
  padding:10px 12px; border-radius:6px; cursor:pointer; text-align:left; color:#1D2129; font-size:14px;
  box-sizing:border-box;
}

.tenant-dd-menu .tenant-co-item:hover { background:#F7F8FA; }

.tenant-dd-menu .tenant-co-item.current {
  color:var(--primary); background:#F0F5FF;
}

.tenant-dd-menu .tenant-co-name {
  flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  font-weight:500; line-height:20px;
}

.tenant-dd-menu .tenant-co-check {
  width:16px; height:16px; flex-shrink:0; color:var(--primary);
}

.tenant-dd-foot {
  margin-top:6px; padding-top:8px; border-top:1px solid #EBEEF5;
}

.tenant-dd-bind {
  display:flex; width:100%; align-items:center; justify-content:center; gap:8px;
  height:36px; border:none !important; border-radius:6px; cursor:pointer;
  background:var(--primary) !important; color:#fff !important; font-size:14px; font-weight:500;
  font-family:inherit; box-sizing:border-box; padding:0 12px !important;
}

.tenant-dd-menu .tenant-dd-bind:hover,
.tenant-dd-menu .tenant-dd-bind:focus,
.tenant-dd-menu .tenant-dd-bind:active {
  background:var(--primary) !important; color:#fff !important;
}

.tenant-dd-bind .tenant-dd-bind-ico {
  width:18px; height:18px; flex-shrink:0; display:block;
}

.tenant-dd-bind span { color:#fff !important; }

.admin-dd-menu {
  position:absolute; right:0; top:calc(100% + 4px); min-width:200px; z-index:10000;
  background:#fff; border:1px solid var(--border); border-radius:8px;
  box-shadow:0 8px 28px rgba(0,0,0,.12); padding:0; overflow:hidden;
  opacity:0; visibility:hidden; pointer-events:none;
  transform: translateY(-10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.admin-dd-menu.show {
  opacity:1; visibility:visible; pointer-events:auto;
  transform: translateY(0);
}

.tenant-dd-menu button, .admin-dd-menu button {
  display:flex; width:100%; align-items:center; gap:8px; border:none; background:transparent;
  padding:8px 10px; border-radius:4px; cursor:pointer; text-align:left; color:var(--text); font-size:13px;
}

.admin-dd-menu button {
  border-radius:0; padding:12px 16px; gap:10px; color:#1D2129; font-size:14px;
}

.admin-dd-hd {
  display:flex; align-items:center; gap:10px; padding:14px 16px;
}

.admin-dd-hd .admin-avatar { width:36px; height:36px; flex-shrink:0; }

.admin-dd-user {
  font-size:14px; font-weight:500; color:#1D2129; line-height:20px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

.admin-dd-sep { height:1px; background:#EBEEF5; margin:0; border:none; }

.admin-dd-ico {
  width:18px; height:18px; flex-shrink:0; color:#86909C;
}

.admin-dd-menu button:hover { background:#F7F8FA; }

.empty-tip { padding:10px; color:var(--text3); font-size:12px; }

/* 表单 / 弹窗 */
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px 16px; }

.form-row { margin-bottom:14px; }

.form-row label { display:block; margin-bottom:6px; color:var(--text); font-size:14px; }

.form-row input:not([type="checkbox"]):not([type="radio"]), .form-row select, .form-row textarea {
  width:100%; height:36px; border:1px solid var(--border); border-radius:8px; padding:0 12px; font-size:14px; color:var(--text); background:#fff;
  font-family:inherit; transition:border-color .15s ease;
}

.form-row select {
  padding-right:36px;
  cursor:pointer;
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2386909C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.5L6 6l4.5-4.5'/%3E%3C/svg%3E") no-repeat right 12px center;
}

.form-row select::-ms-expand { display:none; }

.form-row select:hover { border-color:#C9CDD4; }

.form-row textarea { height:88px; padding:8px 12px; resize:vertical; }

.form-row input:not([type="checkbox"]):not([type="radio"]):focus, .form-row select:focus, .form-row textarea:focus { outline:none; border-color:var(--primary); }

.form-row select:focus {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23165DFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.5L6 6l4.5-4.5'/%3E%3C/svg%3E");
}

/* 自定义下拉（可美化选项弹层） */
.form-select { position:relative; }

.form-select-btn {
  width:100%; height:36px; box-sizing:border-box;
  border:1px solid var(--border); border-radius:8px;
  padding:0 36px 0 12px; font-size:14px; color:var(--text); background:#fff;
  font-family:inherit; cursor:pointer; text-align:left;
  display:flex; align-items:center; position:relative;
  transition:border-color .15s ease;
}

.form-select-btn:hover { border-color:#C9CDD4; }

.form-select.open .form-select-btn { border-color:var(--primary); }

.form-select-caret {
  position:absolute; right:12px; top:50%; width:12px; height:12px;
  color:var(--text3); pointer-events:none;
  transform:translateY(-50%);
  transition:transform .15s ease, color .15s ease;
}

.form-select.open .form-select-caret {
  color:var(--primary);
  transform:translateY(-50%) rotate(180deg);
}

.form-select-menu {
  position:absolute; left:0; right:0; top:calc(100% + 4px); z-index:40;
  background:#fff; border:1px solid var(--border); border-radius:8px;
  box-shadow:0 8px 24px rgba(0,0,0,.1); padding:4px;
  opacity:0; visibility:hidden; pointer-events:none;
  transform:translateY(-6px);
  transition:opacity .15s ease, transform .15s ease, visibility .15s;
}

.form-select.open .form-select-menu {
  opacity:1; visibility:visible; pointer-events:auto;
  transform:translateY(0);
}

.form-select-menu button {
  display:block; width:100%; box-sizing:border-box;
  border:none; background:transparent; padding:8px 10px; border-radius:6px;
  cursor:pointer; text-align:left; color:var(--text); font-size:14px; font-family:inherit;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

.form-select-menu button:hover { background:transparent; color:var(--primary); }

.form-select-menu button.current { color:var(--primary); background:var(--primary-light); font-weight:500; }

.form-select-menu button.current:hover { background:var(--primary-light); color:var(--primary); }

.modal.dd-open, .modal-body.dd-open { overflow:visible; }

.callback-row { display:flex; gap:8px; align-items:center; }

.callback-row code {
  flex:1; min-width:0; height:36px; box-sizing:border-box;
  display:flex; align-items:center;
  background:#F7F8FA; border:1px solid var(--border); border-radius:8px;
  padding:0 12px; font-size:14px; line-height:1.4; color:var(--primary);
  font-family:inherit; word-break:break-all;
}

.callback-row .btn {
  height:36px; padding:0 16px; border-radius:8px; font-size:14px; flex-shrink:0;
}

.modal-mask { position:fixed; inset:0; background:rgba(29,33,41,.45); z-index:2000; display:flex; align-items:center; justify-content:center; padding:24px; }

.modal { width:640px; max-width:100%; max-height:calc(100vh - 48px); background:#fff; border-radius:8px; box-shadow:0 8px 40px rgba(0,0,0,.12); display:flex; flex-direction:column; overflow:hidden; }

.modal-header { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--border); }

.modal-header h3 { margin:0; font-size:16px; font-weight:600; }

.modal-close { width:28px; height:28px; border:none; background:transparent; cursor:pointer; font-size:18px; color:var(--text3); border-radius:4px; }

.modal-close:hover { background:#F2F3F5; color:var(--text); }

.modal-body { flex:1; overflow:auto; padding:20px; }

.modal-footer {
  display:flex; align-items:center; justify-content:flex-end; flex-wrap:nowrap; gap:8px;
  padding:12px 20px; border-top:1px solid var(--border); background:#F7F8FA;
  box-sizing:border-box;
}

.modal-footer .btn {
  height:32px; min-width:0; width:auto; padding:0 16px; border-radius:4px;
  font-size:14px; font-weight:500; line-height:1; white-space:nowrap; flex:0 0 auto;
}

.confirm-mask { z-index:3400; }

.modal.confirm-modal { width:280px; max-width:calc(100vw - 48px); }

.confirm-modal .modal-header {
  justify-content:center; position:relative;
}

.confirm-modal .modal-header h3 {
  width:100%; text-align:center; padding:0 28px; box-sizing:border-box;
}

.confirm-modal .modal-close {
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
}

.confirm-modal .modal-body {
  text-align:center;
}

.confirm-modal-msg {
  margin:0; font-size:14px; line-height:24px; color:#1D2129;
  white-space:pre-wrap; word-break:break-word; text-align:center;
}

.confirm-modal .modal-footer {
  justify-content:flex-end;
}

.hint-link {
  color:var(--primary); margin-left:0; cursor:pointer; text-decoration:none; font-size:inherit;
  background:none; border:none; padding:0; font-family:inherit; vertical-align:baseline;
}

.hint-link:hover { text-decoration:underline; }

.cron-guide-lead { color:#4E5969; font-size:14px; line-height:22px; margin:0 0 16px; }

.cron-guide-step { margin:0 0 16px; }

.cron-guide-step .t {
  display:flex; align-items:center; gap:8px; font-size:14px; font-weight:600; color:#1D2129; margin-bottom:8px;
}

.cron-guide-step .t .n {
  display:inline-flex; align-items:center; justify-content:center;
  width:20px; height:20px; border-radius:50%; background:var(--primary-light); color:var(--primary);
  font-size:12px; font-weight:600; flex-shrink:0;
}

.cron-guide-step .d { color:#4E5969; font-size:13px; line-height:22px; margin:0 0 8px; padding-left:28px; }

.cron-guide-code {
  margin-left:28px; background:#F7F8FA; border:1px solid var(--border); border-radius:6px;
  padding:10px 64px 10px 12px; font-size:12px; color:var(--primary); word-break:break-all; line-height:20px;
  font-family:Consolas, Monaco, "Courier New", monospace; position:relative;
}

.cron-guide-code .copy-mini {
  position:absolute; right:8px; top:8px; background:#fff; color:var(--primary);
  border:1px solid var(--border); border-radius:4px; height:24px; padding:0 8px; font-size:12px; cursor:pointer;
}

.cron-guide-code .copy-mini:hover { border-color:var(--primary); }

.cron-guide-tip {
  margin:0; padding:10px 12px; background:#FFF7E8; border:1px solid #FFE4BA; border-radius:6px;
  color:#AD6800; font-size:13px; line-height:20px;
}

.member-box { border:1px solid var(--border); border-radius:4px; padding:8px 10px; max-height:220px; overflow:auto; background:#F7F8FA; }

.member-box.empty-box { color:var(--text3); font-size:13px; }

.member-item { display:flex; align-items:center; gap:8px; padding:8px 6px; border-radius:4px; cursor:pointer; }

.member-item:hover { background:#fff; }

.member-item input { width:14px; height:14px; }

.member-item .m-name { color:var(--text); }

.member-item .m-uid { color:var(--text3); font-size:12px; }

.member-toolbar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:8px; }

.member-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }

.member-chip { display:inline-flex; padding:2px 10px; background:var(--primary-light); color:var(--primary); border-radius:999px; font-size:12px; }

.owner-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; align-items:center; }

.owner-tab {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  height:34px; padding:1px 14px 0; box-sizing:border-box;
  border:1px solid var(--border); border-radius:999px; background:#fff; color:#1D2129;
  cursor:pointer; font-size:14px; line-height:1; font-weight:500;
}

.owner-tab:hover { border-color:var(--primary); color:#1D2129; }

.owner-tab.on {
  background:var(--primary-light); border-color:var(--primary);
  color:#165DFF; font-weight:600;
}

.owner-tab .lab,
.owner-tab .cnt {
  display:inline-flex; align-items:center; justify-content:center;
  line-height:1; transform:translateY(1px);
}

.owner-tab .cnt { color:#1D2129; opacity:.85; font-size:14px; font-weight:400; }

.owner-tab.on .cnt { color:#165DFF; opacity:1; font-weight:400; }

.pager {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px;
  margin-top:14px; padding-top:12px; border-top:1px solid var(--border); color:var(--text2); font-size:13px;
}

.pager-btns { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }

.pager-btns .btn { min-width:32px; padding:0 10px; }

.pager-btns .page-num.on { background:var(--primary); border-color:var(--primary); color:#fff; }

.pager-jump {
  display:inline-flex; align-items:center; gap:6px; margin-left:4px;
  color:var(--text2); font-size:13px;
}

.pager-jump input {
  width:56px; height:28px; padding:0 6px; border:1px solid var(--border);
  border-radius:4px; text-align:center; font-size:13px; color:#1D2129;
}

.pager-jump input:focus { outline:none; border-color:var(--primary); }

.toast {
  position:fixed; top:80px; left:50%; transform:translateX(-50%); z-index:3000;
  padding:10px 18px; border-radius:4px; color:#fff; background:rgba(0,0,0,.75); display:none; font-size:14px;
}

.toast.show { display:block; }

.toast.success { background:#00B42A; }

.toast.error { background:#F53F3F; }

/* 自定义删除确认（类 Element Popconfirm） */
.popconfirm-mask {
  position:fixed; inset:0; z-index:3200; background:transparent;
}

.popconfirm {
  position:fixed; z-index:3201; min-width:230px; max-width:320px;
  padding:12px; background:#fff; border:1px solid #E5E6EB; border-radius:8px;
  box-shadow:0 4px 16px rgba(0,0,0,.12); box-sizing:border-box;
}

.popconfirm-main {
  display:flex; align-items:flex-start; gap:8px; margin-bottom:12px;
}

.popconfirm-ico {
  width:16px; height:16px; border-radius:50%; background:#FF7D00; color:#fff;
  font-size:12px; font-weight:700; line-height:16px; text-align:center;
  flex-shrink:0; margin-top:3px;
}

.popconfirm-msg {
  flex:1; font-size:14px; line-height:22px; color:#1D2129; word-break:break-word;
}

.popconfirm-actions {
  display:flex; justify-content:flex-end; gap:8px;
}

.popconfirm-actions .pc-btn {
  height:28px; padding:0 12px; border:none; border-radius:2px;
  font-size:13px; font-family:inherit; cursor:pointer; line-height:28px;
}

.popconfirm-actions .pc-cancel { background:#F2F3F5; color:#4E5969; }

.popconfirm-actions .pc-cancel:hover { background:#E5E6EB; }

.popconfirm-actions .pc-ok { background:#165DFF; color:#fff; }

.popconfirm-actions .pc-ok:hover { background:#4080FF; }

.popconfirm-arrow {
  position:absolute; left:50%; bottom:-5px; width:8px; height:8px;
  background:#fff; border-right:1px solid #E5E6EB; border-bottom:1px solid #E5E6EB;
  transform:translateX(-50%) rotate(45deg);
}

.popconfirm.arrow-top .popconfirm-arrow {
  bottom:auto; top:-5px; border:none;
  border-left:1px solid #E5E6EB; border-top:1px solid #E5E6EB;
}

.stub-box { padding:80px 20px; text-align:center; color:var(--text3); }

.stub-box h3 { color:var(--text); margin-bottom:8px; font-size:18px; }

.pick-box {
  margin-top:12px; border:1px solid var(--border); border-radius:10px; background:#FAFBFC;
  max-height:180px; overflow:auto; padding:8px;
}

.pick-item {
  display:flex; align-items:center; gap:8px; padding:6px 8px; border-radius:8px; cursor:pointer;
  font-size:14px; color:#1D2129; line-height:22px;
}

.pick-item:hover { background:#fff; }

.pick-item input { margin:0; flex-shrink:0; }

.pick-item-row { min-width:0; white-space:nowrap; }

.pick-item-row .pick-main {
  flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

.pick-item-row .pick-uid { color:#86909C; }

.pick-item-row .pick-count {
  flex-shrink:0; color:#4E5969; font-variant-numeric:tabular-nums;
}

.composer-action {
  display:inline-flex; align-items:center; justify-content:center; gap:5px;
  border:none; background:transparent; color:#165DFF; cursor:pointer;
  font-size:14px; line-height:1; height:24px; padding:0 8px; border-radius:3px;
  font-family:inherit; box-sizing:border-box; vertical-align:middle;
}

.composer-action:hover,
.composer-action:focus { background:#F2F3F5; outline:none; }

.composer-action .composer-ico {
  width:16px; height:16px; flex-shrink:0; display:block;
}

.composer-action .composer-ico-mat {
  width:18px; height:18px;
}

.composer-action .composer-lab {
  display:block; line-height:14px; font-size:14px; white-space:nowrap;
}

.composer-sep {
  width:1px; height:14px; background:#E5E6EB; margin:0 6px; flex-shrink:0;
}

.chat-img-box.has-img {
  width:120px; min-height:64px; max-height:140px; padding:0; overflow:hidden; background:#F5F5F5;
}

.chat-img-box.has-img img {
  width:100%; height:auto; max-height:140px; display:block; object-fit:cover;
}

.chat-card-cover.has-img {
  height:auto; min-height:0; max-height:none; background:#F5F5F5; margin:0 8px 8px; overflow:hidden;
  display:block;
}

.chat-card-cover.has-img img {
  width:100%; height:auto; max-height:none; display:block; object-fit:contain;
}

.chat-link-thumb.has-img { padding:0; overflow:hidden; }

.chat-link-thumb.has-img img { width:100%; height:100%; object-fit:cover; }

.content-tools {
  display:flex; justify-content:space-between; gap:12px; margin-top:10px; flex-wrap:wrap;
}

.content-tools .linkish {
  border:none; background:transparent; color:#165DFF; cursor:pointer;
  font-size:14px; line-height:22px; padding:0;
}

.content-tools .linkish:disabled { color:#C9CDD4; cursor:not-allowed; }

/* 分段 Tab：统一高度，灰底圆角 + 中间分隔线 */
.seg {
  display:inline-flex; align-items:center; flex-wrap:nowrap; gap:0;
  height:36px; padding:4px; border:none; background:#F2F3F5; border-radius:8px;
  box-sizing:border-box; vertical-align:middle;
}

.seg-btn {
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  height:28px; min-width:56px; padding:0 14px; border:none;
  background:transparent; color:#4E5969; cursor:pointer; font-size:14px;
  line-height:1; border-radius:6px; white-space:nowrap; margin:0;
  box-sizing:border-box; flex:0 0 auto;
}

/* 未选中项之间的竖向分隔线 */
.seg-btn:not(.on) + .seg-btn:not(.on)::before {
  content:''; position:absolute; left:0; top:50%; margin-top:-7px;
  width:1px; height:14px; background:#C9CDD4;
}

.seg-btn.on {
  background:#fff; color:#165DFF; font-weight:500;
  box-shadow:0 1px 2px rgba(0,0,0,.08);
  z-index:1;
}

.seg-btn:hover:not(.on):not(:disabled) { color:#165DFF; }

.seg-btn:disabled { cursor:default; opacity:1; }

.seg-btn:disabled:not(.on) { color:#86909C; }

.seg-btn.on:disabled { color:#165DFF; }

.btn-outline {
  display:inline-flex; align-items:center; justify-content:center;
  height:32px; padding:0 16px; border:1px solid #165DFF; background:#fff; color:#165DFF;
  border-radius:8px; cursor:pointer; font-size:14px; line-height:1;
}

.btn-outline:hover { background:#E8F3FF; }

.transfer-body { display:flex; gap:0; height:460px; padding:0 !important; background:#fff; }

.transfer-pane {
  flex:1; min-width:0; display:flex; flex-direction:column;
  border-right:1px solid #E5E6EB; padding:14px 16px;
  background:#fff;
}

.transfer-pane:last-child { border-right:none; }

.transfer-search {
  display:flex; align-items:center; gap:8px; margin-bottom:10px;
}

.transfer-search input {
  flex:1; min-width:0; height:32px; box-sizing:border-box;
  border:1px solid #E5E6EB !important;
  border-radius:6px !important;
  padding:0 10px; font-size:13px; color:#1D2129; background:#fff;
  outline:none; box-shadow:none;
  -webkit-appearance:none; appearance:none;
}

.transfer-search input:focus {
  border-color:#165DFF !important;
}

.transfer-search .search-btn {
  flex-shrink:0; height:32px; padding:0 14px; box-sizing:border-box;
  border:1px solid #E5E6EB !important; border-radius:6px !important;
  background:#fff; color:#4E5969; cursor:pointer; font-size:13px;
}

.transfer-search .search-btn:hover {
  color:#165DFF; border-color:#165DFF !important; background:#E8F3FF;
}

.transfer-toolbar {
  display:flex; align-items:center; justify-content:space-between;
  margin-top:10px; margin-bottom:8px; font-size:13px; color:#4E5969; line-height:22px;
}

.transfer-toolbar label { display:inline-flex; align-items:center; gap:6px; cursor:pointer; color:#1D2129; }

.transfer-toolbar .link {
  border:none; background:transparent; color:#165DFF; cursor:pointer; font-size:13px; padding:0;
}

.transfer-toolbar .link:disabled { color:#C9CDD4; cursor:not-allowed; }

.transfer-list {
  flex:1; min-height:0; overflow:auto; border:1px solid #E5E6EB; border-radius:6px; background:#fff;
  scrollbar-width:auto; scrollbar-color:#C9CDD4 transparent;
}

.transfer-list::-webkit-scrollbar {
  width:10px;
}

.transfer-list::-webkit-scrollbar-track {
  margin:6px 2px; background:transparent;
}

.transfer-list::-webkit-scrollbar-thumb {
  background:#C9CDD4; border-radius:8px;
  border:1px solid transparent; background-clip:padding-box;
}

.transfer-list::-webkit-scrollbar-thumb:hover {
  background:#86909C; border:2px solid transparent; background-clip:padding-box;
}

.transfer-item {
  display:flex; align-items:center; gap:8px; padding:8px 12px;
  border-bottom:1px solid #F2F3F5; cursor:pointer; font-size:13px; line-height:22px; color:#1D2129;
}

.transfer-item:last-child { border-bottom:none; }

.transfer-item:hover { background:#F7F8FA; }

.transfer-item input { margin:0; flex-shrink:0; }

.transfer-item .row-text {
  flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

.transfer-item .row-text .owner {
  color:#86909C; margin-left:4px;
}

.transfer-item .rm {
  flex-shrink:0; border:none; background:transparent; color:#86909C; cursor:pointer;
  font-size:16px; line-height:1; padding:0 2px;
}

.transfer-item .rm:hover { color:#F53F3F; }

.transfer-foot {
  margin-top:8px; font-size:12px; line-height:20px; color:#86909C;
}

.transfer-empty {
  height:100%; min-height:200px; display:flex; flex-direction:column;
  align-items:center; justify-content:center; color:#C9CDD4; font-size:14px; gap:14px;
}

.transfer-empty .empty-ico { width:56px; height:56px; }

.transfer-empty .empty-ico svg { width:56px; height:56px; }

.phone {
  width:280px; height:520px; background:#fff; border-radius:20px; border:1px solid #E5E6EB;
  box-shadow:0 4px 16px rgba(0,0,0,.06); overflow:hidden; display:flex; flex-direction:column;
}

.phone-bar {
  height:44px; background:#165DFF; color:#fff; display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:500; line-height:22px; padding:0 12px; border-bottom:none;
}

.phone-body { flex:1; padding:14px 10px 16px; background:#EDEDED; overflow:auto; font-family: var(--font) !important; }

.phone-moment .phone-body { background:#fff; padding:14px 12px 16px; }

.phone-time { text-align:center; color:#B2B2B2; font-size:11px; line-height:18px; margin-bottom:14px; }

.chat-row {
  display:flex; align-items:flex-start !important; gap:8px; margin-bottom:12px;
}

.chat-avatar {
  width:36px; height:36px; flex-shrink:0; border-radius:6px;
  background:#C9B6E4; color:#fff; display:flex; align-items:center; justify-content:center;
  overflow:hidden; align-self:flex-start; margin-top:0;
}

.chat-avatar svg { width:22px; height:22px; }

.chat-bubble {
  position:relative; max-width:188px; background:#fff; border-radius:4px;
  padding:6px 8px; font-size:10px !important; color:#111; line-height:1.35 !important;
  font-family: "Microsoft YaHei", "微软雅黑", SimHei, sans-serif !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  white-space: pre !important;
  overflow: visible;
  box-shadow:0 1px 1px rgba(0,0,0,.04);
  align-self:flex-start; margin-top:0;
}

.chat-bubble::before {
  content:''; position:absolute; left:-5px; top:10px; z-index:2;
  width:0; height:0;
  border-top:5px solid transparent; border-bottom:5px solid transparent;
  border-right:6px solid #fff;
  filter: drop-shadow(-1px 0 0 rgba(0,0,0,.04));
}

.chat-bubble.empty { color:#C9CDD4; }

.chat-bubble.chat-card {
  padding:0; overflow:visible; max-width:168px;
  white-space:normal !important;
  word-break:break-word !important;
  overflow-wrap:break-word !important;
}

.chat-card-hd {
  display:flex; align-items:center; gap:4px; padding:6px 8px 2px;
  font-size:11px; color:#888; line-height:14px;
}

.chat-card-hd .mp-ico {
  width:12px; height:12px; flex-shrink:0; display:block;
}

.chat-card-title {
  padding:5px 8px 2px; font-size:10px; color:#111; line-height:13px; font-weight:500;
  white-space:normal; word-break:break-word;
}

.chat-card-cover {
  margin:0 8px 8px; height:110px; border-radius:2px;
  background:#07C160; display:flex; align-items:center; justify-content:center; color:#fff;
}

.chat-card-cover svg { width:56px; height:56px; }

.chat-card-ft {
  display:flex; align-items:center; gap:4px; padding:3px 8px;
  border-top:1px solid #F0F0F0; font-size:10px; color:#888; line-height:16px;
}

.chat-card-ft .mp-ico {
  width:12px; height:12px; flex-shrink:0; display:block;
}

.chat-img-box {
  width:120px; height:120px; border-radius:2px; overflow:hidden;
  background:#F5F5F5; display:flex; align-items:center; justify-content:center;
  color:#888; font-size:11px;
}

.chat-link-body {
  display:flex; align-items:flex-start; gap:6px; padding:1px 8px 4px;
}

.chat-link-txt { flex:1; min-width:0; }

.chat-link-desc {
  margin:0; font-size:10px; color:#888; line-height:13px;
  white-space:normal !important; word-break:break-word !important; overflow-wrap:anywhere !important;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

.chat-link-thumb {
  width:28px; height:28px; flex-shrink:0; border-radius:2px; background:#F2F3F5;
  display:flex; align-items:center; justify-content:center; color:#C9CDD4; font-size:9px;
}

.week-chip {
  flex:1 1 0; min-width:0; height:28px; padding:0 2px; box-sizing:border-box;
  border:1px solid #E5E6EB; border-radius:6px; background:#fff;
  color:#4E5969; cursor:pointer; font-size:12px; line-height:1;
  font-family:inherit; white-space:nowrap;
  display:inline-flex; align-items:center; justify-content:center;
}

.week-chip.on {
  border-color:var(--primary); background:var(--primary); color:#fff; font-weight:500;
}

.week-chip:hover:not(.on) { border-color:#94BFFF; color:var(--primary); }

@keyframes dt-panel-up {
  from { opacity:0; transform: translateY(10px); }
  to { opacity:1; transform: translateY(0); }
}

.cross-copy-modal { width:560px; max-width:94vw; overflow:hidden; }

.cross-copy-modal.dd-open { overflow:visible; }

.cross-copy-modal .modal-body.dd-open { overflow:visible; }

.cross-copy-modal .modal-header {
  border-radius:8px 8px 0 0;
}

.cross-copy-modal .modal-footer {
  border-radius:0 0 8px 8px;
  overflow:hidden;
}

.cross-copy-modal .cross-copy-hint {
  font-size:13px; line-height:1.55; color:#86909C; margin-bottom:14px;
  padding:10px 12px; background:#F7F8FA; border-radius:6px;
}

.cross-copy-modal .form-row {
  display:flex; align-items:center; gap:12px; margin-bottom:12px;
}

.cross-copy-modal .form-row > label {
  flex:0 0 72px; color:#4E5969; font-size:14px;
}

.cross-copy-modal .form-row .form-select {
  flex:1; min-width:0;
}

.cross-copy-modal .form-select-menu {
  top:calc(100% + 4px); bottom:auto; max-height:240px; overflow:auto; z-index:50;
}

.cross-copy-toolbar {
  display:flex; align-items:center; justify-content:space-between; margin-bottom:8px;
}

.cross-copy-list {
  display:flex; flex-direction:column; gap:10px;
  max-height:320px; overflow:auto; border:1px solid #E5E6EB; border-radius:8px;
  padding:8px 8px 8px 10px; background:#fff;
  scrollbar-width:thin; scrollbar-color:#C9CDD4 transparent;
}

.cross-copy-list::-webkit-scrollbar {
  width:8px;
}

.cross-copy-list::-webkit-scrollbar-track {
  margin:8px 3px; background:transparent;
}

.cross-copy-list::-webkit-scrollbar-thumb {
  background:#C9CDD4; border-radius:8px;
  border:2px solid transparent; background-clip:padding-box;
}

.cross-copy-list::-webkit-scrollbar-thumb:hover {
  background:#86909C; border:2px solid transparent; background-clip:padding-box;
}

.cross-copy-list .pick-item {
  display:flex; align-items:center; gap:8px;
  margin:0; padding:8px 10px;
  border-radius:6px; border-bottom:none;
  box-shadow:none; position:relative;
}

.cross-copy-list .pick-item:not(:last-child)::after {
  content:''; position:absolute; left:10px; right:10px; bottom:-6px;
  height:1px; background:#F2F3F5; pointer-events:none;
}

.cross-copy-list .pick-item:hover { background:#F7F8FA; }

.cross-copy-list .cc-lab {
  flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; color:#1D2129;
}

.cross-copy-list .cc-tag {
  flex-shrink:0; font-size:12px; color:#86909C; background:#F2F3F5; padding:2px 8px; border-radius:4px;
  margin-right:4px;
}

.record-empty {
  padding:48px 16px; text-align:center; color:#C9CDD4; font-size:15px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px;
}

.record-empty .empty-ico { width:64px; height:64px; }

.img-lightbox-mask {
  position:fixed; inset:0; z-index:3200; background:rgba(0,0,0,.72);
  display:flex; align-items:center; justify-content:center; padding:32px;
  cursor:zoom-out;
}

.img-lightbox {
  position:relative; max-width:min(920px, 100%); max-height:100%;
  display:flex; flex-direction:column; align-items:center; gap:12px; cursor:default;
}

.img-lightbox img {
  max-width:100%; max-height:calc(100vh - 96px); object-fit:contain;
  border-radius:6px; box-shadow:0 12px 40px rgba(0,0,0,.35); background:#fff;
}

.img-lightbox-name {
  color:rgba(255,255,255,.88); font-size:13px; line-height:18px;
  max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:center;
}

.img-lightbox-close {
  position:absolute; top:-36px; right:0; width:28px; height:28px; border:none;
  border-radius:50%; background:rgba(255,255,255,.16); color:#fff; font-size:18px;
  line-height:1; cursor:pointer;
}

.img-lightbox-close:hover { background:rgba(255,255,255,.28); }

.record-block {
  border:1px solid #E5E6EB; border-radius:6px; overflow:hidden; background:#fff;
}

.record-hd {
  display:flex; align-items:center; gap:8px; padding:12px 14px;
  cursor:pointer; user-select:none; background:#fff; border:none; border-radius:0;
}

.record-hd:hover { background:#FAFBFC; }

.record-caret {
  width:0; height:0; border-left:5px solid transparent; border-right:5px solid transparent;
  border-top:6px solid #86909C; transition:transform .15s ease; flex-shrink:0;
}

.record-caret.closed { transform:rotate(-90deg); }

.record-time { flex:1; font-size:14px; color:#1D2129; }

.record-badge {
  display:inline-flex; align-items:center; gap:4px; height:24px; padding:0 10px;
  border-radius:999px; font-size:12px; line-height:24px; border:1px solid transparent;
}

.record-badge.ok {
  color:#00B42A; background:#E8FFEA; border-color:#B7F0BF;
}

.record-badge.fail {
  color:#F53F3F; background:#FFECE8; border-color:#F9C0B9;
}

.record-badge.wait {
  color:#86909C; background:#F2F3F5; border-color:#E5E6EB;
}

.record-badge .ico {
  width:14px; height:14px; border-radius:50%; background:currentColor; color:#fff;
  display:inline-flex; align-items:center; justify-content:center; font-size:10px; line-height:1;
  background:#00B42A;
}

.record-badge.fail .ico { background:#F53F3F; }

.record-badge.wait .ico { background:#C9CDD4; }

.record-body {
  border:none; border-radius:0; overflow:hidden; margin-top:0;
  border-top:1px solid #E5E6EB;
}

.record-table { width:100%; border-collapse:collapse; border-spacing:0; }

.record-table th {
  background:#F5F5F5; color:#4E5969; font-size:13px; font-weight:500;
  padding:10px 14px; text-align:left; border-bottom:1px solid #E5E6EB;
  border-radius:0 !important;
}

.record-table td {
  padding:12px 14px; font-size:14px; color:#1D2129; border-bottom:1px solid #F2F3F5;
}

.record-table tbody tr:last-child td { border-bottom:none; }


/* 账号设置 */
#page-accountSettings .acc-card.card {
  min-height: 0 !important;
  height: auto;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #E5E6EB;
  overflow: hidden;
}
.acc-stack { display: flex; flex-direction: column; gap: 16px; }
.acc-crumb { font-size: 13px; color: #86909C; line-height: 20px; }
.acc-profile {
  display: flex; align-items: center; gap: 28px;
  padding: 28px 32px;
}
.acc-avatar-block {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.acc-avatar-wrap {
  position: relative; width: 72px; height: 72px;
  display: inline-block; cursor: pointer;
}
.acc-avatar-reset { font-size: 13px; line-height: 20px; }
.acc-avatar-reset:disabled { opacity: .55; cursor: not-allowed; }
.acc-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: #165DFF; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.acc-avatar.has-img { background: #E5E6EB; }
.acc-avatar svg { width: 36px; height: 36px; }
.acc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-avatar-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.acc-avatar-cam {
  position: absolute; right: 0; bottom: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: #165DFF; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.acc-avatar-cam svg { width: 12px; height: 12px; }
.acc-avatar-wrap:hover .acc-avatar { opacity: .92; }
.acc-profile-grid {
  flex: 1; min-width: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 48px;
}
.acc-lab { font-size: 13px; color: #86909C; margin-bottom: 6px; }
.acc-val { font-size: 14px; color: #1D2129; line-height: 22px; }
.acc-tag {
  display: inline-block; height: 22px; line-height: 22px; padding: 0 8px;
  border-radius: 4px; font-size: 12px;
}
.acc-tag-ok { background: #E8FFEA; color: #00B42A; }
.acc-card-list { padding: 4px 0 !important; }
.acc-row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px; border-bottom: 1px solid #F2F3F5;
}
.acc-row:last-child { border-bottom: none; }
.acc-row-lab { width: 120px; flex: none; font-size: 14px; color: #4E5969; }
.acc-row-val { flex: 1; min-width: 0; font-size: 14px; color: #1D2129; }
.acc-link {
  flex: none; border: none; background: transparent; padding: 0;
  color: #165DFF; font-size: 14px; cursor: pointer; line-height: 22px;
}
.acc-link:hover { color: #0E42D2; }
@media (max-width: 720px) {
  .acc-profile { flex-direction: column; align-items: flex-start; }
  .acc-profile-grid { grid-template-columns: 1fr; width: 100%; }
}
