@charset "UTF-8";
* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2d3d;
  background: #f4f7fb;
}

.login-page {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: radial-gradient(circle at top left, rgba(143, 116, 255, 0.22), transparent 32%), radial-gradient(circle at bottom right, rgba(113, 95, 223, 0.22), transparent 30%), linear-gradient(135deg, #f3efff 0%, #f8f7fd 48%, #eef2ff 100%);
}

.login-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 420px;
  gap: 28px;
  align-items: stretch;
}

.login-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 46px;
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(180deg, #8f72ff 0%, #7860ec 58%, #6954d7 100%);
  box-shadow: 0 26px 60px rgba(104, 84, 215, 0.24);
}

.login-hero__badge {
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 26px;
  font-weight: 700;
}

.login-hero__eyebrow {
  margin-top: 22px;
  font-size: 17px;
  letter-spacing: 0.08em;
  opacity: 0.82;
  text-transform: uppercase;
}

.login-hero h1 {
  margin: 14px 0 12px;
  font-size: 40px;
  line-height: 1.15;
}

.login-hero p {
  max-width: 420px;
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.login-hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.login-hero__features span {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  font-size: 17px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-card {
  width: 420px;
  max-width: 100%;
  padding: 38px 34px 32px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 24px 56px rgba(73, 63, 126, 0.14);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #8c73ff 0%, #6e58dc 100%);
  box-shadow: 0 14px 26px rgba(110, 88, 220, 0.24);
}

.brand h2 {
  margin: 0 0 6px;
  font-size: 24px;
  color: #2d2750;
}

.brand p {
  margin: 0;
  color: #8f87ac;
  font-size: 17px;
}

.login-button {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #8f72ff 0%, #6d57de 100%);
  box-shadow: 0 16px 26px rgba(109, 87, 222, 0.22);
}

.login-tip {
  margin-top: 18px;
  color: #9188b1;
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
}

.login-form .el-form-item {
  margin-bottom: 18px;
}

.login-form .el-input__inner {
  height: 46px;
  border-radius: 16px;
  border-color: #ded8f7;
  background: #fbfaff;
}

.login-form .el-input__inner:focus {
  border-color: #8168f6;
  box-shadow: 0 0 0 3px rgba(129, 104, 246, 0.12);
}

.workbench-page {
  --cs-primary: #6b7fa8;
  --cs-primary-dark: #5a6d94;
  --cs-primary-soft: #eef1f7;
  --cs-primary-softer: #f6f8fb;
  --cs-panel-bg: #fbfbfc;
  --cs-panel-border: #e3e7ef;
  --cs-text-main: #3d4659;
  --cs-text-sub: #7b8499;
  --cs-chat-bg: #f5f7fa;
  --cs-white: #fff;
  --cs-shell-bg: #eef1f5;
  --cs-rail-bg: #f4f6fa;
  --cs-rail-border: #e3e7ef;
  --cs-rail-text: #6d7689;
  --cs-rail-text-active: #4f5d78;
  --cs-topbar-bg: linear-gradient(90deg, #f8f9fc 0%, #f3f6fa 52%, #eef2f7 100%);
  --cs-hero-bg: linear-gradient(135deg, #f6f8fc 0%, #eef2f8 58%, #e8edf5 100%);
  --cs-hero-text: #3d4659;
  --cs-hero-subtext: #6d7689;
  --cs-accent-shadow: rgba(72, 84, 104, 0.08);
  --cs-topbar-height: 48px;
  --cs-rail-width: 92px;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, #eef1f5 0%, #f5f7fa 100%);
}

.workbench-page .el-button--primary {
  color: #fff;
  background-color: var(--cs-primary);
  border-color: var(--cs-primary);
}

.workbench-page .el-button--primary:hover,
.workbench-page .el-button--primary:focus {
  color: #fff;
  background-color: var(--cs-primary-dark);
  border-color: var(--cs-primary-dark);
}

.workbench-page .el-button--default:hover,
.workbench-page .el-button--default:focus {
  color: var(--cs-primary-dark);
  border-color: #c5d0e3;
  background-color: var(--cs-primary-soft);
}

/* 工作台紧凑字号（侧栏多菜单时仍可完整看清） */
.workbench-page {
  font-size: 12px;
  zoom: 1;
}

.workbench-page .el-button {
  font-size: 12px;
}

.workbench-page .el-input__inner,
.workbench-page .el-textarea__inner,
.workbench-page .el-range-input,
.workbench-page .el-select-dropdown__item,
.workbench-page .el-dropdown-menu__item,
.workbench-page .el-form-item__label,
.workbench-page .el-checkbox__label,
.workbench-page .el-radio__label,
.workbench-page .el-tabs__item,
.workbench-page .el-table,
.workbench-page .el-table th,
.workbench-page .el-table td,
.workbench-page .el-dialog__title,
.workbench-page .el-message-box__message,
.workbench-page .el-pagination {
  font-size: 12px;
}

.workbench-page .el-button--mini,
.workbench-page .el-button--small {
  font-size: 12px;
}

.workbench-topbar {
  height: var(--cs-topbar-height);
  min-height: var(--cs-topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 0 12px;
  color: var(--cs-hero-text);
  background: var(--cs-topbar-bg);
  border-bottom: 1px solid var(--cs-panel-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.workbench-topbar__brand,
.workbench-topbar__actions,
.workbench-topbar__agent {
  display: flex;
  align-items: center;
}

.workbench-topbar__brand,
.workbench-topbar__actions {
  gap: 10px;
}

.workbench-topbar__logo {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: var(--cs-primary-dark);
  background: var(--cs-primary-soft);
  border: 1px solid #dce3ef;
  font-size: 12px;
  font-weight: 700;
}

.workbench-topbar__text strong {
  display: block;
  font-size: 14px;
  line-height: 1.1;
  color: var(--cs-hero-text);
}

.workbench-topbar__text span,
.workbench-topbar__agent {
  color: var(--cs-hero-subtext);
  font-size: 12px;
}

.workbench-topbar__text span {
  display: none;
}

.workbench-topbar__chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 12px;
  color: var(--cs-primary-dark);
  background: var(--cs-primary-soft);
  border: 1px solid #dce3ef;
  font-size: 12px;
}

.workbench-topbar__agent {
  gap: 6px;
  font-size: 12px;
}

.topbar-status-btn {
  height: 24px;
  padding: 0 8px;
  border: 1px solid #dce3ef;
  border-radius: 12px;
  color: var(--cs-primary-dark);
  background: #fff;
  font-size: 12px;
}

.workbench-main {
  flex: 1;
  min-height: 0;
  display: flex;
}

.nav-rail {
  width: var(--cs-rail-width);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 6px 10px;
  background: #f1f4f9;
  border-right: 1px solid #e2e8f0;
  min-height: 0;
  overflow: hidden;
}

.nav-rail__top,
.nav-rail__bottom,
.nav-rail__menu {
  display: flex;
  flex-direction: column;
}

.nav-rail__top {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  gap: 2px;
  scrollbar-width: thin;
}

.nav-rail__bottom {
  flex-shrink: 0;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  margin-top: 6px;
}

.nav-rail__menu {
  gap: 2px;
}

.nav-rail__item {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 6px 4px 5px;
  border: 0;
  border-radius: 10px;
  color: #64748b;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

/* 业务区轻微分隔线，不再整组常亮 */
.nav-rail__item--sep {
  margin-top: 8px;
  padding-top: 10px;
  box-shadow: 0 -1px 0 #dce3ef;
}

.nav-rail__item i {
  font-size: 18px;
  line-height: 1;
  color: inherit;
}

.nav-rail__item span {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
  text-align: center;
  max-width: 100%;
  word-break: break-all;
}

.nav-rail__item:hover {
  color: #334155;
  background: rgba(100, 116, 139, 0.1);
}

/* 仅当前选中高亮 — 一眼可辨 */
.nav-rail__item.active {
  color: #1d4ed8;
  background: #fff;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.22), 0 2px 6px rgba(37, 99, 235, 0.12);
}

.nav-rail__item.active i {
  color: #2563eb;
}

.nav-rail__item.active span {
  font-weight: 700;
}

.nav-rail__item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #2563eb;
}

.nav-rail__item--secondary {
  min-height: 48px;
}

.workbench-shell {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 10px;
  background: var(--cs-shell-bg);
}

.workbench {
  height: 100%;
}

.consultation-layout {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  height: 100%;
}

.consultation-panel {
  min-width: 0;
  min-height: 0;
}

.consultation-panel--sidebar,
.consultation-panel--detail {
  flex: 0 0 auto;
}

.consultation-panel--chat {
  flex: 1 1 auto;
  min-width: 240px;
}

/* 可拖拽分隔条 */
.cs-split {
  flex: 0 0 6px;
  position: relative;
  z-index: 5;
  background: transparent;
  transition: background 0.15s ease;
}

.cs-split--v {
  cursor: col-resize;
  width: 6px;
  margin: 0 2px;
}

.cs-split--h {
  cursor: row-resize;
  height: 6px;
  width: 100%;
  flex: 0 0 6px;
  margin: 0;
}

.cs-split::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: transparent;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.cs-split--v::after {
  top: 18%;
  bottom: 18%;
  left: 2px;
  width: 2px;
}

.cs-split--h::after {
  left: 20%;
  right: 20%;
  top: 2px;
  height: 2px;
}

.cs-split:hover,
.cs-is-resizing .cs-split {
  background: rgba(107, 127, 168, 0.08);
}

.cs-split:hover::after,
.cs-is-resizing .cs-split::after {
  background: #6b7fa8;
  box-shadow: 0 0 0 1px rgba(107, 127, 168, 0.2);
}

.cs-is-resizing {
  cursor: col-resize;
}

.cs-is-resizing .cs-split--h,
body.cs-is-resizing {
  cursor: inherit;
}

.consultation-sidebar {
  min-width: 0;
  width: 100%;
  height: 100%;
}

.workbench-detail.consultation-panel--detail {
  width: 100%;
  height: 100%;
}

.consultation-sidebar .sidebar-search {
  padding-top: 10px;
}

.sidebar-main {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 0;
  overflow: hidden;
}

.sidebar-main.has-folders {
  border-top: 1px solid var(--cs-panel-border);
}

.sidebar-main .session-list {
  flex: 1;
  min-width: 0;
}

.session-folder-panel {
  width: 64px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border: 0;
  border-right: 1px solid var(--cs-panel-border);
  border-radius: 0;
  background: var(--cs-primary-softer);
  overflow: hidden;
  transition: width 0.2s ease;
}

.session-folder-panel.collapsed {
  width: 42px;
}

.session-folder-panel__toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 4px 6px;
  border-top: 1px solid var(--cs-panel-border);
}

.session-folder-panel__collapse {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  color: var(--cs-text-sub);
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}

.session-folder-panel__title {
  color: var(--cs-primary-dark);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.session-folder-panel__list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 4px;
}

.session-folder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 2px;
  margin-bottom: 2px;
  border-radius: 8px;
  color: var(--cs-text-sub);
  cursor: pointer;
}

.session-folder-item:hover,
.session-folder-item.active {
  color: var(--cs-primary-dark);
  background: rgba(107, 127, 168, 0.1);
}

.session-folder-item__icon {
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.session-folder-item__badge {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 7px;
  color: #fff;
  font-size: 14px;
  line-height: 14px;
  text-align: center;
  background: #ef4444;
}

.session-folder-item__name {
  max-width: 56px;
  font-size: 14px;
  line-height: 1.15;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.session-folder-item__delete {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  line-height: 14px;
  text-align: center;
  background: #ef4444;
}

.session-folder-item--add {
  border: 1px dashed rgba(107, 127, 168, 0.35);
  color: var(--cs-primary);
}

.session-folder-panel__footer {
  padding: 4px;
  border-top: 1px solid var(--cs-panel-border);
}

.session-folder-panel__edit {
  width: 100%;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  border-radius: 6px;
  color: var(--cs-text-sub);
  font-size: 15px;
  background: transparent;
  cursor: pointer;
}

.session-folder-panel__edit.active,
.session-folder-panel__edit:hover {
  color: var(--cs-primary-dark);
  background: rgba(107, 127, 168, 0.1);
}

.session-context-menu {
  position: fixed;
  z-index: 3000;
  min-width: 140px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ebe6f8;
  box-shadow: 0 10px 28px rgba(80, 64, 140, 0.16);
}

.session-context-menu li {
  padding: 8px 14px;
  color: #334155;
  font-size: 17px;
  cursor: pointer;
}

.session-context-menu li:hover {
  color: var(--cs-primary-dark);
  background: var(--cs-primary-soft);
}

.folder-join-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.folder-join-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  color: #334155;
  font-size: 17px;
  cursor: pointer;
}

.workbench-sidebar,
.chat-shell,
.workbench-detail {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--cs-panel-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 28px var(--cs-accent-shadow);
}

.workbench-sidebar,
.workbench-detail {
  background: var(--cs-panel-bg);
}

.workbench-detail {
  background: #f5f7fa;
}

.chat-shell {
  background: #fff;
}

.sidebar-panel-header,
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--cs-panel-border);
  background: rgba(255, 255, 255, 0.84);
}

.sidebar-panel-header {
  min-height: 52px;
  padding: 10px 12px;
}

.detail-header {
  min-height: 0;
  padding: 8px 12px;
}

.detail-header__body {
  min-width: 0;
  line-height: 1.2;
}

.detail-header__status {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cs-primary-dark);
  background: var(--cs-primary-soft);
}

.detail-header__status.is-waiting {
  color: #b88212;
  background: #fff7e6;
}

.detail-header__status.is-serving {
  color: #2f9b56;
  background: #e9f8ef;
}

.detail-header__status.is-closed {
  color: #8c879f;
  background: #f3f1f7;
}

.sidebar-panel-header__body {
  min-width: 0;
}

.sidebar-panel-header__eyebrow {
  color: var(--cs-text-sub);
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.sidebar-panel-header__body strong {
  display: block;
  margin-top: 2px;
  color: var(--cs-text-main);
  font-size: 13px;
  line-height: 1.2;
}

.detail-header strong {
  display: block;
  margin-top: 2px;
  color: var(--cs-text-main);
  font-size: 13px;
  line-height: 1.2;
}

.sidebar-panel-header__meta {
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--cs-text-sub);
  font-size: 12px;
  line-height: 1.2;
}

.detail-header span {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--cs-text-sub);
  font-size: 12px;
  line-height: 1.2;
}

.sidebar-panel-header__count {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 14px;
  color: var(--cs-primary-dark);
  font-size: 16px;
  font-weight: 700;
  background: var(--cs-primary-soft);
}

.sidebar-tabs {
  padding: 0 8px;
  border-bottom: 1px solid var(--cs-panel-border);
}

.sidebar-search {
  padding: 8px 10px 6px;
  border-bottom: 1px solid var(--cs-panel-border);
}

.sidebar-search .el-input__inner {
  height: 32px;
  line-height: 32px;
  border-radius: 16px;
  border-color: #dce3ef;
  background: #fff;
}

.sidebar-search .el-input__inner:focus {
  border-color: var(--cs-primary);
  box-shadow: 0 0 0 2px rgba(107, 127, 168, 0.12);
}

.sidebar-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 10px 6px;
  border-bottom: 0;
}

