:root {
  --purple-950: #170020;
  --purple-900: #230031;
  --purple-800: #3b0a54;
  --purple-700: #7138e8;
  --purple-600: #7b43e9;
  --purple-100: #ebe5ff;
  --purple-50: #f6f3ff;
  --yellow-500: #ffd62c;
  --orange-500: #ff8a1f;
  --green-500: #12ae68;
  --blue-500: #3b88e9;
  --ink: #252836;
  --muted: #7b8090;
  --line: #e5e7ef;
  --paper: #ffffff;
  --canvas: #f4f5f9;
  --shadow: 0 2px 10px rgba(32, 20, 52, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 1220px;
  background: var(--purple-950);
}

body {
  margin: 0;
  min-width: 1220px;
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: #555b69;
  cursor: pointer;
}

button:hover {
  border-color: #cfc7ff;
  color: var(--purple-700);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input,
select {
  height: 36px;
  padding: 0 12px;
}

textarea {
  min-height: 92px;
  padding: 10px 12px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--purple-700);
  box-shadow: 0 0 0 3px rgba(116, 39, 255, 0.1);
}

.primary-button {
  border-color: var(--purple-700);
  background: var(--purple-700);
  color: #fff;
  font-weight: 700;
}

.ui-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

button .ui-icon {
  pointer-events: none;
}

.login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 204, 37, 0.26), transparent 28%),
    radial-gradient(circle at 84% 10%, rgba(116, 39, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #29033f, #4a0c6f 56%, #31114c);
}

.login-screen {
  display: grid;
  width: min(1040px, calc(100vw - 96px));
  min-height: 620px;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  margin: 48px auto;
}

.login-brand,
.login-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: 0 28px 70px rgba(20, 0, 36, 0.26);
}

.login-brand {
  position: relative;
  overflow: hidden;
  padding: 42px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.06);
  color: #fff;
}

.login-brand::after {
  position: absolute;
  right: -92px;
  bottom: -102px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 204, 37, 0.16);
  content: "";
}

.login-logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.login-logo-row img {
  width: 76px;
  height: 76px;
  border: 3px solid rgba(255, 255, 255, 0.66);
  border-radius: 18px;
  object-fit: cover;
}

.login-logo-row p,
.login-logo-row h1,
.brand-copy h2,
.brand-copy p {
  margin: 0;
}

.login-logo-row p {
  color: rgba(255, 255, 255, 0.72);
}

.login-logo-row h1 {
  margin-top: 4px;
  color: #fff;
  font-size: 36px;
}

.brand-copy {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  margin-top: 112px;
}

.brand-copy h2 {
  font-size: 34px;
  line-height: 1.22;
}

.brand-copy p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.8;
}

.login-metrics {
  display: flex;
  gap: 10px;
  position: absolute;
  bottom: 42px;
  left: 42px;
  z-index: 1;
}

.login-metrics span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.login-panel {
  align-self: center;
  padding: 34px;
  background: #fff;
}

.auth-loading-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
}

.auth-loading-panel h2,
.auth-loading-panel p {
  margin: 0;
}

.auth-spinner {
  width: 34px;
  height: 34px;
  color: var(--purple-700);
  animation: auth-spin 900ms linear infinite;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--purple-700);
  font-size: 12px;
  font-weight: 800;
}

.login-panel h2 {
  margin: 0 0 24px;
  font-size: 26px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label,
.field {
  display: grid;
  gap: 8px;
}

.login-form span,
.field span {
  color: #555b69;
  font-size: 13px;
  font-weight: 700;
}

.form-error {
  min-height: 18px;
  margin: 0;
  color: #e45050;
  font-size: 13px;
}

.login-note {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: var(--purple-50);
  color: #5b4b73;
  font-size: 13px;
  line-height: 1.55;
}

.app-body {
  background: var(--canvas);
}

.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 72px 170px minmax(980px, 1fr);
  grid-template-rows: 72px minmax(0, 1fr);
  grid-template-areas:
    "top top top"
    "primary secondary workspace";
  background: var(--canvas);
  transition: grid-template-columns 180ms ease;
}

.admin-shell.secondary-collapsed {
  grid-template-columns: 72px 48px minmax(980px, 1fr);
}

.primary-nav {
  grid-area: primary;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  background: #250035;
  color: #fff;
}

.primary-nav nav {
  display: grid;
  gap: 6px;
  width: 100%;
}

.primary-nav-item {
  display: grid;
  place-items: center;
  gap: 5px;
  width: 56px;
  min-height: 60px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.66);
}

.primary-nav-item span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  font-style: normal;
}

.primary-nav-item em {
  font-size: 12px;
  font-style: normal;
}

.primary-nav-item.selected {
  background: #6d32e2;
  color: #fff;
  box-shadow: inset 3px 0 0 var(--yellow-500);
}

.primary-nav-item.selected span {
  color: #fff;
}

.secondary-nav {
  grid-area: secondary;
  min-width: 0;
  overflow: hidden;
  padding: 18px 12px;
  border-right: 1px solid #e2e3eb;
  background: #f0f1f6;
  color: #343747;
  transition: padding 180ms ease;
}

.secondary-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  margin-bottom: 14px;
  padding: 0 4px;
}

.secondary-title button {
  width: 30px;
  min-height: 28px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: #777b8f;
}

.secondary-nav nav {
  display: grid;
  gap: 4px;
}

.secondary-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #565b69;
  font-size: 13px;
  text-align: left;
}

.secondary-nav-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secondary-nav-item.selected {
  background: #e4dcfb;
  color: var(--purple-700);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--purple-700);
}

.secondary-collapsed .secondary-nav {
  padding: 18px 8px;
}

.secondary-collapsed .secondary-title {
  justify-content: center;
  padding: 0;
}

.secondary-collapsed .secondary-title strong,
.secondary-collapsed .secondary-nav nav {
  display: none;
}

.workspace {
  grid-area: workspace;
  min-width: 0;
  min-height: 0;
  background: var(--canvas);
}

.top-bar {
  grid-area: top;
  display: grid;
  grid-template-columns: 218px minmax(300px, 430px) minmax(560px, 1fr);
  align-items: center;
  gap: 18px;
  height: 72px;
  padding: 0 18px 0 14px;
  background: #21002f;
  color: #fff;
}

.top-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
}

.top-brand:hover {
  border: 0;
  color: #fff;
}

.top-brand img {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 214, 44, 0.9);
  border-radius: 8px;
  object-fit: cover;
}

