:root { --bg:#f5f7fa; --panel:#fff; --line:#e4e7ed; --muted:#909399; --text:#303133; --brand:#2f6bff; }
* { box-sizing: border-box; }
[v-cloak] { display: none; }
body { margin:0; background:var(--bg); color:var(--text); font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif; font-size:14px; }
.center { min-height:100vh; display:flex; align-items:center; justify-content:center; }
.shell { display:flex; min-height:100vh; }
.side { width:200px; background:#1f2d3d; color:#c0c4cc; flex-shrink:0; }
.side .logo { color:#fff; font-weight:600; padding:18px 20px; font-size:16px; }
.side .nav { padding:11px 20px; cursor:pointer; }
.side .nav.on { background:var(--brand); color:#fff; }
.main { flex:1; min-width:0; display:flex; flex-direction:column; }
.top { height:56px; background:var(--panel); border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; padding:0 20px; gap:12px; }
.content { padding:20px; flex:1; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:16px; }
.seats-phone { display: none; }
.row { display:flex; align-items:center; gap:8px; }
.who { display:flex; align-items:center; gap:6px; color: var(--muted); }
.who .logout { border:0; background:none; color: var(--brand); font: inherit; font-size: 13px; cursor: pointer; padding: 0; }
.between { justify-content:space-between; }
.toolbar { margin-bottom:12px; flex-wrap:wrap; }
.pager { justify-content:flex-end; margin-top:12px; }
.small { font-size:12px; font-weight:400; }
.clickable .el-table__row { cursor:pointer; }
.phone { font-size:16px; font-weight:600; letter-spacing:1px; }
.card h3 { margin:0 0 12px; font-size:15px; }
.kv { display:grid; grid-template-columns:80px 1fr; gap:6px 12px; }
.kv .k { color:var(--muted); }
.muted { color:var(--muted); }
.auth-card { width:360px; max-width:calc(100vw - 32px); background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:24px; }
.auth-card h2 { margin:0 0 16px; font-size:18px; }
.auth-alert { margin-bottom:12px; }
.block { width:100%; }
.auth-alt { margin:12px 0 0 !important; }
.flat { margin:0; font-size:15px; }
.link-box textarea { font-family:ui-monospace,Consolas,monospace; word-break:break-all; }
.tabs { display:none; gap:16px; }
.tabs .tab { cursor:pointer; color:var(--muted); }
.tabs .tab.on { color:var(--brand); font-weight:600; }
@media (max-width: 768px) {
  .side, .tabs { display:none; }
  .content { padding:12px 14px calc(96px + env(safe-area-inset-bottom)); }
  .customer-drawer { width:100% !important; }
  .account-dialog, .el-dialog { width:calc(100vw - 24px) !important; }
}
.seatbar { flex-wrap:nowrap; }
.admin-tabs { margin-bottom:12px; }
.dial-tip { margin:-4px 0 12px; }
.attempt { padding:6px 0; border-bottom:1px dashed var(--line); }
.recording-player { display:block; width:100%; margin-top:8px; }
.transcript { margin-top:8px; }
.sentence { display:flex; gap:8px; align-items:baseline; margin-top:6px; }
.sentence.hl { background:#fff3cd; border-radius:4px; }
.analysis { margin-top:8px; }
.analysis .tags { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0; }
.tag-item { display:inline-flex; align-items:center; gap:2px; }
.tag-ev { cursor:pointer; }
.profile-row { padding:4px 0; border-bottom:1px dashed #e4e7ed; }
.sentence .seek { border:0; background:none; color:var(--brand); padding:0; cursor:pointer; font:inherit; }
.attempt:last-child { border-bottom:none; }
.callbar { position:fixed; right:20px; bottom:20px; width:300px; max-width:calc(100vw - 32px); background:#1f2d3d; color:#fff; border-radius:12px; padding:14px 16px; box-shadow:0 8px 24px rgba(0,0,0,.25); z-index:3000; }
.callbar .num { font-size:17px; margin:6px 0 8px; letter-spacing:1px; }
.callbar .dim { opacity:.7; }
.callbar .tip { margin-top:8px; line-height:1.5; opacity:.9; }
.callbar .close { cursor:pointer; opacity:.7; }
.phonebar { position:fixed; left:20px; bottom:20px; width:560px; max-width:calc(100vw - 360px); background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 16px; box-shadow:0 8px 24px rgba(0,0,0,.12); z-index:3000; }
.phonebar .who { font-size:16px; margin:6px 0; letter-spacing:1px; }
.phonebar .track { color:var(--muted); font-size:12px; line-height:1.5; margin-bottom:8px; }
.phonebar .close { cursor:pointer; }
.phonebar .warn { color:#b88230; margin-top:6px; }
@media (max-width: 640px) {
  .top { height:auto; flex-wrap:wrap; padding:8px 12px; }
  .callbar { right:16px; left:16px; bottom:16px; width:auto; }
  .phonebar { right:16px; left:16px; bottom:200px; width:auto; max-width:none; }
}
.dial-tip.warn { color:#b88230; }

/* 液态玻璃：和下午客户管理同一套表面。画像、坐席、外呼的内容不改。 */
:root {
  --glass: rgba(255, 255, 255, .38);
  --glass-2: rgba(255, 255, 255, .62);
  --glass-line: rgba(255, 255, 255, .72);
  --glass-ink: #2c3340;
  --glass-shadow: 0 12px 32px rgba(80, 96, 120, .08), inset 0 1px 0 rgba(255, 255, 255, .82);
  --glass-blur: blur(22px) saturate(170%);
}
body {
  color: var(--glass-ink);
  background:
    radial-gradient(90% 60% at 8% 0%, rgba(176, 198, 220, .55), transparent 58%),
    radial-gradient(70% 50% at 100% 12%, rgba(92, 124, 160, .42), transparent 52%),
    linear-gradient(168deg, #8aa3ba 0%, #5c748c 42%, #3a4e64 100%);
}
.side { background: rgba(36, 52, 68, .72); backdrop-filter: blur(16px); }
.top, .card, .auth-card {
  background: var(--glass-2);
  border-color: var(--glass-line);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
}
.phone-list { display: none; }
.cust-card {
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--glass-shadow);
  color: var(--glass-ink);
  font: inherit;
}
.cust-card small { color: #5c6775; font-size: 12px; }
.cust-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.dial-btn {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--glass-shadow);
  color: var(--glass-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.dial-btn svg { width: 20px; height: 20px; }
.dial-btn:disabled { opacity: .5; }
.detail-hero { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.detail-main { flex: 1; min-width: 0; }
.detail-hero .dial-btn { width: 48px; height: 48px; border-radius: 16px; }
.asr-btn {
  margin-top: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, .72);
  color: var(--glass-ink);
  font: inherit;
}
.transcript { display: flex; flex-direction: column; gap: 8px; }
.sentence.bubble {
  display: block;
  max-width: 86%;
  padding: 8px 10px;
  border-radius: 14px;
  border-bottom-left-radius: 6px;
}
.sentence.bubble small { display: block; margin-bottom: 2px; font-size: 11px; }
.sentence.bubble.cust { align-self: flex-start; background: rgba(226, 234, 244, .96); color: var(--glass-ink); }
.sentence.bubble.agent {
  align-self: flex-end;
  background: rgba(44, 51, 64, .9);
  color: #fff;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 6px;
}
.sentence.bubble.agent small, .sentence.bubble.agent .seek { color: rgba(255, 255, 255, .75); }
.profile-row { border-bottom-color: rgba(255, 255, 255, .45); }
.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; width: 100%; min-width: 0; }
.filter-row { display: grid; width: 100%; grid-template-columns: repeat(auto-fit, minmax(30%, 1fr)); gap: 8px; }
.filter-row > .el-select { display: block !important; width: 100% !important; min-width: 0; }
.filter-row .el-select__wrapper { width: 100%; }
.filter-row > .assign-btn { grid-column: 1 / -1; height: 36px; margin: 0; border-radius: 14px; }
.filters .el-input__wrapper,
.filters .el-select__wrapper,
.seatbar .el-select__wrapper {
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, .92);
}
.filters .el-select__wrapper,
.filters .el-input__wrapper { min-height: 36px; }
.filters .el-input-group { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .92); background: rgba(255, 255, 255, .82); }
.filters .el-input-group .el-input__wrapper { border: 0; border-radius: 14px 0 0 14px; box-shadow: none; }
.filters .el-input-group__append {
  border: 0;
  border-radius: 0 14px 14px 0;
  background: transparent;
  box-shadow: none;
  color: var(--glass-ink);
}
.phone-tabbar { display: none; }
.cust-actions { display: flex; gap: 8px; margin-top: 8px; }
@media (max-width: 768px) {
  body { min-height: 100vh; }
  .shell { min-height: 100vh; display: block; }
  .main { min-height: 100vh; }
  .top {
    position: sticky;
    top: 0;
    z-index: 30;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: calc(22px + env(safe-area-inset-top)) 20px 18px;
    border: 0;
    border-radius: 0 0 28px 28px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .42));
  }
  .top .title {
    display: block;
    font-size: 32px;
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.1;
  }
  .who {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 6px;
    color: #3e4b5c;
    font-size: 15px;
  }
  .who .store-name { font-weight: 600; color: #1c2430; }
  .who .who-sep { color: #8b97a6; }
  .who .logout {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #5c6b7c;
    font: inherit;
    font-size: 13px;
    padding: 0;
  }
  .seatbar { width: 100%; }
  .seatbar .el-select { flex: 1; width: auto !important; }
  .phone-list { display: flex; flex-direction: column; gap: 10px; }
  .customers-table { display: none; }
  .seatbar .el-select__wrapper { border-radius: 14px; }
  .content .card { padding: 14px; border-radius: 22px; }
  .seats-phone { display: flex; flex-direction: column; gap: 10px; }
  .seats-table { display: none; }
  .seat-card { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .72); }
  .seat-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
  .seat-actions { display: flex; flex-wrap: wrap; gap: 6px; }
  .phone-tabbar {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    height: 58px;
    padding: 5px;
    border-radius: 29px;
    border: 1px solid rgba(255, 255, 255, .94);
    background: rgba(255, 255, 255, .58);
    box-shadow: 0 16px 40px rgba(20, 28, 40, .22), inset 0 1px 0 rgba(255, 255, 255, .95);
    backdrop-filter: blur(32px) saturate(190%);
    -webkit-backdrop-filter: blur(32px) saturate(190%);
  }
  .ptab {
    border: 0;
    border-radius: 24px;
    background: transparent;
    color: #2a3340;
    font: inherit;
    font-size: 14px;
  }
  .ptab.on {
    background: rgba(255, 255, 255, .94);
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(80, 96, 120, .08);
  }
  .el-drawer.customer-drawer {
    width: 100% !important;
    background:
      radial-gradient(90% 40% at 0% 0%, rgba(176, 198, 220, .45), transparent 60%),
      linear-gradient(180deg, #d5e0ea 0%, #eef3f7 40%, #f4f7fa 100%) !important;
  }
  .customer-drawer .el-drawer__header { margin-bottom: 0; color: var(--glass-ink); }
  .customer-drawer .el-drawer__body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .detail-actions { flex-wrap: wrap; }
  .detail-actions .el-button { flex: 1; height: 36px; margin: 0; }
  .callbar, .phonebar { left: 14px; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); width: auto; max-width: none; }
}
.chain h3 { margin: 0 0 10px; }
.chain-tl { display: flex; flex-direction: column; }
.chain-node { display: flex; gap: 10px; }
.chain-dot {
  width: 10px;
  height: 10px;
  margin-top: 18px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(160, 174, 188, .85);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .65);
  flex: none;
  position: relative;
}
.chain-node:not(:last-child) .chain-dot::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: -22px;
  width: 1px;
  background: rgba(170, 182, 194, .75);
}
.chain-ev {
  flex: 1;
  min-width: 0;
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 8px 24px rgba(40, 60, 80, .06);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.chain-hd { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.chain-hd b { font-size: 14px; font-weight: 600; color: #1c2430; }
.chain-hd span { font-size: 12px; color: #8b97a6; }
.chain-line { margin: 4px 0 0; font-size: 12px; color: #6b7785; line-height: 1.55; }
.chain-body { margin-top: 10px; }
.defeat-bar { margin: 0 0 12px; }
.defeat-apply {
  border: 0;
  background: transparent;
  color: #8a5a12;
  font: inherit;
  font-size: 14px;
  padding: 0;
}
.defeat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(120, 140, 160, .16);
}
.defeat-row b { display: block; }
.defeat-actions { display: flex; gap: 8px; flex: none; }
.clink-check { margin-top:20px; border-top:1px solid #eee; padding-top:12px; }
.clink-check .warn { color:#b88230; }
.tag-gap { margin-left:6px; }