.sidebar-read-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  padding: 0 12px 6px;
  border-bottom: 1px solid var(--cs-panel-border);
  color: var(--cs-text-sub);
  font-size: 16px;
}

.sidebar-read-filter .el-switch {
  transform: scale(0.86);
  transform-origin: right center;
}

.sidebar-filters .el-input__inner {
  height: 30px;
  line-height: 30px;
  border-radius: 14px;
  border-color: #dce3ef;
  background: #fff;
}

.sidebar-filters .el-input__inner:focus {
  border-color: var(--cs-primary);
  box-shadow: 0 0 0 2px rgba(107, 127, 168, 0.12);
}

.sidebar-tabs .el-tabs__header {
  margin: 0;
}

.sidebar-tabs .el-tabs__nav-wrap::after {
  height: 1px;
}

.sidebar-tabs .el-tabs__item {
  height: 36px;
  line-height: 36px;
  font-size: 17px;
  color: var(--cs-text-sub);
}

.sidebar-tabs .el-tabs__item.is-active {
  color: var(--cs-primary-dark);
  font-weight: 600;
}

.sidebar-tabs .el-tabs__active-bar {
  background: var(--cs-primary);
}

.session-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 2px 6px;
}

.session-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 8px 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease;
}

.session-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: transparent;
}

