:root { --blue:#1677e8; --ink:#263449; --sub:#65728a; --line:#e1e7ef; --background:#f5f7fa; --light:#f1f5fa; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--background); font:14px "PingFang SC","Microsoft YaHei",sans-serif; }
h1,h2,p,dl,dd { margin:0; }
.startup,.empty { color:var(--sub); padding:28px 20px; }
.login-layout { min-height:100vh; display:grid; place-items:center; padding:20px; }
.login-card { width:min(100%,420px); border-radius:10px; }
.login-card .el-card__body { padding:34px; }
.login-symbol,.brand-icon { display:block; flex:none; object-fit:contain; }
.login-brand { display:flex; align-items:center; gap:10px; }
.login-symbol { width:40px; height:40px; }
.login-card h1 { font-size:clamp(17px,5.2vw,26px); white-space:nowrap; }
.login-tagline { color:var(--sub); font-size:13px; margin:8px 0 24px; }
.login-button { margin-top:16px; width:100%; }
.shell { min-height:100vh; display:grid; grid-template-columns:190px minmax(0,1fr); grid-template-rows:60px 1fr; }
.topbar { grid-column:1/-1; background:#f6f9fd; display:flex; align-items:center; gap:25px; border-bottom:1px solid var(--line); padding:0 22px; }
.brand { font-weight:750; font-size:16px; white-space:nowrap; display:flex; align-items:center; gap:9px; }
.brand-icon { width:30px; height:30px; }
.top-actions { margin-left:auto; display:flex; align-items:center; gap:12px; }
.user-name { max-width:150px; overflow:hidden; text-overflow:ellipsis; }
.navigation { background:var(--light); border-right:1px solid var(--line); padding-top:13px; }
.navigation .el-menu { background:transparent; border:0; }
.navigation .el-menu-item.is-active { background:#e6f0ff; color:var(--blue); font-weight:650; box-shadow:inset 3px 0 var(--blue); }
.workspace { min-width:0; }
.tabbar { background:#f8f9fb; border-bottom:1px solid var(--line); padding:10px 20px; }
.tabbar span { display:inline-block; color:white; background:var(--blue); padding:7px 14px; border-radius:5px; font-weight:650; }
.page-content { padding:18px 20px 28px; }
.detail-panel { min-width:0; background:white; border:1px solid var(--line); border-radius:7px; }
.detail-title { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.employee-directory,.employee-workspace { max-width:1520px; margin:0 auto; }
.directory-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:18px; margin:7px 0 24px; flex-wrap:wrap; }
.directory-heading h1 { font-size:30px; font-weight:750; letter-spacing:-.035em; margin-bottom:8px; }
.directory-heading p { color:var(--sub); line-height:1.55; }
.directory-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.directory-actions .el-button+.el-button { margin:0; }
.directory-toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; padding:12px; background:#fff; border:1px solid var(--line); border-radius:11px; }
.directory-sources,.status-filters { display:flex; gap:5px; flex-wrap:wrap; }
.directory-sources button,.status-filters button,.employee-back { background:transparent; color:var(--sub); border:1px solid transparent; font:inherit; cursor:pointer; }
.directory-sources button { padding:8px 10px; border-radius:7px; font-weight:650; }
.directory-sources button.active { background:#edf4fc; color:#125cb0; }
.directory-sources span { margin-left:5px; font-variant-numeric:tabular-nums; font-size:12px; }
.directory-search { display:flex; flex:1 1 370px; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.directory-search > .el-input { width:min(100%,260px); flex:1 1 200px; min-width:130px; }
.directory-search > .el-select { width:110px; }
.directory-results { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin:14px 0; }
.status-filters { gap:7px; }
.status-filters button { background:white; border-color:var(--line); border-radius:20px; padding:6px 11px; font-size:12px; }
.status-filters button.active { background:#e8f2ff; border-color:#c0d9fa; color:#164d8a; }
.status-filters b { margin-left:3px; font-variant-numeric:tabular-nums; }
.result-count,.directory-message { font-size:12px; color:var(--sub); }
.directory-message { margin:0 0 10px; }
.directory-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.directory-card { display:flex; flex-direction:column; width:100%; text-align:left; background:#fff; color:var(--ink); font:inherit; cursor:pointer;
  padding:15px 16px 0; border:1px solid var(--line); border-radius:11px; box-shadow:0 2px 5px #1d335006; min-width:0; }
.directory-card:hover { border-color:#90bcea; box-shadow:0 4px 14px #1d335012; }
.directory-card:focus-visible,.directory-sources button:focus-visible,.status-filters button:focus-visible,.employee-back:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.card-top,.card-bottom { width:100%; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.card-top { margin-bottom:12px; }
.employee-mark { display:inline-grid; place-items:center; flex:none; width:36px; height:36px; border-radius:9px; color:#1b66ba; background:#eaf3fe; font-size:19px; }
.directory-card.builtin .employee-mark,.employee-mark.builtin { color:#287965; background:#e6f3ee; }
.employee-type { padding:5px 8px; border-radius:5px; color:#1d5c9e; background:#f0f5fc; font-size:11px; font-weight:650; }
.directory-card.builtin .employee-type { color:#246753; background:#edf6f1; }
.directory-card strong { min-width:0; font-size:16px; line-height:1.48; overflow-wrap:anywhere; }
.card-description { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; overflow-wrap:anywhere; line-height:1.55; color:var(--sub); margin:5px 0 10px; min-height:2.8em; font-size:12px; }
.card-facts { display:flex; gap:7px; align-items:center; flex-wrap:wrap; margin-bottom:13px; font-size:11px; }
.card-facts span { color:#4c5b72; padding:4px 6px; border-radius:4px; background:#f3f6fa; }
.card-facts i,.employee-header-meta i,.status-filters i { display:inline-block; width:7px; height:7px; border-radius:99px; margin-right:5px; }
.state-live { background:#349a74; }.state-paused { background:#ac761c; }.state-done { background:#527cba; }.state-neutral { background:#8c9ab0; }
.card-bottom { margin-top:auto; padding:10px 0; border-top:1px solid #edf1f6; color:#1a61b1; font-size:12px; font-weight:650; }
.directory-empty { padding:45px 12px; text-align:center; color:var(--sub); background:#fff; border:1px dashed var(--line); border-radius:10px; }
.directory-more { display:flex; justify-content:center; margin-top:17px; }
.employee-back { padding:4px 0; margin:0 0 12px; }
.employee-back:hover { color:var(--blue); }
.employee-header { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; align-items:flex-start;
  padding:19px; background:#fff; border:1px solid var(--line); border-radius:10px; }
.employee-header-identity { display:flex; align-items:flex-start; gap:12px; min-width:0; }
.employee-header-identity .employee-mark { width:44px; height:44px; }
.employee-header h1 { font-size:22px; line-height:1.4; overflow-wrap:anywhere; }
.employee-header-meta { display:flex; gap:9px; align-items:center; flex-wrap:wrap; margin-top:7px; color:var(--sub); font-size:12px; }
.employee-tabs { margin-top:12px; background:#fff; border:1px solid var(--line); border-radius:8px; padding:0 15px; }
.employee-tabs .el-tabs__header { margin:0; }.employee-tabs .el-tabs__nav-wrap::after { background:transparent; }
.employee-workspace > .detail-panel,.employee-workspace > .workflow-workspace { margin-top:12px; }
.employee-overview { min-height:0!important; }
.employee-overview h2 { font-size:17px; }
.employee-brief { color:var(--sub); line-height:1.65; padding-top:12px; }
.employee-metadata { display:grid; grid-template-columns:repeat(auto-fit,minmax(168px,1fr)); gap:13px; margin:15px 0 3px; }
.employee-metadata > div { padding:10px; background:#f6f9fd; border-radius:5px; }
.employee-metadata dt { color:var(--sub); font-size:12px; margin-bottom:5px; }
.employee-metadata dd { overflow-wrap:anywhere; }
.package-filter { margin-top:13px; }
.package-filter .el-date-editor { max-width:100%; }
.detail-panel { padding:15px 17px; min-height:340px; }
.detail-title h1 { font-size:19px; line-height:1.5; overflow-wrap:anywhere; }
.detail-panel .el-tabs__header { margin:7px 0 13px; }
.properties dt { color:var(--sub); }
.properties { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:12px 20px; padding:12px 0 4px; overflow-wrap:anywhere; }
.page-alert,.disconnected { margin-bottom:12px; }
.disconnected { color:#805e21; padding:0 12px; background:#fff5e4; }
.pagination { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:9px; margin-top:13px; color:var(--sub); }
.package-dialog { min-height:50px; }
.package-table { width:100%; }
.connection-panel { max-width:810px; min-height:0; }
.connection-panel .detail-title { margin-bottom:12px; }
.connection-actions { display:flex; gap:10px; flex-wrap:wrap; margin-block:14px; }
.connection-form { border-top:1px solid var(--line); padding-top:18px; margin-top:18px; max-width:640px; }
.connection-form h2 { font-size:16px; }
.connection-form .el-form-item { margin-top:12px; max-width:350px; }
.agreement-links,.agreement-notes { padding-left:20px; line-height:1.7; }
.agreement-links a { color:var(--blue); }
.agreement-notes { color:var(--sub); }
.accounts-panel { max-width:1140px; }
.accounts-help { color:var(--sub); margin:10px 0 16px; line-height:1.6; }
.account-filters,.account-form-actions { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.account-filters .el-input { width:220px; }
.account-filters .el-select .el-input { width:130px; }
.account-form-actions { justify-content:flex-end; margin:14px 0 0; }
.account-form-actions .el-button+.el-button { margin:0; }
.permission-fields { display:grid; grid-template-columns:minmax(0,1fr) 120px; gap:16px; }
.employee-picker { display:block; margin-top:9px; }
.field-note,.self-label { color:var(--sub); font-size:12px; }
.self-label { margin-left:8px; white-space:nowrap; }
.navigation .el-submenu .el-menu-item { min-width:0; font-size:13px; padding-left:36px!important; }
.workflow-workspace > .el-alert { margin-bottom:12px; }
.workflow-workspace .el-card__header { background:#fff; padding:13px 18px; }
.workflow-workspace .el-card__header h1 { font-size:19px; }
.workflow-workspace .el-card__body > .el-alert { margin-bottom:14px; }
.operation-form { max-width:660px; margin-top:18px; }
.operation-form .el-select { width:min(100%,475px); }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.profile-signature { padding:12px; margin-bottom:14px; line-height:1.6; background:#f5f8fc; border-radius:6px; }
.employee-actions { margin:14px 0; display:flex; flex-wrap:wrap; gap:8px; }
.employee-actions .el-button+.el-button { margin:0; }
.workflow-dialog { min-height:50px; }
.workflow-result { margin-top:12px; color:var(--sub); }
.workflow-result summary { cursor:pointer; }
.workflow-result pre { max-height:310px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; background:#f6f8fb; padding:10px; }
.workflow-workspace audio { width:100%; }
@media(max-width:1170px) { .directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media(max-width:1020px) { .shell{grid-template-columns:145px minmax(0,1fr)} }
@media(max-width:740px) {
  .shell{display:block}.topbar{min-height:57px;gap:10px;padding:0 12px}.topbar .el-breadcrumb,.user-name{display:none}
  .topbar .brand{min-width:0;white-space:normal}
  .navigation{padding:0;border-right:0}.navigation .el-menu{display:flex}.navigation .el-menu-item{height:44px;line-height:44px}
  .page-content{padding:12px}.directory-grid{grid-template-columns:minmax(0,1fr)}
  .directory-heading h1{font-size:25px}.directory-search{justify-content:flex-start}
  .employee-header h1{font-size:18px}.package-filter .el-date-editor{width:min(100%,305px)}
  .navigation .el-menu{flex-wrap:wrap}.navigation .el-submenu__title{height:44px;line-height:44px}
  .form-grid{grid-template-columns:minmax(0,1fr);gap:0}
}

.dashboard-heading,.dashboard-summary,.dashboard-filter { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.dashboard-heading { justify-content:space-between; margin-bottom:14px; }
.dashboard-heading p,.dashboard-summary span,.dashboard-note { margin-top:5px; color:var(--sub); font-size:12px; }
.dashboard-summary { align-items:baseline; margin-bottom:8px; }
.dashboard-summary h3,.dashboard-packages h3 { margin:0; font-size:14px; }
.dashboard-filter { min-width:0; max-width:100%; }
.dashboard-filter .el-date-editor { width:270px; max-width:100%; }
.dashboard-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(135px,1fr)); gap:10px; margin:0 0 14px; }
.dashboard-metrics > div { padding:12px; border:1px solid var(--line); background:#f6f9fd; border-radius:6px; min-width:0; }
.dashboard-metrics dt { color:var(--sub); font-size:12px; }
.dashboard-metrics dd { margin-top:5px; font-size:20px; font-weight:650; line-height:1.35; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.metric-partial { display:inline-block; font-size:11px; font-weight:500; color:#805e21; }
.dashboard-days,.dashboard-package-list { width:100%; }
.dashboard-days .el-table__expanded-cell { padding:10px 14px; }
.dashboard-packages { padding:12px; border:1px solid var(--line); border-radius:6px; background:#f6f9fd; }
.dashboard-packages h3 { margin-bottom:7px; }
.dashboard-empty { padding:22px 12px; }

.dashboard-charts { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:12px; }
.dashboard-chart { min-width:0; padding:14px; border:1px solid var(--line); border-radius:6px; }
.chart-header { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.chart-header h3,.dashboard-list-title { margin:0; font-size:15px; }
.chart-header p { color:var(--sub); font-size:12px; margin-top:4px; }
.trend-date { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--sub); }
.trend-date select { border:1px solid var(--line); border-radius:4px; padding:5px 7px; color:var(--ink); background:#fff; font:inherit; }
.trend-canvas { display:block; width:100%; height:172px; }
.trend-values { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; padding-top:8px; border-top:1px solid var(--line); }
.trend-values dt,.funnel-name { display:flex; align-items:center; gap:6px; }
.trend-values dt { color:var(--sub); font-size:12px; }
.trend-values dd { margin-top:4px; font-weight:650; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.trend-values i,.funnel-name i { flex:0 0 8px; width:8px; height:8px; border-radius:50%; }
.chart-empty { display:grid; place-items:center; min-height:172px; color:var(--sub); }
.funnel-stages { display:grid; gap:11px; margin:11px 0 0; padding:0; list-style:none; }
.funnel-label { display:grid; grid-template-columns:minmax(70px,1fr) auto minmax(52px,auto); gap:8px; align-items:baseline; font-size:12px; }
.funnel-label strong,.funnel-rate { text-align:right; font-variant-numeric:tabular-nums; }
.funnel-rate { color:var(--sub); }
.funnel-track { display:flex; justify-content:center; height:12px; margin-top:5px; border-radius:3px; background:#f1f5fa; }
.funnel-track > div { height:100%; border-radius:3px; }
.dashboard-list-title { margin:16px 0 5px; }
@media(max-width:960px) { .dashboard-charts { grid-template-columns:minmax(0,1fr); } }

.training-modes { margin-bottom:14px; }
.training-dialogue { max-width:700px; }
.training-history { display:grid; gap:8px; margin:14px 0; padding:0; list-style:none; }
.training-prompt { display:block; margin-bottom:6px; font-weight:600; line-height:1.5; }
.training-history li { max-width:90%; padding:8px 12px; border-radius:6px; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; }
.training-history .training-prompt { justify-self:start; margin:0; font-weight:400; background:#f2f5f9; }
.training-answer { justify-self:end; background:#e9f3ff; }
.training-compose { margin-top:14px; }
.training-skipped,.training-review p { color:var(--sub); }
.training-actions { display:flex; align-items:center; justify-content:flex-end; margin-top:8px; }
.training-review { padding:12px; border:1px solid var(--line); border-radius:6px; }
.training-review h2 { font-size:15px; }
.training-review p { margin:6px 0 10px; line-height:1.55; }
.training-review-fields { margin-bottom:8px; }
.training-review-fields > div { display:grid; grid-template-columns:72px minmax(0,1fr); gap:10px; padding:8px 0; border-top:1px solid var(--line); line-height:1.55; }
.training-review-fields dt { color:var(--sub); }
.training-review-fields dd { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.training-review-fields dd span { white-space:pre-wrap; overflow-wrap:anywhere; }
.training-review-fields .el-button { padding:0; flex-shrink:0; }
.training-material { display:grid; gap:8px; margin-bottom:12px; }
.training-material input { max-width:100%; }

.business-mode { display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:12px; margin:12px 0 8px; background:#f6f9fd; border:1px solid var(--line); border-radius:6px; }
.business-mode > div:first-child { flex:1 1 300px; }
.business-mode h2 { font-size:15px; }
.business-mode p { color:var(--sub); font-size:12px; line-height:1.55; margin-top:4px; }

.audit-details { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; }
.security-secret { display:grid; gap:8px; margin-bottom:12px; }
.security-secret code { padding:8px; background:#f6f9fd; overflow-wrap:anywhere; }