.top-brand > span {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 5px;
}

.top-brand strong {
  font-size: 20px;
}

.top-brand b {
  color: var(--yellow-500);
  font-size: 15px;
}

.top-brand small {
  grid-column: 1 / -1;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 500;
}

.top-search {
  display: grid;
  width: 100%;
  grid-template-columns: 38px 1fr 36px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
}

.top-search > .ui-icon {
  justify-self: center;
  width: 16px;
  color: rgba(255, 255, 255, 0.48);
}

.top-search input {
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.top-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.top-search button {
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: rgba(113, 56, 232, 0.55);
  color: #fff;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.top-actions button,
.power-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}

.power-chip {
  color: rgba(255, 255, 255, 0.76);
}

.power-chip strong {
  color: var(--yellow-500);
}

.account-chip {
  padding: 4px 8px !important;
}

.account-chip > span {
  display: grid;
  gap: 1px;
  min-width: 112px;
  text-align: left;
}

.account-chip strong {
  color: #fff;
  font-size: 11px;
}

.account-chip small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.logout-button {
  color: #fff3c2 !important;
}

.workspace-card {
  min-height: 100%;
  padding: 20px;
  border-radius: 0;
  background: var(--canvas);
  overflow: auto;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.page-header h1,
.page-header p {
  margin: 0;
}

.page-header h1 {
  font-size: 22px;
  line-height: 1.2;
}

.page-header p:not(.eyebrow) {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb {
  display: flex;
  gap: 7px;
  margin-bottom: 6px !important;
  color: #8b90a0;
  font-size: 11px;
}

.breadcrumb span {
  color: #b8bbc5;
}

.page-actions {
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

.page-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.metric-card,
.panel-card,
.form-card,
.empty-state,
.quick-card,
.employee-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.metric-card {
  display: grid;
  min-height: 108px;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  padding: 16px;
}

.metric-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
  background: #f1edff;
}

.metric-copy {
  min-width: 0;
}

.metric-copy > span,
.metric-copy p {
  color: #6c7280;
}

.metric-card .metric-copy strong {
  display: block;
  margin: 7px 0 4px;
  color: currentColor;
  font-size: 27px;
  line-height: 1;
}

.metric-card strong small {
  margin-left: 4px;
  color: #7b8090;
  font-size: 12px;
  font-weight: 600;
}

.metric-card .metric-copy p {
  margin: 0;
  font-size: 12px;
}

.metric-card.violet,
.mini-stat.violet,
.bar-stat.violet {
  color: var(--purple-700);
}

.metric-card.violet .metric-icon {
  background: #efe9ff;
}

.metric-card.blue,
.mini-stat.blue,
.bar-stat.blue {
  color: var(--blue-500);
}

.metric-card.blue .metric-icon {
  background: #e7f1ff;
}

.metric-card.green,
.mini-stat.green,
.bar-stat.green {
  color: var(--green-500);
}

.metric-card.green .metric-icon {
  background: #e4f7ed;
}

.metric-card.orange,
.mini-stat.orange,
.bar-stat.orange {
  color: var(--orange-500);
}

.metric-card.orange .metric-icon {
  background: #fff0e2;
}

.split-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.overview-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, 0.78fr);
  gap: 12px;
}

.split-grid.wide-left {
  grid-template-columns: 410px minmax(0, 1fr);
}

.panel-card,
.form-card {
  padding: 16px;
}

.overview-main-grid .panel-card,
.recent-section {
  padding: 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.overview-main-grid .section-title,
.recent-section .section-title {
  min-height: 62px;
  margin: 0;
  padding: 13px 16px;
}

.section-title > div {
  display: grid;
  gap: 3px;
}

.section-title h2 {
  margin: 0;
  font-size: 16px;
}

.section-title span {
  color: var(--muted);
  font-size: 13px;
}

.section-title button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--purple-700);
  font-size: 12px;
}

.section-title button .ui-icon {
  width: 15px;
  height: 15px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

th,
td {
  overflow: hidden;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-main-grid th,
.overview-main-grid td,
.recent-section th,
.recent-section td {
  padding: 11px 14px;
}

th {
  background: #f6f7fb;
  color: #737887;
  font-weight: 700;
  text-align: left;
}

td {
  color: #565d6b;
}

th.is-center,
td.is-center {
  text-align: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.is-ready {
  background: #e7f8ef;
  color: #0d9c57;
}

.is-running {
  background: #fff4e6;
  color: #d06b00;
}

.is-waiting {
  background: #f0f0f4;
  color: #8a8d99;
}

.is-muted {
  background: #f4f2ff;
  color: var(--purple-700);
}

.is-hot {
  background: #fff1e7;
  color: #e66f16;
}

.lead-panel {
  min-height: 280px;
}

.lead-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin: 0 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.lead-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #efe9ff;
  color: var(--purple-700);
  font-size: 13px;
  font-weight: 800;
}

.lead-copy {
  min-width: 0;
}

.lead-copy > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lead-copy strong {
  color: #343846;
  font-size: 13px;
}

.lead-copy p {
  display: flex;
  gap: 6px;
  margin: 5px 0 0;
  color: #888d9b;
  font-size: 11px;
}

.lead-item time {
  color: #9599a6;
  font-size: 11px;
}

.lead-action {
  display: flex;
  width: calc(100% - 32px);
  min-height: 38px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 14px 16px 16px;
  padding: 0 11px;
  border-color: #e0daf3;
  background: #f8f6ff;
  color: var(--purple-700);
}

.lead-action .ui-icon:last-child {
  margin-left: auto;
}

.recent-section {
  margin-top: 12px;
}

.progress-row {
  display: grid;
  gap: 8px;
  padding: 12px 0;
}

.progress-row + .progress-row {
  border-top: 1px solid var(--line);
}

.progress-row div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #5c6270;
  font-size: 13px;
}

.progress-row strong {
  color: var(--purple-700);
}

.progress-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #eff0f5;
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple-700), #54a2ff);
}

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

.quick-card {
  display: grid;
  min-height: 132px;
  align-content: start;
  gap: 10px;
  padding: 18px;
  text-align: left;
}

.quick-card strong {
  color: var(--ink);
  font-size: 16px;
}