.session-item:hover {
  background: rgba(107, 127, 168, 0.06);
}

.session-item.active {
  background: rgba(107, 127, 168, 0.1);
  border-color: transparent;
  box-shadow: none;
}

.session-item.active::before {
  background: var(--cs-primary);
}

.session-item__avatar-wrap {
  position: relative;
  flex-shrink: 0;
  margin-top: 0;
}

.session-item__avatar {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--cs-primary-dark);
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(180deg, #f3f6fa 0%, #e8edf5 100%);
  border: 1px solid #dce3ef;
}

.session-item__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  background: linear-gradient(135deg, #ff7f7f 0%, #f05c8d 100%);
  box-shadow: 0 2px 6px rgba(240, 92, 141, 0.28);
}

.session-item__avatar.is-waiting {
  color: #b88212;
  background: linear-gradient(180deg, #fff8ea 0%, #ffefd0 100%);
  border-color: #f3d59a;
}

.session-item__avatar.is-serving {
  color: #2f9b56;
  background: linear-gradient(180deg, #eefaf2 0%, #daf4e4 100%);
  border-color: #b8e3c8;
}

.session-item__avatar.is-closed {
  color: #8c879f;
  background: linear-gradient(180deg, #f7f6fa 0%, #eceaf1 100%);
  border-color: #ddd9e6;
}

.session-item__body {
  min-width: 0;
  flex: 1;
  line-height: 1.2;
}

.session-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.session-title__name {
  min-width: 0;
  flex: 1;
  color: var(--cs-text-main);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-title__badge {
  flex-shrink: 0;
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  color: var(--cs-primary-dark);
  background: var(--cs-primary-soft);
  font-size: 13px;
  line-height: 20px;
}

.session-title__status {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
  color: #8c879f;
}

.session-title__status.is-waiting {
  color: #b88212;
}

.session-title__status.is-serving {
  color: #2f9b56;
}

.session-title__status.is-closed {
  color: #8c879f;
}

.session-title__time {
  flex-shrink: 0;
  color: var(--cs-text-sub);
  font-size: 14px;
}

.session-desc {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  min-width: 0;
}

.session-desc__text {
  min-width: 0;
  flex: 1;
  color: var(--cs-text-sub);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-desc__meta {
  flex-shrink: 0;
  color: #8c879f;
  font-size: 14px;
  white-space: nowrap;
}

.session-item__meta {
  display: none;
}

.session-chip {
  display: none;
}

.session-unread {
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  background: linear-gradient(135deg, #ff7f7f 0%, #f05c8d 100%);
  box-shadow: 0 2px 6px rgba(240, 92, 141, 0.28);
}

.chat-shell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--cs-white);
}

.chat-header {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--cs-panel-border);
  background: var(--cs-white);
}

.chat-header__main {
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}

.chat-header__title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.chat-header__title-row strong {
  color: var(--cs-text-main);
  font-size: 18px;
  font-weight: 700;
}

.chat-header__badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 8px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  color: #8c879f;
  background: #f3f1f7;
}

.chat-header__badge.is-waiting {
  color: #b88212;
  background: #fff7e6;
}

.chat-header__badge.is-serving {
  color: #2f9b56;
  background: #e9f8ef;
}

.chat-header__badge.is-closed {
  color: #8c879f;
  background: #f3f1f7;
}

.chat-header__unread {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 9px;
  font-size: 15px;
  color: #c35b5b;
  background: #fff0f0;
}

.chat-header__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  color: var(--cs-text-sub);
  font-size: 15px;
  line-height: 1.2;
}

.chat-header__sub span + span::before {
  content: "·";
  margin-right: 6px;
  color: #c3bdd6;
}

.chat-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.chat-header__more {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e7e1fb;
  border-radius: 12px;
  color: #6d60ca;
  background: #f7f5ff;
  cursor: pointer;
}

.chat-header__more:hover {
  background: #efeaff;
}

.message-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 14px;
  background: var(--cs-chat-bg);
}

