/* ==========================================================
   在线客服中心 · 聚合客服系统
   视觉：红金政务风 / 浅色 / 卡片式
   ========================================================== */

:root {
  --brand: #C8161D;
  --brand-dark: #A3121A;
  --brand-soft: #FBEEEE;
  --gold: #C9A227;
  --gold-soft: #FBF5E3;
  --ink: #1D1D1F;
  --ink-2: #43464B;
  --muted: #8A8F98;
  --line: #EBE7E0;
  --line-2: #F3F0EA;
  --bg: #F7F6F3;
  --card: #FFFFFF;
  --ok: #0E9F6E;
  --warn: #B45309;
  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(29, 29, 31, .04);
  --shadow: 0 1px 2px rgba(29, 29, 31, .04), 0 10px 28px rgba(29, 29, 31, .06);
  --shadow-lg: 0 24px 60px rgba(29, 29, 31, .16);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }

/* ---------------- 顶部栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 1020px; margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; gap: 12px;
}
.logo {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 11px;
  background: linear-gradient(140deg, #D51C22, #9E0F16);
  color: #fff; font-family: "Songti SC", "SimSun", serif;
  font-size: 18px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(200, 22, 29, .28);
}
.brand { min-width: 0; flex: 1; }
.brand-name {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 16px; font-weight: 700; letter-spacing: .06em;
  line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-sub { font-size: 11.5px; color: var(--muted); letter-spacing: .1em; line-height: 1.4; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.clock {
  font-size: 13px; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  padding: 4px 10px; border-radius: 8px;
  background: var(--line-2); border: 1px solid var(--line);
}

/* ---------------- 布局 ---------------- */
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 20px; }
.page { padding: 26px 0 56px; min-height: calc(100vh - 190px); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 12px;
  font-size: 15px; font-weight: 500; font-family: inherit;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s, color .18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 8px 20px rgba(200, 22, 29, .22);
}
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 10px 24px rgba(200, 22, 29, .3); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: #D8D2C8; background: #FCFBF9; color: var(--ink); }
.btn-gold { background: var(--gold-soft); border-color: #EDE3C4; color: #8A6D0B; }
.btn-gold:hover { background: #F7EED4; }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; border-radius: 9px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------------- 标题区 ---------------- */
.hero-head { margin-bottom: 16px; }
.hero-head h1 {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 26px; font-weight: 700; letter-spacing: .06em; line-height: 1.35;
}
.hero-head p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ---------------- 状态条 ---------------- */
.statusbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--muted);
  margin-bottom: 14px;
}
.statusbar .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 4px rgba(14, 159, 110, .12);
}
.statusbar .sep { color: #D6D1C7; }
.statusbar strong { color: var(--ink-2); font-weight: 600; }

/* ---------------- 主客服卡 ---------------- */
.kf-card {
  position: relative; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px 24px;
}
.kf-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 46%, var(--gold) 100%);
}
.kf-card-head { display: flex; align-items: flex-start; gap: 18px; }
.avatar {
  width: 64px; height: 64px; flex: 0 0 64px;
  border-radius: 18px;
  display: grid; place-items: center;
  color: #fff; font-size: 26px; font-weight: 600;
  background: var(--c, #C8161D);
  box-shadow: 0 8px 18px rgba(29, 29, 31, .14);
  user-select: none;
}
.avatar.sm { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; font-size: 19px; }
.avatar.xs { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; font-size: 14px; }
.kf-info { min-width: 0; flex: 1; }
.kf-name {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 20px; font-weight: 700; letter-spacing: .01em; line-height: 1.4;
}
.kf-desc { color: var(--ink-2); font-size: 14px; margin-top: 3px; }
.kf-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin-top: 9px; font-size: 12.5px; color: var(--muted);
}
.kf-meta b { color: var(--ink-2); font-weight: 500; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px; border-radius: 6px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .02em;
  background: #EFF8F4; color: #0B7A55; border: 1px solid #D6EEE5;
  white-space: nowrap;
}
.badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: block; }
.badge.gray { background: #F4F3F0; color: #85888E; border-color: #E7E4DD; }
.badge.red { background: var(--brand-soft); color: var(--brand); border-color: #F3D9DA; }
.badge.gold { background: var(--gold-soft); color: #8A6D0B; border-color: #EEE3C5; }

.kf-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 22px; padding-top: 20px;
  border-top: 1px dashed var(--line);
}
.kf-actions .btn-primary { min-width: 168px; }

/* ---------------- 二维码 + 链接直显 ---------------- */
.kf-connect {
  display: flex; align-items: flex-start; gap: 18px;
  margin-top: 20px; padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.qr-panel { flex: 0 0 148px; width: 148px; text-align: center; cursor: pointer; }
.qr-panel-img {
  width: 148px; height: 148px; padding: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.qr-panel:hover .qr-panel-img { border-color: #E4B9BA; box-shadow: 0 6px 16px rgba(200, 22, 29, .1); transform: translateY(-1px); }
.qr-panel-img svg { width: 100%; height: 100%; display: block; }
.qr-panel-img img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 4px; }
.qr-panel-img.sm { width: 112px; height: 112px; }
.qr-panel-img.qr-fail {
  color: var(--muted); font-size: 11.5px; line-height: 1.6; text-align: center;
  background: var(--line-2); border-style: dashed;
}
.qr-panel-cap { font-size: 11.5px; color: var(--muted); margin-top: 7px; letter-spacing: .02em; }
.kf-connect-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.kf-connect .kf-actions { margin-top: 14px; padding-top: 0; border-top: 0; }
.kf-hint {
  font-size: 13px; line-height: 1.7; color: var(--ink-2);
  background: var(--line-2); border-radius: 10px; padding: 11px 13px;
}

.link-line {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  background: var(--line-2); border-radius: 10px; padding: 8px 10px;
}
.link-k { flex: 0 0 auto; font-size: 11.5px; color: var(--muted); }
.link-v {
  flex: 1; min-width: 0; font-size: 11.5px; color: var(--ink-2);
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.link-v:hover { color: var(--brand); text-decoration: underline; }

/* 列表卡片里的二维码与链接 */
.staff-top { align-items: flex-start; }
.staff-qr {
  flex: 0 0 56px; width: 56px; height: 56px; padding: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  cursor: pointer; transition: border-color .16s;
}
.staff-qr:hover { border-color: #E4B9BA; }
.staff-qr svg { width: 100%; height: 100%; display: block; }
.staff-link {
  display: flex; align-items: center; gap: 7px; min-width: 0;
  background: var(--line-2); border-radius: 8px; padding: 6px 9px;
}
.staff-link a {
  flex: 1; min-width: 0; font-size: 11px; color: var(--ink-2);
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.staff-link a:hover { color: var(--brand); text-decoration: underline; }

/* 非值班时的落地二维码 */
.offline-connect {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: 20px; text-align: left;
}
.offline-side { flex: 0 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

/* ---------------- 分区标题 ---------------- */
.section { margin-top: 34px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.section-head h2 {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 16px; font-weight: 700; letter-spacing: .04em;
  display: flex; align-items: center; gap: 9px;
}
.section-head h2::before {
  content: ""; width: 3px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--gold));
}
.section-head .hint { font-size: 12.5px; color: var(--muted); }

/* ---------------- 空态 / 离线 ---------------- */
.empty-card {
  background: var(--card); border: 1px dashed #DCD6CB; border-radius: var(--radius);
  padding: 40px 28px; text-align: center;
}
.empty-icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 16px; background: var(--gold-soft); color: #9A7B10;
  display: grid; place-items: center; font-size: 24px;
  font-family: "Songti SC", "SimSun", serif;
}
.empty-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.empty-card p { color: var(--muted); font-size: 13.5px; max-width: 440px; margin: 0 auto 18px; }

/* ---------------- 图例 ---------------- */
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.legend-dot { width: 9px; height: 9px; border-radius: 3px; }
.legend-item .muted { color: var(--muted); }

/* ---------------- 管理端 ---------------- */
.admin-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
}
.admin-head h1 {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 21px; font-weight: 700; letter-spacing: .04em;
}
.admin-head p { font-size: 13px; color: var(--muted); margin-top: 2px; }

.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.stat {
  flex: 1 1 130px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 16px; box-shadow: var(--shadow-sm);
}
.stat b { display: block; font-size: 23px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
.stat.accent b { color: var(--brand); }
.stat.ok b { color: var(--ok); }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h3 { font-size: 15px; font-weight: 700; }
.panel-head .hint { font-size: 12px; color: var(--muted); }
.panel-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.agent-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line-2);
}
.agent-row:last-child { border-bottom: 0; padding-bottom: 0; }
.agent-row:first-child { padding-top: 0; }
.agent-main { flex: 1; min-width: 0; }
.agent-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.agent-title strong { font-size: 14.5px; font-weight: 600; }
.agent-url {
  font-size: 12px; color: var(--muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
.agent-url.type-wecom { color: #2E7D6B; }
.agent-time { font-size: 12px; color: var(--ink-2); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.chip-time {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--line-2); border-radius: 6px; padding: 2px 8px;
  font-size: 11.5px; color: var(--ink-2);
}
.agent-ops { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.icon-btn {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 13px; cursor: pointer; display: grid; place-items: center;
  transition: .15s;
}
.icon-btn:hover { background: #F7F5F1; border-color: #D8D2C8; color: var(--ink); }
.icon-btn.danger:hover { background: var(--brand-soft); border-color: #F0CFD0; color: var(--brand); }
.icon-btn[disabled] { opacity: .32; cursor: not-allowed; }

.sw {
  width: 38px; height: 22px; flex: 0 0 38px; border: 0; border-radius: 99px;
  background: #DCD7CD; position: relative; cursor: pointer; padding: 0;
  transition: background .2s;
}
.sw i { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: left .2s; }
.sw.on { background: var(--ok); }
.sw.on i { left: 18px; }

/* 表单 */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 500; margin-bottom: 6px; }
.field .tip { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.inp, select.inp, textarea.inp {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #FDFCFA; outline: none; transition: .16s;
}
textarea.inp { height: auto; padding: 10px 12px; resize: vertical; min-height: 68px; line-height: 1.6; }
.inp:focus { border-color: #E4A7A9; background: #fff; box-shadow: 0 0 0 3px rgba(200, 22, 29, .08); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-card {
  flex: 1 1 200px; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start;
  transition: .16s; background: #FDFCFA;
}
.radio-card:hover { border-color: #DCD6CB; }
.radio-card.sel { border-color: #E8B7B9; background: var(--brand-soft); }
.radio-card input { margin: 3px 0 0; accent-color: var(--brand); }
.radio-card b { display: block; font-size: 13.5px; font-weight: 600; }
.radio-card span { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.check-row { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; padding: 6px 0; }
.check-row input { width: 16px; height: 16px; accent-color: var(--brand); }

/* 排班总览 */
.sched-table { display: grid; grid-template-columns: 40px 1fr; gap: 7px 10px; align-items: center; }
.sched-day { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.sched-day.today { color: var(--brand); font-weight: 700; }
.sched-bar { display: flex; gap: 1.5px; height: 22px; }
.sched-seg { flex: 1; border-radius: 2px; background: #EFECE6; }
.sched-hours { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 2px; grid-column: 2; }
.sched-hours span { font-variant-numeric: tabular-nums; }

/* 说明 */
.doc { font-size: 13px; color: var(--ink-2); line-height: 1.85; }
.doc ol { margin: 0; padding-left: 18px; }
.doc li { margin-bottom: 4px; }
.doc code {
  background: var(--line-2); border-radius: 5px; padding: 1px 6px;
  font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: #8A4B12;
}

/* ---------------- 弹窗 ---------------- */
.modal {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(24, 22, 20, .42);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fade .16s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
  animation: pop .18s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 15.5px; font-weight: 700; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 14px 20px; border-top: 1px solid var(--line); background: #FCFBF9;
}
.close-x {
  width: 30px; height: 30px; border: 0; background: transparent; border-radius: 8px;
  color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer;
}
.close-x:hover { background: var(--line-2); color: var(--ink); }

/* 二维码 */
.qr-wrap { text-align: center; }
.qr-box {
  width: 220px; height: 220px; margin: 0 auto 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px; display: flex; align-items: center; justify-content: center;
}
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-name { font-size: 15px; font-weight: 600; }
.qr-tip { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.qr-link {
  margin-top: 12px; font-size: 11.5px; color: var(--muted);
  word-break: break-all; background: var(--line-2);
  border-radius: 8px; padding: 8px 10px; text-align: left;
  font-family: ui-monospace, Consolas, monospace;
}

/* 排班编辑 */
.rule-list { display: flex; flex-direction: column; gap: 9px; }
.rule-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #FCFBF9; border: 1px solid var(--line); border-radius: 11px;
  padding: 9px 10px;
}
.day-chips { display: flex; gap: 3px; }
.chip {
  width: 26px; height: 26px; border-radius: 7px; padding: 0;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: 11.5px; cursor: pointer; transition: .14s;
}
.chip:hover { border-color: #D5CFC4; color: var(--ink-2); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.time-range { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.time-range input {
  width: 84px; height: 28px; border: 1px solid var(--line); border-radius: 7px;
  background: #fff; padding: 0 6px; font-size: 12.5px; font-variant-numeric: tabular-nums;
}
.time-range .to { font-size: 12px; color: var(--muted); }
.rule-empty { font-size: 12.5px; color: var(--muted); padding: 10px 0; }
.preset-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }

.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0;
}
.swatch.on { box-shadow: 0 0 0 2px var(--brand); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 14px);
  background: rgba(29, 29, 31, .92); color: #fff;
  padding: 10px 20px; border-radius: 11px; font-size: 13.5px;
  opacity: 0; pointer-events: none; transition: .22s; z-index: 200;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22); max-width: 80vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 页脚提示 */
.note {
  margin-top: 26px; text-align: center;
  font-size: 12px; color: var(--muted); line-height: 1.7;
}

/* 页脚 */
.foot { border-top: 1px solid var(--line); background: #FBFAF8; }
.foot-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 20px; font-size: 12px; color: var(--muted);
}
.foot-link { color: var(--muted); text-decoration: none; }
.foot-link:hover { color: var(--brand); }
.foot-link[hidden] { display: none; }

/* ---------------- 云同步 ---------------- */
.sync-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 9px; border-radius: 8px;
  background: #F2F1ED; color: #8A8F98; font-size: 11.5px; white-space: nowrap;
}
.sync-chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: block; }
.sync-chip.ok { background: #EEF8F3; color: #0B7A55; }
.sync-chip.bad { background: #FDEDED; color: var(--brand); }
.sync-chip.busy { background: var(--gold-soft); color: #8A6D0B; }
.sync-chip.idle { background: #F2F1ED; color: #8A8F98; }

.sync-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.sync-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(14, 159, 110, .12); }
.sync-dot.bad { background: var(--brand); box-shadow: 0 0 0 3px rgba(200, 22, 29, .1); }
.sync-dot.busy { background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, .14); }
.sync-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sync-ops { display: flex; gap: 6px; flex: 0 0 auto; }

.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #FEF6E7; border: 1px solid #F2E0B8; color: #8A6314;
  border-radius: 12px; padding: 10px 14px; font-size: 12.5px; line-height: 1.6;
  margin-bottom: 14px;
}
.banner .btn { flex: 0 0 auto; }

/* ---------------- 管理口令 ---------------- */
.lock-panel { max-width: 400px; margin: 40px auto; padding: 34px 26px; text-align: center; }
.lock-icon {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 16px;
  background: var(--gold-soft); color: #8A6D0B;
  display: grid; place-items: center; font-size: 20px;
  font-family: "Songti SC", "SimSun", serif;
}
.lock-panel h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.lock-panel p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.lock-form { display: flex; gap: 8px; margin-top: 18px; }
.lock-form .inp { flex: 1; }
.lock-panel .warn { color: var(--brand); }
.gate-form { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.gate-form .btn { margin-top: 4px; }
.lock-panel .tip { margin-top: 14px; font-size: 12px; color: var(--muted); }

/* ---------------- 逐天排班编辑 ---------------- */
.day-editor {
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px; background: #FCFBF9;
}
.day-row { display: flex; align-items: center; gap: 10px; }
.day-label { width: 34px; flex: 0 0 34px; font-size: 12.5px; color: var(--muted); }
.day-row.on .day-label { color: var(--ink-2); font-weight: 600; }
.day-row .time-range { margin-left: 0; flex: 1; justify-content: flex-start; }
.day-row .time-range input { width: 96px; height: 30px; }
.day-row .time-range input:disabled { opacity: .42; }
.day-row .icon-btn { width: 26px; height: 26px; font-size: 12px; }
.mini-btn {
  height: 24px; padding: 0 7px; border-radius: 7px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: 11px; cursor: pointer; flex: 0 0 auto; transition: .14s;
}
.mini-btn:hover { border-color: #D5CFC4; color: var(--ink-2); background: #FCFBF9; }
.day-summary { font-size: 12px; color: var(--ink-2); margin-top: 8px; }

.sw.sm { width: 32px; height: 19px; flex: 0 0 32px; }
.sw.sm i { width: 15px; height: 15px; }
.sw.sm.on i { left: 15px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 640px) {
  .page { padding: 18px 0 40px; }
  .wrap { padding: 0 14px; }
  .kf-card { padding: 20px 18px; border-radius: 16px; }
  .avatar { width: 52px; height: 52px; flex-basis: 52px; font-size: 22px; border-radius: 15px; }
  .kf-name { font-size: 17.5px; }
  .kf-actions { gap: 8px; }
  .kf-actions .btn-primary { flex: 1 1 100%; min-width: 0; }
  .kf-actions .btn-ghost { flex: 1 1 0; padding: 0 10px; font-size: 13.5px; }
  .kf-connect { gap: 12px; }
  .qr-panel { flex: 0 0 100px; width: 100px; }
  .qr-panel-img { width: 100px; height: 100px; padding: 6px; }
  .qr-panel-cap { font-size: 10.5px; }
  .qr-panel-img.sm { width: 96px; height: 96px; }
  .link-line { padding: 7px 9px; }
  .offline-connect { gap: 12px; }
  .offline-side { flex: 1; }
  .staff-qr { flex-basis: 50px; width: 50px; height: 50px; }
  .grid2 { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr; }
  .agent-row { flex-wrap: wrap; }
  .agent-ops { width: 100%; justify-content: flex-end; }
  .clock { display: none; }
  .sync-chip .txt { display: none; }
  .sync-chip { padding: 0 7px; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-card { max-width: 100%; border-radius: 18px 18px 0 0; max-height: 92vh; }
  .qr-box { width: 190px; height: 190px; }
  .day-row .time-range input { width: 82px; }
  .sync-row { flex-wrap: wrap; }
  .sync-text { white-space: normal; }
  .sync-ops { width: 100%; justify-content: flex-end; }
}

/* ---------------- 在线客服机器人 ---------------- */
#chatWidget { position: fixed; right: 18px; bottom: 18px; z-index: 60; }
.chat-panel {
  position: absolute; right: 0; bottom: 0; width: 360px; max-width: calc(100vw - 36px);
  height: 540px; max-height: calc(100vh - 120px);
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  animation: chatPop .18s cubic-bezier(.2, .9, .3, 1.1);
}
.chat-panel[hidden] { display: none; }
@keyframes chatPop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 13px 14px; background: linear-gradient(120deg, #C8161D, #A3121A); color: #fff; }
.chat-head-avatar { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; font-size: 17px; font-family: "Songti SC", "SimSun", serif; }
.chat-head-info { flex: 1; min-width: 0; }
.chat-head-title { font-size: 14.5px; font-weight: 700; }
.chat-head-sub { font-size: 11.5px; opacity: .88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-close { width: 28px; height: 28px; border: 0; background: rgba(255, 255, 255, .15); color: #fff; border-radius: 8px; font-size: 18px; line-height: 1; cursor: pointer; }
.chat-close:hover { background: rgba(255, 255, 255, .28); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.chat-msg { display: flex; }
.chat-msg.me { justify-content: flex-end; }
.chat-bubble { max-width: 80%; padding: 9px 12px; border-radius: 13px; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.chat-msg.bot .chat-bubble { background: #fff; border: 1px solid var(--line); border-top-left-radius: 4px; color: var(--ink); }
.chat-msg.me .chat-bubble { background: linear-gradient(140deg, #D51C22, #9E0F16); color: #fff; border-top-right-radius: 4px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; }
.chat-chip { border: 1px solid #E7D9A9; background: var(--gold-soft); color: #8A6D0B; font-size: 12px; padding: 5px 10px; border-radius: 99px; cursor: pointer; font-family: inherit; }
.chat-chip:hover { background: #F7EED4; }
.chat-chip.handoff { background: #FDEDED; border-color: #F3C9CA; color: var(--brand); }
.chat-input-row { display: flex; gap: 8px; padding: 10px 12px 6px; align-items: flex-end; }
.chat-input { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; resize: none; max-height: 96px; line-height: 1.5; outline: none; font-family: inherit; font-size: 13.5px; }
.chat-input:focus { border-color: #E4A7A9; box-shadow: 0 0 0 3px rgba(200, 22, 29, .08); }
.chat-send { flex: 0 0 auto; height: 38px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font-size: 13.5px; cursor: pointer; }
.chat-send:disabled { opacity: .5; cursor: not-allowed; }
.chat-handoff-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.chat-handoff-title { font-size: 13.5px; font-weight: 600; }
.chat-handoff-sub { font-size: 12px; color: var(--muted); margin: 3px 0 10px; line-height: 1.5; }
.chat-handoff-body { display: flex; gap: 12px; align-items: center; }
.chat-handoff-body .qr-panel-img { flex: 0 0 84px; width: 84px; height: 84px; padding: 5px; }
.chat-handoff-actions { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bot-faq-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.bot-faq-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #FCFBF9; position: relative; }
.bot-faq-row .mini-btn { position: absolute; top: 8px; right: 8px; }
.bot-faq-row .field { margin-bottom: 8px; }
.bot-faq-row .field:last-child { margin-bottom: 0; }
.bot-faq-row label { font-size: 11.5px; }
@media (max-width: 640px) {
  #chatWidget { right: 12px; bottom: 12px; }
  .chat-panel { bottom: 0; height: 78vh; width: 340px; }
}

/* ===== 接待模式切换 ===== */
.mode-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.mode-opt {
  position: relative; display: flex; flex-direction: column; gap: 5px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; transition: border-color .18s, box-shadow .18s, background .18s;
}
.mode-opt input { position: absolute; opacity: 0; pointer-events: none; }
.mode-opt b { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.mode-opt span { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.mode-opt:hover { border-color: #D9CBB3; }
.mode-opt.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(200, 22, 29, .07); }
.mode-opt.on b { color: var(--brand); }

/* ===== 知识库文件 ===== */
.bot-doc-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.bot-doc-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #FCFBF9;
}
.doc-badge {
  flex: none; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 7px; border-radius: 5px; background: var(--brand); color: #fff;
}
.doc-name { flex: 1; min-width: 0; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-meta { flex: none; font-size: 11.5px; color: var(--muted); }
.doc-upload { padding: 14px; border: 1px dashed #D9CFBE; border-radius: 12px; background: #FCFBF9; }
.doc-upload input[type="file"] { width: 100%; font-size: 13px; color: #5A544A; margin-bottom: 8px; }
.doc-upload input[type="file"]::file-selector-button {
  margin-right: 10px; padding: 7px 14px; border: 1px solid var(--brand);
  border-radius: 8px; background: var(--brand-soft); color: var(--brand);
  font-family: inherit; font-size: 12.5px; cursor: pointer;
}
.doc-upload input[type="file"]::file-selector-button:hover { background: #F9E3E4; }
@media (max-width: 640px) {
  .mode-seg { grid-template-columns: 1fr; }
  .bot-doc-row { flex-wrap: wrap; }
}

/* ===== 多渠道（平台）汇聚 ===== */
.ch-badge {
  --ch: #07C160;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px 2px 6px; border-radius: 20px;
  background: #fff;
  border: 1px solid var(--ch);
  color: var(--ch); font-size: 11px; font-weight: 600; line-height: 18px;
}
.ch-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--ch); }

/* 前台：其他平台入口 */
.ch-section { margin-top: 22px; }
.ch-section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.ch-section-head h3 { margin: 0; font-size: 15px; color: var(--ink); font-weight: 600; letter-spacing: .01em; }
.ch-section-head .hint { font-size: 12px; color: var(--muted); }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 340px)); gap: 12px; justify-content: start; }
.ch-card {
  --ch: #07C160;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px; box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.ch-card:hover { border-color: var(--ch); box-shadow: var(--shadow); transform: translateY(-1px); }
.ch-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ch-mark {
  flex: none; width: 22px; height: 22px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ch); color: #fff; font-size: 11px; font-weight: 700;
}
.ch-name { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ch-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #D8D3CA; }
.ch-dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(14, 159, 110, .12); }
.ch-card-body { display: flex; gap: 12px; align-items: flex-start; }
.ch-qr {
  flex: none; width: 84px; height: 84px; border-radius: 10px;
  border: 1px solid var(--line-2); background: #fff; padding: 4px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .18s;
}
.ch-qr:hover { border-color: var(--ch); }
.ch-qr-img, .ch-qr-img img { width: 100%; height: 100%; display: block; }
.ch-qr-img img { object-fit: contain; }
.ch-qr-off {
  cursor: default; background: #FAF8F5; border-style: dashed;
  color: var(--muted); font-size: 11px; text-align: center; line-height: 1.4;
}
.ch-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ch-agent { font-size: 13px; font-weight: 600; color: var(--ink); }
.ch-acc {
  font-size: 11.5px; color: var(--ch, var(--brand)); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ch-tip { font-size: 11.5px; color: var(--muted); line-height: 1.55; }

/* 后台：渠道管理 */
.ch-admin-list { display: flex; flex-direction: column; gap: 10px; }
.ch-admin-row {
  --ch: #07C160;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 12px; border: 1px solid var(--line);
  border-left: 3px solid var(--ch); border-radius: 12px; background: #FCFBF9;
}
.ch-admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.ch-admin-line { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; }
.inp-sm { height: 34px; font-size: 12.5px; padding: 0 10px; }
.ch-admin-stat { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 66px; }
.ch-admin-stat .n { display: flex; align-items: baseline; gap: 3px; }
.ch-admin-stat b { font-size: 15px; color: var(--ink); line-height: 1; }
.ch-admin-stat span { font-size: 10.5px; color: var(--muted); }
.ch-admin-stat em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.ch-admin-stat em.on { color: var(--ok); }

/* 后台：排班分组 */
.sched-group + .sched-group { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.sched-group-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }

/* 二维码图片上传 */
.qr-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px dashed #D9CFBE; border-radius: 12px; background: #FCFBF9; }
.qr-upload input[type="file"] { flex: 1; min-width: 180px; font-size: 12.5px; color: #5A544A; }
.qr-upload input[type="file"]::file-selector-button {
  margin-right: 10px; padding: 6px 13px; border: 1px solid var(--brand);
  border-radius: 8px; background: var(--brand-soft); color: var(--brand);
  font-family: inherit; font-size: 12px; cursor: pointer;
}
.qr-up-preview { width: 84px; height: 84px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.qr-box img { max-width: 100%; height: auto; display: block; border-radius: 8px; }

@media (max-width: 640px) {
  .ch-grid { grid-template-columns: 1fr; }
  .ch-admin-line { grid-template-columns: 1fr; }
  .ch-admin-row { flex-wrap: wrap; }
  .ch-admin-stat { flex-direction: row; align-items: center; gap: 6px; min-width: 0; }
}

/* ==========================================================
   业务专席（前台两个入口 + 后台专席管理）
   ========================================================== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 16px;
  align-items: start;
}

.svc-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--c, var(--brand));
}
.svc-card.off { background: #FDFCFA; }
.svc-card.off::before { background: #DCD6CB; }

.svc-card-head { display: flex; align-items: flex-start; gap: 14px; }
.svc-info { min-width: 0; flex: 1; }
.svc-name {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: "Songti SC", "SimSun", "Noto Serif SC", serif;
  font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.3;
  letter-spacing: .01em;
}
.svc-desc { color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.svc-meta {
  font-size: 12px; color: var(--muted); margin-top: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.svc-meta b { color: var(--ink-2); font-weight: 600; }

.svc-card-body { display: flex; gap: 16px; margin-top: 16px; }
.svc-side { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.svc-side .kf-actions { margin-top: 12px; }
.svc-side .kf-actions .btn-primary { flex: 1; min-width: 0; }

/* 后台：专席列表 */
.svc-admin-list { display: flex; flex-direction: column; gap: 10px; }
.svc-admin-row {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px;
  background: #FCFBF9; border-left: 3px solid var(--c, var(--brand));
}
.svc-admin-main { flex: 1; min-width: 0; }
.svc-admin-title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: var(--ink); }
.svc-admin-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-admin-meta .sep { margin: 0 6px; color: #D6D1C7; }

/* 后台：按专席分组的客服列表 */
.agent-group + .agent-group { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.agent-group-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.agent-group-head b { font-size: 13.5px; color: var(--ink); }
.agent-group-head .hint { font-size: 11.5px; color: var(--muted); }
.agent-group-head .mini-btn { margin-left: auto; }

/* 后台：按专席的知识库切换 */
.svc-tabs-wrap { margin: 16px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: #FCFBF9; }
.svc-tabs-label { font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.svc-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tab {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-family: inherit; font-size: 13px; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.svc-tab:hover { border-color: #D9CBB3; }
.svc-tab.on { border-color: var(--c, var(--brand)); background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 0 0 3px rgba(200, 22, 29, .07); }
.svc-tab-mark {
  width: 20px; height: 20px; border-radius: 6px; flex: 0 0 20px;
  background: var(--c, var(--brand)); color: #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
}

/* 后台：按专席手动指定 */
.manual-grid { display: flex; flex-direction: column; gap: 9px; }
.manual-item { display: flex; align-items: center; gap: 10px; }
.manual-svc { flex: 0 0 130px; font-size: 12.5px; color: var(--ink-2); }
.manual-item .inp { flex: 1; max-width: 260px; }

@media (max-width: 760px) {
  .svc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .svc-card { padding: 18px 16px 16px; border-radius: 16px; }
  .svc-name { font-size: 17px; }
  .svc-card-body { gap: 12px; }
  .svc-card-body .qr-panel { flex: 0 0 104px; width: 104px; }
  .svc-card-body .qr-panel-img { width: 104px; height: 104px; padding: 6px; }
  .svc-side .kf-actions .btn-primary { flex: 1 1 100%; min-width: 0; }
  .svc-side .kf-actions .btn-ghost { flex: 1 1 0; padding: 0 10px; font-size: 13px; }
  .svc-admin-row { flex-wrap: wrap; }
  .svc-admin-row .agent-ops { width: 100%; justify-content: flex-end; }
  .manual-item { flex-wrap: wrap; }
  .manual-svc { flex: 1 1 100%; }
  .manual-item .inp { max-width: none; }
}

/* 移动端：值班信息允许换行，避免被截断 */
@media (max-width: 640px) {
  .svc-meta { white-space: normal; line-height: 1.55; }
  .svc-side .kf-hint { font-size: 12px; padding: 8px 10px; }
}