.quick-card span {
  color: var(--muted);
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid.single {
  grid-template-columns: 1fr;
}

.span-2 {
  grid-column: 1 / -1;
}

.select-like {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  color: #555b69;
}

.select-like i {
  color: #a2a6b4;
  font-style: normal;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #555b69;
  font-size: 13px;
}

.radio-row span {
  font-weight: 800;
}

.tabs-line {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.tabs-line button {
  padding: 0 14px;
  border-color: #d9dcf0;
  border-radius: 18px;
}

.tabs-line .selected {
  border-color: var(--purple-700);
  color: var(--purple-700);
  font-weight: 800;
}

.filter-row {
  display: grid;
  grid-template-columns: 180px minmax(260px, 1fr) 80px;
  gap: 10px;
  margin-bottom: 12px;
}

.filter-row input:first-child {
  grid-column: span 2;
}

.disabled-soft,
.disabled-soft:hover {
  border-color: var(--line);
  background: #f2f3f7;
  color: #a0a4af;
  cursor: not-allowed;
}

.knowledge-summary {
  display: grid;
  grid-template-columns: 48px minmax(240px, 1fr) minmax(220px, 320px) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid #ddd6f6;
  border-radius: 8px;
  background: #faf9ff;
  box-shadow: var(--shadow);
}

.knowledge-summary-icon,
.knowledge-section-title > div {
  display: grid;
  place-items: center;
  color: var(--purple-700);
  background: #eee9ff;
}

.knowledge-summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 7px;
}

.knowledge-summary-copy,
.knowledge-section-title > span {
  display: grid;
  gap: 4px;
}

.knowledge-summary-copy strong {
  font-size: 15px;
}

.knowledge-summary-copy span,
.knowledge-summary-note,
.knowledge-section-title small,
.form-save-bar > span {
  color: var(--muted);
  font-size: 12px;
}

.knowledge-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.knowledge-progress strong {
  color: var(--purple-700);
  font-size: 22px;
}

.knowledge-progress progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: #e6e4ec;
  appearance: none;
}

.knowledge-progress progress::-webkit-progress-bar {
  border-radius: 99px;
  background: #e6e4ec;
}

.knowledge-progress progress::-webkit-progress-value {
  border-radius: 99px;
  background: var(--purple-700);
}

.knowledge-summary-note,
.form-save-bar > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.knowledge-summary-note .ui-icon,
.form-save-bar .ui-icon {
  width: 15px;
  height: 15px;
}

.knowledge-form {
  display: grid;
  gap: 14px;
}

.knowledge-section {
  padding: 0 18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.knowledge-section-title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.knowledge-section-title > div {
  width: 34px;
  height: 34px;
  border-radius: 6px;
}

.knowledge-section-title > div .ui-icon {
  width: 17px;
  height: 17px;
}

.knowledge-section-title strong {
  color: #343846;
  font-size: 15px;
}

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

.knowledge-grid.content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.knowledge-field {
  position: relative;
  min-width: 0;
}

.knowledge-field > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.knowledge-field > span small {
  margin-left: auto;
  color: #a0a4af;
  font-size: 11px;
  font-weight: 500;
}

.required-mark {
  color: #e15b5b;
  font-size: 13px;
}

.knowledge-textarea textarea {
  min-height: 132px;
  padding-bottom: 28px;
  line-height: 1.7;
}

.field-count {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: #a0a4af;
  font-size: 11px;
  font-style: normal;
}

.field-count b {
  font-weight: 500;
}

.form-save-bar {
  position: sticky;
  bottom: -20px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid #ded8f1;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 24px rgba(35, 0, 49, 0.07);
  backdrop-filter: blur(8px);
}

.form-save-bar button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
}

.term-tabs {
  gap: 0;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.term-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
}

.term-tabs button b {
  display: grid;
  min-width: 20px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border-radius: 4px;
  background: #eceef4;
  color: #858a98;
  font-size: 10px;
}

.term-tabs button.selected {
  border-bottom-color: var(--purple-700);
  background: #f8f6ff;
  color: var(--purple-700);
}

.term-tabs button.selected b {
  background: #e8e0ff;
  color: var(--purple-700);
}

.term-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 150px auto auto;
  gap: 10px;
  margin-bottom: 12px;
}

.search-control {
  position: relative;
}

.search-control .ui-icon {
  position: absolute;
  top: 9px;
  left: 11px;
  z-index: 1;
  width: 16px;
  height: 16px;
  color: #969aa8;
}

.search-control input {
  padding-left: 36px;
}

.term-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 15px;
}

.terms-panel {
  overflow: hidden;
  padding: 0;
}

.terms-bulk-bar {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfbfd;
  color: #666c79;
  font-size: 12px;
}

.terms-bulk-bar strong {
  color: var(--purple-700);
}

.terms-bulk-bar select {
  width: 148px;
}

.terms-bulk-bar button {
  padding: 0 13px;
}

.terms-bulk-bar small {
  margin-left: auto;
  color: #9195a2;
}

.terms-table {
  min-width: 1080px;
}

.terms-table th,
.terms-table td {
  vertical-align: middle;
}

.terms-table th:nth-child(1),
.terms-table td:nth-child(1),
.terms-table th:nth-child(3),
.terms-table td:nth-child(3),
.terms-table th:nth-child(4),
.terms-table td:nth-child(4),
.terms-table th:nth-child(5),
.terms-table td:nth-child(5),
.terms-table th:nth-child(7),
.terms-table td:nth-child(7),
.terms-table th:nth-child(8),
.terms-table td:nth-child(8) {
  text-align: center;
}

.terms-table th:nth-child(2),
.terms-table td:nth-child(2),
.terms-table th:nth-child(6),
.terms-table td:nth-child(6) {
  text-align: left;
}

.terms-table th:nth-child(2) {
  width: 18%;
}

.terms-table th:nth-child(3) {
  width: 12%;
}

.terms-table th:nth-child(4),
.terms-table th:nth-child(5) {
  width: 9%;
}

.terms-table th:nth-child(6) {
  width: 19%;
}

.terms-table th:nth-child(7) {
  width: 11%;
}

.terms-table th.check-column {
  width: 46px;
}

.terms-table th.actions-column {
  width: 92px;
}

.terms-table input[type="checkbox"],
.terms-bulk-bar input[type="checkbox"] {
  display: block;
  width: 15px;
  height: 15px;
  margin: 0 auto;
  accent-color: var(--purple-700);
}

.term-name {
  color: #343846;
}