.message-system-tip {
  max-width: 360px;
  margin: 0 auto 10px;
  padding: 4px 10px;
  border-radius: 10px;
  text-align: center;
  color: #8d84a8;
  font-size: 15px;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #efe9ff;
}

.message-system-card {
  max-width: 520px;
  margin: 0 auto 18px;
  padding: 12px 14px;
  border-radius: 16px;
  color: #8d84a8;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #efe9ff;
  box-shadow: 0 4px 14px rgba(107, 127, 168, 0.06);
}

.message-system-card__title {
  color: #6d60ca;
  font-size: 16px;
  font-weight: 600;
}

.message-system-card__body {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.6;
}

.message-divider {
  display: flex;
  justify-content: center;
  margin: 18px 0 14px;
}

.message-divider span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  height: 22px;
  border-radius: 11px;
  font-size: 15px;
  color: #9187b3;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #ece7fb;
}

.message-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.message-row.agent {
  flex-direction: row-reverse;
}

.message-avatar {
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(107, 127, 168, 0.08);
}

.message-avatar.avatar-image,
.message-avatar .avatar-image,
.message-avatar .avatar-text {
  border: 1px solid #e8e2fb;
}

.message-content {
  max-width: min(72%, 620px);
  min-width: 0;
}

.message-row.agent .message-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--cs-text-sub);
  font-size: 12px;
}

.message-bubble {
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--cs-text-main);
  font-size: 13px;
  line-height: 1.5;
  background: #fff;
  box-shadow: 0 2px 10px rgba(31, 45, 61, 0.05);
  word-break: break-word;
}

.message-bubble.is-image {
  padding: 8px;
}

.message-row.agent .message-bubble {
  color: #fff;
  background: linear-gradient(135deg, #7b8eb5 0%, #6b7fa8 100%);
}

.message-image {
  max-width: 220px;
  display: block;
  border-radius: 12px;
}

.message-image__error {
  width: 180px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  color: var(--cs-text-sub);
  background: #f3f5f8;
  border-radius: 12px;
  text-align: center;
}

.message-image__error i {
  font-size: 23px;
}

.message-image__error span {
  font-size: 16px;
}

.message-image__error small {
  font-size: 15px;
  opacity: 0.8;
}

.message-image__caption {
  margin-top: 8px;
  font-size: 16px;
  color: inherit;
  opacity: 0.88;
}

.message-status {
  margin-top: 6px;
  color: #a198bc;
  font-size: 15px;
}

.message-status.agent {
  text-align: right;
}

.empty-chat-message {
  padding: 32px 0 12px;
  text-align: center;
  color: var(--cs-text-sub);
  font-size: 17px;
}

.chat-input {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 110px;
  padding: 8px 14px 10px;
  border-top: 0;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
}

.chat-input .chat-input__textarea {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat-input .chat-input__textarea .el-textarea {
  flex: 1 1 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chat-input .chat-input__textarea .el-textarea__inner {
  flex: 1 1 auto;
  height: 100% !important;
  min-height: 48px !important;
  max-height: none !important;
  border-radius: 12px;
  border-color: #dce3ef;
  padding: 10px 12px;
  line-height: 1.5;
  box-shadow: inset 0 1px 2px rgba(31, 45, 61, 0.02);
  resize: none;
}

.chat-toolbar,
.chat-input__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-toolbar {
  margin-bottom: 6px;
}

.chat-toolbar__tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-tool-btn {
  min-width: 0;
  height: 28px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: var(--cs-text-sub);
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.chat-tool-btn i {
  font-size: 14px;
  color: var(--cs-text-sub);
}

.chat-tool-btn span {
  font-size: 12px;
  line-height: 1;
}

.chat-tool-btn:hover:not(:disabled) {
  color: var(--cs-primary-dark);
  background: var(--cs-primary-soft);
}

.chat-tool-btn:hover:not(:disabled) i {
  color: var(--cs-primary-dark);
}

.chat-tool-btn.is-muted,
.chat-tool-btn:disabled {
  color: #b8c0d0;
  background: transparent;
  cursor: not-allowed;
}

.chat-tool-btn.is-muted i,
.chat-tool-btn:disabled i {
  color: #c8ced8;
}

.chat-toolbar__hint,
.chat-input__tip {
  color: var(--cs-text-sub);
  font-size: 12px;
}

.chat-toolbar__hint {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-send-btn {
  min-width: 84px;
  height: 32px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #7b8eb5 0%, #6b7fa8 100%);
  box-shadow: 0 4px 10px rgba(107, 127, 168, 0.2);
}

.chat-send-btn.is-disabled,
.chat-send-btn.is-disabled:hover,
.chat-send-btn:disabled {
  color: #fff;
  background: #c5cede;
  box-shadow: none;
}

.chat-send-btn i {
  margin-right: 4px;
}

.chat-input .el-textarea__inner:focus {
  border-color: var(--cs-primary);
  box-shadow: 0 0 0 2px rgba(107, 127, 168, 0.12);
}

.chat-input__footer {
  margin-top: 8px;
  flex-shrink: 0;
}

.detail-layout {
  flex: 1;
  min-height: 0;
  display: flex;
}

.detail-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f5f7fa;
}

.detail-tabs {
  display: flex;
  gap: 4px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--cs-panel-border);
  background: rgba(255, 255, 255, 0.72);
}

.detail-tabs--underline {
  gap: 0;
  padding: 0;
  background: #fff;
}

.detail-tabs__item {
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 13px;
  color: var(--cs-text-sub);
  font-size: 16px;
  background: transparent;
  cursor: pointer;
}

.detail-tabs--underline .detail-tabs__item {
  flex: 1;
  height: 38px;
  padding: 0 8px;
  border-radius: 0;
  color: #667088;
  font-size: 17px;
  font-weight: 500;
  background: transparent;
  position: relative;
}

.detail-tabs--underline .detail-tabs__item:hover {
  color: var(--cs-primary-dark);
  background: rgba(107, 127, 168, 0.04);
}

.detail-tabs__item.active {
  color: #fff;
  background: linear-gradient(135deg, #7b8eb5 0%, #6b7fa8 100%);
  box-shadow: 0 2px 8px rgba(107, 127, 168, 0.16);
}

.detail-tabs--underline .detail-tabs__item.active {
  color: var(--cs-primary-dark);
  background: transparent;
  box-shadow: none;
  font-weight: 600;
}

.detail-tabs--underline .detail-tabs__item.active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--cs-primary);
}

.visitor-actions {
  margin-top: 4px;
  padding: 4px 2px 8px;
}

.blacklist-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.blacklist-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
}

.blacklist-search .el-input {
  flex: 1;
  min-width: 0;
}

.blacklist-search .el-input__inner {
  height: 36px;
  line-height: 36px;
  border-radius: 18px;
  background: #f5f6f8;
  border-color: #e8edf5;
  font-size: 17px;
}

.blacklist-search .el-input__inner:focus {
  border-color: #c4b5fd;
  background: #fff;
}

.blacklist-search__btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  color: #8b93a7;
  font-size: 18px;
  background: #f5f6f8;
  cursor: pointer;
}

