/* MeaiChat 3.0 设计令牌：单一品牌蓝 + 偏冷的中性灰；白色导航栏；小圆角、细线分隔、少阴影 */
:root {
  --rp-cmp: #c5cad3;
  /* 主色：品牌蓝（MeaiChat 标志同色） */
  --p: #2456e8;
  --p-2: #1d47c4;
  --p-soft: #edf2fe;
  --p-soft-2: #d9e3fc;
  --p-rgb: 36, 86, 232;
  --on-p: #fff;
  --ink: #1b1f27;
  --ink-2: #4a5160;
  --ink-3: #727987;
  --ink-4: #b2b7c1;
  --line: #e3e6eb;
  --line-2: #eef0f3;
  --bg: #f5f6f8;
  --card: #fff;
  --fill: #f7f8fa;        /* 表头、浅色块 */
  --sec-hd: #f1f4fa;      /* 设置卡片标题栏：和卡片、页面都分得开 */
  --fill-2: #fafbfc;
  --hover: #f2f4f7;
  --gray-1: #d3d7de;      /* 开关底色、滚动条 */
  --gray-2: #c3c8d1;      /* 复选框、单选边框 */
  --tip: #1b1f27;         /* 气泡提示、toast 底色 */
  --ill-0: #eceef2; --ill-1: #e3e9f8; --ill-2: #c9d5f3; --ill-3: #f1f4fb;
  --ok: #1f9d55; --ok-soft: #e8f6ee;
  --warn: #c27400; --warn-soft: #fff4e0;
  --bad: #d93a3a; --bad-soft: #fdeded;
  --info: #2456e8; --info-soft: #edf2fe;
  --rail: #fff;
  --rail-ink: #5d6472;
  --subnav: #fff; --subnav-ink: #1b1f27; --subnav-ink2: #4a5160;
  --login-a: #1b1f27; --login-b: #2456e8; --login-c: #2456e8;
  --lg-a: #6f8fef; --lg-b: #2456e8;
  --shadow-s: 0 0 0 1px var(--line);
  --shadow-m: 0 6px 20px rgba(20,26,40,.10), 0 0 0 1px rgba(20,26,40,.06);
  --shadow-l: 0 16px 48px rgba(20,26,40,.16), 0 0 0 1px rgba(20,26,40,.06);
  --r: 8px;
  --ease: cubic-bezier(.2,1,.3,1);
  color-scheme: light;
}
/* 深色模式：晚班长时间盯屏用 */
:root[data-theme="dark"] {
  --rp-cmp: #4b5262;
  --p: #5b82ff;
  --p-2: #7a9bff;
  --p-soft: #1b2442;
  --p-soft-2: #243159;
  --p-rgb: 91, 130, 255;
  --on-p: #fff;
  --ink: #e6e8ec;
  --ink-2: #b2b8c3;
  --ink-3: #828997;
  --ink-4: #646b79;
  --line: #2a2f38;
  --line-2: #22262e;
  --bg: #121418;
  --card: #181b21;
  --fill: #1d2027;
  --sec-hd: #252c38;
  --fill-2: #1b1e24;
  --hover: #22262e;
  --gray-1: #3a404b;
  --gray-2: #4a515d;
  --tip: #0b0d10;
  --ill-0: #22262e; --ill-1: #1e2640; --ill-2: #2b3863; --ill-3: #1a2035;
  --ok: #3fbf78; --ok-soft: #15301f;
  --warn: #e0a040; --warn-soft: #33270f;
  --bad: #f06b6f; --bad-soft: #3a1c1e;
  --info: #6b8fff; --info-soft: #1b2442;
  --rail: #15181d;
  --rail-ink: #a7adb8;
  --subnav: #15181d; --subnav-ink: #e6e8ec; --subnav-ink2: #b2b8c3;
  --shadow-s: 0 0 0 1px var(--line);
  --shadow-m: 0 8px 24px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.05);
  --shadow-l: 0 20px 56px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06);
  color-scheme: dark;
}
/* 主题色：品牌蓝是默认；另外可选 森林绿 / 星夜紫 */
:root[data-accent="green"] { --p: #0f8a5f; --p-2: #0b6e4b; --p-soft: #e7f5ef; --p-soft-2: #cdebdf; --p-rgb: 15, 138, 95; --info: #0f8a5f; --info-soft: #e7f5ef; --ill-1: #dff0e9; --ill-2: #bfe2d3; --ill-3: #eef8f4; }
:root[data-accent="purple"] { --p: #5b5bd6; --p-2: #4a4ac4; --p-soft: #eeeefc; --p-soft-2: #dcdcf8; --p-rgb: 91, 91, 214; --info: #5b5bd6; --info-soft: #eeeefc; --ill-1: #e3e3fa; --ill-2: #c7c7f3; --ill-3: #f0f0fd; }
:root[data-accent="green"][data-theme="dark"] { --p: #34b886; --p-2: #4fd1a2; --p-soft: #13302a; --p-soft-2: #1a4238; --p-rgb: 52, 184, 134; --info: #34b886; --info-soft: #13302a; --ill-1: #1d3a31; --ill-2: #2a5a49; --ill-3: #19302a; }
:root[data-accent="purple"][data-theme="dark"] { --p: #8b8bf5; --p-2: #a5a5f8; --p-soft: #23213f; --p-soft-2: #2e2c56; --p-rgb: 139, 139, 245; --info: #8b8bf5; --info-soft: #23213f; --ill-1: #26244a; --ill-2: #3a3870; --ill-3: #1d1c36; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--p); text-decoration: none; }
a:hover { text-decoration: underline; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
::selection { background: var(--p-soft-2); }
.scroll::-webkit-scrollbar, .scroll ::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--gray-1); border-radius: 4px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background-color: var(--gray-2); }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- 基础控件 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 6px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; font-size: 13.5px; white-space: nowrap; transition: background .15s, box-shadow .15s, color .15s, transform .08s; user-select: none; }
.btn:hover { background: var(--fill); box-shadow: inset 0 0 0 1px var(--gray-1); }
.btn:active { transform: translateY(.5px); }
.btn:focus-visible, .icon-btn:focus-visible, .input:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--p); color: var(--on-p); box-shadow: none; }
.btn.primary:hover { background: var(--p-2); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 35%, transparent); }
.btn.danger-fill { background: var(--bad); color: #fff; box-shadow: none; }
.btn.danger-fill:hover { background: #d43c41; }
.btn.ghost { background: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--line-2); color: var(--ink); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.lg { height: 42px; padding: 0 20px; font-size: 14.5px; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rot .7s linear infinite; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 9px; color: var(--ink-3); transition: background .15s, color .15s; position: relative; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn.on { color: var(--p); background: var(--p-soft); }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 7px; }
.icon-btn.sm svg.i { width: 16px; height: 16px; }

.input, .select, .textarea { width: 100%; height: 38px; border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 0 12px; outline: none; transition: border .15s, box-shadow .15s; font-size: 13.5px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--gray-1); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--p); box-shadow: 0 0 0 3px var(--p-soft); }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.textarea { height: auto; padding: 9px 12px; resize: vertical; line-height: 1.6; min-height: 80px; }
.select { appearance: none; padding-right: 32px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%23868ba2' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center; cursor: pointer; }
.input-icon { position: relative; }
.input-icon svg.i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-4); width: 16px; height: 16px; pointer-events: none; }
.input-icon .input { padding-left: 34px; }
.field { display: block; margin-bottom: 16px; }
.field > .lbl { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field > .lbl em { color: var(--bad); font-style: normal; margin-left: 2px; }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.field.err .input, .field.err .textarea { border-color: var(--bad); }
.field .err-msg { font-size: 12px; color: var(--bad); margin-top: 5px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.switch { position: relative; width: 40px; height: 24px; flex: none; display: inline-block; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; background: var(--gray-1); border-radius: 8px; transition: background .2s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.switch input:checked + i { background: var(--p); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px var(--p-soft-2); }

.seg { display: inline-flex; background: var(--line-2); border-radius: 6px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 0 12px; height: 28px; border-radius: 8px; font-size: 13px; color: var(--ink-2); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(20,22,50,.1); }
.seg .cnt { font-size: 11.5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: rgba(20,22,50,.07); display: inline-grid; place-items: center; color: var(--ink-2); }
.seg button.on .cnt.hot, .cnt.hot { background: var(--bad); color: #fff; }

.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.tag.p { background: var(--p-soft); color: var(--p); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.info { background: var(--info-soft); color: var(--info); }
.tag .x { border: 0; background: none; padding: 0; color: inherit; opacity: .6; display: grid; cursor: pointer; }
.tag .x:hover { opacity: 1; }

.av { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 600; font-size: 14px; flex: none; position: relative; user-select: none; }
.av.sm { width: 28px; height: 28px; font-size: 12px; }
.av.xs { width: 22px; height: 22px; font-size: 11px; }
.av.lg { width: 56px; height: 56px; font-size: 22px; }
.av .st { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--card); background: var(--ink-4); }
.av.sm .st { width: 10px; height: 10px; }
.st-online { background: #22c55e !important; } .st-busy { background: #f59e0b !important; } .st-away { background: #a1a1aa !important; } .st-offline { background: var(--gray-2) !important; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.v-av { background: var(--lg-b); }

.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; line-height: 1; }

.card { background: var(--card); border-radius: 8px; box-shadow: var(--shadow-s); }
.muted { color: var(--ink-3); }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; color: var(--ink-3); gap: 4px; height: 100%; }
.empty b { color: var(--ink-2); font-size: 15px; font-weight: 600; margin-top: 12px; }
.empty span { font-size: 13px; max-width: 280px; }
.empty .btn { margin-top: 14px; }
.ill { width: 120px; height: 96px; }
.kbd { display: inline-block; font: 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 3px 5px; border-radius: 5px; background: var(--card); box-shadow: inset 0 -1px 0 var(--gray-1), 0 0 0 1px var(--line); color: var(--ink-2); }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

/* ---------- 登录 ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-art { background: linear-gradient(160deg, var(--login-a) 0%, var(--login-b) 55%, var(--login-c) 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art .brand { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; position: relative; z-index: 1; }
.login-art h2 { font-size: 34px; line-height: 1.3; margin: 0 0 12px; font-weight: 700; letter-spacing: -.3px; }
.login-art p { opacity: .8; margin: 0; font-size: 15px; max-width: 380px; }
.login-art .copy { position: relative; z-index: 1; }
.login-art .foot { font-size: 12.5px; opacity: .55; position: relative; z-index: 1; }
.login-bubbles { position: absolute; right: 36px; top: 16%; width: 440px; height: 320px; }
.lb { position: absolute; background: rgba(255,255,255,.12); backdrop-filter: blur(6px); border-radius: 18px; padding: 12px 16px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.12), inset 0 0 0 1px rgba(255,255,255,.14); animation: floaty 6s ease-in-out infinite; white-space: nowrap; }
.lb.r { background: rgba(255,255,255,.92); color: var(--login-a); border-bottom-right-radius: 6px; }
.lb.l { border-bottom-left-radius: 6px; }
.lb i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--card); margin: 0 2px; animation: dots 1.2s infinite; opacity: .6; }
.lb i:nth-child(2) { animation-delay: .15s; } .lb i:nth-child(3) { animation-delay: .3s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
@keyframes dots { 30% { transform: translateY(-3px); opacity: 1; } }
.login-form { display: grid; place-items: center; padding: 40px; background: var(--card); }
.login-box { width: 100%; max-width: 360px; animation: fadeUp .5s var(--ease); }
.login-box h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.2px; }
.login-box > p { color: var(--ink-3); margin: 0 0 28px; }
.login-box .input { height: 44px; font-size: 14.5px; }
.login-box .btn { width: 100%; height: 44px; margin-top: 6px; font-size: 15px; }
.login-err { background: var(--bad-soft); color: var(--bad); border-radius: 6px; padding: 9px 12px; font-size: 13px; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.pw-wrap { position: relative; }
.pw-wrap .icon-btn { position: absolute; right: 5px; top: 5px; }
.login-tip { margin-top: 22px; font-size: 12.5px; color: var(--ink-3); background: var(--bg); border-radius: 6px; padding: 10px 12px; }

/* ---------- 框架 ---------- */
.app { display: grid; grid-template-columns: 68px 1fr; height: 100vh; overflow: hidden; }
.rail { background: var(--rail); display: flex; flex-direction: column; align-items: center; padding: 14px 0 12px; gap: 4px; z-index: 30; }
.rail-logo { width: 38px; height: 38px; margin-bottom: 14px; display: grid; place-items: center; }
.rail-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.rail-btn { width: 44px; height: 44px; border-radius: 8px; border: 0; background: transparent; color: var(--rail-ink); display: grid; place-items: center; position: relative; transition: background .15s, color .15s; }
.rail-btn svg.i { width: 21px; height: 21px; }
.rail-btn:hover { background: rgba(255,255,255,.07); color: var(--subnav-ink); }
.rail-btn.on { background: var(--p); color: var(--on-p); }
.rail-btn .badge { position: absolute; top: 3px; right: 2px; box-shadow: 0 0 0 2px var(--rail); }
.rail-btn .tip { position: absolute; left: 54px; top: 50%; transform: translate(-4px, -50%); background: var(--tip); color: #fff; padding: 5px 10px; border-radius: 8px; font-size: 12.5px; white-space: nowrap; opacity: 0; pointer-events: none; transition: all .15s; box-shadow: var(--shadow-m); }
.rail-btn:hover .tip { opacity: 1; transform: translate(0, -50%); }
.rail-sep { width: 28px; height: 1px; background: rgba(255,255,255,.08); margin: 6px auto; }
.rail-me { margin-top: 6px; border: 0; background: none; padding: 4px; border-radius: 8px; transition: background .15s; }
.rail-me:hover { background: rgba(255,255,255,.08); }
.rail-me .av .st { border-color: var(--rail); }
/* 12-03 桌面版有新版本：头像右上角小红点（左下角是在线状态） */
.rail-me { position: relative; }
.rail-me.me-upd::after { content: ''; position: absolute; top: 3px; right: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger, #e5484d); box-shadow: 0 0 0 2px var(--rail); pointer-events: none; }
.rail.wide .rail-me.me-upd::after { top: 5px; left: 31px; right: auto; }
.main { min-width: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.conn-bar { background: var(--warn); color: #fff; font-size: 13px; text-align: center; padding: 6px; display: flex; align-items: center; justify-content: center; gap: 8px; animation: fadeUp .3s; }
.conn-bar .spin { width: 12px; height: 12px; border: 2px solid var(--card); border-right-color: transparent; border-radius: 50%; animation: rot .7s linear infinite; }
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.page { flex: 1; overflow-y: auto; padding: 26px 32px 40px; }
.page-hd { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-hd h1 { font-size: 21px; margin: 0; letter-spacing: -.2px; display: flex; align-items: center; gap: 10px; }
.page-hd .sub { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.page-hd .acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }

/* 下拉菜单 */
.pop { position: fixed; z-index: 200; background: var(--card); border-radius: 8px; box-shadow: var(--shadow-l); padding: 6px; min-width: 180px; animation: pop .14s ease; transform-origin: top left; }
.pop-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; text-align: left; color: var(--ink); }
.pop-item:hover, .pop-item.hl { background: var(--bg); }
.pop-item svg.i { color: var(--ink-3); width: 17px; height: 17px; }
.pop-item.danger { color: var(--bad); } .pop-item.danger svg.i { color: var(--bad); }
.pop-item .chk { margin-left: 8px; color: var(--p); display: inline-flex; }
.pop-item > span:nth-child(2) { flex: 1; }
/* 12-04 头像菜单：系统版本/桌面版有新版本时右边的小标签（跟主题色） */
.pop-item .pop-upd { flex: none; padding: 2px 8px; border-radius: 999px; font-weight: 600; line-height: 18px; color: var(--p); background: color-mix(in srgb, var(--p) 12%, transparent); white-space: nowrap; }
.pop-item:hover .pop-upd { background: color-mix(in srgb, var(--p) 18%, transparent); }
.pop-item:disabled { opacity: .45; cursor: not-allowed; background: none; }
.pop-sep { height: 1px; background: var(--line-2); margin: 5px 4px; }
.pop-hd { padding: 8px 10px 6px; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.me-card { display: flex; gap: 10px; align-items: center; padding: 8px 10px 10px; }
.me-card b { display: block; font-size: 14px; } .me-card > div > span { font-size: 12px; color: var(--ink-3); }

/* ---------- 会话工作台 ---------- */
.chats { flex: 1; min-height: 0; display: grid; grid-template-columns: 316px minmax(0, 1fr) 312px; }
.chats.no-side { grid-template-columns: 316px minmax(0, 1fr) 0; }
.clist { background: var(--card); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.clist-hd { padding: 16px 14px 10px; }
.clist-hd .t { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.clist-hd h2 { font-size: 17px; margin: 0; }
.clist-hd .seg { width: 100%; }
.clist-hd .seg button { flex: 1; justify-content: center; padding: 0 6px; }
.clist-search { padding: 0 14px 10px; }
.clist-search .input { height: 34px; background: var(--bg); border-color: transparent; }
.clist-search .input:focus { background: var(--card); }
.clist-body { flex: 1; overflow-y: auto; padding: 2px 8px 12px; }
.cgroup { font-size: 11.5px; color: var(--ink-3); font-weight: 600; letter-spacing: .3px; padding: 10px 8px 6px; display: flex; justify-content: space-between; }
.citem { display: flex; gap: 11px; padding: 11px 10px; border-radius: 8px; cursor: pointer; position: relative; transition: background .12s; animation: fadeUp .25s ease both; }
.citem:hover { background: var(--bg); }
.citem.on { background: var(--p-soft); }
.citem.on::before { content: ""; position: absolute; left: -8px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--p); }
.citem .body { flex: 1; min-width: 0; }
.citem .l1 { display: flex; align-items: center; gap: 6px; }
.citem .nm { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.citem .tm { margin-left: auto; font-size: 11.5px; color: var(--ink-3); flex: none; }
.citem .l2 { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.citem .pv { flex: 1; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.citem .pv.typing { color: var(--p); font-style: italic; }
.citem.unread .pv { color: var(--ink); font-weight: 500; }
.citem .wait { font-size: 11.5px; color: var(--warn); font-weight: 600; flex: none; }
.citem .wait.long { color: var(--bad); }
.citem .accept { position: absolute; right: 10px; bottom: 9px; opacity: 0; transform: translateX(4px); transition: all .15s; }
.citem:hover .accept { opacity: 1; transform: none; }
.citem:hover .l2 .badge, .citem:hover .l2 .wait { visibility: hidden; }
.citem.closed { opacity: .72; }
.citem.closed:hover, .citem.closed.on { opacity: 1; }
.citem .agent-chip { font-size: 11px; color: var(--ink-3); display: inline-flex; gap: 4px; align-items: center; flex: none; }

.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); position: relative; }
.chat-hd { height: 64px; flex: none; background: var(--card); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 16px 0 20px; gap: 12px; }
.chat-hd .who { flex: 1; min-width: 0; }
.chat-hd .who b { font-size: 15px; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.chat-hd .who b > * { flex: none; }
.chat-hd .who span { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-hd .acts { display: flex; gap: 6px; align-items: center; }
.online-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--ok); }
.online-pill .dot { background: #22c55e; box-shadow: 0 0 0 3px #dcfce7; }
.online-pill.off { color: var(--ink-3); } .online-pill.off .dot { background: var(--ink-4); box-shadow: 0 0 0 3px var(--line-2); }

.msgs { flex: 1; overflow-y: auto; padding: 20px 24px 12px; }
.msgs .more { text-align: center; margin-bottom: 12px; }
.m-sep { text-align: center; font-size: 12px; color: var(--ink-3); margin: 16px 0 10px; display: flex; align-items: center; gap: 12px; }
.m-sep::before, .m-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.m-sys { display: flex; justify-content: center; margin: 10px 0; }
.m-sys span { font-size: 12px; color: var(--ink-3); background: rgba(20,22,50,.045); padding: 4px 12px; border-radius: 999px; }
.m { display: flex; gap: 10px; margin: 3px 0; align-items: flex-end; animation: fadeUp .22s ease both; }
.m.first { margin-top: 14px; }
.m.me { flex-direction: row-reverse; }
.m .col { max-width: min(560px, 72%); display: flex; flex-direction: column; min-width: 0; }
.m.me .col { align-items: flex-end; }
.m .nm { font-size: 12px; color: var(--ink-3); margin: 0 4px 4px; }
.m .bb { background: var(--card); padding: 9px 13px; border-radius: 16px; border-bottom-left-radius: 5px; box-shadow: var(--shadow-s); white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.m.me .bb { background: var(--p); color: var(--on-p); border-radius: 16px; border-bottom-right-radius: 5px; }
.m.me .bb a { color: var(--on-p); text-decoration: underline; }
.m .bb.img { padding: 4px; line-height: 0; background: var(--card) !important; box-shadow: var(--shadow-s) !important; }
.m .bb.img img { max-width: 240px; max-height: 240px; border-radius: 12px; cursor: zoom-in; display: block; min-width: 60px; min-height: 40px; background: var(--bg); object-fit: cover; }
.m.note .bb { background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 70%, var(--ink)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 30%, transparent); border-radius: 8px; }
.m.note .nm { color: var(--warn); display: flex; align-items: center; gap: 4px; }
.m .meta { font-size: 11px; color: var(--ink-4); margin: 3px 5px 0; display: flex; gap: 4px; align-items: center; }
.m .meta .rd { color: var(--p); }
.m .meta.fail { color: var(--bad); cursor: pointer; }
.m.sending .bb { opacity: .65; }
.m .av { align-self: flex-end; }
.m .av.ghost { visibility: hidden; }
.v-typing { margin: 10px 0 2px; display: flex; gap: 10px; align-items: flex-end; animation: fadeUp .2s; }
.v-typing .bb { background: rgba(255,255,255,.65); border: 1px dashed var(--gray-2); color: var(--ink-3); font-style: italic; padding: 8px 12px; border-radius: 8px; border-bottom-left-radius: 5px; max-width: 70%; white-space: pre-wrap; word-break: break-word; }
.v-typing .lbl { font-size: 11px; color: var(--ink-3); margin: 0 4px 3px; display: flex; gap: 6px; align-items: center; }
.tdots { display: inline-flex; gap: 3px; }
.tdots i { width: 4px; height: 4px; border-radius: 50%; background: var(--p); animation: dots 1.2s infinite; opacity: .5; }
.tdots i:nth-child(2) { animation-delay: .15s; } .tdots i:nth-child(3) { animation-delay: .3s; }
.new-tip { position: absolute; left: 50%; bottom: 168px; transform: translateX(-50%); background: var(--p); color: var(--on-p); border: 0; border-radius: 999px; padding: 6px 14px; font-size: 12.5px; box-shadow: var(--shadow-m); display: flex; align-items: center; gap: 4px; animation: fadeUp .2s; z-index: 4; }

.composer { flex: none; padding: 0 20px 16px; }
.cbox { background: var(--card); border-radius: 8px; box-shadow: var(--shadow-s); transition: box-shadow .2s; position: relative; }
.cbox:focus-within { box-shadow: 0 0 0 1.5px var(--p), 0 6px 20px rgba(var(--p-rgb), .10); }
.cbox.note-mode { background: var(--warn-soft); }
.cbox.note-mode:focus-within { box-shadow: 0 0 0 1.5px #e9b949, 0 6px 20px rgba(217,119,6,.10); }
.cbox.drag { box-shadow: 0 0 0 2px var(--p); background: var(--p-soft); }
.c-tabs { display: flex; gap: 2px; padding: 5px 10px 0; }
.c-tab { border: 0; background: none; padding: 5px 10px; border-radius: 8px; font-size: 12.5px; color: var(--ink-3); font-weight: 500; display: inline-flex; gap: 5px; align-items: center; }
.c-tab:hover { color: var(--ink); background: var(--bg); }
.c-tab.on { color: var(--p); background: var(--p-soft); }
.c-tab.on.note { color: var(--warn); background: var(--warn-soft); }
.c-tab svg.i { width: 15px; height: 15px; }
.cbox textarea { display: block; width: 100%; border: 0; outline: 0; resize: none; background: transparent; padding: 6px 16px 2px; min-height: 42px; max-height: 220px; line-height: 1.6; font-size: 14px; }
.c-foot { display: flex; align-items: center; gap: 2px; padding: 2px 8px 6px 10px; }
.c-foot .hint { margin-left: auto; margin-right: 10px; font-size: 11.5px; color: var(--ink-4); }
.c-closed { background: var(--card); border-radius: 8px; box-shadow: var(--shadow-s); padding: 14px 18px; display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 13.5px; }
.c-closed .grow { flex: 1; }
.c-queued { background: linear-gradient(90deg, var(--warn-soft), var(--card)); border-radius: 8px; box-shadow: var(--shadow-s); padding: 14px 18px; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13.5px; }
.c-queued .grow { flex: 1; }

/* 快捷回复弹层 */
.qr-pop { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); background: var(--card); border-radius: 8px; box-shadow: var(--shadow-l); max-height: 320px; display: flex; flex-direction: column; overflow: hidden; animation: fadeUp .16s ease; z-index: 10; }
.qr-pop .qr-hd { padding: 10px 12px 8px; display: flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--line-2); }
.qr-pop .qr-hd .input { height: 32px; }
.qr-list { overflow-y: auto; padding: 6px; }
.qr-cat { font-size: 11.5px; color: var(--ink-3); font-weight: 600; padding: 8px 8px 4px; }
.qr-item { display: block; width: 100%; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 9px; }
.qr-item:hover, .qr-item.hl { background: var(--p-soft); }
.qr-item b { font-size: 13px; display: block; }
.qr-item span { font-size: 12.5px; color: var(--ink-3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-item mark { background: #fde68a; color: inherit; border-radius: 2px; }
.qr-empty { padding: 26px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* 访客资料侧栏 */
.side { background: var(--card); border-left: 1px solid var(--line); overflow-y: auto; min-width: 0; }
.chats.no-side .side { display: none; }
.side-top { padding: 22px 20px 16px; text-align: center; border-bottom: 1px solid var(--line-2); }
.side-top .av { margin-bottom: 10px; }
.side-top .nm { font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 4px; }
.side-top .nm .icon-btn { opacity: 0; }
.side-top:hover .nm .icon-btn { opacity: 1; }
.side-top .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.side-sec { padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.side-sec:last-child { border-bottom: 0; }
.side-sec h4 { margin: 0 0 12px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; letter-spacing: .3px; display: flex; align-items: center; justify-content: space-between; }
.kv { display: grid; grid-template-columns: 70px 1fr; gap: 9px 10px; font-size: 13px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; color: var(--ink); word-break: break-all; min-width: 0; }
.kv dd a { word-break: break-all; }
.kv dd .clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.inline-edit { border: 1px solid transparent; border-radius: 8px; padding: 4px 8px; margin: -5px -9px; width: calc(100% + 18px); background: transparent; outline: none; font-size: 13px; transition: all .15s; }
.inline-edit:hover { background: var(--bg); }
.inline-edit:focus { border-color: var(--p); background: var(--card); box-shadow: 0 0 0 3px var(--p-soft); }
textarea.inline-edit { resize: none; min-height: 60px; line-height: 1.55; }
.tags-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tags-box .add-tag { height: 22px; border: 1px dashed var(--gray-2); background: none; border-radius: 6px; font-size: 12px; color: var(--ink-3); padding: 0 8px; }
.tags-box .add-tag:hover { border-color: var(--p); color: var(--p); }
.tags-box input { height: 22px; width: 80px; border: 1px solid var(--p); border-radius: 6px; font-size: 12px; padding: 0 6px; outline: none; }
.hist-item { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 6px; cursor: pointer; margin: 0 -10px; }
.hist-item:hover { background: var(--bg); }
.hist-item .t { font-size: 13px; flex: 1; min-width: 0; }
.hist-item .t div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-item .t small { color: var(--ink-3); font-size: 12px; }
.stars-s { color: #f5b301; font-size: 12px; letter-spacing: 1px; display: inline-flex; gap: 1px; }
.stars-s svg { width: 13px; height: 13px; }
.stars-s .off { color: var(--gray-1); }

/* ---------- 表格 ---------- */
.table-card { background: var(--card); border-radius: 8px; box-shadow: var(--shadow-s); overflow: hidden; }
table.tb { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tb th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12.5px; padding: 11px 14px; background: var(--fill); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tb td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tb tr:last-child td { border-bottom: 0; }
.tb tbody tr { transition: background .12s; }
.tb tbody tr.click { cursor: pointer; }
.tb tbody tr:hover { background: var(--fill); }
.tb .num { text-align: right; font-variant-numeric: tabular-nums; }
.tb .ellipsis { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb .user { display: flex; align-items: center; gap: 10px; }
.tb .user b { font-weight: 600; display: block; }
.tb .user small { color: var(--ink-3); font-size: 12px; }
.tb .acts { display: flex; gap: 4px; justify-content: flex-end; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-3); }
.pager .pg { display: flex; gap: 4px; align-items: center; }
.pager .pg button { min-width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; font-size: 13px; color: var(--ink-2); }
.pager .pg button:hover:not(:disabled) { background: var(--bg); }
.pager .pg button.on { background: var(--p); color: var(--on-p); }
.pager .pg button:disabled { opacity: .35; cursor: default; }
.skel { background: linear-gradient(90deg, var(--fill) 25%, var(--fill) 50%, var(--fill) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 6px; height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 统计 ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { background: var(--card); border-radius: 8px; box-shadow: var(--shadow-s); padding: 16px 18px; animation: fadeUp .3s ease both; }
.kpi .k { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.kpi .k svg.i { width: 15px; height: 15px; }
.kpi .v { font-size: 27px; font-weight: 650; margin-top: 6px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 14px; font-weight: 500; color: var(--ink-3); margin-left: 3px; letter-spacing: 0; }
.kpi .d { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.charts { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; margin-bottom: 16px; }
.chart-card { background: var(--card); border-radius: 8px; box-shadow: var(--shadow-s); padding: 18px 20px; position: relative; min-width: 0; }
.chart-card h3 { margin: 0; font-size: 14.5px; }
.chart-card .sub { font-size: 12px; color: var(--ink-3); margin: 2px 0 14px; }
.bars { width: 100%; height: 220px; display: block; overflow: visible; }
.bars .grid line { stroke: var(--fill); }
.bars .axis text { fill: var(--ink-3); font-size: 11px; }
.bars rect.bar { fill: var(--p); transition: opacity .15s; }
.bars rect.hit { fill: transparent; cursor: default; }
.bars g.col:hover rect.bar { fill: var(--p-2); }
.bars.dim g.col:not(:hover) rect.bar { opacity: .45; }
.ctip { position: absolute; pointer-events: none; background: var(--tip); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; box-shadow: var(--shadow-m); transform: translate(-50%, -100%); z-index: 5; }
.ctip b { font-size: 14px; display: block; }
.hbar { display: grid; grid-template-columns: 128px 1fr 36px; align-items: center; gap: 10px; margin: 10px 0; font-size: 13px; }
.hbar .trk { height: 10px; border-radius: 5px; background: var(--line-2); overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 5px; background: var(--p); transition: width .6s var(--ease); }
.hbar .n { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.big-rate { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.big-rate b { font-size: 34px; letter-spacing: -.5px; }

/* ---------- 留言 ---------- */
.leave-list { display: grid; gap: 12px; }
.leave { background: var(--card); border-radius: 8px; box-shadow: var(--shadow-s); padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; animation: fadeUp .25s ease both; }
.leave .hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.leave .hd b { font-size: 14.5px; }
.leave .ct { grid-column: 1 / -1; white-space: pre-wrap; word-break: break-word; color: var(--ink); background: var(--bg); border-radius: 6px; padding: 10px 12px; font-size: 13.5px; }
.leave .ft { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-3); gap: 10px; flex-wrap: wrap; }
.leave .reply { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); border-left: 3px solid var(--ok); padding: 2px 0 2px 10px; }
.copyable { cursor: pointer; border-bottom: 1px dashed var(--ink-4); }
.copyable:hover { color: var(--p); border-color: var(--p); }

/* ---------- 设置 ---------- */
.set-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.set-sec { background: var(--card); border-radius: 8px; box-shadow: var(--shadow-s); padding: 20px 22px 6px; margin-bottom: 16px; }
.set-sec h3 { margin: 0 0 4px; font-size: 15px; }
.set-sec > .sub { color: var(--ink-3); font-size: 12.5px; margin: 0 0 18px; }
.set-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.set-row:first-of-type { border-top: 0; }
.set-row .t { flex: 1; }
.set-row .t b { font-weight: 500; font-size: 13.5px; display: block; }
.set-row .t span { font-size: 12.5px; color: var(--ink-3); }
.set-row .input { width: 120px; }
.colors { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.colors button { width: 28px; height: 28px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .15s; position: relative; }
.colors button:hover { transform: scale(1.1); }
.colors button.on::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 2px currentColor; }
.colors label.custom { width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(#f43f5e, #f59e0b, #22c55e, #06b6d4, #6366f1, #d946ef, #f43f5e); position: relative; cursor: pointer; overflow: hidden; box-shadow: inset 0 0 0 2px var(--card), 0 0 0 1px var(--line); }
.colors label.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.save-bar { position: sticky; bottom: 0; margin: 0 -32px -40px; padding: 14px 32px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: flex; justify-content: flex-end; align-items: center; gap: 10px; z-index: 5; transform: translateY(12px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .3s var(--ease), opacity .2s, visibility .2s; }
.save-bar.show { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
.save-bar .t { margin-right: auto; color: var(--ink-2); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.save-bar .t .dot { background: var(--warn); }
.code-box { background: #1b1c33; color: #d6d8f5; border-radius: 8px; padding: 14px 16px; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; position: relative; word-break: break-all; margin-bottom: 16px; }
.code-box .btn { position: absolute; right: 8px; top: 8px; background: rgba(255,255,255,.1); color: #fff; box-shadow: none; }
/* 11-23 复制按钮压在第一行代码上：右上角给按钮留出位置，代码绕着走 */
.code-box::before { content: ''; float: right; width: 84px; height: 24px; }
.code-box .btn:hover { background: rgba(255,255,255,.18); }
.code-box .k { color: #f0abfc; } .code-box .s { color: #86efac; }
.preview-wrap { position: sticky; top: 0; }
.preview-phone { background: var(--card); border-radius: 18px; box-shadow: var(--shadow-m); overflow: hidden; }
.preview-phone .ph-hd { padding: 16px; color: #fff; display: flex; gap: 10px; align-items: center; }
.preview-phone .ph-hd .lg { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.preview-phone .ph-hd b { display: block; font-size: 15px; } .preview-phone .ph-hd span { font-size: 12px; opacity: .85; }
.preview-phone .ph-body { background: var(--fill); padding: 16px 14px; min-height: 260px; font-size: 13px; }
.preview-phone .ph-sys { text-align: center; margin: 8px 0; } .preview-phone .ph-sys span { background: var(--line); color: var(--ink-2); font-size: 11.5px; padding: 4px 10px; border-radius: 999px; display: inline-block; max-width: 90%; }
.preview-phone .ph-b { background: var(--card); padding: 8px 12px; border-radius: 14px; border-bottom-left-radius: 5px; max-width: 80%; margin: 8px 0; box-shadow: var(--shadow-s); white-space: pre-wrap; }
.preview-phone .ph-b.me { margin-left: auto; color: #fff; border-radius: 14px; border-bottom-right-radius: 5px; }
.preview-phone .ph-in { padding: 10px 12px; background: var(--fill); } .preview-phone .ph-in div { background: var(--card); border-radius: 12px; padding: 9px 12px; color: var(--ink-4); box-shadow: 0 0 0 1px var(--line); font-size: 12.5px; }
.preview-launcher { display: flex; justify-content: flex-end; margin-top: 14px; }
.preview-launcher span { width: 52px; height: 52px; border-radius: 26px; display: grid; place-items: center; box-shadow: var(--shadow-m); }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(18,19,40,.38); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .18s ease; backdrop-filter: blur(2px); }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--card); border-radius: 10px; box-shadow: var(--shadow-l); width: 100%; max-width: 460px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; animation: modalIn .28s var(--ease); }
.modal.wide { max-width: 640px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
/* 11-25 关闭动画：以前关闭用 'fade .15s reverse'，跟打开用的是同一个动画名字，浏览器当成早就播完的那个，直接跳到最后一帧（一下就没了）。
   换成单独的退出动画名字；关闭过程中不接收点击（下面的页面马上能点） */
.lx-closing { pointer-events: none !important; }
.modal-mask.lx-closing { animation: lxFadeOut .16s ease forwards; }
.modal-mask.lx-closing .modal { animation: lxModalOut .16s cubic-bezier(.4, 0, 1, 1) forwards; }
.drawer-mask.lx-closing, .lightbox.lx-closing { animation: lxFadeOut .18s ease forwards; }
.drawer.lx-closing { animation: lxDrawerOut .2s cubic-bezier(.4, 0, 1, 1) forwards; }
@keyframes lxFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes lxModalOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes lxDrawerOut { from { transform: none; opacity: 1; } to { transform: translateX(40px); opacity: 0; } }
.modal-hd { padding: 20px 22px 6px; display: flex; align-items: flex-start; gap: 12px; }
.modal-hd h3 { margin: 0; font-size: 17px; flex: 1; }
.modal-hd .sub { font-size: 13px; color: var(--ink-3); margin-top: 3px; font-weight: 400; }
.modal-bd { padding: 14px 22px 6px; overflow-y: auto; }
.modal-ft { padding: 14px 22px 20px; display: flex; justify-content: flex-end; gap: 10px; }
.confirm-ic { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.confirm-ic.bad { background: var(--bad-soft); color: var(--bad); }
.confirm-ic.p { background: var(--p-soft); color: var(--p); }
.agent-pick { display: grid; gap: 6px; max-height: 300px; overflow-y: auto; }
.agent-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--card); text-align: left; transition: all .15s; width: 100%; }
.agent-opt:hover:not(:disabled) { border-color: var(--p-soft-2); background: var(--hover); }
.agent-opt.on { border-color: var(--p); background: var(--p-soft); }
.agent-opt:disabled { opacity: .5; cursor: not-allowed; }
.agent-opt .xfer-why { color: var(--warn); font-weight: 500; }   /* 11-29 转接限同组：为什么不能转 */
.agent-opt .t { flex: 1; }
.agent-opt .t b { display: block; font-size: 14px; }
.agent-opt .t small { color: var(--ink-3); font-size: 12px; }
.radio-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--gray-2); display: grid; place-items: center; flex: none; }
.agent-opt.on .radio-dot { border-color: var(--p); }
.agent-opt.on .radio-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--p); }

/* 抽屉 */
.drawer-mask { position: fixed; inset: 0; background: rgba(18,19,40,.28); z-index: 90; animation: fade .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 92vw); background: var(--bg); z-index: 91; box-shadow: var(--shadow-l); display: flex; flex-direction: column; animation: slideIn .32s var(--ease); }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
.drawer-hd { background: var(--card); padding: 16px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.drawer-hd .t { flex: 1; min-width: 0; }
.drawer-hd .t b { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.drawer-hd .t span { font-size: 12.5px; color: var(--ink-3); }
.drawer-bd { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 250px; }
.drawer-bd .msgs { padding: 16px 20px; }
.drawer-bd .side { border-left: 1px solid var(--line); }
.drawer-bd .side-sec { padding: 14px 16px; }

/* 吐司提示 */
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-6px); } }

/* 通知卡片（右下角） */
#notify { position: fixed; right: 20px; bottom: 96px; z-index: 250; display: flex; flex-direction: column; gap: 10px; }
.ncard { width: 320px; background: var(--card); border-radius: 8px; box-shadow: var(--shadow-l); padding: 14px; display: flex; gap: 12px; cursor: pointer; animation: slideIn .3s var(--ease); border-left: 3px solid var(--p); }
.ncard .t { flex: 1; min-width: 0; }
.ncard b { font-size: 13.5px; display: block; }
.ncard span { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ncard.out { animation: toastOut .2s forwards; }

.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(10,10,22,.9); animation: fade .2s; user-select: none; }
.lbx-stage { position: absolute; inset: 0 0 64px; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: zoom-out; }
.lbx-stage img { flex: none; max-width: none; max-height: none; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.45); cursor: zoom-in; transform-origin: center center; transition: opacity .15s; }
.lightbox.zoomed .lbx-stage img { cursor: grab; border-radius: 0; }
.lightbox.zoomed .lbx-stage img:active { cursor: grabbing; }
.lbx-bar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 12px; background: rgba(30,32,40,.92); border: 1px solid rgba(255,255,255,.08); color: #e8eaf0; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.lbx-bar button, .lbx-bar a { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: inherit; border-radius: 8px; cursor: pointer; }
.lbx-bar button:hover, .lbx-bar a:hover { background: rgba(255,255,255,.1); }
.lbx-bar svg { width: 18px; height: 18px; }
.lbx-bar i { width: 1px; height: 20px; background: rgba(255,255,255,.14); margin: 0 4px; }
.lbx-pct { min-width: 52px; text-align: center; font-size: 12.5px; font-variant-numeric: tabular-nums; cursor: pointer; padding: 8px 2px; border-radius: 8px; }
.lbx-pct:hover { background: rgba(255,255,255,.1); }
.lbx-n { font-size: 12.5px; padding: 0 10px 0 6px; color: #b9bdc8; font-variant-numeric: tabular-nums; }
.lbx-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(30,32,40,.8); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lbx-close:hover { background: rgba(60,62,72,.95); }
.lbx-close svg { width: 18px; height: 18px; }
.lbx-nav { position: absolute; top: calc(50% - 32px); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(30,32,40,.8); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lbx-nav:hover { background: rgba(60,62,72,.95); }
.lbx-nav.prev { left: 16px; } .lbx-nav.next { right: 16px; }
.lbx-nav svg { width: 20px; height: 20px; }

@media (max-width: 1280px) { .chats { grid-template-columns: 290px minmax(0, 1fr) 280px; } .set-layout { grid-template-columns: 1fr; } .preview-wrap { display: none; } }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } .charts { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login-art { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- 网站标识 ---------- */
.site-chip { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px 0 6px; border-radius: 6px; font-size: 11.5px; font-weight: 500; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; flex: none;
  color: color-mix(in srgb, var(--sc) 78%, var(--ink)); background: color-mix(in srgb, var(--sc) 11%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc) 22%, transparent); }
.site-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--sc); flex: none; }
.site-chip.lg { height: 24px; font-size: 12.5px; padding: 0 9px 0 8px; max-width: 200px; }
.citem .site-bar { position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--sc); opacity: .9; }
.citem.on .site-bar { display: none; }
.site-filter { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 10px; border-radius: 8px; border: 0; background: var(--line-2); font-size: 12.5px; color: var(--ink-2); font-weight: 500; max-width: 150px; }
.site-filter:hover { background: var(--line); color: var(--ink); }
.site-filter span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-filter svg.i { width: 14px; height: 14px; }
.rail-switch { text-decoration: none !important; margin-bottom: 2px; }
/* 网站卡片 */
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.site-card { background: var(--card); border-radius: 10px; box-shadow: var(--shadow-s); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; animation: fadeUp .3s ease both; }
.site-card:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }
.site-card .top { padding: 18px 18px 14px; display: flex; gap: 12px; align-items: flex-start; position: relative; }
.site-card .top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--sc); }
.site-card .logo { width: 42px; height: 42px; border-radius: 8px; background: var(--sc); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; box-shadow: none; }
.site-card .nm { flex: 1; min-width: 0; }
.site-card .nm b { font-size: 15.5px; display: flex; gap: 8px; align-items: center; }
.site-card .nm span { font-size: 12.5px; color: var(--ink-3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.site-card .nums { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.site-card .nums div { padding: 12px 0; text-align: center; }
.site-card .nums div + div { border-left: 1px solid var(--line-2); }
.site-card .nums b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; }
.site-card .nums span { font-size: 12px; color: var(--ink-3); }
.site-card .ft { padding: 10px 12px; display: flex; gap: 6px; align-items: center; }
.site-card .ft .agents { margin-right: auto; display: flex; align-items: center; padding-left: 6px; font-size: 12px; color: var(--ink-3); gap: 6px; flex: 1; min-width: 0; }
/* 11-21 分组名字长的时候以前被挤成一个字一行、还把"设置"按钮顶出卡片：接待分组单独一行，下面一行是头像和按钮 */
.site-card .srv { padding: 10px 18px 0; font-size: 12px; color: var(--ink-3); min-width: 0; }
.site-card .srv .ag-g { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-card .ft .agents > * { flex: none; white-space: nowrap; }
.site-card .ft > .btn { flex: none; white-space: nowrap; }
.site-card .ft .agents .av { margin-left: -6px; box-shadow: 0 0 0 2px var(--card); }
.site-card.add { border: 1.5px dashed var(--gray-1); box-shadow: none; background: transparent; align-items: center; justify-content: center; min-height: 232px; color: var(--ink-3); cursor: pointer; gap: 8px; font-weight: 500; }
.site-card.add:hover { border-color: var(--p); color: var(--p); background: var(--p-soft); transform: none; }
.site-card.add .ic { width: 44px; height: 44px; border-radius: 8px; background: var(--card); display: grid; place-items: center; box-shadow: var(--shadow-s); }
/* 弹窗里的分页标签 */
.mtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 -22px 18px; padding: 0 18px; overflow-x: auto; }
.mtabs button { border: 0; background: none; padding: 10px 12px; font-size: 13.5px; color: var(--ink-3); font-weight: 500; position: relative; white-space: nowrap; }
.mtabs button:hover { color: var(--ink); }
.mtabs button.on { color: var(--p); }
.mtabs button.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--p); }
.mpane { display: none; } .mpane.on { display: block; animation: fadeUp .2s ease; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 6px; border: 1.5px solid var(--line); cursor: pointer; transition: all .15s; user-select: none; }
.check-item:hover { border-color: var(--p-soft-2); }
.check-item.on { border-color: var(--p); background: var(--p-soft); }
.check-item input { display: none; }
.check-item .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--gray-2); display: grid; place-items: center; flex: none; background: var(--card); }
.check-item.on .box { background: var(--p); border-color: var(--p); }
.check-item.on .box::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--card); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check-item small { color: var(--ink-3); font-size: 12px; display: block; }
.info-box { background: var(--p-soft); color: var(--p-2); border-radius: 6px; padding: 10px 12px; font-size: 12.5px; display: flex; gap: 8px; margin-bottom: 14px; line-height: 1.6; }
.info-box svg.i { flex: none; margin-top: 1px; width: 16px; height: 16px; }

/* ================= 会话小结 ================= */
svg.i.flip { transform: rotate(180deg); }
svg.i.rot-up { transform: rotate(-90deg); }
svg.i.rot-down { transform: rotate(90deg); }
.tag.sm { height: 19px; padding: 0 6px; font-size: 11px; border-radius: 5px; }
.check-item.on .radio-dot { border-color: var(--p); }
.check-item.on .radio-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--p); }
.check-item.dis { opacity: .5; cursor: not-allowed; }
.sum-path { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); min-width: 0; }
.sum-path > i { font-style: normal; color: var(--ink-4); font-size: 12px; }
.sum-path .leaf { color: var(--ink); font-weight: 600; }
.sum-path.one { flex-wrap: nowrap; overflow: hidden; max-width: 100%; }
.sum-path.one > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sum-path.one > span:not(.leaf) { flex: 0 1 auto; min-width: 0; }
.sum-path.one > .leaf { flex: none; max-width: 70%; }
mark { background: var(--warn-soft); color: inherit; border-radius: 3px; padding: 0 1px; }

/* 选择弹窗 */
.modal.sum-modal { max-width: 720px; }
.sum-pick .sp-recent { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.sum-pick .sp-recent .lbl { font-size: 12px; color: var(--ink-3); margin-right: 2px; }
.sp-chip { height: 26px; border: 1px solid var(--line); background: var(--card); border-radius: 13px; padding: 0 11px; font-size: 12.5px; color: var(--ink-2); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: all .15s; }
.sp-chip:hover { border-color: var(--p); color: var(--p); background: var(--p-soft); }
.sp-cols { display: flex; margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; height: 252px; overflow-x: auto; overflow-y: hidden; background: var(--fill); scroll-behavior: smooth; }
.sp-col { flex: 0 0 196px; overflow-y: auto; padding: 6px; border-right: 1px solid var(--line-2); animation: spIn .18s var(--ease); }
.sp-col:last-child { border-right: 0; flex-grow: 1; }
@keyframes spIn { from { opacity: 0; transform: translateX(-6px); } }
.sp-item { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--ink); transition: background .12s; }
.sp-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-item svg.i { width: 15px; height: 15px; color: var(--ink-4); }
.sp-item:hover { background: var(--line-2); }
.sp-item.on { background: var(--p-soft-2); color: var(--p-2); font-weight: 500; }
.sp-item.on svg.i { color: var(--p); }
.sp-item.leaf.on { background: var(--p); color: var(--on-p); }
.sp-item.leaf.on svg.i { color: var(--on-p); }
.sp-res { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; height: 252px; overflow-y: auto; padding: 6px; }
.sp-hit { display: flex; align-items: center; gap: 5px; width: 100%; border: 0; background: none; text-align: left; padding: 9px 11px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); flex-wrap: wrap; }
.sp-hit > i { font-style: normal; color: var(--ink-4); }
.sp-hit .leaf { color: var(--ink); font-weight: 500; }
.sp-hit:hover, .sp-hit.on { background: var(--p-soft); }
.sp-hit.on { box-shadow: inset 0 0 0 1.5px var(--p); }
.sp-none { color: var(--ink-3); font-size: 13px; text-align: center; padding: 60px 10px; }
.sp-sel { display: flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 10px; padding: 8px 12px; border-radius: 6px; background: var(--line-2); font-size: 13px; transition: background .2s; }
.sp-sel.ok { background: var(--ok-soft); }
.sp-sel.ok > svg.i { color: var(--ok); width: 16px; height: 16px; }
.sp-sel.ok > span:first-of-type { color: var(--ok); font-weight: 500; }
.sp-ft-hint { flex: 1; align-self: center; font-size: 12.5px; color: var(--bad); }

/* 侧栏/列表里的小结 */
.sum-box { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sum-box .note { font-size: 12.5px; color: var(--ink-3); white-space: pre-wrap; }
.sum-add { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 7px; border: 1px dashed var(--gray-2); background: none; font-size: 12.5px; color: var(--ink-2); }
.sum-add:hover { border-color: var(--p); color: var(--p); background: var(--p-soft); }
.sum-add.warn { border-color: color-mix(in srgb, var(--warn) 50%, transparent); color: var(--warn); background: var(--warn-soft); border-style: solid; }
.sum-add svg.i { width: 14px; height: 14px; }
.sum-edit { border: 0; background: none; color: var(--ink-3); font-size: 12px; padding: 0; }
.sum-edit:hover { color: var(--p); }
.citem .pend { flex: none; font-size: 11px; font-weight: 500; color: var(--warn); background: var(--warn-soft); border-radius: 5px; padding: 1px 6px; }
.c-closed .sum-path { font-size: 12.5px; }

/* 管理端：网站切换 + 分类树 */
.sum-sites { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sum-sites button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--card); font-weight: 500; font-size: 13.5px; color: var(--ink-2); transition: all .15s; }
.sum-sites button > i { width: 9px; height: 9px; border-radius: 50%; background: var(--sc); }
.sum-sites button .cnt { font-size: 11.5px; color: var(--ink-3); background: var(--line-2); border-radius: 9px; padding: 1px 7px; font-weight: 400; }
.sum-sites button:hover { border-color: var(--p-soft-2); color: var(--ink); }
.sum-sites button.on { border-color: var(--sc); color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc) 14%, transparent); }
.sum-rule { padding: 6px 22px; }
.sum-tree-hd { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.sum-tree-hd b { font-size: 14px; }
.sum-tree-hd .muted { font-size: 12.5px; }
.grow { flex: 1; }
.st-tree { padding: 6px 8px 10px; }
.st-row { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px 0 calc(8px + var(--d) * 26px); border-radius: 9px; position: relative; transition: background .12s; }
.st-row::before { content: ""; position: absolute; left: calc(19px + (var(--d) - 1) * 26px); top: 0; bottom: 0; width: 1px; background: var(--line); display: var(--line-show, block); }
.st-row[style*="--d:0"]::before { display: none; }
.st-row:hover { background: var(--fill); }
.st-row.flash { animation: stFlash .9s ease; }
@keyframes stFlash { 0%, 40% { background: var(--p-soft); } }
.st-caret { width: 22px; height: 22px; border: 0; background: none; padding: 0; display: grid; place-items: center; color: var(--ink-3); border-radius: 6px; flex: none; }
.st-caret:not(.none):hover { background: var(--line); color: var(--ink); }
.st-caret svg.i { width: 15px; height: 15px; transition: transform .18s var(--ease); }
.st-caret.open svg.i { transform: rotate(90deg); }
.st-caret.none { cursor: default; }
.st-caret.none i { width: 5px; height: 5px; border-radius: 50%; background: var(--gray-2); }
.st-name { font-size: 14px; cursor: text; padding: 3px 6px; margin-left: -6px; border-radius: 6px; }
.st-name:hover { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.st-row[style*="--d:0"] > .st-name { font-weight: 600; }
.st-lv { font-size: 11px; color: var(--ink-4); }
.st-sub { font-size: 12px; color: var(--ink-3); }
.st-use { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.st-acts { display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
.st-row:hover .st-acts, .st-row:focus-within .st-acts { opacity: 1; }
.st-acts .icon-btn:disabled { opacity: .3; cursor: default; }
.st-input { height: 30px; border: 1.5px solid var(--p); border-radius: 8px; padding: 0 10px; font-size: 13.5px; outline: none; box-shadow: 0 0 0 3px var(--p-soft); width: 300px; max-width: 60%; }
.st-row.adding { background: var(--p-soft); }
.st-tip { font-size: 12px; color: var(--ink-3); }
.sum-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 20px 38px; color: var(--ink-3); font-size: 13px; }
.sum-empty > b { color: var(--ink-2); font-size: 15px; margin: 10px 0 4px; }
.sum-fmt { margin-top: 18px; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.sum-fmt table { border-collapse: collapse; font-size: 12.5px; background: var(--card); box-shadow: 0 0 0 1px var(--line); border-radius: 8px; overflow: hidden; }
.sum-fmt th { background: var(--fill); font-weight: 500; color: var(--ink-2); }
.sum-fmt th, .sum-fmt td { padding: 6px 14px; border: 1px solid var(--line-2); color: var(--ink); text-align: left; min-width: 86px; }
.sum-fmt td.blank { background: repeating-linear-gradient(135deg, var(--fill) 0 6px, var(--fill) 6px 7px); }
.sum-fmt small { color: var(--ink-3); font-size: 12px; }
.sum-fmt.inline { flex-direction: row; align-items: flex-start; gap: 16px; margin-top: 14px; padding: 14px; border-radius: 8px; background: var(--line-2); width: 100%; }
.sum-fmt.inline > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sum-fmt.inline > div b { font-size: 13px; color: var(--ink); }
.sum-fmt.inline small { line-height: 1.75; }

/* 导入 */
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 20px; border: 2px dashed var(--gray-1); border-radius: 8px; cursor: pointer; text-align: center; transition: all .15s; background: var(--fill); }
.drop:hover, .drop.over { border-color: var(--p); background: var(--p-soft); }
.drop .drop-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--p-soft-2); color: var(--p); display: grid; place-items: center; margin-bottom: 6px; }
.drop .drop-ic svg.i { width: 22px; height: 22px; }
.drop b { font-size: 14px; }
.drop span { font-size: 12.5px; color: var(--ink-3); }
.im-file { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 6px; background: var(--ok-soft); font-size: 13px; }
.im-file > svg.i { color: var(--ok); }
.im-file .btn { margin-left: auto; }
.im-stats { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.im-stats > div { flex: 1; min-width: 70px; background: var(--line-2); border-radius: 6px; padding: 8px 10px; display: flex; flex-direction: column; }
.im-stats b { font-size: 18px; font-variant-numeric: tabular-nums; }
.im-stats span { font-size: 12px; color: var(--ink-3); }
.im-stats .hl { background: var(--p-soft); }
.im-stats .hl b { color: var(--p); }
.im-tree { max-height: 230px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; padding: 6px 4px; }
.pv-row { display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px calc(10px + var(--d) * 20px); font-size: 13px; }
.pv-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-4); flex: none; }
.pv-row[style*="--d:0"] { font-weight: 600; }
.pv-row .tag { margin-left: 2px; font-weight: 400; }

/* 统计：咨询主题 */
.topic-row { display: grid; grid-template-columns: 22px minmax(90px, 200px) 1fr 86px; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 8px; cursor: pointer; }
.topic-row:hover { background: var(--fill); }
.topic-row.sub { cursor: default; padding-left: 30px; grid-template-columns: minmax(90px, 192px) 1fr 86px; }
.topic-row.sub:hover { background: none; }
.topic-row .nm { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-row.sub .nm { color: var(--ink-2); font-size: 13px; }
.topic-row .trk { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.topic-row .fill { height: 100%; border-radius: 4px; background: var(--p); transition: width .6s var(--ease); }
.topic-row.sub .fill { background: color-mix(in srgb, var(--p) 45%, var(--card)); }
.topic-row .n { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.topic-row .n small { color: var(--ink-3); margin-left: 4px; }
.topic-row .st-caret { pointer-events: none; }
.c-sum { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 12px; border-radius: 6px; background: var(--line-2); font-size: 12.5px; min-width: 0; }
.c-sum > svg.i { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.c-sum .sum-path { flex: 1; }
.c-sum.pend { background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 70%, var(--ink)); }
.c-sum.pend > svg.i { color: var(--warn); }
.c-sum.pend > span { flex: 1; }
.seg .cnt.pend { background: var(--warn-soft); color: var(--warn); }

/* ================= 账号安全 ================= */
.set-sec.sec-list { padding-bottom: 14px; }
.sec-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sec-hd h3 { display: flex; align-items: center; }
.set-sec.sec-list .tb { margin: 0 -22px; width: calc(100% + 44px); }
.sess-list { display: flex; flex-direction: column; gap: 8px; }
.sess { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); }
.sess-ic { width: 36px; height: 36px; border-radius: 6px; background: var(--line-2); color: var(--ink-2); display: grid; place-items: center; flex: none; }
.sess .t { flex: 1; min-width: 0; }
.sess .t b { font-weight: 500; font-size: 13.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sess .t > span { font-size: 12.5px; color: var(--ink-3); }
.sec-hd .sub { color: var(--ink-3); font-size: 12.5px; margin: 2px 0 14px; }

/* ---------- 第 1 批：头像图 / 提示音 / 权限 / 黑名单 ---------- */
.av.pic { overflow: visible; }
.av.pic > img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; pointer-events: none; }
.av.pic .st { z-index: 1; }

/* 个人设置 / 头像 */
.pf-top { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.pf-av { border: 0; background: none; padding: 0; position: relative; border-radius: 50%; cursor: pointer; }
.pf-av > i { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 4px rgba(20,22,50,.18); display: grid; place-items: center; color: var(--p); }
.pf-av > i svg { width: 13px; height: 13px; }
.pf-av:hover .av { filter: brightness(.94); }
.avp-now { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: var(--line-2); border-radius: 8px; margin-bottom: 16px; }
.avp-now b { display: block; font-size: 15px; }
.avp-now .muted { font-size: 12.5px; }
.avp-lbl { font-size: 12.5px; color: var(--ink-3); font-weight: 500; margin: 0 0 8px; }
.avp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-bottom: 18px; }
.avp-it { border: 0; background: var(--card); border-radius: 8px; padding: 6px 0; display: grid; place-items: center; position: relative; cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .15s, transform .15s, background .15s; }
.avp-it:hover { background: var(--line-2); transform: translateY(-1px); }
.avp-it.on { box-shadow: inset 0 0 0 2px var(--p); background: var(--p-soft); }
.avp-it .ck { position: absolute; right: 4px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--p); color: var(--on-p); display: none; place-items: center; }
.avp-it .ck svg { width: 11px; height: 11px; stroke-width: 3; }
.avp-it.on .ck { display: grid; }
.avp-up { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: 8px; cursor: pointer; color: var(--ink-2); transition: border-color .15s, background .15s; margin-bottom: 8px; }
.avp-up:hover { border-color: var(--p); background: var(--p-soft); color: var(--p); }
.avp-up > svg { width: 22px; height: 22px; flex: none; }
.avp-up b { display: block; font-weight: 500; color: var(--ink); }
.avp-up small { color: var(--ink-3); font-size: 12px; }
.avp-up.busy { opacity: .6; pointer-events: none; }
.crop { display: grid; place-items: center; gap: 14px; padding: 4px 0 10px; }
.crop-view { position: relative; overflow: hidden; border-radius: 8px; background: #1d2033; cursor: grab; touch-action: none; user-select: none; }
.crop-view.drag { cursor: grabbing; }
.crop-view img { position: absolute; left: 0; top: 0; max-width: none; pointer-events: none; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(18,19,40,.55); pointer-events: none; outline: 2px solid rgba(255,255,255,.85); outline-offset: -2px; }
.crop-zoom { display: flex; align-items: center; gap: 10px; width: 280px; color: var(--ink-3); }
.crop-zoom input { flex: 1; accent-color: var(--p); }
.crop-zoom svg.sm { width: 14px; height: 14px; }

/* 提示音 */
.ring { display: grid; gap: 2px; }
.ring-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.ring-row:last-child { border-bottom: 0; }
.ring-row .t { flex: 1; min-width: 0; }
.ring-row .t b { display: block; font-weight: 500; }
.ring-row .t span { font-size: 12.5px; color: var(--ink-3); }
.ring-pick { display: flex; gap: 4px; align-items: center; }
.ring-sel { min-width: 190px; justify-content: flex-start; }
.ring-sel span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ring-sel svg:last-child { width: 14px; height: 14px; color: var(--ink-4); }
.ring-vol { display: flex; align-items: center; gap: 8px; color: var(--ink-3); }
.ring-vol input { width: 150px; accent-color: var(--p); }
.ring-vol b { font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 38px; }

/* 三态：跟随全局 / 单独开 / 单独关 */
.seg.tri button small { color: var(--ink-3); font-weight: 400; margin-left: 1px; }
.seg.tri button.on.yes { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(22,163,74,.25); }
.seg.tri button.on.no { background: var(--bad-soft); color: var(--bad); box-shadow: inset 0 0 0 1px rgba(229,72,77,.25); }
.perm-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.perm-row:last-child { border-bottom: 0; }
.perm-row .t { flex: 1; min-width: 0; }
.perm-row .t b { display: block; font-weight: 500; }
.perm-row .t span { font-size: 12.5px; color: var(--ink-3); }
.tri-num { display: flex; gap: 8px; align-items: center; }
.preset-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; background: var(--line-2); border-radius: 8px; margin-bottom: 6px; font-size: 13px; }
.preset-bar .btn small { color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.perm-admin-tip { display: flex; gap: 10px; align-items: center; padding: 16px; border-radius: 8px; background: var(--p-soft); color: var(--p); font-weight: 500; }
.own-tag { border: 0; cursor: pointer; font: inherit; font-size: 12px; }

/* 权限矩阵 */
.page.wide { max-width: none; }
.pm-sec { padding-bottom: 14px; }
.pm-wrap { overflow-x: auto; margin: 4px -22px 0; padding: 0 22px; }
.pm { border-collapse: separate; border-spacing: 0; font-size: 13px; }
.pm th { font-weight: 500; color: var(--ink-3); font-size: 12px; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: center; background: var(--card); }
.pm td { padding: 6px; border-bottom: 1px solid var(--line-2); text-align: center; vertical-align: middle; }
.pm tr:last-child td { border-bottom: 0; }
.pm .pm-name { text-align: left; width: 300px; min-width: 300px; max-width: 300px; position: sticky; left: 0; background: var(--card); z-index: 1; padding-left: 0; }
.pm td.pm-name b { display: block; font-weight: 500; color: var(--ink); font-size: 13.5px; }
.pm td.pm-name span { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.45; margin-top: 1px; }
.pm .pm-g { width: 96px; background: var(--p-soft); position: sticky; left: 300px; z-index: 1; }
.pm th.pm-g { color: var(--p); background: var(--p-soft); border-radius: 6px 10px 0 0; }
.pm tr:last-child td.pm-g { border-radius: 0 0 10px 10px; }
.pm .pm-ag { min-width: 68px; }
.pm .pm-ag .av { display: grid; margin: 0 auto 3px; }
.pm .pm-ag span { display: block; max-width: 76px; overflow: hidden; text-overflow: ellipsis; margin: 0 auto; color: var(--ink-2); }
.pm .pm-x { text-align: left; white-space: nowrap; padding-left: 18px; min-width: 150px; }
.pm-cell button { width: 40px; height: 32px; border: 0; border-radius: 9px; background: transparent; display: inline-grid; place-items: center; position: relative; cursor: pointer; transition: background .12s, transform .12s; color: var(--ink-4); }
.pm-cell button:hover { background: var(--line-2); transform: scale(1.06); }
.pm-cell.on button { color: var(--ok); }
.pm-cell button svg { width: 18px; height: 18px; stroke-width: 2.6; }
.pm-cell .dash { width: 12px; height: 2.5px; border-radius: 2px; background: currentColor; display: block; }
.pm-cell.own button { background: var(--warn-soft); box-shadow: inset 0 0 0 1.5px rgba(217,119,6,.35); }
.pm-cell.own.on button { background: var(--ok-soft); box-shadow: inset 0 0 0 1.5px rgba(22,163,74,.35); }
.pm-cell.own.off button { background: var(--bad-soft); box-shadow: inset 0 0 0 1.5px rgba(229,72,77,.3); color: var(--bad); }
.pm-cell button em { position: absolute; top: -7px; right: -9px; font-style: normal; font-size: 10px; line-height: 15px; padding: 0 4px; border-radius: 8px; background: var(--warn); color: #fff; font-weight: 600; transform: scale(.9); }
.pm-cell.num button { width: 46px; color: var(--ink-2); }
.pm-cell.num button b { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; }
.pm-reset { border: 0; background: var(--warn-soft); color: var(--warn); font-size: 12px; padding: 4px 9px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.pm-reset:hover { background: color-mix(in srgb, var(--warn) 22%, var(--card)); }
.pm-none { font-size: 12px; color: var(--ink-4); }
.pm-empty { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 8px; background: var(--line-2); margin-bottom: 10px; color: var(--ink-2); }
.pm-empty > svg { width: 22px; height: 22px; color: var(--p); flex: none; }
.pm-empty div { flex: 1; }
.pm-empty b { display: block; }
.pm-empty span { font-size: 12.5px; color: var(--ink-3); }
.pop-num { display: flex; align-items: center; gap: 8px; padding: 6px 10px 8px; font-size: 13px; }
.pop-num .input { width: 70px; height: 30px; }

/* 黑名单 */
.bk-kind { display: grid; gap: 8px; }
.bk-kind button { text-align: left; border: 0; background: var(--card); border-radius: 8px; padding: 11px 14px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow .15s, background .15s; }
.bk-kind button b { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); }
.bk-kind button b svg { width: 16px; height: 16px; }
.bk-kind button span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; line-height: 1.5; }
.bk-kind button.on { box-shadow: inset 0 0 0 2px var(--bad); background: var(--bad-soft); }
.bk-kind button.on b { color: var(--bad); }
.bk-kind button:disabled { opacity: .5; cursor: not-allowed; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { border: 0; background: var(--line-2); color: var(--ink-2); font-size: 12.5px; padding: 5px 11px; border-radius: 8px; cursor: pointer; transition: background .12s; }
.chips button:hover { background: var(--p-soft-2); }
.chips button.on { background: var(--bad); color: #fff; }
.side-blk { display: flex; gap: 10px; align-items: center; margin: 4px 20px 10px; padding: 10px 12px; border-radius: 8px; background: var(--bad-soft); color: var(--bad); }
.side-blk > svg { width: 18px; height: 18px; flex: none; }
.side-blk .t { flex: 1; min-width: 0; }
.side-blk b { display: block; font-size: 13px; }
.side-blk span { font-size: 12px; color: #b4383c; }
.tag svg.i { width: 12px; height: 12px; margin-right: 2px; vertical-align: -1px; }
.c-queued.monitor { background: var(--p-soft); }

/* 第 2 批：文件消息 / 表情 / 询前表单 */
.bb.file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-width: 210px; max-width: 280px; text-decoration: none; color: var(--ink) !important; background: var(--card) !important; box-shadow: inset 0 0 0 1px var(--line); white-space: normal; }
a.bb.file:hover { box-shadow: inset 0 0 0 1.5px var(--p); }
.f-ic { width: 36px; height: 42px; border-radius: 6px; flex: none; display: grid; place-items: end center; padding-bottom: 6px; font-size: 9px; font-weight: 700; color: #fff; letter-spacing: .3px; background: #8a90a8; position: relative; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.f-ic::after { content: ""; position: absolute; right: 0; top: 0; width: 28%; height: 22%; background: rgba(255,255,255,.45); }
.f-pdf { background: #e5484d; } .f-w { background: #2b6cde; } .f-x { background: #1d9a55; } .f-p { background: #e2702b; } .f-z { background: #7a5bd6; }
.f-t { min-width: 0; display: flex; flex-direction: column; }
.f-t b { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-t small { font-size: 11.5px; color: var(--ink-3); }
.emoji-grid-d { display: grid; grid-template-columns: repeat(9, 1fr); gap: 1px; padding: 6px; }
.emoji-grid-d button { border: 0; background: transparent; font-size: 20px; height: 34px; border-radius: 8px; cursor: pointer; transition: background .12s, transform .12s; }
.emoji-grid-d button:hover { background: var(--line-2); transform: scale(1.15); }
.form-kv { display: grid; gap: 6px; }
.form-kv div { display: flex; gap: 10px; font-size: 13px; }
.form-kv span { color: var(--ink-3); flex: none; min-width: 64px; }
.form-kv b { font-weight: 500; word-break: break-all; }
.lang-chip { flex: none; font-size: 10.5px; font-weight: 600; line-height: 16px; padding: 0 5px; border-radius: 5px; background: var(--warn-soft); color: var(--warn); margin-left: 4px; }

/* 网站设置：询前表单 / 营业时间 / 自动邀请 / 多语言 */
.modal.xwide { max-width: 860px; }
.dim { opacity: .45; pointer-events: none; filter: grayscale(.4); transition: opacity .2s; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.check-inline input { accent-color: var(--p); width: 15px; height: 15px; }
.pc-wrap { display: grid; grid-template-columns: 1fr 250px; gap: 20px; margin-top: 8px; }
.pc-row { display: grid; grid-template-columns: 26px 70px 1fr auto 30px; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--line-2); margin-bottom: 6px; }
.pc-row .input { height: 32px; background: var(--card); }
/* 进线欢迎语模板 */
.gt-wrap { margin-top: 12px; }
.gt-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.gt-row { padding: 10px; border-radius: 10px; background: var(--line-2); border: 1px solid transparent; transition: border-color .15s, background .15s; }
.gt-row.on { border-color: color-mix(in srgb, var(--p) 45%, transparent); background: color-mix(in srgb, var(--p) 6%, var(--card)); }
.gt-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.gt-hd .input { height: 32px; max-width: 200px; background: var(--card); }
.gt-pick { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); cursor: pointer; white-space: nowrap; min-width: 66px; }
.gt-row.on .gt-pick { color: var(--p); font-weight: 600; }
.gt-pick input { accent-color: var(--p); margin: 0; }
.gt-ins { display: inline-flex; gap: 4px; margin-left: auto; }
.gt-ins button { border: 1px solid var(--line); background: var(--card); color: var(--ink-3); font-size: 12px; padding: 3px 8px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.gt-ins button:hover { color: var(--p); border-color: var(--p); }
.gt-row .textarea { background: var(--card); min-height: 64px; }
.gt-ft { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gt-ft .hint { margin: 0; }
.gt-ft code { font-size: 12px; padding: 1px 4px; border-radius: 4px; background: var(--line-2); }
.gt-empty { padding: 14px; text-align: center; color: var(--ink-4); font-size: 13px; border: 1px dashed var(--line); border-radius: 10px; }
@media (max-width: 640px) { .gt-hd { flex-wrap: wrap; } .gt-ins { margin-left: 0; } }
.m-auto { padding: 0 5px; border-radius: 4px; background: var(--line-2); color: var(--ink-3); }
.pc-row .pc-opts { grid-column: 3 / 6; }
.pc-chk { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.pc-asname { font-size: 12px; color: var(--ok); }
.pc-asname.off { color: var(--ink-3); }
.pc-move { display: flex; flex-direction: column; }
.pc-move .icon-btn { width: 24px; height: 16px; border-radius: 5px; }
.pc-move .icon-btn svg { width: 13px; height: 13px; }
.pc-move [data-mv="-1"] svg { transform: rotate(180deg); }
.pc-move .icon-btn:disabled { opacity: .25; }
.pc-type { font-size: 12px; color: var(--p); background: var(--p-soft); border-radius: 7px; padding: 3px 0; text-align: center; font-weight: 500; }
.pc-prev-hd { font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.pc-phone { border-radius: 16px; overflow: hidden; box-shadow: 0 6px 24px rgba(20,22,50,.12), 0 0 0 1px var(--line); background: var(--fill); font-size: 12px; }
.pcp-hd { color: #fff; font-weight: 600; padding: 12px 14px; font-size: 13px; }
.pcp-card { background: var(--card); margin: 10px; border-radius: 8px; padding: 12px; box-shadow: 0 2px 10px rgba(20,22,50,.07); }
.pcp-card > b { display: block; font-size: 13px; margin-bottom: 10px; }
.pcp-f { margin-bottom: 9px; }
.pcp-f span { display: block; color: var(--ink-2); margin-bottom: 4px; font-weight: 500; }
.pcp-f em { color: var(--bad); font-style: normal; margin-left: 2px; }
.pcp-f i { display: flex; align-items: center; justify-content: space-between; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--fill); padding: 0 9px; color: var(--ink-4); font-style: normal; }
.pcp-f i.ta { height: 50px; align-items: flex-start; padding-top: 6px; }
.pcp-f u { text-decoration: none; }
.pcp-f s { width: 7px; height: 7px; border-right: 1.5px solid var(--ink-4); border-bottom: 1.5px solid var(--ink-4); transform: rotate(45deg) translateY(-2px); }
.pcp-btn { color: #fff; text-align: center; border-radius: 9px; padding: 8px; font-weight: 600; margin-top: 4px; }
.hr-now { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--line-2); border-radius: 8px; font-size: 13px; margin: 6px 0 14px; color: var(--ink-2); }
.hr-now svg { width: 16px; height: 16px; color: var(--p); }
.hr-list { display: grid; gap: 4px; }
.hr-row { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 6px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); }
.hr-row b { width: 36px; font-weight: 500; }
.hr-row.off b { color: var(--ink-3); }
.hr-row .input { width: 110px; height: 32px; }
.switch.sm { width: 34px; height: 20px; }
.switch.sm i::after { width: 14px; height: 14px; }
.switch.sm input:checked + i::after { transform: translateX(14px); }
.hr-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.iv-prev { margin-top: 4px; }
.iv-stage { position: relative; height: 150px; border-radius: 8px; background: linear-gradient(135deg, var(--fill), var(--line)); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.iv-tip { position: absolute; right: 18px; bottom: 82px; max-width: 250px; background: var(--card); border-radius: 8px; padding: 10px 30px 10px 13px; box-shadow: 0 10px 30px rgba(20,20,60,.16); font-size: 13px; animation: modalIn .4s var(--ease); }
.iv-tip b { display: block; font-weight: 600; }
.iv-tip span { color: var(--ink-2); }
.iv-tip i { position: absolute; top: 6px; right: 9px; font-style: normal; color: var(--ink-4); }
.iv-btn { position: absolute; right: 18px; bottom: 16px; width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 8px 20px rgba(20,20,60,.22); }
.lg-box { border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 8px; padding: 0 14px; }
.lg-box summary { display: flex; align-items: center; gap: 10px; height: 46px; cursor: pointer; list-style: none; }
.lg-box summary::-webkit-details-marker { display: none; }
.lg-box summary .muted { font-size: 12.5px; flex: 1; }
.lg-box summary svg { width: 16px; height: 16px; color: var(--ink-4); transition: transform .2s; }
.lg-box[open] summary svg { transform: rotate(180deg); }
.lg-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 13px; color: var(--ink-2); }
.lg-row .input { height: 34px; }
.lg-box[open] { padding-bottom: 6px; }
@media (max-width: 900px) { .pc-wrap { grid-template-columns: 1fr; } }
.grp-chip { flex: none; font-size: 11px; font-weight: 500; line-height: 17px; padding: 0 6px; border-radius: 6px; margin-left: 4px; color: var(--gc); background: color-mix(in srgb, var(--gc) 12%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gc) 25%, transparent); white-space: nowrap; }

/* 分组与路由 */
.grp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.grp-card { border-radius: 8px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .15s, transform .15s; background: var(--card); position: relative; overflow: hidden; }
.grp-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gc); }
.grp-card:hover { box-shadow: inset 0 0 0 1.5px var(--gc), 0 6px 18px rgba(20,22,50,.08); transform: translateY(-1px); }
.grp-card .hd { display: flex; align-items: center; gap: 8px; }
.grp-card .hd b { flex: 1; font-size: 14.5px; }
.grp-card .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--gc); }
.grp-card .mem { display: flex; gap: 0; margin: 10px 0 8px; min-height: 28px; align-items: center; }
.grp-card .mem .av { margin-right: -5px; box-shadow: 0 0 0 2px var(--card); }
.grp-card .mem .more { font-size: 12px; color: var(--ink-3); margin-left: 10px; }
.grp-card .ft { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); }
.grp-empty { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 8px; background: var(--line-2); }
.grp-empty > svg { width: 22px; height: 22px; color: var(--p); flex: none; }
.grp-empty b { display: block; }
.grp-empty span { font-size: 12.5px; color: var(--ink-3); }
.rule-list { display: grid; gap: 8px; margin-bottom: 14px; }
.rule { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); background: var(--card); }
.rule.off { opacity: .55; }
.rule .no { width: 26px; height: 26px; border-radius: 8px; background: var(--p-soft); color: var(--p); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.rule .no svg { width: 14px; height: 14px; }
.rule .t { flex: 1; min-width: 0; }
.rule .t > b { font-weight: 500; }
.rule .cond { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.rule .cond i { font-style: normal; color: var(--p); font-weight: 500; margin: 0 2px; }
.rule .to { font-size: 12.5px; display: flex; align-items: center; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.rule .to > svg { width: 13px; height: 13px; color: var(--ink-4); }
.rule .acts { display: flex; gap: 4px; align-items: center; }
.rule .acts [data-mv="-1"] svg { transform: rotate(180deg); }
.rule .acts .icon-btn:disabled { opacity: .25; }
.rule.fallback { background: var(--line-2); box-shadow: none; }
.rule.fallback .no { background: var(--card); color: var(--ok); }
.rule-empty { padding: 18px; text-align: center; font-size: 13px; color: var(--ink-3); border: 1.5px dashed var(--line); border-radius: 8px; }
.rcond { padding: 12px 14px 2px; border-radius: 8px; background: var(--line-2); margin-bottom: 16px; }
.rc-hd { font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.rc-hd .muted { font-weight: 400; margin-left: 6px; }
.rcond .input, .rcond .select { background: var(--card); }
.sim { display: grid; grid-template-columns: 140px 1fr 110px 150px 130px auto; gap: 8px; margin-bottom: 12px; }
.sim-out { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 8px; background: var(--line-2); margin-bottom: 14px; }
.sim-out.hit { background: var(--p-soft); }
.sim-out > svg { width: 16px; height: 16px; color: var(--ink-4); }
.sim-out .step span { display: block; font-size: 11.5px; color: var(--ink-3); }
.sim-out .step b { font-size: 14px; }
.sim-out .step small { display: block; font-size: 11.5px; color: var(--warn); }
.sim-out .also { width: 100%; font-size: 12px; color: var(--ink-3); }
@media (max-width: 1100px) { .sim { grid-template-columns: 1fr 1fr; } }

/* 第 4 批：撤回 / 敏感词 / 浏览轨迹 */
.recall-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--p); cursor: pointer; }
.recall-btn:hover { text-decoration: underline; }
.m-sys.recall { flex-direction: column; align-items: center; gap: 4px; }
.m-sys.recall span { background: transparent; color: var(--ink-3); }
.bb.recalled { background: var(--fill) !important; color: var(--ink-3) !important; text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px var(--line) !important; max-width: 70%; font-size: 13px; }
.flag-tip { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; color: var(--bad); background: var(--bad-soft); border-radius: 7px; padding: 2px 8px; }
.flag-tip svg { width: 13px; height: 13px; }
.m:not(.me) .bb + .flag-tip { align-self: flex-start; }
.word-hint { display: none; align-items: center; gap: 6px; font-size: 12.5px; padding: 6px 10px; border-radius: 8px; margin: 0 0 4px; }
.word-hint.bad { display: flex; background: var(--bad-soft); color: var(--bad); }
.word-hint.warn { display: flex; background: var(--warn-soft); color: var(--warn); }
.word-hint svg { width: 14px; height: 14px; }
.trail { position: relative; padding-left: 14px; }
.trail::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1.5px; background: var(--line); }
.trail-it { position: relative; display: flex; padding: 4px 0; }
.trail-it > i { position: absolute; left: -14px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--ink-4); }
.trail-it.now > i { box-shadow: inset 0 0 0 2px var(--ok); background: var(--ok-soft); }
.trail-it .t { min-width: 0; }
.trail-it a { display: block; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 230px; text-decoration: none; }
.trail-it a:hover { color: var(--p); }
.trail-it small { font-size: 11.5px; color: var(--ink-3); }

/* 考勤 / 操作日志 / 敏感词 */
.at-line { position: relative; height: 14px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.at-line i { position: absolute; top: 0; bottom: 0; border-radius: 2px; min-width: 2px; }
.at-ticks { position: relative; height: 14px; font-size: 10px; color: var(--ink-4); }
.at-ticks span { position: absolute; transform: translateX(-50%); top: 2px; }
.at-ticks span:first-child { transform: none; } .at-ticks span:last-child { transform: translateX(-100%); }
.at-legend { display: flex; gap: 16px; align-items: center; padding: 10px 16px; font-size: 12.5px; color: var(--ink-2); border-top: 1px solid var(--line-2); }
.at-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.op-detail { font-size: 12.5px; color: var(--ink-2); max-width: 420px; }
.tag.op-security, .tag.op-words { background: var(--bad-soft); color: var(--bad); }
.tag.op-export { background: var(--warn-soft); color: var(--warn); }
.tag.op-team, .tag.op-setting { background: var(--p-soft); color: var(--p); }
.pager { display: flex; gap: 4px; align-items: center; justify-content: flex-end; margin-top: 12px; }
.pager .muted { margin-right: auto; font-size: 13px; }
.wd-add { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.wd-add .input { max-width: 260px; }
.wd-list { display: flex; flex-direction: column; gap: 18px; padding-bottom: 14px; }
.wd-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; border-radius: 9px; font-size: 13px; cursor: pointer; background: var(--line-2); user-select: none; transition: background .12s; }
.wd-chip em { font-style: normal; font-size: 11px; padding: 0 5px; border-radius: 5px; line-height: 17px; }
.wd-chip.block em { background: var(--bad); color: #fff; }
.wd-chip.mask em { background: var(--ink-3); color: #fff; }
.wd-chip.flag em { background: var(--warn); color: #fff; }
.wd-chip button { border: 0; background: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: var(--ink-3); cursor: pointer; }
.wd-chip button:hover { background: rgba(0,0,0,.07); color: var(--bad); }
.wd-chip button svg { width: 12px; height: 12px; }
.wd-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 14px; }
.wd-out > div { padding: 12px 14px; border-radius: 8px; background: var(--line-2); }
.wd-out span { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.wd-out b { font-weight: 500; word-break: break-all; }
.wd-out small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
/* 管理端导航按钮多：矮屏幕上缩小间距，保证头像不被挤出去 */
@media (max-height: 840px) { .rail-nav { gap: 2px; } .rail-btn { height: 38px; } .rail-sep { margin: 2px 0; } }
@media (max-height: 720px) { .rail-btn { height: 33px; width: 40px; } .rail-logo { transform: scale(.85); } }

/* ---------- 深色模式补充：少数写死的浅色 ---------- */
:root[data-theme="dark"] img { color-scheme: light; }
:root[data-theme="dark"] .bb.file, :root[data-theme="dark"] .bubble.file { background: var(--fill) !important; }
:root[data-theme="dark"] .m.me .bb a { color: var(--on-p); }
:root[data-theme="dark"] .ill { filter: saturate(.9); }
:root[data-theme="dark"] .site-chip, :root[data-theme="dark"] .grp-chip { background: color-mix(in srgb, var(--sc, var(--gc)) 18%, var(--card)); }

/* =================== UI 升级：接线端 =================== */
/* 顶部工作条 */
.wbar { height: 50px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 14px 0 12px; background: var(--card); border-bottom: 1px solid var(--line); }
.wb-st { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px 0 12px; border-radius: 9px; border: 0; font-weight: 600; font-size: 13px; background: var(--ok-soft); color: var(--ok); margin-right: 6px; }
.wb-st i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.wb-st svg { width: 14px; height: 14px; opacity: .7; }
.wb-st.wst-busy { background: var(--warn-soft); color: var(--warn); }
.wb-st.wst-away, .wb-st.wst-offline { background: var(--fill); color: var(--ink-3); }
.wb-st:hover { filter: brightness(.97); }
.wb-kpi { display: flex; align-items: center; gap: 7px; padding: 0 14px; height: 26px; border-left: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.wb-kpi b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.wb-kpi b small { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.wb-load { width: 46px; height: 5px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.wb-load i { display: block; height: 100%; background: var(--p); border-radius: 3px; transition: width .3s; }
.wb-sp { flex: 1; }
.wb-q { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 4px 0 12px; border-radius: 6px; background: var(--fill); font-size: 13px; color: var(--ink-3); margin-right: 8px; white-space: nowrap; }
.wb-q svg { width: 16px; height: 16px; }
.wb-q.on { background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 80%, var(--ink)); }
.wb-q.on b { color: var(--warn); font-variant-numeric: tabular-nums; }
.wb-q .btn { height: 26px; }
.wb-search { display: flex; align-items: center; gap: 8px; height: 34px; width: 260px; padding: 0 8px 0 11px; border-radius: 6px; border: 0; background: var(--fill); color: var(--ink-3); font-size: 13px; cursor: text; transition: box-shadow .15s; }
.wb-search:hover { box-shadow: inset 0 0 0 1px var(--line); }
.wb-search span:first-of-type { flex: 1; text-align: left; }
.wb-search svg { width: 16px; height: 16px; }
@media (max-width: 1280px) { .wb-search { width: 180px; } .wb-search span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
@media (max-width: 1120px) { .wb-kpi:nth-of-type(4), .wb-kpi:nth-of-type(5) { display: none; } }

/* 顶部提醒横条：聊天区上方，只保留一条 */
.nbar-wrap { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(560px, calc(100% - 40px)); pointer-events: none; }
.main:has(.wbar) .nbar-wrap { top: 60px; }
.main:has(.chats) .nbar-wrap { top: 124px; left: calc(316px + (100% - 628px) / 2); width: min(560px, calc(100% - 700px)); }
.main:has(.chats.no-side) .nbar-wrap { left: calc(316px + (100% - 316px) / 2); width: min(560px, calc(100% - 380px)); }
.nbar { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 8px; background: var(--card); box-shadow: var(--shadow-m), inset 0 0 0 1px var(--line); cursor: pointer; animation: nbarIn .3s var(--ease); }
.nbar.new { box-shadow: var(--shadow-m), inset 3px 0 0 var(--p); }
.nbar.leave { box-shadow: var(--shadow-m), inset 3px 0 0 var(--info); }
.nbar .t { flex: 1; min-width: 0; display: flex; gap: 8px; align-items: baseline; }
.nbar .t b { font-size: 13px; white-space: nowrap; }
.nbar .t span { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nbar > svg.i { width: 18px; height: 18px; color: var(--p); margin-left: 2px; }
.nbar.perm { cursor: default; }
.nbar.out { animation: nbarOut .2s forwards; }
@keyframes nbarIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes nbarOut { to { opacity: 0; transform: translateY(-6px); } }

/* Ctrl+K 搜索 */
.sp-mask { position: fixed; inset: 0; z-index: 300; background: rgba(10,14,18,.32); backdrop-filter: blur(2px); display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; animation: fade .15s ease; }
.sp-box { width: min(620px, calc(100vw - 40px)); background: var(--card); border-radius: 10px; box-shadow: var(--shadow-l); overflow: hidden; animation: modalIn .25s var(--ease); }
.sp-in { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 54px; border-bottom: 1px solid var(--line); }
.sp-in svg { width: 19px; height: 19px; color: var(--ink-3); }
.sp-in input { flex: 1; border: 0; outline: none; background: none; font-size: 15px; }
.sp-res { max-height: 52vh; overflow-y: auto; padding: 6px; }
.sp-it { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.sp-it.on, .sp-it:hover { background: var(--p-soft); }
.sp-it .t { flex: 1; min-width: 0; }
.sp-it b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; }
.sp-it b em { font-style: normal; font-size: 11px; padding: 0 6px; line-height: 17px; border-radius: 5px; background: var(--fill); color: var(--ink-3); font-weight: 500; }
.sp-it b em.active { background: var(--ok-soft); color: var(--ok); }
.sp-it b em.queued { background: var(--warn-soft); color: var(--warn); }
.sp-it .t span { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-it small { font-size: 11.5px; color: var(--ink-3); }
.sp-empty { padding: 28px 16px; text-align: center; font-size: 13px; color: var(--ink-3); }
.sp-ft { display: flex; gap: 6px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--ink-3); }
.sp-ft .kbd { margin-left: 8px; } .sp-ft .kbd:first-child { margin-left: 0; }

/* 会话列表：三行 */
.clist-hd .seg button { padding: 0 4px; font-size: 12.5px; gap: 4px; }
.citem { align-items: flex-start; }
.citem .l1 .nm { flex: 0 1 auto; }
.citem .l1 > .tm, .citem .l1 > .wtimer { margin-left: auto; }
.wtimer { flex: none; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-3); background: var(--fill); padding: 0 6px; border-radius: 6px; line-height: 18px; }
.wtimer.warn { color: var(--warn); background: var(--warn-soft); }
.wtimer.bad { color: var(--bad); background: var(--bad-soft); position: relative; }
/* 闪烁圈用透明度动画（显卡直接处理），不用 box-shadow 动画：那个每一帧都要重画列表，等的人多时会拖慢打字 */
.wtimer.bad::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 18%, transparent); opacity: 0; animation: pulseO 2s ease-in-out infinite; will-change: opacity; pointer-events: none; }
@keyframes pulseO { 50% { opacity: 1; } }
@keyframes pulseBad { 50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 18%, transparent); } }
.citem .l3 { display: flex; gap: 5px; align-items: center; margin-top: 5px; flex-wrap: nowrap; overflow: hidden; }
.citem .l3 .site-chip, .citem .l3 .grp-chip { margin-left: 0; }
.ctag { flex: none; font-size: 11px; line-height: 17px; padding: 0 6px; border-radius: 6px; background: var(--p-soft); color: var(--p-2); }
.cmeta { flex: none; font-size: 11px; color: var(--ink-3); }
.citem .accept { bottom: auto; top: 30px; }
.kbd-s { font-size: 10.5px; font-weight: 500; opacity: .6; margin-left: 4px; font-family: ui-monospace, Menlo, Consolas, monospace; }

/* 推荐回复 */
.rec { display: flex; align-items: center; gap: 6px; padding: 2px 2px 8px; flex-wrap: wrap; }
.rec-l { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); }
.rec-l svg { width: 14px; height: 14px; color: var(--p); }
.rec button[data-rq] { border: 0; background: var(--p-soft); color: var(--p-2); font-size: 12.5px; padding: 4px 10px; border-radius: 8px; cursor: pointer; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .12s; }
.rec button[data-rq]:hover { background: var(--p-soft-2); }
.rec-x { border: 0; background: none; color: var(--ink-4); width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; margin-left: auto; cursor: pointer; }
.rec-x:hover { background: var(--fill); color: var(--ink-2); }
.rec-x svg { width: 13px; height: 13px; }

/* 右栏：访客信息卡 + 分页 */
.side { display: flex; flex-direction: column; }
.vcard { padding: 14px 16px 12px; border-bottom: 1px solid var(--line-2); flex: none; }
.vc-hd { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.vc-hd .t { min-width: 0; flex: 1; }
.vc-name { font-weight: 600 !important; font-size: 15px !important; padding: 2px 6px !important; margin: -2px -6px 0 !important; width: 100%; }
.vc-hd .t > span { display: block; font-size: 12px; color: var(--ink-3); }
.vc-kv { display: grid; grid-template-columns: 58px 1fr; gap: 6px 8px; margin: 0 0 10px; font-size: 12.5px; }
.vc-kv dt { color: var(--ink-3); }
.vc-kv dd { margin: 0; min-width: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.vc-kv dd .clamp { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.vc-contact .inline-edit { flex: 1; min-width: 0; padding: 1px 6px; margin: -1px -6px; font-size: 12.5px; }
.icon-btn.xs { width: 22px; height: 22px; border-radius: 6px; }
.icon-btn.xs svg { width: 13px; height: 13px; }
.vcard .tags-box { margin: 0; }
.stabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--line); flex: none; position: sticky; top: 0; background: var(--card); z-index: 2; }
.stabs button { flex: 1; border: 0; background: none; padding: 10px 4px 9px; font-size: 13px; color: var(--ink-3); font-weight: 500; position: relative; display: inline-flex; justify-content: center; align-items: center; gap: 4px; }
.stabs button:hover { color: var(--ink); }
.stabs button.on { color: var(--p); }
.stabs button.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--p); }
.stabs i { font-style: normal; font-size: 10.5px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--fill); color: var(--ink-3); display: inline-grid; place-items: center; padding: 0 4px; }
.stabs i.warn { background: var(--warn); color: #fff; }
.spane .side-sec h4 { margin-bottom: 8px; }
#vNote { width: 100%; min-height: 54px; }
.sqr { padding: 12px 12px 10px; }
.sqr .input { height: 32px; }
.sqr-cats { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0; }
.sqr-cats button { border: 0; background: var(--fill); color: var(--ink-2); font-size: 12px; padding: 3px 9px; border-radius: 8px; cursor: pointer; }
.sqr-cats button.on { background: var(--p); color: var(--on-p); }
.sqr-list { display: grid; gap: 6px; }
.sqr-it { padding: 9px 10px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; user-select: none; transition: box-shadow .12s, background .12s; }
.sqr-it:hover { box-shadow: inset 0 0 0 1.5px var(--p); background: var(--p-soft); }
.sqr-it b { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.sqr-it b em { font-style: normal; font-size: 10.5px; color: var(--ink-3); background: var(--fill); border-radius: 4px; padding: 0 5px; margin-left: auto; font-weight: 400; }
.sqr-it span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.sqr-tip { font-size: 11.5px; color: var(--ink-3); text-align: center; margin-top: 10px; }

/* =================== UI 升级：管理端数据概览实时区 =================== */
.rt-alerts { display: grid; gap: 8px; margin-bottom: 14px; }
.rt-alert { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.rt-alert.bad { background: var(--bad-soft); color: var(--bad); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 25%, transparent); }
.rt-alert.warn { background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 85%, var(--ink)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 25%, transparent); }
.rt-alert span { flex: 1; font-weight: 500; }
.rt-alert svg { width: 18px; height: 18px; flex: none; }
.rt-hd { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.rt-hd h3 { margin: 0; font-size: 15px; }
.rt-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.rt-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); position: relative; }
.rt-live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); opacity: 0; animation: pulseO 2s ease-in-out infinite; will-change: opacity; }
@keyframes rtPulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); } }
.rt-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 16px; }
.rt-k { background: var(--card); border-radius: 8px; box-shadow: var(--shadow-s); padding: 14px 16px; position: relative; overflow: hidden; }
.rt-k > span { font-size: 12.5px; color: var(--ink-3); }
.rt-k > b { display: block; font-size: 26px; font-weight: 700; margin: 4px 0 2px; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.rt-k > b small { font-size: 14px; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.rt-k > em { font-style: normal; font-size: 12px; color: var(--ink-3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-k em b.up { color: var(--ok); } .rt-k em b.down { color: var(--bad); }
.rt-k.warn { box-shadow: var(--shadow-s), inset 0 3px 0 var(--warn); } .rt-k.warn > b { color: var(--warn); }
.rt-k.bad { box-shadow: var(--shadow-s), inset 0 3px 0 var(--bad); } .rt-k.bad > b { color: var(--bad); }
.rt-load { margin-bottom: 22px; }
.rt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 4px 28px; margin-top: 10px; }
.rt-a { display: grid; grid-template-columns: 28px 90px 44px 1fr 40px 64px 40px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.rt-a b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-a .st { font-size: 12px; color: var(--ink-3); }
.rt-a .bar { height: 7px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.rt-a .bar i { display: block; height: 100%; border-radius: 4px; background: var(--p); transition: width .4s; }
.rt-a .bar i.high { background: var(--warn); } .rt-a .bar i.full { background: var(--bad); }
.rt-a .n { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.rt-a .t { font-size: 12px; color: var(--ink-3); text-align: right; }
.rt-a.off { opacity: .55; }
@media (max-width: 1300px) { .rt-kpis { grid-template-columns: repeat(3, 1fr); } }

/* =================== 管理端：分组导航 =================== */
.app:has(.rail.wide) { grid-template-columns: 208px 1fr; transition: grid-template-columns .2s var(--ease); }
.app:has(.rail.wide.mini) { grid-template-columns: 68px 1fr; }
.rail.wide { align-items: stretch; padding: 12px 10px; gap: 1px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.rail.wide::-webkit-scrollbar { display: none; }
.rail.wide .rail-logo { width: auto; height: 40px; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; padding: 0 4px; place-items: initial; }
.rail-brand { flex: 1; color: #fff; font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap; }
.rail-brand small { display: block; font-size: 11px; color: var(--rail-ink); font-weight: 400; }
.rail-fold { color: var(--rail-ink); }
.rail-fold:hover { background: rgba(255,255,255,.08); color: #fff; }
.rail.wide .rail-nav { gap: 1px; }
.rail-grp { font-size: 11px; color: var(--rail-ink); opacity: .7; letter-spacing: .5px; padding: 12px 10px 4px; white-space: nowrap; }
.rail-grp:first-child { padding-top: 2px; }
.rail.wide .rail-btn { width: 100%; height: 36px; display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 0 10px; border-radius: 9px; font-size: 13.5px; }
.rail.wide .rail-btn svg.i { width: 18px; height: 18px; flex: none; }
.rail.wide .rail-btn .lbl { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; }
.rail.wide .rail-btn .badge { position: static; box-shadow: none; }
.rail.wide .rail-btn .tip { display: none; }
.rail.wide .rail-btn.on { box-shadow: none; }
.rail-btn .lbl { display: none; }
.rail.wide .rail-btn .lbl { display: block; }
.rail.wide .rail-switch { margin-top: 8px; }
.rail.wide .rail-me { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin-top: 4px; text-align: left; border-radius: 6px; }
.rail-me .me-t { display: none; }
.rail.wide .rail-me .me-t { display: block; min-width: 0; color: #fff; }
.rail-me .me-t b { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-me .me-t small { font-size: 11px; color: var(--rail-ink); }
/* 收起：只显示图标，鼠标移上去显示名字 */
.rail.wide.mini { align-items: center; padding: 12px 0; }
.rail.wide.mini .rail-logo { flex-direction: column; height: auto; padding: 0; gap: 6px; }
.rail.wide.mini .rail-brand, .rail.wide.mini .lbl, .rail.wide.mini .me-t { display: none !important; }
.rail.wide.mini .rail-grp { font-size: 0; padding: 6px 0 0; } .rail.wide.mini .rail-grp::before { content: ""; display: block; width: 24px; height: 1px; background: rgba(255,255,255,.1); margin: 4px auto; }
.rail.wide.mini .rail-grp:first-child::before { display: none; }
.rail.wide.mini .rail-btn { width: 44px; height: 38px; justify-content: center; padding: 0; }
.rail.wide.mini .rail-btn .badge { position: absolute; top: 2px; right: 2px; }
.rail.wide.mini .rail-btn .tip { display: block; }
.rail.wide.mini .rail-me { padding: 4px; }
.rail.wide.mini { overflow: visible; }
@media (max-height: 760px) { .rail.wide .rail-btn { height: 32px; } .rail-grp { padding-top: 8px; } }

/* =================== 网站设置整页 =================== */
.sp-page { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sp-top { display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: var(--card); border-bottom: 1px solid var(--line); flex: none; }
.sp-back { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--ink-3); text-decoration: none; }
.sp-back svg { width: 15px; height: 15px; transform: rotate(180deg); }
.sp-back:hover { color: var(--p); }
.sp-top h1 { margin: 0; font-size: 18px; }
.sp-acts { margin-left: auto; display: flex; gap: 8px; }
.sp-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 430px; }
.sp-nav { padding: 14px 10px; border-right: 1px solid var(--line); background: var(--card); overflow-y: auto; }
.sp-grp { font-size: 11.5px; color: var(--ink-3); padding: 12px 10px 4px; letter-spacing: .5px; }
.sp-grp:first-child { padding-top: 2px; }
.sp-nav button { display: flex; align-items: center; width: 100%; border: 0; background: none; text-align: left; height: 34px; padding: 0 10px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); }
.sp-nav button:hover { background: var(--hover); color: var(--ink); }
.sp-nav button.on { background: var(--p-soft); color: var(--p); font-weight: 500; }
.sp-flag { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.sp-flag.on { background: var(--ok); }
.sp-form { overflow-y: auto; padding: 22px 28px 90px; }
.sp-form .mpane { max-width: 720px; }
.sp-sec-hd { margin-bottom: 16px; }
.sp-sec-hd h2 { margin: 0; font-size: 17px; }
.sp-sec-hd p { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.sp-prev { border-left: 1px solid var(--line); background: var(--fill); display: flex; flex-direction: column; align-items: center; padding: 14px 16px; overflow-y: auto; }
.sp-prev-hd { width: 100%; max-width: 380px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sp-prev-hd b { font-size: 13px; flex: 1; }
.seg.sm button { height: 24px; font-size: 12px; padding: 0 8px; }
.sp-phone { width: 380px; height: min(640px, calc(100vh - 210px)); min-height: 480px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-l), 0 0 0 1px var(--line); background: #fff; flex: none; }
.sp-phone iframe { width: 100%; height: 100%; border: 0; display: block; }
.sp-prev-tip { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.sp-prev-tip svg { width: 14px; height: 14px; }
.sp-save { margin: 0; position: fixed; left: auto; right: 0; bottom: 0; width: auto; }
.app:has(.sp-page) .sp-save { left: 272px; }
.app.sub-off:has(.sp-page) .sp-save { left: 68px; }
@media (max-width: 1280px) { .sp-body { grid-template-columns: minmax(0, 1fr) 400px; } .sp-phone { width: 360px; } }
/* 横幅编辑 */
.bn-ed { border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); background: var(--card); padding: 12px 14px 4px; margin-bottom: 10px; }
.bn-ed.off { opacity: .65; }
.bn-ed-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.bn-ed-hd .sp { flex: 1; }
.bn-ed-hd [data-mv="-1"] svg { transform: rotate(90deg); } .bn-ed-hd [data-mv="1"] svg { transform: rotate(-90deg); }
.bn-ed-hd .icon-btn:disabled { opacity: .25; }
.bn-tpls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 12px; }
.bn-tpls button { border: 0; background: none; padding: 0; font-size: 12px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; align-items: center; cursor: pointer; }
.bn-tpls button.on { color: var(--p); font-weight: 500; }
.bn-mini { display: block; width: 100%; height: 38px; border-radius: 8px; position: relative; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #06120e)); }
.bn-tpls button.on .bn-mini { box-shadow: 0 0 0 2px var(--p), 0 0 0 4px var(--p-soft); }
.bn-mini i:first-child { position: absolute; left: 8px; top: 10px; width: 46%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.9); }
.bn-mini i:last-child { position: absolute; left: 8px; top: 21px; width: 30%; height: 4px; border-radius: 2px; background: rgba(255,255,255,.6); }
.bn-mini.t2 { background: color-mix(in srgb, var(--c) 10%, #fff); box-shadow: inset 3px 0 0 var(--c), 0 0 0 1px var(--line); }
.bn-mini.t2 i { background: color-mix(in srgb, var(--c) 60%, #333) !important; opacity: .6; }
.bn-mini.t3 { background: linear-gradient(120deg, #ff7a3d, #ffb340); }
.bn-mini.t4 { background: linear-gradient(135deg, #1b2230, #2b3648); }
.bn-mini.t5 { background: #fff7e0; height: 38px; }
.bn-mini.t5 i { background: #b45309 !important; opacity: .55; top: 16px !important; height: 5px !important; }
.bn-mini.t5 i:last-child { display: none; }
.bn-img { position: relative; margin-bottom: 12px; border-radius: 8px; overflow: hidden; }
.bn-img img { display: block; width: 100%; max-height: 160px; object-fit: cover; }
.bn-img.drag .bn-drop { border-color: var(--p); background: var(--p-soft); }
.bn-img.busy { opacity: .5; pointer-events: none; }
.bn-drop { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 22px; border: 1.5px dashed var(--gray-1); border-radius: 8px; cursor: pointer; color: var(--ink-2); font-size: 13px; }
.bn-drop:hover { border-color: var(--p); color: var(--p); }
.bn-drop svg { width: 24px; height: 24px; }
.bn-drop small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.bn-re { position: absolute; right: 8px; bottom: 8px; }
.bn-time { display: flex; align-items: center; gap: 6px; }
.bn-time .input { min-width: 0; font-size: 12.5px; padding: 0 6px; }
.bn-st { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; margin: -4px 0 10px; color: var(--ink-3); }
.bn-st svg { width: 13px; height: 13px; }
.bn-st.on { color: var(--ok); } .bn-st.wait { color: var(--warn); }
.bn-empty { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 8px; background: var(--fill); margin-bottom: 12px; color: var(--ink-2); }
.bn-empty > svg { width: 26px; height: 26px; color: var(--p); flex: none; }
.bn-empty b { display: block; } .bn-empty span { font-size: 12.5px; color: var(--ink-3); }
/* CSS 编辑 */
.css-ed { border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); background: var(--card); overflow: hidden; }
.css-ta { width: 100%; min-height: 260px; border: 0; outline: none; resize: vertical; padding: 12px 14px; font: 12.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--fill-2); color: var(--ink); tab-size: 2; }
.css-ta:focus { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--p); }
.css-ft { display: flex; align-items: center; padding: 4px 6px 4px 12px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--ink-3); }
.css-ft span { flex: 1; } .css-ft span.bad { color: var(--bad); }
.css-side { margin-top: 14px; }
.lbl2 { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; }
.lbl2 .muted { font-weight: 400; font-size: 12px; margin-left: 4px; }
.css-ref { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px; }
.css-ref button { display: flex; justify-content: space-between; gap: 8px; align-items: center; border: 0; background: var(--fill); border-radius: 8px; padding: 6px 9px; font-size: 12px; text-align: left; cursor: pointer; }
.css-ref button:hover { background: var(--p-soft); }
.css-ref code { font-size: 11.5px; color: var(--p-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.css-ref span { color: var(--ink-3); flex: none; }
.css-side .chips button.on { background: var(--p); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--fill); padding: 1px 5px; border-radius: 4px; }

/* 留言：回复访客 */
.leave .reply.to-v { background: var(--p-soft); }
.leave .reply.to-v b { display: inline-flex; align-items: center; gap: 4px; color: var(--p-2); }
.leave .reply.to-v b svg { width: 14px; height: 14px; }
.leave .reply .rs { display: block; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.leave .reply .rs.ok { color: var(--ok); }
/* 网站设置：客服按钮 */
.sp-sub { font-weight: 600; font-size: 14px; margin: 22px 0 12px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.lc-wrap { display: block; }
/* 右边预览：网站上的客服按钮和邀请气泡（实际像素） */
.sp-form .iv-prev { display: none; }
.sp-site { width: 380px; height: min(640px, calc(100vh - 210px)); min-height: 480px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-l), 0 0 0 1px var(--line); background: var(--card); flex: none; display: flex; flex-direction: column; }
.sp-site[hidden], .sp-phone[hidden] { display: none; }
.ss-bar { display: flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; background: var(--fill-2); border-bottom: 1px solid var(--line); flex: none; }
.ss-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.ss-bar span { margin-left: 8px; flex: 1; height: 20px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 11px; line-height: 20px; padding: 0 10px; color: var(--ink-4); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ss-page { position: relative; flex: 1; overflow: hidden; }
.ss-sk { padding: 22px 20px; display: grid; gap: 10px; }
.ss-sk b { display: block; height: 18px; width: 52%; border-radius: 5px; background: var(--line); margin-bottom: 6px; }
.ss-sk i { display: block; height: 10px; border-radius: 5px; background: var(--line-2, var(--fill-2)); }
.ss-sk em { display: block; height: 120px; border-radius: 8px; background: var(--fill-2); margin: 6px 0; }
.sp-site .lc-btn { font-size: 15px; box-shadow: 0 6px 18px rgba(16,24,32,.22); }
.sp-site .lc-btn.pill { padding: 0 20px 0 16px; gap: 8px; }
.ss-tip { position: absolute; max-width: 250px; background: var(--card); border-radius: 10px; padding: 11px 30px 11px 14px; box-shadow: 0 10px 30px rgba(20,20,60,.18), 0 0 0 1px var(--line); font-size: 13px; line-height: 1.5; }
.ss-tip b { display: block; font-weight: 600; margin-bottom: 2px; }
.ss-tip span { color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.ss-tip i { position: absolute; top: 7px; right: 10px; font-style: normal; color: var(--ink-4); }
.ss-note { display: flex; gap: 6px; align-items: flex-start; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); background: var(--fill-2); flex: none; }
.ss-note svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.lc-stage { position: relative; height: 170px; border-radius: 8px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.lc-page { position: absolute; inset: 14px 16px; display: grid; gap: 8px; align-content: start; }
.lc-page i { display: block; height: 10px; border-radius: 5px; background: var(--line); }
.lc-page i:nth-child(2) { width: 70%; } .lc-page i:nth-child(3) { width: 45%; }
.lc-btn { position: absolute; height: var(--s); min-width: var(--s); border-radius: calc(var(--s) / 2); background: var(--c); display: flex; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 4px 12px rgba(16,24,32,.2); color: #fff; font-size: 11px; font-weight: 600; transition: all .2s; }
.lc-btn svg { width: calc(var(--s) * .5); height: calc(var(--s) * .5); }
.lc-btn.pill { padding: 0 10px 0 8px; }

/* =================== 管理端：一级图标栏 + 二级菜单 =================== */
.app.has-sub { grid-template-columns: 68px 204px 1fr; transition: grid-template-columns .22s var(--ease); }
.app.has-sub.sub-off { grid-template-columns: 68px 0 1fr; }
.app.has-sub .rail-btn { height: 54px; width: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.app.has-sub .rail-btn svg.i { width: 20px; height: 20px; }
.rail-lb { display: none; }
.app.has-sub .rail-lb { display: block; font-size: 11px; line-height: 1; }
.app.has-sub .rail-btn .badge { top: 4px; right: 4px; }
.app.has-sub .rail-btn.on { box-shadow: none; }
.subnav { background: var(--subnav); border-left: 1px solid rgba(255,255,255,.05); color: var(--subnav-ink); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
:root[data-theme="dark"] .subnav { background: #10161a; }
.sub-off .subnav { visibility: hidden; }
.sn-hd { display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 10px 0 18px; flex: none; }
.sn-hd b { font-size: 15.5px; color: #fff; font-weight: 600; white-space: nowrap; }
.sn-hd .icon-btn { color: var(--rail-ink); }
.sn-hd .icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.sn-body { flex: 1; overflow-y: auto; padding: 2px 10px 16px; scrollbar-width: thin; }
.sn-it { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 9px; color: var(--subnav-ink2); text-decoration: none !important; font-size: 13.5px; position: relative; transition: background .12s, color .12s; white-space: nowrap; }
.sn-it:hover { background: rgba(255,255,255,.06); color: #fff; }
.sn-it.on { background: rgba(var(--p-rgb), .22); color: #fff; font-weight: 500; }
.sn-it.on::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--p); }
.sn-n { margin-left: auto; font-size: 11px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: rgba(255,255,255,.1); color: var(--subnav-ink); display: inline-grid; place-items: center; font-weight: 500; }
.sn-n.hot { background: var(--bad); color: #fff; }
.sn-n.ok { background: var(--ok-soft); color: var(--ok); }   /* 11-29 AI 二级菜单上的状态 */
.sn-n.warn { background: var(--warn-soft); color: var(--warn); }
.sn-on { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: #34d399; }
.sn-site { display: flex; align-items: center; gap: 8px; width: 100%; height: 42px; margin: 8px 0 6px; padding: 0 10px 0 12px; border: 0; border-radius: 6px; background: rgba(255,255,255,.07); color: #fff; font-size: 13.5px; text-align: left; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.sn-site:hover { background: rgba(255,255,255,.11); }
.sn-site i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.sn-site span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.sn-site em { font-style: normal; font-size: 11px; color: #fca5a5; }
.sn-site svg { width: 15px; height: 15px; color: var(--rail-ink); }
.sn-grp { margin-top: 2px; }
.sn-gh { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 32px; padding: 0 10px 0 12px; border: 0; background: none; color: var(--rail-ink); font-size: 12px; letter-spacing: .5px; }
.sn-gh:hover { color: #fff; }
.sn-gh svg { width: 14px; height: 14px; transform: rotate(180deg); transition: transform .2s; }
.sn-grp.closed .sn-gh svg { transform: none; }
.sn-grp.closed .sn-gb { display: none; }
.sn-gb .sn-it { padding-left: 22px; height: 36px; }
.sn-add { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0 12px; height: 36px; border-radius: 9px; border: 1px dashed rgba(255,255,255,.14); color: var(--rail-ink); font-size: 13px; text-decoration: none !important; }
.sn-add:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.sn-add svg { width: 15px; height: 15px; }
.sn-empty { padding: 14px 12px; font-size: 13px; color: var(--rail-ink); }
.sp-tab { font-size: 14px; font-weight: 500; color: var(--ink-3); margin-left: 10px; }
.sp-tab:not(:empty)::before { content: "/ "; color: var(--ink-4); }

/* 设置分块折叠 */
.set-sec.foldable > h3, .set-sec.foldable > .sec-hd { cursor: pointer; user-select: none; }
.set-sec.foldable > h3::after, .set-sec.foldable > .sec-hd > div:first-child > h3::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px; border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3); transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.set-sec.foldable.folded > h3::after, .set-sec.foldable.folded > .sec-hd > div:first-child > h3::after { transform: translateY(0) rotate(-45deg); }
.set-sec.foldable:hover > h3, .set-sec.foldable:hover > .sec-hd h3 { color: var(--p); }
.set-sec.folded { padding-bottom: 16px; }
.set-sec.folded > :not(h3):not(.sec-hd):not(.sub) { display: none !important; }
/* 11-20 收起时只留标题下面那句说明；卡片里面别的 .sub 段落（比如 开放接口 → 接口文档 → Webhook 推送格式 里"验证签名"下面那句）也收起来，以前露在白底上 */
.set-sec.folded > .sub:not(h3 + .sub):not(.sec-hd + .sub) { display: none !important; }
.set-sec.folded > .sub { margin-bottom: 0; }
.set-sec.folded > .sec-hd { margin-bottom: 0; }
/* 网站步骤 */
.sn-steps { margin-top: 4px; }
.sn-step { gap: 10px; }
.sn-no { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: rgba(255,255,255,.08); color: var(--subnav-ink2); }
.sn-step.on .sn-no { background: var(--p); color: var(--on-p); }

/* 网站设置：卡片、聊天链接、预设 */
.sp-form .set-sec.sp-card { box-shadow: var(--shadow-s); }
.sp-form .mpane > .set-row:first-of-type { background: var(--card); border-radius: 8px; box-shadow: var(--shadow-s); padding: 16px 22px; margin-bottom: 16px; }
.lk-row { display: flex; gap: 8px; margin-bottom: 14px; }
.lk-row .input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.lk-reset { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 8px; background: var(--fill); margin-bottom: 14px; }
.lk-reset div { flex: 1; }
.lk-reset b { display: block; font-size: 13.5px; font-weight: 500; }
.lk-reset span { font-size: 12.5px; color: var(--ink-3); }
.lk-wait { padding: 14px; border-radius: 8px; background: var(--fill); color: var(--ink-3); font-size: 13px; margin-bottom: 14px; }
.ps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.ps-card { text-align: left; border: 0; background: var(--card); border-radius: 8px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .15s, transform .15s; display: flex; flex-direction: column; gap: 3px; }
.ps-card:hover { box-shadow: inset 0 0 0 1.5px var(--pc); transform: translateY(-1px); }
.ps-card.on { box-shadow: inset 0 0 0 2px var(--pc), 0 4px 14px rgba(16,24,32,.08); }
.ps-card b { font-size: 14px; }
.ps-card > span:last-child { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.ps-sw { display: flex; gap: 3px; margin-bottom: 6px; }
.ps-sw i { height: 6px; border-radius: 3px; background: var(--pc); }
.ps-sw i:nth-child(1) { width: 28px; } .ps-sw i:nth-child(2) { width: 14px; opacity: .5; } .ps-sw i:nth-child(3) { width: 8px; opacity: .25; }
@media (max-width: 1300px) { .ps-grid { grid-template-columns: repeat(2, 1fr); } }
#lkCode { padding-right: 86px; }

.sp-prev-hd { flex-wrap: wrap; }
.sp-prev-hd .select.sm { height: 30px; font-size: 12.5px; width: 150px; padding: 0 8px; }
.pv-auto { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; margin-right: auto; }
.pv-auto svg { width: 13px; height: 13px; }

/* 角色 */
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.role-card { border-radius: 8px; padding: 12px 12px 10px 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--rc); }
.role-card .hd { display: flex; align-items: center; gap: 7px; }
.role-card .hd b { flex: 1; font-size: 14px; }
.role-card .ft { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.rdot { width: 9px; height: 9px; border-radius: 3px; background: var(--rc); flex: none; display: inline-block; }
.pm .pm-role { min-width: 76px; color: var(--ink); background: color-mix(in srgb, var(--rc) 9%, var(--card)); border-radius: 6px 10px 0 0; }
.pm .pm-role small { display: block; font-weight: 400; color: var(--ink-3); font-size: 11px; }
.pm .pm-role .rdot { margin-right: 4px; vertical-align: 0; }
.pm .pm-rc { background: color-mix(in srgb, var(--rc) 6%, var(--card)); }
.pm tr:last-child .pm-rc { border-radius: 0 0 10px 10px; }
.pm .pm-gap { width: 16px; min-width: 16px; border-bottom-color: transparent; }
.pm-num { width: 64px; height: 30px; text-align: center; padding: 0 4px; }
.pm-agb { border: 0; background: none; padding: 2px 4px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.pm-agb:hover { background: var(--hover); }
.pm-agb span { max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.rtag { font-style: normal; font-size: 10.5px; padding: 0 5px; border-radius: 5px; line-height: 16px; color: var(--rc); background: color-mix(in srgb, var(--rc) 12%, var(--card)); }
.role-chip { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 6px; color: var(--rc); background: color-mix(in srgb, var(--rc) 12%, var(--card)); font-weight: 500; }
.preset-bar .rdot { margin-right: 2px; }
.pm .pm-name { position: sticky; left: 0; }
.pm .pm-g { display: none; }

/* 视频 / 音频消息 */
.bb.media { padding: 5px !important; display: flex; flex-direction: column; gap: 3px; max-width: 300px; background: var(--card) !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--line); }
.bb.media video { width: 100%; max-height: 300px; border-radius: 6px; background: #0b0d12; display: block; }
.bb.media audio { width: 260px; max-width: 100%; display: block; }
.bb.media .m-dl { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-3); padding: 1px 4px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.bb.media .m-dl svg { width: 13px; height: 13px; flex: none; }
.bb.media .m-dl:hover { color: var(--p); }

/* ---------- 网站设置：内容卡片编辑 ---------- */
.ce-body.ce-off { opacity: .55; }
.ce-body.ce-off:hover { opacity: .8; }
.ce-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ce-tpl { border: 0; background: var(--card); border-radius: 8px; padding: 6px 6px 9px; text-align: left; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 2px; transition: box-shadow .15s, transform .15s; }
.ce-tpl:hover { box-shadow: inset 0 0 0 1px var(--p); transform: translateY(-1px); }
.ce-tpl.on { box-shadow: inset 0 0 0 2px var(--p), 0 4px 14px rgba(var(--p-rgb), .14); }
.ce-tpl b { font-size: 13px; padding: 4px 4px 0; }
.ce-tpl small { font-size: 11.5px; color: var(--ink-3); padding: 0 4px; line-height: 1.4; }
.ce-thumb { height: 104px; border-radius: 8px; background: #f3f5f7; overflow: hidden; position: relative; pointer-events: none; }
.ce-scale { position: absolute; left: 50%; top: 8px; width: 340px; transform: translateX(-50%) scale(.42); transform-origin: top center; }
.ce-scale .lxc { animation: none; margin: 0; }
.ce-none { padding: 40px; text-align: center; color: var(--ink-3); font-size: 26px; }
.ce-blocks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.ce-blk { border-radius: 8px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 8px 10px 10px; }
.ce-bh { display: flex; align-items: center; gap: 2px; margin-bottom: 6px; }
.ce-bh .sp { flex: 1; }
.ce-bn { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.ce-bn svg { width: 15px; height: 15px; color: var(--ink-3); }
.ce-bh [data-bmv="-1"] svg { transform: rotate(180deg); }
.ce-bb { display: flex; flex-direction: column; gap: 8px; }
.ce-bb .textarea { min-height: 60px; }
.ce-box-opts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ce-tones, .ce-icons { display: flex; gap: 4px; align-items: center; }
.ce-tone { width: 22px; height: 22px; border-radius: 7px; border: 0; padding: 0; background: var(--t); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); position: relative; }
.ce-tone.t-info { --t: #2f6fde; } .ce-tone.t-warn { --t: #d97706; } .ce-tone.t-ok { --t: #16a34a; } .ce-tone.t-bad { --t: #e5484d; } .ce-tone.t-gray { --t: #94a3b8; } .ce-tone.t-brand { --t: var(--p); background: conic-gradient(#f97316, #2563eb, #0c8f66, #8b5cf6, #f97316); }
.ce-tone.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--t); }
.ce-tone.t-brand.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink-3); }
.ce-icon { width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-2); display: grid; place-items: center; padding: 0; }
.ce-icon svg { width: 18px; height: 18px; }
.ce-icon:hover { background: var(--hover); }
.ce-icon.on { background: var(--p-soft); color: var(--p); box-shadow: inset 0 0 0 1px var(--p); }
.ce-noic { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; display: block; opacity: .6; }
.ce-noic::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1.5px; background: currentColor; transform: translateX(-50%) rotate(45deg); }
.ce-checks { display: flex; gap: 18px; flex-wrap: wrap; }
.ce-empty { padding: 18px; text-align: center; color: var(--ink-3); font-size: 13px; border-radius: 8px; border: 1.5px dashed var(--line); }
.ce-img img { display: block; max-width: 100%; max-height: 140px; border-radius: 6px; margin-bottom: 6px; }
.ce-drop { width: 100%; border: 1.5px dashed var(--line); background: var(--fill); border-radius: 8px; padding: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink-2); text-align: left; transition: border-color .15s, background .15s; }
.ce-drop:hover, .drag .ce-drop { border-color: var(--p); background: var(--p-soft); }
.ce-drop svg { width: 24px; height: 24px; color: var(--ink-3); flex: none; }
.ce-drop span { display: flex; flex-direction: column; font-size: 13px; }
.ce-drop small { color: var(--ink-3); font-size: 12px; }

/* 顶部区域 */
.hm-opts, .pl-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hm-opt, .pl-opt { border: 0; background: var(--card); border-radius: 8px; padding: 8px 8px 10px; text-align: left; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 2px; transition: box-shadow .15s; }
.hm-opt:hover, .pl-opt:hover { box-shadow: inset 0 0 0 1px var(--p); }
.hm-opt.on, .pl-opt.on { box-shadow: inset 0 0 0 2px var(--p), 0 4px 14px rgba(var(--p-rgb), .14); }
.hm-opt b, .pl-opt b { font-size: 13px; padding: 6px 2px 0; }
.hm-opt small, .pl-opt small { font-size: 11.5px; color: var(--ink-3); padding: 0 2px; line-height: 1.4; }
.hm-mock { height: 52px; border-radius: 8px; background: #f3f5f7; overflow: hidden; display: block; position: relative; }
.hm-mock i { position: absolute; display: block; }
.m-agent, .m-logo { background: linear-gradient(135deg, var(--p), color-mix(in srgb, var(--p) 70%, #06120e)); }
.m-agent .av { left: 10px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: inset 0 -8px 0 #fcd9bd; }
.m-logo .lg { left: 9px; top: 13px; width: 34px; height: 26px; border-radius: 6px; background: #fff; font-style: normal; font-size: 8px; font-weight: 800; color: var(--p); display: grid; place-items: center; letter-spacing: .3px; }
.hm-mock .l1 { left: 48px; top: 17px; width: 46%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.9); }
.hm-mock .l2 { left: 48px; top: 29px; width: 28%; height: 5px; border-radius: 3px; background: rgba(255,255,255,.5); }
.m-banner .img { left: 0; right: 0; top: 0; height: 36px; background: linear-gradient(100deg, #7c3aed 0%, #c026d3 45%, #f59e0b 100%); }
.m-banner .img::after { content: ""; position: absolute; left: 10px; top: 9px; width: 40%; height: 7px; border-radius: 4px; background: rgba(255,255,255,.85); box-shadow: 0 11px 0 -1px rgba(255,255,255,.55); }
.m-banner .bar { left: 0; right: 0; bottom: 0; height: 16px; background: #fff; box-shadow: 0 -1px 0 #e6e9ee; }
.m-banner .bar::before { content: ""; position: absolute; left: 8px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--p); }
.m-banner .bar::after { content: ""; position: absolute; left: 21px; top: 6px; width: 30%; height: 4px; border-radius: 2px; background: #cfd5dd; }
.hd-ed { margin-top: 14px; }
.hd-up img { display: block; max-width: 100%; max-height: 150px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); background: repeating-conic-gradient(#f1f3f5 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.hd-up[data-hup=header_logo] img { width: 88px; height: 88px; object-fit: contain; padding: 6px; }
.hd-up-acts { display: flex; gap: 6px; margin-top: 8px; }
.hs-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.hs-opt { border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: 6px; padding: 6px 12px 6px 6px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.hs-opt i { width: 34px; height: 22px; border-radius: 6px; display: block; }
.hs-opt.s-gradient i { background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 70%, #06120e)); }
.hs-opt.s-solid i { background: var(--c); }
.hs-opt.s-light i { background: #fff; box-shadow: inset 0 0 0 1px #dfe3e8, inset 0 -4px 0 var(--c); }
.hs-opt.s-dark i { background: linear-gradient(135deg, #222a3a, #121722); box-shadow: inset 0 -4px 0 var(--c); }
.hs-opt.on { box-shadow: inset 0 0 0 2px var(--p); }

/* 询前表单布局示意 */
.pl-mock { height: 52px; border-radius: 8px; background: #f3f5f7; display: grid; padding: 7px 9px; gap: 4px; align-content: center; }
.pl-mock i { display: block; border-radius: 3px; }
.pl-mock .a { height: 4px; width: 34%; background: #9aa3af; }
.pl-mock .b { height: 9px; background: #fff; box-shadow: inset 0 0 0 1px #d9dee4; border-radius: 4px; }
.pl-mock .btn { height: 9px; background: var(--p); border-radius: 4px; }
.m-side { grid-template-columns: 26% 1fr; align-items: center; column-gap: 6px; }
.m-side .a { width: 100%; }
.m-side .btn { grid-column: 2; }
.m-stack .a:nth-child(3), .m-stack .b:nth-child(4) { display: none; }
.m-inline { grid-template-columns: 1fr 30%; column-gap: 5px; }
.m-inline .a, .m-inline .b:nth-child(4) { display: none; }
.m-inline .b, .m-inline .btn { height: 14px; }
.pc-wrap { display: block; }
.pc-edit { max-width: none; }

/* 访客可以发的文件 */
.ft-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.ft-item { display: flex; align-items: flex-start; gap: 9px; padding: 10px 11px; border-radius: 6px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; user-select: none; transition: box-shadow .15s, background .15s; }
.ft-item:hover { box-shadow: inset 0 0 0 1px var(--p); }
.ft-item.on { background: var(--p-soft); box-shadow: inset 0 0 0 1.5px var(--p); }
.ft-item .box { width: 17px; height: 17px; border-radius: 5px; flex: none; margin-top: 1px; box-shadow: inset 0 0 0 1.5px var(--ink-3); position: relative; background: var(--card); }
.ft-item.on .box { background: var(--p); box-shadow: none; }
.ft-item.on .box::after { content: ""; position: absolute; left: 5.5px; top: 2.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ft-t { display: flex; flex-direction: column; min-width: 0; }
.ft-t b { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.ft-t small { font-size: 11px; color: var(--ink-3); letter-spacing: .2px; }
.ft-risk { font-style: normal; font-size: 10.5px; font-weight: 500; padding: 0 5px; line-height: 16px; border-radius: 5px; }
.ft-risk.bad { color: #d92d20; background: #fde8e7; }
.ft-risk.warn { color: #b45309; background: #fdf1dc; }
:root[data-theme=dark] .ft-risk.bad { background: #4a1d1b; color: #ff8b82; }
:root[data-theme=dark] .ft-risk.warn { background: #45331a; color: #f5b860; }
:root[data-theme=dark] .ce-thumb, :root[data-theme=dark] .hm-mock:not(.m-agent):not(.m-logo), :root[data-theme=dark] .pl-mock { background: #2a2f38; }
.ft-hint { font-size: 12px; color: var(--ink-3); margin: 10px 0 0; line-height: 1.6; }
.lk-url { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.5; padding: 8px 12px; border-radius: 6px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); word-break: break-all; user-select: all; cursor: text; color: var(--ink-2); display: flex; align-items: center; flex-wrap: wrap; }
.lk-key { color: var(--p); font-weight: 600; background: var(--p-soft); padding: 0 4px; border-radius: 4px; }
.lk-old { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ok, #16a34a); margin: -6px 0 12px; }
.lk-old svg { width: 15px; height: 15px; }
.lk-old s { color: var(--ink-3); font-family: ui-monospace, Menlo, Consolas, monospace; }
.lk-flash { animation: lkFlash 1.4s ease; }
@keyframes lkFlash { 0%, 30% { box-shadow: inset 0 0 0 2px var(--p), 0 0 0 4px var(--p-soft); } 100% { box-shadow: inset 0 0 0 1px var(--line); } }

/* 右栏：标签在最上面（资料 / 快捷 / 历史 / 小结） */
.stabs.top { padding: 8px 10px; gap: 4px; border-bottom: 1px solid var(--line); background: var(--card); }
.stabs.top button { padding: 7px 4px; border-radius: 9px; transition: background .15s, color .15s; }
.stabs.top button:hover { background: var(--hover); }
.stabs.top button.on { background: var(--p-soft); color: var(--p); font-weight: 600; }
.stabs.top button.on::after { display: none; }
.spane[data-sp=info] > .vcard { border-bottom: 1px solid var(--line-2); }
.spane[data-sp=sum] { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.spane[data-sp=sum][hidden] { display: none; }

/* 右栏小结：树状选择 */
.sum-tree { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.st-top { padding: 12px 12px 6px; flex: none; }
.st-top .input { height: 34px; }
.st-recent { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.st-recent .sp-chip.on { background: var(--p-soft); color: var(--p); box-shadow: inset 0 0 0 1px var(--p); }
.st-body { flex: 1; overflow-y: auto; padding: 4px 8px 10px; }
.st-grp + .st-grp { margin-top: 2px; }
.st-hd { width: 100%; border: 0; background: none; display: flex; align-items: center; gap: 6px; padding: 9px 8px 9px calc(8px + var(--d) * 14px); border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink); text-align: left; transition: background .12s; }
.st-grp.sub > .st-hd { font-weight: 500; font-size: 13px; color: var(--ink-2); padding-top: 7px; padding-bottom: 7px; }
.st-hd:hover { background: var(--hover); }
.st-hd svg { width: 14px; height: 14px; color: var(--ink-3); transition: transform .18s; flex: none; }
.st-grp.open > .st-hd svg { transform: rotate(90deg); }
.st-hd span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-hd em { font-style: normal; font-size: 11px; color: var(--ink-3); font-weight: 400; background: var(--fill); border-radius: 8px; padding: 0 6px; line-height: 17px; }
.st-hd.has span::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--p); margin-left: 6px; vertical-align: 2px; }
.st-kids { padding: 2px 0 6px; }
.st-kids.in { animation: stIn .18s ease; }   /* 12-01 只有刚点开的那一组播动画 */
@keyframes stIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.st-leaf, .st-hit { width: 100%; border: 0; background: none; display: flex; align-items: center; gap: 9px; padding: 7px 8px 7px calc(10px + var(--d, 0) * 14px); border-radius: 9px; font-size: 13px; color: var(--ink-2); text-align: left; transition: background .12s, color .12s; }
.st-leaf:hover, .st-hit:hover { background: var(--hover); color: var(--ink); }
.st-leaf.on, .st-hit.on { background: var(--p-soft); color: var(--p); font-weight: 500; }
.st-radio { width: 15px; height: 15px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px var(--ink-3); position: relative; transition: box-shadow .15s; }
.on > .st-radio { box-shadow: inset 0 0 0 4.5px var(--p); }
.st-hit span { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.st-hit span > i { font-style: normal; color: var(--ink-3); }
.st-hit b { font-weight: 400; } .st-hit b.leaf { font-weight: 600; color: var(--ink); }
.st-hit.on b.leaf { color: var(--p); }
.st-none { padding: 18px 10px; text-align: center; font-size: 13px; color: var(--ink-3); }
.st-ft { flex: none; border-top: 1px solid var(--line); padding: 10px 12px 12px; background: var(--card); display: flex; flex-direction: column; gap: 8px; position: sticky; bottom: 0; }
.st-sel { display: flex; align-items: center; gap: 6px; font-size: 12.5px; min-height: 22px; flex-wrap: wrap; }
.st-sel.ok svg { width: 15px; height: 15px; color: var(--p); flex: none; }
.st-ft .textarea { min-height: 52px; font-size: 13px; }
.stz-acts { display: flex; align-items: center; gap: 6px; }
.stz-acts .sp { flex: 1; }
.stz-saved { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ok, #16a34a); font-weight: 500; }
.stz-saved svg { width: 15px; height: 15px; }

/* 品牌 */
.brand-w { font-weight: 700; letter-spacing: .2px; }
.brand-t { display: inline-flex; flex-direction: column; line-height: 1.15; }
.brand-t small { font-size: 12px; font-weight: 400; color: var(--ink-3); letter-spacing: 1px; margin-top: 2px; }
.ac-dot { width: 16px; height: 16px; border-radius: 5px; flex: none; display: inline-block; }
.ac-green { background: linear-gradient(135deg, #22c38e, #0a7553); }
.ac-purple { background: linear-gradient(135deg, #7b7bf0, #4338ca); }
.ac-blue { background: linear-gradient(135deg, #38a3f5, #1d4ed8); }
.ac-black { background: linear-gradient(135deg, #3b404c, #101217); }
/* 11-30 界面样式的小图：只画排版（颜色归主题色管）。经典 = 导航 + 三张浮起来的卡片；简洁 = 导航 + 平铺的三栏 */
.sk-classic { background: linear-gradient(90deg, #4a505c 0 26%, #eceef2 26% 30%, #fff 30% 50%, #eceef2 50% 54%, #fff 54%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.sk-f { background: linear-gradient(90deg, #4a505c 0 26%, #e6e9ee 26% 52%, #fafbfc 52% 80%, #eef0f3 80%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.login-art .brand-t small { color: rgba(255,255,255,.72); }
.rail-logo .lx-logo { display: block; }
.weak-pw-on #railMe { position: relative; }
.weak-pw-on #railMe::after { content: ""; position: absolute; top: 0; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--rail); }
.wp-ic { display: inline-flex; color: var(--warn); }
.wp-ic svg { width: 17px; height: 17px; }
.wb-ring { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 11px; border-radius: 6px; border: 0; background: var(--fill); color: var(--ink-2); font-size: 13px; transition: background .15s, color .15s; flex: none; }
.wb-ring svg { width: 17px; height: 17px; }
.wb-ring:hover { background: var(--hover); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.wb-ring.off { color: var(--bad); }

/* ===== 角色与权限：左边角色列表，右边角色详情 ===== */
.rl-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.rl-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; position: sticky; top: 0; }
.rl-cap { font-size: 12px; color: var(--ink-3); padding: 6px 10px 6px; }
.rl-it { width: 100%; display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 10px; border: 0; background: transparent; border-radius: 8px; color: var(--ink-2); font-size: 14px; text-align: left; cursor: pointer; }
.rl-it:hover { background: var(--hover); color: var(--ink); }
.rl-it.on { background: var(--p-soft); color: var(--ink); }
.rl-it b { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-it.on b { font-weight: 600; }
.rl-it em { font-style: normal; font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; line-height: 16px; }
.rl-it span { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 14px; text-align: right; }
.rl-add { width: 100%; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; margin-top: 4px; border: 0; border-top: 1px solid var(--line-2); border-radius: 0 0 8px 8px; background: transparent; color: var(--p); font-size: 13.5px; cursor: pointer; }
.rl-add:hover { color: var(--p-2); }
.rl-add .ic { width: 15px; height: 15px; }
.rl-main { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.rl-hd { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.rl-hd .t { flex: 1; min-width: 0; }
.rl-hd h2 { margin: 0; font-size: 17px; font-weight: 600; }
.rl-hd p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-3); }
.rdot.lg { width: 12px; height: 12px; border-radius: 4px; }
.rl-sec { padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.rl-sec:last-child { border-bottom: 0; }
.rl-sec-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.rl-sec-hd h3 { margin: 0; font-size: 14px; font-weight: 600; }
.rl-sec-hd .muted { font-size: 12.5px; }
.pq-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.pq { border: 1px solid var(--line); border-radius: 6px; padding: 4px 0; }
.pq-hd { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 6px; }
.pq-hd b { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pq-all { border: 0; background: transparent; color: var(--p); font-size: 12.5px; cursor: pointer; padding: 2px 0; }
.pq-all:hover { text-decoration: underline; }
.pq-it { display: flex; align-items: flex-start; gap: 10px; padding: 8px 14px; cursor: pointer; }
.pq-it:hover { background: var(--fill-2); }
.pq-it .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pq-it .t b { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.pq-it .t small { font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.pq-ck { appearance: none; -webkit-appearance: none; flex: none; width: 16px; height: 16px; margin: 2px 0 0; border: 1.5px solid var(--gray-2); border-radius: 4px; background: var(--card); cursor: pointer; transition: background .12s, border-color .12s; }
.pq-ck:checked { background: var(--p) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--p); }
.pq-ck:focus-visible { outline: 2px solid rgba(var(--p-rgb), .35); outline-offset: 1px; }
.rl-foot { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); }
.rl-row { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.rl-row + .rl-row { border-top: 1px solid var(--line-2); }
.rl-row .t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rl-row .t b { font-size: 13.5px; font-weight: 500; }
.rl-row .t span { font-size: 12px; color: var(--ink-3); }
.rl-num { display: flex; align-items: center; gap: 8px; }
.rl-num .input { width: 76px; height: 32px; }
.rl-num .muted { font-size: 12.5px; }
.rl-mem { border: 1px solid var(--line); border-radius: 6px; }
.rl-m { display: flex; align-items: center; gap: 10px; padding: 9px 12px; }
.rl-m + .rl-m { border-top: 1px solid var(--line-2); }
.rl-m .t { display: flex; flex-direction: column; min-width: 0; }
.rl-m .t b { font-size: 13.5px; font-weight: 500; }
.rl-m .t span { font-size: 12px; color: var(--ink-3); }
.rl-m .btn.ghost { color: var(--ink-2); }
.rl-own { font-size: 11.5px; color: var(--warn); background: var(--warn-soft); border-radius: 4px; padding: 1px 6px; }
.rl-none { font-size: 13px; color: var(--ink-3); padding: 14px; border: 1px dashed var(--line); border-radius: 6px; text-align: center; }
.rl-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--fill); border-radius: 6px; }
.rl-note .ic { width: 18px; height: 18px; color: var(--p); margin-top: 1px; flex: none; }
.rl-note b { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.rl-note span { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.ow-list { max-height: 62vh; overflow: auto; margin: -4px -4px 0; padding: 0 4px; }
.ow-grp { font-size: 12px; color: var(--ink-3); font-weight: 600; padding: 14px 0 4px; }
.ow-grp:first-child { padding-top: 0; }
.ow-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.ow-row .t { flex: 1; font-size: 13.5px; }
.ow-row .t b { font-weight: 500; }
@media (max-width: 1100px) { .pq-wrap { grid-template-columns: 1fr; } }
/* 选项对话框 */
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice-it { display: flex; align-items: flex-start; gap: 10px; text-align: left; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--card); cursor: pointer; }
.choice-it:hover:not(:disabled) { border-color: var(--p-soft-2); }
.choice-it.on { border-color: var(--p); background: var(--p-soft); }
.choice-it:disabled { opacity: .5; cursor: not-allowed; }
.choice-it .radio-dot { margin-top: 2px; }
.choice-it.on .radio-dot { border-color: var(--p); box-shadow: inset 0 0 0 4px var(--p); }
.choice-it .t { display: flex; flex-direction: column; gap: 2px; }
.choice-it .t b { font-size: 14px; font-weight: 500; }
.choice-it .t small { font-size: 12.5px; color: var(--ink-3); }
/* 会话小结：通用 / 单独 */
.sum-sites .gen .ic { width: 15px; height: 15px; color: var(--p); }
.sum-sep { width: 1px; align-self: stretch; background: var(--line); margin: 4px 4px; }
.sum-mode { display: flex; align-items: center; gap: 16px; padding: 2px 0 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.sum-mode .t { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.sum-mode .t b { font-size: 14.5px; font-weight: 600; }
.sum-mode .t span { font-size: 12.5px; color: var(--ink-3); }
.sum-use-gen { display: flex; align-items: center; gap: 14px; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.sum-use-gen > .ic { width: 22px; height: 22px; color: var(--p); flex: none; }
.sum-use-gen > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.sum-use-gen b { font-size: 14.5px; font-weight: 600; }
.sum-use-gen span { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
/* 旧链接列表 */
.lk-olds { border: 1px solid var(--line); border-radius: 6px; margin: 0 0 12px; }
.lk-olds-hd { font-size: 13px; font-weight: 500; padding: 9px 12px; border-bottom: 1px solid var(--line-2); }
.lk-olds-hd span { font-weight: 400; color: var(--ink-3); font-size: 12px; margin-left: 6px; }
.lk-oldrow { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 12px; font-size: 12.5px; }
.lk-oldrow + .lk-oldrow { border-top: 1px solid var(--line-2); }
.lk-oldrow code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--ink-2); flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.lk-oldrow code b { color: var(--ink); font-weight: 600; }
/* 11-23 链接长的时候“备用线路”被挤成一个字一行：链接自己换行，标签和按钮不许被挤 */
.lk-oldrow .muted { flex: none; font-size: 12px; white-space: nowrap; }
.lk-oldrow .btn { flex: none; white-space: nowrap; }
.btn.danger-t { color: var(--bad); }

/* ===== 网站设置：统一的设置页排版（名称在左、内容在右；卡片不折叠、不加阴影） ===== */
.sp-form .sp-sec-hd { margin: 2px 0 14px; }
.sp-form .sp-sec-hd h2 { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.sp-form .sp-sec-hd p { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.sp-form .set-sec.sp-card { box-shadow: none; border: 1px solid var(--line); border-radius: 6px; padding: 18px 22px 6px; margin-bottom: 12px; }
.sp-form .set-sec.sp-card > h3 { font-size: 14.5px; font-weight: 600; margin-bottom: 14px; }
.sp-form .set-sec.sp-card > h3 + .sub { margin-top: -10px; margin-bottom: 16px; }
.sp-form .set-sec.sp-card > .set-row:first-of-type { border-top: 0; padding-top: 4px; }
.sp-form .set-sec.sp-card > .set-row + .pc-wrap, .sp-form .set-sec.sp-card > .set-row + #hrWrap, .sp-form .set-sec.sp-card > .set-row + #ivWrap { border-top: 1px solid var(--line-2); padding-top: 16px; margin-top: 2px; }
.sp-form .fx { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 18px; align-items: start; margin-bottom: 18px; }
.sp-form .fx > .lbl { grid-column: 1; grid-row: 1 / span 4; margin: 0; padding-top: 8px; font-size: 13px; font-weight: 400; color: var(--ink-2); line-height: 1.4; }
.sp-form .fx > .lbl .muted { display: block; font-size: 11.5px; margin-top: 2px; }
.sp-form .fx > :not(.lbl) { grid-column: 2; min-width: 0; }
.sp-form .fx-rows { display: block; }
.sp-form .fx .seg, .sp-form .fx .colors { margin-top: 1px; }
.sp-form .info-box { border-radius: 8px; }
.sp-note { font-size: 12.5px; color: var(--ink-3); margin: 14px 0 12px; }
/* 二级菜单：网站设置各项（不编号） */
.sn-steps { border-left: 1px solid rgba(255,255,255,.08); margin: 6px 0 6px 14px; padding-left: 6px; }
.sn-steps .sn-it { height: 34px; font-size: 13px; }
.sn-steps .sn-it.on::before { left: -7px; }
/* 接待客服 */
.ag-mode { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 900px) { .ag-mode { grid-template-columns: 1fr; } }
.ag-gdot { width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: -.5px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ag-gmem { flex: 1; display: flex; align-items: center; justify-content: flex-end; min-width: 0; }
.ag-gmem .av + .av { margin-left: -6px; }
.ag-gmem > span { font-size: 12px; color: var(--ink-3); margin-left: 6px; }
.ag-gwarn { color: var(--warn); }
.ag-gsum { padding: 10px 12px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.ag-swnote { margin: -4px 0 12px; font-size: 13px; color: var(--warn); background: color-mix(in srgb, var(--warn) 11%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 28%, transparent); }
.ag-swnote[hidden] { display: none; }
.ag-gempty { padding: 16px 14px; font-size: 13px; color: var(--ink-2); }
.ag-opt { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 6px; cursor: pointer; }
.ag-opt:hover { border-color: var(--p-soft-2); }
.ag-opt.on { border-color: var(--p); background: var(--p-soft); }
.ag-opt .radio-dot { margin-top: 1px; }
.ag-opt.on .radio-dot { border-color: var(--p); box-shadow: inset 0 0 0 4px var(--p); }
.ag-opt b { display: block; font-size: 13.5px; font-weight: 600; }
.ag-opt small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; line-height: 1.5; }
.ag-pick { border: 1px solid var(--line); border-radius: 6px; }
.ag-tools { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.ag-tools .muted { font-size: 12.5px; }
.ag-list { max-height: 380px; overflow: auto; }
.ag-list .ag-row { border: 0; border-radius: 0; padding: 9px 12px; gap: 10px; }
.ag-list .ag-row + .ag-row { border-top: 1px solid var(--line-2); }
.ag-list .ag-row.on { background: color-mix(in srgb, var(--p-soft) 55%, transparent); }
.ag-list .ag-row[hidden] { display: none; }
.ag-n { display: flex; flex-direction: column; min-width: 0; width: 150px; }
.ag-n b { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-n small { font-size: 12px; color: var(--ink-3); }
.ag-role { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); width: 90px; }
.ag-grp { flex: 1; display: flex; gap: 4px; flex-wrap: wrap; min-width: 0; }
.ag-grp em { font-style: normal; font-size: 11.5px; color: var(--ink-2); background: var(--fill); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; line-height: 18px; }
.ag-st { font-size: 12px; color: var(--ink-3); width: 36px; text-align: right; }
.ag-st.online { color: var(--ok); } .ag-st.busy { color: var(--warn); } .ag-st.away { color: var(--warn); }
.sp-form .fx > .seg, .sp-form .fx > .colors, .sp-form .fx > .select, .sp-form .fx > .check-inline { justify-self: start; }
.sp-form .fx > .input, .sp-form .fx > .textarea { max-width: 460px; }
.sp-form .fx > .select { min-width: 220px; max-width: 360px; }
.nbar.sec { box-shadow: var(--shadow-m), inset 3px 0 0 var(--bad); cursor: default; }
.nbar.sec > .ic { color: var(--bad); }

/* 运行状态 */
.sys-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 4px 0 14px; }
.sys-grid > div { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.sys-grid > div.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: var(--warn-soft); }
.sys-grid span { font-size: 12px; color: var(--ink-3); }
.sys-grid b { font-size: 15px; font-weight: 600; }
.sys-grid small { font-size: 11.5px; color: var(--ink-3); }

/* 系统提醒：左下角小卡片 */
.sys-pops { position: fixed; left: 80px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; gap: 8px; width: 300px; pointer-events: none; }
.sys-pop { pointer-events: auto; display: flex; align-items: flex-start; gap: 8px; padding: 10px 8px 10px 12px; background: var(--card); border-radius: 6px; box-shadow: var(--shadow-m), inset 3px 0 0 var(--warn); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); cursor: pointer; animation: nbarIn .3s var(--ease); }
.sys-pop.bad { box-shadow: var(--shadow-m), inset 3px 0 0 var(--bad); }
.sys-pop > .ic { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--warn); }
.sys-pop.bad > .ic { color: var(--bad); }
.sys-pop span { flex: 1; }

/* 会话号（点击复制） */
.convno { display: inline-flex; align-items: center; gap: 4px; border: 0; background: var(--fill); color: var(--ink-2); font-size: 12.5px; font-weight: 500; line-height: 1; letter-spacing: .01em; padding: 4px 7px; border-radius: 6px; cursor: pointer; white-space: nowrap; vertical-align: middle; font-variant-numeric: tabular-nums; }
.convno svg { width: 12px; height: 12px; opacity: 0; margin-right: -2px; transition: opacity .15s; }
.convno:hover { background: var(--gray-1); color: var(--ink); }
.convno:hover svg, .convno:focus-visible svg { opacity: .7; }
.convno.sm { padding: 3px 6px; font-size: 12px; }
.convno.bare { background: none; padding: 2px 4px; color: var(--ink-3); }
.convno.bare:hover { background: var(--fill); color: var(--ink); }

/* 11-04 会话列表改两行：一屏多显示访客；中间聊天区加宽 */
.chats { grid-template-columns: 284px minmax(0, 1fr) 296px; }
.chats.no-side { grid-template-columns: 284px minmax(0, 1fr) 0; }
@media (max-width: 1280px) { .chats { grid-template-columns: 264px minmax(0, 1fr) 272px; } .chats.no-side { grid-template-columns: 264px minmax(0, 1fr) 0; } }
@media (max-width: 1100px) { .chats, .chats.no-side { grid-template-columns: 252px minmax(0, 1fr) 0; } }
.citem { align-items: center; gap: 10px; padding: 8px 9px; border-radius: 6px; }
.citem .av { width: 34px; height: 34px; font-size: 13px; }
.citem.on::before { top: 10px; bottom: 10px; }
.citem .site-bar { top: 8px; bottom: 8px; }
.citem .l1 { gap: 5px; min-width: 0; }
.citem .l1 .nm { flex: 0 1 auto; min-width: 0; }
.citem .l1s { flex: 0 1 auto; min-width: 0; max-width: 72px; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.citem .l1c { display: inline-flex; align-items: center; gap: 4px; min-width: 0; flex: 0 1 auto; overflow: hidden; }
.citem .l1c > * { flex: none; }
.citem .l2 { margin-top: 1px; }
.citem .pv { font-size: 12.5px; }
.citem .accept { top: 50%; transform: translate(4px, -50%); }
.citem:hover .accept { transform: translate(0, -50%); }
.citem:hover .l1 > .wtimer, .citem:hover .l1 > .tm { visibility: visible; }

/* 11-04 细节：表格窄屏不超出屏幕（表格自己横向滚动），标签类不折行 */
.table-card { overflow-x: auto; overflow-y: hidden; }
.table-card .tb { min-width: 100%; }
.tb td .tag, .tb td [class*="chip"], .tb td .convno, .role-chip, .tag, .site-chip, .grp-chip { white-space: nowrap; }
.tb td:has(> .tag:only-child), .tb td:has(> .convno:only-child) { white-space: nowrap; }
#hTable .tb td:nth-child(2) .user b, #hTable .tb td:nth-child(2) .user small { white-space: nowrap; }
@media (max-width: 1440px) { #hTable .tb th, #hTable .tb td { padding-left: 10px; padding-right: 10px; } #hTable .tb td.ellipsis { max-width: 160px !important; } }
.sum-add, .sum-edit { white-space: nowrap; flex: none; }
.sum-add svg { flex: none; }
.drawer-bd { grid-template-columns: minmax(0, 1fr) 272px; }
/* 会话列表标签：5 个都放得下 */
.clist-hd .seg { gap: 1px; }
.clist-hd .seg button { flex: 1 1 auto; min-width: 0; padding: 0 4px; gap: 3px; font-size: 12.5px; white-space: nowrap; }
.clist-hd .seg .cnt { min-width: 16px; height: 16px; font-size: 10.5px; padding: 0 4px; }
/* 名字优先显示，网站名先缩 */
.citem .l1 .nm { flex: 0 1 auto; min-width: 3.2em; }
.citem .l1s { flex-shrink: 30; max-width: 64px; }
.citem .l1c { flex-shrink: 10; }
@media (max-width: 1280px) { .citem .l1s { display: none; } }
/* 顶部搜索框：提示文字一行，放不下用省略号 */
.wb-search { width: clamp(170px, 19vw, 300px); flex: none; }
.wb-search span:first-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-search .kbd { flex: none; }
/* 聊天顶部第二行：网址太长用省略号 */
.chat-hd .who > span .pg { font-style: normal; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-hd .who > span svg { flex: none; }
.chat-hd .who > span .convno { flex: none; }
/* 提醒横条：跟着新的三栏宽度居中在聊天区；打开详情抽屉/弹窗时先藏起来，不压住内容 */
.main:has(.chats) .nbar-wrap { left: calc(284px + (100% - 284px - 296px) / 2); width: min(560px, calc(100% - 284px - 296px - 40px)); }
.main:has(.chats.no-side) .nbar-wrap { left: calc(284px + (100% - 284px) / 2); width: min(560px, calc(100% - 284px - 40px)); }
@media (max-width: 1280px) { .main:has(.chats) .nbar-wrap { left: calc(264px + (100% - 264px - 272px) / 2); width: min(520px, calc(100% - 264px - 272px - 32px)); } .main:has(.chats.no-side) .nbar-wrap { left: calc(264px + (100% - 264px) / 2); width: min(520px, calc(100% - 264px - 32px)); } }
@media (max-width: 1100px) { .main:has(.chats) .nbar-wrap, .main:has(.chats.no-side) .nbar-wrap { left: calc(252px + (100% - 252px) / 2); width: min(520px, calc(100% - 252px - 32px)); } }
body:has(.drawer) .nbar-wrap, body:has(.modal-mask) .nbar-wrap { display: none; }
/* 历史记录表：单元格不折行（"管理员""30分钟"不会竖着排），放不下时表格自己横向滚动 */
.hist-tb td { white-space: nowrap; }
.hist-tb td .user > div { min-width: 0; }
.hist-tb td.ellipsis { white-space: nowrap; }
.tb td .user b, .tb td .user small { white-space: nowrap; }
/* 各表格：短内容单元格一律不折行（时长、状态、日期、操作名、对象），长说明照常换行 */
.at-tb td, .ag-tb td, .st-tb td, .tb td.num, .tb td.muted { white-space: nowrap; }
.op-tb td:not(.op-detail) { white-space: nowrap; }
.op-tb td.op-detail { min-width: 220px; }
.citem { padding: 7px 9px; }

/* 11-04 提醒：铃声被拦截 / 页面暂停过 的提示卡片（文字可以两行） */
.nbar.warn { box-shadow: var(--shadow-m), inset 3px 0 0 var(--warn); }
.nbar.warn > svg.i { color: var(--warn); }
.nbar.warn .t { flex-direction: column; gap: 1px; align-items: flex-start; }
.nbar.warn .t b, .nbar.warn .t span { white-space: normal; }
.nbar.warn .btn { flex: none; white-space: nowrap; }
.wb-ring.blocked { color: var(--warn); background: var(--warn-soft); }
.wb-ring.blocked span::after { content: "（已暂停）"; }
.ka-help h4 { margin: 4px 0 6px; font-size: 14px; }
.ka-help ol { margin: 0 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.ka-help code { font-size: 12.5px; background: var(--fill); padding: 1px 5px; border-radius: 5px; }
.ka-help p { font-size: 13px; margin: 0; }
.lx-overlay .nbar-wrap { display: none !important; }

/* 11-04 第七轮：顶部工作条、聊天顶部变矮变紧凑，聊天区更大 */
.wbar { height: 42px; padding: 0 10px; gap: 2px; }
.wbar .wb-kpi span { font-size: 11.5px; }
.wbar .wb-kpi b { font-size: 13.5px; }
.wb-st { height: 28px; font-size: 12.5px; }
.wb-ring, .wb-search { height: 28px; font-size: 12px; }
.wb-q .btn.sm { height: 26px; }
.main:has(.wbar) .nbar-wrap { top: 52px; }
.chat-hd { height: 52px; padding: 0 12px 0 16px; gap: 10px; }
.chat-hd .av { width: 32px; height: 32px; font-size: 13px; }
.chat-hd .who b { font-size: 14px; gap: 6px; }
.chat-hd .who span { font-size: 12px; }
.chat-hd .acts { gap: 4px; }
.chat-hd .acts .btn.sm { height: 28px; padding: 0 9px; font-size: 12.5px; }
.chat-hd .acts .btn.sm .kbd-s { display: none; }
.chat-hd .acts .icon-btn { width: 28px; height: 28px; }
/* "全部"标签：同事的会话 = 客服颜色边条 + 淡底色 + 名字后的客服标签；自己的不加 */
.citem.others { background: color-mix(in srgb, var(--ac) 7%, transparent); box-shadow: inset 3px 0 0 var(--ac); }
.citem.others:hover { background: color-mix(in srgb, var(--ac) 12%, transparent); }
.citem.others.on { background: color-mix(in srgb, var(--ac) 16%, var(--p-soft)); }
.citem.others .agent-chip { color: var(--ac); font-weight: 600; }
html[lang="en"] .citem.mine .nm::after { content: "Mine"; }
html[lang="en"] .wb-ring.blocked span::after { content: " (paused)"; }
.citem.mine .nm::after { content: "我的"; margin-left: 5px; font-size: 10.5px; font-weight: 600; color: var(--p); background: var(--p-soft); border-radius: 4px; padding: 0 4px; vertical-align: 1px; }
.wb-kpi { padding: 0 10px; gap: 5px; }
.main:has(.chats) .nbar-wrap { top: 102px; }
/* 资料栏：入口 / 网址 / 设备型号 */
.vk-ent { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--ink); }
.vk-ent svg.i { width: 14px; height: 14px; color: var(--ink-3); flex: none; }
.vk-ent.vk-app svg.i { color: var(--p); }
.vk-via { font-size: 11.5px; width: 100%; }
.kv dd .vk-via { display: block; }
.vk-guess { font-size: 10.5px; line-height: 16px; padding: 0 5px; border-radius: 4px; background: var(--fill); color: var(--ink-3); cursor: help; flex: none; }
.vc-kv dd.vk-urlrow { flex-wrap: nowrap; }
.vc-kv dd .vk-url { flex: 1 1 auto; min-width: 0; color: var(--p); }
.vk-cp { flex: none; opacity: .55; }
.vk-cp:hover { opacity: 1; }

/* ================= 数据报表（reports.js） ================= */
.rp-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -4px 0 16px; }
.rp-cus { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 6px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); font-size: 13px; }
.rp-cus.on { box-shadow: inset 0 0 0 1.5px var(--p); color: var(--ink); }
.rp-cus svg.i { width: 15px; height: 15px; }
.rp-d { border: 0; background: none; font: inherit; color: var(--ink); height: 30px; padding: 0 2px; font-variant-numeric: tabular-nums; color-scheme: light dark; }
.rp-d:focus { outline: none; }
.rp-txt { font-size: 12.5px; color: var(--ink-3); }
.rp-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi.warn .v { color: var(--warn); }
.rp-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }
.rp-card-hd { display: flex; align-items: baseline; gap: 10px; padding: 16px 20px 12px; flex-wrap: wrap; }
.rp-card-hd h3 { margin: 0; font-size: 14.5px; }
.rp-card-hd .sub { font-size: 12px; color: var(--ink-3); }
.rp-more { margin-left: auto; font-size: 13px; display: inline-flex; align-items: center; gap: 2px; }
.rp-more svg.i { width: 14px; height: 14px; }
.rp-more-t { margin-left: auto; font-size: 12.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.rp-scroll { overflow-x: auto; }
.rp-tb td, .rp-tb th { white-space: nowrap; }
.rp-tb th.num, .rp-tb td.num { text-align: right; font-variant-numeric: tabular-nums; }
.rp-tb td small { font-size: 11.5px; }
.rp-warn { color: var(--warn); font-weight: 600; }
.rp-bad { color: var(--bad); font-weight: 600; }
.rp-tb tr.off td { color: var(--ink-3); }
.rp-tb tr.off .user b { color: var(--ink-2); }
.rp-load { display: grid; grid-template-columns: auto auto 70px; align-items: center; gap: 4px 6px; }
.rp-load b { font-size: 16px; font-variant-numeric: tabular-nums; }
.rp-load b.full { color: var(--bad); }
.rp-load span { color: var(--ink-3); font-size: 12px; }
.rp-load .bar { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; margin-left: 4px; }
.rp-load .bar i { display: block; height: 100%; background: var(--p); border-radius: 3px; transition: width .4s var(--ease); }
.rp-load .bar i.high { background: var(--warn); } .rp-load .bar i.full { background: var(--bad); }
.rp-vcs { display: flex; flex-wrap: wrap; gap: 5px; white-space: normal; max-width: 460px; }
.rp-vc { border: 0; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 8px; background: var(--fill); color: var(--ink-2); font-size: 12px; cursor: pointer; }
.rp-vc:hover { background: var(--p-soft); color: var(--p); }
.rp-vc > i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.rp-vc em { font-style: normal; font-variant-numeric: tabular-nums; font-weight: 600; }
.rp-vc.warn { background: var(--warn-soft); color: var(--warn); }
.rp-vc.bad { background: var(--bad-soft, #fde8e7); color: var(--bad); }
.rp-foot { padding: 10px 20px 14px; font-size: 12.5px; }
.rp-live { margin-bottom: 16px; }
.rp-charts { grid-template-columns: 1.7fr 1fr; }
.rp-sites { display: grid; gap: 8px; margin-bottom: 14px; }
.rp-site { display: grid; grid-template-columns: minmax(0, 1fr) 64px 64px 56px; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.rp-site span b { font-size: 15px; color: var(--ink); margin-right: 3px; font-variant-numeric: tabular-nums; }
.rp-site span.warn b { color: var(--warn); }
.rp-leave { display: flex; gap: 10px; }
.rp-leave a { flex: 1; display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-radius: 8px; background: var(--fill); color: var(--ink-2); font-size: 13px; text-decoration: none; }
.rp-leave a b { margin-left: auto; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.rp-leave a.warn b { color: var(--warn); }
.rp-leave svg.i { width: 15px; height: 15px; }
.rp-legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); margin: -6px 0 6px; justify-content: flex-end; }
.rp-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rp-legend i { width: 10px; height: 10px; border-radius: 3px; }
.rp-tt { font-size: 11.5px; opacity: .75; margin-bottom: 2px; }
.rp-tr { display: flex; align-items: center; gap: 5px; }
.rp-tr b { display: inline !important; font-size: 13px !important; }
.rp-tr i { width: 8px; height: 8px; border-radius: 2px; }
/* 客服报表表格：第一列固定，表头可排序，点客服展开每天 */
.ag-tb th.sortable { cursor: pointer; user-select: none; }
.ag-tb th.sortable:hover, .ag-tb th.sortable.on { color: var(--ink); }
.ag-tb th .arr { margin-left: 3px; color: var(--p); }
.ag-tb .sticky { position: sticky; left: 0; background: var(--card); z-index: 1; box-shadow: 1px 0 0 var(--line-2); }
.ag-tb thead .sticky { background: var(--fill); }
.ag-row { cursor: pointer; }
.ag-row:hover td, .ag-row:hover .sticky { background: var(--fill); }
.ag-row .user { gap: 8px; }
.ag-day td { font-size: 12.5px; color: var(--ink-2); background: color-mix(in srgb, var(--fill) 55%, var(--card)); padding-top: 7px; padding-bottom: 7px; }
.ag-day td.sticky { padding-left: 52px; background: color-mix(in srgb, var(--fill) 55%, var(--card)); }
.ag-total td { background: var(--fill); font-weight: 600; border-top: 1px solid var(--line); }
/* 小结报表 */
.sm-row { cursor: pointer; }
.sm-row:hover td { background: var(--fill); }
.sm-row.sel td { background: var(--p-soft); }
.sm-nm { display: flex; align-items: center; gap: 6px; padding-left: calc(var(--d, 0) * 22px); }
.sm-row[style*="--d:0"] .sm-nm > span:not(.st-caret):not(.tag) { font-weight: 600; }
.sm-tb td { white-space: nowrap; }
.sm-list tr[data-conv] { cursor: pointer; }
.sm-list tr[data-conv]:hover td { background: var(--fill); }
.sm-note { white-space: normal !important; min-width: 180px; max-width: 360px; color: var(--ink-2); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
@media (max-width: 1300px) { .rp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .rp-charts { grid-template-columns: 1fr; } }
.ag-total td.sticky { background: var(--fill); }
/* "待小结"按钮（已结束列表里直接点它选小结） */
.citem button.pend { border: 0; cursor: pointer; font-family: inherit; line-height: inherit; }
.citem button.pend:hover { background: var(--warn); color: #fff; }
/* 小结里的"没有找到对应的小结"选项 */
.st-leaf.st-other { margin-top: 6px; border-top: 1px dashed var(--line); border-radius: 0 0 9px 9px; padding-top: 10px; color: var(--ink-3); }
.st-leaf.st-other.on { color: var(--warn); background: var(--warn-soft); border-top-color: transparent; border-radius: 9px; }
.st-leaf.st-other.on .st-radio { box-shadow: inset 0 0 0 5px var(--warn); }
.sp-other-wrap { margin-top: 12px; }
.sp-other { width: 100%; border: 1px dashed var(--line); background: none; border-radius: 6px; display: flex; align-items: center; gap: 9px; padding: 10px 12px; font-size: 13.5px; color: var(--ink-2); text-align: left; cursor: pointer; }
.sp-other em { font-style: normal; font-size: 12px; color: var(--ink-3); margin-left: auto; }
.sp-other:hover { background: var(--hover); }
.sp-other.on { border-style: solid; border-color: var(--warn); background: var(--warn-soft); color: var(--warn); font-weight: 500; }
.sp-other.on .st-radio { box-shadow: inset 0 0 0 5px var(--warn); }
.sp-other-box { margin-top: 8px; }
.sp-none .btn { margin-left: 6px; }
/* 列表里访客名字旁边的网站标记：彩色小标签，一直显示（窄屏只缩短文字，不隐藏） */
.citem .l1s { display: inline-flex !important; align-items: center; gap: 4px; flex: 0 1 auto; min-width: 28px; max-width: 96px; height: 18px; padding: 0 6px; border-radius: 9px; font-size: 11px; font-weight: 500; color: color-mix(in srgb, var(--sc) 78%, var(--ink)); background: color-mix(in srgb, var(--sc) 12%, transparent); flex-shrink: 1; }
.citem .l1s i { width: 6px; height: 6px; border-radius: 50%; background: var(--sc); flex: none; }
.citem .l1s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1280px) { .citem .l1s { max-width: 72px; } }
.citem .l1s b { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 列表第一行的取舍：名字和"待小结"完整显示，网站标签和其它标记先缩 */
.citem .l1 > .nm { flex: 0 0 auto; max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.citem .l1 > .l1s { flex-shrink: 4; min-width: 24px; }
.citem .l1 > .l1c { flex-shrink: 8; }
.citem .l1 > button.pend { flex: none; }
.citem .l1 > .l1s { min-width: 46px; }
/* 11-04 列表重排：第一行 名字 + 网站（完整显示）+ 时间；第二行 消息 + 标记 + 已等计时 + 未读数 */
.citem .l1 > .nm { flex: 0 1 auto; min-width: 3.4em; max-width: none; }
.citem .l1 > .l1s { flex: 0 0 auto; min-width: 0; max-width: 120px; }
.citem .l1 > .tm { margin-left: auto; padding-left: 4px; }
.citem .l2 { gap: 5px; min-width: 0; }
.citem .l2 > .pv { flex: 1 1 auto; min-width: 2.5em; }
.citem .l2 > .l1c { flex: 0 1 auto; min-width: 0; overflow: hidden; }
.citem .l2 > .wtimer, .citem .l2 > button.pend, .citem .l2 > .badge { flex: none; }
.citem:has(.accept):hover .l2 > .wtimer { visibility: hidden; }
.vc-kv dd .vk-url { flex: 0 1 auto; }
/* 提醒卡片在会话页：放在聊天栏顶部占位置（不盖住消息），紧凑一行 */
.chat-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.chat-col > .chat { flex: 1 1 auto; }
.chats .chat-col > .nbar-wrap { position: static; transform: none; left: auto; top: auto; width: auto; padding: 8px 12px 0; gap: 6px; flex: none; z-index: 2; }
.chats .chat-col > .nbar-wrap:empty { display: none; }
.chats .chat-col > .nbar-wrap .nbar { box-shadow: inset 0 0 0 1px var(--line); padding: 5px 6px 5px 12px; min-height: 0; }
.chats .chat-col > .nbar-wrap .nbar .btn { height: 28px; padding: 0 12px; font-size: 12.5px; }
/* 输入框底部快捷键提示：放不下时从后往前整段隐藏，不折成两行 */
.c-foot { container-type: inline-size; }
.c-foot .hint { white-space: nowrap; overflow: hidden; min-width: 0; }
.c-foot .hint .hk { white-space: nowrap; }
@container (max-width: 600px) { .c-foot .hint .hk-alt { display: none; } }
@container (max-width: 470px) { .c-foot .hint .hk-qr { display: none; } }
@container (max-width: 360px) { .c-foot .hint { display: none; } }
.chats .chat-col > #notify { position: static; right: auto; bottom: auto; left: auto; top: auto; transform: none; width: auto; max-width: none; padding: 8px 12px 0; gap: 6px; z-index: 2; }
.chats .chat-col > #notify:empty { display: none; }
.ver-chip { font-weight: 600; color: var(--ink); background: var(--fill); padding: 1px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
/* 会话列表不闪：只有新出现的会话播放进场动画 */
.citem { animation: none; }
.citem.enter { animation: fadeUp .25s ease both; }
/* "待回复"里刚回复过的会话：留在原处变淡，换会话后才移走 */
.citem.replied:not(.on) { opacity: .6; }
.citem .replied-tag { flex: none; font-size: 11px; font-weight: 500; color: var(--ok); background: var(--ok-soft, #e6f6ee); border-radius: 5px; padding: 1px 6px; }
/* 接线端"实时访客"：客服状态 */
.ag-board { background: var(--card); border-radius: 8px; box-shadow: var(--shadow-s); padding: 14px 16px 12px; margin-bottom: 14px; }
.agb-hd { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.agb-hd h3 { margin: 0; font-size: 14.5px; }
.agb-sum { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.agb-sum .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-left: 6px; }
.agb-sum .sep { width: 1px; height: 12px; background: var(--line); margin: 0 6px; }
.agb-sum b { color: var(--ink); }
.agb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.agb-it { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 6px; background: var(--fill); }
.agb-it.me { box-shadow: inset 0 0 0 1.5px var(--p-soft-2, var(--p-soft)); }
.agb-it.off { opacity: .55; }
.agb-t { min-width: 0; display: flex; flex-direction: column; }
.agb-t b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agb-t b em { font-style: normal; font-size: 10.5px; color: var(--p); background: var(--p-soft); border-radius: 4px; padding: 0 4px; margin-left: 4px; vertical-align: 1px; }
.agb-st { font-size: 11.5px; color: var(--ink-3); }
.agb-st.s-online { color: #16a34a; } .agb-st.s-busy { color: #d97706; }
.agb-n { display: grid; grid-template-columns: auto auto; align-items: baseline; justify-items: end; column-gap: 2px; row-gap: 2px; font-variant-numeric: tabular-nums; }
.agb-n > b { font-size: 16px; } .agb-n > b.full { color: var(--bad); }
.agb-n > small { font-size: 11.5px; color: var(--ink-3); }
.agb-n .bar { grid-column: 1 / -1; width: 64px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.agb-n .bar i { display: block; height: 100%; background: var(--p); border-radius: 2px; }
.agb-n .bar i.high { background: var(--warn); } .agb-n .bar i.full { background: var(--bad); }
.agb-n > span { grid-column: 1 / -1; font-size: 11px; color: var(--ink-3); }
.agb-n { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.agb-n .nn { display: flex; align-items: baseline; gap: 1px; line-height: 1; }
.agb-n .nn b { font-size: 16px; } .agb-n .nn b.full { color: var(--bad); }
.agb-n .nn small { font-size: 11.5px; color: var(--ink-3); }
.agb-n .bar { width: 64px; }
/* 加密聊天链接（网站设置 → 聊天链接） */
.el-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.el-it { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border-radius: 6px; background: var(--fill); }
.el-it.warn { box-shadow: inset 3px 0 0 var(--bad); }
.el-it.off { opacity: .6; }
.el-url { grid-column: 1; font: 500 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.el-meta { grid-column: 1; font-size: 12px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.el-acts { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 6px; }
.el-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.el-hint { font-size: 12px; color: var(--ink-3); margin-left: 4px; }
.el-old { margin-top: 12px; font-size: 13px; }
.el-old summary { cursor: pointer; color: var(--ink-2); margin-bottom: 8px; }
.el-empty, .pool-empty { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 6px; background: var(--fill); font-size: 13px; }
.el-empty > svg.i, .pool-empty > svg.i { width: 18px; height: 18px; color: var(--ink-3); flex: none; margin-top: 1px; }
.el-empty b, .pool-empty b { display: block; margin-bottom: 2px; }
.el-empty span, .pool-empty span { color: var(--ink-3); line-height: 1.6; }
.el-empty .btn { margin-left: auto; flex: none; }
/* 加密链接域名池（系统设置） */
.pool-sum { font-size: 12.5px; color: var(--ink-3); margin: 2px 0 8px; }
.pool-tb td, .pool-tb th { white-space: nowrap; }
.pool-tb .mono { font: 600 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.pool-chk span { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; white-space: normal; max-width: 300px; }
.pool-chk span svg.i { width: 14px; height: 14px; flex: none; }
.pool-chk .ok { color: var(--ok); } .pool-chk .bad { color: var(--bad); }
.pool-chk small { display: block; font-size: 11px; color: var(--ink-4); }
.pool-tb .acts { display: flex; gap: 6px; justify-content: flex-end; }
.pool-tb td.pool-chk { white-space: normal; min-width: 260px; width: 34%; }
.pool-chk span { max-width: none; align-items: flex-start; line-height: 1.5; }
.pool-chk span svg.i { margin-top: 2px; }
.pool-tb td.muted { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
/* 客服管理：登录地址（接线端 / 管理后台） */
.login-urls { background: var(--card); border-radius: 8px; box-shadow: var(--shadow-s); padding: 12px 16px; margin-bottom: 14px; display: grid; gap: 8px; }
.lu-it { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.lu-k { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.lu-k svg.i { width: 15px; height: 15px; color: var(--p); }
.lu-k em { font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--ink-3); }
.lu-acts { display: inline-flex; gap: 6px; }
.lu-acts .btn { white-space: nowrap; text-decoration: none; }
.lu-it code { font: 500 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--fill); padding: 5px 10px; border-radius: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-tip { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); }
.pf-av.locked { cursor: default; }
.pf-lock { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.pf-lock svg.i { width: 13px; height: 13px; }
/* 快捷回复导入 */
.qi-tpl { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; }
.qi-tpl svg.i { width: 15px; height: 15px; color: var(--ink-3); }
.qi-file { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 6px; background: var(--fill); font-size: 13px; flex-wrap: wrap; }
.qi-file svg.i { width: 16px; height: 16px; color: var(--p); }
.qi-file .btn { margin-left: auto; }
.qi-opts { display: grid; grid-template-columns: auto 1fr; gap: 4px 24px; margin: 14px 0 6px; }
.qi-opts .field { margin: 0; }
.qi-pv { max-height: 300px; overflow: auto; border: 1px solid var(--line-2); border-radius: 6px; }
.qi-pv .qi-c { white-space: normal; color: var(--ink-2); max-width: 420px; }
/* ================= 运维设置（ops.js） ================= */
.ops-ov { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ops-k { background: var(--card); border-radius: 8px; box-shadow: var(--shadow-s); padding: 14px 16px; min-width: 0; }
.ops-k > span { font-size: 12.5px; color: var(--ink-3); }
.ops-k > b { display: block; font-size: 22px; font-weight: 700; margin: 4px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-k > b .mono { font: 600 15px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ops-k > em { font-style: normal; font-size: 12px; color: var(--ink-3); display: block; }
.ops-k em b.bad { color: var(--bad); font-weight: 600; }
.ops-k.warn { box-shadow: var(--shadow-s), inset 0 3px 0 var(--warn); }
.ops-sec .sec-hd { align-items: flex-start; }
.sec-acts { display: flex; gap: 8px; flex: none; }
.ops-tb td, .ops-tb th { white-space: nowrap; }
.ops-tb .mono { font: 600 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ops-tb .acts { display: flex; gap: 6px; justify-content: flex-end; }
.ops-tb td.ops-chk { white-space: normal; min-width: 240px; width: 36%; }
.ops-chk span { display: inline-flex; align-items: flex-start; gap: 4px; font-size: 12.5px; line-height: 1.5; }
.ops-chk span svg.i { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.ops-chk .ok { color: var(--ok); } .ops-chk .bad { color: var(--bad); }
.ops-chk small { display: block; font-size: 11px; color: var(--ink-4); }
.ops-txt { display: grid; gap: 4px; margin: 6px 0 2px; padding: 8px 10px; border-radius: 8px; background: var(--fill); }
.ops-txt > div { display: flex; align-items: center; gap: 8px; min-width: 0; } .ops-txt em { font-style: normal; font-size: 12px; color: var(--ink-3); flex: none; width: 56px; }
.ops-txt code { font-size: 12px; min-width: 0; overflow-wrap: anywhere; flex: 1; } .ops-txt .btn { flex: none; }
.ops-busy { color: var(--ink-3); }
.ops-busy .spin { width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--p); border-radius: 50%; display: inline-block; animation: rot .8s linear infinite; margin-top: 2px; }
.ops-empty { padding: 12px 14px; border-radius: 6px; background: var(--fill); font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.ops-code { position: relative; margin: 0; padding: 0; }
.ops-code pre { margin: 0; padding: 14px 16px; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; overflow-x: auto; max-height: 420px; }
.ops-code .btn { position: absolute; top: 10px; right: 10px; }
.icon-btn svg.flip, svg.i.flip { transform: rotate(180deg); }
/* 批量添加弹窗 */
.ba-in { min-height: 110px; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ba-tip { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--ink-3); margin: 8px 0 12px; line-height: 1.6; }
.ba-tip svg.i { width: 14px; height: 14px; flex: none; margin-top: 3px; }
.ba-file { color: var(--p); cursor: pointer; text-decoration: underline; }
.ba-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow: auto; padding: 2px; }
.ba-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 4px 0 9px; border-radius: 8px; font-size: 12.5px; background: var(--fill); }
.ba-chip b { font: 600 12.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ba-chip svg.i { width: 13px; height: 13px; }
.ba-chip.ok { background: var(--ok-soft, #e6f6ee); color: var(--ok); } .ba-chip.ok b { color: var(--ink); }
.ba-chip.bad { background: var(--bad-soft); color: var(--bad); }
.ba-chip em { font-style: normal; font-size: 11.5px; }
.ba-chip button { border: 0; background: none; width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; color: inherit; opacity: .6; cursor: pointer; }
.ba-chip button:hover { opacity: 1; background: rgba(0,0,0,.06); }
@media (max-width: 1300px) { .ops-ov { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 运维设置：自动巡检和告警推送 ---------- */
.ops-ov { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ops-k > b .bad { color: var(--bad); }
.al-master { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--fill); font-size: 12.5px; color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.al-master.on { background: var(--p-soft); color: var(--p); font-weight: 600; }
.al-now { display: flex; gap: 10px; padding: 12px 14px; border-radius: 8px; background: color-mix(in srgb, var(--bad) 9%, var(--card)); color: var(--ink-2); margin-bottom: 14px; }
.al-now > svg.i { width: 18px; height: 18px; color: var(--bad); flex: none; margin-top: 1px; }
.al-now b { display: block; font-size: 13.5px; color: var(--bad); margin-bottom: 4px; }
.al-now span { display: block; font-size: 13px; line-height: 1.7; }
.al-now em { font-style: normal; color: var(--ink-4); font-size: 12px; margin-left: 8px; }
.al-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.al-card { border: 1px solid var(--line-2); border-radius: 8px; padding: 16px 18px; min-width: 0; }
.al-card h4 { margin: 0 0 12px; font-size: 14px; }
.al-card .field { display: block; margin-bottom: 12px; }
.al-card .field .lbl { display: block; margin-bottom: 6px; }
.al-card .field .lbl .muted { font-weight: 400; font-size: 12px; margin-left: 4px; }
.al-tk { display: flex; gap: 8px; align-items: flex-start; }
.al-tk > .input, .al-tk > .textarea, .al-tk > code { flex: 1; min-width: 0; }
.al-tk > .btn { flex: none; white-space: nowrap; }
.al-card .mono, .al-ext .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.al-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.al-help { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); border-top: 1px dashed var(--line); padding-top: 10px; }
.al-help summary { cursor: pointer; color: var(--p); font-weight: 600; }
.al-help ol { margin: 8px 0 2px; padding-left: 20px; line-height: 1.75; }
.al-help code { background: var(--fill); padding: 1px 5px; border-radius: 4px; }
.al-found { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; }
.al-found > .muted { width: 100%; }
.al-found.warn { display: block; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--warn) 12%, var(--card)); color: var(--ink-2); line-height: 1.6; }
.al-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font: inherit; color: var(--ink); cursor: pointer; }
.al-chip em { font-style: normal; font-size: 11px; padding: 0 5px; border-radius: 4px; background: var(--fill); color: var(--ink-3); }
.al-chip small { color: var(--ink-4); font-family: ui-monospace, Menlo, Consolas, monospace; }
.al-chip.on { border-color: var(--p); background: var(--p-soft); }
.al-rule { padding: 6px 0; }
.al-rule .check-item { align-items: flex-start; }
.al-rule .check-item .box { margin-top: 2px; }
.al-rule .check-item b { display: block; font-size: 13.5px; }
.al-rule .check-item em { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); line-height: 1.55; margin-top: 2px; }
.al-ex, .al-remind { font-size: 12.5px; color: var(--ink-2); padding: 6px 0 0 40px; }
.al-remind { padding: 12px 0 4px; border-top: 1px solid var(--line-2); margin-top: 6px; }
.al-num { height: 28px; padding: 0 6px; text-align: center; display: inline-block; margin: 0 3px; }
.al-log-hd { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 8px; font-size: 14px; }
.al-log-hd .muted { font-size: 12px; }
.al-log td { vertical-align: top; }
.al-log td.muted { white-space: nowrap; }
.al-msg b { display: block; font-size: 13px; }
.al-msg span { display: block; font-size: 12px; color: var(--ink-3); white-space: pre-line; line-height: 1.55; margin-top: 2px; }
.al-st span { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.al-st span svg.i { width: 14px; height: 14px; }
.al-st .ok { color: var(--ok); }
.al-st small { display: block; font-size: 11.5px; color: var(--ink-4); line-height: 1.5; }
.al-lv { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 5px; background: var(--fill); color: var(--ink-3); white-space: nowrap; }
.al-lv.bad { background: color-mix(in srgb, var(--bad) 13%, var(--card)); color: var(--bad); }
.al-lv.warn { background: color-mix(in srgb, var(--warn) 16%, var(--card)); color: color-mix(in srgb, var(--warn) 70%, var(--ink)); }
.al-lv.ok { background: color-mix(in srgb, var(--ok) 13%, var(--card)); color: var(--ok); }
.al-ext { margin: 14px 0 10px; padding: 12px 14px; border-radius: 8px; background: var(--fill); font-size: 12.5px; color: var(--ink-3); line-height: 1.65; }
.al-ext > b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 2px; }
.al-ext > span { display: block; margin-bottom: 8px; }
.al-ext code.mono { background: var(--card); padding: 6px 10px; border-radius: 8px; color: var(--ink); }
@media (max-width: 1300px) { .ops-ov { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .al-grid { grid-template-columns: 1fr; } }
.al-rule .check-item, .al-rule .check-item.on, .al-rule .check-item:hover { border: 0; background: none; padding: 6px 0; border-radius: 0; }
.al-rule + .al-rule { border-top: 1px solid var(--line-2); }
.al-ex { padding: 0 0 6px 28px; }
.al-more { margin: 8px auto 4px; display: flex; }

/* ---------- 运维设置：单独的运维密码（锁屏） ---------- */
.opl-wrap { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 30px 0; }
.opl-card { width: 400px; max-width: 100%; background: var(--card); border-radius: 10px; box-shadow: var(--shadow-s); padding: 30px 30px 22px; text-align: left; }
.opl-ic { width: 48px; height: 48px; border-radius: 8px; background: var(--p-soft); color: var(--p); display: grid; place-items: center; margin-bottom: 14px; }
.opl-ic svg.i { width: 24px; height: 24px; }
.opl-card h2 { margin: 0 0 6px; font-size: 19px; }
.opl-sub { margin: 0 0 18px; font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.opl-sub b { color: var(--ink); }
.opl-card .field { display: block; margin-bottom: 12px; }
.opl-card .field .lbl { display: block; margin-bottom: 6px; }
.opl-err { min-height: 18px; font-size: 12.5px; color: var(--bad); margin: -4px 0 8px; }
.opl-go { width: 100%; height: 40px; justify-content: center; }
.opl-foot { margin: 16px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.7; }
.opl-foot code { font: 11.5px ui-monospace, Menlo, Consolas, monospace; background: var(--fill); padding: 1px 6px; border-radius: 5px; color: var(--ink-2); margin-left: 2px; }
.opl-foot code { display: inline-block; white-space: nowrap; margin: 4px 0 0; }

/* ---------- 网站设置：防机器人验证 ---------- */
.cap-modes p { margin: -2px 0 12px; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }
.cap-modes p b { color: var(--ink); }
.cap-where { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; margin: 4px 0 10px; }
.cap-where svg.i { width: 14px; height: 14px; flex: none; margin-top: 3px; }
.cap-stats { font-size: 12.5px; color: var(--ink-2); padding: 10px 12px; border-radius: 6px; background: var(--fill); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.cap-stats:empty { display: none; }
.cap-stats .bad { color: var(--bad); }
.cap-stats .muted { margin-left: auto; }
/* 日期框：点哪里都弹日历，宽度放得下完整日期 */
input[type=date] { cursor: pointer; }
.rp-d { min-width: 116px; }
.rp-d::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; margin-left: 2px; }
.rp-cus > svg.i { cursor: pointer; }

/* =================== MeaiChat 3.0 视觉层（放最后，覆盖前面的旧样式） =================== */
body { font-size: 13.5px; }
.btn { height: 32px; padding: 0 12px; border-radius: 6px; font-size: 13px; }
.btn.primary { box-shadow: none; }
.btn.sm { height: 28px; padding: 0 10px; border-radius: 6px; font-size: 12.5px; }
.btn.lg { height: 38px; padding: 0 18px; font-size: 14px; }
.icon-btn { border-radius: 6px; width: 32px; height: 32px; }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 6px; }
.input, .select { height: 34px; font-size: 13px; }
.seg { border-radius: 6px; padding: 2px; }
.seg button { border-radius: 4px; height: 26px; }
.seg button.on { box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(20,26,40,.06); }
.tag { height: 20px; border-radius: 4px; padding: 0 6px; }
.page { padding: 22px 28px 40px; }
.page-hd h1 { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.page-hd .sub { font-size: 12.5px; }
.v-av { background: var(--lg-b); }
.pop { border-radius: 8px; }
.pop-item { border-radius: 4px; }

/* 导航：白色图标栏 + 白色二级菜单，选中项淡蓝底 */
.rail { border-right: 1px solid var(--line); }
.rail-btn { border-radius: 8px; }
.rail-btn:hover { background: var(--hover); color: var(--ink); }
.rail-btn.on, .app.has-sub .rail-btn.on { background: var(--p-soft); color: var(--p); box-shadow: none; }
.rail-sep { background: var(--line); }
.rail.wide.mini .rail-grp::before { background: var(--line); }
.rail-me:hover, .rail-fold:hover { background: var(--hover); color: var(--ink); }
.rail-brand, .rail.wide .rail-me .me-t { color: var(--ink); }
.rail-grp { color: var(--ink-3); opacity: 1; }
.subnav, :root[data-theme="dark"] .subnav { background: var(--subnav); border-left: 0; border-right: 1px solid var(--line); }
.sn-hd { height: 52px; }
.sn-hd b { color: var(--ink); font-size: 15px; }
.sn-hd .icon-btn { color: var(--ink-3); }
.sn-hd .icon-btn:hover { background: var(--hover); color: var(--ink); }
.sn-it { border-radius: 6px; height: 34px; color: var(--ink-2); }
.sn-it:hover { background: var(--hover); color: var(--ink); }
.sn-it.on { background: var(--p-soft); color: var(--p); font-weight: 600; }
.sn-it.on::before { display: none; }
.sn-n { background: var(--line-2); color: var(--ink-3); }
.sn-on { background: var(--ok); }
.sn-site { background: var(--fill); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); border-radius: 6px; }
.sn-site:hover { background: var(--hover); }
.sn-site em { color: var(--bad); }
.sn-site svg { color: var(--ink-3); }
.sn-gh { color: var(--ink-3); }
.sn-gh:hover { color: var(--ink); }
.sn-add { border-color: var(--line); color: var(--ink-3); border-radius: 6px; }
.sn-add:hover { color: var(--p); border-color: var(--p); }
.sn-no { background: var(--line-2); color: var(--ink-3); }
.sn-steps { border-left-color: var(--line); }
.sn-empty { color: var(--ink-3); }

/* 品牌字 */
.brand-w { font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.brand-w b { background: none; color: inherit; font-weight: inherit; }
.ac-blue { background: #2456e8; } .ac-green { background: #0f8a5f; } .ac-purple { background: #5b5bd6; }
.ac-dot { border-radius: 4px; }

/* 登录：浅灰底，中间一个登录框 */
.login.v3 { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: var(--bg); padding: 40px 16px; min-height: 100vh; }
.lg3-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.lg3-box { width: 100%; max-width: 400px; background: var(--card); border-radius: 10px; box-shadow: var(--shadow-s); padding: 30px 32px 24px; animation: fadeUp .35s var(--ease); }
.lg3-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.lg3-top h1 { font-size: 20px; font-weight: 600; margin: 0; }
.lg3-sw { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.lg3-sw a { padding: 4px 12px; font-size: 12px; color: var(--ink-2); text-decoration: none !important; }
.lg3-sw a + a { border-left: 1px solid var(--line); }
.lg3-sw a:hover { background: var(--hover); }
.lg3-sw a.on { background: var(--p-soft); color: var(--p); font-weight: 600; }
.lg3-box > p { color: var(--ink-3); margin: 0 0 22px; font-size: 13px; }
.lg3-box .input { height: 40px; font-size: 14px; }
.lg3-box .btn.primary { width: 100%; height: 40px; font-size: 14px; margin-top: 4px; }
.lg3-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 12px; color: var(--ink-3); }
.lg3-copy { font-size: 12px; color: var(--ink-4); }
.login-err { border-radius: 6px; }

/* 空状态：灰色线框图标 + 文字，不放插画 */
.ill-i { width: 40px; height: 40px; border-radius: 8px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); display: inline-grid; place-items: center; color: var(--ink-3); }
.ill-i svg.i { width: 20px; height: 20px; }
.empty b { font-size: 14px; margin-top: 10px; }
.empty span { font-size: 12.5px; }

/* 聊天气泡：小圆角，不加阴影 */
.m .bb { border-radius: 8px; border-top-left-radius: 2px; border-bottom-left-radius: 8px; }
.m.me .bb { border-radius: 8px; border-top-right-radius: 2px; border-bottom-right-radius: 8px; box-shadow: none; }

/* 数据概览：6 个数字放在一条横栏里 */
.rt-kpis { gap: 0; background: var(--card); border-radius: 8px; box-shadow: var(--shadow-s); overflow: hidden; }
.rt-k, .rt-k.warn, .rt-k.bad { box-shadow: none; border-radius: 0; border-right: 1px solid var(--line-2); }
.rt-k:last-child { border-right: 0; }
.rt-k > b { font-weight: 600; font-size: 24px; letter-spacing: -.01em; }
.rt-alert { border-radius: 8px; }
@media (max-width: 1300px) { .rt-k:nth-child(3n) { border-right: 0; } .rt-k:nth-child(-n+3) { border-bottom: 1px solid var(--line-2); } }
/* 网站卡片：去掉顶部色条和悬浮上浮，颜色只留在小方块上 */
.site-card .top::before { display: none; }
.site-card .logo { box-shadow: none; }
.site-card:hover { transform: none; box-shadow: 0 0 0 1px var(--gray-1); }
.site-card.add .ic { box-shadow: inset 0 0 0 1px var(--line); }

/* =================== 11-10 接线端顶部条 + 会话列表 + 彩色导航 =================== */
/* 顶部条：左 状态 + 网站筛选；中间 今日数据；右 排队 / 铃声 / 搜索 */
.wbar { gap: 8px; }
.wb-site { height: 28px; margin-left: 2px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); border-radius: 6px; max-width: 180px; font-weight: 500; color: var(--ink-2); }
.wb-site:hover { background: var(--hover); color: var(--ink); }
.wb-site.on { background: var(--p-soft); color: var(--p); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--p) 30%, transparent); }
.wb-site .dot { width: 7px; height: 7px; }
.wb-kpis { display: flex; align-items: center; background: var(--fill); border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); height: 30px; padding: 0 2px; min-width: 0; overflow: hidden; }
/* 11-24 放不下时整块藏起来（排到看不见的第二行），不再把最后一块切掉半截（1440 宽接线端"回复"被切、"满意"被排队条盖住） */
.wb-kpis { flex-wrap: wrap; align-content: flex-start; }
.wb-kpis .wb-kpi { flex: none; }
.wb-kpis .wb-kpi { border-left: 0; height: 30px; padding: 0 12px; position: relative; }
.wb-kpis .wb-kpi + .wb-kpi::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 1px; background: var(--line); }
/* 接待量：不用进度条，用数字颜色表示（快满橙色、满了红色+“已满”） */
.wb-ld { font-variant-numeric: tabular-nums; }
.wb-load-kpi.high .wb-ld { color: var(--warn); }
.wb-load-kpi.full .wb-ld { color: var(--bad); }
.wb-full { font-style: normal; font-size: 11px; font-weight: 600; color: #fff; background: var(--bad); border-radius: 4px; padding: 0 5px; line-height: 17px; }
@media (max-width: 1280px) { .wb-kpis .wb-kpi:nth-child(4) { display: none; } }
@media (max-width: 1120px) { .wb-kpis .wb-kpi:nth-child(3) { display: none; } }
/* 会话列表：去掉“会话”标题行，标签放最上面；“接入下一位”放到搜索框右边 */
.clist-hd { padding: 12px 12px 8px; }
.clist-search { display: flex; align-items: center; gap: 6px; }
.clist-search .input-icon { flex: 1; min-width: 0; }
.clist-search .icon-btn { flex: none; color: var(--ink-3); }




/* 11-10 第二次的实心彩色导航用户不喜欢，已撤回，恢复成上一版（淡色底彩色图标） */
/* 顶部今日数据：去掉灰底块，每项“小标题在上、数字在下”，中间细竖线 */
.wbar { height: 48px; }
.wb-kpis { background: none; box-shadow: none; height: 48px; padding: 0; gap: 0; }
.wb-kpis .wb-kpi { flex-direction: column; justify-content: center; align-items: flex-start; gap: 1px; height: 48px; padding: 0 16px; line-height: 1.15; }
.wb-kpis .wb-kpi + .wb-kpi::before { top: 14px; bottom: 14px; }
.wbar .wb-kpis .wb-kpi > span { font-size: 11px; color: var(--ink-3); letter-spacing: .02em; }
.wbar .wb-kpis .wb-kpi > b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; display: inline-flex; align-items: baseline; gap: 1px; }
.wbar .wb-kpis .wb-kpi > b small { font-size: 12px; font-weight: 500; color: var(--ink-4); }
.wb-load-kpi { flex-direction: column; }
.wb-load-kpi .wb-full { position: absolute; right: 4px; top: 8px; font-size: 10px; line-height: 15px; padding: 0 4px; }
.wb-load-kpi > b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); align-self: center; margin-right: 5px; }
.wb-load-kpi.high > b::before { background: var(--warn); }
.wb-load-kpi.full > b::before { background: var(--bad); }
/* 11-10 第三次：今日数据改回左右排（标题在左、数字在右），不加底色，细竖线分隔 */
.wbar { height: 46px; }
.wb-kpis { height: 46px; }
.wb-kpis .wb-kpi { flex-direction: row; align-items: center; gap: 6px; height: 46px; padding: 0 14px; line-height: 1; }
.wb-kpis .wb-kpi + .wb-kpi::before { top: 16px; bottom: 16px; }
.wbar .wb-kpis .wb-kpi > span { font-size: 12px; color: var(--ink-3); letter-spacing: 0; }
.wbar .wb-kpis .wb-kpi > b { font-size: 14px; font-weight: 600; color: var(--ink); }
.wb-load-kpi { flex-direction: row; }
.wb-load-kpi .wb-full { position: static; font-size: 10.5px; line-height: 16px; }

/* ---------- 服务商托管：到期提醒、坐席、套餐弹窗 ---------- */
.nbar.lic-sec { box-shadow: var(--shadow-m), inset 3px 0 0 var(--bad); cursor: default; }
.nbar.lic-sec > svg.i { color: var(--bad); }
.nbar.lic-warn { box-shadow: var(--shadow-m), inset 3px 0 0 var(--warn); cursor: default; }
.nbar.lic-warn > svg.i { color: var(--warn); }
.nbar.lic-info { box-shadow: var(--shadow-m), inset 3px 0 0 var(--info); cursor: default; }
.nbar.lic-info > svg.i { color: var(--info); }
.acts #seatChip:empty { display: none; }
.seat-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; border: 0; background: var(--hover); color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; margin-right: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.seat-chip svg.i { width: 16px; height: 16px; }
.seat-chip b { color: var(--ink); font-weight: 600; }
.seat-chip em { font-style: normal; font-size: 12px; padding: 1px 6px; border-radius: 6px; background: var(--warn-soft); color: var(--warn); }
.seat-chip.over em { background: var(--bad-soft); color: var(--bad); }
.seat-chip:hover { color: var(--ink); }
.sq { display: flex; flex-direction: column; gap: 2px; min-width: 420px; }
.sq-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; align-items: start; }
.sq-row .k { color: var(--ink-3); }
.sq-row .v { min-width: 0; }
.sq-row .muted { margin-left: 4px; }
.sq-bar { height: 6px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; max-width: 260px; }
.sq-bar i { display: block; height: 100%; background: var(--p); border-radius: 3px; }
.sq-bar i.hi { background: var(--warn); }
.sq-bar i.full { background: var(--bad); }
.sq-tip { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }

/* 新手引导（服务商托管） */
.ob-card { background: var(--card); border-radius: 8px; box-shadow: var(--shadow-s), inset 3px 0 0 var(--p); padding: 16px 18px; margin-bottom: 16px; }
.ob-hd { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.ob-hd > div:first-child { display: flex; flex-direction: column; }
.ob-hd b { font-size: 15px; }
.ob-hd span { font-size: 12.5px; color: var(--ink-3); }
.ob-bar { flex: 1; max-width: 240px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-left: auto; }
.ob-bar i { display: block; height: 100%; background: var(--ok); border-radius: 3px; transition: width .3s; }
.ob-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ob-step { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.ob-step.done { background: var(--fill); }
.ob-step.done .ob-t b { color: var(--ink-3); text-decoration: line-through; }
.ob-t .ob-how { display: inline-block; margin-top: 4px; font-size: 12.5px; color: var(--p); }
.ob-t .ob-how::after { content: " ↗"; font-size: 11px; }
.ob-step.done .ob-how { display: none; }
.ob-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--p-soft); color: var(--p); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.ob-step.done .ob-n { background: var(--ok-soft); color: var(--ok); }
.ob-step.opt .ob-n { background: var(--fill); color: var(--ink-3); }
.ob-n svg.i { width: 14px; height: 14px; }
.ob-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ob-t b { font-size: 13.5px; }
.ob-t span { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.ob-step .btn { flex: none; align-self: center; }
@media (max-width: 1200px) { .ob-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 12-01 登录页右上角选语言（以前在页脚小字里） */
.login.v3 { position: relative; }
.lg3-lb { position: absolute; top: 18px; right: 20px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 11px; border: 0; border-radius: 17px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: color .15s, box-shadow .15s; }
.lg3-lb svg { width: 15px; height: 15px; flex: none; }
.lg3-lb svg:last-child { width: 12px; height: 12px; opacity: .6; }
.lg3-lb:hover, .lg3-lb[aria-expanded="true"] { color: var(--p); box-shadow: inset 0 0 0 1px var(--p); }
@media (max-width: 520px) { .lg3-lb { top: 12px; right: 12px; } }

/* ---------- 接线端：顶部关键信息、复制、三栏拖动、快捷键 ---------- */
.chat-hd > .hd-facts { display: flex; align-items: center; gap: 6px; overflow: hidden; margin-top: 3px; min-height: 22px; }
.chat-hd.one > .hd-facts { display: none; }
.hd-fact { flex: none; display: inline-flex; align-items: center; height: 22px; border-radius: 6px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; line-height: 20px; max-width: 280px; overflow: hidden; }
.hd-fact em { font-style: normal; color: var(--ink-3); flex: none; font-size: 11.5px; padding: 0 7px; align-self: stretch; display: inline-flex; align-items: center; background: var(--fill); border-right: 1px solid var(--line-2); border-radius: 6px 0 0 6px; margin: 1px 0 1px 1px; }
.hd-fact b { font-family: inherit; font-weight: 500; color: var(--ink); font-size: 12.5px; font-variant-numeric: tabular-nums; letter-spacing: .1px; padding: 0 1px 0 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-fact .hd-cp { width: 20px; height: 20px; margin-right: 1px; }
.hd-cp { flex: none; width: 20px; height: 20px; border: 0; padding: 0; border-radius: 5px; background: transparent; color: var(--ink-3); display: inline-grid; place-items: center; cursor: pointer; }
.hd-cp svg.i { width: 13px; height: 13px; }
.hd-cp:hover { background: var(--p-soft); color: var(--p); }
.hd-cp.nm { margin-left: -4px; opacity: .55; }
.chat-hd .who b:hover .hd-cp.nm, .hd-cp.nm:focus-visible { opacity: 1; }
.hd-nm { overflow: hidden; text-overflow: ellipsis; }
.chats { position: relative; }
.col-rs { position: absolute; top: 0; bottom: 0; width: 6px; cursor: col-resize; z-index: 6; }
.col-rs::after { content: ""; position: absolute; left: 2px; top: 0; bottom: 0; width: 2px; background: transparent; transition: background .15s; }
.col-rs:hover::after, .chats.resizing .col-rs::after { background: var(--p); }
/* 三栏宽度：边线上有个小抓手，鼠标移上去更明显；窗口太窄放不下三栏最小宽度时整体横向滚动，不隐藏任何一栏 */
.col-rs::before { content: ""; position: absolute; left: 1px; top: 50%; width: 4px; height: 28px; margin-top: -14px; border-radius: 3px; background: var(--line); opacity: 0; transition: opacity .15s, background .15s; }
.chats:hover .col-rs::before { opacity: 1; }
.col-rs:hover::before, .chats.resizing .col-rs::before { background: var(--p); opacity: 1; }
.view:has(> .chats) { overflow-x: auto; overflow-y: hidden; }
.chats.resizing { cursor: col-resize; user-select: none; }
.chats.resizing iframe { pointer-events: none; }
.c-foot .hint-btn { border: 0; background: none; padding: 2px 6px; border-radius: 6px; cursor: pointer; font: inherit; display: inline-flex; align-items: center; color: inherit; }
.c-foot .hint-btn:hover { background: var(--hover); color: var(--ink-2); }
.c-foot .hint-btn .hk-set { display: inline-flex; margin-left: 6px; opacity: 0; transition: opacity .15s; }
.c-foot .hint-btn .hk-set svg.i { width: 13px; height: 13px; }
.c-foot .hint-btn:hover .hk-set { opacity: 1; }
.key-note { padding: 6px 12px 8px; font-size: 12px; color: var(--ink-3); }
/* 列表第一行：名字 + 网站 + 已等计时。挤的时候先缩网站标签，名字尽量完整显示 */
.citem .l1 .nm { flex: 0 1 auto; min-width: 4.6em; }
.citem .l1 .l1s { flex-shrink: 8; min-width: 20px; }
.citem .l1 > .wtimer { flex: none; padding: 0 5px; }
.chat-hd .who b .hd-nm { display: inline; font-size: 15px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
.c-foot .hint-btn .hk { white-space: pre; }

/* 接线端顶部条：数字任何宽度都显示（以前窄屏会把"平均首次响应""平均回复"整项藏起来）。
   不够宽时：先把搜索框缩成图标，再把标签换成短字 */
.wb-kpis .wb-kpi, .wb-kpi:nth-of-type(4), .wb-kpi:nth-of-type(5) { display: flex !important; }
.wb-kpi i.kl, .wb-kpi i.ks { font-style: normal; }
.wb-kpi i.ks { display: none; }
.wb-kpis { flex: 0 1 auto; }
@media (max-width: 1440px) { .wbar:has(.wb-q) .wb-search { width: 40px; padding: 0; justify-content: center; } .wbar:has(.wb-q) .wb-search > :not(svg) { display: none; } }
@media (max-width: 1280px) { .wb-search { width: 40px; padding: 0; justify-content: center; } .wb-search > :not(svg) { display: none; } .wb-ring span { display: none; } }
@media (max-width: 1200px) { .wb-kpi i.kl { display: none; } .wb-kpi i.ks { display: inline; } .wb-kpis .wb-kpi { padding: 0 9px; } }

/* ---------- 访客标签（颜色由管理员在标签库里选） ---------- */
.vt-blue { --vt: #2456e8; } .vt-green { --vt: #16a34a; } .vt-orange { --vt: #ea7a0c; } .vt-red { --vt: #e5484d; } .vt-purple { --vt: #7c3aed; } .vt-teal { --vt: #0d9488; } .vt-pink { --vt: #db2777; } .vt-gray { --vt: #7b8494; }
.vtag { display: inline-flex; align-items: center; gap: 2px; height: 22px; padding: 0 3px 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; color: color-mix(in srgb, var(--vt) 82%, var(--ink)); background: color-mix(in srgb, var(--vt) 13%, transparent); }
.vtag b { font-weight: 500; }
.vtag .x { width: 16px; height: 16px; border: 0; padding: 0; background: none; color: inherit; opacity: .55; display: inline-grid; place-items: center; border-radius: 4px; cursor: pointer; }
.vtag .x:hover { opacity: 1; background: color-mix(in srgb, var(--vt) 18%, transparent); }
.vtag .x svg.i { width: 11px; height: 11px; }
.vtag.old { background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 50%, transparent); }
.ctag[class*="vt-"] { color: color-mix(in srgb, var(--vt) 82%, var(--ink)); background: color-mix(in srgb, var(--vt) 13%, transparent); }
.vt-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--vt); display: inline-block; margin: 0 5px; }
.vt-add { display: flex; gap: 8px; margin-bottom: 14px; }
.vt-add .input { flex: 1; max-width: 420px; }
.vt-list { display: flex; flex-direction: column; gap: 6px; }
.vt-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); }
.vt-row:hover { background: var(--fill); }
.vt-color { width: 28px; height: 28px; border: 0; border-radius: 7px; background: color-mix(in srgb, var(--vt) 14%, transparent); display: grid; place-items: center; cursor: pointer; flex: none; }
.vt-color i { width: 12px; height: 12px; border-radius: 50%; background: var(--vt); }
.vt-name { max-width: 240px; height: 32px; }
.vt-used { font-size: 12.5px; flex: 1; }
.vt-row .acts { display: flex; gap: 2px; }
.vt-legacy { display: flex; flex-direction: column; gap: 6px; }
.vt-lg { display: flex; align-items: center; gap: 10px; }
.vt-lg .muted { font-size: 12.5px; }
.hd-fact em[data-fixfact] { cursor: pointer; border-radius: 3px; }
.hd-fact em[data-fixfact]:hover { color: var(--p); text-decoration: underline dashed; text-underline-offset: 3px; }
.side-sec h4 .note-who { float: right; font-weight: 400; font-size: 11.5px; color: var(--ink-3); letter-spacing: 0; text-transform: none; }

/* 会员资料（网站 identify 传来的） */
.side-sec h4 .mb-ok, .side-sec h4 .mb-no { float: right; display: inline-flex; align-items: center; gap: 3px; font-weight: 500; font-size: 11.5px; letter-spacing: 0; text-transform: none; padding: 1px 7px; border-radius: 4px; }
.side-sec h4 .mb-ok { background: var(--ok-soft); color: var(--ok); }
.side-sec h4 .mb-ok svg.i { width: 12px; height: 12px; }
.side-sec h4 .mb-no { background: var(--fill); color: var(--ink-3); }
.mb-kv > div { align-items: center; }
.mb-kv > div b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-kv .hd-cp { margin-left: 2px; opacity: 0; }
.mb-kv > div:hover .hd-cp { opacity: 1; }

/* 开放接口 */
.oa-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; max-width: 980px; }
.oa-tabs button { border: 0; background: none; padding: 10px 14px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 6px; }
.oa-tabs button.on { color: var(--p); border-bottom-color: var(--p); font-weight: 600; }
.oa-tabs button i { font-style: normal; font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 9px; background: var(--fill); color: var(--ink-3); padding: 0 5px; }
.oa-tabs button i.warn { background: var(--warn-soft); color: var(--warn); }
.oa-step { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.oa-step:first-of-type { border-top: 0; }
.oa-step > b { flex: none; width: 26px; height: 26px; border-radius: 13px; background: var(--p-soft); color: var(--p); display: grid; place-items: center; font-size: 13px; }
.oa-step > div { flex: 1; min-width: 0; }
.oa-step h4 { margin: 3px 0 10px; font-size: 14px; }
.oa-code { position: relative; margin: 8px 0 12px; }
.oa-code pre { margin: 0; background: #0f1420; color: #d7deea; border-radius: 6px; padding: 14px 16px; font: 12.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; }
.oa-code .oa-cp { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.1); color: #d7deea; border-color: rgba(255,255,255,.15); }
.oa-code .oa-cp:hover { background: rgba(255,255,255,.18); }
.oa-sites { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.oa-site { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.oa-site .t { display: flex; flex-direction: column; min-width: 140px; }
.oa-site .t .muted { font-size: 12px; }
.oa-secret { flex: 1; min-width: 0; font: 12.5px ui-monospace, Menlo, Consolas, monospace; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-secret.on { color: var(--ink); user-select: all; }
.oa-langs { display: inline-flex; gap: 2px; background: var(--fill); border-radius: 6px; padding: 2px; }
.oa-langs button { border: 0; background: none; padding: 4px 10px; border-radius: 5px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.oa-langs button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-s); }
.oa-demo { max-width: 300px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; background: var(--card); }
.oa-mono { font: 11.5px ui-monospace, Menlo, Consolas, monospace; }
tr.oa-off td { opacity: .5; }
.oa-old summary { cursor: pointer; color: var(--ink-3); font-size: 12.5px; margin-top: 12px; }
.oa-scope { display: flex; flex-direction: column; gap: 8px; }
.oa-scope label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; cursor: pointer; }
.oa-scope label:has(input:checked) { border-color: var(--p); background: var(--p-soft); }
.oa-scope span { display: flex; flex-direction: column; } .oa-scope small { color: var(--ink-3); font-size: 12px; }
.oa-onekey { display: flex; gap: 8px; align-items: center; }
.oa-onekey code { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 6px; background: var(--fill); font: 13px ui-monospace, Menlo, Consolas, monospace; word-break: break-all; user-select: all; }
.oa-hooks { display: flex; flex-direction: column; gap: 10px; }
.oa-hook { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.oa-hook.off { background: var(--fill); }
.oa-hook .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.oa-hook .t code { font: 12.5px ui-monospace, Menlo, Consolas, monospace; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-hook .acts { display: flex; align-items: center; gap: 6px; flex: none; }
.oa-evs { display: flex; flex-wrap: wrap; gap: 4px; }
.oa-evs span { font: 11.5px ui-monospace, Menlo, Consolas, monospace; padding: 1px 6px; border-radius: 4px; background: var(--p-soft); color: var(--p-2); }
.oa-st { font-size: 12px; }
.oa-bad { color: var(--bad); font-weight: 500; } .oa-ok { color: var(--ok); }
.oa-evpick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.oa-evpick label { align-items: flex-start; margin: 0; }
.oa-evpick span { display: flex; flex-direction: column; } .oa-evpick small { color: var(--ink-3); font-size: 12px; }
.oa-ep code { font: 12.5px ui-monospace, Menlo, Consolas, monospace; }
.oa-m { font: 600 11px ui-monospace, Menlo, Consolas, monospace; padding: 2px 6px; border-radius: 4px; background: var(--fill); }
.oa-m.get { color: var(--ok); background: var(--ok-soft); } .oa-m.post { color: var(--p); background: var(--p-soft); } .oa-m.patch { color: var(--warn); background: var(--warn-soft); }
.oa-h4 { margin: 18px 0 6px; font-size: 13.5px; }
@media (max-width: 760px) { .oa-evpick { grid-template-columns: 1fr; } .oa-site { flex-wrap: wrap; } .oa-hook { flex-direction: column; } }
.oa-secret:empty { visibility: hidden; }

/* AI 与知识库 */
.oa-tabs button i.ok { background: var(--ok-soft); color: var(--ok); }
.kb-bar { display: flex; gap: 10px; align-items: center; margin: 4px 0 12px; flex-wrap: wrap; }
.kb-bar .input-icon { flex: 1; min-width: 220px; }
.kb-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.kb-row { display: flex; gap: 12px; padding: 12px 14px; align-items: flex-start; }
.kb-row + .kb-row { border-top: 1px solid var(--line); }
.kb-row.off { background: var(--fill); }
.kb-row .t { flex: 1; min-width: 0; cursor: pointer; }
.kb-row .t b { font-size: 14px; }
.kb-row .t p { margin: 4px 0 6px; color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.kb-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; }
.kb-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 16px; text-align: center; color: var(--ink-3); }
.kb-empty > svg.i { width: 26px; height: 26px; color: var(--p); }
.kb-empty b { color: var(--ink); font-size: 14px; }
.kb-empty .btn { margin-top: 8px; }
.kb-sites { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ai-try { display: flex; gap: 8px; }
.ai-try .input { flex: 1; }
.ai-ans { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--card); }
.ai-ans.ho { border-color: var(--warn); }
.ai-ans .who { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--p); }
.ai-ans .who svg.i { width: 14px; height: 14px; }
.ai-ans p { margin: 6px 0; line-height: 1.7; white-space: pre-wrap; }
.ai-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.ai-stats > div { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.ai-stats span { font-size: 12px; color: var(--ink-3); } .ai-stats b { font-size: 22px; } .ai-stats small { color: var(--ink-3); font-size: 12px; }
.ai-log td { vertical-align: top; font-size: 13px; }
/* 接线端：AI 消息、知识库、起草 */
.m-bot-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; padding: 0 6px; border-radius: 4px; background: var(--p-soft); color: var(--p); margin-right: 4px; }
.m-bot-tag svg.i { width: 11px; height: 11px; }
.kbp { width: 380px; height: 330px; display: flex; flex-direction: column; }
.kbp-list { flex: 1; min-height: 0; }
.kbp .input { margin: 4px 4px 8px; width: calc(100% - 8px); }
.kbp-list { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.kbp-it { text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.kbp-it:hover, .kbp-it.on { background: var(--p-soft); }
.kbp-it b { font-size: 13px; } .kbp-it span { font-size: 12px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kbp-empty { padding: 18px 10px; text-align: center; color: var(--ink-3); font-size: 12.5px; }

.icon-btn.ai-draft { color: #7c5cf0; }
.icon-btn.spin-on svg { animation: rot 1s linear infinite; }

/* 工单 */
.tk-wrap { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); gap: 16px; align-items: start; }
.tk-bar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.tk-bar .seg { flex-wrap: wrap; }
#tkList { display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 250px); overflow-y: auto; padding-right: 2px; }
.tk-item { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.tk-item:hover { border-color: color-mix(in srgb, var(--p) 40%, var(--line)); }
.tk-item.on { border-color: var(--p); box-shadow: 0 0 0 1px var(--p) inset; }
.tk-item .r1 { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.tk-item .r1 .grow { flex: 1; }
.tk-item .no, .tk-d .no { font: 600 12px ui-monospace, Menlo, Consolas, monospace; color: var(--ink-2); }
.tk-item .ti { font-size: 14px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-item .r3 { font-size: 12px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tk-item .r3 svg.i { width: 12px; height: 12px; }
.tk-none { color: var(--warn); }
.tk-over { color: var(--bad); font-weight: 500; }
.tk-right { background: var(--card); border: 1px solid var(--line); border-radius: 10px; min-height: 420px; position: sticky; top: 12px; }
.tk-right > .empty { padding: 60px 20px; }
.tk-d { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.tk-dh h2 { margin: 4px 0; font-size: 18px; }
.tk-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tk-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-3); }
.tk-content { background: var(--fill); border-radius: 6px; padding: 10px 12px; font-size: 13.5px; line-height: 1.7; }
.tk-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; align-items: center; }
.tk-links > * { display: inline-flex; align-items: center; gap: 4px; }
.tk-links svg.i { width: 14px; height: 14px; color: var(--ink-3); }
.tk-conv { color: var(--p); text-decoration: none; }
.tk-prev { font-size: 13px; }
.tk-prev summary { cursor: pointer; color: var(--ink-2); }
.tk-prev > div { display: flex; gap: 8px; padding: 4px 0; }
.tk-prev > div b { flex: none; width: 34px; color: var(--ink-3); font-weight: 500; }
.tk-prev > div.v span { color: var(--ink); } .tk-prev > div.a span { color: var(--ink-2); }
.tk-others { font-size: 12.5px; } .tk-others a { color: var(--p); }
.tk-tl { display: flex; flex-direction: column; border-left: 2px solid var(--line); margin-left: 6px; padding-left: 14px; gap: 10px; }
.tk-ev { position: relative; font-size: 13px; }
.tk-ev > i { position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 5px; background: var(--line); border: 2px solid var(--card); }
.tk-ev.comment > i { background: var(--p); } .tk-ev.status > i { background: var(--ok); }
.tk-ev .who { font-weight: 600; } .tk-ev .t { font-size: 11.5px; }
.tk-ev p { margin: 4px 0 0; background: var(--fill); border-radius: 6px; padding: 8px 10px; line-height: 1.65; }
.tk-tv { display: inline-flex; align-items: center; gap: 3px; color: var(--ok); font-size: 12px; } .tk-tv svg.i { width: 12px; height: 12px; }
.tk-reply { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.tk-ra { display: flex; align-items: center; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.tk-ra .check-inline { margin: 0 auto 0 0; }
.input.sm, .select.sm { height: 30px; font-size: 13px; padding: 0 8px; }
@media (max-width: 1100px) { .tk-wrap { grid-template-columns: 1fr; } .tk-right { position: static; } .tk-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tk-ra .select, .tk-ra .input { width: auto; min-width: 150px; flex: none; }
.tk-ra { flex-wrap: nowrap; }
.tk-ra .check-inline { white-space: nowrap; }

.ch-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 500; padding: 1px 6px; border-radius: 4px; margin-right: 4px; vertical-align: 1px; }
.ch-chip.tg { background: #e3f2fd; color: #1e88e5; }
.sec-hd h3 svg { vertical-align: -3px; color: #2aa3e0; }
.ch-chip.ic { padding: 2px 3px; margin: 0 0 0 4px; flex: none; }

/* 资金安全 */
.gd-mode { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.gd-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.gd-qr { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; }
.gd-qr .select { width: auto; min-width: 300px; }
.gd-test .btn { flex: none; }
.gd-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.6fr) 32px; gap: 6px; align-items: center; }
#gdOff .gd-row { grid-template-columns: 130px minmax(0, 1.6fr) minmax(0, 1fr) 32px; }
.gd-row .gd-v { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.gd-test { display: flex; gap: 8px; margin-top: 16px; } .gd-test .input { flex: 1; }
.gd-res { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.gd-res code { font-size: 12px; word-break: break-all; }
.gd-save { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0; z-index: 2; }
@media (max-width: 760px) { .gd-row, #gdOff .gd-row { grid-template-columns: 1fr 32px; } }

/* 两步验证 */
.tf-qr { display: flex; justify-content: center; margin: 6px 0 10px; }
.tf-qr svg { width: 170px; height: 170px; border-radius: 8px; background: #fff; }
.tf-steps { margin: 0 0 12px; padding-left: 18px; font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.tf-steps code { font-size: 12px; background: var(--fill); padding: 1px 5px; border-radius: 4px; user-select: all; }
.tf-modal { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: start; }

/* AI 质检 */
.qc-agents { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; }
.qc-ag { flex: none; min-width: 150px; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 10px 12px; text-align: left; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; }
.qc-ag.on { border-color: var(--p); box-shadow: 0 0 0 1px var(--p) inset; }
.qc-ag small { grid-column: 1 / -1; color: var(--ink-3); font-size: 11.5px; }
.qc-big { font-size: 20px; font-weight: 700; }
.qc-big.ok, .qc-score.ok { color: var(--ok); } .qc-big.info, .qc-score.info { color: var(--p); } .qc-big.warn, .qc-score.warn { color: var(--warn); } .qc-big.bad, .qc-score.bad { color: var(--bad); }
.qc-red { color: var(--bad); font-style: normal; }
.qc-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; } .qc-bar .grow { flex: 1; }
.qc-tb tr[data-conv] { cursor: pointer; } .qc-tb tr[data-conv]:hover td { background: var(--fill); }
.qc-score { font-weight: 700; font-size: 16px; } .qc-score.lg { font-size: 40px; line-height: 1; } .qc-score.sm { font-size: 14px; margin-left: auto; }
.qc-was { font-size: 11px; text-decoration: line-through; }
.qc-sum { max-width: 520px; font-size: 13px; line-height: 1.6; }
.qc-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.qc-flags span { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--bad); background: var(--bad-soft); border-radius: 4px; padding: 1px 6px; } .qc-flags svg.i { width: 11px; height: 11px; }
.qc-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; max-height: 64vh; }
.qc-left { overflow-y: auto; padding-right: 4px; display: flex; flex-direction: column; gap: 12px; }
.qc-head { display: flex; gap: 14px; align-items: center; } .qc-head p { margin: 4px 0 0; font-size: 13px; }
.qc-redbox { background: var(--bad-soft); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.qc-redbox b { display: inline-flex; align-items: center; gap: 4px; color: var(--bad); } .qc-redbox svg.i { width: 13px; height: 13px; } .qc-redbox span { margin-left: 17px; } .qc-redbox p { margin: 0; font-size: 12px; }
.qc-item .r { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.qc-item p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.qc-barline { height: 5px; background: var(--fill); border-radius: 3px; margin-top: 5px; overflow: hidden; }
.qc-barline i { display: block; height: 100%; border-radius: 3px; background: var(--p); } .qc-barline i.ok { background: var(--ok); } .qc-barline i.warn { background: var(--warn); } .qc-barline i.bad { background: var(--bad); }
.qc-rev { display: flex; gap: 6px; font-size: 13px; background: var(--ok-soft); border-radius: 6px; padding: 8px 10px; } .qc-rev svg.i { width: 14px; height: 14px; color: var(--ok); flex: none; margin-top: 2px; }
.qc-edit { display: flex; gap: 10px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 12px; }
.qc-chat { overflow-y: auto; background: var(--fill); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.qc-m { max-width: 88%; font-size: 13px; } .qc-m .w { font-size: 11px; color: var(--ink-3); }
.qc-m > div { background: var(--card); border-radius: 8px; padding: 6px 10px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.qc-m.agent, .qc-m.bot { align-self: flex-end; text-align: right; } .qc-m.agent > div { background: var(--p-soft); text-align: left; } .qc-m.note > div { background: #fff6dd; }
.qc-m.system { align-self: center; text-align: center; } .qc-m.system > div { background: transparent; color: var(--ink-3); font-size: 12px; }
.qs-items { display: flex; flex-direction: column; gap: 6px; }
.qs-it { display: grid; grid-template-columns: 140px 90px minmax(0, 1fr) 32px; gap: 6px; align-items: center; }
.qs-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cx-unit.sm .input { height: 30px; }
@media (max-width: 900px) { .qc-detail { grid-template-columns: 1fr; max-height: none; } .qs-it { grid-template-columns: 1fr 80px 32px; } .qs-it [data-k=desc] { grid-column: 1 / -1; } }
.qc-items { display: flex; flex-direction: column; gap: 12px; }

/* 套餐与付款 */
.bl { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.bl-now { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.bl-now > div:first-child { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.bl-now b { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; } .bl-now b svg.i { width: 14px; height: 14px; color: var(--ok); }
.bl-now.off { background: var(--p-soft); border-color: transparent; }
.bl-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.bl-bad { color: var(--bad); } .bl-pend { color: var(--warn); font-size: 12.5px; }
.bl-h { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.bl-pay { display: grid; grid-template-columns: 90px 80px 1fr auto; gap: 8px; font-size: 12.5px; padding: 6px 0; border-top: 1px solid var(--line); align-items: center; }
.bl-pay a { color: var(--p); }
.pp-iv { margin-bottom: 12px; } .pp-iv em { font-style: normal; font-size: 11px; color: var(--ok); margin-left: 4px; }
.pp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin-bottom: 14px; }
.pp-plan { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.pp-plan.on { border-color: var(--p); box-shadow: 0 0 0 1px var(--p) inset; background: var(--p-soft); }
.pp-price { font-size: 18px; font-weight: 700; } .pp-price small { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.pp-seats { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.pp-step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.pp-step button { width: 34px; height: 34px; border: 0; background: var(--fill); cursor: pointer; font-size: 16px; }
.pp-step .input { width: 70px; border: 0; text-align: center; border-radius: 0; height: 34px; }
.pp-sum { background: var(--fill); border-radius: 8px; padding: 12px 14px; }
.pp-sum > div { display: flex; justify-content: space-between; align-items: center; } .pp-sum > div > b { font-size: 22px; }
.pp-sum p { margin: 6px 0 0; font-size: 12.5px; } .pp-note { color: var(--ink-2); }
/* 密码框的小眼睛（core.js 自动加） */
.pw-box { position: relative; display: block; flex: 1 1 auto; min-width: 0; }
.pw-box > .input { padding-right: 38px; }
.pw-box .pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border: 0; padding: 0; background: transparent; border-radius: 7px; color: var(--ink-3); cursor: pointer; }
.pw-box .pw-eye:hover { background: var(--line-2); color: var(--ink); }
.pw-box .pw-eye svg.i { position: static; transform: none; width: 17px; height: 17px; color: inherit; pointer-events: none; }
.input-icon > svg.i { z-index: 2; }

/* ===== 2026-11-11 角色权限：开关行 + 分组可折叠 ===== */
.pq { border: 1px solid var(--line); border-radius: 8px; padding: 0; background: var(--card); overflow: hidden; }
.pq-hd { display: flex; align-items: center; gap: 8px; padding: 0 14px 0 6px; background: var(--fill); border-bottom: 1px solid var(--line); min-height: 44px; }
.pq.folded .pq-hd { border-bottom: 0; }
.pq-tg { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 10px 6px; cursor: pointer; text-align: left; color: var(--ink); border-radius: 6px; }
.pq-tg svg.i { width: 15px; height: 15px; color: var(--ink-3); transition: transform .18s; flex: none; }
.pq.folded .pq-tg svg.i { transform: rotate(-90deg); }
.pq-tg b { font-size: 14px; font-weight: 600; color: var(--ink); }
.pq-n { font-size: 12px; color: var(--ink-3); background: var(--card); border: 1px solid var(--line); padding: 1px 8px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.pq-n.on { color: var(--p); border-color: rgba(var(--p-rgb), .3); background: var(--p-soft); }
.pq-all { flex: none; font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 3px 10px; cursor: pointer; }
.pq-all:hover { color: var(--p); border-color: rgba(var(--p-rgb), .4); text-decoration: none; }
.pq.folded .pq-body { display: none; }
.pq-it { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line-2); cursor: pointer; }
.pq-body .pq-it:first-child { border-top: 0; }
.pq-it:hover { background: var(--hover); }
.pq-it .t { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pq-it .t b { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.pq-it .t small { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.pq-it:has(input:checked) .t b { color: var(--ink); }
.pq-it .switch { flex: none; }

/* ===== 2026-11-11 网站设置：每个卡片有自己的标题栏，能折叠；页面标题和卡片标题分开层级 ===== */
.sp-form .sp-sec-hd { margin: 4px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sp-form .sp-sec-hd h2 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.sp-form .sp-sec-hd p { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }
.sp-form .set-sec.sp-card { padding: 0 20px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); overflow: hidden; margin-bottom: 14px; }
.sp-form .set-sec.sp-card > h3 { display: flex; align-items: center; gap: 8px; margin: 0 -20px 16px; padding: 13px 20px; background: var(--fill); border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.sp-form .set-sec.sp-card > h3:has(+ .sub) { margin-bottom: 0; padding-bottom: 2px; border-bottom: 0; }
.sp-form .set-sec.sp-card > h3 + .sub { margin: 0 -20px 16px; padding: 0 20px 12px; background: var(--fill); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.sp-form .set-sec.sp-card.foldable > h3::after { margin-left: auto; }
.sp-form .set-sec.sp-card.foldable:hover > h3 { color: var(--ink); }
.sp-form .set-sec.sp-card.foldable > h3:hover { color: var(--p); }
.sp-form .set-sec.sp-card.folded { padding-bottom: 0; }
.sp-form .set-sec.sp-card.folded > h3:not(:has(+ .sub)), .sp-form .set-sec.sp-card.folded > .sub { margin-bottom: 0; border-bottom: 0; }

/* ===== 2026-11-11 USDT 付款 ===== */
.bl-usdt { margin-top: 10px; }
.bl-coin svg.i.coin { width: 16px; height: 16px; color: #26a17b; }
.confirm-ic svg.i.coin { color: inherit; }
.up { display: flex; flex-direction: column; gap: 14px; }
.up-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: start; }
.up-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.up-qr svg { width: 158px; height: 158px; display: block; }
.up-qr span { font-size: 12px; color: #828997; }
.up-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.up-k { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.up-amt { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.up-amt b { font-size: 32px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--ink); }
.up-amt b em { font-style: normal; color: var(--p); background: var(--p-soft); border-radius: 6px; padding: 0 4px; margin-left: 1px; }
.up-amt > span { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.up-amt .btn { margin-left: auto; align-self: center; }
.up-addr { display: flex; align-items: center; gap: 8px; }
.up-addr code { flex: 1; min-width: 0; font: 14px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--fill); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; word-break: break-all; color: var(--ink); }
.up-note { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.up-note b { color: var(--ink); }
.up-st { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 8px; background: var(--fill); font-size: 13px; color: var(--ink-2); }
.up-st > svg.i { width: 16px; height: 16px; flex: none; }
.up-st > span { flex: 1; min-width: 0; }
.up-st b#upLeft { font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.up-st.expired { background: var(--warn-soft); } .up-st.expired > svg.i { color: var(--warn); }
.up-st.review { background: var(--info-soft); } .up-st.review > svg.i { color: var(--info); }
.up-st.cancelled { color: var(--ink-3); }
.up-spin { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--p); animation: upSpin .9s linear infinite; }
@keyframes upSpin { to { transform: rotate(360deg); } }
.up-claim { display: flex; gap: 10px; align-items: flex-end; } .up-claim .field { flex: 1; margin: 0; }
.up-ok { text-align: center; padding: 24px 10px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.up-ok .ok-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.up-ok .ok-ic svg.i { width: 26px; height: 26px; }
.up-ok h3 { margin: 4px 0 0; font-size: 18px; } .up-ok p { margin: 0; color: var(--ink-2); font-size: 13.5px; max-width: 420px; }
@media (max-width: 640px) { .up-grid { grid-template-columns: 1fr; } .up-qr { justify-self: center; } .up-amt b { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .up-spin { animation: none; } }
.bl-pay b { white-space: nowrap; }
.up-addr code { font-size: 13px; letter-spacing: -.01em; }

/* ===== 2026-11-12 账单 + 收据 ===== */
.bl-bill { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto auto 76px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.bl-bill .d { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bl-bill .w { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bl-bill .w b { font-weight: 500; } .bl-bill .w small { font-size: 12px; }
.bl-bill .a { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bl-bill .x { text-align: right; }
@media (max-width: 640px) { .bl-bill { grid-template-columns: 1fr auto; } .bl-bill .d { grid-column: 1 / -1; } .bl-bill .x { grid-column: 1 / -1; text-align: left; } }
.rcp { border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; background: var(--card); }
.rcp-hd { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.rcp-hd > div:first-child { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--ink-3); } .rcp-hd > div:first-child b { font-size: 15px; color: var(--ink); }
.rcp-t { text-align: right; display: flex; flex-direction: column; gap: 2px; } .rcp-t b { font-size: 20px; letter-spacing: .02em; } .rcp-t span { font: 12.5px ui-monospace, Menlo, Consolas, monospace; color: var(--ink-3); }
.rcp-tb { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rcp-tb th { width: 96px; text-align: left; font-weight: 400; color: var(--ink-3); padding: 7px 12px 7px 0; vertical-align: top; }
.rcp-tb td { padding: 7px 0; color: var(--ink); word-break: break-all; }
.rcp-tb code { font: 12px ui-monospace, Menlo, Consolas, monospace; }
.rcp-ft { margin: 14px 0 0; font-size: 12px; color: var(--ink-3); word-break: break-all; }
@media print {
  body.printing-rcp * { visibility: hidden !important; }
  body.printing-rcp #rcpBox, body.printing-rcp #rcpBox * { visibility: visible !important; }
  body.printing-rcp #rcpBox { position: fixed; left: 0; top: 0; width: 100%; border: 0; padding: 0; color: #000; background: #fff; }
}
/* 提醒检测 */
.rmk-list { display: flex; flex-direction: column; gap: 8px; }
.rmk-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.rmk-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rmk-row .t b { font-size: 13.5px; font-weight: 600; }
.rmk-row .t span { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.rmk-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.rmk-ic svg { width: 15px; height: 15px; }
.rmk-row.ok .rmk-ic { background: var(--ok-soft); color: var(--ok); }
.rmk-row.bad { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.rmk-row.bad .rmk-ic { background: var(--bad-soft); color: var(--bad); }
.rmk-row.warn .rmk-ic { background: var(--warn-soft); color: var(--warn); }
.rmk-row .btn { flex: none; }
.rmk-test { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: var(--p-soft); display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.rmk-test b { font-size: 13.5px; }
.rmk-test span { color: var(--ink-3); }
/* 断线太久：备用线路 */
.conn-bar .conn-alt { margin-left: 10px; display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.conn-bar .conn-alt a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
/* 会话报表：各网站对话量（时段 / 天 × 网站） */
.rp-mx { margin-bottom: 16px; }
.rp-mx .rp-card-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rp-mx .rp-card-hd .sub { margin-top: 2px; }
.rp-mx-tb td, .rp-mx-tb th { padding: 6px 12px; height: 34px; }
.rp-mx-tb tbody tr:hover td { background: var(--fill); }
/* 11-18 各网站对话量：格子里一个浅色小块写数字（以前整格填深蓝，看着乱）；0 只画一个淡点；合计列带一条横条 */
.rp-mx-tb .rp-hm { display: inline-block; min-width: 34px; padding: 2px 8px; border-radius: 5px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); background: color-mix(in srgb, var(--p) var(--h), transparent); }
.rp-mx-tb .rp-mx-0 { color: var(--ink-4); }
.rp-mx-tb tr.rp-mx-z td:first-child { color: var(--ink-3); }
.rp-mx-tb tr.rp-mx-we td:first-child { color: var(--warn); }
.rp-mx-tb .rp-pk { margin-left: 8px; font-style: normal; font-size: 11px; font-weight: 600; color: var(--p); background: var(--p-soft); border-radius: 4px; padding: 1px 6px; }
.rp-mx-tb tr.rp-mx-pk td { background: color-mix(in srgb, var(--p) 5%, transparent); }
.rp-mx-tb th:first-child, .rp-mx-tb td:first-child { width: 170px; }
.rp-mx-tb thead th.num, .rp-mx-tb tbody td.num, .rp-mx-tb tfoot td.num { width: 112px; }
.rp-mx-tb .rp-mx-t { border-left: 1px solid var(--line); min-width: 220px; }
.rp-mx-bar { display: grid; grid-template-columns: 1fr 48px; align-items: center; gap: 10px; }
.rp-mx-bar .trk { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.rp-mx-bar .fill { height: 100%; border-radius: 4px; background: var(--p); }
.rp-mx-bar b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.rp-mx-tb tfoot td { border-top: 1px solid var(--line); background: var(--fill); }
.rp-mx-tb tfoot .rp-mx-t { text-align: right; padding-right: 12px; }
.rp-mx-note { padding: 10px 16px 12px; font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line-2); }
.rp-empty { color: var(--ink-3); font-size: 13px; text-align: center; padding: 24px 0; }
.bars text.bar-v { fill: var(--ink-2); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.bars text.bar-v.sm { font-size: 9.5px; }
/* 忙闲时段 */
.rp-busy { padding-top: 4px; }
.rp-busy-h { font-size: 12px; color: var(--ink-3); margin: 10px 0 2px; }
.rp-busy-r { display: grid; grid-template-columns: 100px 1fr 40px; align-items: center; gap: 10px; margin: 8px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.rp-busy-r .trk { height: 10px; border-radius: 5px; background: var(--line-2); overflow: hidden; }
.rp-busy-r .fill { height: 100%; border-radius: 5px; background: var(--p); transition: width .6s var(--ease); }
.rp-busy-r.lo .fill { background: color-mix(in srgb, var(--p) 40%, transparent); }
.rp-busy-r b { text-align: right; font-weight: 600; }
.rp-busy-n { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }
.rp-mx-tb thead th .site-chip { max-width: 140px; }
/* 提醒推送（服务商托管）：自己的域名入口 */
.ops-own { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 10px; }
.ops-own[hidden], .ops-sec[hidden], .ops-ov[hidden] { display: none !important; }
.ops-own .muted { font-size: 12.5px; }
/* 接线端：选状态 */
.st-pick { display: flex; flex-direction: column; gap: 10px; }
.st-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; transition: border-color .15s, background .15s; }
.st-opt:hover { border-color: var(--p); background: var(--p-soft); }
.st-opt .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.st-opt div { display: flex; flex-direction: column; gap: 2px; }
.st-opt b { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.st-opt b em { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--ink-3); background: var(--fill); border-radius: 5px; padding: 1px 6px; }
.st-opt span { font-size: 12.5px; color: var(--ink-3); }
/* 加密链接：只显示最新一条 */
.el-cur { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 12px 14px; border-radius: 8px; background: var(--fill); border: 1px solid var(--line-2); margin-bottom: 12px; }
.el-cur.warn { box-shadow: inset 3px 0 0 var(--bad); }
.el-cur .el-url { font-size: 13.5px; }
/* ---------- 设置卡片：标题层级 + 折叠（客户管理端、平台控制台都用） ---------- */
/* 卡片标题：左边主题色竖条，字大一号；网站设置的卡片标题栏有自己的底色，深色模式下也和卡片、页面分得开 */
.set-sec.foldable > h3, .set-sec.foldable > .sec-hd h3, .cx-sec.foldable > h4 { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.set-sec.foldable > h3::before, .set-sec.foldable > .sec-hd h3::before, .cx-sec.foldable > h4::before { content: ""; display: inline-block; vertical-align: -2px; width: 3px; height: 15px; margin-right: 9px; border-radius: 2px; background: var(--p); flex: none; }
.sp-form .set-sec.sp-card > h3 { background: var(--sec-hd); font-size: 15px; gap: 0; }
.sp-form .set-sec.sp-card > h3 + .sub { background: var(--sec-hd); padding-left: 32px; }
.sp-form .set-sec.sp-card.folded > h3 + .sub { border-bottom: 0; margin-bottom: 0; }
.sp-form .set-sec.sp-card.folded { padding-bottom: 0; }
.sp-form .set-sec.sp-card.folded > h3:not(:has(+ .sub)) { margin-bottom: 0; border-bottom: 0; }
/* 卡片里的小项名称（什么时候填、布局、表单标题……）：深色模式下也看得清 */
.sp-form .field > .lbl, .sp-form .lbl2 { color: var(--ink-2); }
/* 收起时标题后面：主开关的状态 */
.fold-sum { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin-left: 10px; border-radius: 10px; font-size: 11.5px; font-weight: 500; background: var(--fill); color: var(--ink-3); border: 1px solid var(--line); vertical-align: middle; }
.fold-sum.on { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
/* 平台控制台的分块（h4） */
.cx-sec.foldable > h4 { cursor: pointer; user-select: none; margin-bottom: 12px; }
.cx-sec.foldable > h4::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px; border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3); transform: translateY(-3px) rotate(45deg); transition: transform .15s; }
.cx-sec.foldable.folded > h4::after { transform: translateY(0) rotate(-45deg); }
.cx-sec.foldable:hover > h4 { color: var(--p); }
.cx-sec.folded > :not(h4) { display: none !important; }
.cx-sec.folded > h4 { margin-bottom: 0; }

/* 接线端：粘贴 / 拖入 / 选好的图片和文件，先排在输入框上方，点发送才发出去 */
.c-att { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px 2px; }
.c-att[hidden] { display: none; }
.c-att-it { position: relative; flex: none; border-radius: 8px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.c-att-it.img { width: 64px; height: 64px; overflow: hidden; }
.c-att-it.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-att-it.doc { display: flex; align-items: center; gap: 8px; max-width: 240px; height: 48px; padding: 0 30px 0 10px; font-size: 12.5px; }
.c-att-it.doc > svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); }
.c-att-it.doc span { display: flex; flex-direction: column; min-width: 0; }
.c-att-it.doc b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-att-it.doc small { color: var(--ink-3); }
.c-att-x { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 10px; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(20, 24, 33, .62); }
.c-att-x:hover { background: rgba(20, 24, 33, .85); }
.c-att-x svg { width: 12px; height: 12px; }
.c-att-tip { font-size: 12px; color: var(--ink-3); margin-left: 2px; }
.c-att-it.img img { cursor: zoom-in; }
.c-att-it.doc .c-att-x { top: 50%; right: 6px; transform: translateY(-50%); background: transparent; color: var(--ink-3); }
.c-att-it.doc .c-att-x:hover { background: var(--line); color: var(--ink); }


/* 网站标记 */
.sp-tag { margin: 10px 0 6px; }
.sp-tag-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.sp-tag-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-tag-pick { height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: 12.5px; cursor: pointer; }
.sp-tag-pick:hover { border-color: var(--p); color: var(--p); }
.sp-tag-pick.on { background: var(--p-soft); border-color: var(--p); color: var(--p); font-weight: 600; }
.sp-tag-pick.none { border-style: dashed; color: var(--ink-3); }
.site-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 9px; font-size: 11px; font-weight: 600; vertical-align: 1px; background: var(--bg-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- 访客网络检查（diag.js） ---------- */
.dgv-top { display: flex; gap: 8px; margin-bottom: 14px; }
.dgv-in { flex: 1; }
.dgv-in .input { letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.dgv-in .input::placeholder { letter-spacing: 0; }
.dgv-empty { padding: 14px; text-align: center; color: var(--ink-3); font-size: 13px; border: 1px dashed var(--line); border-radius: 8px; }
.dgv-empty.bad { color: var(--bad); border-color: var(--bad); border-style: solid; background: var(--bad-soft); }
.dgv-res { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); border-left-width: 4px; background: var(--card); }
.dgv-res b { font-size: 14.5px; }
.dgv-res span { font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.dgv-res.ok { border-left-color: var(--ok); } .dgv-res.ok b { color: var(--ok); }
.dgv-res.warn { border-left-color: var(--warn); } .dgv-res.warn b { color: var(--warn); }
.dgv-res.bad { border-left-color: var(--bad); } .dgv-res.bad b { color: var(--bad); }
.dgv-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 12px 2px; }
.dgv-facts > div { display: flex; gap: 10px; font-size: 13px; min-width: 0; }
.dgv-facts dt { flex: none; width: 60px; color: var(--ink-3); }
.dgv-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.dgv-list { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.dgv-row { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; font-size: 13px; border-top: 1px solid var(--line); }
.dgv-row:first-child { border-top: 0; }
.dgv-row i, .dgv-item i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gray-300, #c9cfdb); align-self: center; }
.dgv-row.ok i, .dgv-item.ok i { background: var(--ok); } .dgv-row.warn i, .dgv-item.warn i { background: var(--warn); } .dgv-row.bad i, .dgv-item.bad i { background: var(--bad); }
.dgv-row b { flex: none; font-weight: 600; }
.dgv-row b em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.dgv-row span { flex: 1; text-align: right; color: var(--ink-3); min-width: 0; }
.dgv-row.warn span { color: var(--warn); } .dgv-row.bad span { color: var(--bad); }
.dgv-ua { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }
.dgv-ua summary { cursor: pointer; }
.dgv-ua code { display: block; margin-top: 6px; padding: 8px 10px; background: var(--fill); border-radius: 6px; overflow-wrap: anywhere; font-size: 12px; }
.dgv-sec { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 8px; }
.dgv-sec b { font-size: 13.5px; }
.dgv-sec span { font-size: 12.5px; color: var(--ink-3); }
.dgv-links, .dgv-recent { display: flex; flex-direction: column; gap: 6px; }
.dgv-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.dgv-link b { flex: none; font-size: 13px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dgv-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--ink-3); }
.dgv-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.dgv-item:hover { border-color: var(--p); }
.dgv-item b { flex: none; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.dgv-item .who { flex: none; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dgv-item .sm { flex: 1; min-width: 0; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dgv-item time { flex: none; color: var(--ink-3); font-size: 12px; }
.dgv-lk { color: var(--p); cursor: pointer; text-decoration: underline; }

/* 询前表单"问题选择"：访客选的问题（会话列表、聊天顶部） */
.topic-chip { flex: none; display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 4px; font-size: 11.5px; font-weight: 600; color: var(--p); background: var(--p-soft); white-space: nowrap; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
.hd-topic { margin-left: 2px; height: 22px; font-size: 12.5px; max-width: 140px; }
.pc-chopts { grid-column: 3 / 6; display: flex; flex-direction: column; gap: 4px; }
.pc-chopts .muted { font-size: 12px; }
.pcp-f i.ch { display: flex; flex-wrap: wrap; gap: 4px; height: auto; padding: 4px 0; background: none; border: 0; }
.pcp-f i.ch b { font-weight: 500; font-style: normal; font-size: 11px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); }

/* ---------- 图片标记（annot.js） ---------- */
.lbx-bar .lbx-mark { width: auto; padding: 0 12px 0 10px; gap: 5px; display: inline-flex; align-items: center; font-size: 13px; }
.anx { position: fixed; inset: 0; z-index: 450; background: #16181f; display: flex; flex-direction: column; color: #e8eaf0; animation: fade .15s; }
body.anx-open .modal-mask { z-index: 500; }
body.anx-open #toasts { z-index: 520; }
.anx-top { flex: none; display: flex; align-items: center; gap: 4px; padding: 8px 12px; background: #20232c; border-bottom: 1px solid rgba(255,255,255,.07); flex-wrap: wrap; }
.anx-top button { height: 34px; min-width: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; color: inherit; border-radius: 7px; cursor: pointer; font: inherit; font-size: 13px; }
.anx-top button svg { width: 18px; height: 18px; }
.anx-top button:hover:not(:disabled) { background: rgba(255,255,255,.09); }
.anx-top button.on { background: rgba(255,255,255,.16); }
.anx-top button:disabled { opacity: .35; cursor: default; }
.anx-tools, .anx-colors, .anx-sizes { display: flex; gap: 2px; align-items: center; }
.anx-colors button { min-width: 28px; }
.anx-colors button::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.anx-colors button.on::before { box-shadow: 0 0 0 2px #20232c, 0 0 0 4px #e8eaf0; }
.anx-sizes i { display: block; border-radius: 50%; background: currentColor; }
.anx-sep { width: 1px; height: 22px; background: rgba(255,255,255,.12); margin: 0 6px; }
.anx-sp { flex: 1; }
.anx-top .anx-btn { padding: 0 12px; background: rgba(255,255,255,.07); }
.anx-top .anx-btn.pri { background: var(--p); color: var(--on-p); }
.anx-top .anx-btn.pri:hover { background: var(--p); filter: brightness(1.08); }
.anx-top .anx-x { margin-left: 6px; }
.anx-stage { flex: 1; min-height: 0; position: relative; display: grid; place-items: center; overflow: hidden; }
.anx-stage canvas { display: block; box-shadow: 0 6px 30px rgba(0,0,0,.5); touch-action: none; }
.anx-txt { position: absolute; min-width: 120px; padding: 0 2px; margin: 0; border: 1px dashed rgba(255,255,255,.7); background: rgba(0,0,0,.25); font-weight: 600; line-height: 1.25; resize: none; outline: none; overflow: hidden; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
.anx-tip { flex: none; text-align: center; font-size: 12px; color: #8a90a0; padding: 6px 0 10px; }
/* 会话列表：名字已经按字数截短了，不再被挤；放不下时先缩网站标签 */
.citem .l1 .nm { flex: none; max-width: none; }
.citem .l1 > .l1s { flex-shrink: 1; min-width: 52px; }
.citem .l1 > .wtimer, .citem .l1 > .tm { flex: none; }
.pq-it .t small .pq-off { display: block; font-style: normal; color: var(--warn, #b45309); margin-top: 2px; }
/* 接线端：客服状态 */
.ab-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.ab-kpi { background: var(--card); border-radius: 8px; box-shadow: var(--shadow-s); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ab-kpi > span { font-size: 12.5px; color: var(--ink-3); }
.ab-kpi > b { font-size: 24px; font-weight: 650; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ab-kpi > b small { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.ab-kpi > em { font-style: normal; font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ab-kpi .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-left: 4px; }
.ab-kpi .dot:first-child { margin-left: 0; }
.ab-tb th.ab-th { cursor: pointer; user-select: none; white-space: nowrap; }
.ab-tb th.ab-th.on { color: var(--ink); }
.ab-tb td.num { font-variant-numeric: tabular-nums; }
.ab-tb tr.ab-off td { color: var(--ink-3); }
.ab-tb tr.ab-off .user b { color: var(--ink-2); }
.ab-tb tr.ab-me td { background: color-mix(in srgb, var(--primary, #2456e8) 4%, transparent); }
.ab-load { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 2px; width: 92px; }
.ab-load b { font-size: 15px; font-variant-numeric: tabular-nums; }
.ab-load b.full { color: var(--danger, #d92d20); }
.ab-load small { color: var(--ink-3); font-size: 12px; }
.ab-load .bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--line, #e5e7eb); margin-top: 4px; overflow: hidden; }
.ab-load .bar i { display: block; height: 100%; background: var(--ok, #12b76a); border-radius: 2px; }
.ab-load .bar i.high { background: var(--warn, #f79009); }
.ab-load .bar i.full { background: var(--danger, #d92d20); }
.ab-from { display: block; font-size: 11.5px; }
.ab-warn { color: var(--warn-ink, #b54708); }
.ab-bad { color: var(--danger, #d92d20); }
.ab-note { font-size: 12px; padding: 10px 16px 12px; margin: 0; }
@media (max-width: 900px) { .ab-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } #abTable { overflow-x: auto; } }
.ab-arr { font-style: normal; margin-left: 3px; }
.ab-tb td.num { text-align: left; }
.ab-sum.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 页面标题旁的"?"：打开帮助中心对应文章 */
.help-q { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; margin-left: 8px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--ink-3) 16%, transparent); color: var(--ink-2); font-size: 11.5px; font-weight: 600; text-decoration: none; vertical-align: 3px; line-height: 1; }
.help-q:hover { color: #fff; background: var(--primary, #2456e8); }

/* 历史记录：表格上面的总会话量 */
.h-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin: 2px 2px 12px; font-size: 13.5px; color: var(--ink-2); }
.h-total:empty { display: none; }
.h-t-main { display: inline-flex; align-items: baseline; gap: 5px; }
.h-t-main b { font-size: 20px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.h-t-parts { display: inline-flex; gap: 14px; color: var(--ink-3); font-size: 12.5px; }
.h-t-parts b { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
/* 进线欢迎语的排版：接线端里的客服气泡、设置页的预览 */
.bb.rt, .gt-bubble { white-space: normal; }
.rt-h { font-weight: 600; font-size: 14.5px; line-height: 1.45; margin-bottom: 2px; }
.rt-p { line-height: 1.6; }
.rt-gap { height: 6px; }
.rt-ul { margin: 3px 0 2px; padding-left: 18px; line-height: 1.65; }
.rt-tip { margin-top: 7px; padding: 6px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.55; background: color-mix(in srgb, var(--p) 9%, var(--card)); color: var(--ink-2); }
.rt-hr { height: 1px; margin: 8px 0; background: var(--line); }
.m.me .bb.rt .rt-tip { background: rgba(255,255,255,.16); color: inherit; }
.m.me .bb.rt .rt-hr { background: rgba(255,255,255,.28); }
.m.me .bb.rt .rt-ul li::marker { color: rgba(255,255,255,.8); }
/* 进线欢迎语编辑器：排版按钮 + 输入框；访客看到的样子统一在右边的预览窗口 */
.gt-hd .gt-ins2 { margin: 0 0 0 auto; flex-wrap: nowrap; }
.gt-hd .gt-del { margin-left: 2px; }
.gt-body { display: block; }
.gt-ed { min-width: 0; }
.gt-tb { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-bottom: 6px; }
.gt-tb button { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: 12px; padding: 3px 7px; border-radius: 6px; cursor: pointer; white-space: nowrap; line-height: 1.5; }
.gt-tb button:hover { color: var(--p); border-color: var(--p); }
.gt-tb button b { font-weight: 700; }
.gt-tb .gt-sep { width: 1px; height: 16px; background: var(--line); margin: 0 2px; }
.gt-row .gt-ed .textarea { min-height: 128px; font-size: 13px; line-height: 1.6; }

/* 账号在别处接线：盖住工作台 */
.taken-mask { position: fixed; inset: 0; z-index: 900; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; animation: fade .2s ease; }
.taken-card { width: min(460px, 100%); background: var(--card); border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.16), 0 0 0 1px var(--line); padding: 26px 26px 20px; text-align: center; }
.taken-ic { width: 46px; height: 46px; border-radius: 12px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--p-soft); color: var(--p); }
.taken-ic svg.i { width: 24px; height: 24px; }
.taken-card h3 { margin: 0 0 8px; font-size: 17px; }
.taken-card p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.taken-acts { display: flex; gap: 8px; justify-content: center; margin: 18px 0 12px; }
/* 11-25 三个按钮一行放不下、超出了弹窗：主按钮单独一行占满，其余两个并排平分；字长（英文）可以换行 */
.taken-acts { display: grid; grid-template-columns: 1fr 1fr; }
.taken-acts .btn { min-width: 0; justify-content: center; white-space: normal; height: auto; min-height: 36px; padding-top: 7px; padding-bottom: 7px; line-height: 1.35; text-align: center; }
.taken-acts .btn.primary { grid-column: 1 / -1; min-height: 40px; }
.taken-acts .btn:last-child:nth-child(2) { grid-column: 1 / -1; }
.taken-tip { font-size: 12px; color: var(--ink-3); line-height: 1.6; border-top: 1px solid var(--line-2); padding-top: 12px; }
/* 同时登录多个接线账号 */
.slot-list { display: flex; flex-direction: column; gap: 6px; }
.slot-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.slot-row.cur { background: var(--p-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--p) 40%, transparent); }
.slot-no { width: 22px; height: 22px; border-radius: 6px; background: var(--fill); color: var(--ink-3); font-size: 12px; font-weight: 600; display: grid; place-items: center; flex: none; font-variant-numeric: tabular-nums; }
.slot-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.slot-row .t b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-row .t span { font-size: 12px; color: var(--ink-3); }
.slot-add { margin-top: 12px; }
.slot-help { margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: var(--fill); font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.slot-help b { font-size: 12.5px; }
.slot-help ol { margin: 4px 0 0; padding-left: 18px; }
.lg-slot { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: 8px; background: var(--p-soft); color: var(--ink-2); font-size: 12.5px; line-height: 1.6; margin-bottom: 14px; }
.lg-slot svg.i { width: 16px; height: 16px; color: var(--p); flex: none; margin-top: 2px; }
/* 多账号窗口：左上角标出账号 */
.rail-slot { font-size: 10px; font-weight: 700; color: var(--on-p, #fff); background: var(--p); border-radius: 5px; min-width: 16px; height: 16px; padding: 0 4px; display: inline-grid; place-items: center; position: absolute; right: 8px; bottom: 6px; pointer-events: none; }
.rail-me { position: relative; }
/* 对话区变窄时：顶部按钮只留图标，名字优先显示 */
.chat-hd .who b > .hd-nm { flex: 0 1 auto; min-width: 3em; }
.chat-hd .who b > .site-chip, .chat-hd .who b > .hd-topic { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.chats.cols-tight .chat-hd { padding: 0 10px 0 14px; gap: 10px; }
.chats.cols-tight .chat-hd .acts .hd-bl, .chats.cols-tight .chat-hd .acts .kbd-s { display: none; }
.chats.cols-tight .chat-hd .acts .btn { padding: 0 8px; }
.chats.cols-tight .chat-hd .acts .btn svg.i { margin: 0; }
.chats.cols-tight .chat-hd .who b > .site-chip, .chats.cols-tight .chat-hd .who b > .ch-chip { display: none; }
.chats.cols-tight .chat-hd .who b > .online-pill { font-size: 0; gap: 0; padding: 0 3px; width: 14px; justify-content: center; }
.chats.cols-tight .chat-hd .who b > .online-pill .dot { margin: 0; box-shadow: none; }
/* 关键信息一行放不下：可以左右滑动看到后面的（不显示滚动条） */
.chat-hd > .hd-facts { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.chat-hd > .hd-facts::-webkit-scrollbar { display: none; }

/* 右栏标签：数字做成右上角的小角标，不占文字的宽度（右栏窄时"历史"不会被挤成两行） */
.stabs button { white-space: nowrap; min-width: 0; }
.stabs .stl { position: relative; display: inline-block; }
.stabs .stl > i { position: absolute; left: 100%; top: -7px; margin-left: 1px; min-width: 15px; height: 15px; font-size: 10px; line-height: 15px; padding: 0 4px; border-radius: 8px; }
.stabs button.on .stl > i:not(.warn) { background: var(--p); color: var(--on-p); }
/* 会话列表：关掉消息预览时，名字完整显示，第二行放网站 + 访客打字动画 */
.citem.nopv .l1 > .nm { flex: 0 1 auto; min-width: 0; max-width: none; }
.citem.nopv .l2 { min-height: 18px; }
.citem.nopv .l2 > .l1s { max-width: 150px; min-width: 0; flex: 0 1 auto; }
.citem.nopv .l2 > .l2r { margin-left: auto; flex: none; display: inline-flex; }
.citem.nopv .l2 > button.pend { margin-left: auto; }
.citem.nopv .l2 > button.pend + .l2r { margin-left: 0; }
.citem .vtyping { display: inline-flex; align-items: center; height: 16px; padding: 0 6px; margin-left: 2px; border-radius: 9px; background: var(--p-soft); flex: none; }
.citem .vtyping[hidden] { display: none; }
.citem.nopv:has(.accept):hover .l2 > .l2r { visibility: hidden; }

/* =================== 接线端对话顶部 + 输入框（11-17 简洁版） =================== */
.chat-hd .acts { gap: 6px; }
.hd-ib { width: 32px; height: 32px; flex: none; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); background: var(--card); border-radius: 9px; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.hd-ib svg.i { width: 17px; height: 17px; }
.hd-ib:hover { background: var(--hover); color: var(--ink); }
.hd-ib:active { transform: translateY(.5px); }
.hd-ib:focus-visible, .hd-inj:focus-visible { outline: 2px solid var(--p); outline-offset: 1px; }
.hd-ib.bad { color: var(--bad); }
.hd-ib.bad:hover { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 28%, var(--line)); color: var(--bad); }
.hd-ib.on { color: var(--p); background: var(--p-soft); border-color: transparent; }
.hd-div { width: 1px; height: 18px; background: var(--line); margin: 0 3px; flex: none; }
.chat-hd .acts .btn.sm { height: 32px; border-radius: 9px; padding: 0 12px; }
.hd-inj { height: 32px; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--p) 30%, transparent); background: var(--p-soft); color: var(--p); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.hd-inj svg.i { width: 15px; height: 15px; }
.hd-inj:hover { background: color-mix(in srgb, var(--p) 15%, var(--card)); }
.hd-inj.on { background: var(--card); color: var(--ink-2); border-color: var(--line); font-weight: 500; }
.hd-inj.on:hover { background: var(--hover); color: var(--ink); }
.chats.cols-tight .hd-inj { padding: 0; width: 32px; justify-content: center; }
/* 监控中：顶部名字后面一个小标签（谁在接待），插话中换成主题色 */
.chat-hd .who .mon-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px 0 8px; border-radius: 11px; background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 78%, var(--ink)); font-size: 12px; font-weight: 600; overflow: visible; flex: none; }
.chat-hd .who .mon-chip > span { font-size: inherit; color: inherit; display: inline; overflow: visible; }
.chat-hd .who .mon-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex: none; animation: monp 1.8s ease-out infinite; }
.chat-hd .who .mon-chip em { font-style: normal; font-weight: 500; opacity: .85; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-hd .who .mon-chip em::before { content: "·"; margin-right: 4px; }
.chat-hd .who .mon-chip em:empty { display: none; }
.chat-hd .who .mon-chip.inj { background: var(--p-soft); color: var(--p); }
.chat-hd .who .mon-chip.inj i { background: var(--p); animation: none; }
@keyframes monp { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--warn) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 5px transparent; } }
@media (prefers-reduced-motion: reduce) { .chat-hd .who .mon-chip i { animation: none; } }
/* 输入框底部：左边工具，右边一个快捷键设置按钮 + 发送 */
.c-foot .c-sp { flex: 1; }
.c-foot .c-set { color: var(--ink-4); margin-right: 6px; }
.c-foot .c-set:hover { color: var(--ink-2); }
.c-foot .c-set svg.i { width: 17px; height: 17px; }
/* 输入框设置：高度滑块 */
.ih-set { display: flex; align-items: center; gap: 10px; padding: 4px 12px 2px; }
.ih-set input[type=range] { flex: 1; min-width: 0; accent-color: var(--p); height: 18px; cursor: pointer; }
.ih-set .ih-v { font-size: 12px; color: var(--ink-2); min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.ih-set .ih-rs { border: 0; background: none; padding: 2px 4px; border-radius: 6px; font-size: 12px; color: var(--p); cursor: pointer; white-space: nowrap; }
.ih-set .ih-rs:hover { background: var(--p-soft); }
.ih-set .ih-rs[hidden] { display: none; }
/* 会话页：一次性的提醒浮在对话区右上角（对话顶部下面），不占位置、几秒后自己收起 */
.chats .chat-col { position: relative; }
.ntoast { position: absolute; top: 12px; right: 16px; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; width: min(380px, calc(100% - 32px)); pointer-events: none; }
.ntoast:empty { display: none; }
.ntoast .nbar { pointer-events: auto; width: 100%; padding: 9px 8px 9px 12px; border-radius: 12px; background: var(--card); box-shadow: 0 10px 30px rgba(16,24,40,.14), 0 0 0 1px var(--line); animation: ntIn .28s var(--ease); }
.ntoast .nbar.new { box-shadow: 0 10px 30px rgba(16,24,40,.14), 0 0 0 1px var(--line), inset 3px 0 0 var(--p); }
.ntoast .nbar.leave { box-shadow: 0 10px 30px rgba(16,24,40,.14), 0 0 0 1px var(--line), inset 3px 0 0 var(--info); }
.ntoast .nbar .t { flex-direction: column; align-items: flex-start; gap: 1px; }
.ntoast .nbar .t b, .ntoast .nbar .t span { font-size: 12.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ntoast .nbar .t span { color: var(--ink-3); }
.ntoast .nbar .btn.sm { height: 28px; border-radius: 8px; flex: none; }
.ntoast .nbar.out { animation: ntOut .2s forwards; }
@keyframes ntIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes ntOut { to { opacity: 0; transform: translateX(16px); } }
@media (prefers-reduced-motion: reduce) { .ntoast .nbar, .ntoast .nbar.out { animation: none; } }
/* 列表搜索框右边：有人排队才出现"接入下一位"，右上角带排队人数 */
.clist-search #nextQueue { color: var(--p); background: var(--p-soft); }
.clist-search #nextQueue:hover { background: color-mix(in srgb, var(--p) 16%, var(--card)); }
.clist-search #nextQueue[hidden] { display: none; }
.clist-search #nextQueue::after { content: attr(data-n); position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--card); }
.clist-search #nextQueue[data-n=""]::after { display: none; }
/* 输入框工具栏：图标间距、大小、圆角和顶部按钮统一 */
.c-foot { gap: 4px; padding: 4px 10px 8px 10px; }
.c-foot > .icon-btn, .c-foot > label.icon-btn { width: 32px; height: 32px; border-radius: 9px; color: var(--ink-3); }
.c-foot > .icon-btn svg.i, .c-foot > label.icon-btn svg.i { width: 18px; height: 18px; }
.c-foot > .icon-btn:hover:not(:disabled), .c-foot > label.icon-btn:hover { background: var(--hover); color: var(--ink); }
.c-foot > .icon-btn.on { background: var(--p-soft); color: var(--p); }
.c-foot > .icon-btn.ai-draft { color: #7c5cf0; }
.c-foot #csend { height: 32px; border-radius: 9px; padding: 0 14px; }

/* ===== 简洁版（2026-11-17）：角色与权限 ===== */
.rl-wrap { grid-template-columns: 220px minmax(0, 760px); }
.rl-hd { padding: 18px 24px; }
.rl-sec { padding: 20px 24px; }
.pq-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
.pq { border: 0; border-radius: 0; background: transparent; overflow: visible; }
.pq-hd { display: flex; align-items: baseline; gap: 8px; min-height: 0; padding: 0 0 8px; background: transparent; border-bottom: 1px solid var(--line); }
.pq-hd b { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pq-n, .pq-n.on { font-size: 12px; color: var(--ink-3); background: none; border: 0; padding: 0; }
.pq-all { border: 0; background: none; padding: 0; font-size: 12.5px; color: var(--p); border-radius: 0; }
.pq-all:hover { color: var(--p-2); border: 0; text-decoration: underline; }
.pq-it { gap: 16px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.pq-body .pq-it:first-child { border-top: 0; }
.pq-it:hover { background: none; }
.pq-it .t { gap: 2px; }
.pq-it .t b, .pq-it:has(input:checked) .t b { font-size: 14px; font-weight: 500; color: var(--ink); }
.pq-it .t small { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.pq-it.dis { cursor: default; }
.pq-it.dis .t b { color: var(--ink-3); }
.pq-it.dis .switch { opacity: .45; }
.pq-it .t small .pq-off { display: inline; margin: 0 0 0 6px; }
.rl-note { background: none; padding: 0; }

/* ===== 简洁版（2026-11-17）：数据概览 ===== */
.ob-card { box-shadow: var(--shadow-s); padding: 12px 16px; }
.ob-hd { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0; }
.ob-hd b { font-size: 14px; font-weight: 600; }
.ob-cnt { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ob-hd .ob-bar { flex: none; width: 120px; max-width: none; margin: 0; }
.ob-next { font-size: 13px; color: var(--ink-3); margin-left: 8px; }
.ob-next b { font-size: 13px; font-weight: 500; color: var(--ink); }
.ob-steps { display: none; }
.ob-card.open .ob-steps { display: flex; flex-direction: column; margin-top: 12px; border-top: 1px solid var(--line); }
.ob-step, .ob-step.done { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-radius: 0; box-shadow: none; background: none; border-top: 1px solid var(--line-2); }
.ob-step:first-child { border-top: 0; }
.ob-step.done .ob-t b { text-decoration: none; color: var(--ink-3); font-weight: 500; }
.ob-n { width: 22px; height: 22px; font-size: 11.5px; font-weight: 600; }
.ob-t { flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ob-t b { font-size: 13.5px; font-weight: 500; }
.ob-t b em { font-style: normal; font-size: 11px; font-weight: 400; color: var(--ink-3); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-left: 6px; }
.ob-t span { font-size: 12.5px; }
.ob-step .ob-how { flex: none; font-size: 12.5px; color: var(--p); margin: 0; }
.ob-step .ob-how::after { content: " ↗"; font-size: 11px; }
.rt-k > em { min-height: 18px; }
/* 分组标题（所有设置页共用）：图标 + 加粗标题，和下面的设置项拉开层级；设置项缩进到标题文字对齐 */
.grp-ic { flex: none; width: 26px; height: 26px; border-radius: 7px; display: inline-grid; place-items: center; background: var(--p-soft); color: var(--p); align-self: center; }
.grp-ic svg.i { width: 15px; height: 15px; }
.pq-wrap { gap: 28px; }
.pq-hd { align-items: center; gap: 10px; padding: 0 0 10px; border-bottom: 0; }
.pq-hd b, .rl-sec-hd h3 { font-size: 15px; font-weight: 600; color: var(--ink); }
.pq-body { margin-left: 36px; border-top: 1px solid var(--line); }
.pq-body .pq-it:first-child { border-top: 0; }
.pq-it .t b, .pq-it:has(input:checked) .t b { font-weight: 400; color: var(--ink); }
.rl-sec-hd { gap: 10px; margin-bottom: 12px; }
.rl-sec-hd ~ .rl-row, .rl-sec-hd ~ .rl-mem, .rl-sec-hd ~ .rl-none { margin-left: 36px; }
.rl-sec-hd + .rl-row { border-top: 1px solid var(--line); }
/* ===== 简洁版：设置页分组卡片（.set-sec）统一 ===== */
/* 标题：图标 + 加粗标题，去掉左边竖条；可折叠的箭头放到最右 */
.set-sec.foldable > h3::before, .set-sec.foldable > .sec-hd h3::before { content: none; display: none; }
.set-sec > h3, .set-sec > .sec-hd h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink); margin: 0; }
.set-sec.foldable > h3::after { margin-left: auto; margin-right: 4px; }
.set-sec.foldable:hover > h3, .set-sec.foldable:hover > .sec-hd h3 { color: var(--ink); }
.set-sec.foldable:hover > h3 .grp-ic, .set-sec.foldable:hover > .sec-hd h3 .grp-ic { background: rgba(var(--p-rgb), .16); }
.set-sec { padding: 18px 22px 8px; }
.set-sec.folded { padding-bottom: 18px; }
/* 标题下的一句话、下面的设置项：缩进到和标题文字对齐 */
.set-sec.has-ic > .sub, .set-sec.has-ic > .sec-hd .sub { margin: 4px 0 10px 36px; }
.set-sec.has-ic.folded > .sub, .set-sec.has-ic.folded > .sec-hd .sub { margin-bottom: 0; }
.set-sec.has-ic:not(.sec-list):not(.sp-card) > :not(h3):not(.sec-hd):not(.sub) { margin-left: 36px; }
.set-sec.has-ic > h3 + .set-row, .set-sec.has-ic > .sub + .set-row { border-top: 1px solid var(--line); }
.set-row { padding: 13px 0; }
.set-row .t b { font-size: 14px; font-weight: 400; color: var(--ink); }
.set-row .t span { font-size: 12.5px; color: var(--ink-3); }
/* 标题右边有按钮的分组：折叠箭头也放到按钮前面的最右边 */
.set-sec.has-ic > .sec-hd { align-items: center; }
.set-sec.has-ic > .sec-hd > div:first-child { flex: 1; min-width: 0; }
.set-sec.foldable > .sec-hd > div:first-child > h3::after { margin-left: auto; margin-right: 4px; }
/* 网站设置的卡片：和其它设置页一样（图标 + 粗标题，不要灰底标题栏），标题下一条细线；内容不缩进（右边有预览，宽度要够） */
.sp-form .set-sec.sp-card { padding: 0 22px 8px; }
.sp-form .set-sec.sp-card > h3 { background: none; margin: 0 -22px; padding: 16px 22px 14px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; gap: 10px; }
.sp-form .set-sec.sp-card > h3:has(+ .sub) { padding-bottom: 0; border-bottom: 0; }
.sp-form .set-sec.sp-card > h3 + .sub { background: none; margin: 0 -22px 16px; padding: 4px 22px 14px 58px; border-bottom: 1px solid var(--line); }
.sp-form .set-sec.sp-card > h3:not(:has(+ .sub)) { margin-bottom: 16px; }
.sp-form .set-sec.sp-card.folded > h3, .sp-form .set-sec.sp-card.folded > h3 + .sub { border-bottom: 0; margin-bottom: 0; }
.sp-form .set-sec.sp-card.folded > h3:not(:has(+ .sub)) { padding-bottom: 16px; }
.sp-form .set-sec.sp-card.foldable > h3:hover { color: var(--ink); }
/* ===== 接线端顶部今日数据（4 种样式，后台选）=====
   text = 原来的"文字 + 数字"（沿用老样式）；icon / mini / stack = 浅底圆角条，和旁边铃声、搜索一样高 */
.wb-kpis:not(.st-text) { display: flex; align-items: center; height: 34px; padding: 0 4px; border-radius: 8px; background: var(--fill); }
.wb-kpis:not(.st-text) .wb-kpi { display: flex !important; align-items: center; gap: 5px; height: 34px; padding: 0 10px; border-left: 0; position: relative; font-size: 12px; color: var(--ink-3); }
.wb-kpis:not(.st-text) .wb-kpi + .wb-kpi::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 1px; background: var(--line); }
.wb-kpis:not(.st-text) .wb-kpi svg.i { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.wb-kpis:not(.st-text) .wb-kpi b { font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.wb-kpis:not(.st-text) .wb-kpi b small { font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.wb-kpi .kn { font-size: 12px; color: var(--ink-3); }
.wb-kpis.st-mini .wb-kpi { padding: 0 9px; }
/* 数字在上、名称在下 */
.wb-kpis.st-stack { height: 38px; }
.wb-kpis.st-stack .wb-kpi { flex-direction: column; justify-content: center; gap: 0; height: 38px; padding: 0 12px; line-height: 1.15; }
.wb-kpis.st-stack .wb-kpi + .wb-kpi::before { top: 10px; bottom: 10px; }
.wb-kpis.st-stack .wb-kpi b { font-size: 14.5px; }
.wb-kpis.st-stack .wb-kpi .kn { font-size: 11px; margin-top: 1px; }
/* 好 / 慢 / 太慢 的颜色（四种样式都用） */
.wb-kpi.good b, .wb-kpi.good svg.i { color: var(--ok) !important; }
.wb-kpi.warn b, .wb-kpi.warn svg.i, .wb-kpi.warn .kn { color: var(--warn) !important; }
.wb-kpi.bad b, .wb-kpi.bad svg.i, .wb-kpi.bad .kn { color: var(--bad) !important; }
.wb-kpi.bad b small, .wb-kpi.warn b small { color: inherit !important; opacity: .7; }
@media (max-width: 1200px) { .wb-kpis.st-icon .wb-kpi { padding: 0 8px; } .wb-kpis.st-icon .wb-kpi .kn { display: none; } }
/* ===== 简洁版：平台控制台的分组（.cx-sec h4）和卡片标题（.cx-sec-hd h4）===== */
.cx-sec.foldable > h4::before { content: none; display: none; }
.cx-sec > h4 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.cx-sec.foldable > h4::after { margin-left: auto; margin-right: 4px; }
.cx-sec.foldable:hover > h4 { color: var(--ink); }
.cx-sec.has-ic > :not(h4) { margin-left: 36px; }
.cx-sec.has-ic.folded > h4 { margin-bottom: 0; }
.cx-card .cx-sec-hd h4 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.cx-card .cx-sec-hd h4:has(.grp-ic) + p, .cx-card .cx-sec-hd h4:has(.grp-ic) + .muted { margin-left: 36px; }
/* 开关：整条胶囊形（两头全圆，圆钮和两头同心、四周留一样的空），开着是主题色、关着浅灰 */
.switch { width: 44px; height: 26px; }
.switch i { border-radius: 999px; background: var(--gray-2, #cfd4dc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
.switch i::after { left: 3px; top: 3px; width: 20px; height: 20px; box-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .08); }
.switch input:checked + i { background: var(--p); box-shadow: none; }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:disabled + i { opacity: .5; }
.switch.sm { width: 36px; height: 22px; }
.switch.sm i::after { width: 16px; height: 16px; }
.switch.sm input:checked + i::after { transform: translateX(14px); }
/* 网站页：删除网站 */
.sp-del { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--bad) 25%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--bad) 4%, var(--card)); }
.sp-del b { display: block; font-size: 13.5px; }
.sp-del span { font-size: 12.5px; color: var(--muted); }
.del-site-bd ul { margin: 0 0 14px; padding-left: 18px; color: var(--text-2, var(--muted)); font-size: 13px; line-height: 1.8; }
.del-site-bd .lbl b { color: var(--bad); }
/* ===== 设置页层级清晰版（11-18）=====
   一个分组 = 一张卡片：标题栏用浅主题色底 + 深主题色字 + 实心图标，和卡片里的小标签（顶部颜色、卡片样式…）一眼分开；
   标题栏滚动时钉在顶上，长分组（内容卡片等）滚到中间也知道在哪一组；分组说明放到标题同一行，少占一行 */
.set-sec { --hd-bg: color-mix(in srgb, var(--p) 6%, var(--card)); --hd-ink: color-mix(in srgb, var(--p) 72%, var(--ink)); --hd-line: color-mix(in srgb, var(--p) 16%, var(--line)); }
.set-sec, .sp-form .set-sec.sp-card { padding: 0 22px 10px; border: 1px solid var(--line); border-radius: 10px; box-shadow: none; background: var(--card); overflow: visible; margin-bottom: 18px; }
.set-sec > h3, .sp-form .set-sec.sp-card > h3, .set-sec > .sec-hd { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; margin: 0 -22px 14px; padding: 13px 22px; background: var(--hd-bg); border-bottom: 1px solid var(--hd-line); border-radius: 9px 9px 0 0; font-size: 15.5px; font-weight: 600; color: var(--hd-ink); }
.set-sec > .sec-hd h3 { color: var(--hd-ink); font-size: 15.5px; }
.set-sec > h3 .grp-ic, .set-sec > .sec-hd h3 .grp-ic { background: var(--p); color: #fff; width: 26px; height: 26px; }
.set-sec > .sec-hd h3 .grp-ic svg { color: inherit; }   /* 11-18 老规则 .sec-hd h3 svg 把图标染成浅蓝，压在蓝底上看不清（运行状态/提示音/数据备份/当前登录/登录记录） */
.set-sec.foldable:hover > h3 .grp-ic, .set-sec.foldable:hover > .sec-hd h3 .grp-ic { background: color-mix(in srgb, var(--p) 84%, #000); }   /* 悬停加深一点；以前用 --p-2，深色主题下它更浅，白线看不清 */
.set-sec.foldable:hover > h3, .set-sec.foldable > h3:hover, .sp-form .set-sec.sp-card.foldable > h3:hover { color: var(--hd-ink); background: color-mix(in srgb, var(--p) 9%, var(--card)); }
.set-sec.foldable > h3::after { border-color: var(--hd-ink); opacity: .7; }
/* 分组说明：标题右边一行小字 */
.set-sec > h3 .h-sub { flex: 1; min-width: 0; margin-left: 4px; font-size: 12.5px; font-weight: 400; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-sec > .sub, .sp-form .set-sec.sp-card > h3 + .sub, .set-sec.has-ic > .sub { margin: -4px 0 12px; padding: 0; background: none; border: 0; font-size: 12.5px; color: var(--ink-3); }
.sp-form .set-sec.sp-card > h3:has(+ .sub) { padding-bottom: 13px; border-bottom: 1px solid var(--hd-line); margin-bottom: 14px; }
/* 收起：只剩标题栏，四角都圆 */
.set-sec.folded, .sp-form .set-sec.sp-card.folded { padding-bottom: 0; }
.set-sec.folded > h3, .set-sec.folded > .sec-hd, .sp-form .set-sec.sp-card.folded > h3, .sp-form .set-sec.sp-card.folded > h3:not(:has(+ .sub)) { margin-bottom: 0; border-bottom: 0; border-radius: 9px; padding-bottom: 13px; position: static; }
/* 内容不再整体缩进（标题栏已经分得开），宽度多出来 */
.set-sec.has-ic:not(.sec-list):not(.sp-card) > :not(h3):not(.sec-hd):not(.sub) { margin-left: 0; }
.set-sec.has-ic > .sub, .set-sec.has-ic > .sec-hd .sub { margin-left: 0; }
.set-sec > h3 + .set-row, .set-sec > .sub + .set-row, .set-sec.has-ic > h3 + .set-row, .set-sec.has-ic > .sub + .set-row, .sp-form .set-sec.sp-card > .set-row:first-of-type { border-top: 0; padding-top: 4px; }
/* 设置项的说明、输入框下的提示：小一号、浅一点，不和设置名抢 */
.set-row .t b { font-size: 14px; font-weight: 500; }
.set-row .t span { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.field .hint { font-size: 12px; color: var(--ink-3); }
/* 卡片里的小标签（顶部颜色、卡片样式、选一个模板…）：灰色小字，明显比分组标题低一级 */
.set-sec .lbl, .set-sec .lbl2 { font-size: 13px; font-weight: 500; color: var(--ink-2); }
/* 网站设置：右边内容区顶部那个大标题和上面页头重复，去掉 */
.sp-form .sp-sec-hd { display: none; }
.sp-form { padding-top: 18px; }
.sec-list.set-sec .tb { margin: 0 -22px; width: calc(100% + 44px); }
/* 钉住的标题栏贴住滚动区最上沿（滚动区自己有上内边距，不然上面会露出一条内容） */
.sp-form { --sc-pad: 18px; }
.page { --sc-pad: 22px; }
.set-sec > h3, .sp-form .set-sec.sp-card > h3, .set-sec > .sec-hd { top: calc(-1 * var(--sc-pad, 0px)); }
/* 标题右边带按钮/开关的分组：一行排好（标题 · 说明 · 箭头 · 按钮） */
.set-sec > .sec-hd { display: flex; align-items: center; gap: 12px; }
.set-sec > .sec-hd > div:first-child > h3 { display: flex; align-items: center; gap: 10px; margin: 0; }
.set-sec > .sec-hd .h-sub { flex: 1; min-width: 0; margin-left: 4px; font-size: 12.5px; font-weight: 400; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-sec > .sec-hd > div:first-child > .sub { margin: 4px 0 0 36px; font-size: 12.5px; color: var(--ink-3); }
/* 分组标题统一用深主题色（压过前面几版 .set-sec.foldable > h3 的黑色） */
.set-sec.foldable > h3, .set-sec.foldable > .sec-hd h3, .set-sec.has-ic > h3, .set-sec.has-ic > .sec-hd h3, .set-sec > .sec-hd > div:first-child > h3 { color: var(--hd-ink); }
.set-sec.foldable:hover > h3, .set-sec.foldable:hover > .sec-hd h3 { color: var(--hd-ink); }
.set-sec > .sec-hd > div:first-child > .sub, .set-sec > .sec-hd .sub { font-weight: 400; color: var(--ink-3); font-size: 12.5px; }

/* 11-19 系统设置 → 服务商技术支持（授权才能进后台） */
#supSec .sup-row { align-items: center; }
#supSec .sup-on { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); }
#supSec .sup-on svg { width: 15px; height: 15px; }
#supSec .sup-off { color: var(--ink-2); }
#supSec .sup-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
#supSec .sup-logs { margin-top: 6px; border-top: 1px solid var(--line-2); padding-top: 8px; max-height: 220px; overflow: auto; }
#supSec .sup-log { display: grid; grid-template-columns: 150px 1fr; gap: 10px; font-size: 12.5px; padding: 4px 0; }
#supSec .sup-empty { font-size: 12.5px; margin: 8px 0 0; }

/* 11-19 客服管理"分组 / 接待网站"列：每行前面写清楚是分组还是"只接"哪些网站（以前两行长得一样，容易看混） */
.ag-cell-row { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.ag-cell-lbl { font-size: 11.5px; color: var(--ink-3); min-width: 28px; margin-right: 2px; }
#supSec .sup-in { display: inline-block; margin-left: 8px; font-style: normal; font-size: 12px; color: var(--warn); background: var(--warn-soft); padding: 1px 7px; border-radius: 10px; }

/* 11-19 接线端在别处登录、这里已退出：通知卡片（不是报错，用提醒色） */
.lg-out { display: flex; gap: 10px; align-items: flex-start; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 28%, transparent); border-radius: 8px; padding: 11px 13px; margin-bottom: 16px; }
.lg-out > svg { width: 18px; height: 18px; color: var(--warn); flex: none; margin-top: 1px; }
.lg-out b { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 3px; }
.lg-out span { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 5px; word-break: break-all; }
.lg-out small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.55; }

/* 11-20 金额：币种小一号灰色、数字加粗；套餐价格、合计、下次扣款用主题蓝 */
.mny { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.mny i, .pp-price i { font-style: normal; font-size: .8em; font-weight: 600; color: var(--ink-3); margin-right: 2px; letter-spacing: .02em; }
.pp-price { color: var(--p); }
.pp-plan:not(.on) .pp-price { color: var(--ink); }
.pp-sum b.pp-total .mny { color: var(--p); font-size: 24px; }
.bl-next .mny { color: var(--p); }
.bl-bill .a .mny { font-size: 14px; }

/* 11-20 顶部颜色"自定义" */
.hs-custom { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hs-custom .hs-colors { margin: 0; }
.hs-custom .hs-hex { width: 110px; font-family: ui-monospace, Menlo, Consolas, monospace; text-transform: lowercase; }
.hs-custom .hs-hex.bad { border-color: var(--bad); }
.hs-custom .hs-tip { font-size: 12px; color: var(--ink-3); }
.hs-opt.s-custom i { background: conic-gradient(#ef4444, #f59e0b, #22c55e, #06b6d4, #6366f1, #d946ef, #ef4444); }

/* 11-20 网站列表自动更新时不再重播卡片进场动画 */
.site-grid.quiet .site-card { animation: none; }

/* 11-20 预览下面的说明（比如 询前表单已关闭） */
.sp-prev-note { display: flex; gap: 6px; align-items: flex-start; margin: 10px auto 0; max-width: 380px; padding: 8px 12px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); font-size: 12.5px; line-height: 1.5; }
.sp-prev-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.sp-prev-note[hidden] { display: none; }

/* 11-20 历史记录：改过的筛选项蓝色突出；恢复默认按钮 */
.select.flt-on { border-color: var(--p); background-color: var(--p-soft); color: var(--p); font-weight: 600; box-shadow: 0 0 0 1px var(--p) inset; }
.input-icon.flt-on .input { border-color: var(--p); background: var(--p-soft); box-shadow: 0 0 0 1px var(--p) inset; }
.input-icon.flt-on > svg { color: var(--p); }
.h-reset { color: var(--p); border-color: color-mix(in srgb, var(--p) 40%, var(--line)); }

/* 11-20 内容卡片：粘贴 HTML 的编辑器 */
.ce-modes { margin: 4px 0 14px; }
.ce-modes button svg { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.rte { border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.rte:focus-within { border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 14%, transparent); }
.rte-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--line-2); background: var(--fill); }
.rte-b { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 6px; border: 0; border-radius: 6px; background: none; color: var(--ink); font-size: 15px; cursor: pointer; }
.rte-b:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.rte-b.on { background: var(--p-soft); color: var(--p); }
.rte-b svg { width: 18px; height: 18px; }
.rte-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.rte-sel { height: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); font-size: 13px; padding: 0 6px; margin: 0 2px; }
.rte-col { flex-direction: column; gap: 1px; padding-top: 2px; }
.rte-col .rte-a { font-size: 15px; line-height: 1; } .rte-col .rte-hl { background: #fff3bf; padding: 0 2px; border-radius: 2px; }
.rte-col i { display: block; width: 16px; height: 3px; border-radius: 2px; }
.rte-col input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rte-ul, .rte-al { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }
.rte-ul i, .rte-al i { display: block; height: 2px; background: currentColor; border-radius: 1px; }
.rte-ul i { margin-left: 5px; box-shadow: -5px 0 0 -0.5px currentColor; }
.rte-al i:nth-child(2) { width: 70%; } .rte-al.c { align-items: center; } .rte-al.r { align-items: flex-end; }
.rte-ol { font-size: 8px; line-height: 1.05; font-weight: 700; text-align: left; }
.rte-hr { display: block; width: 16px; height: 2px; background: currentColor; }
.rte-clr { font-size: 14px; font-weight: 600; } .rte-clr sub { font-size: 9px; color: var(--bad); }
.rte-view, .rte-code { display: block; width: 100%; min-height: 220px; max-height: 460px; overflow: auto; padding: 14px 16px; border: 0; outline: none; }
.rte-view[hidden], .rte-code[hidden] { display: none; }
.rte-view:empty::before { content: attr(data-ph); color: var(--ink-3); }
.rte-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.6; resize: vertical; background: #0f172a; color: #e2e8f0; }
.rte-coding .rte-bar .rte-b:not([data-rc="code"]):not([data-rc="fmt"]), .rte-coding .rte-bar .rte-sel { opacity: .35; pointer-events: none; }
.rte-warn { padding: 8px 14px; background: var(--warn-soft); color: var(--warn); font-size: 12.5px; border-top: 1px solid var(--line-2); }
.rte-warn[hidden] { display: none; }
.rte-warn div { display: flex; gap: 6px; align-items: center; padding: 2px 0; } .rte-warn svg { width: 14px; height: 14px; flex: none; }
.rte-tip { padding: 8px 14px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line-2); }
/* 编辑框里的内容和访客窗口里显示的一样 */
.rte-view.lxc-html { font-size: 14px; line-height: 1.65; color: #1f2937; background: #fff; }
.lxc-html img { max-width: 100%; height: auto; }
.lxc-html p { margin: 0 0 8px; } .lxc-html ul, .lxc-html ol { padding-left: 20px; margin: 4px 0 8px; }
.lxc-html table { border-collapse: collapse; max-width: 100%; } .lxc-html td, .lxc-html th { border: 1px solid #e5e7eb; padding: 4px 8px; }
.lxc-html hr { border: 0; border-top: 1px solid #e5e7eb; margin: 10px 0; }
/* 11-21 历史记录：进行中的会话时长显示到现在为止的时间（浅一点，和已结束的区分开） */
.hist-tb .dur-live { color: var(--ok); }
.hist-tb .dur-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: 1px; }
.hd-fact b:last-child { padding-right: 9px; }   /* 没有复制按钮时字别贴边 */

/* ---------- 11-21 头像菜单里的"设置"面板：左边四类，右边每项一行 ---------- */
.modal.ms-modal { width: min(760px, calc(100vw - 32px)); max-width: none; }
.modal.ms-modal .modal-bd { padding: 0; }
.ms { display: grid; grid-template-columns: 176px minmax(0, 1fr); min-height: 420px; max-height: min(600px, calc(100vh - 160px)); }
.ms-nav { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-right: 1px solid var(--line-2); background: var(--fill); border-radius: 0 0 0 12px; }
.ms-cat { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.ms-cat svg.i { width: 16px; height: 16px; color: var(--ink-3); flex: none; transition: color .15s; }
.ms-cat > span { flex: 1; min-width: 0; }
.ms-cat:hover { background: var(--hover); color: var(--ink); }
.ms-cat.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 0 0 1px var(--line); }
.ms-cat.on svg.i { color: var(--p); }
.ms-cat:focus-visible, .ms-row:focus-visible { outline: 2px solid var(--p); outline-offset: -2px; }
.ms-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex: none; }
.ms-list { padding: 8px 12px 12px; overflow-y: auto; min-width: 0; }
.ms-list.ms-in { animation: msIn .22s var(--ease); }
@keyframes msIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ms-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .14s; }
.ms-row + .ms-row { box-shadow: 0 -1px 0 var(--line-2); }
button.ms-row:hover { background: var(--hover); box-shadow: none; }
button.ms-row:hover + .ms-row { box-shadow: none; }
.ms-row.ms-static { cursor: default; }
.ms-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--fill); display: grid; place-items: center; flex: none; color: var(--ink-2); }
.ms-ic svg.i { width: 17px; height: 17px; }
.ms-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ms-t b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-t small { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.ms-r { flex: none; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.ms-r.warn { color: var(--warn); font-weight: 500; }
.ms-go { flex: none; display: grid; place-items: center; color: var(--ink-4); transition: transform .16s var(--ease), color .14s; }
.ms-go svg.i { width: 15px; height: 15px; }
button.ms-row:hover .ms-go { transform: translateX(2px); color: var(--ink-2); }
.ms-seg { flex: none; }
.ms-seg button { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ms-seg .ac-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
@media (max-width: 720px) { .ms { grid-template-columns: 1fr; max-height: none; } .ms-nav { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; } .ms-row.ms-static { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .ms-list.ms-in { animation: none; } }
.modal.ms-modal { padding-bottom: 0; overflow: hidden; }
.modal.ms-modal .ms-nav { border-radius: 0; }

/* ---------- 11-22 自动翻译 ---------- */
.bb-tr { margin-top: 3px; padding: 5px 10px 6px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink-2); font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; max-width: 100%; }
.bb-tr-l { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 4px; font-size: 11px; line-height: 16px; color: var(--p); background: var(--p-soft); vertical-align: 1px; white-space: nowrap; }
.bb-tr.orig .bb-tr-l { color: var(--ink-3); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.bb-tr a { color: var(--p); }
.m.sending .bb-tr { opacity: .65; }
.c-tabs .c-sp { flex: 1; }
.tr-chip-w { display: inline-flex; align-items: center; gap: 1px; white-space: nowrap; }
.tr-chip, .tr-chip-l { border: 0; background: none; height: 26px; border-radius: 8px; font-size: 12.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.tr-chip { padding: 0 8px; }
.tr-chip-l { padding: 0 4px; }
.tr-chip svg.i, .tr-chip-l svg.i { width: 14px; height: 14px; }
.tr-chip:hover, .tr-chip-l:hover { background: var(--bg); color: var(--ink); }
.tr-chip em { font-style: normal; color: var(--ink-4); }
.tr-chip.on { color: var(--p); background: var(--p-soft); }
.tr-chip.on b { font-weight: 600; }
.trpv { margin: 4px 10px 2px; border: 1px solid color-mix(in srgb, var(--p) 35%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--p) 4%, var(--card)); overflow: hidden; }
.trpv[hidden] { display: none; }
.trpv-hd { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; font-size: 12.5px; color: var(--ink-2); min-height: 34px; }
.trpv-hd > svg.i { width: 15px; height: 15px; color: var(--p); flex: none; }
.trpv-hd b { color: var(--ink); white-space: nowrap; }
.trpv-hd .muted { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.trpv-hd .c-sp, .trpv-ft .c-sp { flex: 1; }
.trpv-hd .icon-btn { width: 24px; height: 24px; flex: none; }
.trpv-hd .icon-btn svg.i { width: 14px; height: 14px; }
.trpv.err { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: var(--bad-soft); }
.trpv.err .trpv-hd { color: var(--bad); flex-wrap: wrap; }
.trpv.err .trpv-hd > svg.i { color: var(--bad); }
.trpv-spin { width: 13px; height: 13px; border: 2px solid var(--p); border-right-color: transparent; border-radius: 50%; animation: rot .7s linear infinite; flex: none; }
#trText { display: block; width: 100%; border: 0; border-top: 1px dashed color-mix(in srgb, var(--p) 30%, var(--line)); background: transparent; padding: 8px 10px; font: inherit; font-size: 14px; line-height: 1.6; color: var(--ink); resize: none; outline: none; min-height: 38px; }
.trpv-ft { display: flex; align-items: center; gap: 8px; padding: 0 8px 7px 10px; font-size: 12px; }
.cx-unit { display: flex; align-items: center; gap: 8px; }
.cx-unit > .input { flex: 1; min-width: 0; }
.cx-unit > span { color: var(--ink-3); font-size: 13px; white-space: nowrap; }

/* AI 设置：用哪家、选模型 */
.ai-pv { max-width: 420px; }
.ai-model { display: flex; gap: 8px; }
.ai-model .input { flex: 1; min-width: 0; }
.ai-model .btn { flex: none; }

/* 渠道接入：WhatsApp / Messenger / LINE 的标记和设置页 */
.ch-chip.wa { background: #e4f6ea; color: #128c4a; }
.ch-chip.fb { background: #e6effe; color: #0866ff; }
.ch-chip.ln { background: #e3f7e8; color: #05a548; }
[data-theme="dark"] .ch-chip.wa, [data-theme="dark"] .ch-chip.ln { background: rgba(37, 211, 102, .16); color: #4ddb86; }
[data-theme="dark"] .ch-chip.fb { background: rgba(8, 102, 255, .2); color: #7fb0ff; }
.oa-tabs button i.ch-on { min-width: 0; width: 7px; height: 7px; padding: 0; border-radius: 50%; background: var(--ok); display: inline-block; margin-left: 6px; vertical-align: 1px; }
.ch-copy { display: flex; align-items: center; gap: 8px; }
.ch-copy code { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--fill); font-size: 12.5px; overflow-wrap: anywhere; user-select: all; }
.ch-copy .btn { flex: none; }
.ch-link { margin: 2px 0 4px; }
.ch-note { margin-top: 10px; }
.ch-ok { color: var(--ok); font-weight: 600; }
.sec-hd h3 .ch-ic svg { color: inherit; }
.ch-ic.wa { color: #1fab58; } .ch-ic.fb { color: #0866ff; } .ch-ic.ln { color: #06b34f; }

/* 安装页：建站平台（WordPress / Shopify） */
.plat-seg { margin-bottom: 14px; }
.plat-code { word-break: normal; padding-right: 84px; }
.plat-code pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; color: #d6d8f5; }

/* 邮件渠道 */
.ch-chip.em { background: #fdf0e3; color: #b8621b; }
[data-theme="dark"] .ch-chip.em { background: rgba(240, 150, 60, .18); color: #f0a560; }
.ch-ic.em { color: #d97a1f; }
.em-srv { display: grid; grid-template-columns: minmax(0, 1fr) 110px 200px; gap: 12px; align-items: start; max-width: 760px; }
@media (max-width: 760px) { .em-srv { grid-template-columns: 1fr 90px; } .em-srv > :nth-child(3) { grid-column: 1 / -1; } }

/* 调整套餐 / 坐席：现在、调整后、今天要付多少，三行对着看 */
.pp-sum > .pp-cmp { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 14px; align-items: baseline; justify-content: stretch; font-size: 13.5px; }
.pp-cmp > span:nth-child(3n+1) { color: var(--ink-3); white-space: nowrap; }
.pp-cmp > span:nth-child(3n) { text-align: right; white-space: nowrap; color: var(--ink-2); }
.pp-cmp .mny { font-weight: 600; color: var(--ink); }
.pp-due { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.pp-due > span { font-size: 14px; font-weight: 600; color: var(--ink); }
.pp-due > span small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.pp-due > b { font-size: 24px; white-space: nowrap; }
.pp-due > b .mny { color: var(--p); }
.pp-due > b.none { font-size: 16px; color: var(--ok); }
.pp-due > b.wait { font-size: 13px; font-weight: 400; color: var(--ink-3); }

/* AI 设置里一项一个开关：左边名字和一句说明，右边开关 */
.ai-sw { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.ai-sw .t { min-width: 0; } .ai-sw .t b { display: block; font-size: 13.5px; font-weight: 600; }
.ai-sw .t span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.5; }
.ai-sw .switch { flex: none; }

/* AI 先接：会话列表里的"AI 接待中"标记 */
.replied-tag.aihold { background: var(--p-soft); color: var(--p); }

/* 网站设置：按钮式引导的编辑器 */
.fl-wrap.dim { opacity: .55; }
.fl-list { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 12px; }
.fl-row { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--card); display: flex; flex-direction: column; gap: 8px; }
.fl-row.child { background: var(--fill); }
.fl-hd { display: flex; align-items: center; gap: 6px; }
.fl-hd > .input:first-child { flex: 1; min-width: 0; }
.fl-hd > select.input { flex: none; width: 150px; }
.fl-hd [data-fa="up"] svg { transform: rotate(180deg); }
.fl-kids { display: flex; flex-direction: column; gap: 8px; padding-left: 14px; border-left: 2px solid var(--line); }
.fl-kids > .btn { align-self: flex-start; }
.fl-hint, .fl-empty { font-size: 12.5px; color: var(--ink-3); }
.fl-empty { padding: 14px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; }

/* ---------- 11-23 代码编辑框（codeed.js）：行号 + 语法颜色。问候内容的 HTML 代码、自定义 CSS 共用 ---------- */
.lxce { background: var(--card); }
.lxce[hidden] { display: none; }
.lxce-sc { display: flex; align-items: stretch; min-height: 200px; max-height: 460px; overflow: auto; font: 12.5px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.lxce-gut { flex: none; min-width: 40px; padding: 12px 8px 12px 6px; text-align: right; color: var(--ink-4); background: var(--fill); border-right: 1px solid var(--line-2); user-select: none; position: sticky; left: 0; z-index: 1; font-size: 11.5px; }
.lxce-gut > div { line-height: inherit; }
.lxce-main { position: relative; flex: 1; min-width: 0; }
.lxce-hl, .lxce textarea.lxce-ta { margin: 0; padding: 12px 14px; font: inherit; letter-spacing: 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; tab-size: 2; box-sizing: border-box; }
.lxce-hl { min-height: 100%; color: var(--ink); pointer-events: none; }
.lxce-hl.lxce-empty { visibility: hidden; }
.lxce textarea.lxce-ta { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; border: 0; outline: 0; resize: none; overflow: hidden; background: transparent; color: transparent; caret-color: var(--ink); box-shadow: none; border-radius: 0; }
.lxce textarea.lxce-ta::placeholder { color: var(--ink-4); }
.lxce textarea.lxce-ta::selection { background: rgba(36, 86, 232, .22); color: transparent; }
.lxce:focus-within .lxce-gut { color: var(--ink-3); }
.lxce-t { color: #15803d; } .lxce-a { color: #1d4ed8; } .lxce-v { color: #b45309; } .lxce-c { color: var(--ink-3); font-style: italic; } .lxce-k { color: #7c3aed; } .lxce-p { color: var(--ink-3); }
.rte .rte-b[data-rc="fmt"] { width: auto; padding: 0 9px; font-size: 12px; display: none; }
.rte-coding .rte-b[data-rc="fmt"] { display: inline-flex; }
.rte .lxce { border-top: 1px solid var(--line-2); }
.rte-tb { display: inline-grid; grid-template-columns: 6px 6px; gap: 1.5px; } .rte-tb i { width: 6px; height: 5px; border: 1.2px solid currentColor; border-radius: 1px; box-sizing: border-box; }
.rte-ind { display: inline-flex; align-items: center; gap: 2px; font-size: 10px; line-height: 1; } .rte-ind span { display: inline-grid; gap: 2px; } .rte-ind span i { display: block; width: 9px; height: 1.5px; background: currentColor; border-radius: 1px; }

/* ---------- 11-23 客服状态页样子重做（数据和功能不变） ---------- */
.ab-sum { gap: 14px; margin-bottom: 16px; }
.ab-kpi { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; position: relative; overflow: hidden; }
.ab-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; }
.ab-ic svg { width: 21px; height: 21px; }
.ab-ic.c-g { background: rgba(22, 163, 74, .12); color: #16a34a; } .ab-ic.c-b { background: rgba(36, 86, 232, .1); color: #2456e8; }
.ab-ic.c-n { background: var(--fill); color: var(--ink-3); } .ab-ic.c-r { background: rgba(217, 45, 32, .1); color: #d92d20; } .ab-ic.c-p { background: rgba(124, 58, 237, .1); color: #7c3aed; }
.ab-kb { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ab-kb > span { font-size: 12.5px; color: var(--ink-3); }
.ab-kb > b { font-size: 26px; font-weight: 650; line-height: 1.25; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ab-kb > b small { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.ab-kb > em { font-style: normal; font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ab-split { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; display: flex; background: var(--line-2); }
.ab-split i { display: block; height: 100%; } .ab-split .s-online { background: #22c55e; } .ab-split .s-busy { background: #f59e0b; } .ab-split .s-away { background: #a8afbb; }
#abTable.table-card { border-radius: 12px; }
.ab-tb th { padding: 10px 16px; font-size: 12px; }
.ab-tb td { padding: 9px 16px; font-size: 13.5px; }
.ab-tb tbody tr:hover td { background: var(--fill-2); }
.ab-tb tbody tr:last-child td { border-bottom: 0; }
.ab-tb td .user b { font-weight: 600; font-size: 13.5px; } .ab-tb td .user small { font-size: 11.5px; }
.ab-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 8px; border-radius: 11px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--fill); color: var(--ink-3); }
.ab-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ab-pill.s-online { background: rgba(22, 163, 74, .1); color: #15803d; } .ab-pill.s-busy { background: rgba(245, 158, 11, .14); color: #b45309; } .ab-pill.s-away { background: var(--fill); color: var(--ink-2); }
.ab-load { display: flex; align-items: center; gap: 0; width: auto; white-space: nowrap; }
.ab-load b { font-size: 14px; font-weight: 600; min-width: 14px; text-align: right; }
.ab-load small { margin-right: 10px; min-width: 26px; }
.ab-load .bar { width: 84px; height: 5px; border-radius: 3px; margin-top: 0; flex: none; }
.ab-load .bar i { border-radius: 3px; }
.ab-shift { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ab-tb .ab-from { display: inline; margin-left: 8px; font-size: 12px; white-space: nowrap; }
.ab-tb tr.ab-off td .avatar, .ab-tb tr.ab-off td .user img { filter: grayscale(1); opacity: .7; }
.ab-note { border-top: 1px solid var(--line-2); }

/* 11-23 问候内容：编辑方式 + 套用模板 / 插入动态信息 */
.ce-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ce-top .ce-modes { margin: 0; }
.ce-tools { display: inline-flex; gap: 8px; margin-left: auto; }
.ce-tools[hidden] { display: none; }

/* 11-23 分组与路由：每位客服一行的自动分配 / 最大接待 */
.rt-tb td { padding: 8px 14px; }
.rt-cell { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.rt-src { font-size: 12px; color: var(--ink-4); background: none; border: 0; padding: 0; }
button.rt-src.own { color: var(--p); cursor: pointer; }
button.rt-src.own:hover { text-decoration: underline; }

/* 11-23 字段表：询前表单加表头；留言表单的字段用同一种表（字段 / 显示 / 必填） */
.pc-row.pc-hd { background: none; padding: 0 10px 2px; margin-bottom: 4px; font-size: 12px; color: var(--ink-3); }
.fd-tb { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 6px; }
.fd-row { display: grid; grid-template-columns: 1fr 76px 76px; align-items: center; gap: 8px; padding: 10px 14px; }
.fd-row + .fd-row { border-top: 1px solid var(--line-2); }
.fd-row.fd-hd { background: var(--fill); font-size: 12px; color: var(--ink-3); padding: 8px 14px; }
.fd-n { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .fd-n b { font-weight: 550; font-size: 13.5px; } .fd-n small { font-size: 12px; color: var(--ink-3); }
.fd-c { display: flex; justify-content: center; }

/* 11-23 网站设置单项页面：功能总开关在标题旁边 */
.so-master { margin-left: 14px; vertical-align: middle; }
.so-ms { margin-left: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); vertical-align: middle; }
.so-ms.on { color: #16a34a; }
#sf.one-sec .set-row.so-mastered { display: none; }

/* 11-23 左侧分类：开着的功能后面写“已开启”（以前是一个没说明的绿点） */
.st-ontx { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 500; color: #16a34a; background: rgba(22, 163, 74, .1); border-radius: 9px; padding: 1px 7px; white-space: nowrap; }

/* 11-23 第 2–5 个账号窗口：左下角的角标和登录页的说明用这个窗口的颜色（和标签页图标、桌面版任务栏图标同一个颜色） */
html[data-slot] .rail-slot { background: var(--slot-c); color: #fff; }
html[data-slot] .lg-slot { border-left: 3px solid var(--slot-c); }
html[data-slot] .lg-slot svg.i { color: var(--slot-c); }
html[data-slot] .rail { box-shadow: inset 0 3px 0 var(--slot-c); }

/* 11-23 列表里：同事转给本组、等着接入的会话 */
.replied-tag.xfer { background: var(--warn-soft, #fff4e0); color: var(--warn, #b45309); }

/* 11-23 提醒检测里的说明项（不是出了问题，只是程序检测不到，要自己看一眼） */
.rmk-row.tip .rmk-ic { background: var(--fill); color: var(--ink-3); }

/* 11-23 分组与路由 → 每位客服：表上方"一次改全部客服" */
#rtBulk.rt-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 12px 16px; margin: 0 16px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft, var(--card)); font-size: 13px; }
.rt-bulk-t { font-weight: 600; }
.rt-bulk-g { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.rt-bulk-n { color: var(--ink-3); font-size: 12.5px; flex-basis: 100%; }

/* 11-23 路由规则对某个网站不生效的提示（规则列表里、网站设置 → 接待客服里） */
.rule-dead { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; padding: 6px 10px; border-radius: 6px; background: var(--warn-soft, #fff4e0); color: var(--warn, #b45309); font-size: 12.5px; line-height: 1.5; }
.rule-dead > svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.rule-dead.in-site { margin-top: 12px; }
.rule-dead a { color: inherit; text-decoration: underline; }

/* 11-23 询前表单字段：按住小点拖动调整顺序 */
.pc-row { grid-template-columns: 44px 70px 1fr auto 30px; }
.pc-move { flex-direction: row; align-items: center; gap: 4px; }
.pc-arrows { display: flex; flex-direction: column; }
.pc-grip { display: flex; align-items: center; justify-content: center; width: 16px; height: 30px; cursor: grab; color: var(--ink-4); touch-action: none; border-radius: 4px; }
.pc-grip:hover { color: var(--ink-2); background: var(--line); }
.pc-grip svg { fill: currentColor; }
.pc-row.dragging { position: relative; z-index: 3; background: var(--card); outline: 1.5px solid var(--p); box-shadow: 0 10px 28px rgba(16,24,40,.18); }   /* 拖着的那一行：不透明、带蓝边，盖在别的行上面看得清 */
.pc-row.dragging .pc-grip { cursor: grabbing; }
.pc-row.drop-before { box-shadow: 0 -3px 0 var(--p); }
.pc-row.drop-after { box-shadow: 0 3px 0 var(--p); }

/* 11-23 接线端"全部 / 已结束"：按客服、按分组筛选 */
.cl-watch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 12px 8px; border-bottom: 1px solid var(--line); }
.cl-watch[hidden] { display: none; }
.cw-btn { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); color: var(--ink-2); font-size: 12.5px; cursor: pointer; }
.cw-btn:hover, .cw-btn.on { border-color: var(--p); color: var(--p); }
.cw-btn svg { width: 14px; height: 14px; }
.cw-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 4px 0 9px; border-radius: 13px; background: var(--p-soft); color: var(--p); font-size: 12.5px; max-width: 150px; }
.cw-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-chip > i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.cw-chip > svg { width: 12px; height: 12px; flex: none; }
.cw-chip button { display: grid; place-items: center; width: 18px; height: 18px; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; flex: none; }
.cw-chip button:hover { background: color-mix(in srgb, var(--p) 18%, transparent); }
.cw-chip button svg { width: 11px; height: 11px; }
.cw-clear { border: 0; background: none; color: var(--ink-3); font-size: 12.5px; cursor: pointer; padding: 0 4px; }
.cw-clear:hover { color: var(--bad); }
.cw-sec { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); margin: 4px 0 8px; }
.cw-groups { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cw-g { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 13px; cursor: pointer; }
.cw-g i { width: 8px; height: 8px; border-radius: 50%; }
.cw-g em { font-style: normal; color: var(--ink-4); font-size: 12px; }
.cw-g.on { border-color: var(--p); background: var(--p-soft); color: var(--p); }
.cw-staronly { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); cursor: pointer; }
.cw-list { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.cw-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--line-2); }
.cw-row:last-child { border-bottom: 0; }
.cw-row:hover { background: var(--line-2); }
.cw-row .box { width: 16px; height: 16px; border: 1.5px solid var(--ink-4); border-radius: 4px; flex: none; position: relative; }
.cw-row.on .box { background: var(--p); border-color: var(--p); }
.cw-row.on .box::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cw-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cw-row .t b { font-size: 13.5px; font-weight: 600; }
.cw-row .t small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-star { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 6px; background: none; color: var(--ink-4); cursor: pointer; }
.cw-star:hover { background: var(--line); }
.cw-star.on { color: #f59f00; }
.cw-star svg { width: 16px; height: 16px; }
.cw-star.on svg { fill: currentColor; }
.ab-watch { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink-3); font-size: 12px; cursor: pointer; opacity: 0; }
.ab-tb tr:hover .ab-watch, .ab-watch:focus { opacity: 1; }
.ab-watch:hover { color: var(--p); border-color: var(--p); }
.ab-watch svg { width: 13px; height: 13px; }

/* 11-23 网站设置 → 自动结束和排队：每行一个数字，旁边写着系统设置现在是多少 */
.sl-in { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.sl-in .input { width: 110px; height: 34px; }
.sl-sys { font-style: normal; font-size: 12.5px; color: var(--ink-4); margin-left: 6px; }

/* 11-23 问候内容下面的"这段内容的自定义 CSS" */
.cc-css { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.cc-css > summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.cc-css > summary::-webkit-details-marker { display: none; }
.cc-css > summary::before { content: ""; width: 6px; height: 6px; border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3); transform: rotate(-45deg); transition: transform .15s; }
.cc-css[open] > summary::before { transform: rotate(45deg); }
.cc-css > summary .muted { font-weight: 400; font-size: 12.5px; }
.cc-css > .css-box { margin-top: 10px; }

/* 11-23 自定义 CSS 编辑框默认折叠 */
.cc-css > summary .cc-css-st { margin-left: auto; font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
.cc-css > summary .cc-css-go { font-weight: 500; font-size: 12.5px; color: var(--p); }
.cc-css[open] > summary .cc-css-go { display: none; }
.cc-css.cc-css-page { margin-top: 0; border-top: 0; padding-top: 0; }

/* 11-23 敏感词按处理方式分组显示 */
.wd-find { display: flex; align-items: center; gap: 10px; margin: -2px 0 14px; }
.wd-find .input { max-width: 260px; height: 32px; font-size: 13px; }
.wd-find .muted { font-size: 12.5px; }
.wd-gh { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-size: 13px; }
.wd-gh i { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.wd-grp.flag .wd-gh i { background: var(--warn); }
.wd-grp.mask .wd-gh i { background: var(--ink-3); }
.wd-gh b { font-weight: 600; color: var(--ink); }
.wd-gh .wd-gn { color: var(--ink-3); font-size: 12.5px; }
.wd-gh .wd-gd { color: var(--ink-3); font-size: 12.5px; margin-left: 4px; padding-left: 10px; border-left: 1px solid var(--line); }
.wd-gl { display: flex; flex-wrap: wrap; gap: 6px; }
.wd-list .wd-chip { padding: 5px 11px; border: 1px solid transparent; font: inherit; font-size: 13px; color: var(--ink); line-height: 18px; }
.wd-list .wd-chip:hover, .wd-list .wd-chip.cur { background: #fff; border-color: var(--p); color: var(--p); }
.wd-list .wd-chip[hidden], .wd-grp[hidden] { display: none; }
.wd-pop { position: fixed; z-index: 3000; width: 264px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,40,.16); padding: 6px; }
.wd-pop .wd-pw { padding: 7px 10px 8px; font-size: 13.5px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-2); margin-bottom: 4px; word-break: break-all; }
.wd-pop button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.wd-pop button:hover { background: var(--line-2); }
.wd-pop button > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.wd-pop button > i.flag { background: var(--warn); }
.wd-pop button > i.mask { background: var(--ink-3); }
.wd-pop button span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wd-pop button b { font-size: 13px; font-weight: 500; }
.wd-pop button small { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.wd-pop button.on b { color: var(--p); font-weight: 600; }
.wd-pop button svg { flex: none; width: 15px; height: 15px; color: var(--p); }
.wd-pop button.del { margin-top: 4px; border-top: 1px solid var(--line-2); border-radius: 0 0 8px 8px; padding-top: 10px; color: var(--bad); }
.wd-pop button.del svg { color: var(--bad); }

/* 11-24 接线端第一轮小修（app.css 两端都加载；管理端另外还有 admin-a.css，接线端没有） */
.side-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 36px 16px; color: var(--ink-3); }
.side-empty > svg { width: 24px; height: 24px; color: var(--ink-4); margin-bottom: 6px; }
.side-empty b { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.side-empty span { font-size: 12.5px; line-height: 1.6; max-width: 240px; }
.h-tb > #hPreset { order: 0; } .h-tb > .h-cus { order: 1; } .h-tb > .input-icon { order: 2; flex: 1 1 260px !important; max-width: 420px !important; } .h-tb > #hReset { order: 3; }
.h-tb::after { content: ""; order: 4; flex-basis: 100%; height: 0; }
.h-tb > select { order: 5; }

/* 11-24 顶部"全部网站"按钮上写着正在看谁 */
.site-filter { max-width: 300px; }
.site-filter .sf-who { display: inline-flex; align-items: center; gap: 4px; min-width: 0; font-style: normal; padding-left: 7px; margin-left: 1px; border-left: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.site-filter .sf-who svg.i { width: 13px; height: 13px; flex: none; }
.site-filter .sf-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.site-filter .sf-who.only { padding-left: 0; margin-left: 0; border-left: 0; flex: 1; }
.site-filter .sf-who.only span { max-width: none; }

/* 11-24 会话置顶 */
.citem.pinned { background: color-mix(in srgb, var(--p) 4%, var(--card)); }
.citem.pinned + .citem:not(.pinned) { margin-top: 9px; }
.citem.pinned + .citem:not(.pinned)::before { content: ""; position: absolute; left: 10px; right: 10px; top: -6px; height: 1px; background: var(--line); }
.citem .pin-mk { display: inline-flex; flex: none; color: var(--p); margin-right: -2px; }
.citem .pin-mk svg { width: 13px; height: 13px; transform: rotate(35deg); }
.citem .pin-btn { position: absolute; right: 8px; top: 50%; width: 28px; height: 28px; margin-top: -14px; display: grid; place-items: center; border: 0; border-radius: 8px; background: var(--card); color: var(--ink-3); box-shadow: 0 1px 3px rgba(16,24,40,.12), 0 0 0 1px var(--line); cursor: pointer; opacity: 0; transform: scale(.9); transition: opacity .12s, transform .12s, color .12s; }
.citem .pin-btn svg { width: 15px; height: 15px; transform: rotate(35deg); }
.citem .pin-btn:focus-visible { opacity: 1; transform: none; }
.citem .pin-btn:hover { color: var(--p); }
.citem .pin-btn.on { color: var(--p); }
@media (hover: none) { .citem .pin-btn { display: none; } }

/* ---------- 11-24 桌面版更像原生 App ----------
   mac-app：Mac 版窗口不要单独的标题栏，左上角的红黄绿按钮放在左侧深色栏顶上（像 Slack、Linear）。
            左侧栏空白处、接线端顶部那条的空白处按住能拖动窗口，双击能放大；按钮照常能点。全屏时没有红黄绿按钮，位置收回来
   in-app：按钮、菜单、列表这些界面上的字不能被鼠标拖选变蓝（聊天内容、输入框照常能选、能复制） */
html.mac-app .rail { -webkit-app-region: drag; }
/* 12-03 以前整列往下推 32px 给红黄绿按钮让位，一级导航就和二级导航第一项错开了（网页版是对齐的）。
   现在红黄绿按钮放在 logo 的位置（logo 藏起来、位置留着），一级导航和网页版一样高；全屏时没有红黄绿按钮，logo 照常显示 */
html.mac-app:not(.mac-fs) .rail-logo { visibility: hidden; }
html.mac-app .rail > *, html.mac-app .rail button, html.mac-app .rail a { -webkit-app-region: no-drag; }
html.mac-app .wbar { -webkit-app-region: drag; }
html.mac-app .wbar > :not(.wb-sp), html.mac-app .wbar button, html.mac-app .wbar input, html.mac-app .wbar a, html.mac-app .wbar select { -webkit-app-region: no-drag; }
html.mac-app body:not(:has(.rail))::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 30px; -webkit-app-region: drag; z-index: 2147483000; }
html.mac-app .modal-mask, html.mac-app .pop, html.mac-app .toast, html.mac-app .lxn-cap, html.mac-app .lxn-sub, html.mac-app .lxn-miss { -webkit-app-region: no-drag; }
html.in-app .rail, html.in-app .wbar, html.in-app #ctabs, html.in-app .citem, html.in-app #sTabs, html.in-app button, html.in-app .btn, html.in-app .seg, html.in-app .tabs, html.in-app label, html.in-app .pop, html.in-app .pop-item, html.in-app .subnav, html.in-app th { -webkit-user-select: none; user-select: none; }
html.in-app .rail, html.in-app .wbar, html.in-app #ctabs, html.in-app .citem { cursor: default; }
/* 11-24 接线端筛选菜单：网站 / 客服 两块可收起，分组、离线客服收成一行，顶上搜索 */
.pop.sfp { padding-top: 4px; }
.sfp-q { display: flex; align-items: center; gap: 6px; margin: 2px 2px 6px; padding: 0 9px; height: 32px; border-radius: 8px; background: var(--bg); position: sticky; top: -4px; z-index: 1; box-shadow: 0 -6px 0 var(--card); }
.sfp-q svg.i { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.sfp-q input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 13px; color: var(--ink); padding: 0; height: 100%; }
.sfp-q input::-webkit-search-cancel-button { cursor: pointer; }
.sfp-sec { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; text-align: left; color: var(--ink-3); cursor: pointer; }
.sfp-sec:hover { background: var(--bg); }
.sfp-sec b { font-weight: 600; color: var(--ink-2); flex: none; }
.sfp-sec .sfp-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sfp-sec em { font-style: normal; font-size: 12px; color: var(--ink-4); }
.sfp-sec > svg.i { width: 14px; height: 14px; flex: none; transform: rotate(-90deg); transition: transform .15s; color: var(--ink-4); }
.sfp-sec.open > svg.i { transform: none; }
.sfp-sec.sub { font-size: 13px; color: var(--ink-2); padding-left: 12px; }
.sfp-sec.sub > span { flex: 1; }
.pop-item.sfp-in { padding-left: 22px; }
.sfp-none { padding: 14px 10px; font-size: 13px; text-align: center; }
.pop.sfp [hidden] { display: none !important; }
/* 11-24 列表网站名挤得只剩一个字时只留色点；访客资料头部"访客编号 · 第几次来 · 在线"按段换行，不把"在线"单独拆到下一行 */
.citem .l1s.dot-only { min-width: 0; padding: 0; width: 18px; justify-content: center; flex: none; }
.citem .l1s.dot-only b { display: none; }
.vc-hd .t > .vc-sub i { font-style: normal; white-space: nowrap; }
/* 11-24 监控时顶部数字：等最久能点 */
.wb-kpi.go { cursor: pointer; border-radius: 6px; }
.wb-kpi.go:hover { background: var(--bg); }
.wb-kpi.go:focus-visible { outline: 2px solid var(--p); outline-offset: 1px; }
/* 11-24 询前表单单行文字：可填内容 + 字数 */
.pc-row .pc-fmt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.pc-row .pc-fmt .pc-fl { color: var(--ink-3); }
.pc-row .pc-fmt .pc-fl + .pc-fl, .pc-row .pc-fmt select + .pc-fl { margin-left: 8px; }
.pc-row .pc-fmt .select { width: auto; min-width: 108px; height: 32px; background-color: var(--card); }
.pc-row .pc-fmt .pc-n { width: 76px; text-align: center; }
.pc-row .pc-fmt .pc-fmt-err { color: var(--bad); }
.pc-row .pc-fmt .pc-fmt-err[hidden] { display: none; }
.citem .l1c > .fit-hide { display: none; }
/* 11-24 筛选菜单第二版：右边勾选框、客服名后面的关注星 */
.pop.sfp .pop-item.sfp-ck { gap: 8px; }
.pop.sfp .sfp-cb { flex: none; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--ink-4); display: inline-grid; place-items: center; margin-left: 4px; transition: background .12s, border-color .12s; }
.pop.sfp .sfp-cb svg.i { width: 12px; height: 12px; color: #fff; stroke-width: 3; opacity: 0; }
.pop.sfp .pop-item.on .sfp-cb { background: var(--p); border-color: var(--p); }
.pop.sfp .pop-item.on .sfp-cb svg.i { opacity: 1; }
.pop.sfp .pop-item.on > span:nth-child(2) { color: var(--ink); font-weight: 600; }
.pop.sfp .pop-item > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop.sfp .sfp-star { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; margin: -3px 0; border-radius: 6px; color: var(--ink-4); opacity: .45; cursor: pointer; }
.pop.sfp .pop-item:hover .sfp-star { opacity: 1; }
.pop.sfp .sfp-star:hover { background: var(--line); color: var(--warn); }
.pop.sfp .sfp-star svg.i { width: 14px; height: 14px; color: inherit; }
.pop.sfp .sfp-star.on { opacity: 1; color: #f5a524; }
.pop.sfp .sfp-star.on svg.i { fill: currentColor; }
.site-filter > svg.i:first-child { color: var(--ink-3); }
/* 11-24 监控时列表上方只留一行：在看 + 名字 +N + 几人 + 清除 */
.cl-watch { flex-wrap: nowrap; padding: 6px 12px; gap: 6px; }
.cl-watch .cw-sum { display: inline-flex; align-items: center; gap: 4px; min-width: 0; flex: 0 1 auto; height: 26px; padding: 0 10px; border: 0; border-radius: 13px; background: var(--p-soft); color: var(--p); font-size: 12.5px; cursor: pointer; }
.cl-watch .cw-sum:hover { background: color-mix(in srgb, var(--p) 16%, transparent); }
.cl-watch .cw-sum > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-watch .cw-sum > b { flex: none; font-weight: 600; }
.cl-watch .cw-n { flex: none; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.cl-watch .cw-btn, .cl-watch .cw-clear { flex: none; }
.cl-watch .cw-clear { margin-left: auto; }
.site-filter .sf-more { flex: none; font-weight: 600; margin-left: 3px; }
.site-filter .sf-who { min-width: 0; }
/* 11-25 客服状态页：每行最后的"…"（设为离开、让他下线），有权限的人才有 */
.ab-tb .ab-act-th, .ab-tb .ab-act { width: 44px; text-align: right; padding-right: 10px; }
.ab-tb .ab-more { opacity: .55; }
.ab-tb tr:hover .ab-more, .ab-tb .ab-more:focus-visible, .ab-tb .ab-more.pop-open { opacity: 1; }
/* 11-25 筛选按钮：筛了以后右边的 ✕（点它清空） */
.site-filter .sf-clear { display: inline-grid; place-items: center; width: 18px; height: 18px; margin: 0 -3px 0 2px; border-radius: 50%; flex: none; font-style: normal; cursor: pointer; }
.site-filter .sf-clear svg.i { width: 11px; height: 11px; }
.site-filter .sf-clear:hover { background: color-mix(in srgb, currentColor 18%, transparent); }

/* 11-25 置顶按钮挪到访客头像上：只有鼠标移到头像上才出现（半透明深色圆 + 白色图钉），行的其它地方悬停不显示 */
.citem .c-avw { position: relative; flex: none; display: inline-flex; border-radius: 50%; }
.citem .c-avw > .pin-btn { position: absolute; inset: 0; right: auto; top: 0; width: 100%; height: 100%; margin: 0; border-radius: 50%; background: rgba(15, 23, 42, .55); color: #fff; box-shadow: none; transform: none; }
.citem .c-avw:hover > .pin-btn, .citem .c-avw > .pin-btn:focus-visible { opacity: 1; }
.citem .c-avw > .pin-btn:hover, .citem .c-avw > .pin-btn.on { color: #fff; }
.citem .c-avw > .pin-btn:hover { background: rgba(15, 23, 42, .68); }
/* 11-25 邀请评价按钮（输入框工具栏）：没邀请=粉色爱心；邀请过 1 次带个小 1；访客评过=显示几星、不能再点 */
.c-foot > .icon-btn.c-rate { color: #e0457b; position: relative; }
.c-foot > .icon-btn.c-rate:disabled { opacity: .45; cursor: default; }
.c-foot > .icon-btn.c-rate.done { opacity: 1; width: auto; padding: 0 8px; gap: 3px; color: #e0457b; background: color-mix(in srgb, #e0457b 10%, transparent); }
.c-foot > .icon-btn.c-rate.done b { font-size: 12.5px; font-weight: 700; }
.c-rate-n { position: absolute; top: 2px; right: 1px; min-width: 14px; height: 14px; border-radius: 7px; background: #e0457b; color: #fff; font-size: 10px; font-style: normal; line-height: 14px; text-align: center; }
.m-sys.rate-inv span { display: inline-flex; align-items: center; gap: 5px; color: #c2386b; background: color-mix(in srgb, #e0457b 9%, transparent); }
.m-sys.rate-inv svg.i { width: 13px; height: 13px; }
/* 11-25 留言分类：标签颜色、按类型筛选、投诉醒目、关联会话 */
.lv-kinds { margin: -4px 0 14px; }
.lv-kinds button.lv-hot { color: var(--bad); }
.lv-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11.5px; font-weight: 600; background: var(--fill); color: var(--ink-3); white-space: nowrap; }
.lv-tag.gray { background: var(--fill); color: var(--ink-2); }
.lv-tag.blue { background: var(--p-soft); color: var(--p); }
.lv-tag.green { background: var(--ok-soft, #e6f6ee); color: var(--ok, #16a34a); }
.lv-tag.red { background: var(--bad-soft, #fdecec); color: var(--bad, #dc2626); }
.leave.lv-complain { box-shadow: inset 3px 0 0 var(--bad, #dc2626), 0 0 0 1px color-mix(in srgb, var(--bad, #dc2626) 22%, var(--line)); }
.lv-conv { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.lv-conv svg.i { width: 13px; height: 13px; }
.lv-conv a { color: var(--p); font-variant-numeric: tabular-nums; }
.lv-conv b { color: var(--ink-2); font-weight: 600; }
.leave .lv-conv { grid-column: 1 / -1; }
/* 11-25 会话列表分批显示：底部"还有 N 个"，滑到这里自动再加一批 */
.cl-more { padding: 12px 8px 16px; text-align: center; font-size: 12px; color: var(--ink-3); cursor: pointer; }
.cl-more span { display: inline-block; padding: 4px 12px; border-radius: 12px; background: var(--fill); }
.cl-more:hover span { color: var(--p); }

/* 11-25 留言页：分类页签右边写"投诉与建议"开没开 + 去开启 */
.lv-kbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -4px 0 14px; }
.lv-kbar .lv-kinds { margin: 0; }
.lv-fbhint { font-size: 12px; color: var(--ink-3); }
.lv-fbhint a { color: var(--p); font-weight: 500; }
/* 11-25 小结选择：左边大类稍粗，和右边小类分出层级；选中的大类再粗一级 */
.sp-col[data-lv="0"] .sp-item { font-weight: 500; }
.sp-col[data-lv="0"] .sp-item.on { font-weight: 600; }
/* 11-25 会话记录：小结只显示最细一级 */
.sum-leaf { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; font-weight: 500; color: var(--ink); }
/* 11-25 网站管理：一行一个网站 */
.stl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 12px; min-height: 34px; }
.stl-sum { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.stl-sum b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; margin: 0 2px; }
.stl-sum i { width: 1px; height: 12px; background: var(--line); margin: 0 10px; }
.stl-q { width: 240px; }
.stl-card { background: var(--card); border-radius: 10px; box-shadow: var(--shadow-s); overflow-x: auto; overflow-y: hidden; }   /* 12-01 窄屏右边的操作按钮被裁掉 → 能横向滚动 */
.stl { width: 100%; border-collapse: collapse; }
.stl th { text-align: left; font-size: 12px; font-weight: 500; color: var(--ink-3); padding: 10px 16px; border-bottom: 1px solid var(--line-2); white-space: nowrap; background: var(--bg-2); }
.stl td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; font-size: 13px; }
.stl tbody tr:last-child td { border-bottom: 0; }
.stl-row { cursor: pointer; transition: background .15s; animation: fadeUp .25s var(--ease) both; }
.stl-card.quiet .stl-row { animation: none; }
.stl-row:hover { background: var(--fill); }
.stl-row.off { opacity: .55; }
.stl-nm { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.stl-nm b { font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.stl-nm .site-tag { margin-left: 0; }
.stl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sc); flex: none; }
.stl-dom { margin: 3px 0 0 16px; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.stl .stl-n { text-align: right; width: 96px; font-variant-numeric: tabular-nums; }
td.stl-n { font-size: 15px; color: var(--ink-4); }
td.stl-n.on { color: var(--ink); font-weight: 600; }
.stl td.srv { color: var(--ink-2); max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stl td.srv .ag-g { font-size: 12.5px; }
.stl-acts { width: 1%; white-space: nowrap; text-align: right; }
.stl-acts .btn { margin-right: 4px; }
@media (max-width: 760px) { .stl th:nth-child(5), .stl td.srv { display: none; } .stl .stl-n { width: auto; } .stl-q { width: 100%; } .stl-bar { flex-wrap: wrap; } }
/* 11-25 客服管理：底部"已停用（N）"折叠 */
.ag-tb tr.ag-off-hd td { padding: 0; background: var(--bg-2); }
.ag-off-hd button { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; text-align: left; }
.ag-off-hd button:hover { color: var(--ink); }
.ag-off-hd button svg.i { width: 14px; height: 14px; color: var(--ink-3); }
.ag-off-hd .cnt { font-size: 11.5px; font-weight: 500; color: var(--ink-3); background: var(--fill); border-radius: 9px; padding: 0 7px; }
.ag-off-hd em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--ink-3); margin-left: 8px; }
/* 11-25 个人设置：登录邮箱 */
.pf-mail-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pf-mail-now { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 13px; }
.pf-mail-ed { margin-top: 12px; padding: 12px; border-radius: 8px; background: var(--fill); }
.pf-mail-ed .field { margin-bottom: 8px; }
.pf-mail-acts { display: flex; justify-content: flex-end; gap: 6px; }

/* ---------- 11-25 统一提醒条（core.js LxNote）：从顶栏中间长出来 ----------
   小点浮起来 → 横向弹开 → 往下长出第二行 → 文字浮上来；收的时候倒着来。白卡片 + 左边一条色条表示种类 */
.lxn-root { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 300; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lxn-cap, .lxn-sub, .lxn-miss { --k: var(--p); --ks: var(--p-soft); --kb: color-mix(in srgb, var(--k) 7%, var(--card)); }
[data-tone="vio"] { --k: #7048e8; --ks: #f0ebfe; }
[data-tone="ok"] { --k: var(--ok); --ks: var(--ok-soft); }
[data-tone="warn"] { --k: var(--warn); --ks: var(--warn-soft); }
[data-tone="bad"] { --k: var(--bad); --ks: var(--bad-soft); }
:root[data-theme="dark"] [data-tone="vio"] { --k: #a28bff; --ks: #261f45; }
.lxn-cap { pointer-events: auto; position: relative; width: 12px; height: 12px; border-radius: 18px; background: var(--card); color: var(--ink); overflow: hidden; opacity: 0; transform: translateY(4px) scale(.6); box-shadow: 0 0 0 1px var(--line);
  transition: width .46s cubic-bezier(.22,1.18,.36,1), height .32s cubic-bezier(.3,1.1,.4,1), border-radius .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.2,1.2,.3,1), opacity .2s ease; }
.lxn-cap:empty { visibility: hidden; }
.lxn-root.has-bar .lxn-cap.low { margin-top: calc(var(--lxn-drop, 40px) + 4px); }
.lxn-cap:not(.open):not(.badge) { pointer-events: none; }
.lxn-cap.open { opacity: 1; transform: none; border-radius: 16px; background: var(--kb); box-shadow: 0 0 0 1px color-mix(in srgb, var(--k) 38%, transparent), 0 12px 32px rgba(20,32,70,.18), 0 2px 6px rgba(20,32,70,.08); }
/* 重要的（转接、安全……）刚出来时外圈闪一次光，之后不再闪 */
.lxn-cap.open.flash { animation: lxnFlash .85s ease-out .25s 1; }
@keyframes lxnFlash { 0% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--k) 38%, transparent), 0 0 0 0 color-mix(in srgb, var(--k) 55%, transparent), 0 12px 32px rgba(20,32,70,.18); } 100% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--k) 38%, transparent), 0 0 0 12px transparent, 0 12px 32px rgba(20,32,70,.18); } }
:root[data-theme="dark"] .lxn-cap, :root[data-theme="dark"] .lxn-sub, :root[data-theme="dark"] .lxn-miss { --kb: color-mix(in srgb, var(--k) 16%, var(--card)); }
:root[data-theme="dark"] .lxn-cap.open { box-shadow: 0 0 0 1px color-mix(in srgb, var(--k) 45%, transparent), 0 12px 32px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.3); }
.lxn-cap.w { width: var(--lxn-w, 420px); }
.lxn-cap.h1 { height: 36px; }
.lxn-cap.h2 { height: 44px; }   /* 两行也收在顶栏里，不伸进对话区（不挡访客名字、复制、转接这些按钮） */
.lxn-sig { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--k); }
.lxn-in { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity .16s ease, transform .24s cubic-bezier(.2,1,.3,1); }
.lxn-cap.show .lxn-in { opacity: 1; transform: none; transition-delay: .12s; }
.lxn-cap .lxn-in.out { opacity: 0; transform: translateY(-8px); transition: opacity .12s ease, transform .16s ease; transition-delay: 0s; }
.lxn-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--k) 16%, var(--card)); color: var(--k); flex: none; }
.lxn-ic svg.i { width: 15px; height: 15px; }
.h1 .lxn-ic { width: 22px; height: 22px; } .h1 .lxn-ic svg.i { width: 13px; height: 13px; }
.lxn-av { flex: none; display: grid; } .lxn-av .av { width: 28px; height: 28px; font-size: 12px; }
.lxn-tx { min-width: 0; flex: 1; display: grid; line-height: 1.3; }
.lxn-tx b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.lxn-tx span { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.h1 .lxn-tx b { font-weight: 500; }
.lxn-act { flex: none; height: 26px; padding: 0 12px; border-radius: 14px; border: 0; background: color-mix(in srgb, var(--k) 12%, var(--card)); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.lxn-act.pri { background: var(--k); color: #fff; }
.lxn-act:hover { filter: brightness(1.06); }
.lxn-x { flex: none; width: 26px; height: 26px; border-radius: 13px; border: 0; background: transparent; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.lxn-x:hover { background: var(--fill); color: var(--ink); } .lxn-x svg.i { width: 14px; height: 14px; }
.lxn-act:focus-visible, .lxn-x:focus-visible, .lxn-mi:focus-visible, .lxn-cap.badge:focus-visible { outline: 2px solid var(--k); outline-offset: 2px; }
.lxn-br { display: none; }
.lxn-br { order: 4; } .lxn-act { order: 5; } .lxn-x { order: 6; } .lxn-cap.stack .lxn-x { order: 3; }
.lxn-cap.stack.h2 { height: 100px; }
.lxn-cap.stack .lxn-in { flex-wrap: wrap; align-content: center; row-gap: 10px; padding-top: 2px; }
.lxn-cap.stack .lxn-br { display: block; flex-basis: 100%; height: 0; }
.lxn-cap.stack .lxn-act:first-of-type { margin-left: 42px; }
.lxn-cap.stack .lxn-act { height: 30px; }
.lxn-more { flex: none; font-size: 11.5px; color: var(--ink-3); background: color-mix(in srgb, var(--k) 12%, var(--card)); border-radius: 10px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
/* 自动收起倒计时：底边一条细线慢慢变短；鼠标放上去暂停 */
.lxn-tm { position: absolute; left: 4px; right: 0; bottom: 0; height: 2px; background: var(--k); opacity: .35; transform-origin: left; transform: scaleX(0); }
.lxn-cap.timing .lxn-tm { animation: lxnTm var(--lxn-dur, 6s) linear forwards; }
.lxn-cap.timing:hover .lxn-tm { animation-play-state: paused; }
@keyframes lxnTm { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.lxn-cap.hx { height: var(--lxn-h, 80px); }
.lxn-cap.wrap .lxn-in { white-space: normal; padding-block: 10px; }
.lxn-cap.wrap .lxn-tx b, .lxn-cap.wrap .lxn-tx span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; white-space: normal; }
.lxn-measw { position: fixed !important; left: -9999px; top: 0; visibility: hidden; opacity: 1; height: auto !important; }
.lxn-measw .lxn-in { position: static; opacity: 1; transform: none; }
.lxn-meas { position: fixed !important; left: -9999px; top: 0; visibility: hidden; width: max-content !important; opacity: 1; }
.lxn-meas .lxn-in { position: static; opacity: 1; transform: none; width: max-content; height: 100%; }
/* 没看的重要提醒：一颗会呼吸的小点 */
.lxn-cap.badge { background: var(--kb); opacity: 1; transform: none; width: auto; height: 26px; margin-top: calc(var(--lxn-drop, 40px) - 13px); padding: 0 11px 0 9px; display: flex; align-items: center; gap: 7px; font-size: 12.5px; cursor: pointer; white-space: nowrap; box-shadow: 0 0 0 1px var(--line), 0 3px 10px rgba(20,32,70,.10); transition: none; }
.lxn-ring { width: 8px; height: 8px; border-radius: 50%; background: var(--k); animation: lxnBreathe 2.4s ease-out infinite; }
@keyframes lxnBreathe { 0% { box-shadow: 0 0 0 0 var(--k); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.lxn-root.has-bar .lxn-sub { top: calc(var(--lxn-drop, 40px) + 4px); }
.lxn-miss { pointer-events: auto; width: min(420px, calc(100vw - 24px)); background: var(--card); border-radius: 14px; padding: 6px; display: grid; gap: 2px; box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(20,32,70,.16); animation: lxnDrop .24s cubic-bezier(.2,1.1,.3,1); }
@keyframes lxnDrop { from { opacity: 0; transform: translateY(-6px); } }
.lxn-mi { display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; width: 100%; }
.lxn-mi:hover { background: var(--hover); }
.lxn-mi .lxn-ic { width: 28px; height: 28px; } .lxn-mi .lxn-ic svg.i { width: 15px; height: 15px; }
.lxn-mi .lxn-tx b { font-size: 13px; } .lxn-mi .lxn-tx span { white-space: nowrap; }
.lxn-mi time { flex: none; font-size: 11.5px; color: var(--ink-3); }
.lxn-clear { justify-self: end; border: 0; background: transparent; color: var(--ink-3); font: inherit; font-size: 12px; padding: 4px 8px; cursor: pointer; border-radius: 6px; }
.lxn-clear:hover { color: var(--ink); background: var(--hover); }
/* 卡片下面挂的一小条（操作结果） */
.lxn-sub { position: absolute; top: 50px; left: 50%; translate: -50% 0; white-space: nowrap; pointer-events: none; visibility: hidden; height: 0; opacity: 0; transform: translateY(-6px) scale(.96); transition: opacity .18s ease, transform .26s cubic-bezier(.2,1.2,.3,1), visibility 0s linear .26s; }
.lxn-sub.on { pointer-events: auto; visibility: visible; height: auto; opacity: 1; transform: none; transition: opacity .18s ease, transform .26s cubic-bezier(.2,1.2,.3,1), visibility 0s; }   /* 11-25 收起后看不见的小条不能再接住点击（以前挡住了对话顶部的结束按钮） */
.lxn-sub .lxn-in { position: static; opacity: 1; transform: none; height: 32px; padding: 0 12px 0 6px; gap: 7px; border-radius: 16px; background: var(--kb); box-shadow: 0 0 0 1px color-mix(in srgb, var(--k) 38%, transparent), 0 6px 18px rgba(20,32,70,.14); font-size: 13px; }
.lxn-sub .lxn-ic { width: 22px; height: 22px; } .lxn-sub .lxn-ic svg.i { width: 13px; height: 13px; }
@media (max-width: 700px) { .lxn-root { top: calc(8px + env(safe-area-inset-top, 0px)); } .lxn-cap.h2 { height: 52px; } }
@media (prefers-reduced-motion: reduce) { .lxn-cap, .lxn-in, .lxn-sub { transition-duration: .01s !important; } .lxn-ring, .lxn-miss, .lxn-cap.open.flash { animation: none; } }

/* 11-25 提醒方式（接线端 头像 → 设置 → 提醒方式） */
.alm-dnd { padding-top: 0; }
.alm-tb { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 4px; }
.alm-hd, .alm-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 96px; align-items: center; gap: 8px; padding: 10px 14px; }
.alm-hd { background: var(--fill); font-size: 12px; color: var(--ink-3); padding-top: 8px; padding-bottom: 8px; }
.alm-hd span:not(:first-child) { text-align: center; }
.alm-row { border-top: 1px solid var(--line); }
.alm-row .t b { display: block; font-size: 14px; font-weight: 600; }
.alm-row .t span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.alm-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.alm-cell small { font-size: 11px; color: var(--ink-4); white-space: nowrap; }
.alm-cell small.own { color: var(--p); }
.alm-fix { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.alm-row.fixed { background: var(--fill); }
.alm-row.fixed .alm-cell { cursor: default; }
.alm-tb.dim .alm-row:not(.fixed) .alm-cell:nth-child(2) { opacity: .35; pointer-events: none; }
.alm-note { display: flex; gap: 6px; font-size: 12px; color: var(--ink-3); margin: 12px 0 0; line-height: 1.6; }
.alm-note svg { width: 14px; height: 14px; flex: none; margin-top: 3px; }

/* 11-25 接线端一行模式（core.js line()）：和顶部数据小块一样高（30）、同一排；主题色实底、白字。
   任何宽度都只一行，文字放不下截短（悬停看全文），不往下长、不盖住对话顶部和订单号/账号那一栏 */
.lxn-root.line { gap: 4px; }
.lxn-root.line .lxn-cap { border-radius: 999px; }
.lxn-root.line .lxn-cap.h1, .lxn-root.line .lxn-cap.h2, .lxn-root.line .lxn-cap.hx { height: 30px; }
.lxn-root.line .lxn-cap.open { background: var(--k); color: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 6px 16px rgba(16,24,40,.12); }
:root[data-theme="dark"] .lxn-root.line .lxn-cap.open { box-shadow: 0 8px 22px rgba(0,0,0,.5), 0 0 0 1px color-mix(in srgb, #fff 10%, transparent); }
.lxn-root.line .lxn-sig, .lxn-root.line .lxn-tm { display: none; }
.lxn-root.line .lxn-in { padding: 0 4px; gap: 8px; }
.lxn-root.line .lxn-ic, .lxn-root.line .h1 .lxn-ic { width: 22px; height: 22px; background: rgba(255,255,255,.2); color: #fff; }
.lxn-root.line .lxn-ic svg.i { width: 13px; height: 13px; }
.lxn-root.line .lxn-av .av { width: 22px; height: 22px; font-size: 10px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.55); }
.lxn-root.line .lxn-tag { flex: none; font-size: 11.5px; font-weight: 600; line-height: 18px; padding: 0 7px; border-radius: 999px; background: rgba(255,255,255,.2); color: #fff; }
.lxn-root.line .lxn-tx { display: flex; align-items: center; gap: 8px; line-height: 30px; }
.lxn-root.line .lxn-tx b { flex: 0 1 auto; max-width: 45%; font-size: 13px; font-weight: 600; color: #fff; }
.lxn-root.line .h1 .lxn-tx b { max-width: none; font-weight: 500; }
.lxn-root.line .lxn-tx span { flex: 1 1 0; min-width: 0; font-size: 13px; color: rgba(255,255,255,.82); }
.lxn-root.line .lxn-act { order: 0; height: 22px; padding: 0 11px; border-radius: 999px; background: rgba(255,255,255,.2); color: #fff; font-size: 12.5px; }
.lxn-root.line .lxn-act.pri { background: #fff; color: var(--k); }
.lxn-root.line .lxn-act:hover { filter: none; background: rgba(255,255,255,.3); } .lxn-root.line .lxn-act.pri:hover { background: #fff; filter: brightness(.96); }
.lxn-root.line .lxn-x { order: 0; width: 22px; height: 22px; color: #fff; opacity: .8; }
.lxn-root.line .lxn-x:hover { background: rgba(255,255,255,.18); color: #fff; opacity: 1; }
.lxn-root.line .lxn-more { background: rgba(255,255,255,.22); color: #fff; }
.lxn-root.line .lxn-act:focus-visible, .lxn-root.line .lxn-x:focus-visible { outline-color: #fff; }
.lxn-root.line .lxn-cap.open.flash { animation: lxnLineFlash .9s ease-out .25s 1; }
@keyframes lxnLineFlash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--k) 60%, transparent), 0 6px 18px color-mix(in srgb, var(--k) 34%, transparent); } 100% { box-shadow: 0 0 0 9px transparent, 0 6px 18px color-mix(in srgb, var(--k) 34%, transparent); } }
.lxn-root.line .lxn-cap.badge { margin-top: 0; height: 30px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--k); color: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 4px 12px rgba(16,24,40,.10); }
.lxn-root.line .lxn-cap.badge .lxn-ring { background: #fff; }
.lxn-root.line .lxn-sub { display: none; }
.lxn-root.line .lxn-miss { margin-top: 4px; }
/* 11-26 修：一行模式的白字规则漏到了"N 条没看"展开的列表里（白卡片白字=看着空白），列表还被长文字撑出卡片外。
   列表固定宽度、文字恢复深色两行、超长截短 */
.lxn-miss { grid-template-columns: minmax(0, 1fr); max-height: min(420px, calc(100vh - 120px)); overflow-y: auto; }
.lxn-miss .lxn-mi { min-width: 0; }
.lxn-root.line .lxn-miss .lxn-tx { display: grid; line-height: 1.35; gap: 1px; }
.lxn-root.line .lxn-miss .lxn-tx b { max-width: none; color: var(--ink); font-weight: 600; white-space: nowrap; }
.lxn-root.line .lxn-miss .lxn-tx span { color: var(--ink-3); font-size: 12px; }
.lxn-root.line .lxn-miss .lxn-ic { width: 28px; height: 28px; background: color-mix(in srgb, var(--k) 16%, var(--card)); color: var(--k); }
.lxn-root.line .lxn-miss .lxn-ic svg.i { width: 15px; height: 15px; }
.lxn-root.line .lxn-miss .lxn-av .av { width: 28px; height: 28px; font-size: 12px; box-shadow: none; }
/* 11-25 接线端复制成功：被点的按钮变绿闪一下（不弹提示） */
.lx-copied, .lx-copied svg.i { color: var(--ok) !important; }
.lx-copied { animation: lxCopied .5s ease; }
@keyframes lxCopied { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .lx-copied { animation: none; } }
/* 11-26 超过保存期限、内容已清理的消息 */
.m .bb.msg-expired { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); background: var(--fill) !important; box-shadow: none !important; font-size: 13px; font-style: normal; }
.m .bb.msg-expired svg.i { width: 14px; height: 14px; opacity: .7; flex: none; }

/* 11-26 数据概览的提醒：白底卡片并排，不再是整条大红色 */
.rt-alerts { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 12px; margin-bottom: 16px; }
.rt-alert, .rt-alert.bad, .rt-alert.warn { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 12px; background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(15, 23, 42, .04); cursor: pointer; overflow: hidden; transition: box-shadow .18s ease, transform .18s ease; }
.rt-alert::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--warn); }
.rt-alert.bad::before { background: var(--bad); }
.rt-alert:hover { box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(15, 23, 42, .07); transform: translateY(-1px); }
.rta-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); }
.rt-alert.bad .rta-ic { background: var(--bad-soft); color: var(--bad); }
.rta-ic svg { width: 18px; height: 18px; }
.rta-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rta-tx b { font-size: 14px; font-weight: 600; color: var(--ink); }
.rta-tx span { font-size: 12.5px; color: var(--ink-3); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-alert .rta-go { flex: none; gap: 2px; padding-right: 8px; }
.rt-alert .rta-go svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .rt-alert { transition: none; } .rt-alert:hover { transform: none; } }

/* 11-26 安全和运行记录 */
.sl-kpis { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 12px; margin: 2px 0 16px; }
.sl-k { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--fill); }
.sl-k > i { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--card); color: var(--p); box-shadow: 0 0 0 1px var(--line-2); }
.sl-k > i svg { width: 18px; height: 18px; }
.sl-k.warn > i { color: var(--warn); }
.sl-k > div { min-width: 0; display: grid; gap: 1px; }
.sl-k span { font-size: 12px; color: var(--ink-3); }
.sl-k b { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-k small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-bans { display: grid; gap: 8px; margin-bottom: 14px; }
.sl-ban { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); font-size: 13px; }
.sl-ban > i { color: var(--warn); display: grid; } .sl-ban > i svg { width: 16px; height: 16px; }
.sl-ban span { flex: 1; color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-ban em { font-style: normal; color: var(--ink-3); font-size: 12px; }
.sl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.sl-seg button i { font-style: normal; margin-left: 6px; font-size: 11.5px; color: var(--ink-3); }
.sl-list { display: grid; }
.sl-day { position: sticky; top: 0; z-index: 1; padding: 14px 4px 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--card); }
.sl-row { display: grid; grid-template-columns: 52px 118px 1fr; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 8px; font-size: 13.5px; }
.sl-row + .sl-row { box-shadow: 0 -1px 0 var(--line-2); }
.sl-row:hover { background: var(--fill); box-shadow: none; }
.sl-row:hover + .sl-row { box-shadow: none; }
.sl-t { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.sl-tag { justify-self: start; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--fill); color: var(--ink-2); white-space: nowrap; }
.sl-tag svg { width: 13px; height: 13px; flex: none; }
.sl-tag.warn { background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 80%, var(--ink)); }
.sl-tag.bad { background: var(--bad-soft); color: var(--bad); }
.sl-tag.ok { background: var(--ok-soft); color: var(--ok); }
.sl-x { color: var(--ink); min-width: 0; line-height: 1.5; word-break: break-word; }
.sl-none { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 28px; color: var(--ink-3); font-size: 13px; }
.sl-none svg { width: 16px; height: 16px; color: var(--ok); }
@media (max-width: 700px) { .sl-row { grid-template-columns: 44px 1fr; } .sl-x { grid-column: 1 / -1; } }

/* 11-26 留言页：类型图标块、带图标的分类、联系方式小块；卡片更轻，投诉只留左边红条 */
.leave-list { gap: 14px; }
.leave { border-radius: 14px; padding: 18px 20px; box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(15, 23, 42, .04); transition: box-shadow .18s ease; }
.leave:hover { box-shadow: 0 0 0 1px var(--line), 0 8px 22px rgba(15, 23, 42, .07); }
.leave .hd { gap: 8px 10px; }
.leave .hd b { font-size: 15px; font-weight: 600; margin-right: 2px; }
.lv-kic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--fill); color: var(--ink-2); }
.lv-kic svg { width: 18px; height: 18px; }
.lv-kic.blue { background: var(--p-soft); color: var(--p); }
.lv-kic.green { background: var(--ok-soft, #e6f6ee); color: var(--ok, #16a34a); }
.lv-kic.red { background: var(--bad-soft, #fdecec); color: var(--bad, #dc2626); }
.lv-tag { gap: 4px; height: 22px; padding: 0 8px 0 6px; border-radius: 999px; font-weight: 500; }
.lv-tag svg { width: 12px; height: 12px; }
.lv-ct { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--fill); color: var(--ink-2); font-size: 12.5px; cursor: pointer; border-bottom: 0 !important; text-decoration: none; }
.lv-ct:hover { background: var(--p-soft); color: var(--p); }
.lv-ct svg { width: 13px; height: 13px; }
.leave .ct { margin-left: 44px; background: var(--bg); border-radius: 10px; padding: 12px 14px; line-height: 1.6; font-size: 14px; }
.leave .ft, .leave .reply, .leave .lv-conv { margin-left: 44px; }
.leave.lv-complain { box-shadow: inset 4px 0 0 var(--bad, #dc2626), 0 0 0 1px var(--line-2), 0 1px 2px rgba(15, 23, 42, .04); }
.leave.lv-complain:hover { box-shadow: inset 4px 0 0 var(--bad, #dc2626), 0 0 0 1px var(--line), 0 8px 22px rgba(15, 23, 42, .07); }
.lv-kinds button { display: inline-flex; align-items: center; gap: 6px; }
.lv-kinds button > svg { width: 15px; height: 15px; opacity: .75; }
.lv-kinds button.on > svg { opacity: 1; }
@media (max-width: 700px) { .leave .ct, .leave .ft, .leave .reply, .leave .lv-conv { margin-left: 0; } }
@media (max-width: 1100px) { .sl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 11-26 套餐弹窗：推荐给朋友 */
.sq-ref { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.sq-ref-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.sq-ref-hd svg { width: 18px; height: 18px; color: var(--info); flex: none; }
.sq-ref-hd .muted { flex-basis: 100%; margin-left: 26px; font-size: 12.5px; line-height: 1.55; }
.sq-ref-link { display: flex; gap: 8px; margin-top: 10px; }
.sq-ref-link .input { flex: 1; min-width: 0; font-family: Menlo, Consolas, monospace; font-size: 12.5px; }
.sq-ref-n { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }

/* 11-26 会话记录：只看待小结、点"待小结"直接填、查看对话翻上一条/下一条 */
.h-pend.on { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 40%, transparent); }
.h-pend b { font-variant-numeric: tabular-nums; }
button.tag.h-sumgo { border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 500; }
button.tag.h-sumgo:hover { background: var(--warn); color: #fff; }
button.tag.h-sumgo svg.i { width: 12px; height: 12px; }
.tr-nav { display: inline-flex; align-items: center; gap: 2px; margin-right: 6px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tr-nav span { min-width: 58px; text-align: center; }
.tr-nav .icon-btn:disabled { opacity: .35; cursor: default; }
.drawer.no-anim, .drawer-mask.no-anim { animation: none !important; }

/* 11-26 刷新按钮点了转圈 */
.lx-spinning svg[data-i="refresh"] { animation: rot .8s linear infinite; }

/* 11-26 "我的"里插过话的同事会话 */
.join-chip { background: var(--warn-soft); color: var(--warn); }

/* 11-26 接线端窄窗口：三栏放不下时右栏收起，点按钮从右边浮出 */
.chats.side-auto { position: relative; }
.chats.side-auto .side, .chats.side-auto .col-rs[data-rs="side"] { display: none; }
.chats.side-auto.side-float .side { display: block; position: absolute; top: 0; right: 0; bottom: 0; width: min(330px, calc(100% - 48px)); z-index: 40; border-left: 1px solid var(--line); box-shadow: -14px 0 36px rgba(15, 23, 42, .16); animation: sideFloatIn .2s var(--ease); }
html.dc .chats.side-auto.side-float .side { top: var(--dcg, 0px); bottom: var(--dcg, 0px); right: var(--dcg, 0px); border-radius: 14px; border: 1px solid var(--line); }
.chats.side-auto.side-float .side { background: var(--bg); padding: 8px; overflow-y: auto; }
@keyframes sideFloatIn { from { opacity: 0; transform: translateX(16px); } }
/* 列表窄了：时间不让位，网站名先藏 */
.citem .l1 > .tm { flex: none; }
.citem .l1 .nm { flex: 0 0 auto; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* 访客名和时间不让，网站名挤了由原来的让位算法变成色点 */
.clist { container-type: inline-size; }
@container (max-width: 260px) { .citem .l1 > .l1s { min-width: 18px; } }   /* 列表窄：网站名可以缩到色点那么小（原来最小 52px 会把时间挤出去） */
.wbar .wb-st, .wbar .wb-site { white-space: nowrap; flex: none; }
/* 对话区很窄：输入框底部按钮挤一挤，"发送"不被切 */
.composer { container-type: inline-size; }
@container (max-width: 340px) { .c-foot { gap: 0 !important; } .c-foot .icon-btn { width: 28px; min-width: 28px; } .c-foot #csend { padding: 0 10px; } }
@container (max-width: 300px) { .c-foot #csend { font-size: 0; gap: 0; padding: 0 12px; } .c-foot #csend svg.i { margin: 0; } }
/* 11-27 数据概览提醒（访客等太久 / 差评 / 猜密码）：白底不显眼 → 整张卡片浅色底 + 同色描边，图标块实色，按钮实色 */
.rp-page .rt-alert.warn, html.ui2 .rp-page .rt-alert.warn { --ra: var(--warn); --ra-bg: var(--warn-soft); }
.rp-page .rt-alert.bad, html.ui2 .rp-page .rt-alert.bad { --ra: var(--bad); --ra-bg: var(--bad-soft); }
.rp-page .rt-alert.warn, .rp-page .rt-alert.bad, html.ui2 .rp-page .rt-alert.warn, html.ui2 .rp-page .rt-alert.bad {
  background: linear-gradient(100deg, var(--ra-bg) 0%, color-mix(in srgb, var(--ra-bg) 55%, var(--card)) 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ra) 30%, transparent), 0 2px 10px color-mix(in srgb, var(--ra) 10%, transparent);
  padding: 13px 14px 13px 16px;
}
.rp-page .rt-alert.warn:hover, .rp-page .rt-alert.bad:hover, html.ui2 .rp-page .rt-alert.warn:hover, html.ui2 .rp-page .rt-alert.bad:hover {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ra) 45%, transparent), 0 8px 22px color-mix(in srgb, var(--ra) 16%, transparent);
}
.rp-page .rt-alert::before { display: none; }
.rp-page .rt-alert .rta-ic { position: relative; background: var(--ra); color: #fff; box-shadow: none; }
.rp-page .rt-alert.bad .rta-ic::after { content: ''; position: absolute; inset: 0; border-radius: inherit; animation: rtaRing 2s ease-out infinite; }
@keyframes rtaRing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ra) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.rp-page .rt-alert .rta-tx b { color: color-mix(in srgb, var(--ra) 82%, var(--ink)); font-weight: 650; }
.rp-page .rt-alert .rta-tx span { color: color-mix(in srgb, var(--ra) 30%, var(--ink-2)); }
.rp-page .rt-alert .rta-go, html.ui2 .rp-page .rt-alert .rta-go { background: var(--ra); color: #fff; border-color: transparent; box-shadow: none; font-weight: 600; }
.rp-page .rt-alert .rta-go:hover, html.ui2 .rp-page .rt-alert .rta-go:hover { background: color-mix(in srgb, var(--ra) 85%, #000); color: #fff; }
/* 刷新时不重放数字卡片的进场动画（只有第一次进页面播一次） */
html.ui2 .rt-ready .k2 { animation: none; }
@media (prefers-reduced-motion: reduce) { .rp-page .rt-alert.bad .rta-ic::after { animation: none; } }
/* 11-27 各网站对话量重做（reports.js drawMatrix / mxChart）：小结一行 + 堆叠柱 + 整格热力表 */
.rp-mx .mx2-top { display: grid; grid-template-columns: repeat(3, minmax(150px, .8fr)) minmax(260px, 1.6fr); gap: 12px; padding: 4px 20px 16px; }
.mx2-s { display: grid; align-content: start; gap: 3px; min-width: 0; padding: 12px 14px; border-radius: 12px; background: var(--fill); }
.mx2-s > span { font-size: 12px; color: var(--ink-3); }
.mx2-s > b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx2-s > em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.mx2-s.hi { background: color-mix(in srgb, var(--p) 8%, var(--card)); }
.mx2-s.hi > b { color: var(--p); }
.mx2-s.lo > b { color: var(--ink-2); }
.mx2-share { gap: 8px; }
.mx2-sbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; background: var(--line-2); }
.mx2-sbar i { min-width: 3px; }
.mx2-lg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-2); }
.mx2-lg > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; }
.mx2-lgn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.mx2-lg b { font-weight: 600; font-variant-numeric: tabular-nums; }
.mx2-dot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; flex: none; }
.rp-mx .mx2-chart { padding: 0 20px 10px; }
.mx2-svg .bar-p { transition: opacity .15s; }
.mx2-tt { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 3px; padding-top: 3px; }
.rp-page .rp-mx .mx2-tb { border-top: 1px solid var(--line-2); }
.rp-page .rp-mx .mx2-tb th, .rp-page .rp-mx .mx2-tb td { padding: 0 12px; height: 32px; }
.rp-page .rp-mx .mx2-tb thead th { height: 38px; }
.rp-page .rp-mx .mx2-tb .mx2-l { width: 168px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rp-page .rp-mx .mx2-tb .mx2-nm { display: inline-flex; align-items: center; gap: 6px; max-width: 150px; font-weight: 600; color: var(--ink-2); }
.rp-page .rp-mx .mx2-tb .mx2-nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-page .rp-mx .mx2-tb th.num .mx2-nm { justify-content: flex-end; }
.rp-page .rp-mx .mx2-tb td.mx2-c { width: 112px; padding: 3px 4px; }
.rp-page .rp-mx .mx2-tb td.mx2-c > span { display: block; height: 26px; line-height: 26px; padding: 0 10px; border-radius: 6px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); background: color-mix(in srgb, var(--c) var(--a), transparent); }
.rp-page .rp-mx .mx2-tb .mx2-0 { color: var(--ink-4); text-align: right; padding-right: 14px; }
.rp-page .rp-mx .mx2-tb .mx2-t { border-left: 1px solid var(--line-2); min-width: 250px; }
.mx2-tw { display: grid; grid-template-columns: 1fr 52px 40px; align-items: center; gap: 10px; }
.mx2-tw b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.mx2-tw em, .rp-page .rp-mx .mx2-tb tfoot .mx2-t em, .rp-page .rp-mx .mx2-tb .mx2-p { font-style: normal; font-size: 11.5px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.rp-page .rp-mx .mx2-tb .mx2-p { margin-left: 6px; }
.mx2-stk { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.mx2-trk { display: flex; height: 100%; gap: 1px; border-radius: 4px; overflow: hidden; }
.mx2-trk i { min-width: 2px; }
.rp-page .rp-mx .mx2-tb tbody tr:not(.mx2-g):hover td { background: var(--fill); }
.rp-page .rp-mx .mx2-tb tr.mx2-z .mx2-l { color: var(--ink-4); }
.rp-page .rp-mx .mx2-tb tr.mx2-we .mx2-l { color: var(--warn); }
.rp-page .rp-mx .mx2-tb tr.mx2-mon td { border-top: 1px solid var(--line); }
.rp-page .rp-mx .mx2-tb tr.mx2-pk td { background: color-mix(in srgb, var(--p) 5%, transparent); }
.rp-page .rp-mx .mx2-tb tr.mx2-pk .mx2-l { font-weight: 600; color: var(--p); }
.mx2-tag { margin-left: 8px; font-style: normal; font-size: 11px; font-weight: 600; border-radius: 4px; padding: 1px 6px; }
.mx2-tag.hi { color: var(--p); background: var(--p-soft); }
.mx2-tag.lo { color: var(--ink-3); background: var(--fill-2, var(--fill)); }
.rp-page .rp-mx .mx2-tb tr.mx2-g td { height: 34px; background: var(--fill); border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-3); }
.rp-page .rp-mx .mx2-tb tr.mx2-g td > span { font-weight: 650; color: var(--ink); margin-right: 8px; }
.rp-page .rp-mx .mx2-tb tr.mx2-g td > b { margin-left: 14px; color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.rp-page .rp-mx .mx2-tb tr.mx2-g td > em { font-style: normal; margin-left: 6px; }
.rp-page .rp-mx .mx2-tb tfoot td { height: 40px; border-top: 1px solid var(--line); background: var(--fill); }
.rp-page .rp-mx .mx2-tb tfoot td.mx2-t { text-align: right; }
.rp-page .rp-mx .mx2-tb tfoot td.mx2-t em { margin-left: 8px; }
@media (max-width: 1100px) { .rp-mx .mx2-top { grid-template-columns: repeat(3, 1fr); } .mx2-share { grid-column: 1 / -1; } }
@media (max-width: 700px) { .rp-mx .mx2-top { grid-template-columns: 1fr 1fr; } }
.rp-page .rp-mx .mx2-tb .mx2-l, .rp-page .rp-mx .mx2-tb tr.mx2-g td { padding-left: 20px; }
.rp-page .rp-mx .mx2-tb td.mx2-c { padding: 3px 5px; }
.rp-page .rp-mx .mx2-top.one { grid-template-columns: repeat(3, 1fr); }
/* 11-27 鼠标停留反馈统一（管理端、接线端共用）：能点的东西停上去都要看得出来；只用主题色和原有的红/灰；
   用 :where() 压低优先级，各处自己定过停留样式的（比如提醒卡片里的实色按钮）不受影响 */
.btn { transition: background .15s, box-shadow .15s, color .15s, transform .12s; }
.btn:where(:not(.primary, .ghost, .danger, .danger-fill)):hover { color: var(--p); background: color-mix(in srgb, var(--p) 6%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--p) 42%, var(--line)); }
.btn:where(:not(.primary, .ghost, .danger, .danger-fill)):hover svg.i { color: var(--p); }
.btn.primary:where(:not(:disabled)):hover { transform: translateY(-1px); }
.btn.primary:where(:not(:disabled)):active { transform: translateY(0); }
.switch i { transition: background .2s, box-shadow .2s; }
.switch:hover input:not(:disabled) + i { box-shadow: 0 0 0 4px color-mix(in srgb, var(--p) 14%, transparent); }
.switch:hover input:not(:checked):not(:disabled) + i { background: color-mix(in srgb, var(--ink) 22%, var(--gray-2, #cfd4dc)); }
.oa-tabs button { transition: color .15s, border-color .15s; }
.oa-tabs button:where(:not(.on)):hover { color: var(--ink); border-bottom-color: var(--gray-1); }
.rp-leave a { transition: background .15s, color .15s; }
.rp-leave a:hover { background: var(--p-soft); color: var(--p); }
.rp-leave a:hover b { color: var(--p); }
.rp-more-t { transition: color .15s; }
.rp-more-t:hover { color: var(--ink); }
.lv-kinds button.lv-hot:where(:not(.on)):hover { background: var(--bad-soft); }
.seg button { transition: background .15s, color .15s; }
.seg button:where(:not(.on)):hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.sn-site { transition: background .15s, box-shadow .15s; }
.sn-site:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--p) 40%, var(--line)); }

/* 11-27 公告卡片编辑器 —— 自由编辑：编辑框放在和访客窗口一样的浅灰底上，本身就是一张公告卡片（样式、主题色、高级样式都和访客那边一致） */
.rte-stage { background: #f3f4f7; padding: 18px 16px; max-height: 520px; overflow: auto; }
.rte-stage > .rte-view.lxc { min-height: 180px; max-height: none; overflow: visible; margin: 0 auto; animation: none; outline: none; color: var(--lxc-ink); font-size: 14px; }
.rte-stage > .rte-view.lxc.s-card { background: #fff; }
.rte-stage > .rte-view.lxc.s-plain { background: transparent; box-shadow: none; outline: 1px dashed #cfd5de; outline-offset: -1px; }
.rte-stage > .rte-view.lxc:focus { box-shadow: 0 6px 24px rgba(20,30,50,.07), 0 0 0 2px color-mix(in srgb, var(--p) 45%, transparent); }
.rte-stage > .rte-view.lxc.s-plain:focus { outline-color: color-mix(in srgb, var(--p) 55%, transparent); box-shadow: none; }
.rte-stage > .rte-view[hidden] { display: none; }
.rte-coding .rte-stage { display: none; }
.rte-stage .lxc-html a { color: var(--c); }
/* 提示框图标：一个按钮，点了弹出来选 */
.ce-icpick { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 7px; border: 0; border-radius: 8px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 12.5px; cursor: pointer; }
.ce-icpick:hover { box-shadow: inset 0 0 0 1px var(--p); color: var(--p); }
.ce-icpick .lxc-emo { font-size: 16px; }
.ce-icpick > svg { width: 13px; height: 13px; opacity: .6; }
/* 表情弹出框 */
.emo-pop { padding: 4px 4px 2px; }
.emo-pop-hd { font-size: 12px; color: var(--ink-3); padding: 2px 4px 8px; }
.emo-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emo-grid.emo-ic { grid-template-columns: repeat(5, 1fr); gap: 4px; }
.emo-b { border: 0; background: transparent; border-radius: 8px; height: 32px; display: grid; place-items: center; cursor: pointer; padding: 0; color: var(--ink-2); }
.emo-b .lxc-emo { font-size: 19px; }
.emo-ic .emo-b { height: auto; padding: 6px 2px 4px; gap: 3px; }
.emo-ic .emo-b small { font-size: 11px; color: var(--ink-3); }
.emo-b:hover { background: var(--hover); }
.emo-b.on { background: var(--p-soft); box-shadow: inset 0 0 0 1px var(--p); }

/* 11-27 预览下面的提示可以有好几条 */
.sp-prev-note { flex-direction: column; gap: 4px; }
.sp-prev-note > div { display: flex; gap: 6px; align-items: flex-start; }
/* 11-27 卡片没打开时编辑区不再变淡：左边和右边预览看起来要一样；没打开在标题开关和预览下面的提示里写着 */
.ce-body.ce-off, .ce-body.ce-off:hover { opacity: 1; }
/* 11-27 提示框颜色选择改成圆形 */
.ce-tone { border-radius: 50%; }
.rte-b .rte-emo { font-size: 17px; line-height: 1; }   /* 11-27 插入表情按钮直接显示表情 */

/* 11-27 套餐分档：没包含的功能 */
.feat-lock { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: 10px; background: var(--p-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--p) 22%, transparent); }
.feat-lock .fl-ic { flex: none; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--p); color: var(--on-p); }
.feat-lock .fl-ic svg.i { width: 17px; height: 17px; }
.feat-lock .fl-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.feat-lock .fl-t b { font-size: 13.5px; color: var(--ink); }
.feat-lock .fl-t span { font-size: 12.5px; color: var(--ink-3); }
.feat-lock .btn { flex: none; }
.fl-off { opacity: .5; filter: grayscale(.4); pointer-events: none; user-select: none; }
.feat-tag { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; margin-left: 6px; border: 0; border-radius: 10px; background: var(--p-soft); color: var(--p); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; vertical-align: 1px; white-space: nowrap; }
.feat-tag svg.i { width: 12px; height: 12px; }
.feat-tag:hover { background: var(--p); color: var(--on-p); }
@media (max-width: 640px) { .feat-lock { flex-wrap: wrap; } .feat-lock .btn { width: 100%; } }
.set-row[data-flock] > :not(.t) { opacity: .45; pointer-events: none; filter: grayscale(.4); }

/* 11-27 网站标签：名字放不下时显示"…"（以前文字直接放在 flex 里，省略号不生效，会切成半个字） */
.site-chip .sc-t { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; color: inherit; }
.chat-hd .who .site-chip .sc-t { display: block; font-size: inherit; color: inherit; gap: 0; }
/* 11-27 会话顶部一行放不下时谁先让：访客名先缩（鼠标移上去看全名）→ "在线 / 已离开"收成圆点 → "监控中"后面的客服名收起（鼠标移上去能看到）。网站名一直完整显示 */
/* 11-30 不再用容器查询（@container）：搜狗、UC 等旧内核把名字这一行高度算成 0，访客名不见了。宽度由 chats.js fitHdName 量好加 w400 / w330 / w240 */
.chat-hd .who { min-height: 22px; }   /* 名字这一行最少这么高：哪个浏览器都不会被压没 */
.chat-hd .who b > .site-chip { flex: none; }
.chat-hd .who.w400 b > .online-pill { font-size: 0 !important; gap: 0; padding: 0 3px; width: 14px; justify-content: center; }
.chat-hd .who.w400 b > .online-pill .dot { margin: 0; box-shadow: none; }
.chat-hd .who.w330 .mon-chip em { display: none; }
.chat-hd .who.w240 .mon-chip > span, .chat-hd .who.w240 .mon-chip em { display: none; }
.chat-hd .who.w240 .mon-chip { padding: 0 7px; }
/* 很窄（cols-tight）：网站名挪到第二行最前面；第二行本来没东西的也显示出来放它；"监控中"收成圆点 */
.chat-hd > .hd-facts > .hd-site2 { display: none; }   /* 11-28 以前写 .hd-facts > .hd-site2 压不过 .chat-hd .who span，宽的时候第二行也多出半个网站名 */
.chats.cols-tight .chat-hd > .hd-facts > .hd-site2 { display: inline-flex; flex: none; align-items: center; }
.chats.cols-tight .chat-hd.one > .hd-facts { display: flex; }
.chats.cols-tight .chat-hd .who .mon-chip > span, .chats.cols-tight .chat-hd .who .mon-chip em { display: none; }
.chats.cols-tight .chat-hd .who .mon-chip { padding: 0 7px; }
/* 11-28 客服反馈"复制账号按钮不见了"：窄的时候以前把访客名旁的复制按钮藏掉、关键信息放不下就整条挤到右边看不见。
   改成：复制按钮永远显示；放不下时先把名字和号码缩成"…"（鼠标移上去看全的，点复制照样复制完整的）；网站名排到关键信息后面 */
.chat-hd .who b > .hd-cp.nm { flex: none; }
.chat-hd > .hd-facts > .hd-fact { flex: none; min-width: 0; max-width: none; }   /* 11-29 不再自己缩：放不下时按 fitFacts 的顺序收（先收名称、再截长号码中间、再收进 +N） */
.chat-hd > .hd-facts > .hd-fact > .hd-cp { flex: none; }
.chat-hd > .hd-facts > .hd-fact > b { flex: 0 1 auto; min-width: 0; }
.chat-hd > .hd-facts > .hd-fact > em { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 20px; }   /* 特别窄时名字也缩，复制按钮一直在 */
.chats.cols-tight .chat-hd > .hd-facts > .hd-site2 { order: 99; flex: none; max-width: 100%; }   /* 网站名完整显示（11-27 定的），放不下就换到下一行 */
.chats.cols-tight .chat-hd > .hd-facts > .hd-site2 .site-chip { max-width: 100%; min-width: 0; }
/* 关键信息一行放不下就换行（顶栏跟着变高），不再藏在右边要左右滑才看得到 */
.chats.cols-tight .chat-hd .who b > .hd-nm { min-width: 2em; }

/* 11-28 设置面板里能直接开关的项 */
.ms-sw { pointer-events: none; }
.ms-sw.on i { background: var(--p); }
.ms-sw.on i::after { transform: translateX(16px); }
.alm-tb.sys-off .alm-row > .alm-cell:last-child { opacity: .4; pointer-events: none; }   /* 11-28 系统通知总开关关了：系统通知那一列变灰 */
/* 11-28 资料栏的访客名字：只显示（访客自己填的），不能改 */
.vc-name-ro { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); cursor: default; line-height: 1.5; }

/* 11-28 对访客免打扰：列表和会话顶部的小图标、灰色未读数、菜单里的说明 */
.citem .mute-mk, .mute-mk { display: inline-flex; flex: none; align-items: center; color: var(--ink-4); }
.citem .mute-mk svg { width: 13px; height: 13px; }
.mute-mk.hd-mute { margin: 0 2px; vertical-align: -2px; }
.mute-mk.hd-mute svg { width: 15px; height: 15px; }
.citem .badge.muted-b { background: var(--ink-4); }
.pop-note { padding: 4px 12px 8px; font-size: 12px; line-height: 1.5; color: var(--ink-3); max-width: 240px; white-space: normal; }

/* 11-28 服务通知页 */
.nt-list { padding: 0; overflow: hidden; }
.nt-it { display: flex; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--line-2, var(--line)); }
.nt-it:first-child { border-top: 0; }
.nt-it.unread { background: color-mix(in srgb, var(--p) 5%, transparent); }
.nt-it.past .nt-h b { color: var(--ink-2); }
.nt-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--p-soft); color: var(--p); }
.nt-ic.maint { background: color-mix(in srgb, var(--warn, #c27803) 14%, transparent); color: var(--warn, #c27803); }
.nt-ic svg { width: 17px; height: 17px; }
.nt-b { min-width: 0; flex: 1; }
.nt-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nt-h b { font-size: 14.5px; color: var(--ink); }
.nt-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); flex: none; }
.nt-t { margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.nt-body { margin-top: 8px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.nt-tip { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }
.nt-own { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; margin-bottom: 14px; }
.nt-own > svg { flex: none; width: 18px; height: 18px; color: var(--p); margin-top: 2px; }
.nt-own b { font-size: 14px; }

/* 11-28 AI 大升级：知识库其它问法、表格导入预览、按网站设接待方式、试一试细节、费用上限进度条、接线端 AI 协助 */
.kb-alts { display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0 2px; }
.kb-alts span { font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: 10px; background: var(--fill); color: var(--ink-2); }
.kb-alts span.more { background: none; color: var(--ink-3); padding: 0 2px; }
.ki-alt { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; font-size: 12.5px; }
.ki-alt .btn.ghost { margin-left: auto; }
#kiPaste { margin-top: 10px; }
.ki-pv { max-height: 340px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.ki-pv .tb { margin: 0; }
.ki-pv .tb th { position: sticky; top: 0; background: var(--card); z-index: 1; }
.ki-why { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.ai-sites { border-top: 1px solid var(--line-2); padding: 14px 0 4px; }
.ai-sites-hd { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.ai-sites-hd b { font-size: 14px; }
.ai-sites-hd .muted { font-size: 12.5px; }
.ai-sites .tb td { vertical-align: middle; }
.ai-sites .select.sm { width: 190px; max-width: 100%; height: 32px; font-size: 13px; }
.ai-now { border-top: 1px solid var(--line-2); padding: 12px 0 2px; display: flex; gap: 8px; align-items: center; font-size: 12.5px; }
.ai-lines { width: 100%; font-size: 13.5px; line-height: 1.75; }
.ai-trysec .sec-hd .acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ai-trysec .select.sm { width: 160px; height: 32px; font-size: 13px; }
.ai-chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.ai-chat:empty { display: none; }
.ai-chat .ai-ans { margin-top: 0; max-width: 88%; }
.ai-cv { display: flex; justify-content: flex-end; }
.ai-cv span { background: var(--p); color: #fff; padding: 8px 12px; border-radius: 14px 14px 4px 14px; max-width: 70%; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.ai-ans .who .tag { margin-left: 4px; font-weight: 500; }
.ai-why { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; }
.ai-why dt { color: var(--ink-3); white-space: nowrap; }
.ai-why dd { margin: 0; color: var(--ink-2); line-height: 1.6; }
.ai-why dd.pre { white-space: pre-wrap; }
.ai-stats b em { font-style: normal; font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.ai-stats b em.usd { color: var(--p); margin-left: 10px; font-size: 15px; font-weight: 650; }
.ai-capbar { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; margin-top: 6px; width: 220px; max-width: 100%; }
.ai-capbar i { display: block; height: 100%; background: var(--p); border-radius: 3px; transition: width .3s; }
.ai-capbar.warn i { background: var(--warn); } .ai-capbar.full i { background: var(--bad); }
.ai-capbar + small { font-size: 12px; color: var(--ink-3); }
@media (max-width: 760px) { .ai-sites .tb thead { display: none; } .ai-sites .tb tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 0; } .ai-sites .tb td { border: 0; padding: 0; } .ai-sites .tb td:first-child { grid-column: 1 / -1; font-weight: 600; } .ai-chat .ai-ans { max-width: 100%; } }
.hd-aist { height: 32px; flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; border-radius: 9px; border: 1px solid color-mix(in srgb, #7c5cf0 30%, transparent); background: color-mix(in srgb, #7c5cf0 9%, var(--card)); color: #6a48e6; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.hd-aist svg.i { width: 14px; height: 14px; }
.hd-aist em { font-style: normal; font-size: 11px; font-weight: 600; padding: 0 6px; line-height: 17px; border-radius: 9px; background: #7c5cf0; color: #fff; }
.hd-aist.off { border-color: var(--line); background: var(--card); color: var(--ink-3); font-weight: 500; }
.hd-aist.off em { background: var(--fill); color: var(--ink-3); }
.hd-aist:hover { filter: brightness(.97); }
.chats.cols-tight .hd-aist .hd-bl { display: none; }
.aim-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.aim-row:first-child, .info-box + .aim-row { border-top: 0; }
.aim-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aim-row b { font-size: 14px; }
.aim-row > div > span { font-size: 12px; color: var(--ink-3); }
.aim-row .select.sm { width: 200px; flex: none; height: 32px; font-size: 13px; }
.aim-def { background: var(--fill); margin: 0 -12px; padding: 11px 12px; border-radius: 10px; border-top: 0; }
.aim-now { font-size: 12px; color: var(--ink-3) !important; }
.aim-now.on { color: #6a48e6 !important; }
.aim-tip { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.aim-tip svg.i { width: 14px; height: 14px; flex: none; margin-top: 3px; }
.ai-log td:last-child { white-space: nowrap; width: 1%; }

/* ===== 11-29 AI 第二批：待改进、聊天提炼、文章编辑框参考栏、AI 答错了 ===== */
.confirm-ic.warn { background: var(--warn-soft); color: var(--warn); }
.oa-tabs button i.warn { background: var(--warn-soft); color: var(--warn); }
.gp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 10px; }
.gp-bar .select { width: auto; min-width: 120px; }
.gp-bar .seg i, .gp-cnt { font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-left: 2px; }
.gp-note { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; color: var(--ink-3); margin: 0 0 10px; line-height: 1.6; }
.gp-note .i { width: 14px; height: 14px; flex: none; margin-top: 3px; }
.gp-note b { color: var(--ink-2); }
.gp-cln { font-style: normal; font-size: 11px; line-height: 16px; min-width: 16px; padding: 0 4px; border-radius: 8px; background: var(--p); color: #fff; margin-left: 2px; }
.gp-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card, #fff); }
.gp-row, .mn-row { display: flex; gap: 12px; padding: 12px 14px; align-items: flex-start; }
.gp-row + .gp-row, .mn-row + .mn-row { border-top: 1px solid var(--line); }
.gp-row.again { background: color-mix(in srgb, var(--warn-soft) 55%, transparent); }
.gp-row .t, .mn-row .t { flex: 1; min-width: 0; }
.gp-row .t { cursor: pointer; }
.gp-row .t > b { font-size: 14px; }
.gp-row .t:hover > b { color: var(--p); }
.gp-row .acts, .mn-row .acts { display: flex; gap: 6px; flex: none; align-items: center; flex-wrap: wrap; justify-content: flex-end; max-width: 46%; }
.gp-row .kb-meta, .mn-row .kb-meta { margin-top: 6px; }
.gp-n { flex: none; width: 46px; text-align: center; cursor: pointer; padding-top: 1px; }
.gp-n b { display: block; font-size: 18px; line-height: 22px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.gp-n span { font-size: 11.5px; color: var(--ink-3); }
.gp-row.again .gp-n b { color: var(--warn); }
.gpd-arts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 8px; background: var(--fill); margin-bottom: 12px; font-size: 13px; color: var(--ink-2); }
.gpd-arts .i { width: 15px; height: 15px; }
.gpd-list { display: flex; flex-direction: column; gap: 10px; max-height: 58vh; overflow: auto; }
.gpd-it { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.gpd-hd { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 6px; }
.gpd-hd .btn { margin-left: auto; }
.gpd-l { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; font-size: 13px; line-height: 1.6; padding: 2px 0; }
.gpd-l > span { color: var(--ink-3); font-size: 12px; padding-top: 1px; }
.gpd-l p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.gpd-l.ok p { color: var(--ok); }
.ga-want .lbl { font-size: 12.5px; color: var(--ink-3); }
.ga-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ga-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 3px 10px 3px 7px; border-radius: 14px; background: var(--fill); cursor: pointer; }
.ga-chip input { margin: 0; }
.ga-list { margin-top: 10px; max-height: 44vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.ga-it { display: flex; gap: 10px; padding: 10px 12px; cursor: pointer; align-items: flex-start; }
.ga-it + .ga-it { border-top: 1px solid var(--line); }
.ga-it:hover { background: var(--fill); }
.ga-it.on { background: var(--p-soft); }
.ga-it input { margin-top: 3px; }
.ga-it b { font-size: 13.5px; }
.ga-it p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.mn-form { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding: 6px 0 12px; }
.mn-f { display: flex; align-items: center; gap: 10px; }
.mn-f .lbl { font-size: 13px; color: var(--ink-2); }
.mn-f .lbl small { display: block; font-size: 11.5px; color: var(--ink-3); }
.mn-good { cursor: pointer; }
.mn-good input { width: 16px; height: 16px; }
.mn-dates { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.mn-dates .input { width: 140px; }
.mn-est { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; padding: 12px 14px; border-radius: 10px; background: var(--fill); margin-bottom: 12px; font-size: 13.5px; }
.mn-est-t .muted { font-size: 12.5px; margin-left: 4px; }
.mn-prog { padding: 12px 14px; border-radius: 10px; background: var(--p-soft); margin-bottom: 12px; }
.mn-prog-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.mn-prog-hd .btn { margin-left: auto; }
.mn-prog p { margin: 8px 0 0; font-size: 12px; }
.mn-bar { width: 100%; height: 8px; margin-top: 10px; background: color-mix(in srgb, var(--p) 14%, #fff); }
.mn-spin { width: 14px; height: 14px; border: 2px solid var(--p); border-right-color: transparent; border-radius: 50%; animation: rot .8s linear infinite; flex: none; }
.mn-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; margin-right: 6px; }
.mn-ck { padding-top: 2px; cursor: pointer; }
.mn-hd { display: flex; align-items: center; gap: 8px; }
.mn-hd b { font-size: 14px; }
.mn-c { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.65; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.mn-c.open { -webkit-line-clamp: unset; display: block; }
.mn-note { margin-top: 6px; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.6; display: flex; flex-direction: column; gap: 2px; }
.mn-note.add { background: var(--info-soft); }
.mn-note.conflict { background: var(--warn-soft); }
.mn-note b { font-weight: 600; }
.mn-lk { border: 0; background: none; padding: 0; font: inherit; color: var(--p); cursor: pointer; }
.mn-lk:hover { text-decoration: underline; }
.ai-rt b { display: flex; gap: 14px; align-items: center; }
.ai-rt b span { display: inline-flex; align-items: center; gap: 4px; }
.ai-rt b .i { width: 17px; height: 17px; }
.ai-rt .up { color: var(--ok); }
.ai-rt .dn { color: var(--bad); }
.ai-lrt { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; }
.ai-lrt .i { width: 13px; height: 13px; }
.ai-lrt.up { color: var(--ok); }
.ai-lrt.dn { color: var(--bad); }
/* 文章编辑框：右边的参考栏 */
.kbe-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.kbe-ref { position: sticky; top: 0; max-height: 64vh; overflow: auto; border-left: 1px solid var(--line); padding-left: 18px; }
.kbe-ref-hd { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 8px; }
.kbe-ref-hd .i { width: 14px; height: 14px; }
.kbe-ref-it { border-radius: 10px; background: var(--fill); padding: 10px 12px; }
.kbe-ref-it + .kbe-ref-it { margin-top: 10px; }
.kbe-ref-l { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; margin-bottom: 6px; }
.kbe-ref-t { font-size: 13px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; color: var(--ink-2); max-height: 260px; overflow: auto; }
@media (max-width: 760px) { .kbe-grid { grid-template-columns: 1fr; } .kbe-ref { position: static; border-left: 0; padding-left: 0; max-height: none; } .gp-row, .mn-row { flex-wrap: wrap; } .gp-row .acts, .mn-row .acts { max-width: none; width: 100%; justify-content: flex-start; padding-left: 58px; } }
/* AI 答错了 */
.aw-quote { font-size: 13px; line-height: 1.65; padding: 10px 12px; border-radius: 10px; background: var(--fill); color: var(--ink-2); white-space: pre-wrap; margin-bottom: 14px; max-height: 160px; overflow: auto; border-left: 3px solid #7c5cf0; }
.aw-why { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.aw-why button { border: 1px solid var(--line); background: var(--card, #fff); border-radius: 16px; padding: 5px 12px; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.aw-why button.on { border-color: var(--p); background: var(--p-soft); color: var(--p); font-weight: 600; }
.aw-done { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); }
.aw-done .i { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.aw-done b { display: block; color: var(--ink); }
.aw-done span { font-size: 13px; color: var(--ink-2); }
.aw-arts { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.aw-art { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card, #fff); font: inherit; font-size: 13.5px; cursor: pointer; text-align: left; color: var(--ink); }
.aw-art:hover { border-color: var(--p); color: var(--p); }
.aw-art .i { width: 15px; height: 15px; flex: none; }
/* 接线端：AI 回答下面访客的打分、谁标了答错 */
.m-airt { display: inline-flex; align-items: center; gap: 3px; }
.m-airt .i { width: 12px; height: 12px; }
.m-airt.up { color: var(--ok); }
.m-airt.dn { color: var(--bad); }
.m-aiact { display: inline-flex; align-items: center; gap: 3px; }
.m-aiact .i { width: 12px; height: 12px; }
.m-aiact b { font-weight: 600; }
.m-aiact em { font-style: normal; margin-left: 2px; }
.m-aiact.ok { color: var(--ok); } .m-aiact.warn em { color: var(--warn); } .m-aiact.bad em { color: var(--bad); }
.aact-res { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.aact-sec + .aact-sec { margin-top: 16px; }
.aact-sec h4 { margin: 0 0 8px; font-size: 13px; }
.aact-sec .sub { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.aact-kv { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.aact-kv > span { color: var(--ink-3); word-break: break-all; }
.aact-kv > div { word-break: break-word; }
.aact-kv code { font-size: 12px; white-space: pre-wrap; }
.aact-ul { margin: 0; padding-left: 16px; }
.m-aiw { color: var(--warn); }

/* 11-29 第三批：回答长短三档（卡片 + 右边几行灰条示意） */
.ai-lens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ai-len { position: relative; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; background: var(--card); transition: border-color .15s, background .15s, box-shadow .15s; }
.ai-len:hover { border-color: var(--p-2); }
.ai-len input { position: absolute; opacity: 0; pointer-events: none; }
.ai-len:has(input:checked) { border-color: var(--p); background: var(--p-soft); box-shadow: 0 0 0 1px var(--p) inset; }
.ai-len:has(input:focus-visible) { outline: 2px solid var(--p); outline-offset: 2px; }
.ai-len-t { flex: 1; min-width: 0; }
.ai-len-t b { display: block; font-size: 13.5px; font-weight: 600; }
.ai-len-t small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; line-height: 1.45; }
.ai-len-pic { flex: none; width: 44px; display: flex; flex-direction: column; gap: 3px; padding: 6px 7px; border-radius: 7px; background: var(--line-2); }
.ai-len-pic i { display: block; height: 3px; border-radius: 2px; background: var(--ink-4); }
.ai-len:has(input:checked) .ai-len-pic { background: var(--card); }
.ai-len:has(input:checked) .ai-len-pic i { background: var(--p); }
.ai-len-sites { margin-bottom: 6px; }
#aiTryLen { margin-right: 8px; }
#aiTryLen.dim { opacity: .45; pointer-events: none; }
@media (max-width: 720px) { .ai-lens { grid-template-columns: 1fr; } }

/* 11-29 AI 报表 */
.air-row3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr); gap: 14px; margin-bottom: 16px; }
@media (max-width: 1200px) { .air-row3 { grid-template-columns: 1fr 1fr; } .air-row3 .air-help { grid-column: 1 / -1; } }
@media (max-width: 760px) { .air-row3 { grid-template-columns: 1fr; } }
.air-arts .sub { margin-bottom: 10px; }
.air-art { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) 34px; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; margin: 0 -8px; width: calc(100% + 16px); border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13px; color: var(--ink); text-align: left; cursor: pointer; }
.air-art:hover:not(:disabled) { background: var(--hover); }
.air-art:disabled { cursor: default; }
.air-art .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.air-art .trk { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.air-art .trk i { display: block; height: 100%; border-radius: 4px; background: var(--p); }
.air-art.bad .trk i { background: var(--bad); }
.air-art b { text-align: right; font-variant-numeric: tabular-nums; }
.air-none { padding: 26px 0 18px; text-align: center; font-size: 13px; color: var(--ink-3); }
.air-go { display: flex; align-items: center; gap: 6px; margin-top: 16px; padding: 10px 12px; border-radius: 9px; background: color-mix(in srgb, #f08c00 9%, var(--card)); color: var(--ink-2); font-size: 12.5px; text-decoration: none; }
.air-go:hover { background: color-mix(in srgb, #f08c00 15%, var(--card)); color: var(--ink); }
.air-go svg.i { width: 15px; height: 15px; flex: none; color: #f08c00; }
.air-go svg.i:last-child { margin-left: auto; color: var(--ink-3); }
.air-help .sub { margin-bottom: 6px; }
.air-acts { margin-top: 16px; }
.air-acts-m { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; margin: 6px 0 12px; }
.air-acts-m .air-mini { border-top: 0; }
@media (max-width: 900px) { .air-acts-m { grid-template-columns: 1fr 1fr; } }
.air-mini { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 10px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.air-mini:first-of-type { border-top: 0; }
.air-mini span { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.air-mini b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.air-mini b small { margin-left: 3px; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.air-mini em { grid-column: 1 / -1; font-style: normal; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.air-dn .rp-dn-r { cursor: help; }
.k2-ft .k2-lg svg.i { width: 13px; height: 13px; }
html.ui2 .air-dn { flex-wrap: wrap; row-gap: 16px; }
html.ui2 .air-dn .rp-dn-c { margin: 0 auto; }
html.ui2 .air-dn .rp-dn-l { min-width: 200px; }
.replied-tag.aihold.paused { background: var(--fill); color: var(--ink-3); }
/* 11-29 全托管：AI 叫人（红）、访客说没帮助（黄）、客服刚回复过 AI 让开（灰绿） */
.replied-tag.aineed { background: var(--bad-soft); color: var(--bad); font-weight: 600; }
.replied-tag.aineed.soft { background: var(--warn-soft); color: var(--warn); font-weight: 500; }
.replied-tag.aihold.human { background: var(--ok-soft); color: var(--ok); }
.c-queued.c-cohost { background: var(--p-soft); }
.c-queued.c-cohost > svg { color: var(--p); flex: none; }
.c-queued.c-cohost.need { background: var(--bad-soft); box-shadow: 0 0 0 1px color-mix(in srgb, var(--bad) 35%, transparent) inset; }
.c-queued.c-cohost.need > svg, .c-queued.c-cohost.need b { color: var(--bad); }
.chat-hd.nm-tight .hd-aist .hd-bl { display: none; }   /* 11-29 名字放不下时 AI 按钮收起文字 */
.ak-health { margin: 0 0 14px; max-width: 1000px; }   /* 11-29 AI 连续出错提示 */
/* 11-29 "警告"提示框一直没有自己的颜色（显示成蓝色普通提示）：没填密钥、AI 暂停、AI 连续出错、付款测试模式等都用这个 */
.info-box.warn { background: var(--warn-soft); color: var(--warn); }
.info-box.warn a { color: inherit; text-decoration: underline; }
.info-box.warn small.muted { color: color-mix(in srgb, var(--warn) 75%, var(--ink-3)); }

/* 11-29 会话顶部两层：上层 头像 + 名字 + 按钮，下层 关键信息占满一整行（以前挤在名字下面、和按钮抢地方，窄了排成四行、按钮单独占一列） */
.chat-hd.hd2 { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; align-content: center; row-gap: 4px; height: auto; min-height: var(--dc-hd, 64px); padding-top: 3px; padding-bottom: 3px; }
.chat-hd.hd2 > .av { grid-column: 1; grid-row: 1 / 3; }   /* 头像跨两行，和原来一样在左边居中；顶栏高度不变，和左右两栏的标题底线对齐 */
.chat-hd.hd2 > .who { grid-column: 2; grid-row: 1; }
.chat-hd.hd2 > .acts { grid-column: 3; grid-row: 1; }
.chat-hd.hd2 > .hd-facts { grid-column: 2 / 4; grid-row: 2; }
.chat-hd > .hd-facts { margin: 0; display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 22px; overflow: hidden; white-space: nowrap; -webkit-mask-image: none; mask-image: none; }
.chat-hd:not(.hd2) > .hd-facts { display: none; }
.chat-hd > .hd-facts.lbl-off > .hd-fact > em { display: none; }   /* 放不下：先收起名称，只留内容（鼠标放上去看名称） */
.chat-hd > .hd-facts.lbl-off > .hd-fact > b { padding-left: 9px; }
.chat-hd > .hd-facts.fx-sq > .hd-fact:not([hidden]) { flex: 0 1 auto; }
.chat-hd > .hd-facts.fx-sq > .hd-fact > b { min-width: 0; }   /* 每条最少多宽由 fitFacts 量好写在 style 上 */   /* 缩到最小也留几个字，复制按钮照样复制完整的 */
.chat-hd > .hd-facts.fx-sq > .hd-fact > b[data-full], .chat-hd > .hd-facts.fx-sq > .hd-fact:has(> b[data-full]) { flex-shrink: 0; min-width: auto; }   /* 已经截成"8373…6366"的不再缩，免得变成"8373…83…" */
.chat-hd > .hd-facts > .hd-more[hidden] { display: none; }
.chat-hd > .hd-facts > .hd-fact[hidden], .chat-hd > .hd-facts > .hd-site2[hidden] { display: none !important; }
.chat-hd > .hd-facts > .hd-more { order: 98; flex: none; height: 22px; padding: 0 9px; border: 0; border-radius: 6px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-family: inherit; font-size: 12px; font-weight: 500; line-height: 22px; cursor: pointer; }
.chat-hd > .hd-facts > .hd-more:hover { color: var(--p); box-shadow: inset 0 0 0 1px var(--p); }

/* 11-29 接线端搬到独立窗口后，原来的标签页 */
.dw-box { max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dw-box .dw-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--p-soft); color: var(--p); }
.dw-box .dw-ic svg.i { width: 28px; height: 28px; }
.dw-box h1 { font-size: 20px; margin: 6px 0 0; }
.dw-box p { margin: 0 0 8px; line-height: 1.6; }
.dw-box .btn.lg { min-width: 220px; justify-content: center; }
.dw-box .btn.ghost { min-width: 220px; justify-content: center; }
.dw-box .dw-no { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.dw-box .dw-no:hover { color: var(--p); }

/* 11-30 管理端「我的工作 › 首页」（home.js）：接线端卡片 + 四个数字 + 待补小结 */
.wkh-hero { display: flex; align-items: center; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin: 4px 0 16px; }
.wkh-hero .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--p-soft); color: var(--p); flex: none; }
.wkh-hero .ic svg { width: 26px; height: 26px; }
.wkh-hero .tx { flex: 1; min-width: 0; }
.wkh-hero .tx b { font-size: 17px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wkh-hero .tx p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.wkh-chip { font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px; background: var(--line-2); color: var(--muted); }
.wkh-chip.ok { background: rgba(22, 163, 74, .1); color: #15803d; }
.wkh-chip.warn { background: rgba(217, 119, 6, .1); color: #b45309; }
.wkh-act { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.wkh-auto { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); cursor: pointer; }
html.ui2 .k2s.wkh-k { margin-bottom: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wkh-sum .rp-card-hd { align-items: center; }
.wkh-more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--p); text-decoration: none; }
.wkh-more svg { width: 14px; height: 14px; }
.wkh-more:hover { text-decoration: underline; }
.wkh-sum td .btn { height: 30px; }
.wkh-held { display: inline-block; margin-left: 8px; font-size: 11.5px; font-weight: 500; padding: 1px 7px; border-radius: 999px; background: rgba(217, 119, 6, .1); color: #b45309; vertical-align: 1px; cursor: help; }
.xfer-free { color: var(--muted); }
.wkh-sum .wkh-q { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wkh-rest { padding: 12px 20px 14px; font-size: 13px; color: var(--muted); }
.wkh-rest a { color: var(--p); }
.wkh-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 26px 20px 30px; color: var(--muted); font-size: 13.5px; }
.wkh-empty svg { width: 18px; height: 18px; color: #16a34a; }
@media (max-width: 1100px) { html.ui2 .k2s.wkh-k { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { html.ui2 .k2s.wkh-k { gap: 10px; } html.ui2 .wkh-k .k2 { padding: 14px 14px 12px; } .wkh-sum .tb th:nth-child(4), .wkh-sum .tb td:nth-child(4) { display: none; } .wkh-sum .wkh-q { max-width: 120px; } }
@media (max-width: 700px) {
  .app.has-sub.wk-mode, .app.has-sub.wk-mode.sub-off { grid-template-columns: 56px minmax(0, 1fr); }
  .app.has-sub.wk-mode .rail-btn { width: 46px; }
  .app.wk-mode .subnav { position: fixed; left: 56px; top: 0; bottom: 0; width: 220px; z-index: 60; box-shadow: 8px 0 24px rgba(15, 23, 42, .16); }
  .app.wk-mode.sub-off .subnav { visibility: hidden; }
  .app.wk-mode .view .page { padding-left: 14px; padding-right: 14px; }
  .wkh-page .page-hd h1 { font-size: 22px; }
  .wkh-hero { flex-wrap: wrap; padding: 18px; }
  .wkh-hero .ic { display: none; }
  .wkh-sum .tb th, .wkh-sum .tb td { padding-left: 10px; padding-right: 10px; }
  .wkh-sum .tb td .user > .av { display: none; }
  .wkh-act { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .wkh-sum .tb th:nth-child(3), .wkh-sum .tb td:nth-child(3), .wkh-sum .tb th:nth-child(5), .wkh-sum .tb td:nth-child(5) { display: none; }
}

/* 11-30 角色身份：管理人员 / 普通客服（角色页、新建角色、客服管理） */
.rl-it small.rl-kind { flex: none; font-size: 11px; line-height: 16px; padding: 0 5px; border-radius: 4px; background: var(--line-2); color: var(--ink-3); }
.rl-it small.rl-kind.k-lead { background: rgba(124, 92, 255, .12); color: #6d4fe0; }
.rk-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rk-opt { display: flex; align-items: flex-start; gap: 10px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.rk-opt:hover { border-color: var(--p-soft-2); }
.rk-opt.on { border-color: var(--p); box-shadow: 0 0 0 3px rgba(var(--p-rgb), .12); }
.rk-opt .rk-dot { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); }
.rk-opt.on .rk-dot { border: 5px solid var(--p); }
.rk-opt span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rk-opt b { font-size: 14px; font-weight: 600; }
.rk-opt small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.rk-opts.sm .rk-opt { padding: 10px 12px; }
.kind-tag { display: inline-block; margin-left: 6px; font-size: 11.5px; line-height: 18px; padding: 0 6px; border-radius: 4px; background: var(--line-2); color: var(--ink-3); vertical-align: 1px; white-space: nowrap; }
.kind-tag.k-lead { background: rgba(124, 92, 255, .12); color: #6d4fe0; }
:root[data-theme="dark"] .rl-it small.rl-kind.k-lead, :root[data-theme="dark"] .kind-tag.k-lead { color: #b3a2ff; }
@media (max-width: 700px) { .rk-opts { grid-template-columns: 1fr; } }

/* 11-30 接待风格（两个选项）+ 人工联系方式 */
.ai-lens.ai-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ai-len-sites .tb td:nth-child(2), .ai-len-sites .tb td:nth-child(3) { width: 200px; }
.ct-list { display: flex; flex-direction: column; gap: 10px; }
.ct-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 32px; gap: 14px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.ct-qr { position: relative; width: 84px; height: 84px; }
.ct-qr img { width: 84px; height: 84px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: block; }
.ct-qr-acts { position: absolute; inset: auto 4px 4px auto; display: flex; gap: 3px; opacity: 0; transition: opacity .15s; }
.ct-qr:hover .ct-qr-acts, .ct-qr:focus-within .ct-qr-acts { opacity: 1; }
.ct-qbtn { width: 24px; height: 24px; border-radius: 6px; border: 0; background: rgba(20,24,32,.72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ct-qbtn svg { width: 13px; height: 13px; }
.ct-qnew { width: 84px; height: 84px; border: 1.5px dashed var(--line); border-radius: 8px; background: var(--line-2); color: var(--ink-3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font: inherit; font-size: 11.5px; cursor: pointer; transition: border-color .15s, color .15s; }
.ct-qnew:hover { border-color: var(--p); color: var(--p); }
.ct-qnew svg { width: 20px; height: 20px; }
.ct-f { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ct-l1 { display: grid; grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.ct-link { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.ct-sites { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--ink-3); }
.ct-site { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); cursor: pointer; }
.ct-sites em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.ct-empty { padding: 14px 16px; border: 1px dashed var(--line); border-radius: 10px; color: var(--ink-3); font-size: 13px; }
@media (max-width: 760px) { .ai-lens.ai-styles { grid-template-columns: 1fr; } .ct-row { grid-template-columns: 64px minmax(0, 1fr) 32px; } .ct-qr, .ct-qr img, .ct-qnew { width: 64px; height: 64px; } .ct-l1 { grid-template-columns: 1fr; } }
/* 11-30 F 版风格：网站名放在最后一句话前面（经典版不显示，F 版在 desk/skin-f.css 里打开） */
.citem .l2s { display: none; }
.hd-ib .hd-lbl { display: none; }
.vc-nums { display: none; }   /* 11-30 F 版名片里的三个数字，经典版不显示 */
/* 11-30 右栏切页签（资料 / 快捷 / 历史 / 小结）：新页签的内容轻轻淡入，不是一下子换掉 */
#sidePane.st-sw > .spane:not([hidden]) { animation: stSw .18s ease-out; }
@keyframes stSw { from { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { #sidePane.st-sw > .spane:not([hidden]) { animation: none; } }

/* 12-01 网站切换：首字头像 + 名称 + 域名；点开是带搜索的网站面板（颜色都跟主题色 / 深浅色走，头像用每个网站自己的主题色） */
.sn-av { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 600; color: #fff; background: var(--sc, #9aa3ad); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); letter-spacing: 0; }
.sn-site { height: 52px; gap: 10px; padding: 0 10px 0 10px; border-radius: 10px; margin: 10px 0 8px; }
.sn-site .sn-av { width: 30px; height: 30px; border-radius: 8px; }
.sn-site .sn-st { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; overflow: hidden; white-space: normal; font-weight: 400; }
.sn-site .sn-st b { font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
.sn-site .sn-st small { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
.sn-site .sn-st em { font-style: normal; font-size: 11.5px; color: var(--bad); }
.sn-site > svg { transition: transform .18s; }
.sn-site.pop-open { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--p); }
.sn-site.pop-open > svg { transform: rotate(180deg); color: var(--p); }
.pop.snp-pop { padding: 0; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-l), 0 0 0 1px var(--line); }
.snp { display: flex; flex-direction: column; }
.snp-q { display: flex; align-items: center; gap: 8px; margin: 8px 8px 4px; padding: 0 10px; height: 36px; border-radius: 8px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.snp-q:focus-within { background: var(--card); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--p) 55%, var(--line)), 0 0 0 3px var(--p-soft); }
.snp-q svg { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.snp-q input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 13px; color: var(--ink); }
.snp-list { max-height: min(392px, 56vh); overflow-y: auto; padding: 6px; }
.snp-it { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 6px 10px 6px 8px; border: 0; border-radius: 8px; background: none; text-align: left; color: var(--ink); cursor: pointer; transition: background .12s; }
.snp-it + .snp-it { margin-top: 1px; }
.snp-it:hover, .snp-it.kb { background: var(--hover); }
.snp-it.on { background: var(--p-soft); }
.snp-it.off .sn-av { opacity: .45; }
.snp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.snp-t b { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
.snp-it.on .snp-t b { color: var(--p); font-weight: 600; }
.snp-it.off .snp-t b { color: var(--ink-3); }
.snp-t small { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
.snp-it em { font-style: normal; font-size: 11px; color: var(--bad); background: var(--bad-soft); padding: 1px 6px; border-radius: 5px; flex: none; }
.snp-ck { flex: none; display: grid; place-items: center; color: var(--p); }
.snp-ck svg { width: 16px; height: 16px; stroke-width: 2.4; }
.snp-none { padding: 22px 10px; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.snp-ft { display: flex; gap: 4px; padding: 6px; border-top: 1px solid var(--line-2); background: var(--fill-2); }
.snp-act { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border: 0; border-radius: 8px; background: none; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: background .12s, color .12s; }
.snp-act:hover { background: var(--hover); color: var(--ink); }
.snp-act svg { width: 15px; height: 15px; }
.snp-act span { font-size: 11.5px; color: var(--ink-3); background: var(--line-2); padding: 0 6px; border-radius: 8px; line-height: 17px; }

/* ---------- 12-01 能办的事（AI 查询动作） ---------- */
.aact-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.aact-row { display: flex; gap: 12px; padding: 12px 14px; align-items: flex-start; }
.aact-row + .aact-row { border-top: 1px solid var(--line); }
.aact-row.off { background: var(--fill); }
.aact-row .t { flex: 1; min-width: 0; cursor: pointer; }
.aact-row .t b { font-size: 14px; }
.aact-row .t p { margin: 4px 0 6px; color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.aact-row .acts { display: flex; align-items: center; gap: 10px; }
.aact-empty { margin-bottom: 14px; }
.aact-empty > b { display: block; font-size: 13px; margin-bottom: 10px; }
.aact-tpls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.aact-tc { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, background .15s; }
.aact-tc:hover { border-color: var(--p); background: var(--p-soft); }
.aact-tc b { font-size: 14px; }
.aact-tc span { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }
.aact-tc.blank { border-style: dashed; }
.aact-tc.blank .i { width: 16px; height: 16px; color: var(--p); }
.aact-log td { vertical-align: middle; }
.aact-ed section { padding: 16px 0; border-top: 1px solid var(--line); }
.aact-ed section:first-of-type { border-top: 0; padding-top: 4px; }
.aact-ed h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; }
.aact-ed h4 i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--p-soft); color: var(--p); font-style: normal; font-size: 12px; font-weight: 600; }
.aact-ed section > .sub { margin: -4px 0 10px; font-size: 12.5px; color: var(--ink-3); }
.aact-tplbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; margin-bottom: 8px; border-radius: 8px; background: var(--fill); font-size: 13px; }
.aact-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.aact-secret:not(:placeholder-shown) { -webkit-text-security: disc; }   /* 请求头的值（密钥）：用圆点遮住，但不用密码框（免得浏览器存密码、自动填充） */
.aact-ps, .aact-hs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.aact-p { display: grid; grid-template-columns: 1fr 1fr 150px auto 32px; gap: 8px; align-items: center; }
.aact-h { display: grid; grid-template-columns: 1fr 1.6fr 32px; gap: 8px; align-items: center; }
.aact-req, .aact-ck { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.aact-none { padding: 10px 12px; border: 1px dashed var(--line); border-radius: 8px; color: var(--ink-3); font-size: 13px; }
.aact-url { display: flex; gap: 8px; align-items: center; }
.aact-url .input { flex: 1; }
.aact-ed .hint { margin: 6px 0 10px; font-size: 12px; color: var(--ink-3); }
.aact-ed .hint code { font-size: 12px; background: var(--fill); padding: 1px 5px; border-radius: 4px; }
.aact-tv { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.aact-tv .field { margin: 0; min-width: 180px; }
.aact-tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; font-size: 13px; }
.aact-err { color: var(--bad); }
.aact-fhd, .aact-f { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 190px 150px; gap: 10px; align-items: center; }
.aact-fhd { margin-top: 12px; padding: 0 10px 6px; font-size: 12px; color: var(--ink-3); }
.aact-fhd span:last-child, .aact-f .aact-ck { justify-self: end; }
.aact-fs { border: 1px solid var(--line); border-radius: 8px; max-height: 300px; overflow: auto; }
.aact-f { padding: 7px 10px; font-size: 13px; }
.aact-f + .aact-f { border-top: 1px solid var(--line); }
.aact-f.on { background: var(--p-soft); }
.aact-f code { font-size: 12px; word-break: break-all; background: none; padding: 0; }
.aact-f > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aact-rawhd { margin: 12px 0 6px; font-size: 12px; color: var(--ink-3); }
.aact-raw, .aact-seen { margin: 0; padding: 10px 12px; max-height: 180px; overflow: auto; background: var(--fill); border-radius: 8px; font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-all; }
.aact-vs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aact-match { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; }
.aact-match .input { width: 200px; }
.aact-ed .info-box { margin-top: 12px; }
.aact-sites { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.aact-on { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.aact-try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.aact-try + .aact-try { margin-top: 8px; }
.aact-try .aact-seen { flex-basis: 100%; max-height: 140px; }
.ai-try .aact-mem { width: 190px; flex: none; }
@media (max-width: 900px) {
  .aact-tpls, .aact-vs { grid-template-columns: 1fr 1fr; }
  .aact-p { grid-template-columns: 1fr 1fr; }
  .aact-fhd { display: none; }
  .aact-f { grid-template-columns: 1fr auto; }
  .aact-f > span, .aact-f [data-fl] { grid-column: 1; }
}
.aact-f .aact-nolbl { color: var(--ink-3); font-size: 12px; }
/* 12-01 能办的事：Shopify 店铺连接状态 */
.aact-shop { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.aact-shop > .i { width: 22px; height: 22px; flex: none; color: var(--ink-3); }
.aact-shop.on { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); background: color-mix(in srgb, var(--ok) 6%, var(--card)); }
.aact-shop.on > .i { color: var(--ok); }
.aact-shop > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.aact-shop b { font-size: 13.5px; }
.aact-shop span { font-size: 12.5px; color: var(--ink-3); }
.kb-meta .tag .i { width: 11px; height: 11px; margin-right: 3px; vertical-align: -1px; }
/* 12-01 接线端资料栏：Shopify 顾客卡片 */
.shop-card .shop-h { display: inline-flex; align-items: center; gap: 5px; }
.shop-card .shop-h .i { width: 14px; height: 14px; color: var(--ink-3); }
.shop-who { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; }
.shop-who a { font-weight: 600; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-who a:hover { color: var(--p); }
.shop-who span { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.shop-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.shop-tags i { font-style: normal; font-size: 11.5px; padding: 1px 7px; border-radius: 10px; background: var(--fill); color: var(--ink-2); }
.shop-ords { display: flex; flex-direction: column; margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.shop-ord { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 7px 10px; font-size: 12.5px; color: inherit; text-decoration: none; }
.shop-ord + .shop-ord { border-top: 1px solid var(--line); }
.shop-ord:hover { background: var(--fill); }
.shop-ord > span:nth-child(2) { justify-self: end; display: inline-flex; gap: 6px; }
.shop-ord > span:last-child { grid-column: 1 / -1; font-size: 11.5px; }
.shop-ord em { font-style: normal; color: var(--ink-3); }
.shop-ord em.ok { color: var(--ok); } .shop-ord em.bad { color: var(--bad); }
.shop-none { font-size: 12.5px; }
.aact-code { font: 600 30px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .18em; text-align: center; padding: 18px; border-radius: 10px; background: var(--fill); margin-bottom: 12px; }
.aact-legacy { margin-top: 12px; font-size: 13px; } .aact-legacy summary { cursor: pointer; color: var(--ink-3); } .aact-legacy .field { margin-top: 10px; }
/* 12-01 内置 AI 额度 */
.ai-bq { display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); }
.ai-bq-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ai-bq-bar i { display: block; height: 100%; background: var(--p); border-radius: 99px; transition: width .3s; }
.ai-bq-bar i.hot { background: var(--warn); }
.ai-bq-x { display: grid; gap: 6px; justify-items: end; text-align: right; }
.ai-bq-x .bad { color: var(--bad); }
.ai-bq-x:empty { display: none; }
/* 12-01 买加量包 */
.ai-pk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ai-pk-o { position: relative; display: grid; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.ai-pk-o input { position: absolute; opacity: 0; pointer-events: none; }
.ai-pk-o b { font-size: 15px; } .ai-pk-o span { color: var(--ink-3); font-size: 13px; } .ai-pk-o em { font-style: normal; font-weight: 600; margin-top: 6px; }
.ai-pk-o:has(input:checked) { border-color: var(--p); box-shadow: 0 0 0 1px var(--p) inset; background: var(--p-soft); }
@media (max-width: 520px) { .ai-pk { grid-template-columns: 1fr; } }

/* 12-02 头像菜单里的"我的状态"一行：左边文字，右边和会话列表顶部一样的状态按钮 */
.me-st-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px 6px 12px; font-size: 13px; color: var(--ink-2); }
.me-st-row .wb-st { height: 30px; }

/* 12-02 开放接口 → 营销对接 */
.oi-ev { cursor: pointer; }
.oi-ev input[type=checkbox] { margin-left: auto; }
.oi-shop { margin: -4px 0 6px; font-size: 13px; }
.oi-na { display: flex; gap: 8px; align-items: center; color: var(--ink-3); font-size: 13px; padding: 10px 12px; background: var(--bg-2, #f6f7f9); border-radius: 8px; }
.oi-kv-act { display: flex; gap: 8px; }
.oi-save { position: sticky; bottom: 0; }

/* 12-02 接线端：AI 申请取消订单的审批卡片（内部备注下面） */
.appr-card { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12px; }
.appr-card .appr-acts { display: flex; gap: 6px; margin-left: auto; }
.appr-card .appr-need { margin-left: auto; }
.appr-why { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.appr-chip { border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.appr-chip:hover { border-color: var(--p); color: var(--p); }
/* 12-02 客服列表窄屏（1280 左右、侧栏展开、浏览器放大）时"编辑"被挤出卡片：操作列钉在右边，底色跟着行走；分组/网站压成一两行 */
.ag-tb .ag-act { position: sticky; right: 0; z-index: 1; background: var(--card); box-shadow: -1px 0 0 var(--line-2); }
.ag-tb thead .ag-act { background: var(--fill); }
.ag-tb tbody tr:hover td.ag-act { background: var(--fill); }
.ag-tb td.ag-gs { white-space: normal; min-width: 120px; max-width: 260px; }
.ag-tb td.ag-gs .ag-cell-row + * { margin-top: 4px; }
.ag-tb .ag-sub { font-size: 12px; color: var(--ink-3); }
.ag-tb .ag-bar { width: 70px; }
@media (max-width: 1500px) { .ag-tb .ag-bar { width: 44px; } }
/* 窄屏让表格本身放得下（不靠左右拖动、不让钉住的操作列盖住"当前接待"）：先收起创建时间（名字上悬停可看），再收窄单元格留白 */
/* 12-02 只管客服列表（.agm-tb）：客服报表的表格也叫 ag-tb，以前这两条把报表"满意度"表头藏了、数据没藏，错位一格 */
@media (max-width: 1400px) { .agm-tb > thead > tr > th:nth-child(7), .agm-tb > tbody > tr[data-id] > td:nth-child(7) { display: none; } }
@media (max-width: 1300px) { .tb.agm-tb > thead > tr > th, .tb.agm-tb > tbody > tr[data-id] > td { padding-left: 10px; padding-right: 10px; } .agm-tb .agm-nm { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
@media (max-width: 1200px) { .tb.agm-tb > thead > tr > th, .tb.agm-tb > tbody > tr[data-id] > td { padding-left: 8px; padding-right: 8px; } }

/* 12-02 英文界面表头长（Avg first reply today 这种）：放不下时在空格处换行，不再把表格撑到要左右拖 */
html[lang="en"] .tb th { white-space: normal; }
/* 12-02 黑名单：原因列别被挤成一行三个字；窄屏时"来自访客…"一行省略、拉黑时间日期和时间分两行，"解除"按钮不被挤出去 */
.bl-tb td.bl-rs { min-width: 120px; max-width: 300px; }
@media (max-width: 1400px) {
  .bl-tb .user small { display: block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bl-tb td.bl-at { white-space: normal; }
  .bl-tb td.bl-at > span { white-space: nowrap; }
}
@media (max-width: 1300px) {
  .tb.bl-tb > thead > tr > th, .tb.bl-tb > tbody > tr > td { padding-left: 10px; padding-right: 10px; }
  .bl-tb .user small { max-width: 140px; }
}
/* 12-02 会话记录英文界面：表头和"Not served"这类字长，11 列在窄屏放不下；1400 以下收起"消息数"、1200 以下再收起"首次响应"（点开会话、导出里都有）。中文放得下不收 */
@media (max-width: 1400px) { html[lang="en"] #hTable .hist-tb .h-msgs { display: none; } }
@media (max-width: 1200px) { html[lang="en"] #hTable .hist-tb .h-frt { display: none; } }

/* ============ 12-02 差评处理（BadUI）============ */
.bdr-modal .modal-bd { padding-top: 6px; }
.bdr-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bdr-hd .seg em { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--warn); color: #fff; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; }
.bdr-hd .seg em[hidden] { display: none; }
.bdr-list { display: grid; gap: 10px; max-height: min(62vh, 620px); overflow-y: auto; margin: 0 -4px; padding: 0 4px 4px; }
.bdr-card { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .26s cubic-bezier(.2,.7,.2,1), opacity .2s, transform .26s; }
.bdr-card > .bdr-ci { min-height: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); padding: 14px 16px; transition: border-color .15s, box-shadow .15s; }
.bdr-card:not(.is-done) > .bdr-ci:hover { border-color: color-mix(in srgb, var(--warn) 35%, var(--line-2)); box-shadow: 0 2px 10px rgb(0 0 0 / .04); }
.bdr-card.bdr-out { grid-template-rows: 0fr; opacity: 0; transform: translateX(18px); margin-top: -10px; }
.bdr-card.bdr-out > .bdr-ci { border-width: 0; padding-top: 0; padding-bottom: 0; transition: padding .26s, border-width .26s; }
.bdr-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bdr-top .stars-s svg { width: 14px; height: 14px; }
.bdr-when { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bdr-q { display: block; margin: 8px 0 10px; font-size: 14.5px; line-height: 1.55; color: var(--ink); font-weight: 500; quotes: "“" "”"; word-break: break-word; }
.bdr-q.none { color: var(--ink-3); font-weight: 400; font-size: 13px; }
.bdr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12.5px; color: var(--ink-2); }
.bdr-who { display: inline-flex; align-items: center; gap: 6px; }
.bdr-acts { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.bdr-acts > .btn.primary { margin-left: auto; }
.bdr-slot:empty { display: none; }
.bdr-form { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .22s cubic-bezier(.2,.7,.2,1), opacity .18s; }
.bdr-form.open { grid-template-rows: 1fr; opacity: 1; }
.bdr-fi { min-height: 0; overflow: hidden; display: grid; gap: 10px; }
.bdr-form.open .bdr-fi { padding-top: 12px; }
.bdr-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bdr-kind { position: relative; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink-2); font-size: 13px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s, color .15s, box-shadow .15s; text-align: left; }
.bdr-kind > i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--fill); color: var(--ink-3); flex: none; transition: background .15s, color .15s; }
.bdr-kind > i svg { width: 14px; height: 14px; }
.bdr-kind > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bdr-kind:hover { border-color: color-mix(in srgb, var(--p) 40%, var(--line)); color: var(--ink); }
.bdr-kind.on { border-color: var(--p); background: color-mix(in srgb, var(--p) 6%, var(--card)); color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 12%, transparent); }
.bdr-kind.on > i { background: var(--p); color: #fff; }
.bdr-ck { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--p); color: #fff; transform: scale(0); transition: transform .18s cubic-bezier(.3,1.6,.5,1); flex: none; }
.bdr-ck svg { width: 10px; height: 10px; }
.bdr-kind.on .bdr-ck { transform: scale(1); }
.bdr-fa { display: flex; justify-content: flex-end; gap: 8px; }
.bdr-done { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 7%, var(--card)); font-size: 12.5px; color: var(--ink-2); }
.bdr-done > i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; flex: none; }
.bdr-done > i svg { width: 12px; height: 12px; }
.bdr-done > span { flex: 1; min-width: 0; line-height: 1.5; }
.bdr-done b { color: var(--ink); font-weight: 600; }
.bdr-done em { display: block; font-style: normal; color: var(--ink-2); margin-top: 2px; word-break: break-word; }
.bdr-done a { color: var(--p); }
.bdr-empty { padding: 30px 0 18px; }
.bdr-inl { margin-top: 8px; }
.bdr-inl .bdr-acts { flex-wrap: wrap; margin-top: 0; padding-top: 0; border-top: 0; }
.bdr-inl .bdr-acts > .btn.primary { margin-left: 0; }
.bdr-inl .bdr-kinds { grid-template-columns: 1fr; }
@media (prefers-reduced-motion: reduce) { .bdr-card, .bdr-form, .bdr-ck, .bdr-kind { transition: none; } }

/* ============ 12-02 多行输入框自动长高（AutoTA）+ 一行一条清单（lineList）============ */
textarea.af-ta { resize: none; }
.lnl-src { display: none !important; }
.lnl { border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.lnl:focus-within { border-color: color-mix(in srgb, var(--p) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 10%, transparent); }
.lnl-list { counter-reset: lnl; }
.lnl-row { position: relative; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 6px 0 4px; border-bottom: 1px solid var(--line-2); background: var(--card); transition: background .15s, height .2s ease, opacity .18s ease, transform .18s ease; }
.lnl-row:focus-within { background: color-mix(in srgb, var(--p) 4%, var(--card)); }
.lnl-grip { display: grid; place-items: center; width: 18px; height: 28px; border-radius: 5px; color: var(--ink-4, #b6bcc6); cursor: grab; opacity: 0; transition: opacity .15s, background .15s; touch-action: none; flex: none; }
.lnl-grip svg { width: 8px; height: 13px; fill: currentColor; }
.lnl-row:hover .lnl-grip, .lnl-row:focus-within .lnl-grip { opacity: 1; }
.lnl-grip:hover { background: var(--fill); color: var(--ink-2); }
.lnl-i { width: 20px; text-align: right; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; flex: none; }
.lnl-in { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 6px; font: inherit; font-size: 13.5px; color: var(--ink); }
.lnl-in::placeholder { color: var(--ink-4, #b6bcc6); }
.lnl-x { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); cursor: pointer; opacity: 0; transition: opacity .15s, background .15s, color .15s; flex: none; }
.lnl-x svg { width: 14px; height: 14px; }
.lnl-row:hover .lnl-x, .lnl-row:focus-within .lnl-x { opacity: 1; }
.lnl-x:hover { background: var(--bad-soft); color: var(--bad); }
.lnl-x:focus-visible { opacity: 1; outline: 2px solid var(--p); outline-offset: -2px; }
.lnl-new { animation: lnlNew 1.4s ease-out; }
@keyframes lnlNew { 0% { background: color-mix(in srgb, var(--p) 16%, var(--card)); transform: translateX(-4px); } 25% { transform: none; } 100% { background: var(--card); } }
.lnl-out { height: 0; opacity: 0; border-bottom-width: 0; transform: translateX(12px); pointer-events: none; }
.lnl-drag { z-index: 3; background: var(--card); box-shadow: 0 6px 20px rgb(0 0 0 / .12); border-radius: 8px; transition: none; }
.lnl-drag .lnl-grip { cursor: grabbing; opacity: 1; }
.lnl-gap { box-shadow: inset 0 2px 0 var(--p); }
.lnl-ft { display: flex; align-items: center; gap: 12px; padding: 6px 10px; background: var(--fill); }
.lnl-add { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--p); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s; }
.lnl-add svg { width: 14px; height: 14px; }
.lnl-add:hover:not(:disabled) { background: color-mix(in srgb, var(--p) 9%, transparent); }
.lnl-add:disabled { color: var(--ink-4, #b6bcc6); cursor: default; }
.lnl-n { display: inline-flex; gap: 10px; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lnl-dup { color: var(--warn); }
.lnl.has-hcnt .lnl-tot { display: none; }
.set-sec.asec-cur .lnl.has-hcnt .lnl-tot { display: inline; }
.lnl-cnt { margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: var(--fill); font-size: 12px; font-weight: 500; color: var(--ink-2) !important; vertical-align: 2px; font-variant-numeric: tabular-nums; }
.lnl-tip { margin-left: auto; font-size: 12px; color: var(--ink-3); }
@media (max-width: 1200px) { .lnl-tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .lnl-row, .lnl-new { transition: none; animation: none; } }
/* 12-02 已处理行：方式（+工单）一行、谁·什么时候一行、备注一行；聊天记录侧栏里占满整行 */
.bdr-done .bdr-dt { display: grid; gap: 1px; word-break: normal; }
.bdr-done .bdr-dk { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bdr-done small { font-size: 12px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bdr-done > .btn { flex: none; }
.kv > dd.bdr-kvrow { grid-column: 1 / -1; margin-top: -2px; word-break: normal; }
.bdr-kvrow .bdr-inl { margin-top: 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 6%, var(--card)); border: 1px solid color-mix(in srgb, var(--warn) 22%, var(--line)); }
.bdr-kvrow .bdr-inl:has(.bdr-done) { padding: 0; background: none; border: 0; }
.bdr-kvrow .bdr-inl .bdr-done { margin-top: 0; }
.bdr-kvrow .bdr-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bdr-kvrow .bdr-acts > .tag { grid-column: 1 / -1; justify-self: start; }
.bdr-kvrow .bdr-acts > .btn { width: 100%; justify-content: center; }
.bdr-kvrow .bdr-acts > .btn:only-of-type { grid-column: 1 / -1; }
/* 展开表单里的输入框聚焦光圈别被裁掉 */
.bdr-fi { padding: 0 3px 3px; margin: 0 -3px -3px; }

/* 12-02 AI → 开始使用（aho-）：左边状态 + 上手三步 + 问题分流，右边试一下 */
.aho { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.aho-main { display: grid; gap: 16px; min-width: 0; }
.aho-side { position: sticky; top: 12px; }
.aho-card { background: var(--card); border-radius: 8px; box-shadow: var(--shadow-s); padding: 18px 20px; }
.aho-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.aho-hd h3 { margin: 0; font-size: 15px; font-weight: 600; }
.aho-hd .muted { font-size: 12.5px; }
.aho-hd .ob-bar { margin-left: 0; max-width: 160px; }
.aho-cnt { font-size: 12.5px; color: var(--ink-3); }
.aho-tip { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.aho-tip.muted { color: var(--ink-3); }
.aho-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.aho-row .muted { font-size: 12.5px; }
/* 状态卡 */
.aho-st { display: flex; gap: 16px; align-items: flex-start; }
.aho-st-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--p-soft); color: var(--p); }
.aho-st-ic svg { width: 20px; height: 20px; }
.aho-st.t-ok .aho-st-ic { background: var(--ok-soft); color: var(--ok); }
.aho-st.t-warn .aho-st-ic { background: var(--warn-soft); color: var(--warn); }
.aho-st.t-bad .aho-st-ic { background: var(--bad-soft); color: var(--bad); }
.aho-st-b { flex: 1; min-width: 0; }
.aho-st-b h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.aho-st-b p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.aho-st-b .aho-who { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.aho-st-a { flex: none; display: flex; gap: 8px; }
.aho-q { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); display: grid; gap: 8px; max-width: 620px; }
.aho-q-t { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.aho-q-t .muted { font-size: 12.5px; }
.aho-q-a { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.aho-q-a .muted { font-size: 12px; }
/* 上手三步 */
.aho-step { border-top: 1px solid var(--line-2); }
.aho-step-hd { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 2px; background: none; border: 0; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.aho-step-hd > svg { width: 16px; height: 16px; color: var(--ink-3); transition: transform .2s var(--ease); flex: none; }
.aho-step.open .aho-step-hd > svg { transform: rotate(180deg); }
.aho-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; background: var(--fill); color: var(--ink-2); box-shadow: 0 0 0 1px var(--line) inset; }
.aho-n svg { width: 14px; height: 14px; }
.aho-step.done .aho-n { background: var(--ok); color: #fff; box-shadow: none; }
.aho-step-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.aho-step-t b { font-size: 14px; font-weight: 600; }
.aho-step-t small { font-size: 12.5px; color: var(--ink-3); }
.aho-step-r { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.aho-step-bd { padding: 0 0 16px 36px; }
.aho-step:not(.open) .aho-step-bd { display: none; }
.aho-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.aho-opt { display: grid; grid-template-columns: 20px 1fr; column-gap: 10px; row-gap: 2px; align-items: start; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; color: inherit; font: inherit; }
.aho-opt:hover { border-color: var(--p); background: var(--p-soft); }
.aho-opt svg { width: 18px; height: 18px; color: var(--p); grid-row: span 2; margin-top: 1px; }
.aho-opt b { font-size: 13.5px; font-weight: 600; }
.aho-opt span { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.aho-voice .field { margin-bottom: 14px; }
.aho-tone em { display: block; margin-top: 6px; font-style: normal; font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.aho-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.aho-rec { font-style: normal; font-weight: 500; font-size: 11px; color: var(--p); background: var(--p-soft); border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.aho-sh { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 4px; }
.aho-sh-n { background: var(--fill); border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; }
.aho-sh-n b { font-size: 20px; font-weight: 600; }
.aho-sh-n span { font-size: 12px; color: var(--ink-3); }
.aho-done { display: flex; align-items: center; gap: 10px; padding: 12px 20px; font-size: 13.5px; }
.aho-done > svg { width: 18px; height: 18px; color: var(--ok); }
/* 问题分流 */
.aho-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.aho-tile { border-radius: 8px; padding: 10px 12px; background: var(--fill); display: grid; gap: 2px; }
.aho-tile b { font-size: 20px; font-weight: 600; }
.aho-tile span { font-size: 12.5px; color: var(--ink-2); }
.aho-tile em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.aho-tile.t-warn b { color: var(--warn); }
.aho-qt { margin: 10px 0 0; font-size: 12.5px; }
.aho-fix-hd { margin: 16px 0 6px; font-size: 12.5px; color: var(--ink-3); }
.aho-fixes { display: grid; }
.aho-fix { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.aho-fix-t { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.aho-fix-t b { font-size: 13.5px; font-weight: 600; }
.aho-fix-t small { flex-basis: 100%; font-size: 12.5px; color: var(--ink-3); }
.aho-ex { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.aho-ex span { font-size: 12px; color: var(--ink-2); background: var(--fill); border-radius: 4px; padding: 2px 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aho-empty { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13px; padding: 6px 0 2px; }
.aho-empty svg { width: 18px; height: 18px; flex: none; }
/* 试一下 */
.aho-try > p { margin: -4px 0 10px; font-size: 12.5px; }
.aho-chat { height: 360px; overflow-y: auto; background: var(--fill); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.aho-chat-e { margin: auto; display: grid; justify-items: center; gap: 8px; text-align: center; color: var(--ink-3); font-size: 12.5px; max-width: 240px; line-height: 1.6; }
.aho-chat-e svg { width: 22px; height: 22px; }
.aho-cv { align-self: flex-end; max-width: 85%; background: var(--p); color: var(--on-p); border-radius: 12px 12px 4px 12px; padding: 8px 12px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.aho-ca { align-self: flex-start; max-width: 92%; background: var(--card); box-shadow: var(--shadow-s); border-radius: 12px 12px 12px 4px; padding: 8px 12px; display: grid; gap: 4px; font-size: 13px; line-height: 1.55; }
.aho-ca p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.aho-ca small { font-size: 12px; color: var(--ink-3); }
.aho-ca.err { color: var(--bad); }
.aho-ca-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.aho-qtag { font-size: 11.5px; color: var(--ink-3); }
.aho-ask { display: flex; gap: 8px; margin-top: 10px; }
.aho-ask .input { flex: 1; min-width: 0; }
.aho-more { display: inline-block; margin-top: 10px; font-size: 12.5px; }
@media (max-width: 1280px) { .aho { grid-template-columns: minmax(0, 1fr) 320px; } .aho-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .aho { grid-template-columns: 1fr; } .aho-side { position: static; } .aho-opts, .aho-modes { grid-template-columns: 1fr; } }
/* 12-02 加量包三档 + 升级更划算 */
.ai-pk-off { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 11px; font-weight: 600; color: var(--ok); background: var(--ok-soft); border-radius: 4px; padding: 1px 6px; }
.ai-pk-up { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--p-soft); font-size: 13px; line-height: 1.55; }
.ai-pk-up > svg { width: 16px; height: 16px; color: var(--p); flex: none; }
.ai-pk-up span { flex: 1; }
.ai-pk-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.6; }
/* 12-02 AI 服务：内置 AI 在前，自己的密钥点开才显示 */
.ai-bq-hd { display: flex; align-items: center; gap: 8px; margin: 2px 0 14px; font-size: 13.5px; flex-wrap: wrap; }
.ai-bq-hd svg { width: 16px; height: 16px; color: var(--ok); }
.ai-bq-hd .muted { font-size: 12.5px; }
.ai-own-k { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -4px 0 16px; }
.ai-own-k .muted { font-size: 12.5px; }
/* 12-02 读取网站 */
.sr-url { display: flex; gap: 8px; }
.sr-url .input { flex: 1; min-width: 0; }
#srHint.err { color: var(--bad); }
.sr-hd { display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; font-size: 13px; }
.sr-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.sr-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) minmax(0, 1.1fr); gap: 10px; align-items: center; padding: 7px 12px; border-top: 1px solid var(--line-2); font-size: 13px; cursor: pointer; }
.sr-row:first-child { border-top: 0; }
.sr-row:hover { background: var(--hover); }
.sr-t, .sr-u { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-u { color: var(--ink-3); font-size: 12px; }
.sr-cnt { margin: 8px 0 0; font-size: 12.5px; }
/* 12-02 AI 试运行备注下的"准确 / 不准确" */
.shadow-card .btn svg { width: 14px; height: 14px; }
.shadow-card .btn.on.shv-no { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); }
.mn-est-b { display: flex; gap: 8px; margin-left: auto; }
.sr-row.no-t { grid-template-columns: 18px minmax(0, 1fr); }
/* 12-03 管理员只接待部分网站：工作条上提示"只接 A +N"，点了打开状态菜单改 */
.wb-recv { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px 0 9px; margin-left: 6px; border: 0; border-radius: 999px; background: var(--p-soft); color: var(--p); font-size: 12.5px; font-weight: 600; cursor: pointer; max-width: 220px; white-space: nowrap; flex: none; }
.wb-recv svg { width: 14px; height: 14px; flex: none; }
.wb-recv span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wb-recv b { font-weight: 700; flex: none; }
.wb-recv em { font-style: normal; flex: none; }
.wb-recv:hover { filter: brightness(.97); }

/* ---------- 12-03 数据搬家（move.js） ---------- */
.mv-page .oa-tabs { max-width: none; }
.mv-page #mvBody { max-width: 1180px; }
.mv-p { margin: 0 0 10px; color: var(--ink-3); font-size: 13px; line-height: 1.7; max-width: 760px; }
.mv-steps { padding-top: 6px; padding-bottom: 6px; }
.mv-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mv-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; padding: 14px; border: 0; border-radius: 8px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font: inherit; color: inherit; transition: box-shadow .15s, background .15s; }
.mv-card:hover { box-shadow: inset 0 0 0 1px var(--p); background: var(--p-soft); }
.mv-ci { width: 34px; height: 34px; border-radius: 9px; background: var(--p-soft); color: var(--p); display: grid; place-items: center; }
.mv-ci svg.i { width: 18px; height: 18px; }
.mv-ct { display: flex; flex-direction: column; gap: 3px; }
.mv-ct b { font-size: 14px; }
.mv-ct span { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.mv-cn { margin-top: auto; font-size: 12.5px; color: var(--p); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.mv-cn svg.i { width: 14px; height: 14px; color: var(--ok); }
.mv-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.mv-row .muted { font-size: 12.5px; }
.mv-row code { font-size: 12px; }
.mv-bad { display: inline-flex; align-items: center; gap: 5px; color: var(--warn); font-size: 12.5px; font-weight: 500; }
.mv-bad svg.i { width: 15px; height: 15px; }
.mv-warn, .mv-offer, .mv-done { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 8px; margin-bottom: 16px; }
.mv-warn { background: var(--warn-soft); }
.mv-warn > svg.i { width: 20px; height: 20px; color: var(--warn); flex: none; }
.mv-warn > div, .mv-offer > div, .mv-done > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mv-warn b, .mv-offer b, .mv-done b { font-size: 14px; }
.mv-warn span, .mv-offer span, .mv-done span { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.mv-warn a { color: inherit; text-decoration: underline; }
.mv-offer { background: var(--card); box-shadow: var(--shadow-s), inset 3px 0 0 var(--p); }
.mv-offer.done { box-shadow: var(--shadow-s), inset 3px 0 0 var(--ink-4); }
.mv-oi { width: 38px; height: 38px; border-radius: 10px; background: var(--p-soft); color: var(--p); display: grid; place-items: center; flex: none; }
.mv-oi svg.i { width: 20px; height: 20px; }
.mv-done { background: var(--ok-soft); }
.mv-done > svg.i { width: 22px; height: 22px; color: var(--ok); flex: none; }
.mv-done.wait { background: var(--info-soft); }
.mv-done.wait > svg.i { color: var(--info); }
.mv-drop { margin-top: 4px; }
.mv-err { background: var(--bad-soft); color: var(--bad); margin: 12px 0 0; }
.mv-tpl { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.mv-tpl > svg.i { width: 16px; height: 16px; color: var(--ink-4); }
.mv-tpl .muted { font-size: 12.5px; }
.mv-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-3); }
.mv-note svg.i { width: 15px; height: 15px; }
.mv-tbl { margin-top: 14px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); overflow: auto; max-height: 520px; }
.mv-tbl .tb th { position: sticky; top: 0; z-index: 1; }
.mv-tbl .tb td.r { text-align: right; }
.mv-tbl code { font-size: 12.5px; }
.mv-tbl .mv-fn { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); }
.mv-tbl tr.mv-undone td { color: var(--ink-4); }
.mv-tbl tr.mv-undone .tag { margin-left: 8px; }
.mv-more { font-size: 12px; padding: 8px 14px; }
.mv-act { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.mv-act .muted { font-size: 12.5px; }
.mv-split { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 16px; align-items: start; }
.mv-split > .set-sec { margin: 0; }
.mv-list .sec-hd { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.mv-sch { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.mv-sch .input-icon { width: 280px; }
.mv-ck { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.mv-cl { display: flex; flex-direction: column; }
.mv-oc { display: flex; gap: 16px; align-items: flex-start; padding: 11px 4px; border-top: 1px solid var(--line-2); cursor: pointer; border-radius: 6px; transition: background .12s; }
.mv-oc:first-child { border-top: 0; }
.mv-oc:hover { background: var(--hover); }
.mv-oc .t { flex: 1; min-width: 0; }
.mv-oc .t > div { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.mv-oc .t b { font-size: 13.5px; white-space: nowrap; }
.mv-oc .t span { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-oc .t p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-oc .m { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 12px; color: var(--ink-3); max-width: 220px; }
.mv-oc .m span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mv-pg { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; font-size: 12.5px; }
.mv-pv2 { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 20px; margin-top: 14px; align-items: start; }
.mv-lbl { font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px; }
.mv-maps { display: flex; flex-direction: column; gap: 6px; }
.mv-map { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 13px; }
.mv-map span { color: var(--ink-2); }
.mv-map select { width: 100%; }
.mv-maps .hint { margin-top: 6px; font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.mv-sam { border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; margin-bottom: 10px; }
.mv-sh { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; background: var(--fill); font-size: 13px; flex-wrap: wrap; }
.mv-sh .muted { font-size: 12px; }
.mv-bub { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; max-height: 360px; overflow: auto; }
.mv-bub.full { max-height: 62vh; padding: 4px 2px; }
.mv-bub .mv-m { max-width: 78%; display: flex; flex-direction: column; gap: 3px; align-self: flex-start; }
.mv-bub .mv-m > span { font-size: 11.5px; color: var(--ink-3); }
.mv-bub .mv-m p { margin: 0; padding: 8px 11px; border-radius: 10px; background: var(--fill-2); font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.mv-bub .mv-m.a { align-self: flex-end; align-items: flex-end; }
.mv-bub .mv-m.a p { background: var(--p-soft); color: var(--ink); }
.mv-bub .mv-m.s { align-self: center; align-items: center; max-width: 90%; }
.mv-bub .mv-m.s p { background: none; padding: 0; color: var(--ink-3); font-size: 12px; text-align: center; }
.mv-form .row-2 { margin-bottom: 4px; }
.mv-sw { border-top: 1px solid var(--line-2); margin-top: 8px; }
.mv-sub { padding: 2px 0 6px; }
.mv-proof { display: flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: 13px; color: var(--ink-2); background: var(--card); transition: box-shadow .15s; }
.mv-proof:hover { box-shadow: inset 0 0 0 1px var(--p); }
.mv-proof span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mv-proof svg.i { width: 16px; height: 16px; flex: none; }
.mv-proof.on { box-shadow: inset 0 0 0 1px var(--ok); color: var(--ok); }
.mv-chks { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 4px 0; }
.mv-chks label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.mv-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 4px 0 8px; }
.mv-kv > div { display: flex; flex-direction: column; gap: 3px; }
.mv-kv span { font-size: 12px; color: var(--ink-3); }
.mv-kv b { font-size: 13.5px; font-weight: 500; }
/* 接线端右边"历史"里的旧系统记录 */
.side-old { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.side-old h5 { margin: 0 0 6px; font-size: 12px; font-weight: 500; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.side-old h5 svg.i { width: 14px; height: 14px; }
@media (max-width: 1180px) { .mv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mv-split, .mv-pv2 { grid-template-columns: minmax(0, 1fr); } .mv-sch { margin-left: 0; width: 100%; } .mv-sch .input-icon { flex: 1; width: auto; } }
.mv-warn .mv-when { font-size: 12px; color: var(--ink-3); }
.mv-s { font-style: normal; }
.mv-s + .mv-s::before { content: ' · '; color: var(--ink-4); }
/* 数据搬家：文件条固定两行（文件名 + 换文件按钮 / 下面一行说明），说明多长都不把按钮挤下去 */
.mv-page .qi-file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 8px; row-gap: 2px; }
.mv-page .qi-file > b { grid-column: 2; grid-row: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-page .qi-file > .muted { grid-column: 2 / 4; grid-row: 2; line-height: 1.5; }
.mv-page .qi-file > .grow { display: none; }
.mv-page .qi-file > .btn { grid-column: 3; grid-row: 1; margin: 0; }
.mv-ro { flex: 1; align-self: center; font-size: 12.5px; color: var(--ink-3); }
.mv-ud { margin-left: 8px; }
.mv-page .set-sec:not(:has(> .sec-hd, > h3)) { padding-top: 16px; }
/* 12-04 UI 检查：深色模式下这几个彩色小标签还用浅色主题的深色字（对比度不到 3），字色往白里调；警告橙、红色实心按钮同理 */
:root[data-theme="dark"] .grp-chip { color: color-mix(in srgb, var(--gc) 55%, #fff); }
:root[data-theme="dark"] .role-chip { color: color-mix(in srgb, var(--rc) 55%, #fff); background: color-mix(in srgb, var(--rc) 18%, var(--card)); }
:root[data-theme="dark"] .citem.others .agent-chip { color: color-mix(in srgb, var(--ac) 55%, #fff); }
:root[data-theme="dark"] .ab-warn { color: #f0a868; }
:root[data-theme="dark"] .btn.danger-fill { background: color-mix(in srgb, var(--bad) 78%, #000); }
:root[data-theme="dark"] .btn.danger-fill:hover { background: color-mix(in srgb, var(--bad) 70%, #000); }
:root:not([data-theme="dark"]) .tag.ok, :root:not([data-theme="dark"]) .sl-tag.ok, :root:not([data-theme="dark"]) .sp-it b em.active { color: color-mix(in srgb, var(--ok) 80%, #000); }   /* 浅绿底上的绿字（进行中、在线）原来 3.1，调深一点 */
/* 12-04 UI 检查：小按钮（复制、+标签、会话号、提醒关闭）外观不变，可点范围往外扩到约 32 像素，不容易点偏 */
.hd-cp, .icon-btn.xs, .add-tag, .convno.sm, .lxn-x { position: relative; }
.hd-cp::after, .icon-btn.xs::after, .lxn-x::after { content: ''; position: absolute; inset: -6px; }
.add-tag::after, .convno.sm::after { content: ''; position: absolute; inset: -5px -2px; }
.lxn-cap.badge .lxn-bn, .lxn-cap.badge .lxn-bs { display: none; }
.lxn-cap.badge.mid .lxn-bt { display: none; } .lxn-cap.badge.mid .lxn-bs { display: inline; }
.lxn-cap.badge.tight { padding: 0 10px 0 9px; } .lxn-cap.badge.tight .lxn-bt { display: none; } .lxn-cap.badge.tight .lxn-bn { display: inline; font-weight: 600; }
/* 12-04 UI 检查 B2：数据卡片的彩色图标方块 → 灰色小图标放在标题前；只有"有访客在等"这种要注意的状态用红色 */
.ab-ic, .ab-ic.c-g, .ab-ic.c-b, .ab-ic.c-n, .ab-ic.c-p { width: auto; height: auto; background: none; color: var(--ink-3); border-radius: 0; align-self: flex-start; margin-top: 1px; }
.ab-ic.c-r { width: auto; height: auto; background: none; color: var(--bad); border-radius: 0; align-self: flex-start; margin-top: 1px; }
.ab-ic svg { width: 16px; height: 16px; }
.ab-kpi { gap: 10px; }
/* 12-04 UI 检查 B3：会话列表一行只留一种颜色——去掉左边网站色条；网站名不要彩色底块，改成"小色点 + 灰字"，省下的边距让网站名能显示全 */
.citem .site-bar { display: none; }
.citem .l1s { padding: 0; height: auto; border-radius: 0; background: none; box-shadow: none; color: var(--ink-3); font-weight: 400; gap: 5px; flex-shrink: 1; max-width: 92px; }
.citem .l1s i { width: 5px; height: 5px; }
/* 12-04 B5：分区标题和页面大标题重复时，只藏标题字和图标，说明和按钮留着 */
.set-sec.dup-t .dup-tt, html.ui2 .set-sec.dup-t .grp-ic, .set-sec.dup-t .grp-ic { display: none !important; }
.set-sec.dup-t .h-sub { margin-left: 0 !important; padding-left: 0 !important; border-left: 0 !important; font-size: 13px; color: var(--ink-2); font-weight: 400; }
.set-sec.dup-t > .sub, .set-sec.dup-t > .sec-hd .sub { margin-left: 0 !important; padding-left: 0 !important; font-size: 13px; color: var(--ink-2); }
.set-sec.dup-t > .sec-hd h3:not(:has(.h-sub)) { display: none; }

/* ===== 12-04 UI 检查 B9：控件尺寸统一（接线端 + 管理端经典皮肤；管理端新皮肤在 ui2.css 末尾同一套数）=====
   常规控件 34 高、圆角 8（按钮 = 输入框 = 下拉 = 分段按钮外框，同一行对齐）；小控件 28 高、圆角 6；卡片和弹窗 12；胶囊 999 */
:root { --ctl-h: 34px; --ctl-h-sm: 28px; --ctl-r: 8px; --ctl-r-sm: 6px; }
.btn { height: var(--ctl-h); border-radius: var(--ctl-r); }
.btn.sm, .input.sm, .select.sm { height: var(--ctl-h-sm); border-radius: var(--ctl-r-sm); }
.btn.lg { height: 40px; }
.page-hd .btn.sm, .set-sec > .sec-hd .btn.sm, .toolbar .btn.sm { height: var(--ctl-h); border-radius: var(--ctl-r); }
.input, .select { height: var(--ctl-h); border-radius: var(--ctl-r); }
.textarea { border-radius: var(--ctl-r); }
.icon-btn { border-radius: var(--ctl-r); }
.icon-btn.sm { border-radius: var(--ctl-r-sm); }
.page-hd .acts > .icon-btn:not(.sm), .toolbar > .icon-btn:not(.sm) { width: var(--ctl-h); height: var(--ctl-h); }
.seg { border-radius: var(--ctl-r); padding: 3px; }
.seg button, .seg.sm button { height: var(--ctl-h-sm); border-radius: var(--ctl-r-sm); }

/* 12-04 UI 检查 B4：空状态三种（core.js emptyHtml）——列表里一行灰字 / 带按钮的标题+一句+按钮 / 没权限才放锁图标 */
.empty.e-line, .empty.e-act { gap: 6px; }
.empty.e-line { padding: 36px 20px; height: auto; min-height: 120px; }
html.ui2 .empty.e-line b, html.ui2 .empty.e-act b, .empty.e-line b, .empty.e-act b { margin-top: 0; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.empty.e-line span { font-size: 13px; color: var(--ink-3); }
.empty.e-act .btn { margin-top: 10px; }
.empty.e-err b { color: var(--ink-2); }
html.ui2 .kb-empty > svg.i, .kb-empty > svg.i { display: none; }
html .kb-empty b { font-weight: 500; }
.tk-left .tk-empty { padding: 8px; }
.tk-wrap.tk-noitems { grid-template-columns: minmax(320px, 420px); }
.tk-wrap.tk-noitems .tk-right { display: none; }
.tk-right > .empty.e-line { min-height: 420px; }

/* 12-04 UI 检查（矮屏复查时发现）：剩下几处淡灰字对比度只有 2.0，改成次要灰（深色主题 ink-3 本来就够） */
.at-ticks { color: var(--ink-3); font-size: 10.5px; }
td.stl-n { color: var(--ink-3); }
.rp-page .rp-mx .mx2-tb tr.mx2-z .mx2-l { color: var(--ink-3); }
:root:not([data-theme="dark"]) .side-sec h4 .mb-ok { color: color-mix(in srgb, var(--ok) 80%, #000); }
/* 小开关、权限页"全部开启"：外观不变，点击区上下各扩 6px */
.pq-all, .switch.sm { position: relative; }
.pq-all::after, .switch.sm::before { content: ""; position: absolute; inset: -6px -4px; }
/* 12-04 结束会话用快捷键打开的确认：提示再按一次确认 */
.cf-again { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
/* 12-04 逐帧检查：打开会话加载消息很快时转圈只闪两帧 → 0.3 秒还没加载好才淡入 */
.spin-late { opacity: 0; animation: rot .7s linear infinite, lxSpinLate .2s ease .3s forwards; }
@keyframes lxSpinLate { to { opacity: 1; } }
/* 12-04 资料栏"会员账号"：表单填的 + 真实账号 / 用过的账号 / 以前改的；去掉按钮、添加真实账号 */
.acct-sec .acct-del { opacity: 0; }
.acct-sec .mb-kv > div:hover .acct-del { opacity: 1; }
.acct-sec .acct-del:hover { color: var(--bad); }
.acct-sec .acct-add { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--p); font-size: 12.5px; cursor: pointer; }
.acct-sec .acct-add svg { width: 13px; height: 13px; }
.acct-sec .acct-add:hover { text-decoration: underline; }
.acct-sec .acct-in { margin-top: 8px; width: 100%; }
@media (hover: none) { .acct-sec .acct-del { opacity: 1; } }

/* 12-04 对话最上面：访客这次进线填的表单（咨询类型等） */
.m-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; margin: 12px 0 6px; }
.m-form .mf-i { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: 12.5px; line-height: 1.4; padding: 4px 12px; border-radius: 999px; background: var(--p-soft); }
.m-form .mf-k { color: var(--ink-3); white-space: nowrap; }
.m-form .mf-v { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.m-form .mf-cp { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: -6px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); cursor: pointer; }
.m-form .mf-cp:hover { background: color-mix(in srgb, var(--p) 14%, transparent); color: var(--p); }
.m-form .mf-cp svg.i { width: 13px; height: 13px; }