.type-tag,
.priority {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.type-tag {
  background: #f0edfb;
  color: #675293;
}

.priority-高 {
  background: #fff0e7;
  color: #dc681c;
}

.priority-中 {
  background: #fff7db;
  color: #ad7c00;
}

.priority-低 {
  background: #eef0f5;
  color: #797f8e;
}

.status-button {
  min-height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.table-actions {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.table-actions button {
  display: grid;
  width: 30px;
  min-height: 30px;
  place-items: center;
  padding: 0;
  border-color: transparent;
  background: transparent;
}

.table-actions button:last-child:hover {
  color: #d95050;
}

.table-actions .ui-icon {
  width: 15px;
  height: 15px;
}

.table-pagination {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: #858a98;
  font-size: 12px;
}

.table-pagination button {
  display: grid;
  width: 30px;
  min-height: 30px;
  place-items: center;
  padding: 0;
}

.table-pagination button.selected {
  border-color: var(--purple-700);
  background: var(--purple-700);
  color: #fff;
}

.terms-empty {
  display: grid;
  min-height: 300px;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #9498a5;
}

.terms-empty .ui-icon {
  width: 34px;
  height: 34px;
  color: #b5b0c7;
}

.terms-empty strong {
  color: #5b6070;
}

.terms-empty span {
  font-size: 12px;
}

.geo-workflow-strip {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.geo-workflow-strip > div {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 10px;
}

.geo-workflow-strip > div > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid #d9dbe5;
  border-radius: 50%;
  background: #fff;
  color: #858a98;
  font-size: 12px;
  font-weight: 800;
}

.geo-workflow-strip > div.active > span {
  border-color: var(--purple-700);
  background: var(--purple-700);
  color: #fff;
}

.geo-workflow-strip > div div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.geo-workflow-strip strong,
.geo-workflow-strip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-workflow-strip strong {
  color: #464b58;
  font-size: 13px;
}

.geo-workflow-strip small {
  color: #9296a3;
  font-size: 11px;
}

.geo-workflow-strip > i {
  display: grid;
  color: #c1c4ce;
  font-style: normal;
}

.geo-workflow-strip > i .ui-icon {
  width: 16px;
  height: 16px;
}

.geo-summary-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.geo-summary-band > div {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-right: 1px solid var(--line);
}

.geo-summary-band > div:last-child {
  border-right: 0;
}

.geo-summary-band .ui-icon {
  width: 21px;
  height: 21px;
  color: var(--purple-700);
}

.geo-summary-band span {
  display: grid;
  gap: 3px;
  color: #777c89;
  font-size: 11px;
}

.geo-summary-band strong {
  color: #303541;
  font-size: 20px;
  line-height: 1;
}

.geo-task-panel {
  overflow: hidden;
  padding: 0;
}

.geo-task-title {
  min-height: 62px;
  margin: 0;
  padding: 12px 16px;
}

.geo-task-title > strong {
  color: #858a98;
  font-size: 12px;
}

.geo-task-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 150px 150px auto auto;
  gap: 9px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfbfd;
}

.geo-task-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
}

.geo-search-field {
  position: relative;
}

.geo-search-field .ui-icon {
  position: absolute;
  top: 10px;
  left: 11px;
  z-index: 1;
  width: 16px;
  height: 16px;
  color: #969aa8;
}

.geo-search-field input {
  padding-left: 36px;
}

.geo-task-table {
  min-width: 1180px;
}

.geo-task-table th:nth-child(1) {
  width: 19%;
}

.geo-task-table th:nth-child(2) {
  width: 13%;
}

.geo-task-table th:nth-child(3) {
  width: 15%;
}

.geo-task-table th:nth-child(4) {
  width: 11%;
}

.geo-task-table th:nth-child(5),
.geo-task-table th:nth-child(6) {
  width: 8%;
}

.geo-task-table th:nth-child(7) {
  width: 12%;
}

.geo-task-table th:nth-child(8) {
  width: 10%;
}

.geo-task-table td {
  height: 66px;
  vertical-align: middle;
}

.geo-task-name {
  display: grid;
  gap: 4px;
}

.geo-task-name strong {
  overflow: hidden;
  color: #343846;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-task-name span {
  color: #969aa7;
  font-size: 11px;
}

.geo-linked-value {
  color: var(--purple-700);
  font-weight: 700;
}

.geo-task-progress {
  display: grid;
  width: 74px;
  gap: 5px;
  margin: 0 auto;
}

.geo-task-progress > div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.geo-task-progress strong {
  color: #3f4552;
}

.geo-task-progress span {
  color: #9499a6;
  font-size: 11px;
}

.geo-task-progress i {
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: #ebeaf0;
}

.geo-task-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--purple-600);
}

.geo-published-count {
  color: #4a505d;
}

.geo-task-actions {
  gap: 2px;
}

.geo-task-empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #969aa7;
}

.geo-task-empty .ui-icon {
  width: 30px;
  height: 30px;
  color: #bbb7c8;
}

.geo-task-empty strong {
  color: #555b68;
}

.geo-task-empty span {
  font-size: 12px;
}

.geo-task-empty.compact {
  min-height: 180px;
  border: 1px dashed #dedbe7;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(22, 10, 29, 0.48);
}

.term-dialog {
  width: min(560px, calc(100vw - 48px));
  overflow: hidden;
  border: 1px solid #d8d5e3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 0, 32, 0.24);
}

.geo-task-dialog {
  width: min(820px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.geo-task-form {
  padding: 18px 20px 20px;
}

.geo-task-form > .dialog-actions {
  position: sticky;
  bottom: -20px;
  z-index: 3;
  margin: 14px -20px -20px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.geo-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.geo-form-field {
  display: grid;
  align-content: start;
  gap: 7px;
  color: #555b69;
  font-size: 12px;
  font-weight: 700;
}

.geo-select-trigger {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  text-align: left;
}

.geo-select-trigger.has-value {
  border-color: #cabcf5;
  background: #fbf9ff;
}

.geo-select-trigger > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.geo-select-trigger strong,
.geo-select-trigger small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-select-trigger strong {
  color: #444a57;
  font-size: 13px;
}

.geo-select-trigger small,
.field-help {
  color: #969aa8;
  font-size: 11px;
  font-weight: 500;
}

.geo-select-trigger .ui-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #9b90b5;
}

.geo-mode-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.geo-mode-field legend {
  margin-bottom: 7px;
  color: #555b69;
  font-size: 12px;
  font-weight: 700;
}

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

.geo-mode-segment label {
  min-width: 0;
}

.geo-mode-segment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.geo-mode-segment span {
  display: grid;
  min-height: 58px;
  align-content: center;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid #dfe1e8;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.geo-mode-segment input:checked + span {
  border-color: var(--purple-700);
  background: #f8f5ff;
  box-shadow: inset 0 0 0 1px var(--purple-700);
}

.geo-mode-segment strong {
  color: #454b58;
  font-size: 12px;
}

.geo-mode-segment small {
  overflow: hidden;
  color: #9296a3;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid #e2e3e9;
  background: #fafafd;
}

.geo-checkbox-row input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--purple-700);
}

