/* ================= 基础 ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --blue: #3d82fe;
  --blue-dark: #2f6fe0;
  --active-bg: #e3ecf8;
  --rail-bg: #e4ecf3;
  --pane-bg: #f7f9fa;
  --border: #e2e8f0;
  --border2: #d4d9de;
  --text: #1f2937;
  --text-2: #6b7280;
  --text-3: #9ca3af;
  --wx: #07c160;
  --red: #ef4444;
  --bubble-in: #e4e7eb;
  --bubble-in-bd: #d7dbe0;
  --bubble-out: #c9e7ff;
  --bubble-out-bd: #b5d7f3;
}
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 13px;
  overflow: hidden;
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; font-size: 13px; outline: none; }
img { display: block; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }

/* ================= 登录 ================= */
.login-wrap { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #4f8cff 0%, #3d82fe 55%, #6aa0ff 100%); }
.login-card { width: 380px; background: #fff; border-radius: 16px; padding: 40px 36px 34px; box-shadow: 0 20px 60px rgba(30, 64, 175, .25); text-align: center; }
.login-logo { font-size: 44px; }
.login-card h1 { font-size: 20px; margin: 12px 0 6px; }
.login-card p { color: var(--text-2); font-size: 12.5px; margin-bottom: 26px; }
.login-card .field { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; margin-bottom: 14px; transition: border .15s; }
.login-card .field:focus-within { border-color: var(--blue); }
.login-card .field span { color: var(--text-3); font-size: 15px; }
.login-card .field input { flex: 1; border: none; padding: 12px 0; background: transparent; }
.login-err { color: var(--red); font-size: 12px; min-height: 18px; margin-bottom: 4px; text-align: left; }
.btn-primary { width: 100%; padding: 12px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 600; transition: background .15s; }
.btn-primary:hover { background: var(--blue-dark); }

/* ================= 工作台骨架 ================= */
.app, .ws-root { height: 100vh; }
.ws-root { display: flex; }

/* ---- 最左导航 ---- */
.rail {
  width: 64px; flex: 0 0 64px;
  background: var(--rail-bg);
  border-right: 1px solid var(--border2);
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 0 12px;
}
.rail-avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); background: #dfe5eb; }
.rail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rail-name { font-size: 11px; color: var(--text-2); margin-top: 6px; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-nav {
  position: relative;
  margin-top: 14px;
  width: 52px; padding: 7px 0 6px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  border-radius: 10px;
  color: #5b6470; font-size: 11px; text-decoration: none;
  transition: background .15s;
}
.rail-nav svg { width: 22px; height: 22px; }
.rail-nav:hover { background: rgba(61,130,254,.12); }
.rail-nav.active { background: #cce0ff; color: var(--blue-dark); font-weight: 600; }
.rail-badge {
  position: absolute; top: 2px; right: 6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--red); color: #fff;
  border-radius: 8px; font-style: normal;
  font-size: 10px; line-height: 16px; text-align: center;
  border: 1.5px solid var(--rail-bg);
}
.rail-spacer { flex: 1; }
.rail-logout {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #5b6470;
}
.rail-logout svg { width: 21px; height: 21px; }
.rail-logout:hover { background: rgba(239,68,68,.12); color: var(--red); }

/* ---- 通用栏 ---- */
.ws-content { flex: 1; display: flex; min-width: 0; height: 100%; }
.pane { background: #fff; display: flex; flex-direction: column; min-height: 0; }
.pane-folders { width: 320px; flex: 0 0 320px; background: var(--pane-bg); border-right: 1px solid var(--border); }
.pane-convs { width: 256px; flex: 0 0 256px; background: var(--pane-bg); border-right: 1px solid var(--border); }
.pane-side { width: 272px; flex: 0 0 272px; border-left: 1px solid var(--border); }

.pane-bar {
  height: 52px; flex: 0 0 52px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
}
.pane-title { font-size: 15px; font-weight: 700; }
.pill-btn {
  font-size: 11px; color: var(--text-2);
  border: 1px solid var(--border2); border-radius: 999px;
  padding: 3px 10px; background: #fff;
}
.pill-btn:hover:not(:disabled) { color: var(--blue); border-color: var(--blue); }
.pill-btn:disabled { opacity: .45; cursor: default; }

.pane-search {
  margin: 0 12px 8px; position: relative;
  display: flex; align-items: center;
}
.pane-search.sm { margin: 0 10px 8px; }
.pane-search .ic-search {
  position: absolute; left: 9px; width: 14px; height: 14px; color: var(--text-3); pointer-events: none;
}
.pane-search input {
  width: 100%; height: 30px;
  border: 1px solid var(--border); border-radius: 6px;
  background: #fff; padding: 0 26px 0 29px;
  font-size: 12px; color: var(--text);
}
.pane-search input:focus { border-color: var(--blue); }
.ic-clear { position: absolute; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: #cbd2da; color: #fff; display: flex; align-items: center; justify-content: center; }
.ic-clear svg { width: 10px; height: 10px; }

/* ---- 客服文件夹卡片 ---- */
.folder-list { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.kf-card {
  position: relative;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; margin-bottom: 8px;
  display: flex; gap: 10px;
  cursor: pointer; user-select: none;
  transition: border-color .12s, box-shadow .12s;
}
.kf-card:hover { border-color: #b9cdf5; box-shadow: 0 1px 6px rgba(61,130,254,.1); }
.kf-card.dragging { opacity: .45; }
.kf-card.dragover { border-color: var(--blue); border-style: dashed; }
.drag-handle {
  align-self: center; color: #cfd5dd; cursor: grab; flex: 0 0 8px;
  font-size: 14px; line-height: 1; letter-spacing: -2px;
}
.kf-card-body { flex: 1; min-width: 0; }
.kf-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kf-card-name { font-size: 12.5px; font-weight: 600; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-card-time { font-size: 10px; color: var(--text-3); flex: 0 0 auto; }
.kf-card-preview { margin-top: 5px; font-size: 10.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-card-preview b { color: #374151; font-weight: 500; }

/* 头像（彩色圆角方块） */
.kf-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 8px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 600;
  background: #dfe5eb;
}
.kf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.av-blue { background: var(--blue); }
.av-green { background: #22c55e; }
.av-purple { background: #a855f7; }
.av-orange { background: #f97316; }
.av-pink { background: #ec4899; }
.av-cyan { background: #06b6d4; }

.kf-avatar-wrap { position: relative; flex: 0 0 auto; }
.ci-avatar-wrap { position: relative; flex: 0 0 36px; width: 36px; height: 36px; }
.unread-badge {
  position: absolute; top: -6px; right: -6px; z-index: 2;
  min-width: 17px; height: 17px; padding: 0 5px;
  background: var(--red); color: #fff;
  border-radius: 9px; border: 2px solid #fff;
  font-size: 10px; font-weight: 600; line-height: 13px; text-align: center;
}

.list-empty { text-align: center; color: var(--text-3); font-size: 12px; padding: 40px 10px; line-height: 1.8; }

/* ---- 会话栏头部 ---- */
.conv-head {
  height: 52px; flex: 0 0 52px;
  display: flex; align-items: center; gap: 7px;
  padding: 0 10px 0 6px;
}
.icon-back {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #4b5563; flex: 0 0 auto;
}
.icon-back svg { width: 18px; height: 18px; }
.icon-back:hover { background: #e5eaf0; color: var(--blue); }
.conv-head-kf { position: relative; width: 26px; height: 26px; flex: 0 0 auto; }
.kf-mini-avatar { width: 26px; height: 26px; border-radius: 50%; background: #dfe5eb; }
.online-dot {
  position: absolute; right: -1px; bottom: -1px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--wx); border: 2px solid var(--pane-bg);
}
.conv-head-name { font-size: 13px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-head-count { font-size: 11px; color: var(--text-3); }

/* ---- 状态 tabs ---- */
.conv-tabs {
  flex: 0 0 auto;
  display: flex; border-bottom: 1px solid var(--border);
  background: var(--pane-bg);
}
.conv-tabs button {
  flex: 1; height: 38px;
  font-size: 11.5px; color: var(--text-2);
  border-bottom: 2.5px solid transparent;
  display: flex; align-items: center; justify-content: center; gap: 3px;
}
.conv-tabs button .tn { color: var(--text-3); font-size: 10.5px; }
.conv-tabs button.active { color: #111827; font-weight: 700; border-bottom-color: var(--blue); }
.conv-tabs button.active .tn { color: var(--blue); }

/* ---- 会话行 ---- */
.conv-list { flex: 1; overflow-y: auto; padding: 6px 8px; }
.conv-item {
  position: relative;
  display: flex; gap: 8px;
  padding: 9px 8px; border-radius: 8px;
  cursor: pointer; margin-bottom: 2px;
}
.conv-item:hover { background: #edf1f5; }
.conv-item.active { background: var(--active-bg); }
.ci-avatar {
  position: relative;
  width: 36px; height: 36px; border-radius: 6px; flex: 0 0 36px;
  overflow: hidden; background: #dfe5eb;
}
.ci-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ci-avatar-wrap .unread-badge { top: -5px; right: -5px; min-width: 16px; height: 16px; line-height: 12px; font-size: 9.5px; border-width: 1.5px; }
.ci-body { flex: 1; min-width: 0; }
.conv-item-top { display: flex; align-items: center; gap: 5px; }
.ci-name { font-size: 11.5px; font-weight: 600; color: #111827; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-time { margin-left: auto; font-size: 9.5px; color: var(--text-3); flex: 0 0 auto; }
.wx-tag {
  display: inline-flex; align-items: center;
  background: rgba(7,193,96,.1); color: var(--wx);
  font-size: 9px; line-height: 1;
  padding: 2px 3px; border-radius: 3px;
  font-weight: 500;
}
.ci-preview { margin-top: 4px; font-size: 10.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-kf-tag {
  display: inline-block; margin-right: 4px;
  background: rgba(61,130,254,.1); color: var(--blue);
  font-size: 9px; padding: 1px 4px; border-radius: 3px;
}
.ci-preview .timeout { color: var(--red); }

/* ---- 聊天区 ---- */
.chat-pane { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #f5f7f9; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #c2c9d2; gap: 14px; }
.chat-empty svg { width: 72px; height: 72px; }
.chat-empty p { font-size: 14px; }

.chat-main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.chat-header {
  flex: 0 0 50px; height: 50px;
  background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 18px;
}
.chat-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.chat-title .wx-green {
  background: rgba(7,193,96,.1); color: var(--wx);
  font-size: 10px; padding: 2px 5px; border-radius: 3px; font-weight: 500;
}

.msg-area { flex: 1; overflow-y: auto; padding: 18px 22px; background: #f3f3f3; }
.msg-time { text-align: center; margin: 14px 0 10px; }
.msg-time span { background: rgba(0,0,0,.18); color: #fff; font-size: 10.5px; padding: 2px 8px; border-radius: 4px; }
.msg-sys { text-align: center; margin: 10px 0; }
.msg-sys span { font-size: 11px; color: #8a929c; }
.msg-row { display: flex; margin-bottom: 12px; gap: 8px; }
.msg-row.out { flex-direction: row-reverse; }
.msg-avatar { width: 32px; height: 32px; border-radius: 5px; overflow: hidden; flex: 0 0 32px; background: #dfe5eb; }
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-content { display: flex; flex-direction: column; max-width: 58%; }
.msg-row.out .msg-content { align-items: flex-end; }
.bubble {
  position: relative;
  border: 1px solid var(--bubble-in-bd); background: var(--bubble-in);
  border-radius: 8px; padding: 7px 10px;
  font-size: 13px; line-height: 1.55;
  word-break: break-word; white-space: pre-wrap;
}
.msg-row.out .bubble { background: var(--bubble-out); border-color: var(--bubble-out-bd); }
.bubble.media { padding: 4px; background: #fff; border-color: var(--border); }
.media-img { max-width: 240px; max-height: 240px; border-radius: 6px; cursor: pointer; display: block; }
.voice-box { display: flex; align-items: center; gap: 8px; min-width: 90px; cursor: pointer; }
.voice-box svg { width: 18px; height: 18px; flex: 0 0 auto; }
.voice-box .vd { font-size: 12px; color: var(--text-2); }
.msg-status { font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.msg-status.fail { color: var(--red); }
.msg-bubble-wrap.sending .bubble { opacity: .6; }

/* ---- 输入区 ---- */
.chat-closed-bar {
  flex: 0 0 auto;
  background: #f0f1f3; color: var(--text-2);
  text-align: center; font-size: 12px; padding: 12px;
  border-top: 1px solid var(--border);
}
.composer { flex: 0 0 auto; background: #fff; border-top: 1px solid var(--border); }
.chat-toolbar { display: flex; align-items: center; gap: 2px; padding: 8px 14px 2px; }
.tb-btn {
  width: 30px; height: 30px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #5b6470;
}
.tb-btn svg { width: 21px; height: 21px; }
.tb-btn:hover { background: #f0f3f7; color: var(--blue); }
.tb-btn.recording { color: var(--red); background: #fdeaea; }
.rec-hint { font-size: 11px; color: var(--text-2); margin-left: 8px; }
.chat-input-wrap { padding: 4px 14px; }
.chat-input-wrap textarea {
  width: 100%; border: none; resize: none;
  font-size: 13px; line-height: 1.6;
  max-height: 130px; background: transparent;
}
.chat-send-row { display: flex; justify-content: flex-end; padding: 0 14px 10px; }
.btn-send {
  background: #f3f3f3; color: #9aa1ab;
  font-size: 12px; border-radius: 6px;
  padding: 6px 16px; transition: background .12s, color .12s;
}
.btn-send:not(:disabled) { color: #374151; }
.btn-send:not(:disabled):hover { background: var(--blue); color: #fff; }

/* ---- 右侧栏 ---- */
.side-tabs {
  flex: 0 0 46px; height: 46px;
  display: flex; align-items: center; gap: 4px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
}
.side-tab { font-size: 12.5px; color: var(--text-2); padding: 5px 8px; border-radius: 6px; position: relative; }
.side-tab.active { color: var(--blue); font-weight: 700; }
.side-tab.active::after {
  content: ''; position: absolute; left: 8px; right: 8px; bottom: -10px;
  height: 2.5px; background: var(--blue); border-radius: 2px;
}
.btn-end {
  margin-left: auto;
  background: var(--red); color: #fff;
  font-size: 12px; border-radius: 6px;
  padding: 6px 14px;
}
.btn-end:hover { background: #dc2626; }
.btn-end:disabled { background: #d1d5db; cursor: default; }
.btn-end:disabled:hover { background: #d1d5db; }
.btn-end.reopen { background: var(--wx); }
.btn-end.reopen:hover { background: #06a552; }

.side-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.qr-layout { flex: 1; display: flex; min-height: 0; }
.qr-groups { width: 86px; flex: 0 0 86px; background: var(--pane-bg); border-right: 1px solid var(--border); overflow-y: auto; padding: 8px 6px; }
.qr-group {
  display: block; width: 100%; text-align: left;
  padding: 7px 8px; margin-bottom: 3px;
  font-size: 11px; color: var(--text-2);
  border-radius: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qr-group:hover { background: #eaeff4; }
.qr-group.active { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.qr-list { flex: 1; overflow-y: auto; padding: 10px; }
.qr-item {
  display: block; width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 8px 10px; margin-bottom: 8px;
  font-size: 11.5px; line-height: 1.5; color: #374151;
  white-space: pre-wrap; word-break: break-word;
}
.qr-item:hover { border-color: var(--blue); }
.qr-empty { color: var(--text-3); font-size: 11.5px; text-align: center; padding: 30px 8px; line-height: 1.8; }
.qr-footer { flex: 0 0 auto; border-top: 1px solid var(--border); padding: 10px; }
.qr-footer button {
  width: 100%; border: 1px solid var(--border2); border-radius: 6px;
  background: #fff; font-size: 12px; color: var(--text-2); padding: 7px;
}
.qr-footer button:hover { color: var(--blue); border-color: var(--blue); }

/* 客户详情 */
.detail-body { padding: 20px 16px; overflow-y: auto; }
.detail-avatar { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: #dfe5eb; margin: 0 auto 10px; }
.detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.detail-name { text-align: center; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; }
.detail-sep { height: 1px; background: var(--border); margin: 16px 0; }
.detail-row { margin-bottom: 13px; }
.detail-label { font-size: 11px; color: var(--text-3); margin-bottom: 3px; }
.detail-val { font-size: 12px; color: var(--text); word-break: break-all; display: flex; align-items: center; gap: 6px; }
.detail-val .st { padding: 1px 7px; border-radius: 4px; font-size: 11px; }
.st-open { background: rgba(7,193,96,.1); color: var(--wx); }
.st-closed { background: #f1f2f4; color: var(--text-2); }
.copy-mini { font-size: 10px; color: var(--blue); border: 1px solid #bcd3fb; border-radius: 4px; padding: 0 5px; flex: 0 0 auto; }

/* ================= 设置页 ================= */
.settings-page { flex: 1; overflow-y: auto; background: #f4f6f8; }
.settings-inner { max-width: 780px; margin: 0 auto; padding: 28px 24px 60px; }
.settings-head h1 { font-size: 20px; margin-bottom: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; margin-bottom: 18px; }
.card h3 { font-size: 15px; margin-bottom: 8px; }
.desc { color: var(--text-2); font-size: 12.5px; line-height: 1.7; }
.hint-box { background: #f0f6ff; border: 1px solid #cfe1ff; color: #3a649e; font-size: 12px; line-height: 1.9; border-radius: 8px; padding: 10px 14px; margin: 14px 0 18px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 12.5px; color: #374151; margin-bottom: 6px; }
.form-row input[type=text], .form-row input[type=password], .form-row textarea {
  width: 100%; border: 1px solid var(--border2); border-radius: 8px;
  padding: 9px 12px; background: #fff;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--blue); }
.form-row textarea { resize: vertical; min-height: 84px; line-height: 1.6; }
.form-inline { display: flex; gap: 8px; }
.form-inline input { flex: 1; }
.copyable { display: flex; gap: 8px; }
.copyable input { flex: 1; background: #f7f9fa; }
.icon-btn { border: 1px solid var(--border2); border-radius: 8px; background: #fff; padding: 0 12px; font-size: 15px; }
.icon-btn:hover { border-color: var(--blue); }
.btn-row { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.btn { border-radius: 8px; padding: 9px 18px; font-size: 13px; }
.btn.blue { background: var(--blue); color: #fff; font-weight: 600; }
.btn.blue:hover { background: var(--blue-dark); }
.status-pill { font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.status-pill.yes { background: rgba(7,193,96,.12); color: var(--wx); }
.status-pill.no { background: #f1f2f4; color: var(--text-2); }
.switch { display: inline-flex; }
.switch input { display: none; }
.switch i { width: 42px; height: 24px; border-radius: 12px; background: #d1d5db; position: relative; transition: background .15s; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--blue); }
.switch input:checked + i::after { left: 20px; }
.switch-row { display: flex; align-items: center; gap: 12px; }
.switch-row .t { font-size: 13px; font-weight: 600; }
.switch-row .d { font-size: 11.5px; color: var(--text-2); }
.managed-hint { color: var(--text-2); font-size: 12.5px; }

/* ================= 弹窗 ================= */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.42); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { width: 560px; max-height: 80vh; background: #fff; border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 15px; }
.modal-close { color: var(--text-3); font-size: 14px; width: 28px; height: 28px; border-radius: 6px; }
.modal-close:hover { background: #f1f3f6; color: var(--text); }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.qr-admin-list { margin-bottom: 18px; max-height: 280px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; }
.qr-admin-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.qr-admin-item:last-child { border-bottom: none; }
.qr-admin-group { flex: 0 0 80px; font-size: 11px; color: var(--blue); background: rgba(61,130,254,.08); border-radius: 4px; padding: 2px 6px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-admin-text { flex: 1; color: #374151; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.qr-del { flex: 0 0 auto; color: var(--text-3); font-size: 12px; padding: 3px 8px; border-radius: 5px; }
.qr-del:hover { color: var(--red); background: #fdeaea; }
.qr-admin-add { border-top: 1px dashed var(--border2); padding-top: 16px; }

/* ================= Toast ================= */
.toast {
  position: fixed; left: 50%; bottom: 44px; transform: translateX(-50%) translateY(20px);
  background: rgba(17,24,39,.9); color: #fff;
  font-size: 13px; padding: 9px 18px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  z-index: 100; max-width: 70vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 滚动条 */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.16); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
