/* 客户管理：列表 / 跟进 / 分级 / 联系人 */
.tool-nav-group {
  margin: 2px 0 6px;
}

.tool-nav-group-head {
  width: 100%;
}

.tool-nav-caret {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
  transition: transform .18s ease;
}

.tool-nav-group.open .tool-nav-caret {
  transform: rotate(180deg);
}

.tool-nav-children {
  display: none;
  margin: 2px 0 4px 18px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.tool-nav-group.open .tool-nav-children {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tool-subnav {
  display: flex;
  align-items: center;
  min-height: 31px;
  padding: 5px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.tool-subnav:hover {
  background: rgba(59, 130, 246, .07);
  color: var(--text-primary);
}

.tool-subnav.active {
  background: var(--a-light);
  color: var(--a-color);
  font-weight: 700;
}

body.view-customer .workbench-layout,
body.view-account .workbench-layout {
  grid-template-columns: 190px minmax(0, 1fr);
}

body.view-customer .workbench-tools,
body.view-account .workbench-tools {
  display: none;
}

body.view-customer .workbench-content,
body.view-account .workbench-content {
  grid-column: 2;
}

.cc-view {
  display: none;
  min-width: 0;
}

.cc-view.visible {
  display: block;
}

.cc-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
  box-shadow: var(--shadow-sm);
}

.cc-kicker {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--a-color);
}

.cc-hero-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cc-hero h2 {
  font-size: 20px;
  line-height: 1.25;
}

.cc-hero p {
  max-width: 720px;
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
}

.cc-scope-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--a-light);
  color: var(--a-color);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.cc-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.cc-hero-actions .btn {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 12px;
}

.cc-subnav {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}

.cc-subnav-btn {
  padding: 7px 15px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.cc-subnav-btn:hover {
  background: var(--bg);
  color: var(--text-primary);
}

.cc-subnav-btn.active {
  background: var(--a-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, .25);
}

.cc-page {
  display: none;
  min-width: 0;
}

.cc-page.active {
  display: block;
}

/* KPI */
.cc-kpis {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.cc-kpi {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}

.cc-kpi:hover {
  border-color: rgba(59, 130, 246, .42);
  transform: translateY(-1px);
}

.cc-kpi.active {
  border-color: var(--a-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .12);
}

.cc-kpi-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
}

.cc-kpi-value {
  margin-top: 5px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.cc-kpi-note {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 10.5px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-kpi.tone-blue .cc-kpi-value { color: var(--a-color); }
.cc-kpi.tone-green .cc-kpi-value { color: var(--b-color); }
.cc-kpi.tone-orange .cc-kpi-value { color: var(--c-color); }
.cc-kpi.tone-red .cc-kpi-value { color: var(--d-color); }
.cc-kpi.tone-purple .cc-kpi-value { color: var(--vip-color); }

/* Toolbar */
.cc-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.cc-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.cc-search {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 320px;
}

.cc-search input {
  width: 100%;
  height: 34px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  color: var(--text-primary);
  font: inherit;
  font-size: 12px;
  outline: none;
}

.cc-search input:focus {
  border-color: var(--a-color);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .1);
}

.cc-search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
}

.cc-toolbar select,
.cc-toolbar input[type="date"],
.cc-toolbar input[type="month"] {
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-primary);
  font: inherit;
  font-size: 12px;
  outline: none;
}

.cc-toolbar select:focus,
.cc-toolbar input:focus {
  border-color: var(--a-color);
}

.cc-toolbar-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.cc-toolbar-spacer {
  flex: 1;
}

.cc-toolbar .btn {
  min-height: 32px;
  padding: 6px 11px;
  font-size: 12px;
}

.cc-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--a-light);
  color: var(--a-color);
  font-size: 11px;
  font-weight: 600;
}

.cc-filter-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

/* Table */
.cc-table-wrap {
  overflow: auto;
  max-width: 100%;
}

.cc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}

.cc-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  user-select: none;
}

.cc-table th.sortable {
  cursor: pointer;
}

.cc-table th.sortable:hover {
  color: var(--a-color);
}

.cc-table th .sort-mark {
  margin-left: 3px;
  color: var(--a-color);
  font-size: 10px;
}

.cc-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #f1f4fa;
  color: var(--text-primary);
  vertical-align: middle;
}

.cc-table tbody tr:hover {
  background: #f8fbff;
}

.cc-table tbody tr.selected {
  background: var(--a-light);
}

.cc-table tbody tr:last-child td {
  border-bottom: 0;
}

.cc-cell-main {
  display: block;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}

.cc-cell-sub {
  display: block;
  max-width: 210px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
  font-size: 10.5px;
}

.cc-cell-muted {
  color: var(--text-muted);
}