.geo-checkbox-row span {
  display: grid;
  gap: 3px;
}

.geo-checkbox-row strong {
  color: #4c5260;
  font-size: 12px;
}

.geo-checkbox-row small {
  color: #9296a3;
  font-size: 11px;
}

.geo-cost-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 11px 12px;
  border-left: 3px solid var(--purple-600);
  background: #f7f5fc;
}

.geo-cost-bar .ui-icon {
  width: 18px;
  height: 18px;
  color: var(--purple-700);
}

.geo-cost-bar div {
  display: grid;
  gap: 3px;
}

.geo-cost-bar strong {
  color: #4c5260;
  font-size: 12px;
}

.geo-cost-bar span {
  color: #7f8492;
  font-size: 11px;
}

.geo-picker-dialog {
  width: min(940px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
}

.geo-picker-body {
  display: grid;
  max-height: calc(100vh - 150px);
  gap: 12px;
  padding: 16px 18px 18px;
  overflow-y: auto;
}

.geo-picker-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}

.geo-picker-tabs button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
}

.geo-picker-tabs button.selected {
  border-bottom-color: var(--purple-700);
  color: var(--purple-700);
  font-weight: 800;
}

.geo-picker-tabs span {
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 9px;
  background: #f0edf8;
  font-size: 10px;
}

.geo-picker-search {
  position: relative;
}

.geo-picker-search .ui-icon {
  position: absolute;
  top: 10px;
  left: 11px;
  width: 16px;
  height: 16px;
  color: #979ba8;
}

.geo-picker-search input {
  padding-left: 36px;
}

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

.geo-choice-card {
  position: relative;
  display: grid;
  min-height: 142px;
  align-content: start;
  gap: 9px;
  padding: 13px;
  text-align: left;
}

.geo-choice-card:hover,
.geo-choice-card.selected {
  border-color: var(--purple-600);
  background: #fbf9ff;
}

.geo-choice-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.geo-choice-card strong {
  overflow: hidden;
  color: #3d4350;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-choice-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #727886;
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.geo-choice-card small,
.geo-choice-card em {
  color: #969aa7;
  font-size: 10px;
  font-style: normal;
}

.geo-choice-card > .ui-icon {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 18px;
  height: 18px;
  color: var(--purple-700);
}

.term-type-tag,
.persona-tag {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 0 6px;
  border-radius: 4px;
  background: #efebfb;
  color: #685296;
  font-size: 10px;
  font-weight: 800;
}

.persona-tag {
  background: #e8f6ee;
  color: #168052;
}

.persona-card {
  min-height: 158px;
}

.geo-detail-dialog {
  width: min(900px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.geo-detail-body {
  padding: 18px 20px 20px;
}

.geo-detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.geo-detail-summary > div {
  display: grid;
  min-height: 66px;
  align-content: center;
  gap: 5px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.geo-detail-summary > div:last-child {
  border-right: 0;
}

.geo-detail-summary span,
.geo-detail-summary strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-detail-summary > div > span {
  color: #9296a3;
  font-size: 10px;
}

.geo-detail-summary > div > strong {
  color: #454b58;
  font-size: 12px;
}

.geo-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 2px;
  color: #777c89;
  font-size: 11px;
}

.geo-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.geo-detail-meta .ui-icon {
  width: 14px;
  height: 14px;
  color: #8d78c4;
}

.geo-content-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 4px;
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--line);
}

.geo-content-header h3,
.geo-content-header p {
  margin: 0;
}

.geo-content-header h3 {
  font-size: 14px;
}

.geo-content-header p,
.geo-content-header > span {
  margin-top: 4px;
  color: #9296a3;
  font-size: 11px;
}

.geo-content-list > div {
  display: grid;
  min-height: 52px;
  grid-template-columns: 36px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.geo-content-list > div > span {
  color: #9b9fab;
  font-size: 11px;
}

.geo-content-list strong {
  overflow: hidden;
  color: #4d5360;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-content-list em {
  justify-self: end;
  font-style: normal;
}

.dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2,
.dialog-header p {
  margin: 0;
}

.dialog-header h2 {
  font-size: 18px;
}

.dialog-header p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.dialog-header .icon-button {
  display: grid;
  width: 32px;
  min-height: 32px;
  place-items: center;
  padding: 0;
}

.dialog-form {
  display: grid;
  gap: 15px;
  padding: 20px;
}

.dialog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dialog-form textarea {
  min-height: 86px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 4px;
}

.dialog-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
}

.app-toast {
  position: fixed;
  top: 84px;
  left: 50%;
  z-index: 80;
  display: flex;
  width: max-content;
  min-width: 240px;
  max-width: min(420px, calc(100vw - 40px));
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid #bde6d1;
  border-radius: 7px;
  background: #f1fbf6;
  color: #167a4c;
  box-shadow: 0 16px 36px rgba(29, 34, 42, 0.16);
  font-size: 13px;
  font-weight: 700;
  animation: toast-in 160ms ease-out forwards;
}

.app-toast.error {
  border-color: #f0cccc;
  background: #fff5f5;
  color: #c64a4a;
}

.app-toast .ui-icon {
  width: 18px;
  height: 18px;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, -8px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.crm-summary-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.crm-summary-band > div {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-right: 1px solid var(--line);
}

.crm-summary-band > div:last-child {
  border-right: 0;
}

.crm-summary-band > div > span:last-child {
  display: grid;
  gap: 4px;
  color: #7c8190;
  font-size: 11px;
}

.crm-summary-band strong {
  color: #303541;
  font-size: 20px;
  line-height: 1;
}

.crm-summary-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  background: #f0ebff;
  color: var(--purple-700);
}

.crm-summary-band .hot .crm-summary-icon {
  background: #fff0e7;
  color: #e66f16;
}

.crm-summary-band .orange .crm-summary-icon {
  background: #fff4e6;
  color: #d06b00;
}

.crm-summary-band .blue .crm-summary-icon {
  background: #e8f2ff;
  color: var(--blue-500);
}

.crm-summary-band .green .crm-summary-icon {
  background: #e7f8ef;
  color: var(--green-500);
}

.crm-summary-icon .ui-icon {
  width: 19px;
  height: 19px;
}

.crm-panel {
  overflow: hidden;
  padding: 0;
}

.crm-panel-title {
  min-height: 62px;
  margin: 0;
  padding: 12px 16px;
}

.crm-panel-title > strong {
  color: #858a98;
  font-size: 12px;
}

.crm-toolbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 135px 125px 125px auto auto;
  gap: 9px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfbfd;
}