.blacklist-search__btn:hover {
  color: var(--cs-primary-dark);
  border-color: #c5d0e3;
  background: var(--cs-primary-soft);
}

.blacklist-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0;
}

.blacklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f3f7;
  transition: background 0.15s ease;
}

.blacklist-item:last-child {
  border-bottom: 0;
}

.blacklist-item:hover {
  background: #faf9fc;
}

.blacklist-item__avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  background: linear-gradient(135deg, #7b8eb5 0%, #6b7fa8 100%);
}

.blacklist-item__name {
  flex: 1;
  min-width: 0;
  color: #1f2937;
  font-size: 18px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blacklist-item__remove {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  color: #9aa3b2;
  font-size: 19px;
  background: transparent;
  cursor: pointer;
}

.blacklist-item__remove:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.blacklist-empty {
  text-align: center;
  padding: 48px 16px 24px;
  color: #8492a6;
}

.blacklist-empty i {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
  color: #b7adc8;
}

.blacklist-empty strong {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 18px;
}

.blacklist-empty p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.detail-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
}

.detail-card {
  padding: 2px 4px 6px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(232, 226, 251, 0.9);
  box-shadow: 0 4px 12px rgba(72, 84, 104, 0.05);
}

.detail-card.is-collapsed {
  padding-bottom: 2px;
}

.detail-card--soft {
  background: linear-gradient(180deg, #f8f9fc 0%, #f1f4f9 100%);
}

.detail-card__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.detail-card__head:hover {
  background: rgba(107, 127, 168, 0.06);
}

.detail-card__title {
  margin: 0;
  color: var(--cs-text-main);
  font-size: 13px;
  font-weight: 600;
}

.detail-card__arrow {
  color: #9a91b8;
  font-size: 12px;
  transition: transform 0.2s ease;
}

.detail-card.is-collapsed .detail-card__arrow {
  transform: rotate(-90deg);
}

.detail-card__body {
  padding: 0 8px 6px;
}

.detail-kv {
  display: grid;
  gap: 4px;
}

.detail-kv__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 20px;
}

.detail-kv__row label {
  flex-shrink: 0;
  color: var(--cs-text-sub);
  font-size: 12px;
}

.detail-kv__row span {
  color: var(--cs-text-main);
  font-size: 12px;
  text-align: right;
  word-break: break-word;
  line-height: 1.35;
}

.detail-grid {
  display: grid;
  gap: 12px;
}

.detail-grid__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-grid__item label {
  color: var(--cs-text-sub);
  font-size: 12px;
}

.detail-grid__item span {
  color: var(--cs-text-main);
  font-size: 12px;
  word-break: break-word;
}

.detail-rail {
  display: none;
}

.quick-reply {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.quick-reply__toolbar {
  padding: 12px 14px;
  border-bottom: 1px solid var(--cs-panel-border);
  background: linear-gradient(180deg, #f3f6fa 0%, #f8f9fc 100%);
}

.quick-reply__toolbar .el-input__inner {
  border-radius: 16px;
  border-color: #dce3ef;
  background: #fff;
}

.quick-reply__list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px 8px;
}

.quick-reply__group {
  margin-bottom: 14px;
}

.quick-reply__category {
  margin-bottom: 8px;
  color: #8d84ad;
  font-size: 12px;
  font-weight: 600;
}

.quick-reply__item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 8px;
  padding: 12px 14px;
  border: 1px solid #efe9ff;
  border-radius: 14px;
  color: inherit;
  text-align: left;
  background: #fff;
  box-shadow: 0 4px 12px rgba(107, 127, 168, 0.05);
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.quick-reply__item:hover {
  border-color: #d5c9ff;
  box-shadow: 0 10px 20px rgba(107, 127, 168, 0.1);
  transform: translateY(-1px);
}

.quick-reply__item strong {
  color: var(--cs-text-main);
  font-size: 12px;
}

.quick-reply__item span {
  color: var(--cs-text-sub);
  font-size: 12px;
  line-height: 1.5;
}

.quick-reply__foot {
  padding: 8px 12px 12px;
  color: #a198bc;
  font-size: 12px;
  border-top: 1px solid var(--cs-panel-border);
}

.detail-kv__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--cs-text-sub);
  font-size: 12px;
}

.detail-kv__tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  color: var(--cs-primary-dark);
  background: var(--cs-primary-soft);
  font-size: 11px;
}

.detail-kv__row--remark {
  align-items: flex-start;
}