.cc-cell-danger {
  color: var(--d-color);
  font-weight: 700;
}

.cc-table-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cc-table th.cc-col-actions,
.cc-table td.cc-col-actions {
  position: sticky;
  right: 0;
  background: #fff;
  box-shadow: -8px 0 10px -10px rgba(15, 23, 42, 0.4);
}

.cc-table th.cc-col-actions {
  z-index: 3;
  background: #f8fafc;
}

.cc-table tbody tr:hover td.cc-col-actions {
  background: #f8fbff;
}

.cc-table tbody tr.selected td.cc-col-actions {
  background: var(--a-light);
}

.cc-table-actions .btn {
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 11px;
  white-space: nowrap;
}

.cc-link {
  border: 0;
  background: transparent;
  color: var(--a-color);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.cc-link:hover {
  text-decoration: underline;
}

.cc-checkbox {
  width: 14px;
  height: 14px;
  accent-color: var(--a-color);
  cursor: pointer;
}

/* Badges */
.cc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.cc-badge.grade-vip { color: var(--vip-color); background: var(--vip-light); }
.cc-badge.grade-A { color: var(--a-color); background: var(--a-light); }
.cc-badge.grade-B { color: var(--b-color); background: var(--b-light); }
.cc-badge.grade-C { color: #b45309; background: var(--c-light); }
.cc-badge.grade-D { color: var(--d-color); background: var(--d-light); }
.cc-badge.grade-pub { color: var(--pub-color); background: var(--pub-light); }
.cc-badge.grade-un { color: var(--un-color); background: var(--un-light); }

.cc-badge.status-pending { color: #b45309; background: #fff7ed; }
.cc-badge.status-today { color: var(--a-color); background: var(--a-light); }
.cc-badge.status-doing { color: var(--vip-color); background: var(--vip-light); }
.cc-badge.status-overdue { color: var(--d-color); background: var(--d-light); }
.cc-badge.status-done { color: var(--b-color); background: var(--b-light); }
.cc-badge.status-paused { color: var(--text-muted); background: var(--un-light); }

.cc-badge.risk-high { color: var(--d-color); background: var(--d-light); }
.cc-badge.risk-mid { color: #b45309; background: var(--c-light); }
.cc-badge.risk-low { color: var(--text-secondary); background: var(--un-light); }

.cc-badge.role { color: var(--text-secondary); background: var(--bg); }
.cc-badge.key { color: #b45309; background: #fffbeb; }
.cc-badge.primary { color: var(--b-color); background: var(--b-light); }
.cc-badge.inactive { color: var(--text-muted); background: var(--un-light); }

/* Batches */
.cc-batchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--a-light);
  font-size: 12px;
  color: var(--a-color);
}

.cc-batchbar strong {
  font-variant-numeric: tabular-nums;
}

.cc-batchbar .btn {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 11px;
}

/* Pagination */
.cc-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 11.5px;
}

.cc-pager-left,
.cc-pager-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cc-pager button {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-secondary);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}

.cc-pager button:hover:not(:disabled) {
  border-color: var(--a-color);
  color: var(--a-color);
}

.cc-pager button.active {
  border-color: var(--a-color);
  background: var(--a-color);
  color: #fff;
  font-weight: 700;
}

.cc-pager button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.cc-pager input {
  width: 46px;
  height: 28px;
  padding: 0 5px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-primary);
  font: inherit;
  font-size: 11.5px;
  text-align: center;
}

.cc-pager select {
  height: 28px;
  padding: 0 4px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-primary);
  font: inherit;
  font-size: 11.5px;
}

/* Empty */
.cc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 46px 16px;
  color: var(--text-muted);
  text-align: center;
  font-size: 12.5px;
}

.cc-empty strong {
  color: var(--text-secondary);
  font-size: 13.5px;
}

/* Split layout */
.cc-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 10px;
  align-items: start;
}

.cc-split.narrow {
  grid-template-columns: minmax(0, 1fr) 310px;
}

.cc-main-col,
.cc-side-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cc-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.cc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--border);
}

.cc-card-title {
  font-size: 13px;
  font-weight: 800;
}

.cc-card-sub {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

.cc-card-body {
  padding: 12px 13px;
}

.cc-profile-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 13px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #fbfdff, #f5f9ff);
}

.cc-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: var(--a-light);
  color: var(--a-color);
  font-size: 16px;
  font-weight: 800;
}

.cc-profile-name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.cc-profile-sub {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

.cc-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 13px;
  border-top: 1px solid var(--border);
}

.cc-profile-actions .btn {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 11px;
}

.cc-fields {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 7px 10px;
  font-size: 12px;
}

.cc-fields dt {
  color: var(--text-muted);
}