.crm-toolbar.message-toolbar {
  grid-template-columns: minmax(340px, 1fr) 140px 140px auto auto;
}

.crm-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
}

.crm-bulk-bar {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: #707684;
  font-size: 12px;
}

.crm-bulk-bar strong {
  color: var(--purple-700);
}

.crm-bulk-bar select {
  width: 150px;
}

.crm-bulk-bar button {
  padding: 0 13px;
}

.crm-bulk-bar small {
  margin-left: auto;
  color: #979ba7;
}

.crm-table {
  min-width: 1120px;
}

.message-table {
  min-width: 1180px;
}

.crm-table th,
.crm-table td {
  height: 62px;
  vertical-align: middle;
}

.lead-table th:nth-child(1) { width: 15%; }
.lead-table th:nth-child(2) { width: 10%; }
.lead-table th:nth-child(3) { width: 16%; }
.lead-table th:nth-child(4) { width: 8%; }
.lead-table th:nth-child(5) { width: 8%; }
.lead-table th:nth-child(6) { width: 9%; }
.lead-table th:nth-child(7) { width: 10%; }
.lead-table th:nth-child(8) { width: 14%; }
.lead-table th:nth-child(9) { width: 8%; }

.lead-table th:nth-child(2),
.lead-table td:nth-child(2),
.lead-table th:nth-child(4),
.lead-table td:nth-child(4),
.lead-table th:nth-child(5),
.lead-table td:nth-child(5),
.lead-table th:nth-child(6),
.lead-table td:nth-child(6),
.lead-table th:nth-child(7),
.lead-table td:nth-child(7),
.lead-table th:nth-child(8),
.lead-table td:nth-child(8),
.lead-table th:nth-child(9),
.lead-table td:nth-child(9) {
  text-align: center;
}

.message-table th.check-column { width: 44px; }
.message-table th:nth-child(2) { width: 9%; }
.message-table th:nth-child(3) { width: 10%; }
.message-table th:nth-child(4) { width: 9%; }
.message-table th:nth-child(5) { width: 27%; }
.message-table th:nth-child(6) { width: 8%; }
.message-table th:nth-child(7) { width: 9%; }
.message-table th:nth-child(8) { width: 14%; }
.message-table th:nth-child(9) { width: 10%; }

.message-table th:nth-child(1),
.message-table td:nth-child(1),
.message-table th:nth-child(3),
.message-table td:nth-child(3),
.message-table th:nth-child(4),
.message-table td:nth-child(4),
.message-table th:nth-child(6),
.message-table td:nth-child(6),
.message-table th:nth-child(7),
.message-table td:nth-child(7),
.message-table th:nth-child(8),
.message-table td:nth-child(8),
.message-table th:nth-child(9),
.message-table td:nth-child(9) {
  text-align: center;
}

.message-table input[type="checkbox"] {
  display: block;
  width: 15px;
  height: 15px;
  margin: 0 auto;
  accent-color: var(--purple-700);
}

.crm-person {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.crm-person > span,
.crm-person-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid #ded7f5;
  border-radius: 50%;
  background: #f3efff;
  color: var(--purple-700);
  font-size: 12px;
  font-weight: 800;
}