.detail-remark {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-notes {
  margin: 0;
  padding-left: 16px;
  color: var(--cs-text-sub);
  font-size: 16px;
  line-height: 1.5;
}

.history-shell {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-hero {
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--cs-hero-text);
  background: var(--cs-hero-bg);
  border: 1px solid var(--cs-panel-border);
  box-shadow: 0 2px 8px var(--cs-accent-shadow);
}

.history-hero__eyebrow {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-hero-subtext);
  line-height: 1;
}

.history-hero__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.history-hero h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: var(--cs-hero-text);
}

.history-hero p {
  display: none;
}

.history-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 8px 12px;
  border: 1px solid var(--cs-panel-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.history-toolbar .el-input {
  width: 240px;
  max-width: 100%;
}

.history-toolbar .el-input__inner {
  height: 32px;
  line-height: 32px;
  border-radius: 14px;
  border-color: #dce3ef;
}

.history-range {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.history-range__chip {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #dce3ef;
  border-radius: 14px;
  color: var(--cs-text-sub);
  font-size: 16px;
  background: var(--cs-primary-softer);
  cursor: pointer;
}

.history-range__chip:hover {
  color: var(--cs-primary-dark);
  border-color: #c5d0e3;
}

.history-range__chip.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #7b8eb5 0%, #6b7fa8 100%);
  box-shadow: 0 2px 8px rgba(107, 127, 168, 0.2);
}

.history-range__picker {
  width: 260px;
}

.history-range__picker.el-input__inner,
.history-range__picker .el-range-input {
  font-size: 16px;
}

.history-toolbar__meta {
  margin-left: auto;
  color: var(--cs-text-sub);
  font-size: 16px;
  white-space: nowrap;
}

.history-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
  padding: 8px;
  border: 1px solid var(--cs-panel-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px var(--cs-accent-shadow);
}

.history-grid .empty-panel {
  grid-column: 1/-1;
  min-height: 220px;
}

.history-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--cs-panel-border);
  border-radius: 12px;
  color: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px var(--cs-accent-shadow);
  cursor: pointer;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.history-card:hover {
  border-color: #d5dbe6;
  box-shadow: 0 8px 18px rgba(72, 84, 104, 0.1);
}

.history-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.history-card__title strong {
  color: var(--cs-text-main);
  font-size: 17px;
}

.history-card__badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 9px;
  color: #8c879f;
  font-size: 15px;
  background: #f3f1f7;
  flex-shrink: 0;
}

.history-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
  color: var(--cs-text-sub);
  font-size: 15px;
}

.history-card__preview {
  margin-top: 3px;
  color: var(--cs-text-sub);
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  color: var(--cs-text-sub);
  font-size: 15px;
}

.history-card__action {
  color: var(--cs-primary-dark);
  font-weight: 600;
  flex-shrink: 0;
}

@media (max-width: 1280px) {
  .history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .history-grid {
    grid-template-columns: 1fr;
  }
}
.customers-shell {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.customers-hub {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.customers-hub__hero {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--cs-hero-text);
  background: var(--cs-hero-bg);
  border: 1px solid var(--cs-panel-border);
  box-shadow: 0 2px 8px var(--cs-accent-shadow);
}

.customers-hub__eyebrow {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-hero-subtext);
  line-height: 1;
}

.customers-hub__hero h2 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.25;
}

.customers-hub__hero p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--cs-hero-subtext);
  line-height: 1.4;
}

.customers-hub__tabs {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customers-hub__tab {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid #dce3ef;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

.customers-hub__tab:hover {
  border-color: #c4b5fd;
  color: #4c1d95;
}

.customers-hub__tab.active {
  border-color: transparent;
  background: linear-gradient(135deg, #7c5cff, #5b8def);
  color: #fff;
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.28);
}

.customers-hub__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.customers-hub__body .customers-shell {
  height: auto;
}

.customers-hub__body .customers-hero {
  display: none;
}

.biz-query-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
  padding: 4px 2px 12px;
}

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

.biz-query-field {
  width: 150px;
}

.biz-query-field--wide {
  width: 220px;
}

.biz-query-field--date {
  width: 260px;
}

.biz-query-meta {
  color: #64748b;
  font-size: 14px;
  line-height: 1.4;
}

.biz-query-table {
  width: 100%;
}

.biz-query-pager {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.biz-query-empty {
  text-align: center;
  color: #94a3b8;
  font-size: 15px;
  padding: 16px 8px;
}

.biz-sms-code {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #1e293b;
}

.biz-copy-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.biz-copy-cell__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.biz-copy-cell__btn {
  flex-shrink: 0;
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.biz-copy-cell__btn:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}

.customers-hero {
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--cs-hero-text);
  background: var(--cs-hero-bg);
  border: 1px solid var(--cs-panel-border);
  box-shadow: 0 2px 8px var(--cs-accent-shadow);
}

.customers-hero__eyebrow {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-hero-subtext);
  line-height: 1;
}

.customers-hero__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.customers-hero__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.customers-hero h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: var(--cs-hero-text);
}

.customers-hero p {
  display: none;
}

.customers-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--cs-panel-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

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

.customers-toolbar .el-input {
  max-width: 360px;
  min-width: 180px;
  flex: 1;
}

.customers-toolbar .el-input__inner {
  height: 30px;
  line-height: 30px;
  border-radius: 12px;
  border-color: #dce3ef;
}

.customers-toolbar__meta {
  margin-left: auto;
  color: var(--cs-text-sub);
  font-size: 16px;
  white-space: nowrap;
}

.customers-tag-filter {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.customers-tag-filter__label {
  flex-shrink: 0;
  padding-top: 4px;
  color: var(--cs-text-sub);
  font-size: 16px;
  line-height: 22px;
}

.customers-tag-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.customers-tag-filter__chip {
  height: 24px;
  padding: 0 10px;
  border: 1px solid #dce3ef;
  border-radius: 12px;
  background: #fff;
  color: var(--cs-text-sub);
  font-size: 16px;
  line-height: 22px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.customers-tag-filter__chip:hover {
  color: var(--cs-primary-dark);
  border-color: #c5d0e3;
  background: var(--cs-primary-soft);
}

.customers-tag-filter__chip.active {
  color: #fff;
  border-color: var(--cs-primary);
  background: var(--cs-primary);
  font-weight: 600;
}

.customers-tag-filter__empty {
  color: var(--cs-text-sub);
  font-size: 16px;
  line-height: 24px;
}

.customers-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
  padding: 0;
}

.customer-card {
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--cs-panel-border);
  border-radius: 12px;
  color: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px var(--cs-accent-shadow);
  cursor: pointer;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.customer-card:hover {
  border-color: #c5d0e3;
  box-shadow: 0 6px 14px var(--cs-accent-shadow);
  transform: none;
}

.customer-card__avatar,
.customer-card__avatar-img {
  flex-shrink: 0;
}

.customer-card__body {
  min-width: 0;
  flex: 1;
  line-height: 1.3;
}

.customer-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.customer-card__title strong {
  color: var(--cs-text-main);
  font-size: 17px;
}

.customer-card__status {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 9px;
  font-size: 15px;
  background: #f3f1f7;
  color: #8c879f;
}

.customer-card__status.is-waiting {
  color: #b88212;
  background: #fff7e6;
}

.customer-card__status.is-serving {
  color: #2f9b56;
  background: #e9f8ef;
}

.customer-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
  color: var(--cs-text-sub);
  font-size: 15px;
}

