.call-lgroups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.call-lgroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.call-lgroup-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.call-lgroup-title span {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.call-llist {
  display: flex;
  flex-direction: column;
  padding: 16px;
  list-style: none;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  box-shadow: var(--c-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.call-llist > li + li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--c-border);
}

.call-lrow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  transition: background-color 140ms ease;
}

.call-lrow:hover {
  background: var(--c-surface-muted);
}

.call-lrow.done {
  opacity: 0.7;
}

.call-lrow-date {
  width: 112px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}

.call-lrow-contacts {
  width: 96px;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-text);
}

.call-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(145deg, #eff3f4 0%, #e0e8ea 100%);
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
  font-size: 14px;
  font-weight: 700;
}

.call-lrow-text-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.call-lrow-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-text);
}

.call-lrow-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--c-text-muted);
}

.call-dhead {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 0 4px 2px;
}

.call-dmeta {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: var(--c-text-muted);
}

.call-erow-pos {
  width: 22px;
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-text-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.call-erow-person {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 220px;
  flex-shrink: 0;
  min-width: 0;
}

.call-erow-car {
  display: none;
  align-items: center;
  gap: 8px;
  width: 130px;
  flex-shrink: 0;
  min-width: 0;
  font-size: 13px;
  color: var(--c-text);
}

.call-erow-car svg {
  flex-shrink: 0;
  color: var(--c-text-muted);
}

.call-erow-car span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-erow-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.call-erow-reason-inline {
  max-width: 100%;
}

.call-erow-reason {
  display: none;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.4;
  color: var(--c-text-2);
}

.call-erow-state,
.call-erow-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  flex-shrink: 0;
}

.call-erow-state {
  width: 120px;
}

.call-erow-result {
  width: 150px;
}

.call-erow-result .call-lrow-sub,
.call-erow-state .call-lrow-sub {
  max-width: 100%;
}

@media (min-width: 1500px) {
  .call-erow-car {
    display: inline-flex;
  }
  .call-erow-car-inline,
  .call-erow-reason-inline {
    display: none;
  }
  .call-erow-group {
    flex: none;
    flex-direction: row;
    align-items: center;
    width: 185px;
  }
  .call-erow-reason {
    display: -webkit-box;
  }
}

.call-lrow-mix {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.call-lrow-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
}

.call-lrow-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  color: var(--c-text);
}

.call-lrow-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.call-lrow-bar {
  position: relative;
  width: 120px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--c-surface-sunken);
}

.call-lrow-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--c-primary);
}

.call-lrow.done .call-lrow-bar i {
  background: var(--c-success);
}

.call-lrow-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-2);
  font-variant-numeric: tabular-nums;
}

.call-lrow-assignee {
  width: 140px;
  flex-shrink: 0;
  min-width: 0;
}

.call-lrow-assignee-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-2);
}

.call-lrow-unassigned {
  display: inline-flex;
  align-items: center;
  height: 28px;
  margin-left: -13px;
  padding: 0 12px;
  border: 1px dashed var(--c-border-strong);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--c-text-muted);
  white-space: nowrap;
}

.call-lrow-status {
  width: 100px;
  flex-shrink: 0;
}

.call-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.call-badge.dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}

.call-badge.neutral {
  background: var(--c-surface-muted);
  color: var(--c-text-2);
  border-color: var(--c-border);
}

.call-badge.primary {
  background: var(--c-primary-soft);
  color: var(--c-primary-active);
  border-color: rgba(226, 68, 14, 0.18);
}

.call-badge.info {
  background: #eaf1f3;
  color: #2c4f5a;
  border-color: #d2e1e5;
}

.call-badge.warning {
  background: #fdf1e3;
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.2);
}

.call-badge.danger {
  background: #fdecec;
  color: #c62a2f;
  border-color: rgba(229, 72, 77, 0.2);
}

.call-badge.success {
  background: var(--c-success-soft);
  color: #14803c;
  border-color: rgba(22, 163, 74, 0.18);
}

.call-lrow-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  width: 184px;
  flex-shrink: 0;
}

.call-lrow-actions .call-btn {
  margin-right: 4px;
}

.call-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-surface);
  color: var(--c-text-2);
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.call-icon-btn:hover {
  color: var(--c-text);
  border-color: var(--c-border-strong);
  background: var(--c-surface-muted);
}

.call-icon-btn.danger:hover {
  color: var(--c-danger);
  border-color: var(--c-danger);
  background: var(--c-danger-soft);
}

.call-lempty {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 48px 24px;
  overflow: hidden;
  text-align: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  box-shadow: var(--c-shadow-xs), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.call-lempty::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  width: 420px;
  height: 260px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(226, 68, 14, 0.07) 0%, rgba(226, 68, 14, 0) 70%);
}

.call-lempty-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  font-size: 26px;
  color: var(--c-text-2);
  background: var(--c-surface-muted);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  box-shadow: var(--c-shadow-xs);
}

.call-lempty-icon svg {
  width: 26px;
  height: 26px;
}

.call-lempty h3 {
  position: relative;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.call-lempty p {
  position: relative;
  max-width: 42ch;
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--c-text-2);
}

@media (max-width: 1300px) {
  .call-lrow-assignee {
    display: none;
  }
}

@media (max-width: 1100px) {
  .call-lrow-status {
    display: none;
  }
}

@media (max-width: 860px) {
  .call-erow-person {
    width: auto;
    flex: 1;
  }
  .call-erow-group {
    order: 5;
    flex-basis: 100%;
    padding-left: 38px;
  }
  .call-erow-state,
  .call-erow-result {
    width: auto;
  }
  .call-lrow {
    flex-wrap: wrap;
  }
  .call-lrow-date {
    width: 100%;
  }
  .call-lrow-contacts {
    width: auto;
    flex: 1;
  }
  .call-lrow-mix {
    order: 4;
    flex-basis: 100%;
  }
}