.crm-person > div,
.crm-source {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.crm-person strong,
.crm-source strong,
.crm-primary-text {
  overflow: hidden;
  color: #3e4451;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-person small,
.crm-source small {
  overflow: hidden;
  color: #979ba8;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-preview {
  display: block;
  width: 100%;
  min-height: 24px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: #555c69;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-preview:hover {
  border: 0;
  color: var(--purple-700);
}

.crm-empty {
  min-height: 260px;
}

.crm-dialog {
  width: min(780px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.crm-dialog-body {
  display: grid;
  gap: 16px;
  padding: 18px 20px 20px;
}

.crm-detail-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #fbfbfd;
}

.crm-detail-strip > div {
  display: grid;
  min-height: 58px;
  align-content: center;
  gap: 5px;
  padding: 9px 12px;
  border-right: 1px solid var(--line);
}

.crm-detail-strip > div:last-child {
  border-right: 0;
}

.crm-detail-strip span {
  color: #9296a3;
  font-size: 10px;
}

.crm-detail-strip strong {
  overflow: hidden;
  color: #474d5a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-form-grid {
  gap: 14px 16px;
}

.crm-span-2 {
  grid-column: 1 / -1;
}

.crm-span-2 textarea {
  min-height: 94px;
  line-height: 1.65;
}

.crm-timeline {
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #fbfbfd;
}

.crm-timeline > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.crm-timeline h3,
.crm-timeline p {
  margin: 0;
}

.crm-timeline h3 {
  font-size: 13px;
}

.crm-timeline > div span,
.crm-timeline p {
  color: #858a98;
  font-size: 11px;
}

.crm-timeline p {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  border-top: 1px solid #ececf1;
}

.crm-timeline p .ui-icon {
  width: 13px;
  height: 13px;
  color: var(--purple-700);
}

.message-content-block {
  padding: 14px;
  border: 1px solid #ded8f1;
  background: #faf9ff;
}

.message-content-block > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.message-content-block > div > div {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.message-content-block strong {
  color: #3f4552;
}

.message-content-block small {
  color: #9296a3;
  font-size: 10px;
}

.message-content-block em {
  font-style: normal;
}

.message-content-block blockquote {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--purple-700);
  background: #fff;
  color: #4c5260;
  font-size: 13px;
  line-height: 1.7;
}

.table-pagination select {
  width: 98px;
  height: 30px;
}

.table-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dashboard-grid {
  grid-template-rows: auto auto;
}

.report-period-control {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 4px 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #6b7180;
}

.report-period-control .ui-icon {
  width: 15px;
  height: 15px;
}

.report-period-control select {
  width: 92px;
  height: 30px;
  padding: 0 24px 0 0;
  border: 0;
  background-color: transparent;
  color: #444a58;
  font-size: 13px;
  font-weight: 600;
}

.report-meta-line {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 22px;
  margin-bottom: 10px;
  padding: 0 12px;
  border: 1px solid #e6e8ef;
  border-radius: 6px;
  background: #fafbfe;
  color: #7a808e;
  font-size: 12px;
}

.report-meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.report-meta-line .ui-icon {
  width: 14px;
  height: 14px;
  color: var(--purple-700);
}

.report-overview-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: var(--shadow);
}

.report-overview-item {
  display: grid;
  min-width: 0;
  min-height: 92px;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.report-overview-item:first-child {
  border-radius: 7px 0 0 7px;
}

.report-overview-item:last-child {
  border-right: 0;
  border-radius: 0 7px 7px 0;
}

.report-overview-item:hover {
  background: #faf9ff;
}

.report-overview-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  background: #f0ebff;
  color: var(--purple-700);
}

.report-overview-item.blue .report-overview-icon {
  background: #e9f2ff;
  color: #347fdd;
}

.report-overview-item.orange .report-overview-icon {
  background: #fff0e4;
  color: #ed7e28;
}

.report-overview-item.green .report-overview-icon {
  background: #e6f7ee;
  color: #19a968;
}

.report-overview-icon .ui-icon {
  width: 19px;
  height: 19px;
}

.report-overview-item > span:nth-child(2) {
  display: grid;
  min-width: 0;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 3px 8px;
}

.report-overview-item small {
  grid-column: 1 / -1;
  color: #777d8b;
  font-size: 12px;
}

.report-overview-item strong {
  color: #2f3440;
  font-size: 23px;
  line-height: 1.15;
}

.report-overview-item em {
  overflow: hidden;
  color: #999eaa;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-overview-item > .ui-icon {
  width: 15px;
  height: 15px;
  color: #b2b6c0;
}

.geo-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
  gap: 12px;
}

.report-panel {
  min-width: 0;
  padding: 0;
}

.report-panel-title {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
}

.report-panel-title > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.report-panel-title > div:first-child > span {
  width: 3px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: var(--purple-700);
}

.report-panel-title strong {
  flex: 0 0 auto;
  color: #343945;
  font-size: 15px;
}

.report-panel-title small {
  overflow: hidden;
  color: #9499a6;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-panel-title em {
  padding: 3px 7px;
  border-radius: 4px;
  background: #f2effc;
  color: #7955d9;
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}

.report-panel-title button {
  display: inline-flex;
  height: 28px;
  align-items: center;
  gap: 2px;
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: var(--purple-700);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.report-panel-title button .ui-icon {
  width: 13px;
  height: 13px;
}

.report-progress-list {
  display: grid;
  padding: 4px 15px 10px;
}

.report-progress-row {
  display: grid;
  min-height: 62px;
  grid-template-columns: minmax(160px, 1.1fr) 72px minmax(150px, 1fr) 42px 16px;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #eef0f5;
  border-radius: 0;
  background: transparent;
  color: #505663;
  text-align: left;
}

.report-progress-row:last-child {
  border-bottom: 0;
}

.report-progress-row:hover {
  background: #fcfbff;
}

.report-progress-row > span:first-child {
  display: grid;
  gap: 3px;
}

.report-progress-row > span:first-child strong {
  color: #404653;
  font-size: 13px;
}

.report-progress-row small {
  color: #989da9;
  font-size: 10px;
}

.report-progress-value {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
}

.report-progress-value strong {
  color: #353b47;
  font-size: 16px;
}

.report-progress-track {
  overflow: hidden;
  height: 7px;
  border-radius: 8px;
  background: #eff1f5;
}

.report-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--purple-700);
}

.report-progress-track.blue i {
  background: #438ee8;
}

.report-progress-track.orange i {
  background: #f09a4a;
}

.report-progress-track.green i {
  background: #28b578;
}

.report-progress-row > em {
  color: #6e7481;
  font-size: 11px;
  font-style: normal;
  text-align: right;
}

.report-progress-row > .ui-icon {
  width: 14px;
  height: 14px;
  color: #babec7;
}

.report-scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 14px;
}

.report-scene-item {
  display: grid;
  min-height: 106px;
  grid-template-columns: 26px 1fr;
  align-content: center;
  gap: 5px 8px;
  padding: 11px;
  border: 1px solid #eceef4;
  border-radius: 7px;
  background: #fafbfe;
}

.report-scene-item > span {
  display: grid;
  width: 26px;
  height: 26px;
  grid-row: 1 / span 2;
  place-items: center;
  border-radius: 6px;
  background: #eee9ff;
  color: var(--purple-700);
}

.report-scene-item.blue > span {
  background: #e6f1ff;
  color: #3686e5;
}

.report-scene-item.orange > span {
  background: #fff0e2;
  color: #eb812d;
}

.report-scene-item.green > span {
  background: #e5f7ee;
  color: #20aa6b;
}

.report-scene-item .ui-icon {
  width: 14px;
  height: 14px;
}

.report-scene-item small {
  align-self: end;
  color: #7c8290;
  font-size: 11px;
}

.report-scene-item strong {
  color: #333945;
  font-size: 21px;
  line-height: 1;
}

.report-scene-item em {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: #a0a4af;
  font-size: 10px;
  font-style: normal;
}

.report-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.report-status-item {
  display: grid;
  min-height: 72px;
  grid-template-columns: 8px 1fr;
  align-content: center;
  gap: 4px 8px;
  padding: 10px 14px;
  border-right: 1px solid var(--line);
}

.report-status-item:last-child {
  border-right: 0;
}

.report-status-item > span {
  width: 7px;
  height: 7px;
  grid-row: 1 / span 2;
  align-self: center;
  border-radius: 50%;
  background: var(--purple-700);
}

.report-status-item > span.orange {
  background: #ef8e3f;
}

.report-status-item > span.blue {
  background: #438ee8;
}

.report-status-item > span.green {
  background: #28b578;
}

.report-status-item small {
  color: #8a909d;
  font-size: 10px;
}

.report-status-item strong {
  color: #353b47;
  font-size: 19px;
}

.report-diagnostic-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px 15px 8px;
}

.report-diagnostic-summary > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}