.customer-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.customer-tag-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  height: 18px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-card__preview {
  margin-top: 3px;
  color: #6f678d;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  color: var(--cs-text-sub);
  font-size: 15px;
}

.customer-card__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.customer-card__action {
  color: var(--cs-primary-dark);
  font-weight: 600;
  text-decoration: none;
}

.customer-card__action:hover {
  opacity: 0.85;
}

.tag-manage__create {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tag-manage__create .el-input {
  flex: 1;
}

.tag-manage__empty {
  padding: 18px 0;
  color: var(--cs-text-sub);
  font-size: 17px;
  text-align: center;
}

.tag-manage__list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 280px;
  overflow-y: auto;
}

.tag-manage__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0ecfa;
}

.tag-manage__item:last-child {
  border-bottom: 0;
}

.tag-manage__count {
  margin-right: auto;
  color: var(--cs-text-sub);
  font-size: 16px;
}

.tag-manage__delete {
  color: #f56c6c !important;
  padding: 0 !important;
}

.tag-bind__tip {
  margin-bottom: 10px;
  color: var(--cs-text-sub);
  font-size: 16px;
}

.tag-bind__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.tag-bind__check {
  margin-right: 0 !important;
  height: auto !important;
}

.tag-bind__check .el-checkbox__label {
  display: inline-flex;
  align-items: center;
  padding-left: 6px;
}

@media (max-width: 1280px) {
  .customers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .customers-grid {
    grid-template-columns: 1fr;
  }
}
.integration-shell {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 2px;
}

.integration-hero {
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--cs-hero-text);
  background: var(--cs-hero-bg);
  border: 1px solid var(--cs-panel-border);
  box-shadow: 0 2px 8px var(--cs-accent-shadow);
}

.integration-hero__eyebrow {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-hero-subtext);
  line-height: 1;
}

.integration-hero__row {
  margin-top: 4px;
}

.integration-hero h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: var(--cs-hero-text);
}

.integration-hero p {
  display: none;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.integration-card,
.integration-panel {
  padding: 12px;
  border: 1px solid var(--cs-panel-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 16px rgba(72, 84, 104, 0.06);
}

.integration-card__head,
.integration-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.integration-card__eyebrow {
  margin-bottom: 2px;
  color: #958cb3;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.integration-card strong,
.integration-panel__head strong {
  color: var(--cs-text-main);
  font-size: 18px;
  line-height: 1.2;
}

.integration-card p,
.integration-panel__head span {
  margin: 6px 0 0;
  color: var(--cs-text-sub);
  font-size: 16px;
  line-height: 1.45;
}

.integration-card__url {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #5f55a7;
  font-size: 15px;
  line-height: 1.45;
  word-break: break-all;
  background: #f6f3ff;
  border: 1px solid #ebe4ff;
}

.integration-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.integration-card__tags span {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 8px;
  border-radius: 9px;
  color: var(--cs-primary-dark);
  font-size: 15px;
  background: var(--cs-primary-soft);
}

.integration-params {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.integration-param {
  padding: 10px 12px;
  border-radius: 10px;
  background: #faf8ff;
  border: 1px solid #efe9ff;
}

.integration-param__name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.integration-param__name code {
  color: #5f55a7;
  font-size: 16px;
}

.integration-param__name span {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 9px;
  font-size: 15px;
}

.integration-param__name .is-required {
  color: #c35b5b;
  background: #fff0f0;
}

.integration-param__name .is-optional {
  color: #7d7699;
  background: #f1eff6;
}

.integration-param__desc {
  margin-top: 4px;
  color: var(--cs-text-sub);
  font-size: 16px;
  line-height: 1.45;
}

.integration-code {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: #efeaff;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: auto;
  background: #3d3558;
}

.integration-notes {
  margin: 8px 0 0;
  padding-left: 16px;
  color: var(--cs-text-sub);
  font-size: 16px;
  line-height: 1.55;
}

@media (max-width: 1280px) {
  .integration-grid,
.integration-params {
    grid-template-columns: 1fr;
  }
}
.home-shell {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 2px 8px;
}

.home-hero {
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--cs-hero-text);
  background: var(--cs-hero-bg);
  border: 1px solid var(--cs-panel-border);
  box-shadow: 0 2px 8px var(--cs-accent-shadow);
}

.home-hero__eyebrow {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-hero-subtext);
  line-height: 1;
}

.home-hero__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.home-hero h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: var(--cs-hero-text);
}

.home-hero .el-button {
  color: var(--cs-primary-dark);
  border-color: #dce3ef;
  background: #fff;
}

.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-stat-card {
  padding: 14px 16px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(232, 226, 251, 0.95);
  box-shadow: 0 6px 16px rgba(72, 84, 104, 0.06);
}

.home-stat-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #667088;
  font-size: 17px;
}

.home-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  color: #fff;
}

.home-tag--consult {
  background: #3b82f6;
}

.home-tag--queue {
  background: #1f2937;
}

.home-tag--msg {
  background: #22c55e;
}

.home-tag--user {
  background: #0ea5e9;
}

.home-tag--recharge {
  background: #f59e0b;
}

.home-tag--withdraw {
  background: #ef4444;
}

.home-hero__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.home-site-select {
  width: 180px;
}

.home-stat-card strong {
  display: block;
  margin-top: 10px;
  color: #1a2433;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
}

.home-stat-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eef1f6;
  color: #8492a6;
  font-size: 16px;
}

.home-stat-card__foot b {
  color: #334155;
  font-size: 18px;
  font-weight: 600;
}