.cc-fields dd {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text-primary);
}

.cc-empty-side {
  padding: 28px 16px;
  color: var(--text-muted);
  text-align: center;
  font-size: 12px;
}

/* Timeline */
.cc-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 0 4px 16px;
}

.cc-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 5px;
  width: 2px;
  background: var(--border);
}

.cc-timeline-item {
  position: relative;
  padding: 8px 0 12px 10px;
}

.cc-timeline-item::before {
  content: '';
  position: absolute;
  top: 13px;
  left: -15px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--a-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .16);
}

.cc-timeline-item.stage-exit::before { background: var(--c-color); }
.cc-timeline-item.stage-done::before { background: var(--b-color); }

.cc-timeline-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-muted);
}

.cc-timeline-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.cc-timeline-content {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cc-timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 11px;
}

/* Grade page */
.cc-dist {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cc-dist-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 84px;
  gap: 9px;
  align-items: center;
  font-size: 12px;
}

.cc-dist-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}

.cc-dist-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--a-color);
}

.cc-dist-row.vip .cc-dist-bar i { background: var(--vip-color); }
.cc-dist-row.A .cc-dist-bar i { background: var(--a-color); }
.cc-dist-row.B .cc-dist-bar i { background: var(--b-color); }
.cc-dist-row.C .cc-dist-bar i { background: var(--c-color); }
.cc-dist-row.D .cc-dist-bar i { background: var(--d-color); }
.cc-dist-row.pub .cc-dist-bar i { background: var(--pub-color); }
.cc-dist-row.un .cc-dist-bar i { background: var(--un-color); }

.cc-dist-count {
  color: var(--text-secondary);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cc-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 68px;
}

.cc-score b {
  width: 22px;
  font-variant-numeric: tabular-nums;
}

.cc-score-bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}

.cc-score-bar i {
  display: block;
  height: 100%;
  background: var(--a-color);
}

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

.cc-rule-field {
  min-width: 0;
}

.cc-rule-field label {
  display: block;
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
}

.cc-rule-field input {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-primary);
  font: inherit;
  font-size: 12px;
}

.cc-rule-note {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.55;
}

/* Contact profile */
.cc-contact-list {
  display: flex;
  flex-direction: column;
}

.cc-contact-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid #f1f4fa;
  cursor: pointer;
}

.cc-contact-row:hover {
  background: #f8fbff;
}

.cc-contact-row.active {
  background: var(--a-light);
}

.cc-contact-row:last-child {
  border-bottom: 0;
}

.cc-contact-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.cc-contact-main {
  min-width: 0;
}

.cc-contact-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
}

.cc-contact-meta {
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Modal */
.cc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .48);
}

.cc-modal-overlay.open {
  display: flex;
}

.cc-modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.cc-modal.wide {
  width: min(760px, 100%);
}

.cc-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.cc-modal-title {
  font-size: 15px;
  font-weight: 800;
}

.cc-modal-sub {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11.5px;
}

.cc-modal-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
}

.cc-modal-body {
  padding: 14px 16px;
  overflow: auto;
}

.cc-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

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

.cc-form-field {
  min-width: 0;
}

.cc-form-field.full {
  grid-column: 1 / -1;
}

.cc-form-field label {
  display: block;
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
}

.cc-form-field label .req {
  color: var(--d-color);
}

.cc-form-field input,
.cc-form-field select,
.cc-form-field textarea {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-primary);
  font: inherit;
  font-size: 12.5px;
  outline: none;
}

.cc-form-field textarea {
  min-height: 72px;
  resize: vertical;
}

.cc-form-field input:focus,
.cc-form-field select:focus,
.cc-form-field textarea:focus {
  border-color: var(--a-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .1);
}

.cc-form-hint {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.cc-merge-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cc-merge-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.cc-merge-option:hover {
  border-color: var(--a-color);
  background: var(--a-light);
}

.cc-merge-option input {
  accent-color: var(--a-color);
}

/* Toast-like hint */
.cc-hint {
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.55;
}

@media (max-width: 1180px) {
  body.view-customer .workbench-layout,
  body.view-account .workbench-layout {
    grid-template-columns: 1fr;
  }

  .cc-kpis {
    flex-wrap: wrap;
  }

  .cc-kpi {
    flex: 1 1 150px;
  }

  .cc-split,
  .cc-split.narrow {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 720px) {
  .cc-hero {
    flex-direction: column;
  }

  .cc-hero-actions {
    justify-content: flex-start;
  }

  .cc-kpi {
    flex: 1 1 calc(50% - 10px);
  }

  .cc-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cc-dist-row {
    grid-template-columns: 50px minmax(0, 1fr) 70px;
  }
}