.report-diagnostic-summary span {
  color: #777d89;
  font-size: 11px;
}

.report-diagnostic-summary strong {
  color: #3c424e;
  font-size: 12px;
}

.report-diagnostic-summary i {
  overflow: hidden;
  height: 6px;
  grid-column: 1 / -1;
  border-radius: 6px;
  background: #eff1f5;
}

.report-diagnostic-summary b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--purple-700);
}

.report-diagnostic-summary i.green b {
  background: #28b578;
}

.report-external-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 15px 10px;
}

.report-external-row > div {
  display: grid;
  min-height: 61px;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 3px 8px;
  padding: 9px 10px;
  border: 1px dashed #dfe2e9;
  border-radius: 6px;
  background: #fafbfc;
}

.report-external-row span {
  grid-column: 1 / -1;
  color: #7b818e;
  font-size: 10px;
}

.report-external-row strong {
  color: #a1a6b1;
  font-size: 17px;
}

.report-external-row em {
  align-self: center;
  color: #9a7c54;
  font-size: 10px;
  font-style: normal;
}

.report-source-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 15px 14px;
  color: #999eaa;
  font-size: 10px;
}

.report-source-note .ui-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.report-funnel-line {
  display: grid;
  grid-template-columns: 1fr 22px 1fr 22px 1fr;
  align-items: center;
  gap: 5px;
  padding: 14px 14px 8px;
}

.report-funnel-line > div {
  display: grid;
  min-height: 62px;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px solid #eceef4;
  border-radius: 7px;
  background: #fafbfe;
}

.report-funnel-line small {
  color: #858b98;
  font-size: 10px;
}

.report-funnel-line strong {
  color: #3a404c;
  font-size: 20px;
}

.report-funnel-line > span {
  display: grid;
  place-items: center;
  color: #b2b6c0;
}

.report-funnel-line .ui-icon {
  width: 14px;
  height: 14px;
}

.report-source-list {
  display: grid;
  gap: 10px;
  padding: 9px 15px 12px;
}

.report-source-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px;
  color: #707683;
  font-size: 11px;
}

.report-source-row i {
  overflow: hidden;
  height: 6px;
  border-radius: 8px;
  background: #eff1f5;
}

.report-source-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--purple-700);
}

.report-source-row i.blue b {
  background: #438ee8;
}

.report-source-row i.orange b {
  background: #ef9145;
}

.report-source-row i.green b {
  background: #28b578;
}

.report-source-row strong {
  color: #454b57;
  text-align: right;
}

.report-traffic-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 15px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
  color: #767c89;
  font-size: 11px;
}

.report-traffic-foot span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.report-traffic-foot .ui-icon {
  width: 14px;
  height: 14px;
  color: var(--purple-700);
}

.report-traffic-foot strong {
  color: #373d49;
}

.report-actions-panel {
  grid-column: 1 / -1;
}

.report-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0 8px 8px;
}

.report-action-row {
  display: grid;
  min-width: 0;
  min-height: 76px;
  grid-template-columns: 8px minmax(0, 1fr) auto 15px;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.report-action-row:last-child {
  border-right: 0;
}

.report-action-row:hover {
  background: #faf9ff;
}

.report-action-row > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple-700);
}

.report-action-row > span.orange {
  background: #ef9145;
}

.report-action-row > span.blue {
  background: #438ee8;
}

.report-action-row > span.green {
  background: #28b578;
}

.report-action-row div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.report-action-row strong {
  color: #424854;
  font-size: 12px;
}

.report-action-row small {
  overflow: hidden;
  color: #979ca8;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-action-row em {
  display: grid;
  min-width: 26px;
  height: 24px;
  place-items: center;
  border-radius: 5px;
  background: #f1edff;
  color: var(--purple-700);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.report-action-row > .ui-icon {
  width: 14px;
  height: 14px;
  color: #b5b9c3;
}

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

.mini-stat {
  display: grid;
  min-height: 118px;
  place-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.mini-stat span {
  color: #8a8f9d;
}

.mini-stat strong {
  font-size: 24px;
}

.mini-stat i {
  width: 78px;
  height: 18px;
  background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 8px);
  opacity: 0.24;
}

.bar-stat {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.bar-stat div {
  display: flex;
  justify-content: space-between;
  color: #5c6270;
}

.bar-stat strong {
  color: currentColor;
}

.bar-stat i {
  overflow: hidden;
  height: 8px;
  border-radius: 99px;
  background: #eff0f5;
}

.bar-stat b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
}

.diagnostic-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.big-number {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 12px 8px;
  border-right: 1px solid var(--line);
}

.big-number:last-child {
  border-right: 0;
}

.big-number span {
  color: #8a8f9d;
  font-size: 13px;
}

.big-number strong {
  color: var(--purple-700);
  font-size: 24px;
}

.line-chart {
  display: flex;
  align-items: end;
  gap: 18px;
  height: 128px;
  padding: 16px;
  border-radius: 8px;
  background:
    linear-gradient(#eff0f5 1px, transparent 1px) 0 0 / 100% 32px,
    #fff;
}

.line-chart span {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--purple-700), rgba(116, 39, 255, 0.18));
}

.traffic-cards {
  display: grid;
  gap: 12px;
}

.traffic-cards div {
  display: grid;
  min-height: 92px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple-700), #8d3bff);
  color: rgba(255, 255, 255, 0.84);
}

.traffic-cards div + div {
  background: linear-gradient(135deg, var(--blue-500), #6db9ff);
}

.traffic-cards strong {
  display: block;
  color: #fff;
  font-size: 28px;
}

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

.employee-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 16px;
}

.employee-card img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.employee-card h3,
.employee-card p {
  margin: 0;
}

.employee-card p,
.employee-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.employee-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.empty-state {
  display: grid;
  justify-items: center;
  min-height: 420px;
  align-content: center;
  gap: 12px;
  padding: 40px;
  text-align: center;
}

.empty-state img {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  object-fit: cover;
  opacity: 0.86;
}

.empty-state h2,
.empty-state p {
  margin: 0;
}

.empty-state p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.placeholder-grid {
  display: grid;
  width: min(640px, 100%);
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 1320px) {
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .split-grid,
  .geo-report-grid {
    grid-template-columns: 1fr;
  }

  .report-actions-panel {
    grid-column: auto;
  }

  .report-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-action-row:nth-child(2) {
    border-right: 0;
  }

  .report-action-row:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .employee-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