.home-chart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.home-chart-card {
  min-height: 280px;
  padding: 14px 16px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(232, 226, 251, 0.95);
  box-shadow: 0 6px 16px rgba(72, 84, 104, 0.06);
}

.home-chart-card--users .home-chart__line {
  stroke: #3b82f6;
}

.home-chart-card--users .home-chart__dot {
  fill: #3b82f6;
}

.home-chart-card--recharge .home-chart__line {
  stroke: #10b981;
}

.home-chart-card--recharge .home-chart__dot {
  fill: #10b981;
}

.home-chart-card__title {
  margin-bottom: 8px;
  color: #1a2433;
  font-size: 15px;
  font-weight: 600;
}

.home-chart {
  position: relative;
  height: 240px;
  padding: 8px 8px 28px 36px;
}

.home-chart__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-chart__grid {
  stroke: #eef1f6;
  stroke-width: 1;
}

.home-chart__line {
  stroke: #7c5cff;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.home-chart__dot {
  fill: #7c5cff;
  stroke: #fff;
  stroke-width: 2;
}

.home-chart__y {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 28px;
  width: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 12px;
  text-align: right;
  padding-right: 4px;
}

.home-chart__x {
  position: absolute;
  left: 36px;
  right: 8px;
  bottom: 4px;
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 12px;
}

.home-chart__empty {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 13px;
}

@media (min-width: 1280px) {
  .home-chart-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .home-chart-card {
    min-height: 300px;
  }
}
@media (max-width: 1100px) {
  .home-stat-grid {
    grid-template-columns: 1fr;
  }
}
.settings-shell {
  height: 100%;
  overflow-y: auto;
  padding: 0 2px;
}

.settings-hero {
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--cs-hero-text);
  background: var(--cs-hero-bg);
  border: 1px solid var(--cs-panel-border);
  box-shadow: 0 2px 8px var(--cs-accent-shadow);
}

.settings-hero__eyebrow {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-hero-subtext);
  line-height: 1;
}

.settings-hero__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.settings-hero h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: var(--cs-hero-text);
}

.settings-hero p {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--cs-hero-subtext);
}

.settings-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.settings-section__title {
  margin-bottom: 8px;
  padding: 0 2px;
  color: var(--cs-text-main);
  font-size: 18px;
  font-weight: 700;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

@media (max-width: 960px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
.settings-card__desc {
  margin: -2px 0 12px;
  color: var(--cs-text-sub);
  font-size: 16px;
  line-height: 1.5;
}

.settings-greeting-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.settings-hero__back {
  color: var(--cs-primary-dark) !important;
  border-color: #dce3ef !important;
  background: #fff !important;
}

.settings-entry-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--cs-panel-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 12px var(--cs-accent-shadow);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.settings-entry-card:hover {
  border-color: #c5d0e3;
  box-shadow: 0 6px 14px var(--cs-accent-shadow);
}

.settings-entry-card__title {
  color: var(--cs-text-main);
  font-size: 18px;
  font-weight: 700;
}

.settings-entry-card__desc {
  color: var(--cs-text-sub);
  font-size: 16px;
  line-height: 1.45;
}

.settings-entry-card__action {
  margin-top: 4px;
  color: var(--cs-primary-dark);
  font-size: 16px;
  font-weight: 600;
}

.offduty-form__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.offduty-form__row--top {
  align-items: flex-start;
}

.offduty-form__row > label {
  color: var(--cs-text-main);
  font-size: 17px;
  font-weight: 600;
  line-height: 32px;
}

.offduty-days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.offduty-day {
  min-width: 68px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #dce3ef;
  border-radius: 8px;
  background: #fff;
  color: var(--cs-text-sub);
  font-size: 16px;
  cursor: pointer;
}

.offduty-day.active {
  color: var(--cs-primary-dark);
  border-color: #b8c4d8;
  background: var(--cs-primary-soft);
  font-weight: 600;
}

.offduty-time {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cs-text-sub);
  font-size: 17px;
}

.offduty-time__select {
  width: 78px;
}

.offduty-form__actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 6px;
  padding-left: 108px;
}

.settings-card .el-textarea__inner {
  border-radius: 10px;
  border-color: #dce3ef;
}

.tag-manage__list--panel {
  max-height: none;
}

.settings-card {
  padding: 12px;
  border: 1px solid var(--cs-panel-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px rgba(72, 84, 104, 0.06);
}

.settings-card--wide {
  grid-column: 1/-1;
}

.settings-card__title {
  margin-bottom: 10px;
  color: var(--cs-text-main);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.settings-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-meta {
  display: grid;
  gap: 8px;
}

.settings-meta__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-meta__item label {
  color: var(--cs-text-sub);
  font-size: 16px;
  flex-shrink: 0;
}

.settings-meta__item span {
  color: var(--cs-text-main);
  font-size: 17px;
  text-align: right;
}

.settings-notes {
  margin: 0;
  padding-left: 16px;
  color: var(--cs-text-sub);
  font-size: 16px;
  line-height: 1.55;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b9b5ca;
}

.status-dot.is-online {
  background: #4caf50;
}

.status-dot.is-busy {
  background: #faad14;
}

.status-dot.is-offline {
  background: #c4bfd6;
}

.empty-panel,
.chat-empty {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cs-text-sub);
}

.empty-panel {
  flex-direction: column;
  gap: 10px;
  font-size: 17px;
}

.empty-panel i {
  font-size: 26px;
  color: #c2b8ec;
}

.chat-empty {
  padding: 28px;
  background: var(--cs-chat-bg);
}

.chat-empty__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 34px 48px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(107, 127, 168, 0.08);
  text-align: center;
}

.chat-empty__icon {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--cs-primary) 0%, #9485ea 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.chat-empty__card strong {
  color: var(--cs-text-main);
  font-size: 20px;
}

.chat-empty__card span {
  color: var(--cs-text-sub);
  font-size: 17px;
}

@media (max-width: 1280px) {
  .consultation-layout {
    display: flex;
  }

  .consultation-panel--detail,
.consultation-split--detail {
    display: none;
  }

  .workbench-detail {
    display: none;
  }
}
@media (max-width: 1024px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-hero {
    display: none;
  }

  .workbench-topbar {
    padding-right: 14px;
  }

  .workbench-topbar__text span,
.workbench-topbar__agent {
    display: none;
  }

  .consultation-layout {
    display: flex;
  }

  .workbench-sidebar {
    display: flex;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }
}
